Subject: Re: pkg/7254: when compiling fetchmail, autoheader is invoked
To: None <nakayosh@kcn.ne.jp>
From: Greg A. Woods <woods@most.weird.com>
List: netbsd-bugs
Date: 03/26/1999 18:40:30
[ On Saturday, March 27, 1999 at 01:19:40 (+0900), NAKAJIMA Yoshihiro wrote: ]
> Subject: pkg/7254: when compiling fetchmail, autoheader is invoked
>
> Usually this isn't used because config.h.in is newer than acconfig.h and
> configure.in.  But our pkg system updates configure.in by patch-ac, so
> autoheader is invoked.  If autoconf isn't installed, the compiling will
> fails.

If configure.in is being patched then the correct procedure would seem
to be to use, autoconf, particularly since it's in the pkgsrc tree, and
especially since patching the generated configure script can result in
huge patches.

I have successfully used the following in some hacks to squid-current,
and I see that's effectively what the ntop package does too:

# XXX we actually call autoreconf, but it calls autoconf
BUILD_DEPENDS+=      autoconf:../../devel/autoconf

# we have patched configure.in -- this is easier than maintaining a
# huge patch to the configure script...
pre-configure:
	(cd ${WRKSRC}; autoreconf)

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>