]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4686: configure doesn't find the Motif library with Cygwin v8.2.4686
authorKelvin Lee <kiyolee@gmail.com>
Mon, 4 Apr 2022 16:20:01 +0000 (17:20 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 4 Apr 2022 16:20:01 +0000 (17:20 +0100)
Problem:    Configure doesn't find the Motif library with Cygwin.
Solution:   Check for libXm.dll.a. (Kelvin Lee, closes #10077)

src/auto/configure
src/configure.ac
src/version.c

index a5497d8f789ee877a517f5bacd58df2938542681..8ed46c85f40d1d2083e895e71e75f7d70a80525e 100755 (executable)
@@ -10212,12 +10212,12 @@ $as_echo "no" >&6; }
 
         GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
 
-            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
+                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
     gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
     GUI_LIB_LOC=
     for try in $gui_libs; do
-      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
+      for libtry in "$try"/libXm.a "$try"/libXm.dll.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
        if test -f "$libtry"; then
          GUI_LIB_LOC=$try
        fi
index 1426e74c5e6309cfa0c4094a4503e9e16aa57c7e..913129f665f54aa5f27642f8321c8ca96103c718 100644 (file)
@@ -2965,11 +2965,12 @@ if test -z "$SKIP_MOTIF"; then
 
     dnl Ubuntu has libXm.so in /usr/lib/i386-linux-gnu and elsewhere.  The
     dnl linker will figure out which one to use, we only check if one exists.
+    dnl Cygwin uses the .dll.a extension.
     AC_MSG_CHECKING(for location of Motif GUI libs)
     gui_libs="`echo $x_libraries|sed 's%/[^/][^/]*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
     GUI_LIB_LOC=
     for try in $gui_libs; do
-      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
+      for libtry in "$try"/libXm.a "$try"/libXm.dll.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
        if test -f "$libtry"; then
          GUI_LIB_LOC=$try
        fi
index 930f92ec4302cc416b8474b65c0c70a8fc2bd8a9..fffd85f2a98e0aa31bad1bbf1c1517f74aa2e939 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4686,
 /**/
     4685,
 /**/