Stop acting on toggle events from radio buttons when they go
[gcalctool.git] / configure.in
blob5e53f857d234d03ed44cb5ee61e2ff9613fe5476
1 Process this file with autoconf to produce a configure script.
3 AC_INIT(configure.in)
4 AM_INIT_AUTOMAKE(gcalctool, 5.21.0)
5 AC_CONFIG_MACRO_DIR([m4])
6 AM_CONFIG_HEADER(config.h)
7 AM_MAINTAINER_MODE
8 GNOME_MAINTAINER_MODE_DEFINES
10 IT_PROG_INTLTOOL([0.35.0])
12 AC_ISC_POSIX
13 AC_PROG_CC
14 AM_PROG_CC_STDC
15 AC_HEADER_STDC
17 PKG_CHECK_MODULES(ATK, atk >= 1.5)
18 AC_SUBST(ATK_CFLAGS)
19 AC_SUBST(ATK_LIBS)
21 pkg_modules="gtk+-2.0 >= 2.11.6 gobject-2.0 gdk-x11-2.0 glib-2.0 atk gdk-pixbuf-2.0 libglade-2.0"
22 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
23 AC_SUBST(PACKAGE_CFLAGS)
24 AC_SUBST(PACKAGE_LIBS)
26 AM_PROG_LEX
27 if [[ "$LEX" != "flex" ]]; then
28         AC_MSG_ERROR(flex is required to create the gcalctool scanners)
30 LFLAGS="-8"
31 AC_SUBST(LFLAGS)
33 AC_PROG_YACC
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)
46 AC_SUBST(GCONF_LIBS)
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
62 AC_PREREQ(2.53)
63 AC_SUBST(GETTEXT_PACKAGE)
64 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
66 AM_PROG_LIBTOOL
67 AM_GLIB_GNU_GETTEXT
69 dnl Use -Wall if we have gcc.
70 changequote(,)dnl
71 if test "x$GCC" = "xyes"; then
72   case " $CFLAGS " in
73   *[\ \ ]-Wall[\ \      ]*) ;;
74   *) CFLAGS="$CFLAGS -Wall" ;;
75   esac
77 changequote([,])dnl
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])
86 AM_GCONF_SOURCE_2
88 dnl *****************
89 dnl API Documentation
90 dnl *****************
92 GNOME_DOC_INIT
94 AC_OUTPUT([
95 Makefile
96 gcalctool/Makefile
97 po/Makefile.in
98 glade/Makefile
99 help/Makefile
100 help/bg/Makefile
101 help/it/Makefile
102 help/ja/Makefile
103 help/zh_CN/Makefile
104 help/zh_HK/Makefile
105 help/zh_TW/Makefile