Build Fix -- compatibility issue with newer autoconf master
authorSteve Youngs <steve@sxemacs.org>
Sat, 25 Sep 2021 03:27:51 +0000 (13:27 +1000)
committerSteve Youngs <steve@sxemacs.org>
Sat, 25 Sep 2021 03:27:51 +0000 (13:27 +1000)
Whan running ./autogen.sh it failed on _SXE_CHECK_LT2, it complained that
AC_CONFIG_MACRO_DIR can only be called once.

Using AC_CONFIG_MACRO_DIRS instead fixes the issue as that particular
macro is designed to be called multiple times.

* configure.ac: Use AC_CONFIG_MACRO_DIRS instead of
AC_CONFIG_MACRO_DIR.

* m4/sxe-libtool.m4 (_SXE_CHECK_LT2): Ditto.

Reported-by: Arthur Miller <arthur.miller@live.com>:
Signed-off-by: Steve Youngs <steve@sxemacs.org>
configure.ac
m4/sxe-libtool.m4

index b63a2b9..9264d1a 100644 (file)
@@ -13,7 +13,7 @@ AC_INIT([SXEmacs], [SXEM4CS_VERSION], [https://issues.sxemacs.org/])
 AC_CONFIG_HEADER([src/config.h])
 AC_CONFIG_SRCDIR([src/lisp.h])
 AC_CONFIG_AUX_DIR([.])
-AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_MACRO_DIRS([m4])
 
 dnl -------------------------------------------------------------------------
 dnl Local copyright notices.
index afa1c69..f176779 100644 (file)
@@ -67,7 +67,7 @@ AC_DEFUN([_SXE_CHECK_LT2], [dnl
        dnl for the `old' libtool2 stuff as this is available through
        dnl cvs only and we stick with the latest
        dnl AC_CONFIG_SUBDIRS([libltdl])
-       AC_CONFIG_MACRO_DIR([libltdl/m4])
+       AC_CONFIG_MACRO_DIRS([libltdl/m4])
 ])dnl _SXE_CHECK_LT2
 
 m4_ifdef([LT_CONFIG_LTDL_DIR], [], [dnl else