]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - configure.ac
Fix evaluation that always is true
[people/ms/libloc.git] / configure.ac
index ace67d39eb04b2d1ba78a3feef8804190669ba95..567c6113abe534efe044fffd7f86e82501f2bf6a 100644 (file)
@@ -29,6 +29,10 @@ LT_INIT([
 ])
 AC_PREFIX_DEFAULT([/usr])
 
+IT_PROG_INTLTOOL([0.40.0])
+GETTEXT_PACKAGE=${PACKAGE_TARNAME}
+AC_SUBST(GETTEXT_PACKAGE)
+
 AC_PROG_SED
 AC_PROG_MKDIR_P
 
@@ -39,7 +43,22 @@ AS_IF([test "x$enable_debug" = "xyes"], [
         AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
 ])
 
+AC_CHECK_HEADERS_ONCE([
+       arpa/inet.h \
+       endian.h \
+       netinet/in.h \
+       string.h \
+])
+
 AC_CHECK_FUNCS([ \
+        be16toh \
+        be32toh \
+        be64toh \
+        htobe16 \
+        htobe32 \
+        htobe64 \
+        mmap \
+        munmap \
        __secure_getenv \
        secure_getenv \
         qsort \
@@ -60,9 +79,14 @@ my_CFLAGS="\
 "
 AC_SUBST([my_CFLAGS])
 
+# Python
+AM_PATH_PYTHON([3.4])
+PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}])
+
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
         Makefile
+        po/Makefile.in
 ])
 
 AC_OUTPUT
@@ -79,6 +103,5 @@ AC_MSG_RESULT([
         cflags:                 ${CFLAGS}
         ldflags:                ${LDFLAGS}
 
-        logging:                ${enable_logging}
         debug:                  ${enable_debug}
 ])