diff options
| author | Karl Heuer | 1995-05-30 23:26:56 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-05-30 23:26:56 +0000 |
| commit | cc6476f61da6cfeed6263df09e3d2a36ecbeb9f7 (patch) | |
| tree | a1e5cfeb32a3c72b1fb35aee1e0e7e1cea0da296 | |
| parent | e241c09b688001791daac166da842f65cefa4a3a (diff) | |
| download | emacs-cc6476f61da6cfeed6263df09e3d2a36ecbeb9f7.tar.gz emacs-cc6476f61da6cfeed6263df09e3d2a36ecbeb9f7.zip | |
Use x_includes, not x_libraries, for -I.
Make bitmapdir a colon-separated list.
| -rw-r--r-- | configure.in | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 0bafbc1c3b9..33f8540258d 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -940,15 +940,24 @@ if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |||
| 940 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | 940 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` |
| 941 | fi | 941 | fi |
| 942 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | 942 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then |
| 943 | C_SWITCH_X_SITE=-I`echo ${x_libraries} | sed -e "s/:/ -I/g"` | 943 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` |
| 944 | fi | 944 | fi |
| 945 | 945 | ||
| 946 | if test x"${x_includes}" = x; then | 946 | if test x"${x_includes}" = x; then |
| 947 | bitmapdir=/usr/include/X11/bitmaps | 947 | bitmapdir=/usr/include/X11/bitmaps |
| 948 | elif test -d "${x_includes}/X11/bitmaps"; then | ||
| 949 | bitmapdir="${x_includes}/X11/bitmaps" | ||
| 950 | else | 948 | else |
| 951 | bitmapdir="${x_includes}/bitmaps" | 949 | # accumulate include directories that have X11 bitmap sudirectories |
| 950 | bmd_acc="dummyval" | ||
| 951 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | ||
| 952 | if test -d "${bmd}/X11/bitmaps"; then | ||
| 953 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | ||
| 954 | elif test -d "${bmd}/bitmaps"; then | ||
| 955 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | ||
| 956 | fi | ||
| 957 | done | ||
| 958 | if test ${bmd_acc} != "dummyval"; then | ||
| 959 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | ||
| 960 | fi | ||
| 952 | fi | 961 | fi |
| 953 | 962 | ||
| 954 | case "${window_system}" in | 963 | case "${window_system}" in |