X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/94ca562bb14422940ff1986ce8dfca87c222cb59..695904f2c095fff219d59d6caf1695e32aec3430:/configure.in diff --git a/configure.in b/configure.in index 9250f75..57c2076 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,22 @@ dnl Process this file with autoconf to produce a configure script. +dnl This file is part of secnet. +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 (at your option) any later version. +dnl +dnl secnet is distributed in the hope that it will be useful, but +dnl WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl version 3 along with secnet; if not, see +dnl https://www.gnu.org/licenses/gpl.html. + sinclude(ac_prog_cc_no_writeable_strings.m4) AC_INIT(secnet,0.1.18+,secnet@chiark.greenend.org.uk) @@ -66,7 +83,10 @@ if test "$ac_cv_lib_fl_yywrap" != yes; then fi AC_CHECK_LIB(nsl,inet_ntoa) AC_CHECK_LIB(socket,socket) -AC_CHECK_LIB(resolv,inet_aton) +ADNS_C_GETFUNC(inet_aton,resolv,[ + LIBS="-lresolv $LIBS"; + AC_MSG_WARN([inet_aton is in libresolv, urgh. Must use -lresolv.]) +]) AC_CHECK_LIB(adns,adns_init) REQUIRE_HEADER([adns.h])