annotate configure1.in @ 2331:4d6de8716513

* config.h.in (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): New flags. * ymakefile (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): Provide default values. Include C_SWITCH_X_SITE in CFLAGS, include LD_SWITCH_X_SITE in LIBX, and pass C_SWITCH_X_SITE to the make which builds the X Menu library.
author Jim Blandy <jimb@redhat.com>
date Tue, 23 Mar 1993 05:57:11 +0000
parents 4420aeeb8ff9
children 47e301d9868b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1699
48b1565291a6 * configure: Start with a blank line; this keeps some old CSH's
Jim Blandy <jimb@redhat.com>
parents: 1687
diff changeset
1
48b1565291a6 * configure: Start with a blank line; this keeps some old CSH's
Jim Blandy <jimb@redhat.com>
parents: 1687
diff changeset
2 ### The above line is deliberately left blank. If it starts with a #,
48b1565291a6 * configure: Start with a blank line; this keeps some old CSH's
Jim Blandy <jimb@redhat.com>
parents: 1687
diff changeset
3 ### some CSH's will think this is a csh script.
48b1565291a6 * configure: Start with a blank line; this keeps some old CSH's
Jim Blandy <jimb@redhat.com>
parents: 1687
diff changeset
4
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
5 #### Configuration script for GNU Emacs
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
6 #### Copyright (C) 1992 Free Software Foundation, Inc.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
8 ### This file is part of GNU Emacs.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
10 ### GNU Emacs is free software; you can redistribute it and/or modify
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
11 ### it under the terms of the GNU General Public License as published by
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
12 ### the Free Software Foundation; either version 1, or (at your option)
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
13 ### any later version.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
15 ### GNU Emacs is distributed in the hope that it will be useful,
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
16 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
17 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
18 ### GNU General Public License for more details.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
19
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
20 ### You should have received a copy of the GNU General Public License
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
21 ### along with GNU Emacs; see the file COPYING. If not, write to
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
22 ### the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
24 ### Shell script to edit files and make symlinks in preparation for
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
25 ### compiling Emacs.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
26 ###
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
27 ### Usage: configure config_name
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
28 ###
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
29 ### If configure succeeds, it leaves its status in config.status.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
30 ### If configure fails after disturbing the status quo,
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
31 ### config.status is removed.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
32
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33
2100
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
34 ### Remove any more than one leading "." element from the path name.
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
35 ### If we don't remove them, then another "./" will be prepended to
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
36 ### the file name each time we use config.status, and the program name
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
37 ### will get larger and larger. This wouldn't be a problem, except
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
38 ### that since progname gets recorded in all the Makefiles this script
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
39 ### produces, move-if-change thinks they're different when they're
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
40 ### not.
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
41 ###
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
42 ### It would be nice if we could put the ./ in a \( \) group and then
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
43 ### apply the * operator to that, so we remove as many leading ./././'s
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
44 ### as are present, but some seds (like Ultrix's sed) don't allow you to
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
45 ### apply * to a \( \) group. Bleah.
2100
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
46 progname="`echo $0 | sed 's:^\./\./:\./:'`"
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
48
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
49 #### Usage messages.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
51 short_usage="Type \`${progname} --usage' for more information about options."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
52
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
53 long_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
54
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55 Set compilation and installation parameters for GNU Emacs, and report.
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
56 CONFIGURATION specifies the machine and operating system to build for.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
57 For example:
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
58 ${progname} sparc-sun-sunos4.1
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
59 configures Emacs to build on a Sun Sparc machine running SunOS 4.1, and
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
60 ${progname} decstation
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
61 configures Emacs to run on a DECstation running Ultrix. See \`etc/MACHINES'.
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
62
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
63 The --with-x, --with-x11 and --with-x10 options specify what window
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
64 system to use; if all are omitted, use X11 if present. If you
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
65 don't want X, specify \`--with-x=no'.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
66
2329
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
67 The --x-includes=DIR option tells the build process where to search for
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
68 the X Windows header files. If this option is omitted, the
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
69 build process assumes they exist in a directory the compiler
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
70 checks by default.
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
71
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
72 The --x-libraries=DIR option tells the build process where to look for
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
73 the X windows libraries. If this option is omitted, the build
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
74 process assumes they are in a directory the compiler checks by
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
75 default.
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
76
1859
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
77 The --with-gcc option says that the build process should use GCC to
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
78 compile Emacs. If you have GCC but don't want to use it,
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
79 specify \`--with-gcc=no'. \`configure' tries to guess whether
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
80 or not you have GCC by searching your executable path, but if
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
81 it guesses incorrectly, you may need to use this.
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
82
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
83 The --srcdir=DIR option specifies that the configuration and build
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
84 processes should look for the Emacs source code in DIR, when
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
85 DIR is not the current directory. This option doesn't work yet.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
86
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
87 If successful, ${progname} leaves its status in config.status. If
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
88 unsuccessful after disturbing the status quo, it removes config.status."
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
89
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
90
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
91 #### Option processing.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
92
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
93 ### These are the names of CPP symbols we want to define or leave undefined
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
94 ### in src/config.h; their values are given by the shell variables of the same
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
95 ### names.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
96 config_h_opts=" \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
97 HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \
2329
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
98 SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\
2330
4420aeeb8ff9 * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2329
diff changeset
99 LD_SWITCH_X_SITE C_SWITCH_X_SITE"
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
100
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
101 ### Record all the arguments, so we can save them in config.status.
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
102 arguments="$@"
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 621
diff changeset
103
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
104 while [ $# != 0 ]; do
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
105 arg="$1"
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
106 case "${arg}" in
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
107
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
108 ## Anything starting with a hyphen we assume is an option.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
109 -* )
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
110
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
111 ## Separate the switch name from the value it's being given.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
112 case "${arg}" in
1139
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
113 -*=*)
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
114 opt=`echo ${arg} | sed 's:^-*\([^=]*\)=.*$:\1:'`
1139
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
115 val=`echo ${arg} | sed 's:^-*[^=]*=\(.*\)$:\1:'`
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
116 valomitted=no
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
117 ;;
1139
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
118 -*)
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
119 ## If FOO is a boolean argument, --FOO is equivalent to
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
120 ## --FOO=yes. Otherwise, the value comes from the next
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
121 ## argument - see below.
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
122 opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:'`
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
123 val="yes"
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
124 valomitted=yes
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
125 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
126 esac
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
127
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
128 ## Change `-' in the option name to `_'.
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
129 opt="`echo ${opt} | tr - _`"
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
130
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
131 ## Process the option.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
132 case "${opt}" in
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
133
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
134 ## Has the user specified which window systems they want to support?
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
135 "with_x" | "with_x11" | "with_x10" )
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
136 ## Make sure the value given was either "yes" or "no".
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
137 case "${val}" in
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
138 y | ye | yes ) val=yes ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
139 n | no ) val=no ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
140 * )
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
141 (echo "${progname}: the \`--${opt}' option is supposed to have a boolean value.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
142 Set it to either \`yes' or \`no'."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
143 echo "${short_usage}") >&2
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
144 exit 1
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
145 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
146 esac
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
147 eval "${opt}=\"${val}\""
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
148 ;;
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
149
1859
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
150 ## Has the user specified whether or not they want GCC?
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
151 "with_gcc" )
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
152 ## Make sure the value given was either "yes" or "no".
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
153 case "${val}" in
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
154 y | ye | yes ) val=yes ;;
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
155 n | no ) val=no ;;
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
156 * )
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
157 (echo "${progname}: the \`--${opt}' option is supposed to have a boolean value.
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
158 Set it to either \`yes' or \`no'."
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
159 echo "${short_usage}") >&2
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
160 exit 1
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
161 ;;
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
162 esac
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
163 eval "${opt}=\"${val}\""
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
164 ;;
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
165
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
166 ## Has the user specified a source directory?
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
167 "srcdir" )
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
168 ## If the value was omitted, get it from the next argument.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
169 if [ "${valomitted}" = "yes" ]; then
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
170 ## Get the next argument from the argument list, if there is one.
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
171 if [ $# = 1 ]; then
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
172 (echo "${progname}: You must give a value for the \`--${opt}' option, as in
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
173 \`--${opt}=FOO'."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
174 echo "${short_usage}") >&2
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
175 exit 1
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
176 fi
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
177 shift; val="$1"
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
178 fi
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
179 srcdir="${val}"
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
180
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
181 echo "${progname}: Beware - the \`--srcdir' option doesn't work yet." >&2
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
182 ;;
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
183
2329
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
184 ## Has the user tried to tell us where the X files are?
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
185 ## I think these are dopey, but no less than three alpha
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
186 ## testers, at large sites, have said they have their X files
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
187 ## installed in odd places.
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
188 "x-includes" )
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
189 ## If the value was omitted, get it from the next argument.
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
190 if [ "${valomitted}" = "yes" ]; then
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
191 ## Get the next argument from the argument list, if there is one.
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
192 if [ $# = 1 ]; then
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
193 (echo "${progname}: You must give a value for the \`--${opt}' option, as in
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
194 \`--${opt}=FOO'."
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
195 echo "${short_usage}") >&2
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
196 exit 1
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
197 fi
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
198 shift; val="$1"
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
199 fi
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
200 x_includes="${val}"
2330
4420aeeb8ff9 * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2329
diff changeset
201 C_SWITCH_X_SITE="-I${x_includes}"
2329
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
202 ;;
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
203 "x-libraries" )
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
204 ## If the value was omitted, get it from the next argument.
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
205 if [ "${valomitted}" = "yes" ]; then
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
206 ## Get the next argument from the argument list, if there is one.
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
207 if [ $# = 1 ]; then
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
208 (echo "${progname}: You must give a value for the \`--${opt}' option, as in
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
209 \`--${opt}=FOO'."
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
210 echo "${short_usage}") >&2
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
211 exit 1
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
212 fi
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
213 shift; val="$1"
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
214 fi
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
215 x_libraries="${val}"
2330
4420aeeb8ff9 * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2329
diff changeset
216 LD_SWITCH_X_SITE="-L${x_libraries}"
2329
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
217 ;;
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
218
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
219 ## Has the user asked for some help?
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
220 "usage" | "help" )
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
221 echo "${long_usage}" | more
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
222 exit
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
223 ;;
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
224
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
225 ## We ignore all other options silently.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
226 esac
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
227 ;;
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
228
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
229 ## Anything not starting with a hyphen we assume is a
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
230 ## configuration name.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
231 *)
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
232 configuration=${arg}
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
233 ;;
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
234
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
235 esac
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
236 shift
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
237 done
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
238
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
239 if [ "${configuration}" = "" ]; then
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
240 (echo "${progname}: You must specify a configuration name as an argument."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
241 echo "${short_usage}") >&2
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
242 exit 1
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
243 fi
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
244
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
245
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
246 #### Decide where the source is.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
247 case "${srcdir}" in
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
248
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
249 ## If it's not specified, see if `.' or `..' might work.
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
250 "" )
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
251 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
252 srcdir=`pwd`
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
253 else
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
254 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
255 srcdir=`(cd .. ; pwd)`
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
256 else
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
257 (echo "\
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
258 ${progname}: Neither the current directory nor its parent seem to
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
259 contain the Emacs sources. If you do not want to build Emacs in its
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
260 source tree, you should run \`${progname}' in the directory in which
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
261 you wish to build Emacs, using its \`--srcdir' option to say where the
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
262 sources may be found."
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
263 echo "${short_usage}") >&2
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
264 exit 1
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
265 fi
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
266 fi
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
267 ;;
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
268
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
269 ## Otherwise, check if the directory they specified is okay.
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
270 * )
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
271 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
272 (echo "\
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
273 ${progname}: The directory specified with the \`--srcdir' option,
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
274 \`${srcdir}', doesn't seem to contain the Emacs sources. You should
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
275 either run the \`${progname}' script at the top of the Emacs source
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
276 tree, or use the \`--srcdir' option to specify where the Emacs sources
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
277 are."
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
278 echo "${short_usage}") >&2
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
279 exit 1
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
280 fi
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
281 ;;
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
282
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
283 esac
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
284
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
285 ### Make the necessary directories, if they don't exist.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
286 if [ ! -d ./src ]; then
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
287 mkdir ./src
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
288 fi
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
289 if [ ! -d ./lib-src ]; then
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
290 mkdir ./lib-src
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
291 fi
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
292 if [ ! -d ./cpp ]; then
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
293 mkdir ./cpp
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
294 fi
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
295 if [ ! -d ./oldXMenu ]; then
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
296 mkdir ./oldXMenu
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
297 fi
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
298
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
299
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
300 #### Given the configuration name, set machfile and opsysfile to the
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
301 #### names of the m/*.h and s/*.h files we should use.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
302
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
303 ### Canonicalize the configuration name.
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
304 echo "Checking the configuration name."
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
305 if configuration=`${srcdir}/config.sub "${configuration}"` ; then : ; else
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
306 exit $?
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
307 fi
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
308
2100
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
309 ### If you add support for a new configuration, add code to this
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
310 ### switch statement to recognize your configuration name and select
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
311 ### the appropriate operating system and machine description files.
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
312
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
313 ### You would hope that you could choose an m/*.h file pretty much
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
314 ### based on the machine portion of the configuration name, and an s-
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
315 ### file based on the operating system portion. However, it turns out
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
316 ### that each m/*.h file is pretty manufacturer-specific - for
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
317 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
318 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
319 ### machines. So we basically have to have a special case for each
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
320 ### configuration name.
2100
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
321 ###
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
322 ### As far as handling version numbers on operating systems is
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
323 ### concerned, make sure things will fail in a fixable way. If
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
324 ### /etc/MACHINES doesn't say anything about version numbers, be
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
325 ### prepared to handle anything reasonably. If version numbers
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
326 ### matter, be sure /etc/MACHINES says something about it.
2100
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
327 ###
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
328 ### Eric Raymond says we should accept strings like "sysvr4" to mean
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
329 ### "System V Release 4"; he writes, "The old convention encouraged
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
330 ### confusion between `system' and `release' levels'."
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
331
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
332 machine='' opsys='' unported='false'
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
333 case "${configuration}" in
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
334
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
335 ## Alliant machines
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
336 ## Strictly speaking, we need the version of the alliant operating
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
337 ## system to choose the right machine file, but currently the
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
338 ## configuration name doesn't tell us enough to choose the right
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
339 ## one; we need to give alliants their own operating system name to
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
340 ## do this right. When someone cares, they can help us.
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
341 fx80-alliant-* )
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
342 machine=alliant4 opsys=bsd4-2
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
343 ;;
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
344 i860-alliant-* )
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
345 machine=alliant-2800 opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
346 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
347
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
348 ## Altos 3068
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
349 m68*-altos-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
350 machine=altos opsys=usg5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
351 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
352
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
353 ## Amdahl UTS
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
354 580-amdahl-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
355 machine=amdahl opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
356 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
357
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
358 ## Appallings - I mean, Apollos - running Domain
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
359 m68*-apollo* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
360 machine=apollo opsysfile=bsd4-2.h
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
361 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
362
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
363 ## AT&T 3b2, 3b5, 3b15, 3b20
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
364 we32k-att-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
365 machine=att3b opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
366 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
367
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
368 ## AT&T 3b1 - The Mighty Unix PC!
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
369 m68*-att-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
370 machine=7300 opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
371 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
372
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
373 ## Bull sps7
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
374 m68*-bull-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
375 machine=sps7 opsys=usg5-2
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
376 ;;
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
377
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
378 ## CCI 5/32, 6/32 -- see "Tahoe".
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
379
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
380 ## Celerity
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
381 ## I don't know what configuration name to use for this; config.sub
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
382 ## doesn't seem to know anything about it. Hey, Celerity users, get
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
383 ## in touch with us!
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
384 celerity-celerity-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
385 machine=celerity opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
386 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
387
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
388 ## Clipper
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
389 ## What operating systems does this chip run that Emacs has been
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
390 ## tested on?
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
391 clipper-* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
392 machine=clipper
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
393 ## We'll use the catch-all code at the bottom to guess the
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
394 ## operating system.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
395 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
396
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
397 ## Convex
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
398 *-convex-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
399 machine=convex opsys=bsd4-3
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
400 ;;
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
401
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
402 ## Cubix QBx/386
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
403 i386-cubix-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
404 machine=intel386 opsys=usg5-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
405 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
406
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
407 ## Cydra 5
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
408 cydra*-cydrome-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
409 machine=cydra5 opsys=usg5-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
410 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
411
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
412 ## DECstations
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
413 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0 | mips-dec-bsd4.2 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
414 machine=pmax opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
415 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
416 mips-dec-ultrix* | mips-dec-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
417 machine=pmax opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
418 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
419 mips-dec-osf* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
420 machine=pmax opsys=osf1
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
421 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
422
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
423 ## Motorola Delta machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
424 m68*-motorola-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
425 machine=delta opsys=usg5-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
426 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
427 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
428 machine=delta88k opsys=usg5-3
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
429 ;;
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
430
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
431 ## Dual machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
432 m68*-dual-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
433 machine=dual opsys=usg5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
434 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
435 m68*-dual-uniplus* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
436 machine=dual opsys=unipl5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
437 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
438
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
439 ## Elxsi 6400
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
440 elxsi-elxsi-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
441 machine=elxsi opsys=usg5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
442 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
443
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
444 ## Encore machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
445 ns16k-encore-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
446 machine=ns16000 opsys=umax
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
447 ;;
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
448
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
449 ## The GEC 93 - apparently, this port isn't really finished yet.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
450
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
451 ## Gould Power Node and NP1
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
452 pn-gould-bsd4.2 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
453 machine=gould opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
454 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
455 pn-gould-bsd4.3 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
456 machine=gould opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
457 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
458 np1-gould-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
459 machine=gould-np1 opsys=bsd4-3
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
460 ;;
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
461
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
462 ## Honeywell XPS100
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
463 xps*-honeywell-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
464 machine=xps100 opsys=usg5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
465 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
466
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
467 ## HP 9000 series 200 or 300
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
468 m68*-hp-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
469 machine=hp9000s300 opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
470 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
471 ## HP/UX 8 doesn't run on these machines, so use HP/UX 7.
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
472 m68*-hp-hpux* )
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
473 machine=hp9000s300 opsys=hpux
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
474 ;;
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
475
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
476 ## HP 9000 series 800, running HP/UX
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
477 hppa1.0-hp-hpux* )
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
478 machine=hp9000s800 opsys=hpux
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
479 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
480
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
481 ## Orion machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
482 orion-orion-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
483 machine=orion opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
484 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
485 clipper-orion-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
486 machine=orion105 opsys=bsd4-2
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
487 ;;
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
488
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
489 ## IBM machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
490 i386-ibm-aix1.1 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
491 machine=ibmps2-aix opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
492 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
493 i386-ibm-aix1.2 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
494 machine=ibmps2-aix opsys=usg5-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
495 ;;
2244
3b5391ff2ffd * configure: Recognize rs6000-ibm-aix32 and rs6000-ibm-aix, and
Jim Blandy <jimb@redhat.com>
parents: 2173
diff changeset
496 rs6000-ibm-aix3.1 )
3b5391ff2ffd * configure: Recognize rs6000-ibm-aix32 and rs6000-ibm-aix, and
Jim Blandy <jimb@redhat.com>
parents: 2173
diff changeset
497 machine=ibmrs6000 opsys=aix3-1
2173
d4bbcd4b1378 Recognize AIX 3.2 and make it the default for -aix.
Charles Hannum <mycroft@gnu.org>
parents: 2100
diff changeset
498 ;;
2244
3b5391ff2ffd * configure: Recognize rs6000-ibm-aix32 and rs6000-ibm-aix, and
Jim Blandy <jimb@redhat.com>
parents: 2173
diff changeset
499 rs6000-ibm-aix3.2 | rs6000-ibm-aix* )
3b5391ff2ffd * configure: Recognize rs6000-ibm-aix32 and rs6000-ibm-aix, and
Jim Blandy <jimb@redhat.com>
parents: 2173
diff changeset
500 machine=ibmrs6000 opsys=aix3-2
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
501 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
502 romp-ibm-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
503 machine=ibmrt opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
504 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
505 romp-ibm-aix* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
506 machine=ibmrt-aix opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
507 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
508
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
509 ## Integrated Solutions `Optimum V'
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
510 m68*-isi-bsd4.2 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
511 machine=isi-ov opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
512 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
513 m68*-isi-bsd4.3 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
514 machine=isi-ov opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
515 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
516
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
517 ## Intel 386 machines where we do care about the manufacturer
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
518 i[34]86-intsys-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
519 machine=is386 opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
520 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
521 ## Intel 386 machines where we don't care about the manufacturer
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
522 i[34]86-* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
523 machine=intel386
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
524 case "${configuration}" in
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
525 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2007
b1debd92d79d * configure: Handle isc3.0 correctly. This needs a more general
Jim Blandy <jimb@redhat.com>
parents: 1900
diff changeset
526 *-isc2.2 ) opsys=isc2-2 ;;
b1debd92d79d * configure: Handle isc3.0 correctly. This needs a more general
Jim Blandy <jimb@redhat.com>
parents: 1900
diff changeset
527 *-isc* ) opsys=isc3-0 ;;
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
528 *-esix* ) opsys=esix ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
529 *-xenix* ) opsys=xenix ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
530 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
531 esac
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
532 ;;
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
533
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
534 ## Silicon Graphics machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
535 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
536 m68*-sgi-iris3.5 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
537 machine=irist opsys=iris3-5
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
538 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
539 m68*-sgi-iris3.6 | m68*-sgi-iris*)
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
540 machine=irist opsys=iris3-6
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
541 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
542 ## Iris 4D
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
543 mips-sgi-irix3.* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
544 machine=iris4d opsys=irix3-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
545 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
546 mips-sgi-irix4.* | mips-sgi-irix* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
547 machine=iris4d opsys=irix4-0
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
548 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
549
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
550 ## Masscomp machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
551 m68*-masscomp-rtu )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
552 machine=masscomp opsys=rtu
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
553 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
554
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
555 ## Megatest machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
556 m68*-megatest-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
557 machine=mega68 opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
558 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
559
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
560 ## Workstations sold by MIPS
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
561 ## This is not necessarily all workstations using the MIPS processor -
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
562 ## Irises are produced by SGI, and DECstations by DEC.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
563
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
564 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
565 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
566 ## it gives for choosing between the alternatives seems to be "Use
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
567 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
568 ## the BSD world." I'll assume that these are instructions for
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
569 ## handling two odd situations, and that every other situation
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
570 ## should use mips.h and usg5-2-2, they being listed first.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
571 mips-mips-riscos4* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
572 machine=mips4 opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
573 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
574 mips-mips-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
575 machine=mips opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
576 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
577 mips-mips-* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
578 machine=mips opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
579 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
580
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
581 ## The complete machine from National Semiconductor
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
582 ns32k-ns-genix* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
583 machine=ns32000 opsys=usg5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
584 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
585
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
586 ## NCR machines
2100
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
587 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
588 machine=tower32 opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
589 ;;
2100
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
590 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
591 machine=tower32v3 opsys=usg5-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
592 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
593
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
594 ## Nixdorf Targon 31
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
595 m68*-nixdorf-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
596 machine=targon31 opsys=usg5-2-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
597 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
598
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
599 ## Nu (TI or LMI)
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
600 m68*-nu-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
601 machine=nu opsys=usg5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
602 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
603
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
604 ## Plexus
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
605 m68*-plexus-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
606 machine=plexus opsys=usg5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
607 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
608
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
609 ## Prime EXL
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
610 i386-prime-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
611 machine=i386 opsys=usg5-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
612 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
613
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
614 ## Pyramid machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
615 ## I don't really have any idea what sort of processor the Pyramid has,
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
616 ## so I'm assuming it is its own architecture.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
617 pyramid-pyramid-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
618 machine=pyramid opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
619 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
620
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
621 ## Sequent Balance
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
622 ns32k-sequent-bsd4.2 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
623 machine=sequent opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
624 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
625 ns32k-sequent-bsd4.3 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
626 machine=sequent opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
627 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
628 ## Sequent Symmetry
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
629 i386-sequent-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
630 machine=symmetry opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
631 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
632
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
633 ## SONY machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
634 m68*-sony-bsd4.2 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
635 machine=news opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
636 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
637 m68*-sony-bsd4.3 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
638 machine=news opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
639 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
640 mips-sony-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
641 machine=news-risc opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
642 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
643
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
644 ## Stride
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
645 m68*-stride-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
646 machine=stride opsys=usg5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
647 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
648
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
649 ## Suns
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
650 *-sun-sunos* | *-sun-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
651 case "${configuration}" in
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
652 m68*-sunos1* ) machine=sun1 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
653 m68*-sunos2* ) machine=sun2 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
654 m68* ) machine=sun3 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
655 i[34]86* ) machine=sun386 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
656 sparc* ) machine=sparc ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
657 * ) unported=true ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
658 esac
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
659 case "${configuration}" in
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
660 *-sunos4.0* ) opsys=sunos4-0 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
661 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
662 * ) opsys=bsd4-2 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
663 esac
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
664 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
665
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
666 ## Tadpole 68k
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
667 m68*-tadpole-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
668 machine=tad68k opsys=usg5-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
669 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
670
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
671 ## Tahoe machines
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
672 tahoe-tahoe-bsd4.2 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
673 machine=tahoe opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
674 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
675 tahoe-tahoe-bsd4.3 )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
676 machine=tahoe opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
677 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
678
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
679 ## Tandem Integrity S2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
680 mips-tandem-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
681 machine=tandem-s2 opsys=usg5-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
682 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
683
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
684 ## Tektronix 16000 box (6130?)
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
685 ns16k-tektronix-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
686 machine=ns16000 opsys=bsd4-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
687 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
688 ## Tektronix 4300
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
689 ## src/m/tek4300.h hints that this is a m68k machine.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
690 m68*-tektronix-bsd* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
691 machine=tex4300 opsys=bsd4-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
692 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
693
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
694 ## Titan P2 or P3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
695 ## We seem to have lost the machine-description file titan.h!
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
696 titan-titan-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
697 machine=titan opsys=usg5-3
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
698 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
699
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
700 ## Ustation E30 (SS5E)
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
701 m68*-unisys-uniplus* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
702 machine=ustation opsystem=unipl5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
703 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
704
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
705 ## Vaxen.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
706 vax-dec-* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
707 machine=vax
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
708 case "${configuration}" in
2100
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
709 *-bsd4.1 ) opsys=bsd4-1 ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
710 *-bsd4.2 | *-ultrix[0-3].* | *-ultrix4.0 ) opsys=bsd4-2 ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
711 *-bsd4.3 | *-ultrix* ) opsys=bsd4-3 ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
712 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
713 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
714 *-vms* ) opsys=vms ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
715 * ) unported=true
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
716 esac
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
717 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
718
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
719 ## Whitechapel MG1
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
720 ns16k-whitechapel-* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
721 machine=mg1
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
722 ## We don't know what sort of OS runs on these; we'll let the
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
723 ## operating system guessing code below try.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
724 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
725
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
726 ## Wicat
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
727 m68*-wicat-sysv* )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
728 machine=wicat opsys=usg5-2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
729 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
730
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
731 * )
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
732 unported=true
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
733 ;;
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
734 esac
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
735
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
736 ### If the code above didn't choose an operating system, just choose
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
737 ### an operating system based on the configuration name. You really
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
738 ### only want to use this when you have no idea what the right
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
739 ### operating system is; if you know what operating systems a machine
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
740 ### runs, it's cleaner to make it explicit in the case statement
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
741 ### above.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
742 if [ ! "${opsys}" ]; then
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
743 case "${configuration}" in
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
744 *-bsd4.[01] ) opsys=bsd4-1 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
745 *-bsd4.2 ) opsys=bsd4-2 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
746 *-bsd4.3 ) opsys=bsd4-3 ;;
2100
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
747 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
748 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
749 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
750 *-sysv3 | *-sysvr3 ) opsys=usg5-3 ;;
4c081de167f4 * configure: Recognize strings like "sysvr0" or "sysvr1" as System V.
Jim Blandy <jimb@redhat.com>
parents: 2007
diff changeset
751 *-sysv4 | *-sysvr4 ) opsys=usg5-4 ;;
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
752 * )
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
753 unported=true
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
754 ;;
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
755 esac
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
756 fi
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
757
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
758 if $unported ; then
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
759 (echo "${progname}: Emacs hasn't been ported to \`${configuration}' systems."
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
760 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
761 ) >&2
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
762 exit 1
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
763 fi
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
764
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
765 machfile="m/${machine}.h"
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
766 opsysfile="s/${opsys}.h"
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
767
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
768
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
769 #### Choose a window system.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
770 echo "Checking window system."
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
771 window_system=''
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
772 case "${with_x}" in
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
773 yes )
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
774 window_system=${window_system}x11
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
775 ;;
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
776 no )
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
777 window_system=${window_system}none
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
778 esac
1139
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
779 case "${with_x11}" in
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
780 yes )
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
781 window_system=${window_system}x11
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
782 ;;
1139
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
783 esac
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
784 case "${with_x10}" in
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
785 yes )
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
786 window_system=${window_system}x10
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
787 ;;
1139
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
788 esac
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
789
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
790 case "${window_system}" in
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
791 "none" | "x11" | "x10" ) ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
792 "" )
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
793 echo " No window system specifed. Looking for X Windows."
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
794 window_system=none
958
cc82116a8f1c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 732
diff changeset
795 if [ -r /usr/lib/libX11.a -o -d /usr/include/X11 ]; then
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
796 window_system=x11
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
797 fi
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
798 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
799 * )
1139
4875b01ff377 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 1112
diff changeset
800 echo "Don\'t specify the window system more than once." >&2
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
801 exit 1
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
802 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
803 esac
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
804
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
805 case "${window_system}" in
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
806 x11 )
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
807 HAVE_X_WINDOWS=yes
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
808 HAVE_X11=yes
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
809 echo " Using X11."
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
810 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
811 x10 )
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
812 HAVE_X_WINDOWS=yes
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
813 HAVE_X11=no
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
814 echo " Using X10."
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
815 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
816 none )
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
817 HAVE_X_WINDOWS=no
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
818 HAVE_X11=no
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
819 echo " Using no window system."
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
820 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
821 esac
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
822
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
823 ### If we're using X11, we should use the X menu package.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
824 HAVE_X_MENU=no
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
825 case ${HAVE_X11} in
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
826 yes )
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
827 HAVE_X_MENU=yes
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
828 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
829 esac
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
830
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
831
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
832 #### Choose a compiler.
1859
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
833 echo "Checking compilers."
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
834 if [ "${with_gcc}" = "" ]; then
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
835 echo " Searching load path for GCC."
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
836 temppath=`echo $PATH | sed 's/^:/.:/
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
837 s/::/:.:/g
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
838 s/:$/:./
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
839 s/:/ /g'`
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
840 default_cc=`(
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
841 for dir in ${temppath}; do
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
842 if [ -f ${dir}/gcc ]; then echo gcc; exit 0; fi
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
843 done
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
844 echo cc
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
845 )`
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
846 else
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
847 case ${with_gcc} in
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
848 "yes" ) default_cc="gcc" ;;
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
849 "no" ) default_cc="cc" ;;
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
850 esac
bf9e3f462e86 * configure (progname): New option `--with-gcc'. Make it clearer
Jim Blandy <jimb@redhat.com>
parents: 1699
diff changeset
851 fi
1423
93ee9c5e7eec Partially changed to use GCC-style configuration names.
Jim Blandy <jimb@redhat.com>
parents: 1139
diff changeset
852
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
853 case "${default_cc}" in
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
854 "gcc" )
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
855 echo " Using GCC."
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
856 default_cflags='-g -O'
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
857 ;;
1900
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
858 * )
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
859 echo " Using the system's CC."
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
860 default_cflags='-g'
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
861 ;;
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
862 esac
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
863
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
864
1900
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
865 #### Does this compiler support the `const' keyword?
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
866 #### The code for this test was adapted from autoconf's test.
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
867 echo "Checking if the compiler supports \`const'."
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
868 rm -f conftest*
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
869 compile='${default_cc} conftest.c -o conftest >/dev/null 2>&1'
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
870 echo "
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
871 main() { exit(0); } t() { /* Ultrix mips cc rejects this. */
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
872 typedef int charset[2]; const charset x;
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
873 /* SunOS 4.1.1 cc rejects this. */
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
874 char const *const *p;
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
875 char **p2;
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
876 /* HPUX 7.0 cc rejects these. */
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
877 ++p;
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
878 p2 = (char const* const*) p;
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
879 }" > conftest.c
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
880 if eval $compile; then
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
881 echo " It seems to."
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
882 HAVE_CONST=yes
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
883 else
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
884 echo " It doesn't seem to."
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
885 HAVE_CONST=no
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
886 fi
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
887 rm -f conftest*
78079116dc40 * configure: Detect whether the compiler supports `const'
Jim Blandy <jimb@redhat.com>
parents: 1859
diff changeset
888
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
889 #### What is the return type of a signal handler?
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
890
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
891 ### We run /usr/include/signal.h through cpp and grep for the
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
892 ### declaration of the signal function. Yuck.
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
893 echo "Looking for return type of signal handler functions."
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
894 signal_h_file=''
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
895 if [ -r /usr/include/signal.h ]; then
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
896 signal_h_file=/usr/include/signal.h
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
897 elif [ -r /usr/include/sys/signal.h ]; then
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
898 signal_h_file=/usr/include/sys/signal.h
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
899 fi
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
900 SIGTYPE=void
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
901 if [ "${signal_h_file}" ]; then
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
902 sigpattern='[ ]*([ ]*\*[ ]*signal[ ]*('
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
903
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
904 ## We make a copy whose name ends in .c, so the compiler
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
905 ## won't complain about having only been given a .h file.
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
906 tempcname="configure.tmp.$$.c"
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 958
diff changeset
907 cp ${signal_h_file} ${tempcname}
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
908 if ${default_cc} -E ${tempcname} | grep "int${sigpattern}" > /dev/null; then
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
909 SIGTYPE=int
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
910 fi
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 958
diff changeset
911 rm -f ${tempcname}
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
912 fi
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
913 echo " Guessing that signals return \`${SIGTYPE}'."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
914
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
915
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
916 #### Extract some information from the operating system and machine files.
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
917
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
918 echo "Examining the machine- and system-dependent files to find out"
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
919 echo " - which libraries the lib-src programs will want, and"
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
920 echo " - whether the GNU malloc routines are usable."
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
921 tempcname="configure.tmp.$$.c"
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
922 echo '
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
923 #include "'${srcdir}'/src/'${opsysfile}'"
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
924 #include "'${srcdir}'/src/'${machfile}'"
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
925 #ifndef LIBS_MACHINE
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
926 #define LIBS_MACHINE
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
927 #endif
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
928 #ifndef LIBS_SYSTEM
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
929 #define LIBS_SYSTEM
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
930 #endif
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
931 @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
932 #ifdef SYSTEM_MALLOC
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
933 @configure@ system_malloc=yes
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
934 #else
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
935 @configure@ system_malloc=no
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
936 #endif
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
937 ' > ${tempcname}
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
938 eval `${default_cc} -E ${tempcname} \
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
939 | grep '@configure@' \
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
940 | sed -e 's/^@configure@//'`
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
941 rm ${tempcname}
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
942
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
943 # Do the opsystem or machine files prohibit the use of the GNU malloc?
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
944 # Assume not, until told otherwise.
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
945 GNU_MALLOC=yes
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
946 if [ "${system_malloc}" = "yes" ]; then
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
947 GNU_MALLOC=no
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
948 GNU_MALLOC_reason="
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
949 (The GNU allocators don't work with this system configuration.)"
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
950 fi
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
951
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
952 if [ ! "${REL_ALLOC}" ]; then
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
953 REL_ALLOC=${GNU_MALLOC}
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
954 fi
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
955
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
956 LISP_FLOAT_TYPE=yes
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
957
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
958
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
959 #### Find out which version of Emacs this is.
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
960 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
961 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
962 if [ ! "${version}" ]; then
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
963 echo "${progname}: can't find current emacs version in
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
964 \`${srcdir}/lisp/version.el'." >&2
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
965 exit 1
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
966 fi
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
967
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
968
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
969 #### Make the proper settings in `src/config.h'.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
970 rm -f config.status
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
971 set -e
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
972
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
973 echo "Making \`./src/config.h' from \`${srcdir}/src/config.h.in'."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
974 sed_flags="-e 's:@machine@:${machfile}:' -e 's:@opsystem@:${opsysfile}:'"
1482
b695cbb4fdab Update GNU_MALLOC and REL_ALLOC in config.h.
Richard M. Stallman <rms@gnu.org>
parents: 1423
diff changeset
975
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
976 for flag in ${config_h_opts}; do
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
977 val=`eval echo '$'${flag}`
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
978 case ${val} in
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
979 no | "")
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
980 f="-e 's:.*#define ${flag}.*:/\\* #define ${flag} \\*/:'"
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
981 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
982 yes)
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
983 f="-e 's:.*#define ${flag}.*:#define ${flag}:'"
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
984 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
985 *)
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
986 f="-e 's:.*#define ${flag}.*:#define ${flag} ${val}:'"
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
987 ;;
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
988 esac
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
989 sed_flags="${sed_flags} ${f}"
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
990 done
1482
b695cbb4fdab Update GNU_MALLOC and REL_ALLOC in config.h.
Richard M. Stallman <rms@gnu.org>
parents: 1423
diff changeset
991
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
992 rm -f ./src/config.h.tmp
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
993 (echo "/* This file is generated by \`${progname}' from"
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
994 echo " \`${srcdir}/src/config.h.in'."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
995 echo " If you are thinking about editing it, you should seriously consider"
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
996 echo " running \`${progname} instead, or editing"
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
997 echo " \`${srcdir}/src/config.h.in' itself."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
998 eval '/bin/sed '${sed_flags}' < "${srcdir}/src/config.h.in"'
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
999 ) > src/config.h.tmp
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1000 ${srcdir}/move-if-change src/config.h.tmp src/config.h
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1001 ### Remind people not to edit this.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
1002 chmod -w src/config.h
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1003
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1004
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1005 #### Modify the parameters in the top-level Makefile.
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1006 echo "Producing \`Makefile' from \`${srcdir}/Makefile.in'."
704
2aacd42951ef *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 638
diff changeset
1007 rm -f Makefile.tmp
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1008 (echo "\
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1009 # This file is generated by \`${progname}' from
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1010 # \`${srcdir}/Makefile.in'.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
1011 # If you are thinking about editing it, you should seriously consider
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1012 # running \`${progname}' instead, or editing
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1013 # \`${srcdir}/Makefile.in' itself."
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1014 /bin/sed < ${srcdir}/Makefile.in \
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1015 -e 's|^configname *=.*$|configname='"${configuration}"'|' \
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1016 -e 's|^version *=.*$|version='"${version}"'|' \
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1017 -e 's|^srcdir *=.*$|srcdir='"${srcdir}"'|' \
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1018 -e 's|^CC *=.*$|CC='"${default_cc}"'|' \
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1019 -e 's|^CONFIG_CFLAGS *=.*$|CONFIG_CFLAGS='"${default_cflags}"'|' \
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1020 -e 's|^LOADLIBES *=.*$|LOADLIBES='"${libsrc_libs}"'|' \
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1021 -e '/^# DIST: /d') > Makefile.tmp
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1022 ${srcdir}/move-if-change Makefile.tmp Makefile
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1023
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1024 ### I'm commenting out this section until I bring the `build-install' script
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1025 ### into line with the rest of the configuration stuff.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1026
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1027 ### # Modify the parameters in the `build-install' script.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1028 ### echo "Producing \`./build-install' from \`${srcdir}/build-install.in'."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1029 ### rm -f ./build-install.tmp
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1030 ### (echo "\
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1031 ### # This file is generated by \`${progname}' from \`${srcdir}/build-install.in'.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1032 ### # If you are thinking about editing it, you should seriously consider
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1033 ### # editing \`./build-install.in' itself, or running \`${progname}' instead."
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1034 ### /bin/sed < ${srcdir}/build-install.in \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1035 ### -e 's;^\(prefix=\).*$;\1'"${prefix};" \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1036 ### -e 's;^\(bindir=\).*$;\1'"${bindir};" \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1037 ### -e 's;^\(lisppath=\).*$;\1'"${lisppath};" \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1038 ### -e 's;^\(datadir=\).*$;\1'"${datadir};" \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1039 ### -e 's;^\(lockdir=\).*$;\1'"${lockdir};" \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1040 ### -e 's;^\(libdir=\).*$;\1'"${libdir};") > ./build-install.tmp
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1041 ### ${srcdir}/move-if-change build-install.tmp build-install
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1042 ### # Remind people not to edit this.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1043 ### chmod -w build-install
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1044 ### chmod +x build-install
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1045
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1046
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1047 #### Describe the results.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
1048
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1049 ### Create a verbal description of what we have done.
2329
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
1050
1629
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
1051 message="Configured for \`${configuration}'.
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
1052
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
1053 What operating system and machine description files should Emacs use?
b57feef74718 * configure: Use GCC-style configuration names, using config.sub.
Jim Blandy <jimb@redhat.com>
parents: 1559
diff changeset
1054 \`${opsysfile}' and \`${machfile}'
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1055 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1629
diff changeset
1056 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
732
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 704
diff changeset
1057 What window system should Emacs use? ${window_system}
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1058 What compiler should emacs be built with? ${default_cc}
2329
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
1059 Should the compilation use \`-g' and/or \`-O'? ${default_cflags-neither}${x_includes+
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
1060 Where do we find X Windows header files? }${x_includes}${x_libraries+
b8028b77b69a * configure: Add `--x-includes' and `--x-libraries' options. I
Jim Blandy <jimb@redhat.com>
parents: 2244
diff changeset
1061 Where do we find X Windows libraries? }${x_libraries}"
605
5f36058e31f9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 603
diff changeset
1062
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1063 ### Write config.status, documenting the damage we have done.
605
5f36058e31f9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 603
diff changeset
1064
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1065 (echo "\
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1066 #!/bin/sh
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1067 ### This file is generated by \`${progname}.'
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1068 ### If you are thinking about editing it, you should seriously consider
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1069 ### running \`${progname}' instead.
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1070 "
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1071 echo "${message}" | sed -e 's/^/# /'
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1072 echo "exec '${progname}' ${arguments} "'$@') > config.status
605
5f36058e31f9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 603
diff changeset
1073
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1074 ### Remind people not to edit this.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 605
diff changeset
1075 chmod -w config.status
605
5f36058e31f9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 603
diff changeset
1076 chmod +x config.status
5f36058e31f9 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 603
diff changeset
1077
1687
2bee660c3046 * configure: Don't make the top-level Makefile read-only - people
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
1078 ### Print the description.
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1079 echo
732
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 704
diff changeset
1080 echo "${message}"
603
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1081
470f556a9453 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1082 exit 0