Bug #522
closedUndefined macro in configure.in breaks configure
Description
Problem¶
Getting a warning from autoconf when running first ./autogen.sh on a freshly checked out svn copy.
This breaks the construction of ./configure, right after ''PKG_CHECK_MODULES(FAM, gamin >= 0.1.0,''
Setup¶
debian sarge x86
libtool 1.5.22
automake 1.9.6
autoconf 2.59
Reproducing the error¶
root@n2kdb:~/lighttpd svn co svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x
root@n2kdb:~/lighttpd cd lighttpd-merge-1.4.x
root@n2kdb:~/lighttpd/lighttpd-merge-1.4.x ./autogen.sh
./autogen.sh: running `libtoolize --copy --force'
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
./autogen.sh: running `aclocal'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake --add-missing --copy'
configure.in: installing `./install-sh'
configure.in: installing `./missing'
src/Makefile.am: installing `./compile'
src/Makefile.am: installing `./depcomp'
./autogen.sh: running `autoconf'
configure.in:69: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
root@n2kdb:~/lighttpd ./configure
...
checking for FAM... no
./configure: line 24491: syntax error near unexpected token `FAM,'
./configure: line 24491: ` PKG_CHECK_MODULES(FAM, gamin >= 0.1.0,'
root@n2kdb:~/lighttpd
-- rasmus at flajm dot se
Updated by jan almost 19 years ago
- Status changed from New to Fixed
- Resolution set to fixed
your pkg-config is too old. pkg-config 0.15.0 is fine.
Updated by Anonymous almost 17 years ago
- Status changed from Fixed to Need Feedback
- Resolution deleted (
fixed)
This is not fixed. I have the same trouble with centos 4X pkgconfig is latest version.
Updated by stbuehler almost 17 years ago
- Status changed from Need Feedback to Fixed
- Resolution set to worksforme
Just update autoconf and automake too.
If someone wants to reopen this again, please give us all version numbers (and not just "latest version").
I guess you need at least autoconf 2.50
Updated by stbuehler over 16 years ago
- Status changed from Fixed to Missing Feedback
Updated by daniel.reus almost 16 years ago
Installing pkg-config, as suggested, indeed solves the problem (at least for me).
However I think it would be nice to have this mentioned somewhere in the development-howtos as there are a lot of people wandering around the net with this problem.
Updated by daniel.reus almost 16 years ago
- Status changed from Missing Feedback to Reopened
Updated by gstrauss almost 9 years ago
- Description updated (diff)
- Category changed from core to documentation
- Status changed from Reopened to Fixed
I, too, have run into frustrating issues when I forgot to install pkg-config and tried to run ./autogen.sh under Cygwin, so I updated the documentation.
I updated both of the following pages with notes about installing development tools
https://redmine.lighttpd.net/projects/lighttpd/wiki/DevelSubversion
https://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource
Ensure you have installed the latest development tools available for the following packages:
- autoconf
- automake
- libtool
- m4
- pkg-config
https://redmine.lighttpd.net/projects/lighttpd/wiki/Devel links to
https://redmine.lighttpd.net/projects/lighttpd/wiki/DevelSubversion
If there are other pages that should be updated (preferably to point to one of the above pages), then please do so :), or post here and I'll do so.
Also available in: Atom