Ethereal-dev: Re: [Ethereal-dev] The need to run autogen (almost) every day.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 10 Sep 2002 16:36:59 -0700
On Sat, Sep 07, 2002 at 01:40:09AM +0200, Joerg Mayer wrote:
> You are right. We only need to run autogen.sh when either configure.in
> or the .m4 files change.

I suspect at least part of the problem is that, somehow, the Makefile's
process of regenerating the configuration file, if you don't have GTK+
2.0 installed, doesn't correctly handle the

	if test "x$enable_gtk2" = "xyes" -a "x$enable_ethereal" = "xyes" ; then
		GTK_OK=two
		AM_PATH_GTK_2_0(2.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no, gthread)
	elif test "x$enable_gtk2" = "xno" -a "x$enable_ethereal" = "xyes" ; then
		GTK_OK=one
		AM_PATH_GTK(1.2.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no )
	else
		GTK_OK=no
	fi

stuff, as, instead of expanding the macro call to "AM_PATH_GTK_2_0()"
using the fallback version, it just copies the line over *verbatim*,
which upsets the shell as it's not expecting a parenthesized call.