2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
6 AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
7 AC_CONFIG_HEADER([config.h])
8 AC_CONFIG_MACRO_DIR([m4])
10 # Checks for programs.
23 PKG_CHECK_MODULES(DLOG, dlog)
27 PKG_CHECK_MODULES(VCONF, vconf)
28 AC_SUBST(VCONF_CFLAGS)
31 PKG_CHECK_MODULES(GIO, gio-2.0)
35 PKG_CHECK_MODULES(GLIB, glib-2.0)
39 PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
40 AC_SUBST(GTHREAD_CFLAGS)
41 AC_SUBST(GTHREAD_LIBS)
43 if (!test $ARCH = "arm"); then
44 AM_CONDITIONAL(ARM_BUILD, false)
46 AM_CONDITIONAL(ARM_BUILD, true)
49 # Checks for header files.
52 AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h])
54 # Checks for typedefs, structures, and compiler characteristics.
61 # Checks for library functions.
66 AC_CHECK_FUNCS([getcwd gettimeofday memset mkdir socket dup2 gettimeofday inet_ntoa memset select socket strcasecmp strchr strerror strncasecmp strrchr strstr strtoul])