2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([libmm-common], [0.0.1])
6 AC_CONFIG_HEADER([config.h])
7 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
13 # Checks for libraries.
14 # FIXME: Replace `main' with a function in `-lpthread':
15 AC_CHECK_LIB([pthread], [main])
17 # Checks for header files.
19 AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h sys/time.h unistd.h])
21 # Checks for typedefs, structures, and compiler characteristics.
26 # Checks for library functions.
29 AC_CHECK_FUNCS([gettimeofday memset munmap strcasecmp strdup])
31 PKG_CHECK_MODULES(GLIB, glib-2.0)
35 PKG_CHECK_MODULES(MMLOG,mm-log)
36 AC_SUBST(MMLOG_CFLAGS)
39 AC_CONFIG_FILES([Makefile