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