modified for systemd journal support
[framework/system/dlog.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.61)
5 AC_INIT([dlog], [1.0], yk.yun@samsung.com)
6 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7 AC_CONFIG_HEADERS([config.h:config.hin])
8
9 AC_CONFIG_MACRO_DIR([m4])
10 # Init XO
11 PLATFORM_INIT
12
13 # Checks for programs.
14 dnl AC_PROG_CXX
15 AC_PROG_CC
16 AC_PROG_GCC_TRADITIONAL
17 AC_PROG_LIBTOOL
18
19 # checks arch
20 AM_CONDITIONAL(DEVELOP_VER, test $DEVELOP_VER = yes)
21
22 SD_JOURNAL_SUPPORT=no
23
24 #AC_DEFINE([SD_JOURNAL_SUPPORT], [], [Description])
25
26 AM_CONDITIONAL(SD_JOURNAL_SUPPORT, test $SD_JOURNAL_SUPPORT = yes)
27
28 #AM_CONDITIONAL([ARCH_IS_ARM], [test "x$ARCH" = "xarm"])
29 if test "x$ARCH" = "xarm" ; then
30         DLOG_CFLAGS="-D__arm__"
31 else
32         DLOG_CFLAGS=
33 fi
34
35 AC_SUBST(DLOG_CFLAGS)
36
37
38 dnl AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
39 # Checks for libraries.
40 # Checks for header files.
41 AC_HEADER_STDC
42 AC_CHECK_HEADERS([stdlib.h unistd.h ])
43
44 # Checks for typedefs, structures, and compiler characteristics.
45 AC_HEADER_STDBOOL
46 AC_C_CONST
47 AC_C_INLINE
48 AC_STRUCT_TM
49 AC_TYPE_PID_T
50 AC_TYPE_SIZE_T
51 AC_TYPE_SSIZE_T
52
53 # Checks for library functions.
54 AC_FUNC_MALLOC
55 AC_FUNC_STAT
56 AC_CHECK_FUNCS([memset])
57
58 # output files
59 AC_CONFIG_FILES([Makefile dlog.pc])
60 AC_OUTPUT