|
|
3203f72 |
Patch by Robert Scheck <robert@fedoraproject.org> for eggdrop >= 1.6.21,
|
|
|
8553a98 |
which makes the configure script looking for gethostbyname() in libc rather
|
|
|
8553a98 |
in libdns. The problem especially comes up, once bind-devel gets added into
|
|
|
8553a98 |
buildroot at the build system (#433111). In difference to the suggestion by
|
|
|
8553a98 |
Adam Tkac <atkac@redhat.com>, the configure script itself gets patched, as
|
|
|
8553a98 |
autoconf, as shipped with Red Hat Enterprise Linux 4 (including downstreams
|
|
|
8553a98 |
and derivates), is unfortunately too old since eggdrop >= 1.6.20.
|
|
|
8553a98 |
|
|
|
3203f72 |
--- eggdrop1.6.21/aclocal.m4 2011-10-26 04:00:10.000000000 +0200
|
|
|
3203f72 |
+++ eggdrop1.6.21/aclocal.m4.no_libdns 2012-01-08 20:47:11.000000000 +0100
|
|
|
3203f72 |
@@ -808,7 +808,7 @@
|
|
|
8553a98 |
else
|
|
|
8553a98 |
AC_CHECK_LIB(socket, socket)
|
|
|
8553a98 |
AC_CHECK_LIB(nsl, connect)
|
|
|
8553a98 |
- AC_CHECK_LIB(dns, gethostbyname)
|
|
|
8553a98 |
+ AC_CHECK_LIB(c, gethostbyname)
|
|
|
8553a98 |
AC_CHECK_LIB(dl, dlopen)
|
|
|
8553a98 |
AC_CHECK_LIB(m, tan, EGG_MATH_LIB="-lm")
|
|
|
8553a98 |
|
|
|
3203f72 |
--- eggdrop1.6.21/configure 2011-10-26 04:00:10.000000000 +0200
|
|
|
3203f72 |
+++ eggdrop1.6.21/configure.no_libdns 2012-01-08 20:50:39.000000000 +0100
|
|
|
3203f72 |
@@ -4642,13 +4642,13 @@
|
|
|
8553a98 |
|
|
|
8553a98 |
fi
|
|
|
8553a98 |
|
|
|
8553a98 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -ldns" >&5
|
|
|
8553a98 |
-$as_echo_n "checking for gethostbyname in -ldns... " >&6; }
|
|
|
3203f72 |
-if ${ac_cv_lib_dns_gethostbyname+:} false; then :
|
|
|
8553a98 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc" >&5
|
|
|
8553a98 |
+$as_echo_n "checking for gethostbyname in -lc... " >&6; }
|
|
|
3203f72 |
+if ${ac_cv_lib_c_gethostbyname+:} false; then :
|
|
|
8553a98 |
$as_echo_n "(cached) " >&6
|
|
|
8553a98 |
else
|
|
|
8553a98 |
ac_check_lib_save_LIBS=$LIBS
|
|
|
8553a98 |
-LIBS="-ldns $LIBS"
|
|
|
8553a98 |
+LIBS="-lc $LIBS"
|
|
|
8553a98 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
8553a98 |
/* end confdefs.h. */
|
|
|
8553a98 |
|
|
|
3203f72 |
@@ -4668,22 +4668,22 @@
|
|
|
8553a98 |
}
|
|
|
8553a98 |
_ACEOF
|
|
|
8553a98 |
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
8553a98 |
- ac_cv_lib_dns_gethostbyname=yes
|
|
|
8553a98 |
+ ac_cv_lib_c_gethostbyname=yes
|
|
|
8553a98 |
else
|
|
|
8553a98 |
- ac_cv_lib_dns_gethostbyname=no
|
|
|
8553a98 |
+ ac_cv_lib_c_gethostbyname=no
|
|
|
8553a98 |
fi
|
|
|
8553a98 |
rm -f core conftest.err conftest.$ac_objext \
|
|
|
8553a98 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
8553a98 |
LIBS=$ac_check_lib_save_LIBS
|
|
|
8553a98 |
fi
|
|
|
8553a98 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_gethostbyname" >&5
|
|
|
8553a98 |
-$as_echo "$ac_cv_lib_dns_gethostbyname" >&6; }
|
|
|
3203f72 |
-if test "x$ac_cv_lib_dns_gethostbyname" = xyes; then :
|
|
|
8553a98 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname" >&5
|
|
|
8553a98 |
+$as_echo "$ac_cv_lib_c_gethostbyname" >&6; }
|
|
|
3203f72 |
+if test "x$ac_cv_lib_c_gethostbyname" = xyes; then :
|
|
|
8553a98 |
cat >>confdefs.h <<_ACEOF
|
|
|
8553a98 |
-#define HAVE_LIBDNS 1
|
|
|
8553a98 |
+#define HAVE_LIBC 1
|
|
|
8553a98 |
_ACEOF
|
|
|
8553a98 |
|
|
|
8553a98 |
- LIBS="-ldns $LIBS"
|
|
|
8553a98 |
+ LIBS="-lc $LIBS"
|
|
|
8553a98 |
|
|
|
8553a98 |
fi
|
|
|
8553a98 |
|