Interesting patch for linc



Hi everyone,
	I needed this patch to get my linc to compile; it's a bit interesting
because it exposes a behavior change (bug?) in autoconf >= 2.50. It
seems that 

configure.in:

	VAR=value
	AC_SUBST(VAR)
	VAR=new_value

file.in:
	
	@VAR@

will give you 'value', not 'new_value'. I can't figure out why, but I
figured I would give people a heads-up as this is a kind of odd thing
that might cause lots of head-scratching some time later.

Anyway, Michael, or someone else with authority, may I commit?

Peter

-- 
Peter Williams     peter newton cx / peterw ximian com

"Why should I have to change my name? He's the one who 
sucks!"                              -- Michael Bolton
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/linc/ChangeLog,v
retrieving revision 1.30
diff -u -r1.30 ChangeLog
--- ChangeLog	2001/08/27 11:21:39	1.30
+++ ChangeLog	2001/08/28 16:42:34
@@ -1,3 +1,9 @@
+2001-08-28  Peter Williams  <peterw ximian com>
+
+	* configure.in: For some reason, with autoconf >= 2.50, we
+	need to AC_SUBST(ACLOCAL) after changing its value, even
+	though it's already been AC_SUBST'ed by automake.
+
 2001-08-27  Mark McLoughlin <mark skynet ie>
 
 	* linc.pc.in: require gobject and gthread.
Index: configure.in
===================================================================
RCS file: /cvs/gnome/linc/configure.in,v
retrieving revision 1.28
diff -u -r1.28 configure.in
--- configure.in	2001/08/24 12:50:35	1.28
+++ configure.in	2001/08/28 16:42:34
@@ -45,6 +45,7 @@
    ac_cv_linc_aclocal_flags="$ACLOCAL_FLAGS"
 ])
 ACLOCAL="$ACLOCAL $ac_cv_linc_aclocal_flags"
+AC_SUBST(ACLOCAL)
 
 dnl Checks for programs.
 AC_PROG_CC


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]