[15323] | 1 | AC_INIT(test-libglade.c) |
---|
| 2 | AM_CONFIG_HEADER(config.h) |
---|
| 3 | |
---|
| 4 | AM_INIT_AUTOMAKE(libglade, 0.15) |
---|
| 5 | AM_MAINTAINER_MODE |
---|
| 6 | |
---|
| 7 | dnl get the GNOME macros |
---|
| 8 | AM_ACLOCAL_INCLUDE(macros) |
---|
| 9 | |
---|
| 10 | AC_ARG_ENABLE(debug, [ --enable-debug enable debugging output],, |
---|
| 11 | [enable_debug=no]) |
---|
| 12 | |
---|
| 13 | if test "x$enable_debug" != xno; then |
---|
| 14 | AC_DEFINE(DEBUG) |
---|
| 15 | fi |
---|
| 16 | |
---|
| 17 | AC_PROG_CC |
---|
| 18 | AC_ISC_POSIX |
---|
| 19 | AC_HEADER_STDC |
---|
| 20 | AC_CHECK_HEADERS(unistd.h, AC_DEFINE(HAVE_UNISTD_H)) |
---|
| 21 | |
---|
| 22 | AC_ARG_PROGRAM |
---|
| 23 | |
---|
| 24 | AC_PROG_LIBTOOL |
---|
| 25 | |
---|
| 26 | AM_PATH_GTK(1.2.0) |
---|
| 27 | |
---|
| 28 | AC_PATH_PROG(XML_CONFIG,xml-config,no) |
---|
| 29 | if test x$XML_CONFIG = xno; then |
---|
| 30 | AC_MSG_ERROR(Couldn't find xml-config) |
---|
| 31 | fi |
---|
| 32 | XML_LIBS=`xml-config --libs` |
---|
| 33 | XML_CFLAGS=`xml-config --cflags` |
---|
| 34 | AC_SUBST(XML_LIBS) |
---|
| 35 | AC_SUBST(XML_CFLAGS) |
---|
| 36 | |
---|
| 37 | dnl Check to make sure that we have libxml >= 1.7.2 installed |
---|
| 38 | old_LIBS="$LIBS" |
---|
| 39 | LIBS="$XML_LIBS $LIBS" |
---|
| 40 | AC_CHECK_FUNC(xmlSAXUserParseFile,, |
---|
| 41 | AC_MSG_ERROR([*** libxml >= 1.7.2 is required to compile libglade])) |
---|
| 42 | LIBS="$old_LIBS" |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | have_gnome=false |
---|
| 46 | GNOME_INIT_HOOK([ |
---|
| 47 | have_gnome=true |
---|
| 48 | AC_DEFINE(ENABLE_GNOME) |
---|
| 49 | ]) |
---|
| 50 | AM_CONDITIONAL(GNOME_SUPPORT, $have_gnome) |
---|
| 51 | |
---|
| 52 | AC_ARG_ENABLE(bonobo, [ --enable-bonobo enable bonobo support],, |
---|
| 53 | [enable_bonobo=no]) |
---|
| 54 | have_bonobo=false |
---|
| 55 | if test x$enable_bonobo != xno; then |
---|
| 56 | AM_PATH_BONOBO(0.27, have_bonobo=true) |
---|
| 57 | fi |
---|
| 58 | AM_CONDITIONAL(BONOBO_SUPPORT, $have_bonobo) |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | GNOME_COMPILE_WARNINGS |
---|
| 62 | |
---|
| 63 | AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false) |
---|
| 64 | AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC) |
---|
| 65 | |
---|
| 66 | dnl gettext stuff ... there is no message catalog for libglade -- libglade |
---|
| 67 | dnl provides translation for the XML files it reads in. |
---|
| 68 | ALL_LINGUAS="" |
---|
| 69 | AM_GNOME_GETTEXT |
---|
| 70 | |
---|
| 71 | AC_OUTPUT([Makefile |
---|
| 72 | libglade.spec |
---|
| 73 | macros/Makefile |
---|
| 74 | intl/Makefile |
---|
| 75 | po/Makefile.in |
---|
| 76 | glade/Makefile |
---|
| 77 | doc/Makefile |
---|
| 78 | libglade-config |
---|
| 79 | libgladeConf.sh |
---|
| 80 | libglade.pc |
---|
| 81 | libglade-gnome.pc |
---|
| 82 | libglade-bonobo.pc]) |
---|