1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(proplist.l)
AM_INIT_AUTOMAKE(libPropList, 0.8.2)
dnl Checks for programs.
AC_PROG_CC
AM_PROG_LEX
AC_PROG_YACC
AC_PROG_MAKE_SET
AM_PROG_LIBTOOL
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h unistd.h crypt.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
#AC_CHECK_FUNCS(gethostname gethostbyname gettimeofday mkdir rmdir select strstr socket)
if test "$HAVE_SOCKET" = ""; then
AC_CHECK_LIB(socket, socket, XTRALIBS="$XTRALIBS -lsocket")
fi
if test "$HAVE_GETHOSTBYNAME" = ""; then
AC_CHECK_LIB(nsl, gethostbyname, XTRALIBS="$XTRALIBS -lnsl")
fi
AC_CHECK_LIB(crypt, crypt, LIBCRYPT="-lcrypt", LIBCRYPT="")
AC_SUBST(LIBSOCK)
AC_SUBST(LIBCRYPT)
AC_SUBST(XTRALIBS)
AC_OUTPUT(Makefile)
#defaults/Makefile Makefile gsdd/Makefile)
|