Updated WIN32 code specific sections. Changed header.
[idzebra-moved-to-github.git] / configure.in
1 dnl YAZ/Zebra Toolkit
2 dnl (c) Index Data 1994-1998
3 dnl See the file LICENSE for details.
4 dnl $Id: configure.in,v 1.3 1998-10-28 15:20:42 adam Exp $
5 AC_INIT(include/zebraver.h)
6 dnl ------ Substitutions
7 AC_SUBST(ODEFS)
8 dnl
9 dnl ------ Checking programs
10 AC_PROG_CC
11 AC_PROG_CPP
12 AC_PROG_INSTALL
13 AC_PROG_RANLIB
14 dnl
15 dnl ----- Sockets
16 checkBoth=0
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)
20 fi
21 if test "$checkBoth" = "1"; then
22         oldLibs=$LIBS
23         LIBS="$LIBS -lsocket -lnsl"
24         AC_CHECK_FUNC(accept, , [LIBS=$oldLibs])
25 fi
26 AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"]))
27 dnl
28 dnl ------ Headers
29 AC_STDC_HEADERS
30 if test "$ac_cv_header_stdc" = "no"; then
31         AC_MSG_WARN(Your system doesn't seem to support ANSI C)
32 fi
33 dnl
34 dnl ------ Makefiles
35 AC_OUTPUT(Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile)