Improving build dependency to libtzplatform-config
[platform/core/system/dlog.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.68])
5 AC_INIT([dlog], [1.0], m.niesluchow@samsung.com)
6 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7
8 AC_CONFIG_MACRO_DIR([m4])
9
10 PLATFORM_INIT
11 AC_CONFIG_SRCDIR([log.c])
12 AC_CONFIG_HEADERS([config.h])
13
14 PKG_CHECK_MODULES([TZPLATFORM_CONFIG], [libtzplatform-config])
15
16 # Checks for programs.
17 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
18 AC_PROG_CC
19 AM_PROG_CC_C_O
20 AC_PROG_LIBTOOL
21
22 # Checks for header files.
23 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
24
25 # Checks for typedefs, structures, and compiler characteristics.
26 AC_C_INLINE
27 AC_TYPE_SIZE_T
28 AC_TYPE_SSIZE_T
29
30 # Checks for library functions.
31 AC_CHECK_FUNCS([strtol])
32
33 AC_CONFIG_FILES([Makefile dlog.pc])
34 AC_OUTPUT