* broken hesiod check
@ 2006-08-23 14:30 Guillaume Rousse
2006-08-23 14:46 ` Guillaume Rousse
0 siblings, 1 reply; 2+ messages in thread
From: Guillaume Rousse @ 2006-08-23 14:30 UTC (permalink / raw)
To: autofs
The hesiod check macros breaks configure script by changing LIBS value
inconditionally, wich is evil.
This patch correct this, by saving and restoring original value as needed.
diff -Naur autofs-5.0.1/aclocal.m4 autofs-5.0.1-fix-hesiod-check/aclocal.m4
--- autofs-5.0.1/aclocal.m4 2006-07-13 10:11:38.000000000 +0200
+++ autofs-5.0.1-fix-hesiod-check/aclocal.m4 2006-08-23
15:29:28.000000000 +0200
@@ -178,7 +178,11 @@
dnl
--------------------------------------------------------------------------
AC_DEFUN([AF_CHECK_LIBHESIOD],
[AC_MSG_CHECKING(for libhesiod)
-LIBS="$LIBHESIOD -lhesiod -lresolv"
+
+# save current ldflags
+af_check_hesiod_save_ldflags="$LDFLAGS"
+LDFLAGS="$LDFLAGS -lhesiod -lresolv"
+
AC_TRY_LINK(
[ #include <hesiod.h> ],
[ char *c; hesiod_init(&c); ],
@@ -186,5 +190,8 @@
LIBHESIOD="$LIBHESIOD -lhesiod -lresolv"
AC_MSG_RESULT(yes) ],
[ AC_MSG_RESULT(no) ])
+
+# restore ldflags
+LDFLAGS="$af_check_hesiod_save_ldflags"
])
--
Guillaume Rousse
Projet Estime, INRIA
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex - France
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: broken hesiod check
2006-08-23 14:30 broken hesiod check Guillaume Rousse
@ 2006-08-23 14:46 ` Guillaume Rousse
0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Rousse @ 2006-08-23 14:46 UTC (permalink / raw)
To: autofs
Guillaume Rousse wrote:
> The hesiod check macros breaks configure script by changing LIBS value
> inconditionally, wich is evil.
I forget to precise it had also the unpleasant effect of making all
following checks (sasl, ldap) fails because -lhesiod is systematically
added to the linking attempt.
--
Guillaume Rousse
Projet Estime, INRIA
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex - France
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-23 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-23 14:30 broken hesiod check Guillaume Rousse
2006-08-23 14:46 ` Guillaume Rousse
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.