]> git.draconx.ca Git - cdecl99.git/commitdiff
Fix configuration on Solaris 8.
authorNick Bowler <nbowler@draconx.ca>
Tue, 24 Jan 2023 07:14:53 +0000 (02:14 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 25 Jan 2023 04:27:51 +0000 (23:27 -0500)
There is an quoting error in Gnulib's threadlib.m4 which causes
incorrect configuration settings on old Solaris.  We can repeat
the simple check with correct quoting to workaround the problem.

Additionally, pull in DX_LINGUAS fixes from dxcommon to avoid
tripping on Solaris' pre-POSIX /bin/awk.

common
configure.ac
m4/.gitignore

diff --git a/common b/common
index b7a7076354b0837c6da080270bd0d6da2dfce75b..70c84546fa5ecaba26e4ed021b292a5580f304f0 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit b7a7076354b0837c6da080270bd0d6da2dfce75b
+Subproject commit 70c84546fa5ecaba26e4ed021b292a5580f304f0
index 7729fccfb546c6332fdbaaa2121ce716c717d6b6..9572e8c49bf60007f5638063343bae99bb7d117c 100644 (file)
@@ -28,6 +28,16 @@ gl_EARLY
 LT_INIT
 gl_INIT
 
+# Work around quoting bug in Gnulib threadlib.m4 which prevents
+# correct detection on e.g., Solaris 8.  These platforms require
+# PTHREAD_IN_USE_DETECTION_HARD to be set otherwise cdecl99 will
+# crash when reporting an error as initialization is not done.
+#
+# If this gets fixed in Gnulib, we can remove this.
+AS_CASE([$host_os],
+  [[solaris2.[1-9] | solaris2.[1-9].*]],
+    [AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD])])
+
 # As the mbrtowc replacement module is not used by the library, there is
 # no need for multithreaded mbrtowc (all programs are single threaded).
 AC_DEFINE([GNULIB_MBRTOWC_SINGLE_THREAD], [1], [Define to 1.])
index 53d1fb2c3b993038b5ed0d795abd8c0ec8020aa3..6cf6b45ab886ce4bf18c3c673977573aab5d05bd 100644 (file)
@@ -1,3 +1,4 @@
+/*.orig
 /00gnulib.m4
 /absolute-header.m4
 /alloca.m4