X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.in;h=4336342c21c84eb50e7d9fd3a49f48737f26bf89;hb=939ee6a39b04e8417fa594ae8881b617ffd00029;hp=9bda36e6cb7af236a433400dd10f0aa37dadbed5;hpb=3237d28bfbc96096320536f6ebc41761b7d11641;p=ngircd-alex.git diff --git a/configure.in b/configure.in index 9bda36e6..4336342c 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ # (at your option) any later version. # 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.119 2006/08/05 08:58:16 fw Exp $ # # -- Initialisation -- @@ -53,6 +53,7 @@ AC_PROG_RANLIB AM_C_PROTOTYPES AC_C_CONST +AC_C_INLINE # -- Hard coded system and compiler dependencies/features/options ... -- @@ -61,6 +62,25 @@ if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes" 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 hpux*) # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED @@ -105,6 +125,7 @@ AC_TRY_COMPILE([ AC_TYPE_SIGNAL AC_TYPE_SIZE_T + # -- Libraries -- AC_CHECK_LIB(UTIL,memmove) @@ -273,7 +294,8 @@ if test "$x_zeroconf_on" = "osx"; then fi if test "$x_zeroconf_on" = "howl"; then for dir in /usr/local/include /usr/local/include/howl* \ - /usr/include /usr/include/howl*; do + /usr/include /usr/include/howl* \ + /usr/local/include/avahi* /usr/include/avahi*; do test -d "$dir" || continue AC_MSG_CHECKING([for Howl headers in $dir]) if test -f "$dir/rendezvous/rendezvous.h"; then @@ -461,7 +483,7 @@ test "$x_identauth_on" = "yes" \ && echo $ECHO_N "yes $ECHO_C" \ || echo $ECHO_N "no $ECHO_C" echo $ECHO_N " I/O backend: $ECHO_C" - echo "$x_io_backend" + echo "\"$x_io_backend()\"" echo