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