1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-07-14 15:32:49 +00:00

- POSIX Regular Expressions werden nun vorausgesetzt,

- Test auf snprintf und vsnprintf geaendert.
This commit is contained in:
Alexander Barton 2002-05-19 10:42:15 +00:00
parent 75f1c5ec33
commit e9a9bdda13

View File

@ -9,7 +9,7 @@
# Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
# der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. # 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 -- # -- 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([SNIFFER], [Define if IRC sniffer should be enabled])
AH_TEMPLATE([STRICT_RFC], [Define if ngIRCd should behave strict RFC compliant]) 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([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_OS], [Target operating system name])
AH_TEMPLATE([TARGET_VENDOR], [Target system vendor]) AH_TEMPLATE([TARGET_VENDOR], [Target system vendor])
@ -53,14 +52,12 @@ AC_HEADER_STDC
AC_HEADER_TIME AC_HEADER_TIME
AC_CHECK_HEADERS([ \ 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 \ sys/socket.h sys/time.h sys/wait.h unistd.h \
],,AC_MSG_ERROR([required C header missing!])) ],,AC_MSG_ERROR([required C header missing!]))
AC_CHECK_HEADERS(arpa/inet.h) AC_CHECK_HEADERS(arpa/inet.h)
AC_CHECK_HEADERS(regex.h,regex_h_ok=1)
# -- Datentypen -- # -- Datentypen --
AC_MSG_CHECKING(whether socklen_t exists) AC_MSG_CHECKING(whether socklen_t exists)
@ -88,17 +85,11 @@ AC_FUNC_MALLOC
AC_CHECK_FUNCS([ \ AC_CHECK_FUNCS([ \
bind gethostbyaddr gethostbyname gethostname inet_ntoa memmove \ bind gethostbyaddr gethostbyname gethostname inet_ntoa memmove \
memset select setsockopt socket strcasecmp strchr strerror strftime \ memset regcomp select setsockopt socket strcasecmp strchr strerror \
strstr waitpid \ strftime strstr waitpid \
],,AC_MSG_ERROR([required function missing!])) ],,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 -- # -- Konfigurationsoptionen --
@ -161,12 +152,6 @@ if test `uname` = "A/UX"; then
CFLAGS="$CFLAGS -D_POSIX_SOURCE" CFLAGS="$CFLAGS -D_POSIX_SOURCE"
fi 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 -- # -- Variablen --
if test "$GCC" = "yes"; then if test "$GCC" = "yes"; then