1 Process this file with autoconf to produce a configure script.
4 AM_INIT_AUTOMAKE(gcalctool, 5.27.90)
5 AC_CONFIG_MACRO_DIR([m4])
6 AM_CONFIG_HEADER(config.h)
8 GNOME_MAINTAINER_MODE_DEFINES
10 IT_PROG_INTLTOOL([0.35.0])
17 PKG_CHECK_MODULES(ATK, atk >= 1.5)
21 pkg_modules="gtk+-2.0 >= 2.14.0 gobject-2.0 gdk-x11-2.0 glib-2.0 atk gdk-pixbuf-2.0 gmodule-export-2.0"
22 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
23 AC_SUBST(PACKAGE_CFLAGS)
24 AC_SUBST(PACKAGE_LIBS)
27 if [[ "$LEX" != "flex" ]]; then
28 AC_MSG_ERROR(flex is required to create the gcalctool scanners)
34 dnl determine if a usable yacc is available on this system
35 AC_CHECK_PROG(HAVE_YACC, $YACC, yes, no)
36 if [[ "$HAVE_YACC" = "no" ]]; then
37 AC_MSG_ERROR($YACC is not usable as yacc - consider using bison)
40 dnl ###########################################################################
41 dnl PKG_CONFIG and required versions
42 dnl ###########################################################################
44 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 1.1.9)
45 AC_SUBST(GCONF_CFLAGS)
48 dnl ********************
49 dnl scrollkeeper checks
50 dnl ********************
52 AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
53 if test x$SCROLLKEEPER_CONFIG = xno; then
54 AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
57 dnl *******************************
58 dnl Internationalization
59 dnl *******************************
61 GETTEXT_PACKAGE=gcalctool
63 AC_SUBST(GETTEXT_PACKAGE)
64 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
69 dnl Use -Wall if we have gcc.
71 if test "x$GCC" = "xyes"; then
73 *[\ \ ]-Wall[\ \ ]*) ;;
74 *) CFLAGS="$CFLAGS -Wall" ;;
79 dnl Checking for gconftool-2
80 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
82 if test "x$GCONFTOOL" = xno; then
83 AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])