s3:registry: make regdb_store_values() static
[Samba/gebeck_regimport.git] / source3 / m4 / check_path.m4
blobf0b98c9d53ad22ee88169420050bdf50de22c804
1 dnl
2 dnl Samba3 build environment path checks
3 dnl
4 dnl Copyright (C) Michael Adam 2008
5 dnl
6 dnl Released under the GNU General Public License
7 dnl http://www.gnu.org/licenses/
8 dnl
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)])],
20 [ case "$withval" in
21   yes|no)
22     AC_MSG_WARN([--with-selftest-prefix called without argument - will use default])
23   ;;
24   * )
25     selftest_prefix="$withval"
26     ;;
27   esac
30 ## check for --enable-debug first before checking CFLAGS before
31 ## so that we don't mix -O and -g
32 debug=no
33 AC_ARG_ENABLE(debug,
34 [AS_HELP_STRING([--enable-debug], [Turn on compiler debugging information (default=no)])],
35     [if eval "test x$enable_debug = xyes"; then
36         debug=yes
37     fi])
39 AC_SUBST(developer)
40 developer=no
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
43         debug=yes
44         developer=yes
45     fi])
47 krb5developer=no
48 AC_ARG_ENABLE(krb5developer, [AS_HELP_STRING([--enable-krb5developer], [Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)])],
49     [if eval "test x$enable_krb5developer = xyes"; then
50         debug=yes
51         developer=yes
52         krb5_developer=yes
53     fi])
55 picky_developer=no
56 AC_ARG_ENABLE(picky-developer, [AS_HELP_STRING([--enable-picky-developer], [Halt compilation on warnings])],
57     [if eval "test x$enable_picky_developer = xyes"; then
58         debug=yes
59         developer=yes
60         picky_developer=yes
61     fi])
63 AC_ARG_WITH(cfenc,
64 [AS_HELP_STRING([--with-cfenc=HEADERDIR], [Use internal CoreFoundation encoding API for optimization (Mac OS X/Darwin only)])],
66 # May be in source $withval/CoreFoundation/StringEncodings.subproj.
67 # Should have been in framework $withval/CoreFoundation.framework/Headers.
68 for d in \
69     $withval/CoreFoundation/StringEncodings.subproj \
70     $withval/StringEncodings.subproj \
71     $withval/CoreFoundation.framework/Headers \
72     $withval/Headers \
73     $withval
75     if test -r $d/CFStringEncodingConverter.h; then
76         ln -sfh $d include/CoreFoundation
77     fi
78 done