diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-10-23 18:08:17 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-10-23 18:08:17 +0000 |
commit | 07ba5303757ea42fdf7dee25a57c4a89b6427df5 (patch) | |
tree | 15c96b0683f00f4ff1410b5f99e3ab82a80bebbb /configure | |
parent | a20a47cc26c51a2dabbb11e0f6274c645f29f6c3 (diff) |
- Initial build system related modernizations
- Add -fstack-protector to CFLAGS if available
- Move openssl check to m4/ax_check_openssl.m4
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2485 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 49 |
1 files changed, 48 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Id: configure.ac 2431 2013-08-02 17:20:42Z michael . +# From configure.ac Id: configure.ac 2481 2013-10-23 16:38:58Z michael . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.1.7. # @@ -3083,6 +3083,7 @@ fi MAINT=$MAINTAINER_MODE_TRUE + ac_config_headers="$ac_config_headers config.h" @@ -8559,6 +8560,10 @@ _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= @@ -13172,6 +13177,47 @@ LIBTOOL="$LIBTOOL --silent" # Checks for libraries. + + if test "X$CC" != "X"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5 +$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; } +if ${ssp_cv_cc+:} false; then : + $as_echo_n "(cached) " >&6 +else + ssp_old_cflags="$CFLAGS" + CFLAGS="$CFLAGS -fstack-protector" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ssp_cv_cc=yes +else + ssp_cv_cc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$ssp_old_cflags" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 +$as_echo "$ssp_cv_cc" >&6; } + if test $ssp_cv_cc = yes; then + CFLAGS="$CFLAGS -fstack-protector" + +$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h + + fi + fi + + + ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" if test "x$ac_cv_func_getaddrinfo" = xyes; then : @@ -13831,6 +13877,7 @@ fi fi + # Check whether --enable-openssl was given. if test "${enable_openssl+set}" = set; then : enableval=$enable_openssl; cf_enable_openssl=$enableval |