Bug #32717 use of non-standard autoconf macro AC_COMPILE_WARNINGS
Submitted: 26 Nov 2007 14:10 Modified: 26 Nov 2007 15:15
Reporter: Hartmut Holzgraefe Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connectors: NDB/Bindings Severity:S3 (Non-critical)
Version:ndb-connectors-0.5.6.3.5.5 OS:Any
Assigned to: CPU Architecture:Any

[26 Nov 2007 14:10] Hartmut Holzgraefe
Description:
The AC_COMPILE_WARNINGS seems to exist on the machine used to create the source tarball, as it is not a standard macro and as the macro source is not bundled within the tarball either attempts to recreate the configure file (e.g. after pacthing acinclude.m4 to work around Bug #32715) fail

How to repeat:
Try "autoreconf -i" on a machine with only the default autotools macros installed

Suggested fix:
Either bundle the AC_DEFINE_WARNINGS m4 source with the
ndb-connectors tarball or do not rely on this macro.
[26 Nov 2007 14:10] Hartmut Holzgraefe
same for AC_COMPARE_VERSION and AC_DEFINE_DIR:

db-connectors-0.5.6.3.5.5 > autoreconf -vi
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal -I m4 
autoreconf: configure.in: tracing
autoreconf: configure.in: subdirectory swig/SWIG to autoreconf
autoreconf: Entering directory `swig/SWIG'
autoreconf: running: aclocal 
autoreconf: configure.in: not using Libtool
autoreconf: running: /usr/bin/autoconf
configure.in:35: error: possibly undefined macro: AC_COMPILE_WARNINGS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:1280: error: possibly undefined macro: AC_COMPARE_VERSION
configure.in:1949: error: possibly undefined macro: AC_DEFINE_DIR
autoreconf: /usr/bin/autoconf failed with exit status: 1
[26 Nov 2007 14:10] Hartmut Holzgraefe
same for AC_COMPARE_VERSION and AC_DEFINE_DIR:

ndb-connectors-0.5.6.3.5.5 > autoreconf -vi
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal -I m4 
autoreconf: configure.in: tracing
autoreconf: configure.in: subdirectory swig/SWIG to autoreconf
autoreconf: Entering directory `swig/SWIG'
autoreconf: running: aclocal 
autoreconf: configure.in: not using Libtool
autoreconf: running: /usr/bin/autoconf
configure.in:35: error: possibly undefined macro: AC_COMPILE_WARNINGS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:1280: error: possibly undefined macro: AC_COMPARE_VERSION
configure.in:1949: error: possibly undefined macro: AC_DEFINE_DIR
autoreconf: /usr/bin/autoconf failed with exit status: 1
[26 Nov 2007 15:15] Hartmut Holzgraefe
Not a bug, macros are bundled with the embedded swig, 
autogen.sh needs to be run instead of autoreconf to
get things set up properly