From: michael Date: Thu, 11 Jun 2015 12:45:27 +0000 (+0000) Subject: - autoreconf X-Git-Tag: 1.1.0beta1~40 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=12087188c87a45f7374998105198a395580d5490;p=hopm.git - autoreconf git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6105 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/Makefile.in b/Makefile.in index 2715fc3..d1252fd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -89,10 +89,12 @@ build_triplet = @build@ host_triplet = @host@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_arg_enable_assert.m4 \ + $(top_srcdir)/m4/ax_library_net.m4 \ + $(top_srcdir)/m4/gcc_stack_protect.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ diff --git a/aclocal.m4 b/aclocal.m4 index 58ea29f..4986549 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1204,6 +1204,9 @@ AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR +m4_include([m4/ax_arg_enable_assert.m4]) +m4_include([m4/ax_library_net.m4]) +m4_include([m4/gcc_stack_protect.m4]) m4_include([m4/libtool.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) diff --git a/configure b/configure index c30ba18..b4182c8 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Id: configure.ac 5943 2015-05-06 19:09:49Z michael . +# From configure.ac Id: configure.ac 6102 2015-06-11 12:38:55Z michael . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for hopm TRUNK. # @@ -773,6 +773,7 @@ with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock +enable_assert ' ac_precious_vars='build_alias host_alias @@ -1418,6 +1419,7 @@ Optional Features: --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) + --enable-assert Enable assert() statements Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -12275,65 +12277,121 @@ if test "$LEX" = :; then LEX=${am_missing_run}flex fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 -$as_echo_n "checking for library containing socket... " >&6; } -if ${ac_cv_search_socket+:} false; then : + + + if test "X$CC" != "X"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5 +$as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; } +if ${ssp_cv_cc+:} false; then : $as_echo_n "(cached) " >&6 else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext + ssp_old_cflags="$CFLAGS" + CFLAGS="$CFLAGS -fstack-protector-strong" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char socket (); int main () { -return socket (); + ; return 0; } _ACEOF -for ac_lib in '' socket; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_socket=$ac_res +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_exeext - if ${ac_cv_search_socket+:} false; then : - break +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$ssp_old_cflags" + fi -done -if ${ac_cv_search_socket+:} false; then : +{ $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-strong" + +$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h + else + unset ssp_cv_cc + { $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 - ac_cv_search_socket=no + 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 conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$ssp_old_cflags" + fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 -$as_echo "$ac_cv_search_socket" >&6; } -ac_res=$ac_cv_search_socket -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" +{ $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 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5 +$as_echo_n "checking whether libssp exists... " >&6; } +if ${ssp_cv_lib+:} false; then : + $as_echo_n "(cached) " >&6 else - as_fn_error $? "socket library not found" "$LINENO" 5 + ssp_old_libs="$LIBS" + LIBS="$LIBS -lssp" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ssp_cv_lib=yes +else + ssp_cv_lib=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ssp_old_libs" + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5 +$as_echo "$ssp_cv_lib" >&6; } + if test $ssp_cv_lib = yes; then + LIBS="$LIBS -lssp" + fi + + -ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" + ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" if test "x$ac_cv_func_getaddrinfo" = xyes; then : else @@ -12395,7 +12453,7 @@ fi fi -ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" + ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" if test "x$ac_cv_func_getnameinfo" = xyes; then : else @@ -12455,6 +12513,80 @@ if test "$ac_res" != no; then : fi +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +for ac_lib in '' socket; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_socket+:} false; then : + break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else + ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else + as_fn_error $? "socket library not found" "$LINENO" 5 +fi + + + + # Check whether --enable-assert was given. +if test "${enable_assert+set}" = set; then : + enableval=$enable_assert; assert=$enableval +else + assert=no +fi + + + if test "$assert" = "no"; then : + +$as_echo "#define NDEBUG 1" >>confdefs.h + fi diff --git a/doc/Makefile.in b/doc/Makefile.in index df8901d..4749e85 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -90,10 +90,12 @@ build_triplet = @build@ host_triplet = @host@ subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_arg_enable_assert.m4 \ + $(top_srcdir)/m4/ax_library_net.m4 \ + $(top_srcdir)/m4/gcc_stack_protect.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(dist_sysconf_DATA) \ diff --git a/src/Makefile.in b/src/Makefile.in index b688911..9b12b50 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -91,10 +91,12 @@ host_triplet = @host@ bin_PROGRAMS = hopm$(EXEEXT) subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_arg_enable_assert.m4 \ + $(top_srcdir)/m4/ax_library_net.m4 \ + $(top_srcdir)/m4/gcc_stack_protect.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) diff --git a/src/libopm/Makefile.in b/src/libopm/Makefile.in index dde39aa..2af20cb 100644 --- a/src/libopm/Makefile.in +++ b/src/libopm/Makefile.in @@ -89,10 +89,12 @@ build_triplet = @build@ host_triplet = @host@ subdir = src/libopm ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_arg_enable_assert.m4 \ + $(top_srcdir)/m4/ax_library_net.m4 \ + $(top_srcdir)/m4/gcc_stack_protect.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) diff --git a/src/libopm/src/Makefile.in b/src/libopm/src/Makefile.in index 784277a..37d9e83 100644 --- a/src/libopm/src/Makefile.in +++ b/src/libopm/src/Makefile.in @@ -90,10 +90,12 @@ build_triplet = @build@ host_triplet = @host@ subdir = src/libopm/src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_arg_enable_assert.m4 \ + $(top_srcdir)/m4/ax_library_net.m4 \ + $(top_srcdir)/m4/gcc_stack_protect.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) diff --git a/src/setup.h.in b/src/setup.h.in index 96fe728..9be2207 100644 --- a/src/setup.h.in +++ b/src/setup.h.in @@ -3,6 +3,9 @@ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD +/* Define if SSP C support is enabled. */ +#undef ENABLE_SSP_CC + /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H @@ -42,6 +45,9 @@ /* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR +/* Define to disable assert() statements. */ +#undef NDEBUG + /* Name of package */ #undef PACKAGE