comparison configure1.in @ 2975:11c21b4d400d

* configure.in (long_usage): Removed; made short_usage describe the options. * configure.in: Implement the --prefix option. * Makefile.in (prefix): Add support for it here.
author Jim Blandy <jimb@redhat.com>
date Sun, 23 May 1993 04:42:38 +0000
parents 6b04a0846802
children 355fee3a2100
comparison
equal deleted inserted replaced
2974:253a291a62ca 2975:11c21b4d400d
57 progname="`echo $0 | sed 's:^\./\./:\./:'`" 57 progname="`echo $0 | sed 's:^\./\./:\./:'`"
58 58
59 59
60 #### Usage messages. 60 #### Usage messages.
61 61
62 short_usage="Type \`${progname} --usage' for more information about options." 62 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
63
64 long_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
65 63
66 Set compilation and installation parameters for GNU Emacs, and report. 64 Set compilation and installation parameters for GNU Emacs, and report.
67 CONFIGURATION specifies the machine and operating system to build for. 65 CONFIGURATION specifies the machine and operating system to build for.
68 For example: 66 --with-x Support the X Window System.
69 ${progname} sparc-sun-sunos4.1 67 --with-x=no Don't support the X Window System.
70 configures Emacs to build on a Sun Sparc machine running SunOS 4.1, and 68 --x-includes=DIR Search for X Window System header files in DIR.
71 ${progname} decstation 69 --x-libraries=DIR Search for X Window System libraries in DIR.
72 configures Emacs to run on a DECstation running Ultrix. See \`etc/MACHINES'. 70 --with-gcc Use GCC to compile Emacs.
73 71 --with-gcc=no Don't use GCC to compile Emacs.
74 The --with-x, --with-x11 and --with-x10 options specify what window 72 --run-in-place Use libraries and data files directly out of the
75 system to use; if all are omitted, use X11 if present. If you 73 source tree.
76 don't want X, specify \`--with-x=no'. 74 --srcdir=DIR Look for source in DIR.
77 75 --prefix=DIR Install files below dir.
78 The --x-includes=DIR option tells the build process where to search
79 for the X Windows header files. DIR should have a
80 subdirectory called \`X11' which contains \`X.h', \`Xlib.h', and
81 the rest of the header files; DIR should not contain \`X11'
82 itself. If this option is omitted, the build process assumes
83 they exist in a directory the compiler checks by default.
84
85 The --x-libraries=DIR option tells the build process where to look for
86 the X windows libraries. If this option is omitted, the build
87 process assumes they are in a directory the compiler checks by
88 default.
89
90 The --with-gcc option says that the build process should use GCC to
91 compile Emacs. If you have GCC but don't want to use it,
92 specify \`--with-gcc=no'. \`configure' tries to guess whether
93 or not you have GCC by searching your executable path, but if
94 it guesses incorrectly, you may need to use this.
95
96 The --run-in-place option sets up default values for the path
97 variables in \`./Makefile' so that Emacs will expect to find
98 its data files (lisp libraries, runnable programs, and the
99 like) in the same locations they occupy while Emacs builds.
100 This means that you don't have to install Emacs in order to
101 run it; it uses its data files as they were unpacked.
102
103 The --srcdir=DIR option specifies that the configuration and build
104 processes should look for the Emacs source code in DIR, when
105 DIR is not the current directory.
106 76
107 If successful, ${progname} leaves its status in config.status. If 77 If successful, ${progname} leaves its status in config.status. If
108 unsuccessful after disturbing the status quo, it removes config.status." 78 unsuccessful after disturbing the status quo, it removes config.status."
109 79
110 80
116 ### These values are used to comment and uncomment different values 86 ### These values are used to comment and uncomment different values
117 ### for the path variables in the Makefile, to choose the installed 87 ### for the path variables in the Makefile, to choose the installed
118 ### configuration or the run-in-place configuration. 88 ### configuration or the run-in-place configuration.
119 rip_paths='#disabled# ' 89 rip_paths='#disabled# '
120 inst_paths='' 90 inst_paths=''
91
92 ### Establish some default values.
93 prefix='/usr/local'
121 94
122 while [ $# != 0 ]; do 95 while [ $# != 0 ]; do
123 arg="$1" 96 arg="$1"
124 case "${arg}" in 97 case "${arg}" in
125 98
237 "run_in_place" ) 210 "run_in_place" )
238 rip_paths='' 211 rip_paths=''
239 inst_paths='#disabled# ' 212 inst_paths='#disabled# '
240 ;; 213 ;;
241 214
215 ## Has the user specifiec an installation prefix?
216 "prefix" )
217 ## If the value was omitted, get it from the next argument.
218 if [ "${valomitted}" = "yes" ]; then
219 ## Get the next argument from the argument list, if there is one.
220 if [ $# = 1 ]; then
221 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
222 \`--${optname}=FOO'."
223 echo "${short_usage}") >&2
224 exit 1
225 fi
226 shift; val="$1"
227 fi
228 prefix="${val}"
229 ;;
230
242 ## Has the user asked for some help? 231 ## Has the user asked for some help?
243 "usage" | "help" ) 232 "usage" | "help" )
244 echo "${long_usage}" | more 233 echo "${short_usage}" | more
245 exit 234 exit
246 ;; 235 ;;
247 236
248 ## We ignore all other options silently. 237 ## We ignore all other options silently.
249 esac 238 esac
1014 AC_SUBST(rip_paths) 1003 AC_SUBST(rip_paths)
1015 AC_SUBST(inst_paths) 1004 AC_SUBST(inst_paths)
1016 AC_SUBST(LD_SWITCH_X_SITE) 1005 AC_SUBST(LD_SWITCH_X_SITE)
1017 AC_SUBST(C_SWITCH_X_SITE) 1006 AC_SUBST(C_SWITCH_X_SITE)
1018 AC_SUBST(CFLAGS) 1007 AC_SUBST(CFLAGS)
1008 AC_SUBST(prefix)
1019 1009
1020 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") 1010 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
1021 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") 1011 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
1022 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) 1012 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
1023 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) 1013 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})