Check libX11.dylib if libX11.a is not found in each directory of X11
authortomo <tomo>
Thu, 10 Dec 2009 05:32:05 +0000 (05:32 +0000)
committertomo <tomo>
Thu, 10 Dec 2009 05:32:05 +0000 (05:32 +0000)
library path.

configure.in

index 1ff5fbe..a2cd2fb 100644 (file)
@@ -2747,7 +2747,7 @@ if test "$with_x11" != "no"; then
 
   if test "$x_libraries" = "NONE"; then
     for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
-      if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
+      if test -r "$dir/libX11.a" -o -r "$dir/libX11.dylib"; then x_libraries="$dir"; break; fi
     done
   fi