Opened 4 months ago

Closed 4 months ago

#960 closed discussion (fixed)

warnings from new autoconf

Reported by: Peter Owned by: Jari Häkkinen
Priority: minor Milestone: yat 0.18
Component: build Version: trunk
Keywords: Cc:

Description

Running bootstrap with the recent beta release of autoconf (2.69c), I noticed a bunch of warnings. It's expected as I think they have changed the default warning level. We can either turn down the warning level (with somthing like -Wno-obsolete) or update configure.ac. Calling AC_PROG_LIBTOOL is e.g. to support libtool and it's probably been a decade since libtool 2 was released.

peter@baresi:~/src/yat$ ./bootstrap 
configure.ac:116: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:116: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:116: the top level
configure.ac:250: warning: The macro `AC_CHECK_LIBM' is obsolete.
configure.ac:250: You should run autoupdate.
m4/libtool.m4:3870: AC_CHECK_LIBM is expanded from...
configure.ac:250: the top level
configure.ac:116: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:116: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:116: the top level
configure.ac:250: warning: The macro `AC_CHECK_LIBM' is obsolete.
configure.ac:250: You should run autoupdate.
m4/libtool.m4:3870: AC_CHECK_LIBM is expanded from...
configure.ac:250: the top level
configure.ac:116: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:116: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:116: the top level
configure.ac:250: warning: The macro `AC_CHECK_LIBM' is obsolete.
configure.ac:250: You should run autoupdate.
m4/libtool.m4:3859: AC_CHECK_LIBM is expanded from...
configure.ac:250: the top level
configure.ac:116: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:116: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:116: the top level
configure.ac:250: warning: The macro `AC_CHECK_LIBM' is obsolete.
configure.ac:250: You should run autoupdate.
m4/libtool.m4:3859: AC_CHECK_LIBM is expanded from...
configure.ac:250: the top level
configure.ac:116: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:116: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:116: the top level
configure.ac:250: warning: The macro `AC_CHECK_LIBM' is obsolete.
configure.ac:250: You should run autoupdate.
m4/libtool.m4:3859: AC_CHECK_LIBM is expanded from...
configure.ac:250: the top level
configure.ac:116: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:116: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:116: the top level
configure.ac:250: warning: The macro `AC_CHECK_LIBM' is obsolete.
configure.ac:250: You should run autoupdate.
m4/libtool.m4:3859: AC_CHECK_LIBM is expanded from...
configure.ac:250: the top level
configure.ac:86: installing 'autotools/compile'
configure.ac:55: installing 'autotools/missing'
Makefile.am: installing 'autotools/depcomp'

Change History (2)

comment:1 Changed 4 months ago by Peter

Milestone: yat 0.x+yat 0.18

Okay, the warnings are just the same warning repeatedly and only involve two macros from libtool. I found this ChangeLog? from libtool, dating back to 2004, describing the change and as expected the change was introduced in libtool 2, so easy enough to change the macros and require libtool 2.

2004-08-22  Gary V. Vaughan  <gary@gnu.org>

	The Grand Renaming.  In preparation for libtool-2.0, move all of
	the many and varied m4 symbols accumulated by libtool over the
	years, considering also that modern autoconf can detect unexpanded
	macros even without AC in the macro name:

comment:2 Changed 4 months ago by Peter

Resolution: fixed
Status: newclosed

In 3995:

avoid using macros marked obsolete and instead use versions in LT_ namespace. This means libtool v2 is required to bootstrap. closes #960.

Note: See TracTickets for help on using tickets.