2 # Process this file with autoconf to produce a configure script.
3 AC_INIT([tint2], [0.7_beta2], [http://code.google.com/p/tint2/issues])
8 AC_CONFIG_MACRO_DIR([m4])
9 AC_CONFIG_SRCDIR([src/tint.c])
10 AC_CONFIG_HEADERS([config.h])
12 # Checks for programs.
15 # Checks for libraries.
16 PKG_CHECK_MODULES([PANGOCAIRO], [pangocairo])
17 AC_SUBST(PANGOCAIRO_CFLAGS)
18 AC_SUBST(PANGOCAIRO_LIBS)
20 PKG_CHECK_MODULES([PANGO], [pango])
21 AC_SUBST(PANGO_CFLAGS)
24 PKG_CHECK_MODULES([CAIRO], [cairo])
25 AC_SUBST(CAIRO_CFLAGS)
28 PKG_CHECK_MODULES([GLIB2], [glib-2.0])
29 AC_SUBST(GLIB2_CFLAGS)
32 PKG_CHECK_MODULES([GOBJECT2], [gobject-2.0])
33 AC_SUBST(GOBJECT2_CFLAGS)
34 AC_SUBST(GOBJECT2_LIBS)
36 PKG_CHECK_MODULES([X11], [x11])
40 PKG_CHECK_MODULES([XINERAMA], [xinerama])
41 AC_SUBST(XINERAMA_CFLAGS)
42 AC_SUBST(XINERAMA_LIBS)
44 PKG_CHECK_MODULES([IMLIB2], [imlib2])
45 AC_SUBST(IMLIB2_CFLAGS)
48 # Checks for header files.
50 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
52 # Checks for typedefs, structures, and compiler characteristics.
58 # Checks for library functions.
61 AC_CHECK_FUNCS([gettimeofday memset select setlocale strcasecmp strchr strdup])
63 AC_ARG_ENABLE([examples],
64 [AS_HELP_STRING([--enable-examples], [Install additional $(PACKAGE_NAME)rc examples])],
65 [case "${enableval}" in
68 *) AC_MSG_ERROR([bad value ${enableval} for --enable-examples]) ;;
69 esac],[examples=false])
70 AM_CONDITIONAL([INSTALL_EXAMPLES], [test x$examples = xtrue])
73 [AS_HELP_STRING([--enable-doc], [Install additional documentation])],
74 [case "${enableval}" in
77 *) AC_MSG_ERROR([bad value ${enableval} for --enable-doc]) ;;
79 AM_CONDITIONAL([INSTALL_DOC], [test x$doc = xtrue])