X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=configure.in;h=7bb612a5004efcd515533299608dffdabc858b96;hp=49a8e9d898a4ffa3c770ffb3c5d8cdebfe1d568a;hb=6430410158c66b38c8b048c353e896a61e4ba931;hpb=2aeb0025cfd02f329327f8f2f5729d5dd19fe62e diff --git a/configure.in b/configure.in index 49a8e9d8..7bb612a5 100644 --- a/configure.in +++ b/configure.in @@ -9,7 +9,7 @@ # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. # -# $Id: configure.in,v 1.46 2002/05/19 01:14:42 alex Exp $ +# $Id: configure.in,v 1.52 2002/05/27 13:03:11 alex Exp $ # # -- Initialisierung -- @@ -27,7 +27,6 @@ AH_TEMPLATE([HAVE_socklen_t], [Define if socklen_t exists]) AH_TEMPLATE([SNIFFER], [Define if IRC sniffer should be enabled]) AH_TEMPLATE([STRICT_RFC], [Define if ngIRCd should behave strict RFC compliant]) AH_TEMPLATE([USE_SYSLOG], [Define if syslog should be used for logging]) -AH_TEMPLATE([REGEX], [Define if POSIX regular expression functions are available]) AH_TEMPLATE([TARGET_OS], [Target operating system name]) AH_TEMPLATE([TARGET_VENDOR], [Target system vendor]) @@ -36,7 +35,6 @@ AH_TEMPLATE([TARGET_CPU], [Target CPU name]) # -- C Compiler -- AC_PROG_CC -AC_LANG_C # -- Hilfsprogramme -- @@ -46,20 +44,27 @@ AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB +# -- Compiler Features -- + +AC_LANG_C + +AM_C_PROTOTYPES +AC_C_CONST + # -- Header -- AC_HEADER_STDC AC_HEADER_TIME +AC_HEADER_SYS_WAIT + AC_CHECK_HEADERS([ \ - ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \ - sys/socket.h sys/time.h sys/wait.h unistd.h \ + ctype.h errno.h fcntl.h netdb.h netinet/in.h regex.h stdlib.h string.h \ + strings.h sys/socket.h sys/time.h unistd.h \ ],,AC_MSG_ERROR([required C header missing!])) -AC_CHECK_HEADERS(arpa/inet.h) - -AC_CHECK_HEADERS(regex.h,regex_h_ok=1) +AC_CHECK_HEADERS(arpa/inet.h malloc.h regex.h stdint.h varargs.h) # -- Datentypen -- @@ -76,6 +81,10 @@ AC_TRY_COMPILE([ AC_MSG_RESULT(no) ]) +AC_TYPE_SIGNAL + +AC_TYPE_SIZE_T + # -- Libraries -- AC_CHECK_LIB(UTIL,memmove) @@ -86,19 +95,17 @@ AC_CHECK_LIB(nsl,gethostent) AC_FUNC_MALLOC +AC_FUNC_FORK + +AC_FUNC_STRFTIME + AC_CHECK_FUNCS([ \ bind gethostbyaddr gethostbyname gethostname inet_ntoa memmove \ - memset select setsockopt socket strcasecmp strchr strerror strftime \ + memset select setsockopt socket strcasecmp strchr strerror \ strstr waitpid \ ],,AC_MSG_ERROR([required function missing!])) -AC_CHECK_FUNCS(inet_aton) - -AC_CHECK_FUNCS(regcomp,regcomp_ok=1) - -AC_CHECK_FUNCS(sigaction) - -AC_CHECK_FUNCS(vsnprintf) +AC_CHECK_FUNCS(inet_aton regcomp sigaction snprintf vsnprintf) # -- Konfigurationsoptionen -- @@ -161,12 +168,6 @@ if test `uname` = "A/UX"; then CFLAGS="$CFLAGS -D_POSIX_SOURCE" fi -if test "$regcomp_ok" -eq 1 -a "$regex_h_ok" -eq 1; then - # POSIX Regular Expression Library ist verfuegbar - AC_MSG_RESULT([detected POSIX regular expression library]) - AC_DEFINE(REGEX) -fi - # -- Variablen -- if test "$GCC" = "yes"; then