When the old style of AC_INIT is used (with a single argument
that indicates a file to check for) recent Autoconf omits
Autoconf version info from the generated configure's --version
output.  Using the modern style of AC_INIT fixes the problem.

This is a forwarded copy of a bug reported against Debian's
package for Autoconf, which I maintain.  I've included the
original bug report below.

-------------------- Start of forwarded message --------------------
Delivery-date: Mon, 15 Nov 2004 05:12:47 -0800
Subject: Bug#281364: autoconf: configure doesn't show version for --version
Reply-To: Elrond <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED]
Resent-From: Elrond <[EMAIL PROTECTED]>
Resent-To: [EMAIL PROTECTED]
Resent-CC: Ben Pfaff <[EMAIL PROTECTED]>
Resent-Date: Mon, 15 Nov 2004 13:03:01 UTC
Resent-Message-ID: <[EMAIL PROTECTED]>
Date: Mon, 15 Nov 2004 13:34:43 +0100
From: Elrond <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.6+20040722i
Delivered-To: [EMAIL PROTECTED]
Resent-Sender: Debian BTS <[EMAIL PROTECTED]>
Resent-Date: Mon, 15 Nov 2004 05:10:37 -0800

Package: autoconf
Version: 2.59-8
Severity: minor

Should be obvious from this example:

        source% autoconf2.13 
        source% ./configure --version
        configure generated by autoconf version 2.13
        source% autoconf2.50
        source% ./configure --version

        Copyright (C) 2003 Free Software Foundation, Inc.
        This configure script is free software; the Free Software Foundation
        gives unlimited permission to copy, distribute and modify it.
        source% $EDITOR configure.in
        ... changing AC_INIT
                from: AC_INIT(include/foo.h)  <-- old 2.13 syntax
                to:   AC_INIT(mypackage, 3.3) <-- new syntax
        source% autoconf2.50 
        source% ./configure --version
        mypackage configure 3.3
        generated by GNU Autoconf 2.59


The configure generated with 2.5x should really say, that
it was generated using 2.59, even for oldish configure.in.


    Elrond

-------------------- End of forwarded message --------------------

-- 
"MONO - Monochrome Emulation
 This field is used to store your favorite bit."
--FreeVGA Attribute Controller Reference


_______________________________________________
Autoconf mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to