diff options
| author | Richard M. Stallman | 1994-01-20 14:39:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-20 14:39:31 +0000 |
| commit | 1c4ce111de483f587f535e2f222670d66bf40d77 (patch) | |
| tree | 144f298ad84fb61e6d22f1a3f88874c7e10fcde2 | |
| parent | ee18da587370423fb69a12a0820f34fdf0a66421 (diff) | |
| download | emacs-1c4ce111de483f587f535e2f222670d66bf40d77.tar.gz emacs-1c4ce111de483f587f535e2f222670d66bf40d77.zip | |
Handle --with-x-toolkit. Produce lwlib/Makefile.
Substitute USE_X_TOOLKIT as both C macro and Make variable.
If CPP has a value that is a directory, discard the value.
| -rwxr-xr-x | configure1.in | 82 |
1 files changed, 63 insertions, 19 deletions
diff --git a/configure1.in b/configure1.in index 5d5ac653e73..2fcca1a80ba 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -81,6 +81,14 @@ lockdir='${statedir}/emacs/lock' | |||
| 81 | archlibdir='${libdir}/emacs/${version}/${configuration}' | 81 | archlibdir='${libdir}/emacs/${version}/${configuration}' |
| 82 | CC= | 82 | CC= |
| 83 | 83 | ||
| 84 | # On Sun systems, people sometimes set up the variable CPP | ||
| 85 | # with a value that is a directory, not an executable at all. | ||
| 86 | # Detect that case, and ignore that value. | ||
| 87 | if [ "x$CPP" != x ] && [ -d "$CPP" ]; | ||
| 88 | then | ||
| 89 | CPP= | ||
| 90 | fi | ||
| 91 | |||
| 84 | # We cannot use this variable in the case statement below, because many | 92 | # We cannot use this variable in the case statement below, because many |
| 85 | # /bin/sh's have broken semantics for "case". Unfortunately, you must | 93 | # /bin/sh's have broken semantics for "case". Unfortunately, you must |
| 86 | # actually edit the clause itself. | 94 | # actually edit the clause itself. |
| @@ -96,10 +104,12 @@ Set compilation and installation parameters for GNU Emacs, and report. | |||
| 96 | CONFIGURATION specifies the machine and operating system to build for. | 104 | CONFIGURATION specifies the machine and operating system to build for. |
| 97 | --with-x Support the X Window System. | 105 | --with-x Support the X Window System. |
| 98 | --with-x=no Don't support X. | 106 | --with-x=no Don't support X. |
| 99 | --x-includes=DIR Search for X header files in DIR. | 107 | --with-x-toolkit Use an X toolkit. |
| 100 | --x-libraries=DIR Search for X libraries in DIR. | 108 | --with-x-toolkit=no Don't use an X toolkit. |
| 101 | --with-gcc Use GCC to compile Emacs. | 109 | --with-gcc Use GCC to compile Emacs. |
| 102 | --with-gcc=no Don't use GCC to compile Emacs. | 110 | --with-gcc=no Don't use GCC to compile Emacs. |
| 111 | --x-includes=DIR Search for X header files in DIR. | ||
| 112 | --x-libraries=DIR Search for X libraries in DIR. | ||
| 103 | --run-in-place Use libraries and data files directly out of the | 113 | --run-in-place Use libraries and data files directly out of the |
| 104 | source tree. | 114 | source tree. |
| 105 | --single-tree=DIR Has the effect of creating a directory tree at DIR | 115 | --single-tree=DIR Has the effect of creating a directory tree at DIR |
| @@ -186,6 +196,27 @@ Set it to either \`yes' or \`no'." | |||
| 186 | eval "${opt}=\"${val}\"" | 196 | eval "${opt}=\"${val}\"" |
| 187 | ;; | 197 | ;; |
| 188 | 198 | ||
| 199 | ## Has the user specified which toolkit they want to support? | ||
| 200 | "with_x_toolkit" ) | ||
| 201 | ## Make sure the value given was either "yes" or "no". | ||
| 202 | case "${val}" in | ||
| 203 | y | ye | yes ) val=athena ;; | ||
| 204 | n | no ) val=no ;; | ||
| 205 | l | lu | luc | luci | lucid ) val=lucid ;; | ||
| 206 | a | at | ath | athe | athena ) val=athena ;; | ||
| 207 | m | mo | mot | moti | motif ) val=motif ;; | ||
| 208 | o | op | ope | open | open- | open-l | open-lo \ | ||
| 209 | | open-loo | open-look ) val=open-look ;; | ||
| 210 | * ) | ||
| 211 | (echo "${progname}: the \`--${optname}' option is supposed to have a value | ||
| 212 | which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'." | ||
| 213 | echo "${short_usage}") >&2 | ||
| 214 | exit 1 | ||
| 215 | ;; | ||
| 216 | esac | ||
| 217 | eval "${opt}=\"${val}\"" | ||
| 218 | ;; | ||
| 219 | |||
| 189 | ## Has the user specified whether or not they want GCC? | 220 | ## Has the user specified whether or not they want GCC? |
| 190 | "with_gcc" | "with_gnu_cc" ) | 221 | "with_gcc" | "with_gnu_cc" ) |
| 191 | ## Make sure the value given was either "yes" or "no". | 222 | ## Make sure the value given was either "yes" or "no". |
| @@ -407,7 +438,7 @@ vpath %.in $(srcdir)' | |||
| 407 | fi | 438 | fi |
| 408 | 439 | ||
| 409 | ### Make the necessary directories, if they don't exist. | 440 | ### Make the necessary directories, if they don't exist. |
| 410 | for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do | 441 | for dir in ./src ./lib-src ./cpp ./oldXMenu ./lwlib ./etc ; do |
| 411 | if [ ! -d ${dir} ]; then | 442 | if [ ! -d ${dir} ]; then |
| 412 | mkdir ${dir} | 443 | mkdir ${dir} |
| 413 | fi | 444 | fi |
| @@ -1117,21 +1148,6 @@ case "${window_system}" in | |||
| 1117 | ;; | 1148 | ;; |
| 1118 | esac | 1149 | esac |
| 1119 | 1150 | ||
| 1120 | case "${window_system}" in | ||
| 1121 | "" | "x11" ) | ||
| 1122 | ### If the user hasn't specified where we should find X, try | ||
| 1123 | ### letting autoconf figure that out. | ||
| 1124 | if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then | ||
| 1125 | ] | ||
| 1126 | AC_FIND_X | ||
| 1127 | [ | ||
| 1128 | fi | ||
| 1129 | if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then | ||
| 1130 | window_system=x11 | ||
| 1131 | fi | ||
| 1132 | ;; | ||
| 1133 | esac | ||
| 1134 | |||
| 1135 | [ -z "${window_system}" ] && window_system=none | 1151 | [ -z "${window_system}" ] && window_system=none |
| 1136 | 1152 | ||
| 1137 | [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE="-L${x_libraries}" | 1153 | [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE="-L${x_libraries}" |
| @@ -1148,10 +1164,33 @@ case "${window_system}" in | |||
| 1148 | HAVE_X_WINDOWS=yes | 1164 | HAVE_X_WINDOWS=yes |
| 1149 | HAVE_X11=yes | 1165 | HAVE_X11=yes |
| 1150 | echo " Using X11." | 1166 | echo " Using X11." |
| 1167 | case "${with_x_toolkit}" in | ||
| 1168 | athena ) | ||
| 1169 | USE_X_TOOLKIT=ATHENA | ||
| 1170 | echo " Using Xt toolkit." | ||
| 1171 | ;; | ||
| 1172 | lucid ) | ||
| 1173 | USE_X_TOOLKIT=LUCID | ||
| 1174 | echo " Using Lucid toolkit." | ||
| 1175 | ;; | ||
| 1176 | motif ) | ||
| 1177 | USE_X_TOOLKIT=MOTIF | ||
| 1178 | echo " Using Motif toolkit." | ||
| 1179 | ;; | ||
| 1180 | open-look ) | ||
| 1181 | USE_X_TOOLKIT=OPEN_LOOK | ||
| 1182 | echo " Using Open-Look toolkit." | ||
| 1183 | ;; | ||
| 1184 | * ) | ||
| 1185 | USE_X_TOOLKIT=no | ||
| 1186 | echo " Using Xlib directly." | ||
| 1187 | ;; | ||
| 1188 | esac | ||
| 1151 | ;; | 1189 | ;; |
| 1152 | x10 ) | 1190 | x10 ) |
| 1153 | HAVE_X_WINDOWS=yes | 1191 | HAVE_X_WINDOWS=yes |
| 1154 | HAVE_X11=no | 1192 | HAVE_X11=no |
| 1193 | USE_X_TOOLKIT=no | ||
| 1155 | echo " Using X10." | 1194 | echo " Using X10." |
| 1156 | ;; | 1195 | ;; |
| 1157 | none ) | 1196 | none ) |
| @@ -1160,6 +1199,7 @@ case "${window_system}" in | |||
| 1160 | echo " Using no window system." | 1199 | echo " Using no window system." |
| 1161 | ;; | 1200 | ;; |
| 1162 | esac | 1201 | esac |
| 1202 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | ||
| 1163 | 1203 | ||
| 1164 | ### If we're using X11, we should use the X menu package. | 1204 | ### If we're using X11, we should use the X menu package. |
| 1165 | HAVE_X_MENU=no | 1205 | HAVE_X_MENU=no |
| @@ -1346,6 +1386,7 @@ AC_SUBST(LD_SWITCH_X_SITE) | |||
| 1346 | AC_SUBST(LD_SWITCH_X_SITE_AUX) | 1386 | AC_SUBST(LD_SWITCH_X_SITE_AUX) |
| 1347 | AC_SUBST(C_SWITCH_X_SITE) | 1387 | AC_SUBST(C_SWITCH_X_SITE) |
| 1348 | AC_SUBST(CFLAGS) | 1388 | AC_SUBST(CFLAGS) |
| 1389 | AC_SUBST(X_TOOLKIT_TYPE) | ||
| 1349 | 1390 | ||
| 1350 | AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") | 1391 | AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") |
| 1351 | AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") | 1392 | AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") |
| @@ -1358,6 +1399,9 @@ AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC}) | |||
| 1358 | if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then | 1399 | if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then |
| 1359 | ] AC_DEFINE(HAVE_X_WINDOWS) [ | 1400 | ] AC_DEFINE(HAVE_X_WINDOWS) [ |
| 1360 | fi | 1401 | fi |
| 1402 | if [ "${USE_X_TOOLKIT}" = "yes" ] ; then | ||
| 1403 | ] AC_DEFINE(USE_X_TOOLKIT) [ | ||
| 1404 | fi | ||
| 1361 | if [ "${HAVE_X11}" = "yes" ] ; then | 1405 | if [ "${HAVE_X11}" = "yes" ] ; then |
| 1362 | ] AC_DEFINE(HAVE_X11) [ | 1406 | ] AC_DEFINE(HAVE_X11) [ |
| 1363 | fi | 1407 | fi |
| @@ -1448,7 +1492,7 @@ test -n "${prefix}" && | |||
| 1448 | test -n "${exec_prefix}" && | 1492 | test -n "${exec_prefix}" && |
| 1449 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | 1493 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` |
| 1450 | ] | 1494 | ] |
| 1451 | AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile src/Makefile.in, [ | 1495 | AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile lwlib/Makefile src/Makefile.in, [ |
| 1452 | # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done | 1496 | # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done |
| 1453 | # after src/config.h is built, since we rely on that file. | 1497 | # after src/config.h is built, since we rely on that file. |
| 1454 | 1498 | ||