[Linux] Test config script: Add the X11 library search path if it is not empty
authorGabriel Jacobo <gabomdq@gmail.com>
Wed, 28 Aug 2013 12:43:29 -0300
changeset 7704 3182291fc65f
parent 7703 982abfefd19d
child 7705 e70dc8b38f26
[Linux] Test config script: Add the X11 library search path if it is not empty If ac_x_libraries is empty it means that the library's found in the default path, so we skip adding it to the XLIB variable as it screws up the search path.
test/configure
test/configure.in
--- a/test/configure	Wed Aug 28 10:41:25 2013 -0300
+++ b/test/configure	Wed Aug 28 12:43:29 2013 -0300
@@ -3794,7 +3794,11 @@
         :
     else
         XPATH="-L$ac_x_libraries"
-        XLIB="-lX11"
+        if test "x$ac_x_libraries" = x; then
+            XLIB="-lX11"
+        else
+            XLIB="-L$ac_x_libraries -lX11"
+        fi
     fi
 fi
 
--- a/test/configure.in	Wed Aug 28 10:41:25 2013 -0300
+++ b/test/configure.in	Wed Aug 28 12:43:29 2013 -0300
@@ -100,7 +100,11 @@
         :
     else
         XPATH="-L$ac_x_libraries"
-        XLIB="-lX11"
+        if test "x$ac_x_libraries" = x; then
+            XLIB="-lX11"
+        else
+            XLIB="-L$ac_x_libraries -lX11"
+        fi
     fi
 fi