diff options
| -rwxr-xr-x | configure1.in | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/configure1.in b/configure1.in index 89b8450a620..3661ff75b21 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -96,7 +96,7 @@ unsuccessful after disturbing the status quo, it removes config.status." | |||
| 96 | config_h_opts=" \ | 96 | config_h_opts=" \ |
| 97 | HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \ | 97 | HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \ |
| 98 | SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\ | 98 | SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\ |
| 99 | LD_SWITCH_X_SITE C_SWITCH_X_SITE" | 99 | LD_SWITCH_X_SITE C_SWITCH_X_SITE HAVE_XFREE386" |
| 100 | 100 | ||
| 101 | ### Record all the arguments, so we can save them in config.status. | 101 | ### Record all the arguments, so we can save them in config.status. |
| 102 | arguments="$@" | 102 | arguments="$@" |
| @@ -792,7 +792,9 @@ case "${window_system}" in | |||
| 792 | "" ) | 792 | "" ) |
| 793 | echo " No window system specifed. Looking for X Windows." | 793 | echo " No window system specifed. Looking for X Windows." |
| 794 | window_system=none | 794 | window_system=none |
| 795 | if [ -r /usr/lib/libX11.a -o -d /usr/include/X11 ]; then | 795 | if [ -r /usr/lib/libX11.a \ |
| 796 | -o -d /usr/include/X11 \ | ||
| 797 | -o -d /usr/X386/include]; then | ||
| 796 | window_system=x11 | 798 | window_system=x11 |
| 797 | fi | 799 | fi |
| 798 | ;; | 800 | ;; |
| @@ -828,6 +830,17 @@ case ${HAVE_X11} in | |||
| 828 | ;; | 830 | ;; |
| 829 | esac | 831 | esac |
| 830 | 832 | ||
| 833 | ### Check for XFree386. It needs special hacks. | ||
| 834 | case ${window_system} in | ||
| 835 | x11 ) | ||
| 836 | if [ -d /usr/X386/include ]; then | ||
| 837 | HAVE_XFREE386=yes | ||
| 838 | if [ "${C_SWITCH_X_SITE}" = "" ]; then | ||
| 839 | C_SWITCH_X_SITE="-I/usr/X386/include | ||
| 840 | fi | ||
| 841 | fi | ||
| 842 | ;; | ||
| 843 | esac | ||
| 831 | 844 | ||
| 832 | #### Choose a compiler. | 845 | #### Choose a compiler. |
| 833 | echo "Checking compilers." | 846 | echo "Checking compilers." |
| @@ -936,8 +949,8 @@ echo ' | |||
| 936 | #endif | 949 | #endif |
| 937 | ' > ${tempcname} | 950 | ' > ${tempcname} |
| 938 | eval `${default_cc} -E ${tempcname} \ | 951 | eval `${default_cc} -E ${tempcname} \ |
| 939 | | grep '@configure@' \ | 952 | | grep '@configure@' \ |
| 940 | | sed -e 's/^@configure@//'` | 953 | | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'` |
| 941 | rm ${tempcname} | 954 | rm ${tempcname} |
| 942 | 955 | ||
| 943 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | 956 | # Do the opsystem or machine files prohibit the use of the GNU malloc? |