mainAutoconf - Support: sr #110363, Requiring AC_REQUIRE_AUX_FILE to...

 
 

sr #110363: Requiring AC_REQUIRE_AUX_FILE to be in a macro contradicts Automake documentation

Submitter:  None
Submitted:  Thu 05 Nov 2020 01:32:48 PM UTC
   
 
Priority:  * 5 - Unprioritized Severity:  3 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 05 Nov 2020 02:03:31 PM UTC, comment #1: 

Yes, this is supposed to work.  Thanks for providing the nice clear test case; there was an earlier report of the same bug that didn't give me anything to verify the fix with.

Fixed in aa27fc5707c6be8c921548d5a2c408f24a125a09.

Zack Weinberg <zackw>
Group administrator
Thu 05 Nov 2020 01:32:48 PM UTC, original submission:  

dbus uses AC_REQUIRE_AUX_FILE to require tap-driver.sh to be present, similar to the example given in Automake documentation:


 % cat configure.ac
 AC_INIT([GNU Try Tap], [1.0], [bug-automake@gnu.org])
 AC_CONFIG_AUX_DIR([build-aux])
 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
 AC_CONFIG_FILES([Makefile])
 AC_REQUIRE_AUX_FILE([tap-driver.sh])
 AC_OUTPUT


We've had a report (https://gitlab.freedesktop.org/dbus/dbus/-/issues/316) that this fails with Autoconf 2.70 betas:


configure.ac:111: error: AC_REQUIRE(_AC_INIT_AUX_DIR): cannot be used outside of an AC_DEFUN'd macro


Because this pattern is recommended by Automake, I think this needs to continue to work in Autoconf 2.70, even if it might issue a deprecation warning in 2.70 and stop working in a future release.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zackw (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-11-05 zackw StatusNone Done
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code