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 --without-libbanshee Don't build with libbanshee" 16ac_help="$ac_help 17 --enable-libada Builds libada directory" 18ac_help="$ac_help 19 --with-gmp-dir=PATH Specify source directory for GMP library" 20ac_help="$ac_help 21 --with-gmp=PATH Specify directory for installed GMP library" 22ac_help="$ac_help 23 --enable-bootstrap Enable bootstrapping [no]" 24ac_help="$ac_help 25 --enable-serial-[{host,target,build}-]configure 26 Force sequential configuration of 27 sub-packages for the host, target or build 28 machine, or all sub-packages" 29ac_help="$ac_help 30 --enable-maintainer-mode enable make rules and dependencies not useful 31 (and sometimes confusing) to the casual installer" 32ac_help="$ac_help 33 --enable-werror enable -Werror in bootstrap stage2 and later" 34 35# Initialize some variables set by options. 36# The variables have the same names as the options, with 37# dashes changed to underlines. 38build=NONE 39cache_file=./config.cache 40exec_prefix=NONE 41host=NONE 42no_create= 43nonopt=NONE 44no_recursion= 45prefix=NONE 46program_prefix=NONE 47program_suffix=NONE 48program_transform_name=s,x,x, 49silent= 50site= 51srcdir= 52target=NONE 53verbose= 54x_includes=NONE 55x_libraries=NONE 56bindir='${exec_prefix}/bin' 57sbindir='${exec_prefix}/sbin' 58libexecdir='${exec_prefix}/libexec' 59datadir='${prefix}/share' 60sysconfdir='${prefix}/etc' 61sharedstatedir='${prefix}/com' 62localstatedir='${prefix}/var' 63libdir='${exec_prefix}/lib' 64includedir='${prefix}/include' 65oldincludedir='/usr/include' 66infodir='${prefix}/info' 67mandir='${prefix}/man' 68 69# Initialize some other variables. 70subdirs= 71MFLAGS= MAKEFLAGS= 72SHELL=${CONFIG_SHELL-/bin/sh} 73# Maximum number of lines to put in a shell here document. 74ac_max_here_lines=12 75 76ac_prev= 77for ac_option 78do 79 80 # If the previous option needs an argument, assign it. 81 if test -n "$ac_prev"; then 82 eval "$ac_prev=\$ac_option" 83 ac_prev= 84 continue 85 fi 86 87 case "$ac_option" in 88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 89 *) ac_optarg= ;; 90 esac 91 92 # Accept the important Cygnus configure options, so we can diagnose typos. 93 94 case "$ac_option" in 95 96 -bindir | --bindir | --bindi | --bind | --bin | --bi) 97 ac_prev=bindir ;; 98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 99 bindir="$ac_optarg" ;; 100 101 -build | --build | --buil | --bui | --bu) 102 ac_prev=build ;; 103 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 104 build="$ac_optarg" ;; 105 106 -cache-file | --cache-file | --cache-fil | --cache-fi \ 107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 108 ac_prev=cache_file ;; 109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 111 cache_file="$ac_optarg" ;; 112 113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 114 ac_prev=datadir ;; 115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 116 | --da=*) 117 datadir="$ac_optarg" ;; 118 119 -disable-* | --disable-*) 120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 121 # Reject names that are not valid shell variable names. 122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 124 fi 125 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 126 eval "enable_${ac_feature}=no" ;; 127 128 -enable-* | --enable-*) 129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 130 # Reject names that are not valid shell variable names. 131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 133 fi 134 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 135 case "$ac_option" in 136 *=*) ;; 137 *) ac_optarg=yes ;; 138 esac 139 eval "enable_${ac_feature}='$ac_optarg'" ;; 140 141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 143 | --exec | --exe | --ex) 144 ac_prev=exec_prefix ;; 145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 147 | --exec=* | --exe=* | --ex=*) 148 exec_prefix="$ac_optarg" ;; 149 150 -gas | --gas | --ga | --g) 151 # Obsolete; use --with-gas. 152 with_gas=yes ;; 153 154 -help | --help | --hel | --he) 155 # Omit some internal or obsolete options to make the list less imposing. 156 # This message is too long to be a string in the A/UX 3.1 sh. 157 cat << EOF 158Usage: configure [options] [host] 159Options: [defaults in brackets after descriptions] 160Configuration: 161 --cache-file=FILE cache test results in FILE 162 --help print this message 163 --no-create do not create output files 164 --quiet, --silent do not print \`checking...' messages 165 --version print the version of autoconf that created configure 166Directory and file names: 167 --prefix=PREFIX install architecture-independent files in PREFIX 168 [$ac_default_prefix] 169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 170 [same as prefix] 171 --bindir=DIR user executables in DIR [EPREFIX/bin] 172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 174 --datadir=DIR read-only architecture-independent data in DIR 175 [PREFIX/share] 176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 177 --sharedstatedir=DIR modifiable architecture-independent data in DIR 178 [PREFIX/com] 179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 180 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 181 --includedir=DIR C header files in DIR [PREFIX/include] 182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 183 --infodir=DIR info documentation in DIR [PREFIX/info] 184 --mandir=DIR man documentation in DIR [PREFIX/man] 185 --srcdir=DIR find the sources in DIR [configure dir or ..] 186 --program-prefix=PREFIX prepend PREFIX to installed program names 187 --program-suffix=SUFFIX append SUFFIX to installed program names 188 --program-transform-name=PROGRAM 189 run sed PROGRAM on installed program names 190EOF 191 cat << EOF 192Host type: 193 --build=BUILD configure for building on BUILD [BUILD=HOST] 194 --host=HOST configure for HOST [guessed] 195 --target=TARGET configure for TARGET [TARGET=HOST] 196Features and packages: 197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 201 --x-includes=DIR X include files are in DIR 202 --x-libraries=DIR X library files are in DIR 203EOF 204 if test -n "$ac_help"; then 205 echo "--enable and --with options recognized:$ac_help" 206 fi 207 exit 0 ;; 208 209 -host | --host | --hos | --ho) 210 ac_prev=host ;; 211 -host=* | --host=* | --hos=* | --ho=*) 212 host="$ac_optarg" ;; 213 214 -includedir | --includedir | --includedi | --included | --include \ 215 | --includ | --inclu | --incl | --inc) 216 ac_prev=includedir ;; 217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 218 | --includ=* | --inclu=* | --incl=* | --inc=*) 219 includedir="$ac_optarg" ;; 220 221 -infodir | --infodir | --infodi | --infod | --info | --inf) 222 ac_prev=infodir ;; 223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 224 infodir="$ac_optarg" ;; 225 226 -libdir | --libdir | --libdi | --libd) 227 ac_prev=libdir ;; 228 -libdir=* | --libdir=* | --libdi=* | --libd=*) 229 libdir="$ac_optarg" ;; 230 231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 232 | --libexe | --libex | --libe) 233 ac_prev=libexecdir ;; 234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 235 | --libexe=* | --libex=* | --libe=*) 236 libexecdir="$ac_optarg" ;; 237 238 -localstatedir | --localstatedir | --localstatedi | --localstated \ 239 | --localstate | --localstat | --localsta | --localst \ 240 | --locals | --local | --loca | --loc | --lo) 241 ac_prev=localstatedir ;; 242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 245 localstatedir="$ac_optarg" ;; 246 247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 248 ac_prev=mandir ;; 249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 250 mandir="$ac_optarg" ;; 251 252 -nfp | --nfp | --nf) 253 # Obsolete; use --without-fp. 254 with_fp=no ;; 255 256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 257 | --no-cr | --no-c) 258 no_create=yes ;; 259 260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 262 no_recursion=yes ;; 263 264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 266 | --oldin | --oldi | --old | --ol | --o) 267 ac_prev=oldincludedir ;; 268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 271 oldincludedir="$ac_optarg" ;; 272 273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 274 ac_prev=prefix ;; 275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 276 prefix="$ac_optarg" ;; 277 278 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 279 | --program-pre | --program-pr | --program-p) 280 ac_prev=program_prefix ;; 281 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 283 program_prefix="$ac_optarg" ;; 284 285 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 286 | --program-suf | --program-su | --program-s) 287 ac_prev=program_suffix ;; 288 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 290 program_suffix="$ac_optarg" ;; 291 292 -program-transform-name | --program-transform-name \ 293 | --program-transform-nam | --program-transform-na \ 294 | --program-transform-n | --program-transform- \ 295 | --program-transform | --program-transfor \ 296 | --program-transfo | --program-transf \ 297 | --program-trans | --program-tran \ 298 | --progr-tra | --program-tr | --program-t) 299 ac_prev=program_transform_name ;; 300 -program-transform-name=* | --program-transform-name=* \ 301 | --program-transform-nam=* | --program-transform-na=* \ 302 | --program-transform-n=* | --program-transform-=* \ 303 | --program-transform=* | --program-transfor=* \ 304 | --program-transfo=* | --program-transf=* \ 305 | --program-trans=* | --program-tran=* \ 306 | --progr-tra=* | --program-tr=* | --program-t=*) 307 program_transform_name="$ac_optarg" ;; 308 309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 310 | -silent | --silent | --silen | --sile | --sil) 311 silent=yes ;; 312 313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 314 ac_prev=sbindir ;; 315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 316 | --sbi=* | --sb=*) 317 sbindir="$ac_optarg" ;; 318 319 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 321 | --sharedst | --shareds | --shared | --share | --shar \ 322 | --sha | --sh) 323 ac_prev=sharedstatedir ;; 324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 327 | --sha=* | --sh=*) 328 sharedstatedir="$ac_optarg" ;; 329 330 -site | --site | --sit) 331 ac_prev=site ;; 332 -site=* | --site=* | --sit=*) 333 site="$ac_optarg" ;; 334 335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 336 ac_prev=srcdir ;; 337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 338 srcdir="$ac_optarg" ;; 339 340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 341 | --syscon | --sysco | --sysc | --sys | --sy) 342 ac_prev=sysconfdir ;; 343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 345 sysconfdir="$ac_optarg" ;; 346 347 -target | --target | --targe | --targ | --tar | --ta | --t) 348 ac_prev=target ;; 349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 350 target="$ac_optarg" ;; 351 352 -v | -verbose | --verbose | --verbos | --verbo | --verb) 353 verbose=yes ;; 354 355 -version | --version | --versio | --versi | --vers) 356 echo "configure generated by autoconf version 2.13" 357 exit 0 ;; 358 359 -with-* | --with-*) 360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 361 # Reject names that are not valid shell variable names. 362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 364 fi 365 ac_package=`echo $ac_package| sed 's/-/_/g'` 366 case "$ac_option" in 367 *=*) ;; 368 *) ac_optarg=yes ;; 369 esac 370 eval "with_${ac_package}='$ac_optarg'" ;; 371 372 -without-* | --without-*) 373 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 374 # Reject names that are not valid shell variable names. 375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 377 fi 378 ac_package=`echo $ac_package| sed 's/-/_/g'` 379 eval "with_${ac_package}=no" ;; 380 381 --x) 382 # Obsolete; use --with-x. 383 with_x=yes ;; 384 385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 386 | --x-incl | --x-inc | --x-in | --x-i) 387 ac_prev=x_includes ;; 388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 390 x_includes="$ac_optarg" ;; 391 392 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 394 ac_prev=x_libraries ;; 395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 397 x_libraries="$ac_optarg" ;; 398 399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 400 ;; 401 402 *) 403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 404 echo "configure: warning: $ac_option: invalid host type" 1>&2 405 fi 406 if test "x$nonopt" != xNONE; then 407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 408 fi 409 nonopt="$ac_option" 410 ;; 411 412 esac 413done 414 415if test -n "$ac_prev"; then 416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 417fi 418 419trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 420 421# File descriptor usage: 422# 0 standard input 423# 1 file creation 424# 2 errors and warnings 425# 3 some systems may open it to /dev/tty 426# 4 used on the Kubota Titan 427# 6 checking for... messages and results 428# 5 compiler messages saved in config.log 429if test "$silent" = yes; then 430 exec 6>/dev/null 431else 432 exec 6>&1 433fi 434exec 5>./config.log 435 436echo "\ 437This file contains any messages produced by compilers while 438running configure, to aid debugging if configure makes a mistake. 439" 1>&5 440 441# Strip out --no-create and --no-recursion so they do not pile up. 442# Also quote any args containing shell metacharacters. 443ac_configure_args= 444for ac_arg 445do 446 case "$ac_arg" in 447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 448 | --no-cr | --no-c) ;; 449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 452 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 453 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 454 esac 455done 456 457# NLS nuisances. 458# Only set these to C if already set. These must not be set unconditionally 459# because not all systems understand e.g. LANG=C (notably SCO). 460# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 461# Non-C LC_CTYPE values break the ctype check. 462if test "${LANG+set}" = set; then LANG=C; export LANG; fi 463if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 464if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 465if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 466 467# confdefs.h avoids OS command line length limits that DEFS can exceed. 468rm -rf conftest* confdefs.h 469# AIX cpp loses on an empty file, so make sure it contains at least a newline. 470echo > confdefs.h 471 472# A filename unique to this package, relative to the directory that 473# configure is in, which we can look for to find out if srcdir is correct. 474ac_unique_file=move-if-change 475 476# Find the source files, if location was not specified. 477if test -z "$srcdir"; then 478 ac_srcdir_defaulted=yes 479 # Try the directory containing this script, then its parent. 480 ac_prog=$0 481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 483 srcdir=$ac_confdir 484 if test ! -r $srcdir/$ac_unique_file; then 485 srcdir=.. 486 fi 487else 488 ac_srcdir_defaulted=no 489fi 490if test ! -r $srcdir/$ac_unique_file; then 491 if test "$ac_srcdir_defaulted" = yes; then 492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 493 else 494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 495 fi 496fi 497srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 498 499# Prefer explicitly selected file to automatically selected ones. 500if test -z "$CONFIG_SITE"; then 501 if test "x$prefix" != xNONE; then 502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 503 else 504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 505 fi 506fi 507for ac_site_file in $CONFIG_SITE; do 508 if test -r "$ac_site_file"; then 509 echo "loading site script $ac_site_file" 510 . "$ac_site_file" 511 fi 512done 513 514if test -r "$cache_file"; then 515 echo "loading cache $cache_file" 516 . $cache_file 517else 518 echo "creating cache $cache_file" 519 > $cache_file 520fi 521 522ac_ext=c 523# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 524ac_cpp='$CPP $CPPFLAGS' 525ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 526ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 527cross_compiling=$ac_cv_prog_cc_cross 528 529ac_exeext= 530ac_objext=o 531if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 534 ac_n= ac_c=' 535' ac_t=' ' 536 else 537 ac_n=-n ac_c= ac_t= 538 fi 539else 540 ac_n= ac_c='\c' ac_t= 541fi 542 543 544 545ac_aux_dir= 546for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 547 if test -f $ac_dir/install-sh; then 548 ac_aux_dir=$ac_dir 549 ac_install_sh="$ac_aux_dir/install-sh -c" 550 break 551 elif test -f $ac_dir/install.sh; then 552 ac_aux_dir=$ac_dir 553 ac_install_sh="$ac_aux_dir/install.sh -c" 554 break 555 fi 556done 557if test -z "$ac_aux_dir"; then 558 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 559fi 560ac_config_guess=$ac_aux_dir/config.guess 561ac_config_sub=$ac_aux_dir/config.sub 562ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 563 564 565# Do some error checking and defaulting for the host and target type. 566# The inputs are: 567# configure --host=HOST --target=TARGET --build=BUILD NONOPT 568# 569# The rules are: 570# 1. You are not allowed to specify --host, --target, and nonopt at the 571# same time. 572# 2. Host defaults to nonopt. 573# 3. If nonopt is not specified, then host defaults to the current host, 574# as determined by config.guess. 575# 4. Target and build default to nonopt. 576# 5. If nonopt is not specified, then target and build default to host. 577 578# The aliases save the names the user supplied, while $host etc. 579# will get canonicalized. 580case $host---$target---$nonopt in 581NONE---*---* | *---NONE---* | *---*---NONE) ;; 582*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 583esac 584 585 586# Make sure we can run config.sub. 587if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 588else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 589fi 590 591echo $ac_n "checking host system type""... $ac_c" 1>&6 592echo "configure:593: checking host system type" >&5 593 594host_alias=$host 595case "$host_alias" in 596NONE) 597 case $nonopt in 598 NONE) 599 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 600 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 601 fi ;; 602 *) host_alias=$nonopt ;; 603 esac ;; 604esac 605 606host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 607host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 608host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 609host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 610echo "$ac_t""$host" 1>&6 611 612echo $ac_n "checking target system type""... $ac_c" 1>&6 613echo "configure:614: checking target system type" >&5 614 615target_alias=$target 616case "$target_alias" in 617NONE) 618 case $nonopt in 619 NONE) target_alias=$host_alias ;; 620 *) target_alias=$nonopt ;; 621 esac ;; 622esac 623 624target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 625target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 626target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 627target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 628echo "$ac_t""$target" 1>&6 629 630echo $ac_n "checking build system type""... $ac_c" 1>&6 631echo "configure:632: checking build system type" >&5 632 633build_alias=$build 634case "$build_alias" in 635NONE) 636 case $nonopt in 637 NONE) build_alias=$host_alias ;; 638 *) build_alias=$nonopt ;; 639 esac ;; 640esac 641 642build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 643build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 644build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 645build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 646echo "$ac_t""$build" 1>&6 647 648test "$host_alias" != "$target_alias" && 649 test "$program_prefix$program_suffix$program_transform_name" = \ 650 NONENONEs,x,x, && 651 program_prefix=${target_alias}- 652 653if test "$program_transform_name" = s,x,x,; then 654 program_transform_name= 655else 656 # Double any \ or $. echo might interpret backslashes. 657 cat <<\EOF_SED > conftestsed 658s,\\,\\\\,g; s,\$,$$,g 659EOF_SED 660 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 661 rm -f conftestsed 662fi 663test "$program_prefix" != NONE && 664 program_transform_name="s,^,${program_prefix},; $program_transform_name" 665# Use a double $ so make ignores it. 666test "$program_suffix" != NONE && 667 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 668 669# sed with no file args requires a program. 670test "$program_transform_name" = "" && program_transform_name="s,x,x," 671 672 673# Get 'install' or 'install-sh' and its variants. 674# Find a good install program. We prefer a C program (faster), 675# so one script is as good as another. But avoid the broken or 676# incompatible versions: 677# SysV /etc/install, /usr/sbin/install 678# SunOS /usr/etc/install 679# IRIX /sbin/install 680# AIX /bin/install 681# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 682# AFS /usr/afsws/bin/install, which mishandles nonexistent args 683# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 684# ./install, which can be erroneously created by make from ./install.sh. 685echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 686echo "configure:687: checking for a BSD compatible install" >&5 687if test -z "$INSTALL"; then 688if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 689 echo $ac_n "(cached) $ac_c" 1>&6 690else 691 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 692 for ac_dir in $PATH; do 693 # Account for people who put trailing slashes in PATH elements. 694 case "$ac_dir/" in 695 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 696 *) 697 # OSF1 and SCO ODT 3.0 have their own names for install. 698 # Don't use installbsd from OSF since it installs stuff as root 699 # by default. 700 for ac_prog in ginstall scoinst install; do 701 if test -f $ac_dir/$ac_prog; then 702 if test $ac_prog = install && 703 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 704 # AIX install. It has an incompatible calling convention. 705 : 706 else 707 ac_cv_path_install="$ac_dir/$ac_prog -c" 708 break 2 709 fi 710 fi 711 done 712 ;; 713 esac 714 done 715 IFS="$ac_save_IFS" 716 717fi 718 if test "${ac_cv_path_install+set}" = set; then 719 INSTALL="$ac_cv_path_install" 720 else 721 # As a last resort, use the slow shell script. We don't cache a 722 # path for INSTALL within a source directory, because that will 723 # break other packages using the cache if that directory is 724 # removed, or if the path is relative. 725 INSTALL="$ac_install_sh" 726 fi 727fi 728echo "$ac_t""$INSTALL" 1>&6 729 730# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 731# It thinks the first close brace ends the variable substitution. 732test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 733 734test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 735 736test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 737 738echo $ac_n "checking whether ln works""... $ac_c" 1>&6 739echo "configure:740: checking whether ln works" >&5 740if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then 741 echo $ac_n "(cached) $ac_c" 1>&6 742else 743 rm -f conftestdata_t 744echo >conftestdata_f 745if ln conftestdata_f conftestdata_t 2>/dev/null 746then 747 acx_cv_prog_LN=ln 748else 749 acx_cv_prog_LN=no 750fi 751rm -f conftestdata_f conftestdata_t 752 753fi 754if test $acx_cv_prog_LN = no; then 755 LN="cp" 756 echo "$ac_t""no, using $LN" 1>&6 757else 758 LN="$acx_cv_prog_LN" 759 echo "$ac_t""yes" 1>&6 760fi 761 762echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 763echo "configure:764: checking whether ln -s works" >&5 764if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 765 echo $ac_n "(cached) $ac_c" 1>&6 766else 767 rm -f conftestdata 768if ln -s X conftestdata 2>/dev/null 769then 770 rm -f conftestdata 771 ac_cv_prog_LN_S="ln -s" 772else 773 ac_cv_prog_LN_S=ln 774fi 775fi 776LN_S="$ac_cv_prog_LN_S" 777if test "$ac_cv_prog_LN_S" = "ln -s"; then 778 echo "$ac_t""yes" 1>&6 779else 780 echo "$ac_t""no" 1>&6 781fi 782 783 784### we might need to use some other shell than /bin/sh for running subshells 785### If we are on Windows, search for the shell. This will permit people 786### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure 787### without also having to set CONFIG_SHELL. This code will work when 788### using bash, which sets OSTYPE. 789case "${OSTYPE}" in 790*win32*) 791 if test x${CONFIG_SHELL} = x ; then 792 if test ! -f /bin/sh ; then 793 if test x${SHELL} != x && test -f ${SHELL} ; then 794 CONFIG_SHELL=${SHELL} 795 export CONFIG_SHELL 796 else 797 for prog in sh sh.exe bash bash.exe; do 798 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 799 for dir in $PATH; do 800 test -z "$dir" && dir=. 801 if test -f $dir/$prog; then 802 CONFIG_SHELL=$dir/$prog 803 export CONFIG_SHELL 804 break 805 fi 806 done 807 IFS="$save_ifs" 808 test -n "${CONFIG_SHELL}" && break 809 done 810 fi 811 fi 812 fi 813 ;; 814esac 815 816config_shell=${CONFIG_SHELL-/bin/sh} 817 818progname=$0 819# if PWD already has a value, it is probably wrong. 820if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi 821 822# Export original configure arguments for use by sub-configures. These 823# will be expanded by make, so quote '$'. 824tmp="$progname $@" 825sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out 826$tmp 827EOF_SED 828TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out` 829rm -f conftestsed.out 830 831 832moveifchange=${srcdir}/move-if-change 833 834# Set srcdir to "." if that's what it is. 835# This is important for multilib support. 836pwd=`${PWDCMD-pwd}` 837srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 838if test "${pwd}" = "${srcpwd}" ; then 839 srcdir=. 840fi 841 842topsrcdir=$srcpwd 843 844extra_host_args= 845# Define the trigger file to make sure configure will re-run whenever 846# the gcc version number changes. 847if test "${with_gcc_version_trigger+set}" = set ; then 848 gcc_version_trigger="$with_gcc_version_trigger" 849 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` 850else 851 # If gcc's sources are available, define the trigger file. 852 if test -f ${topsrcdir}/gcc/version.c ; then 853 gcc_version_trigger=${topsrcdir}/gcc/version.c 854 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` 855 case "$ac_configure_args" in 856 *--with-gcc-version-trigger=$gcc_version_trigger* ) 857 ;; 858 * ) 859 # Add to all subconfigure arguments: build, host, and target. 860 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger" 861 ;; 862 esac 863 fi 864fi 865 866### To add a new directory to the tree, first choose whether it is a target 867### or a host dependent tool. Then put it into the appropriate list 868### (library or tools, host or target), doing a dependency sort. 869 870# Subdirs will be configured in the order listed in build_configdirs, 871# configdirs, or target_configdirs; see the serialization section below. 872 873# Dependency sorting is only needed when *configuration* must be done in 874# a particular order. In all cases a dependency should be specified in 875# the Makefile, whether or not it's implicitly specified here. 876 877# Double entries in build_configdirs, configdirs, or target_configdirs may 878# cause circular dependencies and break everything horribly. 879 880# these library is used by various programs built for the build 881# environment 882# 883build_libs="build-libiberty" 884 885# these tools are built for the build environment 886build_tools="build-texinfo build-byacc build-flex build-bison build-m4" 887 888# these libraries are used by various programs built for the host environment 889# 890host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp" 891 892# these tools are built for the host environment 893# Note, the powerpc-eabi build depends on sim occurring before gdb in order to 894# know that we are building the simulator. 895# binutils, gas and ld appear in that order because it makes sense to run 896# "make check" in that particular order. 897host_tools="byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar" 898 899# libgcj represents the runtime libraries only used by gcj. 900libgcj="target-libffi \ 901 target-boehm-gc \ 902 target-zlib \ 903 target-qthreads \ 904 target-libjava" 905 906# these libraries are built for the target environment, and are built after 907# the host libraries and the host tools (which may be a cross compiler) 908# 909target_libraries="target-libiberty \ 910 target-libgloss \ 911 target-newlib \ 912 target-libstdc++-v3 \ 913 target-libmudflap \ 914 target-libgfortran \ 915 ${libgcj} \ 916 target-libobjc \ 917 target-libada" 918 919# these tools are built using the target libraries, and are intended to 920# run only in the target environment 921# 922# note: any program that *uses* libraries that are in the "target_libraries" 923# list belongs in this list. those programs are also very likely 924# candidates for the "native_only" list which follows 925# 926target_tools="target-examples target-groff target-gperf target-rda" 927 928################################################################################ 929 930## All tools belong in one of the four categories, and are assigned above 931## We assign ${configdirs} this way to remove all embedded newlines. This 932## is important because configure will choke if they ever get through. 933## ${configdirs} is directories we build using the host tools. 934## ${target_configdirs} is directories we build using the target tools. 935configdirs=`echo ${host_libs} ${host_tools}` 936target_configdirs=`echo ${target_libraries} ${target_tools}` 937 938# Only make build modules if build != host. 939if test ${host_alias} != ${build_alias} ; then 940 build_configdirs=`echo ${build_libs} ${build_tools}` 941fi 942 943################################################################################ 944 945srcname="gnu development package" 946 947# This gets set non-empty for some net releases of packages. 948appdirs="" 949 950# Define is_cross_compiler to save on calls to 'test'. 951is_cross_compiler= 952if test x"${host}" = x"${target}" ; then 953 is_cross_compiler=no 954else 955 is_cross_compiler=yes 956fi 957 958# Find the build and target subdir names. 959 case ${build_alias} in 960 "") build_noncanonical=${build} ;; 961 *) build_noncanonical=${build_alias} ;; 962esac 963 964 case ${host_alias} in 965 "") host_noncanonical=${build_noncanonical} ;; 966 *) host_noncanonical=${host_alias} ;; 967esac 968 969 case ${target_alias} in 970 "") target_noncanonical=${host_noncanonical} ;; 971 *) target_noncanonical=${target_alias} ;; 972esac 973 974 # Prefix 'build-' so this never conflicts with target_subdir. 975build_subdir="build-${build_noncanonical}" 976# Not really a subdirectory, but here for completeness. 977host_subdir=. 978# No prefix. 979target_subdir=${target_noncanonical} 980 981 982# Skipdirs are removed silently. 983skipdirs= 984# Noconfigdirs are removed loudly. 985noconfigdirs="" 986 987use_gnu_ld= 988# Make sure we don't let GNU ld be added if we didn't want it. 989if test x$with_gnu_ld = xno ; then 990 use_gnu_ld=no 991 noconfigdirs="$noconfigdirs ld" 992fi 993 994use_gnu_as= 995# Make sure we don't let GNU as be added if we didn't want it. 996if test x$with_gnu_as = xno ; then 997 use_gnu_as=no 998 noconfigdirs="$noconfigdirs gas" 999fi 1000 1001# some tools are so dependent upon X11 that if we're not building with X, 1002# it's not even worth trying to configure, much less build, that tool. 1003 1004case ${with_x} in 1005 yes | "") ;; # the default value for this tree is that X11 is available 1006 no) 1007 skipdirs="${skipdirs} tk tix itcl libgui" 1008 # We won't be able to build gdbtk without X. 1009 enable_gdbtk=no 1010 ;; 1011 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; 1012esac 1013 1014# Some tools are only suitable for building in a "native" situation. 1015# Remove these if host!=target. 1016native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" 1017 1018# Similarly, some are only suitable for cross toolchains. 1019# Remove these if host=target. 1020cross_only="target-libgloss target-newlib target-opcodes" 1021 1022case $is_cross_compiler in 1023 no) skipdirs="${skipdirs} ${cross_only}" ;; 1024 yes) skipdirs="${skipdirs} ${native_only}" ;; 1025esac 1026 1027# If both --with-headers and --with-libs are specified, default to 1028# --without-newlib. 1029if test x"${with_headers}" != x && test x"${with_headers} != xno \ 1030 && test x"${with_libs}" != x && test x"${with_libs} != xno ; then 1031 if test x"${with_newlib}" = x ; then 1032 with_newlib=no 1033 fi 1034fi 1035 1036# Recognize --with-newlib/--without-newlib. 1037case ${with_newlib} in 1038 no) skipdirs="${skipdirs} target-newlib" ;; 1039 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; 1040esac 1041 1042# Configure extra directories which are host specific 1043 1044case "${host}" in 1045 *-cygwin*) 1046 configdirs="$configdirs libtermcap" ;; 1047esac 1048 1049# Remove more programs from consideration, based on the host or 1050# target this usually means that a port of the program doesn't 1051# exist yet. 1052 1053case "${host}" in 1054 hppa*64*-*-*) 1055 noconfigdirs="$noconfigdirs byacc" 1056 ;; 1057 i[3456789]86-*-vsta) 1058 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext" 1059 ;; 1060 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*) 1061 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi" 1062 ;; 1063 i[3456789]86-*-mingw32*) 1064 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv" 1065 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool" 1066 ;; 1067 i[3456789]86-*-beos*) 1068 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb" 1069 ;; 1070 *-*-cygwin*) 1071 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" 1072 ;; 1073 *-*-netbsd*) 1074 noconfigdirs="$noconfigdirs rcs" 1075 ;; 1076 ppc*-*-pe) 1077 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv" 1078 ;; 1079 powerpc-*-beos*) 1080 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline" 1081 ;; 1082 *-*-darwin*) 1083 noconfigdirs="$noconfigdirs tk itcl tix libgui" 1084 ;; 1085esac 1086 1087# Check whether --with-libbanshee or --without-libbanshee was given. 1088if test "${with_libbanshee+set}" = set; then 1089 withval="$with_libbanshee" 1090 : 1091fi 1092 1093case ${with_libbanshee} in 1094 no) 1095 noconfigdirs="$noconfigdirs libbanshee" ;; 1096 yes|"") 1097 with_libbanshee=yes 1098 ;; 1099 *) 1100 { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no" (empty defaults to "yes"." 1>&2; exit 1; } 1101esac 1102 1103# Check whether --enable-libada or --disable-libada was given. 1104if test "${enable_libada+set}" = set; then 1105 enableval="$enable_libada" 1106 ENABLE_LIBADA=$enableval 1107else 1108 ENABLE_LIBADA=yes 1109fi 1110 1111if test "${ENABLE_LIBADA}" != "yes" ; then 1112 noconfigdirs="$noconfigdirs target-libada" 1113fi 1114 1115# Save it here so that, even in case of --enable-libgcj, if the Java 1116# front-end isn't enabled, we still get libgcj disabled. 1117libgcj_saved=$libgcj 1118case $enable_libgcj in 1119yes) 1120 # If we reset it here, it won't get added to noconfigdirs in the 1121 # target-specific build rules, so it will be forcibly enabled 1122 # (unless the Java language itself isn't enabled). 1123 libgcj= 1124 ;; 1125no) 1126 # Make sure we get it printed in the list of not supported target libs. 1127 noconfigdirs="$noconfigdirs ${libgcj}" 1128 ;; 1129esac 1130 1131 1132# Allow --disable-libmudflap to exclude target-libmudflap 1133case $enable_libmudflap in 1134yes | "") 1135 # By default it's enabled 1136 ;; 1137no) 1138 noconfigdirs="$noconfigdirs target-libmudflap" 1139 ;; 1140esac 1141 1142 1143case "${target}" in 1144 *-*-chorusos) 1145 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1146 ;; 1147 powerpc-*-darwin*) 1148 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" 1149 noconfigdirs="$noconfigdirs target-libobjc" 1150 ;; 1151 *-*-darwin*) 1152 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" 1153 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}" 1154 ;; 1155 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) 1156 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1157 ;; 1158 *-*-freebsd* | *-*-kfreebsd*-gnu) 1159 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1160 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ 1161 && test -f /usr/local/include/gmp.h; then 1162 with_gmp=/usr/local 1163 fi 1164 1165 # Skip some stuff that's unsupported on some FreeBSD configurations. 1166 case "${target}" in 1167 i*86-*-*) ;; 1168 alpha*-*-*) ;; 1169 *) 1170 noconfigdirs="$noconfigdirs ${libgcj}" 1171 ;; 1172 esac 1173 ;; 1174 *-*-kaos*) 1175 # Remove unsupported stuff on all kaOS configurations. 1176 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" 1177 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" 1178 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" 1179 noconfigdirs="$noconfigdirs target-libgloss" 1180 ;; 1181 *-*-netbsd*) 1182 # Skip some stuff on all NetBSD configurations. 1183 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" 1184 1185 # Skip some stuff that's unsupported on some NetBSD configurations. 1186 case "${target}" in 1187 i*86-*-netbsdelf*) ;; 1188 arm*-*-netbsdelf*) ;; 1189 *) 1190 noconfigdirs="$noconfigdirs ${libgcj}" 1191 ;; 1192 esac 1193 ;; 1194 *-*-netware) 1195 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}" 1196 ;; 1197 *-*-rtems*) 1198 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1199 ;; 1200 *-*-uclinux*) 1201 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" 1202 ;; 1203 *-*-vxworks*) 1204 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}" 1205 ;; 1206 alpha*-dec-osf*) 1207 # ld works, but does not support shared libraries. 1208 # newlib is not 64 bit ready. I'm not sure about fileutils. 1209 # gas doesn't generate exception information. 1210 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" 1211 ;; 1212 alpha*-*-*vms*) 1213 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" 1214 ;; 1215 alpha*-*-linux*) 1216 # newlib is not 64 bit ready 1217 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1218 ;; 1219 alpha*-*-*) 1220 # newlib is not 64 bit ready 1221 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1222 ;; 1223 am33_2.0-*-linux*) 1224 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" 1225 ;; 1226 sh-*-linux*) 1227 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" 1228 ;; 1229 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 1230 noconfigdirs="$noconfigdirs ${libgcj}" 1231 noconfigdirs="$noconfigdirs target-examples" 1232 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" 1233 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim" 1234 noconfigdirs="$noconfigdirs expect dejagnu" 1235 # the C++ libraries don't build on top of CE's C libraries 1236 noconfigdirs="$noconfigdirs target-libstdc++-v3" 1237 noconfigdirs="$noconfigdirs target-newlib" 1238 case "${host}" in 1239 *-*-cygwin*) ;; # keep gdb and readline 1240 *) noconfigdirs="$noconfigdirs gdb readline" 1241 ;; 1242 esac 1243 ;; 1244 arc-*-*) 1245 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1246 ;; 1247 arm-*-coff | strongarm-*-coff | xscale-*-coff) 1248 noconfigdirs="$noconfigdirs ${libgcj}" 1249 ;; 1250 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*) 1251 noconfigdirs="$noconfigdirs target-libffi target-qthreads" 1252 ;; 1253 arm-*-pe*) 1254 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1255 ;; 1256 arm-*-oabi*) 1257 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1258 ;; 1259 thumb-*-coff) 1260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1261 ;; 1262 thumb-*-elf) 1263 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1264 ;; 1265 thumb-*-oabi) 1266 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1267 ;; 1268 thumb-*-pe) 1269 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1270 ;; 1271 arm-*-riscix*) 1272 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" 1273 ;; 1274 avr-*-*) 1275 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 1276 ;; 1277 c4x-*-* | tic4x-*-*) 1278 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 1279 ;; 1280 c54x*-*-* | tic54x-*-*) 1281 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" 1282 ;; 1283 cris-*-*) 1284 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" 1285 ;; 1286 d10v-*-*) 1287 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 1288 ;; 1289 d30v-*-*) 1290 noconfigdirs="$noconfigdirs ${libgcj} gdb" 1291 ;; 1292 fr30-*-elf*) 1293 noconfigdirs="$noconfigdirs ${libgcj} gdb" 1294 ;; 1295 frv-*-*) 1296 noconfigdirs="$noconfigdirs ${libgcj}" 1297 ;; 1298 h8300*-*-*) 1299 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1300 ;; 1301 h8500-*-*) 1302 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 1303 ;; 1304 hppa*64*-*-linux* | parisc*64*-*-linux*) 1305 # In this case, it's because the hppa64-linux target is for 1306 # the kernel only at this point and has no libc, and thus no 1307 # headers, crt*.o, etc., all of which are needed by these. 1308 noconfigdirs="$noconfigdirs target-zlib" 1309 ;; 1310 hppa*-*-*elf* | \ 1311 parisc*-*-linux* | hppa*-*-linux* | \ 1312 hppa*-*-lites* | \ 1313 hppa*-*-openbsd* | \ 1314 hppa*64*-*-*) 1315 noconfigdirs="$noconfigdirs ${libgcj}" 1316 # Do configure ld/binutils/gas for this case. 1317 ;; 1318 hppa*-*-*) 1319 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't 1320 # build on HP-UX 10.20. 1321 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" 1322 ;; 1323 i960-*-*) 1324 noconfigdirs="$noconfigdirs ${libgcj} gdb" 1325 ;; 1326 ia64*-*-elf*) 1327 # No gdb support yet. 1328 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb" 1329 ;; 1330 ia64*-**-hpux*) 1331 # No gdb or ld support yet. 1332 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld" 1333 ;; 1334 i[3456789]86-*-coff | i[3456789]86-*-elf) 1335 noconfigdirs="$noconfigdirs ${libgcj}" 1336 ;; 1337 i[3456789]86-*-linux*) 1338 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's 1339 # not build java stuff by default. 1340 case "${target}" in 1341 *-*-*libc1*) 1342 noconfigdirs="$noconfigdirs ${libgcj}";; 1343 esac 1344 1345 # This section makes it possible to build newlib natively on linux. 1346 # If we are using a cross compiler then don't configure newlib. 1347 if test x${is_cross_compiler} != xno ; then 1348 noconfigdirs="$noconfigdirs target-newlib" 1349 fi 1350 noconfigdirs="$noconfigdirs target-libgloss" 1351 # If we are not using a cross compiler, do configure newlib. 1352 # Note however, that newlib will only be configured in this situation 1353 # if the --with-newlib option has been given, because otherwise 1354 # 'target-newlib' will appear in skipdirs. 1355 ;; 1356 i[3456789]86-*-mingw32*) 1357 target_configdirs="$target_configdirs target-mingw" 1358 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}" 1359 1360 # Can't build gdb for mingw32 if not native. 1361 case "${host}" in 1362 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc. 1363 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv" 1364 ;; 1365 esac 1366 ;; 1367 *-*-cygwin*) 1368 target_configdirs="$target_configdirs target-libtermcap target-winsup" 1369 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" 1370 # always build newlib if winsup directory is present. 1371 if test -d "$srcdir/winsup" 1372 then 1373 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 1374 else 1375 echo "Warning: winsup is missing so newlib can't be built." 1376 fi 1377 1378 # Can't build gdb for Cygwin if not native. 1379 case "${host}" in 1380 *-*-cygwin*) ;; # keep gdb tcl tk expect etc. 1381 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv" 1382 ;; 1383 esac 1384 ;; 1385 i[3456789]86-*-pe) 1386 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 1387 ;; 1388 i[3456789]86-*-sco3.2v5*) 1389 # The linker does not yet know about weak symbols in COFF, 1390 # and is not configured to handle mixed ELF and COFF. 1391 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" 1392 ;; 1393 i[3456789]86-*-sco*) 1394 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1395 ;; 1396 i[3456789]86-*-solaris2*) 1397 noconfigdirs="$noconfigdirs target-libgloss" 1398 ;; 1399 i[3456789]86-*-sysv4*) 1400 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1401 ;; 1402 i[3456789]86-*-beos*) 1403 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" 1404 ;; 1405 m32r-*-*) 1406 noconfigdirs="$noconfigdirs ${libgcj}" 1407 ;; 1408 zpu-*-*) 1409 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 1410 ;; 1411 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) 1412 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 1413 ;; 1414 m68k-*-elf*) 1415 noconfigdirs="$noconfigdirs ${libgcj}" 1416 ;; 1417 m68k-*-coff*) 1418 noconfigdirs="$noconfigdirs ${libgcj}" 1419 ;; 1420 mcore-*-pe*) 1421 # The EPOC C++ environment does not support exceptions or rtti, 1422 # and so building libstdc++-v3 tends not to always work. 1423 noconfigdirs="$noconfigdirs target-libstdc++-v3" 1424 ;; 1425 mmix-*-*) 1426 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss" 1427 ;; 1428 mn10200-*-*) 1429 noconfigdirs="$noconfigdirs ${libgcj}" 1430 ;; 1431 mn10300-*-*) 1432 noconfigdirs="$noconfigdirs ${libgcj}" 1433 ;; 1434 powerpc-*-aix*) 1435 # copied from rs6000-*-* entry 1436 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1437 ;; 1438 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) 1439 target_configdirs="$target_configdirs target-winsup" 1440 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}" 1441 # always build newlib. 1442 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 1443 ;; 1444 # This is temporary until we can link against shared libraries 1445 powerpcle-*-solaris*) 1446 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}" 1447 ;; 1448 powerpc-*-beos*) 1449 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" 1450 ;; 1451 powerpc-*-eabi) 1452 noconfigdirs="$noconfigdirs ${libgcj}" 1453 ;; 1454 rs6000-*-lynxos*) 1455 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" 1456 ;; 1457 rs6000-*-aix*) 1458 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1459 ;; 1460 rs6000-*-*) 1461 noconfigdirs="$noconfigdirs gprof ${libgcj}" 1462 ;; 1463 m68k-apollo-*) 1464 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" 1465 ;; 1466 mips*-*-irix5*) 1467 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1468 ;; 1469 mips*-*-irix6*) 1470 # Linking libjava exceeds command-line length limits on at least 1471 # IRIX 6.2, but not on IRIX 6.5. 1472 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham 1473 # <oldham@codesourcery.com> 1474 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1475 ;; 1476 mips*-dec-bsd*) 1477 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1478 ;; 1479 mips*-*-bsd*) 1480 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1481 ;; 1482 mipstx39-*-*) 1483 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips 1484 ;; 1485 mips64*-*-linux*) 1486 noconfigdirs="$noconfigdirs target-newlib ${libgcj}" 1487 ;; 1488 mips*-*-linux*) 1489 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1490 ;; 1491 mips*-*-*) 1492 noconfigdirs="$noconfigdirs gprof ${libgcj}" 1493 ;; 1494 romp-*-*) 1495 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" 1496 ;; 1497 sh-*-*) 1498 case "${host}" in 1499 i[3456789]86-*-vsta) ;; # don't add gprof back in 1500 i[3456789]86-*-go32*) ;; # don't add gprof back in 1501 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in 1502 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; 1503 esac 1504 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1505 ;; 1506 sh64-*-*) 1507 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1508 ;; 1509 sparc-*-elf*) 1510 noconfigdirs="$noconfigdirs ${libgcj}" 1511 ;; 1512 sparc64-*-elf*) 1513 noconfigdirs="$noconfigdirs ${libgcj}" 1514 ;; 1515 sparclite-*-*) 1516 noconfigdirs="$noconfigdirs ${libgcj}" 1517 ;; 1518 sparc-*-sunos4*) 1519 noconfigdirs="$noconfigdirs ${libgcj}" 1520 if test x${is_cross_compiler} != xno ; then 1521 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 1522 else 1523 use_gnu_ld=no 1524 fi 1525 ;; 1526 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) 1527 ;; 1528 v810-*-*) 1529 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" 1530 ;; 1531 v850-*-*) 1532 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1533 ;; 1534 v850e-*-*) 1535 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1536 ;; 1537 v850ea-*-*) 1538 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1539 ;; 1540 vax-*-vms) 1541 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" 1542 ;; 1543 vax-*-*) 1544 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1545 ;; 1546 xtensa-*-*) 1547 noconfigdirs="$noconfigdirs ${libgcj}" 1548 ;; 1549 ip2k-*-*) 1550 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 1551 ;; 1552 *-*-linux*) 1553 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1554 ;; 1555 *-*-lynxos*) 1556 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1557 ;; 1558 *-*-*) 1559 noconfigdirs="$noconfigdirs ${libgcj}" 1560 ;; 1561esac 1562 1563# If we aren't building newlib, then don't build libgloss, since libgloss 1564# depends upon some newlib header files. 1565case "${noconfigdirs}" in 1566 *target-libgloss*) ;; 1567 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; 1568esac 1569 1570# Work in distributions that contain no compiler tools, like Autoconf. 1571tentative_cc="" 1572host_makefile_frag=/dev/null 1573if test -d ${srcdir}/config ; then 1574case "${host}" in 1575 m68k-hp-hpux*) 1576 # Avoid "too much defining" errors from HPUX compiler. 1577 tentative_cc="cc -Wp,-H256000" 1578 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. 1579 # If it's HP/UX ar, this should be harmless. 1580 RANLIB="ar ts" 1581 ;; 1582 m68k-apollo-sysv*) 1583 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" 1584 ;; 1585 m68k-apollo-bsd*) 1586 #None of the Apollo compilers can compile gas or binutils. The preprocessor 1587 # chokes on bfd, the compiler won't let you assign integers to enums, and 1588 # other problems. Defining CC to gcc is a questionable way to say "don't use 1589 # the apollo compiler" (the preferred version of GCC could be called cc, 1590 # or whatever), but I'm not sure leaving CC as cc is any better... 1591 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG 1592 # Used to have BISON=yacc. 1593 tentative_cc=gcc 1594 ;; 1595 m88k-dg-dgux*) 1596 tentative_cc="gcc -Wall -ansi -D__using_DGUX" 1597 ;; 1598 m88k-harris-cxux*) 1599 # Under CX/UX, we want to tell the compiler to use ANSI mode. 1600 tentative_cc="cc -Xa" 1601 host_makefile_frag="config/mh-cxux" 1602 ;; 1603 m88k-motorola-sysv*) 1604 ;; 1605 mips*-dec-ultrix*) 1606 tentative_cc="cc -Wf,-XNg1000" 1607 host_makefile_frag="config/mh-decstation" 1608 ;; 1609 mips*-nec-sysv4*) 1610 # The C compiler on NEC MIPS SVR4 needs bigger tables. 1611 tentative_cc="cc -ZXNd=5000 -ZXNg=1000" 1612 host_makefile_frag="config/mh-necv4" 1613 ;; 1614 mips*-sgi-irix4*) 1615 # Tell compiler to use K&R C. We can't compile under the SGI Ansi 1616 # environment. Also bump switch table size so that cp-parse will 1617 # compile. Bump string length limit so linker builds. 1618 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" 1619 ;; 1620 mips*-*-sysv4*) 1621 host_makefile_frag="config/mh-sysv4" 1622 ;; 1623 mips*-*-sysv*) 1624 # This is for a MIPS running RISC/os 4.52C. 1625 1626 # This is needed for GDB, but needs to be in the top-level make because 1627 # if a library is compiled with the bsd headers and gets linked with the 1628 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be 1629 # a different size). 1630 # ptrace(2) apparently has problems in the BSD environment. No workaround is 1631 # known except to select the sysv environment. Could we use /proc instead? 1632 # These "sysv environments" and "bsd environments" often end up being a pain. 1633 # 1634 # This is not part of CFLAGS because perhaps not all C compilers have this 1635 # option. 1636 tentative_cc="cc -systype sysv" 1637 ;; 1638 i370-ibm-opened*) 1639 tentative_cc="c89" 1640 ;; 1641 i[3456789]86-*-sysv5*) 1642 host_makefile_frag="config/mh-sysv5" 1643 ;; 1644 i[3456789]86-*-dgux*) 1645 tentative_cc="gcc -Wall -ansi -D__using_DGUX" 1646 host_makefile_frag="config/mh-dgux386" 1647 ;; 1648 i[3456789]86-ncr-sysv4.3*) 1649 # The MetaWare compiler will generate a copyright message unless you 1650 # turn it off by adding the -Hnocopyr flag. 1651 tentative_cc="cc -Hnocopyr" 1652 ;; 1653 i[3456789]86-ncr-sysv4*) 1654 # for an NCR 3000 (i486/SVR4) system. 1655 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. 1656 # This compiler not only emits obnoxious copyright messages every time 1657 # you run it, but it chokes and dies on a whole bunch of GNU source 1658 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. 1659 tentative_cc="/usr/ccs/ATT/cc" 1660 host_makefile_frag="config/mh-ncr3000" 1661 ;; 1662 i[3456789]86-*-sco3.2v5*) 1663 ;; 1664 i[3456789]86-*-sco*) 1665 # The native C compiler botches some simple uses of const. Unfortunately, 1666 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. 1667 tentative_cc="cc -Dconst=" 1668 host_makefile_frag="config/mh-sco" 1669 ;; 1670 i[3456789]86-*-udk*) 1671 host_makefile_frag="config/mh-sysv5" 1672 ;; 1673 i[3456789]86-*-solaris2*) 1674 host_makefile_frag="config/mh-sysv4" 1675 ;; 1676 i[3456789]86-*-msdosdjgpp*) 1677 host_makefile_frag="config/mh-djgpp" 1678 ;; 1679 *-cygwin*) 1680 host_makefile_frag="config/mh-cygwin" 1681 ;; 1682 *-mingw32*) 1683 host_makefile_frag="config/mh-mingw32" 1684 ;; 1685 *-interix*) 1686 host_makefile_frag="config/mh-interix" 1687 ;; 1688 vax-*-ultrix2*) 1689 # The old BSD pcc isn't up to compiling parts of gdb so use gcc 1690 tentative_cc=gcc 1691 ;; 1692 *-*-solaris2*) 1693 host_makefile_frag="config/mh-solaris" 1694 ;; 1695 m68k-sun-sunos*) 1696 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c 1697 # without overflowing the jump tables (-J says to use a 32 bit table) 1698 tentative_cc="cc -J" 1699 ;; 1700 *-hp-hpux*) 1701 tentative_cc="cc -Wp,-H256000" 1702 ;; 1703 *-*-hiux*) 1704 tentative_cc="cc -Wp,-H256000" 1705 ;; 1706 rs6000-*-lynxos*) 1707 # /bin/cc is less than useful for our purposes. Always use GCC 1708 tentative_cc="/usr/cygnus/progressive/bin/gcc" 1709 host_makefile_frag="config/mh-lynxrs6k" 1710 ;; 1711 *-*-lynxos*) 1712 # /bin/cc is less than useful for our purposes. Always use GCC 1713 tentative_cc="/bin/gcc" 1714 ;; 1715 *-*-sysv4*) 1716 host_makefile_frag="config/mh-sysv4" 1717 ;; 1718esac 1719fi 1720 1721# If we aren't going to be using gcc, see if we can extract a definition 1722# of CC from the fragment. 1723# Actually, use the 'pre-extracted' version above. 1724if test -z "${CC}" && test "${build}" = "${host}" ; then 1725 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 1726 found= 1727 for dir in $PATH; do 1728 test -z "$dir" && dir=. 1729 if test -f $dir/gcc; then 1730 found=yes 1731 break 1732 fi 1733 done 1734 IFS="$save_ifs" 1735 if test -z "${found}" && test -n "${tentative_cc}" ; then 1736 CC=$tentative_cc 1737 fi 1738fi 1739 1740if test "${build}" != "${host}" ; then 1741 # If we are doing a Canadian Cross, in which the host and build systems 1742 # are not the same, we set reasonable default values for the tools. 1743 1744 CC=${CC-${host_alias}-gcc} 1745 CFLAGS=${CFLAGS-"-g -O2"} 1746 CXX=${CXX-${host_alias}-c++} 1747 CXXFLAGS=${CXXFLAGS-"-g -O2"} 1748 CC_FOR_BUILD=${CC_FOR_BUILD-gcc} 1749 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc} 1750 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++} 1751 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj} 1752 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}} 1753 BUILD_DIR_PREFIX=${build_subdir} 1754 BUILD_PREFIX=${build_alias}- 1755 BUILD_PREFIX_1=${build_alias}- 1756 1757else 1758 # Set reasonable default values for some tools even if not Canadian. 1759 # Of course, these are different reasonable default values, originally 1760 # specified directly in the Makefile. 1761 # We don't export, so that autoconf can do its job. 1762 # Note that all these settings are above the fragment inclusion point 1763 # in Makefile.in, so can still be overridden by fragments. 1764 # This is all going to change when we autoconfiscate... 1765 1766 CC_FOR_BUILD="\$(CC)" 1767 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)" 1768 BUILD_DIR_PREFIX= 1769 BUILD_PREFIX= 1770 BUILD_PREFIX_1=loser- 1771 1772 # Extract the first word of "gcc", so it can be a program name with args. 1773set dummy gcc; ac_word=$2 1774echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1775echo "configure:1776: checking for $ac_word" >&5 1776if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1777 echo $ac_n "(cached) $ac_c" 1>&6 1778else 1779 if test -n "$CC"; then 1780 ac_cv_prog_CC="$CC" # Let the user override the test. 1781else 1782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1783 ac_dummy="$PATH" 1784 for ac_dir in $ac_dummy; do 1785 test -z "$ac_dir" && ac_dir=. 1786 if test -f $ac_dir/$ac_word; then 1787 ac_cv_prog_CC="gcc" 1788 break 1789 fi 1790 done 1791 IFS="$ac_save_ifs" 1792fi 1793fi 1794CC="$ac_cv_prog_CC" 1795if test -n "$CC"; then 1796 echo "$ac_t""$CC" 1>&6 1797else 1798 echo "$ac_t""no" 1>&6 1799fi 1800 1801if test -z "$CC"; then 1802 # Extract the first word of "cc", so it can be a program name with args. 1803set dummy cc; ac_word=$2 1804echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1805echo "configure:1806: checking for $ac_word" >&5 1806if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1807 echo $ac_n "(cached) $ac_c" 1>&6 1808else 1809 if test -n "$CC"; then 1810 ac_cv_prog_CC="$CC" # Let the user override the test. 1811else 1812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1813 ac_prog_rejected=no 1814 ac_dummy="$PATH" 1815 for ac_dir in $ac_dummy; do 1816 test -z "$ac_dir" && ac_dir=. 1817 if test -f $ac_dir/$ac_word; then 1818 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1819 ac_prog_rejected=yes 1820 continue 1821 fi 1822 ac_cv_prog_CC="cc" 1823 break 1824 fi 1825 done 1826 IFS="$ac_save_ifs" 1827if test $ac_prog_rejected = yes; then 1828 # We found a bogon in the path, so make sure we never use it. 1829 set dummy $ac_cv_prog_CC 1830 shift 1831 if test $# -gt 0; then 1832 # We chose a different compiler from the bogus one. 1833 # However, it has the same basename, so the bogon will be chosen 1834 # first if we set CC to just the basename; use the full file name. 1835 shift 1836 set dummy "$ac_dir/$ac_word" "$@" 1837 shift 1838 ac_cv_prog_CC="$@" 1839 fi 1840fi 1841fi 1842fi 1843CC="$ac_cv_prog_CC" 1844if test -n "$CC"; then 1845 echo "$ac_t""$CC" 1>&6 1846else 1847 echo "$ac_t""no" 1>&6 1848fi 1849 1850 if test -z "$CC"; then 1851 case "`uname -s`" in 1852 *win32* | *WIN32*) 1853 # Extract the first word of "cl", so it can be a program name with args. 1854set dummy cl; ac_word=$2 1855echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1856echo "configure:1857: checking for $ac_word" >&5 1857if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1858 echo $ac_n "(cached) $ac_c" 1>&6 1859else 1860 if test -n "$CC"; then 1861 ac_cv_prog_CC="$CC" # Let the user override the test. 1862else 1863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1864 ac_dummy="$PATH" 1865 for ac_dir in $ac_dummy; do 1866 test -z "$ac_dir" && ac_dir=. 1867 if test -f $ac_dir/$ac_word; then 1868 ac_cv_prog_CC="cl" 1869 break 1870 fi 1871 done 1872 IFS="$ac_save_ifs" 1873fi 1874fi 1875CC="$ac_cv_prog_CC" 1876if test -n "$CC"; then 1877 echo "$ac_t""$CC" 1>&6 1878else 1879 echo "$ac_t""no" 1>&6 1880fi 1881 ;; 1882 esac 1883 fi 1884 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1885fi 1886 1887echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1888echo "configure:1889: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1889 1890ac_ext=c 1891# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1892ac_cpp='$CPP $CPPFLAGS' 1893ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1894ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1895cross_compiling=$ac_cv_prog_cc_cross 1896 1897cat > conftest.$ac_ext << EOF 1898 1899#line 1900 "configure" 1900#include "confdefs.h" 1901 1902main(){return(0);} 1903EOF 1904if { (eval echo configure:1905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1905 ac_cv_prog_cc_works=yes 1906 # If we can't run a trivial program, we are probably using a cross compiler. 1907 if (./conftest; exit) 2>/dev/null; then 1908 ac_cv_prog_cc_cross=no 1909 else 1910 ac_cv_prog_cc_cross=yes 1911 fi 1912else 1913 echo "configure: failed program was:" >&5 1914 cat conftest.$ac_ext >&5 1915 ac_cv_prog_cc_works=no 1916fi 1917rm -fr conftest* 1918ac_ext=c 1919# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1920ac_cpp='$CPP $CPPFLAGS' 1921ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1922ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1923cross_compiling=$ac_cv_prog_cc_cross 1924 1925echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1926if test $ac_cv_prog_cc_works = no; then 1927 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1928fi 1929echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1930echo "configure:1931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1931echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1932cross_compiling=$ac_cv_prog_cc_cross 1933 1934echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1935echo "configure:1936: checking whether we are using GNU C" >&5 1936if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1937 echo $ac_n "(cached) $ac_c" 1>&6 1938else 1939 cat > conftest.c <<EOF 1940#ifdef __GNUC__ 1941 yes; 1942#endif 1943EOF 1944if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1945 ac_cv_prog_gcc=yes 1946else 1947 ac_cv_prog_gcc=no 1948fi 1949fi 1950 1951echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1952 1953if test $ac_cv_prog_gcc = yes; then 1954 GCC=yes 1955else 1956 GCC= 1957fi 1958 1959ac_test_CFLAGS="${CFLAGS+set}" 1960ac_save_CFLAGS="$CFLAGS" 1961CFLAGS= 1962echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1963echo "configure:1964: checking whether ${CC-cc} accepts -g" >&5 1964if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1965 echo $ac_n "(cached) $ac_c" 1>&6 1966else 1967 echo 'void f(){}' > conftest.c 1968if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1969 ac_cv_prog_cc_g=yes 1970else 1971 ac_cv_prog_cc_g=no 1972fi 1973rm -f conftest* 1974 1975fi 1976 1977echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1978if test "$ac_test_CFLAGS" = set; then 1979 CFLAGS="$ac_save_CFLAGS" 1980elif test $ac_cv_prog_cc_g = yes; then 1981 if test "$GCC" = yes; then 1982 CFLAGS="-g -O2" 1983 else 1984 CFLAGS="-g" 1985 fi 1986else 1987 if test "$GCC" = yes; then 1988 CFLAGS="-O2" 1989 else 1990 CFLAGS= 1991 fi 1992fi 1993 1994 1995 # We must set the default linker to the linker used by gcc for the correct 1996 # operation of libtool. If LD is not defined and we are using gcc, try to 1997 # set the LD default to the ld used by gcc. 1998 if test -z "$LD"; then 1999 if test "$GCC" = yes; then 2000 case $build in 2001 *-*-mingw*) 2002 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; 2003 *) 2004 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; 2005 esac 2006 case $gcc_prog_ld in 2007 # Accept absolute paths. 2008 [\\/]* | [A-Za-z]:[\\/]*) 2009 LD="$gcc_prog_ld" ;; 2010 esac 2011 fi 2012 fi 2013 2014 CXX=${CXX-"c++"} 2015 CFLAGS=${CFLAGS-"-g"} 2016 CXXFLAGS=${CXXFLAGS-"-g -O2"} 2017fi 2018 2019if test $host != $build; then 2020 ac_tool_prefix=${host_alias}- 2021else 2022 ac_tool_prefix= 2023fi 2024 2025 2026 2027# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. 2028set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 2029echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2030echo "configure:2031: checking for $ac_word" >&5 2031if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then 2032 echo $ac_n "(cached) $ac_c" 1>&6 2033else 2034 if test -n "$GNATBIND"; then 2035 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 2036else 2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2038 ac_dummy="$PATH" 2039 for ac_dir in $ac_dummy; do 2040 test -z "$ac_dir" && ac_dir=. 2041 if test -f $ac_dir/$ac_word; then 2042 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" 2043 break 2044 fi 2045 done 2046 IFS="$ac_save_ifs" 2047fi 2048fi 2049GNATBIND="$ac_cv_prog_GNATBIND" 2050if test -n "$GNATBIND"; then 2051 echo "$ac_t""$GNATBIND" 1>&6 2052else 2053 echo "$ac_t""no" 1>&6 2054fi 2055 2056 2057if test -z "$ac_cv_prog_GNATBIND"; then 2058if test -n "$ac_tool_prefix"; then 2059 # Extract the first word of "gnatbind", so it can be a program name with args. 2060set dummy gnatbind; ac_word=$2 2061echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2062echo "configure:2063: checking for $ac_word" >&5 2063if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then 2064 echo $ac_n "(cached) $ac_c" 1>&6 2065else 2066 if test -n "$GNATBIND"; then 2067 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 2068else 2069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2070 ac_dummy="$PATH" 2071 for ac_dir in $ac_dummy; do 2072 test -z "$ac_dir" && ac_dir=. 2073 if test -f $ac_dir/$ac_word; then 2074 ac_cv_prog_GNATBIND="gnatbind" 2075 break 2076 fi 2077 done 2078 IFS="$ac_save_ifs" 2079 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no" 2080fi 2081fi 2082GNATBIND="$ac_cv_prog_GNATBIND" 2083if test -n "$GNATBIND"; then 2084 echo "$ac_t""$GNATBIND" 1>&6 2085else 2086 echo "$ac_t""no" 1>&6 2087fi 2088 2089else 2090 GNATBIND="no" 2091fi 2092fi 2093 2094echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6 2095echo "configure:2096: checking whether compiler driver understands Ada" >&5 2096if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then 2097 echo $ac_n "(cached) $ac_c" 1>&6 2098else 2099 cat >conftest.adb <<EOF 2100procedure conftest is begin null; end conftest; 2101EOF 2102acx_cv_cc_gcc_supports_ada=no 2103# There is a bug in old released versions of GCC which causes the 2104# driver to exit successfully when the appropriate language module 2105# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. 2106# Therefore we must check for the error message as well as an 2107# unsuccessful exit. 2108# Other compilers, like HP Tru64 UNIX cc, exit successfully when 2109# given a .adb file, but produce no object file. So we must check 2110# if an object file was really produced to guard against this. 2111errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` 2112if test x"$errors" = x && test -f conftest.$ac_objext; then 2113 acx_cv_cc_gcc_supports_ada=yes 2114 break 2115fi 2116rm -f conftest.* 2117fi 2118 2119echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6 2120 2121if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then 2122 have_gnat=yes 2123else 2124 have_gnat=no 2125fi 2126 2127echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6 2128echo "configure:2129: checking how to compare bootstrapped objects" >&5 2129if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then 2130 echo $ac_n "(cached) $ac_c" 1>&6 2131else 2132 echo abfoo >t1 2133 echo cdfoo >t2 2134 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' 2135 if cmp t1 t2 2 2 > /dev/null 2>&1; then 2136 if cmp t1 t2 1 1 > /dev/null 2>&1; then 2137 : 2138 else 2139 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' 2140 fi 2141 fi 2142 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 2143 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 2144 : 2145 else 2146 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' 2147 fi 2148 fi 2149 rm t1 t2 2150 2151fi 2152 2153echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6 2154do_compare="$gcc_cv_prog_cmp_skip" 2155 2156 2157 2158# Check for GMP 2159gmplibs= 2160gmpinc= 2161have_gmp=yes 2162# Specify a location for gmp 2163# Check whether --with-gmp-dir or --without-gmp-dir was given. 2164if test "${with_gmp_dir+set}" = set; then 2165 withval="$with_gmp_dir" 2166 : 2167fi 2168 2169 2170if test "x$with_gmp_dir" != x && test -f "$with_gmp_dir/gmp.h"; then 2171 gmpinc="-I$with_gmp_dir" 2172 if test -f "$with_gmp_dir/.libs/libgmp.a"; then 2173 gmplibs="$with_gmp_dir/.libs/libgmp.a" 2174 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then 2175 gmplibs="$with_gmp_dir/_libs/libgmp.a" 2176 fi 2177 # One of the later tests will catch the error if neither library is present. 2178fi 2179 2180# Check whether --with-gmp or --without-gmp was given. 2181if test "${with_gmp+set}" = set; then 2182 withval="$with_gmp" 2183 : 2184fi 2185 2186 2187if test "x$with_gmp" != x && test -d "$with_gmp"; then 2188 gmplibs="-L$with_gmp/lib -lgmp" 2189 gmpinc="-I$with_gmp/include" 2190fi 2191 2192# Use system gmp if nothing else specified 2193if test "x$gmplibs" = x; then 2194 gmplibs="-lgmp" 2195fi 2196 2197saved_CFLAGS="$CFLAGS" 2198CFLAGS="$CFLAGS $gmpinc" 2199# Check GMP actually works 2200echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6 2201echo "configure:2202: checking for correct version of gmp.h" >&5 2202cat > conftest.$ac_ext <<EOF 2203#line 2204 "configure" 2204#include "confdefs.h" 2205#include "gmp.h" 2206int main() { 2207 2208#if __GNU_MP_VERSION < 3 2209choke me 2210#endif 2211 2212; return 0; } 2213EOF 2214if { (eval echo configure:2215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2215 rm -rf conftest* 2216 echo "$ac_t""yes" 1>&6 2217else 2218 echo "configure: failed program was:" >&5 2219 cat conftest.$ac_ext >&5 2220 rm -rf conftest* 2221 echo "$ac_t""no" 1>&6; have_gmp=no 2222fi 2223rm -f conftest* 2224 2225if test x"$have_gmp" = xyes; then 2226 echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6 2227echo "configure:2228: checking for mpf_init in -lgmp" >&5 2228 2229 saved_LIBS="$LIBS" 2230 LIBS="$LIBS $gmplibs" 2231 cat > conftest.$ac_ext <<EOF 2232#line 2233 "configure" 2233#include "confdefs.h" 2234#include <gmp.h> 2235int main() { 2236mpf_t n; mpf_init(n); 2237; return 0; } 2238EOF 2239if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2240 rm -rf conftest* 2241 echo "$ac_t""yes" 1>&6 2242else 2243 echo "configure: failed program was:" >&5 2244 cat conftest.$ac_ext >&5 2245 rm -rf conftest* 2246 echo "$ac_t""no" 1>&6; have_gmp=no 2247fi 2248rm -f conftest* 2249 LIBS="$saved_LIBS" 2250 CFLAGS="$saved_CFLAGS" 2251fi 2252 2253 2254 2255 2256# By default, C is the only stage 1 language. 2257stage1_languages=c 2258 2259 2260# Figure out what language subdirectories are present. 2261# Look if the user specified --enable-languages="..."; if not, use 2262# the environment variable $LANGUAGES if defined. $LANGUAGES might 2263# go away some day. 2264# NB: embedded tabs in this IF block -- do not untabify 2265if test -d ${srcdir}/gcc; then 2266 if test x"${enable_languages+set}" != xset; then 2267 if test x"${LANGUAGES+set}" = xset; then 2268 enable_languages="${LANGUAGES}" 2269 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 2270 else 2271 enable_languages=all 2272 fi 2273 else 2274 if test x"${enable_languages}" = x || 2275 test x"${enable_languages}" = xyes; 2276 then 2277 echo configure.in: --enable-languages needs at least one language argument 1>&2 2278 exit 1 2279 fi 2280 fi 2281 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` 2282 2283 # First scan to see if an enabled language requires some other language. 2284 # We assume that a given config-lang.in will list all the language 2285 # front ends it requires, even if some are required indirectly. 2286 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 2287 case ${lang_frag} in 2288 ..) ;; 2289 # The odd quoting in the next line works around 2290 # an apparent bug in bash 1.12 on linux. 2291 ${srcdir}/gcc/[*]/config-lang.in) ;; 2292 *) 2293 # From the config-lang.in, get $language, $lang_requires 2294 language= 2295 lang_requires= 2296 . ${lang_frag} 2297 for other in ${lang_requires} ; do 2298 case ,${enable_languages}, in 2299 *,$other,*) ;; 2300 *,all,*) ;; 2301 *,$language,*) 2302 echo " \`$other' language required by \`$language'; enabling" 1>&2 2303 enable_languages="${enable_languages},${other}" 2304 ;; 2305 esac 2306 done 2307 ;; 2308 esac 2309 done 2310 2311 new_enable_languages=c 2312 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` 2313 2314 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 2315 case ${lang_frag} in 2316 ..) ;; 2317 # The odd quoting in the next line works around 2318 # an apparent bug in bash 1.12 on linux. 2319 ${srcdir}/gcc/[*]/config-lang.in) ;; 2320 *) 2321 # From the config-lang.in, get $language, $target_libs, 2322 # $lang_dirs, $boot_language, and $build_by_default 2323 language= 2324 target_libs= 2325 lang_dirs= 2326 boot_language= 2327 build_by_default= 2328 need_gmp= 2329 . ${lang_frag} 2330 # This is quite sensitive to the ordering of the case statement arms. 2331 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in 2332 *::*:*) 2333 echo "${lang_frag} doesn't set \$language." 1>&2 2334 exit 1 2335 ;; 2336 *:ada:no:*) 2337 # Ada was requested with no preexisting GNAT. Disable unconditionally. 2338 add_this_lang=no 2339 ;; 2340 *,${language},*:*:*:*) 2341 # Language was explicitly selected; include it. 2342 add_this_lang=yes 2343 ;; 2344 *,all,*:*:*:no) 2345 # 'all' was selected, but this is not a default language 2346 # so do not include it. 2347 add_this_lang=no 2348 ;; 2349 *,all,*:*:*:*) 2350 # 'all' was selected and this is a default language; include it. 2351 add_this_lang=yes 2352 ;; 2353 *) 2354 add_this_lang=no 2355 ;; 2356 esac 2357 2358 # Disable language that need GMP if it isn't available. 2359 if test x"$need_gmp" = xyes && test x"$have_gmp" = xno; then 2360 add_this_lang=no 2361 fi 2362 2363 case $add_this_lang in 2364 no) 2365 # Remove language-dependent dirs. 2366 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" 2367 ;; 2368 *) 2369 new_enable_languages="$new_enable_languages,$language" 2370 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` 2371 case ${boot_language} in 2372 yes) 2373 # Add to (comma-separated) list of stage 1 languages. 2374 stage1_languages="${stage1_languages},${language}" 2375 ;; 2376 esac 2377 ;; 2378 esac 2379 ;; 2380 esac 2381 done 2382 2383 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` 2384 if test "x$missing_languages" != x; then 2385 { echo "configure: error: 2386The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; } 2387 fi 2388 2389 if test "x$new_enable_languages" != "x$enable_languages"; then 2390 echo The following languages will be built: ${new_enable_languages} 2391 fi 2392 enable_languages="$new_enable_languages" 2393 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ ` 2394fi 2395 2396# Remove the entries in $skipdirs and $noconfigdirs from $configdirs and 2397# $target_configdirs. 2398# If we have the source for $noconfigdirs entries, add them to $notsupp. 2399 2400notsupp="" 2401for dir in . $skipdirs $noconfigdirs ; do 2402 dirname=`echo $dir | sed -e s/target-//g` 2403 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 2404 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` 2405 if test -r $srcdir/$dirname/configure ; then 2406 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 2407 true 2408 else 2409 notsupp="$notsupp $dir" 2410 fi 2411 fi 2412 fi 2413 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 2414 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` 2415 if test -r $srcdir/$dirname/configure ; then 2416 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 2417 true 2418 else 2419 notsupp="$notsupp $dir" 2420 fi 2421 fi 2422 fi 2423done 2424 2425# Sometimes the tools are distributed with libiberty but with no other 2426# libraries. In that case, we don't want to build target-libiberty. 2427if test -n "${target_configdirs}" ; then 2428 others= 2429 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do 2430 if test "$i" != "libiberty" ; then 2431 if test -r $srcdir/$i/configure ; then 2432 others=yes; 2433 break; 2434 fi 2435 fi 2436 done 2437 if test -z "${others}" ; then 2438 target_configdirs= 2439 fi 2440fi 2441 2442# Quietly strip out all directories which aren't configurable in this tree. 2443# This relies on all configurable subdirectories being autoconfiscated, which 2444# is now the case. 2445build_configdirs_all="$build_configdirs" 2446build_configdirs= 2447for i in ${build_configdirs_all} ; do 2448 j=`echo $i | sed -e s/build-//g` 2449 if test -f ${srcdir}/$j/configure ; then 2450 build_configdirs="${build_configdirs} $i" 2451 fi 2452done 2453 2454configdirs_all="$configdirs" 2455configdirs= 2456for i in ${configdirs_all} ; do 2457 if test -f ${srcdir}/$i/configure ; then 2458 configdirs="${configdirs} $i" 2459 fi 2460done 2461 2462target_configdirs_all="$target_configdirs" 2463target_configdirs= 2464for i in ${target_configdirs_all} ; do 2465 j=`echo $i | sed -e s/target-//g` 2466 if test -f ${srcdir}/$j/configure ; then 2467 target_configdirs="${target_configdirs} $i" 2468 fi 2469done 2470 2471# Produce a warning message for the subdirs we can't configure. 2472# This isn't especially interesting in the Cygnus tree, but in the individual 2473# FSF releases, it's important to let people know when their machine isn't 2474# supported by the one or two programs in a package. 2475 2476if test -n "${notsupp}" && test -z "${norecursion}" ; then 2477 # If $appdirs is non-empty, at least one of those directories must still 2478 # be configured, or we error out. (E.g., if the gas release supports a 2479 # specified target in some subdirs but not the gas subdir, we shouldn't 2480 # pretend that all is well.) 2481 if test -n "$appdirs" ; then 2482 for dir in $appdirs ; do 2483 if test -r $dir/Makefile.in ; then 2484 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 2485 appdirs="" 2486 break 2487 fi 2488 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then 2489 appdirs="" 2490 break 2491 fi 2492 fi 2493 done 2494 if test -n "$appdirs" ; then 2495 echo "*** This configuration is not supported by this package." 1>&2 2496 exit 1 2497 fi 2498 fi 2499 # Okay, some application will build, or we don't care to check. Still 2500 # notify of subdirs not getting built. 2501 echo "*** This configuration is not supported in the following subdirectories:" 1>&2 2502 echo " ${notsupp}" 1>&2 2503 echo " (Any other directories should still work fine.)" 1>&2 2504fi 2505 2506case "$host" in 2507 *msdosdjgpp*) 2508 enable_gdbtk=no ;; 2509esac 2510 2511copy_dirs= 2512 2513# Handle --with-headers=XXX. If the value is not "yes", the contents of 2514# the named directory are copied to $(tooldir)/sys-include. 2515if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then 2516 if test x${is_cross_compiler} = xno ; then 2517 echo 1>&2 '***' --with-headers is only supported when cross compiling 2518 exit 1 2519 fi 2520 if test x"${with_headers}" != xyes ; then 2521 case "${exec_prefixoption}" in 2522 "") x=${prefix} ;; 2523 *) x=${exec_prefix} ;; 2524 esac 2525 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" 2526 fi 2527fi 2528 2529# Handle --with-libs=XXX. If the value is not "yes", the contents of 2530# the name directories are copied to $(tooldir)/lib. Multiple directories 2531# are permitted. 2532if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 2533 if test x${is_cross_compiler} = xno ; then 2534 echo 1>&2 '***' --with-libs is only supported when cross compiling 2535 exit 1 2536 fi 2537 if test x"${with_libs}" != xyes ; then 2538 # Copy the libraries in reverse order, so that files in the first named 2539 # library override files in subsequent libraries. 2540 case "${exec_prefixoption}" in 2541 "") x=${prefix} ;; 2542 *) x=${exec_prefix} ;; 2543 esac 2544 for l in ${with_libs}; do 2545 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" 2546 done 2547 fi 2548fi 2549 2550# Handle ${copy_dirs} 2551set fnord ${copy_dirs} 2552shift 2553while test $# != 0 ; do 2554 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then 2555 : 2556 else 2557 echo Copying $1 to $2 2558 2559 # Use the install script to create the directory and all required 2560 # parent directories. 2561 if test -d $2 ; then 2562 : 2563 else 2564 echo >config.temp 2565 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED 2566 fi 2567 2568 # Copy the directory, assuming we have tar. 2569 # FIXME: Should we use B in the second tar? Not all systems support it. 2570 (cd $1; tar -cf - .) | (cd $2; tar -xpf -) 2571 2572 # It is the responsibility of the user to correctly adjust all 2573 # symlinks. If somebody can figure out how to handle them correctly 2574 # here, feel free to add the code. 2575 2576 echo $1 > $2/COPIED 2577 fi 2578 shift; shift 2579done 2580 2581extra_arflags_for_target= 2582extra_nmflags_for_target= 2583extra_ranlibflags_for_target= 2584target_makefile_frag=/dev/null 2585case "${target}" in 2586 i[3456789]86-*-netware*) 2587 target_makefile_frag="config/mt-netware" 2588 ;; 2589 powerpc-*-netware*) 2590 target_makefile_frag="config/mt-netware" 2591 ;; 2592 *-*-linux*) 2593 target_makefile_frag="config/mt-linux" 2594 ;; 2595 *-*-aix4.[3456789]* | *-*-aix[56789].*) 2596 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm 2597 # commands to handle both 32-bit and 64-bit objects. These flags are 2598 # harmless if we're using GNU nm or ar. 2599 extra_arflags_for_target=" -X32_64" 2600 extra_nmflags_for_target=" -B -X32_64" 2601 ;; 2602 *-*-darwin*) 2603 # ranlib from Darwin requires the -c flag to look at common symbols. 2604 extra_ranlibflags_for_target=" -c" 2605 ;; 2606 mips*-*-pe | sh*-*-pe | *arm-wince-pe) 2607 target_makefile_frag="config/mt-wince" 2608 ;; 2609esac 2610 2611alphaieee_frag=/dev/null 2612case $target in 2613 alpha*-*-*) 2614 # This just makes sure to use the -mieee option to build target libs. 2615 # This should probably be set individually by each library. 2616 alphaieee_frag="config/mt-alphaieee" 2617 ;; 2618esac 2619 2620# If --enable-target-optspace always use -Os instead of -O2 to build 2621# the target libraries, similarly if it is not specified, use -Os 2622# on selected platforms. 2623ospace_frag=/dev/null 2624case "${enable_target_optspace}:${target}" in 2625 yes:*) 2626 ospace_frag="config/mt-ospace" 2627 ;; 2628 :d30v-*) 2629 ospace_frag="config/mt-d30v" 2630 ;; 2631 :m32r-* | :d10v-* | :fr30-*) 2632 ospace_frag="config/mt-ospace" 2633 ;; 2634 no:* | :*) 2635 ;; 2636 *) 2637 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 2638 ;; 2639esac 2640 2641# Set with_gnu_as and with_gnu_ld as appropriate. 2642# 2643# This is done by determining whether or not the appropriate directory 2644# is available, and by checking whether or not specific configurations 2645# have requested that this magic not happen. 2646# 2647# The command line options always override the explicit settings in 2648# configure.in, and the settings in configure.in override this magic. 2649# 2650# If the default for a toolchain is to use GNU as and ld, and you don't 2651# want to do that, then you should use the --without-gnu-as and 2652# --without-gnu-ld options for the configure script. 2653 2654if test x${use_gnu_as} = x && 2655 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then 2656 with_gnu_as=yes 2657 extra_host_args="$extra_host_args --with-gnu-as" 2658fi 2659 2660if test x${use_gnu_ld} = x && 2661 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then 2662 with_gnu_ld=yes 2663 extra_host_args="$extra_host_args --with-gnu-ld" 2664fi 2665 2666# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure 2667# can detect this case. 2668 2669if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then 2670 with_newlib=yes 2671 extra_host_args="$extra_host_args --with-newlib" 2672fi 2673 2674if test x${with_libbanshee} = xyes && echo " ${configdirs} " | grep " libbanshee " >/dev/null 2>&1; then 2675 extra_host_args="$extra_host_args --with-libbanshee" 2676fi 2677 2678# Default to using --with-stabs for certain targets. 2679if test x${with_stabs} = x ; then 2680 case "${target}" in 2681 mips*-*-irix[56]*) 2682 ;; 2683 mips*-*-* | alpha*-*-osf*) 2684 with_stabs=yes; 2685 extra_host_args="${extra_host_args} --with-stabs" 2686 ;; 2687 esac 2688fi 2689 2690# hpux11 in 64bit mode has libraries in a weird place. Arrange to find 2691# them automatically. 2692case "${host}" in 2693 hppa*64*-*-hpux11*) 2694 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" 2695 ;; 2696esac 2697 2698# Some systems (e.g., one of the i386-aix systems the gas testers are 2699# using) don't handle "\$" correctly, so don't use it here. 2700tooldir='${exec_prefix}'/${target_alias} 2701build_tooldir=${tooldir} 2702 2703# Generate default definitions for YACC, M4, LEX and other programs that run 2704# on the build machine. These are used if the Makefile can't locate these 2705# programs in objdir. 2706MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 2707for ac_prog in bison 2708do 2709# Extract the first word of "$ac_prog", so it can be a program name with args. 2710set dummy $ac_prog; ac_word=$2 2711echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2712echo "configure:2713: checking for $ac_word" >&5 2713if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then 2714 echo $ac_n "(cached) $ac_c" 1>&6 2715else 2716 if test -n "$CONFIGURED_BISON"; then 2717 ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test. 2718else 2719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2720 ac_dummy="$PATH" 2721 for ac_dir in $ac_dummy; do 2722 test -z "$ac_dir" && ac_dir=. 2723 if test -f $ac_dir/$ac_word; then 2724 ac_cv_prog_CONFIGURED_BISON="$ac_prog" 2725 break 2726 fi 2727 done 2728 IFS="$ac_save_ifs" 2729fi 2730fi 2731CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON" 2732if test -n "$CONFIGURED_BISON"; then 2733 echo "$ac_t""$CONFIGURED_BISON" 1>&6 2734else 2735 echo "$ac_t""no" 1>&6 2736fi 2737 2738test -n "$CONFIGURED_BISON" && break 2739done 2740test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison" 2741 2742for ac_prog in 'bison -y' byacc yacc 2743do 2744# Extract the first word of "$ac_prog", so it can be a program name with args. 2745set dummy $ac_prog; ac_word=$2 2746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2747echo "configure:2748: checking for $ac_word" >&5 2748if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then 2749 echo $ac_n "(cached) $ac_c" 1>&6 2750else 2751 if test -n "$CONFIGURED_YACC"; then 2752 ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test. 2753else 2754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2755 ac_dummy="$PATH" 2756 for ac_dir in $ac_dummy; do 2757 test -z "$ac_dir" && ac_dir=. 2758 if test -f $ac_dir/$ac_word; then 2759 ac_cv_prog_CONFIGURED_YACC="$ac_prog" 2760 break 2761 fi 2762 done 2763 IFS="$ac_save_ifs" 2764fi 2765fi 2766CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC" 2767if test -n "$CONFIGURED_YACC"; then 2768 echo "$ac_t""$CONFIGURED_YACC" 1>&6 2769else 2770 echo "$ac_t""no" 1>&6 2771fi 2772 2773test -n "$CONFIGURED_YACC" && break 2774done 2775test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y" 2776 2777for ac_prog in gm4 gnum4 m4 2778do 2779# Extract the first word of "$ac_prog", so it can be a program name with args. 2780set dummy $ac_prog; ac_word=$2 2781echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2782echo "configure:2783: checking for $ac_word" >&5 2783if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then 2784 echo $ac_n "(cached) $ac_c" 1>&6 2785else 2786 if test -n "$CONFIGURED_M4"; then 2787 ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test. 2788else 2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2790 ac_dummy="$PATH" 2791 for ac_dir in $ac_dummy; do 2792 test -z "$ac_dir" && ac_dir=. 2793 if test -f $ac_dir/$ac_word; then 2794 ac_cv_prog_CONFIGURED_M4="$ac_prog" 2795 break 2796 fi 2797 done 2798 IFS="$ac_save_ifs" 2799fi 2800fi 2801CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4" 2802if test -n "$CONFIGURED_M4"; then 2803 echo "$ac_t""$CONFIGURED_M4" 1>&6 2804else 2805 echo "$ac_t""no" 1>&6 2806fi 2807 2808test -n "$CONFIGURED_M4" && break 2809done 2810test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4" 2811 2812for ac_prog in flex 2813do 2814# Extract the first word of "$ac_prog", so it can be a program name with args. 2815set dummy $ac_prog; ac_word=$2 2816echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2817echo "configure:2818: checking for $ac_word" >&5 2818if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then 2819 echo $ac_n "(cached) $ac_c" 1>&6 2820else 2821 if test -n "$CONFIGURED_FLEX"; then 2822 ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test. 2823else 2824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2825 ac_dummy="$PATH" 2826 for ac_dir in $ac_dummy; do 2827 test -z "$ac_dir" && ac_dir=. 2828 if test -f $ac_dir/$ac_word; then 2829 ac_cv_prog_CONFIGURED_FLEX="$ac_prog" 2830 break 2831 fi 2832 done 2833 IFS="$ac_save_ifs" 2834fi 2835fi 2836CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX" 2837if test -n "$CONFIGURED_FLEX"; then 2838 echo "$ac_t""$CONFIGURED_FLEX" 1>&6 2839else 2840 echo "$ac_t""no" 1>&6 2841fi 2842 2843test -n "$CONFIGURED_FLEX" && break 2844done 2845test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex" 2846 2847for ac_prog in flex lex 2848do 2849# Extract the first word of "$ac_prog", so it can be a program name with args. 2850set dummy $ac_prog; ac_word=$2 2851echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2852echo "configure:2853: checking for $ac_word" >&5 2853if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then 2854 echo $ac_n "(cached) $ac_c" 1>&6 2855else 2856 if test -n "$CONFIGURED_LEX"; then 2857 ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test. 2858else 2859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2860 ac_dummy="$PATH" 2861 for ac_dir in $ac_dummy; do 2862 test -z "$ac_dir" && ac_dir=. 2863 if test -f $ac_dir/$ac_word; then 2864 ac_cv_prog_CONFIGURED_LEX="$ac_prog" 2865 break 2866 fi 2867 done 2868 IFS="$ac_save_ifs" 2869fi 2870fi 2871CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX" 2872if test -n "$CONFIGURED_LEX"; then 2873 echo "$ac_t""$CONFIGURED_LEX" 1>&6 2874else 2875 echo "$ac_t""no" 1>&6 2876fi 2877 2878test -n "$CONFIGURED_LEX" && break 2879done 2880test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex" 2881 2882for ac_prog in makeinfo 2883do 2884# Extract the first word of "$ac_prog", so it can be a program name with args. 2885set dummy $ac_prog; ac_word=$2 2886echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2887echo "configure:2888: checking for $ac_word" >&5 2888if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then 2889 echo $ac_n "(cached) $ac_c" 1>&6 2890else 2891 if test -n "$CONFIGURED_MAKEINFO"; then 2892 ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test. 2893else 2894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2895 ac_dummy="$PATH" 2896 for ac_dir in $ac_dummy; do 2897 test -z "$ac_dir" && ac_dir=. 2898 if test -f $ac_dir/$ac_word; then 2899 ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog" 2900 break 2901 fi 2902 done 2903 IFS="$ac_save_ifs" 2904fi 2905fi 2906CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO" 2907if test -n "$CONFIGURED_MAKEINFO"; then 2908 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6 2909else 2910 echo "$ac_t""no" 1>&6 2911fi 2912 2913test -n "$CONFIGURED_MAKEINFO" && break 2914done 2915test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo" 2916 2917 2918# Create a .gdbinit file which runs the one in srcdir 2919# and tells GDB to look there for source files. 2920 2921if test -r ${srcdir}/.gdbinit ; then 2922 case ${srcdir} in 2923 .) ;; 2924 *) cat > ./.gdbinit <<EOF 2925# ${NO_EDIT} 2926dir ${srcdir} 2927dir . 2928source ${srcdir}/.gdbinit 2929EOF 2930 ;; 2931 esac 2932fi 2933 2934# Make sure that the compiler is able to generate an executable. If it 2935# can't, we are probably in trouble. We don't care whether we can run the 2936# executable--we might be using a cross compiler--we only care whether it 2937# can be created. At this point the main configure script has set CC. 2938we_are_ok=no 2939echo "int main () { return 0; }" > conftest.c 2940${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 2941if test $? = 0 ; then 2942 if test -s conftest || test -s conftest.exe ; then 2943 we_are_ok=yes 2944 fi 2945fi 2946case $we_are_ok in 2947 no) 2948 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." 2949 echo 1>&2 "*** You must set the environment variable CC to a working compiler." 2950 rm -f conftest* 2951 exit 1 2952 ;; 2953esac 2954rm -f conftest* 2955 2956# The Solaris /usr/ucb/cc compiler does not appear to work. 2957case "${host}" in 2958 sparc-sun-solaris2*) 2959 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" 2960 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then 2961 could_use= 2962 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" 2963 if test -d /opt/cygnus/bin ; then 2964 if test "$could_use" = "" ; then 2965 could_use="/opt/cygnus/bin" 2966 else 2967 could_use="$could_use or /opt/cygnus/bin" 2968 fi 2969 fi 2970 if test "$could_use" = "" ; then 2971 echo "Warning: compilation may fail because you're using" 2972 echo "/usr/ucb/cc. You should change your PATH or CC " 2973 echo "variable and rerun configure." 2974 else 2975 echo "Warning: compilation may fail because you're using" 2976 echo "/usr/ucb/cc, when you should use the C compiler from" 2977 echo "$could_use. You should change your" 2978 echo "PATH or CC variable and rerun configure." 2979 fi 2980 fi 2981 ;; 2982esac 2983 2984# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the 2985# binutils tools will find libbfd.so. 2986case "${enable_shared}" in 2987 no | "") SET_LIB_PATH= ;; 2988 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;; 2989esac 2990 2991case "${host}" in 2992 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; 2993 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; 2994esac 2995 2996# Record target_configdirs and the configure arguments for target and 2997# build configuration in Makefile. 2998target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` 2999build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` 3000 3001# Determine whether gdb needs tk/tcl or not. 3002# Use 'maybe' since enable_gdbtk might be true even if tk isn't available 3003# and in that case we want gdb to be built without tk. Ugh! 3004# In fact I believe gdb is the *only* package directly dependent on tk, 3005# so we should be able to put the 'maybe's in unconditionally and 3006# leave out the maybe dependencies when enable_gdbtk is false. I'm not 3007# 100% sure that that's safe though. 3008 3009gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui" 3010case "$enable_gdbtk" in 3011 no) 3012 GDB_TK="" ;; 3013 yes) 3014 GDB_TK="${gdb_tk}" ;; 3015 *) 3016 # Only add the dependency on gdbtk when GDBtk is part of the gdb 3017 # distro. Eventually someone will fix this and move Insight, nee 3018 # gdbtk to a separate directory. 3019 if test -d ${srcdir}/gdb/gdbtk ; then 3020 GDB_TK="${gdb_tk}" 3021 else 3022 GDB_TK="" 3023 fi 3024 ;; 3025esac 3026 3027# Strip out unwanted targets. 3028 3029# While at that, we remove Makefiles if we were started for recursive 3030# configuration, so that the top-level Makefile reconfigures them, 3031# like we used to do when configure itself was recursive. 3032 3033# Loop over modules. $extrasub must be used with care, limiting as 3034# much as possible the usage of range addresses. That's because autoconf 3035# splits the sed script to overcome limits in the number of commands, 3036# and relying on carefully-timed sed passes may turn out to be very hard 3037# to maintain later. In this particular case, you just have to be careful 3038# not to nest @if/@endif pairs, because configure will not warn you at all. 3039 3040# Check whether --enable-bootstrap or --disable-bootstrap was given. 3041if test "${enable_bootstrap+set}" = set; then 3042 enableval="$enable_bootstrap" 3043 : 3044else 3045 enable_bootstrap=no 3046fi 3047 3048if test -d ${srcdir}/gcc; then 3049 case "$host:$target:$enable_bootstrap" in 3050 $build:$build:yes | *:no) ;; 3051 *:yes) { echo "configure: error: cannot bootstrap a cross-compiler" 1>&2; exit 1; } ;; 3052 *) { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; } ;; 3053 esac 3054else 3055 if test $enable_bootstrap = yes; then 3056 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } 3057 fi 3058fi 3059 3060case "$enable_bootstrap" in 3061 yes) 3062 default_target=bootstrap 3063 bootstrap_suffix=bootstrap ;; 3064 no) 3065 default_target=all 3066 bootstrap_suffix=no-bootstrap ;; 3067esac 3068 3069 3070for module in ${build_configdirs} ; do 3071 if test -z "${no_recursion}" \ 3072 && test -f ${build_subdir}/${module}/Makefile; then 3073 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" 3074 rm -f ${build_subdir}/${module}/Makefile 3075 fi 3076 extrasub="$extrasub 3077/^@if build-$module\$/d 3078/^@endif build-$module\$/d 3079/^@if build-$module-$bootstrap_suffix\$/d 3080/^@endif build-$module-$bootstrap_suffix\$/d" 3081done 3082for module in ${configdirs} ; do 3083 if test -z "${no_recursion}" \ 3084 && test -f ${module}/Makefile; then 3085 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure" 3086 rm -f ${module}/Makefile 3087 fi 3088 extrasub="$extrasub 3089/^@if $module\$/d 3090/^@endif $module\$/d 3091/^@if $module-$bootstrap_suffix\$/d 3092/^@endif $module-$bootstrap_suffix\$/d" 3093done 3094for module in ${target_configdirs} ; do 3095 if test -z "${no_recursion}" \ 3096 && test -f ${target_subdir}/${module}/Makefile; then 3097 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" 3098 rm -f ${target_subdir}/${module}/Makefile 3099 fi 3100 extrasub="$extrasub 3101/^@if target-$module\$/d 3102/^@endif target-$module\$/d 3103/^@if target-$module-$bootstrap_suffix\$/d 3104/^@endif target-$module-$bootstrap_suffix\$/d" 3105done 3106 3107extrasub="$extrasub 3108/^@if /,/^@endif /d" 3109 3110# Create the serialization dependencies. This uses a temporary file. 3111 3112# Check whether --enable-serial-configure or --disable-serial-configure was given. 3113if test "${enable_serial_configure+set}" = set; then 3114 enableval="$enable_serial_configure" 3115 : 3116fi 3117 3118 3119case ${enable_serial_configure} in 3120 yes) 3121 enable_serial_build_configure=yes 3122 enable_serial_host_configure=yes 3123 enable_serial_target_configure=yes 3124 ;; 3125esac 3126 3127# These force 'configure's to be done one at a time, to avoid problems 3128# with contention over a shared config.cache. 3129rm -f serdep.tmp 3130echo '# serdep.tmp' > serdep.tmp 3131olditem= 3132test "x${enable_serial_build_configure}" = xyes && 3133for item in ${build_configdirs} ; do 3134 case ${olditem} in 3135 "") ;; 3136 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; 3137 esac 3138 olditem=${item} 3139done 3140olditem= 3141test "x${enable_serial_host_configure}" = xyes && 3142for item in ${configdirs} ; do 3143 case ${olditem} in 3144 "") ;; 3145 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; 3146 esac 3147 olditem=${item} 3148done 3149olditem= 3150test "x${enable_serial_target_configure}" = xyes && 3151for item in ${target_configdirs} ; do 3152 case ${olditem} in 3153 "") ;; 3154 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; 3155 esac 3156 olditem=${item} 3157done 3158serialization_dependencies=serdep.tmp 3159 3160 3161# Base args. Strip norecursion, cache-file, srcdir, host, build, 3162# target and nonopt. These are the ones we might not want to pass 3163# down to subconfigures. Also strip program-prefix, program-suffix, 3164# and program-transform-name, so that we can pass down a consistent 3165# program-transform-name. If autoconf has put single quotes around 3166# any of these arguments (because they contain shell metacharacters) 3167# then this will fail; in practice this only happens for 3168# --program-transform-name, so be sure to override --program-transform-name 3169# at the end of the argument list. 3170# These will be expanded by make, so quote '$'. 3171cat <<\EOF_SED > conftestsed 3172s/ --no[^ ]*/ /g 3173s/ --c[a-z-]*[= ][^ ]*//g 3174s/ --sr[a-z-]*[= ][^ ]*//g 3175s/ --ho[a-z-]*[= ][^ ]*//g 3176s/ --bu[a-z-]*[= ][^ ]*//g 3177s/ --t[a-z-]*[= ][^ ]*//g 3178s/ --program-[pst][a-z-]*[= ][^ ]*//g 3179s/ -cache-file[= ][^ ]*//g 3180s/ -srcdir[= ][^ ]*//g 3181s/ -host[= ][^ ]*//g 3182s/ -build[= ][^ ]*//g 3183s/ -target[= ][^ ]*//g 3184s/ -program-prefix[= ][^ ]*//g 3185s/ -program-suffix[= ][^ ]*//g 3186s/ -program-transform-name[= ][^ ]*//g 3187s/ [^' -][^ ]* / / 3188s/^ *//;s/ *$// 3189s,\$,$$,g 3190EOF_SED 3191sed -f conftestsed <<EOF_SED > conftestsed.out 3192 ${ac_configure_args} 3193EOF_SED 3194baseargs=`cat conftestsed.out` 3195rm -f conftestsed conftestsed.out 3196 3197# Add in --program-transform-name, after --program-prefix and 3198# --program-suffix have been applied to it. Autoconf has already 3199# doubled dollar signs and backslashes in program_transform_name; we want 3200# the backslashes un-doubled, and then the entire thing wrapped in single 3201# quotes, because this will be expanded first by make and then by the shell. 3202# Also, because we want to override the logic in subdir configure scripts to 3203# choose program_transform_name, replace any s,x,x, with s,y,y,. 3204sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out 3205${program_transform_name} 3206EOF_SED 3207gcc_transform_name=`cat conftestsed.out` 3208rm -f conftestsed.out 3209baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" 3210 3211# For the build-side libraries, we just need to pretend we're native, 3212# and not use the same cache file. Multilibs are neither needed nor 3213# desired. 3214build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}" 3215 3216# For host modules, accept cache file option, or specification as blank. 3217case "${cache_file}" in 3218"") # empty 3219 cache_file_option="" ;; 3220/* | [A-Za-z]:[\\/]* ) # absolute path 3221 cache_file_option="--cache-file=${cache_file}" ;; 3222*) # relative path 3223 cache_file_option="--cache-file=../${cache_file}" ;; 3224esac 3225 3226# Host dirs don't like to share a cache file either, horribly enough. 3227# This seems to be due to autoconf 2.5x stupidity. 3228host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}" 3229 3230target_configargs=${baseargs} 3231 3232# Passing a --with-cross-host argument lets the target libraries know 3233# whether they are being built with a cross-compiler or being built 3234# native. However, it would be better to use other mechanisms to make the 3235# sorts of decisions they want to make on this basis. Please consider 3236# this option to be deprecated. FIXME. 3237if test x${is_cross_compiler} = xyes ; then 3238 target_configargs="--with-cross-host=${host_alias} ${target_configargs}" 3239fi 3240 3241# Default to --enable-multilib. 3242if test x${enable_multilib} = x ; then 3243 target_configargs="--enable-multilib ${target_configargs}" 3244fi 3245 3246# Pass --with-newlib if appropriate. Note that target_configdirs has 3247# changed from the earlier setting of with_newlib. 3248if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then 3249 target_configargs="--with-newlib ${target_configargs}" 3250fi 3251 3252# Different target subdirs use different values of certain variables 3253# (notably CXX). Worse, multilibs use *lots* of different values. 3254# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that 3255# it doesn't automatically accept command-line overrides of them. 3256# This means it's not safe for target subdirs to share a cache file, 3257# which is disgusting, but there you have it. Hopefully this can be 3258# fixed in future. It's still worthwhile to use a cache file for each 3259# directory. I think. 3260 3261# Pass the appropriate --host, --build, and --cache-file arguments. 3262target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}" 3263 3264# provide a proper gxx_include_dir. 3265# Note, if you change the default, make sure to fix both here and in 3266# the gcc and libstdc++-v3 subdirectories. 3267# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. 3268case "${with_gxx_include_dir}" in 3269 yes) 3270 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; } 3271 ;; 3272 no | "") 3273 case "${enable_version_specific_runtime_libs}" in 3274 yes) gxx_include_dir='${libsubdir}/include/c++' ;; 3275 *) 3276 . ${srcdir}/config.if 3277 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;; 3278 esac ;; 3279 *) gxx_include_dir=${with_gxx_include_dir} ;; 3280esac 3281 3282FLAGS_FOR_TARGET= 3283case " $target_configdirs " in 3284 *" newlib "*) 3285 case " $target_configargs " in 3286 *" --with-newlib "*) 3287 case "$target" in 3288 *-cygwin*) 3289 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;; 3290 esac 3291 3292 # If we're not building GCC, don't discard standard headers. 3293 if test -d ${srcdir}/gcc; then 3294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' 3295 3296 if test "${build}" != "${host}"; then 3297 # On Canadian crosses, CC_FOR_TARGET will have already been set 3298 # by `configure', so we won't have an opportunity to add -Bgcc/ 3299 # to it. This is right: we don't want to search that directory 3300 # for binaries, but we want the header files in there, so add 3301 # them explicitly. 3302 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include' 3303 3304 # Someone might think of using the pre-installed headers on 3305 # Canadian crosses, in case the installed compiler is not fully 3306 # compatible with the compiler being built. In this case, it 3307 # would be better to flag an error than risking having 3308 # incompatible object files being constructed. We can't 3309 # guarantee that an error will be flagged, but let's hope the 3310 # compiler will do it, when presented with incompatible header 3311 # files. 3312 fi 3313 fi 3314 3315 case "${target}-${is_cross_compiler}" in 3316 i[3456789]86-*-linux*-no) 3317 # Here host == target, so we don't need to build gcc, 3318 # so we don't want to discard standard headers. 3319 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` 3320 ;; 3321 *) 3322 # If we're building newlib, use its generic headers last, but search 3323 # for any libc-related directories first (so make it the last -B 3324 # switch). 3325 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' 3326 ;; 3327 esac 3328 ;; 3329 esac 3330 ;; 3331esac 3332 3333# Allow the user to override the flags for 3334# our build compiler if desired. 3335CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} 3336 3337# On Canadian crosses, we'll be searching the right directories for 3338# the previously-installed cross compiler, so don't bother to add 3339# flags for directories within the install tree of the compiler 3340# being built; programs in there won't even run. 3341if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then 3342 # Search for pre-installed headers if nothing else fits. 3343 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' 3344fi 3345 3346if test "x${use_gnu_ld}" = x && 3347 echo " ${configdirs} " | grep " ld " > /dev/null ; then 3348 # Arrange for us to find uninstalled linker scripts. 3349 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld' 3350fi 3351 3352if test "x${CC_FOR_TARGET+set}" = xset; then 3353 : 3354elif test -d ${srcdir}/gcc; then 3355 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/' 3356elif test "$host" = "$target"; then 3357 CC_FOR_TARGET='$(CC)' 3358else 3359 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"` 3360fi 3361CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)' 3362 3363if test "x${GCJ_FOR_TARGET+set}" = xset; then 3364 : 3365elif test -d ${srcdir}/gcc; then 3366 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/' 3367elif test "$host" = "$target"; then 3368 GCJ_FOR_TARGET='gcj' 3369else 3370 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"` 3371fi 3372GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)' 3373 3374if test "x${GFORTRAN_FOR_TARGET+set}" = xset; then 3375 : 3376elif test -d ${srcdir}/gcc; then 3377 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/' 3378elif test "$host" = "$target"; then 3379 GFORTRAN_FOR_TARGET='gfortran' 3380else 3381 GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"` 3382fi 3383case $GFORTRAN_FOR_TARGET in 3384*' $(FLAGS_FOR_TARGET)') ;; 3385*) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;; 3386esac 3387 3388# Don't use libstdc++-v3's flags to configure/build itself. 3389libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' 3390raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' 3391 3392if test "x${CXX_FOR_TARGET+set}" = xset; then 3393 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then 3394 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} 3395 fi 3396elif test -d ${srcdir}/gcc; then 3397 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead 3398 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by 3399 # default whereas gcc does not. 3400 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for 3401 # all other cases. 3402 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags 3403 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags 3404elif test "$host" = "$target"; then 3405 CXX_FOR_TARGET='$(CXX)' 3406 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} 3407else 3408 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"` 3409 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} 3410fi 3411CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)' 3412RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)' 3413 3414qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'` 3415qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'` 3416 3417# We want to defer the evaluation of `cmd`s and shell variables in 3418# CXX_FOR_TARGET when recursing in the top-level Makefile, such as for 3419# bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single 3420# quotes, but we still have to duplicate `$'s so that shell variables 3421# can be expanded by the nested make as shell variables, not as make 3422# macros. 3423qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'` 3424qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'` 3425 3426# Wrap CC_FOR_TARGET and friends, for certain types of builds. 3427CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}" 3428GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}" 3429GFORTRAN_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GFORTRAN_FOR_TARGET}" 3430CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}" 3431RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}" 3432CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}" 3433RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}" 3434 3435# Makefile fragments. 3436host_makefile_frag=${srcdir}/${host_makefile_frag} 3437target_makefile_frag=${srcdir}/${target_makefile_frag} 3438alphaieee_frag=${srcdir}/${alphaieee_frag} 3439ospace_frag=${srcdir}/${ospace_frag} 3440 3441 3442 3443 3444 3445# Miscellanea: directories, flags, etc. 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459# Build module lists & subconfigure args. 3460 3461 3462 3463# Host module lists & subconfigure args. 3464 3465 3466 3467# Target module lists & subconfigure args. 3468 3469 3470 3471# Build tools. 3472 3473 3474 3475# Host tools. 3476ncn_tool_prefix= 3477test -n "$host_alias" && ncn_tool_prefix=$host_alias- 3478ncn_target_tool_prefix= 3479test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- 3480 3481 if test -n "$ncn_tool_prefix"; then 3482 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args. 3483set dummy ${ncn_tool_prefix}ar; ac_word=$2 3484echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3485echo "configure:3486: checking for $ac_word" >&5 3486if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 3487 echo $ac_n "(cached) $ac_c" 1>&6 3488else 3489 if test -n "$AR"; then 3490 ac_cv_prog_AR="$AR" # Let the user override the test. 3491else 3492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3493 ac_dummy="$PATH" 3494 for ac_dir in $ac_dummy; do 3495 test -z "$ac_dir" && ac_dir=. 3496 if test -f $ac_dir/$ac_word; then 3497 ac_cv_prog_AR="${ncn_tool_prefix}ar" 3498 break 3499 fi 3500 done 3501 IFS="$ac_save_ifs" 3502fi 3503fi 3504AR="$ac_cv_prog_AR" 3505if test -n "$AR"; then 3506 echo "$ac_t""$AR" 1>&6 3507else 3508 echo "$ac_t""no" 1>&6 3509fi 3510 3511fi 3512if test -z "$ac_cv_prog_AR" ; then 3513 if test $build = $host ; then 3514 ncn_cv_AR=$AR 3515 # Extract the first word of "ar", so it can be a program name with args. 3516set dummy ar; ac_word=$2 3517echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3518echo "configure:3519: checking for $ac_word" >&5 3519if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then 3520 echo $ac_n "(cached) $ac_c" 1>&6 3521else 3522 if test -n "$ncn_cv_AR"; then 3523 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test. 3524else 3525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3526 ac_dummy="$PATH" 3527 for ac_dir in $ac_dummy; do 3528 test -z "$ac_dir" && ac_dir=. 3529 if test -f $ac_dir/$ac_word; then 3530 ac_cv_prog_ncn_cv_AR="ar" 3531 break 3532 fi 3533 done 3534 IFS="$ac_save_ifs" 3535 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar" 3536fi 3537fi 3538ncn_cv_AR="$ac_cv_prog_ncn_cv_AR" 3539if test -n "$ncn_cv_AR"; then 3540 echo "$ac_t""$ncn_cv_AR" 1>&6 3541else 3542 echo "$ac_t""no" 1>&6 3543fi 3544 3545 AR=$ncn_cv_AR 3546 else 3547 AR="${ncn_tool_prefix}ar" 3548 fi 3549else 3550 AR="$ac_cv_prog_AR" 3551fi 3552 3553 if test -n "$ncn_tool_prefix"; then 3554 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args. 3555set dummy ${ncn_tool_prefix}as; ac_word=$2 3556echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3557echo "configure:3558: checking for $ac_word" >&5 3558if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then 3559 echo $ac_n "(cached) $ac_c" 1>&6 3560else 3561 if test -n "$AS"; then 3562 ac_cv_prog_AS="$AS" # Let the user override the test. 3563else 3564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3565 ac_dummy="$PATH" 3566 for ac_dir in $ac_dummy; do 3567 test -z "$ac_dir" && ac_dir=. 3568 if test -f $ac_dir/$ac_word; then 3569 ac_cv_prog_AS="${ncn_tool_prefix}as" 3570 break 3571 fi 3572 done 3573 IFS="$ac_save_ifs" 3574fi 3575fi 3576AS="$ac_cv_prog_AS" 3577if test -n "$AS"; then 3578 echo "$ac_t""$AS" 1>&6 3579else 3580 echo "$ac_t""no" 1>&6 3581fi 3582 3583fi 3584if test -z "$ac_cv_prog_AS" ; then 3585 if test $build = $host ; then 3586 ncn_cv_AS=$AS 3587 # Extract the first word of "as", so it can be a program name with args. 3588set dummy as; ac_word=$2 3589echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3590echo "configure:3591: checking for $ac_word" >&5 3591if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then 3592 echo $ac_n "(cached) $ac_c" 1>&6 3593else 3594 if test -n "$ncn_cv_AS"; then 3595 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test. 3596else 3597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3598 ac_dummy="$PATH" 3599 for ac_dir in $ac_dummy; do 3600 test -z "$ac_dir" && ac_dir=. 3601 if test -f $ac_dir/$ac_word; then 3602 ac_cv_prog_ncn_cv_AS="as" 3603 break 3604 fi 3605 done 3606 IFS="$ac_save_ifs" 3607 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as" 3608fi 3609fi 3610ncn_cv_AS="$ac_cv_prog_ncn_cv_AS" 3611if test -n "$ncn_cv_AS"; then 3612 echo "$ac_t""$ncn_cv_AS" 1>&6 3613else 3614 echo "$ac_t""no" 1>&6 3615fi 3616 3617 AS=$ncn_cv_AS 3618 else 3619 AS="${ncn_tool_prefix}as" 3620 fi 3621else 3622 AS="$ac_cv_prog_AS" 3623fi 3624 3625 if test -n "$ncn_tool_prefix"; then 3626 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args. 3627set dummy ${ncn_tool_prefix}dlltool; ac_word=$2 3628echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3629echo "configure:3630: checking for $ac_word" >&5 3630if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then 3631 echo $ac_n "(cached) $ac_c" 1>&6 3632else 3633 if test -n "$DLLTOOL"; then 3634 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3635else 3636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3637 ac_dummy="$PATH" 3638 for ac_dir in $ac_dummy; do 3639 test -z "$ac_dir" && ac_dir=. 3640 if test -f $ac_dir/$ac_word; then 3641 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool" 3642 break 3643 fi 3644 done 3645 IFS="$ac_save_ifs" 3646fi 3647fi 3648DLLTOOL="$ac_cv_prog_DLLTOOL" 3649if test -n "$DLLTOOL"; then 3650 echo "$ac_t""$DLLTOOL" 1>&6 3651else 3652 echo "$ac_t""no" 1>&6 3653fi 3654 3655fi 3656if test -z "$ac_cv_prog_DLLTOOL" ; then 3657 if test $build = $host ; then 3658 ncn_cv_DLLTOOL=$DLLTOOL 3659 # Extract the first word of "dlltool", so it can be a program name with args. 3660set dummy dlltool; ac_word=$2 3661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3662echo "configure:3663: checking for $ac_word" >&5 3663if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then 3664 echo $ac_n "(cached) $ac_c" 1>&6 3665else 3666 if test -n "$ncn_cv_DLLTOOL"; then 3667 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test. 3668else 3669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3670 ac_dummy="$PATH" 3671 for ac_dir in $ac_dummy; do 3672 test -z "$ac_dir" && ac_dir=. 3673 if test -f $ac_dir/$ac_word; then 3674 ac_cv_prog_ncn_cv_DLLTOOL="dlltool" 3675 break 3676 fi 3677 done 3678 IFS="$ac_save_ifs" 3679 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool" 3680fi 3681fi 3682ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL" 3683if test -n "$ncn_cv_DLLTOOL"; then 3684 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6 3685else 3686 echo "$ac_t""no" 1>&6 3687fi 3688 3689 DLLTOOL=$ncn_cv_DLLTOOL 3690 else 3691 DLLTOOL="${ncn_tool_prefix}dlltool" 3692 fi 3693else 3694 DLLTOOL="$ac_cv_prog_DLLTOOL" 3695fi 3696 3697 if test -n "$ncn_tool_prefix"; then 3698 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args. 3699set dummy ${ncn_tool_prefix}ld; ac_word=$2 3700echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3701echo "configure:3702: checking for $ac_word" >&5 3702if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then 3703 echo $ac_n "(cached) $ac_c" 1>&6 3704else 3705 if test -n "$LD"; then 3706 ac_cv_prog_LD="$LD" # Let the user override the test. 3707else 3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3709 ac_dummy="$PATH" 3710 for ac_dir in $ac_dummy; do 3711 test -z "$ac_dir" && ac_dir=. 3712 if test -f $ac_dir/$ac_word; then 3713 ac_cv_prog_LD="${ncn_tool_prefix}ld" 3714 break 3715 fi 3716 done 3717 IFS="$ac_save_ifs" 3718fi 3719fi 3720LD="$ac_cv_prog_LD" 3721if test -n "$LD"; then 3722 echo "$ac_t""$LD" 1>&6 3723else 3724 echo "$ac_t""no" 1>&6 3725fi 3726 3727fi 3728if test -z "$ac_cv_prog_LD" ; then 3729 if test $build = $host ; then 3730 ncn_cv_LD=$LD 3731 # Extract the first word of "ld", so it can be a program name with args. 3732set dummy ld; ac_word=$2 3733echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3734echo "configure:3735: checking for $ac_word" >&5 3735if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then 3736 echo $ac_n "(cached) $ac_c" 1>&6 3737else 3738 if test -n "$ncn_cv_LD"; then 3739 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test. 3740else 3741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3742 ac_dummy="$PATH" 3743 for ac_dir in $ac_dummy; do 3744 test -z "$ac_dir" && ac_dir=. 3745 if test -f $ac_dir/$ac_word; then 3746 ac_cv_prog_ncn_cv_LD="ld" 3747 break 3748 fi 3749 done 3750 IFS="$ac_save_ifs" 3751 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld" 3752fi 3753fi 3754ncn_cv_LD="$ac_cv_prog_ncn_cv_LD" 3755if test -n "$ncn_cv_LD"; then 3756 echo "$ac_t""$ncn_cv_LD" 1>&6 3757else 3758 echo "$ac_t""no" 1>&6 3759fi 3760 3761 LD=$ncn_cv_LD 3762 else 3763 LD="${ncn_tool_prefix}ld" 3764 fi 3765else 3766 LD="$ac_cv_prog_LD" 3767fi 3768 3769 if test -n "$ncn_tool_prefix"; then 3770 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args. 3771set dummy ${ncn_tool_prefix}nm; ac_word=$2 3772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3773echo "configure:3774: checking for $ac_word" >&5 3774if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then 3775 echo $ac_n "(cached) $ac_c" 1>&6 3776else 3777 if test -n "$NM"; then 3778 ac_cv_prog_NM="$NM" # Let the user override the test. 3779else 3780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3781 ac_dummy="$PATH" 3782 for ac_dir in $ac_dummy; do 3783 test -z "$ac_dir" && ac_dir=. 3784 if test -f $ac_dir/$ac_word; then 3785 ac_cv_prog_NM="${ncn_tool_prefix}nm" 3786 break 3787 fi 3788 done 3789 IFS="$ac_save_ifs" 3790fi 3791fi 3792NM="$ac_cv_prog_NM" 3793if test -n "$NM"; then 3794 echo "$ac_t""$NM" 1>&6 3795else 3796 echo "$ac_t""no" 1>&6 3797fi 3798 3799fi 3800if test -z "$ac_cv_prog_NM" ; then 3801 if test $build = $host ; then 3802 ncn_cv_NM=$NM 3803 # Extract the first word of "nm", so it can be a program name with args. 3804set dummy nm; ac_word=$2 3805echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3806echo "configure:3807: checking for $ac_word" >&5 3807if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then 3808 echo $ac_n "(cached) $ac_c" 1>&6 3809else 3810 if test -n "$ncn_cv_NM"; then 3811 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test. 3812else 3813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3814 ac_dummy="$PATH" 3815 for ac_dir in $ac_dummy; do 3816 test -z "$ac_dir" && ac_dir=. 3817 if test -f $ac_dir/$ac_word; then 3818 ac_cv_prog_ncn_cv_NM="nm" 3819 break 3820 fi 3821 done 3822 IFS="$ac_save_ifs" 3823 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm" 3824fi 3825fi 3826ncn_cv_NM="$ac_cv_prog_ncn_cv_NM" 3827if test -n "$ncn_cv_NM"; then 3828 echo "$ac_t""$ncn_cv_NM" 1>&6 3829else 3830 echo "$ac_t""no" 1>&6 3831fi 3832 3833 NM=$ncn_cv_NM 3834 else 3835 NM="${ncn_tool_prefix}nm" 3836 fi 3837else 3838 NM="$ac_cv_prog_NM" 3839fi 3840 3841 if test -n "$ncn_tool_prefix"; then 3842 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args. 3843set dummy ${ncn_tool_prefix}ranlib; ac_word=$2 3844echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3845echo "configure:3846: checking for $ac_word" >&5 3846if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 3847 echo $ac_n "(cached) $ac_c" 1>&6 3848else 3849 if test -n "$RANLIB"; then 3850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3851else 3852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3853 ac_dummy="$PATH" 3854 for ac_dir in $ac_dummy; do 3855 test -z "$ac_dir" && ac_dir=. 3856 if test -f $ac_dir/$ac_word; then 3857 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib" 3858 break 3859 fi 3860 done 3861 IFS="$ac_save_ifs" 3862fi 3863fi 3864RANLIB="$ac_cv_prog_RANLIB" 3865if test -n "$RANLIB"; then 3866 echo "$ac_t""$RANLIB" 1>&6 3867else 3868 echo "$ac_t""no" 1>&6 3869fi 3870 3871fi 3872if test -z "$ac_cv_prog_RANLIB" ; then 3873 if test $build = $host ; then 3874 ncn_cv_RANLIB=$RANLIB 3875 # Extract the first word of "ranlib", so it can be a program name with args. 3876set dummy ranlib; ac_word=$2 3877echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3878echo "configure:3879: checking for $ac_word" >&5 3879if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then 3880 echo $ac_n "(cached) $ac_c" 1>&6 3881else 3882 if test -n "$ncn_cv_RANLIB"; then 3883 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test. 3884else 3885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3886 ac_dummy="$PATH" 3887 for ac_dir in $ac_dummy; do 3888 test -z "$ac_dir" && ac_dir=. 3889 if test -f $ac_dir/$ac_word; then 3890 ac_cv_prog_ncn_cv_RANLIB="ranlib" 3891 break 3892 fi 3893 done 3894 IFS="$ac_save_ifs" 3895 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":" 3896fi 3897fi 3898ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB" 3899if test -n "$ncn_cv_RANLIB"; then 3900 echo "$ac_t""$ncn_cv_RANLIB" 1>&6 3901else 3902 echo "$ac_t""no" 1>&6 3903fi 3904 3905 RANLIB=$ncn_cv_RANLIB 3906 else 3907 RANLIB=":" 3908 fi 3909else 3910 RANLIB="$ac_cv_prog_RANLIB" 3911fi 3912 3913 if test -n "$ncn_tool_prefix"; then 3914 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args. 3915set dummy ${ncn_tool_prefix}windres; ac_word=$2 3916echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3917echo "configure:3918: checking for $ac_word" >&5 3918if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then 3919 echo $ac_n "(cached) $ac_c" 1>&6 3920else 3921 if test -n "$WINDRES"; then 3922 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 3923else 3924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3925 ac_dummy="$PATH" 3926 for ac_dir in $ac_dummy; do 3927 test -z "$ac_dir" && ac_dir=. 3928 if test -f $ac_dir/$ac_word; then 3929 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres" 3930 break 3931 fi 3932 done 3933 IFS="$ac_save_ifs" 3934fi 3935fi 3936WINDRES="$ac_cv_prog_WINDRES" 3937if test -n "$WINDRES"; then 3938 echo "$ac_t""$WINDRES" 1>&6 3939else 3940 echo "$ac_t""no" 1>&6 3941fi 3942 3943fi 3944if test -z "$ac_cv_prog_WINDRES" ; then 3945 if test $build = $host ; then 3946 ncn_cv_WINDRES=$WINDRES 3947 # Extract the first word of "windres", so it can be a program name with args. 3948set dummy windres; ac_word=$2 3949echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3950echo "configure:3951: checking for $ac_word" >&5 3951if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then 3952 echo $ac_n "(cached) $ac_c" 1>&6 3953else 3954 if test -n "$ncn_cv_WINDRES"; then 3955 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test. 3956else 3957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3958 ac_dummy="$PATH" 3959 for ac_dir in $ac_dummy; do 3960 test -z "$ac_dir" && ac_dir=. 3961 if test -f $ac_dir/$ac_word; then 3962 ac_cv_prog_ncn_cv_WINDRES="windres" 3963 break 3964 fi 3965 done 3966 IFS="$ac_save_ifs" 3967 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres" 3968fi 3969fi 3970ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES" 3971if test -n "$ncn_cv_WINDRES"; then 3972 echo "$ac_t""$ncn_cv_WINDRES" 1>&6 3973else 3974 echo "$ac_t""no" 1>&6 3975fi 3976 3977 WINDRES=$ncn_cv_WINDRES 3978 else 3979 WINDRES="${ncn_tool_prefix}windres" 3980 fi 3981else 3982 WINDRES="$ac_cv_prog_WINDRES" 3983fi 3984 3985 if test -n "$ncn_tool_prefix"; then 3986 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args. 3987set dummy ${ncn_tool_prefix}objcopy; ac_word=$2 3988echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3989echo "configure:3990: checking for $ac_word" >&5 3990if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then 3991 echo $ac_n "(cached) $ac_c" 1>&6 3992else 3993 if test -n "$OBJCOPY"; then 3994 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 3995else 3996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3997 ac_dummy="$PATH" 3998 for ac_dir in $ac_dummy; do 3999 test -z "$ac_dir" && ac_dir=. 4000 if test -f $ac_dir/$ac_word; then 4001 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy" 4002 break 4003 fi 4004 done 4005 IFS="$ac_save_ifs" 4006fi 4007fi 4008OBJCOPY="$ac_cv_prog_OBJCOPY" 4009if test -n "$OBJCOPY"; then 4010 echo "$ac_t""$OBJCOPY" 1>&6 4011else 4012 echo "$ac_t""no" 1>&6 4013fi 4014 4015fi 4016if test -z "$ac_cv_prog_OBJCOPY" ; then 4017 if test $build = $host ; then 4018 ncn_cv_OBJCOPY=$OBJCOPY 4019 # Extract the first word of "objcopy", so it can be a program name with args. 4020set dummy objcopy; ac_word=$2 4021echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4022echo "configure:4023: checking for $ac_word" >&5 4023if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then 4024 echo $ac_n "(cached) $ac_c" 1>&6 4025else 4026 if test -n "$ncn_cv_OBJCOPY"; then 4027 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test. 4028else 4029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4030 ac_dummy="$PATH" 4031 for ac_dir in $ac_dummy; do 4032 test -z "$ac_dir" && ac_dir=. 4033 if test -f $ac_dir/$ac_word; then 4034 ac_cv_prog_ncn_cv_OBJCOPY="objcopy" 4035 break 4036 fi 4037 done 4038 IFS="$ac_save_ifs" 4039 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy" 4040fi 4041fi 4042ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY" 4043if test -n "$ncn_cv_OBJCOPY"; then 4044 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6 4045else 4046 echo "$ac_t""no" 1>&6 4047fi 4048 4049 OBJCOPY=$ncn_cv_OBJCOPY 4050 else 4051 OBJCOPY="${ncn_tool_prefix}objcopy" 4052 fi 4053else 4054 OBJCOPY="$ac_cv_prog_OBJCOPY" 4055fi 4056 4057 if test -n "$ncn_tool_prefix"; then 4058 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args. 4059set dummy ${ncn_tool_prefix}objdump; ac_word=$2 4060echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4061echo "configure:4062: checking for $ac_word" >&5 4062if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then 4063 echo $ac_n "(cached) $ac_c" 1>&6 4064else 4065 if test -n "$OBJDUMP"; then 4066 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4067else 4068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4069 ac_dummy="$PATH" 4070 for ac_dir in $ac_dummy; do 4071 test -z "$ac_dir" && ac_dir=. 4072 if test -f $ac_dir/$ac_word; then 4073 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump" 4074 break 4075 fi 4076 done 4077 IFS="$ac_save_ifs" 4078fi 4079fi 4080OBJDUMP="$ac_cv_prog_OBJDUMP" 4081if test -n "$OBJDUMP"; then 4082 echo "$ac_t""$OBJDUMP" 1>&6 4083else 4084 echo "$ac_t""no" 1>&6 4085fi 4086 4087fi 4088if test -z "$ac_cv_prog_OBJDUMP" ; then 4089 if test $build = $host ; then 4090 ncn_cv_OBJDUMP=$OBJDUMP 4091 # Extract the first word of "objdump", so it can be a program name with args. 4092set dummy objdump; ac_word=$2 4093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4094echo "configure:4095: checking for $ac_word" >&5 4095if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then 4096 echo $ac_n "(cached) $ac_c" 1>&6 4097else 4098 if test -n "$ncn_cv_OBJDUMP"; then 4099 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test. 4100else 4101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4102 ac_dummy="$PATH" 4103 for ac_dir in $ac_dummy; do 4104 test -z "$ac_dir" && ac_dir=. 4105 if test -f $ac_dir/$ac_word; then 4106 ac_cv_prog_ncn_cv_OBJDUMP="objdump" 4107 break 4108 fi 4109 done 4110 IFS="$ac_save_ifs" 4111 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump" 4112fi 4113fi 4114ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP" 4115if test -n "$ncn_cv_OBJDUMP"; then 4116 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6 4117else 4118 echo "$ac_t""no" 1>&6 4119fi 4120 4121 OBJDUMP=$ncn_cv_OBJDUMP 4122 else 4123 OBJDUMP="${ncn_tool_prefix}objdump" 4124 fi 4125else 4126 OBJDUMP="$ac_cv_prog_OBJDUMP" 4127fi 4128 4129 4130 4131 4132 4133 4134 4135# Target tools. 4136 if test -n "$ncn_target_tool_prefix"; then 4137 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args. 4138set dummy ${ncn_target_tool_prefix}ar; ac_word=$2 4139echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4140echo "configure:4141: checking for $ac_word" >&5 4141if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then 4142 echo $ac_n "(cached) $ac_c" 1>&6 4143else 4144 if test -n "$CONFIGURED_AR_FOR_TARGET"; then 4145 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test. 4146else 4147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4148 ac_dummy="$PATH" 4149 for ac_dir in $ac_dummy; do 4150 test -z "$ac_dir" && ac_dir=. 4151 if test -f $ac_dir/$ac_word; then 4152 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar" 4153 break 4154 fi 4155 done 4156 IFS="$ac_save_ifs" 4157fi 4158fi 4159CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" 4160if test -n "$CONFIGURED_AR_FOR_TARGET"; then 4161 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6 4162else 4163 echo "$ac_t""no" 1>&6 4164fi 4165 4166fi 4167if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then 4168 if test $build = $target ; then 4169 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET 4170 # Extract the first word of "ar", so it can be a program name with args. 4171set dummy ar; ac_word=$2 4172echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4173echo "configure:4174: checking for $ac_word" >&5 4174if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then 4175 echo $ac_n "(cached) $ac_c" 1>&6 4176else 4177 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then 4178 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test. 4179else 4180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4181 ac_dummy="$PATH" 4182 for ac_dir in $ac_dummy; do 4183 test -z "$ac_dir" && ac_dir=. 4184 if test -f $ac_dir/$ac_word; then 4185 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar" 4186 break 4187 fi 4188 done 4189 IFS="$ac_save_ifs" 4190 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar" 4191fi 4192fi 4193ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" 4194if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then 4195 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6 4196else 4197 echo "$ac_t""no" 1>&6 4198fi 4199 4200 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET 4201 else 4202 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar" 4203 fi 4204else 4205 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" 4206fi 4207 4208 if test -n "$ncn_target_tool_prefix"; then 4209 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args. 4210set dummy ${ncn_target_tool_prefix}as; ac_word=$2 4211echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4212echo "configure:4213: checking for $ac_word" >&5 4213if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then 4214 echo $ac_n "(cached) $ac_c" 1>&6 4215else 4216 if test -n "$CONFIGURED_AS_FOR_TARGET"; then 4217 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test. 4218else 4219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4220 ac_dummy="$PATH" 4221 for ac_dir in $ac_dummy; do 4222 test -z "$ac_dir" && ac_dir=. 4223 if test -f $ac_dir/$ac_word; then 4224 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as" 4225 break 4226 fi 4227 done 4228 IFS="$ac_save_ifs" 4229fi 4230fi 4231CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" 4232if test -n "$CONFIGURED_AS_FOR_TARGET"; then 4233 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6 4234else 4235 echo "$ac_t""no" 1>&6 4236fi 4237 4238fi 4239if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then 4240 if test $build = $target ; then 4241 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET 4242 # Extract the first word of "as", so it can be a program name with args. 4243set dummy as; ac_word=$2 4244echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4245echo "configure:4246: checking for $ac_word" >&5 4246if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then 4247 echo $ac_n "(cached) $ac_c" 1>&6 4248else 4249 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then 4250 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test. 4251else 4252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4253 ac_dummy="$PATH" 4254 for ac_dir in $ac_dummy; do 4255 test -z "$ac_dir" && ac_dir=. 4256 if test -f $ac_dir/$ac_word; then 4257 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as" 4258 break 4259 fi 4260 done 4261 IFS="$ac_save_ifs" 4262 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as" 4263fi 4264fi 4265ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" 4266if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then 4267 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6 4268else 4269 echo "$ac_t""no" 1>&6 4270fi 4271 4272 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET 4273 else 4274 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as" 4275 fi 4276else 4277 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" 4278fi 4279 4280 if test -n "$ncn_target_tool_prefix"; then 4281 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args. 4282set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2 4283echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4284echo "configure:4285: checking for $ac_word" >&5 4285if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then 4286 echo $ac_n "(cached) $ac_c" 1>&6 4287else 4288 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then 4289 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test. 4290else 4291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4292 ac_dummy="$PATH" 4293 for ac_dir in $ac_dummy; do 4294 test -z "$ac_dir" && ac_dir=. 4295 if test -f $ac_dir/$ac_word; then 4296 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool" 4297 break 4298 fi 4299 done 4300 IFS="$ac_save_ifs" 4301fi 4302fi 4303CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" 4304if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then 4305 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6 4306else 4307 echo "$ac_t""no" 1>&6 4308fi 4309 4310fi 4311if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then 4312 if test $build = $target ; then 4313 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET 4314 # Extract the first word of "dlltool", so it can be a program name with args. 4315set dummy dlltool; ac_word=$2 4316echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4317echo "configure:4318: checking for $ac_word" >&5 4318if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then 4319 echo $ac_n "(cached) $ac_c" 1>&6 4320else 4321 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then 4322 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test. 4323else 4324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4325 ac_dummy="$PATH" 4326 for ac_dir in $ac_dummy; do 4327 test -z "$ac_dir" && ac_dir=. 4328 if test -f $ac_dir/$ac_word; then 4329 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool" 4330 break 4331 fi 4332 done 4333 IFS="$ac_save_ifs" 4334 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool" 4335fi 4336fi 4337ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 4338if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then 4339 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6 4340else 4341 echo "$ac_t""no" 1>&6 4342fi 4343 4344 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET 4345 else 4346 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool" 4347 fi 4348else 4349 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" 4350fi 4351 4352 if test -n "$ncn_target_tool_prefix"; then 4353 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args. 4354set dummy ${ncn_target_tool_prefix}ld; ac_word=$2 4355echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4356echo "configure:4357: checking for $ac_word" >&5 4357if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then 4358 echo $ac_n "(cached) $ac_c" 1>&6 4359else 4360 if test -n "$CONFIGURED_LD_FOR_TARGET"; then 4361 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test. 4362else 4363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4364 ac_dummy="$PATH" 4365 for ac_dir in $ac_dummy; do 4366 test -z "$ac_dir" && ac_dir=. 4367 if test -f $ac_dir/$ac_word; then 4368 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld" 4369 break 4370 fi 4371 done 4372 IFS="$ac_save_ifs" 4373fi 4374fi 4375CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" 4376if test -n "$CONFIGURED_LD_FOR_TARGET"; then 4377 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6 4378else 4379 echo "$ac_t""no" 1>&6 4380fi 4381 4382fi 4383if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then 4384 if test $build = $target ; then 4385 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET 4386 # Extract the first word of "ld", so it can be a program name with args. 4387set dummy ld; ac_word=$2 4388echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4389echo "configure:4390: checking for $ac_word" >&5 4390if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then 4391 echo $ac_n "(cached) $ac_c" 1>&6 4392else 4393 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then 4394 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test. 4395else 4396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4397 ac_dummy="$PATH" 4398 for ac_dir in $ac_dummy; do 4399 test -z "$ac_dir" && ac_dir=. 4400 if test -f $ac_dir/$ac_word; then 4401 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld" 4402 break 4403 fi 4404 done 4405 IFS="$ac_save_ifs" 4406 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld" 4407fi 4408fi 4409ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" 4410if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then 4411 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6 4412else 4413 echo "$ac_t""no" 1>&6 4414fi 4415 4416 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET 4417 else 4418 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld" 4419 fi 4420else 4421 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" 4422fi 4423 4424 if test -n "$ncn_target_tool_prefix"; then 4425 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args. 4426set dummy ${ncn_target_tool_prefix}nm; ac_word=$2 4427echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4428echo "configure:4429: checking for $ac_word" >&5 4429if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then 4430 echo $ac_n "(cached) $ac_c" 1>&6 4431else 4432 if test -n "$CONFIGURED_NM_FOR_TARGET"; then 4433 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test. 4434else 4435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4436 ac_dummy="$PATH" 4437 for ac_dir in $ac_dummy; do 4438 test -z "$ac_dir" && ac_dir=. 4439 if test -f $ac_dir/$ac_word; then 4440 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm" 4441 break 4442 fi 4443 done 4444 IFS="$ac_save_ifs" 4445fi 4446fi 4447CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" 4448if test -n "$CONFIGURED_NM_FOR_TARGET"; then 4449 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6 4450else 4451 echo "$ac_t""no" 1>&6 4452fi 4453 4454fi 4455if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then 4456 if test $build = $target ; then 4457 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET 4458 # Extract the first word of "nm", so it can be a program name with args. 4459set dummy nm; ac_word=$2 4460echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4461echo "configure:4462: checking for $ac_word" >&5 4462if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then 4463 echo $ac_n "(cached) $ac_c" 1>&6 4464else 4465 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then 4466 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test. 4467else 4468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4469 ac_dummy="$PATH" 4470 for ac_dir in $ac_dummy; do 4471 test -z "$ac_dir" && ac_dir=. 4472 if test -f $ac_dir/$ac_word; then 4473 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm" 4474 break 4475 fi 4476 done 4477 IFS="$ac_save_ifs" 4478 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm" 4479fi 4480fi 4481ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" 4482if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then 4483 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6 4484else 4485 echo "$ac_t""no" 1>&6 4486fi 4487 4488 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET 4489 else 4490 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm" 4491 fi 4492else 4493 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" 4494fi 4495 4496 if test -n "$ncn_target_tool_prefix"; then 4497 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args. 4498set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2 4499echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4500echo "configure:4501: checking for $ac_word" >&5 4501if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then 4502 echo $ac_n "(cached) $ac_c" 1>&6 4503else 4504 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then 4505 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test. 4506else 4507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4508 ac_dummy="$PATH" 4509 for ac_dir in $ac_dummy; do 4510 test -z "$ac_dir" && ac_dir=. 4511 if test -f $ac_dir/$ac_word; then 4512 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib" 4513 break 4514 fi 4515 done 4516 IFS="$ac_save_ifs" 4517fi 4518fi 4519CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" 4520if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then 4521 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6 4522else 4523 echo "$ac_t""no" 1>&6 4524fi 4525 4526fi 4527if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then 4528 if test $build = $target ; then 4529 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET 4530 # Extract the first word of "ranlib", so it can be a program name with args. 4531set dummy ranlib; ac_word=$2 4532echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4533echo "configure:4534: checking for $ac_word" >&5 4534if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then 4535 echo $ac_n "(cached) $ac_c" 1>&6 4536else 4537 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then 4538 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test. 4539else 4540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4541 ac_dummy="$PATH" 4542 for ac_dir in $ac_dummy; do 4543 test -z "$ac_dir" && ac_dir=. 4544 if test -f $ac_dir/$ac_word; then 4545 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib" 4546 break 4547 fi 4548 done 4549 IFS="$ac_save_ifs" 4550 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":" 4551fi 4552fi 4553ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 4554if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then 4555 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6 4556else 4557 echo "$ac_t""no" 1>&6 4558fi 4559 4560 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET 4561 else 4562 CONFIGURED_RANLIB_FOR_TARGET=":" 4563 fi 4564else 4565 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" 4566fi 4567 4568 if test -n "$ncn_target_tool_prefix"; then 4569 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args. 4570set dummy ${ncn_target_tool_prefix}windres; ac_word=$2 4571echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4572echo "configure:4573: checking for $ac_word" >&5 4573if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then 4574 echo $ac_n "(cached) $ac_c" 1>&6 4575else 4576 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then 4577 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test. 4578else 4579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4580 ac_dummy="$PATH" 4581 for ac_dir in $ac_dummy; do 4582 test -z "$ac_dir" && ac_dir=. 4583 if test -f $ac_dir/$ac_word; then 4584 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres" 4585 break 4586 fi 4587 done 4588 IFS="$ac_save_ifs" 4589fi 4590fi 4591CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" 4592if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then 4593 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6 4594else 4595 echo "$ac_t""no" 1>&6 4596fi 4597 4598fi 4599if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then 4600 if test $build = $target ; then 4601 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET 4602 # Extract the first word of "windres", so it can be a program name with args. 4603set dummy windres; ac_word=$2 4604echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4605echo "configure:4606: checking for $ac_word" >&5 4606if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then 4607 echo $ac_n "(cached) $ac_c" 1>&6 4608else 4609 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then 4610 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test. 4611else 4612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4613 ac_dummy="$PATH" 4614 for ac_dir in $ac_dummy; do 4615 test -z "$ac_dir" && ac_dir=. 4616 if test -f $ac_dir/$ac_word; then 4617 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres" 4618 break 4619 fi 4620 done 4621 IFS="$ac_save_ifs" 4622 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres" 4623fi 4624fi 4625ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 4626if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then 4627 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6 4628else 4629 echo "$ac_t""no" 1>&6 4630fi 4631 4632 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET 4633 else 4634 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres" 4635 fi 4636else 4637 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" 4638fi 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651# Fix up target tools. 4652if test "x${build}" = "x${host}" ; then 4653 # In this case, the newly built tools can and should be used, 4654 # so we override the results of the autoconf tests. 4655 # This should really only happen when the tools are actually being built, 4656 # but that's a further refinement. The new build scheme, where 4657 # tools are built into a structure paralleling where they're installed, 4658 # should also eliminate all of this cleanly. 4659 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)" 4660 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)" 4661 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)" 4662 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)" 4663 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)" 4664 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)" 4665 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)" 4666else 4667 # Just use the ones we found. 4668 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)" 4669 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)" 4670 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)" 4671 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)" 4672 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)" 4673 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)" 4674 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)" 4675fi 4676 4677 4678 4679 4680 4681 4682 4683 4684# Certain tools may need extra flags. 4685AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} 4686RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} 4687NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} 4688 4689echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 4690echo "configure:4691: checking whether to enable maintainer-specific portions of Makefiles" >&5 4691# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 4692if test "${enable_maintainer_mode+set}" = set; then 4693 enableval="$enable_maintainer_mode" 4694 USE_MAINTAINER_MODE=$enableval 4695else 4696 USE_MAINTAINER_MODE=no 4697fi 4698 4699echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 4700 4701 4702if test "$USE_MAINTAINER_MODE" = yes; then 4703 MAINTAINER_MODE_TRUE= 4704 MAINTAINER_MODE_FALSE='#' 4705else 4706 MAINTAINER_MODE_TRUE='#' 4707 MAINTAINER_MODE_FALSE= 4708fi 4709MAINT=$MAINTAINER_MODE_TRUE 4710 4711# --------------------- 4712# GCC bootstrap support 4713# --------------------- 4714 4715# Stage specific cflags for build. 4716stage1_cflags="-g" 4717case $build in 4718 vax-*-*) 4719 case ${GCC} in 4720 yes) stage1_cflags="-g -Wa,-J" ;; 4721 *) stage1_cflags="-g -J" ;; 4722 esac ;; 4723 powerpc-*-darwin*) 4724 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC 4725 # sources; use -no-cpp-precomp to get to GNU cpp. 4726 # Apple's GCC has bugs in designated initializer handling, so disable 4727 # that too. 4728 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0" 4729 ;; 4730esac 4731 4732 4733# It makes debugging easier if we create as symlinks the stage directories 4734# gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not 4735# possible, however, we can resort to mv. 4736echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6 4737echo "configure:4738: checking if symbolic links between directories work" >&5 4738if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then 4739 echo $ac_n "(cached) $ac_c" 1>&6 4740else 4741 if test "${LN_S}" = "ln -s" \ 4742 && mkdir confdir.s1 \ 4743 && ln -s confdir.s1 confdir.s2 \ 4744 && echo timestamp1 > confdir.s1/conftest.1 \ 4745 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \ 4746 && echo timestamp2 > confdir.s2/conftest.2 \ 4747 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \ 4748 && rm -f confdir.s2; then 4749 gcc_cv_prog_ln_s_dir=yes 4750else 4751 gcc_cv_prog_ln_s_dir=yes 4752fi 4753rm -rf confdir.s1 confdir.s2 4754fi 4755 4756echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6 4757 4758case ${gcc_cv_prog_ln_s_dir} in 4759 yes) 4760 CREATE_LINK_TO_DIR='ln -s $$1 $$2' 4761 UNDO_LINK_TO_DIR='rm -f $$1' ;; 4762 *) 4763 CREATE_LINK_TO_DIR='mv $$1 $$2' 4764 UNDO_LINK_TO_DIR='mv $$1 $$2' ;; 4765esac 4766 4767 4768 4769# Enable -Werror in bootstrap stage2 and later. 4770# Change the default to "no" on release branches. 4771# Check whether --enable-werror or --disable-werror was given. 4772if test "${enable_werror+set}" = set; then 4773 enableval="$enable_werror" 4774 : 4775else 4776 enable_werror=yes 4777fi 4778 4779case ${enable_werror} in 4780 yes) stage2_werror_flag="--enable-werror-always" ;; 4781 *) stage2_werror_flag="" ;; 4782esac 4783 4784 4785trap '' 1 2 15 4786cat > confcache <<\EOF 4787# This file is a shell script that caches the results of configure 4788# tests run on this system so they can be shared between configure 4789# scripts and configure runs. It is not useful on other systems. 4790# If it contains results you don't want to keep, you may remove or edit it. 4791# 4792# By default, configure uses ./config.cache as the cache file, 4793# creating it if it does not exist already. You can give configure 4794# the --cache-file=FILE option to use a different cache file; that is 4795# what configure does when it calls configure scripts in 4796# subdirectories, so they share the cache. 4797# Giving --cache-file=/dev/null disables caching, for debugging configure. 4798# config.status only pays attention to the cache file if you give it the 4799# --recheck option to rerun configure. 4800# 4801EOF 4802# The following way of writing the cache mishandles newlines in values, 4803# but we know of no workaround that is simple, portable, and efficient. 4804# So, don't put newlines in cache variables' values. 4805# Ultrix sh set writes to stderr and can't be redirected directly, 4806# and sets the high bit in the cache file unless we assign to the vars. 4807(set) 2>&1 | 4808 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4809 *ac_space=\ *) 4810 # `set' does not quote correctly, so add quotes (double-quote substitution 4811 # turns \\\\ into \\, and sed turns \\ into \). 4812 sed -n \ 4813 -e "s/'/'\\\\''/g" \ 4814 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4815 ;; 4816 *) 4817 # `set' quotes correctly as required by POSIX, so do not add quotes. 4818 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4819 ;; 4820 esac >> confcache 4821if cmp -s $cache_file confcache; then 4822 : 4823else 4824 if test -w $cache_file; then 4825 echo "updating cache $cache_file" 4826 cat confcache > $cache_file 4827 else 4828 echo "not updating unwritable cache $cache_file" 4829 fi 4830fi 4831rm -f confcache 4832 4833trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4834 4835test "x$prefix" = xNONE && prefix=$ac_default_prefix 4836# Let make expand exec_prefix. 4837test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4838 4839# Any assignment to VPATH causes Sun make to only execute 4840# the first set of double-colon rules, so remove it if not needed. 4841# If there is a colon in the path, we need to keep it. 4842if test "x$srcdir" = x.; then 4843 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4844fi 4845 4846trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4847 4848# Transform confdefs.h into DEFS. 4849# Protect against shell expansion while executing Makefile rules. 4850# Protect against Makefile macro expansion. 4851cat > conftest.defs <<\EOF 4852s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 4853s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 4854s%\[%\\&%g 4855s%\]%\\&%g 4856s%\$%$$%g 4857EOF 4858DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 4859rm -f conftest.defs 4860 4861 4862# Without the "./", some shells look in PATH for config.status. 4863: ${CONFIG_STATUS=./config.status} 4864 4865echo creating $CONFIG_STATUS 4866rm -f $CONFIG_STATUS 4867cat > $CONFIG_STATUS <<EOF 4868#! /bin/sh 4869# Generated automatically by configure. 4870# Run this file to recreate the current configuration. 4871# This directory was configured as follows, 4872# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4873# 4874# $0 $ac_configure_args 4875# 4876# Compiler output produced by configure, useful for debugging 4877# configure, is in ./config.log if it exists. 4878 4879ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4880for ac_option 4881do 4882 case "\$ac_option" in 4883 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4884 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4885 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4886 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4887 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4888 exit 0 ;; 4889 -help | --help | --hel | --he | --h) 4890 echo "\$ac_cs_usage"; exit 0 ;; 4891 *) echo "\$ac_cs_usage"; exit 1 ;; 4892 esac 4893done 4894 4895ac_given_srcdir=$srcdir 4896ac_given_INSTALL="$INSTALL" 4897 4898trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4899EOF 4900cat >> $CONFIG_STATUS <<EOF 4901 4902# Protect against being on the right side of a sed subst in config.status. 4903sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4904 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4905$ac_vpsub 4906$extrasub 4907s%@SHELL@%$SHELL%g 4908s%@CFLAGS@%$CFLAGS%g 4909s%@CPPFLAGS@%$CPPFLAGS%g 4910s%@CXXFLAGS@%$CXXFLAGS%g 4911s%@FFLAGS@%$FFLAGS%g 4912s%@DEFS@%$DEFS%g 4913s%@LDFLAGS@%$LDFLAGS%g 4914s%@LIBS@%$LIBS%g 4915s%@exec_prefix@%$exec_prefix%g 4916s%@prefix@%$prefix%g 4917s%@program_transform_name@%$program_transform_name%g 4918s%@bindir@%$bindir%g 4919s%@sbindir@%$sbindir%g 4920s%@libexecdir@%$libexecdir%g 4921s%@datadir@%$datadir%g 4922s%@sysconfdir@%$sysconfdir%g 4923s%@sharedstatedir@%$sharedstatedir%g 4924s%@localstatedir@%$localstatedir%g 4925s%@libdir@%$libdir%g 4926s%@includedir@%$includedir%g 4927s%@oldincludedir@%$oldincludedir%g 4928s%@infodir@%$infodir%g 4929s%@mandir@%$mandir%g 4930s%@host@%$host%g 4931s%@host_alias@%$host_alias%g 4932s%@host_cpu@%$host_cpu%g 4933s%@host_vendor@%$host_vendor%g 4934s%@host_os@%$host_os%g 4935s%@target@%$target%g 4936s%@target_alias@%$target_alias%g 4937s%@target_cpu@%$target_cpu%g 4938s%@target_vendor@%$target_vendor%g 4939s%@target_os@%$target_os%g 4940s%@build@%$build%g 4941s%@build_alias@%$build_alias%g 4942s%@build_cpu@%$build_cpu%g 4943s%@build_vendor@%$build_vendor%g 4944s%@build_os@%$build_os%g 4945s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4946s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4947s%@INSTALL_DATA@%$INSTALL_DATA%g 4948s%@LN@%$LN%g 4949s%@LN_S@%$LN_S%g 4950s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g 4951s%@build_subdir@%$build_subdir%g 4952s%@host_subdir@%$host_subdir%g 4953s%@target_subdir@%$target_subdir%g 4954s%@CC@%$CC%g 4955s%@GNATBIND@%$GNATBIND%g 4956s%@do_compare@%$do_compare%g 4957s%@gmplibs@%$gmplibs%g 4958s%@gmpinc@%$gmpinc%g 4959s%@stage1_languages@%$stage1_languages%g 4960s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g 4961s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g 4962s%@CONFIGURED_M4@%$CONFIGURED_M4%g 4963s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g 4964s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g 4965s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g 4966s%@default_target@%$default_target%g 4967/@serialization_dependencies@/r $serialization_dependencies 4968s%@serialization_dependencies@%%g 4969/@host_makefile_frag@/r $host_makefile_frag 4970s%@host_makefile_frag@%%g 4971/@target_makefile_frag@/r $target_makefile_frag 4972s%@target_makefile_frag@%%g 4973/@alphaieee_frag@/r $alphaieee_frag 4974s%@alphaieee_frag@%%g 4975/@ospace_frag@/r $ospace_frag 4976s%@ospace_frag@%%g 4977s%@SET_LIB_PATH@%$SET_LIB_PATH%g 4978s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g 4979s%@BUILD_DIR_PREFIX@%$BUILD_DIR_PREFIX%g 4980s%@BUILD_PREFIX@%$BUILD_PREFIX%g 4981s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g 4982s%@gcc_version_trigger@%$gcc_version_trigger%g 4983s%@gcc_version@%$gcc_version%g 4984s%@tooldir@%$tooldir%g 4985s%@build_tooldir@%$build_tooldir%g 4986s%@GDB_TK@%$GDB_TK%g 4987s%@gxx_include_dir@%$gxx_include_dir%g 4988s%@libstdcxx_incdir@%$libstdcxx_incdir%g 4989s%@build_configargs@%$build_configargs%g 4990s%@build_configdirs@%$build_configdirs%g 4991s%@host_configargs@%$host_configargs%g 4992s%@configdirs@%$configdirs%g 4993s%@target_configargs@%$target_configargs%g 4994s%@target_configdirs@%$target_configdirs%g 4995s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g 4996s%@config_shell@%$config_shell%g 4997s%@AR@%$AR%g 4998s%@ncn_cv_AR@%$ncn_cv_AR%g 4999s%@AS@%$AS%g 5000s%@ncn_cv_AS@%$ncn_cv_AS%g 5001s%@DLLTOOL@%$DLLTOOL%g 5002s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g 5003s%@LD@%$LD%g 5004s%@ncn_cv_LD@%$ncn_cv_LD%g 5005s%@NM@%$NM%g 5006s%@ncn_cv_NM@%$ncn_cv_NM%g 5007s%@RANLIB@%$RANLIB%g 5008s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g 5009s%@WINDRES@%$WINDRES%g 5010s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g 5011s%@OBJCOPY@%$OBJCOPY%g 5012s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g 5013s%@OBJDUMP@%$OBJDUMP%g 5014s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g 5015s%@CXX@%$CXX%g 5016s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g 5017s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g 5018s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g 5019s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g 5020s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g 5021s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g 5022s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g 5023s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g 5024s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g 5025s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g 5026s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g 5027s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g 5028s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g 5029s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g 5030s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g 5031s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g 5032s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g 5033s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g 5034s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g 5035s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g 5036s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g 5037s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g 5038s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g 5039s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g 5040s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g 5041s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g 5042s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g 5043s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g 5044s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g 5045s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g 5046s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g 5047s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 5048s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 5049s%@MAINT@%$MAINT%g 5050s%@stage1_cflags@%$stage1_cflags%g 5051s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g 5052s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g 5053s%@stage2_werror_flag@%$stage2_werror_flag%g 5054 5055CEOF 5056EOF 5057 5058cat >> $CONFIG_STATUS <<\EOF 5059 5060# Split the substitutions into bite-sized pieces for seds with 5061# small command number limits, like on Digital OSF/1 and HP-UX. 5062ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 5063ac_file=1 # Number of current file. 5064ac_beg=1 # First line for current file. 5065ac_end=$ac_max_sed_cmds # Line after last line for current file. 5066ac_more_lines=: 5067ac_sed_cmds="" 5068while $ac_more_lines; do 5069 if test $ac_beg -gt 1; then 5070 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 5071 else 5072 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 5073 fi 5074 if test ! -s conftest.s$ac_file; then 5075 ac_more_lines=false 5076 rm -f conftest.s$ac_file 5077 else 5078 if test -z "$ac_sed_cmds"; then 5079 ac_sed_cmds="sed -f conftest.s$ac_file" 5080 else 5081 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 5082 fi 5083 ac_file=`expr $ac_file + 1` 5084 ac_beg=$ac_end 5085 ac_end=`expr $ac_end + $ac_max_sed_cmds` 5086 fi 5087done 5088if test -z "$ac_sed_cmds"; then 5089 ac_sed_cmds=cat 5090fi 5091EOF 5092 5093cat >> $CONFIG_STATUS <<EOF 5094 5095CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 5096EOF 5097cat >> $CONFIG_STATUS <<\EOF 5098for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 5099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5100 case "$ac_file" in 5101 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5102 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5103 *) ac_file_in="${ac_file}.in" ;; 5104 esac 5105 5106 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 5107 5108 # Remove last slash and all that follows it. Not all systems have dirname. 5109 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5110 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5111 # The file is in a subdirectory. 5112 test ! -d "$ac_dir" && mkdir "$ac_dir" 5113 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5114 # A "../" for each directory in $ac_dir_suffix. 5115 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 5116 else 5117 ac_dir_suffix= ac_dots= 5118 fi 5119 5120 case "$ac_given_srcdir" in 5121 .) srcdir=. 5122 if test -z "$ac_dots"; then top_srcdir=. 5123 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 5124 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5125 *) # Relative path. 5126 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 5127 top_srcdir="$ac_dots$ac_given_srcdir" ;; 5128 esac 5129 5130 case "$ac_given_INSTALL" in 5131 [/$]*) INSTALL="$ac_given_INSTALL" ;; 5132 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 5133 esac 5134 5135 echo creating "$ac_file" 5136 rm -f "$ac_file" 5137 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 5138 case "$ac_file" in 5139 *Makefile*) ac_comsub="1i\\ 5140# $configure_input" ;; 5141 *) ac_comsub= ;; 5142 esac 5143 5144 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5145 sed -e "$ac_comsub 5146s%@configure_input@%$configure_input%g 5147s%@srcdir@%$srcdir%g 5148s%@top_srcdir@%$top_srcdir%g 5149s%@INSTALL@%$INSTALL%g 5150" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 5151fi; done 5152rm -f conftest.s* 5153 5154EOF 5155cat >> $CONFIG_STATUS <<EOF 5156 5157EOF 5158cat >> $CONFIG_STATUS <<\EOF 5159 5160exit 0 5161EOF 5162chmod +x $CONFIG_STATUS 5163rm -fr confdefs* $ac_clean_files 5164test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 5165 5166