217N/A [sssd-devel@lists.fedorahosted.org])
217N/AAC_CONFIG_AUX_DIR([build])
217N/Am4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
217N/A [AC_USE_SYSTEM_EXTENSIONS],
217N/ACFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
217N/AAM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax])
217N/Am4_ifdef([AM_PROG_AR], [AM_PROG_AR])
217N/Am4_ifdef([AC_PROG_MKDIR_P],
217N/AAC_CONFIG_MACRO_DIR([m4])
217N/AAM_GNU_GETTEXT([external])
217N/AAM_GNU_GETTEXT_VERSION([0.14])
217N/AAC_SUBST([PRERELEASE_VERSION],
217N/A PRERELEASE_VERSION_NUMBER)
217N/AAC_DEFINE([PRERELEASE_VERSION], "PRERELEASE_VERSION_NUMBER",
217N/A [Prerelease version number of package])
217N/Am4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
217N/AAM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
217N/ABUILD_WITH_SHARED_BUILD_DIR
217N/A [[pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;]])],
217N/A [AC_DEFINE([HAVE_PTHREAD], [1], [Pthread mutexes available.])
217N/A [AC_MSG_WARN([Pthread library not found! Clients will not be thread safe...])])
217N/AAM_CONDITIONAL([HAVE_PTHREAD], [test x"$HAVE_PTHREAD" != "x"])
217N/AAC_CHECK_FUNCS([ pthread_mutexattr_setrobust \
217N/A pthread_mutex_consistent \
217N/A pthread_mutexattr_setrobust_np \
217N/A pthread_mutex_consistent_np ])
217N/A# Check for presence of modern functions for setting file timestamps
217N/AAC_CHECK_FUNCS([ utimensat \
217N/A#Check for endian headers
217N/A#Set the NSS library install path
217N/AAC_ARG_ENABLE([nsslibdir], [AS_HELP_STRING([--enable-nsslibdir],
217N/A [Where to install nss libraries ($libdir)])],
217N/A [nsslibdir=$enableval],
217N/A#Set the PAM module install path
217N/AAC_ARG_ENABLE([pammoddir], [AS_HELP_STRING([--enable-pammoddir],
217N/A [pammoddir=$enableval],
217N/A#Set the NFSv4 idmapd library install path
217N/AAC_ARG_ENABLE([nfsidmaplibdir], [AS_HELP_STRING([--enable-nfsidmaplibdir],
217N/A [nfsidmaplibdir=$enableval],
217N/AAC_SUBST(nfsidmaplibdir)
217N/AWITH_DEFAULT_CCNAME_TEMPLATE
217N/AWITH_KRB5AUTHDATA_PLUGIN_PATH
217N/Aif test x$build_config_lib = xyes; then
217N/Aif test x$unicode_lib = xlibunistring; then
217N/A AC_DEFINE_UNQUOTED(HAVE_LIBUNISTRING, 1, [Using libunistring for unicode])
217N/A UNICODE_LIBS=$UNISTRING_LIBS
217N/A AC_DEFINE_UNQUOTED(HAVE_GLIB2, 1, [Using glib2 for unicode])
217N/A UNICODE_LIBS=$GLIB2_LIBS
217N/Aif test x$HAVE_NSCD; then
217N/Aif test x$initscript = xsystemd; then
217N/APKG_CHECK_MODULES([DBUS],[dbus-1])
217N/Adnl if test -n "`$PKG_CONFIG --modversion dbus-1 | grep '^0\.'`" ; then
217N/Aif ! $PKG_CONFIG --atleast-version 1.0.0 dbus-1; then
217N/A DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
217N/A AC_MSG_RESULT([setting -DDBUS_API_SUBJECT_TO_CHANGE])
217N/Aif test x$has_dbus != xno; then
217N/A AC_CHECK_FUNC([dbus_watch_get_unix_fd],
217N/A AC_DEFINE([HAVE_DBUS_WATCH_GET_UNIX_FD], [1],
217N/A [Define if dbus_watch_get_unix_fd exists]))
217N/A# work around a bug in cov-build from Coverity
217N/Atest -n "$XML_CATALOG_FILES" || unset XML_CATALOG_FILES
217N/Aif test x$HAVE_MANPAGES != x; then
217N/A CHECK_STYLESHEET([$SGML_CATALOG_FILES],
217N/A [Docbook XSL profiling templates],
217N/A [HAVE_PROFILE_CATALOGS=1],
217N/A [AC_MSG_WARN([Man pages might contain documentation for experimental features])])
217N/A if test x$HAVE_PROFILE_CATALOGS == x; then
217N/A CHECK_STYLESHEET([$SGML_CATALOG_FILES],
217N/A [Docbook XSL templates],
217N/A [AC_MSG_ERROR([could not find the docbook xsl catalog])])
217N/A AC_CHECK_PROG([PO4A],[po4a],[po4a],[no])
217N/AAM_CONDITIONAL([HAVE_PROFILE_CATALOGS], [test "x$HAVE_PROFILE_CATALOGS" != "x"])
217N/AAM_CONDITIONAL([HAVE_MANPAGES], [test "x$HAVE_MANPAGES" != "x"])
217N/AAM_CONDITIONAL([HAVE_PO4A], [test "x$PO4A" != "xno"])
217N/Aif test x$HAVE_PYTHON_BINDINGS != x; then
217N/A AM_CHECK_PYTHON_HEADERS([],
217N/A AC_MSG_ERROR([Could not find python headers]))
217N/Aif test x$HAVE_SELINUX != x; then
217N/A AM_CHECK_SELINUX_LOGIN_DIR
217N/Aif test x$HAVE_SEMANAGE != x -a x$HAVE_SELINUX != x; then
217N/Aif test x$HAVE_SYSTEMD_UNIT != x; then
217N/Adnl If journald was selected for logging, configure journald
217N/Aif test x$syslog = xjournald; then
217N/Aif test x$cryptolib = xnss; then
217N/Aif test x$cryptolib = xlibcrypto; then
217N/AAC_CACHE_CHECK([whether compiler supports __attribute__((destructor))],
217N/A sss_client_cv_attribute_destructor,
217N/A [AC_LANG_SOURCE([__attribute__((destructor)) static void cleanup(void) { }])],
217N/A sss_client_cv_attribute_destructor=yes)
217N/Aif test x"$sss_client_cv_attribute_destructor" = xyes ; then
217N/A AC_DEFINE(HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR, 1,
217N/A [whether compiler supports __attribute__((destructor))])
217N/AAC_CACHE_CHECK([whether compiler supports __attribute__((format))],
217N/A sss_cv_attribute_format,
217N/A [void debug_fn(const char *format, ...) __attribute__ ((format (printf, 1, 2)));]
217N/A [sss_cv_attribute_format=yes],
217N/A AC_MSG_WARN([compiler does NOT support __attribute__((format))])
217N/Aif test x"$sss_cv_attribute_format" = xyes ; then
217N/A AC_DEFINE(HAVE_FUNCTION_ATTRIBUTE_FORMAT, 1,
217N/A [whether compiler supports __attribute__((format))])
217N/APKG_CHECK_MODULES([CHECK], [check >= 0.9.5], [have_check=1], [have_check=])
217N/Aif test x$have_check = x; then
217N/A AC_MSG_WARN([Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite])
217N/A AC_CHECK_HEADERS([
check.h],,AC_MSG_ERROR([Could not find CHECK headers]))
217N/AAC_PATH_PROG([DOXYGEN], [doxygen], [false])
217N/AAM_CONDITIONAL([HAVE_DOXYGEN], [test x$DOXYGEN != xfalse ])
217N/AAM_CONDITIONAL([HAVE_CHECK], [test x$have_check != x])
217N/AAC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory])
217N/AAC_SUBST([abs_builddir], $abs_build_dir)