chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comm,site: Make peer address configuration the responsibility of comm (udp)
[secnet.git]
/
configure.in
diff --git
a/configure.in
b/configure.in
index 3970809c095fa623a25101e958bd0d67061779ab..29ced956f70575a1583b3f283d3cda80325d6f16 100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-2,7
+2,7
@@
dnl Process this file with autoconf to produce a configure script.
sinclude(ac_prog_cc_no_writeable_strings.m4)
sinclude(ac_prog_cc_no_writeable_strings.m4)
-AC_INIT(secnet,0.1.1
6
+,secnet@chiark.greenend.org.uk)
+AC_INIT(secnet,0.1.1
8
+,secnet@chiark.greenend.org.uk)
AC_CONFIG_SRCDIR(secnet.c)
AC_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR(secnet.c)
AC_CONFIG_HEADER(config.h)
@@
-33,6
+33,16
@@
AC_CHECK_SIZEOF(unsigned short)
AC_CHECK_SIZEOF(unsigned char)
AC_PROG_CC_NO_WRITEABLE_STRINGS(WRITESTRINGS)
AC_CHECK_SIZEOF(unsigned char)
AC_PROG_CC_NO_WRITEABLE_STRINGS(WRITESTRINGS)
+AC_ARG_ENABLE(hacky-parallel,
+ [AS_HELP_STRING([--enable-hacky-parallel],
+ [parallelise slow cryptography (default is no)])], [
+ case "$enableval" in
+ n|0|no) ;;
+ y|1|yes) CFLAGS="$CFLAGS -DHACKY_PARALLEL" ;;
+ *) ;;
+ esac
+])
+
AC_DEFUN([REQUIRE_HEADER],[AC_CHECK_HEADER($1,,[AC_MSG_ERROR($1 not found)])])
dnl the order in which libraries is checked is important
AC_DEFUN([REQUIRE_HEADER],[AC_CHECK_HEADER($1,,[AC_MSG_ERROR($1 not found)])])
dnl the order in which libraries is checked is important
@@
-47,8
+57,6
@@
if test "$ac_cv_lib_fl_yywrap" != yes; then
AC_MSG_ERROR([A compatible libfl is required])
fi
AC_CHECK_LIB(nsl,inet_ntoa)
AC_MSG_ERROR([A compatible libfl is required])
fi
AC_CHECK_LIB(nsl,inet_ntoa)
-AC_CHECK_LIB(getopt,getopt_long)
-AC_CHECK_LIB(gnugetopt,getopt_long)
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(resolv,inet_aton)
AC_CHECK_LIB(adns,adns_init)
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(resolv,inet_aton)
AC_CHECK_LIB(adns,adns_init)
@@
-56,8
+64,6
@@
REQUIRE_HEADER([adns.h])
dnl check for getopt in standard library
AC_REPLACE_FUNCS([snprintf])
dnl check for getopt in standard library
AC_REPLACE_FUNCS([snprintf])
-AC_CHECK_FUNC([getopt_long], [], [AC_LIBOBJ([getopt])
- AC_LIBOBJ([getopt1])])
AC_OUTPUT(Makefile,echo timestamp >stamp-h)
AC_OUTPUT(Makefile,echo timestamp >stamp-h)