dnl -*- mode: m4-mode -*- dnl Process this file with autoconf to produce a configure script. dnl disabled 2.53 requirement - we do work with 2.52 on suse 7.3 for example dnl AC_PREREQ(2.53) AC_INIT([samba],[],[samba-technical@samba.org]) AC_CONFIG_SRCDIR([include/includes.h]) AC_CONFIG_HEADER(include/config_tmp.h) # Configuration rules. sinclude(build/m4/env.m4) sinclude(lib/replace/config.m4) sinclude(lib/replace/win32/config.m4) sinclude(lib/replace/repdir/config.m4) sinclude(include/system/config.m4) sinclude(build/m4/rewrite.m4) sinclude(heimdal_build/config.m4) sinclude(lib/util/fsusage.m4) sinclude(lib/util/capability.m4) sinclude(lib/util/time.m4) sinclude(lib/popt/config.m4) sinclude(lib/charset/config.m4) sinclude(lib/socket/config.m4) sinclude(lib/netif/config.m4) sinclude(lib/talloc/config.m4) sinclude(lib/tdb/config.m4) sinclude(lib/ldb/sqlite3.m4) sinclude(lib/ldb/config.m4) sinclude(lib/tls/config.m4) sinclude(lib/events/config.m4) dnl disabled until we support external heimdal again dnl sinclude(auth/kerberos/config.m4) sinclude(auth/gensec/config.m4) sinclude(smbd/process_model.m4) sinclude(lib/registry/config.m4) sinclude(scripting/swig/config.m4) sinclude(gtk/config.m4) sinclude(ntvfs/posix/config.m4) sinclude(lib/socket_wrapper/config.m4) sinclude(web_server/config.m4) sinclude(auth/config.m4) sinclude(kdc/config.m4) sinclude(ntvfs/sysdep/config.m4) sinclude(lib/appweb/config.m4) sinclude(nsswitch/config.m4) ################################################# # add *_CFLAGS only for the real build CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}" ################################################# # final configure stuff AC_MSG_CHECKING([configure summary]) AC_TRY_RUN([#include "${srcdir-.}/build/tests/summary.c"], AC_MSG_RESULT(yes), AC_MSG_ERROR([summary failure. Aborting config]); exit 1;, AC_MSG_WARN([cannot run when cross-compiling])) LIBS=`echo $LIBS | sed -e 's/ *//g'` if test x"$LIBS" != x""; then echo "LIBS: $LIBS" AC_MSG_WARN([the global \$LIBS variable contains some libraries!]) AC_MSG_WARN([this should not happen, please report to samba-technical@lists.samba.org!]) AC_MSG_ERROR([only _EXT macros from aclocal.m4 should be used!]) fi dnl Remove -L/usr/lib/? from LDFLAGS and LIBS LIB_REMOVE_USR_LIB(LDFLAGS) LIB_REMOVE_USR_LIB(LIBS) dnl Remove -I/usr/include/? from CFLAGS and CPPFLAGS CFLAGS_REMOVE_USR_INCLUDE(CFLAGS) CFLAGS_REMOVE_USR_INCLUDE(CPPFLAGS) AC_SUBST(ac_default_prefix) echo "configure: creating config.pm" cat >config.pm< '$AC_Var',]) ); $SMB_INFO_ENABLES 1; CEOF echo "configure: creating config.mk" cat >config.mk</dev/null 2>&1 CMP_RET=$? if test $CMP_RET != 0; then cp include/config_tmp.h include/config.h fi