File:  [DragonFly] / src / contrib / gcc / Attic / configure
Revision 1.2: download - view: text, annotated - select for diffs
Tue Jun 17 04:23:59 2003 UTC (11 years, 3 months ago) by dillon
Branches: MAIN
CVS tags: HEAD
Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids.  Most
ids have been removed from !lint sections and moved into comment sections.

    1: #! /bin/sh
    2: 
    3: # $FreeBSD: src/contrib/gcc/configure,v 1.8.2.1 2001/04/10 19:23:03 obrien Exp $
    4: # $DragonFly: src/contrib/gcc/configure,v 1.2 2003/06/17 04:23:59 dillon Exp $
    5: 
    6: # Guess values for system-dependent variables and create Makefiles.
    7: # Generated automatically using autoconf version 2.13 
    8: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    9: #
   10: # This configure script is free software; the Free Software Foundation
   11: # gives unlimited permission to copy, distribute and modify it.
   12: 
   13: # Defaults:
   14: ac_help=
   15: ac_default_prefix=/usr/local
   16: # Any additions from configure.in:
   17: ac_help="$ac_help
   18:   --with-gnu-ld           arrange to work with GNU ld."
   19: ac_help="$ac_help
   20:   --with-ld               arrange to use the specified ld (full pathname)."
   21: ac_help="$ac_help
   22:   --with-gnu-as           arrange to work with GNU as."
   23: ac_help="$ac_help
   24:   --with-as               arrange to use the specified as (full pathname)."
   25: ac_help="$ac_help
   26:   --with-stabs            arrange to use stabs instead of host debug format."
   27: ac_help="$ac_help
   28:   --with-elf              arrange to use ELF instead of host debug format."
   29: ac_help="$ac_help
   30:   --with-local-prefix=DIR specifies directory to put local include."
   31: ac_help="$ac_help
   32:   --with-gxx-include-dir=DIR
   33:                           specifies directory to put g++ header files."
   34: ac_help="$ac_help
   35:   --enable-checking       enable expensive run-time checks."
   36: ac_help="$ac_help
   37:   --disable-cpp           don't provide a user-visible C preprocessor."
   38: ac_help="$ac_help
   39:   --with-cpp-install-dir=DIR
   40:                           install the user visible C preprocessor in DIR
   41:                           (relative to PREFIX) as well as PREFIX/bin."
   42: ac_help="$ac_help
   43:   --enable-cpplib         use cpplib for the C preprocessor."
   44: ac_help="$ac_help
   45:   --enable-c-cpplib       link cpplib directly into C and C++ compilers
   46:                           (EXPERIMENTAL) (implies --enable-cpplib)."
   47: ac_help="$ac_help
   48:   --enable-c-mbchar       enable multibyte characters for C and C++."
   49: ac_help="$ac_help
   50:   --disable-fast-fixincludes
   51:                          Disable the new fast fixincludes.
   52:                          Run the old fixincludes script unconditionally"
   53: ac_help="$ac_help
   54:   --enable-haifa          use the experimental scheduler.
   55:   --disable-haifa         don't use the experimental scheduler for the
   56:                           targets which normally enable it."
   57: ac_help="$ac_help
   58:   --enable-threads        enable thread usage for target GCC.
   59:   --enable-threads=LIB    use LIB thread package for target GCC."
   60: ac_help="$ac_help
   61:   --enable-objc-gc	  enable the use of Boehm's garbage collector with
   62: 			  the GNU Objective-C runtime."
   63: ac_help="$ac_help
   64:   --enable-java-gc=TYPE   choose garbage collector [boehm]"
   65: ac_help="$ac_help
   66:   --enable-dwarf2	  enable DWARF2 debugging as default."
   67: ac_help="$ac_help
   68:   --enable-nls            use Native Language Support (disabled by default).
   69:                           EXPERIMENTAL, see ABOUT-GCC-NLS."
   70: ac_help="$ac_help
   71:   --disable-nls           do not use Native Language Support"
   72: ac_help="$ac_help
   73:   --with-included-gettext use the GNU gettext library included here"
   74: ac_help="$ac_help
   75:   --with-catgets          use catgets functions if available"
   76: 
   77: # Initialize some variables set by options.
   78: # The variables have the same names as the options, with
   79: # dashes changed to underlines.
   80: build=NONE
   81: cache_file=./config.cache
   82: exec_prefix=NONE
   83: host=NONE
   84: no_create=
   85: nonopt=NONE
   86: no_recursion=
   87: prefix=NONE
   88: program_prefix=NONE
   89: program_suffix=NONE
   90: program_transform_name=s,x,x,
   91: silent=
   92: site=
   93: srcdir=
   94: target=NONE
   95: verbose=
   96: x_includes=NONE
   97: x_libraries=NONE
   98: bindir='${exec_prefix}/bin'
   99: sbindir='${exec_prefix}/sbin'
  100: libexecdir='${exec_prefix}/libexec'
  101: datadir='${prefix}/share'
  102: sysconfdir='${prefix}/etc'
  103: sharedstatedir='${prefix}/com'
  104: localstatedir='${prefix}/var'
  105: libdir='${exec_prefix}/lib'
  106: includedir='${prefix}/include'
  107: oldincludedir='/usr/include'
  108: infodir='${prefix}/info'
  109: mandir='${prefix}/man'
  110: 
  111: # Initialize some other variables.
  112: subdirs=
  113: MFLAGS= MAKEFLAGS=
  114: SHELL=${CONFIG_SHELL-/bin/sh}
  115: # Maximum number of lines to put in a shell here document.
  116: ac_max_here_lines=12
  117: 
  118: ac_prev=
  119: for ac_option
  120: do
  121: 
  122:   # If the previous option needs an argument, assign it.
  123:   if test -n "$ac_prev"; then
  124:     eval "$ac_prev=\$ac_option"
  125:     ac_prev=
  126:     continue
  127:   fi
  128: 
  129:   case "$ac_option" in
  130:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  131:   *) ac_optarg= ;;
  132:   esac
  133: 
  134:   # Accept the important Cygnus configure options, so we can diagnose typos.
  135: 
  136:   case "$ac_option" in
  137: 
  138:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  139:     ac_prev=bindir ;;
  140:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  141:     bindir="$ac_optarg" ;;
  142: 
  143:   -build | --build | --buil | --bui | --bu)
  144:     ac_prev=build ;;
  145:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  146:     build="$ac_optarg" ;;
  147: 
  148:   -cache-file | --cache-file | --cache-fil | --cache-fi \
  149:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  150:     ac_prev=cache_file ;;
  151:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  152:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  153:     cache_file="$ac_optarg" ;;
  154: 
  155:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  156:     ac_prev=datadir ;;
  157:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  158:   | --da=*)
  159:     datadir="$ac_optarg" ;;
  160: 
  161:   -disable-* | --disable-*)
  162:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  163:     # Reject names that are not valid shell variable names.
  164:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  165:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  166:     fi
  167:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  168:     eval "enable_${ac_feature}=no" ;;
  169: 
  170:   -enable-* | --enable-*)
  171:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  172:     # Reject names that are not valid shell variable names.
  173:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  174:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  175:     fi
  176:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  177:     case "$ac_option" in
  178:       *=*) ;;
  179:       *) ac_optarg=yes ;;
  180:     esac
  181:     eval "enable_${ac_feature}='$ac_optarg'" ;;
  182: 
  183:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  184:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  185:   | --exec | --exe | --ex)
  186:     ac_prev=exec_prefix ;;
  187:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  188:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  189:   | --exec=* | --exe=* | --ex=*)
  190:     exec_prefix="$ac_optarg" ;;
  191: 
  192:   -gas | --gas | --ga | --g)
  193:     # Obsolete; use --with-gas.
  194:     with_gas=yes ;;
  195: 
  196:   -help | --help | --hel | --he)
  197:     # Omit some internal or obsolete options to make the list less imposing.
  198:     # This message is too long to be a string in the A/UX 3.1 sh.
  199:     cat << EOF
  200: Usage: configure [options] [host]
  201: Options: [defaults in brackets after descriptions]
  202: Configuration:
  203:   --cache-file=FILE       cache test results in FILE
  204:   --help                  print this message
  205:   --no-create             do not create output files
  206:   --quiet, --silent       do not print \`checking...' messages
  207:   --version               print the version of autoconf that created configure
  208: Directory and file names:
  209:   --prefix=PREFIX         install architecture-independent files in PREFIX
  210:                           [$ac_default_prefix]
  211:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  212:                           [same as prefix]
  213:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  214:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  215:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  216:   --datadir=DIR           read-only architecture-independent data in DIR
  217:                           [PREFIX/share]
  218:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  219:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  220:                           [PREFIX/com]
  221:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  222:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  223:   --includedir=DIR        C header files in DIR [PREFIX/include]
  224:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  225:   --infodir=DIR           info documentation in DIR [PREFIX/info]
  226:   --mandir=DIR            man documentation in DIR [PREFIX/man]
  227:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  228:   --program-prefix=PREFIX prepend PREFIX to installed program names
  229:   --program-suffix=SUFFIX append SUFFIX to installed program names
  230:   --program-transform-name=PROGRAM
  231:                           run sed PROGRAM on installed program names
  232: EOF
  233:     cat << EOF
  234: Host type:
  235:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  236:   --host=HOST             configure for HOST [guessed]
  237:   --target=TARGET         configure for TARGET [TARGET=HOST]
  238: Features and packages:
  239:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  240:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  241:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  242:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  243:   --x-includes=DIR        X include files are in DIR
  244:   --x-libraries=DIR       X library files are in DIR
  245: EOF
  246:     if test -n "$ac_help"; then
  247:       echo "--enable and --with options recognized:$ac_help"
  248:     fi
  249:     exit 0 ;;
  250: 
  251:   -host | --host | --hos | --ho)
  252:     ac_prev=host ;;
  253:   -host=* | --host=* | --hos=* | --ho=*)
  254:     host="$ac_optarg" ;;
  255: 
  256:   -includedir | --includedir | --includedi | --included | --include \
  257:   | --includ | --inclu | --incl | --inc)
  258:     ac_prev=includedir ;;
  259:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  260:   | --includ=* | --inclu=* | --incl=* | --inc=*)
  261:     includedir="$ac_optarg" ;;
  262: 
  263:   -infodir | --infodir | --infodi | --infod | --info | --inf)
  264:     ac_prev=infodir ;;
  265:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  266:     infodir="$ac_optarg" ;;
  267: 
  268:   -libdir | --libdir | --libdi | --libd)
  269:     ac_prev=libdir ;;
  270:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  271:     libdir="$ac_optarg" ;;
  272: 
  273:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  274:   | --libexe | --libex | --libe)
  275:     ac_prev=libexecdir ;;
  276:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  277:   | --libexe=* | --libex=* | --libe=*)
  278:     libexecdir="$ac_optarg" ;;
  279: 
  280:   -localstatedir | --localstatedir | --localstatedi | --localstated \
  281:   | --localstate | --localstat | --localsta | --localst \
  282:   | --locals | --local | --loca | --loc | --lo)
  283:     ac_prev=localstatedir ;;
  284:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  285:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  286:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  287:     localstatedir="$ac_optarg" ;;
  288: 
  289:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  290:     ac_prev=mandir ;;
  291:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  292:     mandir="$ac_optarg" ;;
  293: 
  294:   -nfp | --nfp | --nf)
  295:     # Obsolete; use --without-fp.
  296:     with_fp=no ;;
  297: 
  298:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  299:   | --no-cr | --no-c)
  300:     no_create=yes ;;
  301: 
  302:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  303:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  304:     no_recursion=yes ;;
  305: 
  306:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  307:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  308:   | --oldin | --oldi | --old | --ol | --o)
  309:     ac_prev=oldincludedir ;;
  310:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  311:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  312:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  313:     oldincludedir="$ac_optarg" ;;
  314: 
  315:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  316:     ac_prev=prefix ;;
  317:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  318:     prefix="$ac_optarg" ;;
  319: 
  320:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  321:   | --program-pre | --program-pr | --program-p)
  322:     ac_prev=program_prefix ;;
  323:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  324:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  325:     program_prefix="$ac_optarg" ;;
  326: 
  327:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  328:   | --program-suf | --program-su | --program-s)
  329:     ac_prev=program_suffix ;;
  330:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  331:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  332:     program_suffix="$ac_optarg" ;;
  333: 
  334:   -program-transform-name | --program-transform-name \
  335:   | --program-transform-nam | --program-transform-na \
  336:   | --program-transform-n | --program-transform- \
  337:   | --program-transform | --program-transfor \
  338:   | --program-transfo | --program-transf \
  339:   | --program-trans | --program-tran \
  340:   | --progr-tra | --program-tr | --program-t)
  341:     ac_prev=program_transform_name ;;
  342:   -program-transform-name=* | --program-transform-name=* \
  343:   | --program-transform-nam=* | --program-transform-na=* \
  344:   | --program-transform-n=* | --program-transform-=* \
  345:   | --program-transform=* | --program-transfor=* \
  346:   | --program-transfo=* | --program-transf=* \
  347:   | --program-trans=* | --program-tran=* \
  348:   | --progr-tra=* | --program-tr=* | --program-t=*)
  349:     program_transform_name="$ac_optarg" ;;
  350: 
  351:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  352:   | -silent | --silent | --silen | --sile | --sil)
  353:     silent=yes ;;
  354: 
  355:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  356:     ac_prev=sbindir ;;
  357:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  358:   | --sbi=* | --sb=*)
  359:     sbindir="$ac_optarg" ;;
  360: 
  361:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  362:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  363:   | --sharedst | --shareds | --shared | --share | --shar \
  364:   | --sha | --sh)
  365:     ac_prev=sharedstatedir ;;
  366:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  367:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  368:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  369:   | --sha=* | --sh=*)
  370:     sharedstatedir="$ac_optarg" ;;
  371: 
  372:   -site | --site | --sit)
  373:     ac_prev=site ;;
  374:   -site=* | --site=* | --sit=*)
  375:     site="$ac_optarg" ;;
  376: 
  377:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  378:     ac_prev=srcdir ;;
  379:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  380:     srcdir="$ac_optarg" ;;
  381: 
  382:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  383:   | --syscon | --sysco | --sysc | --sys | --sy)
  384:     ac_prev=sysconfdir ;;
  385:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  386:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  387:     sysconfdir="$ac_optarg" ;;
  388: 
  389:   -target | --target | --targe | --targ | --tar | --ta | --t)
  390:     ac_prev=target ;;
  391:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  392:     target="$ac_optarg" ;;
  393: 
  394:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  395:     verbose=yes ;;
  396: 
  397:   -version | --version | --versio | --versi | --vers)
  398:     echo "configure generated by autoconf version 2.13"
  399:     exit 0 ;;
  400: 
  401:   -with-* | --with-*)
  402:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  403:     # Reject names that are not valid shell variable names.
  404:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  405:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  406:     fi
  407:     ac_package=`echo $ac_package| sed 's/-/_/g'`
  408:     case "$ac_option" in
  409:       *=*) ;;
  410:       *) ac_optarg=yes ;;
  411:     esac
  412:     eval "with_${ac_package}='$ac_optarg'" ;;
  413: 
  414:   -without-* | --without-*)
  415:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  416:     # Reject names that are not valid shell variable names.
  417:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  418:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  419:     fi
  420:     ac_package=`echo $ac_package| sed 's/-/_/g'`
  421:     eval "with_${ac_package}=no" ;;
  422: 
  423:   --x)
  424:     # Obsolete; use --with-x.
  425:     with_x=yes ;;
  426: 
  427:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  428:   | --x-incl | --x-inc | --x-in | --x-i)
  429:     ac_prev=x_includes ;;
  430:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  431:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  432:     x_includes="$ac_optarg" ;;
  433: 
  434:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  435:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  436:     ac_prev=x_libraries ;;
  437:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  438:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  439:     x_libraries="$ac_optarg" ;;
  440: 
  441:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  442:     ;;
  443: 
  444:   *)
  445:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  446:       echo "configure: warning: $ac_option: invalid host type" 1>&2
  447:     fi
  448:     if test "x$nonopt" != xNONE; then
  449:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  450:     fi
  451:     nonopt="$ac_option"
  452:     ;;
  453: 
  454:   esac
  455: done
  456: 
  457: if test -n "$ac_prev"; then
  458:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  459: fi
  460: 
  461: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  462: 
  463: # File descriptor usage:
  464: # 0 standard input
  465: # 1 file creation
  466: # 2 errors and warnings
  467: # 3 some systems may open it to /dev/tty
  468: # 4 used on the Kubota Titan
  469: # 6 checking for... messages and results
  470: # 5 compiler messages saved in config.log
  471: if test "$silent" = yes; then
  472:   exec 6>/dev/null
  473: else
  474:   exec 6>&1
  475: fi
  476: exec 5>./config.log
  477: 
  478: echo "\
  479: This file contains any messages produced by compilers while
  480: running configure, to aid debugging if configure makes a mistake.
  481: " 1>&5
  482: 
  483: # Strip out --no-create and --no-recursion so they do not pile up.
  484: # Also quote any args containing shell metacharacters.
  485: ac_configure_args=
  486: for ac_arg
  487: do
  488:   case "$ac_arg" in
  489:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  490:   | --no-cr | --no-c) ;;
  491:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  492:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  493:   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  494:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  495:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  496:   esac
  497: done
  498: 
  499: # NLS nuisances.
  500: # Only set these to C if already set.  These must not be set unconditionally
  501: # because not all systems understand e.g. LANG=C (notably SCO).
  502: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  503: # Non-C LC_CTYPE values break the ctype check.
  504: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  505: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  506: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  507: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  508: 
  509: # confdefs.h avoids OS command line length limits that DEFS can exceed.
  510: rm -rf conftest* confdefs.h
  511: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  512: echo > confdefs.h
  513: 
  514: # A filename unique to this package, relative to the directory that
  515: # configure is in, which we can look for to find out if srcdir is correct.
  516: ac_unique_file=tree.c
  517: 
  518: # Find the source files, if location was not specified.
  519: if test -z "$srcdir"; then
  520:   ac_srcdir_defaulted=yes
  521:   # Try the directory containing this script, then its parent.
  522:   ac_prog=$0
  523:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  524:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  525:   srcdir=$ac_confdir
  526:   if test ! -r $srcdir/$ac_unique_file; then
  527:     srcdir=..
  528:   fi
  529: else
  530:   ac_srcdir_defaulted=no
  531: fi
  532: if test ! -r $srcdir/$ac_unique_file; then
  533:   if test "$ac_srcdir_defaulted" = yes; then
  534:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  535:   else
  536:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  537:   fi
  538: fi
  539: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  540: 
  541: # Prefer explicitly selected file to automatically selected ones.
  542: if test -z "$CONFIG_SITE"; then
  543:   if test "x$prefix" != xNONE; then
  544:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  545:   else
  546:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  547:   fi
  548: fi
  549: for ac_site_file in $CONFIG_SITE; do
  550:   if test -r "$ac_site_file"; then
  551:     echo "loading site script $ac_site_file"
  552:     . "$ac_site_file"
  553:   fi
  554: done
  555: 
  556: if test -r "$cache_file"; then
  557:   echo "loading cache $cache_file"
  558:   . $cache_file
  559: else
  560:   echo "creating cache $cache_file"
  561:   > $cache_file
  562: fi
  563: 
  564: ac_ext=c
  565: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  566: ac_cpp='$CPP $CPPFLAGS'
  567: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  568: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  569: cross_compiling=$ac_cv_prog_cc_cross
  570: 
  571: ac_exeext=
  572: ac_objext=o
  573: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  574:   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  575:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  576:     ac_n= ac_c='
  577: ' ac_t='	'
  578:   else
  579:     ac_n=-n ac_c= ac_t=
  580:   fi
  581: else
  582:   ac_n= ac_c='\c' ac_t=
  583: fi
  584: 
  585: 
  586: 
  587: 
  588: remove=rm
  589: hard_link=ln
  590: symbolic_link='ln -s'
  591: copy=cp
  592: 
  593: # Check for bogus environment variables.
  594: # Test if LIBRARY_PATH contains the notation for the current directory
  595: # since this would lead to problems installing/building glibc.
  596: # LIBRARY_PATH contains the current directory if one of the following
  597: # is true:
  598: # - one of the terminals (":" and ";") is the first or last sign
  599: # - two terminals occur directly after each other
  600: # - the path contains an element with a dot in it
  601: echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
  602: echo "configure:600: checking LIBRARY_PATH variable" >&5
  603: case ${LIBRARY_PATH} in
  604:   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
  605:     library_path_setting="contains current directory"
  606:     ;;
  607:   *)
  608:     library_path_setting="ok"
  609:     ;;
  610: esac
  611: echo "$ac_t""$library_path_setting" 1>&6
  612: if test "$library_path_setting" != "ok"; then
  613: { echo "configure: error: 
  614: *** LIBRARY_PATH shouldn't contain the current directory when
  615: *** building gcc. Please change the environment variable
  616: *** and run configure again." 1>&2; exit 1; }
  617: fi
  618: 
  619: # Test if GCC_EXEC_PREFIX contains the notation for the current directory
  620: # since this would lead to problems installing/building glibc.
  621: # GCC_EXEC_PREFIX contains the current directory if one of the following
  622: # is true:
  623: # - one of the terminals (":" and ";") is the first or last sign
  624: # - two terminals occur directly after each other
  625: # - the path contains an element with a dot in it
  626: echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
  627: echo "configure:625: checking GCC_EXEC_PREFIX variable" >&5
  628: case ${GCC_EXEC_PREFIX} in
  629:   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
  630:     gcc_exec_prefix_setting="contains current directory"
  631:     ;;
  632:   *)
  633:     gcc_exec_prefix_setting="ok"
  634:     ;;
  635: esac
  636: echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
  637: if test "$gcc_exec_prefix_setting" != "ok"; then
  638: { echo "configure: error: 
  639: *** GCC_EXEC_PREFIX shouldn't contain the current directory when
  640: *** building gcc. Please change the environment variable
  641: *** and run configure again." 1>&2; exit 1; }
  642: fi
  643: 
  644: # Check for additional parameters
  645: 
  646: # With GNU ld
  647: # Check whether --with-gnu-ld or --without-gnu-ld was given.
  648: if test "${with_gnu_ld+set}" = set; then
  649:   withval="$with_gnu_ld"
  650:   gnu_ld_flag="$with_gnu_ld"
  651: else
  652:   gnu_ld_flag=no
  653: fi
  654: 
  655: 
  656: # With pre-defined ld
  657: # Check whether --with-ld or --without-ld was given.
  658: if test "${with_ld+set}" = set; then
  659:   withval="$with_ld"
  660:   DEFAULT_LINKER="$with_ld"
  661: fi
  662: 
  663: if test x"${DEFAULT_LINKER+set}" = x"set"; then
  664:   if test ! -x "$DEFAULT_LINKER"; then
  665:     echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
  666:   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
  667:     gnu_ld_flag=yes
  668:   fi
  669:   cat >> confdefs.h <<EOF
  670: #define DEFAULT_LINKER "$DEFAULT_LINKER"
  671: EOF
  672: 
  673: fi
  674: 
  675: # With GNU as
  676: # Check whether --with-gnu-as or --without-gnu-as was given.
  677: if test "${with_gnu_as+set}" = set; then
  678:   withval="$with_gnu_as"
  679:   gas_flag="$with_gnu_as"
  680: else
  681:   gas_flag=no
  682: fi
  683: 
  684: 
  685: # Check whether --with-as or --without-as was given.
  686: if test "${with_as+set}" = set; then
  687:   withval="$with_as"
  688:   DEFAULT_ASSEMBLER="$with_as"
  689: fi
  690: 
  691: if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
  692:   if test ! -x "$DEFAULT_ASSEMBLER"; then
  693:     echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
  694:   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
  695:     gas_flag=yes
  696:   fi
  697:   cat >> confdefs.h <<EOF
  698: #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
  699: EOF
  700: 
  701: fi
  702: 
  703: # With stabs
  704: # Check whether --with-stabs or --without-stabs was given.
  705: if test "${with_stabs+set}" = set; then
  706:   withval="$with_stabs"
  707:   stabs="$with_stabs"
  708: else
  709:   stabs=no
  710: fi
  711: 
  712: 
  713: # With ELF
  714: # Check whether --with-elf or --without-elf was given.
  715: if test "${with_elf+set}" = set; then
  716:   withval="$with_elf"
  717:   elf="$with_elf"
  718: else
  719:   elf=no
  720: fi
  721: 
  722: 
  723: # Specify the local prefix
  724: local_prefix=
  725: # Check whether --with-local-prefix or --without-local-prefix was given.
  726: if test "${with_local_prefix+set}" = set; then
  727:   withval="$with_local_prefix"
  728:   case "${withval}" in
  729: yes)	{ echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
  730: no)	;;
  731: *)	local_prefix=$with_local_prefix ;;
  732: esac
  733: fi
  734: 
  735: 
  736: # Default local prefix if it is empty
  737: if test x$local_prefix = x; then
  738: 	local_prefix=/usr/local
  739: fi
  740: 
  741: # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
  742: # passed in by the toplevel make and thus we'd get different behavior
  743: # depending on where we built the sources.
  744: gcc_gxx_include_dir=
  745: # Specify the g++ header file directory
  746: # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
  747: if test "${with_gxx_include_dir+set}" = set; then
  748:   withval="$with_gxx_include_dir"
  749:   case "${withval}" in
  750: yes)	{ echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
  751: no)	;;
  752: *)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
  753: esac
  754: fi
  755: 
  756: 
  757: if test x${gcc_gxx_include_dir} = x; then
  758:   if test x${enable_version_specific_runtime_libs} = xyes; then
  759:     gcc_gxx_include_dir='${libsubdir}/include/g++'
  760:   else
  761:     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
  762:     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
  763:   fi
  764: fi
  765: 
  766: # Enable expensive internal checks
  767: # Check whether --enable-checking or --disable-checking was given.
  768: if test "${enable_checking+set}" = set; then
  769:   enableval="$enable_checking"
  770:   case "${enableval}" in
  771: yes)	cat >> confdefs.h <<\EOF
  772: #define ENABLE_CHECKING 1
  773: EOF
  774:  ;;
  775: no)	;;
  776: *)	{ echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
  777: esac
  778: fi
  779: 
  780: 
  781: # Check whether --enable-cpp or --disable-cpp was given.
  782: if test "${enable_cpp+set}" = set; then
  783:   enableval="$enable_cpp"
  784:   :
  785: else
  786:   enable_cpp=yes
  787: fi
  788: 
  789: 
  790: # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
  791: if test "${with_cpp_install_dir+set}" = set; then
  792:   withval="$with_cpp_install_dir"
  793:   if test x$withval = xyes; then
  794:   { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
  795: elif test x$withval != xno; then
  796:   cpp_install_dir=$withval
  797: fi
  798: fi
  799: 
  800: 
  801: # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
  802: cpp_main=cccp
  803: # Check whether --enable-cpplib or --disable-cpplib was given.
  804: if test "${enable_cpplib+set}" = set; then
  805:   enableval="$enable_cpplib"
  806:   if test x$enable_cpplib != xno; then
  807:   cpp_main=cppmain
  808: fi
  809: fi
  810: 
  811: 
  812: # Link cpplib into the compiler proper, for C/C++/ObjC.
  813: # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
  814: if test "${enable_c_cpplib+set}" = set; then
  815:   enableval="$enable_c_cpplib"
  816:   if test x$enable_c_cpplib != xno; then
  817:   extra_c_objs="${extra_c_objs} libcpp.a"
  818:   extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
  819:   extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
  820:   cpp_main=cppmain
  821: fi
  822: fi
  823: 
  824: 
  825: # Enable Multibyte Characters for C/C++
  826: # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
  827: if test "${enable_c_mbchar+set}" = set; then
  828:   enableval="$enable_c_mbchar"
  829:   if test x$enable_c_mbchar != xno; then
  830:   extra_c_flags=-DMULTIBYTE_CHARS=1
  831: fi
  832: fi
  833: 
  834: 
  835: # Disable fast fixincludes
  836: # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
  837: if test "${enable_fast_fixincludes+set}" = set; then
  838:   enableval="$enable_fast_fixincludes"
  839:   if test x$enable_fast_fixincludes = xno ; then
  840:   cp $srcdir/fixincludes ./fixinc.sh
  841: fi
  842: fi
  843: 
  844: 
  845: # Enable Haifa scheduler.
  846: # Check whether --enable-haifa or --disable-haifa was given.
  847: if test "${enable_haifa+set}" = set; then
  848:   enableval="$enable_haifa"
  849:   :
  850: fi
  851: 
  852: 
  853: # Enable threads
  854: # Pass with no value to take the default
  855: # Pass with a value to specify a thread package
  856: # Check whether --enable-threads or --disable-threads was given.
  857: if test "${enable_threads+set}" = set; then
  858:   enableval="$enable_threads"
  859:   if test x$enable_threads = xno; then
  860: 	enable_threads=''
  861: fi
  862: else
  863:   enable_threads=''
  864: fi
  865: 
  866: 
  867: enable_threads_flag=$enable_threads
  868: # Check if a valid thread package
  869: case x${enable_threads_flag} in
  870: 	x | xno)
  871: 		# No threads
  872: 		target_thread_file='single'
  873: 		;;
  874: 	xyes)
  875: 		# default
  876: 		target_thread_file=''
  877: 		;;
  878: 	xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
  879: 	xsolaris | xwin32 | xdce | xvxworks)
  880: 		target_thread_file=$enable_threads_flag
  881: 		;;
  882: 	*)
  883: 		echo "$enable_threads is an unknown thread package" 1>&2
  884: 		exit 1
  885: 		;;
  886: esac
  887: 
  888: # Check whether --enable-objc-gc or --disable-objc-gc was given.
  889: if test "${enable_objc_gc+set}" = set; then
  890:   enableval="$enable_objc_gc"
  891:   if [ x$enable_objc_gc = xno ]; then
  892: 	objc_boehm_gc=''
  893: else
  894: 	objc_boehm_gc=1
  895: fi
  896: else
  897:   objc_boehm_gc=''
  898: fi
  899: 
  900: 
  901: # Check whether --enable-java-gc or --disable-java-gc was given.
  902: if test "${enable_java_gc+set}" = set; then
  903:   enableval="$enable_java_gc"
  904:   
  905:   JAVAGC=$enableval
  906: else
  907:   JAVAGC=boehm
  908: fi
  909: 
  910: 
  911: # Check whether --with-dwarf2 or --without-dwarf2 was given.
  912: if test "${with_dwarf2+set}" = set; then
  913:   withval="$with_dwarf2"
  914:   dwarf2="$with_dwarf2"
  915: else
  916:   dwarf2=no
  917: fi
  918: 
  919: 
  920: # Determine the host, build, and target systems
  921: ac_aux_dir=
  922: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  923:   if test -f $ac_dir/install-sh; then
  924:     ac_aux_dir=$ac_dir
  925:     ac_install_sh="$ac_aux_dir/install-sh -c"
  926:     break
  927:   elif test -f $ac_dir/install.sh; then
  928:     ac_aux_dir=$ac_dir
  929:     ac_install_sh="$ac_aux_dir/install.sh -c"
  930:     break
  931:   fi
  932: done
  933: if test -z "$ac_aux_dir"; then
  934:   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  935: fi
  936: ac_config_guess=$ac_aux_dir/config.guess
  937: ac_config_sub=$ac_aux_dir/config.sub
  938: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  939: 
  940: 
  941: # Do some error checking and defaulting for the host and target type.
  942: # The inputs are:
  943: #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  944: #
  945: # The rules are:
  946: # 1. You are not allowed to specify --host, --target, and nonopt at the
  947: #    same time.
  948: # 2. Host defaults to nonopt.
  949: # 3. If nonopt is not specified, then host defaults to the current host,
  950: #    as determined by config.guess.
  951: # 4. Target and build default to nonopt.
  952: # 5. If nonopt is not specified, then target and build default to host.
  953: 
  954: # The aliases save the names the user supplied, while $host etc.
  955: # will get canonicalized.
  956: case $host---$target---$nonopt in
  957: NONE---*---* | *---NONE---* | *---*---NONE) ;;
  958: *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  959: esac
  960: 
  961: 
  962: # Make sure we can run config.sub.
  963: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  964: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  965: fi
  966: 
  967: echo $ac_n "checking host system type""... $ac_c" 1>&6
  968: echo "configure:966: checking host system type" >&5
  969: 
  970: host_alias=$host
  971: case "$host_alias" in
  972: NONE)
  973:   case $nonopt in
  974:   NONE)
  975:     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  976:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  977:     fi ;;
  978:   *) host_alias=$nonopt ;;
  979:   esac ;;
  980: esac
  981: 
  982: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  983: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  984: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  985: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  986: echo "$ac_t""$host" 1>&6
  987: 
  988: echo $ac_n "checking target system type""... $ac_c" 1>&6
  989: echo "configure:987: checking target system type" >&5
  990: 
  991: target_alias=$target
  992: case "$target_alias" in
  993: NONE)
  994:   case $nonopt in
  995:   NONE) target_alias=$host_alias ;;
  996:   *) target_alias=$nonopt ;;
  997:   esac ;;
  998: esac
  999: 
 1000: target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
 1001: target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1002: target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1003: target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1004: echo "$ac_t""$target" 1>&6
 1005: 
 1006: echo $ac_n "checking build system type""... $ac_c" 1>&6
 1007: echo "configure:1005: checking build system type" >&5
 1008: 
 1009: build_alias=$build
 1010: case "$build_alias" in
 1011: NONE)
 1012:   case $nonopt in
 1013:   NONE) build_alias=$host_alias ;;
 1014:   *) build_alias=$nonopt ;;
 1015:   esac ;;
 1016: esac
 1017: 
 1018: build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 1019: build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1020: build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1021: build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1022: echo "$ac_t""$build" 1>&6
 1023: 
 1024: test "$host_alias" != "$target_alias" &&
 1025:   test "$program_prefix$program_suffix$program_transform_name" = \
 1026:     NONENONEs,x,x, &&
 1027:   program_prefix=${target_alias}-
 1028: 
 1029: 
 1030: # Find the native compiler
 1031: # Extract the first word of "gcc", so it can be a program name with args.
 1032: set dummy gcc; ac_word=$2
 1033: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1034: echo "configure:1032: checking for $ac_word" >&5
 1035: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1036:   echo $ac_n "(cached) $ac_c" 1>&6
 1037: else
 1038:   if test -n "$CC"; then
 1039:   ac_cv_prog_CC="$CC" # Let the user override the test.
 1040: else
 1041:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 1042:   ac_dummy="$PATH"
 1043:   for ac_dir in $ac_dummy; do
 1044:     test -z "$ac_dir" && ac_dir=.
 1045:     if test -f $ac_dir/$ac_word; then
 1046:       ac_cv_prog_CC="gcc"
 1047:       break
 1048:     fi
 1049:   done
 1050:   IFS="$ac_save_ifs"
 1051: fi
 1052: fi
 1053: CC="$ac_cv_prog_CC"
 1054: if test -n "$CC"; then
 1055:   echo "$ac_t""$CC" 1>&6
 1056: else
 1057:   echo "$ac_t""no" 1>&6
 1058: fi
 1059: 
 1060: if test -z "$CC"; then
 1061:   # Extract the first word of "cc", so it can be a program name with args.
 1062: set dummy cc; ac_word=$2
 1063: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1064: echo "configure:1062: checking for $ac_word" >&5
 1065: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1066:   echo $ac_n "(cached) $ac_c" 1>&6
 1067: else
 1068:   if test -n "$CC"; then
 1069:   ac_cv_prog_CC="$CC" # Let the user override the test.
 1070: else
 1071:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 1072:   ac_prog_rejected=no
 1073:   ac_dummy="$PATH"
 1074:   for ac_dir in $ac_dummy; do
 1075:     test -z "$ac_dir" && ac_dir=.
 1076:     if test -f $ac_dir/$ac_word; then
 1077:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 1078:         ac_prog_rejected=yes
 1079: 	continue
 1080:       fi
 1081:       ac_cv_prog_CC="cc"
 1082:       break
 1083:     fi
 1084:   done
 1085:   IFS="$ac_save_ifs"
 1086: if test $ac_prog_rejected = yes; then
 1087:   # We found a bogon in the path, so make sure we never use it.
 1088:   set dummy $ac_cv_prog_CC
 1089:   shift
 1090:   if test $# -gt 0; then
 1091:     # We chose a different compiler from the bogus one.
 1092:     # However, it has the same basename, so the bogon will be chosen
 1093:     # first if we set CC to just the basename; use the full file name.
 1094:     shift
 1095:     set dummy "$ac_dir/$ac_word" "$@"
 1096:     shift
 1097:     ac_cv_prog_CC="$@"
 1098:   fi
 1099: fi
 1100: fi
 1101: fi
 1102: CC="$ac_cv_prog_CC"
 1103: if test -n "$CC"; then
 1104:   echo "$ac_t""$CC" 1>&6
 1105: else
 1106:   echo "$ac_t""no" 1>&6
 1107: fi
 1108: 
 1109:   if test -z "$CC"; then
 1110:     case "`uname -s`" in
 1111:     *win32* | *WIN32*)
 1112:       # Extract the first word of "cl", so it can be a program name with args.
 1113: set dummy cl; ac_word=$2
 1114: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1115: echo "configure:1113: checking for $ac_word" >&5
 1116: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1117:   echo $ac_n "(cached) $ac_c" 1>&6
 1118: else
 1119:   if test -n "$CC"; then
 1120:   ac_cv_prog_CC="$CC" # Let the user override the test.
 1121: else
 1122:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 1123:   ac_dummy="$PATH"
 1124:   for ac_dir in $ac_dummy; do
 1125:     test -z "$ac_dir" && ac_dir=.
 1126:     if test -f $ac_dir/$ac_word; then
 1127:       ac_cv_prog_CC="cl"
 1128:       break
 1129:     fi
 1130:   done
 1131:   IFS="$ac_save_ifs"
 1132: fi
 1133: fi
 1134: CC="$ac_cv_prog_CC"
 1135: if test -n "$CC"; then
 1136:   echo "$ac_t""$CC" 1>&6
 1137: else
 1138:   echo "$ac_t""no" 1>&6
 1139: fi
 1140:  ;;
 1141:     esac
 1142:   fi
 1143:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 1144: fi
 1145: 
 1146: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 1147: echo "configure:1145: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 1148: 
 1149: ac_ext=c
 1150: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1151: ac_cpp='$CPP $CPPFLAGS'
 1152: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1153: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1154: cross_compiling=$ac_cv_prog_cc_cross
 1155: 
 1156: cat > conftest.$ac_ext << EOF
 1157: 
 1158: #line 1156 "configure"
 1159: #include "confdefs.h"
 1160: 
 1161: main(){return(0);}
 1162: EOF
 1163: if { (eval echo configure:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1164:   ac_cv_prog_cc_works=yes
 1165:   # If we can't run a trivial program, we are probably using a cross compiler.
 1166:   if (./conftest; exit) 2>/dev/null; then
 1167:     ac_cv_prog_cc_cross=no
 1168:   else
 1169:     ac_cv_prog_cc_cross=yes
 1170:   fi
 1171: else
 1172:   echo "configure: failed program was:" >&5
 1173:   cat conftest.$ac_ext >&5
 1174:   ac_cv_prog_cc_works=no
 1175: fi
 1176: rm -fr conftest*
 1177: ac_ext=c
 1178: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1179: ac_cpp='$CPP $CPPFLAGS'
 1180: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1181: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1182: cross_compiling=$ac_cv_prog_cc_cross
 1183: 
 1184: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 1185: if test $ac_cv_prog_cc_works = no; then
 1186:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 1187: fi
 1188: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 1189: echo "configure:1187: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 1190: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 1191: cross_compiling=$ac_cv_prog_cc_cross
 1192: 
 1193: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 1194: echo "configure:1192: checking whether we are using GNU C" >&5
 1195: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 1196:   echo $ac_n "(cached) $ac_c" 1>&6
 1197: else
 1198:   cat > conftest.c <<EOF
 1199: #ifdef __GNUC__
 1200:   yes;
 1201: #endif
 1202: EOF
 1203: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 1204:   ac_cv_prog_gcc=yes
 1205: else
 1206:   ac_cv_prog_gcc=no
 1207: fi
 1208: fi
 1209: 
 1210: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 1211: 
 1212: if test $ac_cv_prog_gcc = yes; then
 1213:   GCC=yes
 1214: else
 1215:   GCC=
 1216: fi
 1217: 
 1218: ac_test_CFLAGS="${CFLAGS+set}"
 1219: ac_save_CFLAGS="$CFLAGS"
 1220: CFLAGS=
 1221: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 1222: echo "configure:1220: checking whether ${CC-cc} accepts -g" >&5
 1223: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 1224:   echo $ac_n "(cached) $ac_c" 1>&6
 1225: else
 1226:   echo 'void f(){}' > conftest.c
 1227: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 1228:   ac_cv_prog_cc_g=yes
 1229: else
 1230:   ac_cv_prog_cc_g=no
 1231: fi
 1232: rm -f conftest*
 1233: 
 1234: fi
 1235: 
 1236: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 1237: if test "$ac_test_CFLAGS" = set; then
 1238:   CFLAGS="$ac_save_CFLAGS"
 1239: elif test $ac_cv_prog_cc_g = yes; then
 1240:   if test "$GCC" = yes; then
 1241:     CFLAGS="-g -O2"
 1242:   else
 1243:     CFLAGS="-g"
 1244:   fi
 1245: else
 1246:   if test "$GCC" = yes; then
 1247:     CFLAGS="-O2"
 1248:   else
 1249:     CFLAGS=
 1250:   fi
 1251: fi
 1252: 
 1253: 
 1254: # If the native compiler is GCC, we can enable warnings even in stage1.  
 1255: # That's useful for people building cross-compilers, or just running a
 1256: # quick `make'.
 1257: if test "x$GCC" = "xyes"; then 
 1258:   stage1_warn_cflags='$(WARN_CFLAGS)'
 1259: else
 1260:   stage1_warn_cflags=""
 1261: fi
 1262: 
 1263: 
 1264: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 1265: echo "configure:1263: checking whether ${MAKE-make} sets \${MAKE}" >&5
 1266: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 1267: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 1268:   echo $ac_n "(cached) $ac_c" 1>&6
 1269: else
 1270:   cat > conftestmake <<\EOF
 1271: all:
 1272: 	@echo 'ac_maketemp="${MAKE}"'
 1273: EOF
 1274: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 1275: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 1276: if test -n "$ac_maketemp"; then
 1277:   eval ac_cv_prog_make_${ac_make}_set=yes
 1278: else
 1279:   eval ac_cv_prog_make_${ac_make}_set=no
 1280: fi
 1281: rm -f conftestmake
 1282: fi
 1283: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 1284:   echo "$ac_t""yes" 1>&6
 1285:   SET_MAKE=
 1286: else
 1287:   echo "$ac_t""no" 1>&6
 1288:   SET_MAKE="MAKE=${MAKE-make}"
 1289: fi
 1290: 
 1291: 
 1292: echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
 1293: echo "configure:1291: checking whether a default assembler was specified" >&5
 1294: if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
 1295:     if test x"$gas_flag" = x"no"; then
 1296:     	echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
 1297:     else
 1298: 	echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
 1299:     fi
 1300: else
 1301:     echo "$ac_t""no" 1>&6
 1302: fi
 1303: 
 1304: echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
 1305: echo "configure:1303: checking whether a default linker was specified" >&5
 1306: if test x"${DEFAULT_LINKER+set}" = x"set"; then
 1307:     if test x"$gnu_ld_flag" = x"no"; then
 1308: 	echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
 1309:     else
 1310: 	echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
 1311:     fi
 1312: else
 1313:     echo "$ac_t""no" 1>&6
 1314: fi
 1315: 
 1316: # Find some useful tools
 1317: for ac_prog in gawk mawk nawk awk
 1318: do
 1319: # Extract the first word of "$ac_prog", so it can be a program name with args.
 1320: set dummy $ac_prog; ac_word=$2
 1321: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1322: echo "configure:1320: checking for $ac_word" >&5
 1323: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
 1324:   echo $ac_n "(cached) $ac_c" 1>&6
 1325: else
 1326:   if test -n "$AWK"; then
 1327:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
 1328: else
 1329:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 1330:   ac_dummy="$PATH"
 1331:   for ac_dir in $ac_dummy; do
 1332:     test -z "$ac_dir" && ac_dir=.
 1333:     if test -f $ac_dir/$ac_word; then
 1334:       ac_cv_prog_AWK="$ac_prog"
 1335:       break
 1336:     fi
 1337:   done
 1338:   IFS="$ac_save_ifs"
 1339: fi
 1340: fi
 1341: AWK="$ac_cv_prog_AWK"
 1342: if test -n "$AWK"; then
 1343:   echo "$ac_t""$AWK" 1>&6
 1344: else
 1345:   echo "$ac_t""no" 1>&6
 1346: fi
 1347: 
 1348: test -n "$AWK" && break
 1349: done
 1350: 
 1351: # Extract the first word of "flex", so it can be a program name with args.
 1352: set dummy flex; ac_word=$2
 1353: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1354: echo "configure:1352: checking for $ac_word" >&5
 1355: if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
 1356:   echo $ac_n "(cached) $ac_c" 1>&6
 1357: else
 1358:   if test -n "$LEX"; then
 1359:   ac_cv_prog_LEX="$LEX" # Let the user override the test.
 1360: else
 1361:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 1362:   ac_dummy="$PATH"
 1363:   for ac_dir in $ac_dummy; do
 1364:     test -z "$ac_dir" && ac_dir=.
 1365:     if test -f $ac_dir/$ac_word; then
 1366:       ac_cv_prog_LEX="flex"
 1367:       break
 1368:     fi
 1369:   done
 1370:   IFS="$ac_save_ifs"
 1371:   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
 1372: fi
 1373: fi
 1374: LEX="$ac_cv_prog_LEX"
 1375: if test -n "$LEX"; then
 1376:   echo "$ac_t""$LEX" 1>&6
 1377: else
 1378:   echo "$ac_t""no" 1>&6
 1379: fi
 1380: 
 1381: if test -z "$LEXLIB"
 1382: then
 1383:   case "$LEX" in
 1384:   flex*) ac_lib=fl ;;
 1385:   *) ac_lib=l ;;
 1386:   esac
 1387:   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
 1388: echo "configure:1386: checking for yywrap in -l$ac_lib" >&5
 1389: ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
 1390: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 1391:   echo $ac_n "(cached) $ac_c" 1>&6
 1392: else
 1393:   ac_save_LIBS="$LIBS"
 1394: LIBS="-l$ac_lib  $LIBS"
 1395: cat > conftest.$ac_ext <<EOF
 1396: #line 1394 "configure"
 1397: #include "confdefs.h"
 1398: /* Override any gcc2 internal prototype to avoid an error.  */
 1399: /* We use char because int might match the return type of a gcc2
 1400:     builtin and then its argument prototype would still apply.  */
 1401: char yywrap();
 1402: 
 1403: int main() {
 1404: yywrap()
 1405: ; return 0; }
 1406: EOF
 1407: if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1408:   rm -rf conftest*
 1409:   eval "ac_cv_lib_$ac_lib_var=yes"
 1410: else
 1411:   echo "configure: failed program was:" >&5
 1412:   cat conftest.$ac_ext >&5
 1413:   rm -rf conftest*
 1414:   eval "ac_cv_lib_$ac_lib_var=no"
 1415: fi
 1416: rm -f conftest*
 1417: LIBS="$ac_save_LIBS"
 1418: 
 1419: fi
 1420: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 1421:   echo "$ac_t""yes" 1>&6
 1422:   LEXLIB="-l$ac_lib"
 1423: else
 1424:   echo "$ac_t""no" 1>&6
 1425: fi
 1426: 
 1427: fi
 1428: 
 1429: echo $ac_n "checking whether ln works""... $ac_c" 1>&6
 1430: echo "configure:1428: checking whether ln works" >&5
 1431: if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
 1432:   echo $ac_n "(cached) $ac_c" 1>&6
 1433: else
 1434:   rm -f conftestdata_t
 1435: echo >conftestdata_f
 1436: if ln conftestdata_f conftestdata_t 2>/dev/null
 1437: then
 1438:   gcc_cv_prog_LN="ln"
 1439: else
 1440:   if ln -s conftestdata_f conftestdata_t 2>/dev/null
 1441:   then
 1442:     gcc_cv_prog_LN="ln -s"
 1443:   else
 1444:     gcc_cv_prog_LN=cp
 1445:   fi
 1446: fi
 1447: rm -f conftestdata_f conftestdata_t
 1448: 
 1449: fi
 1450: LN="$gcc_cv_prog_LN"
 1451: if test "$gcc_cv_prog_LN" = "ln"; then
 1452:   echo "$ac_t""yes" 1>&6
 1453: else
 1454:   if test "$gcc_cv_prog_LN" = "ln -s"; then
 1455:     echo "$ac_t""no, using ln -s" 1>&6
 1456:   else
 1457:     echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
 1458:   fi
 1459: fi
 1460: 
 1461: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 1462: echo "configure:1460: checking whether ln -s works" >&5
 1463: if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
 1464:   echo $ac_n "(cached) $ac_c" 1>&6
 1465: else
 1466:   rm -f conftestdata_t
 1467: echo >conftestdata_f
 1468: if ln -s conftestdata_f conftestdata_t 2>/dev/null
 1469: then
 1470:   gcc_cv_prog_LN_S="ln -s"
 1471: else
 1472:   if ln conftestdata_f conftestdata_t 2>/dev/null
 1473:   then
 1474:     gcc_cv_prog_LN_S=ln
 1475:   else
 1476:     gcc_cv_prog_LN_S=cp
 1477:   fi
 1478: fi
 1479: rm -f conftestdata_f conftestdata_t
 1480: 
 1481: fi
 1482: LN_S="$gcc_cv_prog_LN_S"
 1483: if test "$gcc_cv_prog_LN_S" = "ln -s"; then
 1484:   echo "$ac_t""yes" 1>&6
 1485: else
 1486:   if test "$gcc_cv_prog_LN_S" = "ln"; then
 1487:     echo "$ac_t""no, using ln" 1>&6
 1488:   else
 1489:     echo "$ac_t""no, and neither does ln, so using cp" 1>&6
 1490:   fi
 1491: fi
 1492: 
 1493: echo $ac_n "checking for volatile""... $ac_c" 1>&6
 1494: echo "configure:1492: checking for volatile" >&5
 1495: if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
 1496:   echo $ac_n "(cached) $ac_c" 1>&6
 1497: else
 1498:   cat > conftest.$ac_ext <<EOF
 1499: #line 1497 "configure"
 1500: #include "confdefs.h"
 1501: 
 1502: int main() {
 1503: volatile int foo;
 1504: ; return 0; }
 1505: EOF
 1506: if { (eval echo configure:1504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1507:   rm -rf conftest*
 1508:   gcc_cv_c_volatile=yes
 1509: else
 1510:   echo "configure: failed program was:" >&5
 1511:   cat conftest.$ac_ext >&5
 1512:   rm -rf conftest*
 1513:   gcc_cv_c_volatile=no
 1514: fi
 1515: rm -f conftest*
 1516: fi
 1517: 
 1518: echo "$ac_t""$gcc_cv_c_volatile" 1>&6
 1519: if test $gcc_cv_c_volatile = yes ; then
 1520:   cat >> confdefs.h <<\EOF
 1521: #define HAVE_VOLATILE 1
 1522: EOF
 1523: 
 1524: fi
 1525: 
 1526: # Extract the first word of "ranlib", so it can be a program name with args.
 1527: set dummy ranlib; ac_word=$2
 1528: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1529: echo "configure:1527: checking for $ac_word" >&5
 1530: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 1531:   echo $ac_n "(cached) $ac_c" 1>&6
 1532: else
 1533:   if test -n "$RANLIB"; then
 1534:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 1535: else
 1536:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 1537:   ac_dummy="$PATH"
 1538:   for ac_dir in $ac_dummy; do
 1539:     test -z "$ac_dir" && ac_dir=.
 1540:     if test -f $ac_dir/$ac_word; then
 1541:       ac_cv_prog_RANLIB="ranlib"
 1542:       break
 1543:     fi
 1544:   done
 1545:   IFS="$ac_save_ifs"
 1546:   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 1547: fi
 1548: fi
 1549: RANLIB="$ac_cv_prog_RANLIB"
 1550: if test -n "$RANLIB"; then
 1551:   echo "$ac_t""$RANLIB" 1>&6
 1552: else
 1553:   echo "$ac_t""no" 1>&6
 1554: fi
 1555: 
 1556: for ac_prog in 'bison -y' byacc
 1557: do
 1558: # Extract the first word of "$ac_prog", so it can be a program name with args.
 1559: set dummy $ac_prog; ac_word=$2
 1560: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1561: echo "configure:1559: checking for $ac_word" >&5
 1562: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
 1563:   echo $ac_n "(cached) $ac_c" 1>&6
 1564: else
 1565:   if test -n "$YACC"; then
 1566:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
 1567: else
 1568:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 1569:   ac_dummy="$PATH"
 1570:   for ac_dir in $ac_dummy; do
 1571:     test -z "$ac_dir" && ac_dir=.
 1572:     if test -f $ac_dir/$ac_word; then
 1573:       ac_cv_prog_YACC="$ac_prog"
 1574:       break
 1575:     fi
 1576:   done
 1577:   IFS="$ac_save_ifs"
 1578: fi
 1579: fi
 1580: YACC="$ac_cv_prog_YACC"
 1581: if test -n "$YACC"; then
 1582:   echo "$ac_t""$YACC" 1>&6
 1583: else
 1584:   echo "$ac_t""no" 1>&6
 1585: fi
 1586: 
 1587: test -n "$YACC" && break
 1588: done
 1589: test -n "$YACC" || YACC="yacc"
 1590: 
 1591: # Find a good install program.  We prefer a C program (faster),
 1592: # so one script is as good as another.  But avoid the broken or
 1593: # incompatible versions:
 1594: # SysV /etc/install, /usr/sbin/install
 1595: # SunOS /usr/etc/install
 1596: # IRIX /sbin/install
 1597: # AIX /bin/install
 1598: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 1599: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 1600: # ./install, which can be erroneously created by make from ./install.sh.
 1601: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 1602: echo "configure:1600: checking for a BSD compatible install" >&5
 1603: if test -z "$INSTALL"; then
 1604: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 1605:   echo $ac_n "(cached) $ac_c" 1>&6
 1606: else
 1607:     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
 1608:   for ac_dir in $PATH; do
 1609:     # Account for people who put trailing slashes in PATH elements.
 1610:     case "$ac_dir/" in
 1611:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 1612:     *)
 1613:       # OSF1 and SCO ODT 3.0 have their own names for install.
 1614:       for ac_prog in ginstall scoinst install; do
 1615:         if test -f $ac_dir/$ac_prog; then
 1616: 	  if test $ac_prog = install &&
 1617:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 1618: 	    # AIX install.  It has an incompatible calling convention.
 1619: 	    # OSF/1 installbsd also uses dspmsg, but is usable.
 1620: 	    :
 1621: 	  else
 1622: 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
 1623: 	    break 2
 1624: 	  fi
 1625: 	fi
 1626:       done
 1627:       ;;
 1628:     esac
 1629:   done
 1630:   IFS="$ac_save_IFS"
 1631: 
 1632: fi
 1633:   if test "${ac_cv_path_install+set}" = set; then
 1634:     INSTALL="$ac_cv_path_install"
 1635:   else
 1636:     # As a last resort, use the slow shell script.  We don't cache a
 1637:     # path for INSTALL within a source directory, because that will
 1638:     # break other packages using the cache if that directory is
 1639:     # removed, or if the path is relative.
 1640:     INSTALL="$ac_install_sh"
 1641:   fi
 1642: fi
 1643: echo "$ac_t""$INSTALL" 1>&6
 1644: 
 1645: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 1646: # It thinks the first close brace ends the variable substitution.
 1647: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 1648: 
 1649: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 1650: 
 1651: 
 1652: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 1653: echo "configure:1651: checking how to run the C preprocessor" >&5
 1654: # On Suns, sometimes $CPP names a directory.
 1655: if test -n "$CPP" && test -d "$CPP"; then
 1656:   CPP=
 1657: fi
 1658: if test -z "$CPP"; then
 1659: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 1660:   echo $ac_n "(cached) $ac_c" 1>&6
 1661: else
 1662:     # This must be in double quotes, not single quotes, because CPP may get
 1663:   # substituted into the Makefile and "${CC-cc}" will confuse make.
 1664:   CPP="${CC-cc} -E"
 1665:   # On the NeXT, cc -E runs the code through the compiler's parser,
 1666:   # not just through cpp.
 1667:   cat > conftest.$ac_ext <<EOF
 1668: #line 1666 "configure"
 1669: #include "confdefs.h"
 1670: #include <assert.h>
 1671: Syntax Error
 1672: EOF
 1673: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1674: { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1675: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1676: if test -z "$ac_err"; then
 1677:   :
 1678: else
 1679:   echo "$ac_err" >&5
 1680:   echo "configure: failed program was:" >&5
 1681:   cat conftest.$ac_ext >&5
 1682:   rm -rf conftest*
 1683:   CPP="${CC-cc} -E -traditional-cpp"
 1684:   cat > conftest.$ac_ext <<EOF
 1685: #line 1683 "configure"
 1686: #include "confdefs.h"
 1687: #include <assert.h>
 1688: Syntax Error
 1689: EOF
 1690: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1691: { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1692: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1693: if test -z "$ac_err"; then
 1694:   :
 1695: else
 1696:   echo "$ac_err" >&5
 1697:   echo "configure: failed program was:" >&5
 1698:   cat conftest.$ac_ext >&5
 1699:   rm -rf conftest*
 1700:   CPP="${CC-cc} -nologo -E"
 1701:   cat > conftest.$ac_ext <<EOF
 1702: #line 1700 "configure"
 1703: #include "confdefs.h"
 1704: #include <assert.h>
 1705: Syntax Error
 1706: EOF
 1707: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1708: { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1709: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1710: if test -z "$ac_err"; then
 1711:   :
 1712: else
 1713:   echo "$ac_err" >&5
 1714:   echo "configure: failed program was:" >&5
 1715:   cat conftest.$ac_ext >&5
 1716:   rm -rf conftest*
 1717:   CPP=/lib/cpp
 1718: fi
 1719: rm -f conftest*
 1720: fi
 1721: rm -f conftest*
 1722: fi
 1723: rm -f conftest*
 1724:   ac_cv_prog_CPP="$CPP"
 1725: fi
 1726:   CPP="$ac_cv_prog_CPP"
 1727: else
 1728:   ac_cv_prog_CPP="$CPP"
 1729: fi
 1730: echo "$ac_t""$CPP" 1>&6
 1731: 
 1732: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 1733: echo "configure:1731: checking for ANSI C header files" >&5
 1734: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 1735:   echo $ac_n "(cached) $ac_c" 1>&6
 1736: else
 1737:   cat > conftest.$ac_ext <<EOF
 1738: #line 1736 "configure"
 1739: #include "confdefs.h"
 1740: #include <stdlib.h>
 1741: #include <stdarg.h>
 1742: #include <string.h>
 1743: #include <float.h>
 1744: EOF
 1745: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1746: { (eval echo configure:1744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1747: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1748: if test -z "$ac_err"; then
 1749:   rm -rf conftest*
 1750:   ac_cv_header_stdc=yes
 1751: else
 1752:   echo "$ac_err" >&5
 1753:   echo "configure: failed program was:" >&5
 1754:   cat conftest.$ac_ext >&5
 1755:   rm -rf conftest*
 1756:   ac_cv_header_stdc=no
 1757: fi
 1758: rm -f conftest*
 1759: 
 1760: if test $ac_cv_header_stdc = yes; then
 1761:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 1762: cat > conftest.$ac_ext <<EOF
 1763: #line 1761 "configure"
 1764: #include "confdefs.h"
 1765: #include <string.h>
 1766: EOF
 1767: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1768:   egrep "memchr" >/dev/null 2>&1; then
 1769:   :
 1770: else
 1771:   rm -rf conftest*
 1772:   ac_cv_header_stdc=no
 1773: fi
 1774: rm -f conftest*
 1775: 
 1776: fi
 1777: 
 1778: if test $ac_cv_header_stdc = yes; then
 1779:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 1780: cat > conftest.$ac_ext <<EOF
 1781: #line 1779 "configure"
 1782: #include "confdefs.h"
 1783: #include <stdlib.h>
 1784: EOF
 1785: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1786:   egrep "free" >/dev/null 2>&1; then
 1787:   :
 1788: else
 1789:   rm -rf conftest*
 1790:   ac_cv_header_stdc=no
 1791: fi
 1792: rm -f conftest*
 1793: 
 1794: fi
 1795: 
 1796: if test $ac_cv_header_stdc = yes; then
 1797:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 1798: if test "$cross_compiling" = yes; then
 1799:   :
 1800: else
 1801:   cat > conftest.$ac_ext <<EOF
 1802: #line 1800 "configure"
 1803: #include "confdefs.h"
 1804: #include <ctype.h>
 1805: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 1806: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 1807: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 1808: int main () { int i; for (i = 0; i < 256; i++)
 1809: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 1810: exit (0); }
 1811: 
 1812: EOF
 1813: if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 1814: then
 1815:   :
 1816: else
 1817:   echo "configure: failed program was:" >&5
 1818:   cat conftest.$ac_ext >&5
 1819:   rm -fr conftest*
 1820:   ac_cv_header_stdc=no
 1821: fi
 1822: rm -fr conftest*
 1823: fi
 1824: 
 1825: fi
 1826: fi
 1827: 
 1828: echo "$ac_t""$ac_cv_header_stdc" 1>&6
 1829: if test $ac_cv_header_stdc = yes; then
 1830:   cat >> confdefs.h <<\EOF
 1831: #define STDC_HEADERS 1
 1832: EOF
 1833: 
 1834: fi
 1835: 
 1836: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
 1837: echo "configure:1835: checking whether time.h and sys/time.h may both be included" >&5
 1838: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
 1839:   echo $ac_n "(cached) $ac_c" 1>&6
 1840: else
 1841:   cat > conftest.$ac_ext <<EOF
 1842: #line 1840 "configure"
 1843: #include "confdefs.h"
 1844: #include <sys/types.h>
 1845: #include <sys/time.h>
 1846: #include <time.h>
 1847: int main() {
 1848: struct tm *tp;
 1849: ; return 0; }
 1850: EOF
 1851: if { (eval echo configure:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1852:   rm -rf conftest*
 1853:   ac_cv_header_time=yes
 1854: else
 1855:   echo "configure: failed program was:" >&5
 1856:   cat conftest.$ac_ext >&5
 1857:   rm -rf conftest*
 1858:   ac_cv_header_time=no
 1859: fi
 1860: rm -f conftest*
 1861: fi
 1862: 
 1863: echo "$ac_t""$ac_cv_header_time" 1>&6
 1864: if test $ac_cv_header_time = yes; then
 1865:   cat >> confdefs.h <<\EOF
 1866: #define TIME_WITH_SYS_TIME 1
 1867: EOF
 1868: 
 1869: fi
 1870: 
 1871: echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
 1872: echo "configure:1870: checking whether string.h and strings.h may both be included" >&5
 1873: if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
 1874:   echo $ac_n "(cached) $ac_c" 1>&6
 1875: else
 1876:   cat > conftest.$ac_ext <<EOF
 1877: #line 1875 "configure"
 1878: #include "confdefs.h"
 1879: #include <string.h>
 1880: #include <strings.h>
 1881: int main() {
 1882: 
 1883: ; return 0; }
 1884: EOF
 1885: if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1886:   rm -rf conftest*
 1887:   gcc_cv_header_string=yes
 1888: else
 1889:   echo "configure: failed program was:" >&5
 1890:   cat conftest.$ac_ext >&5
 1891:   rm -rf conftest*
 1892:   gcc_cv_header_string=no
 1893: fi
 1894: rm -f conftest*
 1895: fi
 1896: 
 1897: echo "$ac_t""$gcc_cv_header_string" 1>&6
 1898: if test $gcc_cv_header_string = yes; then
 1899:   cat >> confdefs.h <<\EOF
 1900: #define STRING_WITH_STRINGS 1
 1901: EOF
 1902: 
 1903: fi
 1904: 
 1905: echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
 1906: echo "configure:1904: checking for sys/wait.h that is POSIX.1 compatible" >&5
 1907: if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
 1908:   echo $ac_n "(cached) $ac_c" 1>&6
 1909: else
 1910:   cat > conftest.$ac_ext <<EOF
 1911: #line 1909 "configure"
 1912: #include "confdefs.h"
 1913: #include <sys/types.h>
 1914: #include <sys/wait.h>
 1915: #ifndef WEXITSTATUS
 1916: #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 1917: #endif
 1918: #ifndef WIFEXITED
 1919: #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 1920: #endif
 1921: int main() {
 1922: int s;
 1923: wait (&s);
 1924: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 1925: ; return 0; }
 1926: EOF
 1927: if { (eval echo configure:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1928:   rm -rf conftest*
 1929:   ac_cv_header_sys_wait_h=yes
 1930: else
 1931:   echo "configure: failed program was:" >&5
 1932:   cat conftest.$ac_ext >&5
 1933:   rm -rf conftest*
 1934:   ac_cv_header_sys_wait_h=no
 1935: fi
 1936: rm -f conftest*
 1937: fi
 1938: 
 1939: echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
 1940: if test $ac_cv_header_sys_wait_h = yes; then
 1941:   cat >> confdefs.h <<\EOF
 1942: #define HAVE_SYS_WAIT_H 1
 1943: EOF
 1944: 
 1945: fi
 1946: 
 1947: for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h direct.h
 1948: do
 1949: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 1950: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 1951: echo "configure:1949: checking for $ac_hdr" >&5
 1952: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 1953:   echo $ac_n "(cached) $ac_c" 1>&6
 1954: else
 1955:   cat > conftest.$ac_ext <<EOF
 1956: #line 1954 "configure"
 1957: #include "confdefs.h"
 1958: #include <$ac_hdr>
 1959: EOF
 1960: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1961: { (eval echo configure:1959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1962: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1963: if test -z "$ac_err"; then
 1964:   rm -rf conftest*
 1965:   eval "ac_cv_header_$ac_safe=yes"
 1966: else
 1967:   echo "$ac_err" >&5
 1968:   echo "configure: failed program was:" >&5
 1969:   cat conftest.$ac_ext >&5
 1970:   rm -rf conftest*
 1971:   eval "ac_cv_header_$ac_safe=no"
 1972: fi
 1973: rm -f conftest*
 1974: fi
 1975: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 1976:   echo "$ac_t""yes" 1>&6
 1977:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 1978:   cat >> confdefs.h <<EOF
 1979: #define $ac_tr_hdr 1
 1980: EOF
 1981:  
 1982: else
 1983:   echo "$ac_t""no" 1>&6
 1984: fi
 1985: done
 1986: 
 1987: 
 1988: # Check for thread headers.
 1989: ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
 1990: echo $ac_n "checking for thread.h""... $ac_c" 1>&6
 1991: echo "configure:1989: checking for thread.h" >&5
 1992: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 1993:   echo $ac_n "(cached) $ac_c" 1>&6
 1994: else
 1995:   cat > conftest.$ac_ext <<EOF
 1996: #line 1994 "configure"
 1997: #include "confdefs.h"
 1998: #include <thread.h>
 1999: EOF
 2000: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 2001: { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 2002: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 2003: if test -z "$ac_err"; then
 2004:   rm -rf conftest*
 2005:   eval "ac_cv_header_$ac_safe=yes"
 2006: else
 2007:   echo "$ac_err" >&5
 2008:   echo "configure: failed program was:" >&5
 2009:   cat conftest.$ac_ext >&5
 2010:   rm -rf conftest*
 2011:   eval "ac_cv_header_$ac_safe=no"
 2012: fi
 2013: rm -f conftest*
 2014: fi
 2015: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 2016:   echo "$ac_t""yes" 1>&6
 2017:   have_thread_h=yes
 2018: else
 2019:   echo "$ac_t""no" 1>&6
 2020: have_thread_h=
 2021: fi
 2022: 
 2023: ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
 2024: echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
 2025: echo "configure:2023: checking for pthread.h" >&5
 2026: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 2027:   echo $ac_n "(cached) $ac_c" 1>&6
 2028: else
 2029:   cat > conftest.$ac_ext <<EOF
 2030: #line 2028 "configure"
 2031: #include "confdefs.h"
 2032: #include <pthread.h>
 2033: EOF
 2034: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 2035: { (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 2036: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 2037: if test -z "$ac_err"; then
 2038:   rm -rf conftest*
 2039:   eval "ac_cv_header_$ac_safe=yes"
 2040: else
 2041:   echo "$ac_err" >&5
 2042:   echo "configure: failed program was:" >&5
 2043:   cat conftest.$ac_ext >&5
 2044:   rm -rf conftest*
 2045:   eval "ac_cv_header_$ac_safe=no"
 2046: fi
 2047: rm -f conftest*
 2048: fi
 2049: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 2050:   echo "$ac_t""yes" 1>&6
 2051:   have_pthread_h=yes
 2052: else
 2053:   echo "$ac_t""no" 1>&6
 2054: have_pthread_h=
 2055: fi
 2056: 
 2057: 
 2058: # See if GNAT has been installed
 2059: # Extract the first word of "gnatbind", so it can be a program name with args.
 2060: set dummy gnatbind; ac_word=$2
 2061: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2062: echo "configure:2060: checking for $ac_word" >&5
 2063: if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
 2064:   echo $ac_n "(cached) $ac_c" 1>&6
 2065: else
 2066:   if test -n "$gnat"; then
 2067:   ac_cv_prog_gnat="$gnat" # Let the user override the test.
 2068: else
 2069:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 2070:   ac_dummy="$PATH"
 2071:   for ac_dir in $ac_dummy; do
 2072:     test -z "$ac_dir" && ac_dir=.
 2073:     if test -f $ac_dir/$ac_word; then
 2074:       ac_cv_prog_gnat="yes"
 2075:       break
 2076:     fi
 2077:   done
 2078:   IFS="$ac_save_ifs"
 2079:   test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
 2080: fi
 2081: fi
 2082: gnat="$ac_cv_prog_gnat"
 2083: if test -n "$gnat"; then
 2084:   echo "$ac_t""$gnat" 1>&6
 2085: else
 2086:   echo "$ac_t""no" 1>&6
 2087: fi
 2088: 
 2089: 
 2090: # See if the system preprocessor understands the ANSI C preprocessor
 2091: # stringification operator.
 2092: echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
 2093: echo "configure:2091: checking whether cpp understands the stringify operator" >&5
 2094: if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
 2095:   echo $ac_n "(cached) $ac_c" 1>&6
 2096: else
 2097:   cat > conftest.$ac_ext <<EOF
 2098: #line 2096 "configure"
 2099: #include "confdefs.h"
 2100: 
 2101: int main() {
 2102: #define S(x)   #x
 2103: char *test = S(foo);
 2104: ; return 0; }
 2105: EOF
 2106: if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2107:   rm -rf conftest*
 2108:   gcc_cv_c_have_stringify=yes
 2109: else
 2110:   echo "configure: failed program was:" >&5
 2111:   cat conftest.$ac_ext >&5
 2112:   rm -rf conftest*
 2113:   gcc_cv_c_have_stringify=no
 2114: fi
 2115: rm -f conftest*
 2116: fi
 2117: 
 2118: echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
 2119: if test $gcc_cv_c_have_stringify = yes; then
 2120:   cat >> confdefs.h <<\EOF
 2121: #define HAVE_CPP_STRINGIFY 1
 2122: EOF
 2123: 
 2124: fi
 2125: 
 2126: # Use <inttypes.h> only if it exists,
 2127: # doesn't clash with <sys/types.h>, and declares intmax_t.
 2128: echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
 2129: echo "configure:2127: checking for inttypes.h" >&5
 2130: if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
 2131:   echo $ac_n "(cached) $ac_c" 1>&6
 2132: else
 2133:   cat > conftest.$ac_ext <<EOF
 2134: #line 2132 "configure"
 2135: #include "confdefs.h"
 2136: #include <sys/types.h>
 2137: #include <inttypes.h>
 2138: int main() {
 2139: intmax_t i = -1;
 2140: ; return 0; }
 2141: EOF
 2142: if { (eval echo configure:2140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2143:   rm -rf conftest*
 2144:   gcc_cv_header_inttypes_h=yes
 2145: else
 2146:   echo "configure: failed program was:" >&5
 2147:   cat conftest.$ac_ext >&5
 2148:   rm -rf conftest*
 2149:   gcc_cv_header_inttypes_h=no
 2150: fi
 2151: rm -f conftest*
 2152: fi
 2153: 
 2154: echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
 2155: if test $gcc_cv_header_inttypes_h = yes; then
 2156:   cat >> confdefs.h <<\EOF
 2157: #define HAVE_INTTYPES_H 1
 2158: EOF
 2159: 
 2160: fi
 2161: 
 2162: for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
 2163: 	index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
 2164: 	sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
 2165: 	fputs_unlocked
 2166: do
 2167: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 2168: echo "configure:2166: checking for $ac_func" >&5
 2169: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 2170:   echo $ac_n "(cached) $ac_c" 1>&6
 2171: else
 2172:   cat > conftest.$ac_ext <<EOF
 2173: #line 2171 "configure"
 2174: #include "confdefs.h"
 2175: /* System header to define __stub macros and hopefully few prototypes,
 2176:     which can conflict with char $ac_func(); below.  */
 2177: #include <assert.h>
 2178: /* Override any gcc2 internal prototype to avoid an error.  */
 2179: /* We use char because int might match the return type of a gcc2
 2180:     builtin and then its argument prototype would still apply.  */
 2181: char $ac_func();
 2182: 
 2183: int main() {
 2184: 
 2185: /* The GNU C library defines this for functions which it implements
 2186:     to always fail with ENOSYS.  Some functions are actually named
 2187:     something starting with __ and the normal name is an alias.  */
 2188: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 2189: choke me
 2190: #else
 2191: $ac_func();
 2192: #endif
 2193: 
 2194: ; return 0; }
 2195: EOF
 2196: if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2197:   rm -rf conftest*
 2198:   eval "ac_cv_func_$ac_func=yes"
 2199: else
 2200:   echo "configure: failed program was:" >&5
 2201:   cat conftest.$ac_ext >&5
 2202:   rm -rf conftest*
 2203:   eval "ac_cv_func_$ac_func=no"
 2204: fi
 2205: rm -f conftest*
 2206: fi
 2207: 
 2208: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 2209:   echo "$ac_t""yes" 1>&6
 2210:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 2211:   cat >> confdefs.h <<EOF
 2212: #define $ac_tr_func 1
 2213: EOF
 2214:  
 2215: else
 2216:   echo "$ac_t""no" 1>&6
 2217: fi
 2218: done
 2219: 
 2220: 
 2221: # Make sure wchar_t is available
 2222: #AC_CHECK_TYPE(wchar_t, unsigned int)
 2223: 
 2224: echo $ac_n "checking for vprintf""... $ac_c" 1>&6
 2225: echo "configure:2223: checking for vprintf" >&5
 2226: if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
 2227:   echo $ac_n "(cached) $ac_c" 1>&6
 2228: else
 2229:   cat > conftest.$ac_ext <<EOF
 2230: #line 2228 "configure"
 2231: #include "confdefs.h"
 2232: /* System header to define __stub macros and hopefully few prototypes,
 2233:     which can conflict with char vprintf(); below.  */
 2234: #include <assert.h>
 2235: /* Override any gcc2 internal prototype to avoid an error.  */
 2236: /* We use char because int might match the return type of a gcc2
 2237:     builtin and then its argument prototype would still apply.  */
 2238: char vprintf();
 2239: 
 2240: int main() {
 2241: 
 2242: /* The GNU C library defines this for functions which it implements
 2243:     to always fail with ENOSYS.  Some functions are actually named
 2244:     something starting with __ and the normal name is an alias.  */
 2245: #if defined (__stub_vprintf) || defined (__stub___vprintf)
 2246: choke me
 2247: #else
 2248: vprintf();
 2249: #endif
 2250: 
 2251: ; return 0; }
 2252: EOF
 2253: if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2254:   rm -rf conftest*
 2255:   eval "ac_cv_func_vprintf=yes"
 2256: else
 2257:   echo "configure: failed program was:" >&5
 2258:   cat conftest.$ac_ext >&5
 2259:   rm -rf conftest*
 2260:   eval "ac_cv_func_vprintf=no"
 2261: fi
 2262: rm -f conftest*
 2263: fi
 2264: 
 2265: if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
 2266:   echo "$ac_t""yes" 1>&6
 2267:   cat >> confdefs.h <<\EOF
 2268: #define HAVE_VPRINTF 1
 2269: EOF
 2270: 
 2271: else
 2272:   echo "$ac_t""no" 1>&6
 2273: fi
 2274: 
 2275: if test "$ac_cv_func_vprintf" != yes; then
 2276: echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
 2277: echo "configure:2275: checking for _doprnt" >&5
 2278: if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
 2279:   echo $ac_n "(cached) $ac_c" 1>&6
 2280: else
 2281:   cat > conftest.$ac_ext <<EOF
 2282: #line 2280 "configure"
 2283: #include "confdefs.h"
 2284: /* System header to define __stub macros and hopefully few prototypes,
 2285:     which can conflict with char _doprnt(); below.  */
 2286: #include <assert.h>
 2287: /* Override any gcc2 internal prototype to avoid an error.  */
 2288: /* We use char because int might match the return type of a gcc2
 2289:     builtin and then its argument prototype would still apply.  */
 2290: char _doprnt();
 2291: 
 2292: int main() {
 2293: 
 2294: /* The GNU C library defines this for functions which it implements
 2295:     to always fail with ENOSYS.  Some functions are actually named
 2296:     something starting with __ and the normal name is an alias.  */
 2297: #if defined (__stub__doprnt) || defined (__stub____doprnt)
 2298: choke me
 2299: #else
 2300: _doprnt();
 2301: #endif
 2302: 
 2303: ; return 0; }
 2304: EOF
 2305: if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2306:   rm -rf conftest*
 2307:   eval "ac_cv_func__doprnt=yes"
 2308: else
 2309:   echo "configure: failed program was:" >&5
 2310:   cat conftest.$ac_ext >&5
 2311:   rm -rf conftest*
 2312:   eval "ac_cv_func__doprnt=no"
 2313: fi
 2314: rm -f conftest*
 2315: fi
 2316: 
 2317: if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
 2318:   echo "$ac_t""yes" 1>&6
 2319:   cat >> confdefs.h <<\EOF
 2320: #define HAVE_DOPRNT 1
 2321: EOF
 2322: 
 2323: else
 2324:   echo "$ac_t""no" 1>&6
 2325: fi
 2326: 
 2327: fi
 2328: 
 2329: vfprintf=
 2330: doprint=
 2331: if test $ac_cv_func_vprintf != yes ; then
 2332:   vfprintf=vfprintf.o
 2333:   if test $ac_cv_func__doprnt != yes ; then
 2334:     doprint=doprint.o
 2335:   fi
 2336: fi
 2337: 
 2338: 
 2339: 
 2340: echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
 2341: echo "configure:2339: checking whether the printf functions support %p" >&5
 2342: if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
 2343:   echo $ac_n "(cached) $ac_c" 1>&6
 2344: else
 2345:   if test "$cross_compiling" = yes; then
 2346:   gcc_cv_func_printf_ptr=no
 2347: else
 2348:   cat > conftest.$ac_ext <<EOF
 2349: #line 2347 "configure"
 2350: #include "confdefs.h"
 2351: #include <stdio.h>
 2352: 
 2353: main()
 2354: {
 2355:   char buf[64];
 2356:   char *p = buf, *q = NULL;
 2357:   sprintf(buf, "%p", p);
 2358:   sscanf(buf, "%p", &q);
 2359:   exit (p != q);
 2360: }
 2361: EOF
 2362: if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 2363: then
 2364:   gcc_cv_func_printf_ptr=yes
 2365: else
 2366:   echo "configure: failed program was:" >&5
 2367:   cat conftest.$ac_ext >&5
 2368:   rm -fr conftest*
 2369:   gcc_cv_func_printf_ptr=no
 2370: fi
 2371: rm -fr conftest*
 2372: fi
 2373: 
 2374: rm -f core core.* *.core
 2375: fi
 2376: 
 2377: echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
 2378: if test $gcc_cv_func_printf_ptr = yes ; then
 2379:   cat >> confdefs.h <<\EOF
 2380: #define HAVE_PRINTF_PTR 1
 2381: EOF
 2382: 
 2383: fi
 2384: 
 2385: 
 2386: case "${host}" in
 2387: *-*-uwin*)
 2388:   { echo "configure: error: 
 2389: *** UWIN may not be used as a host platform because
 2390: *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
 2391:   ;;
 2392: esac
 2393: echo $ac_n "checking for pid_t""... $ac_c" 1>&6
 2394: echo "configure:2392: checking for pid_t" >&5
 2395: if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
 2396:   echo $ac_n "(cached) $ac_c" 1>&6
 2397: else
 2398:   cat > conftest.$ac_ext <<EOF
 2399: #line 2397 "configure"
 2400: #include "confdefs.h"
 2401: #include <sys/types.h>
 2402: #if STDC_HEADERS
 2403: #include <stdlib.h>
 2404: #include <stddef.h>
 2405: #endif
 2406: EOF
 2407: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 2408:   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 2409:   rm -rf conftest*
 2410:   ac_cv_type_pid_t=yes
 2411: else
 2412:   rm -rf conftest*
 2413:   ac_cv_type_pid_t=no
 2414: fi
 2415: rm -f conftest*
 2416: 
 2417: fi
 2418: echo "$ac_t""$ac_cv_type_pid_t" 1>&6
 2419: if test $ac_cv_type_pid_t = no; then
 2420:   cat >> confdefs.h <<\EOF
 2421: #define pid_t int
 2422: EOF
 2423: 
 2424: fi
 2425: 
 2426: ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
 2427: echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
 2428: echo "configure:2426: checking for vfork.h" >&5
 2429: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 2430:   echo $ac_n "(cached) $ac_c" 1>&6
 2431: else
 2432:   cat > conftest.$ac_ext <<EOF
 2433: #line 2431 "configure"
 2434: #include "confdefs.h"
 2435: #include <vfork.h>
 2436: EOF
 2437: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 2438: { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 2439: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 2440: if test -z "$ac_err"; then
 2441:   rm -rf conftest*
 2442:   eval "ac_cv_header_$ac_safe=yes"
 2443: else
 2444:   echo "$ac_err" >&5
 2445:   echo "configure: failed program was:" >&5
 2446:   cat conftest.$ac_ext >&5
 2447:   rm -rf conftest*
 2448:   eval "ac_cv_header_$ac_safe=no"
 2449: fi
 2450: rm -f conftest*
 2451: fi
 2452: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 2453:   echo "$ac_t""yes" 1>&6
 2454:   cat >> confdefs.h <<\EOF
 2455: #define HAVE_VFORK_H 1
 2456: EOF
 2457: 
 2458: else
 2459:   echo "$ac_t""no" 1>&6
 2460: fi
 2461: 
 2462: echo $ac_n "checking for working vfork""... $ac_c" 1>&6
 2463: echo "configure:2461: checking for working vfork" >&5
 2464: if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
 2465:   echo $ac_n "(cached) $ac_c" 1>&6
 2466: else
 2467:   if test "$cross_compiling" = yes; then
 2468:   echo $ac_n "checking for vfork""... $ac_c" 1>&6
 2469: echo "configure:2467: checking for vfork" >&5
 2470: if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
 2471:   echo $ac_n "(cached) $ac_c" 1>&6
 2472: else
 2473:   cat > conftest.$ac_ext <<EOF
 2474: #line 2472 "configure"
 2475: #include "confdefs.h"
 2476: /* System header to define __stub macros and hopefully few prototypes,
 2477:     which can conflict with char vfork(); below.  */
 2478: #include <assert.h>
 2479: /* Override any gcc2 internal prototype to avoid an error.  */
 2480: /* We use char because int might match the return type of a gcc2
 2481:     builtin and then its argument prototype would still apply.  */
 2482: char vfork();
 2483: 
 2484: int main() {
 2485: 
 2486: /* The GNU C library defines this for functions which it implements
 2487:     to always fail with ENOSYS.  Some functions are actually named
 2488:     something starting with __ and the normal name is an alias.  */
 2489: #if defined (__stub_vfork) || defined (__stub___vfork)
 2490: choke me
 2491: #else
 2492: vfork();
 2493: #endif
 2494: 
 2495: ; return 0; }
 2496: EOF
 2497: if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2498:   rm -rf conftest*
 2499:   eval "ac_cv_func_vfork=yes"
 2500: else
 2501:   echo "configure: failed program was:" >&5
 2502:   cat conftest.$ac_ext >&5
 2503:   rm -rf conftest*
 2504:   eval "ac_cv_func_vfork=no"
 2505: fi
 2506: rm -f conftest*
 2507: fi
 2508: 
 2509: if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
 2510:   echo "$ac_t""yes" 1>&6
 2511:   :
 2512: else
 2513:   echo "$ac_t""no" 1>&6
 2514: fi
 2515: 
 2516: ac_cv_func_vfork_works=$ac_cv_func_vfork
 2517: else
 2518:   cat > conftest.$ac_ext <<EOF
 2519: #line 2517 "configure"
 2520: #include "confdefs.h"
 2521: /* Thanks to Paul Eggert for this test.  */
 2522: #include <stdio.h>
 2523: #include <sys/types.h>
 2524: #include <sys/stat.h>
 2525: #ifdef HAVE_UNISTD_H
 2526: #include <unistd.h>
 2527: #endif
 2528: #ifdef HAVE_VFORK_H
 2529: #include <vfork.h>
 2530: #endif
 2531: /* On some sparc systems, changes by the child to local and incoming
 2532:    argument registers are propagated back to the parent.
 2533:    The compiler is told about this with #include <vfork.h>,
 2534:    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
 2535:    Test for this by using a static variable whose address
 2536:    is put into a register that is clobbered by the vfork.  */
 2537: static
 2538: #ifdef __cplusplus
 2539: sparc_address_test (int arg)
 2540: #else
 2541: sparc_address_test (arg) int arg;
 2542: #endif
 2543: {
 2544:   static pid_t child;
 2545:   if (!child) {
 2546:     child = vfork ();
 2547:     if (child < 0) {
 2548:       perror ("vfork");
 2549:       _exit(2);
 2550:     }
 2551:     if (!child) {
 2552:       arg = getpid();
 2553:       write(-1, "", 0);
 2554:       _exit (arg);
 2555:     }
 2556:   }
 2557: }
 2558: main() {
 2559:   pid_t parent = getpid ();
 2560:   pid_t child;
 2561: 
 2562:   sparc_address_test ();
 2563: 
 2564:   child = vfork ();
 2565: 
 2566:   if (child == 0) {
 2567:     /* Here is another test for sparc vfork register problems.
 2568:        This test uses lots of local variables, at least
 2569:        as many local variables as main has allocated so far
 2570:        including compiler temporaries.  4 locals are enough for
 2571:        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
 2572:        A buggy compiler should reuse the register of parent
 2573:        for one of the local variables, since it will think that
 2574:        parent can't possibly be used any more in this routine.
 2575:        Assigning to the local variable will thus munge parent
 2576:        in the parent process.  */
 2577:     pid_t
 2578:       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 2579:       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 2580:     /* Convince the compiler that p..p7 are live; otherwise, it might
 2581:        use the same hardware register for all 8 local variables.  */
 2582:     if (p != p1 || p != p2 || p != p3 || p != p4
 2583: 	|| p != p5 || p != p6 || p != p7)
 2584:       _exit(1);
 2585: 
 2586:     /* On some systems (e.g. IRIX 3.3),
 2587:        vfork doesn't separate parent from child file descriptors.
 2588:        If the child closes a descriptor before it execs or exits,
 2589:        this munges the parent's descriptor as well.
 2590:        Test for this by closing stdout in the child.  */
 2591:     _exit(close(fileno(stdout)) != 0);
 2592:   } else {
 2593:     int status;
 2594:     struct stat st;
 2595: 
 2596:     while (wait(&status) != child)
 2597:       ;
 2598:     exit(
 2599: 	 /* Was there some problem with vforking?  */
 2600: 	 child < 0
 2601: 
 2602: 	 /* Did the child fail?  (This shouldn't happen.)  */
 2603: 	 || status
 2604: 
 2605: 	 /* Did the vfork/compiler bug occur?  */
 2606: 	 || parent != getpid()
 2607: 
 2608: 	 /* Did the file descriptor bug occur?  */
 2609: 	 || fstat(fileno(stdout), &st) != 0
 2610: 	 );
 2611:   }
 2612: }
 2613: EOF
 2614: if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 2615: then
 2616:   ac_cv_func_vfork_works=yes
 2617: else
 2618:   echo "configure: failed program was:" >&5
 2619:   cat conftest.$ac_ext >&5
 2620:   rm -fr conftest*
 2621:   ac_cv_func_vfork_works=no
 2622: fi
 2623: rm -fr conftest*
 2624: fi
 2625: 
 2626: fi
 2627: 
 2628: echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
 2629: if test $ac_cv_func_vfork_works = no; then
 2630:   cat >> confdefs.h <<\EOF
 2631: #define vfork fork
 2632: EOF
 2633: 
 2634: fi
 2635: 
 2636: 
 2637: for ac_func in malloc realloc calloc free bcopy bzero bcmp \
 2638: 	index rindex getenv atol sbrk abort atof strerror getcwd getwd \
 2639: 	strsignal putc_unlocked fputs_unlocked strstr
 2640: do
 2641: echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
 2642: echo "configure:2640: checking whether $ac_func must be declared" >&5
 2643: if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
 2644:   echo $ac_n "(cached) $ac_c" 1>&6
 2645: else
 2646:   cat > conftest.$ac_ext <<EOF
 2647: #line 2645 "configure"
 2648: #include "confdefs.h"
 2649: 
 2650: #include <stdio.h>
 2651: #ifdef STRING_WITH_STRINGS
 2652: # include <string.h>
 2653: # include <strings.h>
 2654: #else
 2655: # ifdef HAVE_STRING_H
 2656: #  include <string.h>
 2657: # else
 2658: #  ifdef HAVE_STRINGS_H
 2659: #   include <strings.h>
 2660: #  endif
 2661: # endif
 2662: #endif
 2663: #ifdef HAVE_STDLIB_H
 2664: #include <stdlib.h>
 2665: #endif
 2666: #ifdef HAVE_UNISTD_H
 2667: #include <unistd.h>
 2668: #endif
 2669: #ifndef HAVE_RINDEX
 2670: #define rindex strrchr
 2671: #endif
 2672: #ifndef HAVE_INDEX
 2673: #define index strchr
 2674: #endif
 2675: 
 2676: int main() {
 2677: char *(*pfn) = (char *(*)) $ac_func
 2678: ; return 0; }
 2679: EOF
 2680: if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2681:   rm -rf conftest*
 2682:   eval "gcc_cv_decl_needed_$ac_func=no"
 2683: else
 2684:   echo "configure: failed program was:" >&5
 2685:   cat conftest.$ac_ext >&5
 2686:   rm -rf conftest*
 2687:   eval "gcc_cv_decl_needed_$ac_func=yes"
 2688: fi
 2689: rm -f conftest*
 2690: fi
 2691: 
 2692: if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
 2693:   echo "$ac_t""yes" 1>&6
 2694:   gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 2695:   cat >> confdefs.h <<EOF
 2696: #define $gcc_tr_decl 1
 2697: EOF
 2698: 
 2699: else
 2700:   echo "$ac_t""no" 1>&6
 2701: fi
 2702: 
 2703: done
 2704: 
 2705: 
 2706: for ac_func in getrlimit setrlimit
 2707: do
 2708: echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
 2709: echo "configure:2707: checking whether $ac_func must be declared" >&5
 2710: if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
 2711:   echo $ac_n "(cached) $ac_c" 1>&6
 2712: else
 2713:   cat > conftest.$ac_ext <<EOF
 2714: #line 2712 "configure"
 2715: #include "confdefs.h"
 2716: 
 2717: #include <stdio.h>
 2718: #ifdef STRING_WITH_STRINGS
 2719: # include <string.h>
 2720: # include <strings.h>
 2721: #else
 2722: # ifdef HAVE_STRING_H
 2723: #  include <string.h>
 2724: # else
 2725: #  ifdef HAVE_STRINGS_H
 2726: #   include <strings.h>
 2727: #  endif
 2728: # endif
 2729: #endif
 2730: #ifdef HAVE_STDLIB_H
 2731: #include <stdlib.h>
 2732: #endif
 2733: #ifdef HAVE_UNISTD_H
 2734: #include <unistd.h>
 2735: #endif
 2736: #ifndef HAVE_RINDEX
 2737: #define rindex strrchr
 2738: #endif
 2739: #ifndef HAVE_INDEX
 2740: #define index strchr
 2741: #endif
 2742: #include <sys/types.h>
 2743: #ifdef HAVE_SYS_RESOURCE_H
 2744: #include <sys/resource.h>
 2745: #endif
 2746: 
 2747: int main() {
 2748: char *(*pfn) = (char *(*)) $ac_func
 2749: ; return 0; }
 2750: EOF
 2751: if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2752:   rm -rf conftest*
 2753:   eval "gcc_cv_decl_needed_$ac_func=no"
 2754: else
 2755:   echo "configure: failed program was:" >&5
 2756:   cat conftest.$ac_ext >&5
 2757:   rm -rf conftest*
 2758:   eval "gcc_cv_decl_needed_$ac_func=yes"
 2759: fi
 2760: rm -f conftest*
 2761: fi
 2762: 
 2763: if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
 2764:   echo "$ac_t""yes" 1>&6
 2765:   gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 2766:   cat >> confdefs.h <<EOF
 2767: #define $gcc_tr_decl 1
 2768: EOF
 2769: 
 2770: else
 2771:   echo "$ac_t""no" 1>&6
 2772: fi
 2773: 
 2774: done
 2775: 
 2776: 
 2777: echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
 2778: echo "configure:2776: checking for sys_siglist declaration in signal.h or unistd.h" >&5
 2779: if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
 2780:   echo $ac_n "(cached) $ac_c" 1>&6
 2781: else
 2782:   cat > conftest.$ac_ext <<EOF
 2783: #line 2781 "configure"
 2784: #include "confdefs.h"
 2785: #include <sys/types.h>
 2786: #include <signal.h>
 2787: /* NetBSD declares sys_siglist in unistd.h.  */
 2788: #ifdef HAVE_UNISTD_H
 2789: #include <unistd.h>
 2790: #endif
 2791: int main() {
 2792: char *msg = *(sys_siglist + 1);
 2793: ; return 0; }
 2794: EOF
 2795: if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2796:   rm -rf conftest*
 2797:   ac_cv_decl_sys_siglist=yes
 2798: else
 2799:   echo "configure: failed program was:" >&5
 2800:   cat conftest.$ac_ext >&5
 2801:   rm -rf conftest*
 2802:   ac_cv_decl_sys_siglist=no
 2803: fi
 2804: rm -f conftest*
 2805: fi
 2806: 
 2807: echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
 2808: if test $ac_cv_decl_sys_siglist = yes; then
 2809:   cat >> confdefs.h <<\EOF
 2810: #define SYS_SIGLIST_DECLARED 1
 2811: EOF
 2812: 
 2813: fi
 2814: 
 2815: 
 2816: # mkdir takes a single argument on some systems. 
 2817: echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
 2818: echo "configure:2816: checking if mkdir takes one argument" >&5
 2819: if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
 2820:   echo $ac_n "(cached) $ac_c" 1>&6
 2821: else
 2822:   cat > conftest.$ac_ext <<EOF
 2823: #line 2821 "configure"
 2824: #include "confdefs.h"
 2825: 
 2826: #include <sys/types.h>
 2827: #ifdef HAVE_SYS_STAT_H
 2828: # include <sys/stat.h>
 2829: #endif
 2830: #ifdef HAVE_UNISTD_H
 2831: # include <unistd.h>
 2832: #endif
 2833: #ifdef HAVE_DIRECT_H
 2834: # include <direct.h>
 2835: #endif
 2836: int main() {
 2837: mkdir ("foo", 0);
 2838: ; return 0; }
 2839: EOF
 2840: if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2841:   rm -rf conftest*
 2842:   gcc_cv_mkdir_takes_one_arg=no
 2843: else
 2844:   echo "configure: failed program was:" >&5
 2845:   cat conftest.$ac_ext >&5
 2846:   rm -rf conftest*
 2847:   gcc_cv_mkdir_takes_one_arg=yes
 2848: fi
 2849: rm -f conftest*
 2850: fi
 2851: 
 2852: echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
 2853: if test $gcc_cv_mkdir_takes_one_arg = yes ; then
 2854:   cat >> confdefs.h <<\EOF
 2855: #define MKDIR_TAKES_ONE_ARG 1
 2856: EOF
 2857: 
 2858: fi
 2859: 
 2860: 
 2861: # File extensions
 2862: manext='.1'
 2863: objext='.o'
 2864: 
 2865: 
 2866: 
 2867: build_xm_file=
 2868: build_xm_defines=
 2869: build_install_headers_dir=install-headers-tar
 2870: build_exeext=
 2871: host_xm_file=
 2872: host_xm_defines=
 2873: host_xmake_file=
 2874: host_truncate_target=
 2875: host_exeext=
 2876: 
 2877: # Decode the host machine, then the target machine.
 2878: # For the host machine, we save the xm_file variable as host_xm_file;
 2879: # then we decode the target machine and forget everything else
 2880: # that came from the host machine.
 2881: for machine in $build $host $target; do
 2882: 
 2883: 	out_file=
 2884: 	xmake_file=
 2885: 	tmake_file=
 2886: 	extra_headers=
 2887: 	extra_passes=
 2888: 	extra_parts=
 2889: 	extra_programs=
 2890: 	extra_objs=
 2891: 	extra_host_objs=
 2892: 	extra_gcc_objs=
 2893: 	xm_defines=
 2894: 	float_format=
 2895: 	# Set this to force installation and use of collect2.
 2896: 	use_collect2=
 2897: 	# Set this to override the default target model.
 2898: 	target_cpu_default=
 2899: 	# Set this to control how the header file directory is installed.
 2900: 	install_headers_dir=install-headers-tar
 2901: 	# Set this to a non-empty list of args to pass to cpp if the target
 2902: 	# wants its .md file passed through cpp.
 2903: 	md_cppflags=
 2904: 	# Set this if directory names should be truncated to 14 characters.
 2905: 	truncate_target=
 2906: 	# Set this if gdb needs a dir command with `dirname $out_file`
 2907: 	gdb_needs_out_file_path=
 2908: 	# Set this if the build machine requires executables to have a
 2909: 	# file name suffix.
 2910: 	exeext=
 2911: 	# Set this to control which thread package will be used.
 2912: 	thread_file=
 2913: 	# Reinitialize these from the flag values every loop pass, since some
 2914: 	# configure entries modify them.
 2915: 	gas="$gas_flag"
 2916: 	gnu_ld="$gnu_ld_flag"
 2917: 	enable_threads=$enable_threads_flag
 2918: 
 2919: 	# Set default cpu_type, tm_file and xm_file so it can be updated in
 2920: 	# each machine entry.
 2921: 	cpu_type=`echo $machine | sed 's/-.*$//'`
 2922: 	case $machine in
 2923: 	alpha*-*-*)
 2924: 		cpu_type=alpha
 2925: 		;;
 2926: 	arm*-*-*)
 2927: 		cpu_type=arm
 2928: 		;;
 2929: 	c*-convex-*)
 2930: 		cpu_type=convex
 2931: 		;;
 2932: 	i[34567]86-*-*)
 2933: 		cpu_type=i386
 2934: 		;;
 2935: 	hppa*-*-*)
 2936: 		cpu_type=pa
 2937: 		;;
 2938: 	m68000-*-*)
 2939: 		cpu_type=m68k
 2940: 		;;
 2941: 	mips*-*-*)
 2942: 		cpu_type=mips
 2943: 		;;
 2944: 	powerpc*-*-*)
 2945: 		cpu_type=rs6000
 2946: 		;;
 2947: 	pyramid-*-*)
 2948: 		cpu_type=pyr
 2949: 		;;
 2950: 	sparc*-*-*)
 2951: 		cpu_type=sparc
 2952: 		;;
 2953: 	esac
 2954: 
 2955: 	tm_file=${cpu_type}/${cpu_type}.h
 2956: 	xm_file=${cpu_type}/xm-${cpu_type}.h
 2957: 	
 2958: 	# Common parts for linux-gnu and openbsd systems
 2959: 	case $machine in
 2960: 	*-*-linux-gnu*)
 2961: 		xm_defines="HAVE_ATEXIT POSIX BSTRING"
 2962: 		;;
 2963: 	*-*-openbsd*)
 2964: 		tm_file=${cpu_type}/openbsd.h
 2965: 		tmake_file="t-libc-ok t-openbsd"
 2966: 		# avoid surprises, always provide an xm-openbsd file 
 2967: 		xm_file=${cpu_type}/xm-openbsd.h
 2968: 		# don't depend on processor x-fragments as well
 2969: 		xmake_file=none
 2970:  		if test x$enable_threads = xyes; then
 2971:  			thread_file='posix'
 2972: 			tmake_file="${tmake_file} t-openbsd-thread"
 2973: 		fi
 2974: 		;;
 2975: 	esac
 2976: 
 2977: 	case $machine in
 2978: 	# Support site-specific machine types.
 2979: 	*local*)
 2980: 		cpu_type=`echo $machine | sed -e 's/-.*//'`
 2981: 		rest=`echo $machine | sed -e "s/$cpu_type-//"`
 2982: 		xm_file=${cpu_type}/xm-$rest.h
 2983: 		tm_file=${cpu_type}/$rest.h
 2984: 		if test -f $srcdir/config/${cpu_type}/x-$rest; \
 2985: 		then xmake_file=${cpu_type}/x-$rest; \
 2986: 		else true; \
 2987: 		fi
 2988: 		if test -f $srcdir/config/${cpu_type}/t-$rest; \
 2989: 		then tmake_file=${cpu_type}/t-$rest; \
 2990: 		else true; \
 2991: 		fi
 2992: 		;;
 2993: 	1750a-*-*)
 2994: 		;;
 2995: 	a29k-*-bsd* | a29k-*-sym1*)
 2996: 		tm_file="${tm_file} a29k/unix.h"
 2997: 		xm_defines=USG
 2998: 		xmake_file=a29k/x-unix
 2999: 		use_collect2=yes
 3000: 		;;
 3001: 	a29k-*-udi | a29k-*-coff)
 3002: 		tm_file="${tm_file} dbxcoff.h a29k/udi.h"
 3003: 		tmake_file=a29k/t-a29kbare
 3004: 		;;
 3005: 	a29k-wrs-vxworks*)
 3006: 		tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
 3007: 		tmake_file=a29k/t-vx29k
 3008: 		extra_parts="crtbegin.o crtend.o"
 3009: 		thread_file='vxworks'
 3010: 		;;
 3011: 	a29k-*-*)			# Default a29k environment.
 3012: 		use_collect2=yes
 3013: 		;;
 3014: 	alpha-*-interix)
 3015: 		tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
 3016: 
 3017: 		# GAS + IEEE_CONFORMANT+IEEE (no inexact);
 3018: 		#target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
 3019: 
 3020: 		# GAS + IEEE_CONFORMANT
 3021: 		target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
 3022: 
 3023: 		xm_file="alpha/xm-alpha-interix.h xm-interix.h"
 3024: 		xmake_file="x-interix alpha/t-pe"
 3025: 		tmake_file="alpha/t-interix alpha/t-ieee"
 3026:  		if test x$enable_threads = xyes ; then
 3027: 			thread_file='posix'
 3028: 		fi
 3029: 		if test x$stabs = xyes ; then
 3030: 			tm_file="${tm_file} dbxcoff.h"
 3031: 		fi
 3032: 		#prefix='$$INTERIX_ROOT'/usr/contrib
 3033: 		#local_prefix='$$INTERIX_ROOT'/usr/contrib
 3034: 		;;
 3035: 	alpha*-*-linux-gnuecoff*)
 3036: 		tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
 3037: 		target_cpu_default="MASK_GAS"
 3038: 		tmake_file="alpha/t-ieee"
 3039: 		gas=no
 3040: 		xmake_file=none
 3041: 		gas=yes gnu_ld=yes
 3042: 		;;
 3043: 	alpha*-*-linux-gnulibc1*)
 3044: 		tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
 3045: 		target_cpu_default="MASK_GAS"
 3046: 		tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
 3047: 		extra_parts="crtbegin.o crtend.o"
 3048: 		xmake_file=none
 3049: 		gas=yes gnu_ld=yes
 3050:  		if test x$enable_threads = xyes; then
 3051:  			thread_file='posix'
 3052:  		fi
 3053: 		;;
 3054: 	alpha*-*-linux-gnu*)
 3055: 		tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
 3056: 		target_cpu_default="MASK_GAS"
 3057: 		tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
 3058: 		extra_parts="crtbegin.o crtend.o"
 3059: 		xmake_file=none
 3060: 		gas=yes gnu_ld=yes
 3061:  		if test x$enable_threads = xyes; then
 3062:  			thread_file='posix'
 3063:  		fi
 3064: 		;;
 3065: 	alpha*-*-freebsd*)
 3066: 		tm_file="${tm_file} freebsd.h alpha/freebsd.h"
 3067: 		xm_file="${xm_file} xm-freebsd.h"
 3068: 		target_cpu_default="MASK_GAS"
 3069: 		tmake_file="t-freebsd alpha/t-crtbe"
 3070: 		xmake_file=none
 3071: 		fixincludes=fixinc.wrap
 3072: 		gas=yes gnu_ld=yes
 3073: 		;;
 3074: 	alpha*-*-netbsd*)
 3075: 		tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
 3076: 		target_cpu_default="MASK_GAS"
 3077: 		tmake_file="alpha/t-crtbe alpha/t-ieee"
 3078: 		extra_parts="crtbegin.o crtend.o"
 3079: 		xmake_file=none
 3080: 		gas=yes gnu_ld=yes
 3081: 		;;
 3082: 
 3083: 	alpha*-*-openbsd*)
 3084: 		# default x-alpha is only appropriate for dec-osf.
 3085: 		target_cpu_default="MASK_GAS"
 3086: 		tmake_file="alpha/t-ieee"
 3087: 		;;
 3088: 		
 3089: 	alpha*-dec-osf*)
 3090: 		if test x$stabs = xyes
 3091: 		then
 3092: 			tm_file="${tm_file} dbx.h"
 3093: 		fi
 3094: 		if test x$gas != xyes
 3095: 		then
 3096: 			extra_passes="mips-tfile mips-tdump"
 3097: 		fi
 3098: 		use_collect2=yes
 3099: 		tmake_file="alpha/t-ieee"
 3100: 		case $machine in
 3101: 		  *-*-osf1*)
 3102: 		    tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
 3103: 		    ;;
 3104: 		  *-*-osf[23]*)
 3105: 		    tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
 3106: 		    ;;
 3107: 		  *-*-osf4*)
 3108: 		    tm_file="${tm_file} alpha/osf.h"
 3109: 		    # Some versions of OSF4 (specifically X4.0-9 296.7) have
 3110: 		    # a broken tar, so we use cpio instead.
 3111: 		    install_headers_dir=install-headers-cpio
 3112: 		    ;;
 3113: 		esac
 3114: 		case $machine in
 3115: 		  *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
 3116: 		    target_cpu_default=MASK_SUPPORT_ARCH
 3117: 		    ;;
 3118: 		esac
 3119: 		;;
 3120:  	alpha*-*-vxworks*)
 3121: 		tm_file="${tm_file} dbx.h alpha/vxworks.h"
 3122: 		tmake_file="alpha/t-ieee"
 3123: 		if  x$gas != xyes 
 3124: 		then
 3125: 			extra_passes="mips-tfile mips-tdump"
 3126: 		fi
 3127: 		use_collect2=yes
 3128: 		thread_file='vxworks'
 3129: 		;;
 3130: 	alpha*-*-winnt*)
 3131: 	 	tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
 3132: 		xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
 3133: 		tmake_file="t-libc-ok alpha/t-ieee"
 3134: 		xmake_file=winnt/x-winnt
 3135: 		extra_host_objs=oldnames.o
 3136: 		extra_gcc_objs="spawnv.o oldnames.o"
 3137: 		if test x$gnu_ld != xyes
 3138: 		then
 3139: 			extra_programs=ld.exe
 3140: 		fi
 3141:  		if test x$enable_threads = xyes; then
 3142: 			thread_file='win32'
 3143: 		fi
 3144: 		;;
 3145: 	alpha*-dec-vms*)
 3146: 		tm_file=alpha/vms.h
 3147: 		xm_file="${xm_file} alpha/xm-vms.h"
 3148: 		tmake_file="alpha/t-vms alpha/t-ieee"
 3149: 		;;
 3150: 	arc-*-elf*)
 3151: 		extra_parts="crtinit.o crtfini.o"
 3152: 		;;
 3153: 	arm-*-coff* | armel-*-coff*)
 3154: 		tm_file=arm/coff.h
 3155: 		tmake_file=arm/t-bare
 3156: 		;;
 3157: 	arm-*-vxworks*)
 3158: 		tm_file=arm/vxarm.h
 3159: 		tmake_file=arm/t-bare
 3160: 		thread_file='vxworks'
 3161: 		;;
 3162: 	arm-*-riscix1.[01]*)		# Acorn RISC machine (early versions)
 3163: 		tm_file=arm/riscix1-1.h
 3164: 		use_collect2=yes
 3165: 		;;
 3166: 	arm-*-riscix*)			# Acorn RISC machine
 3167: 		if test x$gas = xyes
 3168: 		then
 3169: 		    tm_file=arm/rix-gas.h
 3170: 		else
 3171: 		    tm_file=arm/riscix.h
 3172: 		fi
 3173: 		xmake_file=arm/x-riscix
 3174: 		tmake_file=arm/t-riscix
 3175: 		use_collect2=yes
 3176: 		;;
 3177: 	arm-semi-aout | armel-semi-aout)
 3178: 		tm_file=arm/semi.h
 3179: 		tmake_file=arm/t-semi
 3180: 		;;
 3181: 	arm-semi-aof | armel-semi-aof)
 3182: 		tm_file=arm/semiaof.h
 3183: 		tmake_file=arm/t-semiaof
 3184: 		;;
 3185: 	arm*-*-netbsd*)
 3186: 		tm_file=arm/netbsd.h
 3187: 		xm_file="arm/xm-netbsd.h ${xm_file}"
 3188: 		tmake_file="t-netbsd arm/t-netbsd"
 3189:        use_collect2=yes
 3190: 		;;
 3191: 	arm*-*-linux-gnuaout*)		# ARM GNU/Linux with a.out
 3192: 		cpu_type=arm
 3193: 		xmake_file=x-linux
 3194: 		tm_file=arm/linux-aout.h
 3195: 		tmake_file=arm/t-linux
 3196: 		gnu_ld=yes
 3197: 		;;
 3198: 	arm*-*-linux-gnuoldld*)		# ARM GNU/Linux with old ELF linker
 3199: 		xm_file=arm/xm-linux.h
 3200: 		xmake_file=x-linux
 3201: 		tm_file="arm/linux-oldld.h arm/linux-elf.h"
 3202: 		case $machine in
 3203: 		armv2*-*-*)
 3204: 			tm_file="arm/linux-elf26.h $tm_file"
 3205: 			;;
 3206: 		esac
 3207: 		tmake_file="t-linux arm/t-linux"
 3208: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 3209: 		gnu_ld=yes
 3210: 		case x${enable_threads} in
 3211: 		x | xyes | xpthreads | xposix)
 3212: 			thread_file='posix'
 3213: 			;;
 3214: 		esac
 3215: 		;;
 3216: 	arm*-*-linux-gnu*)		# ARM GNU/Linux with ELF
 3217: 		xm_file=arm/xm-linux.h
 3218: 		xmake_file=x-linux
 3219: 		tm_file="arm/linux-elf.h"
 3220: 		case $machine in
 3221: 		armv2*-*-*)
 3222: 			tm_file="arm/linux-elf26.h $tm_file"
 3223: 			;;
 3224: 		esac
 3225: 		tmake_file="t-linux arm/t-linux"
 3226: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 3227: 		gnu_ld=yes
 3228: 		case x${enable_threads} in
 3229: 		x | xyes | xpthreads | xposix)
 3230: 			thread_file='posix'
 3231: 			;;
 3232: 		esac
 3233: 		;;
 3234: 	arm*-*-aout)
 3235: 		tm_file=arm/aout.h
 3236: 		tmake_file=arm/t-bare
 3237: 		;;
 3238:         arm*-*-ecos-elf)
 3239: 		tm_file=arm/ecos-elf.h
 3240: 		tmake_file=arm/t-elf
 3241: 		;; 
 3242: 	arm*-*-elf)
 3243: 		tm_file=arm/unknown-elf.h
 3244: 		tmake_file=arm/t-arm-elf
 3245: 		;;
 3246:         arm*-*-oabi)
 3247: 		tm_file=arm/unknown-elf-oabi.h
 3248: 		tmake_file=arm/t-arm-elf
 3249: 		;;
 3250: 	c1-convex-*)			# Convex C1
 3251: 		target_cpu_default=1
 3252: 		use_collect2=yes
 3253: 		;;
 3254: 	c2-convex-*)			# Convex C2
 3255: 		target_cpu_default=2
 3256: 		use_collect2=yes
 3257: 		;;
 3258: 	c32-convex-*)
 3259: 		target_cpu_default=4
 3260: 		use_collect2=yes
 3261: 		;;
 3262: 	c34-convex-*)
 3263: 		target_cpu_default=8
 3264: 		use_collect2=yes
 3265: 		;;
 3266: 	c38-convex-*)
 3267: 		target_cpu_default=16		
 3268: 		use_collect2=yes
 3269: 		;;
 3270:  	c4x-*)
 3271:  		cpu_type=c4x
 3272:  		tmake_file=c4x/t-c4x
 3273:  		;;
 3274: 	clipper-intergraph-clix*)
 3275: 		tm_file="${tm_file} svr3.h clipper/clix.h"
 3276: 		xm_file=clipper/xm-clix.h
 3277: 		xmake_file=clipper/x-clix
 3278: 		extra_headers=va-clipper.h
 3279: 		extra_parts="crtbegin.o crtend.o"
 3280: 		install_headers_dir=install-headers-cpio
 3281: 		;;
 3282: 	dsp16xx-*)
 3283: 		;;
 3284: 	elxsi-elxsi-*)
 3285: 		use_collect2=yes
 3286: 		;;
 3287: # This hasn't been upgraded to GCC 2.
 3288: #	fx80-alliant-*)			# Alliant FX/80
 3289: #		;;
 3290: 	h8300-*-*)
 3291: 		float_format=i32
 3292: 		;;
 3293: 	hppa*-*-openbsd*)
 3294: 		target_cpu_default="MASK_PA_11"
 3295: 		tmake_file=pa/t-openbsd
 3296: 		;;
 3297: 	hppa1.1-*-pro*)
 3298: 		tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
 3299: 		xm_file=pa/xm-papro.h
 3300: 		tmake_file=pa/t-pro
 3301: 		;;
 3302: 	hppa1.1-*-osf*)
 3303: 		target_cpu_default="MASK_PA_11"
 3304: 		tm_file="${tm_file} pa/pa-osf.h"
 3305: 		use_collect2=yes
 3306: 		;;
 3307: 	hppa1.1-*-rtems*)
 3308: 		tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
 3309: 		xm_file=pa/xm-papro.h
 3310: 		tmake_file=pa/t-pro
 3311: 		;;
 3312: 	hppa1.0-*-osf*)
 3313: 		tm_file="${tm_file} pa/pa-osf.h"
 3314: 		use_collect2=yes
 3315: 		;;
 3316: 	hppa1.1-*-bsd*)
 3317: 		target_cpu_default="MASK_PA_11"
 3318: 		use_collect2=yes
 3319: 		;;
 3320: 	hppa1.0-*-bsd*)
 3321: 		use_collect2=yes
 3322: 		;;
 3323: 	hppa1.0-*-hpux7*)
 3324: 		tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
 3325: 		xm_file=pa/xm-pahpux.h
 3326: 		xmake_file=pa/x-pa-hpux
 3327: 		if test x$gas = xyes
 3328: 		then
 3329: 			tm_file="${tm_file} pa/gas.h"
 3330: 		fi
 3331: 		install_headers_dir=install-headers-cpio
 3332: 		use_collect2=yes
 3333: 		;;
 3334: 	hppa1.0-*-hpux8.0[0-2]*)
 3335: 		tm_file="${tm_file} pa/pa-hpux.h"
 3336: 		xm_file=pa/xm-pahpux.h
 3337: 		xmake_file=pa/x-pa-hpux
 3338: 		if test x$gas = xyes
 3339: 		then
 3340: 			tm_file="${tm_file} pa/pa-gas.h"
 3341: 		else
 3342: 			tm_file="pa/pa-oldas.h ${tm_file}"
 3343: 		fi
 3344: 		install_headers_dir=install-headers-cpio
 3345: 		use_collect2=yes
 3346: 		;;
 3347: 	hppa1.1-*-hpux8.0[0-2]*)
 3348: 		target_cpu_default="MASK_PA_11"
 3349: 		tm_file="${tm_file} pa/pa-hpux.h"
 3350: 		xm_file=pa/xm-pahpux.h
 3351: 		xmake_file=pa/x-pa-hpux
 3352: 		if test x$gas = xyes
 3353: 		then
 3354: 			tm_file="${tm_file} pa/pa-gas.h"
 3355: 		else
 3356: 			tm_file="pa/pa-oldas.h ${tm_file}"
 3357: 		fi
 3358: 		install_headers_dir=install-headers-cpio
 3359: 		use_collect2=yes
 3360: 		;;
 3361: 	hppa1.1-*-hpux8*)
 3362: 		target_cpu_default="MASK_PA_11"
 3363: 		tm_file="${tm_file} pa/pa-hpux.h"
 3364: 		xm_file=pa/xm-pahpux.h
 3365: 		xmake_file=pa/x-pa-hpux
 3366: 		if test x$gas = xyes
 3367: 		then
 3368: 			tm_file="${tm_file} pa/pa-gas.h"
 3369: 		fi
 3370: 		install_headers_dir=install-headers-cpio
 3371: 		use_collect2=yes
 3372: 		;;
 3373: 	hppa1.0-*-hpux8*)
 3374: 		tm_file="${tm_file} pa/pa-hpux.h"
 3375: 		xm_file=pa/xm-pahpux.h
 3376: 		xmake_file=pa/x-pa-hpux
 3377: 		if test x$gas = xyes
 3378: 		then
 3379: 			tm_file="${tm_file} pa/pa-gas.h"
 3380: 		fi
 3381: 		install_headers_dir=install-headers-cpio
 3382: 		use_collect2=yes
 3383: 		;;
 3384: 	hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
 3385: 		target_cpu_default="MASK_PA_11"
 3386: 		tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
 3387: 		xm_file=pa/xm-pahpux.h
 3388: 		xmake_file=pa/x-pa-hpux
 3389: 		tmake_file=pa/t-pa
 3390: 		if test x$gas = xyes
 3391: 		then
 3392: 			tm_file="${tm_file} pa/pa-gas.h"
 3393: 		fi
 3394: 		if test x$enable_threads = x; then
 3395: 		    enable_threads=$have_pthread_h
 3396: 		fi
 3397:  		if test x$enable_threads = xyes; then
 3398: 			thread_file='dce'
 3399: 			tmake_file="${tmake_file} pa/t-dce-thr"
 3400: 		fi
 3401: 		install_headers_dir=install-headers-cpio
 3402: 		use_collect2=yes
 3403: 		;;
 3404: 	hppa1.0-*-hpux10*)
 3405: 		tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
 3406: 		xm_file=pa/xm-pahpux.h
 3407: 		xmake_file=pa/x-pa-hpux
 3408: 		tmake_file=pa/t-pa
 3409: 		if test x$gas = xyes
 3410: 		then
 3411: 			tm_file="${tm_file} pa/pa-gas.h"
 3412: 		fi
 3413: 		if test x$enable_threads = x; then
 3414: 		    enable_threads=$have_pthread_h
 3415: 		fi
 3416:  		if test x$enable_threads = xyes; then
 3417: 			thread_file='dce'
 3418: 			tmake_file="${tmake_file} pa/t-dce-thr"
 3419: 		fi
 3420: 		install_headers_dir=install-headers-cpio
 3421: 		use_collect2=yes
 3422: 		;;
 3423: 	hppa1.1-*-hpux* | hppa2*-*-hpux*)
 3424: 		target_cpu_default="MASK_PA_11"
 3425: 		tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
 3426: 		xm_file=pa/xm-pahpux.h
 3427: 		xmake_file=pa/x-pa-hpux
 3428: 		if test x$gas = xyes
 3429: 		then
 3430: 			tm_file="${tm_file} pa/pa-gas.h"
 3431: 		fi
 3432: 		install_headers_dir=install-headers-cpio
 3433: 		use_collect2=yes
 3434: 		;;
 3435: 	hppa1.0-*-hpux*)
 3436: 		tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
 3437: 		xm_file=pa/xm-pahpux.h
 3438: 		xmake_file=pa/x-pa-hpux
 3439: 		if test x$gas = xyes
 3440: 		then
 3441: 			tm_file="${tm_file} pa/pa-gas.h"
 3442: 		fi
 3443: 		install_headers_dir=install-headers-cpio
 3444: 		use_collect2=yes
 3445: 		;;
 3446: 	hppa1.1-*-hiux* | hppa2*-*-hiux*)
 3447: 		target_cpu_default="MASK_PA_11"
 3448: 		tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
 3449: 		xm_file=pa/xm-pahpux.h
 3450: 		xmake_file=pa/x-pa-hpux
 3451: 		if test x$gas = xyes
 3452: 		then
 3453: 			tm_file="${tm_file} pa/pa-gas.h"
 3454: 		fi
 3455: 		install_headers_dir=install-headers-cpio
 3456: 		use_collect2=yes
 3457: 		;;
 3458: 	hppa1.0-*-hiux*)
 3459: 		tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
 3460: 		xm_file=pa/xm-pahpux.h
 3461: 		xmake_file=pa/x-pa-hpux
 3462: 		if test x$gas = xyes
 3463: 		then
 3464: 			tm_file="${tm_file} pa/pa-gas.h"
 3465: 		fi
 3466: 		install_headers_dir=install-headers-cpio
 3467: 		use_collect2=yes
 3468: 		;;
 3469: 	hppa*-*-lites*)
 3470: 		target_cpu_default="MASK_PA_11"
 3471: 		use_collect2=yes
 3472: 		;;
 3473: 	i370-*-mvs*)
 3474: 		;;
 3475: 	i[34567]86-ibm-aix*)		# IBM PS/2 running AIX
 3476:                 if test x$gas = xyes
 3477: 		then
 3478: 			tm_file=i386/aix386.h
 3479: 			extra_parts="crtbegin.o crtend.o"
 3480: 			tmake_file=i386/t-crtstuff
 3481: 		else
 3482: 			tm_file=i386/aix386ng.h
 3483: 			use_collect2=yes
 3484: 		fi
 3485: 		xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
 3486: 		xm_defines=USG
 3487: 		xmake_file=i386/x-aix
 3488: 		;;
 3489: 	i[34567]86-ncr-sysv4*)		# NCR 3000 - ix86 running system V.4
 3490: 		xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
 3491: 		xm_defines="USG POSIX SMALL_ARG_MAX"
 3492: 		xmake_file=i386/x-ncr3000
 3493: 		if test x$stabs = xyes -a x$gas = xyes
 3494: 		then
 3495: 			tm_file=i386/sysv4gdb.h
 3496: 		else
 3497: 			tm_file=i386/sysv4.h
 3498: 		fi
 3499: 		extra_parts="crtbegin.o crtend.o"
 3500: 		tmake_file=i386/t-crtpic
 3501: 		;;
 3502: 	i[34567]86-next-*)
 3503: 		tm_file=i386/next.h
 3504: 		xm_file=i386/xm-next.h
 3505: 		tmake_file=i386/t-next
 3506: 		xmake_file=i386/x-next
 3507: 		extra_objs=nextstep.o
 3508: 		extra_parts="crtbegin.o crtend.o"
 3509:  		if test x$enable_threads = xyes; then
 3510: 			thread_file='mach'
 3511: 		fi
 3512: 		;;
 3513: 	i[34567]86-sequent-bsd*) 		# 80386 from Sequent
 3514: 		use_collect2=yes
 3515: 		if test x$gas = xyes
 3516: 		then
 3517: 			tm_file=i386/seq-gas.h
 3518: 		else
 3519: 			tm_file=i386/sequent.h
 3520: 		fi
 3521: 		;;
 3522: 	i[34567]86-sequent-ptx1*)
 3523: 		xm_defines="USG SVR3"
 3524: 		xmake_file=i386/x-sysv3
 3525: 		tm_file=i386/seq-sysv3.h
 3526: 		tmake_file=i386/t-crtstuff
 3527: 		extra_parts="crtbegin.o crtend.o"
 3528: 		install_headers_dir=install-headers-cpio
 3529: 		;;
 3530: 	i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
 3531: 		xm_defines="USG SVR3"
 3532: 		xmake_file=i386/x-sysv3
 3533: 		tm_file=i386/seq2-sysv3.h
 3534: 		tmake_file=i386/t-crtstuff
 3535: 		extra_parts="crtbegin.o crtend.o"
 3536: 		install_headers_dir=install-headers-cpio
 3537: 		;;
 3538: 	i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
 3539: 		xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
 3540: 		xm_defines="USG POSIX SMALL_ARG_MAX"
 3541: 		xmake_file=x-svr4
 3542: 		tm_file=i386/ptx4-i.h
 3543: 		tmake_file=t-svr4
 3544: 		extra_parts="crtbegin.o crtend.o"
 3545: 		install_headers_dir=install-headers-cpio
 3546: 		;;
 3547: 	i386-sun-sunos*)		# Sun i386 roadrunner
 3548: 		xm_defines=USG
 3549: 		tm_file=i386/sun.h
 3550: 		use_collect2=yes
 3551: 		;;
 3552: 	i[34567]86-wrs-vxworks*)
 3553: 		tm_file=i386/vxi386.h
 3554: 		tmake_file=i386/t-i386bare
 3555: 		thread_file='vxworks'
 3556: 		;;
 3557: 	i[34567]86-*-aout*)
 3558: 		tm_file=i386/i386-aout.h
 3559: 		tmake_file=i386/t-i386bare
 3560: 		;;
 3561: 	i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
 3562: 		tm_file=i386/bsd386.h
 3563: #		tmake_file=t-libc-ok
 3564: 		;;
 3565: 	i[34567]86-*-bsd*)
 3566: 		tm_file=i386/386bsd.h
 3567: #		tmake_file=t-libc-ok
 3568: # Next line turned off because both 386BSD and BSD/386 use GNU ld.
 3569: #		use_collect2=yes
 3570: 		;;
 3571: 	i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsdaout*)
 3572: 		tm_file=i386/freebsd-aout.h
 3573: 		# On FreeBSD, the headers are already ok, except for math.h.
 3574: 		fixincludes=fixinc.wrap
 3575: 		tmake_file=t-freebsd
 3576: 		;;
 3577: 	i[34567]86-*-freebsd* | i[34567]86-*-freebsd[3-9].* | i[34567]86-*-freebsd[3-9] | i[34567]86-*-freebsdelf*)
 3578: 		tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd.h i386/perform.h"
 3579: 		# On FreeBSD, the headers are already ok, except for math.h.
 3580: 		fixincludes=fixinc.wrap
 3581: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 3582: 		tmake_file=t-freebsd
 3583: 		gas=yes
 3584: 		gnu_ld=yes
 3585: 		stabs=yes
 3586: 		;;
 3587: 	i[34567]86-*-netbsd*)
 3588: 		tm_file=i386/netbsd.h
 3589: 		tmake_file=t-netbsd
 3590:        use_collect2=yes
 3591: 		;;
 3592: 	i[34567]86-*-openbsd*)
 3593: 		# we need collect2 until our bug is fixed...
 3594: 		use_collect2=yes
 3595: 		;;
 3596: 	i[34567]86-*-coff*)
 3597: 		tm_file=i386/i386-coff.h
 3598: 		tmake_file=i386/t-i386bare
 3599: 		;;
 3600: 	i[34567]86-*-isc*)		# 80386 running ISC system
 3601: 		xm_file="${xm_file} i386/xm-isc.h"
 3602: 		xm_defines="USG SVR3"
 3603: 		case $machine in
 3604: 		  i[34567]86-*-isc[34]*)
 3605: 		    xmake_file=i386/x-isc3
 3606: 		    ;;
 3607: 		  *)
 3608: 		    xmake_file=i386/x-isc
 3609: 		    ;;
 3610: 		esac
 3611:                 if test x$gas = xyes -a x$stabs = xyes
 3612: 		then
 3613: 			tm_file=i386/iscdbx.h
 3614: 			tmake_file=i386/t-svr3dbx
 3615: 			extra_parts="svr3.ifile svr3z.ifile"
 3616: 		else
 3617: 			tm_file=i386/isccoff.h
 3618: 			tmake_file=i386/t-crtstuff
 3619: 			extra_parts="crtbegin.o crtend.o"
 3620: 		fi
 3621: 		install_headers_dir=install-headers-cpio
 3622: 		;;
 3623: 	i[34567]86-*-linux-gnuoldld*)	# Intel 80386's running GNU/Linux
 3624: 					# pre BFD linkers
 3625: 		xmake_file=x-linux-aout
 3626: 		tmake_file="t-linux-aout i386/t-crtstuff"
 3627: 		tm_file=i386/linux-oldld.h
 3628: 		gnu_ld=yes
 3629: 		float_format=i386
 3630: 		;;
 3631: 	i[34567]86-*-linux-gnuaout*)	# Intel 80386's running GNU/Linux
 3632: 		xmake_file=x-linux-aout
 3633: 		tmake_file="t-linux-aout i386/t-crtstuff"
 3634: 		tm_file=i386/linux-aout.h
 3635: 		gnu_ld=yes
 3636: 		float_format=i386
 3637: 		;;
 3638: 	i[34567]86-*-linux-gnulibc1)	# Intel 80386's running GNU/Linux
 3639: 					# GNU/Linux C library 5
 3640: 		xmake_file=x-linux	
 3641: 		tm_file=i386/linux.h	
 3642: 		tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
 3643: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 3644: 		gnu_ld=yes
 3645: 		float_format=i386
 3646:  		if test x$enable_threads = xyes; then
 3647:  			thread_file='single'
 3648:  		fi
 3649: 		;;
 3650: 	i[34567]86-*-linux-gnu*)	# Intel 80386's running GNU/Linux
 3651: 					# aka GNU/Linux C library 6
 3652: 		xmake_file=x-linux
 3653: 		tm_file=i386/linux.h
 3654: 		tmake_file="t-linux i386/t-crtstuff"
 3655: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 3656: 		gnu_ld=yes
 3657: 		float_format=i386
 3658:  		if test x$enable_threads = xyes; then
 3659:  			thread_file='posix'
 3660:  		fi
 3661: 		;;
 3662: 	i[34567]86-*-gnu*)
 3663: 		float_format=i386
 3664: 		;;
 3665: 	i[34567]86-go32-msdos | i[34567]86-*-go32*)
 3666: 		echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
 3667: 		exit 1
 3668: 		;;
 3669: 	i[34567]86-pc-msdosdjgpp*)
 3670: 		xm_file=i386/xm-djgpp.h
 3671: 		tm_file=i386/djgpp.h
 3672: 		tmake_file=i386/t-djgpp
 3673: 		xmake_file=i386/x-djgpp
 3674: 		gnu_ld=yes
 3675: 		gas=yes
 3676: 		exeext=.exe
 3677: 		case $host in *pc-msdosdjgpp*)
 3678: 			target_alias=djgpp
 3679: 			;;
 3680: 		esac
 3681: 		;;
 3682: 	i[34567]86-moss-msdos* | i[34567]86-*-moss*)
 3683: 		tm_file=i386/moss.h
 3684: 		tmake_file=t-libc-ok
 3685: 		gnu_ld=yes
 3686: 		gas=yes
 3687: 		;;
 3688: 	i[34567]86-*-lynxos*)
 3689: 		if test x$gas = xyes
 3690: 		then
 3691: 			tm_file=i386/lynx.h
 3692: 		else
 3693: 			tm_file=i386/lynx-ng.h
 3694: 		fi
 3695: 		xm_file=i386/xm-lynx.h
 3696: 		tmake_file=i386/t-i386bare
 3697: 		xmake_file=x-lynx
 3698: 		;;
 3699: 	i[34567]86-*-mach*)
 3700: 		tm_file=i386/mach.h
 3701: #		tmake_file=t-libc-ok
 3702: 		use_collect2=yes
 3703: 		;;
 3704: 	i[34567]86-*-osfrose*)		# 386 using OSF/rose
 3705:                 if test x$elf = xyes
 3706: 		then
 3707: 			tm_file=i386/osfelf.h
 3708: 			use_collect2=
 3709: 		else
 3710: 			tm_file=i386/osfrose.h
 3711: 			use_collect2=yes
 3712: 		fi
 3713: 		xm_file="i386/xm-osf.h ${xm_file}"
 3714: 		xmake_file=i386/x-osfrose
 3715: 		tmake_file=i386/t-osf
 3716: 		extra_objs=halfpic.o
 3717: 		;;
 3718: 	i[34567]86-go32-rtems*)
 3719: 		cpu_type=i386
 3720: 		xm_file=i386/xm-go32.h
 3721: 		tm_file=i386/go32-rtems.h
 3722: 		tmake_file="i386/t-go32 t-rtems"
 3723: 		;;
 3724: 	i[34567]86-*-rtemself*)
 3725: 		cpu_type=i386
 3726: 		tm_file=i386/rtemself.h
 3727: 		tmake_file="i386/t-i386bare t-rtems"
 3728: 		;;
 3729: 	i[34567]86-*-rtems*)
 3730: 		cpu_type=i386
 3731: 		tm_file=i386/rtems.h
 3732: 		tmake_file="i386/t-i386bare t-rtems"
 3733: 		;;
 3734: 	i[34567]86-*-sco3.2v5*)	# 80386 running SCO Open Server 5
 3735: 		xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
 3736: 		xm_defines="USG SVR3"
 3737: 		xmake_file=i386/x-sco5
 3738: 		install_headers_dir=install-headers-cpio
 3739: 		tm_file=i386/sco5.h
 3740: 		if test x$gas = xyes
 3741: 		then
 3742: 			tm_file="i386/sco5gas.h ${tm_file}"
 3743: 			tmake_file=i386/t-sco5gas
 3744: 		else
 3745: 			tmake_file=i386/t-sco5
 3746: 		fi
 3747: 		extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
 3748: 		;;
 3749: 	i[34567]86-*-sco3.2v4*) 	# 80386 running SCO 3.2v4 system
 3750: 		xm_file="${xm_file} i386/xm-sco.h"
 3751: 		xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
 3752: 		xmake_file=i386/x-sco4
 3753: 		install_headers_dir=install-headers-cpio
 3754:                 if test x$stabs = xyes
 3755: 		then
 3756: 			tm_file=i386/sco4dbx.h
 3757: 			tmake_file=i386/t-svr3dbx
 3758: 			extra_parts="svr3.ifile svr3z.rfile"
 3759: 		else
 3760: 			tm_file=i386/sco4.h
 3761: 			tmake_file=i386/t-crtstuff
 3762: 			extra_parts="crtbegin.o crtend.o"
 3763: 		fi
 3764: 		truncate_target=yes
 3765: 		;;
 3766: 	i[34567]86-*-sco*)	 	# 80386 running SCO system
 3767: 		xm_file=i386/xm-sco.h
 3768: 		xmake_file=i386/x-sco
 3769: 		install_headers_dir=install-headers-cpio
 3770:                 if test x$stabs = xyes
 3771: 		then
 3772: 			tm_file=i386/scodbx.h
 3773: 			tmake_file=i386/t-svr3dbx
 3774: 			extra_parts="svr3.ifile svr3z.rfile"
 3775: 		else
 3776: 			tm_file=i386/sco.h
 3777: 			extra_parts="crtbegin.o crtend.o"
 3778: 			tmake_file=i386/t-crtstuff
 3779: 		fi
 3780: 		truncate_target=yes
 3781: 		;;
 3782: 	i[34567]86-*-solaris2*)
 3783: 		xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
 3784: 		xm_defines="USG POSIX SMALL_ARG_MAX"
 3785: 		tm_file=i386/sol2.h
 3786: 		if test x$gas = xyes; then
 3787: 			# Only needed if gas does not support -s
 3788: 			tm_file="i386/sol2gas.h ${tm_file}"
 3789: 		fi
 3790: 		tmake_file=i386/t-sol2
 3791: 		extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
 3792: 		xmake_file=x-svr4
 3793:  		if test x$enable_threads = xyes; then
 3794: 			thread_file='solaris'
 3795: 		fi
 3796: 		;;
 3797:        i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
 3798:                xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
 3799:                xm_defines="USG POSIX"
 3800:                tm_file=i386/sysv5.h
 3801:                if test x$stabs = xyes
 3802:                then
 3803:                        tm_file="${tm_file} dbx.h"
 3804:                fi
 3805:                tmake_file=i386/t-crtpic
 3806:                xmake_file=x-svr4
 3807:                extra_parts="crtbegin.o crtend.o"
 3808: 	       if test x$enable_threads = xyes; then
 3809: 		       thread_file='posix'
 3810: 	       fi
 3811:                ;;
 3812: 	i[34567]86-*-sysv4*)		# Intel 80386's running system V.4
 3813: 		xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
 3814: 		xm_defines="USG POSIX SMALL_ARG_MAX"
 3815: 		tm_file=i386/sysv4.h
 3816: 		if test x$stabs = xyes
 3817: 		then
 3818: 			tm_file="${tm_file} dbx.h"
 3819: 		fi
 3820: 		tmake_file=i386/t-crtpic
 3821: 		xmake_file=x-svr4
 3822: 		extra_parts="crtbegin.o crtend.o"
 3823: 		;;
 3824: 	i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
 3825: 		xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
 3826: 		xm_defines="USG POSIX"
 3827: 		tm_file=i386/udk.h
 3828: 		tmake_file="i386/t-crtpic i386/t-udk"
 3829: 		xmake_file=x-svr4
 3830: 		extra_parts="crtbegin.o crtend.o"
 3831: 		install_headers_dir=install-headers-cpio
 3832: 		;;
 3833: 	i[34567]86-*-osf1*)		# Intel 80386's running OSF/1 1.3+
 3834: 		cpu_type=i386
 3835: 		xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
 3836: 		xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
 3837: 		if test x$stabs = xyes
 3838: 		then
 3839: 			tm_file=i386/osf1elfgdb.h
 3840: 		else
 3841: 			tm_file=i386/osf1elf.h
 3842: 		fi
 3843: 		tmake_file=i386/t-osf1elf
 3844: 		xmake_file=i386/x-osf1elf
 3845: 		extra_parts="crti.o crtn.o crtbegin.o crtend.o"
 3846: 		;;
 3847: 	i[34567]86-*-sysv*)		# Intel 80386's running system V
 3848: 		xm_defines="USG SVR3"
 3849: 		xmake_file=i386/x-sysv3
 3850: 		if test x$gas = xyes
 3851: 		then
 3852: 			if test x$stabs = xyes
 3853: 			then
 3854: 				tm_file=i386/svr3dbx.h
 3855: 				tmake_file=i386/t-svr3dbx
 3856: 				extra_parts="svr3.ifile svr3z.rfile"
 3857: 			else
 3858: 				tm_file=i386/svr3gas.h
 3859: 				extra_parts="crtbegin.o crtend.o"
 3860: 				tmake_file=i386/t-crtstuff
 3861: 			fi
 3862: 		else
 3863: 			tm_file=i386/sysv3.h
 3864: 			extra_parts="crtbegin.o crtend.o"
 3865: 			tmake_file=i386/t-crtstuff
 3866: 		fi
 3867: 		;;
 3868: 	i386-*-vsta)			# Intel 80386's running VSTa kernel
 3869: 		xm_file="${xm_file} i386/xm-vsta.h"
 3870: 		tm_file=i386/vsta.h
 3871: 		tmake_file=i386/t-vsta
 3872: 		xmake_file=i386/x-vsta
 3873: 		;;
 3874: 	i[34567]86-*-win32)
 3875: 		xm_file="${xm_file} i386/xm-cygwin.h"
 3876: 		tmake_file=i386/t-cygwin
 3877: 		tm_file=i386/win32.h
 3878: 		xmake_file=i386/x-cygwin
 3879: 		extra_objs=winnt.o
 3880:  		if test x$enable_threads = xyes; then
 3881: 			thread_file='win32'
 3882: 		fi
 3883: 		exeext=.exe
 3884: 		;;
 3885: 	i[34567]86-*-pe | i[34567]86-*-cygwin*)
 3886: 		xm_file="${xm_file} i386/xm-cygwin.h"
 3887: 		tmake_file=i386/t-cygwin
 3888: 		tm_file=i386/cygwin.h
 3889: 		xmake_file=i386/x-cygwin
 3890: 		extra_objs=winnt.o
 3891:  		if test x$enable_threads = xyes; then
 3892: 			thread_file='win32'
 3893: 		fi
 3894: 		exeext=.exe
 3895: 		;;
 3896: 	i[34567]86-*-mingw32*)
 3897: 		tm_file=i386/mingw32.h
 3898: 		xm_file="${xm_file} i386/xm-mingw32.h"
 3899: 		tmake_file="i386/t-cygwin i386/t-mingw32"
 3900: 		extra_objs=winnt.o
 3901: 		xmake_file=i386/x-cygwin
 3902:  		if test x$enable_threads = xyes; then
 3903: 			thread_file='win32'
 3904: 		fi
 3905: 		exeext=.exe
 3906: 		case $machine in
 3907: 			*mingw32msv*)
 3908: 				;;
 3909: 			*minwg32crt* | *mingw32*)
 3910: 				tm_file="${tm_file} i386/crtdll.h"
 3911: 				;;
 3912: 		esac
 3913: 		;;
 3914: 	i[34567]86-*-uwin*)
 3915: 		tm_file=i386/uwin.h
 3916: 		tmake_file="i386/t-cygwin i386/t-uwin"
 3917: 		extra_objs=winnt.o
 3918: 		xmake_file=i386/x-cygwin
 3919:  		if test x$enable_threads = xyes; then
 3920: 			thread_file='win32'
 3921: 		fi
 3922: 		exeext=.exe
 3923: 		;;
 3924: 	i[34567]86-*-interix*)
 3925: 		tm_file="i386/i386-interix.h interix.h"
 3926: 		xm_file="i386/xm-i386-interix.h xm-interix.h"
 3927: 		xm_defines="USG NO_SYS_SIGLIST"
 3928: 		tmake_file="i386/t-interix"
 3929: 		extra_objs=interix.o
 3930: 		xmake_file=x-interix
 3931:  		if test x$enable_threads = xyes ; then
 3932: 			thread_file='posix'
 3933: 		fi
 3934:  		if test x$stabs = xyes ; then
 3935: 			tm_file="${tm_file} dbxcoff.h"
 3936: 		fi
 3937: 		;;
 3938: 	i[34567]86-*-winnt3*)
 3939: 		tm_file=i386/win-nt.h
 3940: 		out_file=i386/i386.c
 3941: 		xm_file="xm-winnt.h ${xm_file}"
 3942: 		xmake_file=winnt/x-winnt
 3943: 		tmake_file=i386/t-winnt
 3944: 		extra_host_objs="winnt.o oldnames.o"
 3945: 		extra_gcc_objs="spawnv.o oldnames.o"
 3946: 		if test x$gnu_ld != xyes
 3947: 		then
 3948: 			extra_programs=ld.exe
 3949: 		fi
 3950:  		if test x$enable_threads = xyes; then
 3951: 			thread_file='win32'
 3952: 		fi
 3953: 		;;
 3954: 	i[34567]86-dg-dgux*)
 3955: 		xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
 3956: 		xm_defines="USG POSIX"
 3957: 		out_file=i386/dgux.c
 3958: 		tm_file=i386/dgux.h
 3959: 		tmake_file=i386/t-dgux
 3960: 		xmake_file=i386/x-dgux
 3961: 		install_headers_dir=install-headers-cpio
 3962:               ;;
 3963: 	i860-alliant-*)		# Alliant FX/2800
 3964: 		tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
 3965: 		xm_file="${xm_file}"
 3966: 		xmake_file=i860/x-fx2800
 3967: 		tmake_file=i860/t-fx2800
 3968: 		extra_parts="crtbegin.o crtend.o"
 3969: 		;;
 3970: 	i860-*-bsd*)
 3971: 		tm_file="${tm_file} i860/bsd.h"
 3972: 		if test x$gas = xyes
 3973: 		then
 3974: 			tm_file="${tm_file} i860/bsd-gas.h"
 3975: 		fi
 3976: 		use_collect2=yes
 3977: 		;;
 3978: 	i860-*-mach*)
 3979: 		tm_file="${tm_file} i860/mach.h"
 3980: 		tmake_file=t-libc-ok
 3981: 		;;
 3982: 	i860-*-osf*)			# Intel Paragon XP/S, OSF/1AD
 3983: 		tm_file="${tm_file} svr3.h i860/paragon.h"
 3984: 		xm_defines="USG SVR3"
 3985: 		tmake_file=t-osf
 3986: 		;;
 3987: 	i860-*-sysv3*)
 3988: 		tm_file="${tm_file} svr3.h i860/sysv3.h"
 3989: 		xm_defines="USG SVR3"
 3990: 		xmake_file=i860/x-sysv3
 3991: 		extra_parts="crtbegin.o crtend.o"
 3992: 		;;
 3993: 	i860-*-sysv4*)
 3994: 		tm_file="${tm_file} svr4.h i860/sysv4.h"
 3995: 		xm_defines="USG SVR3"
 3996: 		xmake_file=i860/x-sysv4
 3997: 		tmake_file=t-svr4
 3998: 		extra_parts="crtbegin.o crtend.o"
 3999: 		;;
 4000: 	i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
 4001: 		tm_file="${tm_file} i960/vx960.h"
 4002: 		tmake_file=i960/t-vxworks960
 4003: 		use_collect2=yes
 4004: 		thread_file='vxworks'
 4005: 		;;
 4006: 	i960-wrs-vxworks5* | i960-wrs-vxworks)
 4007: 		tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
 4008: 		tmake_file=i960/t-vxworks960
 4009: 		use_collect2=yes
 4010: 		thread_file='vxworks'
 4011: 		;;
 4012: 	i960-wrs-vxworks*)
 4013: 		tm_file="${tm_file} i960/vx960.h"
 4014: 		tmake_file=i960/t-vxworks960
 4015: 		use_collect2=yes
 4016: 		thread_file='vxworks'
 4017: 		;;
 4018: 	i960-*-coff*)
 4019: 		tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
 4020: 		tmake_file=i960/t-960bare
 4021: 		use_collect2=yes
 4022: 		;;
 4023: 	i960-*-rtems)
 4024: 		tmake_file="i960/t-960bare t-rtems"
 4025: 		tm_file="${tm_file} dbxcoff.h i960/rtems.h"
 4026: 		use_collect2=yes
 4027: 		;;
 4028: 	i960-*-*)			# Default i960 environment.
 4029: 		use_collect2=yes
 4030: 		;;
 4031: 	m32r-*-elf*)
 4032: 		extra_parts="crtinit.o crtfini.o"
 4033: 		;;
 4034: 	m68000-convergent-sysv*)
 4035: 		tm_file=m68k/ctix.h
 4036: 		xm_file="m68k/xm-3b1.h ${xm_file}"
 4037: 		xm_defines=USG
 4038: 		use_collect2=yes
 4039: 		extra_headers=math-68881.h
 4040: 		;;
 4041: 	m68000-hp-bsd*)			# HP 9000/200 running BSD
 4042: 		tm_file=m68k/hp2bsd.h
 4043: 		xmake_file=m68k/x-hp2bsd
 4044: 		use_collect2=yes
 4045: 		extra_headers=math-68881.h
 4046: 		;;
 4047: 	m68000-hp-hpux*)		# HP 9000 series 300
 4048: 		xm_file="xm-alloca.h ${xm_file}"
 4049: 		xm_defines="USG NO_SYS_SIGLIST"
 4050: 		if test x$gas = xyes
 4051: 		then
 4052: 			xmake_file=m68k/x-hp320g
 4053: 			tm_file=m68k/hp310g.h
 4054: 		else
 4055: 			xmake_file=m68k/x-hp320
 4056: 			tm_file=m68k/hp310.h
 4057: 		fi
 4058: 		install_headers_dir=install-headers-cpio
 4059: 		use_collect2=yes
 4060: 		extra_headers=math-68881.h
 4061: 		;;
 4062: 	m68000-sun-sunos3*)
 4063: 		tm_file=m68k/sun2.h
 4064: 		use_collect2=yes
 4065: 		extra_headers=math-68881.h
 4066: 		;;
 4067: 	m68000-sun-sunos4*)
 4068: 		tm_file=m68k/sun2o4.h
 4069: 		use_collect2=yes
 4070: 		extra_headers=math-68881.h
 4071: 		;;
 4072: 	m68000-att-sysv*)
 4073: 		xm_file="m68k/xm-3b1.h ${xm_file}"
 4074: 		xm_defines=USG
 4075: 		if test x$gas = xyes
 4076: 		then
 4077: 			tm_file=m68k/3b1g.h
 4078: 		else
 4079: 			tm_file=m68k/3b1.h
 4080: 		fi
 4081: 		use_collect2=yes
 4082: 		extra_headers=math-68881.h
 4083: 		;;
 4084: 	m68k-apple-aux*)		# Apple Macintosh running A/UX
 4085: 		xm_defines="USG AUX"
 4086: 		tmake_file=m68k/t-aux
 4087: 		install_headers_dir=install-headers-cpio
 4088: 		extra_headers=math-68881.h
 4089: 		extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
 4090: 		tm_file=
 4091: 		if test "$gnu_ld" = yes
 4092: 		then
 4093: 			tm_file="${tm_file} m68k/auxgld.h"
 4094: 		else
 4095: 			tm_file="${tm_file} m68k/auxld.h"
 4096: 		fi
 4097: 		if test "$gas" = yes
 4098: 		then
 4099: 			tm_file="${tm_file} m68k/auxgas.h"
 4100: 		else
 4101: 			tm_file="${tm_file} m68k/auxas.h"
 4102: 		fi
 4103: 		tm_file="${tm_file} m68k/a-ux.h"
 4104: 		float_format=m68k
 4105: 		;;
 4106: 	m68k-apollo-*)
 4107: 		tm_file=m68k/apollo68.h
 4108: 		xmake_file=m68k/x-apollo68
 4109: 		use_collect2=yes
 4110: 		extra_headers=math-68881.h
 4111: 		float_format=m68k
 4112: 		;;
 4113: 	m68k-altos-sysv*)		   # Altos 3068
 4114: 		if test x$gas = xyes
 4115: 		then
 4116: 		        tm_file=m68k/altos3068.h
 4117: 			xm_defines=USG
 4118: 		else
 4119: 			echo "The Altos is supported only with the GNU assembler" 1>&2
 4120: 			exit 1
 4121: 		fi
 4122: 		extra_headers=math-68881.h
 4123: 	        ;;
 4124: 	m68k-bull-sysv*)		# Bull DPX/2
 4125: 		if test x$gas = xyes
 4126: 		then
 4127: 			if test x$stabs = xyes
 4128: 			then
 4129: 				tm_file=m68k/dpx2cdbx.h
 4130: 			else
 4131: 				tm_file=m68k/dpx2g.h
 4132: 			fi
 4133: 		else
 4134: 			tm_file=m68k/dpx2.h
 4135: 		fi
 4136: 		xm_file="xm-alloca.h ${xm_file}"
 4137: 		xm_defines=USG
 4138: 		xmake_file=m68k/x-dpx2
 4139: 		use_collect2=yes
 4140: 		extra_headers=math-68881.h
 4141: 		;;
 4142: 	m68k-atari-sysv4*)              # Atari variant of V.4.
 4143: 		tm_file=m68k/atari.h
 4144: 		xm_file="xm-alloca.h ${xm_file}"
 4145: 		xm_defines="USG FULL_PROTOTYPES"
 4146: 		tmake_file=t-svr4
 4147: 		extra_parts="crtbegin.o crtend.o"
 4148: 		extra_headers=math-68881.h
 4149: 		float_format=m68k
 4150: 		;;
 4151: 	m68k-motorola-sysv*)
 4152: 		tm_file=m68k/mot3300.h
 4153: 		xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
 4154: 		xm_defines=NO_SYS_SIGLIST
 4155: 		if test x$gas = xyes
 4156: 		then
 4157: 			xmake_file=m68k/x-mot3300-gas
 4158: 			if test x$gnu_ld = xyes
 4159: 			then
 4160: 				tmake_file=m68k/t-mot3300-gald
 4161: 			else
 4162: 				tmake_file=m68k/t-mot3300-gas
 4163: 				use_collect2=yes
 4164: 			fi
 4165: 		else
 4166: 			xmake_file=m68k/x-mot3300
 4167: 			if test x$gnu_ld = xyes
 4168: 			then
 4169: 				tmake_file=m68k/t-mot3300-gld
 4170: 			else
 4171: 				tmake_file=m68k/t-mot3300
 4172: 				use_collect2=yes
 4173: 			fi
 4174: 		fi
 4175: 		gdb_needs_out_file_path=yes
 4176: 		extra_parts="crt0.o mcrt0.o"
 4177: 		extra_headers=math-68881.h
 4178: 		float_format=m68k
 4179: 		;;
 4180: 	m68k-ncr-sysv*)			# NCR Tower 32 SVR3
 4181: 		tm_file=m68k/tower-as.h
 4182: 		xm_defines="USG SVR3"
 4183: 		xmake_file=m68k/x-tower
 4184: 		extra_parts="crtbegin.o crtend.o"
 4185: 		extra_headers=math-68881.h
 4186: 		;;
 4187:         m68k-plexus-sysv*)
 4188: 		tm_file=m68k/plexus.h
 4189: 		xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
 4190: 		xm_defines=USG
 4191: 		use_collect2=yes
 4192: 		extra_headers=math-68881.h
 4193: 		;;
 4194: 	m68k-tti-*)
 4195: 		tm_file=m68k/pbb.h
 4196: 		xm_file="xm-alloca.h ${xm_file}"
 4197: 		xm_defines=USG
 4198: 		extra_headers=math-68881.h
 4199: 		;;
 4200: 	m68k-crds-unos*)
 4201: 		xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
 4202: 		xm_defines="USG unos"
 4203: 		xmake_file=m68k/x-crds
 4204: 		tm_file=m68k/crds.h
 4205: 		use_collect2=yes
 4206: 		extra_headers=math-68881.h
 4207: 		;;
 4208: 	m68k-cbm-sysv4*)		# Commodore variant of V.4.
 4209: 		tm_file=m68k/amix.h
 4210: 		xm_file="xm-alloca.h ${xm_file}"
 4211: 		xm_defines="USG FULL_PROTOTYPES"
 4212: 		xmake_file=m68k/x-amix
 4213: 		tmake_file=t-svr4
 4214: 		extra_parts="crtbegin.o crtend.o"
 4215: 		extra_headers=math-68881.h
 4216: 		float_format=m68k
 4217: 		;;
 4218: 	m68k-ccur-rtu)
 4219: 		tm_file=m68k/ccur-GAS.h
 4220: 		xmake_file=m68k/x-ccur
 4221: 		extra_headers=math-68881.h
 4222: 		use_collect2=yes
 4223: 		float_format=m68k
 4224: 		;;
 4225: 	m68k-hp-bsd4.4*)		# HP 9000/3xx running 4.4bsd
 4226: 		tm_file=m68k/hp3bsd44.h
 4227: 		use_collect2=yes
 4228: 		extra_headers=math-68881.h
 4229: 		float_format=m68k
 4230: 		;;
 4231: 	m68k-hp-bsd*)			# HP 9000/3xx running Berkeley Unix
 4232: 		tm_file=m68k/hp3bsd.h
 4233: 		use_collect2=yes
 4234: 		extra_headers=math-68881.h
 4235: 		float_format=m68k
 4236: 		;;
 4237: 	m68k-isi-bsd*)
 4238: 		if test x$with_fp = xno
 4239: 		then
 4240: 			tm_file=m68k/isi-nfp.h
 4241: 		else
 4242: 			tm_file=m68k/isi.h
 4243: 			float_format=m68k
 4244: 		fi
 4245: 		use_collect2=yes
 4246: 		extra_headers=math-68881.h
 4247: 		;;
 4248: 	m68k-hp-hpux7*)	# HP 9000 series 300 running HPUX version 7.
 4249: 		xm_file="xm-alloca.h ${xm_file}"
 4250: 		xm_defines="USG NO_SYS_SIGLIST"
 4251: 		if test x$gas = xyes
 4252: 		then
 4253: 			xmake_file=m68k/x-hp320g
 4254: 			tm_file=m68k/hp320g.h
 4255: 		else
 4256: 			xmake_file=m68k/x-hp320
 4257: 			tm_file=m68k/hpux7.h
 4258: 		fi
 4259: 		install_headers_dir=install-headers-cpio
 4260: 		use_collect2=yes
 4261: 		extra_headers=math-68881.h
 4262: 		float_format=m68k
 4263: 		;;
 4264: 	m68k-hp-hpux*)	# HP 9000 series 300
 4265: 		xm_file="xm-alloca.h ${xm_file}"
 4266: 		xm_defines="USG NO_SYS_SIGLIST"
 4267: 		if test x$gas = xyes
 4268: 		then
 4269: 			xmake_file=m68k/x-hp320g
 4270: 			tm_file=m68k/hp320g.h
 4271: 		else
 4272: 			xmake_file=m68k/x-hp320
 4273: 			tm_file=m68k/hp320.h
 4274: 		fi
 4275: 		install_headers_dir=install-headers-cpio
 4276: 		use_collect2=yes
 4277: 		extra_headers=math-68881.h
 4278: 		float_format=m68k
 4279: 		;;
 4280: 	m68k-sun-mach*)
 4281: 		tm_file=m68k/sun3mach.h
 4282: 		use_collect2=yes
 4283: 		extra_headers=math-68881.h
 4284: 		float_format=m68k
 4285: 		;;
 4286: 	m68k-sony-newsos3*)
 4287: 		if test x$gas = xyes
 4288: 		then
 4289: 			tm_file=m68k/news3gas.h
 4290: 		else
 4291: 			tm_file=m68k/news3.h
 4292: 		fi
 4293: 		use_collect2=yes
 4294: 		extra_headers=math-68881.h
 4295: 		float_format=m68k
 4296: 		;;
 4297: 	m68k-sony-bsd* | m68k-sony-newsos*)
 4298: 		if test x$gas = xyes
 4299: 		then
 4300: 			tm_file=m68k/newsgas.h
 4301: 		else
 4302: 			tm_file=m68k/news.h
 4303: 		fi
 4304: 		use_collect2=yes
 4305: 		extra_headers=math-68881.h
 4306: 		float_format=m68k
 4307: 		;;
 4308: 	m68k-next-nextstep2*)
 4309: 		tm_file=m68k/next21.h
 4310: 		xm_file="m68k/xm-next.h ${xm_file}"
 4311: 		tmake_file=m68k/t-next
 4312: 		xmake_file=m68k/x-next
 4313: 		extra_objs=nextstep.o
 4314: 		extra_headers=math-68881.h
 4315: 		use_collect2=yes
 4316: 		float_format=m68k
 4317:                 ;;
 4318: 	m68k-next-nextstep3*)
 4319: 		tm_file=m68k/next.h
 4320: 		xm_file="m68k/xm-next.h ${xm_file}"
 4321: 		tmake_file=m68k/t-next
 4322: 		xmake_file=m68k/x-next
 4323: 		extra_objs=nextstep.o
 4324: 		extra_parts="crtbegin.o crtend.o"
 4325: 		extra_headers=math-68881.h
 4326: 		float_format=m68k
 4327:  		if test x$enable_threads = xyes; then
 4328: 			thread_file='mach'
 4329: 		fi
 4330: 		;;
 4331: 	m68k-sun-sunos3*)
 4332: 		if test x$with_fp = xno
 4333: 		then
 4334: 			tm_file=m68k/sun3n3.h
 4335: 		else
 4336: 			tm_file=m68k/sun3o3.h
 4337: 			float_format=m68k
 4338: 		fi
 4339: 		use_collect2=yes
 4340: 		extra_headers=math-68881.h
 4341: 		;;
 4342: 	m68k-sun-sunos*)			# For SunOS 4 (the default).
 4343: 		if test x$with_fp = xno
 4344: 		then
 4345: 			tm_file=m68k/sun3n.h
 4346: 		else
 4347: 			tm_file=m68k/sun3.h
 4348: 			float_format=m68k
 4349: 		fi
 4350: 		use_collect2=yes
 4351: 		extra_headers=math-68881.h
 4352: 		;;
 4353: 	m68k-wrs-vxworks*)
 4354: 		tm_file=m68k/vxm68k.h
 4355: 		tmake_file=m68k/t-vxworks68
 4356: 		extra_headers=math-68881.h
 4357: 		thread_file='vxworks'
 4358: 		float_format=m68k
 4359: 		;;
 4360: 	m68k-*-aout*)
 4361: 		tmake_file=m68k/t-m68kbare
 4362: 		tm_file="m68k/m68k-aout.h libgloss.h"
 4363: 		extra_headers=math-68881.h
 4364: 		float_format=m68k
 4365: 		;;
 4366: 	m68k-*-coff*)
 4367: 		tmake_file=m68k/t-m68kbare
 4368: 		tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
 4369: 		extra_headers=math-68881.h
 4370: 		float_format=m68k
 4371: 		;;
 4372: 	m68020-*-elf* | m68k-*-elf*)
 4373: 		tm_file="m68k/m68020-elf.h libgloss.h"
 4374: 		xm_file=m68k/xm-m68kv.h
 4375: 		tmake_file=m68k/t-m68kelf
 4376: 		header_files=math-68881.h
 4377: 		;;
 4378: 	m68k-*-lynxos*)
 4379: 		if test x$gas = xyes
 4380: 		then
 4381: 			tm_file=m68k/lynx.h
 4382: 		else
 4383: 			tm_file=m68k/lynx-ng.h
 4384: 		fi
 4385: 		xm_file=m68k/xm-lynx.h
 4386: 		xmake_file=x-lynx
 4387: 		tmake_file=m68k/t-lynx
 4388: 		extra_headers=math-68881.h
 4389: 		float_format=m68k
 4390: 		;;
 4391: 	m68k*-*-netbsd*)
 4392: 		tm_file=m68k/netbsd.h
 4393: 		tmake_file=t-netbsd
 4394: 		float_format=m68k
 4395:        use_collect2=yes
 4396: 		;;
 4397: 	m68k*-*-openbsd*)
 4398: 		float_format=m68k
 4399: 		# we need collect2 until our bug is fixed...
 4400: 		use_collect2=yes
 4401: 		;;
 4402: 	m68k-*-sysv3*)			# Motorola m68k's running system V.3
 4403: 		xm_file="xm-alloca.h ${xm_file}"
 4404: 		xm_defines=USG
 4405: 		xmake_file=m68k/x-m68kv
 4406: 		extra_parts="crtbegin.o crtend.o"
 4407: 		extra_headers=math-68881.h
 4408: 		float_format=m68k
 4409: 		;;
 4410: 	m68k-*-sysv4*)			# Motorola m68k's running system V.4
 4411: 		tm_file=m68k/m68kv4.h
 4412: 		xm_file="xm-alloca.h ${xm_file}"
 4413: 		xm_defines=USG
 4414: 		tmake_file=t-svr4
 4415: 		extra_parts="crtbegin.o crtend.o"
 4416: 		extra_headers=math-68881.h
 4417: 		float_format=m68k
 4418: 		;;
 4419: 	m68k-*-linux-gnuaout*)		# Motorola m68k's running GNU/Linux
 4420: 					# with a.out format
 4421: 		xmake_file=x-linux
 4422: 		tm_file=m68k/linux-aout.h
 4423: 		tmake_file="t-linux-aout m68k/t-linux-aout"
 4424: 		extra_headers=math-68881.h
 4425: 		float_format=m68k
 4426: 		gnu_ld=yes
 4427: 		;;
 4428: 	m68k-*-linux-gnulibc1)		# Motorola m68k's running GNU/Linux
 4429: 					# with ELF format using the
 4430: 					# GNU/Linux C library 5
 4431: 		xmake_file=x-linux
 4432: 		tm_file=m68k/linux.h
 4433: 		tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
 4434: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 4435: 		extra_headers=math-68881.h
 4436: 		float_format=m68k
 4437: 		gnu_ld=yes
 4438: 		;;
 4439: 	m68k-*-linux-gnu*)		# Motorola m68k's running GNU/Linux
 4440: 					# with ELF format using glibc 2
 4441: 					# aka the GNU/Linux C library 6.
 4442: 		xmake_file=x-linux
 4443: 		tm_file=m68k/linux.h
 4444: 		tmake_file="t-linux m68k/t-linux"
 4445: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 4446: 		extra_headers=math-68881.h
 4447: 		float_format=m68k
 4448: 		gnu_ld=yes
 4449: 		if test x$enable_threads = xyes; then
 4450: 			thread_file='posix'
 4451: 		fi
 4452: 		;;
 4453: 	m68k-*-psos*)
 4454: 		tmake_file=m68k/t-m68kbare
 4455: 		tm_file=m68k/m68k-psos.h
 4456: 		extra_headers=math-68881.h
 4457: 		float_format=m68k
 4458: 		;;
 4459: 	m68k-*-rtems*)
 4460: 		tmake_file="m68k/t-m68kbare t-rtems"
 4461: 		tm_file=m68k/rtems.h
 4462: 		extra_headers=math-68881.h
 4463: 		float_format=m68k
 4464: 		;;
 4465: 
 4466: 	m88k-dg-dgux*)
 4467: 		case $machine in
 4468: 		  m88k-dg-dguxbcs*)
 4469: 		    tm_file=m88k/dguxbcs.h
 4470: 		    tmake_file=m88k/t-dguxbcs
 4471: 		    ;;
 4472: 		  *)
 4473: 		    tm_file=m88k/dgux.h
 4474: 		    tmake_file=m88k/t-dgux
 4475: 		    ;;
 4476: 		esac
 4477: 		extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
 4478: 		xmake_file=m88k/x-dgux
 4479: 		if test x$gas = xyes
 4480: 		then
 4481: 			tmake_file=m88k/t-dgux-gas
 4482: 		fi
 4483: 		;;
 4484: 	m88k-dolphin-sysv3*)
 4485: 		tm_file=m88k/dolph.h
 4486: 		extra_parts="crtbegin.o crtend.o"
 4487: 		xm_file="m88k/xm-sysv3.h ${xm_file}"
 4488: 		xmake_file=m88k/x-dolph
 4489: 		if test x$gas = xyes
 4490: 		then
 4491: 			tmake_file=m88k/t-m88k-gas
 4492: 		fi
 4493: 		;;
 4494: 	m88k-tektronix-sysv3)
 4495: 		tm_file=m88k/tekXD88.h
 4496: 		extra_parts="crtbegin.o crtend.o"
 4497: 		xm_file="m88k/xm-sysv3.h ${xm_file}"
 4498: 		xmake_file=m88k/x-tekXD88
 4499: 		if test x$gas = xyes
 4500: 		then
 4501: 			tmake_file=m88k/t-m88k-gas
 4502: 		fi
 4503: 		;;
 4504: 	m88k-*-aout*)
 4505: 		tm_file=m88k/m88k-aout.h
 4506: 		;;
 4507: 	m88k-*-coff*)
 4508: 		tm_file=m88k/m88k-coff.h
 4509: 		tmake_file=m88k/t-bug
 4510: 		;;
 4511: 	m88k-*-luna*)
 4512: 		tm_file=m88k/luna.h
 4513: 		extra_parts="crtbegin.o crtend.o"
 4514: 		if test x$gas = xyes
 4515: 		then
 4516: 			tmake_file=m88k/t-luna-gas
 4517: 		else
 4518: 			tmake_file=m88k/t-luna
 4519: 		fi
 4520: 		;;
 4521: 	m88k-*-openbsd*)
 4522: 		tmake_file="${tmake_file} m88k/t-luna-gas"
 4523: 		;;
 4524: 	m88k-*-sysv3*)
 4525: 		tm_file=m88k/sysv3.h
 4526: 		extra_parts="crtbegin.o crtend.o"
 4527: 		xm_file="m88k/xm-sysv3.h ${xm_file}"
 4528: 		xmake_file=m88k/x-sysv3
 4529: 		if test x$gas = xyes
 4530: 		then
 4531: 			tmake_file=m88k/t-m88k-gas
 4532: 		fi
 4533: 		;;
 4534: 	m88k-*-sysv4*)
 4535: 		tm_file=m88k/sysv4.h
 4536: 		extra_parts="crtbegin.o crtend.o"
 4537: 		xmake_file=m88k/x-sysv4
 4538: 		tmake_file=m88k/t-sysv4
 4539: 		;;
 4540: 	mips-sgi-irix6*)		# SGI System V.4., IRIX 6
 4541: 		tm_file=mips/iris6.h
 4542: 		xm_file=mips/xm-iris6.h
 4543: 		xmake_file=mips/x-iris6
 4544: 		tmake_file=mips/t-iris6
 4545: # 		if test x$enable_threads = xyes; then
 4546: #			thread_file='irix'
 4547: #		fi
 4548: 		;;
 4549: 	mips-wrs-vxworks)
 4550: 		tm_file="mips/elf.h libgloss.h mips/vxworks.h"
 4551:  		tmake_file=mips/t-ecoff
 4552:  		gas=yes
 4553: 		gnu_ld=yes
 4554:  		extra_parts="crtbegin.o crtend.o"
 4555: 		thread_file='vxworks'
 4556:  		;;
 4557: 	mips-sgi-irix5cross64)		# Irix5 host, Irix 6 target, cross64
 4558: 		tm_file="mips/iris6.h mips/cross64.h"
 4559: 		xm_defines=USG
 4560: 		xm_file="mips/xm-iris5.h"
 4561: 		xmake_file=mips/x-iris
 4562: 		tmake_file=mips/t-cross64
 4563: 		# See comment in mips/iris[56].h files.
 4564: 		use_collect2=yes
 4565: # 		if test x$enable_threads = xyes; then
 4566: #			thread_file='irix'
 4567: #		fi
 4568: 		;;
 4569:         mips-sni-sysv4)
 4570: 		if test x$gas = xyes
 4571: 		then
 4572: 			if test x$stabs = xyes
 4573: 			then
 4574: 				tm_file=mips/iris5gdb.h
 4575: 			else
 4576: 				tm_file="mips/sni-svr4.h mips/sni-gas.h"
 4577: 			fi
 4578: 		else
 4579: 			tm_file=mips/sni-svr4.h
 4580: 		fi
 4581: 		xm_defines=USG
 4582:                 xmake_file=mips/x-sni-svr4
 4583:                 tmake_file=mips/t-mips-gas
 4584:                 if test x$gnu_ld != xyes
 4585:                 then
 4586:                         use_collect2=yes
 4587:                 fi
 4588:                 ;;
 4589: 	mips-sgi-irix5*)		# SGI System V.4., IRIX 5
 4590: 		if test x$gas = xyes
 4591: 		then
 4592: 			tm_file="mips/iris5.h mips/iris5gas.h"
 4593: 			if test x$stabs = xyes
 4594: 			then
 4595: 				tm_file="${tm_file} dbx.h"
 4596: 			fi
 4597: 		else
 4598: 			tm_file=mips/iris5.h
 4599: 		fi
 4600: 		xm_defines=USG
 4601: 		xm_file="mips/xm-iris5.h"
 4602: 		xmake_file=mips/x-iris
 4603: 		# mips-tfile doesn't work yet
 4604: 		tmake_file=mips/t-mips-gas
 4605: 		# See comment in mips/iris5.h file.
 4606: 		use_collect2=yes
 4607: # 		if test x$enable_threads = xyes; then
 4608: #			thread_file='irix'
 4609: #		fi
 4610: 		;;
 4611: 	mips-sgi-irix4loser*)		# Mostly like a MIPS.
 4612: 		tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
 4613: 		if test x$stabs = xyes; then
 4614: 			tm_file="${tm_file} dbx.h"
 4615: 		fi
 4616: 		xm_defines=USG
 4617: 		xmake_file=mips/x-iris
 4618: 		if test x$gas = xyes
 4619: 		then
 4620: 			tmake_file=mips/t-mips-gas
 4621: 		else
 4622: 			extra_passes="mips-tfile mips-tdump"
 4623: 		fi
 4624: 		if test x$gnu_ld != xyes
 4625: 		then
 4626: 			use_collect2=yes
 4627: 		fi
 4628: # 		if test x$enable_threads = xyes; then
 4629: #			thread_file='irix'
 4630: #		fi
 4631: 		;;
 4632: 	mips-sgi-irix4*)		# Mostly like a MIPS.
 4633: 		tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
 4634: 		if test x$stabs = xyes; then
 4635: 			tm_file="${tm_file} dbx.h"
 4636: 		fi
 4637: 		xm_defines=USG
 4638: 		xmake_file=mips/x-iris
 4639: 		if test x$gas = xyes
 4640: 		then
 4641: 			tmake_file=mips/t-mips-gas
 4642: 		else
 4643: 			extra_passes="mips-tfile mips-tdump"
 4644: 		fi
 4645: 		if test x$gnu_ld != xyes
 4646: 		then
 4647: 			use_collect2=yes
 4648: 		fi
 4649: # 		if test x$enable_threads = xyes; then
 4650: #			thread_file='irix'
 4651: #		fi
 4652: 		;;
 4653: 	mips-sgi-*)			# Mostly like a MIPS.
 4654: 		tm_file="mips/iris3.h ${tm_file}"
 4655: 		if test x$stabs = xyes; then
 4656: 			tm_file="${tm_file} dbx.h"
 4657: 		fi
 4658: 		xm_defines=USG
 4659: 		xmake_file=mips/x-iris3
 4660: 		if test x$gas = xyes
 4661: 		then
 4662: 			tmake_file=mips/t-mips-gas
 4663: 		else
 4664: 			extra_passes="mips-tfile mips-tdump"
 4665: 		fi
 4666: 		if test x$gnu_ld != xyes
 4667: 		then
 4668: 			use_collect2=yes
 4669: 		fi
 4670: 		;;
 4671: 	mips-dec-osfrose*)		# Decstation running OSF/1 reference port with OSF/rose.
 4672: 		tm_file="mips/osfrose.h ${tm_file}"
 4673: 		xmake_file=mips/x-osfrose
 4674: 		tmake_file=mips/t-osfrose
 4675: 		extra_objs=halfpic.o
 4676: 		use_collect2=yes
 4677: 		;;
 4678: 	mips-dec-osf*)			# Decstation running OSF/1 as shipped by DIGITAL
 4679: 		tm_file=mips/dec-osf1.h
 4680: 		if test x$stabs = xyes; then
 4681: 			tm_file="${tm_file} dbx.h"
 4682: 		fi
 4683: 		xmake_file=mips/x-dec-osf1
 4684: 		if test x$gas = xyes
 4685: 		then
 4686: 			tmake_file=mips/t-mips-gas
 4687: 		else
 4688: 			tmake_file=mips/t-ultrix
 4689: 			extra_passes="mips-tfile mips-tdump"
 4690: 		fi
 4691: 		if test x$gnu_ld != xyes
 4692: 		then
 4693: 			use_collect2=yes
 4694: 		fi
 4695: 		;;
 4696: 	mips-dec-bsd*)                  # Decstation running 4.4 BSD
 4697:               tm_file=mips/dec-bsd.h
 4698: 	      if test x$gas = xyes
 4699: 	      then
 4700: 		   	tmake_file=mips/t-mips-gas
 4701: 	      else
 4702: 			tmake_file=mips/t-ultrix
 4703: 			extra_passes="mips-tfile mips-tdump"
 4704: 	      fi
 4705: 	      if test x$gnu_ld != xyes
 4706: 	      then
 4707: 			use_collect2=yes
 4708: 	      fi
 4709: 	      ;;
 4710: 	mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
 4711: 		tm_file=mips/netbsd.h
 4712: 		# On NetBSD, the headers are already okay, except for math.h.
 4713: 		tmake_file=t-netbsd
 4714: 		;;
 4715:        mips*-*-linux*)                         # Linux MIPS, either endian.
 4716: 		xmake_file=x-linux
 4717: 		xm_file="xm-siglist.h ${xm_file}"
 4718:                case $machine in
 4719:                        mipsel-*)  tm_file="mips/elfl.h mips/linux.h" ;;
 4720:                        *)         tm_file="mips/elf.h mips/linux.h" ;;
 4721:                esac
 4722: 		extra_parts="crtbegin.o crtend.o"
 4723: 		gnu_ld=yes
 4724: 		gas=yes
 4725: 		;;
 4726: 	mips*el-*-openbsd*)	# mips little endian
 4727: 		target_cpu_default="MASK_GAS|MASK_ABICALLS"
 4728: 		tm_file=mips/openbsd.h
 4729: 		;;
 4730: 	mips*-*-openbsd*)		# mips big endian
 4731: 		target_cpu_default="MASK_GAS|MASK_ABICALLS"
 4732: 		tm_file=mips/openbsd-be.h
 4733: 		;;
 4734: 	mips-sony-bsd* | mips-sony-newsos*)	# Sony NEWS 3600 or risc/news.
 4735: 		tm_file="mips/news4.h ${tm_file}"
 4736: 		if test x$stabs = xyes; then
 4737: 			tm_file="${tm_file} dbx.h"
 4738: 		fi
 4739: 		if test x$gas = xyes
 4740: 		then
 4741: 			tmake_file=mips/t-mips-gas
 4742: 		else
 4743: 			extra_passes="mips-tfile mips-tdump"
 4744: 		fi
 4745: 		if test x$gnu_ld != xyes
 4746: 		then
 4747: 			use_collect2=yes
 4748: 		fi
 4749: 		xmake_file=mips/x-sony
 4750: 		;;
 4751: 	mips-sony-sysv*)		# Sony NEWS 3800 with NEWSOS5.0.
 4752: 					# That is based on svr4.
 4753: 		# t-svr4 is not right because this system doesn't use ELF.
 4754: 		tm_file="mips/news5.h ${tm_file}"
 4755: 		if test x$stabs = xyes; then
 4756: 			tm_file="${tm_file} dbx.h"
 4757: 		fi
 4758: 		xm_file="xm-siglist.h ${xm_file}"
 4759: 		xm_defines=USG
 4760: 		if test x$gas = xyes
 4761: 		then
 4762: 			tmake_file=mips/t-mips-gas
 4763: 		else
 4764: 			extra_passes="mips-tfile mips-tdump"
 4765: 		fi
 4766: 		if test x$gnu_ld != xyes
 4767: 		then
 4768: 			use_collect2=yes
 4769: 		fi
 4770: 		;;
 4771: 	mips-tandem-sysv4*)		# Tandem S2 running NonStop UX
 4772: 		tm_file="mips/svr4-5.h mips/svr4-t.h"
 4773: 		if test x$stabs = xyes; then
 4774: 			tm_file="${tm_file} dbx.h"
 4775: 		fi
 4776: 		xm_file="xm-siglist.h ${xm_file}"
 4777: 		xm_defines=USG
 4778: 		xmake_file=mips/x-sysv
 4779: 		if test x$gas = xyes
 4780: 		then
 4781: 			tmake_file=mips/t-mips-gas
 4782: 			extra_parts="crtbegin.o crtend.o"
 4783: 		else
 4784: 			tmake_file=mips/t-mips
 4785: 			extra_passes="mips-tfile mips-tdump"
 4786: 		fi
 4787: 		if test x$gnu_ld != xyes
 4788: 		then
 4789: 			use_collect2=yes
 4790: 		fi
 4791: 		;;
 4792: 	mips-*-ultrix* | mips-dec-mach3)	# Decstation.
 4793: 		tm_file="mips/ultrix.h ${tm_file}"
 4794: 		if test x$stabs = xyes; then
 4795: 			tm_file="${tm_file} dbx.h"
 4796: 		fi
 4797: 		xmake_file=mips/x-ultrix
 4798: 		if test x$gas = xyes
 4799: 		then
 4800: 			tmake_file=mips/t-mips-gas
 4801: 		else
 4802: 			tmake_file=mips/t-ultrix
 4803: 			extra_passes="mips-tfile mips-tdump"
 4804: 		fi
 4805: 		if test x$gnu_ld != xyes
 4806: 		then
 4807: 			use_collect2=yes
 4808: 		fi
 4809: 	        ;;
 4810: 	mips-*-riscos[56789]bsd*)
 4811: 		tm_file=mips/bsd-5.h	# MIPS BSD 4.3, RISC-OS 5.0
 4812: 		if test x$stabs = xyes; then
 4813: 			tm_file="${tm_file} dbx.h"
 4814: 		fi
 4815: 		if test x$gas = xyes
 4816: 		then
 4817: 			tmake_file=mips/t-bsd-gas
 4818: 		else
 4819: 			tmake_file=mips/t-bsd
 4820: 			extra_passes="mips-tfile mips-tdump"
 4821: 		fi
 4822: 		if test x$gnu_ld != xyes
 4823: 		then
 4824: 			use_collect2=yes
 4825: 		fi
 4826: 	        ;;
 4827: 	mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
 4828: 		tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
 4829: 		if test x$stabs = xyes; then
 4830: 			tm_file="${tm_file} dbx.h"
 4831: 		fi
 4832: 		if test x$gas = xyes
 4833: 		then
 4834: 			tmake_file=mips/t-bsd-gas
 4835: 		else
 4836: 			tmake_file=mips/t-bsd
 4837: 			extra_passes="mips-tfile mips-tdump"
 4838: 		fi
 4839: 		if test x$gnu_ld != xyes
 4840: 		then
 4841: 			use_collect2=yes
 4842: 		fi
 4843: 	        ;;
 4844: 	mips-*-riscos[56789]sysv4*)
 4845: 		tm_file=mips/svr4-5.h	# MIPS System V.4., RISC-OS 5.0
 4846: 		if test x$stabs = xyes; then
 4847: 			tm_file="${tm_file} dbx.h"
 4848: 		fi
 4849: 		xm_file="xm-siglist.h ${xm_file}"
 4850: 		xmake_file=mips/x-sysv
 4851: 		if test x$gas = xyes
 4852: 		then
 4853: 			tmake_file=mips/t-svr4-gas
 4854: 		else
 4855: 			tmake_file=mips/t-svr4
 4856: 			extra_passes="mips-tfile mips-tdump"
 4857: 		fi
 4858: 		if test x$gnu_ld != xyes
 4859: 		then
 4860: 			use_collect2=yes
 4861: 		fi
 4862: 		;;
 4863: 	mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
 4864: 		tm_file="mips/svr4-4.h ${tm_file}"
 4865: 		if test x$stabs = xyes; then
 4866: 			tm_file="${tm_file} dbx.h"
 4867: 		fi
 4868: 		xm_defines=USG
 4869: 		xmake_file=mips/x-sysv
 4870: 		if test x$gas = xyes
 4871: 		then
 4872: 			tmake_file=mips/t-svr4-gas
 4873: 		else
 4874: 			tmake_file=mips/t-svr4
 4875: 			extra_passes="mips-tfile mips-tdump"
 4876: 		fi
 4877: 		if test x$gnu_ld != xyes
 4878: 		then
 4879: 			use_collect2=yes
 4880: 		fi
 4881: 		;;
 4882: 	mips-*-riscos[56789]sysv*)
 4883: 		tm_file=mips/svr3-5.h	# MIPS System V.3, RISC-OS 5.0
 4884: 		if test x$stabs = xyes; then
 4885: 			tm_file="${tm_file} dbx.h"
 4886: 		fi
 4887: 		xm_defines=USG
 4888: 		xmake_file=mips/x-sysv
 4889: 		if test x$gas = xyes
 4890: 		then
 4891: 			tmake_file=mips/t-svr3-gas
 4892: 		else
 4893: 			tmake_file=mips/t-svr3
 4894: 			extra_passes="mips-tfile mips-tdump"
 4895: 		fi
 4896: 		if test x$gnu_ld != xyes
 4897: 		then
 4898: 			use_collect2=yes
 4899: 		fi
 4900: 		;;
 4901: 	mips-*-sysv* | mips-*-riscos*sysv*)
 4902: 		tm_file="mips/svr3-4.h ${tm_file}"
 4903: 		if test x$stabs = xyes; then
 4904: 			tm_file="${tm_file} dbx.h"
 4905: 		fi
 4906: 		xm_defines=USG
 4907: 		xmake_file=mips/x-sysv
 4908: 		if test x$gas = xyes
 4909: 		then
 4910: 			tmake_file=mips/t-svr3-gas
 4911: 		else
 4912: 			tmake_file=mips/t-svr3
 4913: 			extra_passes="mips-tfile mips-tdump"
 4914: 		fi
 4915: 		if test x$gnu_ld != xyes
 4916: 		then
 4917: 			use_collect2=yes
 4918: 		fi
 4919: 		;;
 4920: 	mips-*-riscos[56789]*)		# Default MIPS RISC-OS 5.0.
 4921: 		tm_file=mips/mips-5.h
 4922: 		if test x$stabs = xyes; then
 4923: 			tm_file="${tm_file} dbx.h"
 4924: 		fi
 4925: 		if test x$gas = xyes
 4926: 		then
 4927: 			tmake_file=mips/t-mips-gas
 4928: 		else
 4929: 			extra_passes="mips-tfile mips-tdump"
 4930: 		fi
 4931: 		if test x$gnu_ld != xyes
 4932: 		then
 4933: 			use_collect2=yes
 4934: 		fi
 4935: 		;;
 4936: 	mips-*-gnu*)
 4937: 		;;
 4938: 	mipsel-*-ecoff*)
 4939: 		tm_file=mips/ecoffl.h
 4940: 		if test x$stabs = xyes; then
 4941: 			tm_file="${tm_file} dbx.h"
 4942: 		fi
 4943: 		tmake_file=mips/t-ecoff
 4944: 		;;
 4945: 	mips-*-ecoff*)
 4946: 		tm_file="gofast.h mips/ecoff.h"
 4947: 		if test x$stabs = xyes; then
 4948: 			tm_file="${tm_file} dbx.h"
 4949: 		fi
 4950: 		tmake_file=mips/t-ecoff
 4951: 		;;
 4952: 	mipsel-*-elf*)
 4953: 		tm_file="mips/elfl.h libgloss.h"
 4954: 		tmake_file=mips/t-elf
 4955: 		;;
 4956: 	mips-*-elf*)
 4957: 		tm_file="mips/elf.h"
 4958: 		tmake_file=mips/t-elf
 4959: 		;;
 4960: 	mips64el-*-elf*)
 4961: 		tm_file="mips/elfl64.h"
 4962: 		tmake_file=mips/t-elf
 4963: 		;;
 4964: 	mips64orionel-*-elf*)
 4965: 		tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
 4966: 		tmake_file=mips/t-elf
 4967: 		;;
 4968: 	mips64-*-elf*)
 4969: 		tm_file="mips/elf64.h"
 4970: 		tmake_file=mips/t-elf
 4971: 		;;
 4972: 	mips64orion-*-elf*)
 4973: 		tm_file="mips/elforion.h mips/elf64.h libgloss.h"
 4974: 		tmake_file=mips/t-elf
 4975: 		;;
 4976: 	mips64orion-*-rtems*)
 4977: 		tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
 4978: 		tmake_file="mips/t-ecoff t-rtems"
 4979: 		;;
 4980: 	mipstx39el-*-elf*)
 4981: 		tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
 4982: 		tmake_file=mips/t-r3900
 4983: 		;;
 4984: 	mipstx39-*-elf*)
 4985: 		tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
 4986: 		tmake_file=mips/t-r3900
 4987: 		;;
 4988: 	mips-*-*)				# Default MIPS RISC-OS 4.0.
 4989: 		if test x$stabs = xyes; then
 4990: 			tm_file="${tm_file} dbx.h"
 4991: 		fi
 4992: 		if test x$gas = xyes
 4993: 		then
 4994: 			tmake_file=mips/t-mips-gas
 4995: 		else
 4996: 			extra_passes="mips-tfile mips-tdump"
 4997: 		fi
 4998: 		if test x$gnu_ld != xyes
 4999: 		then
 5000: 			use_collect2=yes
 5001: 		fi
 5002: 		;;
 5003: 	mn10200-*-*)
 5004: 		cpu_type=mn10200
 5005: 		tm_file="mn10200/mn10200.h"
 5006: 		if test x$stabs = xyes
 5007: 		then
 5008: 			tm_file="${tm_file} dbx.h"
 5009: 		fi
 5010: 		use_collect2=no
 5011: 		;;
 5012: 	mn10300-*-*)
 5013: 		cpu_type=mn10300
 5014: 		tm_file="mn10300/mn10300.h"
 5015: 		if test x$stabs = xyes
 5016: 		then
 5017: 			tm_file="${tm_file} dbx.h"
 5018: 		fi
 5019: 		use_collect2=no
 5020: 		;;
 5021: 	ns32k-encore-bsd*)
 5022: 		tm_file=ns32k/encore.h
 5023: 		use_collect2=yes
 5024: 		;;
 5025: 	ns32k-sequent-bsd*)
 5026: 		tm_file=ns32k/sequent.h
 5027: 		use_collect2=yes
 5028: 		;;
 5029: 	ns32k-tek6100-bsd*)
 5030: 		tm_file=ns32k/tek6100.h
 5031: 		use_collect2=yes
 5032: 		;;
 5033: 	ns32k-tek6200-bsd*)
 5034: 		tm_file=ns32k/tek6200.h
 5035: 		use_collect2=yes
 5036: 		;;
 5037: # This has not been updated to GCC 2.
 5038: #	ns32k-ns-genix*)
 5039: #		xm_defines=USG
 5040: #		xmake_file=ns32k/x-genix
 5041: #		tm_file=ns32k/genix.h
 5042: #		use_collect2=yes
 5043: #		;;
 5044: 	ns32k-merlin-*)
 5045: 		tm_file=ns32k/merlin.h
 5046: 		use_collect2=yes
 5047: 		;;
 5048: 	ns32k-pc532-mach*)
 5049: 		tm_file=ns32k/pc532-mach.h
 5050: 		use_collect2=yes
 5051: 		;;
 5052: 	ns32k-pc532-minix*)
 5053: 		tm_file=ns32k/pc532-min.h
 5054: 		xm_file="ns32k/xm-pc532-min.h ${xm-file}"
 5055: 		xm_defines=USG
 5056: 		use_collect2=yes
 5057: 		;;
 5058: 	ns32k-*-netbsd*)
 5059: 		tm_file=ns32k/netbsd.h
 5060: 		xm_file="ns32k/xm-netbsd.h ${xm_file}"
 5061: 		# On NetBSD, the headers are already okay, except for math.h.
 5062: 		tmake_file=t-netbsd
 5063:        use_collect2=yes
 5064: 		;;
 5065:         pdp11-*-bsd)
 5066: 		tm_file="${tm_file} pdp11/2bsd.h"
 5067:                 ;;
 5068:         pdp11-*-*)
 5069: 		;;
 5070: 	ns32k-*-openbsd*)
 5071: 		# Nothing special
 5072: 		;;
 5073: 	pyramid-*-*)
 5074: 		cpu_type=pyr
 5075: 		xmake_file=pyr/x-pyr
 5076: 		use_collect2=yes
 5077: 		;;
 5078: 	romp-*-aos*)
 5079: 		use_collect2=yes
 5080: 		;;
 5081: 	romp-*-mach*)
 5082: 		xmake_file=romp/x-mach
 5083: 		use_collect2=yes
 5084: 		;;
 5085: 	romp-*-openbsd*)
 5086: 		# Nothing special
 5087: 		;;
 5088: 	powerpc-*-openbsd*)
 5089: 		tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
 5090: 		;;
 5091: 	powerpc-*-beos*)
 5092: 		cpu_type=rs6000
 5093: 		tm_file=rs6000/beos.h
 5094: 		xm_file=rs6000/xm-beos.h
 5095: 		tmake_file=rs6000/t-beos
 5096: 		xmake_file=rs6000/x-beos
 5097: 		;;
 5098: 	powerpc-*-sysv* | powerpc-*-elf*)
 5099: 		tm_file=rs6000/sysv4.h
 5100: 		xm_file="xm-siglist.h rs6000/xm-sysv4.h"
 5101: 		xm_defines="USG POSIX"
 5102: 		extra_headers=ppc-asm.h
 5103: 		if test x$gas = xyes
 5104: 		then
 5105: 			tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
 5106: 		else
 5107: 			tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
 5108: 		fi
 5109: 		xmake_file=rs6000/x-sysv4
 5110: 		;;
 5111: 	powerpc-*-eabiaix*)
 5112: 		tm_file=rs6000/eabiaix.h
 5113: 		tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
 5114: 		extra_headers=ppc-asm.h
 5115: 		;;
 5116: 	powerpc-*-eabisim*)
 5117: 		tm_file=rs6000/eabisim.h
 5118: 		tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
 5119: 		extra_headers=ppc-asm.h
 5120: 		;;
 5121: 	powerpc-*-eabi*)
 5122: 		tm_file=rs6000/eabi.h
 5123: 		if test x$gas = xyes
 5124: 		then
 5125: 			tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
 5126: 		else
 5127: 			tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
 5128: 		fi
 5129: 		extra_headers=ppc-asm.h
 5130: 		;;
 5131: 	powerpc-*-rtems*)
 5132: 		tm_file=rs6000/rtems.h
 5133: 		if test x$gas = xyes
 5134: 		then
 5135: 		     tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
 5136: 		else
 5137: 		     tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
 5138: 		fi
 5139: 		extra_headers=ppc-asm.h
 5140: 		;;
 5141: 	powerpc-*-linux-gnulibc1)
 5142: 		tm_file=rs6000/linux.h
 5143: 		xm_file=rs6000/xm-sysv4.h
 5144: 		out_file=rs6000/rs6000.c
 5145: 		if test x$gas = xyes
 5146: 		then
 5147: 			tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
 5148: 		else
 5149: 			tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
 5150: 		fi
 5151: 		xmake_file=x-linux
 5152: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 5153: 		extra_headers=ppc-asm.h
 5154: 		if test x$enable_threads = xyes; then
 5155: 			thread_file='posix'
 5156: 		fi
 5157: 		;;
 5158: 	powerpc-*-linux-gnu*)
 5159: 		tm_file=rs6000/linux.h
 5160: 		xm_file="xm-siglist.h rs6000/xm-sysv4.h"
 5161: 		xm_defines="USG ${xm_defines}"
 5162: 		out_file=rs6000/rs6000.c
 5163: 		if test x$gas = xyes
 5164: 		then
 5165: 			tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
 5166: 		else
 5167: 			tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
 5168: 		fi
 5169: 		xmake_file=x-linux
 5170: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 5171: 		extra_headers=ppc-asm.h
 5172: 		if test x$enable_threads = xyes; then
 5173: 			thread_file='posix'
 5174: 		fi
 5175: 		;;
 5176:         powerpc-wrs-vxworks*)
 5177:                 cpu_type=rs6000
 5178: 		xm_file="xm-siglist.h rs6000/xm-sysv4.h"
 5179: 		xm_defines="USG POSIX"
 5180:                 tm_file=rs6000/vxppc.h
 5181:                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
 5182: 		extra_headers=ppc-asm.h
 5183: 		thread_file='vxworks'
 5184:                 ;;
 5185: 	powerpcle-*-sysv* | powerpcle-*-elf*)
 5186: 		tm_file=rs6000/sysv4le.h
 5187: 		xm_file="xm-siglist.h rs6000/xm-sysv4.h"
 5188: 		xm_defines="USG POSIX"
 5189: 		if test x$gas = xyes
 5190: 		then
 5191: 			tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
 5192: 		else
 5193: 			tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
 5194: 		fi
 5195: 		xmake_file=rs6000/x-sysv4
 5196: 		extra_headers=ppc-asm.h
 5197: 		;;
 5198: 	powerpcle-*-eabisim*)
 5199: 		tm_file=rs6000/eabilesim.h
 5200: 		tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
 5201: 		extra_headers=ppc-asm.h
 5202: 		;;
 5203: 	powerpcle-*-eabi*)
 5204: 		tm_file=rs6000/eabile.h
 5205: 		if test x$gas = xyes
 5206: 		then
 5207: 			tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
 5208: 		else
 5209: 			tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
 5210: 		fi
 5211: 		extra_headers=ppc-asm.h
 5212: 		;;
 5213:         powerpcle-*-winnt* )
 5214:                 tm_file=rs6000/win-nt.h
 5215:                 tmake_file=rs6000/t-winnt
 5216: #               extra_objs=pe.o
 5217:  		if test x$enable_threads = xyes; then
 5218: 			thread_file='win32'
 5219: 		fi
 5220: 		extra_headers=ppc-asm.h
 5221: 		;;
 5222: 	powerpcle-*-pe | powerpcle-*-cygwin*)
 5223: 		tm_file=rs6000/cygwin.h
 5224: 		xm_file="rs6000/xm-cygwin.h ${xm_file}"
 5225: 		tmake_file=rs6000/t-winnt
 5226: 		xmake_file=rs6000/x-cygwin
 5227: #		extra_objs=pe.o
 5228:  		if test x$enable_threads = xyes; then
 5229: 			thread_file='win32'
 5230: 		fi
 5231: 		exeext=.exe
 5232: 		extra_headers=ppc-asm.h
 5233: 		;;
 5234: 	powerpcle-*-solaris2*)
 5235: 		tm_file=rs6000/sol2.h
 5236: 		xm_file="xm-siglist.h rs6000/xm-sysv4.h"
 5237: 		xm_defines="USG POSIX"
 5238: 		if test x$gas = xyes
 5239: 		then
 5240: 			tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
 5241: 		else
 5242: 			tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
 5243: 		fi
 5244: 		xmake_file=rs6000/x-sysv4
 5245: 		extra_headers=ppc-asm.h
 5246: 		;;
 5247: 	rs6000-ibm-aix3.[01]*)
 5248: 		tm_file=rs6000/aix31.h
 5249: 		xmake_file=rs6000/x-aix31
 5250: 		float_format=none
 5251: 		use_collect2=yes
 5252: 		;;
 5253: 	rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
 5254: 		tm_file=rs6000/aix3newas.h
 5255: 		if test x$host != x$target
 5256: 		then
 5257: 			tmake_file=rs6000/t-xnewas
 5258: 		else
 5259: 			tmake_file=rs6000/t-newas
 5260: 		fi
 5261: 		float_format=none
 5262: 		use_collect2=yes
 5263: 		;;
 5264: 	rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
 5265: 		tm_file=rs6000/aix41.h
 5266: 		if test x$host != x$target
 5267: 		then
 5268: 			tmake_file=rs6000/t-xnewas
 5269: 		else
 5270: 			tmake_file=rs6000/t-newas
 5271: 		fi
 5272: 		if test "$gnu_ld" = yes
 5273: 		then
 5274: 			xmake_file=rs6000/x-aix41-gld
 5275: 		else
 5276: 			xmake_file=rs6000/x-aix41
 5277: 		fi
 5278: 		float_format=none
 5279: 		use_collect2=yes
 5280: 		;;
 5281: 	rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
 5282: 		tm_file=rs6000/aix43.h
 5283: 		if test x$host != x$target
 5284: 		then
 5285: 			tmake_file=rs6000/t-xaix43
 5286: 		else
 5287: 			tmake_file=rs6000/t-aix43
 5288: 		fi
 5289: 		xmake_file=rs6000/x-aix43
 5290: 		float_format=none
 5291: 		use_collect2=yes
 5292: 		;;
 5293: 	rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
 5294: 		tm_file=rs6000/aix43.h
 5295: 		if test x$host != x$target
 5296: 		then
 5297: 			tmake_file=rs6000/t-xaix43
 5298: 		else
 5299: 			tmake_file=rs6000/t-aix43
 5300: 		fi
 5301: 		xmake_file=rs6000/x-aix43
 5302: 		float_format=none
 5303: 		use_collect2=yes
 5304: 		;;
 5305: 	rs6000-ibm-aix*)
 5306: 		float_format=none
 5307: 		use_collect2=yes
 5308: 		;;
 5309: 	rs6000-bull-bosx)
 5310: 		float_format=none
 5311: 		use_collect2=yes
 5312: 		;;
 5313: 	rs6000-*-mach*)
 5314: 		tm_file=rs6000/mach.h
 5315: 		xm_file="${xm_file} rs6000/xm-mach.h"
 5316: 		xmake_file=rs6000/x-mach
 5317: 		use_collect2=yes
 5318: 		;;
 5319: 	rs6000-*-lynxos*)
 5320: 		tm_file=rs6000/lynx.h
 5321: 		xm_file=rs6000/xm-lynx.h
 5322: 		tmake_file=rs6000/t-rs6000
 5323: 		xmake_file=rs6000/x-lynx
 5324: 		use_collect2=yes
 5325: 		;;
 5326: 	sh-*-elf*)
 5327: 		tm_file=sh/elf.h
 5328: 		float_format=sh
 5329: 		;;
 5330: 	sh-*-rtemself*)
 5331: 		tmake_file="sh/t-sh t-rtems"
 5332: 		tm_file=sh/rtemself.h
 5333: 		float_format=sh
 5334: 		;;
 5335: 	sh-*-rtems*)
 5336: 		tmake_file="sh/t-sh t-rtems"
 5337: 		tm_file=sh/rtems.h
 5338: 		float_format=sh
 5339: 		;;
 5340: 	sh-*-*)
 5341: 		float_format=sh
 5342: 		;;
 5343: 	sparc-tti-*)
 5344: 		tm_file=sparc/pbd.h
 5345: 		xm_file="xm-alloca.h ${xm_file}"
 5346: 		xm_defines=USG
 5347: 		;;
 5348: 	sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
 5349: 		tm_file=sparc/vxsparc.h
 5350: 		tmake_file=sparc/t-vxsparc
 5351: 		use_collect2=yes
 5352: 		thread_file='vxworks'
 5353: 		;;
 5354: 	sparc-*-aout*)
 5355: 		tmake_file=sparc/t-sparcbare
 5356: 		tm_file="sparc/aout.h libgloss.h"
 5357: 		;;
 5358: 	sparc-*-netbsd*)
 5359: 		tm_file=sparc/netbsd.h
 5360: 		tmake_file=t-netbsd
 5361:        use_collect2=yes
 5362: 		;;
 5363: 	sparc-*-openbsd*)
 5364: 		# we need collect2 until our bug is fixed...
 5365: 		use_collect2=yes
 5366: 		;;
 5367: 	sparc-*-bsd*)
 5368: 		tm_file=sparc/bsd.h
 5369: 		;;
 5370: 	sparc-*-elf*)
 5371: 		tm_file=sparc/elf.h
 5372: 		tmake_file=sparc/t-elf
 5373: 		extra_parts="crti.o crtn.o crtbegin.o crtend.o"
 5374: 		#float_format=i128
 5375: 		float_format=i64
 5376: 		;;
 5377: 	sparc-*-linux-gnuaout*)		# Sparc's running GNU/Linux, a.out
 5378: 		xm_file="${xm_file} sparc/xm-linux.h"
 5379: 		tm_file=sparc/linux-aout.h
 5380: 		xmake_file=x-linux
 5381: 		gnu_ld=yes
 5382: 		;;
 5383: 	sparc-*-linux-gnulibc1*)	# Sparc's running GNU/Linux, libc5
 5384: 		xm_file="${xm_file} sparc/xm-linux.h"
 5385: 		xmake_file=x-linux
 5386: 		tm_file=sparc/linux.h
 5387: 		tmake_file="t-linux t-linux-gnulibc1"
 5388: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 5389: 		gnu_ld=yes
 5390: 		;;
 5391: 	sparc-*-linux-gnu*)		# Sparc's running GNU/Linux, libc6
 5392: 		xm_file="${xm_file} sparc/xm-linux.h"
 5393: 		xmake_file=x-linux
 5394: 		tm_file=sparc/linux.h
 5395: 		tmake_file="t-linux"
 5396: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 5397: 		gnu_ld=yes
 5398:  		if test x$enable_threads = xyes; then
 5399:  			thread_file='posix'
 5400:  		fi
 5401: 		;;
 5402: 	sparc-*-lynxos*)
 5403: 		if test x$gas = xyes
 5404: 		then
 5405: 			tm_file=sparc/lynx.h
 5406: 		else
 5407: 			tm_file=sparc/lynx-ng.h
 5408: 		fi
 5409: 		xm_file=sparc/xm-lynx.h
 5410: 		tmake_file=sparc/t-sunos41
 5411: 		xmake_file=x-lynx
 5412: 		;;
 5413: 	sparc-*-rtems*)
 5414: 		tmake_file="sparc/t-sparcbare t-rtems"
 5415: 		tm_file=sparc/rtems.h
 5416: 		;;
 5417: 	sparcv9-*-solaris2*)
 5418: 		tm_file=sparc/sol2-sld-64.h
 5419: 		xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
 5420: 		xm_defines="USG POSIX"
 5421: 		tmake_file="sparc/t-sol2 sparc/t-sol2-64"
 5422: 		xmake_file=sparc/x-sysv4
 5423: 		extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
 5424: 		float_format=none
 5425: 		if test x${enable_threads} = x ; then
 5426: 		    enable_threads=$have_pthread_h
 5427: 		    if test x${enable_threads} = x ; then
 5428: 			enable_threads=$have_thread_h
 5429: 		    fi
 5430: 		fi
 5431: 		if test x${enable_threads} = xyes ; then
 5432: 		    if test x${have_pthread_h} = xyes ; then
 5433: 			thread_file='posix'
 5434: 		    else
 5435: 			thread_file='solaris'
 5436: 		    fi
 5437: 		fi
 5438: 		;;
 5439:         sparc-hal-solaris2*)
 5440:                 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
 5441:                 xm_defines="USG POSIX"
 5442:                 tm_file="sparc/sol2.h sparc/hal.h"
 5443:                 tmake_file="sparc/t-halos sparc/t-sol2"
 5444:                 xmake_file=sparc/x-sysv4
 5445:                 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
 5446:                 case $machine in
 5447:                 *-*-solaris2.0-4)
 5448:                         float_format=i128
 5449:                 ;;
 5450:                 *)
 5451:                         float_format=none
 5452:                         ;;
 5453:                 esac
 5454: 		thread_file='solaris'
 5455:                 ;;
 5456: 	sparc-*-solaris2*)
 5457: 		if test x$gnu_ld = xyes
 5458: 		then
 5459: 			tm_file=sparc/sol2.h
 5460: 		else
 5461: 			tm_file=sparc/sol2-sld.h
 5462: 		fi
 5463: 		xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
 5464: 		xm_defines="USG POSIX"
 5465: 		tmake_file=sparc/t-sol2
 5466: 		xmake_file=sparc/x-sysv4
 5467: 		extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
 5468: 		case $machine in
 5469: 		*-*-solaris2.[0-4])
 5470: 			float_format=i128
 5471: 			;;
 5472: 		*)
 5473: 			float_format=none
 5474: 			;;
 5475: 		esac
 5476: 		if test x${enable_threads} = x; then
 5477: 		    enable_threads=$have_pthread_h
 5478: 		    if test x${enable_threads} = x; then
 5479: 			enable_threads=$have_thread_h
 5480: 		    fi
 5481: 		fi
 5482: 		if test x${enable_threads} = xyes; then
 5483: 		    if test x${have_pthread_h} = xyes; then
 5484: 			thread_file='posix'
 5485: 		    else
 5486: 			thread_file='solaris'
 5487: 		    fi
 5488: 		fi
 5489: 		;;
 5490: 	sparc-*-sunos4.0*)
 5491: 		tm_file=sparc/sunos4.h
 5492: 		tmake_file=sparc/t-sunos40
 5493: 		use_collect2=yes
 5494: 		;;
 5495: 	sparc-*-sunos4*)
 5496: 		tm_file=sparc/sunos4.h
 5497: 		tmake_file=sparc/t-sunos41
 5498: 		use_collect2=yes
 5499: 		if test x$gas = xyes; then
 5500: 			tm_file="${tm_file} sparc/sun4gas.h"
 5501: 		fi
 5502: 		;;
 5503: 	sparc-*-sunos3*)
 5504: 		tm_file=sparc/sun4o3.h
 5505: 		use_collect2=yes
 5506: 		;;
 5507: 	sparc-*-sysv4*)
 5508: 		tm_file=sparc/sysv4.h
 5509: 		xm_file="xm-siglist.h sparc/xm-sysv4.h"
 5510: 		xm_defines="USG POSIX"
 5511: 		tmake_file=t-svr4
 5512: 		xmake_file=sparc/x-sysv4
 5513: 		extra_parts="crtbegin.o crtend.o"
 5514: 		;;
 5515: 	sparc-*-vxsim*)
 5516: 		xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
 5517: 		xm_defines="USG POSIX"
 5518: 		tm_file=sparc/vxsim.h
 5519: 		tmake_file=sparc/t-vxsparc
 5520: 		xmake_file=sparc/x-sysv4
 5521: 		;;
 5522: 	sparclet-*-aout*)
 5523: 		tm_file="sparc/splet.h libgloss.h"
 5524: 		tmake_file=sparc/t-splet
 5525: 		;;
 5526: 	sparclite-*-coff*)
 5527: 		tm_file="sparc/litecoff.h libgloss.h"
 5528: 		tmake_file=sparc/t-sparclite
 5529: 		;;
 5530: 	sparclite-*-aout*)
 5531: 		tm_file="sparc/lite.h aoutos.h libgloss.h"
 5532: 		tmake_file=sparc/t-sparclite
 5533: 		;;
 5534: 	sparc64-*-aout*)
 5535: 		tmake_file=sparc/t-sp64
 5536: 		tm_file=sparc/sp64-aout.h
 5537: 		;;
 5538: 	sparc64-*-elf*)
 5539: 		tmake_file=sparc/t-sp64
 5540: 		tm_file=sparc/sp64-elf.h
 5541: 		extra_parts="crtbegin.o crtend.o"
 5542: 		;;
 5543: 	sparc64-*-linux*)		# 64-bit Sparc's running GNU/Linux
 5544: 		tmake_file="t-linux sparc/t-linux64"
 5545: 		xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
 5546: 		tm_file=sparc/linux64.h
 5547: 		xmake_file=x-linux
 5548: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 5549: 		gnu_ld=yes
 5550: 		;;
 5551: 	sparc64-*-freebsd*)
 5552: 		tmake_file=sparc/t-sp64
 5553: 		tm_file=sparc/sp64-elf.h
 5554: 		xm_file="sparc/xm-sp64.h sparc/xm-freebsd.h"
 5555: 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 5556: 		gas=yes
 5557: 		gnu_ld=yes
 5558: 		;;
 5559: # This hasn't been upgraded to GCC 2.
 5560: #	tahoe-harris-*)			# Harris tahoe, using COFF.
 5561: #		tm_file=tahoe/harris.h
 5562: #		;;
 5563: #	tahoe-*-bsd*)			# tahoe running BSD
 5564: #		;;
 5565: 	thumb-*-coff* | thumbel-*-coff*)
 5566: 		tm_file=arm/tcoff.h
 5567: 		out_file=arm/thumb.c
 5568: 		xm_file=arm/xm-thumb.h
 5569: 		md_file=arm/thumb.md
 5570: 		tmake_file=arm/t-thumb
 5571: 		;;
 5572: 	thumb-wrs-vxworks)
 5573: 		tm_file=arm/tcoff.h
 5574: 		out_file=arm/thumb.c
 5575: 		xm_file=arm/xm-thumb.h
 5576: 		md_file=arm/thumb.md
 5577: 		tmake_file=arm/t-thumb
 5578: 		thread_file='vxworks'
 5579: 		;;
 5580: # This hasn't been upgraded to GCC 2.
 5581: #	tron-*-*)
 5582: #		cpu_type=gmicro
 5583: #		use_collect2=yes
 5584: #		;;
 5585: 	v850-*-*)
 5586: 		cpu_type=v850
 5587: 		tm_file="v850/v850.h"
 5588: 		xm_file="v850/xm-v850.h"
 5589: 		tmake_file=v850/t-v850
 5590: 		if test x$stabs = xyes
 5591: 		then
 5592: 			tm_file="${tm_file} dbx.h"
 5593: 		fi
 5594: 		use_collect2=no
 5595: 		;;
 5596: 	vax-*-bsd*)			# vaxen running BSD
 5597: 		use_collect2=yes
 5598: 		float_format=vax
 5599: 		;;
 5600: 	vax-*-sysv*)			# vaxen running system V
 5601: 		tm_file="${tm_file} vax/vaxv.h"
 5602: 		xm_defines=USG
 5603: 		float_format=vax
 5604: 		;;
 5605: 	vax-*-netbsd*)
 5606: 		tm_file="${tm_file} netbsd.h vax/netbsd.h"
 5607: 		tmake_file=t-netbsd
 5608: 		float_format=vax
 5609:        use_collect2=yes
 5610: 		;;
 5611: 	vax-*-openbsd*)
 5612: 		tmake_file="${tmake_file} vax/t-openbsd"
 5613: 		;;
 5614: 	vax-*-ultrix*)			# vaxen running ultrix
 5615: 		tm_file="${tm_file} vax/ultrix.h"
 5616: 		use_collect2=yes
 5617: 		float_format=vax
 5618: 		;;
 5619: 	vax-*-vms*)			# vaxen running VMS
 5620: 		xm_file=vax/xm-vms.h
 5621: 		tm_file=vax/vms.h
 5622: 		float_format=vax
 5623: 		;;
 5624: 	vax-*-*)			# vax default entry
 5625: 		float_format=vax
 5626: 		;;
 5627: 	we32k-att-sysv*)
 5628: 		xm_file="${xm_file} xm-svr3"
 5629: 		use_collect2=yes
 5630: 		;;
 5631: 	*)
 5632: 		echo "Configuration $machine not supported" 1>&2
 5633: 		exit 1
 5634: 		;;
 5635: 	esac
 5636: 
 5637: 	case $machine in
 5638: 	*-*-linux-gnu*)
 5639: 	        ;; # Existing GNU/Linux systems do not use the GNU setup.
 5640: 	*-*-gnu*)
 5641: 		# On the GNU system, the setup is just about the same on
 5642: 		# each different CPU.  The specific machines that GNU
 5643: 		# supports are matched above and just set $cpu_type.
 5644: 		xm_file="xm-gnu.h ${xm_file}"
 5645: 		tm_file=${cpu_type}/gnu.h
 5646: 		extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
 5647: 		# GNU always uses ELF.
 5648: 		elf=yes
 5649: 		# GNU tools are the only tools.
 5650: 		gnu_ld=yes
 5651: 		gas=yes
 5652: 		xmake_file=x-linux	# These details are the same as Linux.
 5653: 		tmake_file=t-gnu	# These are not.
 5654: 		;;
 5655: 	*-*-sysv4*)
 5656: 		xmake_try_sysv=x-sysv
 5657: 		install_headers_dir=install-headers-cpio
 5658: 		;;
 5659: 	*-*-sysv*)
 5660: 		install_headers_dir=install-headers-cpio
 5661: 		;;
 5662: 	esac
 5663: 
 5664: 	# Distinguish i[34567]86
 5665: 	# Also, do not run mips-tfile on MIPS if using gas.
 5666: 	# Process --with-cpu= for PowerPC/rs6000
 5667: 	target_cpu_default2=
 5668: 	case $machine in
 5669: 	i486-*-*)
 5670: 		target_cpu_default2=1
 5671: 		;;
 5672: 	i586-*-*)
 5673: 		case $target_alias in
 5674: 			k6-*)
 5675: 				target_cpu_default2=4
 5676: 				;;
 5677: 			*)
 5678: 				target_cpu_default2=2
 5679: 				;;
 5680: 		esac
 5681: 		;;
 5682: 	i686-*-* | i786-*-*)
 5683: 		target_cpu_default2=3
 5684: 		;;
 5685: 	alpha*-*-*)
 5686: 		case $machine in
 5687: 			alphaev6*)
 5688: 				target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
 5689: 				;;
 5690: 			alphapca56*)
 5691: 				target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
 5692: 				;;
 5693: 			alphaev56*)
 5694: 				target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
 5695: 				;;
 5696: 			alphaev5*)
 5697: 				target_cpu_default2="MASK_CPU_EV5"
 5698: 				;;
 5699: 		esac
 5700: 				
 5701: 		if test x$gas = xyes
 5702: 		then
 5703: 			if test "$target_cpu_default2" = ""
 5704: 			then
 5705: 				target_cpu_default2="MASK_GAS"
 5706: 			else
 5707: 				target_cpu_default2="${target_cpu_default2}|MASK_GAS"
 5708: 			fi
 5709: 		fi
 5710: 		;;
 5711: 	arm*-*-*)
 5712: 		case "x$with_cpu" in
 5713: 			x)
 5714: 				# The most generic
 5715: 				target_cpu_default2="TARGET_CPU_generic"
 5716: 				;;
 5717: 
 5718: 			# Distinguish cores, and major variants
 5719: 			# arm7m doesn't exist, but D & I don't affect code
 5720: 			xarm23678 | xarm250 | xarm67010 \
 5721: 			| xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
 5722: 			| xarm7100 | xarm7500 | xarm7500fe | xarm810 \
 5723: 			| xstrongarm | xstrongarm110 | xstrongarm1100)
 5724: 				target_cpu_default2="TARGET_CPU_$with_cpu"
 5725: 				;;
 5726: 
 5727: 			xyes | xno)
 5728: 				echo "--with-cpu must be passed a value" 1>&2
 5729: 				exit 1
 5730: 				;;
 5731: 
 5732: 			*)
 5733: 				if test x$pass2done = xyes
 5734: 				then
 5735: 					echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
 5736: 					exit 1
 5737: 				fi
 5738: 				;;
 5739: 		esac
 5740: 		;;
 5741: 
 5742: 	mips*-*-ecoff* | mips*-*-elf*)
 5743: 		if test x$gas = xyes
 5744: 		then
 5745: 			if test x$gnu_ld = xyes
 5746: 			then
 5747: 				target_cpu_default2=20
 5748: 			else
 5749: 				target_cpu_default2=16
 5750: 			fi
 5751: 		fi
 5752: 		;;
 5753: 	mips*-*-*)
 5754: 		if test x$gas = xyes
 5755: 		then
 5756: 			target_cpu_default2=16
 5757: 		fi
 5758: 		;;
 5759: 	powerpc*-*-* | rs6000-*-*)
 5760: 		case "x$with_cpu" in
 5761: 			x)
 5762: 				;;
 5763: 
 5764: 			xcommon | xpower | xpower2 | xpowerpc | xrios \
 5765: 			  | xrios1 | xrios2 | xrsc | xrsc1 \
 5766: 			  | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
 5767: 			  | xec603e | x740 | x750 | x401 \
 5768: 			  | x403 | x505 | x801 | x821 | x823 | x860)
 5769: 				target_cpu_default2="\"$with_cpu\""
 5770: 				;;
 5771: 
 5772: 			xyes | xno)
 5773: 				echo "--with-cpu must be passed a value" 1>&2
 5774: 				exit 1
 5775: 				;;
 5776: 
 5777: 			*)
 5778: 				if test x$pass2done = xyes
 5779: 				then
 5780: 					echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
 5781: 					exit 1
 5782: 				fi
 5783: 				;;
 5784: 		esac
 5785: 		;;
 5786: 	sparc*-*-*)
 5787: 		case ".$with_cpu" in
 5788: 			.)
 5789: 				target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
 5790: 				;;
 5791: 			.supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
 5792: 				target_cpu_default2="TARGET_CPU_$with_cpu"
 5793: 				;;
 5794: 			*)
 5795: 				if test x$pass2done = xyes
 5796: 				then
 5797: 					echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
 5798: 					exit 1
 5799: 				fi
 5800: 				;;
 5801: 		esac
 5802: 		;;
 5803: 	esac
 5804: 
 5805: 	if test "$target_cpu_default2" != ""
 5806: 	then
 5807: 		if test "$target_cpu_default" != ""
 5808: 		then
 5809: 			target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
 5810: 		else
 5811: 			target_cpu_default=$target_cpu_default2
 5812: 		fi
 5813: 	fi
 5814: 
 5815: 	# No need for collect2 if we have the GNU linker.
 5816: 	# Actually, there is now; GNU ld doesn't handle the EH info or
 5817: 	# collecting for shared libraries.
 5818: 	#case x$gnu_ld in
 5819: 	#xyes)
 5820: 	#	use_collect2=
 5821: 	#	;;
 5822: 	#esac
 5823: 
 5824: # Save data on machine being used to compile GCC in build_xm_file.
 5825: # Save data on host machine in vars host_xm_file and host_xmake_file.
 5826: 	if test x$pass1done = x
 5827: 	then
 5828: 		if test x"$xm_file" = x
 5829: 		then build_xm_file=$cpu_type/xm-$cpu_type.h
 5830: 		else build_xm_file=$xm_file
 5831: 		fi
 5832: 		build_xm_defines=$xm_defines
 5833: 		build_install_headers_dir=$install_headers_dir
 5834: 		build_exeext=$exeext
 5835: 		pass1done=yes
 5836: 	else
 5837: 		if test x$pass2done = x
 5838: 		then
 5839: 			if test x"$xm_file" = x
 5840: 			then host_xm_file=$cpu_type/xm-$cpu_type.h
 5841: 			else host_xm_file=$xm_file
 5842: 			fi
 5843: 			host_xm_defines=$xm_defines
 5844: 			if test x"$xmake_file" = x
 5845: 			then xmake_file=$cpu_type/x-$cpu_type
 5846: 			fi
 5847: 			host_xmake_file="$xmake_file"
 5848: 			host_truncate_target=$truncate_target
 5849: 			host_extra_gcc_objs=$extra_gcc_objs
 5850: 			host_extra_objs=$extra_host_objs
 5851: 			host_exeext=$exeext
 5852: 			pass2done=yes
 5853: 		fi
 5854: 	fi
 5855: done
 5856: 
 5857: extra_objs="${host_extra_objs} ${extra_objs}"
 5858: 
 5859: # Default the target-machine variables that were not explicitly set.
 5860: if test x"$tm_file" = x
 5861: then tm_file=$cpu_type/$cpu_type.h; fi
 5862: 
 5863: if test x$extra_headers = x
 5864: then extra_headers=; fi
 5865: 
 5866: if test x"$xm_file" = x
 5867: then xm_file=$cpu_type/xm-$cpu_type.h; fi
 5868: 
 5869: if test x$md_file = x
 5870: then md_file=$cpu_type/$cpu_type.md; fi
 5871: 
 5872: if test x$out_file = x
 5873: then out_file=$cpu_type/$cpu_type.c; fi
 5874: 
 5875: if test x"$tmake_file" = x
 5876: then tmake_file=$cpu_type/t-$cpu_type
 5877: fi
 5878: 
 5879: if test x"$dwarf2" = xyes
 5880: then tm_file="tm-dwarf2.h $tm_file"
 5881: fi
 5882: 
 5883: if test x$float_format = x
 5884: then float_format=i64
 5885: fi
 5886: 
 5887: if test $float_format = none
 5888: then float_h_file=Makefile.in
 5889: else float_h_file=float-$float_format.h
 5890: fi
 5891: 
 5892: if test x$enable_haifa = x
 5893: then
 5894:   case $target in
 5895:     alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
 5896:       enable_haifa=yes;;
 5897:   esac
 5898: fi
 5899: 
 5900: # Handle cpp installation.
 5901: if test x$enable_cpp != xno
 5902: then
 5903:   tmake_file="$tmake_file t-install-cpp"
 5904: fi
 5905: 
 5906: # Say what files are being used for the output code and MD file.
 5907: echo "Using \`$srcdir/config/$out_file' to output insns."
 5908: echo "Using \`$srcdir/config/$md_file' as machine description file."
 5909: 
 5910: count=a
 5911: for f in $tm_file; do
 5912: 	count=${count}x
 5913: done
 5914: if test $count = ax; then
 5915: 	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
 5916: else
 5917: 	echo "Using the following target machine macro files:"
 5918: 	for f in $tm_file; do
 5919: 		echo "	$srcdir/config/$f"
 5920: 	done
 5921: fi
 5922: 
 5923: count=a
 5924: for f in $host_xm_file; do
 5925: 	count=${count}x
 5926: done
 5927: if test $count = ax; then
 5928: 	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
 5929: else
 5930: 	echo "Using the following host machine macro files:"
 5931: 	for f in $host_xm_file; do
 5932: 		echo "	$srcdir/config/$f"
 5933: 	done
 5934: fi
 5935: 
 5936: if test "$host_xm_file" != "$build_xm_file"; then
 5937: 	count=a
 5938: 	for f in $build_xm_file; do
 5939: 		count=${count}x
 5940: 	done
 5941: 	if test $count = ax; then
 5942: 		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
 5943: 	else
 5944: 		echo "Using the following build machine macro files:"
 5945: 		for f in $build_xm_file; do
 5946: 			echo "	$srcdir/config/$f"
 5947: 		done
 5948: 	fi
 5949: fi
 5950: 
 5951: if test x$thread_file = x; then
 5952: 	if test x$target_thread_file != x; then
 5953: 		thread_file=$target_thread_file
 5954: 	else
 5955: 		thread_file='single'
 5956: 	fi
 5957: fi
 5958: 
 5959: # Set up the header files.
 5960: # $links is the list of header files to create.
 5961: # $vars is the list of shell variables with file names to include.
 5962: # auto-host.h is the file containing items generated by autoconf and is
 5963: # the first file included by config.h.
 5964: null_defines=
 5965: host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
 5966: 
 5967: # If host=build, it is correct to have hconfig include auto-host.h
 5968: # as well.  If host!=build, we are in error and need to do more 
 5969: # work to find out the build config parameters.
 5970: if test x$host = x$build
 5971: then
 5972: 	build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
 5973: else
 5974: 	# We create a subdir, then run autoconf in the subdir.
 5975: 	# To prevent recursion we set host and build for the new
 5976: 	# invocation of configure to the build for this invocation
 5977: 	# of configure. 
 5978: 	tempdir=build.$$
 5979: 	rm -rf $tempdir
 5980: 	mkdir $tempdir
 5981: 	cd $tempdir
 5982: 	case ${srcdir} in
 5983: 	/*) realsrcdir=${srcdir};;
 5984: 	*) realsrcdir=../${srcdir};;
 5985: 	esac
 5986: 	CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
 5987: 		--target=$target --host=$build --build=$build
 5988: 
 5989: 	# We just finished tests for the build machine, so rename
 5990: 	# the file auto-build.h in the gcc directory.
 5991: 	mv auto-host.h ../auto-build.h
 5992: 	cd ..
 5993: 	rm -rf $tempdir
 5994: 	build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
 5995: fi
 5996: 
 5997: xm_file="gansidecl.h ${xm_file}"
 5998: tm_file="gansidecl.h ${tm_file}"
 5999: 
 6000: vars="host_xm_file tm_file xm_file build_xm_file"
 6001: links="config.h tm.h tconfig.h hconfig.h"
 6002: defines="host_xm_defines null_defines xm_defines build_xm_defines"
 6003: 
 6004: rm -f config.bak
 6005: if test -f config.status; then mv -f config.status config.bak; fi
 6006: 
 6007: # Make the links.
 6008: while test -n "$vars"
 6009: do
 6010: 	set $vars; var=$1; shift; vars=$*
 6011: 	set $links; link=$1; shift; links=$*
 6012: 	set $defines; define=$1; shift; defines=$*
 6013: 
 6014: 	rm -f $link
 6015: 
 6016: 	# Define TARGET_CPU_DEFAULT if the system wants one.
 6017: 	# This substitutes for lots of *.h files.
 6018: 	if test "$target_cpu_default" != "" -a $link = tm.h
 6019: 	then
 6020: 		echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
 6021: 	fi
 6022: 
 6023: 	for file in `eval echo '$'$var`; do
 6024: 		case $file in
 6025: 		auto-config.h)
 6026: 			;;
 6027: 		*)
 6028: 			echo '#ifdef IN_GCC' >>$link
 6029: 			;;
 6030: 		esac
 6031: 		echo "#include \"$file\"" >>$link
 6032: 		case $file in
 6033: 		auto-config.h)
 6034: 			;;
 6035: 		*)
 6036: 			echo '#endif' >>$link
 6037: 			;;
 6038: 		esac
 6039: 	done
 6040: 
 6041: 	for def in `eval echo '$'$define`; do
 6042: 		echo "#ifndef $def" >>$link
 6043: 		echo "#define $def" >>$link
 6044: 		echo "#endif" >>$link
 6045: 	done
 6046: done
 6047: 
 6048: # Truncate the target if necessary
 6049: if test x$host_truncate_target != x; then
 6050: 	target=`echo $target | sed -e 's/\(..............\).*/\1/'`
 6051: fi
 6052: 
 6053: # Get the version trigger filename from the toplevel
 6054: if test "${with_gcc_version_trigger+set}" = set; then
 6055: 	gcc_version_trigger=$with_gcc_version_trigger
 6056: else
 6057: 	gcc_version_trigger=${srcdir}/version.c
 6058: fi
 6059: gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
 6060: 
 6061: # Internationalization
 6062: PACKAGE=gcc
 6063: VERSION="$gcc_version"
 6064: cat >> confdefs.h <<EOF
 6065: #define PACKAGE "$PACKAGE"
 6066: EOF
 6067: 
 6068: cat >> confdefs.h <<EOF
 6069: #define VERSION "$VERSION"
 6070: EOF
 6071: 
 6072: 
 6073: 
 6074: 
 6075: ALL_LINGUAS="en_UK"
 6076: 
 6077: # NLS support is still experimental, so disable it by default for now.
 6078: # Check whether --enable-nls or --disable-nls was given.
 6079: if test "${enable_nls+set}" = set; then
 6080:   enableval="$enable_nls"
 6081:   :
 6082: else
 6083:   enable_nls=no
 6084: fi
 6085: 
 6086: 
 6087: 
 6088:         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
 6089: echo "configure:6066: checking for strerror in -lcposix" >&5
 6090: ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
 6091: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 6092:   echo $ac_n "(cached) $ac_c" 1>&6
 6093: else
 6094:   ac_save_LIBS="$LIBS"
 6095: LIBS="-lcposix  $LIBS"
 6096: cat > conftest.$ac_ext <<EOF
 6097: #line 6074 "configure"
 6098: #include "confdefs.h"
 6099: /* Override any gcc2 internal prototype to avoid an error.  */
 6100: /* We use char because int might match the return type of a gcc2
 6101:     builtin and then its argument prototype would still apply.  */
 6102: char strerror();
 6103: 
 6104: int main() {
 6105: strerror()
 6106: ; return 0; }
 6107: EOF
 6108: if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 6109:   rm -rf conftest*
 6110:   eval "ac_cv_lib_$ac_lib_var=yes"
 6111: else
 6112:   echo "configure: failed program was:" >&5
 6113:   cat conftest.$ac_ext >&5
 6114:   rm -rf conftest*
 6115:   eval "ac_cv_lib_$ac_lib_var=no"
 6116: fi
 6117: rm -f conftest*
 6118: LIBS="$ac_save_LIBS"
 6119: 
 6120: fi
 6121: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 6122:   echo "$ac_t""yes" 1>&6
 6123:   LIBS="$LIBS -lcposix"
 6124: else
 6125:   echo "$ac_t""no" 1>&6
 6126: fi
 6127: 
 6128:   
 6129: 
 6130: echo $ac_n "checking for working const""... $ac_c" 1>&6
 6131: echo "configure:6108: checking for working const" >&5
 6132: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 6133:   echo $ac_n "(cached) $ac_c" 1>&6
 6134: else
 6135:   cat > conftest.$ac_ext <<EOF
 6136: #line 6113 "configure"
 6137: #include "confdefs.h"
 6138: 
 6139: int main() {
 6140: 
 6141: /* Ultrix mips cc rejects this.  */
 6142: typedef int charset[2]; const charset x;
 6143: /* SunOS 4.1.1 cc rejects this.  */
 6144: char const *const *ccp;
 6145: char **p;
 6146: /* NEC SVR4.0.2 mips cc rejects this.  */
 6147: struct point {int x, y;};
 6148: static struct point const zero = {0,0};
 6149: /* AIX XL C 1.02.0.0 rejects this.
 6150:    It does not let you subtract one const X* pointer from another in an arm
 6151:    of an if-expression whose if-part is not a constant expression */
 6152: const char *g = "string";
 6153: ccp = &g + (g ? g-g : 0);
 6154: /* HPUX 7.0 cc rejects these. */
 6155: ++ccp;
 6156: p = (char**) ccp;
 6157: ccp = (char const *const *) p;
 6158: { /* SCO 3.2v4 cc rejects this.  */
 6159:   char *t;
 6160:   char const *s = 0 ? (char *) 0 : (char const *) 0;
 6161: 
 6162:   *t++ = 0;
 6163: }
 6164: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 6165:   int x[] = {25, 17};
 6166:   const int *foo = &x[0];
 6167:   ++foo;
 6168: }
 6169: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 6170:   typedef const int *iptr;
 6171:   iptr p = 0;
 6172:   ++p;
 6173: }
 6174: { /* AIX XL C 1.02.0.0 rejects this saying
 6175:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 6176:   struct s { int j; const int *ap[3]; };
 6177:   struct s *b; b->j = 5;
 6178: }
 6179: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 6180:   const int foo = 10;
 6181: }
 6182: 
 6183: ; return 0; }
 6184: EOF
 6185: if { (eval echo configure:6162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 6186:   rm -rf conftest*
 6187:   ac_cv_c_const=yes
 6188: else
 6189:   echo "configure: failed program was:" >&5
 6190:   cat conftest.$ac_ext >&5
 6191:   rm -rf conftest*
 6192:   ac_cv_c_const=no
 6193: fi
 6194: rm -f conftest*
 6195: fi
 6196: 
 6197: echo "$ac_t""$ac_cv_c_const" 1>&6
 6198: if test $ac_cv_c_const = no; then
 6199:   cat >> confdefs.h <<\EOF
 6200: #define const 
 6201: EOF
 6202: 
 6203: fi
 6204: 
 6205: echo $ac_n "checking for inline""... $ac_c" 1>&6
 6206: echo "configure:6183: checking for inline" >&5
 6207: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
 6208:   echo $ac_n "(cached) $ac_c" 1>&6
 6209: else
 6210:   ac_cv_c_inline=no
 6211: for ac_kw in inline __inline__ __inline; do
 6212:   cat > conftest.$ac_ext <<EOF
 6213: #line 6190 "configure"
 6214: #include "confdefs.h"
 6215: 
 6216: int main() {
 6217: } $ac_kw foo() {
 6218: ; return 0; }
 6219: EOF
 6220: if { (eval echo configure:6197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 6221:   rm -rf conftest*
 6222:   ac_cv_c_inline=$ac_kw; break
 6223: else
 6224:   echo "configure: failed program was:" >&5
 6225:   cat conftest.$ac_ext >&5
 6226: fi
 6227: rm -f conftest*
 6228: done
 6229: 
 6230: fi
 6231: 
 6232: echo "$ac_t""$ac_cv_c_inline" 1>&6
 6233: case "$ac_cv_c_inline" in
 6234:   inline | yes) ;;
 6235:   no) cat >> confdefs.h <<\EOF
 6236: #define inline 
 6237: EOF
 6238:  ;;
 6239:   *)  cat >> confdefs.h <<EOF
 6240: #define inline $ac_cv_c_inline
 6241: EOF
 6242:  ;;
 6243: esac
 6244: 
 6245: echo $ac_n "checking for off_t""... $ac_c" 1>&6
 6246: echo "configure:6223: checking for off_t" >&5
 6247: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
 6248:   echo $ac_n "(cached) $ac_c" 1>&6
 6249: else
 6250:   cat > conftest.$ac_ext <<EOF
 6251: #line 6228 "configure"
 6252: #include "confdefs.h"
 6253: #include <sys/types.h>
 6254: #if STDC_HEADERS
 6255: #include <stdlib.h>
 6256: #include <stddef.h>
 6257: #endif
 6258: EOF
 6259: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 6260:   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 6261:   rm -rf conftest*
 6262:   ac_cv_type_off_t=yes
 6263: else
 6264:   rm -rf conftest*
 6265:   ac_cv_type_off_t=no
 6266: fi
 6267: rm -f conftest*
 6268: 
 6269: fi
 6270: echo "$ac_t""$ac_cv_type_off_t" 1>&6
 6271: if test $ac_cv_type_off_t = no; then
 6272:   cat >> confdefs.h <<\EOF
 6273: #define off_t long
 6274: EOF
 6275: 
 6276: fi
 6277: 
 6278: echo $ac_n "checking for size_t""... $ac_c" 1>&6
 6279: echo "configure:6256: checking for size_t" >&5
 6280: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
 6281:   echo $ac_n "(cached) $ac_c" 1>&6
 6282: else
 6283:   cat > conftest.$ac_ext <<EOF
 6284: #line 6261 "configure"
 6285: #include "confdefs.h"
 6286: #include <sys/types.h>
 6287: #if STDC_HEADERS
 6288: #include <stdlib.h>
 6289: #include <stddef.h>
 6290: #endif
 6291: EOF
 6292: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 6293:   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 6294:   rm -rf conftest*
 6295:   ac_cv_type_size_t=yes
 6296: else
 6297:   rm -rf conftest*
 6298:   ac_cv_type_size_t=no
 6299: fi
 6300: rm -f conftest*
 6301: 
 6302: fi
 6303: echo "$ac_t""$ac_cv_type_size_t" 1>&6
 6304: if test $ac_cv_type_size_t = no; then
 6305:   cat >> confdefs.h <<\EOF
 6306: #define size_t unsigned
 6307: EOF
 6308: 
 6309: fi
 6310: 
 6311: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 6312: # for constant arguments.  Useless!
 6313: echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
 6314: echo "configure:6291: checking for working alloca.h" >&5
 6315: if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
 6316:   echo $ac_n "(cached) $ac_c" 1>&6
 6317: else
 6318:   cat > conftest.$ac_ext <<EOF
 6319: #line 6296 "configure"
 6320: #include "confdefs.h"
 6321: #include <alloca.h>
 6322: int main() {
 6323: char *p = alloca(2 * sizeof(int));
 6324: ; return 0; }
 6325: EOF
 6326: if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 6327:   rm -rf conftest*
 6328:   ac_cv_header_alloca_h=yes
 6329: else
 6330:   echo "configure: failed program was:" >&5
 6331:   cat conftest.$ac_ext >&5
 6332:   rm -rf conftest*
 6333:   ac_cv_header_alloca_h=no
 6334: fi
 6335: rm -f conftest*
 6336: fi
 6337: 
 6338: echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
 6339: if test $ac_cv_header_alloca_h = yes; then
 6340:   cat >> confdefs.h <<\EOF
 6341: #define HAVE_ALLOCA_H 1
 6342: EOF
 6343: 
 6344: fi
 6345: 
 6346: echo $ac_n "checking for alloca""... $ac_c" 1>&6
 6347: echo "configure:6324: checking for alloca" >&5
 6348: if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
 6349:   echo $ac_n "(cached) $ac_c" 1>&6
 6350: else
 6351:   cat > conftest.$ac_ext <<EOF
 6352: #line 6329 "configure"
 6353: #include "confdefs.h"
 6354: 
 6355: #ifdef __GNUC__
 6356: # define alloca __builtin_alloca
 6357: #else
 6358: # ifdef _MSC_VER
 6359: #  include <malloc.h>
 6360: #  define alloca _alloca
 6361: # else
 6362: #  if HAVE_ALLOCA_H
 6363: #   include <alloca.h>
 6364: #  else
 6365: #   ifdef _AIX
 6366:  #pragma alloca
 6367: #   else
 6368: #    ifndef alloca /* predefined by HP cc +Olibcalls */
 6369: char *alloca ();
 6370: #    endif
 6371: #   endif
 6372: #  endif
 6373: # endif
 6374: #endif
 6375: 
 6376: int main() {
 6377: char *p = (char *) alloca(1);
 6378: ; return 0; }
 6379: EOF
 6380: if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 6381:   rm -rf conftest*
 6382:   ac_cv_func_alloca_works=yes
 6383: else
 6384:   echo "configure: failed program was:" >&5
 6385:   cat conftest.$ac_ext >&5
 6386:   rm -rf conftest*
 6387:   ac_cv_func_alloca_works=no
 6388: fi
 6389: rm -f conftest*
 6390: fi
 6391: 
 6392: echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 6393: if test $ac_cv_func_alloca_works = yes; then
 6394:   cat >> confdefs.h <<\EOF
 6395: #define HAVE_ALLOCA 1
 6396: EOF
 6397: 
 6398: fi
 6399: 
 6400: if test $ac_cv_func_alloca_works = no; then
 6401:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 6402:   # that cause trouble.  Some versions do not even contain alloca or
 6403:   # contain a buggy version.  If you still want to use their alloca,
 6404:   # use ar to extract alloca.o from them instead of compiling alloca.c.
 6405:   ALLOCA=alloca.${ac_objext}
 6406:   cat >> confdefs.h <<\EOF
 6407: #define C_ALLOCA 1
 6408: EOF
 6409: 
 6410: 
 6411: echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
 6412: echo "configure:6389: checking whether alloca needs Cray hooks" >&5
 6413: if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
 6414:   echo $ac_n "(cached) $ac_c" 1>&6
 6415: else
 6416:   cat > conftest.$ac_ext <<EOF
 6417: #line 6394 "configure"
 6418: #include "confdefs.h"
 6419: #if defined(CRAY) && ! defined(CRAY2)
 6420: webecray
 6421: #else
 6422: wenotbecray
 6423: #endif
 6424: 
 6425: EOF
 6426: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 6427:   egrep "webecray" >/dev/null 2>&1; then
 6428:   rm -rf conftest*
 6429:   ac_cv_os_cray=yes
 6430: else
 6431:   rm -rf conftest*
 6432:   ac_cv_os_cray=no
 6433: fi
 6434: rm -f conftest*
 6435: 
 6436: fi
 6437: 
 6438: echo "$ac_t""$ac_cv_os_cray" 1>&6
 6439: if test $ac_cv_os_cray = yes; then
 6440: for ac_func in _getb67 GETB67 getb67; do
 6441:   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 6442: echo "configure:6419: checking for $ac_func" >&5
 6443: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 6444:   echo $ac_n "(cached) $ac_c" 1>&6
 6445: else
 6446:   cat > conftest.$ac_ext <<EOF
 6447: #line 6424 "configure"
 6448: #include "confdefs.h"
 6449: /* System header to define __stub macros and hopefully few prototypes,
 6450:     which can conflict with char $ac_func(); below.  */
 6451: #include <assert.h>
 6452: /* Override any gcc2 internal prototype to avoid an error.  */
 6453: /* We use char because int might match the return type of a gcc2
 6454:     builtin and then its argument prototype would still apply.  */
 6455: char $ac_func();
 6456: 
 6457: int main() {
 6458: 
 6459: /* The GNU C library defines this for functions which it implements
 6460:     to always fail with ENOSYS.  Some functions are actually named
 6461:     something starting with __ and the normal name is an alias.  */
 6462: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 6463: choke me
 6464: #else
 6465: $ac_func();
 6466: #endif
 6467: 
 6468: ; return 0; }
 6469: EOF
 6470: if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 6471:   rm -rf conftest*
 6472:   eval "ac_cv_func_$ac_func=yes"
 6473: else
 6474:   echo "configure: failed program was:" >&5
 6475:   cat conftest.$ac_ext >&5
 6476:   rm -rf conftest*
 6477:   eval "ac_cv_func_$ac_func=no"
 6478: fi
 6479: rm -f conftest*
 6480: fi
 6481: 
 6482: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 6483:   echo "$ac_t""yes" 1>&6
 6484:   cat >> confdefs.h <<EOF
 6485: #define CRAY_STACKSEG_END $ac_func
 6486: EOF
 6487: 
 6488:   break
 6489: else
 6490:   echo "$ac_t""no" 1>&6
 6491: fi
 6492: 
 6493: done
 6494: fi
 6495: 
 6496: echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
 6497: echo "configure:6474: checking stack direction for C alloca" >&5
 6498: if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
 6499:   echo $ac_n "(cached) $ac_c" 1>&6
 6500: else
 6501:   if test "$cross_compiling" = yes; then
 6502:   ac_cv_c_stack_direction=0
 6503: else
 6504:   cat > conftest.$ac_ext <<EOF
 6505: #line 6482 "configure"
 6506: #include "confdefs.h"
 6507: find_stack_direction ()
 6508: {
 6509:   static char *addr = 0;
 6510:   auto char dummy;
 6511:   if (addr == 0)
 6512:     {
 6513:       addr = &dummy;
 6514:       return find_stack_direction ();
 6515:     }
 6516:   else
 6517:     return (&dummy > addr) ? 1 : -1;
 6518: }
 6519: main ()
 6520: {
 6521:   exit (find_stack_direction() < 0);
 6522: }
 6523: EOF
 6524: if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 6525: then
 6526:   ac_cv_c_stack_direction=1
 6527: else
 6528:   echo "configure: failed program was:" >&5
 6529:   cat conftest.$ac_ext >&5
 6530:   rm -fr conftest*
 6531:   ac_cv_c_stack_direction=-1
 6532: fi
 6533: rm -fr conftest*
 6534: fi
 6535: 
 6536: fi
 6537: 
 6538: echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
 6539: cat >> confdefs.h <<EOF
 6540: #define STACK_DIRECTION $ac_cv_c_stack_direction
 6541: EOF
 6542: 
 6543: fi
 6544: 
 6545: for ac_hdr in unistd.h
 6546: do
 6547: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 6548: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 6549: echo "configure:6526: checking for $ac_hdr" >&5
 6550: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 6551:   echo $ac_n "(cached) $ac_c" 1>&6
 6552: else
 6553:   cat > conftest.$ac_ext <<EOF
 6554: #line 6531 "configure"
 6555: #include "confdefs.h"
 6556: #include <$ac_hdr>
 6557: EOF
 6558: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 6559: { (eval echo configure:6536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 6560: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 6561: if test -z "$ac_err"; then
 6562:   rm -rf conftest*
 6563:   eval "ac_cv_header_$ac_safe=yes"
 6564: else
 6565:   echo "$ac_err" >&5
 6566:   echo "configure: failed program was:" >&5
 6567:   cat conftest.$ac_ext >&5
 6568:   rm -rf conftest*
 6569:   eval "ac_cv_header_$ac_safe=no"
 6570: fi
 6571: rm -f conftest*
 6572: fi
 6573: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 6574:   echo "$ac_t""yes" 1>&6
 6575:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 6576:   cat >> confdefs.h <<EOF
 6577: #define $ac_tr_hdr 1
 6578: EOF
 6579:  
 6580: else
 6581:   echo "$ac_t""no" 1>&6
 6582: fi
 6583: done
 6584: 
 6585: for ac_func in getpagesize
 6586: do
 6587: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 6588: echo "configure:6565: checking for $ac_func" >&5
 6589: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 6590:   echo $ac_n "(cached) $ac_c" 1>&6
 6591: else
 6592:   cat > conftest.$ac_ext <<EOF
 6593: #line 6570 "configure"
 6594: #include "confdefs.h"
 6595: /* System header to define __stub macros and hopefully few prototypes,
 6596:     which can conflict with char $ac_func(); below.  */
 6597: #include <assert.h>
 6598: /* Override any gcc2 internal prototype to avoid an error.  */
 6599: /* We use char because int might match the return type of a gcc2
 6600:     builtin and then its argument prototype would still apply.  */
 6601: char $ac_func();
 6602: 
 6603: int main() {
 6604: 
 6605: /* The GNU C library defines this for functions which it implements
 6606:     to always fail with ENOSYS.  Some functions are actually named
 6607:     something starting with __ and the normal name is an alias.  */
 6608: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 6609: choke me
 6610: #else
 6611: $ac_func();
 6612: #endif
 6613: 
 6614: ; return 0; }
 6615: EOF
 6616: if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 6617:   rm -rf conftest*
 6618:   eval "ac_cv_func_$ac_func=yes"
 6619: else
 6620:   echo "configure: failed program was:" >&5
 6621:   cat conftest.$ac_ext >&5
 6622:   rm -rf conftest*
 6623:   eval "ac_cv_func_$ac_func=no"
 6624: fi
 6625: rm -f conftest*
 6626: fi
 6627: 
 6628: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 6629:   echo "$ac_t""yes" 1>&6
 6630:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 6631:   cat >> confdefs.h <<EOF
 6632: #define $ac_tr_func 1
 6633: EOF
 6634:  
 6635: else
 6636:   echo "$ac_t""no" 1>&6
 6637: fi
 6638: done
 6639: 
 6640: echo $ac_n "checking for working mmap""... $ac_c" 1>&6
 6641: echo "configure:6618: checking for working mmap" >&5
 6642: if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
 6643:   echo $ac_n "(cached) $ac_c" 1>&6
 6644: else
 6645:   if test "$cross_compiling" = yes; then
 6646:   ac_cv_func_mmap_fixed_mapped=no
 6647: else
 6648:   cat > conftest.$ac_ext <<EOF
 6649: #line 6626 "configure"
 6650: #include "confdefs.h"
 6651: 
 6652: /* Thanks to Mike Haertel and Jim Avera for this test.
 6653:    Here is a matrix of mmap possibilities:
 6654: 	mmap private not fixed
 6655: 	mmap private fixed at somewhere currently unmapped
 6656: 	mmap private fixed at somewhere already mapped
 6657: 	mmap shared not fixed
 6658: 	mmap shared fixed at somewhere currently unmapped
 6659: 	mmap shared fixed at somewhere already mapped
 6660:    For private mappings, we should verify that changes cannot be read()
 6661:    back from the file, nor mmap's back from the file at a different
 6662:    address.  (There have been systems where private was not correctly
 6663:    implemented like the infamous i386 svr4.0, and systems where the
 6664:    VM page cache was not coherent with the filesystem buffer cache
 6665:    like early versions of FreeBSD and possibly contemporary NetBSD.)
 6666:    For shared mappings, we should conversely verify that changes get
 6667:    propogated back to all the places they're supposed to be.
 6668: 
 6669:    Grep wants private fixed already mapped.
 6670:    The main things grep needs to know about mmap are:
 6671:    * does it exist and is it safe to write into the mmap'd area
 6672:    * how to use it (BSD variants)  */
 6673: #include <sys/types.h>
 6674: #include <fcntl.h>
 6675: #include <sys/mman.h>
 6676: 
 6677: /* This mess was copied from the GNU getpagesize.h.  */
 6678: #ifndef HAVE_GETPAGESIZE
 6679: # ifdef HAVE_UNISTD_H
 6680: #  include <unistd.h>
 6681: # endif
 6682: 
 6683: /* Assume that all systems that can run configure have sys/param.h.  */
 6684: # ifndef HAVE_SYS_PARAM_H
 6685: #  define HAVE_SYS_PARAM_H 1
 6686: # endif
 6687: 
 6688: # ifdef _SC_PAGESIZE
 6689: #  define getpagesize() sysconf(_SC_PAGESIZE)
 6690: # else /* no _SC_PAGESIZE */
 6691: #  ifdef HAVE_SYS_PARAM_H
 6692: #   include <sys/param.h>
 6693: #   ifdef EXEC_PAGESIZE
 6694: #    define getpagesize() EXEC_PAGESIZE
 6695: #   else /* no EXEC_PAGESIZE */
 6696: #    ifdef NBPG
 6697: #     define getpagesize() NBPG * CLSIZE
 6698: #     ifndef CLSIZE
 6699: #      define CLSIZE 1
 6700: #     endif /* no CLSIZE */
 6701: #    else /* no NBPG */
 6702: #     ifdef NBPC
 6703: #      define getpagesize() NBPC
 6704: #     else /* no NBPC */
 6705: #      ifdef PAGESIZE
 6706: #       define getpagesize() PAGESIZE
 6707: #      endif /* PAGESIZE */
 6708: #     endif /* no NBPC */
 6709: #    endif /* no NBPG */
 6710: #   endif /* no EXEC_PAGESIZE */
 6711: #  else /* no HAVE_SYS_PARAM_H */
 6712: #   define getpagesize() 8192	/* punt totally */
 6713: #  endif /* no HAVE_SYS_PARAM_H */
 6714: # endif /* no _SC_PAGESIZE */
 6715: 
 6716: #endif /* no HAVE_GETPAGESIZE */
 6717: 
 6718: #ifdef __cplusplus
 6719: extern "C" { void *malloc(unsigned); }
 6720: #else
 6721: char *malloc();
 6722: #endif
 6723: 
 6724: int
 6725: main()
 6726: {
 6727: 	char *data, *data2, *data3;
 6728: 	int i, pagesize;
 6729: 	int fd;
 6730: 
 6731: 	pagesize = getpagesize();
 6732: 
 6733: 	/*
 6734: 	 * First, make a file with some known garbage in it.
 6735: 	 */
 6736: 	data = malloc(pagesize);
 6737: 	if (!data)
 6738: 		exit(1);
 6739: 	for (i = 0; i < pagesize; ++i)
 6740: 		*(data + i) = rand();
 6741: 	umask(0);
 6742: 	fd = creat("conftestmmap", 0600);
 6743: 	if (fd < 0)
 6744: 		exit(1);
 6745: 	if (write(fd, data, pagesize) != pagesize)
 6746: 		exit(1);
 6747: 	close(fd);
 6748: 
 6749: 	/*
 6750: 	 * Next, try to mmap the file at a fixed address which
 6751: 	 * already has something else allocated at it.  If we can,
 6752: 	 * also make sure that we see the same garbage.
 6753: 	 */
 6754: 	fd = open("conftestmmap", O_RDWR);
 6755: 	if (fd < 0)
 6756: 		exit(1);
 6757: 	data2 = malloc(2 * pagesize);
 6758: 	if (!data2)
 6759: 		exit(1);
 6760: 	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
 6761: 	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
 6762: 	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
 6763: 		exit(1);
 6764: 	for (i = 0; i < pagesize; ++i)
 6765: 		if (*(data + i) != *(data2 + i))
 6766: 			exit(1);
 6767: 
 6768: 	/*
 6769: 	 * Finally, make sure that changes to the mapped area
 6770: 	 * do not percolate back to the file as seen by read().
 6771: 	 * (This is a bug on some variants of i386 svr4.0.)
 6772: 	 */
 6773: 	for (i = 0; i < pagesize; ++i)
 6774: 		*(data2 + i) = *(data2 + i) + 1;
 6775: 	data3 = malloc(pagesize);
 6776: 	if (!data3)
 6777: 		exit(1);
 6778: 	if (read(fd, data3, pagesize) != pagesize)
 6779: 		exit(1);
 6780: 	for (i = 0; i < pagesize; ++i)
 6781: 		if (*(data + i) != *(data3 + i))
 6782: 			exit(1);
 6783: 	close(fd);
 6784: 	unlink("conftestmmap");
 6785: 	exit(0);
 6786: }
 6787: 
 6788: EOF
 6789: if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 6790: then
 6791:   ac_cv_func_mmap_fixed_mapped=yes
 6792: else
 6793:   echo "configure: failed program was:" >&5
 6794:   cat conftest.$ac_ext >&5
 6795:   rm -fr conftest*
 6796:   ac_cv_func_mmap_fixed_mapped=no
 6797: fi
 6798: rm -fr conftest*
 6799: fi
 6800: 
 6801: fi
 6802: 
 6803: echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
 6804: if test $ac_cv_func_mmap_fixed_mapped = yes; then
 6805:   cat >> confdefs.h <<\EOF
 6806: #define HAVE_MMAP 1
 6807: EOF
 6808: 
 6809: fi
 6810: 
 6811:                               
 6812:    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
 6813: unistd.h sys/param.h
 6814: do
 6815: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 6816: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 6817: echo "configure:6794: checking for $ac_hdr" >&5
 6818: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 6819:   echo $ac_n "(cached) $ac_c" 1>&6
 6820: else
 6821:   cat > conftest.$ac_ext <<EOF
 6822: #line 6799 "configure"
 6823: #include "confdefs.h"
 6824: #include <$ac_hdr>
 6825: EOF
 6826: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 6827: { (eval echo configure:6804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 6828: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 6829: if test -z "$ac_err"; then
 6830:   rm -rf conftest*
 6831:   eval "ac_cv_header_$ac_safe=yes"
 6832: else
 6833:   echo "$ac_err" >&5
 6834:   echo "configure: failed program was:" >&5
 6835:   cat conftest.$ac_ext >&5
 6836:   rm -rf conftest*
 6837:   eval "ac_cv_header_$ac_safe=no"
 6838: fi
 6839: rm -f conftest*
 6840: fi
 6841: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 6842:   echo "$ac_t""yes" 1>&6
 6843:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 6844:   cat >> confdefs.h <<EOF
 6845: #define $ac_tr_hdr 1
 6846: EOF
 6847:  
 6848: else
 6849:   echo "$ac_t""no" 1>&6
 6850: fi
 6851: done
 6852: 
 6853:    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
 6854: strdup __argz_count __argz_stringify __argz_next
 6855: do
 6856: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 6857: echo "configure:6834: checking for $ac_func" >&5
 6858: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 6859:   echo $ac_n "(cached) $ac_c" 1>&6
 6860: else
 6861:   cat > conftest.$ac_ext <<EOF
 6862: #line 6839 "configure"
 6863: #include "confdefs.h"
 6864: /* System header to define __stub macros and hopefully few prototypes,
 6865:     which can conflict with char $ac_func(); below.  */
 6866: #include <assert.h>
 6867: /* Override any gcc2 internal prototype to avoid an error.  */
 6868: /* We use char because int might match the return type of a gcc2
 6869:     builtin and then its argument prototype would still apply.  */
 6870: char $ac_func();
 6871: 
 6872: int main() {
 6873: 
 6874: /* The GNU C library defines this for functions which it implements
 6875:     to always fail with ENOSYS.  Some functions are actually named
 6876:     something starting with __ and the normal name is an alias.  */
 6877: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 6878: choke me
 6879: #else
 6880: $ac_func();
 6881: #endif
 6882: 
 6883: ; return 0; }
 6884: EOF
 6885: if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 6886:   rm -rf conftest*
 6887:   eval "ac_cv_func_$ac_func=yes"
 6888: else
 6889:   echo "configure: failed program was:" >&5
 6890:   cat conftest.$ac_ext >&5
 6891:   rm -rf conftest*
 6892:   eval "ac_cv_func_$ac_func=no"
 6893: fi
 6894: rm -f conftest*
 6895: fi
 6896: 
 6897: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 6898:   echo "$ac_t""yes" 1>&6
 6899:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 6900:   cat >> confdefs.h <<EOF
 6901: #define $ac_tr_func 1
 6902: EOF
 6903:  
 6904: else
 6905:   echo "$ac_t""no" 1>&6
 6906: fi
 6907: done
 6908: 
 6909: 
 6910:    if test "${ac_cv_func_stpcpy+set}" != "set"; then
 6911:      for ac_func in stpcpy
 6912: do
 6913: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 6914: echo "configure:6891: checking for $ac_func" >&5
 6915: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 6916:   echo $ac_n "(cached) $ac_c" 1>&6
 6917: else
 6918:   cat > conftest.$ac_ext <<EOF
 6919: #line 6896 "configure"
 6920: #include "confdefs.h"
 6921: /* System header to define __stub macros and hopefully few prototypes,
 6922:     which can conflict with char $ac_func(); below.  */
 6923: #include <assert.h>
 6924: /* Override any gcc2 internal prototype to avoid an error.  */
 6925: /* We use char because int might match the return type of a gcc2
 6926:     builtin and then its argument prototype would still apply.  */
 6927: char $ac_func();
 6928: 
 6929: int main() {
 6930: 
 6931: /* The GNU C library defines this for functions which it implements
 6932:     to always fail with ENOSYS.  Some functions are actually named
 6933:     something starting with __ and the normal name is an alias.  */
 6934: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 6935: choke me
 6936: #else
 6937: $ac_func();
 6938: #endif
 6939: 
 6940: ; return 0; }
 6941: EOF
 6942: if { (eval echo configure:6919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 6943:   rm -rf conftest*
 6944:   eval "ac_cv_func_$ac_func=yes"
 6945: else
 6946:   echo "configure: failed program was:" >&5
 6947:   cat conftest.$ac_ext >&5
 6948:   rm -rf conftest*
 6949:   eval "ac_cv_func_$ac_func=no"
 6950: fi
 6951: rm -f conftest*
 6952: fi
 6953: 
 6954: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 6955:   echo "$ac_t""yes" 1>&6
 6956:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 6957:   cat >> confdefs.h <<EOF
 6958: #define $ac_tr_func 1
 6959: EOF
 6960:  
 6961: else
 6962:   echo "$ac_t""no" 1>&6
 6963: fi
 6964: done
 6965: 
 6966:    fi
 6967:    if test "${ac_cv_func_stpcpy}" = "yes"; then
 6968:      cat >> confdefs.h <<\EOF
 6969: #define HAVE_STPCPY 1
 6970: EOF
 6971: 
 6972:    fi
 6973: 
 6974:    if test $ac_cv_header_locale_h = yes; then
 6975:     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
 6976: echo "configure:6953: checking for LC_MESSAGES" >&5
 6977: if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
 6978:   echo $ac_n "(cached) $ac_c" 1>&6
 6979: else
 6980:   cat > conftest.$ac_ext <<EOF
 6981: #line 6958 "configure"
 6982: #include "confdefs.h"
 6983: #include <locale.h>
 6984: int main() {
 6985: return LC_MESSAGES
 6986: ; return 0; }
 6987: EOF
 6988: if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 6989:   rm -rf conftest*
 6990:   am_cv_val_LC_MESSAGES=yes
 6991: else
 6992:   echo "configure: failed program was:" >&5
 6993:   cat conftest.$ac_ext >&5
 6994:   rm -rf conftest*
 6995:   am_cv_val_LC_MESSAGES=no
 6996: fi
 6997: rm -f conftest*
 6998: fi
 6999: 
 7000: echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
 7001:     if test $am_cv_val_LC_MESSAGES = yes; then
 7002:       cat >> confdefs.h <<\EOF
 7003: #define HAVE_LC_MESSAGES 1
 7004: EOF
 7005: 
 7006:     fi
 7007:   fi
 7008:    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
 7009: echo "configure:6986: checking whether NLS is requested" >&5
 7010:         # Check whether --enable-nls or --disable-nls was given.
 7011: if test "${enable_nls+set}" = set; then
 7012:   enableval="$enable_nls"
 7013:   USE_NLS=$enableval
 7014: else
 7015:   USE_NLS=yes
 7016: fi
 7017: 
 7018:     echo "$ac_t""$USE_NLS" 1>&6
 7019:     
 7020: 
 7021:     USE_INCLUDED_LIBINTL=no
 7022: 
 7023:         if test "$USE_NLS" = "yes"; then
 7024:       cat >> confdefs.h <<\EOF
 7025: #define ENABLE_NLS 1
 7026: EOF
 7027: 
 7028:       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
 7029: echo "configure:7006: checking whether included gettext is requested" >&5
 7030:       # Check whether --with-included-gettext or --without-included-gettext was given.
 7031: if test "${with_included_gettext+set}" = set; then
 7032:   withval="$with_included_gettext"
 7033:   nls_cv_force_use_gnu_gettext=$withval
 7034: else
 7035:   nls_cv_force_use_gnu_gettext=no
 7036: fi
 7037: 
 7038:       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
 7039: 
 7040:       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 7041:       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 7042:                         		nls_cv_header_intl=
 7043: 	nls_cv_header_libgt=
 7044: 	CATOBJEXT=NONE
 7045: 
 7046: 	ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
 7047: echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
 7048: echo "configure:7025: checking for libintl.h" >&5
 7049: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 7050:   echo $ac_n "(cached) $ac_c" 1>&6
 7051: else
 7052:   cat > conftest.$ac_ext <<EOF
 7053: #line 7030 "configure"
 7054: #include "confdefs.h"
 7055: #include <libintl.h>
 7056: EOF
 7057: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 7058: { (eval echo configure:7035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 7059: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 7060: if test -z "$ac_err"; then
 7061:   rm -rf conftest*
 7062:   eval "ac_cv_header_$ac_safe=yes"
 7063: else
 7064:   echo "$ac_err" >&5
 7065:   echo "configure: failed program was:" >&5
 7066:   cat conftest.$ac_ext >&5
 7067:   rm -rf conftest*
 7068:   eval "ac_cv_header_$ac_safe=no"
 7069: fi
 7070: rm -f conftest*
 7071: fi
 7072: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 7073:   echo "$ac_t""yes" 1>&6
 7074:   echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
 7075: echo "configure:7052: checking for gettext in libc" >&5
 7076: if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
 7077:   echo $ac_n "(cached) $ac_c" 1>&6
 7078: else
 7079:   cat > conftest.$ac_ext <<EOF
 7080: #line 7057 "configure"
 7081: #include "confdefs.h"
 7082: #include <libintl.h>
 7083: int main() {
 7084: return (int) gettext ("")
 7085: ; return 0; }
 7086: EOF
 7087: if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 7088:   rm -rf conftest*
 7089:   gt_cv_func_gettext_libc=yes
 7090: else
 7091:   echo "configure: failed program was:" >&5
 7092:   cat conftest.$ac_ext >&5
 7093:   rm -rf conftest*
 7094:   gt_cv_func_gettext_libc=no
 7095: fi
 7096: rm -f conftest*
 7097: fi
 7098: 
 7099: echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
 7100: 
 7101: 	   if test "$gt_cv_func_gettext_libc" != "yes"; then
 7102: 	     echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
 7103: echo "configure:7080: checking for bindtextdomain in -lintl" >&5
 7104: ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
 7105: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 7106:   echo $ac_n "(cached) $ac_c" 1>&6
 7107: else
 7108:   ac_save_LIBS="$LIBS"
 7109: LIBS="-lintl  $LIBS"
 7110: cat > conftest.$ac_ext <<EOF
 7111: #line 7088 "configure"
 7112: #include "confdefs.h"
 7113: /* Override any gcc2 internal prototype to avoid an error.  */
 7114: /* We use char because int might match the return type of a gcc2
 7115:     builtin and then its argument prototype would still apply.  */
 7116: char bindtextdomain();
 7117: 
 7118: int main() {
 7119: bindtextdomain()
 7120: ; return 0; }
 7121: EOF
 7122: if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 7123:   rm -rf conftest*
 7124:   eval "ac_cv_lib_$ac_lib_var=yes"
 7125: else
 7126:   echo "configure: failed program was:" >&5
 7127:   cat conftest.$ac_ext >&5
 7128:   rm -rf conftest*
 7129:   eval "ac_cv_lib_$ac_lib_var=no"
 7130: fi
 7131: rm -f conftest*
 7132: LIBS="$ac_save_LIBS"
 7133: 
 7134: fi
 7135: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 7136:   echo "$ac_t""yes" 1>&6
 7137:   echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
 7138: echo "configure:7115: checking for gettext in libintl" >&5
 7139: if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
 7140:   echo $ac_n "(cached) $ac_c" 1>&6
 7141: else
 7142:   echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
 7143: echo "configure:7120: checking for gettext in -lintl" >&5
 7144: ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
 7145: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 7146:   echo $ac_n "(cached) $ac_c" 1>&6
 7147: else
 7148:   ac_save_LIBS="$LIBS"
 7149: LIBS="-lintl  $LIBS"
 7150: cat > conftest.$ac_ext <<EOF
 7151: #line 7128 "configure"
 7152: #include "confdefs.h"
 7153: /* Override any gcc2 internal prototype to avoid an error.  */
 7154: /* We use char because int might match the return type of a gcc2
 7155:     builtin and then its argument prototype would still apply.  */
 7156: char gettext();
 7157: 
 7158: int main() {
 7159: gettext()
 7160: ; return 0; }
 7161: EOF
 7162: if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 7163:   rm -rf conftest*
 7164:   eval "ac_cv_lib_$ac_lib_var=yes"
 7165: else
 7166:   echo "configure: failed program was:" >&5
 7167:   cat conftest.$ac_ext >&5
 7168:   rm -rf conftest*
 7169:   eval "ac_cv_lib_$ac_lib_var=no"
 7170: fi
 7171: rm -f conftest*
 7172: LIBS="$ac_save_LIBS"
 7173: 
 7174: fi
 7175: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 7176:   echo "$ac_t""yes" 1>&6
 7177:   gt_cv_func_gettext_libintl=yes
 7178: else
 7179:   echo "$ac_t""no" 1>&6
 7180: gt_cv_func_gettext_libintl=no
 7181: fi
 7182: 
 7183: fi
 7184: 
 7185: echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
 7186: else
 7187:   echo "$ac_t""no" 1>&6
 7188: fi
 7189: 
 7190: 	   fi
 7191: 
 7192: 	   if test "$gt_cv_func_gettext_libc" = "yes" \
 7193: 	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
 7194: 	      cat >> confdefs.h <<\EOF
 7195: #define HAVE_GETTEXT 1
 7196: EOF
 7197: 
 7198: 	      # Extract the first word of "msgfmt", so it can be a program name with args.
 7199: set dummy msgfmt; ac_word=$2
 7200: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7201: echo "configure:7178: checking for $ac_word" >&5
 7202: if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
 7203:   echo $ac_n "(cached) $ac_c" 1>&6
 7204: else
 7205:   case "$MSGFMT" in
 7206:   /*)
 7207:   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 7208:   ;;
 7209:   *)
 7210:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 7211:   for ac_dir in $PATH; do
 7212:     test -z "$ac_dir" && ac_dir=.
 7213:     if test -f $ac_dir/$ac_word; then
 7214:       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 7215: 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 7216: 	break
 7217:       fi
 7218:     fi
 7219:   done
 7220:   IFS="$ac_save_ifs"
 7221:   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 7222:   ;;
 7223: esac
 7224: fi
 7225: MSGFMT="$ac_cv_path_MSGFMT"
 7226: if test -n "$MSGFMT"; then
 7227:   echo "$ac_t""$MSGFMT" 1>&6
 7228: else
 7229:   echo "$ac_t""no" 1>&6
 7230: fi
 7231: 	      if test "$MSGFMT" != "no"; then
 7232: 		for ac_func in dcgettext
 7233: do
 7234: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 7235: echo "configure:7212: checking for $ac_func" >&5
 7236: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 7237:   echo $ac_n "(cached) $ac_c" 1>&6
 7238: else
 7239:   cat > conftest.$ac_ext <<EOF
 7240: #line 7217 "configure"
 7241: #include "confdefs.h"
 7242: /* System header to define __stub macros and hopefully few prototypes,
 7243:     which can conflict with char $ac_func(); below.  */
 7244: #include <assert.h>
 7245: /* Override any gcc2 internal prototype to avoid an error.  */
 7246: /* We use char because int might match the return type of a gcc2
 7247:     builtin and then its argument prototype would still apply.  */
 7248: char $ac_func();
 7249: 
 7250: int main() {
 7251: 
 7252: /* The GNU C library defines this for functions which it implements
 7253:     to always fail with ENOSYS.  Some functions are actually named
 7254:     something starting with __ and the normal name is an alias.  */
 7255: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 7256: choke me
 7257: #else
 7258: $ac_func();
 7259: #endif
 7260: 
 7261: ; return 0; }
 7262: EOF
 7263: if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 7264:   rm -rf conftest*
 7265:   eval "ac_cv_func_$ac_func=yes"
 7266: else
 7267:   echo "configure: failed program was:" >&5
 7268:   cat conftest.$ac_ext >&5
 7269:   rm -rf conftest*
 7270:   eval "ac_cv_func_$ac_func=no"
 7271: fi
 7272: rm -f conftest*
 7273: fi
 7274: 
 7275: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 7276:   echo "$ac_t""yes" 1>&6
 7277:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 7278:   cat >> confdefs.h <<EOF
 7279: #define $ac_tr_func 1
 7280: EOF
 7281:  
 7282: else
 7283:   echo "$ac_t""no" 1>&6
 7284: fi
 7285: done
 7286: 
 7287: 		# Extract the first word of "gmsgfmt", so it can be a program name with args.
 7288: set dummy gmsgfmt; ac_word=$2
 7289: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7290: echo "configure:7267: checking for $ac_word" >&5
 7291: if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 7292:   echo $ac_n "(cached) $ac_c" 1>&6
 7293: else
 7294:   case "$GMSGFMT" in
 7295:   /*)
 7296:   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 7297:   ;;
 7298:   ?:/*)			 
 7299:   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
 7300:   ;;
 7301:   *)
 7302:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 7303:   ac_dummy="$PATH"
 7304:   for ac_dir in $ac_dummy; do 
 7305:     test -z "$ac_dir" && ac_dir=.
 7306:     if test -f $ac_dir/$ac_word; then
 7307:       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 7308:       break
 7309:     fi
 7310:   done
 7311:   IFS="$ac_save_ifs"
 7312:   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 7313:   ;;
 7314: esac
 7315: fi
 7316: GMSGFMT="$ac_cv_path_GMSGFMT"
 7317: if test -n "$GMSGFMT"; then
 7318:   echo "$ac_t""$GMSGFMT" 1>&6
 7319: else
 7320:   echo "$ac_t""no" 1>&6
 7321: fi
 7322: 
 7323: 		# Extract the first word of "xgettext", so it can be a program name with args.
 7324: set dummy xgettext; ac_word=$2
 7325: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7326: echo "configure:7303: checking for $ac_word" >&5
 7327: if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 7328:   echo $ac_n "(cached) $ac_c" 1>&6
 7329: else
 7330:   case "$XGETTEXT" in
 7331:   /*)
 7332:   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 7333:   ;;
 7334:   *)
 7335:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 7336:   for ac_dir in $PATH; do
 7337:     test -z "$ac_dir" && ac_dir=.
 7338:     if test -f $ac_dir/$ac_word; then
 7339:       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 7340: 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 7341: 	break
 7342:       fi
 7343:     fi
 7344:   done
 7345:   IFS="$ac_save_ifs"
 7346:   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 7347:   ;;
 7348: esac
 7349: fi
 7350: XGETTEXT="$ac_cv_path_XGETTEXT"
 7351: if test -n "$XGETTEXT"; then
 7352:   echo "$ac_t""$XGETTEXT" 1>&6
 7353: else
 7354:   echo "$ac_t""no" 1>&6
 7355: fi
 7356: 
 7357: 		cat > conftest.$ac_ext <<EOF
 7358: #line 7335 "configure"
 7359: #include "confdefs.h"
 7360: 
 7361: int main() {
 7362: extern int _nl_msg_cat_cntr;
 7363: 			       return _nl_msg_cat_cntr
 7364: ; return 0; }
 7365: EOF
 7366: if { (eval echo configure:7343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 7367:   rm -rf conftest*
 7368:   CATOBJEXT=.gmo
 7369: 		   DATADIRNAME=share
 7370: else
 7371:   echo "configure: failed program was:" >&5
 7372:   cat conftest.$ac_ext >&5
 7373:   rm -rf conftest*
 7374:   CATOBJEXT=.mo
 7375: 		   DATADIRNAME=lib
 7376: fi
 7377: rm -f conftest*
 7378: 		INSTOBJEXT=.mo
 7379: 	      fi
 7380: 	    fi
 7381: 	
 7382: else
 7383:   echo "$ac_t""no" 1>&6
 7384: fi
 7385: 
 7386: 
 7387:         if test "$CATOBJEXT" = "NONE"; then
 7388: 	  echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
 7389: echo "configure:7366: checking whether catgets can be used" >&5
 7390: 	  # Check whether --with-catgets or --without-catgets was given.
 7391: if test "${with_catgets+set}" = set; then
 7392:   withval="$with_catgets"
 7393:   nls_cv_use_catgets=$withval
 7394: else
 7395:   nls_cv_use_catgets=no
 7396: fi
 7397: 
 7398: 	  echo "$ac_t""$nls_cv_use_catgets" 1>&6
 7399: 
 7400: 	  if test "$nls_cv_use_catgets" = "yes"; then
 7401: 	    	    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
 7402: echo "configure:7379: checking for main in -li" >&5
 7403: ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
 7404: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 7405:   echo $ac_n "(cached) $ac_c" 1>&6
 7406: else
 7407:   ac_save_LIBS="$LIBS"
 7408: LIBS="-li  $LIBS"
 7409: cat > conftest.$ac_ext <<EOF
 7410: #line 7387 "configure"
 7411: #include "confdefs.h"
 7412: 
 7413: int main() {
 7414: main()
 7415: ; return 0; }
 7416: EOF
 7417: if { (eval echo configure:7394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 7418:   rm -rf conftest*
 7419:   eval "ac_cv_lib_$ac_lib_var=yes"
 7420: else
 7421:   echo "configure: failed program was:" >&5
 7422:   cat conftest.$ac_ext >&5
 7423:   rm -rf conftest*
 7424:   eval "ac_cv_lib_$ac_lib_var=no"
 7425: fi
 7426: rm -f conftest*
 7427: LIBS="$ac_save_LIBS"
 7428: 
 7429: fi
 7430: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 7431:   echo "$ac_t""yes" 1>&6
 7432:     ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 7433:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 7434:   cat >> confdefs.h <<EOF
 7435: #define $ac_tr_lib 1
 7436: EOF
 7437: 
 7438:   LIBS="-li $LIBS"
 7439: 
 7440: else
 7441:   echo "$ac_t""no" 1>&6
 7442: fi
 7443: 
 7444: 	    echo $ac_n "checking for catgets""... $ac_c" 1>&6
 7445: echo "configure:7422: checking for catgets" >&5
 7446: if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
 7447:   echo $ac_n "(cached) $ac_c" 1>&6
 7448: else
 7449:   cat > conftest.$ac_ext <<EOF
 7450: #line 7427 "configure"
 7451: #include "confdefs.h"
 7452: /* System header to define __stub macros and hopefully few prototypes,
 7453:     which can conflict with char catgets(); below.  */
 7454: #include <assert.h>
 7455: /* Override any gcc2 internal prototype to avoid an error.  */
 7456: /* We use char because int might match the return type of a gcc2
 7457:     builtin and then its argument prototype would still apply.  */
 7458: char catgets();
 7459: 
 7460: int main() {
 7461: 
 7462: /* The GNU C library defines this for functions which it implements
 7463:     to always fail with ENOSYS.  Some functions are actually named
 7464:     something starting with __ and the normal name is an alias.  */
 7465: #if defined (__stub_catgets) || defined (__stub___catgets)
 7466: choke me
 7467: #else
 7468: catgets();
 7469: #endif
 7470: 
 7471: ; return 0; }
 7472: EOF
 7473: if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 7474:   rm -rf conftest*
 7475:   eval "ac_cv_func_catgets=yes"
 7476: else
 7477:   echo "configure: failed program was:" >&5
 7478:   cat conftest.$ac_ext >&5
 7479:   rm -rf conftest*
 7480:   eval "ac_cv_func_catgets=no"
 7481: fi
 7482: rm -f conftest*
 7483: fi
 7484: 
 7485: if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
 7486:   echo "$ac_t""yes" 1>&6
 7487:   cat >> confdefs.h <<\EOF
 7488: #define HAVE_CATGETS 1
 7489: EOF
 7490: 
 7491: 	       INTLOBJS="\$(CATOBJS)"
 7492: 	       # Extract the first word of "gencat", so it can be a program name with args.
 7493: set dummy gencat; ac_word=$2
 7494: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7495: echo "configure:7472: checking for $ac_word" >&5
 7496: if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
 7497:   echo $ac_n "(cached) $ac_c" 1>&6
 7498: else
 7499:   case "$GENCAT" in
 7500:   /*)
 7501:   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
 7502:   ;;
 7503:   ?:/*)			 
 7504:   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
 7505:   ;;
 7506:   *)
 7507:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 7508:   ac_dummy="$PATH"
 7509:   for ac_dir in $ac_dummy; do 
 7510:     test -z "$ac_dir" && ac_dir=.
 7511:     if test -f $ac_dir/$ac_word; then
 7512:       ac_cv_path_GENCAT="$ac_dir/$ac_word"
 7513:       break
 7514:     fi
 7515:   done
 7516:   IFS="$ac_save_ifs"
 7517:   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
 7518:   ;;
 7519: esac
 7520: fi
 7521: GENCAT="$ac_cv_path_GENCAT"
 7522: if test -n "$GENCAT"; then
 7523:   echo "$ac_t""$GENCAT" 1>&6
 7524: else
 7525:   echo "$ac_t""no" 1>&6
 7526: fi
 7527: 	       if test "$GENCAT" != "no"; then
 7528: 		 # Extract the first word of "gmsgfmt", so it can be a program name with args.
 7529: set dummy gmsgfmt; ac_word=$2
 7530: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7531: echo "configure:7508: checking for $ac_word" >&5
 7532: if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 7533:   echo $ac_n "(cached) $ac_c" 1>&6
 7534: else
 7535:   case "$GMSGFMT" in
 7536:   /*)
 7537:   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 7538:   ;;
 7539:   ?:/*)			 
 7540:   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
 7541:   ;;
 7542:   *)
 7543:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 7544:   ac_dummy="$PATH"
 7545:   for ac_dir in $ac_dummy; do 
 7546:     test -z "$ac_dir" && ac_dir=.
 7547:     if test -f $ac_dir/$ac_word; then
 7548:       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 7549:       break
 7550:     fi
 7551:   done
 7552:   IFS="$ac_save_ifs"
 7553:   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
 7554:   ;;
 7555: esac
 7556: fi
 7557: GMSGFMT="$ac_cv_path_GMSGFMT"
 7558: if test -n "$GMSGFMT"; then
 7559:   echo "$ac_t""$GMSGFMT" 1>&6
 7560: else
 7561:   echo "$ac_t""no" 1>&6
 7562: fi
 7563: 
 7564: 		 if test "$GMSGFMT" = "no"; then
 7565: 		   # Extract the first word of "msgfmt", so it can be a program name with args.
 7566: set dummy msgfmt; ac_word=$2
 7567: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7568: echo "configure:7545: checking for $ac_word" >&5
 7569: if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 7570:   echo $ac_n "(cached) $ac_c" 1>&6
 7571: else
 7572:   case "$GMSGFMT" in
 7573:   /*)
 7574:   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 7575:   ;;
 7576:   *)
 7577:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 7578:   for ac_dir in $PATH; do
 7579:     test -z "$ac_dir" && ac_dir=.
 7580:     if test -f $ac_dir/$ac_word; then
 7581:       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 7582: 	ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 7583: 	break
 7584:       fi
 7585:     fi
 7586:   done
 7587:   IFS="$ac_save_ifs"
 7588:   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
 7589:   ;;
 7590: esac
 7591: fi
 7592: GMSGFMT="$ac_cv_path_GMSGFMT"
 7593: if test -n "$GMSGFMT"; then
 7594:   echo "$ac_t""$GMSGFMT" 1>&6
 7595: else
 7596:   echo "$ac_t""no" 1>&6
 7597: fi
 7598: 
 7599: 		 fi
 7600: 		 # Extract the first word of "xgettext", so it can be a program name with args.
 7601: set dummy xgettext; ac_word=$2
 7602: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7603: echo "configure:7580: checking for $ac_word" >&5
 7604: if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 7605:   echo $ac_n "(cached) $ac_c" 1>&6
 7606: else
 7607:   case "$XGETTEXT" in
 7608:   /*)
 7609:   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 7610:   ;;
 7611:   *)
 7612:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 7613:   for ac_dir in $PATH; do
 7614:     test -z "$ac_dir" && ac_dir=.
 7615:     if test -f $ac_dir/$ac_word; then
 7616:       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 7617: 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 7618: 	break
 7619:       fi
 7620:     fi
 7621:   done
 7622:   IFS="$ac_save_ifs"
 7623:   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 7624:   ;;
 7625: esac
 7626: fi
 7627: XGETTEXT="$ac_cv_path_XGETTEXT"
 7628: if test -n "$XGETTEXT"; then
 7629:   echo "$ac_t""$XGETTEXT" 1>&6
 7630: else
 7631:   echo "$ac_t""no" 1>&6
 7632: fi
 7633: 
 7634: 		 USE_INCLUDED_LIBINTL=yes
 7635: 		 CATOBJEXT=.cat
 7636: 		 INSTOBJEXT=.cat
 7637: 		 DATADIRNAME=lib
 7638: 		 INTLDEPS='$(top_builddir)/intl/libintl.a'
 7639: 		 INTLLIBS=$INTLDEPS
 7640: 		 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
 7641: 		 nls_cv_header_intl=intl/libintl.h
 7642: 		 nls_cv_header_libgt=intl/libgettext.h
 7643: 	       fi
 7644: else
 7645:   echo "$ac_t""no" 1>&6
 7646: fi
 7647: 
 7648: 	  fi
 7649:         fi
 7650: 
 7651:         if test "$CATOBJEXT" = "NONE"; then
 7652: 	  	  	  nls_cv_use_gnu_gettext=yes
 7653:         fi
 7654:       fi
 7655: 
 7656:       if test "$nls_cv_use_gnu_gettext" = "yes"; then
 7657:                 INTLOBJS="\$(GETTOBJS)"
 7658:         # Extract the first word of "msgfmt", so it can be a program name with args.
 7659: set dummy msgfmt; ac_word=$2
 7660: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7661: echo "configure:7638: checking for $ac_word" >&5
 7662: if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
 7663:   echo $ac_n "(cached) $ac_c" 1>&6
 7664: else
 7665:   case "$MSGFMT" in
 7666:   /*)
 7667:   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 7668:   ;;
 7669:   *)
 7670:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 7671:   for ac_dir in $PATH; do
 7672:     test -z "$ac_dir" && ac_dir=.
 7673:     if test -f $ac_dir/$ac_word; then
 7674:       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 7675: 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 7676: 	break
 7677:       fi
 7678:     fi
 7679:   done
 7680:   IFS="$ac_save_ifs"
 7681:   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
 7682:   ;;
 7683: esac
 7684: fi
 7685: MSGFMT="$ac_cv_path_MSGFMT"
 7686: if test -n "$MSGFMT"; then
 7687:   echo "$ac_t""$MSGFMT" 1>&6
 7688: else
 7689:   echo "$ac_t""no" 1>&6
 7690: fi
 7691: 
 7692:         # Extract the first word of "gmsgfmt", so it can be a program name with args.
 7693: set dummy gmsgfmt; ac_word=$2
 7694: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7695: echo "configure:7672: checking for $ac_word" >&5
 7696: if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 7697:   echo $ac_n "(cached) $ac_c" 1>&6
 7698: else
 7699:   case "$GMSGFMT" in
 7700:   /*)
 7701:   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 7702:   ;;
 7703:   ?:/*)			 
 7704:   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
 7705:   ;;
 7706:   *)
 7707:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 7708:   ac_dummy="$PATH"
 7709:   for ac_dir in $ac_dummy; do 
 7710:     test -z "$ac_dir" && ac_dir=.
 7711:     if test -f $ac_dir/$ac_word; then
 7712:       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 7713:       break
 7714:     fi
 7715:   done
 7716:   IFS="$ac_save_ifs"
 7717:   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 7718:   ;;
 7719: esac
 7720: fi
 7721: GMSGFMT="$ac_cv_path_GMSGFMT"
 7722: if test -n "$GMSGFMT"; then
 7723:   echo "$ac_t""$GMSGFMT" 1>&6
 7724: else
 7725:   echo "$ac_t""no" 1>&6
 7726: fi
 7727: 
 7728:         # Extract the first word of "xgettext", so it can be a program name with args.
 7729: set dummy xgettext; ac_word=$2
 7730: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 7731: echo "configure:7708: checking for $ac_word" >&5
 7732: if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 7733:   echo $ac_n "(cached) $ac_c" 1>&6
 7734: else
 7735:   case "$XGETTEXT" in
 7736:   /*)
 7737:   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 7738:   ;;
 7739:   *)
 7740:   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 7741:   for ac_dir in $PATH; do
 7742:     test -z "$ac_dir" && ac_dir=.
 7743:     if test -f $ac_dir/$ac_word; then
 7744:       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 7745: 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 7746: 	break
 7747:       fi
 7748:     fi
 7749:   done
 7750:   IFS="$ac_save_ifs"
 7751:   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 7752:   ;;
 7753: esac
 7754: fi
 7755: XGETTEXT="$ac_cv_path_XGETTEXT"
 7756: if test -n "$XGETTEXT"; then
 7757:   echo "$ac_t""$XGETTEXT" 1>&6
 7758: else
 7759:   echo "$ac_t""no" 1>&6
 7760: fi
 7761: 
 7762:         
 7763: 	USE_INCLUDED_LIBINTL=yes
 7764:         CATOBJEXT=.gmo
 7765:         INSTOBJEXT=.mo
 7766:         DATADIRNAME=share
 7767: 	INTLDEPS='$(top_builddir)/intl/libintl.a'
 7768: 	INTLLIBS=$INTLDEPS
 7769: 	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
 7770:         nls_cv_header_intl=intl/libintl.h
 7771:         nls_cv_header_libgt=intl/libgettext.h
 7772:       fi
 7773: 
 7774:             if test "$XGETTEXT" != ":"; then
 7775: 			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 7776: 	  : ;
 7777: 	else
 7778: 	  echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
 7779: 	  XGETTEXT=":"
 7780: 	fi
 7781:       fi
 7782: 
 7783:       # We need to process the po/ directory.
 7784:       POSUB=po
 7785:     else
 7786:       DATADIRNAME=share
 7787:       nls_cv_header_intl=intl/libintl.h
 7788:       nls_cv_header_libgt=intl/libgettext.h
 7789:     fi
 7790:     
 7791:     
 7792: 
 7793: 
 7794:     # If this is used in GNU gettext we have to set USE_NLS to `yes'
 7795:     # because some of the sources are only built for this goal.
 7796:     if test "$PACKAGE" = gettext; then
 7797:       USE_NLS=yes
 7798:       USE_INCLUDED_LIBINTL=yes
 7799:     fi
 7800: 
 7801:                 for lang in $ALL_LINGUAS; do
 7802:       GMOFILES="$GMOFILES $lang.gmo"
 7803:       POFILES="$POFILES $lang.po"
 7804:     done
 7805: 
 7806:         
 7807:     
 7808:     
 7809:     
 7810:     
 7811:     
 7812:     
 7813:     
 7814:     
 7815:     
 7816:     
 7817:   
 7818: 
 7819:    if test "x$CATOBJEXT" != "x"; then
 7820:      if test "x$ALL_LINGUAS" = "x"; then
 7821:        LINGUAS=
 7822:      else
 7823:        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
 7824: echo "configure:7801: checking for catalogs to be installed" >&5
 7825:        NEW_LINGUAS=
 7826:        for lang in ${LINGUAS=$ALL_LINGUAS}; do
 7827:          case "$ALL_LINGUAS" in
 7828:           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
 7829:          esac
 7830:        done
 7831:        LINGUAS=$NEW_LINGUAS
 7832:        echo "$ac_t""$LINGUAS" 1>&6
 7833:      fi
 7834: 
 7835:           if test -n "$LINGUAS"; then
 7836:        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 7837:      fi
 7838:    fi
 7839: 
 7840:             if test $ac_cv_header_locale_h = yes; then
 7841:      INCLUDE_LOCALE_H="#include <locale.h>"
 7842:    else
 7843:      INCLUDE_LOCALE_H="\
 7844: /* The system does not provide the header <locale.h>.  Take care yourself.  */"
 7845:    fi
 7846:    
 7847: 
 7848:             test -d intl || mkdir intl
 7849:    if test "$CATOBJEXT" = ".cat"; then
 7850:      ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
 7851: echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
 7852: echo "configure:7829: checking for linux/version.h" >&5
 7853: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 7854:   echo $ac_n "(cached) $ac_c" 1>&6
 7855: else
 7856:   cat > conftest.$ac_ext <<EOF
 7857: #line 7834 "configure"
 7858: #include "confdefs.h"
 7859: #include <linux/version.h>
 7860: EOF
 7861: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 7862: { (eval echo configure:7839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 7863: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 7864: if test -z "$ac_err"; then
 7865:   rm -rf conftest*
 7866:   eval "ac_cv_header_$ac_safe=yes"
 7867: else
 7868:   echo "$ac_err" >&5
 7869:   echo "configure: failed program was:" >&5
 7870:   cat conftest.$ac_ext >&5
 7871:   rm -rf conftest*
 7872:   eval "ac_cv_header_$ac_safe=no"
 7873: fi
 7874: rm -f conftest*
 7875: fi
 7876: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 7877:   echo "$ac_t""yes" 1>&6
 7878:   msgformat=linux
 7879: else
 7880:   echo "$ac_t""no" 1>&6
 7881: msgformat=xopen
 7882: fi
 7883: 
 7884: 
 7885:                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
 7886:    fi
 7887:       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
 7888:      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
 7889: 
 7890:             if test "$PACKAGE" = "gettext"; then
 7891:      GT_NO="#NO#"
 7892:      GT_YES=
 7893:    else
 7894:      GT_NO=
 7895:      GT_YES="#YES#"
 7896:    fi
 7897:    
 7898:    
 7899: 
 7900:             MKINSTALLDIRS=
 7901:    if test -n "$ac_aux_dir"; then
 7902:      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 7903:    fi
 7904:    if test -z "$MKINSTALLDIRS"; then
 7905:      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 7906:    fi
 7907:    
 7908: 
 7909:       l=
 7910:    
 7911: 
 7912:          test -d po || mkdir po
 7913:    if test "x$srcdir" != "x."; then
 7914:      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 7915:        posrcprefix="$srcdir/"
 7916:      else
 7917:        posrcprefix="../$srcdir/"
 7918:      fi
 7919:    else
 7920:      posrcprefix="../"
 7921:    fi
 7922:    rm -f po/POTFILES
 7923:    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 7924: 	< $srcdir/po/POTFILES.in > po/POTFILES
 7925:   
 7926: XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
 7927: 
 7928: # Get an absolute path to the GCC top-level source directory
 7929: holddir=`pwd`
 7930: cd $srcdir
 7931: topdir=`pwd`
 7932: cd $holddir
 7933: 
 7934: # Conditionalize the makefile for this host machine.
 7935: # Make-host contains the concatenation of all host makefile fragments
 7936: # [there can be more than one].  This file is built by configure.frag.
 7937: host_overrides=Make-host
 7938: dep_host_xmake_file=
 7939: for f in .. ${host_xmake_file}
 7940: do
 7941: 	if test -f ${srcdir}/config/$f
 7942: 	then
 7943: 		dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
 7944: 	fi
 7945: done
 7946: 
 7947: # Conditionalize the makefile for this target machine.
 7948: # Make-target contains the concatenation of all host makefile fragments
 7949: # [there can be more than one].  This file is built by configure.frag.
 7950: target_overrides=Make-target
 7951: dep_tmake_file=
 7952: for f in .. ${tmake_file}
 7953: do
 7954: 	if test -f ${srcdir}/config/$f
 7955: 	then
 7956: 		dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
 7957: 	fi
 7958: done
 7959: 
 7960: # If the host doesn't support symlinks, modify CC in
 7961: # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
 7962: # Otherwise, we can use "CC=$(CC)".
 7963: rm -f symtest.tem
 7964: if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
 7965: then
 7966: 	cc_set_by_configure="\$(CC)"
 7967: 	quoted_cc_set_by_configure="\$(CC)"
 7968: 	stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
 7969: else
 7970: 	rm -f symtest.tem
 7971: 	if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
 7972: 	then
 7973: 		symbolic_link="cp -p"
 7974: 	else
 7975: 		symbolic_link="cp"
 7976: 	fi
 7977: 	cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
 7978: 	quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
 7979: 	stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
 7980: fi
 7981: rm -f symtest.tem
 7982: 
 7983: out_object_file=`basename $out_file .c`.o
 7984: 
 7985: tm_file_list=
 7986: for f in $tm_file; do
 7987:   case $f in
 7988:     gansidecl.h )
 7989:        tm_file_list="${tm_file_list} $f" ;;
 7990:     *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
 7991:   esac
 7992: done
 7993: 
 7994: host_xm_file_list=
 7995: for f in $host_xm_file; do
 7996:   case $f in
 7997:     auto-host.h | gansidecl.h | hwint.h )
 7998:        host_xm_file_list="${host_xm_file_list} $f" ;;
 7999:     *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
 8000:   esac
 8001: done
 8002: 
 8003: build_xm_file_list=
 8004: for f in $build_xm_file; do
 8005:   case $f in
 8006:     auto-build.h | auto-host.h | gansidecl.h | hwint.h )
 8007:        build_xm_file_list="${build_xm_file_list} $f" ;;
 8008:     *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
 8009:   esac
 8010: done
 8011: 
 8012: # Define macro CROSS_COMPILE in compilation
 8013: # if this is a cross-compiler.
 8014: # Also use all.cross instead of all.internal
 8015: # and add cross-make to Makefile.
 8016: cross_overrides="/dev/null"
 8017: if test x$host != x$target
 8018: then
 8019: 	cross_defines="CROSS=-DCROSS_COMPILE"
 8020: 	cross_overrides="${topdir}/cross-make"
 8021: fi
 8022: 
 8023: # When building gcc with a cross-compiler, we need to fix a few things.
 8024: # This must come after cross-make as we want all.build to override
 8025: # all.cross.
 8026: build_overrides="/dev/null"
 8027: if test x$build != x$host
 8028: then
 8029: 	build_overrides="${topdir}/build-make"
 8030: fi
 8031: 
 8032: # Expand extra_headers to include complete path.
 8033: # This substitutes for lots of t-* files.
 8034: extra_headers_list=
 8035: if test "x$extra_headers" = x
 8036: then true
 8037: else
 8038: 	# Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
 8039: 	for file in $extra_headers;
 8040: 	do
 8041: 		extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
 8042: 	done
 8043: fi
 8044: 
 8045: if test x$use_collect2 = xno; then
 8046: 	use_collect2=
 8047: fi
 8048: 
 8049: # Add a definition of USE_COLLECT2 if system wants one.
 8050: # Also tell toplev.c what to do.
 8051: # This substitutes for lots of t-* files.
 8052: if test x$use_collect2 = x
 8053: then
 8054: 	will_use_collect2=
 8055: 	maybe_use_collect2=
 8056: else
 8057: 	will_use_collect2="collect2"
 8058: 	maybe_use_collect2="-DUSE_COLLECT2"
 8059: fi
 8060: 
 8061: # NEED TO CONVERT
 8062: # Set MD_DEPS if the real md file is in md.pre-cpp.
 8063: # Set MD_CPP to the cpp to pass the md file through.  Md files use ';'
 8064: # for line oriented comments, so we must always use a GNU cpp.  If
 8065: # building gcc with a cross compiler, use the cross compiler just
 8066: # built.  Otherwise, we can use the cpp just built.
 8067: md_file_sub=
 8068: if test "x$md_cppflags" = x
 8069: then
 8070: 	md_file_sub=$srcdir/config/$md_file
 8071: else
 8072: 	md_file=md
 8073: fi
 8074: 
 8075: # If we have gas in the build tree, make a link to it.
 8076: if test -f ../gas/Makefile; then
 8077: 	rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
 8078: fi
 8079: 
 8080: # If we have nm in the build tree, make a link to it.
 8081: if test -f ../binutils/Makefile; then
 8082: 	rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
 8083: fi
 8084: 
 8085: # If we have ld in the build tree, make a link to it.
 8086: if test -f ../ld/Makefile; then
 8087: #	if test x$use_collect2 = x; then
 8088: #		rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
 8089: #	else
 8090: 		rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
 8091: #	fi
 8092: fi
 8093: 
 8094: # Figure out what assembler alignment features are present.
 8095: echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
 8096: echo "configure:8073: checking assembler alignment features" >&5
 8097: gcc_cv_as=
 8098: gcc_cv_as_alignment_features=
 8099: gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
 8100: if test -x "$DEFAULT_ASSEMBLER"; then
 8101: 	gcc_cv_as="$DEFAULT_ASSEMBLER"
 8102: elif test -x "$AS"; then
 8103: 	gcc_cv_as="$AS"
 8104: elif test -x as$host_exeext; then
 8105: 	# Build using assembler in the current directory.
 8106: 	gcc_cv_as=./as$host_exeext
 8107: elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
 8108: 	# Single tree build which includes gas.
 8109: 	for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
 8110: 	do
 8111: 		gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
 8112: 		if test x$gcc_cv_gas_version != x; then
 8113: 			break
 8114: 		fi
 8115: 	done
 8116: 	gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
 8117: 	gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
 8118: 	if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
 8119: 		# Gas version 2.6 and later support for .balign and .p2align.
 8120: 		# bytes to skip when using .p2align.
 8121: 		if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
 8122: 			gcc_cv_as_alignment_features=".balign and .p2align"
 8123: 			cat >> confdefs.h <<\EOF
 8124: #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
 8125: EOF
 8126: 
 8127: 		fi
 8128: 		# Gas version 2.8 and later support specifying the maximum
 8129: 		# bytes to skip when using .p2align.
 8130: 		if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
 8131: 			gcc_cv_as_alignment_features=".p2align including maximum skip"
 8132: 			cat >> confdefs.h <<\EOF
 8133: #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
 8134: EOF
 8135: 
 8136: 		fi
 8137: 	fi
 8138: elif test x$host = x$target; then
 8139: 	# Native build.
 8140: 	# Search the same directories that the installed compiler will
 8141: 	# search.  Else we may find the wrong assembler and lose.  If we
 8142: 	# do not find a suitable assembler binary, then try the user's
 8143: 	# path.
 8144: 	#
 8145: 	# Also note we have to check MD_EXEC_PREFIX before checking the
 8146: 	# user's path.  Unfortunately, there is no good way to get at the
 8147: 	# value of MD_EXEC_PREFIX here.  So we do a brute force search
 8148: 	# through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
 8149: 	# to be fixed as part of the make/configure rewrite too.
 8150: 
 8151: 	if test "x$exec_prefix" = xNONE; then
 8152: 		if test "x$prefix" = xNONE; then
 8153: 			test_prefix=/usr/local
 8154: 		else
 8155: 			test_prefix=$prefix
 8156: 		fi
 8157: 	else
 8158: 		test_prefix=$exec_prefix
 8159: 	fi
 8160: 
 8161: 	# If the loop below does not find an assembler, then use whatever
 8162: 	# one we can find in the users's path.
 8163: 	# user's path.
 8164: 	as=as$host_exeext
 8165: 
 8166: 	test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
 8167: 		   $test_prefix/lib/gcc-lib/$target \
 8168: 		   /usr/lib/gcc/$target/$gcc_version \
 8169: 		   /usr/lib/gcc/$target \
 8170: 		   $test_prefix/$target/bin/$target/$gcc_version \
 8171: 		   $test_prefix/$target/bin \
 8172: 		   /usr/libexec \
 8173: 		   /usr/ccs/gcc \
 8174: 		   /usr/ccs/bin \
 8175: 		   /udk/usr/ccs/bin \
 8176: 		   /bsd43/usr/lib/cmplrs/cc \
 8177: 		   /usr/cross64/usr/bin \
 8178: 		   /usr/lib/cmplrs/cc \
 8179: 		   /sysv/usr/lib/cmplrs/cc \
 8180: 		   /svr4/usr/lib/cmplrs/cc \
 8181: 		   /usr/bin"
 8182: 
 8183: 	for dir in $test_dirs; do
 8184: 		if test -f $dir/as$host_exeext; then
 8185: 			gcc_cv_as=$dir/as$host_exeext
 8186: 			break;
 8187: 		fi
 8188: 	done
 8189: fi
 8190: if test x$gcc_cv_as != x; then
 8191: 	# Check if we have .balign and .p2align
 8192: 	echo ".balign  4" > conftest.s
 8193: 	echo ".p2align  2" >> conftest.s
 8194: 	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
 8195: 		gcc_cv_as_alignment_features=".balign and .p2align"
 8196: 		cat >> confdefs.h <<\EOF
 8197: #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
 8198: EOF
 8199: 
 8200: 	fi
 8201: 	rm -f conftest.s conftest.o
 8202: 	# Check if specifying the maximum bytes to skip when
 8203: 	# using .p2align is supported.
 8204: 	echo ".p2align 4,,7" > conftest.s
 8205: 	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
 8206: 		gcc_cv_as_alignment_features=".p2align including maximum skip"
 8207: 		cat >> confdefs.h <<\EOF
 8208: #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
 8209: EOF
 8210: 
 8211: 	fi
 8212: 	rm -f conftest.s conftest.o
 8213: fi
 8214: echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
 8215: 
 8216: echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
 8217: echo "configure:8194: checking assembler subsection support" >&5
 8218: gcc_cv_as_subsections=
 8219: if test x$gcc_cv_as != x; then
 8220: 	# Check if we have .subsection
 8221: 	echo ".subsection 1" > conftest.s
 8222: 	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
 8223: 		gcc_cv_as_subsections=".subsection"
 8224: 		if test -x nm$host_exeext; then
 8225: 			gcc_cv_nm=./nm$host_exeext
 8226: 		elif test x$host = x$target; then
 8227: 			# Native build.
 8228: 			gcc_cv_nm=nm$host_exeext
 8229: 		fi
 8230: 		if test x$gcc_cv_nm != x; then
 8231: 			cat > conftest.s <<EOF
 8232: conftest_label1: .word 0
 8233: .subsection -1
 8234: conftest_label2: .word 0
 8235: .previous
 8236: EOF
 8237: 			if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
 8238: 				$gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
 8239: 				$gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
 8240: 				if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
 8241: 					:
 8242: 				else
 8243: 					gcc_cv_as_subsections="working .subsection -1"
 8244: 					cat >> confdefs.h <<\EOF
 8245: #define HAVE_GAS_SUBSECTION_ORDERING 1
 8246: EOF
 8247: 
 8248: 				fi
 8249: 			fi
 8250: 		fi
 8251: 	fi
 8252: 	rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
 8253: fi
 8254: echo "$ac_t""$gcc_cv_as_subsections" 1>&6
 8255: 
 8256: echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
 8257: echo "configure:8234: checking assembler instructions" >&5
 8258: gcc_cv_as_instructions=
 8259: if test x$gcc_cv_as != x; then
 8260: 	set "filds fists" "filds mem; fists mem"
 8261: 	while test $# -gt 0
 8262:   	do
 8263: 		echo "$2" > conftest.s
 8264: 		if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
 8265: 			gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
 8266: 			cat >> confdefs.h <<EOF
 8267: #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
 8268: EOF
 8269: 
 8270: 		fi
 8271: 		shift 2
 8272: 	done
 8273: 	rm -f conftest.s conftest.o
 8274: fi
 8275: echo "$ac_t""$gcc_cv_as_instructions" 1>&6
 8276: 
 8277: # Figure out what language subdirectories are present.
 8278: # Look if the user specified --enable-languages="..."; if not, use
 8279: # the environment variable $LANGUAGES if defined. $LANGUAGES might
 8280: # go away some day.
 8281: if test x"${enable_languages+set}" != xset; then
 8282: 	if test x"${LANGUAGES+set}" = xset; then
 8283: 		enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
 8284: 	else
 8285: 		enable_languages=all
 8286: 	fi
 8287: fi
 8288: subdirs=
 8289: for lang in ${srcdir}/*/config-lang.in ..
 8290: do
 8291: 	case $lang in
 8292: 	..) ;;
 8293: 	# The odd quoting in the next line works around
 8294: 	# an apparent bug in bash 1.12 on linux.
 8295: 	${srcdir}/[*]/config-lang.in) ;;
 8296: 	*)
 8297: 	  lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ 	]*\).*$,\1,p' $lang`
 8298: 	  if test "x$lang_alias" = x
 8299: 	  then
 8300: 		echo "$lang doesn't set \$language." 1>&2
 8301: 		exit 1
 8302: 	  fi
 8303: 	  if test x"${enable_languages}" = xall; then
 8304: 	  	add_this_lang=yes
 8305: 	  else
 8306: 		case "${enable_languages}" in
 8307: 		    ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
 8308: 			add_this_lang=yes
 8309: 			;;
 8310: 		    * )
 8311: 			add_this_lang=no
 8312: 			;;
 8313: 		esac
 8314: 	  fi
 8315: 	  if test x"${add_this_lang}" = xyes; then
 8316: 		case $lang in
 8317: 		    ${srcdir}/ada/config-lang.in)
 8318: 			if test x$gnat = xyes ; then
 8319: 				subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
 8320: 			fi
 8321: 			;;
 8322: 		    *)
 8323: 			subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
 8324: 			;;
 8325: 		esac
 8326: 	  fi
 8327: 	  ;;
 8328: 	esac
 8329: done
 8330: 
 8331: # Make gthr-default.h if we have a thread file.
 8332: gthread_flags=
 8333: if test $thread_file != single; then
 8334:     rm -f gthr-default.h
 8335:     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
 8336:     gthread_flags=-DHAVE_GTHR_DEFAULT
 8337: fi
 8338: 
 8339: 
 8340: # Make empty files to contain the specs and options for each language.
 8341: # Then add #include lines to for a compiler that has specs and/or options.
 8342: 
 8343: lang_specs_files=
 8344: lang_options_files=
 8345: lang_tree_files=
 8346: rm -f specs.h options.h gencheck.h
 8347: touch specs.h options.h gencheck.h
 8348: for subdir in . $subdirs
 8349: do
 8350: 	if test -f $srcdir/$subdir/lang-specs.h; then
 8351: 		echo "#include \"$subdir/lang-specs.h\"" >>specs.h
 8352: 		lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
 8353: 	fi
 8354: 	if test -f $srcdir/$subdir/lang-options.h; then
 8355: 		echo "#include \"$subdir/lang-options.h\"" >>options.h
 8356: 		lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
 8357: 	fi
 8358: 	if test -f $srcdir/$subdir/$subdir-tree.def; then
 8359: 		echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
 8360: 		lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
 8361: 	fi
 8362: done
 8363: 
 8364: # These (without "all_") are set in each config-lang.in.
 8365: # `language' must be a single word so is spelled singularly.
 8366: all_languages=
 8367: all_boot_languages=
 8368: all_compilers=
 8369: all_stagestuff=
 8370: all_diff_excludes=
 8371: all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
 8372: # List of language makefile fragments.
 8373: all_lang_makefiles=
 8374: all_headers=
 8375: all_lib2funcs=
 8376: 
 8377: # Add the language fragments.
 8378: # Languages are added via two mechanisms.  Some information must be
 8379: # recorded in makefile variables, these are defined in config-lang.in.
 8380: # We accumulate them and plug them into the main Makefile.
 8381: # The other mechanism is a set of hooks for each of the main targets
 8382: # like `clean', `install', etc.
 8383: 
 8384: language_fragments="Make-lang"
 8385: language_hooks="Make-hooks"
 8386: oldstyle_subdirs=
 8387: 
 8388: for s in .. $subdirs
 8389: do
 8390: 	if test $s != ".."
 8391: 	then
 8392: 		language=
 8393: 		boot_language=
 8394: 		compilers=
 8395: 		stagestuff=
 8396: 		diff_excludes=
 8397: 		headers=
 8398: 		outputs=
 8399: 		lib2funcs=
 8400: 		. ${srcdir}/$s/config-lang.in
 8401: 		if test "x$language" = x
 8402: 		then
 8403: 			echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
 8404: 			exit 1
 8405: 		fi
 8406: 		all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
 8407: 		all_languages="$all_languages $language"
 8408: 		if test "x$boot_language" = xyes
 8409: 		then
 8410: 			all_boot_languages="$all_boot_languages $language"
 8411: 		fi
 8412: 		all_compilers="$all_compilers $compilers"
 8413: 		all_stagestuff="$all_stagestuff $stagestuff"
 8414: 		all_diff_excludes="$all_diff_excludes $diff_excludes"
 8415: 		all_headers="$all_headers $headers"
 8416: 		all_outputs="$all_outputs $outputs"
 8417: 		if test x$outputs = x
 8418: 		then
 8419: 			oldstyle_subdirs="$oldstyle_subdirs $s"
 8420: 		fi
 8421: 		all_lib2funcs="$all_lib2funcs $lib2funcs"
 8422: 	fi
 8423: done
 8424: 
 8425: # Since we can't use `::' targets, we link each language in
 8426: # with a set of hooks, reached indirectly via lang.${target}.
 8427: 
 8428: rm -f Make-hooks
 8429: touch Make-hooks
 8430: target_list="all.build all.cross start.encap rest.encap \
 8431: 	info dvi \
 8432: 	install-normal install-common install-info install-man \
 8433: 	uninstall distdir \
 8434: 	mostlyclean clean distclean extraclean maintainer-clean \
 8435: 	stage1 stage2 stage3 stage4"
 8436: for t in $target_list
 8437: do
 8438: 	x=
 8439: 	for lang in .. $all_languages
 8440: 	do
 8441: 		if test $lang != ".."; then
 8442: 			x="$x $lang.$t"
 8443: 		fi
 8444: 	done
 8445: 	echo "lang.$t: $x" >> Make-hooks
 8446: done
 8447: 
 8448: # If we're not building in srcdir, create .gdbinit.
 8449: 
 8450: if test ! -f Makefile.in; then
 8451: 	echo "dir ." > .gdbinit
 8452: 	echo "dir ${srcdir}" >> .gdbinit
 8453: 	if test x$gdb_needs_out_file_path = xyes
 8454: 	then
 8455: 		echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
 8456: 	fi
 8457: 	if test "x$subdirs" != x; then
 8458: 		for s in $subdirs
 8459: 		do
 8460: 			echo "dir ${srcdir}/$s" >> .gdbinit
 8461: 		done
 8462: 	fi
 8463: 	echo "source ${srcdir}/.gdbinit" >> .gdbinit
 8464: fi
 8465: 
 8466: # Define variables host_canonical and build_canonical
 8467: # because some Cygnus local changes in the Makefile depend on them.
 8468: build_canonical=${build}
 8469: host_canonical=${host}
 8470: target_subdir=
 8471: if test "${host}" != "${target}" ; then
 8472:     target_subdir=${target}/
 8473: fi
 8474: 
 8475: 
 8476: 
 8477: 	
 8478: # If this is using newlib, then define inhibit_libc in
 8479: # LIBGCC2_CFLAGS.  This will cause __eprintf to be left out of
 8480: # libgcc.a, but that's OK because newib should have its own version of
 8481: # assert.h.
 8482: inhibit_libc=
 8483: if test x$with_newlib = xyes; then
 8484: 	inhibit_libc=-Dinhibit_libc
 8485: fi
 8486: 
 8487: 
 8488: # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
 8489: sched_prefix=
 8490: sched_cflags=
 8491: if test x$enable_haifa = xyes; then
 8492:     echo "Using the Haifa scheduler."
 8493:     sched_prefix=haifa-
 8494:     sched_cflags=-DHAIFA
 8495: fi
 8496: 
 8497: 
 8498: if test x$enable_haifa != x; then
 8499:     # Explicitly remove files that need to be recompiled for the Haifa scheduler.
 8500:     for x in genattrtab.o toplev.o *sched.o; do
 8501: 	if test -f $x; then
 8502: 	    echo "Removing $x"
 8503: 	    rm -f $x
 8504: 	fi
 8505:     done
 8506: fi
 8507: 
 8508: # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
 8509: # absolute path for gcc_tooldir based on inserting the number of up-directory
 8510: # movements required to get from $(exec_prefix) to $(prefix) into the basic
 8511: # $(libsubdir)/@(unlibsubdir) based path.
 8512: # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
 8513: # make and thus we'd get different behavior depending on where we built the
 8514: # sources.
 8515: if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
 8516:     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
 8517: else
 8518: # An explanation of the sed strings:
 8519: #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
 8520: #  -e 's|/$||'            match a trailing forward slash and eliminates it
 8521: #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
 8522: #  -e 's|/[^/]*|../|g'    replaces each occurance of /<directory> with ../
 8523: #
 8524: # (*) Note this pattern overwrites the first character of the string
 8525: # with a forward slash if one is not already present.  This is not a
 8526: # problem because the exact names of the sub-directories concerned is
 8527: # unimportant, just the number of them matters.
 8528: #
 8529: # The practical upshot of these patterns is like this:
 8530: #
 8531: #  prefix     exec_prefix        result
 8532: #  ------     -----------        ------
 8533: #   /foo        /foo/bar          ../
 8534: #   /foo/       /foo/bar          ../
 8535: #   /foo        /foo/bar/         ../
 8536: #   /foo/       /foo/bar/         ../
 8537: #   /foo        /foo/bar/ugg      ../../
 8538: #
 8539:     dollar='$$'
 8540:     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
 8541: fi
 8542: 
 8543: 
 8544: 
 8545: # Nothing to do for FLOAT_H, float_format already handled.
 8546: objdir=`pwd`
 8547: 
 8548: 
 8549: # Process the language and host/target makefile fragments.
 8550: ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
 8551: 
 8552: # Substitute configuration variables
 8553: 
 8554: 
 8555: 
 8556: 
 8557: 
 8558: 
 8559: 
 8560: 
 8561: 
 8562: 
 8563: 
 8564: 
 8565: 
 8566: 
 8567: 
 8568: 
 8569: 
 8570: 
 8571: 
 8572: 
 8573: 
 8574: 
 8575: 
 8576: 
 8577: 
 8578: 
 8579: 
 8580: 
 8581: 
 8582: 
 8583: 
 8584: 
 8585: 
 8586: 
 8587: 
 8588: 
 8589: 
 8590: 
 8591: 
 8592: 
 8593: 
 8594: 
 8595: 
 8596: 
 8597: 
 8598: 
 8599: 
 8600: 
 8601: 
 8602: 
 8603: 
 8604: 
 8605: 
 8606: 
 8607: 
 8608: 
 8609: 
 8610: 
 8611: 
 8612: 
 8613: 
 8614: # Echo that links are built
 8615: if test x$host = x$target
 8616: then
 8617: 	str1="native "
 8618: else
 8619: 	str1="cross-"
 8620: 	str2=" from $host"
 8621: fi
 8622: 
 8623: if test x$host != x$build
 8624: then
 8625: 	str3=" on a $build system"
 8626: fi
 8627: 
 8628: if test "x$str2" != x || test "x$str3" != x
 8629: then
 8630: 	str4=
 8631: fi
 8632: 
 8633: echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
 8634: 
 8635: if test "x$str2" != x || test "x$str3" != x
 8636: then
 8637: 	echo " ${str2}${str3}." 1>&2
 8638: fi
 8639: 
 8640: # Truncate the target if necessary
 8641: if test x$host_truncate_target != x; then
 8642: 	target=`echo $target | sed -e 's/\(..............\).*/\1/'`
 8643: fi
 8644: 
 8645: # Configure the subdirectories
 8646: # AC_CONFIG_SUBDIRS($subdirs)
 8647: 
 8648: # Create the Makefile
 8649: # and configure language subdirectories
 8650: trap '' 1 2 15
 8651: cat > confcache <<\EOF
 8652: # This file is a shell script that caches the results of configure
 8653: # tests run on this system so they can be shared between configure
 8654: # scripts and configure runs.  It is not useful on other systems.
 8655: # If it contains results you don't want to keep, you may remove or edit it.
 8656: #
 8657: # By default, configure uses ./config.cache as the cache file,
 8658: # creating it if it does not exist already.  You can give configure
 8659: # the --cache-file=FILE option to use a different cache file; that is
 8660: # what configure does when it calls configure scripts in
 8661: # subdirectories, so they share the cache.
 8662: # Giving --cache-file=/dev/null disables caching, for debugging configure.
 8663: # config.status only pays attention to the cache file if you give it the
 8664: # --recheck option to rerun configure.
 8665: #
 8666: EOF
 8667: # The following way of writing the cache mishandles newlines in values,
 8668: # but we know of no workaround that is simple, portable, and efficient.
 8669: # So, don't put newlines in cache variables' values.
 8670: # Ultrix sh set writes to stderr and can't be redirected directly,
 8671: # and sets the high bit in the cache file unless we assign to the vars.
 8672: (set) 2>&1 |
 8673:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
 8674:   *ac_space=\ *)
 8675:     # `set' does not quote correctly, so add quotes (double-quote substitution
 8676:     # turns \\\\ into \\, and sed turns \\ into \).
 8677:     sed -n \
 8678:       -e "s/'/'\\\\''/g" \
 8679:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 8680:     ;;
 8681:   *)
 8682:     # `set' quotes correctly as required by POSIX, so do not add quotes.
 8683:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 8684:     ;;
 8685:   esac >> confcache
 8686: if cmp -s $cache_file confcache; then
 8687:   :
 8688: else
 8689:   if test -w $cache_file; then
 8690:     echo "updating cache $cache_file"
 8691:     cat confcache > $cache_file
 8692:   else
 8693:     echo "not updating unwritable cache $cache_file"
 8694:   fi
 8695: fi
 8696: rm -f confcache
 8697: 
 8698: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 8699: 
 8700: test "x$prefix" = xNONE && prefix=$ac_default_prefix
 8701: # Let make expand exec_prefix.
 8702: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 8703: 
 8704: # Any assignment to VPATH causes Sun make to only execute
 8705: # the first set of double-colon rules, so remove it if not needed.
 8706: # If there is a colon in the path, we need to keep it.
 8707: if test "x$srcdir" = x.; then
 8708:   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
 8709: fi
 8710: 
 8711: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 8712: 
 8713: DEFS=-DHAVE_CONFIG_H
 8714: 
 8715: # Without the "./", some shells look in PATH for config.status.
 8716: : ${CONFIG_STATUS=./config.status}
 8717: 
 8718: echo creating $CONFIG_STATUS
 8719: rm -f $CONFIG_STATUS
 8720: cat > $CONFIG_STATUS <<EOF
 8721: #! /bin/sh
 8722: # Generated automatically by configure.
 8723: # Run this file to recreate the current configuration.
 8724: # This directory was configured as follows,
 8725: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 8726: #
 8727: # $0 $ac_configure_args
 8728: #
 8729: # Compiler output produced by configure, useful for debugging
 8730: # configure, is in ./config.log if it exists.
 8731: 
 8732: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 8733: for ac_option
 8734: do
 8735:   case "\$ac_option" in
 8736:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 8737:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 8738:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 8739:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 8740:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
 8741:     exit 0 ;;
 8742:   -help | --help | --hel | --he | --h)
 8743:     echo "\$ac_cs_usage"; exit 0 ;;
 8744:   *) echo "\$ac_cs_usage"; exit 1 ;;
 8745:   esac
 8746: done
 8747: 
 8748: ac_given_srcdir=$srcdir
 8749: 
 8750: trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 8751: EOF
 8752: cat >> $CONFIG_STATUS <<EOF
 8753: 
 8754: # Protect against being on the right side of a sed subst in config.status.
 8755: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 8756:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 8757: $ac_vpsub
 8758: $extrasub
 8759: s%@SHELL@%$SHELL%g
 8760: s%@CFLAGS@%$CFLAGS%g
 8761: s%@CPPFLAGS@%$CPPFLAGS%g
 8762: s%@CXXFLAGS@%$CXXFLAGS%g
 8763: s%@FFLAGS@%$FFLAGS%g
 8764: s%@DEFS@%$DEFS%g
 8765: s%@LDFLAGS@%$LDFLAGS%g
 8766: s%@LIBS@%$LIBS%g
 8767: s%@exec_prefix@%$exec_prefix%g
 8768: s%@prefix@%$prefix%g
 8769: s%@program_transform_name@%$program_transform_name%g
 8770: s%@bindir@%$bindir%g
 8771: s%@sbindir@%$sbindir%g
 8772: s%@libexecdir@%$libexecdir%g
 8773: s%@datadir@%$datadir%g
 8774: s%@sysconfdir@%$sysconfdir%g
 8775: s%@sharedstatedir@%$sharedstatedir%g
 8776: s%@localstatedir@%$localstatedir%g
 8777: s%@libdir@%$libdir%g
 8778: s%@includedir@%$includedir%g
 8779: s%@oldincludedir@%$oldincludedir%g
 8780: s%@infodir@%$infodir%g
 8781: s%@mandir@%$mandir%g
 8782: s%@host@%$host%g
 8783: s%@host_alias@%$host_alias%g
 8784: s%@host_cpu@%$host_cpu%g
 8785: s%@host_vendor@%$host_vendor%g
 8786: s%@host_os@%$host_os%g
 8787: s%@target@%$target%g
 8788: s%@target_alias@%$target_alias%g
 8789: s%@target_cpu@%$target_cpu%g
 8790: s%@target_vendor@%$target_vendor%g
 8791: s%@target_os@%$target_os%g
 8792: s%@build@%$build%g
 8793: s%@build_alias@%$build_alias%g
 8794: s%@build_cpu@%$build_cpu%g
 8795: s%@build_vendor@%$build_vendor%g
 8796: s%@build_os@%$build_os%g
 8797: s%@CC@%$CC%g
 8798: s%@stage1_warn_cflags@%$stage1_warn_cflags%g
 8799: s%@SET_MAKE@%$SET_MAKE%g
 8800: s%@AWK@%$AWK%g
 8801: s%@LEX@%$LEX%g
 8802: s%@LEXLIB@%$LEXLIB%g
 8803: s%@LN@%$LN%g
 8804: s%@LN_S@%$LN_S%g
 8805: s%@RANLIB@%$RANLIB%g
 8806: s%@YACC@%$YACC%g
 8807: s%@INSTALL@%$INSTALL%g
 8808: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 8809: s%@INSTALL_DATA@%$INSTALL_DATA%g
 8810: s%@CPP@%$CPP%g
 8811: s%@gnat@%$gnat%g
 8812: s%@vfprintf@%$vfprintf%g
 8813: s%@doprint@%$doprint%g
 8814: s%@manext@%$manext%g
 8815: s%@objext@%$objext%g
 8816: s%@PACKAGE@%$PACKAGE%g
 8817: s%@VERSION@%$VERSION%g
 8818: s%@ALLOCA@%$ALLOCA%g
 8819: s%@USE_NLS@%$USE_NLS%g
 8820: s%@MSGFMT@%$MSGFMT%g
 8821: s%@GMSGFMT@%$GMSGFMT%g
 8822: s%@XGETTEXT@%$XGETTEXT%g
 8823: s%@GENCAT@%$GENCAT%g
 8824: s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
 8825: s%@CATALOGS@%$CATALOGS%g
 8826: s%@CATOBJEXT@%$CATOBJEXT%g
 8827: s%@DATADIRNAME@%$DATADIRNAME%g
 8828: s%@GMOFILES@%$GMOFILES%g
 8829: s%@INSTOBJEXT@%$INSTOBJEXT%g
 8830: s%@INTLDEPS@%$INTLDEPS%g
 8831: s%@INTLLIBS@%$INTLLIBS%g
 8832: s%@INTLOBJS@%$INTLOBJS%g
 8833: s%@POFILES@%$POFILES%g
 8834: s%@POSUB@%$POSUB%g
 8835: s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
 8836: s%@GT_NO@%$GT_NO%g
 8837: s%@GT_YES@%$GT_YES%g
 8838: s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
 8839: s%@l@%$l%g
 8840: s%@gthread_flags@%$gthread_flags%g
 8841: s%@build_canonical@%$build_canonical%g
 8842: s%@host_canonical@%$host_canonical%g
 8843: s%@target_subdir@%$target_subdir%g
 8844: s%@inhibit_libc@%$inhibit_libc%g
 8845: s%@sched_prefix@%$sched_prefix%g
 8846: s%@sched_cflags@%$sched_cflags%g
 8847: s%@gcc_tooldir@%$gcc_tooldir%g
 8848: s%@dollar@%$dollar%g
 8849: s%@objdir@%$objdir%g
 8850: s%@subdirs@%$subdirs%g
 8851: s%@all_boot_languages@%$all_boot_languages%g
 8852: s%@all_compilers@%$all_compilers%g
 8853: s%@all_diff_excludes@%$all_diff_excludes%g
 8854: s%@all_headers@%$all_headers%g
 8855: s%@all_lang_makefiles@%$all_lang_makefiles%g
 8856: s%@all_languages@%$all_languages%g
 8857: s%@all_lib2funcs@%$all_lib2funcs%g
 8858: s%@all_stagestuff@%$all_stagestuff%g
 8859: s%@build_exeext@%$build_exeext%g
 8860: s%@build_install_headers_dir@%$build_install_headers_dir%g
 8861: s%@build_xm_file_list@%$build_xm_file_list%g
 8862: s%@cc_set_by_configure@%$cc_set_by_configure%g
 8863: s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
 8864: s%@cpp_install_dir@%$cpp_install_dir%g
 8865: s%@cpp_main@%$cpp_main%g
 8866: s%@dep_host_xmake_file@%$dep_host_xmake_file%g
 8867: s%@dep_tmake_file@%$dep_tmake_file%g
 8868: s%@extra_c_flags@%$extra_c_flags%g
 8869: s%@extra_c_objs@%$extra_c_objs%g
 8870: s%@extra_cpp_objs@%$extra_cpp_objs%g
 8871: s%@extra_cxx_objs@%$extra_cxx_objs%g
 8872: s%@extra_headers_list@%$extra_headers_list%g
 8873: s%@extra_objs@%$extra_objs%g
 8874: s%@extra_parts@%$extra_parts%g
 8875: s%@extra_passes@%$extra_passes%g
 8876: s%@extra_programs@%$extra_programs%g
 8877: s%@fixinc_defs@%$fixinc_defs%g
 8878: s%@float_h_file@%$float_h_file%g
 8879: s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
 8880: s%@gcc_version@%$gcc_version%g
 8881: s%@gcc_version_trigger@%$gcc_version_trigger%g
 8882: s%@host_exeext@%$host_exeext%g
 8883: s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
 8884: s%@host_xm_file_list@%$host_xm_file_list%g
 8885: s%@install@%$install%g
 8886: s%@JAVAGC@%$JAVAGC%g
 8887: s%@lang_options_files@%$lang_options_files%g
 8888: s%@lang_specs_files@%$lang_specs_files%g
 8889: s%@lang_tree_files@%$lang_tree_files%g
 8890: s%@local_prefix@%$local_prefix%g
 8891: s%@maybe_use_collect2@%$maybe_use_collect2%g
 8892: s%@md_file@%$md_file%g
 8893: s%@objc_boehm_gc@%$objc_boehm_gc%g
 8894: s%@out_file@%$out_file%g
 8895: s%@out_object_file@%$out_object_file%g
 8896: s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
 8897: s%@symbolic_link@%$symbolic_link%g
 8898: s%@thread_file@%$thread_file%g
 8899: s%@tm_file_list@%$tm_file_list%g
 8900: s%@will_use_collect2@%$will_use_collect2%g
 8901: /@target_overrides@/r $target_overrides
 8902: s%@target_overrides@%%g
 8903: /@host_overrides@/r $host_overrides
 8904: s%@host_overrides@%%g
 8905: s%@cross_defines@%$cross_defines%g
 8906: /@cross_overrides@/r $cross_overrides
 8907: s%@cross_overrides@%%g
 8908: /@build_overrides@/r $build_overrides
 8909: s%@build_overrides@%%g
 8910: /@language_fragments@/r $language_fragments
 8911: s%@language_fragments@%%g
 8912: /@language_hooks@/r $language_hooks
 8913: s%@language_hooks@%%g
 8914: 
 8915: CEOF
 8916: EOF
 8917: 
 8918: cat >> $CONFIG_STATUS <<\EOF
 8919: 
 8920: # Split the substitutions into bite-sized pieces for seds with
 8921: # small command number limits, like on Digital OSF/1 and HP-UX.
 8922: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 8923: ac_file=1 # Number of current file.
 8924: ac_beg=1 # First line for current file.
 8925: ac_end=$ac_max_sed_cmds # Line after last line for current file.
 8926: ac_more_lines=:
 8927: ac_sed_cmds=""
 8928: while $ac_more_lines; do
 8929:   if test $ac_beg -gt 1; then
 8930:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 8931:   else
 8932:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 8933:   fi
 8934:   if test ! -s conftest.s$ac_file; then
 8935:     ac_more_lines=false
 8936:     rm -f conftest.s$ac_file
 8937:   else
 8938:     if test -z "$ac_sed_cmds"; then
 8939:       ac_sed_cmds="sed -f conftest.s$ac_file"
 8940:     else
 8941:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 8942:     fi
 8943:     ac_file=`expr $ac_file + 1`
 8944:     ac_beg=$ac_end
 8945:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
 8946:   fi
 8947: done
 8948: if test -z "$ac_sed_cmds"; then
 8949:   ac_sed_cmds=cat
 8950: fi
 8951: EOF
 8952: 
 8953: cat >> $CONFIG_STATUS <<EOF
 8954: 
 8955: CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
 8956: EOF
 8957: cat >> $CONFIG_STATUS <<\EOF
 8958: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 8959:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 8960:   case "$ac_file" in
 8961:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 8962:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 8963:   *) ac_file_in="${ac_file}.in" ;;
 8964:   esac
 8965: 
 8966:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 8967: 
 8968:   # Remove last slash and all that follows it.  Not all systems have dirname.
 8969:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 8970:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 8971:     # The file is in a subdirectory.
 8972:     test ! -d "$ac_dir" && mkdir "$ac_dir"
 8973:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 8974:     # A "../" for each directory in $ac_dir_suffix.
 8975:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 8976:   else
 8977:     ac_dir_suffix= ac_dots=
 8978:   fi
 8979: 
 8980:   case "$ac_given_srcdir" in
 8981:   .)  srcdir=.
 8982:       if test -z "$ac_dots"; then top_srcdir=.
 8983:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 8984:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 8985:   *) # Relative path.
 8986:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 8987:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
 8988:   esac
 8989: 
 8990: 
 8991:   echo creating "$ac_file"
 8992:   rm -f "$ac_file"
 8993:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 8994:   case "$ac_file" in
 8995:   *Makefile*) ac_comsub="1i\\
 8996: # $configure_input" ;;
 8997:   *) ac_comsub= ;;
 8998:   esac
 8999: 
 9000:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 9001:   sed -e "$ac_comsub
 9002: s%@configure_input@%$configure_input%g
 9003: s%@srcdir@%$srcdir%g
 9004: s%@top_srcdir@%$top_srcdir%g
 9005: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 9006: fi; done
 9007: rm -f conftest.s*
 9008: 
 9009: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 9010: # NAME is the cpp macro being defined and VALUE is the value it is being given.
 9011: #
 9012: # ac_d sets the value in "#define NAME VALUE" lines.
 9013: ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
 9014: ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
 9015: ac_dC='\3'
 9016: ac_dD='%g'
 9017: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 9018: ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
 9019: ac_uB='\([ 	]\)%\1#\2define\3'
 9020: ac_uC=' '
 9021: ac_uD='\4%g'
 9022: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 9023: ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
 9024: ac_eB='$%\1#\2define\3'
 9025: ac_eC=' '
 9026: ac_eD='%g'
 9027: 
 9028: if test "${CONFIG_HEADERS+set}" != set; then
 9029: EOF
 9030: cat >> $CONFIG_STATUS <<EOF
 9031:   CONFIG_HEADERS="auto-host.h:config.in"
 9032: EOF
 9033: cat >> $CONFIG_STATUS <<\EOF
 9034: fi
 9035: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 9036:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 9037:   case "$ac_file" in
 9038:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 9039:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 9040:   *) ac_file_in="${ac_file}.in" ;;
 9041:   esac
 9042: 
 9043:   echo creating $ac_file
 9044: 
 9045:   rm -f conftest.frag conftest.in conftest.out
 9046:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 9047:   cat $ac_file_inputs > conftest.in
 9048: 
 9049: EOF
 9050: 
 9051: # Transform confdefs.h into a sed script conftest.vals that substitutes
 9052: # the proper values into config.h.in to produce config.h.  And first:
 9053: # Protect against being on the right side of a sed subst in config.status.
 9054: # Protect against being in an unquoted here document in config.status.
 9055: rm -f conftest.vals
 9056: cat > conftest.hdr <<\EOF
 9057: s/[\\&%]/\\&/g
 9058: s%[\\$`]%\\&%g
 9059: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 9060: s%ac_d%ac_u%gp
 9061: s%ac_u%ac_e%gp
 9062: EOF
 9063: sed -n -f conftest.hdr confdefs.h > conftest.vals
 9064: rm -f conftest.hdr
 9065: 
 9066: # This sed command replaces #undef with comments.  This is necessary, for
 9067: # example, in the case of _POSIX_SOURCE, which is predefined and required
 9068: # on some systems where configure will not decide to define it.
 9069: cat >> conftest.vals <<\EOF
 9070: s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 9071: EOF
 9072: 
 9073: # Break up conftest.vals because some shells have a limit on
 9074: # the size of here documents, and old seds have small limits too.
 9075: 
 9076: rm -f conftest.tail
 9077: while :
 9078: do
 9079:   ac_lines=`grep -c . conftest.vals`
 9080:   # grep -c gives empty output for an empty file on some AIX systems.
 9081:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 9082:   # Write a limited-size here document to conftest.frag.
 9083:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 9084:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 9085:   echo 'CEOF
 9086:   sed -f conftest.frag conftest.in > conftest.out
 9087:   rm -f conftest.in
 9088:   mv conftest.out conftest.in
 9089: ' >> $CONFIG_STATUS
 9090:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 9091:   rm -f conftest.vals
 9092:   mv conftest.tail conftest.vals
 9093: done
 9094: rm -f conftest.vals
 9095: 
 9096: cat >> $CONFIG_STATUS <<\EOF
 9097:   rm -f conftest.frag conftest.h
 9098:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 9099:   cat conftest.in >> conftest.h
 9100:   rm -f conftest.in
 9101:   if cmp -s $ac_file conftest.h 2>/dev/null; then
 9102:     echo "$ac_file is unchanged"
 9103:     rm -f conftest.h
 9104:   else
 9105:     # Remove last slash and all that follows it.  Not all systems have dirname.
 9106:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 9107:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 9108:       # The file is in a subdirectory.
 9109:       test ! -d "$ac_dir" && mkdir "$ac_dir"
 9110:     fi
 9111:     rm -f $ac_file
 9112:     mv conftest.h $ac_file
 9113:   fi
 9114: fi; done
 9115: 
 9116: EOF
 9117: 
 9118: cat >> $CONFIG_STATUS <<EOF
 9119: ac_sources="$nls_cv_header_libgt"
 9120: ac_dests="$nls_cv_header_intl"
 9121: EOF
 9122: 
 9123: cat >> $CONFIG_STATUS <<\EOF
 9124: srcdir=$ac_given_srcdir
 9125: while test -n "$ac_sources"; do
 9126:   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
 9127:   set $ac_sources; ac_source=$1; shift; ac_sources=$*
 9128: 
 9129:   echo "linking $srcdir/$ac_source to $ac_dest"
 9130: 
 9131:   if test ! -r $srcdir/$ac_source; then
 9132:     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
 9133:   fi
 9134:   rm -f $ac_dest
 9135: 
 9136:   # Make relative symlinks.
 9137:   # Remove last slash and all that follows it.  Not all systems have dirname.
 9138:   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
 9139:   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
 9140:     # The dest file is in a subdirectory.
 9141:     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
 9142:     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
 9143:     # A "../" for each directory in $ac_dest_dir_suffix.
 9144:     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
 9145:   else
 9146:     ac_dest_dir_suffix= ac_dots=
 9147:   fi
 9148: 
 9149:   case "$srcdir" in
 9150:   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
 9151:   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
 9152:   esac
 9153: 
 9154:   # Make a symlink if possible; otherwise try a hard link.
 9155:   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
 9156:     ln $srcdir/$ac_source $ac_dest; then :
 9157:   else
 9158:     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
 9159:   fi
 9160: done
 9161: EOF
 9162: cat >> $CONFIG_STATUS <<EOF
 9163: 
 9164: 
 9165: host='${host}'
 9166: build='${build}'
 9167: target='${target}'
 9168: target_alias='${target_alias}'
 9169: srcdir='${srcdir}'
 9170: subdirs='${subdirs}'
 9171: oldstyle_subdirs='${oldstyle_subdirs}'
 9172: symbolic_link='${symbolic_link}'
 9173: program_transform_set='${program_transform_set}'
 9174: program_transform_name='${program_transform_name}'
 9175: dep_host_xmake_file='${dep_host_xmake_file}'
 9176: host_xmake_file='${host_xmake_file}'
 9177: dep_tmake_file='${dep_tmake_file}'
 9178: tmake_file='${tmake_file}'
 9179: thread_file='${thread_file}'
 9180: gcc_version='${gcc_version}'
 9181: gcc_version_trigger='${gcc_version_trigger}'
 9182: local_prefix='${local_prefix}'
 9183: build_install_headers_dir='${build_install_headers_dir}'
 9184: build_exeext='${build_exeext}'
 9185: host_exeext='${host_exeext}'
 9186: out_file='${out_file}'
 9187: gdb_needs_out_file_path='${gdb_needs_out_file_path}'
 9188: SET_MAKE='${SET_MAKE}'
 9189: target_list='${target_list}'
 9190: target_overrides='${target_overrides}'
 9191: host_overrides='${host_overrides}'
 9192: cross_defines='${cross_defines}'
 9193: cross_overrides='${cross_overrides}'
 9194: build_overrides='${build_overrides}'
 9195: cpp_install_dir='${cpp_install_dir}'
 9196: 
 9197: EOF
 9198: cat >> $CONFIG_STATUS <<\EOF
 9199: case "$CONFIG_FILES" in *po/Makefile.in*)
 9200:         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 9201:       esac
 9202: 
 9203: . $srcdir/configure.lang
 9204: case x$CONFIG_HEADERS in
 9205: xauto-host.h:config.in)
 9206: echo > cstamp-h ;;
 9207: esac
 9208: # If the host supports symlinks, point stage[1234] at ../stage[1234] so
 9209: # bootstrapping and the installation procedure can still use
 9210: # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
 9211: # FLAGS_TO_PASS has been modified to solve the problem there.
 9212: # This is virtually a duplicate of what happens in configure.lang; we do
 9213: # an extra check to make sure this only happens if ln -s can be used.
 9214: if test "$symbolic_link" = "ln -s"; then
 9215:  for d in .. ${subdirs} ; do
 9216:    if test $d != ..; then
 9217: 	STARTDIR=`pwd`
 9218: 	cd $d
 9219: 	for t in stage1 stage2 stage3 stage4 include
 9220: 	do
 9221: 		rm -f $t
 9222: 		$symbolic_link ../$t $t 2>/dev/null
 9223: 	done
 9224: 	cd $STARTDIR
 9225:    fi
 9226:  done
 9227: else true ; fi
 9228: # Avoid having to add intl to our include paths.
 9229: if test -f intl/libintl.h; then
 9230:   echo creating libintl.h
 9231:   echo '#include "intl/libintl.h"' >libintl.h
 9232: fi
 9233: 
 9234: exit 0
 9235: EOF
 9236: chmod +x $CONFIG_STATUS
 9237: rm -fr confdefs* $ac_clean_files
 9238: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 9239: