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