# 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
])
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
# 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)
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
#
avahi-core/Makefile
examples/Makefile
common/Makefile
-po/Makefile.in
])
AC_OUTPUT
echo "\
Building libavahi-core yes
Building tests: ${ENABLE_TESTS}
- Building avahi-core documentation: ${ENABLE_CORE_DOCS}
"