try autoreconfing our way to a happier AC_CHECK_LIB
This commit is contained in:
parent
d0a5f0000b
commit
1df83267bd
|
@ -0,0 +1,17 @@
|
||||||
|
Try to correctly find res_mkquery in libresolv, even in cases where a
|
||||||
|
preprocessor-based rename in <resolv.h> may screw us up.
|
||||||
|
--- hesiod-3.1.0/configure.in 2006-03-30 11:22:11.000000000 -0500
|
||||||
|
+++ hesiod-3.1.0/configure.in 2006-03-30 13:31:02.000000000 -0500
|
||||||
|
@@ -12,7 +12,11 @@
|
||||||
|
AC_EGREP_HEADER(pw_change, pwd.h, AC_DEFINE(HAVE_PW_CHANGE))
|
||||||
|
AC_EGREP_HEADER(pw_expire, pwd.h, AC_DEFINE(HAVE_PW_EXPIRE))
|
||||||
|
|
||||||
|
-AC_CHECK_FUNC(res_mkquery, :, [AC_CHECK_LIB(resolv, res_mkquery)])
|
||||||
|
+AC_CHECK_FUNC(res_mkquery, :, [AC_CHECK_LIB(resolv, res_mkquery,,[
|
||||||
|
+saveLIBS="$LIBS"
|
||||||
|
+LIBS="-lresolv $LIBS"
|
||||||
|
+AC_TRY_LINK([#include <resolv.h>],[res_mkquery(0,NULL,0,0,NULL,0,NULL,NULL,0);],[AC_DEFINE(HAVE_RES_MKQUERY,1,[Define if your libresolv provides res_mkquery.])],[LIBS="$saveLIBS"])
|
||||||
|
+])])
|
||||||
|
|
||||||
|
AC_CONFIG_HEADER(config.h)
|
||||||
|
AC_OUTPUT(Makefile)
|
|
@ -10,6 +10,7 @@ Summary: Hesiod libraries.
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: MIT
|
License: MIT
|
||||||
Buildroot: %{_tmppath}/hesiod-root
|
Buildroot: %{_tmppath}/hesiod-root
|
||||||
|
BuildRequires: autoconf, automake, libtool
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Hesiod is a system which uses existing DNS functionality to provide access
|
Hesiod is a system which uses existing DNS functionality to provide access
|
||||||
|
@ -156,6 +157,7 @@ the header files and libraries required for building programs which use Hesiod.
|
||||||
%patch1 -p1 -b .env
|
%patch1 -p1 -b .env
|
||||||
%patch2 -p1 -b .str
|
%patch2 -p1 -b .str
|
||||||
%patch3 -p1 -b .dnsparse
|
%patch3 -p1 -b .dnsparse
|
||||||
|
autoreconf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
|
Loading…
Reference in New Issue