The bootstrap script does not parse AC_INIT from configure.ac correctly if
AC_INIT is split among two lines;  Results:

  $ ./bootstrap
  ....
  ./bootstrap: autoconf --force ...
  ./bootstrap: autoheader --force ...
  ./bootstrap: automake --add-missing --copy --force-missing ...
  doc/Makefile.am:25: error: PU_RMT_COND does not appear in AM_CONDITIONAL
  $ cat m4/paxutils.m4 | grep PAXUTILS
  AC_DEFUN([_PAXUTILS],[
  $ #       ^^^^ That should be cpio_PAXUTILS

I don't think that parsing the package like that is correct approach but
dunno what is correct.  Possibly something like this?

   autom4te --language Autoconf --trace AC_INIT configure.ac | \
      cut -d: -f 4 | sed 's|^GNU[[:space:]]||'

Not sure, but the workaround is to make it one-liner; attached.  Note that
detecting defects like this is not very trivial..

Pavel
>From 9563d218b0be0e2c9cbe46db065753f1d532f956 Mon Sep 17 00:00:00 2001
From: Pavel Raiskup <[email protected]>
Date: Fri, 31 Jan 2014 09:56:32 +0100
Subject: [PATCH] confiugre.ac: workaround bootstrap problem

Bootstrap does not detect correctly the '$package' variable if the
AC_INIT line is split among more lines.  This caused spurious
problems, e.g. s/cpio_PAXUTILS/_PAXUTILS/.

* configure.ac (AC_INIT): Make the AC_INIT oneliner.
---
 configure.ac | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1d3d985..1176a87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,8 +16,7 @@ dnl
 dnl You should have received a copy of the GNU General Public License
 dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-AC_INIT([GNU cpio], [2.11.90], [[email protected]],,
-        [http://www.gnu.org/software/cpio])
+AC_INIT([GNU cpio], [2.11.90], [[email protected]],,[http://www.gnu.org/software/cpio])
 AC_CONFIG_SRCDIR(src/cpio.h)
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_HEADERS([config.h])
-- 
1.8.5.3

Reply via email to