]> git.lyx.org Git - lyx.git/commitdiff
Fix configure with autoconf 2.71
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 28 Apr 2022 12:36:11 +0000 (14:36 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 28 Apr 2022 12:36:11 +0000 (14:36 +0200)
This fixes two issues with autoconf 2.71

* a new version of eilseq.m4 from libiconv is required ;

* the AC_CHECK_HEADER last `-' argument is obsloleted, but I do not
  think that we needed it in the first place.

config/qt.m4
m4/eilseq.m4

index 05fa9ce5caff7ed95fbaa2f4ac4986230449f77f..8c1a818b33a2fa84fb1e222f902bb4973b1580e1 100644 (file)
@@ -231,10 +231,10 @@ AC_DEFUN([QT_DO_IT_ALL],
        CPPFLAGS="$save_CPPFLAGS $QT_CORE_INCLUDES"
        AC_CHECK_HEADER(QtGui/qtgui-config.h,
          [lyx_qt5_config=QtGui/qtgui-config.h],
-         [lyx_qt5_config=qconfig.h],[-])
+         [lyx_qt5_config=qconfig.h])
        AC_CHECK_HEADER(QtGui/private/qtgui-config_p.h,
          [lyx_qt6_config=QtGui/private/qtgui-config_p.h],
-         [lyx_qt6_config=qconfig.h],[-])
+         [lyx_qt6_config=qconfig.h])
        AC_MSG_CHECKING([whether Qt uses the X Window system])
        if test x$USE_QT6 = xyes ; then
          dnl FIXME: Check whether defining QPA_XCB makes sense with Qt6
index 792d514b59d7fa6a3bcb5044a105127901c1c30a..5f86ab374106d20f43eb785bb85f30dc64ec1636 100644 (file)
@@ -1,6 +1,6 @@
-#serial 1
+#serial 2
 
-AC_PREREQ(2.50)
+AC_PREREQ([2.61])
 
 # The EILSEQ errno value ought to be defined in <errno.h>, according to
 # ISO C 99 and POSIX.  But some systems (like SunOS 4) don't define it,
@@ -16,20 +16,20 @@ AC_DEFUN([AC_EILSEQ],
   AC_REQUIRE([AC_PROG_CC])dnl
 
   dnl Check for any extra headers that could define EILSEQ.
-  AC_CHECK_HEADERS(wchar.h)
+  AC_CHECK_HEADERS([wchar.h])
 
-  AC_CACHE_CHECK([for EILSEQ], ac_cv_decl_EILSEQ, [
-    AC_EGREP_CPP(yes,[
+  AC_CACHE_CHECK([for EILSEQ], [ac_cv_decl_EILSEQ], [
+    AC_EGREP_CPP([yes],[
 #include <errno.h>
 #ifdef EILSEQ
 yes
 #endif
-      ], have_eilseq=1)
+      ], [have_eilseq=1])
     if test -n "$have_eilseq"; then
       dnl EILSEQ exists in <errno.h>. Don't need to define EILSEQ ourselves.
       ac_cv_decl_EILSEQ=yes
     else
-      AC_EGREP_CPP(yes,[
+      AC_EGREP_CPP([yes],[
 #include <errno.h>
 #if HAVE_WCHAR_H
 #include <wchar.h>
@@ -37,11 +37,11 @@ yes
 #ifdef EILSEQ
 yes
 #endif
-        ], have_eilseq=1)
+        ], [have_eilseq=1])
       if test -n "$have_eilseq"; then
         dnl EILSEQ exists in some other system header.
         dnl Define it to the same value.
-        _AC_COMPUTE_INT([EILSEQ], ac_cv_decl_EILSEQ, [
+        AC_COMPUTE_INT([ac_cv_decl_EILSEQ], [EILSEQ], [
 #include <errno.h>
 #if HAVE_WCHAR_H
 #include <wchar.h>
@@ -62,6 +62,6 @@ yes
     AC_DEFINE_UNQUOTED([EILSEQ], [$ac_cv_decl_EILSEQ],
                        [Define as good substitute value for EILSEQ.])
     EILSEQ="$ac_cv_decl_EILSEQ"
-    AC_SUBST(EILSEQ)
+    AC_SUBST([EILSEQ])
   fi
 ])