This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Re: Currnet CVS fails to configure
Greg Troxel wrote:
> I wonder if there is some way to put
> in configure.in a test to avoid evaling the transformed output
> of AM_PATH_GTK_2_0 if it does not get transformed, like
>
> a=AM_PATH
> b=GTK_2_0
> c=$a_$b # avoid substitution
> if [ "AM_PATH_GTK_2_0" != $c ]; then
> AM_PATH_GTK_2_0(blah blah)
> else
> echo "warning: AM_PATH_GTK_2_0 not defined by aclocal, continuing
> fi
This seems to work for me (watch line wrapping):
Index: configure.in
===================================================================
RCS file: /cvs/gnome/gnome-guile/guile-gtk/configure.in,v
retrieving revision 1.43
diff -u -r1.43 configure.in
--- configure.in 2000/11/19 22:29:05 1.43
+++ configure.in 2000/11/29 01:12:29
@@ -20,8 +20,9 @@
if test $GTK_CONFIG_2_0 = no; then
AM_PATH_GTK(1.2.0,,AC_ERROR(need at least Gtk+ version 1.2),
gthread)
else
- AM_PATH_GTK_2_0(1.3.1,,AC_ERROR(need at least Gtk+ version 1.3.1),
gthread)
- AC_DEFINE(GTK_2_0)
+ ifdef([AM_PATH_GTK_2_0],
+ AM_PATH_GTK_2_0(1.3.1,,AC_ERROR(need at least Gtk+ version
1.3.1), gthread)
+ AC_DEFINE(GTK_2_0))
fi
# XXX - gtk_config_*_version leaks from AM_PATH_GTK.
A "release" should have configure already created from configure.in, and
should run on any system without m4 and the auto* tools. The system on
which configure is created needs to have the AM_PATH_GTK_2_0 macro
installed. The "ifdef" I added is just a convenience for people
building from cvs without gtk 2 installed.
-Dale
--
Dale P. Smith
Altus Technologies Corp.
dsmith@altustech.com
440-746-9000 x309