2 dnl (c) Index Data 1994-1999
3 dnl See the file LICENSE for details.
4 dnl $Id: configure.in,v 1.4 1999-04-22 14:26:38 adam Exp $
5 AC_INIT(include/zebraver.h)
6 dnl ------ Substitutions
9 dnl ------ Checking programs
17 AC_CHECK_FUNC(connect)
18 if test "$ac_cv_func_connect" = "no"; then
19 AC_CHECK_LIB(socket, main, LIBS="$LIBS -lsocket", checkBoth=1)
21 if test "$checkBoth" = "1"; then
23 LIBS="$LIBS -lsocket -lnsl"
24 AC_CHECK_FUNC(accept, , [LIBS=$oldLibs])
26 AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"]))
29 AC_CHECK_LIB(wrap, main, [LIBS="$LIBS -lwrap"])
33 if test "$ac_cv_header_stdc" = "no"; then
34 AC_MSG_WARN(Your system doesn't seem to support ANSI C)
38 AC_OUTPUT(Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile)