X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=configure.in;h=fa2e063b713d44e9bb5e633875d6c091bc186187;hp=9616dfdcfc72e2af03d618e8223de6fc62f8004f;hb=74f971284e22505df5cafad491f9846fe84ff729;hpb=6fbb2b7a67fde6ebfc89db97018ed8c6d7ed76cf diff --git a/configure.in b/configure.in index 9616dfdc..fa2e063b 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.38 2002/03/29 22:51:28 alex Exp $ +# $Id: configure.in,v 1.47 2002/05/19 10:42:15 alex Exp $ # # -- Initialisierung -- @@ -17,7 +17,7 @@ AC_INIT AC_CANONICAL_TARGET AC_CONFIG_SRCDIR(src/config.h.in) -AM_INIT_AUTOMAKE(ngircd,0.3.0-CVS) +AM_INIT_AUTOMAKE(ngircd,CurrentCVS) AM_CONFIG_HEADER(src/config.h) # -- Templates fuer config.h -- @@ -51,13 +51,13 @@ AC_HEADER_STDC AC_HEADER_TIME -AC_CHECK_HEADERS(arpa/inet.h) - AC_CHECK_HEADERS([ \ - errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \ + ctype.h errno.h fcntl.h netdb.h netinet/in.h regex.h stdlib.h string.h \ sys/socket.h sys/time.h sys/wait.h unistd.h \ ],,AC_MSG_ERROR([required C header missing!])) +AC_CHECK_HEADERS(arpa/inet.h) + # -- Datentypen -- AC_MSG_CHECKING(whether socklen_t exists) @@ -76,6 +76,8 @@ AC_TRY_COMPILE([ # -- Libraries -- AC_CHECK_LIB(UTIL,memmove) +AC_CHECK_LIB(socket,bind) +AC_CHECK_LIB(nsl,gethostent) # -- Funktionen -- @@ -83,13 +85,11 @@ AC_FUNC_MALLOC AC_CHECK_FUNCS([ \ bind gethostbyaddr gethostbyname gethostname inet_ntoa memmove \ - memset select setsockopt socket strcasecmp strchr strerror strftime \ - strstr vsnprintf waitpid \ + memset regcomp select setsockopt socket strcasecmp strchr strerror \ + strftime strstr waitpid \ ],,AC_MSG_ERROR([required function missing!])) -AC_CHECK_FUNCS(inet_aton) - -AC_CHECK_FUNCS(sigaction) +AC_CHECK_FUNCS(inet_aton sigaction snprintf vsnprintf) # -- Konfigurationsoptionen -- @@ -146,6 +146,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 @@ -159,11 +165,13 @@ CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'" AC_OUTPUT([ \ Makefile \ doc/Makefile \ + doc/en/Makefile \ MacOSX/Makefile \ MacOSX/ngircd.pbproj/Makefile \ src/Makefile \ src/portab/Makefile \ src/ngircd/Makefile \ + man/Makefile \ ]) # -eof-