1 dnl Process this file with autoconf to produce a configure script.
4 AM_INIT_AUTOMAKE(gcalctool, 5.91.5)
5 AM_CONFIG_HEADER(config.h)
7 GNOME_MAINTAINER_MODE_DEFINES
8 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
16 GNOME_COMPILE_WARNINGS(maximum)
18 dnl ###########################################################################
20 dnl ###########################################################################
24 AC_MSG_CHECKING([which gtk+ version to compile against])
26 [AS_HELP_STRING([--with-gtk=2.0|3.0],[which gtk+ version to compile against (default: 3.0)])],
29 *) AC_MSG_ERROR([invalid gtk version specified]) ;;
32 AC_MSG_RESULT([$with_gtk])
35 2.0) GTK_API_VERSION=2.0
38 3.0) GTK_API_VERSION=3.0
43 PKG_CHECK_MODULES(GCALCTOOL, [
44 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED
45 gio-2.0 >= $GIO_REQUIRED
50 PKG_CHECK_MODULES(GCALCCMD, [
55 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
56 AC_SUBST(GLIB_MKENUMS)
60 dnl ###########################################################################
61 dnl Determine if a usable lex is available on this system
62 dnl ###########################################################################
65 if [[ "$LEX" != "flex" ]]; then
66 AC_MSG_ERROR(flex is required to create the gcalctool scanners)
69 dnl ###########################################################################
70 dnl Determine if a usable yacc is available on this system
71 dnl ###########################################################################
74 AC_CHECK_PROG(HAVE_YACC, $YACC, yes, no)
75 if [[ "$HAVE_YACC" = "no" ]]; then
76 AC_MSG_ERROR($YACC is not usable as yacc - consider using bison)
79 dnl ###########################################################################
80 dnl Internationalization
81 dnl ###########################################################################
83 IT_PROG_INTLTOOL([0.35.0])
84 AC_SUBST(GETTEXT_PACKAGE, gcalctool)
86 dnl ###########################################################################
88 dnl ###########################################################################
92 dnl ###########################################################################
94 dnl ###########################################################################