mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
check if gcc supports -fstack-protector
This commit is contained in:
parent
30c11b2313
commit
a7197f579c
22
configure.in
22
configure.in
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
# Please read the file COPYING, README and AUTHORS for more information.
|
# Please read the file COPYING, README and AUTHORS for more information.
|
||||||
#
|
#
|
||||||
# $Id: configure.in,v 1.115 2005/07/22 21:02:22 alex Exp $
|
# $Id: configure.in,v 1.116 2005/08/30 20:59:30 fw Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
# -- Initialisation --
|
# -- Initialisation --
|
||||||
@ -61,6 +61,25 @@ if test "$GCC" = "yes"; then
|
|||||||
CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
|
CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
AC_DEFUN([GCC_STACK_PROTECT_CC],[
|
||||||
|
ssp_cc=yes
|
||||||
|
if test "X$CC" != "X"; then
|
||||||
|
AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector])
|
||||||
|
ssp_old_cflags="$CFLAGS"
|
||||||
|
CFLAGS="$CFLAGS -fstack-protector"
|
||||||
|
AC_TRY_COMPILE(,,, ssp_cc=no)
|
||||||
|
echo $ssp_cc
|
||||||
|
if test "X$ssp_cc" = "Xno"; then
|
||||||
|
CFLAGS="$ssp_old_cflags"
|
||||||
|
else
|
||||||
|
AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
GCC_STACK_PROTECT_CC
|
||||||
|
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
hpux*)
|
hpux*)
|
||||||
# This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
|
# This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
|
||||||
@ -105,6 +124,7 @@ AC_TRY_COMPILE([
|
|||||||
AC_TYPE_SIGNAL
|
AC_TYPE_SIGNAL
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
|
|
||||||
|
|
||||||
# -- Libraries --
|
# -- Libraries --
|
||||||
|
|
||||||
AC_CHECK_LIB(UTIL,memmove)
|
AC_CHECK_LIB(UTIL,memmove)
|
||||||
|
Loading…
Reference in New Issue
Block a user