[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 77043182291fc65f
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
     1.1 --- a/test/configure	Wed Aug 28 10:41:25 2013 -0300
     1.2 +++ b/test/configure	Wed Aug 28 12:43:29 2013 -0300
     1.3 @@ -3794,7 +3794,11 @@
     1.4          :
     1.5      else
     1.6          XPATH="-L$ac_x_libraries"
     1.7 -        XLIB="-lX11"
     1.8 +        if test "x$ac_x_libraries" = x; then
     1.9 +            XLIB="-lX11"
    1.10 +        else
    1.11 +            XLIB="-L$ac_x_libraries -lX11"
    1.12 +        fi
    1.13      fi
    1.14  fi
    1.15  
     2.1 --- a/test/configure.in	Wed Aug 28 10:41:25 2013 -0300
     2.2 +++ b/test/configure.in	Wed Aug 28 12:43:29 2013 -0300
     2.3 @@ -100,7 +100,11 @@
     2.4          :
     2.5      else
     2.6          XPATH="-L$ac_x_libraries"
     2.7 -        XLIB="-lX11"
     2.8 +        if test "x$ac_x_libraries" = x; then
     2.9 +            XLIB="-lX11"
    2.10 +        else
    2.11 +            XLIB="-L$ac_x_libraries -lX11"
    2.12 +        fi
    2.13      fi
    2.14  fi
    2.15