2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([dlog], [1.0], yk.yun@samsung.com)
6 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
11 # Checks for programs.
14 AC_PROG_GCC_TRADITIONAL
17 # check binary type for dlog debug mode
18 AC_ARG_ENABLE([debug_mode],
19 AS_HELP_STRING([--enable-debug_mode Turn on debug_mode]),
22 if test "x$debug_mode" = "xyes" ; then
23 DEBUG_CFLAGS+=" -DDLOG_DEBUG_ENABLE"
25 AC_ARG_ENABLE([debug_enable],
26 AS_HELP_STRING([--enable-debug_enable Turn on debug_enable]),
29 AC_SUBST(DEBUG_CFLAGS)
30 # Checks for libraries.
31 # Checks for header files.
33 AC_CHECK_HEADERS([stdlib.h unistd.h ])
35 # Checks for typedefs, structures, and compiler characteristics.
44 # Checks for library functions.
47 AC_CHECK_FUNCS([memset])
50 PKG_CHECK_MODULES([CAPI_BASE_COMMON], [capi-base-common])
55 AC_CONFIG_FILES([Makefile dlog.pc])