]> git.meshlink.io Git - catta/blobdiff - configure.ac
use AC_LANG_SOURCE to silence warnings from autoconf
[catta] / configure.ac
index 82d816e821d527ec0829042dd56c64fbecedd5c8..4fcf13d9433e59dbb670f919efadbd279dfe8002 100644 (file)
@@ -44,10 +44,8 @@ AS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_CC_C99
-AC_PROG_CXX
 AM_PROG_CC_C_O
 AC_USE_SYSTEM_EXTENSIONS
-AC_PROG_CPP
 AC_PROG_MKDIR_P
 AC_PROG_INSTALL
 AC_PROG_LN_S
@@ -228,7 +226,7 @@ AC_TRY_COMPILE([#include <netinet/in.h>], [
 ])
 
 test_gcc_flag() {
-    AC_LANG_CONFTEST([int main() {}])
+    AC_LANG_CONFTEST([AC_LANG_SOURCE([[int main() {}]])])
     $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
     ret=$?
     rm -f conftest.o
@@ -308,15 +306,6 @@ AC_CHECK_DECLS(environ)
 # check if gcc's -fvisibility is supported
 CHECK_VISIBILITY_HIDDEN
 
-IT_PROG_INTLTOOL([0.35.0])
-GETTEXT_PACKAGE=avahi
-AC_SUBST([GETTEXT_PACKAGE])
-AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
-AM_GLIB_GNU_GETTEXT
-
-avahilocaledir='${prefix}/${DATADIRNAME}/locale'
-AC_SUBST(avahilocaledir)
-
 # Check for pkg-config manually first, as if its not installed the
 # PKG_PROG_PKG_CONFIG macro won't be defined.
 AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no)
@@ -340,16 +329,6 @@ DX_PDF_FEATURE(OFF)
 DX_PS_FEATURE(OFF)
 DX_INIT_DOXYGEN(avahi, doxygen.cfg, doxygen)
 
-AC_ARG_ENABLE(core-docs,
-        AS_HELP_STRING([--enable-core-docs],[Enable building of documentation for avahi-core]),
-[case "${enableval}" in
-  yes) ENABLE_CORE_DOCS=yes ;;
-  no)  ENABLE_CORE_DOCS=no ;;
-  *) AC_MSG_ERROR([bad value ${enableval} for --enable-core-docs]) ;;
-esac],[ENABLE_CORE_DOCS=no])
-
-AM_CONDITIONAL([ENABLE_CORE_DOCS], [test "x$ENABLE_CORE_DOCS" = xyes])
-
 #
 # Conditionally compile test and example programs
 #
@@ -371,7 +350,6 @@ avahi-common/Makefile
 avahi-core/Makefile
 examples/Makefile
 common/Makefile
-po/Makefile.in
 ])
 AC_OUTPUT
 
@@ -390,5 +368,4 @@ echo "
 echo "\
     Building libavahi-core              yes
     Building tests:                     ${ENABLE_TESTS}
-    Building avahi-core documentation:  ${ENABLE_CORE_DOCS}
 "