]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - configure.ac
network-list: Include network header
[people/ms/libloc.git] / configure.ac
index 733a648a25f30236722c7f22aba65f42790dc0e9..2364dfdea32301e7d6556716413f2fbb52d4eea8 100644 (file)
@@ -1,9 +1,9 @@
 AC_PREREQ(2.60)
 AC_INIT([libloc],
-        [0],
-        [michael.tremer@ipfire.org],
+        [0.9.4],
+        [location@lists.ipfire.org],
         [libloc],
-        [https://www.ipfire.org/])
+        [https://location.ipfire.org/])
 
 AC_CONFIG_SRCDIR([src/libloc.c])
 AC_CONFIG_AUX_DIR([build-aux])
@@ -31,6 +31,10 @@ AC_PREFIX_DEFAULT([/usr])
 gl_LD_VERSION_SCRIPT
 
 IT_PROG_INTLTOOL([0.40.0])
+
+# Interpret embedded Python in HTML files
+XGETTEXT="${XGETTEXT} -L Python --keyword=_:1,2 --keyword=N_:1,2 --no-location"
+
 GETTEXT_PACKAGE=${PACKAGE_TARNAME}
 AC_SUBST(GETTEXT_PACKAGE)
 
@@ -150,12 +154,22 @@ 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_SUBST(RESOLV_LIBS)
+
+dnl Checking for OpenSSL
+LIBS=
+AC_CHECK_LIB(crypto, EVP_EncryptInit,, AC_MSG_ERROR([libcrypto has not been found]))
+OPENSSL_LIBS="${LIBS}"
+AC_SUBST(OPENSSL_LIBS)
 
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([