]> git.ipfire.org Git - location/libloc.git/blobdiff - configure.ac
po: Import translation strings
[location/libloc.git] / configure.ac
index cd224eb423ee201334617d3093ad5adebe20e564..418c1b7fefd82d29f791b294d16c3a20b89dcfc7 100644 (file)
@@ -1,6 +1,6 @@
 AC_PREREQ(2.60)
 AC_INIT([libloc],
-        [0],
+        [0.9.1],
         [michael.tremer@ipfire.org],
         [libloc],
         [https://www.ipfire.org/])
@@ -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)
 
@@ -62,23 +66,27 @@ AS_IF([test "x$enable_debug" = "xyes"], [
 
 AC_CHECK_HEADERS_ONCE([
        arpa/inet.h \
+       arpa/nameser.h \
+       arpa/nameser_compat.h \
        endian.h \
        netinet/in.h \
+    resolv.h \
        string.h \
 ])
 
 AC_CHECK_FUNCS([ \
-        be16toh \
-        be32toh \
-        be64toh \
-        htobe16 \
-        htobe32 \
-        htobe64 \
-        mmap \
-        munmap \
+    be16toh \
+    be32toh \
+    be64toh \
+    htobe16 \
+    htobe32 \
+    htobe64 \
+    mmap \
+    munmap \
+    res_query \
        __secure_getenv \
        secure_getenv \
-        qsort \
+    qsort \
 ])
 
 my_CFLAGS="\
@@ -145,6 +153,24 @@ AX_PROG_PERL_MODULES(ExtUtils::MakeMaker,, AC_MSG_WARN(Need some Perl modules))
 AC_ARG_ENABLE(perl, AS_HELP_STRING([--disable-perl], [do not build the perl modules]), [],[enable_perl=yes])
 AM_CONDITIONAL(ENABLE_PERL, test "$enable_perl" = "yes")
 
+dnl Checking for libresolv
+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([
         Makefile