diff options
| -rw-r--r-- | configure.in | 149 |
1 files changed, 43 insertions, 106 deletions
diff --git a/configure.in b/configure.in index abf68ea4af1..ea4d9adf6ea 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -33,13 +33,13 @@ AC_ARG_WITH(x-toolkit, | |||
| 33 | n | no ) val=no ;; | 33 | n | no ) val=no ;; |
| 34 | l | lu | luc | luci | lucid ) val=lucid ;; | 34 | l | lu | luc | luci | lucid ) val=lucid ;; |
| 35 | a | at | ath | athe | athena ) val=athena ;; | 35 | a | at | ath | athe | athena ) val=athena ;; |
| 36 | # These don't currently work. | 36 | dnl These don't currently work. |
| 37 | # m | mo | mot | moti | motif ) val=motif ;; | 37 | dnl m | mo | mot | moti | motif ) val=motif ;; |
| 38 | # o | op | ope | open | open- | open-l | open-lo \ | 38 | dnl o | op | ope | open | open- | open-l | open-lo \ |
| 39 | # | open-loo | open-look ) val=open-look ;; | 39 | dnl | open-loo | open-look ) val=open-look ;; |
| 40 | * ) | 40 | * ) |
| 41 | [#] AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value | 41 | dnl AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value |
| 42 | [#]which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.]) | 42 | dnl which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.]) |
| 43 | AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value | 43 | AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value |
| 44 | which is \`yes', \`no', \`lucid', or \`athena'. | 44 | which is \`yes', \`no', \`lucid', or \`athena'. |
| 45 | Currently, \`yes', \`athena' and \`lucid' are synonyms.]) | 45 | Currently, \`yes', \`athena' and \`lucid' are synonyms.]) |
| @@ -49,17 +49,14 @@ Currently, \`yes', \`athena' and \`lucid' are synonyms.]) | |||
| 49 | ]) | 49 | ]) |
| 50 | AC_ARG_WITH(gcc, | 50 | AC_ARG_WITH(gcc, |
| 51 | [ --with-gcc Use GCC to compile Emacs]) | 51 | [ --with-gcc Use GCC to compile Emacs]) |
| 52 | AC_ARG_ENABLE(in-place, | 52 | dnl AC_ARG_ENABLE(single-tree, |
| 53 | [ --enable-in-place Use libraries and data files directly out of the | 53 | dnl [ --enable-single-tree Create a directory tree at DIR which looks like: |
| 54 | source tree]) | 54 | dnl .../DIR/bin/CONFIGNAME (emacs, etags, etc.) |
| 55 | AC_ARG_ENABLE(single-tree, | 55 | dnl .../DIR/bin/CONFIGNAME/etc (movemail, etc.) |
| 56 | [ --enable-single-tree Create a directory tree at DIR which looks like: | 56 | dnl .../DIR/common/lisp (emacs' lisp files) |
| 57 | .../DIR/bin/CONFIGNAME (emacs, etags, etc.) | 57 | dnl .../DIR/common/site-lisp (local lisp files) |
| 58 | .../DIR/bin/CONFIGNAME/etc (movemail, etc.) | 58 | dnl .../DIR/common/lib (DOC, TUTORIAL, etc.) |
| 59 | .../DIR/common/lisp (emacs' lisp files) | 59 | dnl .../DIR/common/lock (lockfiles)]) |
| 60 | .../DIR/common/site-lisp (local lisp files) | ||
| 61 | .../DIR/common/lib (DOC, TUTORIAL, etc.) | ||
| 62 | .../DIR/common/lock (lockfiles)]) | ||
| 63 | 60 | ||
| 64 | #### Make srcdir absolute, if it isn't already. It's important to | 61 | #### Make srcdir absolute, if it isn't already. It's important to |
| 65 | #### avoid running the path through pwd unnecessary, since pwd can | 62 | #### avoid running the path through pwd unnecessary, since pwd can |
| @@ -840,82 +837,32 @@ AC_LONG_FILE_NAMES | |||
| 840 | dnl other checks for UNIX variants | 837 | dnl other checks for UNIX variants |
| 841 | 838 | ||
| 842 | #### Choose a window system. | 839 | #### Choose a window system. |
| 843 | AC_MSG_CHECKING(for specified window system) | ||
| 844 | 840 | ||
| 845 | window_system='' | 841 | case "${with_x10}" in |
| 846 | case "${with_x}" in | 842 | yes ) window_system=x10 ;; |
| 847 | yes ) window_system=${window_system}x11 ;; | 843 | no ) window_system=none ;; |
| 848 | no ) window_system=${window_system}none ;; | 844 | *) test -n "$with_x11" && with_x="$with_x11" |
| 849 | esac | 845 | AC_FIND_X |
| 850 | 846 | if test "$no_x" = yes; then | |
| 851 | case "${window_system}" in | 847 | window_system=none |
| 852 | .* ) ;; | ||
| 853 | * ) | ||
| 854 | case "${with_x11}" in | ||
| 855 | yes ) window_system=x11 ;; | ||
| 856 | no ) window_system=none ;; | ||
| 857 | esac | ||
| 858 | case "${with_x10}" in | ||
| 859 | yes ) window_system=x10 ;; | ||
| 860 | no ) window_system=none ;; | ||
| 861 | esac ;; | ||
| 862 | esac | ||
| 863 | |||
| 864 | case "${window_system}" in | ||
| 865 | "none" | "x11" | "x10" ) ;; | ||
| 866 | "" ) | ||
| 867 | # --x-includes or --x-libraries implies --with-x11. | ||
| 868 | if test "${x_includes}" != NONE || test "${x_libraries}" != NONE; then | ||
| 869 | window_system=x11 | ||
| 870 | else | 848 | else |
| 871 | # If the user didn't specify a window system and we found X11, use it. | ||
| 872 | if test -r /usr/lib/libX11.a \ | ||
| 873 | -o -d /usr/include/X11 \ | ||
| 874 | -o -d /usr/X386/include \ | ||
| 875 | -o -d ${x_includes}/X11 ; then | ||
| 876 | window_system=x11 | ||
| 877 | fi | ||
| 878 | fi | ||
| 879 | ;; | ||
| 880 | * ) | ||
| 881 | AC_MSG_ERROR(Don't specify a window system more than once.) | ||
| 882 | ;; | ||
| 883 | esac | ||
| 884 | |||
| 885 | AC_MSG_RESULT(${window_system}) | ||
| 886 | |||
| 887 | case "${window_system}" in | ||
| 888 | "" | "x11" ) | ||
| 889 | ### If the user hasn't specified where we should find X, try | ||
| 890 | ### letting Autoconf figure that out. | ||
| 891 | if test "${x_includes}" = NONE && test "${x_libraries}" = NONE; then | ||
| 892 | AC_FIND_X | ||
| 893 | fi | ||
| 894 | if test "${x_includes}" != NONE || test "${x_libraries}" != NONE; then | ||
| 895 | window_system=x11 | 849 | window_system=x11 |
| 896 | fi | 850 | fi |
| 897 | ;; | 851 | ;; |
| 898 | esac | 852 | esac |
| 899 | 853 | ||
| 900 | test -z "${window_system}" && window_system=none | ||
| 901 | |||
| 902 | test "${x_libraries}" != NONE && LD_SWITCH_X_SITE="-L${x_libraries}" | 854 | test "${x_libraries}" != NONE && LD_SWITCH_X_SITE="-L${x_libraries}" |
| 903 | test "${x_libraries}" != NONE && LD_SWITCH_X_SITE_AUX="-R${x_libraries}" | 855 | test "${x_libraries}" != NONE && LD_SWITCH_X_SITE_AUX="-R${x_libraries}" |
| 904 | test "${x_includes}" != NONE && C_SWITCH_X_SITE="-I${x_includes}" | 856 | test "${x_includes}" != NONE && C_SWITCH_X_SITE="-I${x_includes}" |
| 905 | 857 | ||
| 906 | # Avoid forcing the search of /usr/include before fixed include files. | ||
| 907 | if test "$C_SWITCH_X_SITE" = "-I/usr/include"; then | ||
| 908 | C_SWITCH_X_SITE=" " | ||
| 909 | fi | ||
| 910 | |||
| 911 | case "${window_system}" in | 858 | case "${window_system}" in |
| 912 | x11 ) | 859 | x11 ) |
| 913 | HAVE_X_WINDOWS=yes | 860 | HAVE_X_WINDOWS=yes |
| 914 | HAVE_X11=yes | 861 | HAVE_X11=yes |
| 915 | case "${with_x_toolkit}" in | 862 | case "${with_x_toolkit}" in |
| 916 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | 863 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; |
| 917 | motif ) USE_X_TOOLKIT=MOTIF ;; | 864 | dnl motif ) USE_X_TOOLKIT=MOTIF ;; |
| 918 | open-look ) USE_X_TOOLKIT=OPEN_LOOK ;; | 865 | dnl open-look ) USE_X_TOOLKIT=OPEN_LOOK ;; |
| 919 | * ) USE_X_TOOLKIT=none ;; | 866 | * ) USE_X_TOOLKIT=none ;; |
| 920 | esac | 867 | esac |
| 921 | ;; | 868 | ;; |
| @@ -1223,36 +1170,26 @@ if test "${LISP_FLOAT_TYPE}" = "yes" ; then | |||
| 1223 | AC_DEFINE(LISP_FLOAT_TYPE) | 1170 | AC_DEFINE(LISP_FLOAT_TYPE) |
| 1224 | fi | 1171 | fi |
| 1225 | 1172 | ||
| 1226 | # ====================== Developer's configuration ======================= | 1173 | dnl # ====================== Developer's configuration ======================= |
| 1227 | 1174 | dnl | |
| 1228 | # The following assignments make sense if you're running Emacs on a single | 1175 | dnl # The following assignments make sense if you're running Emacs on a single |
| 1229 | # machine, one version at a time, and you want changes to the lisp and etc | 1176 | dnl # machine, one version at a time, and you want changes to the lisp and etc |
| 1230 | # directories in the source tree to show up immediately in your working | 1177 | dnl # directories in the source tree to show up immediately in your working |
| 1231 | # environment. It saves a great deal of disk space by not duplicating the | 1178 | dnl # environment. It saves a great deal of disk space by not duplicating the |
| 1232 | # lisp and etc directories. | 1179 | dnl # lisp and etc directories. |
| 1233 | 1180 | dnl | |
| 1234 | if test "$enable_in_place" = "yes"; then | 1181 | dnl if test "$enable_single_tree" = "yes"; then |
| 1235 | lispdir='${srcdir}/lisp' | 1182 | dnl bindir='${exec_prefix}/bin/${configuration}' |
| 1236 | locallisppath='${srcdir}/site-lisp' | 1183 | dnl datadir='${prefix}/common' |
| 1237 | etcdir='${srcdir}/etc' | 1184 | dnl statedir='${prefix}/common' |
| 1238 | lockdir='${srcdir}/lock' | 1185 | dnl libdir='${bindir}' |
| 1239 | # We used to make archlibdir and docdir absolute, | 1186 | dnl lispdir='${prefix}/common/lisp' |
| 1240 | # but that caused trouble with automounters. | 1187 | dnl locallisppath='${prefix}/common/site-lisp' |
| 1241 | archlibdir='${srcdir}/lib-src' | 1188 | dnl lockdir='${prefix}/common/lock' |
| 1242 | docdir='${srcdir}/etc' | 1189 | dnl archlibdir='${libdir}/etc' |
| 1243 | infodir='${srcdir}/info' | 1190 | dnl etcdir='${prefix}/common/data' |
| 1244 | elif test "$enable_single_tree" = "yes"; then | 1191 | dnl docdir='${prefix}/common/data' |
| 1245 | bindir='${exec_prefix}/bin/${configuration}' | 1192 | dnl fi |
| 1246 | datadir='${prefix}/common' | ||
| 1247 | statedir='${prefix}/common' | ||
| 1248 | libdir='${bindir}' | ||
| 1249 | lispdir='${prefix}/common/lisp' | ||
| 1250 | locallisppath='${prefix}/common/site-lisp' | ||
| 1251 | lockdir='${prefix}/common/lock' | ||
| 1252 | archlibdir='${libdir}/etc' | ||
| 1253 | etcdir='${prefix}/common/data' | ||
| 1254 | docdir='${prefix}/common/data' | ||
| 1255 | fi | ||
| 1256 | 1193 | ||
| 1257 | #### Report on what we decided to do. | 1194 | #### Report on what we decided to do. |
| 1258 | echo " | 1195 | echo " |