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