configure revision 38889
1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.12.1 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-shared build shared libraries [default=no] 16 --enable-shared=PKGS only build shared libraries if the current package 17 appears as an element in the PKGS list" 18ac_help="$ac_help 19 --enable-static build static libraries [default=yes] 20 --enable-static=PKGS only build shared libraries if the current package 21 appears as an element in the PKGS list" 22ac_help="$ac_help 23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 24ac_help="$ac_help 25 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)" 26ac_help="$ac_help 27 --enable-targets alternative target configurations" 28ac_help="$ac_help 29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library" 30ac_help="$ac_help 31 --with-mmap try using mmap for BFD input files if available" 32ac_help="$ac_help 33 --enable-maintainer-mode enable make rules and dependencies not useful 34 (and sometimes confusing) to the casual installer" 35 36# Initialize some variables set by options. 37# The variables have the same names as the options, with 38# dashes changed to underlines. 39build=NONE 40cache_file=./config.cache 41exec_prefix=NONE 42host=NONE 43no_create= 44nonopt=NONE 45no_recursion= 46prefix=NONE 47program_prefix=NONE 48program_suffix=NONE 49program_transform_name=s,x,x, 50silent= 51site= 52srcdir= 53target=NONE 54verbose= 55x_includes=NONE 56x_libraries=NONE 57bindir='${exec_prefix}/bin' 58sbindir='${exec_prefix}/sbin' 59libexecdir='${exec_prefix}/libexec' 60datadir='${prefix}/share' 61sysconfdir='${prefix}/etc' 62sharedstatedir='${prefix}/com' 63localstatedir='${prefix}/var' 64libdir='${exec_prefix}/lib' 65includedir='${prefix}/include' 66oldincludedir='/usr/include' 67infodir='${prefix}/info' 68mandir='${prefix}/man' 69 70# Initialize some other variables. 71subdirs= 72MFLAGS= MAKEFLAGS= 73SHELL=${CONFIG_SHELL-/bin/sh} 74# Maximum number of lines to put in a shell here document. 75ac_max_here_lines=12 76 77ac_prev= 78for ac_option 79do 80 81 # If the previous option needs an argument, assign it. 82 if test -n "$ac_prev"; then 83 eval "$ac_prev=\$ac_option" 84 ac_prev= 85 continue 86 fi 87 88 case "$ac_option" in 89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 90 *) ac_optarg= ;; 91 esac 92 93 # Accept the important Cygnus configure options, so we can diagnose typos. 94 95 case "$ac_option" in 96 97 -bindir | --bindir | --bindi | --bind | --bin | --bi) 98 ac_prev=bindir ;; 99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 100 bindir="$ac_optarg" ;; 101 102 -build | --build | --buil | --bui | --bu) 103 ac_prev=build ;; 104 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 105 build="$ac_optarg" ;; 106 107 -cache-file | --cache-file | --cache-fil | --cache-fi \ 108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 109 ac_prev=cache_file ;; 110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 112 cache_file="$ac_optarg" ;; 113 114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 115 ac_prev=datadir ;; 116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 117 | --da=*) 118 datadir="$ac_optarg" ;; 119 120 -disable-* | --disable-*) 121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 122 # Reject names that are not valid shell variable names. 123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 125 fi 126 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 127 eval "enable_${ac_feature}=no" ;; 128 129 -enable-* | --enable-*) 130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 131 # Reject names that are not valid shell variable names. 132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 134 fi 135 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 136 case "$ac_option" in 137 *=*) ;; 138 *) ac_optarg=yes ;; 139 esac 140 eval "enable_${ac_feature}='$ac_optarg'" ;; 141 142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 144 | --exec | --exe | --ex) 145 ac_prev=exec_prefix ;; 146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 148 | --exec=* | --exe=* | --ex=*) 149 exec_prefix="$ac_optarg" ;; 150 151 -gas | --gas | --ga | --g) 152 # Obsolete; use --with-gas. 153 with_gas=yes ;; 154 155 -help | --help | --hel | --he) 156 # Omit some internal or obsolete options to make the list less imposing. 157 # This message is too long to be a string in the A/UX 3.1 sh. 158 cat << EOF 159Usage: configure [options] [host] 160Options: [defaults in brackets after descriptions] 161Configuration: 162 --cache-file=FILE cache test results in FILE 163 --help print this message 164 --no-create do not create output files 165 --quiet, --silent do not print \`checking...' messages 166 --version print the version of autoconf that created configure 167Directory and file names: 168 --prefix=PREFIX install architecture-independent files in PREFIX 169 [$ac_default_prefix] 170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 171 [same as prefix] 172 --bindir=DIR user executables in DIR [EPREFIX/bin] 173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 175 --datadir=DIR read-only architecture-independent data in DIR 176 [PREFIX/share] 177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 178 --sharedstatedir=DIR modifiable architecture-independent data in DIR 179 [PREFIX/com] 180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 181 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 182 --includedir=DIR C header files in DIR [PREFIX/include] 183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 184 --infodir=DIR info documentation in DIR [PREFIX/info] 185 --mandir=DIR man documentation in DIR [PREFIX/man] 186 --srcdir=DIR find the sources in DIR [configure dir or ..] 187 --program-prefix=PREFIX prepend PREFIX to installed program names 188 --program-suffix=SUFFIX append SUFFIX to installed program names 189 --program-transform-name=PROGRAM 190 run sed PROGRAM on installed program names 191EOF 192 cat << EOF 193Host type: 194 --build=BUILD configure for building on BUILD [BUILD=HOST] 195 --host=HOST configure for HOST [guessed] 196 --target=TARGET configure for TARGET [TARGET=HOST] 197Features and packages: 198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 202 --x-includes=DIR X include files are in DIR 203 --x-libraries=DIR X library files are in DIR 204EOF 205 if test -n "$ac_help"; then 206 echo "--enable and --with options recognized:$ac_help" 207 fi 208 exit 0 ;; 209 210 -host | --host | --hos | --ho) 211 ac_prev=host ;; 212 -host=* | --host=* | --hos=* | --ho=*) 213 host="$ac_optarg" ;; 214 215 -includedir | --includedir | --includedi | --included | --include \ 216 | --includ | --inclu | --incl | --inc) 217 ac_prev=includedir ;; 218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 219 | --includ=* | --inclu=* | --incl=* | --inc=*) 220 includedir="$ac_optarg" ;; 221 222 -infodir | --infodir | --infodi | --infod | --info | --inf) 223 ac_prev=infodir ;; 224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 225 infodir="$ac_optarg" ;; 226 227 -libdir | --libdir | --libdi | --libd) 228 ac_prev=libdir ;; 229 -libdir=* | --libdir=* | --libdi=* | --libd=*) 230 libdir="$ac_optarg" ;; 231 232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 233 | --libexe | --libex | --libe) 234 ac_prev=libexecdir ;; 235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 236 | --libexe=* | --libex=* | --libe=*) 237 libexecdir="$ac_optarg" ;; 238 239 -localstatedir | --localstatedir | --localstatedi | --localstated \ 240 | --localstate | --localstat | --localsta | --localst \ 241 | --locals | --local | --loca | --loc | --lo) 242 ac_prev=localstatedir ;; 243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 246 localstatedir="$ac_optarg" ;; 247 248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 249 ac_prev=mandir ;; 250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 251 mandir="$ac_optarg" ;; 252 253 -nfp | --nfp | --nf) 254 # Obsolete; use --without-fp. 255 with_fp=no ;; 256 257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 258 | --no-cr | --no-c) 259 no_create=yes ;; 260 261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 263 no_recursion=yes ;; 264 265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 267 | --oldin | --oldi | --old | --ol | --o) 268 ac_prev=oldincludedir ;; 269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 272 oldincludedir="$ac_optarg" ;; 273 274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 275 ac_prev=prefix ;; 276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 277 prefix="$ac_optarg" ;; 278 279 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 280 | --program-pre | --program-pr | --program-p) 281 ac_prev=program_prefix ;; 282 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 284 program_prefix="$ac_optarg" ;; 285 286 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 287 | --program-suf | --program-su | --program-s) 288 ac_prev=program_suffix ;; 289 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 291 program_suffix="$ac_optarg" ;; 292 293 -program-transform-name | --program-transform-name \ 294 | --program-transform-nam | --program-transform-na \ 295 | --program-transform-n | --program-transform- \ 296 | --program-transform | --program-transfor \ 297 | --program-transfo | --program-transf \ 298 | --program-trans | --program-tran \ 299 | --progr-tra | --program-tr | --program-t) 300 ac_prev=program_transform_name ;; 301 -program-transform-name=* | --program-transform-name=* \ 302 | --program-transform-nam=* | --program-transform-na=* \ 303 | --program-transform-n=* | --program-transform-=* \ 304 | --program-transform=* | --program-transfor=* \ 305 | --program-transfo=* | --program-transf=* \ 306 | --program-trans=* | --program-tran=* \ 307 | --progr-tra=* | --program-tr=* | --program-t=*) 308 program_transform_name="$ac_optarg" ;; 309 310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 311 | -silent | --silent | --silen | --sile | --sil) 312 silent=yes ;; 313 314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 315 ac_prev=sbindir ;; 316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 317 | --sbi=* | --sb=*) 318 sbindir="$ac_optarg" ;; 319 320 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 322 | --sharedst | --shareds | --shared | --share | --shar \ 323 | --sha | --sh) 324 ac_prev=sharedstatedir ;; 325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 328 | --sha=* | --sh=*) 329 sharedstatedir="$ac_optarg" ;; 330 331 -site | --site | --sit) 332 ac_prev=site ;; 333 -site=* | --site=* | --sit=*) 334 site="$ac_optarg" ;; 335 336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 337 ac_prev=srcdir ;; 338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 339 srcdir="$ac_optarg" ;; 340 341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 342 | --syscon | --sysco | --sysc | --sys | --sy) 343 ac_prev=sysconfdir ;; 344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 346 sysconfdir="$ac_optarg" ;; 347 348 -target | --target | --targe | --targ | --tar | --ta | --t) 349 ac_prev=target ;; 350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 351 target="$ac_optarg" ;; 352 353 -v | -verbose | --verbose | --verbos | --verbo | --verb) 354 verbose=yes ;; 355 356 -version | --version | --versio | --versi | --vers) 357 echo "configure generated by autoconf version 2.12.1" 358 exit 0 ;; 359 360 -with-* | --with-*) 361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 362 # Reject names that are not valid shell variable names. 363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 365 fi 366 ac_package=`echo $ac_package| sed 's/-/_/g'` 367 case "$ac_option" in 368 *=*) ;; 369 *) ac_optarg=yes ;; 370 esac 371 eval "with_${ac_package}='$ac_optarg'" ;; 372 373 -without-* | --without-*) 374 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 375 # Reject names that are not valid shell variable names. 376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 378 fi 379 ac_package=`echo $ac_package| sed 's/-/_/g'` 380 eval "with_${ac_package}=no" ;; 381 382 --x) 383 # Obsolete; use --with-x. 384 with_x=yes ;; 385 386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 387 | --x-incl | --x-inc | --x-in | --x-i) 388 ac_prev=x_includes ;; 389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 391 x_includes="$ac_optarg" ;; 392 393 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 395 ac_prev=x_libraries ;; 396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 398 x_libraries="$ac_optarg" ;; 399 400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 401 ;; 402 403 *) 404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 405 echo "configure: warning: $ac_option: invalid host type" 1>&2 406 fi 407 if test "x$nonopt" != xNONE; then 408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 409 fi 410 nonopt="$ac_option" 411 ;; 412 413 esac 414done 415 416if test -n "$ac_prev"; then 417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 418fi 419 420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 421 422# File descriptor usage: 423# 0 standard input 424# 1 file creation 425# 2 errors and warnings 426# 3 some systems may open it to /dev/tty 427# 4 used on the Kubota Titan 428# 6 checking for... messages and results 429# 5 compiler messages saved in config.log 430if test "$silent" = yes; then 431 exec 6>/dev/null 432else 433 exec 6>&1 434fi 435exec 5>./config.log 436 437echo "\ 438This file contains any messages produced by compilers while 439running configure, to aid debugging if configure makes a mistake. 440" 1>&5 441 442# Strip out --no-create and --no-recursion so they do not pile up. 443# Also quote any args containing shell metacharacters. 444ac_configure_args= 445for ac_arg 446do 447 case "$ac_arg" in 448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 449 | --no-cr | --no-c) ;; 450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 453 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 454 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 455 esac 456done 457 458# NLS nuisances. 459# Only set these to C if already set. These must not be set unconditionally 460# because not all systems understand e.g. LANG=C (notably SCO). 461# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 462# Non-C LC_CTYPE values break the ctype check. 463if test "${LANG+set}" = set; then LANG=C; export LANG; fi 464if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 465if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 466if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 467 468# confdefs.h avoids OS command line length limits that DEFS can exceed. 469rm -rf conftest* confdefs.h 470# AIX cpp loses on an empty file, so make sure it contains at least a newline. 471echo > confdefs.h 472 473# A filename unique to this package, relative to the directory that 474# configure is in, which we can look for to find out if srcdir is correct. 475ac_unique_file=libbfd.c 476 477# Find the source files, if location was not specified. 478if test -z "$srcdir"; then 479 ac_srcdir_defaulted=yes 480 # Try the directory containing this script, then its parent. 481 ac_prog=$0 482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 484 srcdir=$ac_confdir 485 if test ! -r $srcdir/$ac_unique_file; then 486 srcdir=.. 487 fi 488else 489 ac_srcdir_defaulted=no 490fi 491if test ! -r $srcdir/$ac_unique_file; then 492 if test "$ac_srcdir_defaulted" = yes; then 493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 494 else 495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 496 fi 497fi 498srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 499 500# Prefer explicitly selected file to automatically selected ones. 501if test -z "$CONFIG_SITE"; then 502 if test "x$prefix" != xNONE; then 503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 504 else 505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 506 fi 507fi 508for ac_site_file in $CONFIG_SITE; do 509 if test -r "$ac_site_file"; then 510 echo "loading site script $ac_site_file" 511 . "$ac_site_file" 512 fi 513done 514 515if test -r "$cache_file"; then 516 echo "loading cache $cache_file" 517 . $cache_file 518else 519 echo "creating cache $cache_file" 520 > $cache_file 521fi 522 523ac_ext=c 524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 525ac_cpp='$CPP $CPPFLAGS' 526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 527ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 528cross_compiling=$ac_cv_prog_cc_cross 529 530if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 533 ac_n= ac_c=' 534' ac_t=' ' 535 else 536 ac_n=-n ac_c= ac_t= 537 fi 538else 539 ac_n= ac_c='\c' ac_t= 540fi 541 542 543 544ac_aux_dir= 545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 546 if test -f $ac_dir/install-sh; then 547 ac_aux_dir=$ac_dir 548 ac_install_sh="$ac_aux_dir/install-sh -c" 549 break 550 elif test -f $ac_dir/install.sh; then 551 ac_aux_dir=$ac_dir 552 ac_install_sh="$ac_aux_dir/install.sh -c" 553 break 554 fi 555done 556if test -z "$ac_aux_dir"; then 557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 558fi 559ac_config_guess=$ac_aux_dir/config.guess 560ac_config_sub=$ac_aux_dir/config.sub 561ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 562 563 564# Do some error checking and defaulting for the host and target type. 565# The inputs are: 566# configure --host=HOST --target=TARGET --build=BUILD NONOPT 567# 568# The rules are: 569# 1. You are not allowed to specify --host, --target, and nonopt at the 570# same time. 571# 2. Host defaults to nonopt. 572# 3. If nonopt is not specified, then host defaults to the current host, 573# as determined by config.guess. 574# 4. Target and build default to nonopt. 575# 5. If nonopt is not specified, then target and build default to host. 576 577# The aliases save the names the user supplied, while $host etc. 578# will get canonicalized. 579case $host---$target---$nonopt in 580NONE---*---* | *---NONE---* | *---*---NONE) ;; 581*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 582esac 583 584 585# Make sure we can run config.sub. 586if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 587else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 588fi 589 590echo $ac_n "checking host system type""... $ac_c" 1>&6 591echo "configure:592: checking host system type" >&5 592 593host_alias=$host 594case "$host_alias" in 595NONE) 596 case $nonopt in 597 NONE) 598 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 600 fi ;; 601 *) host_alias=$nonopt ;; 602 esac ;; 603esac 604 605host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 606host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 607host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 608host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 609echo "$ac_t""$host" 1>&6 610 611echo $ac_n "checking target system type""... $ac_c" 1>&6 612echo "configure:613: checking target system type" >&5 613 614target_alias=$target 615case "$target_alias" in 616NONE) 617 case $nonopt in 618 NONE) target_alias=$host_alias ;; 619 *) target_alias=$nonopt ;; 620 esac ;; 621esac 622 623target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 624target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 625target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 626target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 627echo "$ac_t""$target" 1>&6 628 629echo $ac_n "checking build system type""... $ac_c" 1>&6 630echo "configure:631: checking build system type" >&5 631 632build_alias=$build 633case "$build_alias" in 634NONE) 635 case $nonopt in 636 NONE) build_alias=$host_alias ;; 637 *) build_alias=$nonopt ;; 638 esac ;; 639esac 640 641build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 642build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 643build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 644build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 645echo "$ac_t""$build" 1>&6 646 647test "$host_alias" != "$target_alias" && 648 test "$program_prefix$program_suffix$program_transform_name" = \ 649 NONENONEs,x,x, && 650 program_prefix=${target_alias}- 651 652# Extract the first word of "gcc", so it can be a program name with args. 653set dummy gcc; ac_word=$2 654echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 655echo "configure:656: checking for $ac_word" >&5 656if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 657 echo $ac_n "(cached) $ac_c" 1>&6 658else 659 if test -n "$CC"; then 660 ac_cv_prog_CC="$CC" # Let the user override the test. 661else 662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 663 for ac_dir in $PATH; do 664 test -z "$ac_dir" && ac_dir=. 665 if test -f $ac_dir/$ac_word; then 666 ac_cv_prog_CC="gcc" 667 break 668 fi 669 done 670 IFS="$ac_save_ifs" 671fi 672fi 673CC="$ac_cv_prog_CC" 674if test -n "$CC"; then 675 echo "$ac_t""$CC" 1>&6 676else 677 echo "$ac_t""no" 1>&6 678fi 679 680if test -z "$CC"; then 681 # Extract the first word of "cc", so it can be a program name with args. 682set dummy cc; ac_word=$2 683echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 684echo "configure:685: checking for $ac_word" >&5 685if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 686 echo $ac_n "(cached) $ac_c" 1>&6 687else 688 if test -n "$CC"; then 689 ac_cv_prog_CC="$CC" # Let the user override the test. 690else 691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 692 ac_prog_rejected=no 693 for ac_dir in $PATH; do 694 test -z "$ac_dir" && ac_dir=. 695 if test -f $ac_dir/$ac_word; then 696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 697 ac_prog_rejected=yes 698 continue 699 fi 700 ac_cv_prog_CC="cc" 701 break 702 fi 703 done 704 IFS="$ac_save_ifs" 705if test $ac_prog_rejected = yes; then 706 # We found a bogon in the path, so make sure we never use it. 707 set dummy $ac_cv_prog_CC 708 shift 709 if test $# -gt 0; then 710 # We chose a different compiler from the bogus one. 711 # However, it has the same basename, so the bogon will be chosen 712 # first if we set CC to just the basename; use the full file name. 713 shift 714 set dummy "$ac_dir/$ac_word" "$@" 715 shift 716 ac_cv_prog_CC="$@" 717 fi 718fi 719fi 720fi 721CC="$ac_cv_prog_CC" 722if test -n "$CC"; then 723 echo "$ac_t""$CC" 1>&6 724else 725 echo "$ac_t""no" 1>&6 726fi 727 728 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 729fi 730 731echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 732echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 733 734ac_ext=c 735# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 736ac_cpp='$CPP $CPPFLAGS' 737ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 738ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 739cross_compiling=$ac_cv_prog_cc_cross 740 741cat > conftest.$ac_ext <<EOF 742#line 743 "configure" 743#include "confdefs.h" 744main(){return(0);} 745EOF 746if { (eval echo configure:747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 747 ac_cv_prog_cc_works=yes 748 # If we can't run a trivial program, we are probably using a cross compiler. 749 if (./conftest; exit) 2>/dev/null; then 750 ac_cv_prog_cc_cross=no 751 else 752 ac_cv_prog_cc_cross=yes 753 fi 754else 755 echo "configure: failed program was:" >&5 756 cat conftest.$ac_ext >&5 757 ac_cv_prog_cc_works=no 758fi 759rm -fr conftest* 760 761echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 762if test $ac_cv_prog_cc_works = no; then 763 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 764fi 765echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 766echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 767echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 768cross_compiling=$ac_cv_prog_cc_cross 769 770echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 771echo "configure:772: checking whether we are using GNU C" >&5 772if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 773 echo $ac_n "(cached) $ac_c" 1>&6 774else 775 cat > conftest.c <<EOF 776#ifdef __GNUC__ 777 yes; 778#endif 779EOF 780if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 781 ac_cv_prog_gcc=yes 782else 783 ac_cv_prog_gcc=no 784fi 785fi 786 787echo "$ac_t""$ac_cv_prog_gcc" 1>&6 788 789if test $ac_cv_prog_gcc = yes; then 790 GCC=yes 791 ac_test_CFLAGS="${CFLAGS+set}" 792 ac_save_CFLAGS="$CFLAGS" 793 CFLAGS= 794 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 795echo "configure:796: checking whether ${CC-cc} accepts -g" >&5 796if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 797 echo $ac_n "(cached) $ac_c" 1>&6 798else 799 echo 'void f(){}' > conftest.c 800if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 801 ac_cv_prog_cc_g=yes 802else 803 ac_cv_prog_cc_g=no 804fi 805rm -f conftest* 806 807fi 808 809echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 810 if test "$ac_test_CFLAGS" = set; then 811 CFLAGS="$ac_save_CFLAGS" 812 elif test $ac_cv_prog_cc_g = yes; then 813 CFLAGS="-g -O2" 814 else 815 CFLAGS="-O2" 816 fi 817else 818 GCC= 819 test "${CFLAGS+set}" = set || CFLAGS="-g" 820fi 821 822echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 823echo "configure:824: checking for POSIXized ISC" >&5 824if test -d /etc/conf/kconfig.d && 825 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 826then 827 echo "$ac_t""yes" 1>&6 828 ISC=yes # If later tests want to check for ISC. 829 cat >> confdefs.h <<\EOF 830#define _POSIX_SOURCE 1 831EOF 832 833 if test "$GCC" = yes; then 834 CC="$CC -posix" 835 else 836 CC="$CC -Xp" 837 fi 838else 839 echo "$ac_t""no" 1>&6 840 ISC= 841fi 842 843 844# Find a good install program. We prefer a C program (faster), 845# so one script is as good as another. But avoid the broken or 846# incompatible versions: 847# SysV /etc/install, /usr/sbin/install 848# SunOS /usr/etc/install 849# IRIX /sbin/install 850# AIX /bin/install 851# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 852# AFS /usr/afsws/bin/install, which mishandles nonexistent args 853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 854# ./install, which can be erroneously created by make from ./install.sh. 855echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 856echo "configure:857: checking for a BSD compatible install" >&5 857if test -z "$INSTALL"; then 858if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 859 echo $ac_n "(cached) $ac_c" 1>&6 860else 861 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 862 for ac_dir in $PATH; do 863 # Account for people who put trailing slashes in PATH elements. 864 case "$ac_dir/" in 865 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 866 *) 867 # OSF1 and SCO ODT 3.0 have their own names for install. 868 # Don't use installbsd from OSF since it installs stuff as root 869 # by default. 870 for ac_prog in ginstall scoinst install; do 871 if test -f $ac_dir/$ac_prog; then 872 if test $ac_prog = install && 873 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 874 # AIX install. It has an incompatible calling convention. 875 : 876 else 877 ac_cv_path_install="$ac_dir/$ac_prog -c" 878 break 2 879 fi 880 fi 881 done 882 ;; 883 esac 884 done 885 IFS="$ac_save_IFS" 886 887fi 888 if test "${ac_cv_path_install+set}" = set; then 889 INSTALL="$ac_cv_path_install" 890 else 891 # As a last resort, use the slow shell script. We don't cache a 892 # path for INSTALL within a source directory, because that will 893 # break other packages using the cache if that directory is 894 # removed, or if the path is relative. 895 INSTALL="$ac_install_sh" 896 fi 897fi 898echo "$ac_t""$INSTALL" 1>&6 899 900# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 901# It thinks the first close brace ends the variable substitution. 902test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 903 904test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 905 906 907test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 908 909echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 910echo "configure:911: checking whether build environment is sane" >&5 911# Just in case 912sleep 1 913echo timestamp > conftestfile 914# Do `set' in a subshell so we don't clobber the current shell's 915# arguments. Must try -L first in case configure is actually a 916# symlink; some systems play weird games with the mod time of symlinks 917# (eg FreeBSD returns the mod time of the symlink's containing 918# directory). 919if ( 920 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 921 if test "$*" = "X"; then 922 # -L didn't work. 923 set X `ls -t $srcdir/configure conftestfile` 924 fi 925 if test "$*" != "X $srcdir/configure conftestfile" \ 926 && test "$*" != "X conftestfile $srcdir/configure"; then 927 928 # If neither matched, then we have a broken ls. This can happen 929 # if, for instance, CONFIG_SHELL is bash and it inherits a 930 # broken ls alias from the environment. This has actually 931 # happened. Such a system could not be considered "sane". 932 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 933alias in your environment" 1>&2; exit 1; } 934 fi 935 936 test "$2" = conftestfile 937 ) 938then 939 # Ok. 940 : 941else 942 { echo "configure: error: newly created file is older than distributed files! 943Check your system clock" 1>&2; exit 1; } 944fi 945rm -f conftest* 946echo "$ac_t""yes" 1>&6 947if test "$program_transform_name" = s,x,x,; then 948 program_transform_name= 949else 950 # Double any \ or $. echo might interpret backslashes. 951 cat <<\EOF_SED > conftestsed 952s,\\,\\\\,g; s,\$,$$,g 953EOF_SED 954 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 955 rm -f conftestsed 956fi 957test "$program_prefix" != NONE && 958 program_transform_name="s,^,${program_prefix},; $program_transform_name" 959# Use a double $ so make ignores it. 960test "$program_suffix" != NONE && 961 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 962 963# sed with no file args requires a program. 964test "$program_transform_name" = "" && program_transform_name="s,x,x," 965 966echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 967echo "configure:968: checking whether ${MAKE-make} sets \${MAKE}" >&5 968set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 969if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 970 echo $ac_n "(cached) $ac_c" 1>&6 971else 972 cat > conftestmake <<\EOF 973all: 974 @echo 'ac_maketemp="${MAKE}"' 975EOF 976# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 977eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 978if test -n "$ac_maketemp"; then 979 eval ac_cv_prog_make_${ac_make}_set=yes 980else 981 eval ac_cv_prog_make_${ac_make}_set=no 982fi 983rm -f conftestmake 984fi 985if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 986 echo "$ac_t""yes" 1>&6 987 SET_MAKE= 988else 989 echo "$ac_t""no" 1>&6 990 SET_MAKE="MAKE=${MAKE-make}" 991fi 992 993 994PACKAGE=bfd 995 996VERSION=2.9.1 997 998if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 999 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 1000fi 1001cat >> confdefs.h <<EOF 1002#define PACKAGE "$PACKAGE" 1003EOF 1004 1005cat >> confdefs.h <<EOF 1006#define VERSION "$VERSION" 1007EOF 1008 1009 1010 1011missing_dir=`cd $ac_aux_dir && pwd` 1012echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 1013echo "configure:1014: checking for working aclocal" >&5 1014# Run test in a subshell; some versions of sh will print an error if 1015# an executable is not found, even if stderr is redirected. 1016# Redirect stdin to placate older versions of autoconf. Sigh. 1017if (aclocal --version) < /dev/null > /dev/null 2>&1; then 1018 ACLOCAL=aclocal 1019 echo "$ac_t""found" 1>&6 1020else 1021 ACLOCAL="$missing_dir/missing aclocal" 1022 echo "$ac_t""missing" 1>&6 1023fi 1024 1025echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 1026echo "configure:1027: checking for working autoconf" >&5 1027# Run test in a subshell; some versions of sh will print an error if 1028# an executable is not found, even if stderr is redirected. 1029# Redirect stdin to placate older versions of autoconf. Sigh. 1030if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1031 AUTOCONF=autoconf 1032 echo "$ac_t""found" 1>&6 1033else 1034 AUTOCONF="$missing_dir/missing autoconf" 1035 echo "$ac_t""missing" 1>&6 1036fi 1037 1038echo $ac_n "checking for working automake""... $ac_c" 1>&6 1039echo "configure:1040: checking for working automake" >&5 1040# Run test in a subshell; some versions of sh will print an error if 1041# an executable is not found, even if stderr is redirected. 1042# Redirect stdin to placate older versions of autoconf. Sigh. 1043if (automake --version) < /dev/null > /dev/null 2>&1; then 1044 AUTOMAKE=automake 1045 echo "$ac_t""found" 1>&6 1046else 1047 AUTOMAKE="$missing_dir/missing automake" 1048 echo "$ac_t""missing" 1>&6 1049fi 1050 1051echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 1052echo "configure:1053: checking for working autoheader" >&5 1053# Run test in a subshell; some versions of sh will print an error if 1054# an executable is not found, even if stderr is redirected. 1055# Redirect stdin to placate older versions of autoconf. Sigh. 1056if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1057 AUTOHEADER=autoheader 1058 echo "$ac_t""found" 1>&6 1059else 1060 AUTOHEADER="$missing_dir/missing autoheader" 1061 echo "$ac_t""missing" 1>&6 1062fi 1063 1064echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 1065echo "configure:1066: checking for working makeinfo" >&5 1066# Run test in a subshell; some versions of sh will print an error if 1067# an executable is not found, even if stderr is redirected. 1068# Redirect stdin to placate older versions of autoconf. Sigh. 1069if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1070 MAKEINFO=makeinfo 1071 echo "$ac_t""found" 1>&6 1072else 1073 MAKEINFO="$missing_dir/missing makeinfo" 1074 echo "$ac_t""missing" 1>&6 1075fi 1076 1077 1078 1079if test $host != $build; then 1080 ac_tool_prefix=${host_alias}- 1081else 1082 ac_tool_prefix= 1083fi 1084 1085# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 1086set dummy ${ac_tool_prefix}ar; ac_word=$2 1087echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1088echo "configure:1089: checking for $ac_word" >&5 1089if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1090 echo $ac_n "(cached) $ac_c" 1>&6 1091else 1092 if test -n "$AR"; then 1093 ac_cv_prog_AR="$AR" # Let the user override the test. 1094else 1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1096 for ac_dir in $PATH; do 1097 test -z "$ac_dir" && ac_dir=. 1098 if test -f $ac_dir/$ac_word; then 1099 ac_cv_prog_AR="${ac_tool_prefix}ar" 1100 break 1101 fi 1102 done 1103 IFS="$ac_save_ifs" 1104 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 1105fi 1106fi 1107AR="$ac_cv_prog_AR" 1108if test -n "$AR"; then 1109 echo "$ac_t""$AR" 1>&6 1110else 1111 echo "$ac_t""no" 1>&6 1112fi 1113 1114 1115 1116# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1117set dummy ${ac_tool_prefix}ranlib; ac_word=$2 1118echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1119echo "configure:1120: checking for $ac_word" >&5 1120if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1121 echo $ac_n "(cached) $ac_c" 1>&6 1122else 1123 if test -n "$RANLIB"; then 1124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1125else 1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1127 for ac_dir in $PATH; do 1128 test -z "$ac_dir" && ac_dir=. 1129 if test -f $ac_dir/$ac_word; then 1130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1131 break 1132 fi 1133 done 1134 IFS="$ac_save_ifs" 1135fi 1136fi 1137RANLIB="$ac_cv_prog_RANLIB" 1138if test -n "$RANLIB"; then 1139 echo "$ac_t""$RANLIB" 1>&6 1140else 1141 echo "$ac_t""no" 1>&6 1142fi 1143 1144 1145if test -z "$ac_cv_prog_RANLIB"; then 1146if test -n "$ac_tool_prefix"; then 1147 # Extract the first word of "ranlib", so it can be a program name with args. 1148set dummy ranlib; ac_word=$2 1149echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1150echo "configure:1151: checking for $ac_word" >&5 1151if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1152 echo $ac_n "(cached) $ac_c" 1>&6 1153else 1154 if test -n "$RANLIB"; then 1155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1156else 1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1158 for ac_dir in $PATH; do 1159 test -z "$ac_dir" && ac_dir=. 1160 if test -f $ac_dir/$ac_word; then 1161 ac_cv_prog_RANLIB="ranlib" 1162 break 1163 fi 1164 done 1165 IFS="$ac_save_ifs" 1166 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1167fi 1168fi 1169RANLIB="$ac_cv_prog_RANLIB" 1170if test -n "$RANLIB"; then 1171 echo "$ac_t""$RANLIB" 1>&6 1172else 1173 echo "$ac_t""no" 1>&6 1174fi 1175 1176else 1177 RANLIB=":" 1178fi 1179fi 1180 1181 1182# Check whether --enable-shared or --disable-shared was given. 1183if test "${enable_shared+set}" = set; then 1184 enableval="$enable_shared" 1185 p=${PACKAGE-default} 1186case "$enableval" in 1187yes) enable_shared=yes ;; 1188no) enable_shared=no ;; 1189*) 1190 enable_shared=no 1191 # Look at the argument we got. We use all the common list separators. 1192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1193 for pkg in $enableval; do 1194 if test "X$pkg" = "X$p"; then 1195 enable_shared=yes 1196 fi 1197 done 1198 IFS="$ac_save_ifs" 1199 ;; 1200esac 1201else 1202 enable_shared=no 1203fi 1204 1205 1206# Check whether --enable-static or --disable-static was given. 1207if test "${enable_static+set}" = set; then 1208 enableval="$enable_static" 1209 p=${PACKAGE-default} 1210case "$enableval" in 1211yes) enable_static=yes ;; 1212no) enable_static=no ;; 1213*) 1214 enable_static=no 1215 # Look at the argument we got. We use all the common list separators. 1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1217 for pkg in $enableval; do 1218 if test "X$pkg" = "X$p"; then 1219 enable_static=yes 1220 fi 1221 done 1222 IFS="$ac_save_ifs" 1223 ;; 1224esac 1225else 1226 enable_static=yes 1227fi 1228 1229# Extract the first word of "ranlib", so it can be a program name with args. 1230set dummy ranlib; ac_word=$2 1231echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1232echo "configure:1233: checking for $ac_word" >&5 1233if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1234 echo $ac_n "(cached) $ac_c" 1>&6 1235else 1236 if test -n "$RANLIB"; then 1237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1238else 1239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1240 for ac_dir in $PATH; do 1241 test -z "$ac_dir" && ac_dir=. 1242 if test -f $ac_dir/$ac_word; then 1243 ac_cv_prog_RANLIB="ranlib" 1244 break 1245 fi 1246 done 1247 IFS="$ac_save_ifs" 1248 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1249fi 1250fi 1251RANLIB="$ac_cv_prog_RANLIB" 1252if test -n "$RANLIB"; then 1253 echo "$ac_t""$RANLIB" 1>&6 1254else 1255 echo "$ac_t""no" 1>&6 1256fi 1257 1258# Check whether --with-gnu-ld or --without-gnu-ld was given. 1259if test "${with_gnu_ld+set}" = set; then 1260 withval="$with_gnu_ld" 1261 test "$withval" = no || with_gnu_ld=yes 1262else 1263 with_gnu_ld=no 1264fi 1265 1266 1267ac_prog=ld 1268if test "$ac_cv_prog_gcc" = yes; then 1269 # Check if gcc -print-prog-name=ld gives a path. 1270 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1271echo "configure:1272: checking for ld used by GCC" >&5 1272 ac_prog=`($CC -print-prog-name=ld) 2>&5` 1273 case "$ac_prog" in 1274 # Accept absolute paths. 1275 /* | [A-Za-z]:\\*) 1276 test -z "$LD" && LD="$ac_prog" 1277 ;; 1278 "") 1279 # If it fails, then pretend we aren't using GCC. 1280 ac_prog=ld 1281 ;; 1282 *) 1283 # If it is relative, then search for the first ld in PATH. 1284 with_gnu_ld=unknown 1285 ;; 1286 esac 1287elif test "$with_gnu_ld" = yes; then 1288 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1289echo "configure:1290: checking for GNU ld" >&5 1290else 1291 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1292echo "configure:1293: checking for non-GNU ld" >&5 1293fi 1294if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 1295 echo $ac_n "(cached) $ac_c" 1>&6 1296else 1297 if test -z "$LD"; then 1298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1299 for ac_dir in $PATH; do 1300 test -z "$ac_dir" && ac_dir=. 1301 if test -f "$ac_dir/$ac_prog"; then 1302 ac_cv_path_LD="$ac_dir/$ac_prog" 1303 # Check to see if the program is GNU ld. I'd rather use --version, 1304 # but apparently some GNU ld's only accept -v. 1305 # Break only if it was the GNU/non-GNU ld that we prefer. 1306 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 1307 test "$with_gnu_ld" != no && break 1308 else 1309 test "$with_gnu_ld" != yes && break 1310 fi 1311 fi 1312 done 1313 IFS="$ac_save_ifs" 1314else 1315 ac_cv_path_LD="$LD" # Let the user override the test with a path. 1316fi 1317fi 1318 1319LD="$ac_cv_path_LD" 1320if test -n "$LD"; then 1321 echo "$ac_t""$LD" 1>&6 1322else 1323 echo "$ac_t""no" 1>&6 1324fi 1325test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1326 1327echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1328echo "configure:1329: checking if the linker ($LD) is GNU ld" >&5 1329if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1330 echo $ac_n "(cached) $ac_c" 1>&6 1331else 1332 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1333if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1334 ac_cv_prog_gnu_ld=yes 1335else 1336 ac_cv_prog_gnu_ld=no 1337fi 1338fi 1339 1340echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1341 1342 1343echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1344echo "configure:1345: checking for BSD-compatible nm" >&5 1345if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1346 echo $ac_n "(cached) $ac_c" 1>&6 1347else 1348 case "$NM" in 1349/* | [A-Za-z]:\\*) 1350 ac_cv_path_NM="$NM" # Let the user override the test with a path. 1351 ;; 1352*) 1353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1354 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do 1355 test -z "$ac_dir" && ac_dir=. 1356 if test -f $ac_dir/nm; then 1357 # Check to see if the nm accepts a BSD-compat flag. 1358 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 1359 # nm: unknown option "B" ignored 1360 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1361 ac_cv_path_NM="$ac_dir/nm -B" 1362 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1363 ac_cv_path_NM="$ac_dir/nm -p" 1364 else 1365 ac_cv_path_NM="$ac_dir/nm" 1366 fi 1367 break 1368 fi 1369 done 1370 IFS="$ac_save_ifs" 1371 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 1372 ;; 1373esac 1374fi 1375 1376NM="$ac_cv_path_NM" 1377echo "$ac_t""$NM" 1>&6 1378 1379 1380echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1381echo "configure:1382: checking whether ln -s works" >&5 1382if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1383 echo $ac_n "(cached) $ac_c" 1>&6 1384else 1385 rm -f conftestdata 1386if ln -s X conftestdata 2>/dev/null 1387then 1388 rm -f conftestdata 1389 ac_cv_prog_LN_S="ln -s" 1390else 1391 ac_cv_prog_LN_S=ln 1392fi 1393fi 1394LN_S="$ac_cv_prog_LN_S" 1395if test "$ac_cv_prog_LN_S" = "ln -s"; then 1396 echo "$ac_t""yes" 1>&6 1397else 1398 echo "$ac_t""no" 1>&6 1399fi 1400 1401# Always use our own libtool. 1402LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1403 1404# Check for any special flags to pass to ltconfig. 1405libtool_flags= 1406test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 1407test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 1408test "$silent" = yes && libtool_flags="$libtool_flags --silent" 1409test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" 1410test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 1411 1412# Some flags need to be propagated to the compiler or linker for good 1413# libtool support. 1414case "$host" in 1415*-*-irix6*) 1416 # Find out which ABI we are using. 1417 echo '#line 1418 "configure"' > conftest.$ac_ext 1418 if { (eval echo configure:1419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1419 case "`/usr/bin/file conftest.o`" in 1420 *32-bit*) 1421 LD="${LD-ld} -32" 1422 ;; 1423 *N32*) 1424 LD="${LD-ld} -n32" 1425 ;; 1426 *64-bit*) 1427 LD="${LD-ld} -64" 1428 ;; 1429 esac 1430 fi 1431 rm -rf conftest* 1432 ;; 1433 1434*-*-sco3.2v5*) 1435 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1436 CFLAGS="$CFLAGS -belf" 1437 ;; 1438esac 1439 1440# Actually configure libtool. ac_aux_dir is where install-sh is found. 1441CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 1442LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ 1443${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \ 1444$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ 1445|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 1446 1447 1448# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. 1449if test "${enable_64_bit_bfd+set}" = set; then 1450 enableval="$enable_64_bit_bfd" 1451 case "${enableval}" in 1452 yes) want64=true ;; 1453 no) want64=false ;; 1454 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; 1455esac 1456else 1457 want64=false 1458fi 1459# Check whether --enable-targets or --disable-targets was given. 1460if test "${enable_targets+set}" = set; then 1461 enableval="$enable_targets" 1462 case "${enableval}" in 1463 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } 1464 ;; 1465 no) enable_targets= ;; 1466 *) enable_targets=$enableval ;; 1467esac 1468fi 1469# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 1470if test "${enable_commonbfdlib+set}" = set; then 1471 enableval="$enable_commonbfdlib" 1472 case "${enableval}" in 1473 yes) commonbfdlib=true ;; 1474 no) commonbfdlib=false ;; 1475 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; 1476esac 1477fi 1478# Check whether --with-mmap or --without-mmap was given. 1479if test "${with_mmap+set}" = set; then 1480 withval="$with_mmap" 1481 case "${withval}" in 1482 yes) want_mmap=true ;; 1483 no) want_mmap=false ;; 1484 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; 1485esac 1486else 1487 want_mmap=false 1488fi 1489 1490 1491 1492 1493 1494if test -z "$target" ; then 1495 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } 1496fi 1497if test "$program_transform_name" = s,x,x,; then 1498 program_transform_name= 1499else 1500 # Double any \ or $. echo might interpret backslashes. 1501 cat <<\EOF_SED > conftestsed 1502s,\\,\\\\,g; s,\$,$$,g 1503EOF_SED 1504 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 1505 rm -f conftestsed 1506fi 1507test "$program_prefix" != NONE && 1508 program_transform_name="s,^,${program_prefix},; $program_transform_name" 1509# Use a double $ so make ignores it. 1510test "$program_suffix" != NONE && 1511 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 1512 1513# sed with no file args requires a program. 1514test "$program_transform_name" = "" && program_transform_name="s,x,x," 1515 1516 1517echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 1518echo "configure:1519: checking whether to enable maintainer-specific portions of Makefiles" >&5 1519 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1520if test "${enable_maintainer_mode+set}" = set; then 1521 enableval="$enable_maintainer_mode" 1522 USE_MAINTAINER_MODE=$enableval 1523else 1524 USE_MAINTAINER_MODE=no 1525fi 1526 1527 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 1528 if test $USE_MAINTAINER_MODE = yes; then 1529 MAINT= 1530 else 1531 MAINT='#M#' 1532 fi 1533 1534 1535echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 1536echo "configure:1537: checking for Cygwin32 environment" >&5 1537if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then 1538 echo $ac_n "(cached) $ac_c" 1>&6 1539else 1540 cat > conftest.$ac_ext <<EOF 1541#line 1542 "configure" 1542#include "confdefs.h" 1543 1544int main() { 1545return __CYGWIN32__; 1546; return 0; } 1547EOF 1548if { (eval echo configure:1549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1549 rm -rf conftest* 1550 am_cv_cygwin32=yes 1551else 1552 echo "configure: failed program was:" >&5 1553 cat conftest.$ac_ext >&5 1554 rm -rf conftest* 1555 am_cv_cygwin32=no 1556fi 1557rm -f conftest* 1558rm -f conftest* 1559fi 1560 1561echo "$ac_t""$am_cv_cygwin32" 1>&6 1562CYGWIN32= 1563test "$am_cv_cygwin32" = yes && CYGWIN32=yes 1564echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 1565echo "configure:1566: checking for Mingw32 environment" >&5 1566if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then 1567 echo $ac_n "(cached) $ac_c" 1>&6 1568else 1569 cat > conftest.$ac_ext <<EOF 1570#line 1571 "configure" 1571#include "confdefs.h" 1572 1573int main() { 1574return __MINGW32__; 1575; return 0; } 1576EOF 1577if { (eval echo configure:1578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1578 rm -rf conftest* 1579 am_cv_mingw32=yes 1580else 1581 echo "configure: failed program was:" >&5 1582 cat conftest.$ac_ext >&5 1583 rm -rf conftest* 1584 am_cv_mingw32=no 1585fi 1586rm -f conftest* 1587rm -f conftest* 1588fi 1589 1590echo "$ac_t""$am_cv_mingw32" 1>&6 1591MINGW32= 1592test "$am_cv_mingw32" = yes && MINGW32=yes 1593 1594 1595echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1596echo "configure:1597: checking for executable suffix" >&5 1597if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then 1598 echo $ac_n "(cached) $ac_c" 1>&6 1599else 1600 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then 1601am_cv_exeext=.exe 1602else 1603cat > am_c_test.c << 'EOF' 1604int main() { 1605/* Nothing needed here */ 1606} 1607EOF 1608${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 1609am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` 1610rm -f am_c_test* 1611fi 1612 1613test x"${am_cv_exeext}" = x && am_cv_exeext=no 1614fi 1615EXEEXT="" 1616test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} 1617echo "$ac_t""${am_cv_exeext}" 1>&6 1618 1619 1620host64=false 1621target64=false 1622 1623# host stuff: 1624 1625# Extract the first word of "gcc", so it can be a program name with args. 1626set dummy gcc; ac_word=$2 1627echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1628echo "configure:1629: checking for $ac_word" >&5 1629if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1630 echo $ac_n "(cached) $ac_c" 1>&6 1631else 1632 if test -n "$CC"; then 1633 ac_cv_prog_CC="$CC" # Let the user override the test. 1634else 1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1636 for ac_dir in $PATH; do 1637 test -z "$ac_dir" && ac_dir=. 1638 if test -f $ac_dir/$ac_word; then 1639 ac_cv_prog_CC="gcc" 1640 break 1641 fi 1642 done 1643 IFS="$ac_save_ifs" 1644fi 1645fi 1646CC="$ac_cv_prog_CC" 1647if test -n "$CC"; then 1648 echo "$ac_t""$CC" 1>&6 1649else 1650 echo "$ac_t""no" 1>&6 1651fi 1652 1653if test -z "$CC"; then 1654 # Extract the first word of "cc", so it can be a program name with args. 1655set dummy cc; ac_word=$2 1656echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1657echo "configure:1658: checking for $ac_word" >&5 1658if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1659 echo $ac_n "(cached) $ac_c" 1>&6 1660else 1661 if test -n "$CC"; then 1662 ac_cv_prog_CC="$CC" # Let the user override the test. 1663else 1664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1665 ac_prog_rejected=no 1666 for ac_dir in $PATH; do 1667 test -z "$ac_dir" && ac_dir=. 1668 if test -f $ac_dir/$ac_word; then 1669 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1670 ac_prog_rejected=yes 1671 continue 1672 fi 1673 ac_cv_prog_CC="cc" 1674 break 1675 fi 1676 done 1677 IFS="$ac_save_ifs" 1678if test $ac_prog_rejected = yes; then 1679 # We found a bogon in the path, so make sure we never use it. 1680 set dummy $ac_cv_prog_CC 1681 shift 1682 if test $# -gt 0; then 1683 # We chose a different compiler from the bogus one. 1684 # However, it has the same basename, so the bogon will be chosen 1685 # first if we set CC to just the basename; use the full file name. 1686 shift 1687 set dummy "$ac_dir/$ac_word" "$@" 1688 shift 1689 ac_cv_prog_CC="$@" 1690 fi 1691fi 1692fi 1693fi 1694CC="$ac_cv_prog_CC" 1695if test -n "$CC"; then 1696 echo "$ac_t""$CC" 1>&6 1697else 1698 echo "$ac_t""no" 1>&6 1699fi 1700 1701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1702fi 1703 1704echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1705echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1706 1707ac_ext=c 1708# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1709ac_cpp='$CPP $CPPFLAGS' 1710ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1711ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1712cross_compiling=$ac_cv_prog_cc_cross 1713 1714cat > conftest.$ac_ext <<EOF 1715#line 1716 "configure" 1716#include "confdefs.h" 1717main(){return(0);} 1718EOF 1719if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1720 ac_cv_prog_cc_works=yes 1721 # If we can't run a trivial program, we are probably using a cross compiler. 1722 if (./conftest; exit) 2>/dev/null; then 1723 ac_cv_prog_cc_cross=no 1724 else 1725 ac_cv_prog_cc_cross=yes 1726 fi 1727else 1728 echo "configure: failed program was:" >&5 1729 cat conftest.$ac_ext >&5 1730 ac_cv_prog_cc_works=no 1731fi 1732rm -fr conftest* 1733 1734echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1735if test $ac_cv_prog_cc_works = no; then 1736 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1737fi 1738echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1739echo "configure:1740: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1740echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1741cross_compiling=$ac_cv_prog_cc_cross 1742 1743echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1744echo "configure:1745: checking whether we are using GNU C" >&5 1745if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1746 echo $ac_n "(cached) $ac_c" 1>&6 1747else 1748 cat > conftest.c <<EOF 1749#ifdef __GNUC__ 1750 yes; 1751#endif 1752EOF 1753if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1754 ac_cv_prog_gcc=yes 1755else 1756 ac_cv_prog_gcc=no 1757fi 1758fi 1759 1760echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1761 1762if test $ac_cv_prog_gcc = yes; then 1763 GCC=yes 1764 ac_test_CFLAGS="${CFLAGS+set}" 1765 ac_save_CFLAGS="$CFLAGS" 1766 CFLAGS= 1767 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1768echo "configure:1769: checking whether ${CC-cc} accepts -g" >&5 1769if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1770 echo $ac_n "(cached) $ac_c" 1>&6 1771else 1772 echo 'void f(){}' > conftest.c 1773if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1774 ac_cv_prog_cc_g=yes 1775else 1776 ac_cv_prog_cc_g=no 1777fi 1778rm -f conftest* 1779 1780fi 1781 1782echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1783 if test "$ac_test_CFLAGS" = set; then 1784 CFLAGS="$ac_save_CFLAGS" 1785 elif test $ac_cv_prog_cc_g = yes; then 1786 CFLAGS="-g -O2" 1787 else 1788 CFLAGS="-O2" 1789 fi 1790else 1791 GCC= 1792 test "${CFLAGS+set}" = set || CFLAGS="-g" 1793fi 1794 1795 1796# Permit host specific settings. 1797. ${srcdir}/configure.host 1798 1799 1800 1801test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1802 1803 1804BFD_HOST_64BIT_LONG=0 1805BFD_HOST_64_BIT_DEFINED=0 1806BFD_HOST_64_BIT= 1807BFD_HOST_U_64_BIT= 1808if test "x${HOST_64BIT_TYPE}" = "xlong"; then 1809 BFD_HOST_64BIT_LONG=1 1810elif test "x${HOST_64BIT_TYPE}" != "x"; then 1811 BFD_HOST_64_BIT_DEFINED=1 1812 BFD_HOST_64_BIT=${HOST_64BIT_TYPE} 1813 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE} 1814fi 1815 1816 1817 1818 1819 1820# Put a plausible default for CC_FOR_BUILD in Makefile. 1821if test -z "$CC_FOR_BUILD"; then 1822 if test "x$cross_compiling" = "xno"; then 1823 CC_FOR_BUILD='$(CC)' 1824 else 1825 CC_FOR_BUILD=gcc 1826 fi 1827fi 1828 1829# Also set EXEEXT_FOR_BUILD. 1830if test "x$cross_compiling" = "xno"; then 1831 EXEEXT_FOR_BUILD='$(EXEEXT)' 1832else 1833 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 1834echo "configure:1835: checking for build system executable suffix" >&5 1835if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then 1836 echo $ac_n "(cached) $ac_c" 1>&6 1837else 1838 cat > ac_c_test.c << 'EOF' 1839int main() { 1840/* Nothing needed here */ 1841} 1842EOF 1843 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5 1844 bfd_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//` 1845 rm -f ac_c_test* 1846 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 1847fi 1848 1849echo "$ac_t""$bfd_cv_build_exeext" 1>&6 1850 EXEEXT_FOR_BUILD="" 1851 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 1852fi 1853 1854 1855echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1856echo "configure:1857: checking how to run the C preprocessor" >&5 1857# On Suns, sometimes $CPP names a directory. 1858if test -n "$CPP" && test -d "$CPP"; then 1859 CPP= 1860fi 1861if test -z "$CPP"; then 1862if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1863 echo $ac_n "(cached) $ac_c" 1>&6 1864else 1865 # This must be in double quotes, not single quotes, because CPP may get 1866 # substituted into the Makefile and "${CC-cc}" will confuse make. 1867 CPP="${CC-cc} -E" 1868 # On the NeXT, cc -E runs the code through the compiler's parser, 1869 # not just through cpp. 1870 cat > conftest.$ac_ext <<EOF 1871#line 1872 "configure" 1872#include "confdefs.h" 1873#include <assert.h> 1874Syntax Error 1875EOF 1876ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1877{ (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1878ac_err=`grep -v '^ *+' conftest.out` 1879if test -z "$ac_err"; then 1880 : 1881else 1882 echo "$ac_err" >&5 1883 echo "configure: failed program was:" >&5 1884 cat conftest.$ac_ext >&5 1885 rm -rf conftest* 1886 CPP="${CC-cc} -E -traditional-cpp" 1887 cat > conftest.$ac_ext <<EOF 1888#line 1889 "configure" 1889#include "confdefs.h" 1890#include <assert.h> 1891Syntax Error 1892EOF 1893ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1894{ (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1895ac_err=`grep -v '^ *+' conftest.out` 1896if test -z "$ac_err"; then 1897 : 1898else 1899 echo "$ac_err" >&5 1900 echo "configure: failed program was:" >&5 1901 cat conftest.$ac_ext >&5 1902 rm -rf conftest* 1903 CPP=/lib/cpp 1904fi 1905rm -f conftest* 1906fi 1907rm -f conftest* 1908 ac_cv_prog_CPP="$CPP" 1909fi 1910 CPP="$ac_cv_prog_CPP" 1911else 1912 ac_cv_prog_CPP="$CPP" 1913fi 1914echo "$ac_t""$CPP" 1>&6 1915 1916for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h 1917do 1918ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1919echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1920echo "configure:1921: checking for $ac_hdr" >&5 1921if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1922 echo $ac_n "(cached) $ac_c" 1>&6 1923else 1924 cat > conftest.$ac_ext <<EOF 1925#line 1926 "configure" 1926#include "confdefs.h" 1927#include <$ac_hdr> 1928EOF 1929ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1930{ (eval echo configure:1931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1931ac_err=`grep -v '^ *+' conftest.out` 1932if test -z "$ac_err"; then 1933 rm -rf conftest* 1934 eval "ac_cv_header_$ac_safe=yes" 1935else 1936 echo "$ac_err" >&5 1937 echo "configure: failed program was:" >&5 1938 cat conftest.$ac_ext >&5 1939 rm -rf conftest* 1940 eval "ac_cv_header_$ac_safe=no" 1941fi 1942rm -f conftest* 1943fi 1944if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1945 echo "$ac_t""yes" 1>&6 1946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1947 cat >> confdefs.h <<EOF 1948#define $ac_tr_hdr 1 1949EOF 1950 1951else 1952 echo "$ac_t""no" 1>&6 1953fi 1954done 1955 1956for ac_hdr in fcntl.h sys/file.h sys/time.h 1957do 1958ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1959echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1960echo "configure:1961: checking for $ac_hdr" >&5 1961if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1962 echo $ac_n "(cached) $ac_c" 1>&6 1963else 1964 cat > conftest.$ac_ext <<EOF 1965#line 1966 "configure" 1966#include "confdefs.h" 1967#include <$ac_hdr> 1968EOF 1969ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1970{ (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1971ac_err=`grep -v '^ *+' conftest.out` 1972if test -z "$ac_err"; then 1973 rm -rf conftest* 1974 eval "ac_cv_header_$ac_safe=yes" 1975else 1976 echo "$ac_err" >&5 1977 echo "configure: failed program was:" >&5 1978 cat conftest.$ac_ext >&5 1979 rm -rf conftest* 1980 eval "ac_cv_header_$ac_safe=no" 1981fi 1982rm -f conftest* 1983fi 1984if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1985 echo "$ac_t""yes" 1>&6 1986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1987 cat >> confdefs.h <<EOF 1988#define $ac_tr_hdr 1 1989EOF 1990 1991else 1992 echo "$ac_t""no" 1>&6 1993fi 1994done 1995 1996echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1997echo "configure:1998: checking whether time.h and sys/time.h may both be included" >&5 1998if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1999 echo $ac_n "(cached) $ac_c" 1>&6 2000else 2001 cat > conftest.$ac_ext <<EOF 2002#line 2003 "configure" 2003#include "confdefs.h" 2004#include <sys/types.h> 2005#include <sys/time.h> 2006#include <time.h> 2007int main() { 2008struct tm *tp; 2009; return 0; } 2010EOF 2011if { (eval echo configure:2012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2012 rm -rf conftest* 2013 ac_cv_header_time=yes 2014else 2015 echo "configure: failed program was:" >&5 2016 cat conftest.$ac_ext >&5 2017 rm -rf conftest* 2018 ac_cv_header_time=no 2019fi 2020rm -f conftest* 2021fi 2022 2023echo "$ac_t""$ac_cv_header_time" 1>&6 2024if test $ac_cv_header_time = yes; then 2025 cat >> confdefs.h <<\EOF 2026#define TIME_WITH_SYS_TIME 1 2027EOF 2028 2029fi 2030 2031for ac_func in fcntl getpagesize setitimer sysconf fdopen 2032do 2033echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2034echo "configure:2035: checking for $ac_func" >&5 2035if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2036 echo $ac_n "(cached) $ac_c" 1>&6 2037else 2038 cat > conftest.$ac_ext <<EOF 2039#line 2040 "configure" 2040#include "confdefs.h" 2041/* System header to define __stub macros and hopefully few prototypes, 2042 which can conflict with char $ac_func(); below. */ 2043#include <assert.h> 2044/* Override any gcc2 internal prototype to avoid an error. */ 2045/* We use char because int might match the return type of a gcc2 2046 builtin and then its argument prototype would still apply. */ 2047char $ac_func(); 2048 2049int main() { 2050 2051/* The GNU C library defines this for functions which it implements 2052 to always fail with ENOSYS. Some functions are actually named 2053 something starting with __ and the normal name is an alias. */ 2054#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2055choke me 2056#else 2057$ac_func(); 2058#endif 2059 2060; return 0; } 2061EOF 2062if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2063 rm -rf conftest* 2064 eval "ac_cv_func_$ac_func=yes" 2065else 2066 echo "configure: failed program was:" >&5 2067 cat conftest.$ac_ext >&5 2068 rm -rf conftest* 2069 eval "ac_cv_func_$ac_func=no" 2070fi 2071rm -f conftest* 2072fi 2073 2074if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2075 echo "$ac_t""yes" 1>&6 2076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2077 cat >> confdefs.h <<EOF 2078#define $ac_tr_func 1 2079EOF 2080 2081else 2082 echo "$ac_t""no" 1>&6 2083fi 2084done 2085 2086 2087 2088case "${host}" in 2089i[345]86-*-msdos* | i[345]86-*-go32* | i[345]86-*-mingw32* | *-*-cygwin32* | *-*-windows) 2090 cat >> confdefs.h <<\EOF 2091#define USE_BINARY_FOPEN 1 2092EOF 2093 ;; 2094esac 2095 2096echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 2097echo "configure:2098: checking whether strstr must be declared" >&5 2098if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then 2099 echo $ac_n "(cached) $ac_c" 1>&6 2100else 2101 cat > conftest.$ac_ext <<EOF 2102#line 2103 "configure" 2103#include "confdefs.h" 2104 2105#include <stdio.h> 2106#ifdef HAVE_STRING_H 2107#include <string.h> 2108#else 2109#ifdef HAVE_STRINGS_H 2110#include <strings.h> 2111#endif 2112#endif 2113#ifdef HAVE_STDLIB_H 2114#include <stdlib.h> 2115#endif 2116#ifdef HAVE_UNISTD_H 2117#include <unistd.h> 2118#endif 2119int main() { 2120char *(*pfn) = (char *(*)) strstr 2121; return 0; } 2122EOF 2123if { (eval echo configure:2124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2124 rm -rf conftest* 2125 bfd_cv_decl_needed_strstr=no 2126else 2127 echo "configure: failed program was:" >&5 2128 cat conftest.$ac_ext >&5 2129 rm -rf conftest* 2130 bfd_cv_decl_needed_strstr=yes 2131fi 2132rm -f conftest* 2133fi 2134 2135echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 2136if test $bfd_cv_decl_needed_strstr = yes; then 2137 bfd_tr_decl=NEED_DECLARATION_`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2138 cat >> confdefs.h <<EOF 2139#define $bfd_tr_decl 1 2140EOF 2141 2142fi 2143 2144echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 2145echo "configure:2146: checking whether malloc must be declared" >&5 2146if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then 2147 echo $ac_n "(cached) $ac_c" 1>&6 2148else 2149 cat > conftest.$ac_ext <<EOF 2150#line 2151 "configure" 2151#include "confdefs.h" 2152 2153#include <stdio.h> 2154#ifdef HAVE_STRING_H 2155#include <string.h> 2156#else 2157#ifdef HAVE_STRINGS_H 2158#include <strings.h> 2159#endif 2160#endif 2161#ifdef HAVE_STDLIB_H 2162#include <stdlib.h> 2163#endif 2164#ifdef HAVE_UNISTD_H 2165#include <unistd.h> 2166#endif 2167int main() { 2168char *(*pfn) = (char *(*)) malloc 2169; return 0; } 2170EOF 2171if { (eval echo configure:2172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2172 rm -rf conftest* 2173 bfd_cv_decl_needed_malloc=no 2174else 2175 echo "configure: failed program was:" >&5 2176 cat conftest.$ac_ext >&5 2177 rm -rf conftest* 2178 bfd_cv_decl_needed_malloc=yes 2179fi 2180rm -f conftest* 2181fi 2182 2183echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 2184if test $bfd_cv_decl_needed_malloc = yes; then 2185 bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2186 cat >> confdefs.h <<EOF 2187#define $bfd_tr_decl 1 2188EOF 2189 2190fi 2191 2192echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 2193echo "configure:2194: checking whether realloc must be declared" >&5 2194if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then 2195 echo $ac_n "(cached) $ac_c" 1>&6 2196else 2197 cat > conftest.$ac_ext <<EOF 2198#line 2199 "configure" 2199#include "confdefs.h" 2200 2201#include <stdio.h> 2202#ifdef HAVE_STRING_H 2203#include <string.h> 2204#else 2205#ifdef HAVE_STRINGS_H 2206#include <strings.h> 2207#endif 2208#endif 2209#ifdef HAVE_STDLIB_H 2210#include <stdlib.h> 2211#endif 2212#ifdef HAVE_UNISTD_H 2213#include <unistd.h> 2214#endif 2215int main() { 2216char *(*pfn) = (char *(*)) realloc 2217; return 0; } 2218EOF 2219if { (eval echo configure:2220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2220 rm -rf conftest* 2221 bfd_cv_decl_needed_realloc=no 2222else 2223 echo "configure: failed program was:" >&5 2224 cat conftest.$ac_ext >&5 2225 rm -rf conftest* 2226 bfd_cv_decl_needed_realloc=yes 2227fi 2228rm -f conftest* 2229fi 2230 2231echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 2232if test $bfd_cv_decl_needed_realloc = yes; then 2233 bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2234 cat >> confdefs.h <<EOF 2235#define $bfd_tr_decl 1 2236EOF 2237 2238fi 2239 2240echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 2241echo "configure:2242: checking whether free must be declared" >&5 2242if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then 2243 echo $ac_n "(cached) $ac_c" 1>&6 2244else 2245 cat > conftest.$ac_ext <<EOF 2246#line 2247 "configure" 2247#include "confdefs.h" 2248 2249#include <stdio.h> 2250#ifdef HAVE_STRING_H 2251#include <string.h> 2252#else 2253#ifdef HAVE_STRINGS_H 2254#include <strings.h> 2255#endif 2256#endif 2257#ifdef HAVE_STDLIB_H 2258#include <stdlib.h> 2259#endif 2260#ifdef HAVE_UNISTD_H 2261#include <unistd.h> 2262#endif 2263int main() { 2264char *(*pfn) = (char *(*)) free 2265; return 0; } 2266EOF 2267if { (eval echo configure:2268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2268 rm -rf conftest* 2269 bfd_cv_decl_needed_free=no 2270else 2271 echo "configure: failed program was:" >&5 2272 cat conftest.$ac_ext >&5 2273 rm -rf conftest* 2274 bfd_cv_decl_needed_free=yes 2275fi 2276rm -f conftest* 2277fi 2278 2279echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6 2280if test $bfd_cv_decl_needed_free = yes; then 2281 bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2282 cat >> confdefs.h <<EOF 2283#define $bfd_tr_decl 1 2284EOF 2285 2286fi 2287 2288echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 2289echo "configure:2290: checking whether getenv must be declared" >&5 2290if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then 2291 echo $ac_n "(cached) $ac_c" 1>&6 2292else 2293 cat > conftest.$ac_ext <<EOF 2294#line 2295 "configure" 2295#include "confdefs.h" 2296 2297#include <stdio.h> 2298#ifdef HAVE_STRING_H 2299#include <string.h> 2300#else 2301#ifdef HAVE_STRINGS_H 2302#include <strings.h> 2303#endif 2304#endif 2305#ifdef HAVE_STDLIB_H 2306#include <stdlib.h> 2307#endif 2308#ifdef HAVE_UNISTD_H 2309#include <unistd.h> 2310#endif 2311int main() { 2312char *(*pfn) = (char *(*)) getenv 2313; return 0; } 2314EOF 2315if { (eval echo configure:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2316 rm -rf conftest* 2317 bfd_cv_decl_needed_getenv=no 2318else 2319 echo "configure: failed program was:" >&5 2320 cat conftest.$ac_ext >&5 2321 rm -rf conftest* 2322 bfd_cv_decl_needed_getenv=yes 2323fi 2324rm -f conftest* 2325fi 2326 2327echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6 2328if test $bfd_cv_decl_needed_getenv = yes; then 2329 bfd_tr_decl=NEED_DECLARATION_`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2330 cat >> confdefs.h <<EOF 2331#define $bfd_tr_decl 1 2332EOF 2333 2334fi 2335 2336 2337# If we are configured native, pick a core file support file. 2338COREFILE= 2339COREFLAG= 2340if test "${target}" = "${host}"; then 2341 case "${host}" in 2342 alpha*-*-linux-gnu*) 2343 COREFILE=trad-core.lo 2344 cat >> confdefs.h <<\EOF 2345#define TRAD_HEADER "hosts/alphalinux.h" 2346EOF 2347 2348 ;; 2349 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;; 2350 alpha*-*-*) COREFILE=osf-core.lo ;; 2351 arm-*-riscix) COREFILE=trad-core.lo ;; 2352 hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 2353 hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 2354 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 2355 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 2356 i[3456]86-sequent-bsd*) 2357 COREFILE=trad-core.lo; 2358 cat >> confdefs.h <<\EOF 2359#define TRAD_HEADER "hosts/symmetry.h" 2360EOF 2361 2362 ;; 2363 i[3456]86-sequent-sysv4*) ;; 2364 i[3456]86-sequent-sysv*) 2365 COREFILE=trad-core.lo 2366 cat >> confdefs.h <<\EOF 2367#define TRAD_HEADER "hosts/symmetry.h" 2368EOF 2369 2370 ;; 2371 i[3456]86-*-bsd* | i[3456]86-*-freebsd*) 2372 COREFILE=trad-core.lo 2373 cat >> confdefs.h <<\EOF 2374#define TRAD_HEADER "hosts/i386bsd.h" 2375EOF 2376 2377 ;; 2378 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) 2379 COREFILE=netbsd-core.lo 2380 ;; 2381 i[3456]86-esix-sysv3*) 2382 COREFILE=trad-core.lo 2383 cat >> confdefs.h <<\EOF 2384#define TRAD_HEADER "hosts/esix.h" 2385EOF 2386 2387 ;; 2388 i[3456]86-*-sco* | i[3456]86-*-isc*) 2389 COREFILE=trad-core.lo 2390 cat >> confdefs.h <<\EOF 2391#define TRAD_HEADER "hosts/i386sco.h" 2392EOF 2393 2394 ;; 2395 i[3456]86-*-mach3*) 2396 COREFILE=trad-core.lo 2397 cat >> confdefs.h <<\EOF 2398#define TRAD_HEADER "hosts/i386mach3.h" 2399EOF 2400 2401 ;; 2402 i[3456]86-*-linux-gnu*) 2403 COREFILE=trad-core.lo 2404 cat >> confdefs.h <<\EOF 2405#define TRAD_HEADER "hosts/i386linux.h" 2406EOF 2407 2408 ;; 2409 i[3456]86-*-isc*) COREFILE=trad-core.lo ;; 2410 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;; 2411 i860-*-mach3* | i860-*-osf1*) 2412 COREFILE=trad-core.lo 2413 cat >> confdefs.h <<\EOF 2414#define TRAD_HEADER "hosts/i860mach3.h" 2415EOF 2416 2417 ;; 2418 mips-dec-bsd*) 2419 COREFILE=trad-core.lo 2420 cat >> confdefs.h <<\EOF 2421#define TRAD_HEADER "hosts/mipsbsd.h" 2422EOF 2423 2424 ;; 2425 mips-dec-mach3*) 2426 COREFILE=trad-core.lo 2427 cat >> confdefs.h <<\EOF 2428#define TRAD_HEADER "hosts/mipsmach3.h" 2429EOF 2430 2431 ;; 2432 mips-*-netbsd* | mips*-*-openbsd*) 2433 COREFILE=netbsd-core.lo 2434 ;; 2435 mips-dec-*) 2436 COREFILE=trad-core.lo 2437 cat >> confdefs.h <<\EOF 2438#define TRAD_HEADER "hosts/decstation.h" 2439EOF 2440 2441 ;; 2442 mips-sgi-irix4*) COREFILE=irix-core.lo ;; 2443 mips-sgi-irix5*) COREFILE=irix-core.lo ;; 2444 mips-sgi-irix6*) COREFILE=irix-core.lo ;; 2445 mips-*-mach3*) 2446 COREFILE=trad-core.lo 2447 cat >> confdefs.h <<\EOF 2448#define TRAD_HEADER "hosts/mipsmach3.h" 2449EOF 2450 2451 ;; 2452 mips-*-sysv4*) ;; 2453 mips-*-sysv* | mips-*-riscos*) 2454 COREFILE=trad-core.lo 2455 cat >> confdefs.h <<\EOF 2456#define TRAD_HEADER "hosts/riscos.h" 2457EOF 2458 2459 ;; 2460 mips-sony-bsd*) 2461 COREFILE=trad-core.lo 2462 cat >> confdefs.h <<\EOF 2463#define TRAD_HEADER "hosts/news-mips.h" 2464EOF 2465 2466 ;; 2467 m68*-bull*-sysv*) 2468 COREFILE=trad-core.lo 2469 cat >> confdefs.h <<\EOF 2470#define TRAD_HEADER "hosts/dpx2.h" 2471EOF 2472 2473 ;; 2474 m68*-hp-hpux*) COREFILE=hpux-core.lo ;; 2475 m68*-hp-bsd*) 2476 COREFILE=trad-core.lo 2477 cat >> confdefs.h <<\EOF 2478#define TRAD_HEADER "hosts/hp300bsd.h" 2479EOF 2480 2481 ;; 2482 m68*-*-linux-gnu*) 2483 COREFILE=trad-core.lo 2484 cat >> confdefs.h <<\EOF 2485#define TRAD_HEADER "hosts/m68klinux.h" 2486EOF 2487 2488 ;; 2489 m68*-motorola-sysv*) 2490 COREFILE=trad-core.lo 2491 cat >> confdefs.h <<\EOF 2492#define TRAD_HEADER "hosts/delta68.h" 2493EOF 2494 2495 ;; 2496 m68*-sony-*) 2497 COREFILE=trad-core.lo 2498 cat >> confdefs.h <<\EOF 2499#define TRAD_HEADER "hosts/news.h" 2500EOF 2501 2502 ;; 2503 m68*-*-netbsd* | m68*-*-openbsd*) 2504 COREFILE=netbsd-core.lo 2505 ;; 2506 m68*-apple-aux*) 2507 COREFILE=trad-core.lo 2508 cat >> confdefs.h <<\EOF 2509#define TRAD_HEADER "hosts/m68kaux.h" 2510EOF 2511 2512 ;; 2513 m88*-*-sysv4*) ;; 2514 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;; 2515 m88*-*-mach3*) 2516 COREFILE=trad-core.lo 2517 cat >> confdefs.h <<\EOF 2518#define TRAD_HEADER "hosts/m88kmach3.h" 2519EOF 2520 2521 ;; 2522 ns32k-pc532-mach) 2523 COREFILE=trad-core.lo 2524 cat >> confdefs.h <<\EOF 2525#define TRAD_HEADER "hosts/pc532mach.h" 2526EOF 2527 2528 ;; 2529 ns32k-*-netbsd* | ns32k-*-openbsd*) 2530 COREFILE=netbsd-core.lo 2531 ;; 2532 rs6000-*-lynx*) COREFILE=lynx-core.lo ;; 2533 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 2534 rs6000-*-*) COREFILE=rs6000-core.lo ;; 2535 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 2536 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 2537 powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 2538 powerpc-*-beos*) ;; 2539 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 2540 sparc-*-netbsd* | sparc-*-openbsd*) 2541 COREFILE=netbsd-core.lo 2542 ;; 2543 tahoe-*-*) 2544 COREFILE=trad-core.lo 2545 cat >> confdefs.h <<\EOF 2546#define TRAD_HEADER "hosts/tahoe.h" 2547EOF 2548 2549 ;; 2550 vax-*-ultrix2*) 2551 COREFILE=trad-core.lo 2552 cat >> confdefs.h <<\EOF 2553#define TRAD_HEADER "hosts/vaxult2.h" 2554EOF 2555 2556 ;; 2557 vax-*-ultrix*) 2558 COREFILE=trad-core.lo 2559 cat >> confdefs.h <<\EOF 2560#define TRAD_HEADER "hosts/vaxult2.h" 2561EOF 2562 2563 ;; 2564 vax-*-*) 2565 COREFILE=trad-core.lo 2566 cat >> confdefs.h <<\EOF 2567#define TRAD_HEADER "hosts/vaxbsd.h" 2568EOF 2569 2570 ;; 2571 esac 2572 2573 case "$COREFILE" in 2574 aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 2575 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 2576 hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 2577 irix-core.lo) COREFLAG=-DIRIX_CORE ;; 2578 lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 2579 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 2580 osf-core.lo) COREFLAG=-DOSF_CORE ;; 2581 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 2582 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 2583 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 2584 esac 2585 2586 # The ELF code uses the native <sys/procfs.h> to handle core files. 2587 # Define HAVE_SYS_PROCFS_H if the file exists and defines 2588 # prstatus_t. 2589 echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6 2590echo "configure:2591: checking for sys/procfs.h" >&5 2591 if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then 2592 echo $ac_n "(cached) $ac_c" 1>&6 2593else 2594 cat > conftest.$ac_ext <<EOF 2595#line 2596 "configure" 2596#include "confdefs.h" 2597#include <sys/procfs.h> 2598int main() { 2599prstatus_t t; 2600; return 0; } 2601EOF 2602if { (eval echo configure:2603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2603 rm -rf conftest* 2604 bfd_cv_header_sys_procfs_h=yes 2605else 2606 echo "configure: failed program was:" >&5 2607 cat conftest.$ac_ext >&5 2608 rm -rf conftest* 2609 bfd_cv_header_sys_procfs_h=no 2610fi 2611rm -f conftest* 2612fi 2613 2614 echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6 2615 if test $bfd_cv_header_sys_procfs_h = yes; then 2616 cat >> confdefs.h <<\EOF 2617#define HAVE_SYS_PROCFS_H 1 2618EOF 2619 2620 fi 2621 2622fi 2623 2624 2625 2626# target stuff: 2627 2628# Canonicalize the secondary target names. 2629if test -n "$enable_targets" ; then 2630 for targ in `echo $enable_targets | sed 's/,/ /g'` 2631 do 2632 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null` 2633 if test -n "$result" ; then 2634 canon_targets="$canon_targets $result" 2635 else 2636 # Allow targets that config.sub doesn't recognize, like "all". 2637 canon_targets="$canon_targets $targ" 2638 fi 2639 done 2640fi 2641 2642all_targets=false 2643defvec= 2644selvecs= 2645selarchs= 2646TDEFINES= 2647for targ in $target $canon_targets 2648do 2649 if test "x$targ" = "xall"; then 2650 all_targets=true 2651 else 2652 . $srcdir/config.bfd 2653 if test "x$targ" = "x$target"; then 2654 defvec=$targ_defvec 2655 fi 2656 selvecs="$selvecs $targ_defvec $targ_selvecs" 2657 selarchs="$selarchs $targ_archs" 2658 TDEFINES="$TDEFINES $targ_cflags" 2659 fi 2660done 2661 2662 2663# This processing still needs to be done if we're to decide properly whether 2664# 64-bit support needs to be compiled in. Currently, it will be included if 2665# the default or any other explicitly requested target requires it; it 2666# will not be included on a 32-bit host if no 64-bit target is requested, and 2667# no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is 2668# used. 2669 2670# uniq the default and selected vectors in all the configured targets. 2671f="" 2672for i in $selvecs ; do 2673 case " $f " in 2674 *" $i "*) ;; 2675 *) f="$f $i" ;; 2676 esac 2677done 2678selvecs="$f" 2679 2680 2681# uniq the architectures in all the configured targets. 2682f="" 2683for i in $selarchs ; do 2684 case " $f " in 2685 *" $i "*) ;; 2686 *) f="$f $i" ;; 2687 esac 2688done 2689selarchs="$f" 2690 2691# Target backend .o files. 2692tb= 2693 2694elf="elf.lo elflink.lo dwarf2.lo" 2695 2696for vec in $selvecs 2697do 2698 case "$vec" in 2699 # This list is alphabetized to make it easy to compare 2700 # with the two vector lists in targets.c. 2701 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; 2702 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; 2703 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 2704 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 2705 armpe_little_vec) tb="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;; 2706 armpe_big_vec) tb="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;; 2707 armpei_little_vec) tb="$tb pei-arm.lo cofflink.lo " ;; 2708 armpei_big_vec) tb="$tb pei-arm.lo cofflink.lo " ;; 2709 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; 2710 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; 2711 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; 2712 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 2713 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 2714 apollocoff_vec) tb="$tb coff-apollo.lo" ;; 2715 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; 2716 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; 2717 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf" 2718 target64=true ;; 2719 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 2720 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 2721 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 2722 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 2723 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" 2724 target64=true ;; 2725 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 2726 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 2727 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; 2728 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 2729 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 2730 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 2731 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" 2732 target64=true ;; 2733 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 2734 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 2735 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; 2736 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 2737 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 2738 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 2739 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 2740 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 2741 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 2742 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; 2743 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 2744 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" 2745 target64=true ;; 2746 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" 2747 target64=true ;; 2748 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf" 2749 target64=true ;; 2750 cisco_core_vec) tb="$tb cisco-core.lo" ;; 2751 demo_64_vec) tb="$tb demo64.lo aout64.lo" 2752 target64=true ;; 2753 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 2754 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 2755 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 2756 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo" 2757 target64=true ;; 2758 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; 2759 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; 2760 evax_alpha_vec) tb="$tb evax-alpha.lo evax-emh.lo evax-egsd.lo evax-etir.lo evax-misc.lo" 2761 target64=true ;; 2762 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; 2763 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; 2764 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 2765 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; 2766 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; 2767 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 2768 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 2769 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; 2770 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; 2771 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; 2772 i386msdos_vec) tb="$tb i386msdos.lo" ;; 2773 i386pe_vec) tb="$tb pe-i386.lo cofflink.lo " ;; 2774 i386pei_vec) tb="$tb pei-i386.lo cofflink.lo" ;; 2775 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; 2776 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 2777 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; 2778 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; 2779 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 2780 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; 2781 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; 2782 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 2783 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 2784 ieee_vec) tb="$tb ieee.lo" ;; 2785 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; 2786 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; 2787 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; 2788 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; 2789 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; 2790 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; 2791 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; 2792 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; 2793 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; 2794 m88kbcs_vec) tb="$tb coff-m88k.lo" ;; 2795 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; 2796 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; 2797 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; 2798 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo" 2799 target64=true ;; 2800 riscix_vec) tb="$tb aout32.lo riscix.lo" ;; 2801 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; 2802 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 2803 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 2804 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;; 2805 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 2806 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;; 2807 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;; 2808 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;; 2809 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;; 2810 ppcboot_vec) tb="$tb ppcboot.lo" ;; 2811 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 2812 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 2813 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 2814 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 2815 som_vec) tb="$tb som.lo" ;; 2816 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; 2817 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; 2818 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; 2819 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; 2820 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; 2821 sparccoff_vec) tb="$tb coff-sparc.lo" ;; 2822 srec_vec) tb="$tb srec.lo" ;; 2823 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; 2824 symbolsrec_vec) tb="$tb srec.lo" ;; 2825 tekhex_vec) tb="$tb tekhex.lo" ;; 2826 tic30_aout_vec) tb="$tb aout-tic30.lo" ;; 2827 tic30_coff_vec) tb="$tb coff-tic30.lo" ;; 2828 we32kcoff_vec) tb="$tb coff-we32k.lo" ;; 2829 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; 2830 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; 2831 versados_vec) tb="$tb versados.lo" ;; 2832 2833 "") ;; 2834 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;; 2835 esac 2836done 2837 2838# Target architecture .o files. 2839# A couple of CPUs use shorter file names to avoid problems on DOS 2840# filesystems. 2841ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 2842 2843# Weed out duplicate .o files. 2844f="" 2845for i in $tb ; do 2846 case " $f " in 2847 *" $i "*) ;; 2848 *) f="$f $i" ;; 2849 esac 2850done 2851tb="$f" 2852 2853f="" 2854for i in $ta ; do 2855 case " $f " in 2856 *" $i "*) ;; 2857 *) f="$f $i" ;; 2858 esac 2859done 2860ta="$f" 2861 2862bfd_backends="$tb" 2863bfd_machines="$ta" 2864 2865if test x${all_targets} = xtrue ; then 2866 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 2867 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 2868 selvecs= 2869 havevecs= 2870 selarchs= 2871else # all_targets is true 2872 # Only set these if they will be nonempty, for the clever echo. 2873 havevecs= 2874 test -n "$selvecs" && 2875 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 2876 test -n "$selvecs" && 2877 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 2878 test -n "$selarchs" && 2879 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 2880fi # all_targets is true 2881 2882case ${host64}-${target64}-${want64} in 2883 *true*) 2884 wordsize=64 2885 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 2886 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then 2887 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2 2888 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2 2889 fi 2890 ;; 2891 false-false-false) 2892 wordsize=32 2893 all_backends='$(BFD32_BACKENDS)' 2894 ;; 2895esac 2896 2897 2898 2899 2900 2901 2902tdefaults="" 2903test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 2904test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 2905test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 2906test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" 2907 2908 2909for ac_hdr in unistd.h 2910do 2911ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2912echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2913echo "configure:2914: checking for $ac_hdr" >&5 2914if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2915 echo $ac_n "(cached) $ac_c" 1>&6 2916else 2917 cat > conftest.$ac_ext <<EOF 2918#line 2919 "configure" 2919#include "confdefs.h" 2920#include <$ac_hdr> 2921EOF 2922ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2923{ (eval echo configure:2924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2924ac_err=`grep -v '^ *+' conftest.out` 2925if test -z "$ac_err"; then 2926 rm -rf conftest* 2927 eval "ac_cv_header_$ac_safe=yes" 2928else 2929 echo "$ac_err" >&5 2930 echo "configure: failed program was:" >&5 2931 cat conftest.$ac_ext >&5 2932 rm -rf conftest* 2933 eval "ac_cv_header_$ac_safe=no" 2934fi 2935rm -f conftest* 2936fi 2937if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2938 echo "$ac_t""yes" 1>&6 2939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2940 cat >> confdefs.h <<EOF 2941#define $ac_tr_hdr 1 2942EOF 2943 2944else 2945 echo "$ac_t""no" 1>&6 2946fi 2947done 2948 2949for ac_func in getpagesize 2950do 2951echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2952echo "configure:2953: checking for $ac_func" >&5 2953if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2954 echo $ac_n "(cached) $ac_c" 1>&6 2955else 2956 cat > conftest.$ac_ext <<EOF 2957#line 2958 "configure" 2958#include "confdefs.h" 2959/* System header to define __stub macros and hopefully few prototypes, 2960 which can conflict with char $ac_func(); below. */ 2961#include <assert.h> 2962/* Override any gcc2 internal prototype to avoid an error. */ 2963/* We use char because int might match the return type of a gcc2 2964 builtin and then its argument prototype would still apply. */ 2965char $ac_func(); 2966 2967int main() { 2968 2969/* The GNU C library defines this for functions which it implements 2970 to always fail with ENOSYS. Some functions are actually named 2971 something starting with __ and the normal name is an alias. */ 2972#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2973choke me 2974#else 2975$ac_func(); 2976#endif 2977 2978; return 0; } 2979EOF 2980if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2981 rm -rf conftest* 2982 eval "ac_cv_func_$ac_func=yes" 2983else 2984 echo "configure: failed program was:" >&5 2985 cat conftest.$ac_ext >&5 2986 rm -rf conftest* 2987 eval "ac_cv_func_$ac_func=no" 2988fi 2989rm -f conftest* 2990fi 2991 2992if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2993 echo "$ac_t""yes" 1>&6 2994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2995 cat >> confdefs.h <<EOF 2996#define $ac_tr_func 1 2997EOF 2998 2999else 3000 echo "$ac_t""no" 1>&6 3001fi 3002done 3003 3004echo $ac_n "checking for working mmap""... $ac_c" 1>&6 3005echo "configure:3006: checking for working mmap" >&5 3006if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 3007 echo $ac_n "(cached) $ac_c" 1>&6 3008else 3009 if test "$cross_compiling" = yes; then 3010 ac_cv_func_mmap_fixed_mapped=no 3011else 3012 cat > conftest.$ac_ext <<EOF 3013#line 3014 "configure" 3014#include "confdefs.h" 3015 3016/* Thanks to Mike Haertel and Jim Avera for this test. 3017 Here is a matrix of mmap possibilities: 3018 mmap private not fixed 3019 mmap private fixed at somewhere currently unmapped 3020 mmap private fixed at somewhere already mapped 3021 mmap shared not fixed 3022 mmap shared fixed at somewhere currently unmapped 3023 mmap shared fixed at somewhere already mapped 3024 For private mappings, we should verify that changes cannot be read() 3025 back from the file, nor mmap's back from the file at a different 3026 address. (There have been systems where private was not correctly 3027 implemented like the infamous i386 svr4.0, and systems where the 3028 VM page cache was not coherent with the filesystem buffer cache 3029 like early versions of FreeBSD and possibly contemporary NetBSD.) 3030 For shared mappings, we should conversely verify that changes get 3031 propogated back to all the places they're supposed to be. 3032 3033 Grep wants private fixed already mapped. 3034 The main things grep needs to know about mmap are: 3035 * does it exist and is it safe to write into the mmap'd area 3036 * how to use it (BSD variants) */ 3037#include <sys/types.h> 3038#include <fcntl.h> 3039#include <sys/mman.h> 3040 3041/* This mess was copied from the GNU getpagesize.h. */ 3042#ifndef HAVE_GETPAGESIZE 3043# ifdef HAVE_UNISTD_H 3044# include <unistd.h> 3045# endif 3046 3047/* Assume that all systems that can run configure have sys/param.h. */ 3048# ifndef HAVE_SYS_PARAM_H 3049# define HAVE_SYS_PARAM_H 1 3050# endif 3051 3052# ifdef _SC_PAGESIZE 3053# define getpagesize() sysconf(_SC_PAGESIZE) 3054# else /* no _SC_PAGESIZE */ 3055# ifdef HAVE_SYS_PARAM_H 3056# include <sys/param.h> 3057# ifdef EXEC_PAGESIZE 3058# define getpagesize() EXEC_PAGESIZE 3059# else /* no EXEC_PAGESIZE */ 3060# ifdef NBPG 3061# define getpagesize() NBPG * CLSIZE 3062# ifndef CLSIZE 3063# define CLSIZE 1 3064# endif /* no CLSIZE */ 3065# else /* no NBPG */ 3066# ifdef NBPC 3067# define getpagesize() NBPC 3068# else /* no NBPC */ 3069# ifdef PAGESIZE 3070# define getpagesize() PAGESIZE 3071# endif /* PAGESIZE */ 3072# endif /* no NBPC */ 3073# endif /* no NBPG */ 3074# endif /* no EXEC_PAGESIZE */ 3075# else /* no HAVE_SYS_PARAM_H */ 3076# define getpagesize() 8192 /* punt totally */ 3077# endif /* no HAVE_SYS_PARAM_H */ 3078# endif /* no _SC_PAGESIZE */ 3079 3080#endif /* no HAVE_GETPAGESIZE */ 3081 3082#ifdef __cplusplus 3083extern "C" { void *malloc(unsigned); } 3084#else 3085char *malloc(); 3086#endif 3087 3088int 3089main() 3090{ 3091 char *data, *data2, *data3; 3092 int i, pagesize; 3093 int fd; 3094 3095 pagesize = getpagesize(); 3096 3097 /* 3098 * First, make a file with some known garbage in it. 3099 */ 3100 data = malloc(pagesize); 3101 if (!data) 3102 exit(1); 3103 for (i = 0; i < pagesize; ++i) 3104 *(data + i) = rand(); 3105 umask(0); 3106 fd = creat("conftestmmap", 0600); 3107 if (fd < 0) 3108 exit(1); 3109 if (write(fd, data, pagesize) != pagesize) 3110 exit(1); 3111 close(fd); 3112 3113 /* 3114 * Next, try to mmap the file at a fixed address which 3115 * already has something else allocated at it. If we can, 3116 * also make sure that we see the same garbage. 3117 */ 3118 fd = open("conftestmmap", O_RDWR); 3119 if (fd < 0) 3120 exit(1); 3121 data2 = malloc(2 * pagesize); 3122 if (!data2) 3123 exit(1); 3124 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 3125 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 3126 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 3127 exit(1); 3128 for (i = 0; i < pagesize; ++i) 3129 if (*(data + i) != *(data2 + i)) 3130 exit(1); 3131 3132 /* 3133 * Finally, make sure that changes to the mapped area 3134 * do not percolate back to the file as seen by read(). 3135 * (This is a bug on some variants of i386 svr4.0.) 3136 */ 3137 for (i = 0; i < pagesize; ++i) 3138 *(data2 + i) = *(data2 + i) + 1; 3139 data3 = malloc(pagesize); 3140 if (!data3) 3141 exit(1); 3142 if (read(fd, data3, pagesize) != pagesize) 3143 exit(1); 3144 for (i = 0; i < pagesize; ++i) 3145 if (*(data + i) != *(data3 + i)) 3146 exit(1); 3147 close(fd); 3148 unlink("conftestmmap"); 3149 exit(0); 3150} 3151 3152EOF 3153if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 3154then 3155 ac_cv_func_mmap_fixed_mapped=yes 3156else 3157 echo "configure: failed program was:" >&5 3158 cat conftest.$ac_ext >&5 3159 rm -fr conftest* 3160 ac_cv_func_mmap_fixed_mapped=no 3161fi 3162rm -fr conftest* 3163fi 3164 3165fi 3166 3167echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 3168if test $ac_cv_func_mmap_fixed_mapped = yes; then 3169 cat >> confdefs.h <<\EOF 3170#define HAVE_MMAP 1 3171EOF 3172 3173fi 3174 3175for ac_func in madvise mprotect 3176do 3177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3178echo "configure:3179: checking for $ac_func" >&5 3179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3180 echo $ac_n "(cached) $ac_c" 1>&6 3181else 3182 cat > conftest.$ac_ext <<EOF 3183#line 3184 "configure" 3184#include "confdefs.h" 3185/* System header to define __stub macros and hopefully few prototypes, 3186 which can conflict with char $ac_func(); below. */ 3187#include <assert.h> 3188/* Override any gcc2 internal prototype to avoid an error. */ 3189/* We use char because int might match the return type of a gcc2 3190 builtin and then its argument prototype would still apply. */ 3191char $ac_func(); 3192 3193int main() { 3194 3195/* The GNU C library defines this for functions which it implements 3196 to always fail with ENOSYS. Some functions are actually named 3197 something starting with __ and the normal name is an alias. */ 3198#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3199choke me 3200#else 3201$ac_func(); 3202#endif 3203 3204; return 0; } 3205EOF 3206if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3207 rm -rf conftest* 3208 eval "ac_cv_func_$ac_func=yes" 3209else 3210 echo "configure: failed program was:" >&5 3211 cat conftest.$ac_ext >&5 3212 rm -rf conftest* 3213 eval "ac_cv_func_$ac_func=no" 3214fi 3215rm -f conftest* 3216fi 3217 3218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3219 echo "$ac_t""yes" 1>&6 3220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3221 cat >> confdefs.h <<EOF 3222#define $ac_tr_func 1 3223EOF 3224 3225else 3226 echo "$ac_t""no" 1>&6 3227fi 3228done 3229 3230case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 3231 true+yes ) cat >> confdefs.h <<\EOF 3232#define USE_MMAP 1 3233EOF 3234 ;; 3235esac 3236 3237rm -f doc/config.status 3238trap '' 1 2 15 3239cat > confcache <<\EOF 3240# This file is a shell script that caches the results of configure 3241# tests run on this system so they can be shared between configure 3242# scripts and configure runs. It is not useful on other systems. 3243# If it contains results you don't want to keep, you may remove or edit it. 3244# 3245# By default, configure uses ./config.cache as the cache file, 3246# creating it if it does not exist already. You can give configure 3247# the --cache-file=FILE option to use a different cache file; that is 3248# what configure does when it calls configure scripts in 3249# subdirectories, so they share the cache. 3250# Giving --cache-file=/dev/null disables caching, for debugging configure. 3251# config.status only pays attention to the cache file if you give it the 3252# --recheck option to rerun configure. 3253# 3254EOF 3255# The following way of writing the cache mishandles newlines in values, 3256# but we know of no workaround that is simple, portable, and efficient. 3257# So, don't put newlines in cache variables' values. 3258# Ultrix sh set writes to stderr and can't be redirected directly, 3259# and sets the high bit in the cache file unless we assign to the vars. 3260(set) 2>&1 | 3261 case `(ac_space=' '; set) 2>&1 | grep ac_space` in 3262 *ac_space=\ *) 3263 # `set' does not quote correctly, so add quotes (double-quote substitution 3264 # turns \\\\ into \\, and sed turns \\ into \). 3265 sed -n \ 3266 -e "s/'/'\\\\''/g" \ 3267 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 3268 ;; 3269 *) 3270 # `set' quotes correctly as required by POSIX, so do not add quotes. 3271 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 3272 ;; 3273 esac >> confcache 3274if cmp -s $cache_file confcache; then 3275 : 3276else 3277 if test -w $cache_file; then 3278 echo "updating cache $cache_file" 3279 cat confcache > $cache_file 3280 else 3281 echo "not updating unwritable cache $cache_file" 3282 fi 3283fi 3284rm -f confcache 3285 3286trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 3287 3288test "x$prefix" = xNONE && prefix=$ac_default_prefix 3289# Let make expand exec_prefix. 3290test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3291 3292# Any assignment to VPATH causes Sun make to only execute 3293# the first set of double-colon rules, so remove it if not needed. 3294# If there is a colon in the path, we need to keep it. 3295if test "x$srcdir" = x.; then 3296 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 3297fi 3298 3299trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 3300 3301DEFS=-DHAVE_CONFIG_H 3302 3303# Without the "./", some shells look in PATH for config.status. 3304: ${CONFIG_STATUS=./config.status} 3305 3306echo creating $CONFIG_STATUS 3307rm -f $CONFIG_STATUS 3308cat > $CONFIG_STATUS <<EOF 3309#! /bin/sh 3310# Generated automatically by configure. 3311# Run this file to recreate the current configuration. 3312# This directory was configured as follows, 3313# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3314# 3315# $0 $ac_configure_args 3316# 3317# Compiler output produced by configure, useful for debugging 3318# configure, is in ./config.log if it exists. 3319 3320ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 3321for ac_option 3322do 3323 case "\$ac_option" in 3324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3325 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 3326 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 3327 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 3328 echo "$CONFIG_STATUS generated by autoconf version 2.12.1" 3329 exit 0 ;; 3330 -help | --help | --hel | --he | --h) 3331 echo "\$ac_cs_usage"; exit 0 ;; 3332 *) echo "\$ac_cs_usage"; exit 1 ;; 3333 esac 3334done 3335 3336ac_given_srcdir=$srcdir 3337ac_given_INSTALL="$INSTALL" 3338 3339trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 3340EOF 3341cat >> $CONFIG_STATUS <<EOF 3342 3343# Protect against being on the right side of a sed subst in config.status. 3344sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 3345 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 3346$ac_vpsub 3347$extrasub 3348s%@SHELL@%$SHELL%g 3349s%@CFLAGS@%$CFLAGS%g 3350s%@CPPFLAGS@%$CPPFLAGS%g 3351s%@CXXFLAGS@%$CXXFLAGS%g 3352s%@DEFS@%$DEFS%g 3353s%@LDFLAGS@%$LDFLAGS%g 3354s%@LIBS@%$LIBS%g 3355s%@exec_prefix@%$exec_prefix%g 3356s%@prefix@%$prefix%g 3357s%@program_transform_name@%$program_transform_name%g 3358s%@bindir@%$bindir%g 3359s%@sbindir@%$sbindir%g 3360s%@libexecdir@%$libexecdir%g 3361s%@datadir@%$datadir%g 3362s%@sysconfdir@%$sysconfdir%g 3363s%@sharedstatedir@%$sharedstatedir%g 3364s%@localstatedir@%$localstatedir%g 3365s%@libdir@%$libdir%g 3366s%@includedir@%$includedir%g 3367s%@oldincludedir@%$oldincludedir%g 3368s%@infodir@%$infodir%g 3369s%@mandir@%$mandir%g 3370s%@host@%$host%g 3371s%@host_alias@%$host_alias%g 3372s%@host_cpu@%$host_cpu%g 3373s%@host_vendor@%$host_vendor%g 3374s%@host_os@%$host_os%g 3375s%@target@%$target%g 3376s%@target_alias@%$target_alias%g 3377s%@target_cpu@%$target_cpu%g 3378s%@target_vendor@%$target_vendor%g 3379s%@target_os@%$target_os%g 3380s%@build@%$build%g 3381s%@build_alias@%$build_alias%g 3382s%@build_cpu@%$build_cpu%g 3383s%@build_vendor@%$build_vendor%g 3384s%@build_os@%$build_os%g 3385s%@CC@%$CC%g 3386s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3387s%@INSTALL_DATA@%$INSTALL_DATA%g 3388s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 3389s%@PACKAGE@%$PACKAGE%g 3390s%@VERSION@%$VERSION%g 3391s%@ACLOCAL@%$ACLOCAL%g 3392s%@AUTOCONF@%$AUTOCONF%g 3393s%@AUTOMAKE@%$AUTOMAKE%g 3394s%@AUTOHEADER@%$AUTOHEADER%g 3395s%@MAKEINFO@%$MAKEINFO%g 3396s%@SET_MAKE@%$SET_MAKE%g 3397s%@AR@%$AR%g 3398s%@RANLIB@%$RANLIB%g 3399s%@LD@%$LD%g 3400s%@NM@%$NM%g 3401s%@LN_S@%$LN_S%g 3402s%@LIBTOOL@%$LIBTOOL%g 3403s%@MAINT@%$MAINT%g 3404s%@EXEEXT@%$EXEEXT%g 3405s%@HDEFINES@%$HDEFINES%g 3406s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g 3407s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g 3408s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g 3409s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g 3410s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g 3411s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g 3412s%@CPP@%$CPP%g 3413s%@COREFILE@%$COREFILE%g 3414s%@COREFLAG@%$COREFLAG%g 3415s%@TDEFINES@%$TDEFINES%g 3416s%@wordsize@%$wordsize%g 3417s%@all_backends@%$all_backends%g 3418s%@bfd_backends@%$bfd_backends%g 3419s%@bfd_machines@%$bfd_machines%g 3420s%@tdefaults@%$tdefaults%g 3421 3422CEOF 3423EOF 3424 3425cat >> $CONFIG_STATUS <<\EOF 3426 3427# Split the substitutions into bite-sized pieces for seds with 3428# small command number limits, like on Digital OSF/1 and HP-UX. 3429ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3430ac_file=1 # Number of current file. 3431ac_beg=1 # First line for current file. 3432ac_end=$ac_max_sed_cmds # Line after last line for current file. 3433ac_more_lines=: 3434ac_sed_cmds="" 3435while $ac_more_lines; do 3436 if test $ac_beg -gt 1; then 3437 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 3438 else 3439 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 3440 fi 3441 if test ! -s conftest.s$ac_file; then 3442 ac_more_lines=false 3443 rm -f conftest.s$ac_file 3444 else 3445 if test -z "$ac_sed_cmds"; then 3446 ac_sed_cmds="sed -f conftest.s$ac_file" 3447 else 3448 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3449 fi 3450 ac_file=`expr $ac_file + 1` 3451 ac_beg=$ac_end 3452 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3453 fi 3454done 3455if test -z "$ac_sed_cmds"; then 3456 ac_sed_cmds=cat 3457fi 3458EOF 3459 3460cat >> $CONFIG_STATUS <<EOF 3461 3462CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h"} 3463EOF 3464cat >> $CONFIG_STATUS <<\EOF 3465for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3466 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3467 case "$ac_file" in 3468 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3469 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3470 *) ac_file_in="${ac_file}.in" ;; 3471 esac 3472 3473 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3474 3475 # Remove last slash and all that follows it. Not all systems have dirname. 3476 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3477 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3478 # The file is in a subdirectory. 3479 test ! -d "$ac_dir" && mkdir "$ac_dir" 3480 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 3481 # A "../" for each directory in $ac_dir_suffix. 3482 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 3483 else 3484 ac_dir_suffix= ac_dots= 3485 fi 3486 3487 case "$ac_given_srcdir" in 3488 .) srcdir=. 3489 if test -z "$ac_dots"; then top_srcdir=. 3490 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3491 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 3492 *) # Relative path. 3493 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 3494 top_srcdir="$ac_dots$ac_given_srcdir" ;; 3495 esac 3496 3497 case "$ac_given_INSTALL" in 3498 [/$]*) INSTALL="$ac_given_INSTALL" ;; 3499 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 3500 esac 3501 3502 echo creating "$ac_file" 3503 rm -f "$ac_file" 3504 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3505 case "$ac_file" in 3506 *Makefile*) ac_comsub="1i\\ 3507# $configure_input" ;; 3508 *) ac_comsub= ;; 3509 esac 3510 3511 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3512 sed -e "$ac_comsub 3513s%@configure_input@%$configure_input%g 3514s%@srcdir@%$srcdir%g 3515s%@top_srcdir@%$top_srcdir%g 3516s%@INSTALL@%$INSTALL%g 3517" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 3518fi; done 3519rm -f conftest.s* 3520 3521# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 3522# NAME is the cpp macro being defined and VALUE is the value it is being given. 3523# 3524# ac_d sets the value in "#define NAME VALUE" lines. 3525ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 3526ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 3527ac_dC='\3' 3528ac_dD='%g' 3529# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 3530ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3531ac_uB='\([ ]\)%\1#\2define\3' 3532ac_uC=' ' 3533ac_uD='\4%g' 3534# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3535ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3536ac_eB='$%\1#\2define\3' 3537ac_eC=' ' 3538ac_eD='%g' 3539 3540if test "${CONFIG_HEADERS+set}" != set; then 3541EOF 3542cat >> $CONFIG_STATUS <<EOF 3543 CONFIG_HEADERS="config.h:config.in" 3544EOF 3545cat >> $CONFIG_STATUS <<\EOF 3546fi 3547for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 3548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3549 case "$ac_file" in 3550 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3551 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3552 *) ac_file_in="${ac_file}.in" ;; 3553 esac 3554 3555 echo creating $ac_file 3556 3557 rm -f conftest.frag conftest.in conftest.out 3558 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3559 cat $ac_file_inputs > conftest.in 3560 3561EOF 3562 3563# Transform confdefs.h into a sed script conftest.vals that substitutes 3564# the proper values into config.h.in to produce config.h. And first: 3565# Protect against being on the right side of a sed subst in config.status. 3566# Protect against being in an unquoted here document in config.status. 3567rm -f conftest.vals 3568cat > conftest.hdr <<\EOF 3569s/[\\&%]/\\&/g 3570s%[\\$`]%\\&%g 3571s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 3572s%ac_d%ac_u%gp 3573s%ac_u%ac_e%gp 3574EOF 3575sed -n -f conftest.hdr confdefs.h > conftest.vals 3576rm -f conftest.hdr 3577 3578# This sed command replaces #undef with comments. This is necessary, for 3579# example, in the case of _POSIX_SOURCE, which is predefined and required 3580# on some systems where configure will not decide to define it. 3581cat >> conftest.vals <<\EOF 3582s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 3583EOF 3584 3585# Break up conftest.vals because some shells have a limit on 3586# the size of here documents, and old seds have small limits too. 3587 3588rm -f conftest.tail 3589while : 3590do 3591 ac_lines=`grep -c . conftest.vals` 3592 # grep -c gives empty output for an empty file on some AIX systems. 3593 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 3594 # Write a limited-size here document to conftest.frag. 3595 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 3596 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 3597 echo 'CEOF 3598 sed -f conftest.frag conftest.in > conftest.out 3599 rm -f conftest.in 3600 mv conftest.out conftest.in 3601' >> $CONFIG_STATUS 3602 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 3603 rm -f conftest.vals 3604 mv conftest.tail conftest.vals 3605done 3606rm -f conftest.vals 3607 3608cat >> $CONFIG_STATUS <<\EOF 3609 rm -f conftest.frag conftest.h 3610 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 3611 cat conftest.in >> conftest.h 3612 rm -f conftest.in 3613 if cmp -s $ac_file conftest.h 2>/dev/null; then 3614 echo "$ac_file is unchanged" 3615 rm -f conftest.h 3616 else 3617 # Remove last slash and all that follows it. Not all systems have dirname. 3618 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3619 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3620 # The file is in a subdirectory. 3621 test ! -d "$ac_dir" && mkdir "$ac_dir" 3622 fi 3623 rm -f $ac_file 3624 mv conftest.h $ac_file 3625 fi 3626fi; done 3627 3628EOF 3629cat >> $CONFIG_STATUS <<EOF 3630 3631 3632EOF 3633cat >> $CONFIG_STATUS <<\EOF 3634test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3635 3636exit 0 3637EOF 3638chmod +x $CONFIG_STATUS 3639rm -fr confdefs* $ac_clean_files 3640test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3641 3642