Warnings from preparing the configure

Hi, ALL,
I’m trying to build my software with the following script:

rm -rf Debug
autoreconf -i
mkdir Debug
cd Debug
../configure --enable-maintainer-mode 'CFLAGS=-g -O0' 'CXXFLAGS=-g -O0' 'JFLAGS=-g -O0' 'FFLAGS=-g -O0' --with-wx-config
make -j3

When it runs “autoreconf -i” I’m getting a lot of warnings:

libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
intltoolize: 'po/Makefile.in.in' exists: use '--force' to overwrite
configure.ac:79: warning: The macro `GLIB_GNU_GETTEXT' is obsolete.
configure.ac:79: You should run autoupdate.
aclocal.m4:635: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:735: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:79: the top level
configure.ac:79: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:79: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:320: GLIB_LC_MESSAGES is expanded from...
aclocal.m4:635: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:735: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:79: the top level
configure.ac:79: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:79: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
aclocal.m4:419: GLIB_WITH_NLS is expanded from...
aclocal.m4:635: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:735: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:79: the top level
configure.ac:79: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:79: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
aclocal.m4:419: GLIB_WITH_NLS is expanded from...
aclocal.m4:635: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:735: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:79: the top level
configure.ac:79: warning: The macro `AC_OUTPUT_COMMANDS' is obsolete.
configure.ac:79: You should run autoupdate.
./lib/autoconf/status.m4:1025: AC_OUTPUT_COMMANDS is expanded from...
aclocal.m4:419: GLIB_WITH_NLS is expanded from...
aclocal.m4:635: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:735: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:79: the top level

Running “autoupdate” and then “autoreconf -i” doesn’t help- I still getting those warnings.

How do I fix those? What should a replacements for them be?

Thank you.

Any reason why you’re building using obsolete 'autotools' and not the recommended meson, which is much easier to develop and maintain ?

This isn’t the right forum to ask for help with autotools.

@ebassi ,
Do you know where to go?

Thank you.

Not really, no; autotools are a GNU project, so you’ll have to look on their documentation.

@Sid
The project started a long time ago with Anjuta, which was using Autotools.
Its using wxWidgets and there is no template in new IDE (Builder) to make wxWidgets) project, even though it is de-facto GTK+ based library on Linux.

And I just keep the old way of doing things…

Thank you.

If you’re working on old projects, you are mostly on your own, as most folks would not be interested in investigating problems arising out of them.

Best thing to do here would be look into the documentation of autotools as ebassi mentioned, or search the web.

@Sid,
Yes, thank you.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.