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

aclocal fails with error #69

Open
MikeyG12 opened this issue Apr 12, 2024 · 0 comments
Open

aclocal fails with error #69

MikeyG12 opened this issue Apr 12, 2024 · 0 comments

Comments

@MikeyG12
Copy link

configure.ac:36: warning: underquoted definition of AC_REQUIRE(AC_CANONICAL_HOST
configure.ac:36: error: AC_REQUIRE(): cannot be used outside of an AC_DEFUN'd macro

I tried to generate the build environment, but aclocal fails with this error. I did some digging, it looks like aclocal now requires AC_REQUIRE calls to be wrapped in AC_DEFUN. I changed the configure.ac file to the following:

AC_DEFUN([MY_SETUP], [
        AC_REQUIRE([AC_CANONICAL_HOST])_LT_SET_OPTION([LT_INIT],[win32-dll])
])
MY_SETUP

After this change, technically, I could successfully generate the build environment, but I also saw these suggestions:

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.

I moved aclocal.m4 to it's own m4 directory, and added AC_CONFIGURE_MACRO_DIRS([m4]) to the configure.ac file. I also added ACLOCAL_AMFLAGS = -I m4 to the Makefile.am file and I was no longer getting warnings when running alocal, autoheader, libtoolize or autoconf

Finally, on the https://x42.github.io/libltc/ page the generate build environment steps show libtoolize –copy and automake –gnu –add-missing –copy but since those are long options, it should be updated to libtoolize --copy and automake --gnu --add-missing --copy

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

No branches or pull requests

1 participant