configure.ac revision b9c563c29243291f40489bb0dcbf3946fca72d58
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3Timo SirainenAC_PREREQ(2.59)
d5abbb932a0a598f002da39a8b3326643b1b5efcTimo SirainenAC_INIT([sssd],
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen VERSION_NUMBER,
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen [sssd-devel@lists.fedorahosted.org])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAC_CONFIG_SRCDIR([BUILD.txt])
c5383a0ed56a188a7d5efaaa4c6f8243af432d65Timo SirainenAC_CONFIG_AUX_DIR([build])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainenm4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen [AC_USE_SYSTEM_EXTENSIONS],
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen [AC_GNU_SOURCE])
b42f37ae6f65ed986315b6885568d32115e589b1Timo SirainenCFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
b42f37ae6f65ed986315b6885568d32115e589b1Timo SirainenAM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects tar-pax
b42f37ae6f65ed986315b6885568d32115e589b1Timo Sirainen parallel-tests])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAM_PROG_CC_C_O
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainenm4_ifdef([AM_PROG_AR], [AM_PROG_AR])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAC_DISABLE_STATIC
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAC_PROG_INSTALL
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenm4_ifdef([AC_PROG_MKDIR_P],
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen [AC_PROG_MKDIR_P],
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen [AC_SUBST([MKDIR_P], "mkdir -p")])
0dffa25d211be541ee3c953b23566a1a990789dfTimo SirainenAC_CONFIG_MACRO_DIR([m4])
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenAM_GNU_GETTEXT([external])
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenAM_GNU_GETTEXT_VERSION([0.14.4])
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenAC_SUBST([PRERELEASE_VERSION],
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen PRERELEASE_VERSION_NUMBER)
137ea7ca34005345aa2304a940149b7f3774d727Timo SirainenAC_DEFINE([PRERELEASE_VERSION], "PRERELEASE_VERSION_NUMBER",
137ea7ca34005345aa2304a940149b7f3774d727Timo Sirainen [Prerelease version number of package])
9f431ccfb6932746db56245c8a3d3415717ef545Timo SirainenAM_CONDITIONAL([GIT_CHECKOUT], [git log -1 >/dev/null 2>&1])
9f431ccfb6932746db56245c8a3d3415717ef545Timo Sirainenm4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
9f431ccfb6932746db56245c8a3d3415717ef545Timo SirainenAM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
9f431ccfb6932746db56245c8a3d3415717ef545Timo SirainenAC_CONFIG_HEADER(config.h)
6fabfb7bbfd88d0c1de66981e52850f26067623bTimo SirainenAC_CHECK_TYPES([errno_t], [], [], [[#include <errno.h>]])
9f431ccfb6932746db56245c8a3d3415717ef545Timo SirainenBUILD_WITH_SHARED_BUILD_DIR
9f431ccfb6932746db56245c8a3d3415717ef545Timo SirainenAC_COMPILE_IFELSE(
2cfe9983ce7a6280636ee12beccc2e865111967bTimo Sirainen [AC_LANG_PROGRAM([[#include <pthread.h>]],
2cfe9983ce7a6280636ee12beccc2e865111967bTimo Sirainen [[pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen (void) m; /* unused */
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainen [AC_DEFINE([HAVE_PTHREAD], [1], [Pthread mutexes available.])
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainen HAVE_PTHREAD=1
0f39a57760d93cddbce3ca43096d78e0fe2f42fdTimo Sirainen [AC_MSG_WARN([Pthread library not found! Clients will not be thread safe...])])
0f39a57760d93cddbce3ca43096d78e0fe2f42fdTimo SirainenAM_CONDITIONAL([HAVE_PTHREAD], [test x"$HAVE_PTHREAD" != "x"])
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen# Check library for the timer_create function
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenSAVE_LIBS=$LIBS
48010d123abfac8cb19f33f1fe12f33a7090089eTimo SirainenAC_SEARCH_LIBS([timer_create], [rt posix4],
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainen [AC_DEFINE([HAVE_LIBRT], [1],
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainen [Define if you have the librt library or equivalent.])
6135260095e1704ed6edff9d00bdfc043c11429cTimo Sirainen LIBADD_TIMER="$LIBS"],
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainen [AC_MSG_ERROR([unable to find library fot the timer_create() function])])
48010d123abfac8cb19f33f1fe12f33a7090089eTimo SirainenAC_SUBST([LIBADD_TIMER])
48010d123abfac8cb19f33f1fe12f33a7090089eTimo SirainenLIBS=$SAVE_LIBS
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# Check for presence of modern functions for setting file timestamps
0f39a57760d93cddbce3ca43096d78e0fe2f42fdTimo SirainenAC_CHECK_FUNCS([ utimensat \
6fabfb7bbfd88d0c1de66981e52850f26067623bTimo Sirainen#Check for endian headers
6fabfb7bbfd88d0c1de66981e52850f26067623bTimo SirainenAC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAC_C_BIGENDIAN([AC_DEFINE(HAVE_BIG_ENDIAN, [1], [whether platform is big endian])],
6fabfb7bbfd88d0c1de66981e52850f26067623bTimo Sirainen [AC_DEFINE(HAVE_LITTLE_ENDIAN, [1], [whether platform is little endian])])
a30b52af112bc98b74b8624e9a5d20cb754b2ab7Timo Sirainen#Set the NSS library install path
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAC_ARG_ENABLE([nsslibdir], [AS_HELP_STRING([--enable-nsslibdir],
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen [Where to install nss libraries ($libdir)])],
3c9783956dea385b322cd7fa6bf8c98c17a907a0Timo Sirainen [nsslibdir=$enableval],
3c9783956dea385b322cd7fa6bf8c98c17a907a0Timo Sirainen [nsslibdir=$libdir])
3c9783956dea385b322cd7fa6bf8c98c17a907a0Timo SirainenAC_SUBST(nsslibdir)
3c9783956dea385b322cd7fa6bf8c98c17a907a0Timo Sirainen#Set the PAM module install path
3c9783956dea385b322cd7fa6bf8c98c17a907a0Timo SirainenAC_ARG_ENABLE([pammoddir], [AS_HELP_STRING([--enable-pammoddir],
3c9783956dea385b322cd7fa6bf8c98c17a907a0Timo Sirainen [Where to install pam modules ($libdir/security)])],
3c9783956dea385b322cd7fa6bf8c98c17a907a0Timo Sirainen [pammoddir=$enableval],
3c9783956dea385b322cd7fa6bf8c98c17a907a0Timo SirainenAC_SUBST(pammoddir)
66d2db642fe24d555d113ba463e446b038d476efTimo Sirainen#Set the NFSv4 idmapd library install path
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAC_ARG_ENABLE([nfsidmaplibdir], [AS_HELP_STRING([--enable-nfsidmaplibdir],
b42f37ae6f65ed986315b6885568d32115e589b1Timo Sirainen [Where to install libnfsidmap libraries ($libdir/libnfsidmap)])],
b42f37ae6f65ed986315b6885568d32115e589b1Timo Sirainen [nfsidmaplibdir=$enableval],
b42f37ae6f65ed986315b6885568d32115e589b1Timo Sirainen [nfsidmaplibdir=$libdir/libnfsidmap])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAC_SUBST(nfsidmaplibdir)
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainen#Include here cause WITH_INIT_DIR requires $osname set in platform.m4
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo SirainenWITH_PLUGIN_PATH
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo SirainenWITH_PUBCONF_PATH
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo SirainenWITH_PIPE_PATH
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenWITH_MCACHE_PATH
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo SirainenWITH_DEFAULT_CCACHE_DIR
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenWITH_DEFAULT_CCNAME_TEMPLATE
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenWITH_ENVIRONMENT_FILE
a7bee3930831a9261fa6180d02af29c484d862e9Timo SirainenWITH_XML_CATALOG
38ceb710e2bc957a66a75c68957cb87746682a75Timo SirainenWITH_KRB5_PLUGIN_PATH
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenWITH_KRB5_RCACHE_DIR
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenWITH_KRB5AUTHDATA_PLUGIN_PATH
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenWITH_KRB5_CONF
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_PYTHON2_BINDINGS
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_PYTHON3_BINDINGS
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_CIFS_PLUGIN_PATH
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_WINBIND_PLUGIN_PATH
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_IPA_GETKEYTAB
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_AD_GPO_DEFAULT
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_GPO_CACHE_PATH
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_NOLOGIN_SHELL
e9371f899a3d4207a0ffd3923ea5ec7250cf5e75Timo SirainenWITH_SUDO_LIB_PATH
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo SirainenWITH_NFS_LIB_PATH
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo SirainenWITH_LIBWBCLIENT
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo SirainenWITH_SSSD_USER
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo SirainenSSSD_RUNSTATEDIR
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo SirainenWITH_SECRETS_DB_PATH
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenif test x$with_secrets = xyes; then
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenif test x$with_kcm = xyes; then
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen# This variable is defined by external/libcurl.m4, but conditionals
e9371f899a3d4207a0ffd3923ea5ec7250cf5e75Timo Sirainen# must be always evaluated
48010d123abfac8cb19f33f1fe12f33a7090089eTimo SirainenAM_CONDITIONAL([BUILD_WITH_LIBCURL],
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen [test x"$have_curlopt_unix_sockpath" = xyes])
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_UNICODE_LIB
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenif test x$unicode_lib = xlibunistring; then
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen AC_DEFINE_UNQUOTED(HAVE_LIBUNISTRING, 1, [Using libunistring for unicode])
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen UNICODE_LIBS=$UNISTRING_LIBS
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen AC_DEFINE_UNQUOTED(HAVE_GLIB2, 1, [Using glib2 for unicode])
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen UNICODE_LIBS=$GLIB2_LIBS
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenAC_SUBST(UNICODE_LIBS)
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenif test x$HAVE_NSCD; then
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen WITH_NSCD_CONF
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenWITH_INITSCRIPT
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenif test x$initscript = xsystemd; then
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen WITH_SYSTEMD_UNIT_DIR
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainen WITH_SYSTEMD_CONF_DIR
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainen CHECK_SERVICE_EXECUTABLE
48010d123abfac8cb19f33f1fe12f33a7090089eTimo SirainenPKG_CHECK_MODULES([DBUS],[dbus-1])
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainendnl if test -n "`$PKG_CONFIG --modversion dbus-1 | grep '^0\.'`" ; then
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainenif ! $PKG_CONFIG --atleast-version 1.0.0 dbus-1; then
48010d123abfac8cb19f33f1fe12f33a7090089eTimo Sirainen DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen AC_MSG_RESULT([setting -DDBUS_API_SUBJECT_TO_CHANGE])
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenif test x$has_dbus != xno; then
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen SAFE_LIBS="$LIBS"
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen LIBS="$DBUS_LIBS"
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen SAFE_CFLAGS=$CFLAGS
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen CFLAGS="$CFLAGS $DBUS_CFLAGS"
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen AC_CHECK_FUNC([dbus_watch_get_unix_fd],
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen AC_DEFINE([HAVE_DBUS_WATCH_GET_UNIX_FD], [1],
e9371f899a3d4207a0ffd3923ea5ec7250cf5e75Timo Sirainen [Define if dbus_watch_get_unix_fd exists]))
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen AC_CHECK_TYPES([DBusBasicValue],
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen [ #include <dbus/dbus.h> ])
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen LIBS="$SAFE_LIBS"
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen CFLAGS=$SAFE_CFLAGS
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen# work around a bug in cov-build from Coverity
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainentest -n "$XML_CATALOG_FILES" || unset XML_CATALOG_FILES
849969f639a00eab26791db3cb1b66430420c0cdTimo Sirainenif test x$HAVE_MANPAGES != x; then
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen CHECK_XML_TOOLS
b42f37ae6f65ed986315b6885568d32115e589b1Timo Sirainen DOCBOOK_XSLT=http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl
849969f639a00eab26791db3cb1b66430420c0cdTimo Sirainen CHECK_STYLESHEET([$SGML_CATALOG_FILES],
e665999b757e60bfb98e5a84a78b05f061453140Timo Sirainen [$DOCBOOK_XSLT],
c5383a0ed56a188a7d5efaaa4c6f8243af432d65Timo Sirainen [Docbook XSL profiling templates],
74674a53a72dab535c61f455b2246ef2797844eaTimo Sirainen [HAVE_PROFILE_CATALOGS=1],
849969f639a00eab26791db3cb1b66430420c0cdTimo Sirainen [AC_MSG_WARN([Man pages might contain documentation for experimental features])])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen if test x$HAVE_PROFILE_CATALOGS = x; then
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen DOCBOOK_XSLT=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
f3d506e525a720f214020ca0f989a1966b30edaeTimo Sirainen CHECK_STYLESHEET([$SGML_CATALOG_FILES],
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen [$DOCBOOK_XSLT],
b42f37ae6f65ed986315b6885568d32115e589b1Timo Sirainen [Docbook XSL templates],
66d2db642fe24d555d113ba463e446b038d476efTimo Sirainen [AC_MSG_ERROR([could not find the docbook xsl catalog])])
b42f37ae6f65ed986315b6885568d32115e589b1Timo Sirainen AC_CHECK_PROG([PO4A],[po4a],[po4a],[no])
f8a86fdfb0048f9c87bf223373b35416ceb5856bTimo Sirainen AC_SUBST(DOCBOOK_XSLT)
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo SirainenAM_CONDITIONAL([HAVE_PROFILE_CATALOGS], [test "x$HAVE_PROFILE_CATALOGS" != "x"])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAM_CONDITIONAL([HAVE_MANPAGES], [test "x$HAVE_MANPAGES" != "x"])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAM_CONDITIONAL([HAVE_PO4A], [test "x$PO4A" != "xno"])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAC_CHECK_PROG(HAVE_PYTHON2, python2, yes, no)
b42f37ae6f65ed986315b6885568d32115e589b1Timo SirainenAS_IF([test x$HAVE_PYTHON2 = xyes],
b42f37ae6f65ed986315b6885568d32115e589b1Timo Sirainen [AC_PATH_PROG(PYTHON2, python2)])
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo SirainenAC_CHECK_PROG(HAVE_PYTHON3, python3, yes, no)
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenAS_IF([test x$HAVE_PYTHON3 = xyes],
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen [AC_PATH_PROG(PYTHON3, python3)])
1f1e81aab38d833d1c9cdc244c91fd762e0080d4Timo Sirainenif test x$HAVE_PYTHON2_BINDINGS = x1; then
1f1e81aab38d833d1c9cdc244c91fd762e0080d4Timo Sirainen AS_IF([test x$HAVE_PYTHON2 != xyes],
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen [AC_MSG_ERROR([
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenThe program python2 was not found in search path.
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo SirainenPlease ensure that it is installed and its directory is included in the search
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainenpath. It is required for building python2 bindings. If you do not want to build
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenthem please use argument --without-python2-bindings when running configure.])])
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen PYTHON=$PYTHON2
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen AM_PATH_PYTHON([2.6])
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen AM_PYTHON_CONFIG([python2])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen AM_CHECK_PYTHON_HEADERS([],
d5abbb932a0a598f002da39a8b3326643b1b5efcTimo Sirainen AC_MSG_ERROR([Could not find python2 headers]))
d5abbb932a0a598f002da39a8b3326643b1b5efcTimo Sirainen AM_CHECK_PYTHON_COMPAT
d5abbb932a0a598f002da39a8b3326643b1b5efcTimo Sirainen AC_SUBST([py2execdir], [$pyexecdir])
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen AC_SUBST([python2dir], [$pythondir])
AC_MSG_WARN([Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite])
AC_CHECK_HEADERS([check.h],,AC_MSG_ERROR([Could not find CHECK headers]))
AM_CONDITIONAL([HAVE_DEVSHM], [test -d /dev/shm])