47d3b3b9f7c3db7e258b4932a1d541c52016a107
[platform/upstream/corewatcher.git] / configure.ac
1 AC_PREREQ([2.68])
2 AC_INIT([corewatcher],[0.9.1],[timothy.c.pepper@linux.intel.com])
3 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
4 AC_CONFIG_FILES([Makefile src/Makefile])
5 AC_CONFIG_SRCDIR([src/corewatcher.c])
6 AC_CONFIG_HEADERS([config.h])
7
8 # Checks for programs.
9 AC_PROG_CC
10 AM_PROG_CC_C_O
11 AC_PROG_INSTALL
12
13 # Checks for libraries.
14 AC_CHECK_LIB([pthread], [pthread_mutex_unlock], , AC_MSG_ERROR([libpthread is required but was not found]))
15
16 # PkgConfig tests
17 PKG_CHECK_MODULES([GLIB2], [glib-2.0])
18 PKG_CHECK_MODULES([LIBPROXY], [libproxy-1.0])
19 PKG_CHECK_MODULES([LIBNOTIFY], [libnotify])
20 PKG_CHECK_MODULES([LIBCURL], [libcurl])
21
22 # Checks for header files.
23 AC_CHECK_HEADERS([stdio.h assert.h sys/types.h sys/stat.h dirent.h signal.h errno.h sched.h fcntl.h stdlib.h string.h sys/time.h syslog.h unistd.h asm/unistd.h])
24
25 # Checks for typedefs, structures, and compiler characteristics.
26 AC_TYPE_SIZE_T
27 AC_TYPE_SSIZE_T
28
29 # Checks for library functions.
30 AC_FUNC_MALLOC
31
32 AC_OUTPUT(src/corewatcher.service)
33 AC_MSG_RESULT([
34         corewatcher $VERSION
35         ========
36
37         prefix:                 ${prefix}
38         sysconfdir:             ${sysconfdir}
39         exec_prefix:            ${exec_prefix}
40         bindir:                 ${bindir}
41         sbindir:                ${sbindir}
42         datarootdir:            ${datarootdir}
43         mandir:                 ${mandir}
44
45         compiler:               ${CC}
46         cflags:                 ${CFLAGS}
47         ldflags:                ${LDFLAGS}
48 ])