2010-07-13 12:15:46 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT(dna.c)
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
AC_CHECK_LIB(c,srandomdev)
|
|
|
|
|
2011-12-01 19:14:32 +00:00
|
|
|
AC_CHECK_HEADERS(stdio.h errno.h stdlib.h strings.h unistd.h string.h arpa/inet.h sys/socket.h sys/mman.h sys/time.h poll.h netdb.h linux/if.h linux/netlink.h linux/rtnetlink.h net/if.h netinet/in.h ifaddrs.h net/route.h signal.h)
|
2011-10-16 21:41:05 +00:00
|
|
|
|
|
|
|
echo "Fetching and building NaCl if required."
|
|
|
|
echo "(this can take HOURS to build depending on your architecture,"
|
|
|
|
echo " but fortunately it only needs to happen once.)"
|
|
|
|
./nacl-gcc-prep
|
|
|
|
LDFLAGS="$LDFLAGS "`cat naclbuilddir.txt`"/libnacl.a"
|
2010-07-13 12:15:46 +00:00
|
|
|
|
|
|
|
AC_CHECK_LIB(nsl,callrpc,[LDFLAGS="$LDFLAGS -lnsl"])
|
|
|
|
AC_CHECK_LIB(socket,socket,[LDFLAGS="$LDFLAGS -lsocket"])
|
|
|
|
|
|
|
|
AC_OUTPUT(Makefile)
|