configure revision 61843
1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --enable-shared[=PKGS] build shared libraries [default=no]" 16ac_help="$ac_help 17 --enable-static[=PKGS] build static libraries [default=yes]" 18ac_help="$ac_help 19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 20ac_help="$ac_help 21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 22ac_help="$ac_help 23 --disable-libtool-lock avoid locking (might break parallel builds)" 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" 35ac_help="$ac_help 36 --disable-nls do not use Native Language Support" 37ac_help="$ac_help 38 --with-included-gettext use the GNU gettext library included here" 39 40# Initialize some variables set by options. 41# The variables have the same names as the options, with 42# dashes changed to underlines. 43build=NONE 44cache_file=./config.cache 45exec_prefix=NONE 46host=NONE 47no_create= 48nonopt=NONE 49no_recursion= 50prefix=NONE 51program_prefix=NONE 52program_suffix=NONE 53program_transform_name=s,x,x, 54silent= 55site= 56srcdir= 57target=NONE 58verbose= 59x_includes=NONE 60x_libraries=NONE 61bindir='${exec_prefix}/bin' 62sbindir='${exec_prefix}/sbin' 63libexecdir='${exec_prefix}/libexec' 64datadir='${prefix}/share' 65sysconfdir='${prefix}/etc' 66sharedstatedir='${prefix}/com' 67localstatedir='${prefix}/var' 68libdir='${exec_prefix}/lib' 69includedir='${prefix}/include' 70oldincludedir='/usr/include' 71infodir='${prefix}/info' 72mandir='${prefix}/man' 73 74# Initialize some other variables. 75subdirs= 76MFLAGS= MAKEFLAGS= 77SHELL=${CONFIG_SHELL-/bin/sh} 78# Maximum number of lines to put in a shell here document. 79ac_max_here_lines=12 80 81ac_prev= 82for ac_option 83do 84 85 # If the previous option needs an argument, assign it. 86 if test -n "$ac_prev"; then 87 eval "$ac_prev=\$ac_option" 88 ac_prev= 89 continue 90 fi 91 92 case "$ac_option" in 93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 94 *) ac_optarg= ;; 95 esac 96 97 # Accept the important Cygnus configure options, so we can diagnose typos. 98 99 case "$ac_option" in 100 101 -bindir | --bindir | --bindi | --bind | --bin | --bi) 102 ac_prev=bindir ;; 103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 104 bindir="$ac_optarg" ;; 105 106 -build | --build | --buil | --bui | --bu) 107 ac_prev=build ;; 108 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 109 build="$ac_optarg" ;; 110 111 -cache-file | --cache-file | --cache-fil | --cache-fi \ 112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 113 ac_prev=cache_file ;; 114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 116 cache_file="$ac_optarg" ;; 117 118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 119 ac_prev=datadir ;; 120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 121 | --da=*) 122 datadir="$ac_optarg" ;; 123 124 -disable-* | --disable-*) 125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 126 # Reject names that are not valid shell variable names. 127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 129 fi 130 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 131 eval "enable_${ac_feature}=no" ;; 132 133 -enable-* | --enable-*) 134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 135 # Reject names that are not valid shell variable names. 136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 138 fi 139 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 140 case "$ac_option" in 141 *=*) ;; 142 *) ac_optarg=yes ;; 143 esac 144 eval "enable_${ac_feature}='$ac_optarg'" ;; 145 146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 148 | --exec | --exe | --ex) 149 ac_prev=exec_prefix ;; 150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 152 | --exec=* | --exe=* | --ex=*) 153 exec_prefix="$ac_optarg" ;; 154 155 -gas | --gas | --ga | --g) 156 # Obsolete; use --with-gas. 157 with_gas=yes ;; 158 159 -help | --help | --hel | --he) 160 # Omit some internal or obsolete options to make the list less imposing. 161 # This message is too long to be a string in the A/UX 3.1 sh. 162 cat << EOF 163Usage: configure [options] [host] 164Options: [defaults in brackets after descriptions] 165Configuration: 166 --cache-file=FILE cache test results in FILE 167 --help print this message 168 --no-create do not create output files 169 --quiet, --silent do not print \`checking...' messages 170 --version print the version of autoconf that created configure 171Directory and file names: 172 --prefix=PREFIX install architecture-independent files in PREFIX 173 [$ac_default_prefix] 174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 175 [same as prefix] 176 --bindir=DIR user executables in DIR [EPREFIX/bin] 177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 179 --datadir=DIR read-only architecture-independent data in DIR 180 [PREFIX/share] 181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 182 --sharedstatedir=DIR modifiable architecture-independent data in DIR 183 [PREFIX/com] 184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 185 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 186 --includedir=DIR C header files in DIR [PREFIX/include] 187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 188 --infodir=DIR info documentation in DIR [PREFIX/info] 189 --mandir=DIR man documentation in DIR [PREFIX/man] 190 --srcdir=DIR find the sources in DIR [configure dir or ..] 191 --program-prefix=PREFIX prepend PREFIX to installed program names 192 --program-suffix=SUFFIX append SUFFIX to installed program names 193 --program-transform-name=PROGRAM 194 run sed PROGRAM on installed program names 195EOF 196 cat << EOF 197Host type: 198 --build=BUILD configure for building on BUILD [BUILD=HOST] 199 --host=HOST configure for HOST [guessed] 200 --target=TARGET configure for TARGET [TARGET=HOST] 201Features and packages: 202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 206 --x-includes=DIR X include files are in DIR 207 --x-libraries=DIR X library files are in DIR 208EOF 209 if test -n "$ac_help"; then 210 echo "--enable and --with options recognized:$ac_help" 211 fi 212 exit 0 ;; 213 214 -host | --host | --hos | --ho) 215 ac_prev=host ;; 216 -host=* | --host=* | --hos=* | --ho=*) 217 host="$ac_optarg" ;; 218 219 -includedir | --includedir | --includedi | --included | --include \ 220 | --includ | --inclu | --incl | --inc) 221 ac_prev=includedir ;; 222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 223 | --includ=* | --inclu=* | --incl=* | --inc=*) 224 includedir="$ac_optarg" ;; 225 226 -infodir | --infodir | --infodi | --infod | --info | --inf) 227 ac_prev=infodir ;; 228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 229 infodir="$ac_optarg" ;; 230 231 -libdir | --libdir | --libdi | --libd) 232 ac_prev=libdir ;; 233 -libdir=* | --libdir=* | --libdi=* | --libd=*) 234 libdir="$ac_optarg" ;; 235 236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 237 | --libexe | --libex | --libe) 238 ac_prev=libexecdir ;; 239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 240 | --libexe=* | --libex=* | --libe=*) 241 libexecdir="$ac_optarg" ;; 242 243 -localstatedir | --localstatedir | --localstatedi | --localstated \ 244 | --localstate | --localstat | --localsta | --localst \ 245 | --locals | --local | --loca | --loc | --lo) 246 ac_prev=localstatedir ;; 247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 250 localstatedir="$ac_optarg" ;; 251 252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 253 ac_prev=mandir ;; 254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 255 mandir="$ac_optarg" ;; 256 257 -nfp | --nfp | --nf) 258 # Obsolete; use --without-fp. 259 with_fp=no ;; 260 261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 262 | --no-cr | --no-c) 263 no_create=yes ;; 264 265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 267 no_recursion=yes ;; 268 269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 271 | --oldin | --oldi | --old | --ol | --o) 272 ac_prev=oldincludedir ;; 273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 276 oldincludedir="$ac_optarg" ;; 277 278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 279 ac_prev=prefix ;; 280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 281 prefix="$ac_optarg" ;; 282 283 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 284 | --program-pre | --program-pr | --program-p) 285 ac_prev=program_prefix ;; 286 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 288 program_prefix="$ac_optarg" ;; 289 290 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 291 | --program-suf | --program-su | --program-s) 292 ac_prev=program_suffix ;; 293 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 295 program_suffix="$ac_optarg" ;; 296 297 -program-transform-name | --program-transform-name \ 298 | --program-transform-nam | --program-transform-na \ 299 | --program-transform-n | --program-transform- \ 300 | --program-transform | --program-transfor \ 301 | --program-transfo | --program-transf \ 302 | --program-trans | --program-tran \ 303 | --progr-tra | --program-tr | --program-t) 304 ac_prev=program_transform_name ;; 305 -program-transform-name=* | --program-transform-name=* \ 306 | --program-transform-nam=* | --program-transform-na=* \ 307 | --program-transform-n=* | --program-transform-=* \ 308 | --program-transform=* | --program-transfor=* \ 309 | --program-transfo=* | --program-transf=* \ 310 | --program-trans=* | --program-tran=* \ 311 | --progr-tra=* | --program-tr=* | --program-t=*) 312 program_transform_name="$ac_optarg" ;; 313 314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 315 | -silent | --silent | --silen | --sile | --sil) 316 silent=yes ;; 317 318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 319 ac_prev=sbindir ;; 320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 321 | --sbi=* | --sb=*) 322 sbindir="$ac_optarg" ;; 323 324 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 326 | --sharedst | --shareds | --shared | --share | --shar \ 327 | --sha | --sh) 328 ac_prev=sharedstatedir ;; 329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 332 | --sha=* | --sh=*) 333 sharedstatedir="$ac_optarg" ;; 334 335 -site | --site | --sit) 336 ac_prev=site ;; 337 -site=* | --site=* | --sit=*) 338 site="$ac_optarg" ;; 339 340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 341 ac_prev=srcdir ;; 342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 343 srcdir="$ac_optarg" ;; 344 345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 346 | --syscon | --sysco | --sysc | --sys | --sy) 347 ac_prev=sysconfdir ;; 348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 350 sysconfdir="$ac_optarg" ;; 351 352 -target | --target | --targe | --targ | --tar | --ta | --t) 353 ac_prev=target ;; 354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 355 target="$ac_optarg" ;; 356 357 -v | -verbose | --verbose | --verbos | --verbo | --verb) 358 verbose=yes ;; 359 360 -version | --version | --versio | --versi | --vers) 361 echo "configure generated by autoconf version 2.13" 362 exit 0 ;; 363 364 -with-* | --with-*) 365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 366 # Reject names that are not valid shell variable names. 367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 369 fi 370 ac_package=`echo $ac_package| sed 's/-/_/g'` 371 case "$ac_option" in 372 *=*) ;; 373 *) ac_optarg=yes ;; 374 esac 375 eval "with_${ac_package}='$ac_optarg'" ;; 376 377 -without-* | --without-*) 378 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 379 # Reject names that are not valid shell variable names. 380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 382 fi 383 ac_package=`echo $ac_package| sed 's/-/_/g'` 384 eval "with_${ac_package}=no" ;; 385 386 --x) 387 # Obsolete; use --with-x. 388 with_x=yes ;; 389 390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 391 | --x-incl | --x-inc | --x-in | --x-i) 392 ac_prev=x_includes ;; 393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 395 x_includes="$ac_optarg" ;; 396 397 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 399 ac_prev=x_libraries ;; 400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 402 x_libraries="$ac_optarg" ;; 403 404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 405 ;; 406 407 *) 408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 409 echo "configure: warning: $ac_option: invalid host type" 1>&2 410 fi 411 if test "x$nonopt" != xNONE; then 412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 413 fi 414 nonopt="$ac_option" 415 ;; 416 417 esac 418done 419 420if test -n "$ac_prev"; then 421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 422fi 423 424trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 425 426# File descriptor usage: 427# 0 standard input 428# 1 file creation 429# 2 errors and warnings 430# 3 some systems may open it to /dev/tty 431# 4 used on the Kubota Titan 432# 6 checking for... messages and results 433# 5 compiler messages saved in config.log 434if test "$silent" = yes; then 435 exec 6>/dev/null 436else 437 exec 6>&1 438fi 439exec 5>./config.log 440 441echo "\ 442This file contains any messages produced by compilers while 443running configure, to aid debugging if configure makes a mistake. 444" 1>&5 445 446# Strip out --no-create and --no-recursion so they do not pile up. 447# Also quote any args containing shell metacharacters. 448ac_configure_args= 449for ac_arg 450do 451 case "$ac_arg" in 452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 453 | --no-cr | --no-c) ;; 454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 457 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 458 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 459 esac 460done 461 462# NLS nuisances. 463# Only set these to C if already set. These must not be set unconditionally 464# because not all systems understand e.g. LANG=C (notably SCO). 465# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 466# Non-C LC_CTYPE values break the ctype check. 467if test "${LANG+set}" = set; then LANG=C; export LANG; fi 468if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 469if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 470if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 471 472# confdefs.h avoids OS command line length limits that DEFS can exceed. 473rm -rf conftest* confdefs.h 474# AIX cpp loses on an empty file, so make sure it contains at least a newline. 475echo > confdefs.h 476 477# A filename unique to this package, relative to the directory that 478# configure is in, which we can look for to find out if srcdir is correct. 479ac_unique_file=libbfd.c 480 481# Find the source files, if location was not specified. 482if test -z "$srcdir"; then 483 ac_srcdir_defaulted=yes 484 # Try the directory containing this script, then its parent. 485 ac_prog=$0 486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 488 srcdir=$ac_confdir 489 if test ! -r $srcdir/$ac_unique_file; then 490 srcdir=.. 491 fi 492else 493 ac_srcdir_defaulted=no 494fi 495if test ! -r $srcdir/$ac_unique_file; then 496 if test "$ac_srcdir_defaulted" = yes; then 497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 498 else 499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 500 fi 501fi 502srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 503 504# Prefer explicitly selected file to automatically selected ones. 505if test -z "$CONFIG_SITE"; then 506 if test "x$prefix" != xNONE; then 507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 508 else 509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 510 fi 511fi 512for ac_site_file in $CONFIG_SITE; do 513 if test -r "$ac_site_file"; then 514 echo "loading site script $ac_site_file" 515 . "$ac_site_file" 516 fi 517done 518 519if test -r "$cache_file"; then 520 echo "loading cache $cache_file" 521 . $cache_file 522else 523 echo "creating cache $cache_file" 524 > $cache_file 525fi 526 527ac_ext=c 528# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 529ac_cpp='$CPP $CPPFLAGS' 530ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 531ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 532cross_compiling=$ac_cv_prog_cc_cross 533 534ac_exeext= 535ac_objext=o 536if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 539 ac_n= ac_c=' 540' ac_t=' ' 541 else 542 ac_n=-n ac_c= ac_t= 543 fi 544else 545 ac_n= ac_c='\c' ac_t= 546fi 547 548 549 550ac_aux_dir= 551for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 552 if test -f $ac_dir/install-sh; then 553 ac_aux_dir=$ac_dir 554 ac_install_sh="$ac_aux_dir/install-sh -c" 555 break 556 elif test -f $ac_dir/install.sh; then 557 ac_aux_dir=$ac_dir 558 ac_install_sh="$ac_aux_dir/install.sh -c" 559 break 560 fi 561done 562if test -z "$ac_aux_dir"; then 563 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 564fi 565ac_config_guess=$ac_aux_dir/config.guess 566ac_config_sub=$ac_aux_dir/config.sub 567ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 568 569 570# Do some error checking and defaulting for the host and target type. 571# The inputs are: 572# configure --host=HOST --target=TARGET --build=BUILD NONOPT 573# 574# The rules are: 575# 1. You are not allowed to specify --host, --target, and nonopt at the 576# same time. 577# 2. Host defaults to nonopt. 578# 3. If nonopt is not specified, then host defaults to the current host, 579# as determined by config.guess. 580# 4. Target and build default to nonopt. 581# 5. If nonopt is not specified, then target and build default to host. 582 583# The aliases save the names the user supplied, while $host etc. 584# will get canonicalized. 585case $host---$target---$nonopt in 586NONE---*---* | *---NONE---* | *---*---NONE) ;; 587*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 588esac 589 590 591# Make sure we can run config.sub. 592if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 593else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 594fi 595 596echo $ac_n "checking host system type""... $ac_c" 1>&6 597echo "configure:598: checking host system type" >&5 598 599host_alias=$host 600case "$host_alias" in 601NONE) 602 case $nonopt in 603 NONE) 604 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 605 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 606 fi ;; 607 *) host_alias=$nonopt ;; 608 esac ;; 609esac 610 611host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 612host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 613host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 614host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 615echo "$ac_t""$host" 1>&6 616 617echo $ac_n "checking target system type""... $ac_c" 1>&6 618echo "configure:619: checking target system type" >&5 619 620target_alias=$target 621case "$target_alias" in 622NONE) 623 case $nonopt in 624 NONE) target_alias=$host_alias ;; 625 *) target_alias=$nonopt ;; 626 esac ;; 627esac 628 629target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 630target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 631target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 632target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 633echo "$ac_t""$target" 1>&6 634 635echo $ac_n "checking build system type""... $ac_c" 1>&6 636echo "configure:637: checking build system type" >&5 637 638build_alias=$build 639case "$build_alias" in 640NONE) 641 case $nonopt in 642 NONE) build_alias=$host_alias ;; 643 *) build_alias=$nonopt ;; 644 esac ;; 645esac 646 647build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 648build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 649build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 650build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 651echo "$ac_t""$build" 1>&6 652 653test "$host_alias" != "$target_alias" && 654 test "$program_prefix$program_suffix$program_transform_name" = \ 655 NONENONEs,x,x, && 656 program_prefix=${target_alias}- 657 658# Extract the first word of "gcc", so it can be a program name with args. 659set dummy gcc; ac_word=$2 660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 661echo "configure:662: checking for $ac_word" >&5 662if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 663 echo $ac_n "(cached) $ac_c" 1>&6 664else 665 if test -n "$CC"; then 666 ac_cv_prog_CC="$CC" # Let the user override the test. 667else 668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 669 ac_dummy="$PATH" 670 for ac_dir in $ac_dummy; do 671 test -z "$ac_dir" && ac_dir=. 672 if test -f $ac_dir/$ac_word; then 673 ac_cv_prog_CC="gcc" 674 break 675 fi 676 done 677 IFS="$ac_save_ifs" 678fi 679fi 680CC="$ac_cv_prog_CC" 681if test -n "$CC"; then 682 echo "$ac_t""$CC" 1>&6 683else 684 echo "$ac_t""no" 1>&6 685fi 686 687if test -z "$CC"; then 688 # Extract the first word of "cc", so it can be a program name with args. 689set dummy cc; ac_word=$2 690echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 691echo "configure:692: checking for $ac_word" >&5 692if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 693 echo $ac_n "(cached) $ac_c" 1>&6 694else 695 if test -n "$CC"; then 696 ac_cv_prog_CC="$CC" # Let the user override the test. 697else 698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 699 ac_prog_rejected=no 700 ac_dummy="$PATH" 701 for ac_dir in $ac_dummy; do 702 test -z "$ac_dir" && ac_dir=. 703 if test -f $ac_dir/$ac_word; then 704 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 705 ac_prog_rejected=yes 706 continue 707 fi 708 ac_cv_prog_CC="cc" 709 break 710 fi 711 done 712 IFS="$ac_save_ifs" 713if test $ac_prog_rejected = yes; then 714 # We found a bogon in the path, so make sure we never use it. 715 set dummy $ac_cv_prog_CC 716 shift 717 if test $# -gt 0; then 718 # We chose a different compiler from the bogus one. 719 # However, it has the same basename, so the bogon will be chosen 720 # first if we set CC to just the basename; use the full file name. 721 shift 722 set dummy "$ac_dir/$ac_word" "$@" 723 shift 724 ac_cv_prog_CC="$@" 725 fi 726fi 727fi 728fi 729CC="$ac_cv_prog_CC" 730if test -n "$CC"; then 731 echo "$ac_t""$CC" 1>&6 732else 733 echo "$ac_t""no" 1>&6 734fi 735 736 if test -z "$CC"; then 737 case "`uname -s`" in 738 *win32* | *WIN32*) 739 # Extract the first word of "cl", so it can be a program name with args. 740set dummy cl; ac_word=$2 741echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 742echo "configure:743: checking for $ac_word" >&5 743if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 744 echo $ac_n "(cached) $ac_c" 1>&6 745else 746 if test -n "$CC"; then 747 ac_cv_prog_CC="$CC" # Let the user override the test. 748else 749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 750 ac_dummy="$PATH" 751 for ac_dir in $ac_dummy; do 752 test -z "$ac_dir" && ac_dir=. 753 if test -f $ac_dir/$ac_word; then 754 ac_cv_prog_CC="cl" 755 break 756 fi 757 done 758 IFS="$ac_save_ifs" 759fi 760fi 761CC="$ac_cv_prog_CC" 762if test -n "$CC"; then 763 echo "$ac_t""$CC" 1>&6 764else 765 echo "$ac_t""no" 1>&6 766fi 767 ;; 768 esac 769 fi 770 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 771fi 772 773echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 774echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 775 776ac_ext=c 777# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 778ac_cpp='$CPP $CPPFLAGS' 779ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 780ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 781cross_compiling=$ac_cv_prog_cc_cross 782 783cat > conftest.$ac_ext << EOF 784 785#line 786 "configure" 786#include "confdefs.h" 787 788main(){return(0);} 789EOF 790if { (eval echo configure:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 791 ac_cv_prog_cc_works=yes 792 # If we can't run a trivial program, we are probably using a cross compiler. 793 if (./conftest; exit) 2>/dev/null; then 794 ac_cv_prog_cc_cross=no 795 else 796 ac_cv_prog_cc_cross=yes 797 fi 798else 799 echo "configure: failed program was:" >&5 800 cat conftest.$ac_ext >&5 801 ac_cv_prog_cc_works=no 802fi 803rm -fr conftest* 804ac_ext=c 805# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 806ac_cpp='$CPP $CPPFLAGS' 807ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 808ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 809cross_compiling=$ac_cv_prog_cc_cross 810 811echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 812if test $ac_cv_prog_cc_works = no; then 813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 814fi 815echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 816echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 817echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 818cross_compiling=$ac_cv_prog_cc_cross 819 820echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 821echo "configure:822: checking whether we are using GNU C" >&5 822if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 823 echo $ac_n "(cached) $ac_c" 1>&6 824else 825 cat > conftest.c <<EOF 826#ifdef __GNUC__ 827 yes; 828#endif 829EOF 830if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 831 ac_cv_prog_gcc=yes 832else 833 ac_cv_prog_gcc=no 834fi 835fi 836 837echo "$ac_t""$ac_cv_prog_gcc" 1>&6 838 839if test $ac_cv_prog_gcc = yes; then 840 GCC=yes 841else 842 GCC= 843fi 844 845ac_test_CFLAGS="${CFLAGS+set}" 846ac_save_CFLAGS="$CFLAGS" 847CFLAGS= 848echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 849echo "configure:850: checking whether ${CC-cc} accepts -g" >&5 850if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 851 echo $ac_n "(cached) $ac_c" 1>&6 852else 853 echo 'void f(){}' > conftest.c 854if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 855 ac_cv_prog_cc_g=yes 856else 857 ac_cv_prog_cc_g=no 858fi 859rm -f conftest* 860 861fi 862 863echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 864if test "$ac_test_CFLAGS" = set; then 865 CFLAGS="$ac_save_CFLAGS" 866elif test $ac_cv_prog_cc_g = yes; then 867 if test "$GCC" = yes; then 868 CFLAGS="-g -O2" 869 else 870 CFLAGS="-g" 871 fi 872else 873 if test "$GCC" = yes; then 874 CFLAGS="-O2" 875 else 876 CFLAGS= 877 fi 878fi 879 880echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 881echo "configure:882: checking for POSIXized ISC" >&5 882if test -d /etc/conf/kconfig.d && 883 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 884then 885 echo "$ac_t""yes" 1>&6 886 ISC=yes # If later tests want to check for ISC. 887 cat >> confdefs.h <<\EOF 888#define _POSIX_SOURCE 1 889EOF 890 891 if test "$GCC" = yes; then 892 CC="$CC -posix" 893 else 894 CC="$CC -Xp" 895 fi 896else 897 echo "$ac_t""no" 1>&6 898 ISC= 899fi 900 901 902# Find a good install program. We prefer a C program (faster), 903# so one script is as good as another. But avoid the broken or 904# incompatible versions: 905# SysV /etc/install, /usr/sbin/install 906# SunOS /usr/etc/install 907# IRIX /sbin/install 908# AIX /bin/install 909# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 910# AFS /usr/afsws/bin/install, which mishandles nonexistent args 911# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 912# ./install, which can be erroneously created by make from ./install.sh. 913echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 914echo "configure:915: checking for a BSD compatible install" >&5 915if test -z "$INSTALL"; then 916if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 917 echo $ac_n "(cached) $ac_c" 1>&6 918else 919 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 920 for ac_dir in $PATH; do 921 # Account for people who put trailing slashes in PATH elements. 922 case "$ac_dir/" in 923 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 924 *) 925 # OSF1 and SCO ODT 3.0 have their own names for install. 926 # Don't use installbsd from OSF since it installs stuff as root 927 # by default. 928 for ac_prog in ginstall scoinst install; do 929 if test -f $ac_dir/$ac_prog; then 930 if test $ac_prog = install && 931 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 932 # AIX install. It has an incompatible calling convention. 933 : 934 else 935 ac_cv_path_install="$ac_dir/$ac_prog -c" 936 break 2 937 fi 938 fi 939 done 940 ;; 941 esac 942 done 943 IFS="$ac_save_IFS" 944 945fi 946 if test "${ac_cv_path_install+set}" = set; then 947 INSTALL="$ac_cv_path_install" 948 else 949 # As a last resort, use the slow shell script. We don't cache a 950 # path for INSTALL within a source directory, because that will 951 # break other packages using the cache if that directory is 952 # removed, or if the path is relative. 953 INSTALL="$ac_install_sh" 954 fi 955fi 956echo "$ac_t""$INSTALL" 1>&6 957 958# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 959# It thinks the first close brace ends the variable substitution. 960test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 961 962test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 963 964test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 965 966echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 967echo "configure:968: checking whether build environment is sane" >&5 968# Just in case 969sleep 1 970echo timestamp > conftestfile 971# Do `set' in a subshell so we don't clobber the current shell's 972# arguments. Must try -L first in case configure is actually a 973# symlink; some systems play weird games with the mod time of symlinks 974# (eg FreeBSD returns the mod time of the symlink's containing 975# directory). 976if ( 977 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 978 if test "$*" = "X"; then 979 # -L didn't work. 980 set X `ls -t $srcdir/configure conftestfile` 981 fi 982 if test "$*" != "X $srcdir/configure conftestfile" \ 983 && test "$*" != "X conftestfile $srcdir/configure"; then 984 985 # If neither matched, then we have a broken ls. This can happen 986 # if, for instance, CONFIG_SHELL is bash and it inherits a 987 # broken ls alias from the environment. This has actually 988 # happened. Such a system could not be considered "sane". 989 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 990alias in your environment" 1>&2; exit 1; } 991 fi 992 993 test "$2" = conftestfile 994 ) 995then 996 # Ok. 997 : 998else 999 { echo "configure: error: newly created file is older than distributed files! 1000Check your system clock" 1>&2; exit 1; } 1001fi 1002rm -f conftest* 1003echo "$ac_t""yes" 1>&6 1004if test "$program_transform_name" = s,x,x,; then 1005 program_transform_name= 1006else 1007 # Double any \ or $. echo might interpret backslashes. 1008 cat <<\EOF_SED > conftestsed 1009s,\\,\\\\,g; s,\$,$$,g 1010EOF_SED 1011 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 1012 rm -f conftestsed 1013fi 1014test "$program_prefix" != NONE && 1015 program_transform_name="s,^,${program_prefix},; $program_transform_name" 1016# Use a double $ so make ignores it. 1017test "$program_suffix" != NONE && 1018 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 1019 1020# sed with no file args requires a program. 1021test "$program_transform_name" = "" && program_transform_name="s,x,x," 1022 1023echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1024echo "configure:1025: checking whether ${MAKE-make} sets \${MAKE}" >&5 1025set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1026if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1027 echo $ac_n "(cached) $ac_c" 1>&6 1028else 1029 cat > conftestmake <<\EOF 1030all: 1031 @echo 'ac_maketemp="${MAKE}"' 1032EOF 1033# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1034eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1035if test -n "$ac_maketemp"; then 1036 eval ac_cv_prog_make_${ac_make}_set=yes 1037else 1038 eval ac_cv_prog_make_${ac_make}_set=no 1039fi 1040rm -f conftestmake 1041fi 1042if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1043 echo "$ac_t""yes" 1>&6 1044 SET_MAKE= 1045else 1046 echo "$ac_t""no" 1>&6 1047 SET_MAKE="MAKE=${MAKE-make}" 1048fi 1049 1050 1051PACKAGE=bfd 1052 1053VERSION=2.10 1054 1055if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 1056 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 1057fi 1058cat >> confdefs.h <<EOF 1059#define PACKAGE "$PACKAGE" 1060EOF 1061 1062cat >> confdefs.h <<EOF 1063#define VERSION "$VERSION" 1064EOF 1065 1066 1067 1068missing_dir=`cd $ac_aux_dir && pwd` 1069echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 1070echo "configure:1071: checking for working aclocal" >&5 1071# Run test in a subshell; some versions of sh will print an error if 1072# an executable is not found, even if stderr is redirected. 1073# Redirect stdin to placate older versions of autoconf. Sigh. 1074if (aclocal --version) < /dev/null > /dev/null 2>&1; then 1075 ACLOCAL=aclocal 1076 echo "$ac_t""found" 1>&6 1077else 1078 ACLOCAL="$missing_dir/missing aclocal" 1079 echo "$ac_t""missing" 1>&6 1080fi 1081 1082echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 1083echo "configure:1084: checking for working autoconf" >&5 1084# Run test in a subshell; some versions of sh will print an error if 1085# an executable is not found, even if stderr is redirected. 1086# Redirect stdin to placate older versions of autoconf. Sigh. 1087if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1088 AUTOCONF=autoconf 1089 echo "$ac_t""found" 1>&6 1090else 1091 AUTOCONF="$missing_dir/missing autoconf" 1092 echo "$ac_t""missing" 1>&6 1093fi 1094 1095echo $ac_n "checking for working automake""... $ac_c" 1>&6 1096echo "configure:1097: checking for working automake" >&5 1097# Run test in a subshell; some versions of sh will print an error if 1098# an executable is not found, even if stderr is redirected. 1099# Redirect stdin to placate older versions of autoconf. Sigh. 1100if (automake --version) < /dev/null > /dev/null 2>&1; then 1101 AUTOMAKE=automake 1102 echo "$ac_t""found" 1>&6 1103else 1104 AUTOMAKE="$missing_dir/missing automake" 1105 echo "$ac_t""missing" 1>&6 1106fi 1107 1108echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 1109echo "configure:1110: checking for working autoheader" >&5 1110# Run test in a subshell; some versions of sh will print an error if 1111# an executable is not found, even if stderr is redirected. 1112# Redirect stdin to placate older versions of autoconf. Sigh. 1113if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1114 AUTOHEADER=autoheader 1115 echo "$ac_t""found" 1>&6 1116else 1117 AUTOHEADER="$missing_dir/missing autoheader" 1118 echo "$ac_t""missing" 1>&6 1119fi 1120 1121echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 1122echo "configure:1123: checking for working makeinfo" >&5 1123# Run test in a subshell; some versions of sh will print an error if 1124# an executable is not found, even if stderr is redirected. 1125# Redirect stdin to placate older versions of autoconf. Sigh. 1126if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1127 MAKEINFO=makeinfo 1128 echo "$ac_t""found" 1>&6 1129else 1130 MAKEINFO="$missing_dir/missing makeinfo" 1131 echo "$ac_t""missing" 1>&6 1132fi 1133 1134 1135 1136if test $host != $build; then 1137 ac_tool_prefix=${host_alias}- 1138else 1139 ac_tool_prefix= 1140fi 1141 1142# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 1143set dummy ${ac_tool_prefix}ar; ac_word=$2 1144echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1145echo "configure:1146: checking for $ac_word" >&5 1146if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1147 echo $ac_n "(cached) $ac_c" 1>&6 1148else 1149 if test -n "$AR"; then 1150 ac_cv_prog_AR="$AR" # Let the user override the test. 1151else 1152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1153 ac_dummy="$PATH" 1154 for ac_dir in $ac_dummy; do 1155 test -z "$ac_dir" && ac_dir=. 1156 if test -f $ac_dir/$ac_word; then 1157 ac_cv_prog_AR="${ac_tool_prefix}ar" 1158 break 1159 fi 1160 done 1161 IFS="$ac_save_ifs" 1162 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 1163fi 1164fi 1165AR="$ac_cv_prog_AR" 1166if test -n "$AR"; then 1167 echo "$ac_t""$AR" 1>&6 1168else 1169 echo "$ac_t""no" 1>&6 1170fi 1171 1172 1173 1174# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1175set dummy ${ac_tool_prefix}ranlib; ac_word=$2 1176echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1177echo "configure:1178: checking for $ac_word" >&5 1178if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1179 echo $ac_n "(cached) $ac_c" 1>&6 1180else 1181 if test -n "$RANLIB"; then 1182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1183else 1184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1185 ac_dummy="$PATH" 1186 for ac_dir in $ac_dummy; do 1187 test -z "$ac_dir" && ac_dir=. 1188 if test -f $ac_dir/$ac_word; then 1189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1190 break 1191 fi 1192 done 1193 IFS="$ac_save_ifs" 1194fi 1195fi 1196RANLIB="$ac_cv_prog_RANLIB" 1197if test -n "$RANLIB"; then 1198 echo "$ac_t""$RANLIB" 1>&6 1199else 1200 echo "$ac_t""no" 1>&6 1201fi 1202 1203 1204if test -z "$ac_cv_prog_RANLIB"; then 1205if test -n "$ac_tool_prefix"; then 1206 # Extract the first word of "ranlib", so it can be a program name with args. 1207set dummy ranlib; ac_word=$2 1208echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1209echo "configure:1210: checking for $ac_word" >&5 1210if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1211 echo $ac_n "(cached) $ac_c" 1>&6 1212else 1213 if test -n "$RANLIB"; then 1214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1215else 1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1217 ac_dummy="$PATH" 1218 for ac_dir in $ac_dummy; do 1219 test -z "$ac_dir" && ac_dir=. 1220 if test -f $ac_dir/$ac_word; then 1221 ac_cv_prog_RANLIB="ranlib" 1222 break 1223 fi 1224 done 1225 IFS="$ac_save_ifs" 1226 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1227fi 1228fi 1229RANLIB="$ac_cv_prog_RANLIB" 1230if test -n "$RANLIB"; then 1231 echo "$ac_t""$RANLIB" 1>&6 1232else 1233 echo "$ac_t""no" 1>&6 1234fi 1235 1236else 1237 RANLIB=":" 1238fi 1239fi 1240 1241 1242# Check whether --enable-shared or --disable-shared was given. 1243if test "${enable_shared+set}" = set; then 1244 enableval="$enable_shared" 1245 p=${PACKAGE-default} 1246case "$enableval" in 1247yes) enable_shared=yes ;; 1248no) enable_shared=no ;; 1249*) 1250 enable_shared=no 1251 # Look at the argument we got. We use all the common list separators. 1252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1253 for pkg in $enableval; do 1254 if test "X$pkg" = "X$p"; then 1255 enable_shared=yes 1256 fi 1257 done 1258 IFS="$ac_save_ifs" 1259 ;; 1260esac 1261else 1262 enable_shared=no 1263fi 1264 1265 1266# Check whether --enable-static or --disable-static was given. 1267if test "${enable_static+set}" = set; then 1268 enableval="$enable_static" 1269 p=${PACKAGE-default} 1270case "$enableval" in 1271yes) enable_static=yes ;; 1272no) enable_static=no ;; 1273*) 1274 enable_static=no 1275 # Look at the argument we got. We use all the common list separators. 1276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1277 for pkg in $enableval; do 1278 if test "X$pkg" = "X$p"; then 1279 enable_static=yes 1280 fi 1281 done 1282 IFS="$ac_save_ifs" 1283 ;; 1284esac 1285else 1286 enable_static=yes 1287fi 1288 1289# Check whether --enable-fast-install or --disable-fast-install was given. 1290if test "${enable_fast_install+set}" = set; then 1291 enableval="$enable_fast_install" 1292 p=${PACKAGE-default} 1293case "$enableval" in 1294yes) enable_fast_install=yes ;; 1295no) enable_fast_install=no ;; 1296*) 1297 enable_fast_install=no 1298 # Look at the argument we got. We use all the common list separators. 1299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1300 for pkg in $enableval; do 1301 if test "X$pkg" = "X$p"; then 1302 enable_fast_install=yes 1303 fi 1304 done 1305 IFS="$ac_save_ifs" 1306 ;; 1307esac 1308else 1309 enable_fast_install=yes 1310fi 1311 1312# Extract the first word of "ranlib", so it can be a program name with args. 1313set dummy ranlib; ac_word=$2 1314echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1315echo "configure:1316: checking for $ac_word" >&5 1316if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1317 echo $ac_n "(cached) $ac_c" 1>&6 1318else 1319 if test -n "$RANLIB"; then 1320 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1321else 1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1323 ac_dummy="$PATH" 1324 for ac_dir in $ac_dummy; do 1325 test -z "$ac_dir" && ac_dir=. 1326 if test -f $ac_dir/$ac_word; then 1327 ac_cv_prog_RANLIB="ranlib" 1328 break 1329 fi 1330 done 1331 IFS="$ac_save_ifs" 1332 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1333fi 1334fi 1335RANLIB="$ac_cv_prog_RANLIB" 1336if test -n "$RANLIB"; then 1337 echo "$ac_t""$RANLIB" 1>&6 1338else 1339 echo "$ac_t""no" 1>&6 1340fi 1341 1342# Check whether --with-gnu-ld or --without-gnu-ld was given. 1343if test "${with_gnu_ld+set}" = set; then 1344 withval="$with_gnu_ld" 1345 test "$withval" = no || with_gnu_ld=yes 1346else 1347 with_gnu_ld=no 1348fi 1349 1350ac_prog=ld 1351if test "$ac_cv_prog_gcc" = yes; then 1352 # Check if gcc -print-prog-name=ld gives a path. 1353 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1354echo "configure:1355: checking for ld used by GCC" >&5 1355 ac_prog=`($CC -print-prog-name=ld) 2>&5` 1356 case "$ac_prog" in 1357 # Accept absolute paths. 1358 [\\/]* | [A-Za-z]:[\\/]*) 1359 re_direlt='/[^/][^/]*/\.\./' 1360 # Canonicalize the path of ld 1361 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 1362 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 1363 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 1364 done 1365 test -z "$LD" && LD="$ac_prog" 1366 ;; 1367 "") 1368 # If it fails, then pretend we aren't using GCC. 1369 ac_prog=ld 1370 ;; 1371 *) 1372 # If it is relative, then search for the first ld in PATH. 1373 with_gnu_ld=unknown 1374 ;; 1375 esac 1376elif test "$with_gnu_ld" = yes; then 1377 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1378echo "configure:1379: checking for GNU ld" >&5 1379else 1380 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1381echo "configure:1382: checking for non-GNU ld" >&5 1382fi 1383if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 1384 echo $ac_n "(cached) $ac_c" 1>&6 1385else 1386 if test -z "$LD"; then 1387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1388 for ac_dir in $PATH; do 1389 test -z "$ac_dir" && ac_dir=. 1390 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 1391 ac_cv_path_LD="$ac_dir/$ac_prog" 1392 # Check to see if the program is GNU ld. I'd rather use --version, 1393 # but apparently some GNU ld's only accept -v. 1394 # Break only if it was the GNU/non-GNU ld that we prefer. 1395 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 1396 test "$with_gnu_ld" != no && break 1397 else 1398 test "$with_gnu_ld" != yes && break 1399 fi 1400 fi 1401 done 1402 IFS="$ac_save_ifs" 1403else 1404 ac_cv_path_LD="$LD" # Let the user override the test with a path. 1405fi 1406fi 1407 1408LD="$ac_cv_path_LD" 1409if test -n "$LD"; then 1410 echo "$ac_t""$LD" 1>&6 1411else 1412 echo "$ac_t""no" 1>&6 1413fi 1414test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1415echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1416echo "configure:1417: checking if the linker ($LD) is GNU ld" >&5 1417if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1418 echo $ac_n "(cached) $ac_c" 1>&6 1419else 1420 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1421if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1422 ac_cv_prog_gnu_ld=yes 1423else 1424 ac_cv_prog_gnu_ld=no 1425fi 1426fi 1427 1428echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1429 1430 1431echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1432echo "configure:1433: checking for BSD-compatible nm" >&5 1433if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1434 echo $ac_n "(cached) $ac_c" 1>&6 1435else 1436 if test -n "$NM"; then 1437 # Let the user override the test. 1438 ac_cv_path_NM="$NM" 1439else 1440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1441 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 1442 test -z "$ac_dir" && ac_dir=. 1443 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then 1444 # Check to see if the nm accepts a BSD-compat flag. 1445 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 1446 # nm: unknown option "B" ignored 1447 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1448 ac_cv_path_NM="$ac_dir/nm -B" 1449 break 1450 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1451 ac_cv_path_NM="$ac_dir/nm -p" 1452 break 1453 else 1454 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but 1455 continue # so that we can try to find one that supports BSD flags 1456 fi 1457 fi 1458 done 1459 IFS="$ac_save_ifs" 1460 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 1461fi 1462fi 1463 1464NM="$ac_cv_path_NM" 1465echo "$ac_t""$NM" 1>&6 1466 1467echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1468echo "configure:1469: checking whether ln -s works" >&5 1469if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1470 echo $ac_n "(cached) $ac_c" 1>&6 1471else 1472 rm -f conftestdata 1473if ln -s X conftestdata 2>/dev/null 1474then 1475 rm -f conftestdata 1476 ac_cv_prog_LN_S="ln -s" 1477else 1478 ac_cv_prog_LN_S=ln 1479fi 1480fi 1481LN_S="$ac_cv_prog_LN_S" 1482if test "$ac_cv_prog_LN_S" = "ln -s"; then 1483 echo "$ac_t""yes" 1>&6 1484else 1485 echo "$ac_t""no" 1>&6 1486fi 1487 1488 1489case "$target" in 1490NONE) lt_target="$host" ;; 1491*) lt_target="$target" ;; 1492esac 1493 1494# Check for any special flags to pass to ltconfig. 1495libtool_flags="--cache-file=$cache_file" 1496test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 1497test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 1498test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 1499test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" 1500test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 1501 1502 1503# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 1504if test "${enable_libtool_lock+set}" = set; then 1505 enableval="$enable_libtool_lock" 1506 : 1507fi 1508 1509test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 1510test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 1511 1512# Some flags need to be propagated to the compiler or linker for good 1513# libtool support. 1514case "$lt_target" in 1515*-*-irix6*) 1516 # Find out which ABI we are using. 1517 echo '#line 1518 "configure"' > conftest.$ac_ext 1518 if { (eval echo configure:1519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1519 case "`/usr/bin/file conftest.o`" in 1520 *32-bit*) 1521 LD="${LD-ld} -32" 1522 ;; 1523 *N32*) 1524 LD="${LD-ld} -n32" 1525 ;; 1526 *64-bit*) 1527 LD="${LD-ld} -64" 1528 ;; 1529 esac 1530 fi 1531 rm -rf conftest* 1532 ;; 1533 1534*-*-sco3.2v5*) 1535 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1536 SAVE_CFLAGS="$CFLAGS" 1537 CFLAGS="$CFLAGS -belf" 1538 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 1539echo "configure:1540: checking whether the C compiler needs -belf" >&5 1540if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 1541 echo $ac_n "(cached) $ac_c" 1>&6 1542else 1543 cat > conftest.$ac_ext <<EOF 1544#line 1545 "configure" 1545#include "confdefs.h" 1546 1547int main() { 1548 1549; return 0; } 1550EOF 1551if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1552 rm -rf conftest* 1553 lt_cv_cc_needs_belf=yes 1554else 1555 echo "configure: failed program was:" >&5 1556 cat conftest.$ac_ext >&5 1557 rm -rf conftest* 1558 lt_cv_cc_needs_belf=no 1559fi 1560rm -f conftest* 1561fi 1562 1563echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 1564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1566 CFLAGS="$SAVE_CFLAGS" 1567 fi 1568 ;; 1569 1570 1571esac 1572 1573 1574# Save cache, so that ltconfig can load it 1575cat > confcache <<\EOF 1576# This file is a shell script that caches the results of configure 1577# tests run on this system so they can be shared between configure 1578# scripts and configure runs. It is not useful on other systems. 1579# If it contains results you don't want to keep, you may remove or edit it. 1580# 1581# By default, configure uses ./config.cache as the cache file, 1582# creating it if it does not exist already. You can give configure 1583# the --cache-file=FILE option to use a different cache file; that is 1584# what configure does when it calls configure scripts in 1585# subdirectories, so they share the cache. 1586# Giving --cache-file=/dev/null disables caching, for debugging configure. 1587# config.status only pays attention to the cache file if you give it the 1588# --recheck option to rerun configure. 1589# 1590EOF 1591# The following way of writing the cache mishandles newlines in values, 1592# but we know of no workaround that is simple, portable, and efficient. 1593# So, don't put newlines in cache variables' values. 1594# Ultrix sh set writes to stderr and can't be redirected directly, 1595# and sets the high bit in the cache file unless we assign to the vars. 1596(set) 2>&1 | 1597 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1598 *ac_space=\ *) 1599 # `set' does not quote correctly, so add quotes (double-quote substitution 1600 # turns \\\\ into \\, and sed turns \\ into \). 1601 sed -n \ 1602 -e "s/'/'\\\\''/g" \ 1603 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1604 ;; 1605 *) 1606 # `set' quotes correctly as required by POSIX, so do not add quotes. 1607 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1608 ;; 1609 esac >> confcache 1610if cmp -s $cache_file confcache; then 1611 : 1612else 1613 if test -w $cache_file; then 1614 echo "updating cache $cache_file" 1615 cat confcache > $cache_file 1616 else 1617 echo "not updating unwritable cache $cache_file" 1618 fi 1619fi 1620rm -f confcache 1621 1622 1623# Actually configure libtool. ac_aux_dir is where install-sh is found. 1624CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 1625LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 1626LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 1627DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 1628${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 1629$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ 1630|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 1631 1632# Reload cache, that may have been modified by ltconfig 1633if test -r "$cache_file"; then 1634 echo "loading cache $cache_file" 1635 . $cache_file 1636else 1637 echo "creating cache $cache_file" 1638 > $cache_file 1639fi 1640 1641 1642# This can be used to rebuild libtool when needed 1643LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" 1644 1645# Always use our own libtool. 1646LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1647 1648# Redirect the config.log output again, so that the ltconfig log is not 1649# clobbered by the next message. 1650exec 5>>./config.log 1651 1652 1653# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. 1654if test "${enable_64_bit_bfd+set}" = set; then 1655 enableval="$enable_64_bit_bfd" 1656 case "${enableval}" in 1657 yes) want64=true ;; 1658 no) want64=false ;; 1659 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; 1660esac 1661else 1662 want64=false 1663fi 1664# Check whether --enable-targets or --disable-targets was given. 1665if test "${enable_targets+set}" = set; then 1666 enableval="$enable_targets" 1667 case "${enableval}" in 1668 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } 1669 ;; 1670 no) enable_targets= ;; 1671 *) enable_targets=$enableval ;; 1672esac 1673fi 1674# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 1675if test "${enable_commonbfdlib+set}" = set; then 1676 enableval="$enable_commonbfdlib" 1677 case "${enableval}" in 1678 yes) commonbfdlib=true ;; 1679 no) commonbfdlib=false ;; 1680 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; 1681esac 1682fi 1683# Check whether --with-mmap or --without-mmap was given. 1684if test "${with_mmap+set}" = set; then 1685 withval="$with_mmap" 1686 case "${withval}" in 1687 yes) want_mmap=true ;; 1688 no) want_mmap=false ;; 1689 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; 1690esac 1691else 1692 want_mmap=false 1693fi 1694 1695 1696 1697 1698 1699if test -z "$target" ; then 1700 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } 1701fi 1702if test "$program_transform_name" = s,x,x,; then 1703 program_transform_name= 1704else 1705 # Double any \ or $. echo might interpret backslashes. 1706 cat <<\EOF_SED > conftestsed 1707s,\\,\\\\,g; s,\$,$$,g 1708EOF_SED 1709 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 1710 rm -f conftestsed 1711fi 1712test "$program_prefix" != NONE && 1713 program_transform_name="s,^,${program_prefix},; $program_transform_name" 1714# Use a double $ so make ignores it. 1715test "$program_suffix" != NONE && 1716 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 1717 1718# sed with no file args requires a program. 1719test "$program_transform_name" = "" && program_transform_name="s,x,x," 1720 1721 1722echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 1723echo "configure:1724: checking whether to enable maintainer-specific portions of Makefiles" >&5 1724 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1725if test "${enable_maintainer_mode+set}" = set; then 1726 enableval="$enable_maintainer_mode" 1727 USE_MAINTAINER_MODE=$enableval 1728else 1729 USE_MAINTAINER_MODE=no 1730fi 1731 1732 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 1733 1734 1735if test $USE_MAINTAINER_MODE = yes; then 1736 MAINTAINER_MODE_TRUE= 1737 MAINTAINER_MODE_FALSE='#' 1738else 1739 MAINTAINER_MODE_TRUE='#' 1740 MAINTAINER_MODE_FALSE= 1741fi 1742 MAINT=$MAINTAINER_MODE_TRUE 1743 1744 1745echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 1746echo "configure:1747: checking for Cygwin environment" >&5 1747if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 1748 echo $ac_n "(cached) $ac_c" 1>&6 1749else 1750 cat > conftest.$ac_ext <<EOF 1751#line 1752 "configure" 1752#include "confdefs.h" 1753 1754int main() { 1755 1756#ifndef __CYGWIN__ 1757#define __CYGWIN__ __CYGWIN32__ 1758#endif 1759return __CYGWIN__; 1760; return 0; } 1761EOF 1762if { (eval echo configure:1763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1763 rm -rf conftest* 1764 ac_cv_cygwin=yes 1765else 1766 echo "configure: failed program was:" >&5 1767 cat conftest.$ac_ext >&5 1768 rm -rf conftest* 1769 ac_cv_cygwin=no 1770fi 1771rm -f conftest* 1772rm -f conftest* 1773fi 1774 1775echo "$ac_t""$ac_cv_cygwin" 1>&6 1776CYGWIN= 1777test "$ac_cv_cygwin" = yes && CYGWIN=yes 1778echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 1779echo "configure:1780: checking for mingw32 environment" >&5 1780if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 1781 echo $ac_n "(cached) $ac_c" 1>&6 1782else 1783 cat > conftest.$ac_ext <<EOF 1784#line 1785 "configure" 1785#include "confdefs.h" 1786 1787int main() { 1788return __MINGW32__; 1789; return 0; } 1790EOF 1791if { (eval echo configure:1792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1792 rm -rf conftest* 1793 ac_cv_mingw32=yes 1794else 1795 echo "configure: failed program was:" >&5 1796 cat conftest.$ac_ext >&5 1797 rm -rf conftest* 1798 ac_cv_mingw32=no 1799fi 1800rm -f conftest* 1801rm -f conftest* 1802fi 1803 1804echo "$ac_t""$ac_cv_mingw32" 1>&6 1805MINGW32= 1806test "$ac_cv_mingw32" = yes && MINGW32=yes 1807 1808 1809echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1810echo "configure:1811: checking for executable suffix" >&5 1811if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1812 echo $ac_n "(cached) $ac_c" 1>&6 1813else 1814 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 1815 ac_cv_exeext=.exe 1816else 1817 rm -f conftest* 1818 echo 'int main () { return 0; }' > conftest.$ac_ext 1819 ac_cv_exeext= 1820 if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1821 for file in conftest.*; do 1822 case $file in 1823 *.c | *.o | *.obj) ;; 1824 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1825 esac 1826 done 1827 else 1828 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 1829 fi 1830 rm -f conftest* 1831 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 1832fi 1833fi 1834 1835EXEEXT="" 1836test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 1837echo "$ac_t""${ac_cv_exeext}" 1>&6 1838ac_exeext=$EXEEXT 1839 1840 1841host64=false 1842target64=false 1843 1844# host stuff: 1845 1846# Extract the first word of "gcc", so it can be a program name with args. 1847set dummy gcc; ac_word=$2 1848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1849echo "configure:1850: checking for $ac_word" >&5 1850if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1851 echo $ac_n "(cached) $ac_c" 1>&6 1852else 1853 if test -n "$CC"; then 1854 ac_cv_prog_CC="$CC" # Let the user override the test. 1855else 1856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1857 ac_dummy="$PATH" 1858 for ac_dir in $ac_dummy; do 1859 test -z "$ac_dir" && ac_dir=. 1860 if test -f $ac_dir/$ac_word; then 1861 ac_cv_prog_CC="gcc" 1862 break 1863 fi 1864 done 1865 IFS="$ac_save_ifs" 1866fi 1867fi 1868CC="$ac_cv_prog_CC" 1869if test -n "$CC"; then 1870 echo "$ac_t""$CC" 1>&6 1871else 1872 echo "$ac_t""no" 1>&6 1873fi 1874 1875if test -z "$CC"; then 1876 # Extract the first word of "cc", so it can be a program name with args. 1877set dummy cc; ac_word=$2 1878echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1879echo "configure:1880: checking for $ac_word" >&5 1880if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1881 echo $ac_n "(cached) $ac_c" 1>&6 1882else 1883 if test -n "$CC"; then 1884 ac_cv_prog_CC="$CC" # Let the user override the test. 1885else 1886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1887 ac_prog_rejected=no 1888 ac_dummy="$PATH" 1889 for ac_dir in $ac_dummy; do 1890 test -z "$ac_dir" && ac_dir=. 1891 if test -f $ac_dir/$ac_word; then 1892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1893 ac_prog_rejected=yes 1894 continue 1895 fi 1896 ac_cv_prog_CC="cc" 1897 break 1898 fi 1899 done 1900 IFS="$ac_save_ifs" 1901if test $ac_prog_rejected = yes; then 1902 # We found a bogon in the path, so make sure we never use it. 1903 set dummy $ac_cv_prog_CC 1904 shift 1905 if test $# -gt 0; then 1906 # We chose a different compiler from the bogus one. 1907 # However, it has the same basename, so the bogon will be chosen 1908 # first if we set CC to just the basename; use the full file name. 1909 shift 1910 set dummy "$ac_dir/$ac_word" "$@" 1911 shift 1912 ac_cv_prog_CC="$@" 1913 fi 1914fi 1915fi 1916fi 1917CC="$ac_cv_prog_CC" 1918if test -n "$CC"; then 1919 echo "$ac_t""$CC" 1>&6 1920else 1921 echo "$ac_t""no" 1>&6 1922fi 1923 1924 if test -z "$CC"; then 1925 case "`uname -s`" in 1926 *win32* | *WIN32*) 1927 # Extract the first word of "cl", so it can be a program name with args. 1928set dummy cl; ac_word=$2 1929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1930echo "configure:1931: checking for $ac_word" >&5 1931if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1932 echo $ac_n "(cached) $ac_c" 1>&6 1933else 1934 if test -n "$CC"; then 1935 ac_cv_prog_CC="$CC" # Let the user override the test. 1936else 1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1938 ac_dummy="$PATH" 1939 for ac_dir in $ac_dummy; do 1940 test -z "$ac_dir" && ac_dir=. 1941 if test -f $ac_dir/$ac_word; then 1942 ac_cv_prog_CC="cl" 1943 break 1944 fi 1945 done 1946 IFS="$ac_save_ifs" 1947fi 1948fi 1949CC="$ac_cv_prog_CC" 1950if test -n "$CC"; then 1951 echo "$ac_t""$CC" 1>&6 1952else 1953 echo "$ac_t""no" 1>&6 1954fi 1955 ;; 1956 esac 1957 fi 1958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1959fi 1960 1961echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1962echo "configure:1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1963 1964ac_ext=c 1965# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1966ac_cpp='$CPP $CPPFLAGS' 1967ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1968ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1969cross_compiling=$ac_cv_prog_cc_cross 1970 1971cat > conftest.$ac_ext << EOF 1972 1973#line 1974 "configure" 1974#include "confdefs.h" 1975 1976main(){return(0);} 1977EOF 1978if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1979 ac_cv_prog_cc_works=yes 1980 # If we can't run a trivial program, we are probably using a cross compiler. 1981 if (./conftest; exit) 2>/dev/null; then 1982 ac_cv_prog_cc_cross=no 1983 else 1984 ac_cv_prog_cc_cross=yes 1985 fi 1986else 1987 echo "configure: failed program was:" >&5 1988 cat conftest.$ac_ext >&5 1989 ac_cv_prog_cc_works=no 1990fi 1991rm -fr conftest* 1992ac_ext=c 1993# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1994ac_cpp='$CPP $CPPFLAGS' 1995ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1996ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1997cross_compiling=$ac_cv_prog_cc_cross 1998 1999echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2000if test $ac_cv_prog_cc_works = no; then 2001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2002fi 2003echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2004echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2005echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2006cross_compiling=$ac_cv_prog_cc_cross 2007 2008echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2009echo "configure:2010: checking whether we are using GNU C" >&5 2010if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 2011 echo $ac_n "(cached) $ac_c" 1>&6 2012else 2013 cat > conftest.c <<EOF 2014#ifdef __GNUC__ 2015 yes; 2016#endif 2017EOF 2018if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2019 ac_cv_prog_gcc=yes 2020else 2021 ac_cv_prog_gcc=no 2022fi 2023fi 2024 2025echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2026 2027if test $ac_cv_prog_gcc = yes; then 2028 GCC=yes 2029else 2030 GCC= 2031fi 2032 2033ac_test_CFLAGS="${CFLAGS+set}" 2034ac_save_CFLAGS="$CFLAGS" 2035CFLAGS= 2036echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2037echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5 2038if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2039 echo $ac_n "(cached) $ac_c" 1>&6 2040else 2041 echo 'void f(){}' > conftest.c 2042if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2043 ac_cv_prog_cc_g=yes 2044else 2045 ac_cv_prog_cc_g=no 2046fi 2047rm -f conftest* 2048 2049fi 2050 2051echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2052if test "$ac_test_CFLAGS" = set; then 2053 CFLAGS="$ac_save_CFLAGS" 2054elif test $ac_cv_prog_cc_g = yes; then 2055 if test "$GCC" = yes; then 2056 CFLAGS="-g -O2" 2057 else 2058 CFLAGS="-g" 2059 fi 2060else 2061 if test "$GCC" = yes; then 2062 CFLAGS="-O2" 2063 else 2064 CFLAGS= 2065 fi 2066fi 2067 2068 2069ALL_LINGUAS= 2070echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2071echo "configure:2072: checking how to run the C preprocessor" >&5 2072# On Suns, sometimes $CPP names a directory. 2073if test -n "$CPP" && test -d "$CPP"; then 2074 CPP= 2075fi 2076if test -z "$CPP"; then 2077if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2078 echo $ac_n "(cached) $ac_c" 1>&6 2079else 2080 # This must be in double quotes, not single quotes, because CPP may get 2081 # substituted into the Makefile and "${CC-cc}" will confuse make. 2082 CPP="${CC-cc} -E" 2083 # On the NeXT, cc -E runs the code through the compiler's parser, 2084 # not just through cpp. 2085 cat > conftest.$ac_ext <<EOF 2086#line 2087 "configure" 2087#include "confdefs.h" 2088#include <assert.h> 2089Syntax Error 2090EOF 2091ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2092{ (eval echo configure:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2093ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2094if test -z "$ac_err"; then 2095 : 2096else 2097 echo "$ac_err" >&5 2098 echo "configure: failed program was:" >&5 2099 cat conftest.$ac_ext >&5 2100 rm -rf conftest* 2101 CPP="${CC-cc} -E -traditional-cpp" 2102 cat > conftest.$ac_ext <<EOF 2103#line 2104 "configure" 2104#include "confdefs.h" 2105#include <assert.h> 2106Syntax Error 2107EOF 2108ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2109{ (eval echo configure:2110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2110ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2111if test -z "$ac_err"; then 2112 : 2113else 2114 echo "$ac_err" >&5 2115 echo "configure: failed program was:" >&5 2116 cat conftest.$ac_ext >&5 2117 rm -rf conftest* 2118 CPP="${CC-cc} -nologo -E" 2119 cat > conftest.$ac_ext <<EOF 2120#line 2121 "configure" 2121#include "confdefs.h" 2122#include <assert.h> 2123Syntax Error 2124EOF 2125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2126{ (eval echo configure:2127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2128if test -z "$ac_err"; then 2129 : 2130else 2131 echo "$ac_err" >&5 2132 echo "configure: failed program was:" >&5 2133 cat conftest.$ac_ext >&5 2134 rm -rf conftest* 2135 CPP=/lib/cpp 2136fi 2137rm -f conftest* 2138fi 2139rm -f conftest* 2140fi 2141rm -f conftest* 2142 ac_cv_prog_CPP="$CPP" 2143fi 2144 CPP="$ac_cv_prog_CPP" 2145else 2146 ac_cv_prog_CPP="$CPP" 2147fi 2148echo "$ac_t""$CPP" 1>&6 2149 2150echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2151echo "configure:2152: checking for ANSI C header files" >&5 2152if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2153 echo $ac_n "(cached) $ac_c" 1>&6 2154else 2155 cat > conftest.$ac_ext <<EOF 2156#line 2157 "configure" 2157#include "confdefs.h" 2158#include <stdlib.h> 2159#include <stdarg.h> 2160#include <string.h> 2161#include <float.h> 2162EOF 2163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2164{ (eval echo configure:2165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2165ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2166if test -z "$ac_err"; then 2167 rm -rf conftest* 2168 ac_cv_header_stdc=yes 2169else 2170 echo "$ac_err" >&5 2171 echo "configure: failed program was:" >&5 2172 cat conftest.$ac_ext >&5 2173 rm -rf conftest* 2174 ac_cv_header_stdc=no 2175fi 2176rm -f conftest* 2177 2178if test $ac_cv_header_stdc = yes; then 2179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2180cat > conftest.$ac_ext <<EOF 2181#line 2182 "configure" 2182#include "confdefs.h" 2183#include <string.h> 2184EOF 2185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2186 egrep "memchr" >/dev/null 2>&1; then 2187 : 2188else 2189 rm -rf conftest* 2190 ac_cv_header_stdc=no 2191fi 2192rm -f conftest* 2193 2194fi 2195 2196if test $ac_cv_header_stdc = yes; then 2197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2198cat > conftest.$ac_ext <<EOF 2199#line 2200 "configure" 2200#include "confdefs.h" 2201#include <stdlib.h> 2202EOF 2203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2204 egrep "free" >/dev/null 2>&1; then 2205 : 2206else 2207 rm -rf conftest* 2208 ac_cv_header_stdc=no 2209fi 2210rm -f conftest* 2211 2212fi 2213 2214if test $ac_cv_header_stdc = yes; then 2215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2216if test "$cross_compiling" = yes; then 2217 : 2218else 2219 cat > conftest.$ac_ext <<EOF 2220#line 2221 "configure" 2221#include "confdefs.h" 2222#include <ctype.h> 2223#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2224#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2226int main () { int i; for (i = 0; i < 256; i++) 2227if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2228exit (0); } 2229 2230EOF 2231if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2232then 2233 : 2234else 2235 echo "configure: failed program was:" >&5 2236 cat conftest.$ac_ext >&5 2237 rm -fr conftest* 2238 ac_cv_header_stdc=no 2239fi 2240rm -fr conftest* 2241fi 2242 2243fi 2244fi 2245 2246echo "$ac_t""$ac_cv_header_stdc" 1>&6 2247if test $ac_cv_header_stdc = yes; then 2248 cat >> confdefs.h <<\EOF 2249#define STDC_HEADERS 1 2250EOF 2251 2252fi 2253 2254echo $ac_n "checking for working const""... $ac_c" 1>&6 2255echo "configure:2256: checking for working const" >&5 2256if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2257 echo $ac_n "(cached) $ac_c" 1>&6 2258else 2259 cat > conftest.$ac_ext <<EOF 2260#line 2261 "configure" 2261#include "confdefs.h" 2262 2263int main() { 2264 2265/* Ultrix mips cc rejects this. */ 2266typedef int charset[2]; const charset x = {0,0}; 2267/* SunOS 4.1.1 cc rejects this. */ 2268char const *const *ccp; 2269char **p; 2270/* NEC SVR4.0.2 mips cc rejects this. */ 2271struct point {int x, y;}; 2272static struct point const zero = {0,0}; 2273/* AIX XL C 1.02.0.0 rejects this. 2274 It does not let you subtract one const X* pointer from another in an arm 2275 of an if-expression whose if-part is not a constant expression */ 2276const char *g = "string"; 2277ccp = &g + (g ? g-g : 0); 2278/* HPUX 7.0 cc rejects these. */ 2279++ccp; 2280p = (char**) ccp; 2281ccp = (char const *const *) p; 2282{ /* SCO 3.2v4 cc rejects this. */ 2283 char *t; 2284 char const *s = 0 ? (char *) 0 : (char const *) 0; 2285 2286 *t++ = 0; 2287} 2288{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2289 int x[] = {25, 17}; 2290 const int *foo = &x[0]; 2291 ++foo; 2292} 2293{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2294 typedef const int *iptr; 2295 iptr p = 0; 2296 ++p; 2297} 2298{ /* AIX XL C 1.02.0.0 rejects this saying 2299 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2300 struct s { int j; const int *ap[3]; }; 2301 struct s *b; b->j = 5; 2302} 2303{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2304 const int foo = 10; 2305} 2306 2307; return 0; } 2308EOF 2309if { (eval echo configure:2310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2310 rm -rf conftest* 2311 ac_cv_c_const=yes 2312else 2313 echo "configure: failed program was:" >&5 2314 cat conftest.$ac_ext >&5 2315 rm -rf conftest* 2316 ac_cv_c_const=no 2317fi 2318rm -f conftest* 2319fi 2320 2321echo "$ac_t""$ac_cv_c_const" 1>&6 2322if test $ac_cv_c_const = no; then 2323 cat >> confdefs.h <<\EOF 2324#define const 2325EOF 2326 2327fi 2328 2329echo $ac_n "checking for inline""... $ac_c" 1>&6 2330echo "configure:2331: checking for inline" >&5 2331if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2332 echo $ac_n "(cached) $ac_c" 1>&6 2333else 2334 ac_cv_c_inline=no 2335for ac_kw in inline __inline__ __inline; do 2336 cat > conftest.$ac_ext <<EOF 2337#line 2338 "configure" 2338#include "confdefs.h" 2339 2340int main() { 2341} int $ac_kw foo() { 2342; return 0; } 2343EOF 2344if { (eval echo configure:2345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2345 rm -rf conftest* 2346 ac_cv_c_inline=$ac_kw; break 2347else 2348 echo "configure: failed program was:" >&5 2349 cat conftest.$ac_ext >&5 2350fi 2351rm -f conftest* 2352done 2353 2354fi 2355 2356echo "$ac_t""$ac_cv_c_inline" 1>&6 2357case "$ac_cv_c_inline" in 2358 inline | yes) ;; 2359 no) cat >> confdefs.h <<\EOF 2360#define inline 2361EOF 2362 ;; 2363 *) cat >> confdefs.h <<EOF 2364#define inline $ac_cv_c_inline 2365EOF 2366 ;; 2367esac 2368 2369echo $ac_n "checking for off_t""... $ac_c" 1>&6 2370echo "configure:2371: checking for off_t" >&5 2371if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 2372 echo $ac_n "(cached) $ac_c" 1>&6 2373else 2374 cat > conftest.$ac_ext <<EOF 2375#line 2376 "configure" 2376#include "confdefs.h" 2377#include <sys/types.h> 2378#if STDC_HEADERS 2379#include <stdlib.h> 2380#include <stddef.h> 2381#endif 2382EOF 2383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2384 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2385 rm -rf conftest* 2386 ac_cv_type_off_t=yes 2387else 2388 rm -rf conftest* 2389 ac_cv_type_off_t=no 2390fi 2391rm -f conftest* 2392 2393fi 2394echo "$ac_t""$ac_cv_type_off_t" 1>&6 2395if test $ac_cv_type_off_t = no; then 2396 cat >> confdefs.h <<\EOF 2397#define off_t long 2398EOF 2399 2400fi 2401 2402echo $ac_n "checking for size_t""... $ac_c" 1>&6 2403echo "configure:2404: checking for size_t" >&5 2404if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2405 echo $ac_n "(cached) $ac_c" 1>&6 2406else 2407 cat > conftest.$ac_ext <<EOF 2408#line 2409 "configure" 2409#include "confdefs.h" 2410#include <sys/types.h> 2411#if STDC_HEADERS 2412#include <stdlib.h> 2413#include <stddef.h> 2414#endif 2415EOF 2416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2417 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2418 rm -rf conftest* 2419 ac_cv_type_size_t=yes 2420else 2421 rm -rf conftest* 2422 ac_cv_type_size_t=no 2423fi 2424rm -f conftest* 2425 2426fi 2427echo "$ac_t""$ac_cv_type_size_t" 1>&6 2428if test $ac_cv_type_size_t = no; then 2429 cat >> confdefs.h <<\EOF 2430#define size_t unsigned 2431EOF 2432 2433fi 2434 2435# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2436# for constant arguments. Useless! 2437echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2438echo "configure:2439: checking for working alloca.h" >&5 2439if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2440 echo $ac_n "(cached) $ac_c" 1>&6 2441else 2442 cat > conftest.$ac_ext <<EOF 2443#line 2444 "configure" 2444#include "confdefs.h" 2445#include <alloca.h> 2446int main() { 2447void *p = alloca(2 * sizeof(int)); 2448; return 0; } 2449EOF 2450if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2451 rm -rf conftest* 2452 ac_cv_header_alloca_h=yes 2453else 2454 echo "configure: failed program was:" >&5 2455 cat conftest.$ac_ext >&5 2456 rm -rf conftest* 2457 ac_cv_header_alloca_h=no 2458fi 2459rm -f conftest* 2460fi 2461 2462echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2463if test $ac_cv_header_alloca_h = yes; then 2464 cat >> confdefs.h <<\EOF 2465#define HAVE_ALLOCA_H 1 2466EOF 2467 2468fi 2469 2470echo $ac_n "checking for alloca""... $ac_c" 1>&6 2471echo "configure:2472: checking for alloca" >&5 2472if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2473 echo $ac_n "(cached) $ac_c" 1>&6 2474else 2475 cat > conftest.$ac_ext <<EOF 2476#line 2477 "configure" 2477#include "confdefs.h" 2478 2479#ifdef __GNUC__ 2480# define alloca __builtin_alloca 2481#else 2482# ifdef _MSC_VER 2483# include <malloc.h> 2484# define alloca _alloca 2485# else 2486# if HAVE_ALLOCA_H 2487# include <alloca.h> 2488# else 2489# ifdef _AIX 2490 #pragma alloca 2491# else 2492# ifndef alloca /* predefined by HP cc +Olibcalls */ 2493char *alloca (); 2494# endif 2495# endif 2496# endif 2497# endif 2498#endif 2499 2500int main() { 2501char *p = (char *) alloca(1); 2502; return 0; } 2503EOF 2504if { (eval echo configure:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2505 rm -rf conftest* 2506 ac_cv_func_alloca_works=yes 2507else 2508 echo "configure: failed program was:" >&5 2509 cat conftest.$ac_ext >&5 2510 rm -rf conftest* 2511 ac_cv_func_alloca_works=no 2512fi 2513rm -f conftest* 2514fi 2515 2516echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 2517if test $ac_cv_func_alloca_works = yes; then 2518 cat >> confdefs.h <<\EOF 2519#define HAVE_ALLOCA 1 2520EOF 2521 2522fi 2523 2524if test $ac_cv_func_alloca_works = no; then 2525 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2526 # that cause trouble. Some versions do not even contain alloca or 2527 # contain a buggy version. If you still want to use their alloca, 2528 # use ar to extract alloca.o from them instead of compiling alloca.c. 2529 ALLOCA=alloca.${ac_objext} 2530 cat >> confdefs.h <<\EOF 2531#define C_ALLOCA 1 2532EOF 2533 2534 2535echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2536echo "configure:2537: checking whether alloca needs Cray hooks" >&5 2537if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2538 echo $ac_n "(cached) $ac_c" 1>&6 2539else 2540 cat > conftest.$ac_ext <<EOF 2541#line 2542 "configure" 2542#include "confdefs.h" 2543#if defined(CRAY) && ! defined(CRAY2) 2544webecray 2545#else 2546wenotbecray 2547#endif 2548 2549EOF 2550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2551 egrep "webecray" >/dev/null 2>&1; then 2552 rm -rf conftest* 2553 ac_cv_os_cray=yes 2554else 2555 rm -rf conftest* 2556 ac_cv_os_cray=no 2557fi 2558rm -f conftest* 2559 2560fi 2561 2562echo "$ac_t""$ac_cv_os_cray" 1>&6 2563if test $ac_cv_os_cray = yes; then 2564for ac_func in _getb67 GETB67 getb67; do 2565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2566echo "configure:2567: checking for $ac_func" >&5 2567if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2568 echo $ac_n "(cached) $ac_c" 1>&6 2569else 2570 cat > conftest.$ac_ext <<EOF 2571#line 2572 "configure" 2572#include "confdefs.h" 2573/* System header to define __stub macros and hopefully few prototypes, 2574 which can conflict with char $ac_func(); below. */ 2575#include <assert.h> 2576/* Override any gcc2 internal prototype to avoid an error. */ 2577/* We use char because int might match the return type of a gcc2 2578 builtin and then its argument prototype would still apply. */ 2579char $ac_func(); 2580 2581int main() { 2582 2583/* The GNU C library defines this for functions which it implements 2584 to always fail with ENOSYS. Some functions are actually named 2585 something starting with __ and the normal name is an alias. */ 2586#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2587choke me 2588#else 2589$ac_func(); 2590#endif 2591 2592; return 0; } 2593EOF 2594if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2595 rm -rf conftest* 2596 eval "ac_cv_func_$ac_func=yes" 2597else 2598 echo "configure: failed program was:" >&5 2599 cat conftest.$ac_ext >&5 2600 rm -rf conftest* 2601 eval "ac_cv_func_$ac_func=no" 2602fi 2603rm -f conftest* 2604fi 2605 2606if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2607 echo "$ac_t""yes" 1>&6 2608 cat >> confdefs.h <<EOF 2609#define CRAY_STACKSEG_END $ac_func 2610EOF 2611 2612 break 2613else 2614 echo "$ac_t""no" 1>&6 2615fi 2616 2617done 2618fi 2619 2620echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2621echo "configure:2622: checking stack direction for C alloca" >&5 2622if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2623 echo $ac_n "(cached) $ac_c" 1>&6 2624else 2625 if test "$cross_compiling" = yes; then 2626 ac_cv_c_stack_direction=0 2627else 2628 cat > conftest.$ac_ext <<EOF 2629#line 2630 "configure" 2630#include "confdefs.h" 2631find_stack_direction () 2632{ 2633 static char *addr = 0; 2634 auto char dummy; 2635 if (addr == 0) 2636 { 2637 addr = &dummy; 2638 return find_stack_direction (); 2639 } 2640 else 2641 return (&dummy > addr) ? 1 : -1; 2642} 2643main () 2644{ 2645 exit (find_stack_direction() < 0); 2646} 2647EOF 2648if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2649then 2650 ac_cv_c_stack_direction=1 2651else 2652 echo "configure: failed program was:" >&5 2653 cat conftest.$ac_ext >&5 2654 rm -fr conftest* 2655 ac_cv_c_stack_direction=-1 2656fi 2657rm -fr conftest* 2658fi 2659 2660fi 2661 2662echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2663cat >> confdefs.h <<EOF 2664#define STACK_DIRECTION $ac_cv_c_stack_direction 2665EOF 2666 2667fi 2668 2669for ac_hdr in unistd.h 2670do 2671ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2672echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2673echo "configure:2674: checking for $ac_hdr" >&5 2674if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2675 echo $ac_n "(cached) $ac_c" 1>&6 2676else 2677 cat > conftest.$ac_ext <<EOF 2678#line 2679 "configure" 2679#include "confdefs.h" 2680#include <$ac_hdr> 2681EOF 2682ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2683{ (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2684ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2685if test -z "$ac_err"; then 2686 rm -rf conftest* 2687 eval "ac_cv_header_$ac_safe=yes" 2688else 2689 echo "$ac_err" >&5 2690 echo "configure: failed program was:" >&5 2691 cat conftest.$ac_ext >&5 2692 rm -rf conftest* 2693 eval "ac_cv_header_$ac_safe=no" 2694fi 2695rm -f conftest* 2696fi 2697if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2698 echo "$ac_t""yes" 1>&6 2699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2700 cat >> confdefs.h <<EOF 2701#define $ac_tr_hdr 1 2702EOF 2703 2704else 2705 echo "$ac_t""no" 1>&6 2706fi 2707done 2708 2709for ac_func in getpagesize 2710do 2711echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2712echo "configure:2713: checking for $ac_func" >&5 2713if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2714 echo $ac_n "(cached) $ac_c" 1>&6 2715else 2716 cat > conftest.$ac_ext <<EOF 2717#line 2718 "configure" 2718#include "confdefs.h" 2719/* System header to define __stub macros and hopefully few prototypes, 2720 which can conflict with char $ac_func(); below. */ 2721#include <assert.h> 2722/* Override any gcc2 internal prototype to avoid an error. */ 2723/* We use char because int might match the return type of a gcc2 2724 builtin and then its argument prototype would still apply. */ 2725char $ac_func(); 2726 2727int main() { 2728 2729/* The GNU C library defines this for functions which it implements 2730 to always fail with ENOSYS. Some functions are actually named 2731 something starting with __ and the normal name is an alias. */ 2732#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2733choke me 2734#else 2735$ac_func(); 2736#endif 2737 2738; return 0; } 2739EOF 2740if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2741 rm -rf conftest* 2742 eval "ac_cv_func_$ac_func=yes" 2743else 2744 echo "configure: failed program was:" >&5 2745 cat conftest.$ac_ext >&5 2746 rm -rf conftest* 2747 eval "ac_cv_func_$ac_func=no" 2748fi 2749rm -f conftest* 2750fi 2751 2752if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2753 echo "$ac_t""yes" 1>&6 2754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2755 cat >> confdefs.h <<EOF 2756#define $ac_tr_func 1 2757EOF 2758 2759else 2760 echo "$ac_t""no" 1>&6 2761fi 2762done 2763 2764echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2765echo "configure:2766: checking for working mmap" >&5 2766if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2767 echo $ac_n "(cached) $ac_c" 1>&6 2768else 2769 if test "$cross_compiling" = yes; then 2770 ac_cv_func_mmap_fixed_mapped=no 2771else 2772 cat > conftest.$ac_ext <<EOF 2773#line 2774 "configure" 2774#include "confdefs.h" 2775 2776/* Thanks to Mike Haertel and Jim Avera for this test. 2777 Here is a matrix of mmap possibilities: 2778 mmap private not fixed 2779 mmap private fixed at somewhere currently unmapped 2780 mmap private fixed at somewhere already mapped 2781 mmap shared not fixed 2782 mmap shared fixed at somewhere currently unmapped 2783 mmap shared fixed at somewhere already mapped 2784 For private mappings, we should verify that changes cannot be read() 2785 back from the file, nor mmap's back from the file at a different 2786 address. (There have been systems where private was not correctly 2787 implemented like the infamous i386 svr4.0, and systems where the 2788 VM page cache was not coherent with the filesystem buffer cache 2789 like early versions of FreeBSD and possibly contemporary NetBSD.) 2790 For shared mappings, we should conversely verify that changes get 2791 propogated back to all the places they're supposed to be. 2792 2793 Grep wants private fixed already mapped. 2794 The main things grep needs to know about mmap are: 2795 * does it exist and is it safe to write into the mmap'd area 2796 * how to use it (BSD variants) */ 2797#include <sys/types.h> 2798#include <fcntl.h> 2799#include <sys/mman.h> 2800#include <stdlib.h> 2801#include <sys/stat.h> 2802 2803#ifdef HAVE_UNISTD_H 2804# include <unistd.h> 2805#endif 2806 2807/* This mess was copied from the GNU getpagesize.h. */ 2808#ifndef HAVE_GETPAGESIZE 2809 2810/* Assume that all systems that can run configure have sys/param.h. */ 2811# ifndef HAVE_SYS_PARAM_H 2812# define HAVE_SYS_PARAM_H 1 2813# endif 2814 2815# ifdef _SC_PAGESIZE 2816# define getpagesize() sysconf(_SC_PAGESIZE) 2817# else /* no _SC_PAGESIZE */ 2818# ifdef HAVE_SYS_PARAM_H 2819# include <sys/param.h> 2820# ifdef EXEC_PAGESIZE 2821# define getpagesize() EXEC_PAGESIZE 2822# else /* no EXEC_PAGESIZE */ 2823# ifdef NBPG 2824# define getpagesize() NBPG * CLSIZE 2825# ifndef CLSIZE 2826# define CLSIZE 1 2827# endif /* no CLSIZE */ 2828# else /* no NBPG */ 2829# ifdef NBPC 2830# define getpagesize() NBPC 2831# else /* no NBPC */ 2832# ifdef PAGESIZE 2833# define getpagesize() PAGESIZE 2834# endif /* PAGESIZE */ 2835# endif /* no NBPC */ 2836# endif /* no NBPG */ 2837# endif /* no EXEC_PAGESIZE */ 2838# else /* no HAVE_SYS_PARAM_H */ 2839# define getpagesize() 8192 /* punt totally */ 2840# endif /* no HAVE_SYS_PARAM_H */ 2841# endif /* no _SC_PAGESIZE */ 2842 2843#endif /* no HAVE_GETPAGESIZE */ 2844 2845#ifdef __cplusplus 2846extern "C" { void *malloc(unsigned); } 2847#else 2848char *malloc(); 2849#endif 2850 2851int 2852main() 2853{ 2854 char *data, *data2, *data3; 2855 int i, pagesize; 2856 int fd; 2857 2858 pagesize = getpagesize(); 2859 2860 /* 2861 * First, make a file with some known garbage in it. 2862 */ 2863 data = (char*)malloc(pagesize); 2864 if (!data) 2865 exit(1); 2866 for (i = 0; i < pagesize; ++i) 2867 *(data + i) = rand(); 2868 umask(0); 2869 fd = creat("conftestmmap", 0600); 2870 if (fd < 0) 2871 exit(1); 2872 if (write(fd, data, pagesize) != pagesize) 2873 exit(1); 2874 close(fd); 2875 2876 /* 2877 * Next, try to mmap the file at a fixed address which 2878 * already has something else allocated at it. If we can, 2879 * also make sure that we see the same garbage. 2880 */ 2881 fd = open("conftestmmap", O_RDWR); 2882 if (fd < 0) 2883 exit(1); 2884 data2 = (char*)malloc(2 * pagesize); 2885 if (!data2) 2886 exit(1); 2887 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 2888 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 2889 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 2890 exit(1); 2891 for (i = 0; i < pagesize; ++i) 2892 if (*(data + i) != *(data2 + i)) 2893 exit(1); 2894 2895 /* 2896 * Finally, make sure that changes to the mapped area 2897 * do not percolate back to the file as seen by read(). 2898 * (This is a bug on some variants of i386 svr4.0.) 2899 */ 2900 for (i = 0; i < pagesize; ++i) 2901 *(data2 + i) = *(data2 + i) + 1; 2902 data3 = (char*)malloc(pagesize); 2903 if (!data3) 2904 exit(1); 2905 if (read(fd, data3, pagesize) != pagesize) 2906 exit(1); 2907 for (i = 0; i < pagesize; ++i) 2908 if (*(data + i) != *(data3 + i)) 2909 exit(1); 2910 close(fd); 2911 unlink("conftestmmap"); 2912 exit(0); 2913} 2914 2915EOF 2916if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2917then 2918 ac_cv_func_mmap_fixed_mapped=yes 2919else 2920 echo "configure: failed program was:" >&5 2921 cat conftest.$ac_ext >&5 2922 rm -fr conftest* 2923 ac_cv_func_mmap_fixed_mapped=no 2924fi 2925rm -fr conftest* 2926fi 2927 2928fi 2929 2930echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 2931if test $ac_cv_func_mmap_fixed_mapped = yes; then 2932 cat >> confdefs.h <<\EOF 2933#define HAVE_MMAP 1 2934EOF 2935 2936fi 2937 2938 2939 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 2940unistd.h values.h sys/param.h 2941do 2942ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2943echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2944echo "configure:2945: checking for $ac_hdr" >&5 2945if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2946 echo $ac_n "(cached) $ac_c" 1>&6 2947else 2948 cat > conftest.$ac_ext <<EOF 2949#line 2950 "configure" 2950#include "confdefs.h" 2951#include <$ac_hdr> 2952EOF 2953ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2954{ (eval echo configure:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2955ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2956if test -z "$ac_err"; then 2957 rm -rf conftest* 2958 eval "ac_cv_header_$ac_safe=yes" 2959else 2960 echo "$ac_err" >&5 2961 echo "configure: failed program was:" >&5 2962 cat conftest.$ac_ext >&5 2963 rm -rf conftest* 2964 eval "ac_cv_header_$ac_safe=no" 2965fi 2966rm -f conftest* 2967fi 2968if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2969 echo "$ac_t""yes" 1>&6 2970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2971 cat >> confdefs.h <<EOF 2972#define $ac_tr_hdr 1 2973EOF 2974 2975else 2976 echo "$ac_t""no" 1>&6 2977fi 2978done 2979 2980 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 2981__argz_count __argz_stringify __argz_next 2982do 2983echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2984echo "configure:2985: checking for $ac_func" >&5 2985if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2986 echo $ac_n "(cached) $ac_c" 1>&6 2987else 2988 cat > conftest.$ac_ext <<EOF 2989#line 2990 "configure" 2990#include "confdefs.h" 2991/* System header to define __stub macros and hopefully few prototypes, 2992 which can conflict with char $ac_func(); below. */ 2993#include <assert.h> 2994/* Override any gcc2 internal prototype to avoid an error. */ 2995/* We use char because int might match the return type of a gcc2 2996 builtin and then its argument prototype would still apply. */ 2997char $ac_func(); 2998 2999int main() { 3000 3001/* The GNU C library defines this for functions which it implements 3002 to always fail with ENOSYS. Some functions are actually named 3003 something starting with __ and the normal name is an alias. */ 3004#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3005choke me 3006#else 3007$ac_func(); 3008#endif 3009 3010; return 0; } 3011EOF 3012if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3013 rm -rf conftest* 3014 eval "ac_cv_func_$ac_func=yes" 3015else 3016 echo "configure: failed program was:" >&5 3017 cat conftest.$ac_ext >&5 3018 rm -rf conftest* 3019 eval "ac_cv_func_$ac_func=no" 3020fi 3021rm -f conftest* 3022fi 3023 3024if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3025 echo "$ac_t""yes" 1>&6 3026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3027 cat >> confdefs.h <<EOF 3028#define $ac_tr_func 1 3029EOF 3030 3031else 3032 echo "$ac_t""no" 1>&6 3033fi 3034done 3035 3036 3037 if test "${ac_cv_func_stpcpy+set}" != "set"; then 3038 for ac_func in stpcpy 3039do 3040echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3041echo "configure:3042: checking for $ac_func" >&5 3042if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3043 echo $ac_n "(cached) $ac_c" 1>&6 3044else 3045 cat > conftest.$ac_ext <<EOF 3046#line 3047 "configure" 3047#include "confdefs.h" 3048/* System header to define __stub macros and hopefully few prototypes, 3049 which can conflict with char $ac_func(); below. */ 3050#include <assert.h> 3051/* Override any gcc2 internal prototype to avoid an error. */ 3052/* We use char because int might match the return type of a gcc2 3053 builtin and then its argument prototype would still apply. */ 3054char $ac_func(); 3055 3056int main() { 3057 3058/* The GNU C library defines this for functions which it implements 3059 to always fail with ENOSYS. Some functions are actually named 3060 something starting with __ and the normal name is an alias. */ 3061#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3062choke me 3063#else 3064$ac_func(); 3065#endif 3066 3067; return 0; } 3068EOF 3069if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3070 rm -rf conftest* 3071 eval "ac_cv_func_$ac_func=yes" 3072else 3073 echo "configure: failed program was:" >&5 3074 cat conftest.$ac_ext >&5 3075 rm -rf conftest* 3076 eval "ac_cv_func_$ac_func=no" 3077fi 3078rm -f conftest* 3079fi 3080 3081if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3082 echo "$ac_t""yes" 1>&6 3083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3084 cat >> confdefs.h <<EOF 3085#define $ac_tr_func 1 3086EOF 3087 3088else 3089 echo "$ac_t""no" 1>&6 3090fi 3091done 3092 3093 fi 3094 if test "${ac_cv_func_stpcpy}" = "yes"; then 3095 cat >> confdefs.h <<\EOF 3096#define HAVE_STPCPY 1 3097EOF 3098 3099 fi 3100 3101 if test $ac_cv_header_locale_h = yes; then 3102 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 3103echo "configure:3104: checking for LC_MESSAGES" >&5 3104if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 3105 echo $ac_n "(cached) $ac_c" 1>&6 3106else 3107 cat > conftest.$ac_ext <<EOF 3108#line 3109 "configure" 3109#include "confdefs.h" 3110#include <locale.h> 3111int main() { 3112return LC_MESSAGES 3113; return 0; } 3114EOF 3115if { (eval echo configure:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3116 rm -rf conftest* 3117 am_cv_val_LC_MESSAGES=yes 3118else 3119 echo "configure: failed program was:" >&5 3120 cat conftest.$ac_ext >&5 3121 rm -rf conftest* 3122 am_cv_val_LC_MESSAGES=no 3123fi 3124rm -f conftest* 3125fi 3126 3127echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 3128 if test $am_cv_val_LC_MESSAGES = yes; then 3129 cat >> confdefs.h <<\EOF 3130#define HAVE_LC_MESSAGES 1 3131EOF 3132 3133 fi 3134 fi 3135 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 3136echo "configure:3137: checking whether NLS is requested" >&5 3137 # Check whether --enable-nls or --disable-nls was given. 3138if test "${enable_nls+set}" = set; then 3139 enableval="$enable_nls" 3140 USE_NLS=$enableval 3141else 3142 USE_NLS=yes 3143fi 3144 3145 echo "$ac_t""$USE_NLS" 1>&6 3146 3147 3148 USE_INCLUDED_LIBINTL=no 3149 3150 if test "$USE_NLS" = "yes"; then 3151 cat >> confdefs.h <<\EOF 3152#define ENABLE_NLS 1 3153EOF 3154 3155 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 3156echo "configure:3157: checking whether included gettext is requested" >&5 3157 # Check whether --with-included-gettext or --without-included-gettext was given. 3158if test "${with_included_gettext+set}" = set; then 3159 withval="$with_included_gettext" 3160 nls_cv_force_use_gnu_gettext=$withval 3161else 3162 nls_cv_force_use_gnu_gettext=no 3163fi 3164 3165 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 3166 3167 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 3168 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 3169 nls_cv_header_intl= 3170 nls_cv_header_libgt= 3171 CATOBJEXT=NONE 3172 3173 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 3174echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 3175echo "configure:3176: checking for libintl.h" >&5 3176if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3177 echo $ac_n "(cached) $ac_c" 1>&6 3178else 3179 cat > conftest.$ac_ext <<EOF 3180#line 3181 "configure" 3181#include "confdefs.h" 3182#include <libintl.h> 3183EOF 3184ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3185{ (eval echo configure:3186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3186ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3187if test -z "$ac_err"; then 3188 rm -rf conftest* 3189 eval "ac_cv_header_$ac_safe=yes" 3190else 3191 echo "$ac_err" >&5 3192 echo "configure: failed program was:" >&5 3193 cat conftest.$ac_ext >&5 3194 rm -rf conftest* 3195 eval "ac_cv_header_$ac_safe=no" 3196fi 3197rm -f conftest* 3198fi 3199if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3200 echo "$ac_t""yes" 1>&6 3201 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 3202echo "configure:3203: checking for gettext in libc" >&5 3203if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then 3204 echo $ac_n "(cached) $ac_c" 1>&6 3205else 3206 cat > conftest.$ac_ext <<EOF 3207#line 3208 "configure" 3208#include "confdefs.h" 3209#include <libintl.h> 3210int main() { 3211return (int) gettext ("") 3212; return 0; } 3213EOF 3214if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3215 rm -rf conftest* 3216 gt_cv_func_gettext_libc=yes 3217else 3218 echo "configure: failed program was:" >&5 3219 cat conftest.$ac_ext >&5 3220 rm -rf conftest* 3221 gt_cv_func_gettext_libc=no 3222fi 3223rm -f conftest* 3224fi 3225 3226echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 3227 3228 if test "$gt_cv_func_gettext_libc" != "yes"; then 3229 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 3230echo "configure:3231: checking for bindtextdomain in -lintl" >&5 3231ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` 3232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3233 echo $ac_n "(cached) $ac_c" 1>&6 3234else 3235 ac_save_LIBS="$LIBS" 3236LIBS="-lintl $LIBS" 3237cat > conftest.$ac_ext <<EOF 3238#line 3239 "configure" 3239#include "confdefs.h" 3240/* Override any gcc2 internal prototype to avoid an error. */ 3241/* We use char because int might match the return type of a gcc2 3242 builtin and then its argument prototype would still apply. */ 3243char bindtextdomain(); 3244 3245int main() { 3246bindtextdomain() 3247; return 0; } 3248EOF 3249if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3250 rm -rf conftest* 3251 eval "ac_cv_lib_$ac_lib_var=yes" 3252else 3253 echo "configure: failed program was:" >&5 3254 cat conftest.$ac_ext >&5 3255 rm -rf conftest* 3256 eval "ac_cv_lib_$ac_lib_var=no" 3257fi 3258rm -f conftest* 3259LIBS="$ac_save_LIBS" 3260 3261fi 3262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3263 echo "$ac_t""yes" 1>&6 3264 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 3265echo "configure:3266: checking for gettext in libintl" >&5 3266if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then 3267 echo $ac_n "(cached) $ac_c" 1>&6 3268else 3269 cat > conftest.$ac_ext <<EOF 3270#line 3271 "configure" 3271#include "confdefs.h" 3272 3273int main() { 3274return (int) gettext ("") 3275; return 0; } 3276EOF 3277if { (eval echo configure:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3278 rm -rf conftest* 3279 gt_cv_func_gettext_libintl=yes 3280else 3281 echo "configure: failed program was:" >&5 3282 cat conftest.$ac_ext >&5 3283 rm -rf conftest* 3284 gt_cv_func_gettext_libintl=no 3285fi 3286rm -f conftest* 3287fi 3288 3289echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 3290else 3291 echo "$ac_t""no" 1>&6 3292fi 3293 3294 fi 3295 3296 if test "$gt_cv_func_gettext_libc" = "yes" \ 3297 || test "$gt_cv_func_gettext_libintl" = "yes"; then 3298 cat >> confdefs.h <<\EOF 3299#define HAVE_GETTEXT 1 3300EOF 3301 3302 # Extract the first word of "msgfmt", so it can be a program name with args. 3303set dummy msgfmt; ac_word=$2 3304echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3305echo "configure:3306: checking for $ac_word" >&5 3306if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 3307 echo $ac_n "(cached) $ac_c" 1>&6 3308else 3309 case "$MSGFMT" in 3310 /*) 3311 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3312 ;; 3313 *) 3314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3315 for ac_dir in $PATH; do 3316 test -z "$ac_dir" && ac_dir=. 3317 if test -f $ac_dir/$ac_word; then 3318 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 3319 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 3320 break 3321 fi 3322 fi 3323 done 3324 IFS="$ac_save_ifs" 3325 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 3326 ;; 3327esac 3328fi 3329MSGFMT="$ac_cv_path_MSGFMT" 3330if test -n "$MSGFMT"; then 3331 echo "$ac_t""$MSGFMT" 1>&6 3332else 3333 echo "$ac_t""no" 1>&6 3334fi 3335 if test "$MSGFMT" != "no"; then 3336 for ac_func in dcgettext 3337do 3338echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3339echo "configure:3340: checking for $ac_func" >&5 3340if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3341 echo $ac_n "(cached) $ac_c" 1>&6 3342else 3343 cat > conftest.$ac_ext <<EOF 3344#line 3345 "configure" 3345#include "confdefs.h" 3346/* System header to define __stub macros and hopefully few prototypes, 3347 which can conflict with char $ac_func(); below. */ 3348#include <assert.h> 3349/* Override any gcc2 internal prototype to avoid an error. */ 3350/* We use char because int might match the return type of a gcc2 3351 builtin and then its argument prototype would still apply. */ 3352char $ac_func(); 3353 3354int main() { 3355 3356/* The GNU C library defines this for functions which it implements 3357 to always fail with ENOSYS. Some functions are actually named 3358 something starting with __ and the normal name is an alias. */ 3359#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3360choke me 3361#else 3362$ac_func(); 3363#endif 3364 3365; return 0; } 3366EOF 3367if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3368 rm -rf conftest* 3369 eval "ac_cv_func_$ac_func=yes" 3370else 3371 echo "configure: failed program was:" >&5 3372 cat conftest.$ac_ext >&5 3373 rm -rf conftest* 3374 eval "ac_cv_func_$ac_func=no" 3375fi 3376rm -f conftest* 3377fi 3378 3379if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3380 echo "$ac_t""yes" 1>&6 3381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3382 cat >> confdefs.h <<EOF 3383#define $ac_tr_func 1 3384EOF 3385 3386else 3387 echo "$ac_t""no" 1>&6 3388fi 3389done 3390 3391 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3392set dummy gmsgfmt; ac_word=$2 3393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3394echo "configure:3395: checking for $ac_word" >&5 3395if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 3396 echo $ac_n "(cached) $ac_c" 1>&6 3397else 3398 case "$GMSGFMT" in 3399 /*) 3400 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3401 ;; 3402 ?:/*) 3403 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 3404 ;; 3405 *) 3406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3407 ac_dummy="$PATH" 3408 for ac_dir in $ac_dummy; do 3409 test -z "$ac_dir" && ac_dir=. 3410 if test -f $ac_dir/$ac_word; then 3411 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 3412 break 3413 fi 3414 done 3415 IFS="$ac_save_ifs" 3416 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3417 ;; 3418esac 3419fi 3420GMSGFMT="$ac_cv_path_GMSGFMT" 3421if test -n "$GMSGFMT"; then 3422 echo "$ac_t""$GMSGFMT" 1>&6 3423else 3424 echo "$ac_t""no" 1>&6 3425fi 3426 3427 # Extract the first word of "xgettext", so it can be a program name with args. 3428set dummy xgettext; ac_word=$2 3429echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3430echo "configure:3431: checking for $ac_word" >&5 3431if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 3432 echo $ac_n "(cached) $ac_c" 1>&6 3433else 3434 case "$XGETTEXT" in 3435 /*) 3436 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3437 ;; 3438 *) 3439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3440 for ac_dir in $PATH; do 3441 test -z "$ac_dir" && ac_dir=. 3442 if test -f $ac_dir/$ac_word; then 3443 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 3444 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 3445 break 3446 fi 3447 fi 3448 done 3449 IFS="$ac_save_ifs" 3450 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3451 ;; 3452esac 3453fi 3454XGETTEXT="$ac_cv_path_XGETTEXT" 3455if test -n "$XGETTEXT"; then 3456 echo "$ac_t""$XGETTEXT" 1>&6 3457else 3458 echo "$ac_t""no" 1>&6 3459fi 3460 3461 cat > conftest.$ac_ext <<EOF 3462#line 3463 "configure" 3463#include "confdefs.h" 3464 3465int main() { 3466extern int _nl_msg_cat_cntr; 3467 return _nl_msg_cat_cntr 3468; return 0; } 3469EOF 3470if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3471 rm -rf conftest* 3472 CATOBJEXT=.gmo 3473 DATADIRNAME=share 3474else 3475 echo "configure: failed program was:" >&5 3476 cat conftest.$ac_ext >&5 3477 rm -rf conftest* 3478 CATOBJEXT=.mo 3479 DATADIRNAME=lib 3480fi 3481rm -f conftest* 3482 INSTOBJEXT=.mo 3483 fi 3484 fi 3485 3486else 3487 echo "$ac_t""no" 1>&6 3488fi 3489 3490 3491 3492 if test "$CATOBJEXT" = "NONE"; then 3493 nls_cv_use_gnu_gettext=yes 3494 fi 3495 fi 3496 3497 if test "$nls_cv_use_gnu_gettext" = "yes"; then 3498 INTLOBJS="\$(GETTOBJS)" 3499 # Extract the first word of "msgfmt", so it can be a program name with args. 3500set dummy msgfmt; ac_word=$2 3501echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3502echo "configure:3503: checking for $ac_word" >&5 3503if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 3504 echo $ac_n "(cached) $ac_c" 1>&6 3505else 3506 case "$MSGFMT" in 3507 /*) 3508 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3509 ;; 3510 *) 3511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3512 for ac_dir in $PATH; do 3513 test -z "$ac_dir" && ac_dir=. 3514 if test -f $ac_dir/$ac_word; then 3515 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 3516 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 3517 break 3518 fi 3519 fi 3520 done 3521 IFS="$ac_save_ifs" 3522 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 3523 ;; 3524esac 3525fi 3526MSGFMT="$ac_cv_path_MSGFMT" 3527if test -n "$MSGFMT"; then 3528 echo "$ac_t""$MSGFMT" 1>&6 3529else 3530 echo "$ac_t""no" 1>&6 3531fi 3532 3533 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3534set dummy gmsgfmt; ac_word=$2 3535echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3536echo "configure:3537: checking for $ac_word" >&5 3537if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 3538 echo $ac_n "(cached) $ac_c" 1>&6 3539else 3540 case "$GMSGFMT" in 3541 /*) 3542 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3543 ;; 3544 ?:/*) 3545 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 3546 ;; 3547 *) 3548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3549 ac_dummy="$PATH" 3550 for ac_dir in $ac_dummy; do 3551 test -z "$ac_dir" && ac_dir=. 3552 if test -f $ac_dir/$ac_word; then 3553 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 3554 break 3555 fi 3556 done 3557 IFS="$ac_save_ifs" 3558 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3559 ;; 3560esac 3561fi 3562GMSGFMT="$ac_cv_path_GMSGFMT" 3563if test -n "$GMSGFMT"; then 3564 echo "$ac_t""$GMSGFMT" 1>&6 3565else 3566 echo "$ac_t""no" 1>&6 3567fi 3568 3569 # Extract the first word of "xgettext", so it can be a program name with args. 3570set dummy xgettext; ac_word=$2 3571echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3572echo "configure:3573: checking for $ac_word" >&5 3573if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 3574 echo $ac_n "(cached) $ac_c" 1>&6 3575else 3576 case "$XGETTEXT" in 3577 /*) 3578 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3579 ;; 3580 *) 3581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3582 for ac_dir in $PATH; do 3583 test -z "$ac_dir" && ac_dir=. 3584 if test -f $ac_dir/$ac_word; then 3585 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 3586 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 3587 break 3588 fi 3589 fi 3590 done 3591 IFS="$ac_save_ifs" 3592 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3593 ;; 3594esac 3595fi 3596XGETTEXT="$ac_cv_path_XGETTEXT" 3597if test -n "$XGETTEXT"; then 3598 echo "$ac_t""$XGETTEXT" 1>&6 3599else 3600 echo "$ac_t""no" 1>&6 3601fi 3602 3603 3604 USE_INCLUDED_LIBINTL=yes 3605 CATOBJEXT=.gmo 3606 INSTOBJEXT=.mo 3607 DATADIRNAME=share 3608 INTLDEPS='$(top_builddir)/../intl/libintl.a' 3609 INTLLIBS=$INTLDEPS 3610 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 3611 nls_cv_header_intl=libintl.h 3612 nls_cv_header_libgt=libgettext.h 3613 fi 3614 3615 if test "$XGETTEXT" != ":"; then 3616 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 3617 : ; 3618 else 3619 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 3620 XGETTEXT=":" 3621 fi 3622 fi 3623 3624 # We need to process the po/ directory. 3625 POSUB=po 3626 else 3627 DATADIRNAME=share 3628 nls_cv_header_intl=libintl.h 3629 nls_cv_header_libgt=libgettext.h 3630 fi 3631 3632 # If this is used in GNU gettext we have to set USE_NLS to `yes' 3633 # because some of the sources are only built for this goal. 3634 if test "$PACKAGE" = gettext; then 3635 USE_NLS=yes 3636 USE_INCLUDED_LIBINTL=yes 3637 fi 3638 3639 for lang in $ALL_LINGUAS; do 3640 GMOFILES="$GMOFILES $lang.gmo" 3641 POFILES="$POFILES $lang.po" 3642 done 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 if test "x$CATOBJEXT" != "x"; then 3658 if test "x$ALL_LINGUAS" = "x"; then 3659 LINGUAS= 3660 else 3661 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 3662echo "configure:3663: checking for catalogs to be installed" >&5 3663 NEW_LINGUAS= 3664 for lang in ${LINGUAS=$ALL_LINGUAS}; do 3665 case "$ALL_LINGUAS" in 3666 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 3667 esac 3668 done 3669 LINGUAS=$NEW_LINGUAS 3670 echo "$ac_t""$LINGUAS" 1>&6 3671 fi 3672 3673 if test -n "$LINGUAS"; then 3674 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 3675 fi 3676 fi 3677 3678 if test $ac_cv_header_locale_h = yes; then 3679 INCLUDE_LOCALE_H="#include <locale.h>" 3680 else 3681 INCLUDE_LOCALE_H="\ 3682/* The system does not provide the header <locale.h>. Take care yourself. */" 3683 fi 3684 3685 3686 if test -f $srcdir/po2tbl.sed.in; then 3687 if test "$CATOBJEXT" = ".cat"; then 3688 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` 3689echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 3690echo "configure:3691: checking for linux/version.h" >&5 3691if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3692 echo $ac_n "(cached) $ac_c" 1>&6 3693else 3694 cat > conftest.$ac_ext <<EOF 3695#line 3696 "configure" 3696#include "confdefs.h" 3697#include <linux/version.h> 3698EOF 3699ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3700{ (eval echo configure:3701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3701ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3702if test -z "$ac_err"; then 3703 rm -rf conftest* 3704 eval "ac_cv_header_$ac_safe=yes" 3705else 3706 echo "$ac_err" >&5 3707 echo "configure: failed program was:" >&5 3708 cat conftest.$ac_ext >&5 3709 rm -rf conftest* 3710 eval "ac_cv_header_$ac_safe=no" 3711fi 3712rm -f conftest* 3713fi 3714if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3715 echo "$ac_t""yes" 1>&6 3716 msgformat=linux 3717else 3718 echo "$ac_t""no" 1>&6 3719msgformat=xopen 3720fi 3721 3722 3723 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed 3724 fi 3725 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 3726 $srcdir/po2tbl.sed.in > po2tbl.sed 3727 fi 3728 3729 if test "$PACKAGE" = "gettext"; then 3730 GT_NO="#NO#" 3731 GT_YES= 3732 else 3733 GT_NO= 3734 GT_YES="#YES#" 3735 fi 3736 3737 3738 3739 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" 3740 3741 3742 l= 3743 3744 3745 if test -d $srcdir/po; then 3746 test -d po || mkdir po 3747 if test "x$srcdir" != "x."; then 3748 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 3749 posrcprefix="$srcdir/" 3750 else 3751 posrcprefix="../$srcdir/" 3752 fi 3753 else 3754 posrcprefix="../" 3755 fi 3756 rm -f po/POTFILES 3757 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 3758 < $srcdir/po/POTFILES.in > po/POTFILES 3759 fi 3760 3761 3762# Permit host specific settings. 3763. ${srcdir}/configure.host 3764 3765 3766# Find a good install program. We prefer a C program (faster), 3767# so one script is as good as another. But avoid the broken or 3768# incompatible versions: 3769# SysV /etc/install, /usr/sbin/install 3770# SunOS /usr/etc/install 3771# IRIX /sbin/install 3772# AIX /bin/install 3773# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3774# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3775# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3776# ./install, which can be erroneously created by make from ./install.sh. 3777echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3778echo "configure:3779: checking for a BSD compatible install" >&5 3779if test -z "$INSTALL"; then 3780if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3781 echo $ac_n "(cached) $ac_c" 1>&6 3782else 3783 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3784 for ac_dir in $PATH; do 3785 # Account for people who put trailing slashes in PATH elements. 3786 case "$ac_dir/" in 3787 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3788 *) 3789 # OSF1 and SCO ODT 3.0 have their own names for install. 3790 # Don't use installbsd from OSF since it installs stuff as root 3791 # by default. 3792 for ac_prog in ginstall scoinst install; do 3793 if test -f $ac_dir/$ac_prog; then 3794 if test $ac_prog = install && 3795 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3796 # AIX install. It has an incompatible calling convention. 3797 : 3798 else 3799 ac_cv_path_install="$ac_dir/$ac_prog -c" 3800 break 2 3801 fi 3802 fi 3803 done 3804 ;; 3805 esac 3806 done 3807 IFS="$ac_save_IFS" 3808 3809fi 3810 if test "${ac_cv_path_install+set}" = set; then 3811 INSTALL="$ac_cv_path_install" 3812 else 3813 # As a last resort, use the slow shell script. We don't cache a 3814 # path for INSTALL within a source directory, because that will 3815 # break other packages using the cache if that directory is 3816 # removed, or if the path is relative. 3817 INSTALL="$ac_install_sh" 3818 fi 3819fi 3820echo "$ac_t""$INSTALL" 1>&6 3821 3822# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3823# It thinks the first close brace ends the variable substitution. 3824test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3825 3826test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3827 3828test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3829 3830 3831BFD_HOST_64BIT_LONG=0 3832BFD_HOST_64_BIT_DEFINED=0 3833BFD_HOST_64_BIT= 3834BFD_HOST_U_64_BIT= 3835if test "x${HOST_64BIT_TYPE}" = "xlong"; then 3836 BFD_HOST_64BIT_LONG=1 3837elif test "x${HOST_64BIT_TYPE}" != "x"; then 3838 BFD_HOST_64_BIT_DEFINED=1 3839 BFD_HOST_64_BIT=${HOST_64BIT_TYPE} 3840 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE} 3841fi 3842 3843 3844 3845 3846 3847# Put a plausible default for CC_FOR_BUILD in Makefile. 3848if test -z "$CC_FOR_BUILD"; then 3849 if test "x$cross_compiling" = "xno"; then 3850 CC_FOR_BUILD='$(CC)' 3851 else 3852 CC_FOR_BUILD=gcc 3853 fi 3854fi 3855 3856# Also set EXEEXT_FOR_BUILD. 3857if test "x$cross_compiling" = "xno"; then 3858 EXEEXT_FOR_BUILD='$(EXEEXT)' 3859else 3860 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 3861echo "configure:3862: checking for build system executable suffix" >&5 3862if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then 3863 echo $ac_n "(cached) $ac_c" 1>&6 3864else 3865 rm -f conftest* 3866 echo 'int main () { return 0; }' > conftest.c 3867 bfd_cv_build_exeext= 3868 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 3869 for file in conftest.*; do 3870 case $file in 3871 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 3872 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 3873 esac 3874 done 3875 rm -f conftest* 3876 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 3877fi 3878 3879echo "$ac_t""$bfd_cv_build_exeext" 1>&6 3880 EXEEXT_FOR_BUILD="" 3881 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 3882fi 3883 3884 3885for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h 3886do 3887ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3888echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3889echo "configure:3890: checking for $ac_hdr" >&5 3890if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3891 echo $ac_n "(cached) $ac_c" 1>&6 3892else 3893 cat > conftest.$ac_ext <<EOF 3894#line 3895 "configure" 3895#include "confdefs.h" 3896#include <$ac_hdr> 3897EOF 3898ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3899{ (eval echo configure:3900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3900ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3901if test -z "$ac_err"; then 3902 rm -rf conftest* 3903 eval "ac_cv_header_$ac_safe=yes" 3904else 3905 echo "$ac_err" >&5 3906 echo "configure: failed program was:" >&5 3907 cat conftest.$ac_ext >&5 3908 rm -rf conftest* 3909 eval "ac_cv_header_$ac_safe=no" 3910fi 3911rm -f conftest* 3912fi 3913if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3914 echo "$ac_t""yes" 1>&6 3915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3916 cat >> confdefs.h <<EOF 3917#define $ac_tr_hdr 1 3918EOF 3919 3920else 3921 echo "$ac_t""no" 1>&6 3922fi 3923done 3924 3925for ac_hdr in fcntl.h sys/file.h sys/time.h 3926do 3927ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3928echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3929echo "configure:3930: checking for $ac_hdr" >&5 3930if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3931 echo $ac_n "(cached) $ac_c" 1>&6 3932else 3933 cat > conftest.$ac_ext <<EOF 3934#line 3935 "configure" 3935#include "confdefs.h" 3936#include <$ac_hdr> 3937EOF 3938ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3939{ (eval echo configure:3940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3940ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3941if test -z "$ac_err"; then 3942 rm -rf conftest* 3943 eval "ac_cv_header_$ac_safe=yes" 3944else 3945 echo "$ac_err" >&5 3946 echo "configure: failed program was:" >&5 3947 cat conftest.$ac_ext >&5 3948 rm -rf conftest* 3949 eval "ac_cv_header_$ac_safe=no" 3950fi 3951rm -f conftest* 3952fi 3953if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3954 echo "$ac_t""yes" 1>&6 3955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3956 cat >> confdefs.h <<EOF 3957#define $ac_tr_hdr 1 3958EOF 3959 3960else 3961 echo "$ac_t""no" 1>&6 3962fi 3963done 3964 3965echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3966echo "configure:3967: checking whether time.h and sys/time.h may both be included" >&5 3967if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 3968 echo $ac_n "(cached) $ac_c" 1>&6 3969else 3970 cat > conftest.$ac_ext <<EOF 3971#line 3972 "configure" 3972#include "confdefs.h" 3973#include <sys/types.h> 3974#include <sys/time.h> 3975#include <time.h> 3976int main() { 3977struct tm *tp; 3978; return 0; } 3979EOF 3980if { (eval echo configure:3981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3981 rm -rf conftest* 3982 ac_cv_header_time=yes 3983else 3984 echo "configure: failed program was:" >&5 3985 cat conftest.$ac_ext >&5 3986 rm -rf conftest* 3987 ac_cv_header_time=no 3988fi 3989rm -f conftest* 3990fi 3991 3992echo "$ac_t""$ac_cv_header_time" 1>&6 3993if test $ac_cv_header_time = yes; then 3994 cat >> confdefs.h <<\EOF 3995#define TIME_WITH_SYS_TIME 1 3996EOF 3997 3998fi 3999 4000ac_header_dirent=no 4001for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 4002do 4003ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4004echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 4005echo "configure:4006: checking for $ac_hdr that defines DIR" >&5 4006if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 4007 echo $ac_n "(cached) $ac_c" 1>&6 4008else 4009 cat > conftest.$ac_ext <<EOF 4010#line 4011 "configure" 4011#include "confdefs.h" 4012#include <sys/types.h> 4013#include <$ac_hdr> 4014int main() { 4015DIR *dirp = 0; 4016; return 0; } 4017EOF 4018if { (eval echo configure:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4019 rm -rf conftest* 4020 eval "ac_cv_header_dirent_$ac_safe=yes" 4021else 4022 echo "configure: failed program was:" >&5 4023 cat conftest.$ac_ext >&5 4024 rm -rf conftest* 4025 eval "ac_cv_header_dirent_$ac_safe=no" 4026fi 4027rm -f conftest* 4028fi 4029if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 4030 echo "$ac_t""yes" 1>&6 4031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4032 cat >> confdefs.h <<EOF 4033#define $ac_tr_hdr 1 4034EOF 4035 ac_header_dirent=$ac_hdr; break 4036else 4037 echo "$ac_t""no" 1>&6 4038fi 4039done 4040# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4041if test $ac_header_dirent = dirent.h; then 4042echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 4043echo "configure:4044: checking for opendir in -ldir" >&5 4044ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 4045if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4046 echo $ac_n "(cached) $ac_c" 1>&6 4047else 4048 ac_save_LIBS="$LIBS" 4049LIBS="-ldir $LIBS" 4050cat > conftest.$ac_ext <<EOF 4051#line 4052 "configure" 4052#include "confdefs.h" 4053/* Override any gcc2 internal prototype to avoid an error. */ 4054/* We use char because int might match the return type of a gcc2 4055 builtin and then its argument prototype would still apply. */ 4056char opendir(); 4057 4058int main() { 4059opendir() 4060; return 0; } 4061EOF 4062if { (eval echo configure:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4063 rm -rf conftest* 4064 eval "ac_cv_lib_$ac_lib_var=yes" 4065else 4066 echo "configure: failed program was:" >&5 4067 cat conftest.$ac_ext >&5 4068 rm -rf conftest* 4069 eval "ac_cv_lib_$ac_lib_var=no" 4070fi 4071rm -f conftest* 4072LIBS="$ac_save_LIBS" 4073 4074fi 4075if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4076 echo "$ac_t""yes" 1>&6 4077 LIBS="$LIBS -ldir" 4078else 4079 echo "$ac_t""no" 1>&6 4080fi 4081 4082else 4083echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 4084echo "configure:4085: checking for opendir in -lx" >&5 4085ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 4086if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4087 echo $ac_n "(cached) $ac_c" 1>&6 4088else 4089 ac_save_LIBS="$LIBS" 4090LIBS="-lx $LIBS" 4091cat > conftest.$ac_ext <<EOF 4092#line 4093 "configure" 4093#include "confdefs.h" 4094/* Override any gcc2 internal prototype to avoid an error. */ 4095/* We use char because int might match the return type of a gcc2 4096 builtin and then its argument prototype would still apply. */ 4097char opendir(); 4098 4099int main() { 4100opendir() 4101; return 0; } 4102EOF 4103if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4104 rm -rf conftest* 4105 eval "ac_cv_lib_$ac_lib_var=yes" 4106else 4107 echo "configure: failed program was:" >&5 4108 cat conftest.$ac_ext >&5 4109 rm -rf conftest* 4110 eval "ac_cv_lib_$ac_lib_var=no" 4111fi 4112rm -f conftest* 4113LIBS="$ac_save_LIBS" 4114 4115fi 4116if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4117 echo "$ac_t""yes" 1>&6 4118 LIBS="$LIBS -lx" 4119else 4120 echo "$ac_t""no" 1>&6 4121fi 4122 4123fi 4124 4125for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid 4126do 4127echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4128echo "configure:4129: checking for $ac_func" >&5 4129if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4130 echo $ac_n "(cached) $ac_c" 1>&6 4131else 4132 cat > conftest.$ac_ext <<EOF 4133#line 4134 "configure" 4134#include "confdefs.h" 4135/* System header to define __stub macros and hopefully few prototypes, 4136 which can conflict with char $ac_func(); below. */ 4137#include <assert.h> 4138/* Override any gcc2 internal prototype to avoid an error. */ 4139/* We use char because int might match the return type of a gcc2 4140 builtin and then its argument prototype would still apply. */ 4141char $ac_func(); 4142 4143int main() { 4144 4145/* The GNU C library defines this for functions which it implements 4146 to always fail with ENOSYS. Some functions are actually named 4147 something starting with __ and the normal name is an alias. */ 4148#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4149choke me 4150#else 4151$ac_func(); 4152#endif 4153 4154; return 0; } 4155EOF 4156if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4157 rm -rf conftest* 4158 eval "ac_cv_func_$ac_func=yes" 4159else 4160 echo "configure: failed program was:" >&5 4161 cat conftest.$ac_ext >&5 4162 rm -rf conftest* 4163 eval "ac_cv_func_$ac_func=no" 4164fi 4165rm -f conftest* 4166fi 4167 4168if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4169 echo "$ac_t""yes" 1>&6 4170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4171 cat >> confdefs.h <<EOF 4172#define $ac_tr_func 1 4173EOF 4174 4175else 4176 echo "$ac_t""no" 1>&6 4177fi 4178done 4179 4180 4181 4182case "${host}" in 4183*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 4184 cat >> confdefs.h <<\EOF 4185#define USE_BINARY_FOPEN 1 4186EOF 4187 ;; 4188esac 4189 4190echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 4191echo "configure:4192: checking whether strstr must be declared" >&5 4192if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then 4193 echo $ac_n "(cached) $ac_c" 1>&6 4194else 4195 cat > conftest.$ac_ext <<EOF 4196#line 4197 "configure" 4197#include "confdefs.h" 4198 4199#include <stdio.h> 4200#ifdef HAVE_STRING_H 4201#include <string.h> 4202#else 4203#ifdef HAVE_STRINGS_H 4204#include <strings.h> 4205#endif 4206#endif 4207#ifdef HAVE_STDLIB_H 4208#include <stdlib.h> 4209#endif 4210#ifdef HAVE_UNISTD_H 4211#include <unistd.h> 4212#endif 4213int main() { 4214char *(*pfn) = (char *(*)) strstr 4215; return 0; } 4216EOF 4217if { (eval echo configure:4218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4218 rm -rf conftest* 4219 bfd_cv_decl_needed_strstr=no 4220else 4221 echo "configure: failed program was:" >&5 4222 cat conftest.$ac_ext >&5 4223 rm -rf conftest* 4224 bfd_cv_decl_needed_strstr=yes 4225fi 4226rm -f conftest* 4227fi 4228 4229echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 4230if test $bfd_cv_decl_needed_strstr = yes; then 4231 cat >> confdefs.h <<\EOF 4232#define NEED_DECLARATION_STRSTR 1 4233EOF 4234 4235fi 4236 4237echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 4238echo "configure:4239: checking whether malloc must be declared" >&5 4239if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then 4240 echo $ac_n "(cached) $ac_c" 1>&6 4241else 4242 cat > conftest.$ac_ext <<EOF 4243#line 4244 "configure" 4244#include "confdefs.h" 4245 4246#include <stdio.h> 4247#ifdef HAVE_STRING_H 4248#include <string.h> 4249#else 4250#ifdef HAVE_STRINGS_H 4251#include <strings.h> 4252#endif 4253#endif 4254#ifdef HAVE_STDLIB_H 4255#include <stdlib.h> 4256#endif 4257#ifdef HAVE_UNISTD_H 4258#include <unistd.h> 4259#endif 4260int main() { 4261char *(*pfn) = (char *(*)) malloc 4262; return 0; } 4263EOF 4264if { (eval echo configure:4265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4265 rm -rf conftest* 4266 bfd_cv_decl_needed_malloc=no 4267else 4268 echo "configure: failed program was:" >&5 4269 cat conftest.$ac_ext >&5 4270 rm -rf conftest* 4271 bfd_cv_decl_needed_malloc=yes 4272fi 4273rm -f conftest* 4274fi 4275 4276echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 4277if test $bfd_cv_decl_needed_malloc = yes; then 4278 cat >> confdefs.h <<\EOF 4279#define NEED_DECLARATION_MALLOC 1 4280EOF 4281 4282fi 4283 4284echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 4285echo "configure:4286: checking whether realloc must be declared" >&5 4286if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then 4287 echo $ac_n "(cached) $ac_c" 1>&6 4288else 4289 cat > conftest.$ac_ext <<EOF 4290#line 4291 "configure" 4291#include "confdefs.h" 4292 4293#include <stdio.h> 4294#ifdef HAVE_STRING_H 4295#include <string.h> 4296#else 4297#ifdef HAVE_STRINGS_H 4298#include <strings.h> 4299#endif 4300#endif 4301#ifdef HAVE_STDLIB_H 4302#include <stdlib.h> 4303#endif 4304#ifdef HAVE_UNISTD_H 4305#include <unistd.h> 4306#endif 4307int main() { 4308char *(*pfn) = (char *(*)) realloc 4309; return 0; } 4310EOF 4311if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4312 rm -rf conftest* 4313 bfd_cv_decl_needed_realloc=no 4314else 4315 echo "configure: failed program was:" >&5 4316 cat conftest.$ac_ext >&5 4317 rm -rf conftest* 4318 bfd_cv_decl_needed_realloc=yes 4319fi 4320rm -f conftest* 4321fi 4322 4323echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 4324if test $bfd_cv_decl_needed_realloc = yes; then 4325 cat >> confdefs.h <<\EOF 4326#define NEED_DECLARATION_REALLOC 1 4327EOF 4328 4329fi 4330 4331echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 4332echo "configure:4333: checking whether free must be declared" >&5 4333if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then 4334 echo $ac_n "(cached) $ac_c" 1>&6 4335else 4336 cat > conftest.$ac_ext <<EOF 4337#line 4338 "configure" 4338#include "confdefs.h" 4339 4340#include <stdio.h> 4341#ifdef HAVE_STRING_H 4342#include <string.h> 4343#else 4344#ifdef HAVE_STRINGS_H 4345#include <strings.h> 4346#endif 4347#endif 4348#ifdef HAVE_STDLIB_H 4349#include <stdlib.h> 4350#endif 4351#ifdef HAVE_UNISTD_H 4352#include <unistd.h> 4353#endif 4354int main() { 4355char *(*pfn) = (char *(*)) free 4356; return 0; } 4357EOF 4358if { (eval echo configure:4359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4359 rm -rf conftest* 4360 bfd_cv_decl_needed_free=no 4361else 4362 echo "configure: failed program was:" >&5 4363 cat conftest.$ac_ext >&5 4364 rm -rf conftest* 4365 bfd_cv_decl_needed_free=yes 4366fi 4367rm -f conftest* 4368fi 4369 4370echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6 4371if test $bfd_cv_decl_needed_free = yes; then 4372 cat >> confdefs.h <<\EOF 4373#define NEED_DECLARATION_FREE 1 4374EOF 4375 4376fi 4377 4378echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 4379echo "configure:4380: checking whether getenv must be declared" >&5 4380if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then 4381 echo $ac_n "(cached) $ac_c" 1>&6 4382else 4383 cat > conftest.$ac_ext <<EOF 4384#line 4385 "configure" 4385#include "confdefs.h" 4386 4387#include <stdio.h> 4388#ifdef HAVE_STRING_H 4389#include <string.h> 4390#else 4391#ifdef HAVE_STRINGS_H 4392#include <strings.h> 4393#endif 4394#endif 4395#ifdef HAVE_STDLIB_H 4396#include <stdlib.h> 4397#endif 4398#ifdef HAVE_UNISTD_H 4399#include <unistd.h> 4400#endif 4401int main() { 4402char *(*pfn) = (char *(*)) getenv 4403; return 0; } 4404EOF 4405if { (eval echo configure:4406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4406 rm -rf conftest* 4407 bfd_cv_decl_needed_getenv=no 4408else 4409 echo "configure: failed program was:" >&5 4410 cat conftest.$ac_ext >&5 4411 rm -rf conftest* 4412 bfd_cv_decl_needed_getenv=yes 4413fi 4414rm -f conftest* 4415fi 4416 4417echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6 4418if test $bfd_cv_decl_needed_getenv = yes; then 4419 cat >> confdefs.h <<\EOF 4420#define NEED_DECLARATION_GETENV 1 4421EOF 4422 4423fi 4424 4425 4426# If we are configured native, pick a core file support file. 4427COREFILE= 4428COREFLAG= 4429TRAD_HEADER= 4430if test "${target}" = "${host}"; then 4431 case "${host}" in 4432 alpha*-*-linux-gnu*) 4433 COREFILE=trad-core.lo 4434 TRAD_HEADER='"hosts/alphalinux.h"' 4435 ;; 4436 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;; 4437 alpha*-*-freebsd*) ;; 4438 alpha*-*-*) COREFILE=osf-core.lo ;; 4439 arm-*-riscix) COREFILE=trad-core.lo ;; 4440 hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 4441 hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 4442 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 4443 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 4444 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 4445 i370-*-*) 4446 COREFILE=trad-core.lo 4447 TRAD_HEADER='"hosts/i370linux.h"' 4448 ;; 4449 4450 i[3456]86-sequent-bsd*) 4451 COREFILE=trad-core.lo 4452 TRAD_HEADER='"hosts/symmetry.h"' 4453 ;; 4454 i[3456]86-sequent-sysv4*) ;; 4455 i[3456]86-sequent-sysv*) 4456 COREFILE=trad-core.lo 4457 TRAD_HEADER='"hosts/symmetry.h"' 4458 ;; 4459 i[3456]86-*-bsd* | i[3456]86-*-freebsd*) 4460 COREFILE=trad-core.lo 4461 TRAD_HEADER='"hosts/i386bsd.h"' 4462 ;; 4463 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) 4464 COREFILE=netbsd-core.lo 4465 ;; 4466 i[3456]86-esix-sysv3*) 4467 COREFILE=trad-core.lo 4468 TRAD_HEADER='"hosts/esix.h"' 4469 ;; 4470 i[3456]86-*-sco3.2v5*) 4471 COREFILE=sco5-core.lo 4472 ;; 4473 i[3456]86-*-sco* | i[3456]86-*-isc*) 4474 COREFILE=trad-core.lo 4475 TRAD_HEADER='"hosts/i386sco.h"' 4476 ;; 4477 i[3456]86-*-mach3*) 4478 COREFILE=trad-core.lo 4479 TRAD_HEADER='"hosts/i386mach3.h"' 4480 ;; 4481 i[3456]86-*-linux-gnu*) 4482 COREFILE=trad-core.lo 4483 TRAD_HEADER='"hosts/i386linux.h"' 4484 ;; 4485 i[3456]86-*-isc*) COREFILE=trad-core.lo ;; 4486 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;; 4487 i860-*-mach3* | i860-*-osf1*) 4488 COREFILE=trad-core.lo 4489 TRAD_HEADER='"hosts/i860mach3.h"' 4490 ;; 4491 mips-dec-bsd*) 4492 COREFILE=trad-core.lo 4493 TRAD_HEADER='"hosts/mipsbsd.h"' 4494 ;; 4495 mips-dec-mach3*) 4496 COREFILE=trad-core.lo 4497 TRAD_HEADER='"hosts/mipsmach3.h"' 4498 ;; 4499 mips-*-netbsd* | mips*-*-openbsd*) 4500 COREFILE=netbsd-core.lo 4501 ;; 4502 mips-dec-*) 4503 COREFILE=trad-core.lo 4504 TRAD_HEADER='"hosts/decstation.h"' 4505 ;; 4506 mips-sgi-irix4*) COREFILE=irix-core.lo ;; 4507 mips-sgi-irix5*) COREFILE=irix-core.lo ;; 4508 mips-sgi-irix6*) COREFILE=irix-core.lo ;; 4509 mips-*-mach3*) 4510 COREFILE=trad-core.lo 4511 TRAD_HEADER='"hosts/mipsmach3.h"' 4512 ;; 4513 mips-*-sysv4*) ;; 4514 mips-*-sysv* | mips-*-riscos*) 4515 COREFILE=trad-core.lo 4516 TRAD_HEADER='"hosts/riscos.h"' 4517 ;; 4518 mips-sony-bsd*) 4519 COREFILE=trad-core.lo 4520 TRAD_HEADER='"hosts/news-mips.h"' 4521 ;; 4522 m68*-bull*-sysv*) 4523 COREFILE=trad-core.lo 4524 TRAD_HEADER='"hosts/dpx2.h"' 4525 ;; 4526 m68*-hp-hpux*) COREFILE=hpux-core.lo ;; 4527 m68*-hp-bsd*) 4528 COREFILE=trad-core.lo 4529 TRAD_HEADER='"hosts/hp300bsd.h"' 4530 ;; 4531 m68*-*-linux-gnu*) 4532 COREFILE=trad-core.lo 4533 TRAD_HEADER='"hosts/m68klinux.h"' 4534 ;; 4535 m68*-motorola-sysv*) 4536 COREFILE=trad-core.lo 4537 TRAD_HEADER='"hosts/delta68.h"' 4538 ;; 4539 m68*-sony-*) 4540 COREFILE=trad-core.lo 4541 TRAD_HEADER='"hosts/news.h"' 4542 ;; 4543 m68*-*-netbsd* | m68*-*-openbsd*) 4544 COREFILE=netbsd-core.lo 4545 ;; 4546 m68*-apple-aux*) 4547 COREFILE=trad-core.lo 4548 TRAD_HEADER='"hosts/m68kaux.h"' 4549 ;; 4550 m88*-*-sysv4*) ;; 4551 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;; 4552 m88*-*-mach3*) 4553 COREFILE=trad-core.lo 4554 TRAD_HEADER='"hosts/m88kmach3.h"' 4555 ;; 4556 ns32k-pc532-mach) 4557 COREFILE=trad-core.lo 4558 TRAD_HEADER='"hosts/pc532mach.h"' 4559 ;; 4560 ns32k-*-netbsd* | ns32k-*-openbsd*) 4561 COREFILE=netbsd-core.lo 4562 ;; 4563 rs6000-*-lynx*) COREFILE=lynx-core.lo ;; 4564 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 4565 rs6000-*-*) COREFILE=rs6000-core.lo ;; 4566 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 4567 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 4568 powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 4569 powerpc-*-beos*) ;; 4570 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 4571 sparc-*-netbsd* | sparc-*-openbsd*) 4572 COREFILE=netbsd-core.lo 4573 ;; 4574 tahoe-*-*) 4575 COREFILE=trad-core.lo 4576 TRAD_HEADER='"hosts/tahoe.h"' 4577 ;; 4578 vax-*-ultrix2*) 4579 COREFILE=trad-core.lo 4580 TRAD_HEADER='"hosts/vaxult2.h"' 4581 ;; 4582 vax-*-ultrix*) 4583 COREFILE=trad-core.lo 4584 TRAD_HEADER='"hosts/vaxult2.h"' 4585 ;; 4586 vax-*-*) 4587 COREFILE=trad-core.lo 4588 TRAD_HEADER='"hosts/vaxbsd.h"' 4589 ;; 4590 esac 4591 4592 case "$COREFILE" in 4593 aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 4594 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 4595 hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 4596 irix-core.lo) COREFLAG=-DIRIX_CORE ;; 4597 lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 4598 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 4599 osf-core.lo) COREFLAG=-DOSF_CORE ;; 4600 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 4601 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 4602 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; 4603 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 4604 esac 4605 4606 # ELF corefile support has several flavors, but all of 4607 # them use something called <sys/procfs.h> 4608 for ac_hdr in sys/procfs.h 4609do 4610ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4611echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4612echo "configure:4613: checking for $ac_hdr" >&5 4613if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4614 echo $ac_n "(cached) $ac_c" 1>&6 4615else 4616 cat > conftest.$ac_ext <<EOF 4617#line 4618 "configure" 4618#include "confdefs.h" 4619#include <$ac_hdr> 4620EOF 4621ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4622{ (eval echo configure:4623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4623ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4624if test -z "$ac_err"; then 4625 rm -rf conftest* 4626 eval "ac_cv_header_$ac_safe=yes" 4627else 4628 echo "$ac_err" >&5 4629 echo "configure: failed program was:" >&5 4630 cat conftest.$ac_ext >&5 4631 rm -rf conftest* 4632 eval "ac_cv_header_$ac_safe=no" 4633fi 4634rm -f conftest* 4635fi 4636if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4637 echo "$ac_t""yes" 1>&6 4638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4639 cat >> confdefs.h <<EOF 4640#define $ac_tr_hdr 1 4641EOF 4642 4643else 4644 echo "$ac_t""no" 1>&6 4645fi 4646done 4647 4648 if test "$ac_cv_header_sys_procfs_h" = yes; then 4649 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6 4650echo "configure:4651: checking for prstatus_t in sys/procfs.h" >&5 4651 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then 4652 echo $ac_n "(cached) $ac_c" 1>&6 4653else 4654 cat > conftest.$ac_ext <<EOF 4655#line 4656 "configure" 4656#include "confdefs.h" 4657#include <sys/procfs.h> 4658int main() { 4659prstatus_t avar 4660; return 0; } 4661EOF 4662if { (eval echo configure:4663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4663 rm -rf conftest* 4664 bfd_cv_have_sys_procfs_type_prstatus_t=yes 4665else 4666 echo "configure: failed program was:" >&5 4667 cat conftest.$ac_ext >&5 4668 rm -rf conftest* 4669 bfd_cv_have_sys_procfs_type_prstatus_t=no 4670 4671fi 4672rm -f conftest* 4673fi 4674 4675 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then 4676 cat >> confdefs.h <<\EOF 4677#define HAVE_PRSTATUS_T 1 4678EOF 4679 4680 fi 4681 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6 4682 4683 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 4684echo "configure:4685: checking for prstatus_t.pr_who in sys/procfs.h" >&5 4685 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then 4686 echo $ac_n "(cached) $ac_c" 1>&6 4687else 4688 cat > conftest.$ac_ext <<EOF 4689#line 4690 "configure" 4690#include "confdefs.h" 4691#include <sys/procfs.h> 4692int main() { 4693prstatus_t avar; void* aref = (void*) &avar.pr_who 4694; return 0; } 4695EOF 4696if { (eval echo configure:4697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4697 rm -rf conftest* 4698 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes 4699else 4700 echo "configure: failed program was:" >&5 4701 cat conftest.$ac_ext >&5 4702 rm -rf conftest* 4703 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no 4704 4705fi 4706rm -f conftest* 4707fi 4708 4709 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then 4710 cat >> confdefs.h <<\EOF 4711#define HAVE_PRSTATUS_T_PR_WHO 1 4712EOF 4713 4714 fi 4715 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6 4716 4717 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6 4718echo "configure:4719: checking for pstatus_t in sys/procfs.h" >&5 4719 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then 4720 echo $ac_n "(cached) $ac_c" 1>&6 4721else 4722 cat > conftest.$ac_ext <<EOF 4723#line 4724 "configure" 4724#include "confdefs.h" 4725#include <sys/procfs.h> 4726int main() { 4727pstatus_t avar 4728; return 0; } 4729EOF 4730if { (eval echo configure:4731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4731 rm -rf conftest* 4732 bfd_cv_have_sys_procfs_type_pstatus_t=yes 4733else 4734 echo "configure: failed program was:" >&5 4735 cat conftest.$ac_ext >&5 4736 rm -rf conftest* 4737 bfd_cv_have_sys_procfs_type_pstatus_t=no 4738 4739fi 4740rm -f conftest* 4741fi 4742 4743 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then 4744 cat >> confdefs.h <<\EOF 4745#define HAVE_PSTATUS_T 1 4746EOF 4747 4748 fi 4749 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6 4750 4751 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6 4752echo "configure:4753: checking for prpsinfo_t in sys/procfs.h" >&5 4753 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then 4754 echo $ac_n "(cached) $ac_c" 1>&6 4755else 4756 cat > conftest.$ac_ext <<EOF 4757#line 4758 "configure" 4758#include "confdefs.h" 4759#include <sys/procfs.h> 4760int main() { 4761prpsinfo_t avar 4762; return 0; } 4763EOF 4764if { (eval echo configure:4765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4765 rm -rf conftest* 4766 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes 4767else 4768 echo "configure: failed program was:" >&5 4769 cat conftest.$ac_ext >&5 4770 rm -rf conftest* 4771 bfd_cv_have_sys_procfs_type_prpsinfo_t=no 4772 4773fi 4774rm -f conftest* 4775fi 4776 4777 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then 4778 cat >> confdefs.h <<\EOF 4779#define HAVE_PRPSINFO_T 1 4780EOF 4781 4782 fi 4783 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6 4784 4785 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6 4786echo "configure:4787: checking for psinfo_t in sys/procfs.h" >&5 4787 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then 4788 echo $ac_n "(cached) $ac_c" 1>&6 4789else 4790 cat > conftest.$ac_ext <<EOF 4791#line 4792 "configure" 4792#include "confdefs.h" 4793#include <sys/procfs.h> 4794int main() { 4795psinfo_t avar 4796; return 0; } 4797EOF 4798if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4799 rm -rf conftest* 4800 bfd_cv_have_sys_procfs_type_psinfo_t=yes 4801else 4802 echo "configure: failed program was:" >&5 4803 cat conftest.$ac_ext >&5 4804 rm -rf conftest* 4805 bfd_cv_have_sys_procfs_type_psinfo_t=no 4806 4807fi 4808rm -f conftest* 4809fi 4810 4811 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then 4812 cat >> confdefs.h <<\EOF 4813#define HAVE_PSINFO_T 1 4814EOF 4815 4816 fi 4817 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6 4818 4819 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6 4820echo "configure:4821: checking for lwpstatus_t in sys/procfs.h" >&5 4821 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then 4822 echo $ac_n "(cached) $ac_c" 1>&6 4823else 4824 cat > conftest.$ac_ext <<EOF 4825#line 4826 "configure" 4826#include "confdefs.h" 4827#include <sys/procfs.h> 4828int main() { 4829lwpstatus_t avar 4830; return 0; } 4831EOF 4832if { (eval echo configure:4833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4833 rm -rf conftest* 4834 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes 4835else 4836 echo "configure: failed program was:" >&5 4837 cat conftest.$ac_ext >&5 4838 rm -rf conftest* 4839 bfd_cv_have_sys_procfs_type_lwpstatus_t=no 4840 4841fi 4842rm -f conftest* 4843fi 4844 4845 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then 4846 cat >> confdefs.h <<\EOF 4847#define HAVE_LWPSTATUS_T 1 4848EOF 4849 4850 fi 4851 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6 4852 4853 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6 4854echo "configure:4855: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 4855 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then 4856 echo $ac_n "(cached) $ac_c" 1>&6 4857else 4858 cat > conftest.$ac_ext <<EOF 4859#line 4860 "configure" 4860#include "confdefs.h" 4861#include <sys/procfs.h> 4862int main() { 4863lwpstatus_t avar; void* aref = (void*) &avar.pr_context 4864; return 0; } 4865EOF 4866if { (eval echo configure:4867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4867 rm -rf conftest* 4868 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes 4869else 4870 echo "configure: failed program was:" >&5 4871 cat conftest.$ac_ext >&5 4872 rm -rf conftest* 4873 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no 4874 4875fi 4876rm -f conftest* 4877fi 4878 4879 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then 4880 cat >> confdefs.h <<\EOF 4881#define HAVE_LWPSTATUS_T_PR_CONTEXT 1 4882EOF 4883 4884 fi 4885 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6 4886 4887 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6 4888echo "configure:4889: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 4889 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then 4890 echo $ac_n "(cached) $ac_c" 1>&6 4891else 4892 cat > conftest.$ac_ext <<EOF 4893#line 4894 "configure" 4894#include "confdefs.h" 4895#include <sys/procfs.h> 4896int main() { 4897lwpstatus_t avar; void* aref = (void*) &avar.pr_reg 4898; return 0; } 4899EOF 4900if { (eval echo configure:4901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4901 rm -rf conftest* 4902 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes 4903else 4904 echo "configure: failed program was:" >&5 4905 cat conftest.$ac_ext >&5 4906 rm -rf conftest* 4907 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no 4908 4909fi 4910rm -f conftest* 4911fi 4912 4913 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then 4914 cat >> confdefs.h <<\EOF 4915#define HAVE_LWPSTATUS_T_PR_REG 1 4916EOF 4917 4918 fi 4919 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6 4920 4921 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6 4922echo "configure:4923: checking for win32_pstatus_t in sys/procfs.h" >&5 4923 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then 4924 echo $ac_n "(cached) $ac_c" 1>&6 4925else 4926 cat > conftest.$ac_ext <<EOF 4927#line 4928 "configure" 4928#include "confdefs.h" 4929#include <sys/procfs.h> 4930int main() { 4931win32_pstatus_t avar 4932; return 0; } 4933EOF 4934if { (eval echo configure:4935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4935 rm -rf conftest* 4936 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes 4937else 4938 echo "configure: failed program was:" >&5 4939 cat conftest.$ac_ext >&5 4940 rm -rf conftest* 4941 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no 4942 4943fi 4944rm -f conftest* 4945fi 4946 4947 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then 4948 cat >> confdefs.h <<\EOF 4949#define HAVE_WIN32_PSTATUS_T 1 4950EOF 4951 4952 fi 4953 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6 4954 4955 fi 4956fi 4957 4958 4959cat >> confdefs.h <<EOF 4960#define TRAD_HEADER $TRAD_HEADER 4961EOF 4962 4963 4964# Horrible hacks to build DLLs on Windows. 4965WIN32LDFLAGS= 4966WIN32LIBADD= 4967case "${host}" in 4968*-*-cygwin*) 4969 if test "$enable_shared" = "yes"; then 4970 WIN32LDFLAGS="-no-undefined" 4971 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" 4972 fi 4973 ;; 4974esac 4975 4976 4977 4978# target stuff: 4979 4980# Canonicalize the secondary target names. 4981if test -n "$enable_targets" ; then 4982 for targ in `echo $enable_targets | sed 's/,/ /g'` 4983 do 4984 result=`$ac_config_sub $targ 2>/dev/null` 4985 if test -n "$result" ; then 4986 canon_targets="$canon_targets $result" 4987 else 4988 # Allow targets that config.sub doesn't recognize, like "all". 4989 canon_targets="$canon_targets $targ" 4990 fi 4991 done 4992fi 4993 4994all_targets=false 4995defvec= 4996selvecs= 4997selarchs= 4998TDEFINES= 4999for targ in $target $canon_targets 5000do 5001 if test "x$targ" = "xall"; then 5002 all_targets=true 5003 else 5004 . $srcdir/config.bfd 5005 if test "x$targ" = "x$target"; then 5006 defvec=$targ_defvec 5007 fi 5008 selvecs="$selvecs $targ_defvec $targ_selvecs" 5009 selarchs="$selarchs $targ_archs" 5010 TDEFINES="$TDEFINES $targ_cflags" 5011 fi 5012done 5013 5014 5015# This processing still needs to be done if we're to decide properly whether 5016# 64-bit support needs to be compiled in. Currently, it will be included if 5017# the default or any other explicitly requested target requires it; it 5018# will not be included on a 32-bit host if no 64-bit target is requested, and 5019# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 5020# used. 5021 5022# uniq the default and selected vectors in all the configured targets. 5023f="" 5024for i in $selvecs ; do 5025 case " $f " in 5026 *" $i "*) ;; 5027 *) f="$f $i" ;; 5028 esac 5029done 5030selvecs="$f" 5031 5032 5033# uniq the architectures in all the configured targets. 5034f="" 5035for i in $selarchs ; do 5036 case " $f " in 5037 *" $i "*) ;; 5038 *) f="$f $i" ;; 5039 esac 5040done 5041selarchs="$f" 5042 5043# Target backend .o files. 5044tb= 5045 5046elf="elf.lo elflink.lo dwarf2.lo dwarf1.lo" 5047 5048for vec in $selvecs 5049do 5050 case "$vec" in 5051 # This list is alphabetized to make it easy to compare 5052 # with the two vector lists in targets.c. 5053 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; 5054 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; 5055 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 5056 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 5057 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; 5058 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 5059 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 5060 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 5061 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 5062 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 5063 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 5064 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 5065 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 5066 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; 5067 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; 5068 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; 5069 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 5070 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 5071 apollocoff_vec) tb="$tb coff-apollo.lo" ;; 5072 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; 5073 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; 5074 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf" 5075 target64=true ;; 5076 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 5077 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 5078 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; 5079 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; 5080 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 5081 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; 5082 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; 5083 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 5084 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 5085 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" 5086 target64=true ;; 5087 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 5088 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 5089 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 5090 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 5091 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; 5092 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; 5093 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 5094 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; 5095 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 5096 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 5097 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" 5098 target64=true ;; 5099 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 5100 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 5101 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; 5102 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 5103 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 5104 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 5105 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 5106 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 5107 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 5108 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 5109 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 5110 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 5111 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 5112 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; 5113 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 5114 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" 5115 target64=true ;; 5116 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" 5117 target64=true ;; 5118 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf" 5119 target64=true ;; 5120 cisco_core_big_vec) tb="$tb cisco-core.lo" ;; 5121 cisco_core_little_vec) tb="$tb cisco-core.lo" ;; 5122 demo_64_vec) tb="$tb demo64.lo aout64.lo" 5123 target64=true ;; 5124 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 5125 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 5126 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 5127 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo" 5128 target64=true ;; 5129 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; 5130 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; 5131 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; 5132 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; 5133 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 5134 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; 5135 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; 5136 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 5137 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 5138 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; 5139 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; 5140 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; 5141 i386msdos_vec) tb="$tb i386msdos.lo" ;; 5142 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; 5143 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; 5144 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; 5145 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 5146 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; 5147 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; 5148 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 5149 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; 5150 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; 5151 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 5152 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 5153 ieee_vec) tb="$tb ieee.lo" ;; 5154 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; 5155 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; 5156 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; 5157 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; 5158 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; 5159 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; 5160 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; 5161 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; 5162 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; 5163 m88kbcs_vec) tb="$tb coff-m88k.lo" ;; 5164 mipslpe_vec) tb="$tb pe-mips.lo cofflink.lo" ;; 5165 mipslpei_vec) tb="$tb pei-mips.lo cofflink.lo" ;; 5166 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 5167 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 5168 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 5169 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 5170 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; 5171 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; 5172 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; 5173 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo" 5174 target64=true ;; 5175 riscix_vec) tb="$tb aout32.lo riscix.lo" ;; 5176 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; 5177 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 5178 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 5179 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;; 5180 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 5181 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 5182 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 5183 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 5184 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 5185 ppcboot_vec) tb="$tb ppcboot.lo" ;; 5186 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 5187 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 5188 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 5189 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 5190 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo cofflink.lo" ;; 5191 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo cofflink.lo" ;; 5192 som_vec) tb="$tb som.lo" ;; 5193 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; 5194 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; 5195 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; 5196 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; 5197 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; 5198 sparccoff_vec) tb="$tb coff-sparc.lo" ;; 5199 srec_vec) tb="$tb srec.lo" ;; 5200 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; 5201 symbolsrec_vec) tb="$tb srec.lo" ;; 5202 tekhex_vec) tb="$tb tekhex.lo" ;; 5203 tic30_aout_vec) tb="$tb aout-tic30.lo" ;; 5204 tic30_coff_vec) tb="$tb coff-tic30.lo" ;; 5205 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; 5206 versados_vec) tb="$tb versados.lo" ;; 5207 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" 5208 target64=true ;; 5209 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; 5210 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; 5211 we32kcoff_vec) tb="$tb coff-we32k.lo" ;; 5212 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; 5213 5214 "") ;; 5215 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;; 5216 esac 5217done 5218 5219# Target architecture .o files. 5220# A couple of CPUs use shorter file names to avoid problems on DOS 5221# filesystems. 5222ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 5223 5224# Weed out duplicate .o files. 5225f="" 5226for i in $tb ; do 5227 case " $f " in 5228 *" $i "*) ;; 5229 *) f="$f $i" ;; 5230 esac 5231done 5232tb="$f" 5233 5234f="" 5235for i in $ta ; do 5236 case " $f " in 5237 *" $i "*) ;; 5238 *) f="$f $i" ;; 5239 esac 5240done 5241ta="$f" 5242 5243bfd_backends="$tb" 5244bfd_machines="$ta" 5245 5246if test x${all_targets} = xtrue ; then 5247 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 5248 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 5249 selvecs= 5250 havevecs= 5251 selarchs= 5252else # all_targets is true 5253 # Only set these if they will be nonempty, for the clever echo. 5254 havevecs= 5255 test -n "$selvecs" && 5256 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 5257 test -n "$selvecs" && 5258 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 5259 test -n "$selarchs" && 5260 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 5261fi # all_targets is true 5262 5263case ${host64}-${target64}-${want64} in 5264 *true*) 5265 wordsize=64 5266 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 5267 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then 5268 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2 5269 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2 5270 fi 5271 ;; 5272 false-false-false) 5273 wordsize=32 5274 all_backends='$(BFD32_BACKENDS)' 5275 ;; 5276esac 5277 5278 5279 5280 5281 5282 5283tdefaults="" 5284test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 5285test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 5286test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 5287test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" 5288 5289 5290for ac_hdr in unistd.h 5291do 5292ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5293echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5294echo "configure:5295: checking for $ac_hdr" >&5 5295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5296 echo $ac_n "(cached) $ac_c" 1>&6 5297else 5298 cat > conftest.$ac_ext <<EOF 5299#line 5300 "configure" 5300#include "confdefs.h" 5301#include <$ac_hdr> 5302EOF 5303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5304{ (eval echo configure:5305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5306if test -z "$ac_err"; then 5307 rm -rf conftest* 5308 eval "ac_cv_header_$ac_safe=yes" 5309else 5310 echo "$ac_err" >&5 5311 echo "configure: failed program was:" >&5 5312 cat conftest.$ac_ext >&5 5313 rm -rf conftest* 5314 eval "ac_cv_header_$ac_safe=no" 5315fi 5316rm -f conftest* 5317fi 5318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5319 echo "$ac_t""yes" 1>&6 5320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5321 cat >> confdefs.h <<EOF 5322#define $ac_tr_hdr 1 5323EOF 5324 5325else 5326 echo "$ac_t""no" 1>&6 5327fi 5328done 5329 5330for ac_func in getpagesize 5331do 5332echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5333echo "configure:5334: checking for $ac_func" >&5 5334if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5335 echo $ac_n "(cached) $ac_c" 1>&6 5336else 5337 cat > conftest.$ac_ext <<EOF 5338#line 5339 "configure" 5339#include "confdefs.h" 5340/* System header to define __stub macros and hopefully few prototypes, 5341 which can conflict with char $ac_func(); below. */ 5342#include <assert.h> 5343/* Override any gcc2 internal prototype to avoid an error. */ 5344/* We use char because int might match the return type of a gcc2 5345 builtin and then its argument prototype would still apply. */ 5346char $ac_func(); 5347 5348int main() { 5349 5350/* The GNU C library defines this for functions which it implements 5351 to always fail with ENOSYS. Some functions are actually named 5352 something starting with __ and the normal name is an alias. */ 5353#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5354choke me 5355#else 5356$ac_func(); 5357#endif 5358 5359; return 0; } 5360EOF 5361if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5362 rm -rf conftest* 5363 eval "ac_cv_func_$ac_func=yes" 5364else 5365 echo "configure: failed program was:" >&5 5366 cat conftest.$ac_ext >&5 5367 rm -rf conftest* 5368 eval "ac_cv_func_$ac_func=no" 5369fi 5370rm -f conftest* 5371fi 5372 5373if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5374 echo "$ac_t""yes" 1>&6 5375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5376 cat >> confdefs.h <<EOF 5377#define $ac_tr_func 1 5378EOF 5379 5380else 5381 echo "$ac_t""no" 1>&6 5382fi 5383done 5384 5385echo $ac_n "checking for working mmap""... $ac_c" 1>&6 5386echo "configure:5387: checking for working mmap" >&5 5387if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 5388 echo $ac_n "(cached) $ac_c" 1>&6 5389else 5390 if test "$cross_compiling" = yes; then 5391 ac_cv_func_mmap_fixed_mapped=no 5392else 5393 cat > conftest.$ac_ext <<EOF 5394#line 5395 "configure" 5395#include "confdefs.h" 5396 5397/* Thanks to Mike Haertel and Jim Avera for this test. 5398 Here is a matrix of mmap possibilities: 5399 mmap private not fixed 5400 mmap private fixed at somewhere currently unmapped 5401 mmap private fixed at somewhere already mapped 5402 mmap shared not fixed 5403 mmap shared fixed at somewhere currently unmapped 5404 mmap shared fixed at somewhere already mapped 5405 For private mappings, we should verify that changes cannot be read() 5406 back from the file, nor mmap's back from the file at a different 5407 address. (There have been systems where private was not correctly 5408 implemented like the infamous i386 svr4.0, and systems where the 5409 VM page cache was not coherent with the filesystem buffer cache 5410 like early versions of FreeBSD and possibly contemporary NetBSD.) 5411 For shared mappings, we should conversely verify that changes get 5412 propogated back to all the places they're supposed to be. 5413 5414 Grep wants private fixed already mapped. 5415 The main things grep needs to know about mmap are: 5416 * does it exist and is it safe to write into the mmap'd area 5417 * how to use it (BSD variants) */ 5418#include <sys/types.h> 5419#include <fcntl.h> 5420#include <sys/mman.h> 5421#include <stdlib.h> 5422#include <sys/stat.h> 5423 5424#ifdef HAVE_UNISTD_H 5425# include <unistd.h> 5426#endif 5427 5428/* This mess was copied from the GNU getpagesize.h. */ 5429#ifndef HAVE_GETPAGESIZE 5430 5431/* Assume that all systems that can run configure have sys/param.h. */ 5432# ifndef HAVE_SYS_PARAM_H 5433# define HAVE_SYS_PARAM_H 1 5434# endif 5435 5436# ifdef _SC_PAGESIZE 5437# define getpagesize() sysconf(_SC_PAGESIZE) 5438# else /* no _SC_PAGESIZE */ 5439# ifdef HAVE_SYS_PARAM_H 5440# include <sys/param.h> 5441# ifdef EXEC_PAGESIZE 5442# define getpagesize() EXEC_PAGESIZE 5443# else /* no EXEC_PAGESIZE */ 5444# ifdef NBPG 5445# define getpagesize() NBPG * CLSIZE 5446# ifndef CLSIZE 5447# define CLSIZE 1 5448# endif /* no CLSIZE */ 5449# else /* no NBPG */ 5450# ifdef NBPC 5451# define getpagesize() NBPC 5452# else /* no NBPC */ 5453# ifdef PAGESIZE 5454# define getpagesize() PAGESIZE 5455# endif /* PAGESIZE */ 5456# endif /* no NBPC */ 5457# endif /* no NBPG */ 5458# endif /* no EXEC_PAGESIZE */ 5459# else /* no HAVE_SYS_PARAM_H */ 5460# define getpagesize() 8192 /* punt totally */ 5461# endif /* no HAVE_SYS_PARAM_H */ 5462# endif /* no _SC_PAGESIZE */ 5463 5464#endif /* no HAVE_GETPAGESIZE */ 5465 5466#ifdef __cplusplus 5467extern "C" { void *malloc(unsigned); } 5468#else 5469char *malloc(); 5470#endif 5471 5472int 5473main() 5474{ 5475 char *data, *data2, *data3; 5476 int i, pagesize; 5477 int fd; 5478 5479 pagesize = getpagesize(); 5480 5481 /* 5482 * First, make a file with some known garbage in it. 5483 */ 5484 data = (char*)malloc(pagesize); 5485 if (!data) 5486 exit(1); 5487 for (i = 0; i < pagesize; ++i) 5488 *(data + i) = rand(); 5489 umask(0); 5490 fd = creat("conftestmmap", 0600); 5491 if (fd < 0) 5492 exit(1); 5493 if (write(fd, data, pagesize) != pagesize) 5494 exit(1); 5495 close(fd); 5496 5497 /* 5498 * Next, try to mmap the file at a fixed address which 5499 * already has something else allocated at it. If we can, 5500 * also make sure that we see the same garbage. 5501 */ 5502 fd = open("conftestmmap", O_RDWR); 5503 if (fd < 0) 5504 exit(1); 5505 data2 = (char*)malloc(2 * pagesize); 5506 if (!data2) 5507 exit(1); 5508 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 5509 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 5510 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5511 exit(1); 5512 for (i = 0; i < pagesize; ++i) 5513 if (*(data + i) != *(data2 + i)) 5514 exit(1); 5515 5516 /* 5517 * Finally, make sure that changes to the mapped area 5518 * do not percolate back to the file as seen by read(). 5519 * (This is a bug on some variants of i386 svr4.0.) 5520 */ 5521 for (i = 0; i < pagesize; ++i) 5522 *(data2 + i) = *(data2 + i) + 1; 5523 data3 = (char*)malloc(pagesize); 5524 if (!data3) 5525 exit(1); 5526 if (read(fd, data3, pagesize) != pagesize) 5527 exit(1); 5528 for (i = 0; i < pagesize; ++i) 5529 if (*(data + i) != *(data3 + i)) 5530 exit(1); 5531 close(fd); 5532 unlink("conftestmmap"); 5533 exit(0); 5534} 5535 5536EOF 5537if { (eval echo configure:5538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5538then 5539 ac_cv_func_mmap_fixed_mapped=yes 5540else 5541 echo "configure: failed program was:" >&5 5542 cat conftest.$ac_ext >&5 5543 rm -fr conftest* 5544 ac_cv_func_mmap_fixed_mapped=no 5545fi 5546rm -fr conftest* 5547fi 5548 5549fi 5550 5551echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 5552if test $ac_cv_func_mmap_fixed_mapped = yes; then 5553 cat >> confdefs.h <<\EOF 5554#define HAVE_MMAP 1 5555EOF 5556 5557fi 5558 5559for ac_func in madvise mprotect 5560do 5561echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5562echo "configure:5563: checking for $ac_func" >&5 5563if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5564 echo $ac_n "(cached) $ac_c" 1>&6 5565else 5566 cat > conftest.$ac_ext <<EOF 5567#line 5568 "configure" 5568#include "confdefs.h" 5569/* System header to define __stub macros and hopefully few prototypes, 5570 which can conflict with char $ac_func(); below. */ 5571#include <assert.h> 5572/* Override any gcc2 internal prototype to avoid an error. */ 5573/* We use char because int might match the return type of a gcc2 5574 builtin and then its argument prototype would still apply. */ 5575char $ac_func(); 5576 5577int main() { 5578 5579/* The GNU C library defines this for functions which it implements 5580 to always fail with ENOSYS. Some functions are actually named 5581 something starting with __ and the normal name is an alias. */ 5582#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5583choke me 5584#else 5585$ac_func(); 5586#endif 5587 5588; return 0; } 5589EOF 5590if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5591 rm -rf conftest* 5592 eval "ac_cv_func_$ac_func=yes" 5593else 5594 echo "configure: failed program was:" >&5 5595 cat conftest.$ac_ext >&5 5596 rm -rf conftest* 5597 eval "ac_cv_func_$ac_func=no" 5598fi 5599rm -f conftest* 5600fi 5601 5602if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5603 echo "$ac_t""yes" 1>&6 5604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5605 cat >> confdefs.h <<EOF 5606#define $ac_tr_func 1 5607EOF 5608 5609else 5610 echo "$ac_t""no" 1>&6 5611fi 5612done 5613 5614case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 5615 true+yes ) cat >> confdefs.h <<\EOF 5616#define USE_MMAP 1 5617EOF 5618 ;; 5619esac 5620 5621rm -f doc/config.status 5622trap '' 1 2 15 5623cat > confcache <<\EOF 5624# This file is a shell script that caches the results of configure 5625# tests run on this system so they can be shared between configure 5626# scripts and configure runs. It is not useful on other systems. 5627# If it contains results you don't want to keep, you may remove or edit it. 5628# 5629# By default, configure uses ./config.cache as the cache file, 5630# creating it if it does not exist already. You can give configure 5631# the --cache-file=FILE option to use a different cache file; that is 5632# what configure does when it calls configure scripts in 5633# subdirectories, so they share the cache. 5634# Giving --cache-file=/dev/null disables caching, for debugging configure. 5635# config.status only pays attention to the cache file if you give it the 5636# --recheck option to rerun configure. 5637# 5638EOF 5639# The following way of writing the cache mishandles newlines in values, 5640# but we know of no workaround that is simple, portable, and efficient. 5641# So, don't put newlines in cache variables' values. 5642# Ultrix sh set writes to stderr and can't be redirected directly, 5643# and sets the high bit in the cache file unless we assign to the vars. 5644(set) 2>&1 | 5645 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5646 *ac_space=\ *) 5647 # `set' does not quote correctly, so add quotes (double-quote substitution 5648 # turns \\\\ into \\, and sed turns \\ into \). 5649 sed -n \ 5650 -e "s/'/'\\\\''/g" \ 5651 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 5652 ;; 5653 *) 5654 # `set' quotes correctly as required by POSIX, so do not add quotes. 5655 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 5656 ;; 5657 esac >> confcache 5658if cmp -s $cache_file confcache; then 5659 : 5660else 5661 if test -w $cache_file; then 5662 echo "updating cache $cache_file" 5663 cat confcache > $cache_file 5664 else 5665 echo "not updating unwritable cache $cache_file" 5666 fi 5667fi 5668rm -f confcache 5669 5670trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 5671 5672test "x$prefix" = xNONE && prefix=$ac_default_prefix 5673# Let make expand exec_prefix. 5674test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5675 5676# Any assignment to VPATH causes Sun make to only execute 5677# the first set of double-colon rules, so remove it if not needed. 5678# If there is a colon in the path, we need to keep it. 5679if test "x$srcdir" = x.; then 5680 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 5681fi 5682 5683trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 5684 5685DEFS=-DHAVE_CONFIG_H 5686 5687# Without the "./", some shells look in PATH for config.status. 5688: ${CONFIG_STATUS=./config.status} 5689 5690echo creating $CONFIG_STATUS 5691rm -f $CONFIG_STATUS 5692cat > $CONFIG_STATUS <<EOF 5693#! /bin/sh 5694# Generated automatically by configure. 5695# Run this file to recreate the current configuration. 5696# This directory was configured as follows, 5697# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5698# 5699# $0 $ac_configure_args 5700# 5701# Compiler output produced by configure, useful for debugging 5702# configure, is in ./config.log if it exists. 5703 5704ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 5705for ac_option 5706do 5707 case "\$ac_option" in 5708 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5709 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 5710 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 5711 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 5712 echo "$CONFIG_STATUS generated by autoconf version 2.13" 5713 exit 0 ;; 5714 -help | --help | --hel | --he | --h) 5715 echo "\$ac_cs_usage"; exit 0 ;; 5716 *) echo "\$ac_cs_usage"; exit 1 ;; 5717 esac 5718done 5719 5720ac_given_srcdir=$srcdir 5721ac_given_INSTALL="$INSTALL" 5722 5723trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 5724EOF 5725cat >> $CONFIG_STATUS <<EOF 5726 5727# Protect against being on the right side of a sed subst in config.status. 5728sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 5729 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 5730$ac_vpsub 5731$extrasub 5732s%@SHELL@%$SHELL%g 5733s%@CFLAGS@%$CFLAGS%g 5734s%@CPPFLAGS@%$CPPFLAGS%g 5735s%@CXXFLAGS@%$CXXFLAGS%g 5736s%@FFLAGS@%$FFLAGS%g 5737s%@DEFS@%$DEFS%g 5738s%@LDFLAGS@%$LDFLAGS%g 5739s%@LIBS@%$LIBS%g 5740s%@exec_prefix@%$exec_prefix%g 5741s%@prefix@%$prefix%g 5742s%@program_transform_name@%$program_transform_name%g 5743s%@bindir@%$bindir%g 5744s%@sbindir@%$sbindir%g 5745s%@libexecdir@%$libexecdir%g 5746s%@datadir@%$datadir%g 5747s%@sysconfdir@%$sysconfdir%g 5748s%@sharedstatedir@%$sharedstatedir%g 5749s%@localstatedir@%$localstatedir%g 5750s%@libdir@%$libdir%g 5751s%@includedir@%$includedir%g 5752s%@oldincludedir@%$oldincludedir%g 5753s%@infodir@%$infodir%g 5754s%@mandir@%$mandir%g 5755s%@host@%$host%g 5756s%@host_alias@%$host_alias%g 5757s%@host_cpu@%$host_cpu%g 5758s%@host_vendor@%$host_vendor%g 5759s%@host_os@%$host_os%g 5760s%@target@%$target%g 5761s%@target_alias@%$target_alias%g 5762s%@target_cpu@%$target_cpu%g 5763s%@target_vendor@%$target_vendor%g 5764s%@target_os@%$target_os%g 5765s%@build@%$build%g 5766s%@build_alias@%$build_alias%g 5767s%@build_cpu@%$build_cpu%g 5768s%@build_vendor@%$build_vendor%g 5769s%@build_os@%$build_os%g 5770s%@CC@%$CC%g 5771s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 5772s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 5773s%@INSTALL_DATA@%$INSTALL_DATA%g 5774s%@PACKAGE@%$PACKAGE%g 5775s%@VERSION@%$VERSION%g 5776s%@ACLOCAL@%$ACLOCAL%g 5777s%@AUTOCONF@%$AUTOCONF%g 5778s%@AUTOMAKE@%$AUTOMAKE%g 5779s%@AUTOHEADER@%$AUTOHEADER%g 5780s%@MAKEINFO@%$MAKEINFO%g 5781s%@SET_MAKE@%$SET_MAKE%g 5782s%@AR@%$AR%g 5783s%@RANLIB@%$RANLIB%g 5784s%@LN_S@%$LN_S%g 5785s%@LIBTOOL@%$LIBTOOL%g 5786s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 5787s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 5788s%@MAINT@%$MAINT%g 5789s%@EXEEXT@%$EXEEXT%g 5790s%@CPP@%$CPP%g 5791s%@ALLOCA@%$ALLOCA%g 5792s%@USE_NLS@%$USE_NLS%g 5793s%@MSGFMT@%$MSGFMT%g 5794s%@GMSGFMT@%$GMSGFMT%g 5795s%@XGETTEXT@%$XGETTEXT%g 5796s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g 5797s%@CATALOGS@%$CATALOGS%g 5798s%@CATOBJEXT@%$CATOBJEXT%g 5799s%@DATADIRNAME@%$DATADIRNAME%g 5800s%@GMOFILES@%$GMOFILES%g 5801s%@INSTOBJEXT@%$INSTOBJEXT%g 5802s%@INTLDEPS@%$INTLDEPS%g 5803s%@INTLLIBS@%$INTLLIBS%g 5804s%@INTLOBJS@%$INTLOBJS%g 5805s%@POFILES@%$POFILES%g 5806s%@POSUB@%$POSUB%g 5807s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g 5808s%@GT_NO@%$GT_NO%g 5809s%@GT_YES@%$GT_YES%g 5810s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 5811s%@l@%$l%g 5812s%@HDEFINES@%$HDEFINES%g 5813s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g 5814s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g 5815s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g 5816s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g 5817s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g 5818s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g 5819s%@COREFILE@%$COREFILE%g 5820s%@COREFLAG@%$COREFLAG%g 5821s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g 5822s%@WIN32LIBADD@%$WIN32LIBADD%g 5823s%@TDEFINES@%$TDEFINES%g 5824s%@wordsize@%$wordsize%g 5825s%@all_backends@%$all_backends%g 5826s%@bfd_backends@%$bfd_backends%g 5827s%@bfd_machines@%$bfd_machines%g 5828s%@tdefaults@%$tdefaults%g 5829 5830CEOF 5831EOF 5832 5833cat >> $CONFIG_STATUS <<\EOF 5834 5835# Split the substitutions into bite-sized pieces for seds with 5836# small command number limits, like on Digital OSF/1 and HP-UX. 5837ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 5838ac_file=1 # Number of current file. 5839ac_beg=1 # First line for current file. 5840ac_end=$ac_max_sed_cmds # Line after last line for current file. 5841ac_more_lines=: 5842ac_sed_cmds="" 5843while $ac_more_lines; do 5844 if test $ac_beg -gt 1; then 5845 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 5846 else 5847 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 5848 fi 5849 if test ! -s conftest.s$ac_file; then 5850 ac_more_lines=false 5851 rm -f conftest.s$ac_file 5852 else 5853 if test -z "$ac_sed_cmds"; then 5854 ac_sed_cmds="sed -f conftest.s$ac_file" 5855 else 5856 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 5857 fi 5858 ac_file=`expr $ac_file + 1` 5859 ac_beg=$ac_end 5860 ac_end=`expr $ac_end + $ac_max_sed_cmds` 5861 fi 5862done 5863if test -z "$ac_sed_cmds"; then 5864 ac_sed_cmds=cat 5865fi 5866EOF 5867 5868cat >> $CONFIG_STATUS <<EOF 5869 5870CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"} 5871EOF 5872cat >> $CONFIG_STATUS <<\EOF 5873for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 5874 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5875 case "$ac_file" in 5876 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5877 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5878 *) ac_file_in="${ac_file}.in" ;; 5879 esac 5880 5881 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 5882 5883 # Remove last slash and all that follows it. Not all systems have dirname. 5884 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5885 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5886 # The file is in a subdirectory. 5887 test ! -d "$ac_dir" && mkdir "$ac_dir" 5888 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5889 # A "../" for each directory in $ac_dir_suffix. 5890 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 5891 else 5892 ac_dir_suffix= ac_dots= 5893 fi 5894 5895 case "$ac_given_srcdir" in 5896 .) srcdir=. 5897 if test -z "$ac_dots"; then top_srcdir=. 5898 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 5899 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5900 *) # Relative path. 5901 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 5902 top_srcdir="$ac_dots$ac_given_srcdir" ;; 5903 esac 5904 5905 case "$ac_given_INSTALL" in 5906 [/$]*) INSTALL="$ac_given_INSTALL" ;; 5907 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 5908 esac 5909 5910 echo creating "$ac_file" 5911 rm -f "$ac_file" 5912 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 5913 case "$ac_file" in 5914 *Makefile*) ac_comsub="1i\\ 5915# $configure_input" ;; 5916 *) ac_comsub= ;; 5917 esac 5918 5919 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5920 sed -e "$ac_comsub 5921s%@configure_input@%$configure_input%g 5922s%@srcdir@%$srcdir%g 5923s%@top_srcdir@%$top_srcdir%g 5924s%@INSTALL@%$INSTALL%g 5925" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 5926fi; done 5927rm -f conftest.s* 5928 5929# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5930# NAME is the cpp macro being defined and VALUE is the value it is being given. 5931# 5932# ac_d sets the value in "#define NAME VALUE" lines. 5933ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5934ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 5935ac_dC='\3' 5936ac_dD='%g' 5937# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 5938ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5939ac_uB='\([ ]\)%\1#\2define\3' 5940ac_uC=' ' 5941ac_uD='\4%g' 5942# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5943ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5944ac_eB='$%\1#\2define\3' 5945ac_eC=' ' 5946ac_eD='%g' 5947 5948if test "${CONFIG_HEADERS+set}" != set; then 5949EOF 5950cat >> $CONFIG_STATUS <<EOF 5951 CONFIG_HEADERS="config.h:config.in" 5952EOF 5953cat >> $CONFIG_STATUS <<\EOF 5954fi 5955for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 5956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5957 case "$ac_file" in 5958 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5959 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5960 *) ac_file_in="${ac_file}.in" ;; 5961 esac 5962 5963 echo creating $ac_file 5964 5965 rm -f conftest.frag conftest.in conftest.out 5966 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5967 cat $ac_file_inputs > conftest.in 5968 5969EOF 5970 5971# Transform confdefs.h into a sed script conftest.vals that substitutes 5972# the proper values into config.h.in to produce config.h. And first: 5973# Protect against being on the right side of a sed subst in config.status. 5974# Protect against being in an unquoted here document in config.status. 5975rm -f conftest.vals 5976cat > conftest.hdr <<\EOF 5977s/[\\&%]/\\&/g 5978s%[\\$`]%\\&%g 5979s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 5980s%ac_d%ac_u%gp 5981s%ac_u%ac_e%gp 5982EOF 5983sed -n -f conftest.hdr confdefs.h > conftest.vals 5984rm -f conftest.hdr 5985 5986# This sed command replaces #undef with comments. This is necessary, for 5987# example, in the case of _POSIX_SOURCE, which is predefined and required 5988# on some systems where configure will not decide to define it. 5989cat >> conftest.vals <<\EOF 5990s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 5991EOF 5992 5993# Break up conftest.vals because some shells have a limit on 5994# the size of here documents, and old seds have small limits too. 5995 5996rm -f conftest.tail 5997while : 5998do 5999 ac_lines=`grep -c . conftest.vals` 6000 # grep -c gives empty output for an empty file on some AIX systems. 6001 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 6002 # Write a limited-size here document to conftest.frag. 6003 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 6004 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 6005 echo 'CEOF 6006 sed -f conftest.frag conftest.in > conftest.out 6007 rm -f conftest.in 6008 mv conftest.out conftest.in 6009' >> $CONFIG_STATUS 6010 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 6011 rm -f conftest.vals 6012 mv conftest.tail conftest.vals 6013done 6014rm -f conftest.vals 6015 6016cat >> $CONFIG_STATUS <<\EOF 6017 rm -f conftest.frag conftest.h 6018 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 6019 cat conftest.in >> conftest.h 6020 rm -f conftest.in 6021 if cmp -s $ac_file conftest.h 2>/dev/null; then 6022 echo "$ac_file is unchanged" 6023 rm -f conftest.h 6024 else 6025 # Remove last slash and all that follows it. Not all systems have dirname. 6026 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 6027 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 6028 # The file is in a subdirectory. 6029 test ! -d "$ac_dir" && mkdir "$ac_dir" 6030 fi 6031 rm -f $ac_file 6032 mv conftest.h $ac_file 6033 fi 6034fi; done 6035 6036EOF 6037cat >> $CONFIG_STATUS <<EOF 6038 6039 6040EOF 6041cat >> $CONFIG_STATUS <<\EOF 6042test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 6043sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile 6044exit 0 6045EOF 6046chmod +x $CONFIG_STATUS 6047rm -fr confdefs* $ac_clean_files 6048test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 6049 6050