diff options
| author | Andreas Schwab | 2006-10-23 15:28:18 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2006-10-23 15:28:18 +0000 |
| commit | f13de01e9312a66ea67189ca1b65a6ea5acb25b3 (patch) | |
| tree | b7888805a6c0eda25bbcfba497549abf59922295 | |
| parent | 081ff0c9bc4ea8668f795dc86d6f1549df132cf5 (diff) | |
| download | emacs-f13de01e9312a66ea67189ca1b65a6ea5acb25b3.tar.gz emacs-f13de01e9312a66ea67189ca1b65a6ea5acb25b3.zip | |
Make sure x_default_search_path is always set even
when x_libraries is empty, and look in .../share as well for each
library directory.
| -rw-r--r-- | configure.in | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 03ef25375b4..a64d161a79a 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1720,11 +1720,18 @@ else | |||
| 1720 | window_system=x11 | 1720 | window_system=x11 |
| 1721 | fi | 1721 | fi |
| 1722 | 1722 | ||
| 1723 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | 1723 | if test "${x_libraries}" != NONE; then |
| 1724 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | 1724 | if test -n "${x_libraries}"; then |
| 1725 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | 1725 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` |
| 1726 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | ||
| 1727 | fi | ||
| 1726 | x_default_search_path="" | 1728 | x_default_search_path="" |
| 1727 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | 1729 | x_search_path=${x_libraries} |
| 1730 | if test -z "${x_search_path}"; then | ||
| 1731 | x_search_path=/usr/lib | ||
| 1732 | fi | ||
| 1733 | for x_library in `echo ${x_search_path}: | \ | ||
| 1734 | sed -e "s/:/ /g" -e p -e "s:/lib[[^ /]]* :/share :g"`; do | ||
| 1728 | x_search_path="\ | 1735 | x_search_path="\ |
| 1729 | ${x_library}/X11/%L/%T/%N%C%S:\ | 1736 | ${x_library}/X11/%L/%T/%N%C%S:\ |
| 1730 | ${x_library}/X11/%l/%T/%N%C%S:\ | 1737 | ${x_library}/X11/%l/%T/%N%C%S:\ |