aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-09-14 22:08:02 +0000
committerRichard M. Stallman1992-09-14 22:08:02 +0000
commit2c44309ae20a22e3e7eb5790ba851482a0e356e8 (patch)
treed2958a7256c1ff26a0c93c1a8a31a9f5a9ba919d
parent9806213d68c793d29f07203003384a23ec2dd184 (diff)
downloademacs-2c44309ae20a22e3e7eb5790ba851482a0e356e8.tar.gz
emacs-2c44309ae20a22e3e7eb5790ba851482a0e356e8.zip
entered into RCS
-rwxr-xr-xconfigure1.in89
-rw-r--r--src/config.in7
2 files changed, 47 insertions, 49 deletions
diff --git a/configure1.in b/configure1.in
index f44611c2272..d38400321fa 100755
--- a/configure1.in
+++ b/configure1.in
@@ -50,24 +50,25 @@ This message needs to be updated.
50Set compilation and installation parameters for GNU Emacs, and report. 50Set compilation and installation parameters for GNU Emacs, and report.
51MACHINENAME is the machine to build for. See \`etc/MACHINES'. 51MACHINENAME is the machine to build for. See \`etc/MACHINES'.
52Options are: 52Options are:
53 -opsystem=SYSTEM - operating system to build for; see \`etc/MACHINES'. 53 --opsystem=SYSTEM - operating system to build for; see \`etc/MACHINES'.
54 -prefix=DIR - where to install Emacs's library files 54 --prefix=DIR - where to install Emacs's library files
55These options have reasonable defaults (in []s), and may not be needed: 55These options have reasonable defaults (in []s), and may not be needed:
56 -g, -O - Passed to the compiler. If omitted, use -O only. 56 -g, -O - Passed to the compiler. Default is -g, plus -O if using gcc.
57 -cc=COMPILER - Which compiler to use. Defaults to gcc if available. 57 --cc=COMPILER - Which compiler to use. Defaults to gcc if available.
58 -libdir=DIR - where to look for arch-dependent library files 58 --libdir=DIR - where to look for arch-dependent library files
59 -datadir=DIR - where to look for architecture-independent library files 59 --datadir=DIR - where to look for architecture-independent library files
60 -bindir=DIR - where to install the Emacs executable, and some friends 60 --bindir=DIR - where to install the Emacs executable, and some friends
61 -lisppath=PATH - colon-separated list of Elisp directories 61 --lisppath=PATH - colon-separated list of Emacs Lisp directories
62 -lockdir=DIR - where Emacs should do its file-locking stuff 62 --lockdir=DIR - where Emacs should do its file-locking stuff
63 -window_system=none or [x11, if it is installed] - what window system to use 63 --with-x or --with-x10 - what window system to use;
64 -have_x_menu=yes or [no] - include menu support under X11 64 default is to use X11 if present
65 -gnu_malloc=[yes] or no - use the GNU memory allocator
66 -rel_alloc=[yes] or no - use compacting allocator for buffers
67 -highpri=N - run at N points higher-than-normal priority
68 -lisp_float_type=[yes] or no - Support native floating point in Elisp
69If successful, ${progname} leaves its status in config.status. If 65If successful, ${progname} leaves its status in config.status. If
70unsuccessful after disturbing the status quo, config.status is removed." 66unsuccessful after disturbing the status quo, config.status is removed."
67# These are omitted since users should not mess with them.
68# --gnu-malloc=[yes] or no - use the GNU memory allocator
69# --rel-alloc=[yes] or no - use compacting allocator for buffers
70# --lisp-float-type=[yes] or no - Support floating point in Emacs Lisp.
71# --window-system is omitted because --with... follow the conventions.
71 72
72if [ ! -r ./src/lisp.h ]; then 73if [ ! -r ./src/lisp.h ]; then
73 echo "${progname}: Can't find Emacs sources in \`./src'. 74 echo "${progname}: Can't find Emacs sources in \`./src'.
@@ -75,24 +76,26 @@ Run this config script in the top directory of the Emacs source tree." >&2
75 exit 1 76 exit 1
76fi 77fi
77 78
79# The option names defined here are actually the shell variable names.
80# They should have `_' in place of `-'.
78options=":\ 81options=":\
79usage:help:\ 82usage:help:\
80machine:opsystem:\ 83machine:opsystem:\
81g:O:cc:\ 84g:O:cc:\
82prefix:bindir:emacsdir:datadir:lispdir:locallisppath:\ 85prefix:bindir:emacsdir:datadir:lispdir:locallisppath:\
83lisppath:buildlisppath:statedir:lockdir:libdir:mandir:infodir:\ 86lisppath:buildlisppath:statedir:lockdir:libdir:mandir:infodir:\
84gnu_malloc:rel_alloc:highpri:lisp_float_type:\ 87gnu_malloc:rel_alloc:lisp_float_type:\
85window_system:have_x_menu:\ 88window_system:\
86" 89"
87 90
88boolean_opts=":\ 91boolean_opts=":\
89g:O:\ 92g:O:\
90gnu_malloc:rel_alloc:lisp_float_type:have_x_menu:\ 93gnu_malloc:rel_alloc:lisp_float_type:have_x_menu:with_x:with_x11:with_x10:\
91" 94"
92 95
93config_h_opts=":\ 96config_h_opts=":\
94highpri:gnu_malloc:rel_alloc:lisp_float_type:\ 97gnu_malloc:rel_alloc:lisp_float_type:\
95have_x_windows:have_x11:have_x_menu:\ 98have_x_windows:have_x11:\
96c_switch_site:sigtype:\ 99c_switch_site:sigtype:\
97" 100"
98 101
@@ -108,7 +111,6 @@ datadir=""
108libdir="" 111libdir=""
109lockdir="" 112lockdir=""
110window_system="" 113window_system=""
111have_x_menu=""
112 114
113# Record all the arguments, so we can save them in config.status. 115# Record all the arguments, so we can save them in config.status.
114arguments="$*" 116arguments="$*"
@@ -119,17 +121,18 @@ while [ $# != 0 ]; do
119 case "${arg}" in 121 case "${arg}" in
120 -*) 122 -*)
121 # Separate the switch name from the value it's being given. 123 # Separate the switch name from the value it's being given.
124 # Also change `-' in the option name to `_'.
122 case "${arg}" in 125 case "${arg}" in
123 -*=* ) 126 -*=*)
124 opt=`echo ${arg} | sed 's:^-\([^=]*\)=.*$:\1:'` 127 opt=`echo ${arg} | sed 's:^-*\([^=]*\)=.*$:\1:' | tr - _`
125 val=`echo ${arg} | sed 's:^-[^=]*=\(.*\)$:\1:'` 128 val=`echo ${arg} | sed 's:^-*[^=]*=\(.*\)$:\1:'`
126 valomitted=no 129 valomitted=no
127 ;; 130 ;;
128 -* ) 131 -*)
129 # If FOO is a boolean argument, -FOO is equivalent to 132 # If FOO is a boolean argument, -FOO is equivalent to
130 # -FOO=yes. Otherwise, the value comes from the next 133 # -FOO=yes. Otherwise, the value comes from the next
131 # argument - see below. 134 # argument - see below.
132 opt=`echo ${arg} | sed 's:^-\(.*\)$:\1:'` 135 opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:' | tr - _`
133 val="yes" 136 val="yes"
134 valomitted=yes 137 valomitted=yes
135 ;; 138 ;;
@@ -319,6 +322,22 @@ if [ ! "${infodir}" ]; then
319fi 322fi
320 323
321echo "Checking window system." 324echo "Checking window system."
325case "${with_x11}" in
326 yes )
327 window_system=${window_system}x11
328 ;;
329esac
330case "${with_x}" in
331 yes )
332 window_system=${window_system}x11
333 ;;
334esac
335case "${with_x10}" in
336 yes )
337 window_system=${window_system}x10
338 ;;
339esac
340
322# Note that SYSV `tr' doesn't handle character ranges. 341# Note that SYSV `tr' doesn't handle character ranges.
323window_system="`echo ${window_system} \ 342window_system="`echo ${window_system} \
324 | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" 343 | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
@@ -333,7 +352,7 @@ case "${window_system}" in
333 fi 352 fi
334 ;; 353 ;;
335 * ) 354 * )
336 echo "The \`-window_system' option must be set to \`none' or \`X11'." >&2 355 echo "Don\'t specify the window system more than once." >&2
337 exit 1 356 exit 1
338 ;; 357 ;;
339esac 358esac
@@ -353,10 +372,6 @@ case "${window_system}" in
353 ;; 372 ;;
354esac 373esac
355 374
356if [ "${have_x_menu}" = "" ]; then
357 have_x_menu=no
358fi
359
360echo "Checking for GCC." 375echo "Checking for GCC."
361case "${cc}" in 376case "${cc}" in
362 "" ) 377 "" )
@@ -460,9 +475,6 @@ set -e
460 475
461# Make the proper settings in the config file. 476# Make the proper settings in the config file.
462echo "Making src/config.h from src/config.h.in" 477echo "Making src/config.h from src/config.h.in"
463if [ "${highpri}" != "" ]; then
464 highpri="(-${highpri})"
465fi
466case "${g}" in 478case "${g}" in
467 "yes" ) c_switch_site="${c_switch_site} -g" ;; 479 "yes" ) c_switch_site="${c_switch_site} -g" ;;
468esac 480esac
@@ -569,11 +581,6 @@ chmod -w lib-src/Makefile
569 581
570 582
571# Create a verbal description of what we have done. 583# Create a verbal description of what we have done.
572if [ "${highpri}" ]; then
573 desc_highpri="${highpri}"
574else
575 desc_highpri="none"
576fi
577message="Configured for machine \`${machine}' running \`${opsystem}'. 584message="Configured for machine \`${machine}' running \`${opsystem}'.
578The following values have been set in ./Makefile and ./build-install: 585The following values have been set in ./Makefile and ./build-install:
579 \`make install' or \`build-install' will placed executables in 586 \`make install' or \`build-install' will placed executables in
@@ -588,12 +595,10 @@ The following values have been set in ./Makefile and ./build-install:
588 Emacs will keep track of file-locking in 595 Emacs will keep track of file-locking in
589 ${lockdir}. 596 ${lockdir}.
590The following values have been set in src/config.h: 597The following values have been set in src/config.h:
591 At how much higher than normal priority should Emacs run? ${desc_highpri}
592 Should Emacs use the GNU version of malloc? ${gnu_malloc}${gnu_malloc_reason} 598 Should Emacs use the GNU version of malloc? ${gnu_malloc}${gnu_malloc_reason}
593 Should Emacs use the relocating allocator for buffers? ${rel_alloc} 599 Should Emacs use the relocating allocator for buffers? ${rel_alloc}
594 Should Emacs support a floating point Elisp type? ${lisp_float_type} 600 Should Emacs support a floating point data type? ${lisp_float_type}
595 What window system should Emacs use? ${window_system} 601 What window system should Emacs use? ${window_system}
596 Should Emacs support mouse menus, which require X11? ${have_x_menu}
597 What compiler should emacs be built with? ${cc} 602 What compiler should emacs be built with? ${cc}
598 Should the compilation use \`-g' and/or \`-O'? ${c_switch_site- neither}" 603 Should the compilation use \`-g' and/or \`-O'? ${c_switch_site- neither}"
599 604
diff --git a/src/config.in b/src/config.in
index 1a0a063bafa..efc6fb71834 100644
--- a/src/config.in
+++ b/src/config.in
@@ -54,13 +54,6 @@ and this notice must be preserved on all copies. */
54 54
55/* #define AMPERSAND_FULL_NAME */ 55/* #define AMPERSAND_FULL_NAME */
56 56
57/* Define HIGHPRI as a negative number
58 if you want Emacs to run at a higher than normal priority.
59 For this to take effect, you must install Emacs with setuid root.
60 Emacs will change back to the users's own uid after setting
61 its priority. */
62/* #define HIGHPRI */
63
64/* Define LISP_FLOAT_TYPE if you want emacs to support floating-point 57/* Define LISP_FLOAT_TYPE if you want emacs to support floating-point
65 numbers. */ 58 numbers. */
66/* #define LISP_FLOAT_TYPE */ 59/* #define LISP_FLOAT_TYPE */