Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing AC_CONFIG_MACRO_DIR(m4) aclocal macro #18

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

kloczek
Copy link

@kloczek kloczek commented Nov 9, 2023

Without that patch is not possible to initialize source tree using standard autoreconf -fiv.
Missiang AC_CONFIG_MACRO_DIR(m4) call adds path to project local aclocal macros.

Without that patch is not possible to initialize source tree using
standard `autoreconf -fiv`.
Missiang AC_CONFIG_MACRO_DIR(m4) call adds path to project local
aclocal macros.

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
@kloczek
Copy link
Author

kloczek commented Nov 9, 2023

Without this patch autoreconf -fiv fails with

+ autoreconf -fiv
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
configure.ac:1856: warning: macro 'AM_LANGINFO_CODESET' not found in library
ERROR: invalid first argument to AM_GNU_GETTEXT
ERROR: Use of AM_GNU_GETTEXT without [external] argument is no longer supported.
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'tools'.
libtoolize: copying file 'tools/ltmain.sh'
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.
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force
configure.ac:1855: warning: macro 'AM_LANGINFO_CODESET' not found in library
configure.ac:2417: warning: macro 'AM_NLS' not found in library
configure.ac:2421: warning: macro 'AM_GNU_GETTEXT_VERSION' not found in library
configure.ac:2422: warning: macro 'AM_GNU_GETTEXT' not found in library
autoreconf: running: /usr/bin/autoconf --force
configure.ac:2218: error: possibly undefined macro: AM_LANGINFO_CODESET
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:2868: error: possibly undefined macro: AM_NLS
configure.ac:2872: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
configure.ac:2873: error: possibly undefined macro: AM_GNU_GETTEXT
autoreconf: error: /usr/bin/autoconf failed with exit status: 1

With this PR fix autoreconf is able to initialize source tree

+ autoreconf -fiv
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
configure.ac:1856: warning: macro 'AM_LANGINFO_CODESET' not found in library
ERROR: invalid first argument to AM_GNU_GETTEXT
ERROR: Use of AM_GNU_GETTEXT without [external] argument is no longer supported.
autoreconf: configure.ac: tracing
configure.ac: warning: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION or AM_GNU_GETTEXT_REQUIRE_VERSION
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'tools'.
libtoolize: copying file 'tools/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force
configure.ac:1856: warning: macro 'AM_LANGINFO_CODESET' not found in library
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: 'tools/install-sh' is updated
autoreconf: Leaving directory '.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant