1 | AC_INIT([libfindexec], [3.1.4.sw]) |
---|
2 | |
---|
3 | AC_CONFIG_MACRO_DIR([../m4]) |
---|
4 | AC_CONFIG_AUX_DIR([.]) |
---|
5 | AC_CONFIG_SRCDIR([omFindExec.h]) |
---|
6 | AC_CONFIG_HEADER([config.h]) |
---|
7 | |
---|
8 | AM_MAINTAINER_MODE |
---|
9 | AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules |
---|
10 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) |
---|
11 | |
---|
12 | |
---|
13 | dnl Check if build env is sane |
---|
14 | AM_SANITY_CHECK |
---|
15 | |
---|
16 | # |
---|
17 | # - Check for CC and CXX but be careful about CFLAGS. |
---|
18 | # |
---|
19 | test "${CFLAGS+set}" = set || cflags_expl_set=no |
---|
20 | AC_PROG_CC |
---|
21 | test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no |
---|
22 | AC_PROG_CXX |
---|
23 | if test "x$GCC" != xyes && test "x$GXX" != xyes; then |
---|
24 | AC_MSG_WARN(you better use gcc to compile Factory) |
---|
25 | else |
---|
26 | if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then |
---|
27 | AC_MSG_WARN([we use \`' as default for \`CXXFLAGS' |
---|
28 | (instead of the configure default \`-g -O')]) |
---|
29 | fi |
---|
30 | if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then |
---|
31 | AC_MSG_WARN([we use \`' as default for \`CFLAGS' |
---|
32 | (instead of the configure default \`-g -O')]) |
---|
33 | fi |
---|
34 | fi |
---|
35 | |
---|
36 | AM_PROG_CC_C_O |
---|
37 | # AM_PROG_AR |
---|
38 | |
---|
39 | AC_PROG_LN_S |
---|
40 | AC_PROG_INSTALL |
---|
41 | |
---|
42 | AC_FUNC_MALLOC |
---|
43 | AC_HEADER_STDC |
---|
44 | AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h sys/stat.h sys/types.h]) |
---|
45 | AC_CHECK_FUNCS(readlink getcwd getwd getpwnam setenv putenv) |
---|
46 | |
---|
47 | # Checks for typedefs, structures, and compiler characteristics. |
---|
48 | AC_C_CONST |
---|
49 | AC_C_INLINE |
---|
50 | AC_HEADER_STDBOOL |
---|
51 | AC_TYPE_SIZE_T |
---|
52 | |
---|
53 | # Turn off shared libraries during beta-testing, since they |
---|
54 | # make the build process take too long. |
---|
55 | LT_INIT |
---|
56 | # ([shared]) |
---|
57 | # LT_INIT(dlopen disable-static) # doesn't work on PowerPC! |
---|
58 | |
---|
59 | |
---|
60 | SING_CHECK_PIPE |
---|
61 | |
---|
62 | AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]), |
---|
63 | [if test "x$enableval" = "xyes"; then |
---|
64 | ENABLE_DEBUG=yes |
---|
65 | fi], ENABLE_DEBUG=no) |
---|
66 | |
---|
67 | AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes) |
---|
68 | |
---|
69 | |
---|
70 | # CFLAGS |
---|
71 | if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then |
---|
72 | CFLAGS="" |
---|
73 | fi |
---|
74 | |
---|
75 | # CXXFLAGS |
---|
76 | if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then |
---|
77 | CXXFLAGS="" |
---|
78 | fi |
---|
79 | |
---|
80 | AC_CONFIG_FILES([Makefile]) |
---|
81 | AC_OUTPUT |
---|