2 dnl Samba3 build environment path checks
4 dnl Copyright (C) Michael Adam 2008
6 dnl Released under the GNU General Public License
7 dnl http://www.gnu.org/licenses/
10 AC_LIBREPLACE_LOCATION_CHECKS
12 m4_include(../dynconfig/config.m4)
14 #################################################
15 # set prefix for 'make test'
16 selftest_prefix="./st"
17 AC_SUBST(selftest_prefix)
18 AC_ARG_WITH(selftest-prefix,
19 [AS_HELP_STRING([--with-selftest-prefix=DIR], [The prefix where make test will be run ($selftest_prefix)])],
22 AC_MSG_WARN([--with-selftest-prefix called without argument - will use default])
25 selftest_prefix="$withval"
30 ## check for --enable-debug first before checking CFLAGS before
31 ## so that we don't mix -O and -g
34 [AS_HELP_STRING([--enable-debug], [Turn on compiler debugging information (default=no)])],
35 [if eval "test x$enable_debug = xyes"; then
41 AC_ARG_ENABLE(developer, [AS_HELP_STRING([--enable-developer], [Turn on developer warnings and debugging (default=no)])],
42 [if eval "test x$enable_developer = xyes"; then
50 AC_ARG_ENABLE(selftest, [AS_HELP_STRING([--enable-selftest], [Turn on selftest capability (default=no)])],
51 [if eval "test x$enable_selftest = xyes"; then
57 AC_ARG_ENABLE(krb5developer, [AS_HELP_STRING([--enable-krb5developer], [Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)])],
58 [if eval "test x$enable_krb5developer = xyes"; then
65 AC_ARG_ENABLE(picky-developer, [AS_HELP_STRING([--enable-picky-developer], [Halt compilation on warnings])],
66 [if eval "test x$enable_picky_developer = xyes"; then
73 [AS_HELP_STRING([--with-cfenc=HEADERDIR], [Use internal CoreFoundation encoding API for optimization (Mac OS X/Darwin only)])],
75 # May be in source $withval/CoreFoundation/StringEncodings.subproj.
76 # Should have been in framework $withval/CoreFoundation.framework/Headers.
78 $withval/CoreFoundation/StringEncodings.subproj \
79 $withval/StringEncodings.subproj \
80 $withval/CoreFoundation.framework/Headers \
84 if test -r $d/CFStringEncodingConverter.h; then
85 ln -sfh $d include/CoreFoundation