[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.
This commit is contained in:
parent
c80fc2858b
commit
777731aa02
2 changed files with 10 additions and 2 deletions
6
test/configure
vendored
6
test/configure
vendored
|
@ -3794,7 +3794,11 @@ if test x$have_x = xyes; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
XPATH="-L$ac_x_libraries"
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,11 @@ if test x$have_x = xyes; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
XPATH="-L$ac_x_libraries"
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue