1 dnl -*- mode: m4-mode -*-
2 dnl Process this file with autoconf to produce a configure script.
4 dnl disabled 2.53 requirement - we do work with 2.52 on suse 7.3 for example
7 AC_INIT(include/includes.h)
8 AC_CONFIG_HEADER(include/config.h)
10 sinclude(build/m4/env.m4)
11 sinclude(build/m4/rewrite.m4)
12 sinclude(heimdal_build/config.m4)
13 sinclude(lib/popt/config.m4)
14 sinclude(lib/iconv.m4)
15 sinclude(lib/socket/config.m4)
16 sinclude(lib/talloc/config.m4)
17 sinclude(lib/tdb/config.m4)
18 sinclude(lib/ldb/ldap.m4)
19 sinclude(lib/ldb/sqlite3.m4)
20 sinclude(lib/ldb/config.m4)
21 sinclude(lib/events/config.m4)
22 sinclude(lib/cmdline/config.m4)
24 dnl disabled until we support external heimdal again
25 dnl sinclude(auth/kerberos/config.m4)
27 sinclude(auth/gensec/config.m4)
28 sinclude(libcli/config.m4)
29 sinclude(smbd/process_model.m4)
30 sinclude(lib/registry/config.m4)
31 sinclude(scripting/config.m4)
32 sinclude(gtk/config.m4)
33 sinclude(ntvfs/posix/config.m4)
34 sinclude(lib/socket_wrapper/config.m4)
35 sinclude(web_server/config.m4)
36 sinclude(auth/config.m4)
37 sinclude(kdc/config.m4)
40 ALLLIBS_CFLAGS="$CFLAGS"
41 ALLLIBS_CPPFLAGS="$CPPFLAGS"
42 ALLLIBS_LDFLAGS="$LDFLAGS"
44 SMB_EXT_LIB_ENABLE(ALLLIBS,YES)
49 [${ALLLIBS_CPPFLAGS}],
52 AC_DEFINE_UNQUOTED(STRING_STATIC_MODULES, "$string_static_modules", [String list of builtin modules])
54 #################################################
55 # do extra things if we are running insure
57 if test "${ac_cv_prog_CC}" = "insure"; then
58 CPPFLAGS="$CPPFLAGS -D__INSURE__"
61 #################################################
62 # add DEVELOPER_CFLAGS only for the real build
63 CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
65 #################################################
66 # final configure stuff
68 AC_MSG_CHECKING([configure summary])
69 AC_TRY_RUN([#include "${srcdir-.}/build/tests/summary.c"],
71 AC_MSG_ERROR([summary failure. Aborting config]); exit 1;,
72 AC_MSG_WARN([cannot run when cross-compiling]))
77 dnl Remove -L/usr/lib/? from LDFLAGS and LIBS
78 LIB_REMOVE_USR_LIB(LDFLAGS)
79 LIB_REMOVE_USR_LIB(LIBS)
81 dnl Remove -I/usr/include/? from CFLAGS and CPPFLAGS
82 CFLAGS_REMOVE_USR_INCLUDE(CFLAGS)
83 CFLAGS_REMOVE_USR_INCLUDE(CPPFLAGS)
85 SMB_AC_OUTPUT(Makefile)