Bug 5869 - autogen.sh is failing -- undefined macro: _AC_SUBST_VARS
Summary: autogen.sh is failing -- undefined macro: _AC_SUBST_VARS
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: Build environment (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-03 14:40 UTC by Jeff Layton
Modified: 2008-12-09 12:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Layton 2008-11-03 14:40:20 UTC
I'm unable to use autogen.sh on machines with more recent autotools:

# ./autogen.sh 
./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'include/version.h' created for Samba("3.4.0-GIT-c726373-"devel"")
./autogen.sh: running autoheader -Im4 -I../lib/replace -I../source4
samba4.m4:134: error: m4_defn: undefined macro: _AC_SUBST_VARS
../source4/build/m4/public.m4:177: SMB_WRITE_PERLVARS is expanded from...
samba4.m4:134: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
autoheader: '/usr/bin/autom4te' failed with exit status: 1

...trying to build this on fedora rawhide, which has:

    autoconf-2.63-1.fc10.noarch

...when I run this on an older machine, it works with some warnings:

$ ./autogen.sh 
./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'include/version.h' created for Samba("3.4.0-GIT-c726373-"devel"")
./autogen.sh: running autoheader -Im4 -I../lib/replace -I../source4
lib/events/libevents.m4:19: warning: AC_LIBREPLACE_NETWORK_CHECKS invoked multiple times
./autogen.sh: running autoconf -Im4 -I../lib/replace -I../source4
lib/events/libevents.m4:19: warning: AC_LIBREPLACE_NETWORK_CHECKS invoked multiple times
Now run ./configure and then make.

...the autoconf version there is:

autoconf-2.59-12.noarch

...let me know if you need other info or need me to test a patch.
Comment 1 Guenther Deschner 2008-12-09 12:03:26 UTC
This has been resolved by Jelmer.