91 lines
2.6 KiB
Text
91 lines
2.6 KiB
Text
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.57)
|
|
AC_INIT(LLADD, 0.1, sears@cs.berkeley.edu)
|
|
AM_INIT_AUTOMAKE(hello,0.1)
|
|
AC_CONFIG_SRCDIR([config.h.in])
|
|
AC_CONFIG_HEADER([config.h])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CXX
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
AC_PROG_MAKE_SET
|
|
## Need AC_PROG_LIBTOOL
|
|
AC_PROG_LIBTOOL
|
|
#AC_PROG_RANLIB
|
|
|
|
# Checks for libraries.
|
|
|
|
#AM_PATH_CHECK(,[have_check="yes"],
|
|
# AC_MSG_WARN([Check not found; cannot run unit tests!])
|
|
# [have_check="no"])
|
|
#AM_CONDITIONAL(HAVE_CHECK, test x"$have_check", "xyes")
|
|
|
|
AM_PATH_CHECK(,[have_check=true],
|
|
AC_MSG_WARN([Check not found; cannot run unit tests!])
|
|
[have_check=false])
|
|
AM_CONDITIONAL(HAVE_CHECK, test x$have_check = xtrue)
|
|
|
|
## alas, it won't link if this is put in here.. instead, it's linked in manually in the test directory...
|
|
|
|
#AC_ARG_ENABLE(efence,
|
|
#[ --enable-efence Use electric fence (www.perens.com)],
|
|
#[case "$enableval" in \
|
|
# yes) efence=yes ;; \
|
|
# no) efence=no;; \
|
|
# *) efence=no;; \
|
|
#esac], [efence=no])
|
|
#
|
|
#dnl Check for efence
|
|
#if test $efence = yes; then
|
|
#AC_CHECK_LIB(efence,memalign)
|
|
#fi
|
|
|
|
AC_CHECK_LIB([m], [sqrt])
|
|
AC_CHECK_LIB([pthread], [pthread_create])
|
|
|
|
# Checks for header files.
|
|
AC_HEADER_DIRENT
|
|
AC_HEADER_STDC
|
|
AC_HEADER_SYS_WAIT
|
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h malloc.h memory.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h errno.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_C_CONST
|
|
AC_TYPE_PID_T
|
|
AC_TYPE_SIZE_T
|
|
AC_HEADER_TIME
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_MALLOC
|
|
AC_FUNC_MEMCMP
|
|
AC_FUNC_STAT
|
|
AC_CHECK_FUNCS([bzero fdatasync getcwd gettimeofday inet_ntoa memmove memset mkdir socket sqrt strchr strdup strerror strrchr strstr strtoul])
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
libdfa/Makefile
|
|
lladd/Makefile
|
|
pbl/Makefile
|
|
src/2pc/Makefile
|
|
src/Makefile
|
|
src/apps/Makefile
|
|
src/apps/cht/Makefile
|
|
src/apps/cyrus/Makefile
|
|
src/libdfa/Makefile
|
|
src/lladd/Makefile
|
|
src/pbl/Makefile
|
|
src/timing/Makefile
|
|
test/2pc/Makefile
|
|
test/Makefile
|
|
test/cht/Makefile
|
|
test/dfa/Makefile
|
|
test/lladd-old/Makefile
|
|
test/lladd/Makefile
|
|
test/messages/Makefile
|
|
test/monotree/Makefile
|
|
utilities/Makefile])
|
|
AC_OUTPUT
|