source: git/findexec/configure.ac @ e17f69

spielwiese
Last change on this file since e17f69 was 2e984a, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Use silent-rules if available (in more recent versions of automake)
  • Property mode set to 100644
File size: 2.0 KB
Line 
1AC_INIT([libfindexec], [3.1.4.sw])
2
3AC_CONFIG_MACRO_DIR([../m4])
4AC_CONFIG_AUX_DIR([.])
5AC_CONFIG_SRCDIR([omFindExec.h])
6AC_CONFIG_HEADER([config.h])
7
8AM_MAINTAINER_MODE
9AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules
10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
11
12
13dnl Check if build env is sane
14AM_SANITY_CHECK
15
16#
17# - Check for CC and CXX but be careful about CFLAGS.
18#
19test "${CFLAGS+set}" = set || cflags_expl_set=no
20AC_PROG_CC
21test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no
22AC_PROG_CXX
23if test "x$GCC" != xyes && test "x$GXX" != xyes; then
24  AC_MSG_WARN(you better use gcc to compile Factory)
25else
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
34fi
35
36AM_PROG_CC_C_O
37# AM_PROG_AR
38
39AC_PROG_LN_S
40AC_PROG_INSTALL
41
42AC_FUNC_MALLOC
43AC_HEADER_STDC
44AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h sys/stat.h sys/types.h])
45AC_CHECK_FUNCS(readlink getcwd getwd getpwnam setenv putenv)
46
47# Checks for typedefs, structures, and compiler characteristics.
48AC_C_CONST
49AC_C_INLINE
50AC_HEADER_STDBOOL
51AC_TYPE_SIZE_T
52
53# Turn off shared libraries during beta-testing, since they
54# make the build process take too long.
55LT_INIT
56# ([shared])
57# LT_INIT(dlopen disable-static) # doesn't work on PowerPC!
58
59
60SING_CHECK_PIPE
61
62AC_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
67AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
68
69
70# CFLAGS
71if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
72  CFLAGS=""
73fi
74 
75# CXXFLAGS
76if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
77  CXXFLAGS=""
78fi
79
80AC_CONFIG_FILES([Makefile])
81AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.