X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=configure.in;h=ea01e60bbceaf51541a9782a5948c41a24ea11fd;hp=948663ddf2edc322ac945e0656c9b6d6e7bfad44;hb=4bf569288846d80da85ac7851e195232796f7385;hpb=2ebc35e18beb08b3ac95a4c06b1fd7f3fd8b44fe diff --git a/configure.in b/configure.in index 948663dd..ea01e60b 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.42 2002/03/31 20:55:07 alex Exp $ +# $Id: configure.in,v 1.53 2002/05/27 13:12:47 alex Exp $ # # -- Initialisierung -- @@ -35,7 +35,6 @@ AH_TEMPLATE([TARGET_CPU], [Target CPU name]) # -- C Compiler -- AC_PROG_CC -AC_LANG_C # -- Hilfsprogramme -- @@ -45,7 +44,12 @@ AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB -AC_CHECK_PROGS([NROFF], [groff nroff]) +# -- Compiler Features -- + +AC_LANG_C + +AM_C_PROTOTYPES +AC_C_CONST # -- Header -- @@ -53,13 +57,15 @@ AC_HEADER_STDC AC_HEADER_TIME -AC_CHECK_HEADERS(arpa/inet.h) +AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([ \ - 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 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 malloc.h regex.h stdint.h varargs.h) + # -- Datentypen -- AC_MSG_CHECKING(whether socklen_t exists) @@ -75,23 +81,31 @@ AC_TRY_COMPILE([ AC_MSG_RESULT(no) ]) +AC_TYPE_SIGNAL + +AC_TYPE_SIZE_T + # -- Libraries -- AC_CHECK_LIB(UTIL,memmove) +AC_CHECK_LIB(socket,bind) +AC_CHECK_LIB(nsl,gethostent) # -- Funktionen -- 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 \ - strstr vsnprintf waitpid \ + memset select setsockopt socket strcasecmp strchr strerror \ + strstr waitpid \ ],,AC_MSG_ERROR([required function missing!])) -AC_CHECK_FUNCS(inet_aton) - -AC_CHECK_FUNCS(sigaction) +AC_CHECK_FUNCS(inet_aton regcomp sigaction snprintf vsnprintf) # -- Konfigurationsoptionen -- @@ -148,6 +162,12 @@ AC_DEFINE_UNQUOTED(TARGET_CPU, "$target_cpu" ) AC_DEFINE_UNQUOTED(TARGET_VENDOR, "$target_vendor" ) AC_DEFINE_UNQUOTED(TARGET_OS, "$target_os" ) +if test `uname` = "A/UX"; then + # unter A/UX sollte _POSIX_SOURCE definiert sein. + AC_MSG_RESULT([detected A/UX, defining _POSIX_SOURCE]) + CFLAGS="$CFLAGS -D_POSIX_SOURCE" +fi + # -- Variablen -- if test "$GCC" = "yes"; then @@ -156,17 +176,12 @@ fi CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'" -if test `uname` = "A/UX"; then - # unter A/UX sollte _POSIX_SOURCE definiert sein. - AC_MSG_RESULT([detected A/UX, defining _POSIX_SOURCE]) - CFLAGS="$CFLAGS -D_POSIX_SOURCE" -fi - # -- Ausgabe -- AC_OUTPUT([ \ Makefile \ doc/Makefile \ + doc/en/Makefile \ MacOSX/Makefile \ MacOSX/ngircd.pbproj/Makefile \ src/Makefile \