Commit 1b2d9d94 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added check for HPUX and struct sockaddr.

Added AC_HAVE_FUNCS(vfprintf).
Added AC_REPLACE_FUNCS(remove strchr memset memchr).
parent d038f562
......@@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
dnl This configure.in was derived from the configure.in in the
dnl GNU regex package, rel 0.11. Since LysKOM uses that package,
dnl this configure script must include everything it needs.
AC_REVISION($Id: configure.in,v 1.5 1993/10/12 16:31:15 ceder Exp $)
AC_REVISION($Id: configure.in,v 1.6 1993/10/12 23:22:44 ceder Exp $)
AC_INIT(src/server/lyskomd.h)
AC_PROG_CC
AC_AIX
......@@ -10,6 +10,17 @@ AC_ISC_POSIX
AC_MINIX
AC_DYNIX_SEQ
AC_IRIX_SUN
AC_COMPILE_CHECK([HPUX and struct sockaddr], dnl
[#include <sys/socket.h>], dnl
[struct sockaddr foo;], dnl
[test -n "$verbose" && echo ' 'No action needed], dnl
[test -n "$verbose" && echo ' 'Checking for a fix; dnl
AC_COMPILE_CHECK([_HPUX_SOURCE to fix problems], dnl
[#define _HPUX_SOURCE
#include <sys/socket.h>], dnl
[struct sockaddr foo;], dnl
AC_DEFINE(_HPUX_SOURCE), dnl
)])dnl
[SRCTOPDIR=`cd $srcdir;pwd`]
[BUILDTOPDIR=`pwd`]
dnl
......@@ -70,8 +81,8 @@ AC_HAVE_LIBRARY(resolv)
AC_HAVE_LIBRARY(authuser)
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_FUNCS(difftime getdtablesize sysconf getcwd)
AC_REPLACE_FUNCS(memcpy difftime strerror)
AC_HAVE_FUNCS(difftime getdtablesize sysconf getcwd vfprintf)
AC_REPLACE_FUNCS(memcpy difftime strerror remove strchr memset memchr)
[DEFS="$DEFS -DBUGGY_INET_NTOA=1 -DENCRYPT_PASSWORDS=1 -DSERVER=1"]
AC_SUBST(ALL_DESCEND)
[ALL_DESCEND="$INCLUDES_DESCEND\\
......@@ -137,5 +148,4 @@ src/libraries/libmisc/Makefile
src/libraries/regex/Makefile
src/libraries/regex/doc/Makefile
src/libraries/regex/test/Makefile
src/server/Makefile
)
src/server/Makefile)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment