commit - 75f1c5ec33e6d631015208ffaa12aae7ba90c336
commit + e9a9bdda132c1de9e9ccff9b19a305ad75bf0d18
blob - 49a8e9d898a4ffa3c770ffb3c5d8cdebfe1d568a
blob + fa2e063b713d44e9bb5e633875d6c091bc186187
--- configure.in
+++ configure.in
# 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.47 2002/05/19 10:42:15 alex Exp $
#
# -- Initialisierung --
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])
AC_HEADER_TIME
AC_CHECK_HEADERS([ \
- ctype.h 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)
-AC_CHECK_HEADERS(regex.h,regex_h_ok=1)
-
# -- Datentypen --
AC_MSG_CHECKING(whether socklen_t exists)
AC_CHECK_FUNCS([ \
bind gethostbyaddr gethostbyname gethostname inet_ntoa memmove \
- memset select setsockopt socket strcasecmp strchr strerror strftime \
- strstr 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(inet_aton sigaction snprintf vsnprintf)
-AC_CHECK_FUNCS(regcomp,regcomp_ok=1)
-
-AC_CHECK_FUNCS(sigaction)
-
-AC_CHECK_FUNCS(vsnprintf)
-
# -- Konfigurationsoptionen --
AC_ARG_ENABLE(syslog,
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