From d558a844149b8303538a8e7b60f8d5009eaa82d7 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 26 Apr 2005 19:53:45 +0000 Subject: Solaris compatibility patches --- configure.in | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 7f59ab4..2527c67 100644 --- a/configure.in +++ b/configure.in @@ -66,12 +66,16 @@ fi ACX_PTHREAD( , [echo "ERROR: Pthread support not found."; exit 1] ) LIBS="$PTHREAD_LIBS $LIBS" -CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +CFLAGS="$CFLAGS $PTHREAD_CFLAGS -D_POSIX_PTHREAD_SEMANTICS" + +# Some checks for Solaris +AC_CHECK_LIB(socket, getsockname) +AC_CHECK_LIB(nsl, getaddrinfo) # Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(limits.h,,) -AC_CHECK_HEADERS([unistd.h stdio.h stddef.h fcntl.h stdlib.h assert.h errno.h stdarg.h err.h string.h], , +AC_CHECK_HEADERS([limits.h err.h paths.h],,) +AC_CHECK_HEADERS([unistd.h stdio.h stddef.h fcntl.h stdlib.h assert.h errno.h stdarg.h string.h netdb.h], , [echo "ERROR: Required C header missing"; exit 1]) # Check for linux type transparent proxy support @@ -93,10 +97,14 @@ AC_CHECK_DECL(PTHREAD_MUTEX_ERRORCHECK_NP, [AC_DEFINE(HAVE_ERR_MUTEX, 1, "Error [AC_CHECK_DECL(PTHREAD_MUTEX_ERRORCHECK, [AC_DEFINE(HAVE_ERR_MUTEX, 2)], , [ #include ])], [ #include ]) +# Required Variables +AC_CHECK_MEMBER(struct tm.tm_gmtoff,,,[ #include ]) +AC_CHECK_GLOBAL(__argv) + # Required Functions AC_CHECK_FUNCS([memset strerror malloc realloc getopt strchr tolower getaddrinfo], , [echo "ERROR: Required function missing"; exit 1]) -AC_CHECK_FUNCS([strlwr strlcat strlcpy strncat strncpy]) +AC_CHECK_FUNCS([strlwr strlcat strlcpy strncat strncpy setenv daemon]) # Have to resolve this for the path below if test "${prefix}" = "NONE"; then -- cgit v1.2.3