From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dale P. Smith" To: Greg Troxel Cc: Marius Vollmer , Ariel Rios , guile-gtk@sourceware.cygnus.com Subject: Re: Currnet CVS fails to configure Date: Wed, 29 Nov 2000 05:29:00 -0000 Message-id: <3A25041F.F7A870AC@en.com> References: <87aeajvhmh.fsf@zagadka.ping.de> <3A243B16.2050E61C@en.com> X-SW-Source: 2000-q4/msg00048.html 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