aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-20 14:39:31 +0000
committerRichard M. Stallman1994-01-20 14:39:31 +0000
commit1c4ce111de483f587f535e2f222670d66bf40d77 (patch)
tree144f298ad84fb61e6d22f1a3f88874c7e10fcde2
parentee18da587370423fb69a12a0820f34fdf0a66421 (diff)
downloademacs-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-xconfigure1.in82
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'
81archlibdir='${libdir}/emacs/${version}/${configuration}' 81archlibdir='${libdir}/emacs/${version}/${configuration}'
82CC= 82CC=
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.
87if [ "x$CPP" != x ] && [ -d "$CPP" ];
88then
89 CPP=
90fi
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.
96CONFIGURATION specifies the machine and operating system to build for. 104CONFIGURATION 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
212which 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)'
407fi 438fi
408 439
409### Make the necessary directories, if they don't exist. 440### Make the necessary directories, if they don't exist.
410for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do 441for 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 ;;
1118esac 1149esac
1119 1150
1120case "${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 ;;
1133esac
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 ;;
1162esac 1201esac
1202X_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.
1165HAVE_X_MENU=no 1205HAVE_X_MENU=no
@@ -1346,6 +1386,7 @@ AC_SUBST(LD_SWITCH_X_SITE)
1346AC_SUBST(LD_SWITCH_X_SITE_AUX) 1386AC_SUBST(LD_SWITCH_X_SITE_AUX)
1347AC_SUBST(C_SWITCH_X_SITE) 1387AC_SUBST(C_SWITCH_X_SITE)
1348AC_SUBST(CFLAGS) 1388AC_SUBST(CFLAGS)
1389AC_SUBST(X_TOOLKIT_TYPE)
1349 1390
1350AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") 1391AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
1351AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") 1392AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
@@ -1358,6 +1399,9 @@ AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
1358if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then 1399if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
1359 ] AC_DEFINE(HAVE_X_WINDOWS) [ 1400 ] AC_DEFINE(HAVE_X_WINDOWS) [
1360fi 1401fi
1402if [ "${USE_X_TOOLKIT}" = "yes" ] ; then
1403 ] AC_DEFINE(USE_X_TOOLKIT) [
1404fi
1361if [ "${HAVE_X11}" = "yes" ] ; then 1405if [ "${HAVE_X11}" = "yes" ] ; then
1362 ] AC_DEFINE(HAVE_X11) [ 1406 ] AC_DEFINE(HAVE_X11) [
1363fi 1407fi
@@ -1448,7 +1492,7 @@ test -n "${prefix}" &&
1448test -n "${exec_prefix}" && 1492test -n "${exec_prefix}" &&
1449 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` 1493 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
1450] 1494]
1451AC_OUTPUT(Makefile lib-src/Makefile oldXMenu/Makefile src/Makefile.in, [ 1495AC_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