[sr #108503] Running autoscan in a directory with ltmain.sh produces conflicting warnings with libtoolize about AC_PROG_RANLIB

2020-07-10 Thread Zack Weinberg
Follow-up Comment #2, sr #108503 (project autoconf):

Filed bug #110261  on
Libtool.

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[sr #108503] Running autoscan in a directory with ltmain.sh produces conflicting warnings with libtoolize about AC_PROG_RANLIB

2020-07-10 Thread Zack Weinberg
Update of sr #108503 (project autoconf):

  Status:None => Invalid
 Open/Closed:Open => Closed 

___

Follow-up Comment #1:

This is a bug in libtool.m4, not in autoconf.  AC_PROG_RANLIB is not obsolete.
 Libtool's internal macro _LT_CMD_OLD_ARCHIVE inlines the definition of
AC_PROG_RANLIB, but there's no good reason for it to do this.  (Maybe a _very_
long time ago AC_PROG_RANLIB didn't use AC_CHECK_TOOL?  If so, it would have
been before the beginning of the VCS history in 2001, though.)

If I manually change _LT_CMD_OLD_ARCHIVE to do AC_REQUIRE([AC_PROG_RANLIB])
instead of what it does, then autoscan stops suggesting the addition of
AC_PROG_RANLIB.

I'll bounce this to the libtool maintainers.

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[sr #108503] Running autoscan in a directory with ltmain.sh produces conflicting warnings with libtoolize about AC_PROG_RANLIB

2014-02-12 Thread Eric Gallager
URL:
  http://savannah.gnu.org/support/?108503

 Summary: Running autoscan in a directory with ltmain.sh
produces conflicting warnings with libtoolize about AC_PROG_RANLIB   
 Project: Autoconf
Submitted by: egallager
Submitted on: Thu 13 Feb 2014 12:58:01 AM GMT
Category: None
Priority: 5 - Normal
Severity: 2 - Minor
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
Operating System: Mac OS

___

Details:

Let's say that, in an empty directory, I have a configure.ac file that looks
like this:

AC_INIT([testcase])
LT_INIT
AC_OUTPUT

Then I autoreconf, which puts ltmain.sh into the current directory. Now when I
run autoscan, it produces the following warnings:

Local-Admins-MacBook-Pro:autoconf_bug_reports_dir localadmin$ autoscan
configure.ac: warning: missing AC_PROG_CXX wanted by: ltmain.sh:960
configure.ac: warning: missing AC_PROG_INSTALL wanted by: ltmain.sh:1028
configure.ac: warning: missing AC_PROG_MAKE_SET wanted by: ltmain.sh:2163
configure.ac: warning: missing AC_PROG_RANLIB wanted by: ltmain.sh:2455

So I add these macros to my configure.ac, and now, when I autoreconf again, it
includes this warning:

glibtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'

If I then go and remove AC_PROG_RANLIB, autoscan will then warn about it being
missing again the next time I run it, leading to an endless cycle of
conflicting warnings. Perhaps autoscan could be modified to just ignore
ltmain.sh when scanning?






___

Reply to this item at:

  http://savannah.gnu.org/support/?108503

___
  Message sent via/by Savannah
  http://savannah.gnu.org/