Commit f60ee33f authored by Michael Tremer's avatar Michael Tremer

configure: Fix platform detection

Checking for GNU platforms now instead of just Linux.
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent f13bc1aa
......@@ -150,11 +150,14 @@ AC_ARG_ENABLE(perl, AS_HELP_STRING([--disable-perl], [do not build the perl modu
AM_CONDITIONAL(ENABLE_PERL, test "$enable_perl" = "yes")
dnl Checking for libresolv
if test ${gm_platform} = "linux" ; then
AC_CHECK_LIB(resolv, ns_msg_getflag, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([libresolv has not been found]), -lresolv)
else
AC_CHECK_LIB(resolv, res_init, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([libresolv has not been found]), -lresolv)
fi
case "${host}" in
*-gnu*)
AC_CHECK_LIB(resolv, ns_msg_getflag, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([libresolv has not been found]), -lresolv)
;;
*)
AC_CHECK_LIB(resolv, res_init, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([libresolv has not been found]), -lresolv)
;;
esac
RESOLV_LIBS="${LIBS}"
AC_CONFIG_HEADERS(config.h)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment