root/trunk/configure.in

Revision 4220, 102.3 kB (checked in by miyoshi, 5 months ago)

Sync up with Emacs22.2.

Line 
1 dnl  Autoconf script for GNU Emacs
2 dnl To rebuild the `configure' script from this, execute the command
3 dnl     autoconf
4 dnl in the directory containing this script.
5 dnl
6 dnl  Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003,
7 dnl    2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
8 dnl
9 dnl  This file is part of GNU Emacs.
10 dnl
11 dnl  GNU Emacs is free software; you can redistribute it and/or modify
12 dnl  it under the terms of the GNU General Public License as published by
13 dnl  the Free Software Foundation; either version 3, or (at your option)
14 dnl  any later version.
15 dnl
16 dnl  GNU Emacs is distributed in the hope that it will be useful,
17 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 dnl  GNU General Public License for more details.
20 dnl
21 dnl  You should have received a copy of the GNU General Public License
22 dnl  along with GNU Emacs; see the file COPYING.  If not, write to the
23 dnl  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 dnl  Boston, MA 02110-1301, USA.
25
26 AC_PREREQ(2.61)dnl
27 AC_INIT(src/lisp.h)
28 AC_CONFIG_HEADER(src/config.h:src/config.in)
29
30 dnl Support for --program-prefix, --program-suffix and
31 dnl --program-transform-name options
32 AC_ARG_PROGRAM
33
34 lispdir='${datadir}/emacs/${version}/lisp'
35 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
36 '${datadir}/emacs/site-lisp'
37 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
38 etcdir='${datadir}/emacs/${version}/etc'
39 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
40 docdir='${datadir}/emacs/${version}/etc'
41 gamedir='${localstatedir}/games/emacs'
42
43 gameuser=games
44
45 AC_ARG_WITH(gcc,
46 [  --without-gcc           don't use GCC to compile Emacs if GCC is found])
47 AC_ARG_WITH(pop,
48 [  --without-pop           don't support POP mail retrieval with movemail],
49 [if test "$withval" = yes; then
50    AC_DEFINE(MAIL_USE_POP)
51 else :
52 fi],
53 AC_DEFINE(MAIL_USE_POP))
54 AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl
55 AC_ARG_WITH(kerberos,
56 [  --with-kerberos         support Kerberos-authenticated POP],
57 [if test "$withval" = yes; then
58    AC_DEFINE(KERBEROS)
59 fi])
60 AH_TEMPLATE(KERBEROS,
61             [Define to support Kerberos-authenticated POP mail retrieval.])dnl
62 AC_ARG_WITH(kerberos5,
63 [  --with-kerberos5        support Kerberos version 5 authenticated POP],
64 [if test "${with_kerberos5+set}" = set; then
65   if test "${with_kerberos+set}" != set; then
66     with_kerberos=yes
67     AC_DEFINE(KERBEROS)
68   fi
69   AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.])
70 fi])
71 AC_ARG_WITH(hesiod,
72 [  --with-hesiod           support Hesiod to get the POP server host],
73 [if test "$withval" = yes; then
74   AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.])
75 fi])
76
77 AC_ARG_WITH(sound,
78 [  --without-sound         don't compile with sound support])
79
80 dnl This should be the last --with option, because --with-x is
81 dnl added later on when we find the path of X, and it's best to
82 dnl keep them together visually.
83 AC_ARG_WITH(x-toolkit,
84 [  --with-x-toolkit=KIT    use an X toolkit
85                               (KIT = yes/lucid/athena/motif/gtk/no)],
86 [         case "${withval}" in
87             y | ye | yes )      val=athena ;;
88             n | no )            val=no  ;;
89             l | lu | luc | luci | lucid )       val=lucid ;;
90             a | at | ath | athe | athen | athena )      val=athena ;;
91             m | mo | mot | moti | motif )       val=motif ;;
92             g | gt | gtk  )     val=gtk ;;
93 dnl These don't currently work.
94 dnl         o | op | ope | open | open- | open-l | open-lo \
95 dnl             | open-loo | open-look )        val=open-look ;;
96             * )
97 dnl AC_MSG_ERROR([the `--with-x-toolkit' option is supposed to have a value
98 dnl which is `yes', `no', `lucid', `athena', `motif' or `open-look'.])
99 AC_MSG_ERROR([`--with-x-toolkit=$withval' is invalid\;
100 this option's value should be `yes', `no', `lucid', `athena', `motif' or `gtk'.
101 Currently, `yes', `athena' and `lucid' are synonyms.])
102             ;;
103           esac
104           with_x_toolkit=$val
105 ])
106 AC_ARG_WITH(xpm,
107 [  --with-xpm              use -lXpm for displaying XPM images])
108 AC_ARG_WITH(jpeg,
109 [  --with-jpeg             use -ljpeg for displaying JPEG images])
110 AC_ARG_WITH(tiff,
111 [  --with-tiff             use -ltiff for displaying TIFF images])
112 AC_ARG_WITH(gif,
113 [  --with-gif              use -lungif for displaying GIF images])
114 AC_ARG_WITH(png,
115 [  --with-png              use -lpng for displaying PNG images])
116 AC_ARG_WITH(gtk,
117 [  --with-gtk              use GTK (same as --with-x-toolkit=gtk)])
118 AC_ARG_WITH(pkg-config-prog,
119 [  --with-pkg-config-prog  Path to pkg-config to use for finding GTK])
120 AC_ARG_WITH(toolkit-scroll-bars,
121 [  --without-toolkit-scroll-bars
122                           don't use Motif or Xaw3d scroll bars])
123 AC_ARG_WITH(xim,
124 [  --without-xim           don't use X11 XIM])
125 AC_ARG_WITH(carbon,
126 [  --without-carbon        don't use Carbon GUI on Mac OS X])
127 AC_ARG_ENABLE(carbon-app,
128 [[  --enable-carbon-app[=DIR]  [DIR=/Application]
129                           specify install directory for Emacs.app on Mac OS X]],
130 [ carbon_appdir_x=${enableval}])
131
132 AC_ARG_ENABLE(asserts,
133 [  --enable-asserts        compile code with asserts enabled],
134       USE_XASSERTS=$enableval,
135       USE_XASSERTS=no)
136
137 AC_ARG_ENABLE(maintainer-mode,
138 [  --enable-maintainer-mode enable make rules and dependencies not useful
139                           (and sometimes confusing) to the casual installer],
140       USE_MAINTAINER_MODE=$enableval,
141       USE_MAINTAINER_MODE=no)
142 if test $USE_MAINTAINER_MODE = yes; then
143   MAINT=
144 else
145   MAINT=#
146 fi
147 AC_SUBST(MAINT)
148
149 AC_ARG_ENABLE(locallisppath,
150 [  --enable-locallisppath=PATH
151                           directories Emacs should search for lisp files
152                           specific to this site],
153 if test "${enableval}" = "no"; then
154   locallisppath=
155 elif test "${enableval}" != "yes"; then
156   locallisppath=${enableval}
157 fi)
158
159 #### Make srcdir absolute, if it isn't already.  It's important to
160 #### avoid running the path through pwd unnecessarily, since pwd can
161 #### give you automounter prefixes, which can go away.  We do all this
162 #### so Emacs can find its files when run uninstalled.
163 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
164 unset CDPATH
165 case "${srcdir}" in
166   /* ) ;;
167   . )
168     ## We may be able to use the $PWD environment variable to make this
169     ## absolute.  But sometimes PWD is inaccurate.
170     ## Note: we used to use ${PWD} at the end instead of `pwd`,
171     ## but that tested only for a well-formed and valid PWD,
172     ## it did not object when PWD was well-formed and valid but just wrong.
173     if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`"  ;
174     then
175       srcdir="$PWD"
176     else
177       srcdir="`(cd ${srcdir}; pwd)`"
178     fi
179   ;;
180   *  ) srcdir="`(cd ${srcdir}; pwd)`" ;;
181 esac
182
183 #### Check if the source directory already has a configured system in it.
184 if test `pwd` != `(cd ${srcdir} && pwd)` \
185    && test -f "${srcdir}/src/config.h" ; then
186   AC_MSG_WARN([[The directory tree `${srcdir}' is being used
187    as a build directory right now; it has been configured in its own
188    right.  To configure in another directory as well, you MUST
189    use GNU make.  If you do not have GNU make, then you must
190    now do `make distclean' in ${srcdir},
191    and then run $0 again.]])
192 fi
193
194 #### Given the configuration name, set machfile and opsysfile to the
195 #### names of the m/*.h and s/*.h files we should use.
196
197 ### Canonicalize the configuration name.
198
199 AC_CANONICAL_HOST
200 canonical=$host
201 configuration=${host_alias-$host}
202
203 dnl This used to use changequote, but, apart from `changequote is evil'
204 dnl per the autoconf manual, we can speed up autoconf somewhat by quoting
205 dnl the great gob of text.  Thus it's not processed for possible expansion.
206 dnl Just make sure the brackets remain balanced.
207 dnl
208 dnl Since Emacs can't find matching pairs of quotes, boundaries are
209 dnl indicated by comments.
210 dnl quotation begins
211 [
212
213 ### If you add support for a new configuration, add code to this
214 ### switch statement to recognize your configuration name and select
215 ### the appropriate operating system and machine description files.
216
217 ### You would hope that you could choose an m/*.h file pretty much
218 ### based on the machine portion of the configuration name, and an s-
219 ### file based on the operating system portion.  However, it turns out
220 ### that each m/*.h file is pretty manufacturer-specific - for
221 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
222 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
223 ### machines.  So we basically have to have a special case for each
224 ### configuration name.
225 ###
226 ### As far as handling version numbers on operating systems is
227 ### concerned, make sure things will fail in a fixable way.  If
228 ### /etc/MACHINES doesn't say anything about version numbers, be
229 ### prepared to handle anything reasonably.  If version numbers
230 ### matter, be sure /etc/MACHINES says something about it.
231 ###
232 ### Eric Raymond says we should accept strings like "sysvr4" to mean
233 ### "System V Release 4"; he writes, "The old convention encouraged
234 ### confusion between `system' and `release' levels'."
235
236 machine='' opsys='' unported=no
237 case "${canonical}" in
238
239   ## FreeBSD ports
240   *-*-freebsd* )
241     opsys=freebsd
242     case "${canonical}" in
243       alpha*-*-freebsd*)        machine=alpha ;;
244       arm*-*-freebsd*)          machine=arm ;;
245       ia64-*-freebsd*)          machine=ia64 ;;
246       sparc64-*-freebsd*)       machine=sparc ;;
247       powerpc-*-freebsd*)       machine=macppc ;;
248       i[3456]86-*-freebsd*)     machine=intel386 ;;
249       amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
250     esac
251   ;;
252
253   ## FreeBSD kernel + glibc based userland
254   *-*-kfreebsd*gnu* )
255     opsys=gnu-kfreebsd
256     case "${canonical}" in
257       alpha*-*-kfreebsd*)       machine=alpha ;;
258       ia64-*-kfreebsd*)         machine=ia64 ;;
259       sparc64-*-kfreebsd*)      machine=sparc ;;
260       powerpc-*-kfreebsd*)      machine=macppc ;;
261       i[3456]86-*-kfreebsd*)    machine=intel386 ;;
262       amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
263     esac
264   ;;
265
266   ## NetBSD ports
267   *-*-netbsd* )
268     opsys=netbsd
269     if test -f /usr/lib/crti.o; then]
270 dnl The close and open brackets here are because this section is quoted --
271 dnl see the `changequote' comment above.
272       AC_DEFINE(HAVE_CRTIN, [], [Define to 1 if you have /usr/lib/crti.o.])
273 [   fi
274
275     case "${canonical}" in
276       alpha*-*-netbsd*) machine=alpha ;;
277       i[3456]86-*-netbsd*) machine=intel386 ;;
278       m68k-*-netbsd*)
279                         # This is somewhat bogus.
280                         machine=hp9000s300 ;;
281       mips-*-netbsd*)   machine=pmax ;;
282       mipsel-*-netbsd*) machine=pmax ;;
283       mipseb-*-netbsd*) machine=pmax ;;
284       ns32k-*-netbsd*)  machine=ns32000 ;;
285       powerpc-*-netbsd*) machine=macppc ;;
286       sparc*-*-netbsd*) machine=sparc ;;
287       vax-*-netbsd*)    machine=vax ;;
288       arm-*-netbsd*)    machine=arm ;;
289       x86_64-*-netbsd*) machine=amdx86-64 ;;
290       hppa-*-netbsd*)   machine=hp800 ;;
291       shle-*-netbsd*)   machine=sh3el ;;
292     esac
293   ;;
294
295   ## OpenBSD ports
296   *-*-openbsd* )
297     opsys=openbsd
298     case "${canonical}" in
299       alpha*-*-openbsd*)        machine=alpha ;;
300       arm-*-openbsd*)          machine=arm ;;
301       hppa-*-openbsd*)         machine=hp9000s300 ;;
302       i386-*-openbsd*)         machine=intel386 ;;
303       m68k-*-openbsd*)         machine=hp9000s300 ;;
304       m88k-*-openbsd*)         machine=aviion ;;
305       mips64-*-openbsd*)       machine=mips64 ;;
306       powerpc-*-openbsd*)      machine=macppc ;;
307       sh-*-openbsd*)           machine=sh3el ;;
308       sparc*-*-openbsd*)       machine=sparc ;;
309       vax-*-openbsd*)          machine=vax ;;
310       x86_64-*-openbsd*)       machine=amdx86-64 ;;
311     esac
312   ;;
313
314   ## LynxOS ports
315   *-*-lynxos* )
316     opsys=lynxos
317     case "${canonical}" in
318       i[3456]86-*-lynxos*) machine=intel386 ;;
319       powerpc-*-lynxos*) machine=powerpc ;;
320     esac
321   ;;
322
323   ## Acorn RISCiX:
324   arm-acorn-riscix1.1* )
325     machine=acorn opsys=riscix1-1
326   ;;
327   arm-acorn-riscix1.2* | arm-acorn-riscix )
328     ## This name is riscix12 instead of riscix1.2
329     ## to avoid a file name conflict on MSDOS.
330     machine=acorn opsys=riscix12
331   ;;
332
333   ## BSDI ports
334   *-*-bsdi* )
335     opsys=bsdi
336     case "${canonical}" in
337       i[345]86-*-bsdi*) machine=intel386 ;;
338       sparc-*-bsdi*)  machine=sparc ;;
339       powerpc-*-bsdi*)  machine=macppc ;;
340     esac
341     case "${canonical}" in
342       *-*-bsd386* | *-*-bsdi1* )        opsys=bsd386 ;;
343       *-*-bsdi2.0* )            opsys=bsdos2 ;;
344       *-*-bsdi2* )              opsys=bsdos2-1 ;;
345       *-*-bsdi3* )              opsys=bsdos3 ;;
346       *-*-bsdi[45]* )           opsys=bsdos4 ;;
347     esac
348   ;;
349
350   ## Alliant machines
351   ## Strictly speaking, we need the version of the alliant operating
352   ## system to choose the right machine file, but currently the
353   ## configuration name doesn't tell us enough to choose the right
354   ## one; we need to give alliants their own operating system name to
355   ## do this right.  When someone cares, they can help us.
356   fx80-alliant-* )
357     machine=alliant4 opsys=bsd4-2
358   ;;
359   i860-alliant-* )
360     machine=alliant-2800 opsys=bsd4-3
361   ;;
362
363   ## Alpha (DEC) machines.
364   alpha*-dec-osf* )
365     machine=alpha opsys=osf1
366     # This is needed to find X11R6.1 libraries for certain tests.
367     NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
368     GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
369     # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
370     # due to non-traditional preprocessing with the current compiler
371     # defaults.  OSF 4 can also have that compiler version, and there
372     # seems always to have been a usable /usr/bin/cpp.
373     NON_GNU_CPP=/usr/bin/cpp
374     case "${canonical}" in
375     alpha*-dec-osf[5-9]*)
376       opsys=osf5-0 ;;
377     esac
378   ;;
379
380   alpha*-*-linux-gnu* )
381     machine=alpha opsys=gnu-linux
382   ;;
383
384   arm*-*-linux-gnu* )
385     machine=arm opsys=gnu-linux
386   ;;
387
388   ## Altos 3068
389   m68*-altos-sysv* )
390     machine=altos opsys=usg5-2
391   ;;
392
393   ## Amdahl UTS
394   580-amdahl-sysv* )
395     machine=amdahl opsys=usg5-2-2
396   ;;
397
398   ## Apollo, Domain/OS
399   m68*-apollo-* )
400     machine=apollo opsys=bsd4-3
401   ;;
402
403   ## Apple Darwin / Mac OS X
404   *-apple-darwin* )
405     case "${canonical}" in
406       i[3456]86-* )  machine=intel386 ;;
407       powerpc-* )    machine=powermac ;;
408       * )            unported=yes ;;
409     esac
410     opsys=darwin
411     # Define CPP as follows to make autoconf work correctly.
412     CPP="${CC-cc} -E -no-cpp-precomp"
413     # Use fink packages if available.
414     if test -d /sw/include && test -d /sw/lib; then
415       GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
416       CPP="${CPP} ${GCC_TEST_OPTIONS}"
417       NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
418     fi
419   ;;
420
421   ## AT&T 3b2, 3b5, 3b15, 3b20
422   we32k-att-sysv* )
423     machine=att3b opsys=usg5-2-2
424   ;;
425
426   ## AT&T 3b1 - The Mighty Unix PC!
427   m68*-att-sysv* )
428     machine=7300 opsys=usg5-2-2
429   ;;
430
431   ## Bull dpx20
432   rs6000-bull-bosx* )
433     machine=ibmrs6000 opsys=aix3-2
434   ;;
435
436   ## Bull dpx2
437   m68*-bull-sysv3* )
438     machine=dpx2 opsys=usg5-3
439   ;;
440
441   ## Bull sps7
442   m68*-bull-sysv2* )
443     machine=sps7 opsys=usg5-2
444   ;;
445
446   ## CCI 5/32, 6/32 -- see "Tahoe".
447
448   ## Celerity
449   ## I don't know what configuration name to use for this; config.sub
450   ## doesn't seem to know anything about it.  Hey, Celerity users, get
451   ## in touch with us!
452   celerity-celerity-bsd* )
453     machine=celerity opsys=bsd4-2
454   ;;
455
456   ## Clipper
457   ## What operating systems does this chip run that Emacs has been
458   ## tested on?
459   clipper-* )
460     machine=clipper
461     ## We'll use the catch-all code at the bottom to guess the
462     ## operating system.
463   ;;
464
465   ## Compaq Nonstop
466   mips-compaq-nonstopux* )
467     machine=nonstopux opsys=nonstopux
468     ;;
469
470   ## Convex
471   *-convex-bsd* | *-convex-convexos* )
472     machine=convex opsys=bsd4-3
473     ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
474     NON_GNU_CPP="cc -E -P"
475   ;;
476
477   ## Cubix QBx/386
478   i[3456]86-cubix-sysv* )
479     machine=intel386 opsys=usg5-3
480   ;;
481
482   ## Cydra 5
483   cydra*-cydrome-sysv* )
484     machine=cydra5 opsys=usg5-3
485   ;;
486
487   ## Data General AViiON Machines
488   ## DG changed naming conventions with the release of 5.4.4.10, they
489   ## dropped the initial 5.4 but left the intervening R.  Because of the
490   ## R this shouldn't conflict with older versions of the OS (which I
491   ## think were named like dgux4.*). In addition, DG new AViiONs series
492   ## uses either Motorola M88k or Intel Pentium CPUs.
493   m88k-dg-dguxR4.* | m88k-dg-dgux4* )
494     machine=aviion opsys=dgux4
495   ;;
496   m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
497     ## This name is dgux5-4-3 instead of dgux5-4r3
498     ## to avoid a file name conflict on MSDOS.
499     machine=aviion opsys=dgux5-4-3
500   ;;
501   m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
502     machine=aviion opsys=dgux5-4r2
503   ;;
504   m88k-dg-dgux* )
505     machine=aviion opsys=dgux
506   ;;
507
508   ## Data General AViiON Intel (x86) Machines
509   ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
510   ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
511   i[345]86-dg-dguxR4* )
512     machine=aviion-intel opsys=dgux4
513   ;;
514
515   ## DECstations
516   mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
517     machine=pmax opsys=bsd4-2
518   ;;
519   mips-dec-ultrix4.[12]* | mips-dec-bsd* )
520     machine=pmax opsys=bsd4-3
521   ;;
522   mips-dec-ultrix* )
523     machine=pmax opsys=ultrix4-3
524   ;;
525   mips-dec-osf* )
526     machine=pmax opsys=osf1
527   ;;
528   mips-dec-mach_bsd4.3* )
529     machine=pmax opsys=mach-bsd4-3
530   ;;
531
532   ## Motorola Delta machines
533   m68k-motorola-sysv* | m68000-motorola-sysv* )
534     machine=delta opsys=usg5-3
535     if test -z "`type gnucc | grep 'not found'`"
536     then
537       if test -s /etc/167config
538       then CC="gnucc -m68040"
539       else CC="gnucc -m68881"
540       fi
541     else
542       if test -z "`type gcc | grep 'not found'`"
543       then CC=gcc
544       else CC=cc
545       fi
546     fi
547   ;;
548   m88k-motorola-sysv4* )
549     # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
550     # needs POSIX_SIGNALS and therefore needs usg5-4-2.
551     # I hope there are not other 4.0 versions for this machine
552     # which really need usg5-4 instead.
553     machine=delta88k opsys=usg5-4-2
554   ;;
555   m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
556     machine=delta88k opsys=usg5-3
557   ;;
558
559   ## Dual machines
560   m68*-dual-sysv* )
561     machine=dual opsys=usg5-2
562   ;;
563   m68*-dual-uniplus* )
564     machine=dual opsys=unipl5-2
565   ;;
566
567   ## Elxsi 6400
568   elxsi-elxsi-sysv* )
569     machine=elxsi opsys=usg5-2
570   ;;
571
572   ## Encore machines
573   ns16k-encore-bsd* )
574     machine=ns16000 opsys=umax
575   ;;
576
577   ## The GEC 63 - apparently, this port isn't really finished yet.
578   #  I'm sure we finished off the last of the machines, though.  -- fx
579
580   ## Gould Power Node and NP1
581   pn-gould-bsd4.2* )
582     machine=gould opsys=bsd4-2
583   ;;
584   pn-gould-bsd4.3* )
585     machine=gould opsys=bsd4-3
586   ;;
587   np1-gould-bsd* )
588     machine=gould-np1 opsys=bsd4-3
589   ;;
590
591   ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
592   ## as far as Emacs is concerned).
593   m88k-harris-cxux* )
594     # Build needs to be different on 7.0 and later releases
595     case "`uname -r`" in
596        [56].[0-9] ) machine=nh4000 opsys=cxux ;;
597        [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
598     esac
599     NON_GNU_CPP="/lib/cpp"
600   ;;
601   ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
602   m68k-harris-cxux* )
603     machine=nh3000 opsys=cxux
604   ;;
605   ## Harris power pc NightHawk running Power UNIX (Series 6000)
606   powerpc-harris-powerunix )
607     machine=nh6000 opsys=powerunix
608     NON_GNU_CPP="cc -Xo -E -P"
609   ;;
610   ## SR2001/SR2201 running HI-UX/MPP
611   hppa1.1-hitachi-hiuxmpp* )
612     machine=sr2k opsys=hiuxmpp
613   ;;
614   hppa1.1-hitachi-hiuxwe2* )
615     machine=sr2k opsys=hiuxwe2
616   ;;
617   ## Honeywell XPS100
618   xps*-honeywell-sysv* )
619     machine=xps100 opsys=usg5-2
620   ;;
621
622   ## HP 9000 series 200 or 300
623   m68*-hp-bsd* )
624     machine=hp9000s300 opsys=bsd4-3
625   ;;
626   ## HP/UX 7, 8, 9, and 10 are supported on these machines.
627   m68*-hp-hpux* )
628     case "`uname -r`" in
629       ## Someone's system reports A.B8.05 for this.
630       ## I wonder what other possibilities there are.
631       *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
632       *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
633       *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
634       *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
635       *) machine=hp9000s300 opsys=hpux ;;
636     esac
637   ;;
638
639   ## HP 9000 series 700 and 800, running HP/UX
640   hppa*-hp-hpux7* )
641     machine=hp800 opsys=hpux
642   ;;
643   hppa*-hp-hpux8* )
644     machine=hp800 opsys=hpux8
645   ;;
646   hppa*-hp-hpux9shr* )
647     machine=hp800 opsys=hpux9shr
648   ;;
649   hppa*-hp-hpux9* )
650     machine=hp800 opsys=hpux9
651   ;;
652   hppa*-hp-hpux10.2* )
653     machine=hp800 opsys=hpux10-20
654   ;;
655   hppa*-hp-hpux10* )
656     machine=hp800 opsys=hpux10
657   ;;
658   hppa*-hp-hpux1[1-9]* )
659     machine=hp800 opsys=hpux11
660     CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
661   ;;
662
663   hppa*-*-linux-gnu* )
664     machine=hp800 opsys=gnu-linux
665   ;;
666
667   ## HP 9000 series 700 and 800, running HP/UX
668   hppa*-hp-hpux* )
669     ## Cross-compilation?  Nah!
670     case "`uname -r`" in
671       ## Someone's system reports A.B8.05 for this.
672       ## I wonder what other possibilities there are.
673       *.B8.* ) machine=hp800 opsys=hpux8 ;;
674       *.08.* ) machine=hp800 opsys=hpux8 ;;
675       *.09.* ) machine=hp800 opsys=hpux9 ;;
676       *) machine=hp800 opsys=hpux10 ;;
677     esac
678   ;;
679   hppa*-*-nextstep* )
680     machine=hp800 opsys=nextstep
681   ;;
682
683   ## Orion machines
684   orion-orion-bsd* )
685     machine=orion opsys=bsd4-2
686   ;;
687   clipper-orion-bsd* )
688     machine=orion105 opsys=bsd4-2
689   ;;
690
691   ## IBM machines
692   i[3456]86-ibm-aix1.1* )
693     machine=ibmps2-aix opsys=usg5-2-2
694   ;;
695   i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
696     machine=ibmps2-aix opsys=usg5-3
697   ;;
698   i370-ibm-aix*)
699     machine=ibm370aix opsys=usg5-3
700   ;;
701   s390-*-linux-gnu* )
702     machine=ibms390 opsys=gnu-linux
703   ;;
704   s390x-*-linux-gnu* )
705     machine=ibms390x opsys=gnu-linux
706   ;;
707   rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1*  )
708     machine=ibmrs6000 opsys=aix3-1
709   ;;
710   rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
711     machine=ibmrs6000 opsys=aix3-2-5
712   ;;
713   rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1*  )
714     machine=ibmrs6000 opsys=aix4-1
715   ;;
716   rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2*  )
717     machine=ibmrs6000 opsys=aix4-2
718   ;;
719   rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3*  )
720     machine=ibmrs6000 opsys=aix4-2
721   ;;
722   rs6000-ibm-aix5* | powerpc-ibm-aix5*  )
723     machine=ibmrs6000 opsys=aix4-2
724   ;;
725   rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0*  )
726     machine=ibmrs6000 opsys=aix4
727   ;;
728   rs6000-ibm-aix4* | powerpc-ibm-aix4*  )
729     machine=ibmrs6000 opsys=aix4-1
730   ;;
731   rs6000-ibm-aix* | powerpc-ibm-aix* )
732     machine=ibmrs6000 opsys=aix3-2
733   ;;
734   romp-ibm-bsd4.3* )
735     machine=ibmrt opsys=bsd4-3
736   ;;
737   romp-ibm-bsd4.2* )
738     machine=ibmrt opsys=bsd4-2
739   ;;
740   romp-ibm-aos4.3* )
741     machine=ibmrt opsys=bsd4-3
742   ;;
743   romp-ibm-aos4.2* )
744     machine=ibmrt opsys=bsd4-2
745   ;;
746   romp-ibm-aos* )
747     machine=ibmrt opsys=bsd4-3
748   ;;
749   romp-ibm-bsd* )
750     machine=ibmrt opsys=bsd4-3
751   ;;
752   romp-ibm-aix* )
753     machine=ibmrt-aix opsys=usg5-2-2
754   ;;
755
756   ## Integrated Solutions `Optimum V'
757   m68*-isi-bsd4.2* )
758     machine=isi-ov opsys=bsd4-2
759   ;;
760   m68*-isi-bsd4.3* )
761     machine=isi-ov opsys=bsd4-3
762   ;;
763
764   ## Intel 386 machines where we do care about the manufacturer
765   i[3456]86-intsys-sysv* )
766     machine=is386 opsys=usg5-2-2
767   ;;
768
769   ## Prime EXL
770   i[3456]86-prime-sysv* )
771     machine=i386 opsys=usg5-3
772   ;;
773
774   ## Sequent Symmetry running Dynix
775   i[3456]86-sequent-bsd* )
776     machine=symmetry opsys=bsd4-3
777   ;;
778
779   ## Sequent Symmetry running ptx 4, which is a modified SVR4.
780   i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
781     machine=sequent-ptx opsys=ptx4
782     NON_GNU_CPP=/lib/cpp
783   ;;
784
785   ## Sequent Symmetry running DYNIX/ptx
786   ## Use the old cpp rather than the newer ANSI one.
787   i[3456]86-sequent-ptx* )
788     machine=sequent-ptx opsys=ptx
789     NON_GNU_CPP="/lib/cpp"
790   ;;
791
792   ## ncr machine running svr4.3.
793   i[3456]86-ncr-sysv4.3 )
794     machine=ncr386 opsys=usg5-4-3
795   ;;
796
797   ## Unspecified sysv on an ncr machine defaults to svr4.2.
798   ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
799   i[3456]86-ncr-sysv* )
800     machine=ncr386 opsys=usg5-4-2
801   ;;
802
803   ## Intel Paragon OSF/1
804   i860-intel-osf1* )
805     machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
806   ;;
807
808   ## Intel 860
809   i860-*-sysv4* )
810     machine=i860 opsys=usg5-4
811     NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
812     NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
813   ;;
814
815   ## Macintosh PowerPC
816   powerpc*-*-linux-gnu* )
817     machine=macppc opsys=gnu-linux
818   ;;
819
820   ## Masscomp machines
821   m68*-masscomp-rtu* )
822     machine=masscomp opsys=rtu
823   ;;
824
825   ## Megatest machines
826   m68*-megatest-bsd* )
827     machine=mega68 opsys=bsd4-2
828   ;;
829
830   ## Workstations sold by MIPS
831   ## This is not necessarily all workstations using the MIPS processor -
832   ## Irises are produced by SGI, and DECstations by DEC.
833
834   ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
835   ## and usg5-2-2 and bsd4-3 as possible OS files.  The only guidance
836   ## it gives for choosing between the alternatives seems to be "Use
837   ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
838   ## the BSD world."  I'll assume that these are instructions for
839   ## handling two odd situations, and that every other situation
840   ## should use mips.h and usg5-2-2, they being listed first.
841   mips-mips-usg* )
842     machine=mips4
843     ## Fall through to the general code at the bottom to decide on the OS.
844   ;;
845   mips-mips-riscos4* )
846     machine=mips4 opsys=bsd4-3
847     NON_GNU_CC="cc -systype bsd43"
848     NON_GNU_CPP="cc -systype bsd43 -E"
849   ;;
850   mips-mips-riscos5* )
851     machine=mips4 opsys=riscos5
852     NON_GNU_CC="cc -systype bsd43"
853     NON_GNU_CPP="cc -systype bsd43 -E"
854   ;;
855   mips-mips-bsd* )
856     machine=mips opsys=bsd4-3
857   ;;
858   mips-mips-* )
859     machine=mips opsys=usg5-2-2
860   ;;
861
862   ## NeXT
863   m68*-next-* | m68k-*-nextstep* )
864     machine=m68k opsys=nextstep
865   ;;
866
867   ## The complete machine from National Semiconductor
868   ns32k-ns-genix* )
869     machine=ns32000 opsys=usg5-2
870   ;;
871
872   ## NCR machines
873   m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
874     machine=tower32 opsys=usg5-2-2
875   ;;
876   m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
877     machine=tower32v3 opsys=usg5-3
878   ;;
879
880   ## NEC EWS4800
881   mips-nec-sysv4*)
882   machine=ews4800 opsys=ux4800
883   ;;
884
885   ## Nixdorf Targon 31
886   m68*-nixdorf-sysv* )
887     machine=targon31 opsys=usg5-2-2
888   ;;
889
890   ## Nu (TI or LMI)
891   m68*-nu-sysv* )
892     machine=nu opsys=usg5-2
893   ;;
894
895   ## Plexus
896   m68*-plexus-sysv* )
897     machine=plexus opsys=usg5-2
898   ;;
899
900   ## Pyramid machines
901   ## I don't really have any idea what sort of processor the Pyramid has,
902   ## so I'm assuming it is its own architecture.
903   pyramid-pyramid-bsd* )
904     machine=pyramid opsys=bsd4-2
905   ;;
906
907   ## Sequent Balance
908   ns32k-sequent-bsd4.2* )
909     machine=sequent opsys=bsd4-2
910   ;;
911   ns32k-sequent-bsd4.3* )
912     machine=sequent opsys=bsd4-3
913   ;;
914
915   ## Siemens Nixdorf
916   mips-siemens-sysv* | mips-sni-sysv*)
917     machine=mips-siemens opsys=usg5-4
918     NON_GNU_CC=/usr/ccs/bin/cc
919     NON_GNU_CPP=/usr/ccs/lib/cpp
920   ;;
921
922   ## Silicon Graphics machines
923   ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
924   m68*-sgi-iris3.5* )
925     machine=irist opsys=iris3-5
926   ;;
927   m68*-sgi-iris3.6* | m68*-sgi-iris*)
928     machine=irist opsys=iris3-6
929   ;;
930   ## Iris 4D
931   mips-sgi-irix3* )
932     machine=iris4d opsys=irix3-3
933   ;;
934   mips-sgi-irix4* )
935     machine=iris4d opsys=irix4-0
936   ;;
937   mips-sgi-irix6.5 )
938     machine=iris4d opsys=irix6-5
939     # Without defining _LANGUAGE_C, things get masked out in the headers
940     # so that, for instance, grepping for `free' in stdlib.h fails and
941     # AC_HEADER_STD_C fails.   (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
942     NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
943     NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
944   ;;
945   mips-sgi-irix6* )
946     machine=iris4d opsys=irix6-0
947     # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
948     # but presumably it does no harm.
949     NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
950     # -32 probably isn't necessary in later v.6s -- anyone know which?
951     NON_GCC_TEST_OPTIONS=-32
952   ;;
953   mips-sgi-irix5.[01]* )
954     machine=iris4d opsys=irix5-0
955   ;;
956   mips-sgi-irix5* | mips-sgi-irix* )
957     machine=iris4d opsys=irix5-2
958   ;;
959
960   ## SONY machines
961   m68*-sony-bsd4.2* )
962     machine=news opsys=bsd4-2
963   ;;
964   m68*-sony-bsd4.3* )
965     machine=news opsys=bsd4-3
966   ;;
967   m68*-sony-newsos3* | m68*-sony-news3*)
968     machine=news opsys=bsd4-3
969   ;;
970   mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
971     machine=news-risc opsys=bsd4-3
972   ;;
973   mips-sony-newsos6* )
974     machine=news-r6 opsys=newsos6
975   ;;
976   mips-sony-news* )
977     machine=news-risc opsys=newsos5
978   ;;
979
980   ## Stride
981   m68*-stride-sysv* )
982     machine=stride opsys=usg5-2
983   ;;
984
985   ## Suns
986   sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
987     machine=sparc opsys=gnu-linux
988   ;;
989
990   *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
991     | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
992     | rs6000-*-solaris2*)
993     case "${canonical}" in
994       m68*-sunos1* )    machine=sun1 ;;
995       m68*-sunos2* )    machine=sun2 ;;
996       m68* )            machine=sun3 ;;
997       i[3456]86-sun-sunos[34]* )        machine=sun386 ;;
998       i[3456]86-*-* )     machine=intel386 ;;
999       amd64-*-*|x86_64-*-*)     machine=amdx86-64 ;;
1000       powerpcle* )      machine=powerpcle ;;
1001       powerpc* | rs6000* )  machine=ibmrs6000 ;;
1002       sparc* )          machine=sparc ;;
1003       * )               unported=yes ;;
1004     esac
1005     case "${canonical}" in
1006       ## The Sun386 didn't get past 4.0.
1007       i[3456]86-*-sunos4          ) opsys=sunos4-0 ;;
1008       *-sunos4.0*         ) opsys=sunos4-0 ;;
1009       *-sunos4.1.[3-9]*noshare )
1010                 ## This name is sunos413 instead of sunos4-1-3
1011                 ## to avoid a file name conflict on MSDOS.
1012                 opsys=sunos413
1013                 NON_GNU_CPP=/usr/lib/cpp
1014                 NON_GCC_TEST_OPTIONS=-Bstatic
1015                 GCC_TEST_OPTIONS=-static
1016                 ;;
1017       *-sunos4.1.[3-9]* | *-sunos4shr*)
1018                 opsys=sunos4shr
1019                 NON_GNU_CPP=/usr/lib/cpp
1020                 ;;
1021       *-sunos4* | *-sunos )
1022                 opsys=sunos4-1
1023                 NON_GCC_TEST_OPTIONS=-Bstatic
1024                 GCC_TEST_OPTIONS=-static
1025                 ;;
1026       *-sunos5.3* | *-solaris2.3* )
1027                 opsys=sol2-3
1028                 NON_GNU_CPP=/usr/ccs/lib/cpp
1029                 ;;
1030       *-sunos5.4* | *-solaris2.4* )
1031                 opsys=sol2-4
1032                 NON_GNU_CPP=/usr/ccs/lib/cpp
1033                 RANLIB="ar -ts"
1034                 ;;
1035       *-sunos5.5* | *-solaris2.5* )
1036                 opsys=sol2-5
1037                 NON_GNU_CPP=/usr/ccs/lib/cpp
1038                 RANLIB="ar -ts"
1039                 ;;
1040       *-sunos5.6* | *-solaris2.6* )
1041                 opsys=sol2-6
1042                 NON_GNU_CPP=/usr/ccs/lib/cpp
1043                 RANLIB="ar -ts"
1044                 ;;
1045       *-sunos5* | *-solaris* )
1046                 opsys=sol2-6
1047 ## FIXME: make this into a proper fix that checks the compiler type,
1048 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
1049                 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
1050                   ## -Xs prevents spurious whitespace.
1051                   NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
1052                 else
1053                   NON_GNU_CPP=/usr/ccs/lib/cpp
1054                 fi
1055                 ;;
1056       *                   ) opsys=bsd4-2   ;;
1057     esac
1058     ## Watch out for a compiler that we know will not work.
1059     case "${canonical}" in
1060      *-solaris* | *-sunos5* )
1061                 if [ "x$CC" = x/usr/ucb/cc ]; then
1062                   ## /usr/ucb/cc doesn't work;
1063                   ## we should find some other compiler that does work.
1064                   unset CC
1065                 fi
1066                 ;;
1067       *) ;;
1068     esac
1069   ;;
1070   sparc-*-nextstep* )
1071     machine=sparc opsys=nextstep
1072   ;;
1073
1074   ## Tadpole 68k
1075   m68*-tadpole-sysv* )
1076     machine=tad68k opsys=usg5-3
1077   ;;
1078
1079   ## Tahoe machines
1080   tahoe-tahoe-bsd4.2* )
1081     machine=tahoe opsys=bsd4-2
1082   ;;
1083   tahoe-tahoe-bsd4.3* )
1084     machine=tahoe opsys=bsd4-3
1085   ;;
1086
1087   ## Tandem Integrity S2
1088   mips-tandem-sysv* )
1089     machine=tandem-s2 opsys=usg5-3
1090   ;;
1091
1092   ## Tektronix XD88
1093   m88k-tektronix-sysv3* )
1094   machine=tekxd88 opsys=usg5-3
1095   ;;
1096
1097   ## Tektronix 16000 box (6130?)
1098   ns16k-tektronix-bsd* )
1099     machine=ns16000 opsys=bsd4-2
1100   ;;
1101   ## Tektronix 4300
1102   ## src/m/tek4300.h hints that this is a m68k machine.
1103   m68*-tektronix-bsd* )
1104     machine=tek4300 opsys=bsd4-3
1105   ;;
1106
1107   ## Titan P2 or P3
1108   ## We seem to have lost the machine-description file titan.h!
1109   titan-titan-sysv* )
1110     machine=titan opsys=usg5-3
1111   ;;
1112
1113   ## Ustation E30 (SS5E)
1114   m68*-unisys-uniplus* )
1115     machine=ustation opsystem=unipl5-2
1116   ;;
1117
1118   ## Vaxen.
1119   vax-dec-* )
1120     machine=vax
1121     case "${canonical}" in
1122       *-bsd4.1* )                                       opsys=bsd4-1 ;;
1123       *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* )      opsys=bsd4-2 ;;
1124       *-bsd4.3* | *-ultrix* )                           opsys=bsd4-3 ;;
1125       *-sysv[01]* | *-sysvr[01]* )                      opsys=usg5-0 ;;
1126       *-sysv2* | *-sysvr2* )                            opsys=usg5-2 ;;
1127       *-vms* )                                          opsys=vms ;;
1128       * )                                               unported=yes
1129     esac
1130   ;;
1131
1132   ## Whitechapel MG1
1133   ns16k-whitechapel-* )
1134     machine=mg1
1135     ## We don't know what sort of OS runs on these; we'll let the
1136     ## operating system guessing code below try.
1137   ;;
1138
1139   ## Wicat
1140   m68*-wicat-sysv* )
1141     machine=wicat opsys=usg5-2
1142   ;;
1143
1144   ## IA-64
1145   ia64*-*-linux* )
1146     machine=ia64 opsys=gnu-linux
1147   ;;
1148
1149   ## Intel 386 machines where we don't care about the manufacturer
1150   i[3456]86-*-* )
1151     machine=intel386
1152     case "${canonical}" in
1153       *-cygwin )                opsys=cygwin ;;
1154       *-darwin* )               opsys=darwin
1155                                 CPP="${CC-cc} -E -no-cpp-precomp"
1156                                 ;;
1157       *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1158       *-isc2.2* )               opsys=isc2-2 ;;
1159       *-isc4.0* )               opsys=isc4-0 ;;
1160       *-isc4.* )                opsys=isc4-1
1161                                 GCC_TEST_OPTIONS=-posix
1162                                 NON_GCC_TEST_OPTIONS=-Xp
1163                                 ;;
1164       *-isc* )                  opsys=isc3-0 ;;
1165       *-esix5* )                opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
1166       *-esix* )                 opsys=esix ;;
1167       *-xenix* )                opsys=xenix ;;
1168       *-linux-gnu* )            opsys=gnu-linux ;;
1169       *-sco3.2v4* )             opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
1170       *-sco3.2v5* )             opsys=sco5
1171                                 NON_GNU_CPP=/lib/cpp
1172                                 # Prevent -belf from being passed to $CPP.
1173                                 # /lib/cpp does not accept it.
1174                                 OVERRIDE_CPPFLAGS=" "
1175                                 ;;
1176       *-sysv4.2uw* )            opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
1177       *-sysv5uw* )              opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
1178       *-sysv5OpenUNIX* )        opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
1179       *-386bsd* )               opsys=386bsd ;;
1180       *-nextstep* )             opsys=nextstep ;;
1181       ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1182     esac
1183   ;;
1184
1185   ## m68k Linux-based GNU system
1186   m68k-*-linux-gnu* )
1187     machine=m68k opsys=gnu-linux
1188   ;;
1189
1190   ## Mips Linux-based GNU system
1191   mips-*-linux-gnu* | mipsel-*-linux-gnu* )
1192     machine=mips opsys=gnu-linux
1193   ;;
1194
1195   ## UXP/DS
1196   sparc-fujitsu-sysv4* )
1197     machine=sparc opsys=uxpds
1198     NON_GNU_CPP=/usr/ccs/lib/cpp
1199     RANLIB="ar -ts"
1200   ;;
1201
1202   ## UXP/V
1203   f301-fujitsu-uxpv4.1)
1204     machine=f301 opsys=uxpv
1205   ;;
1206
1207   ## AMD x86-64 Linux-based GNU system
1208   x86_64-*-linux-gnu* )
1209     machine=amdx86-64 opsys=gnu-linux
1210   ;;
1211
1212   ## Tensilica Xtensa Linux-based GNU system   
1213   xtensa*-*-linux-* )
1214     machine=xtensa opsys=gnu-linux