2003-08-13 05:53:07 +04:00
dnl -*- mode: m4-mode -*-
dnl Process this file with autoconf to produce a configure script.
2003-08-13 20:53:37 +04:00
dnl disabled 2.53 requirement - we do work with 2.52 on suse 7.3 for example
dnl AC_PREREQ(2.53)
2003-08-13 05:53:07 +04:00
AC_INIT(include/includes.h)
AC_CONFIG_HEADER(include/config.h)
2004-06-01 19:56:22 +04:00
sinclude(build/smb_build/env.m4)
2003-08-13 05:53:07 +04:00
2004-06-01 19:13:27 +04:00
SMB_INCLUDE_M4(build/m4/rewrite.m4)
2003-11-25 06:15:26 +03:00
2004-05-18 17:12:24 +04:00
SMB_INCLUDE_M4(lib/popt/config.m4)
SMB_INCLUDE_M4(lib/iconv.m4)
SMB_INCLUDE_M4(lib/basic.m4)
SMB_INCLUDE_M4(lib/tdb/config.m4)
SMB_INCLUDE_M4(lib/ldb/config.m4)
SMB_INCLUDE_M4(lib/cmdline/config.m4)
SMB_INCLUDE_M4(param/config.m4)
2004-07-11 16:15:58 +04:00
SMB_INCLUDE_M4(libcli/auth/config.m4)
SMB_INCLUDE_M4(libcli/auth/gensec.m4)
2004-08-12 08:55:59 +04:00
SMB_INCLUDE_M4(libcli/ldap/config.m4)
2004-05-18 17:12:24 +04:00
SMB_INCLUDE_M4(libcli/config.m4)
SMB_INCLUDE_M4(librpc/config.m4)
SMB_INCLUDE_M4(libcli/libsmb.m4)
2004-08-16 20:52:57 +04:00
SMB_INCLUDE_M4(libnet/config.m4)
2004-05-18 17:12:24 +04:00
SMB_INCLUDE_M4(smbd/process_model.m4)
SMB_INCLUDE_M4(smb_server/config.m4)
SMB_INCLUDE_M4(auth/config.m4)
SMB_INCLUDE_M4(ntvfs/config.m4)
SMB_INCLUDE_M4(rpc_server/config.m4)
SMB_INCLUDE_M4(lib/registry/config.m4)
SMB_INCLUDE_M4(torture/config.m4)
SMB_INCLUDE_M4(scripting/config.m4)
2004-05-25 04:20:19 +04:00
SMB_INCLUDE_M4(client/config.m4)
SMB_INCLUDE_M4(utils/config.m4)
SMB_INCLUDE_M4(smbd/config.m4)
2004-07-11 05:01:48 +04:00
SMB_INCLUDE_M4(gtk/config.m4)
2004-08-13 05:31:11 +04:00
SMB_INCLUDE_M4(lib/dcom/config.m4)
2003-11-25 06:15:26 +03:00
2004-05-13 14:20:53 +04:00
ALLLIBS_LIBS="$LIBS"
ALLLIBS_CFLAGS="$CFLAGS"
ALLLIBS_CPPFLAGS="$CPPFLAGS"
ALLLIBS_LDFLAGS="$LDFLAGS"
SMB_EXT_LIB_ENABLE(ALLLIBS,YES)
SMB_EXT_LIB(ALLLIBS,
[${ALLLIBS_LIBS}],
[${ALLLIBS_CFLAGS}],
[${ALLLIBS_CPPFLAGS}],
[${ALLLIBS_LDFLAGS}])
2003-11-25 06:15:26 +03:00
AC_DEFINE_UNQUOTED(STRING_STATIC_MODULES, "$string_static_modules", [String list of builtin modules])
2003-08-13 05:53:07 +04:00
#################################################
# do extra things if we are running insure
if test "${ac_cv_prog_CC}" = "insure"; then
CPPFLAGS="$CPPFLAGS -D__INSURE__"
fi
#################################################
# final configure stuff
AC_MSG_CHECKING([configure summary])
2004-02-13 18:20:52 +03:00
AC_TRY_RUN([#include "${srcdir-.}/build/tests/summary.c"],
2003-08-13 05:53:07 +04:00
AC_MSG_RESULT(yes),
AC_MSG_ERROR([summary failure. Aborting config]); exit 1;,
AC_MSG_WARN([cannot run when cross-compiling]))
builddir=`pwd`
AC_SUBST(builddir)
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)
2004-05-13 14:20:53 +04:00
SMB_AC_OUTPUT(Makefile)