-
Notifications
You must be signed in to change notification settings - Fork 65
Description
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