From: michael Date: Thu, 25 Dec 2014 16:50:00 +0000 (+0000) Subject: - Modernizie build system some more X-Git-Tag: 1.0.0beta1~16 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=cb193185b2ecbb404be7713e997ec14c10d09c22;p=hopm.git - Modernizie build system some more git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5122 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/configure b/configure index 22ff393..f65f05c 100755 --- a/configure +++ b/configure @@ -12549,39 +12549,6 @@ $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -$as_echo_n "checking return type of signal handlers... " >&6; } -if ${ac_cv_type_signal+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include - -int -main () -{ -return *(signal (0, 0)) (0) == 1; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_type_signal=int -else - ac_cv_type_signal=void -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -$as_echo "$ac_cv_type_signal" >&6; } - -cat >>confdefs.h <<_ACEOF -#define RETSIGTYPE $ac_cv_type_signal -_ACEOF - - for ac_func in strftime do : ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" diff --git a/configure.ac b/configure.ac index 15011f2..3c42b85 100644 --- a/configure.ac +++ b/configure.ac @@ -7,13 +7,13 @@ AC_PREFIX_DEFAULT([\${HOME}/hopm]) AM_MAINTAINER_MODE AC_ARG_WITH(extra-fascism, - AC_HELP_STRING([--with-extra-fascism], + AS_HELP_STRING([--with-extra-fascism], [Add extra gcc3-specific warning flags]), [CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"]) dnl ipv6? dnl AC_ARG_ENABLE(ipv6, -dnl AC_HELP_STRING([--enable-ipv6], [Enable IPV6 support]), +dnl AS_HELP_STRING([--enable-ipv6], [Enable IPV6 support]), dnl [ac_cv_ipv6=$enableval], [ac_cv_ipv6="no"]) dnl AC_MSG_CHECKING([whether to enable IPv6 features]) @@ -46,7 +46,6 @@ AC_HEADER_TIME AC_STRUCT_TM dnl Checks for library functions. -AC_TYPE_SIGNAL AC_FUNC_STRFTIME dnl check for yacc @@ -92,7 +91,8 @@ typedef unsigned long uint32; AC_CONFIG_SUBDIRS(src/libopm) -AC_OUTPUT(Makefile doc/Makefile src/Makefile) +AC_CONFIG_FILES(Makefile doc/Makefile src/Makefile) +AC_OUTPUT echo "###############################################################################" diff --git a/src/libopm/configure.ac b/src/libopm/configure.ac index bf05fb4..414248b 100644 --- a/src/libopm/configure.ac +++ b/src/libopm/configure.ac @@ -7,12 +7,12 @@ AC_PREFIX_DEFAULT([/usr/local/libopm]) AM_MAINTAINER_MODE AC_ARG_WITH(extra-fascism, - AC_HELP_STRING([--with-extra-fascism], + AS_HELP_STRING([--with-extra-fascism], [add extra gcc3-specific warning flags]), [CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"]) dnl AC_ARG_WITH(faldo, -dnl AC_HELP_STRING([--with-faldo], +dnl AS_HELP_STRING([--with-faldo], dnl [make some use of Nick Faldo])) dnl Checks for programs. @@ -58,4 +58,5 @@ LTLIBOBJS=`echo "$LIB@&t@OBJS" | sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'` AC_SUBST(LTLIBOBJS) -AC_OUTPUT(Makefile src/Makefile) +AC_CONFIG_FILES(Makefile src/Makefile) +AC_OUTPUT diff --git a/src/main.c b/src/main.c index ee9325e..7cee08a 100644 --- a/src/main.c +++ b/src/main.c @@ -54,7 +54,7 @@ along with this program; if not, write to the Free Software #include "main.h" -static RETSIGTYPE do_signal(int signum); +static void do_signal(int signum); int RESTART = 0; /* Flagged to restart on next cycle */ int ALARMED = 0; /* Flagged to call timer functions on next cycle */ diff --git a/src/setup.h.in b/src/setup.h.in index 0e6a91b..5d89ef1 100644 --- a/src/setup.h.in +++ b/src/setup.h.in @@ -93,9 +93,6 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - /* The size of `int', as computed by sizeof. */ #undef SIZEOF_INT