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