Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEberhard Beilharz <eb1@sil.org>2011-07-28 14:00:46 +0400
committerEberhard Beilharz <eb1@sil.org>2014-02-28 21:04:40 +0400
commit5a79253d674fb7ca98cd79e4d07f211d807b8cdb (patch)
tree90e38ff5c854f592dcd0d5b4975b29639d2179d5 /configure.in
parent2009c2284e5073d16341d31c5b5309273a3db957 (diff)
[MWF] Fix finding of X11 shared library on Ubuntu (#708856)
When libX11-dev is not installed on an end-user's machine MWF apps will crash in XCreateFontSet. This change uses dynamic search path when building instead of hard coded directories when searching for libX11.so.*. This fixes bug 708856 (https://bugzilla.novell.com/show_bug.cgi?id=708856).
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 2313669d990..787e66c15d0 100644
--- a/configure.in
+++ b/configure.in
@@ -2948,8 +2948,9 @@ case "$host" in
;;
*-*-*linux*)
AC_PATH_X
+ dlsearch_path=`(libtool --config ; echo eval echo \\$sys_lib_dlsearch_path_spec) | sh`
AC_MSG_CHECKING(for the soname of libX11.so)
- for i in $x_libraries /usr/lib /usr/lib64; do
+ for i in $x_libraries $dlsearch_path; do
for r in 4 5 6; do
if test -f $i/libX11.so.$r; then
X11=libX11.so.$r