update Changes
[catagits/fcgi2.git] / perl / configure.in
index fafcc04..4f5240f 100644 (file)
@@ -1,96 +1,16 @@
-dnl     $Id: configure.in,v 1.6 2001/08/30 14:32:38 robs Exp $
+dnl     $Id: configure.in,v 1.9 2001/09/22 09:30:45 skimo Exp $
 dnl
 dnl     This file is an input file used by the GNU "autoconf" program to
 dnl     generate the file "configure", which is run during the build
 dnl     to configure the system for the local environment.
-dnl
 
 AC_INIT
-AC_CONFIG_HEADER(fcgi_config.h)
-AC_CONFIG_SRCDIR([fcgiapp.c])
-
-AC_PROG_CC
-AC_PROG_CPP
-
-AC_CHECK_TYPE(ssize_t, int) 
-
-AC_MSG_CHECKING(for sun_len in sys/un.h)
-AC_EGREP_HEADER(sun_len,
-   sys/un.h,
-   AC_MSG_RESULT(yes)
-   AC_DEFINE(HAVE_SOCKADDR_UN_SUN_LEN),
-   AC_MSG_RESULT(no))
 
-AC_CHECK_FUNCS(strerror)
-AC_REPLACE_FUNCS(strerror)
+AM_CONFIG_HEADER([fcgi_config.h])
 
-AC_MSG_CHECKING(for fpos in stdio.h)
-AC_EGREP_HEADER(fpos_t,
-   stdio.h,
-   AC_MSG_RESULT(yes)
-   AC_DEFINE(HAVE_FPOS),
-   AC_MSG_RESULT(no))
-
-AC_CHECK_HEADERS([sys/socket.h],[have_sys_socket=yes])
-AC_CHECK_HEADERS([netdb.h])
-AC_CHECK_HEADERS([netinet/in.h])
-AC_CHECK_HEADERS([arpa/inet.h])
-AC_CHECK_HEADERS([sys/time.h])
-AC_CHECK_HEADERS([limits.h])
-
-if test "x$have_sys_socket" = "xyes"; then
-    AC_MSG_CHECKING(for socklen_t in sys/socket.h)
-    AC_EGREP_HEADER(socklen_t,
-       sys/socket.h,
-       AC_MSG_RESULT(yes)
-       AC_DEFINE(HAVE_SOCKLEN),
-       AC_MSG_RESULT(no))
-fi
-
-#--------------------------------------------------------------------
-#  Do we need cross-process locking on this platform?
-#--------------------------------------------------------------------
-AC_MSG_CHECKING("if this machine needs cross-process locking")
-case "`uname -sr`" in
-    IRIX\ 5.*) 
-       AC_DEFINE(USE_LOCKING)
-       AC_MSG_RESULT(yes)
-    ;;
-    SunOS\ 5.*)        
-       AC_DEFINE(USE_LOCKING)
-       AC_MSG_RESULT(yes)
-    ;;
-    UNIX_System_V\ 4.0)
-       AC_DEFINE(USE_LOCKING)
-       AC_MSG_RESULT(yes)
-    ;;
-    *)
-       AC_MSG_RESULT(no)
-    ;;
-esac
-
-#--------------------------------------------------------------------
-#  Does va_arg(arg, long double) crash the compiler?
-#  hpux 9.04 compiler does and so does Stratus FTX (uses HP's compiler)
-#--------------------------------------------------------------------
-AC_MSG_CHECKING(if va_arg(arg, long double) crashes the compiler)
-AC_TRY_COMPILE([#include <stdarg.h>],
-   [long double lDblArg; va_list arg; lDblArg = va_arg(arg, long double);],
-   AC_MSG_RESULT(no),
-   AC_DEFINE(HAVE_VA_ARG_LONG_DOUBLE_BUG)
-   AC_MSG_RESULT(yes))
+AC_PROG_CC
+AC_PROG_CPP 
 
-#--------------------------------------------------------------------
-#  What's the target system?
-#--------------------------------------------------------------------
-case "$PLATFORM_CLASS" in
-    WINDOWS)   
-       SYSTEM="win32"
-    ;;
-    UNIX)      
-       SYSTEM="unix"
-    ;;
-esac
+FCGI_COMMON_CHECKS
 
-AC_SUBST(SYSTEM)
 AC_OUTPUT