bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bootstrap, autoreconf: intransparent error reporting


From: Bruno Haible
Subject: bootstrap, autoreconf: intransparent error reporting
Date: Sun, 02 Apr 2017 22:21:37 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-70-generic; KDE/5.18.0; x86_64; ; )

Hi,

Here's a case where the errors from bootstrap and autoreconf don't help much.

How to reproduce:
- Use an automake 1.15 installation from source (not the one your distro
  has put in /usr).
- $ git clone https://github.com/rrthomas/enchant.git
  $ cd enchant
  $ cp /somewhere/pkg.m4 m4/pkg.m4
  $ ./autogen.sh
  [works fine]
  $ cd ..
- $ rm -rf enchant
- $ git clone https://github.com/rrthomas/enchant.git
  $ cd enchant
  $ ./autogen.sh
  ...
  bootstrap: running: autoreconf --symlink --install
  configure.ac:8: error: possibly undefined macro: dnl
        If this token and others are legitimate, please use m4_pattern_allow.
        See the Autoconf documentation.
  configure.ac:143: error: possibly undefined macro: AC_CHECK_HEADERS
  configure.ac:175: error: possibly undefined macro: AC_LANG_PUSH
  configure.ac:199: error: possibly undefined macro: AC_MSG_WARN
  configure.ac:203: error: possibly undefined macro: AC_LANG_POP
  configure.ac:214: error: possibly undefined macro: m4_default
  configure.ac:235: error: possibly undefined macro: AC_MSG_FAILURE
  autoreconf: autoconf failed with exit status: 1

Really, the undefined macro is PKG_CHECK_MODULES, not any of
AC_CHECK_HEADERS, AC_LANG_PUSH, AC_MSG_WARN, AC_LANG_POP, m4_default,
AC_MSG_FAILURE.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]