Skip to content

Commit

Permalink
[Linux] Test config script: Add the X11 library search path if it is …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
gabomdq committed Aug 28, 2013
1 parent 7fc50af commit aef52c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/configure
Expand Up @@ -3794,7 +3794,11 @@ if test x$have_x = xyes; then
:
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

Expand Down
6 changes: 5 additions & 1 deletion test/configure.in
Expand Up @@ -100,7 +100,11 @@ if test x$have_x = xyes; then
:
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

Expand Down

0 comments on commit aef52c3

Please sign in to comment.