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