summaryrefslogtreecommitdiffstats
path: root/common/configure.ac
blob: 120d1034fbaedc00b280c53d6853920c5453ec91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
AC_INIT([elapi], [0.0], [dpal@redhat.com])
AC_CONFIG_SRCDIR([collection/collection.c])
AC_CONFIG_AUX_DIR([build])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_INSTALL

AC_CONFIG_HEADERS([config.h])


# Enable trace build
AC_ARG_ENABLE([trace],
              [AS_HELP_STRING([--enable-trace[=LEVEL]],[build with low level tracing enabled])],
              [trace_level="$enableval"],
              [trace_level="0"])
AS_IF([test ["$trace_level" -gt "0"] -a ["$trace_level" -lt "8"] ],[AC_SUBST([TRACE_VAR],["-DTRACE_LEVEL=$trace_level"])])


AC_CONFIG_FILES([Makefile
		collection/Makefile collection/collection.pc
		dhash/Makefile dhash/dhash.pc
		ini/Makefile ini/ini_config.pc
		trace/Makefile])
AC_OUTPUT