1 dnl Autoconf/automake init
2 AC_INIT([edesklets-core], [0.1.0], [syfou@users.sourceforge.net])
3 AC_CONFIG_HEADER([src/config.h])
5 AM_INIT_AUTOMAKE([AC_PACKAGE_TARNAME()], [AC_PACKAGE_VERSION()])
8 AM_GNU_GETTEXT_VERSION([0.17])
9 AM_GNU_GETTEXT([external])
11 dnl Check for programs
14 AC_PATH_PROG(LN, ln, [:])
15 AC_PATH_PROG(HELP2MAN, help2man)
16 AM_CONDITIONAL(HELP2MAN_SUPPORT, test "x$HELP2MAN" != "x")
17 AC_PATH_PROG(INKSCAPE, inkscape)
18 AM_CONDITIONAL(INKSCAPE_SUPPORT, test "x$INKSCAPE" != "x")
20 dnl Check for a few characteristics
24 dnl Set this as _BSD_SOURCE
25 AC_DEFINE(_BSD_SOURCE,1,[Source is BSD compliant (ISO C, POSIX and 4.3BSD)])
27 dnl Check for file locking primitives
28 AC_CHECK_HEADERS([unistd.h fcntl.h sys/file.h])
29 AC_CHECK_FUNCS([fcntl flock])
31 dnl Check for error reporting support
32 AC_CHECK_HEADERS([errno.h])
33 AC_CHECK_FUNCS([strerror])
36 dnl Check for signal primitives
37 AC_CHECK_HEADERS([signal.h])
38 AC_CHECK_FUNCS([kill getpid],,
39 AC_MSG_ERROR([missing signal primitives]))
41 dnl Check for misc. functions
42 AC_CHECK_FUNCS([ftruncate sleep],,
43 AC_MSG_ERROR([missing needed function]))
46 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6, have_glib=true, have_glib=false)
47 if test "x${have_glib}" = "xfalse" ; then
48 AC_MSG_ERROR([No Glib 2 package information found])
54 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6, have_gtk=true, have_gtk=false)
55 if test "x${have_gtk}" = "xfalse" ; then
56 AC_MSG_ERROR([No GTK+2 package information found])
60 GTK_VER=`pkg-config --modversion gtk+-2.0`
61 AC_DEFINE_UNQUOTED([GTK_VER], "$GTK_VER", [GTK+ version])
63 dnl Check for GTK+ >= 2.12
64 PKG_CHECK_MODULES(GTKRECENT, gtk+-2.0 >= 2.12,
65 AC_DEFINE(HAVE_GTK_TOOLTIP_TEXT, 1,
66 [Define to 1 if simple tooltip support is present]),
71 PKG_CHECK_MODULES(WEBKIT, webkit-1.0, have_webkit=true, have_webkit=false)
72 if test "x${have_webkit}" = "xfalse" ; then
73 AC_MSG_ERROR([No WebKit package information found])
75 AC_SUBST(WEBKIT_CFLAGS)
77 WEBKIT_VER=`pkg-config --modversion webkit-1.0`
78 AC_DEFINE_UNQUOTED([WEBKIT_VER], "$WEBKIT_VER", [WebKit version])
80 dnl Output configuration
81 AC_CONFIG_FILES([ po/Makefile.in