chiark / gitweb /
Makefiles: Break some settings out into common.make
[secnet.git] / configure.in
index 190aa942d7da028d37887f5584b3bfc23e5e8ab4..223997691a6322e33a4f716515311054390d67e3 100644 (file)
@@ -5,7 +5,7 @@ dnl See README for full list of copyright holders.
 dnl
 dnl secnet is free software; you can redistribute it and/or modify it
 dnl under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version d of the License, or
+dnl the Free Software Foundation; either version 3 of the License, or
 dnl (at your option) any later version.
 dnl 
 dnl secnet is distributed in the hope that it will be useful, but
@@ -77,13 +77,9 @@ AC_CHECK_LIB(gmp2,mpz_init_set_str)
 AC_CHECK_LIB(gmp,__gmpz_init_set_str)
 REQUIRE_HEADER([gmp.h])
 dnl Would love to barf if no gmp was found, but how to test? Requiring the header will do for now.
-AC_CHECK_LIB(fl,yywrap)
-if test "$ac_cv_lib_fl_yywrap" != yes; then
-  AC_MSG_ERROR([A compatible libfl is required])
-fi
-AC_CHECK_LIB(nsl,inet_ntoa)
+SECNET_C_GETFUNC(inet_ntoa,nsl)
 AC_CHECK_LIB(socket,socket)
-AC_CHECK_LIB(resolv,inet_aton)
+SECNET_C_GETFUNC(inet_aton,resolv)
 AC_CHECK_LIB(adns,adns_init)
 REQUIRE_HEADER([adns.h])
 
@@ -100,7 +96,7 @@ else
     AC_MSG_WARN([Disabling IPv6 support])
 fi
 
-AC_OUTPUT(Makefile,echo timestamp >stamp-h)
+AC_OUTPUT(Makefile common.make, echo timestamp >stamp-h)
 
 AH_TOP([
 #ifndef _CONFIG_H