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 --disable-dependency-tracking Speeds up one-time builds 16 --enable-dependency-tracking Do not reject slow dependency extractors" 17ac_help="$ac_help 18 --enable-shared[=PKGS] build shared libraries [default=yes]" 19ac_help="$ac_help 20 --enable-static[=PKGS] build static libraries [default=yes]" 21ac_help="$ac_help 22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 23ac_help="$ac_help 24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 25 26# Find the correct PATH separator. Usually this is `:', but 27# DJGPP uses `;' like DOS. 28if test "X${PATH_SEPARATOR+set}" != Xset; then 29 UNAME=${UNAME-`uname 2>/dev/null`} 30 case X$UNAME in 31 *-DOS) lt_cv_sys_path_separator=';' ;; 32 *) lt_cv_sys_path_separator=':' ;; 33 esac 34 PATH_SEPARATOR=$lt_cv_sys_path_separator 35fi 36 37 38# Check that we are running under the correct shell. 39SHELL=${CONFIG_SHELL-/bin/sh} 40 41case X$ECHO in 42X*--fallback-echo) 43 # Remove one level of quotation (which was required for Make). 44 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 45 ;; 46esac 47 48echo=${ECHO-echo} 49if test "X$1" = X--no-reexec; then 50 # Discard the --no-reexec flag, and continue. 51 shift 52elif test "X$1" = X--fallback-echo; then 53 # Avoid inline document here, it may be left over 54 : 55elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 56 # Yippee, $echo works! 57 : 58else 59 # Restart under the correct shell. 60 exec $SHELL "$0" --no-reexec ${1+"$@"} 61fi 62 63if test "X$1" = X--fallback-echo; then 64 # used as fallback echo 65 shift 66 cat <<EOF 67 68EOF 69 exit 0 70fi 71 72# The HP-UX ksh and POSIX shell print the target directory to stdout 73# if CDPATH is set. 74if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 75 76if test -z "$ECHO"; then 77if test "X${echo_test_string+set}" != Xset; then 78# find a string as large as possible, as long as the shell can cope with it 79 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 80 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 81 if (echo_test_string="`eval $cmd`") 2>/dev/null && 82 echo_test_string="`eval $cmd`" && 83 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 84 then 85 break 86 fi 87 done 88fi 89 90if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 91 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 92 test "X$echo_testing_string" = "X$echo_test_string"; then 93 : 94else 95 # The Solaris, AIX, and Digital Unix default echo programs unquote 96 # backslashes. This makes it impossible to quote backslashes using 97 # echo "$something" | sed 's/\\/\\\\/g' 98 # 99 # So, first we look for a working echo in the user's PATH. 100 101 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 102 for dir in $PATH /usr/ucb; do 103 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 104 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 105 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 106 test "X$echo_testing_string" = "X$echo_test_string"; then 107 echo="$dir/echo" 108 break 109 fi 110 done 111 IFS="$save_ifs" 112 113 if test "X$echo" = Xecho; then 114 # We didn't find a better echo, so look for alternatives. 115 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 116 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 117 test "X$echo_testing_string" = "X$echo_test_string"; then 118 # This shell has a builtin print -r that does the trick. 119 echo='print -r' 120 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 121 test "X$CONFIG_SHELL" != X/bin/ksh; then 122 # If we have ksh, try running configure again with it. 123 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 124 export ORIGINAL_CONFIG_SHELL 125 CONFIG_SHELL=/bin/ksh 126 export CONFIG_SHELL 127 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 128 else 129 # Try using printf. 130 echo='printf %s\n' 131 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 132 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 133 test "X$echo_testing_string" = "X$echo_test_string"; then 134 # Cool, printf works 135 : 136 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 137 test "X$echo_testing_string" = 'X\t' && 138 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 139 test "X$echo_testing_string" = "X$echo_test_string"; then 140 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 141 export CONFIG_SHELL 142 SHELL="$CONFIG_SHELL" 143 export SHELL 144 echo="$CONFIG_SHELL $0 --fallback-echo" 145 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 146 test "X$echo_testing_string" = 'X\t' && 147 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 148 test "X$echo_testing_string" = "X$echo_test_string"; then 149 echo="$CONFIG_SHELL $0 --fallback-echo" 150 else 151 # maybe with a smaller string... 152 prev=: 153 154 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 155 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 156 then 157 break 158 fi 159 prev="$cmd" 160 done 161 162 if test "$prev" != 'sed 50q "$0"'; then 163 echo_test_string=`eval $prev` 164 export echo_test_string 165 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 166 else 167 # Oops. We lost completely, so just stick with echo. 168 echo=echo 169 fi 170 fi 171 fi 172 fi 173fi 174fi 175 176# Copy echo and quote the copy suitably for passing to libtool from 177# the Makefile, instead of quoting the original, which is used later. 178ECHO=$echo 179if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 180 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 181fi 182 183 184ac_help="$ac_help 185 --disable-libtool-lock avoid locking (might break parallel builds)" 186ac_help="$ac_help 187 --with-pic try to use only PIC/non-PIC objects [default=use both]" 188 189# Initialize some variables set by options. 190# The variables have the same names as the options, with 191# dashes changed to underlines. 192build=NONE 193cache_file=./config.cache 194exec_prefix=NONE 195host=NONE 196no_create= 197nonopt=NONE 198no_recursion= 199prefix=NONE 200program_prefix=NONE 201program_suffix=NONE 202program_transform_name=s,x,x, 203silent= 204site= 205srcdir= 206target=NONE 207verbose= 208x_includes=NONE 209x_libraries=NONE 210bindir='${exec_prefix}/bin' 211sbindir='${exec_prefix}/sbin' 212libexecdir='${exec_prefix}/libexec' 213datadir='${prefix}/share' 214sysconfdir='${prefix}/etc' 215sharedstatedir='${prefix}/com' 216localstatedir='${prefix}/var' 217libdir='${exec_prefix}/lib' 218includedir='${prefix}/include' 219oldincludedir='/usr/include' 220infodir='${prefix}/info' 221mandir='${prefix}/man' 222 223# Initialize some other variables. 224subdirs= 225MFLAGS= MAKEFLAGS= 226SHELL=${CONFIG_SHELL-/bin/sh} 227# Maximum number of lines to put in a shell here document. 228ac_max_here_lines=12 229 230ac_prev= 231for ac_option 232do 233 234 # If the previous option needs an argument, assign it. 235 if test -n "$ac_prev"; then 236 eval "$ac_prev=\$ac_option" 237 ac_prev= 238 continue 239 fi 240 241 case "$ac_option" in 242 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 243 *) ac_optarg= ;; 244 esac 245 246 # Accept the important Cygnus configure options, so we can diagnose typos. 247 248 case "$ac_option" in 249 250 -bindir | --bindir | --bindi | --bind | --bin | --bi) 251 ac_prev=bindir ;; 252 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 253 bindir="$ac_optarg" ;; 254 255 -build | --build | --buil | --bui | --bu) 256 ac_prev=build ;; 257 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 258 build="$ac_optarg" ;; 259 260 -cache-file | --cache-file | --cache-fil | --cache-fi \ 261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 262 ac_prev=cache_file ;; 263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 265 cache_file="$ac_optarg" ;; 266 267 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 268 ac_prev=datadir ;; 269 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 270 | --da=*) 271 datadir="$ac_optarg" ;; 272 273 -disable-* | --disable-*) 274 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 275 # Reject names that are not valid shell variable names. 276 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 277 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 278 fi 279 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 280 eval "enable_${ac_feature}=no" ;; 281 282 -enable-* | --enable-*) 283 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 284 # Reject names that are not valid shell variable names. 285 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 286 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 287 fi 288 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 289 case "$ac_option" in 290 *=*) ;; 291 *) ac_optarg=yes ;; 292 esac 293 eval "enable_${ac_feature}='$ac_optarg'" ;; 294 295 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 296 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 297 | --exec | --exe | --ex) 298 ac_prev=exec_prefix ;; 299 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 300 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 301 | --exec=* | --exe=* | --ex=*) 302 exec_prefix="$ac_optarg" ;; 303 304 -gas | --gas | --ga | --g) 305 # Obsolete; use --with-gas. 306 with_gas=yes ;; 307 308 -help | --help | --hel | --he) 309 # Omit some internal or obsolete options to make the list less imposing. 310 # This message is too long to be a string in the A/UX 3.1 sh. 311 cat << EOF 312Usage: configure [options] [host] 313Options: [defaults in brackets after descriptions] 314Configuration: 315 --cache-file=FILE cache test results in FILE 316 --help print this message 317 --no-create do not create output files 318 --quiet, --silent do not print \`checking...' messages 319 --version print the version of autoconf that created configure 320Directory and file names: 321 --prefix=PREFIX install architecture-independent files in PREFIX 322 [$ac_default_prefix] 323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 324 [same as prefix] 325 --bindir=DIR user executables in DIR [EPREFIX/bin] 326 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 327 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 328 --datadir=DIR read-only architecture-independent data in DIR 329 [PREFIX/share] 330 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 331 --sharedstatedir=DIR modifiable architecture-independent data in DIR 332 [PREFIX/com] 333 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 334 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 335 --includedir=DIR C header files in DIR [PREFIX/include] 336 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 337 --infodir=DIR info documentation in DIR [PREFIX/info] 338 --mandir=DIR man documentation in DIR [PREFIX/man] 339 --srcdir=DIR find the sources in DIR [configure dir or ..] 340 --program-prefix=PREFIX prepend PREFIX to installed program names 341 --program-suffix=SUFFIX append SUFFIX to installed program names 342 --program-transform-name=PROGRAM 343 run sed PROGRAM on installed program names 344EOF 345 cat << EOF 346Host type: 347 --build=BUILD configure for building on BUILD [BUILD=HOST] 348 --host=HOST configure for HOST [guessed] 349 --target=TARGET configure for TARGET [TARGET=HOST] 350Features and packages: 351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 353 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 354 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 355 --x-includes=DIR X include files are in DIR 356 --x-libraries=DIR X library files are in DIR 357EOF 358 if test -n "$ac_help"; then 359 echo "--enable and --with options recognized:$ac_help" 360 fi 361 exit 0 ;; 362 363 -host | --host | --hos | --ho) 364 ac_prev=host ;; 365 -host=* | --host=* | --hos=* | --ho=*) 366 host="$ac_optarg" ;; 367 368 -includedir | --includedir | --includedi | --included | --include \ 369 | --includ | --inclu | --incl | --inc) 370 ac_prev=includedir ;; 371 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 372 | --includ=* | --inclu=* | --incl=* | --inc=*) 373 includedir="$ac_optarg" ;; 374 375 -infodir | --infodir | --infodi | --infod | --info | --inf) 376 ac_prev=infodir ;; 377 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 378 infodir="$ac_optarg" ;; 379 380 -libdir | --libdir | --libdi | --libd) 381 ac_prev=libdir ;; 382 -libdir=* | --libdir=* | --libdi=* | --libd=*) 383 libdir="$ac_optarg" ;; 384 385 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 386 | --libexe | --libex | --libe) 387 ac_prev=libexecdir ;; 388 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 389 | --libexe=* | --libex=* | --libe=*) 390 libexecdir="$ac_optarg" ;; 391 392 -localstatedir | --localstatedir | --localstatedi | --localstated \ 393 | --localstate | --localstat | --localsta | --localst \ 394 | --locals | --local | --loca | --loc | --lo) 395 ac_prev=localstatedir ;; 396 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 397 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 398 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 399 localstatedir="$ac_optarg" ;; 400 401 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 402 ac_prev=mandir ;; 403 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 404 mandir="$ac_optarg" ;; 405 406 -nfp | --nfp | --nf) 407 # Obsolete; use --without-fp. 408 with_fp=no ;; 409 410 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 411 | --no-cr | --no-c) 412 no_create=yes ;; 413 414 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 415 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 416 no_recursion=yes ;; 417 418 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 419 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 420 | --oldin | --oldi | --old | --ol | --o) 421 ac_prev=oldincludedir ;; 422 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 423 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 424 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 425 oldincludedir="$ac_optarg" ;; 426 427 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 428 ac_prev=prefix ;; 429 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 430 prefix="$ac_optarg" ;; 431 432 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 433 | --program-pre | --program-pr | --program-p) 434 ac_prev=program_prefix ;; 435 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 436 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 437 program_prefix="$ac_optarg" ;; 438 439 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 440 | --program-suf | --program-su | --program-s) 441 ac_prev=program_suffix ;; 442 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 443 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 444 program_suffix="$ac_optarg" ;; 445 446 -program-transform-name | --program-transform-name \ 447 | --program-transform-nam | --program-transform-na \ 448 | --program-transform-n | --program-transform- \ 449 | --program-transform | --program-transfor \ 450 | --program-transfo | --program-transf \ 451 | --program-trans | --program-tran \ 452 | --progr-tra | --program-tr | --program-t) 453 ac_prev=program_transform_name ;; 454 -program-transform-name=* | --program-transform-name=* \ 455 | --program-transform-nam=* | --program-transform-na=* \ 456 | --program-transform-n=* | --program-transform-=* \ 457 | --program-transform=* | --program-transfor=* \ 458 | --program-transfo=* | --program-transf=* \ 459 | --program-trans=* | --program-tran=* \ 460 | --progr-tra=* | --program-tr=* | --program-t=*) 461 program_transform_name="$ac_optarg" ;; 462 463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 464 | -silent | --silent | --silen | --sile | --sil) 465 silent=yes ;; 466 467 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 468 ac_prev=sbindir ;; 469 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 470 | --sbi=* | --sb=*) 471 sbindir="$ac_optarg" ;; 472 473 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 474 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 475 | --sharedst | --shareds | --shared | --share | --shar \ 476 | --sha | --sh) 477 ac_prev=sharedstatedir ;; 478 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 479 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 480 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 481 | --sha=* | --sh=*) 482 sharedstatedir="$ac_optarg" ;; 483 484 -site | --site | --sit) 485 ac_prev=site ;; 486 -site=* | --site=* | --sit=*) 487 site="$ac_optarg" ;; 488 489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 490 ac_prev=srcdir ;; 491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 492 srcdir="$ac_optarg" ;; 493 494 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 495 | --syscon | --sysco | --sysc | --sys | --sy) 496 ac_prev=sysconfdir ;; 497 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 498 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 499 sysconfdir="$ac_optarg" ;; 500 501 -target | --target | --targe | --targ | --tar | --ta | --t) 502 ac_prev=target ;; 503 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 504 target="$ac_optarg" ;; 505 506 -v | -verbose | --verbose | --verbos | --verbo | --verb) 507 verbose=yes ;; 508 509 -version | --version | --versio | --versi | --vers) 510 echo "configure generated by autoconf version 2.13" 511 exit 0 ;; 512 513 -with-* | --with-*) 514 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 515 # Reject names that are not valid shell variable names. 516 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 517 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 518 fi 519 ac_package=`echo $ac_package| sed 's/-/_/g'` 520 case "$ac_option" in 521 *=*) ;; 522 *) ac_optarg=yes ;; 523 esac 524 eval "with_${ac_package}='$ac_optarg'" ;; 525 526 -without-* | --without-*) 527 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 528 # Reject names that are not valid shell variable names. 529 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 530 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 531 fi 532 ac_package=`echo $ac_package| sed 's/-/_/g'` 533 eval "with_${ac_package}=no" ;; 534 535 --x) 536 # Obsolete; use --with-x. 537 with_x=yes ;; 538 539 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 540 | --x-incl | --x-inc | --x-in | --x-i) 541 ac_prev=x_includes ;; 542 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 543 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 544 x_includes="$ac_optarg" ;; 545 546 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 547 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 548 ac_prev=x_libraries ;; 549 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 550 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 551 x_libraries="$ac_optarg" ;; 552 553 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 554 ;; 555 556 *) 557 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 558 echo "configure: warning: $ac_option: invalid host type" 1>&2 559 fi 560 if test "x$nonopt" != xNONE; then 561 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 562 fi 563 nonopt="$ac_option" 564 ;; 565 566 esac 567done 568 569if test -n "$ac_prev"; then 570 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 571fi 572 573trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 574 575# File descriptor usage: 576# 0 standard input 577# 1 file creation 578# 2 errors and warnings 579# 3 some systems may open it to /dev/tty 580# 4 used on the Kubota Titan 581# 6 checking for... messages and results 582# 5 compiler messages saved in config.log 583if test "$silent" = yes; then 584 exec 6>/dev/null 585else 586 exec 6>&1 587fi 588exec 5>./config.log 589 590echo "\ 591This file contains any messages produced by compilers while 592running configure, to aid debugging if configure makes a mistake. 593" 1>&5 594 595# Strip out --no-create and --no-recursion so they do not pile up. 596# Also quote any args containing shell metacharacters. 597ac_configure_args= 598for ac_arg 599do 600 case "$ac_arg" in 601 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 602 | --no-cr | --no-c) ;; 603 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 604 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 605 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 606 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 607 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 608 esac 609done 610 611# NLS nuisances. 612# Only set these to C if already set. These must not be set unconditionally 613# because not all systems understand e.g. LANG=C (notably SCO). 614# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 615# Non-C LC_CTYPE values break the ctype check. 616if test "${LANG+set}" = set; then LANG=C; export LANG; fi 617if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 618if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 619if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 620 621# confdefs.h avoids OS command line length limits that DEFS can exceed. 622rm -rf conftest* confdefs.h 623# AIX cpp loses on an empty file, so make sure it contains at least a newline. 624echo > confdefs.h 625 626# A filename unique to this package, relative to the directory that 627# configure is in, which we can look for to find out if srcdir is correct. 628ac_unique_file=configure.in 629 630# Find the source files, if location was not specified. 631if test -z "$srcdir"; then 632 ac_srcdir_defaulted=yes 633 # Try the directory containing this script, then its parent. 634 ac_prog=$0 635 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 636 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 637 srcdir=$ac_confdir 638 if test ! -r $srcdir/$ac_unique_file; then 639 srcdir=.. 640 fi 641else 642 ac_srcdir_defaulted=no 643fi 644if test ! -r $srcdir/$ac_unique_file; then 645 if test "$ac_srcdir_defaulted" = yes; then 646 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 647 else 648 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 649 fi 650fi 651srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 652 653# Prefer explicitly selected file to automatically selected ones. 654if test -z "$CONFIG_SITE"; then 655 if test "x$prefix" != xNONE; then 656 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 657 else 658 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 659 fi 660fi 661for ac_site_file in $CONFIG_SITE; do 662 if test -r "$ac_site_file"; then 663 echo "loading site script $ac_site_file" 664 . "$ac_site_file" 665 fi 666done 667 668if test -r "$cache_file"; then 669 echo "loading cache $cache_file" 670 . $cache_file 671else 672 echo "creating cache $cache_file" 673 > $cache_file 674fi 675 676ac_ext=c 677# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 678ac_cpp='$CPP $CPPFLAGS' 679ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 680ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 681cross_compiling=$ac_cv_prog_cc_cross 682 683ac_exeext= 684ac_objext=o 685if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 686 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 687 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 688 ac_n= ac_c=' 689' ac_t=' ' 690 else 691 ac_n=-n ac_c= ac_t= 692 fi 693else 694 ac_n= ac_c='\c' ac_t= 695fi 696 697 698 699ac_aux_dir= 700for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 701 if test -f $ac_dir/install-sh; then 702 ac_aux_dir=$ac_dir 703 ac_install_sh="$ac_aux_dir/install-sh -c" 704 break 705 elif test -f $ac_dir/install.sh; then 706 ac_aux_dir=$ac_dir 707 ac_install_sh="$ac_aux_dir/install.sh -c" 708 break 709 fi 710done 711if test -z "$ac_aux_dir"; then 712 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 713fi 714ac_config_guess=$ac_aux_dir/config.guess 715ac_config_sub=$ac_aux_dir/config.sub 716ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 717 718 719# expand $ac_aux_dir to an absolute path 720am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` 721 722# Find a good install program. We prefer a C program (faster), 723# so one script is as good as another. But avoid the broken or 724# incompatible versions: 725# SysV /etc/install, /usr/sbin/install 726# SunOS /usr/etc/install 727# IRIX /sbin/install 728# AIX /bin/install 729# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 730# AFS /usr/afsws/bin/install, which mishandles nonexistent args 731# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 732# ./install, which can be erroneously created by make from ./install.sh. 733echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 734echo "configure:735: checking for a BSD compatible install" >&5 735if test -z "$INSTALL"; then 736if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 737 echo $ac_n "(cached) $ac_c" 1>&6 738else 739 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 740 for ac_dir in $PATH; do 741 # Account for people who put trailing slashes in PATH elements. 742 case "$ac_dir/" in 743 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 744 *) 745 # OSF1 and SCO ODT 3.0 have their own names for install. 746 # Don't use installbsd from OSF since it installs stuff as root 747 # by default. 748 for ac_prog in ginstall scoinst install; do 749 if test -f $ac_dir/$ac_prog; then 750 if test $ac_prog = install && 751 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 752 # AIX install. It has an incompatible calling convention. 753 : 754 else 755 ac_cv_path_install="$ac_dir/$ac_prog -c" 756 break 2 757 fi 758 fi 759 done 760 ;; 761 esac 762 done 763 IFS="$ac_save_IFS" 764 765fi 766 if test "${ac_cv_path_install+set}" = set; then 767 INSTALL="$ac_cv_path_install" 768 else 769 # As a last resort, use the slow shell script. We don't cache a 770 # path for INSTALL within a source directory, because that will 771 # break other packages using the cache if that directory is 772 # removed, or if the path is relative. 773 INSTALL="$ac_install_sh" 774 fi 775fi 776echo "$ac_t""$INSTALL" 1>&6 777 778# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 779# It thinks the first close brace ends the variable substitution. 780test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 781 782test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 783 784test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 785 786echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 787echo "configure:788: checking whether build environment is sane" >&5 788# Just in case 789sleep 1 790echo timestamp > conftest.file 791# Do `set' in a subshell so we don't clobber the current shell's 792# arguments. Must try -L first in case configure is actually a 793# symlink; some systems play weird games with the mod time of symlinks 794# (eg FreeBSD returns the mod time of the symlink's containing 795# directory). 796if ( 797 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 798 if test "$*" = "X"; then 799 # -L didn't work. 800 set X `ls -t $srcdir/configure conftest.file` 801 fi 802 rm -f conftest.file 803 if test "$*" != "X $srcdir/configure conftest.file" \ 804 && test "$*" != "X conftest.file $srcdir/configure"; then 805 806 # If neither matched, then we have a broken ls. This can happen 807 # if, for instance, CONFIG_SHELL is bash and it inherits a 808 # broken ls alias from the environment. This has actually 809 # happened. Such a system could not be considered "sane". 810 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 811alias in your environment" 1>&2; exit 1; } 812 fi 813 814 test "$2" = conftest.file 815 ) 816then 817 # Ok. 818 : 819else 820 { echo "configure: error: newly created file is older than distributed files! 821Check your system clock" 1>&2; exit 1; } 822fi 823echo "$ac_t""yes" 1>&6 824if test "$program_transform_name" = s,x,x,; then 825 program_transform_name= 826else 827 # Double any \ or $. echo might interpret backslashes. 828 cat <<\EOF_SED > conftestsed 829s,\\,\\\\,g; s,\$,$$,g 830EOF_SED 831 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 832 rm -f conftestsed 833fi 834test "$program_prefix" != NONE && 835 program_transform_name="s,^,${program_prefix},; $program_transform_name" 836# Use a double $ so make ignores it. 837test "$program_suffix" != NONE && 838 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 839 840# sed with no file args requires a program. 841test "$program_transform_name" = "" && program_transform_name="s,x,x," 842 843test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 844# Use eval to expand $SHELL 845if eval "$MISSING --run true"; then 846 am_missing_run="$MISSING --run " 847else 848 am_missing_run= 849 am_backtick='`' 850 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2 851fi 852 853for ac_prog in mawk gawk nawk awk 854do 855# Extract the first word of "$ac_prog", so it can be a program name with args. 856set dummy $ac_prog; ac_word=$2 857echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 858echo "configure:859: checking for $ac_word" >&5 859if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 860 echo $ac_n "(cached) $ac_c" 1>&6 861else 862 if test -n "$AWK"; then 863 ac_cv_prog_AWK="$AWK" # Let the user override the test. 864else 865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 866 ac_dummy="$PATH" 867 for ac_dir in $ac_dummy; do 868 test -z "$ac_dir" && ac_dir=. 869 if test -f $ac_dir/$ac_word; then 870 ac_cv_prog_AWK="$ac_prog" 871 break 872 fi 873 done 874 IFS="$ac_save_ifs" 875fi 876fi 877AWK="$ac_cv_prog_AWK" 878if test -n "$AWK"; then 879 echo "$ac_t""$AWK" 1>&6 880else 881 echo "$ac_t""no" 1>&6 882fi 883 884test -n "$AWK" && break 885done 886 887echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 888echo "configure:889: checking whether ${MAKE-make} sets \${MAKE}" >&5 889set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 890if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 891 echo $ac_n "(cached) $ac_c" 1>&6 892else 893 cat > conftestmake <<\EOF 894all: 895 @echo 'ac_maketemp="${MAKE}"' 896EOF 897# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 898eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 899if test -n "$ac_maketemp"; then 900 eval ac_cv_prog_make_${ac_make}_set=yes 901else 902 eval ac_cv_prog_make_${ac_make}_set=no 903fi 904rm -f conftestmake 905fi 906if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 907 echo "$ac_t""yes" 1>&6 908 SET_MAKE= 909else 910 echo "$ac_t""no" 1>&6 911 SET_MAKE="MAKE=${MAKE-make}" 912fi 913 914# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 915if test "${enable_dependency_tracking+set}" = set; then 916 enableval="$enable_dependency_tracking" 917 : 918fi 919 920if test "x$enable_dependency_tracking" != xno; then 921 am_depcomp="$ac_aux_dir/depcomp" 922 AMDEPBACKSLASH='\' 923fi 924 925 926if test "x$enable_dependency_tracking" != xno; then 927 AMDEP_TRUE= 928 AMDEP_FALSE='#' 929else 930 AMDEP_TRUE='#' 931 AMDEP_FALSE= 932fi 933 934 935 936 937rm -f .deps 2>/dev/null 938mkdir .deps 2>/dev/null 939if test -d .deps; then 940 DEPDIR=.deps 941else 942 # MS-DOS does not allow filenames that begin with a dot. 943 DEPDIR=_deps 944fi 945rmdir .deps 2>/dev/null 946 947 948# test to see if srcdir already configured 949if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 950 test -f $srcdir/config.status; then 951 { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; } 952fi 953 954# Define the identity of the package. 955PACKAGE=Maaate 956VERSION=0.3.1 957cat >> confdefs.h <<EOF 958#define PACKAGE "$PACKAGE" 959EOF 960 961cat >> confdefs.h <<EOF 962#define VERSION "$VERSION" 963EOF 964 965 966# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 967# the ones we care about. 968 969# Autoconf 2.50 always computes EXEEXT. However we need to be 970# compatible with 2.13, for now. So we always define EXEEXT, but we 971# don't compute it. 972 973# Similar for OBJEXT -- only we only use OBJEXT if the user actually 974# requests that it be used. This is a bit dumb. 975: ${OBJEXT=o} 976 977 978# Some tools Automake needs. 979 980ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 981 982 983AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 984 985 986AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 987 988 989AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 990 991 992MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 993 994 995AMTAR=${AMTAR-"${am_missing_run}tar"} 996 997install_sh=${install_sh-"$am_aux_dir/install-sh"} 998 999INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1000 1001# We need awk for the "check" target. The system "awk" is bad on 1002# some platforms. 1003 1004 1005 1006 1007 1008for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 1009do 1010# Extract the first word of "$ac_prog", so it can be a program name with args. 1011set dummy $ac_prog; ac_word=$2 1012echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1013echo "configure:1014: checking for $ac_word" >&5 1014if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1015 echo $ac_n "(cached) $ac_c" 1>&6 1016else 1017 if test -n "$CXX"; then 1018 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1019else 1020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1021 ac_dummy="$PATH" 1022 for ac_dir in $ac_dummy; do 1023 test -z "$ac_dir" && ac_dir=. 1024 if test -f $ac_dir/$ac_word; then 1025 ac_cv_prog_CXX="$ac_prog" 1026 break 1027 fi 1028 done 1029 IFS="$ac_save_ifs" 1030fi 1031fi 1032CXX="$ac_cv_prog_CXX" 1033if test -n "$CXX"; then 1034 echo "$ac_t""$CXX" 1>&6 1035else 1036 echo "$ac_t""no" 1>&6 1037fi 1038 1039test -n "$CXX" && break 1040done 1041test -n "$CXX" || CXX="gcc" 1042 1043 1044echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1045echo "configure:1046: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1046 1047ac_ext=C 1048# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1049ac_cpp='$CXXCPP $CPPFLAGS' 1050ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1051ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1052cross_compiling=$ac_cv_prog_cxx_cross 1053 1054cat > conftest.$ac_ext << EOF 1055 1056#line 1057 "configure" 1057#include "confdefs.h" 1058 1059int main(){return(0);} 1060EOF 1061if { (eval echo configure:1062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1062 ac_cv_prog_cxx_works=yes 1063 # If we can't run a trivial program, we are probably using a cross compiler. 1064 if (./conftest; exit) 2>/dev/null; then 1065 ac_cv_prog_cxx_cross=no 1066 else 1067 ac_cv_prog_cxx_cross=yes 1068 fi 1069else 1070 echo "configure: failed program was:" >&5 1071 cat conftest.$ac_ext >&5 1072 ac_cv_prog_cxx_works=no 1073fi 1074rm -fr conftest* 1075ac_ext=c 1076# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1077ac_cpp='$CPP $CPPFLAGS' 1078ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1079ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1080cross_compiling=$ac_cv_prog_cc_cross 1081 1082echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1083if test $ac_cv_prog_cxx_works = no; then 1084 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1085fi 1086echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1087echo "configure:1088: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1088echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1089cross_compiling=$ac_cv_prog_cxx_cross 1090 1091echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1092echo "configure:1093: checking whether we are using GNU C++" >&5 1093if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1094 echo $ac_n "(cached) $ac_c" 1>&6 1095else 1096 cat > conftest.C <<EOF 1097#ifdef __GNUC__ 1098 yes; 1099#endif 1100EOF 1101if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1102 ac_cv_prog_gxx=yes 1103else 1104 ac_cv_prog_gxx=no 1105fi 1106fi 1107 1108echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1109 1110if test $ac_cv_prog_gxx = yes; then 1111 GXX=yes 1112else 1113 GXX= 1114fi 1115 1116ac_test_CXXFLAGS="${CXXFLAGS+set}" 1117ac_save_CXXFLAGS="$CXXFLAGS" 1118CXXFLAGS= 1119echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1120echo "configure:1121: checking whether ${CXX-g++} accepts -g" >&5 1121if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1122 echo $ac_n "(cached) $ac_c" 1>&6 1123else 1124 echo 'void f(){}' > conftest.cc 1125if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1126 ac_cv_prog_cxx_g=yes 1127else 1128 ac_cv_prog_cxx_g=no 1129fi 1130rm -f conftest* 1131 1132fi 1133 1134echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1135if test "$ac_test_CXXFLAGS" = set; then 1136 CXXFLAGS="$ac_save_CXXFLAGS" 1137elif test $ac_cv_prog_cxx_g = yes; then 1138 if test "$GXX" = yes; then 1139 CXXFLAGS="-g -O2" 1140 else 1141 CXXFLAGS="-g" 1142 fi 1143else 1144 if test "$GXX" = yes; then 1145 CXXFLAGS="-O2" 1146 else 1147 CXXFLAGS= 1148 fi 1149fi 1150 1151 1152am_make=${MAKE-make} 1153cat > confinc << 'END' 1154doit: 1155 @echo done 1156END 1157# If we don't find an include directive, just comment out the code. 1158echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6 1159echo "configure:1160: checking for style of include used by $am_make" >&5 1160am__include='#' 1161am__quote= 1162_am_result=none 1163# First try GNU make style include. 1164echo "include confinc" > confmf 1165# We grep out `Entering directory' and `Leaving directory' 1166# messages which can occur if `w' ends up in MAKEFLAGS. 1167# In particular we don't look at `^make:' because GNU make might 1168# be invoked under some other name (usually "gmake"), in which 1169# case it prints its new name instead of `make'. 1170if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 1171 am__include=include 1172 am__quote= 1173 _am_result=GNU 1174fi 1175# Now try BSD make style include. 1176if test "$am__include" = "#"; then 1177 echo '.include "confinc"' > confmf 1178 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 1179 am__include=.include 1180 am__quote='"' 1181 _am_result=BSD 1182 fi 1183fi 1184 1185 1186echo "$ac_t""$_am_result" 1>&6 1187rm -f confinc confmf 1188 1189 1190depcc="$CXX" am_compiler_list= 1191 1192echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6 1193echo "configure:1194: checking dependency style of $depcc" >&5 1194if eval "test \"`echo '$''{'am_cv_CXX_dependencies_compiler_type'+set}'`\" = set"; then 1195 echo $ac_n "(cached) $ac_c" 1>&6 1196else 1197 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 1198 # We make a subdir and do the tests there. Otherwise we can end up 1199 # making bogus files that we don't know about and never remove. For 1200 # instance it was reported that on HP-UX the gcc test will end up 1201 # making a dummy file named `D' -- because `-MD' means `put the output 1202 # in D'. 1203 mkdir conftest.dir 1204 # Copy depcomp to subdir because otherwise we won't find it if we're 1205 # using a relative directory. 1206 cp "$am_depcomp" conftest.dir 1207 cd conftest.dir 1208 1209 am_cv_CXX_dependencies_compiler_type=none 1210 if test "$am_compiler_list" = ""; then 1211 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 1212 fi 1213 for depmode in $am_compiler_list; do 1214 # We need to recreate these files for each test, as the compiler may 1215 # overwrite some of them when testing with obscure command lines. 1216 # This happens at least with the AIX C compiler. 1217 echo '#include "conftest.h"' > conftest.c 1218 echo 'int i;' > conftest.h 1219 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 1220 1221 case $depmode in 1222 nosideeffect) 1223 # after this tag, mechanisms are not by side-effect, so they'll 1224 # only be used when explicitly requested 1225 if test "x$enable_dependency_tracking" = xyes; then 1226 continue 1227 else 1228 break 1229 fi 1230 ;; 1231 none) break ;; 1232 esac 1233 # We check with `-c' and `-o' for the sake of the "dashmstdout" 1234 # mode. It turns out that the SunPro C++ compiler does not properly 1235 # handle `-M -o', and we need to detect this. 1236 if depmode=$depmode \ 1237 source=conftest.c object=conftest.o \ 1238 depfile=conftest.Po tmpdepfile=conftest.TPo \ 1239 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 1240 grep conftest.h conftest.Po > /dev/null 2>&1 && 1241 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 1242 am_cv_CXX_dependencies_compiler_type=$depmode 1243 break 1244 fi 1245 done 1246 1247 cd .. 1248 rm -rf conftest.dir 1249else 1250 am_cv_CXX_dependencies_compiler_type=none 1251fi 1252 1253fi 1254 1255echo "$ac_t""$am_cv_CXX_dependencies_compiler_type" 1>&6 1256CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type" 1257 1258 1259 1260# Find a good install program. We prefer a C program (faster), 1261# so one script is as good as another. But avoid the broken or 1262# incompatible versions: 1263# SysV /etc/install, /usr/sbin/install 1264# SunOS /usr/etc/install 1265# IRIX /sbin/install 1266# AIX /bin/install 1267# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1268# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1269# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1270# ./install, which can be erroneously created by make from ./install.sh. 1271echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1272echo "configure:1273: checking for a BSD compatible install" >&5 1273if test -z "$INSTALL"; then 1274if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1275 echo $ac_n "(cached) $ac_c" 1>&6 1276else 1277 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1278 for ac_dir in $PATH; do 1279 # Account for people who put trailing slashes in PATH elements. 1280 case "$ac_dir/" in 1281 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1282 *) 1283 # OSF1 and SCO ODT 3.0 have their own names for install. 1284 # Don't use installbsd from OSF since it installs stuff as root 1285 # by default. 1286 for ac_prog in ginstall scoinst install; do 1287 if test -f $ac_dir/$ac_prog; then 1288 if test $ac_prog = install && 1289 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1290 # AIX install. It has an incompatible calling convention. 1291 : 1292 else 1293 ac_cv_path_install="$ac_dir/$ac_prog -c" 1294 break 2 1295 fi 1296 fi 1297 done 1298 ;; 1299 esac 1300 done 1301 IFS="$ac_save_IFS" 1302 1303fi 1304 if test "${ac_cv_path_install+set}" = set; then 1305 INSTALL="$ac_cv_path_install" 1306 else 1307 # As a last resort, use the slow shell script. We don't cache a 1308 # path for INSTALL within a source directory, because that will 1309 # break other packages using the cache if that directory is 1310 # removed, or if the path is relative. 1311 INSTALL="$ac_install_sh" 1312 fi 1313fi 1314echo "$ac_t""$INSTALL" 1>&6 1315 1316# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1317# It thinks the first close brace ends the variable substitution. 1318test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1319 1320test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1321 1322test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1323 1324 1325# Find the correct PATH separator. Usually this is `:', but 1326# DJGPP uses `;' like DOS. 1327if test "X${PATH_SEPARATOR+set}" != Xset; then 1328 UNAME=${UNAME-`uname 2>/dev/null`} 1329 case X$UNAME in 1330 *-DOS) lt_cv_sys_path_separator=';' ;; 1331 *) lt_cv_sys_path_separator=':' ;; 1332 esac 1333 PATH_SEPARATOR=$lt_cv_sys_path_separator 1334fi 1335 1336echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 1337echo "configure:1338: checking for Cygwin environment" >&5 1338if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 1339 echo $ac_n "(cached) $ac_c" 1>&6 1340else 1341 cat > conftest.$ac_ext <<EOF 1342#line 1343 "configure" 1343#include "confdefs.h" 1344 1345int main() { 1346 1347#ifndef __CYGWIN__ 1348#define __CYGWIN__ __CYGWIN32__ 1349#endif 1350return __CYGWIN__; 1351; return 0; } 1352EOF 1353if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1354 rm -rf conftest* 1355 ac_cv_cygwin=yes 1356else 1357 echo "configure: failed program was:" >&5 1358 cat conftest.$ac_ext >&5 1359 rm -rf conftest* 1360 ac_cv_cygwin=no 1361fi 1362rm -f conftest* 1363rm -f conftest* 1364fi 1365 1366echo "$ac_t""$ac_cv_cygwin" 1>&6 1367CYGWIN= 1368test "$ac_cv_cygwin" = yes && CYGWIN=yes 1369echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 1370echo "configure:1371: checking for mingw32 environment" >&5 1371if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 1372 echo $ac_n "(cached) $ac_c" 1>&6 1373else 1374 cat > conftest.$ac_ext <<EOF 1375#line 1376 "configure" 1376#include "confdefs.h" 1377 1378int main() { 1379return __MINGW32__; 1380; return 0; } 1381EOF 1382if { (eval echo configure:1383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1383 rm -rf conftest* 1384 ac_cv_mingw32=yes 1385else 1386 echo "configure: failed program was:" >&5 1387 cat conftest.$ac_ext >&5 1388 rm -rf conftest* 1389 ac_cv_mingw32=no 1390fi 1391rm -f conftest* 1392rm -f conftest* 1393fi 1394 1395echo "$ac_t""$ac_cv_mingw32" 1>&6 1396MINGW32= 1397test "$ac_cv_mingw32" = yes && MINGW32=yes 1398echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1399echo "configure:1400: checking how to run the C preprocessor" >&5 1400# On Suns, sometimes $CPP names a directory. 1401if test -n "$CPP" && test -d "$CPP"; then 1402 CPP= 1403fi 1404if test -z "$CPP"; then 1405if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1406 echo $ac_n "(cached) $ac_c" 1>&6 1407else 1408 # This must be in double quotes, not single quotes, because CPP may get 1409 # substituted into the Makefile and "${CC-cc}" will confuse make. 1410 CPP="${CC-cc} -E" 1411 # On the NeXT, cc -E runs the code through the compiler's parser, 1412 # not just through cpp. 1413 cat > conftest.$ac_ext <<EOF 1414#line 1415 "configure" 1415#include "confdefs.h" 1416#include <assert.h> 1417Syntax Error 1418EOF 1419ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1420{ (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1421ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1422if test -z "$ac_err"; then 1423 : 1424else 1425 echo "$ac_err" >&5 1426 echo "configure: failed program was:" >&5 1427 cat conftest.$ac_ext >&5 1428 rm -rf conftest* 1429 CPP="${CC-cc} -E -traditional-cpp" 1430 cat > conftest.$ac_ext <<EOF 1431#line 1432 "configure" 1432#include "confdefs.h" 1433#include <assert.h> 1434Syntax Error 1435EOF 1436ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1437{ (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1438ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1439if test -z "$ac_err"; then 1440 : 1441else 1442 echo "$ac_err" >&5 1443 echo "configure: failed program was:" >&5 1444 cat conftest.$ac_ext >&5 1445 rm -rf conftest* 1446 CPP="${CC-cc} -nologo -E" 1447 cat > conftest.$ac_ext <<EOF 1448#line 1449 "configure" 1449#include "confdefs.h" 1450#include <assert.h> 1451Syntax Error 1452EOF 1453ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1454{ (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1455ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1456if test -z "$ac_err"; then 1457 : 1458else 1459 echo "$ac_err" >&5 1460 echo "configure: failed program was:" >&5 1461 cat conftest.$ac_ext >&5 1462 rm -rf conftest* 1463 CPP=/lib/cpp 1464fi 1465rm -f conftest* 1466fi 1467rm -f conftest* 1468fi 1469rm -f conftest* 1470 ac_cv_prog_CPP="$CPP" 1471fi 1472 CPP="$ac_cv_prog_CPP" 1473else 1474 ac_cv_prog_CPP="$CPP" 1475fi 1476echo "$ac_t""$CPP" 1>&6 1477 1478# Check whether --enable-shared or --disable-shared was given. 1479if test "${enable_shared+set}" = set; then 1480 enableval="$enable_shared" 1481 p=${PACKAGE-default} 1482case $enableval in 1483yes) enable_shared=yes ;; 1484no) enable_shared=no ;; 1485*) 1486 enable_shared=no 1487 # Look at the argument we got. We use all the common list separators. 1488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1489 for pkg in $enableval; do 1490 if test "X$pkg" = "X$p"; then 1491 enable_shared=yes 1492 fi 1493 done 1494 IFS="$ac_save_ifs" 1495 ;; 1496esac 1497else 1498 enable_shared=yes 1499fi 1500 1501# Check whether --enable-static or --disable-static was given. 1502if test "${enable_static+set}" = set; then 1503 enableval="$enable_static" 1504 p=${PACKAGE-default} 1505case $enableval in 1506yes) enable_static=yes ;; 1507no) enable_static=no ;; 1508*) 1509 enable_static=no 1510 # Look at the argument we got. We use all the common list separators. 1511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1512 for pkg in $enableval; do 1513 if test "X$pkg" = "X$p"; then 1514 enable_static=yes 1515 fi 1516 done 1517 IFS="$ac_save_ifs" 1518 ;; 1519esac 1520else 1521 enable_static=yes 1522fi 1523 1524# Check whether --enable-fast-install or --disable-fast-install was given. 1525if test "${enable_fast_install+set}" = set; then 1526 enableval="$enable_fast_install" 1527 p=${PACKAGE-default} 1528case $enableval in 1529yes) enable_fast_install=yes ;; 1530no) enable_fast_install=no ;; 1531*) 1532 enable_fast_install=no 1533 # Look at the argument we got. We use all the common list separators. 1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1535 for pkg in $enableval; do 1536 if test "X$pkg" = "X$p"; then 1537 enable_fast_install=yes 1538 fi 1539 done 1540 IFS="$ac_save_ifs" 1541 ;; 1542esac 1543else 1544 enable_fast_install=yes 1545fi 1546 1547 1548# Make sure we can run config.sub. 1549if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 1550else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 1551fi 1552 1553echo $ac_n "checking host system type""... $ac_c" 1>&6 1554echo "configure:1555: checking host system type" >&5 1555 1556host_alias=$host 1557case "$host_alias" in 1558NONE) 1559 case $nonopt in 1560 NONE) 1561 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 1562 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 1563 fi ;; 1564 *) host_alias=$nonopt ;; 1565 esac ;; 1566esac 1567 1568host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 1569host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1570host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1571host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1572echo "$ac_t""$host" 1>&6 1573 1574echo $ac_n "checking build system type""... $ac_c" 1>&6 1575echo "configure:1576: checking build system type" >&5 1576 1577build_alias=$build 1578case "$build_alias" in 1579NONE) 1580 case $nonopt in 1581 NONE) build_alias=$host_alias ;; 1582 *) build_alias=$nonopt ;; 1583 esac ;; 1584esac 1585 1586build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 1587build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1588build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1589build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1590echo "$ac_t""$build" 1>&6 1591 1592# Extract the first word of "gcc", so it can be a program name with args. 1593set dummy gcc; ac_word=$2 1594echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1595echo "configure:1596: checking for $ac_word" >&5 1596if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1597 echo $ac_n "(cached) $ac_c" 1>&6 1598else 1599 if test -n "$CC"; then 1600 ac_cv_prog_CC="$CC" # Let the user override the test. 1601else 1602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1603 ac_dummy="$PATH" 1604 for ac_dir in $ac_dummy; do 1605 test -z "$ac_dir" && ac_dir=. 1606 if test -f $ac_dir/$ac_word; then 1607 ac_cv_prog_CC="gcc" 1608 break 1609 fi 1610 done 1611 IFS="$ac_save_ifs" 1612fi 1613fi 1614CC="$ac_cv_prog_CC" 1615if test -n "$CC"; then 1616 echo "$ac_t""$CC" 1>&6 1617else 1618 echo "$ac_t""no" 1>&6 1619fi 1620 1621if test -z "$CC"; then 1622 # Extract the first word of "cc", so it can be a program name with args. 1623set dummy cc; ac_word=$2 1624echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1625echo "configure:1626: checking for $ac_word" >&5 1626if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1627 echo $ac_n "(cached) $ac_c" 1>&6 1628else 1629 if test -n "$CC"; then 1630 ac_cv_prog_CC="$CC" # Let the user override the test. 1631else 1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1633 ac_prog_rejected=no 1634 ac_dummy="$PATH" 1635 for ac_dir in $ac_dummy; do 1636 test -z "$ac_dir" && ac_dir=. 1637 if test -f $ac_dir/$ac_word; then 1638 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1639 ac_prog_rejected=yes 1640 continue 1641 fi 1642 ac_cv_prog_CC="cc" 1643 break 1644 fi 1645 done 1646 IFS="$ac_save_ifs" 1647if test $ac_prog_rejected = yes; then 1648 # We found a bogon in the path, so make sure we never use it. 1649 set dummy $ac_cv_prog_CC 1650 shift 1651 if test $# -gt 0; then 1652 # We chose a different compiler from the bogus one. 1653 # However, it has the same basename, so the bogon will be chosen 1654 # first if we set CC to just the basename; use the full file name. 1655 shift 1656 set dummy "$ac_dir/$ac_word" "$@" 1657 shift 1658 ac_cv_prog_CC="$@" 1659 fi 1660fi 1661fi 1662fi 1663CC="$ac_cv_prog_CC" 1664if test -n "$CC"; then 1665 echo "$ac_t""$CC" 1>&6 1666else 1667 echo "$ac_t""no" 1>&6 1668fi 1669 1670 if test -z "$CC"; then 1671 case "`uname -s`" in 1672 *win32* | *WIN32*) 1673 # Extract the first word of "cl", so it can be a program name with args. 1674set dummy cl; ac_word=$2 1675echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1676echo "configure:1677: checking for $ac_word" >&5 1677if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1678 echo $ac_n "(cached) $ac_c" 1>&6 1679else 1680 if test -n "$CC"; then 1681 ac_cv_prog_CC="$CC" # Let the user override the test. 1682else 1683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1684 ac_dummy="$PATH" 1685 for ac_dir in $ac_dummy; do 1686 test -z "$ac_dir" && ac_dir=. 1687 if test -f $ac_dir/$ac_word; then 1688 ac_cv_prog_CC="cl" 1689 break 1690 fi 1691 done 1692 IFS="$ac_save_ifs" 1693fi 1694fi 1695CC="$ac_cv_prog_CC" 1696if test -n "$CC"; then 1697 echo "$ac_t""$CC" 1>&6 1698else 1699 echo "$ac_t""no" 1>&6 1700fi 1701 ;; 1702 esac 1703 fi 1704 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1705fi 1706 1707echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1708echo "configure:1709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1709 1710ac_ext=c 1711# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1712ac_cpp='$CPP $CPPFLAGS' 1713ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1714ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1715cross_compiling=$ac_cv_prog_cc_cross 1716 1717cat > conftest.$ac_ext << EOF 1718 1719#line 1720 "configure" 1720#include "confdefs.h" 1721 1722main(){return(0);} 1723EOF 1724if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1725 ac_cv_prog_cc_works=yes 1726 # If we can't run a trivial program, we are probably using a cross compiler. 1727 if (./conftest; exit) 2>/dev/null; then 1728 ac_cv_prog_cc_cross=no 1729 else 1730 ac_cv_prog_cc_cross=yes 1731 fi 1732else 1733 echo "configure: failed program was:" >&5 1734 cat conftest.$ac_ext >&5 1735 ac_cv_prog_cc_works=no 1736fi 1737rm -fr conftest* 1738ac_ext=c 1739# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1740ac_cpp='$CPP $CPPFLAGS' 1741ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1742ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1743cross_compiling=$ac_cv_prog_cc_cross 1744 1745echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1746if test $ac_cv_prog_cc_works = no; then 1747 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1748fi 1749echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1750echo "configure:1751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1751echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1752cross_compiling=$ac_cv_prog_cc_cross 1753 1754echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1755echo "configure:1756: checking whether we are using GNU C" >&5 1756if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1757 echo $ac_n "(cached) $ac_c" 1>&6 1758else 1759 cat > conftest.c <<EOF 1760#ifdef __GNUC__ 1761 yes; 1762#endif 1763EOF 1764if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1765 ac_cv_prog_gcc=yes 1766else 1767 ac_cv_prog_gcc=no 1768fi 1769fi 1770 1771echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1772 1773if test $ac_cv_prog_gcc = yes; then 1774 GCC=yes 1775else 1776 GCC= 1777fi 1778 1779ac_test_CFLAGS="${CFLAGS+set}" 1780ac_save_CFLAGS="$CFLAGS" 1781CFLAGS= 1782echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1783echo "configure:1784: checking whether ${CC-cc} accepts -g" >&5 1784if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1785 echo $ac_n "(cached) $ac_c" 1>&6 1786else 1787 echo 'void f(){}' > conftest.c 1788if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1789 ac_cv_prog_cc_g=yes 1790else 1791 ac_cv_prog_cc_g=no 1792fi 1793rm -f conftest* 1794 1795fi 1796 1797echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1798if test "$ac_test_CFLAGS" = set; then 1799 CFLAGS="$ac_save_CFLAGS" 1800elif test $ac_cv_prog_cc_g = yes; then 1801 if test "$GCC" = yes; then 1802 CFLAGS="-g -O2" 1803 else 1804 CFLAGS="-g" 1805 fi 1806else 1807 if test "$GCC" = yes; then 1808 CFLAGS="-O2" 1809 else 1810 CFLAGS= 1811 fi 1812fi 1813 1814depcc="$CC" am_compiler_list= 1815 1816echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6 1817echo "configure:1818: checking dependency style of $depcc" >&5 1818if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then 1819 echo $ac_n "(cached) $ac_c" 1>&6 1820else 1821 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 1822 # We make a subdir and do the tests there. Otherwise we can end up 1823 # making bogus files that we don't know about and never remove. For 1824 # instance it was reported that on HP-UX the gcc test will end up 1825 # making a dummy file named `D' -- because `-MD' means `put the output 1826 # in D'. 1827 mkdir conftest.dir 1828 # Copy depcomp to subdir because otherwise we won't find it if we're 1829 # using a relative directory. 1830 cp "$am_depcomp" conftest.dir 1831 cd conftest.dir 1832 1833 am_cv_CC_dependencies_compiler_type=none 1834 if test "$am_compiler_list" = ""; then 1835 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 1836 fi 1837 for depmode in $am_compiler_list; do 1838 # We need to recreate these files for each test, as the compiler may 1839 # overwrite some of them when testing with obscure command lines. 1840 # This happens at least with the AIX C compiler. 1841 echo '#include "conftest.h"' > conftest.c 1842 echo 'int i;' > conftest.h 1843 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 1844 1845 case $depmode in 1846 nosideeffect) 1847 # after this tag, mechanisms are not by side-effect, so they'll 1848 # only be used when explicitly requested 1849 if test "x$enable_dependency_tracking" = xyes; then 1850 continue 1851 else 1852 break 1853 fi 1854 ;; 1855 none) break ;; 1856 esac 1857 # We check with `-c' and `-o' for the sake of the "dashmstdout" 1858 # mode. It turns out that the SunPro C++ compiler does not properly 1859 # handle `-M -o', and we need to detect this. 1860 if depmode=$depmode \ 1861 source=conftest.c object=conftest.o \ 1862 depfile=conftest.Po tmpdepfile=conftest.TPo \ 1863 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 1864 grep conftest.h conftest.Po > /dev/null 2>&1 && 1865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 1866 am_cv_CC_dependencies_compiler_type=$depmode 1867 break 1868 fi 1869 done 1870 1871 cd .. 1872 rm -rf conftest.dir 1873else 1874 am_cv_CC_dependencies_compiler_type=none 1875fi 1876 1877fi 1878 1879echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6 1880CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 1881 1882 1883# Check whether --with-gnu-ld or --without-gnu-ld was given. 1884if test "${with_gnu_ld+set}" = set; then 1885 withval="$with_gnu_ld" 1886 test "$withval" = no || with_gnu_ld=yes 1887else 1888 with_gnu_ld=no 1889fi 1890 1891ac_prog=ld 1892if test "$GCC" = yes; then 1893 # Check if gcc -print-prog-name=ld gives a path. 1894 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1895echo "configure:1896: checking for ld used by GCC" >&5 1896 case $host in 1897 *-*-mingw*) 1898 # gcc leaves a trailing carriage return which upsets mingw 1899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 1900 *) 1901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 1902 esac 1903 case $ac_prog in 1904 # Accept absolute paths. 1905 [\\/]* | [A-Za-z]:[\\/]*) 1906 re_direlt='/[^/][^/]*/\.\./' 1907 # Canonicalize the path of ld 1908 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 1909 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 1910 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 1911 done 1912 test -z "$LD" && LD="$ac_prog" 1913 ;; 1914 "") 1915 # If it fails, then pretend we aren't using GCC. 1916 ac_prog=ld 1917 ;; 1918 *) 1919 # If it is relative, then search for the first ld in PATH. 1920 with_gnu_ld=unknown 1921 ;; 1922 esac 1923elif test "$with_gnu_ld" = yes; then 1924 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1925echo "configure:1926: checking for GNU ld" >&5 1926else 1927 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1928echo "configure:1929: checking for non-GNU ld" >&5 1929fi 1930if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 1931 echo $ac_n "(cached) $ac_c" 1>&6 1932else 1933 if test -z "$LD"; then 1934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1935 for ac_dir in $PATH; do 1936 test -z "$ac_dir" && ac_dir=. 1937 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 1938 lt_cv_path_LD="$ac_dir/$ac_prog" 1939 # Check to see if the program is GNU ld. I'd rather use --version, 1940 # but apparently some GNU ld's only accept -v. 1941 # Break only if it was the GNU/non-GNU ld that we prefer. 1942 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 1943 test "$with_gnu_ld" != no && break 1944 else 1945 test "$with_gnu_ld" != yes && break 1946 fi 1947 fi 1948 done 1949 IFS="$ac_save_ifs" 1950else 1951 lt_cv_path_LD="$LD" # Let the user override the test with a path. 1952fi 1953fi 1954 1955LD="$lt_cv_path_LD" 1956if test -n "$LD"; then 1957 echo "$ac_t""$LD" 1>&6 1958else 1959 echo "$ac_t""no" 1>&6 1960fi 1961test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1962echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1963echo "configure:1964: checking if the linker ($LD) is GNU ld" >&5 1964if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 1965 echo $ac_n "(cached) $ac_c" 1>&6 1966else 1967 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1968if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1969 lt_cv_prog_gnu_ld=yes 1970else 1971 lt_cv_prog_gnu_ld=no 1972fi 1973fi 1974 1975echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 1976with_gnu_ld=$lt_cv_prog_gnu_ld 1977 1978 1979echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 1980echo "configure:1981: checking for $LD option to reload object files" >&5 1981if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 1982 echo $ac_n "(cached) $ac_c" 1>&6 1983else 1984 lt_cv_ld_reload_flag='-r' 1985fi 1986 1987echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 1988reload_flag=$lt_cv_ld_reload_flag 1989test -n "$reload_flag" && reload_flag=" $reload_flag" 1990 1991echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1992echo "configure:1993: checking for BSD-compatible nm" >&5 1993if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 1994 echo $ac_n "(cached) $ac_c" 1>&6 1995else 1996 if test -n "$NM"; then 1997 # Let the user override the test. 1998 lt_cv_path_NM="$NM" 1999else 2000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2001 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2002 test -z "$ac_dir" && ac_dir=. 2003 tmp_nm=$ac_dir/${ac_tool_prefix}nm 2004 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 2005 # Check to see if the nm accepts a BSD-compat flag. 2006 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2007 # nm: unknown option "B" ignored 2008 # Tru64's nm complains that /dev/null is an invalid object file 2009 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 2010 lt_cv_path_NM="$tmp_nm -B" 2011 break 2012 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 2013 lt_cv_path_NM="$tmp_nm -p" 2014 break 2015 else 2016 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2017 continue # so that we can try to find one that supports BSD flags 2018 fi 2019 fi 2020 done 2021 IFS="$ac_save_ifs" 2022 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2023fi 2024fi 2025 2026NM="$lt_cv_path_NM" 2027echo "$ac_t""$NM" 1>&6 2028 2029echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 2030echo "configure:2031: checking whether ln -s works" >&5 2031if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 2032 echo $ac_n "(cached) $ac_c" 1>&6 2033else 2034 rm -f conftestdata 2035if ln -s X conftestdata 2>/dev/null 2036then 2037 rm -f conftestdata 2038 ac_cv_prog_LN_S="ln -s" 2039else 2040 ac_cv_prog_LN_S=ln 2041fi 2042fi 2043LN_S="$ac_cv_prog_LN_S" 2044if test "$ac_cv_prog_LN_S" = "ln -s"; then 2045 echo "$ac_t""yes" 1>&6 2046else 2047 echo "$ac_t""no" 1>&6 2048fi 2049 2050echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 2051echo "configure:2052: checking how to recognise dependant libraries" >&5 2052if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 2053 echo $ac_n "(cached) $ac_c" 1>&6 2054else 2055 lt_cv_file_magic_cmd='$MAGIC_CMD' 2056lt_cv_file_magic_test_file= 2057lt_cv_deplibs_check_method='unknown' 2058# Need to set the preceding variable on all platforms that support 2059# interlibrary dependencies. 2060# 'none' -- dependencies not supported. 2061# `unknown' -- same as none, but documents that we really don't know. 2062# 'pass_all' -- all dependencies passed with no checks. 2063# 'test_compile' -- check by making test program. 2064# 'file_magic [[regex]]' -- check by looking for files in library path 2065# which responds to the $file_magic_cmd with a given egrep regex. 2066# If you have `file' or equivalent on your system and you're not sure 2067# whether `pass_all' will *always* work, you probably want this one. 2068 2069case $host_os in 2070aix4* | aix5*) 2071 lt_cv_deplibs_check_method=pass_all 2072 ;; 2073 2074beos*) 2075 lt_cv_deplibs_check_method=pass_all 2076 ;; 2077 2078bsdi4*) 2079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 2080 lt_cv_file_magic_cmd='/usr/bin/file -L' 2081 lt_cv_file_magic_test_file=/shlib/libc.so 2082 ;; 2083 2084cygwin* | mingw* | pw32*) 2085 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2086 lt_cv_file_magic_cmd='$OBJDUMP -f' 2087 ;; 2088 2089darwin* | rhapsody*) 2090 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 2091 lt_cv_file_magic_cmd='/usr/bin/file -L' 2092 case "$host_os" in 2093 rhapsody* | darwin1.[012]) 2094 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 2095 ;; 2096 *) # Darwin 1.3 on 2097 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 2098 ;; 2099 esac 2100 ;; 2101 2102freebsd*) 2103 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2104 case $host_cpu in 2105 i*86 ) 2106 # Not sure whether the presence of OpenBSD here was a mistake. 2107 # Let's accept both of them until this is cleared up. 2108 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 2109 lt_cv_file_magic_cmd=/usr/bin/file 2110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2111 ;; 2112 esac 2113 else 2114 lt_cv_deplibs_check_method=pass_all 2115 fi 2116 ;; 2117 2118gnu*) 2119 lt_cv_deplibs_check_method=pass_all 2120 ;; 2121 2122hpux10.20*|hpux11*) 2123 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 2124 lt_cv_file_magic_cmd=/usr/bin/file 2125 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2126 ;; 2127 2128irix5* | irix6* | nonstopux*) 2129 case $host_os in 2130 irix5* | nonstopux*) 2131 # this will be overridden with pass_all, but let us keep it just in case 2132 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 2133 ;; 2134 *) 2135 case $LD in 2136 *-32|*"-32 ") libmagic=32-bit;; 2137 *-n32|*"-n32 ") libmagic=N32;; 2138 *-64|*"-64 ") libmagic=64-bit;; 2139 *) libmagic=never-match;; 2140 esac 2141 # this will be overridden with pass_all, but let us keep it just in case 2142 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 2143 ;; 2144 esac 2145 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 2146 lt_cv_deplibs_check_method=pass_all 2147 ;; 2148 2149# This must be Linux ELF. 2150linux-gnu*) 2151 lt_cv_deplibs_check_method=pass_all 2152 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 2153 ;; 2154 2155netbsd*) 2156 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2157 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 2158 else 2159 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 2160 fi 2161 ;; 2162 2163newos6*) 2164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 2165 lt_cv_file_magic_cmd=/usr/bin/file 2166 lt_cv_file_magic_test_file=/usr/lib/libnls.so 2167 ;; 2168 2169openbsd*) 2170 lt_cv_file_magic_cmd=/usr/bin/file 2171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2172 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 2174 else 2175 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 2176 fi 2177 ;; 2178 2179osf3* | osf4* | osf5*) 2180 # this will be overridden with pass_all, but let us keep it just in case 2181 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 2182 lt_cv_file_magic_test_file=/shlib/libc.so 2183 lt_cv_deplibs_check_method=pass_all 2184 ;; 2185 2186sco3.2v5*) 2187 lt_cv_deplibs_check_method=pass_all 2188 ;; 2189 2190solaris*) 2191 lt_cv_deplibs_check_method=pass_all 2192 lt_cv_file_magic_test_file=/lib/libc.so 2193 ;; 2194 2195sysv5uw[78]* | sysv4*uw2*) 2196 lt_cv_deplibs_check_method=pass_all 2197 ;; 2198 2199sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2200 case $host_vendor in 2201 motorola) 2202 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]' 2203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2204 ;; 2205 ncr) 2206 lt_cv_deplibs_check_method=pass_all 2207 ;; 2208 sequent) 2209 lt_cv_file_magic_cmd='/bin/file' 2210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 2211 ;; 2212 sni) 2213 lt_cv_file_magic_cmd='/bin/file' 2214 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 2215 lt_cv_file_magic_test_file=/lib/libc.so 2216 ;; 2217 esac 2218 ;; 2219esac 2220 2221fi 2222 2223echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 2224file_magic_cmd=$lt_cv_file_magic_cmd 2225deplibs_check_method=$lt_cv_deplibs_check_method 2226 2227echo $ac_n "checking for object suffix""... $ac_c" 1>&6 2228echo "configure:2229: checking for object suffix" >&5 2229if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 2230 echo $ac_n "(cached) $ac_c" 1>&6 2231else 2232 rm -f conftest* 2233echo 'int i = 1;' > conftest.$ac_ext 2234if { (eval echo configure:2235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2235 for ac_file in conftest.*; do 2236 case $ac_file in 2237 *.c) ;; 2238 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 2239 esac 2240 done 2241else 2242 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 2243fi 2244rm -f conftest* 2245fi 2246 2247echo "$ac_t""$ac_cv_objext" 1>&6 2248OBJEXT=$ac_cv_objext 2249ac_objext=$ac_cv_objext 2250 2251 2252 2253echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 2254echo "configure:2255: checking for executable suffix" >&5 2255if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 2256 echo $ac_n "(cached) $ac_c" 1>&6 2257else 2258 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 2259 ac_cv_exeext=.exe 2260else 2261 rm -f conftest* 2262 echo 'int main () { return 0; }' > conftest.$ac_ext 2263 ac_cv_exeext= 2264 if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2265 for file in conftest.*; do 2266 case $file in 2267 *.$ac_ext | *.c | *.o | *.obj) ;; 2268 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 2269 esac 2270 done 2271 else 2272 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 2273 fi 2274 rm -f conftest* 2275 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 2276fi 2277fi 2278 2279EXEEXT="" 2280test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 2281echo "$ac_t""${ac_cv_exeext}" 1>&6 2282ac_exeext=$EXEEXT 2283 2284if test $host != $build; then 2285 ac_tool_prefix=${host_alias}- 2286else 2287 ac_tool_prefix= 2288fi 2289 2290 2291 2292 2293# Check for command to grab the raw symbol name followed by C symbol from nm. 2294echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 2295echo "configure:2296: checking command to parse $NM output" >&5 2296if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then 2297 echo $ac_n "(cached) $ac_c" 1>&6 2298else 2299 2300# These are sane defaults that work on at least a few old systems. 2301# [They come from Ultrix. What could be older than Ultrix?!! ;)] 2302 2303# Character class describing NM global symbol codes. 2304symcode='[BCDEGRST]' 2305 2306# Regexp to match symbols that can be accessed directly from C. 2307sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 2308 2309# Transform the above into a raw symbol and a C symbol. 2310symxfrm='\1 \2\3 \3' 2311 2312# Transform an extracted symbol line into a proper C declaration 2313lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 2314 2315# Transform an extracted symbol line into symbol name and symbol address 2316lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 2317 2318# Define system-specific variables. 2319case $host_os in 2320aix*) 2321 symcode='[BCDT]' 2322 ;; 2323cygwin* | mingw* | pw32*) 2324 symcode='[ABCDGISTW]' 2325 ;; 2326hpux*) # Its linker distinguishes data from code symbols 2327 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 2328 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 2329 ;; 2330irix* | nonstopux*) 2331 symcode='[BCDEGRST]' 2332 ;; 2333solaris* | sysv5*) 2334 symcode='[BDT]' 2335 ;; 2336sysv4) 2337 symcode='[DFNSTU]' 2338 ;; 2339esac 2340 2341# Handle CRLF in mingw tool chain 2342opt_cr= 2343case $host_os in 2344mingw*) 2345 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 2346 ;; 2347esac 2348 2349# If we're using GNU nm, then use its standard symbol codes. 2350if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 2351 symcode='[ABCDGISTW]' 2352fi 2353 2354# Try without a prefix undercore, then with it. 2355for ac_symprfx in "" "_"; do 2356 2357 # Write the raw and C identifiers. 2358lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 2359 2360 # Check to see that the pipe works correctly. 2361 pipe_works=no 2362 rm -f conftest* 2363 cat > conftest.$ac_ext <<EOF 2364#ifdef __cplusplus 2365extern "C" { 2366#endif 2367char nm_test_var; 2368void nm_test_func(){} 2369#ifdef __cplusplus 2370} 2371#endif 2372int main(){nm_test_var='a';nm_test_func();return(0);} 2373EOF 2374 2375 if { (eval echo configure:2376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2376 # Now try to grab the symbols. 2377 nlist=conftest.nm 2378 if { (eval echo configure:2379: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then 2379 # Try sorting and uniquifying the output. 2380 if sort "$nlist" | uniq > "$nlist"T; then 2381 mv -f "$nlist"T "$nlist" 2382 else 2383 rm -f "$nlist"T 2384 fi 2385 2386 # Make sure that we snagged all the symbols we need. 2387 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 2388 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 2389 cat <<EOF > conftest.$ac_ext 2390#ifdef __cplusplus 2391extern "C" { 2392#endif 2393 2394EOF 2395 # Now generate the symbol file. 2396 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 2397 2398 cat <<EOF >> conftest.$ac_ext 2399#if defined (__STDC__) && __STDC__ 2400# define lt_ptr void * 2401#else 2402# define lt_ptr char * 2403# define const 2404#endif 2405 2406/* The mapping between symbol names and symbols. */ 2407const struct { 2408 const char *name; 2409 lt_ptr address; 2410} 2411lt_preloaded_symbols[] = 2412{ 2413EOF 2414 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 2415 cat <<\EOF >> conftest.$ac_ext 2416 {0, (lt_ptr) 0} 2417}; 2418 2419#ifdef __cplusplus 2420} 2421#endif 2422EOF 2423 # Now try linking the two files. 2424 mv conftest.$ac_objext conftstm.$ac_objext 2425 save_LIBS="$LIBS" 2426 save_CFLAGS="$CFLAGS" 2427 LIBS="conftstm.$ac_objext" 2428 CFLAGS="$CFLAGS$no_builtin_flag" 2429 if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2430 pipe_works=yes 2431 fi 2432 LIBS="$save_LIBS" 2433 CFLAGS="$save_CFLAGS" 2434 else 2435 echo "cannot find nm_test_func in $nlist" >&5 2436 fi 2437 else 2438 echo "cannot find nm_test_var in $nlist" >&5 2439 fi 2440 else 2441 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 2442 fi 2443 else 2444 echo "$progname: failed program was:" >&5 2445 cat conftest.$ac_ext >&5 2446 fi 2447 rm -f conftest* conftst* 2448 2449 # Do not use the global_symbol_pipe unless it works. 2450 if test "$pipe_works" = yes; then 2451 break 2452 else 2453 lt_cv_sys_global_symbol_pipe= 2454 fi 2455done 2456 2457fi 2458 2459global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 2460if test -z "$lt_cv_sys_global_symbol_pipe"; then 2461 global_symbol_to_cdecl= 2462 global_symbol_to_c_name_address= 2463else 2464 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 2465 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 2466fi 2467if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 2468then 2469 echo "$ac_t""failed" 1>&6 2470else 2471 echo "$ac_t""ok" 1>&6 2472fi 2473 2474for ac_hdr in dlfcn.h 2475do 2476ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2477echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2478echo "configure:2479: checking for $ac_hdr" >&5 2479if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2480 echo $ac_n "(cached) $ac_c" 1>&6 2481else 2482 cat > conftest.$ac_ext <<EOF 2483#line 2484 "configure" 2484#include "confdefs.h" 2485#include <$ac_hdr> 2486EOF 2487ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2488{ (eval echo configure:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2489ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2490if test -z "$ac_err"; then 2491 rm -rf conftest* 2492 eval "ac_cv_header_$ac_safe=yes" 2493else 2494 echo "$ac_err" >&5 2495 echo "configure: failed program was:" >&5 2496 cat conftest.$ac_ext >&5 2497 rm -rf conftest* 2498 eval "ac_cv_header_$ac_safe=no" 2499fi 2500rm -f conftest* 2501fi 2502if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2503 echo "$ac_t""yes" 1>&6 2504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2505 cat >> confdefs.h <<EOF 2506#define $ac_tr_hdr 1 2507EOF 2508 2509else 2510 echo "$ac_t""no" 1>&6 2511fi 2512done 2513 2514 2515 2516 2517 2518# Only perform the check for file, if the check method requires it 2519case $deplibs_check_method in 2520file_magic*) 2521 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2522 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 2523echo "configure:2524: checking for ${ac_tool_prefix}file" >&5 2524if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 2525 echo $ac_n "(cached) $ac_c" 1>&6 2526else 2527 case $MAGIC_CMD in 2528 /*) 2529 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 2530 ;; 2531 ?:/*) 2532 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 2533 ;; 2534 *) 2535 ac_save_MAGIC_CMD="$MAGIC_CMD" 2536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2537 ac_dummy="/usr/bin:$PATH" 2538 for ac_dir in $ac_dummy; do 2539 test -z "$ac_dir" && ac_dir=. 2540 if test -f $ac_dir/${ac_tool_prefix}file; then 2541 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 2542 if test -n "$file_magic_test_file"; then 2543 case $deplibs_check_method in 2544 "file_magic "*) 2545 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 2546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2548 egrep "$file_magic_regex" > /dev/null; then 2549 : 2550 else 2551 cat <<EOF 1>&2 2552 2553*** Warning: the command libtool uses to detect shared libraries, 2554*** $file_magic_cmd, produces output that libtool cannot recognize. 2555*** The result is that libtool may fail to recognize shared libraries 2556*** as such. This will affect the creation of libtool libraries that 2557*** depend on shared libraries, but programs linked with such libtool 2558*** libraries will work regardless of this problem. Nevertheless, you 2559*** may want to report the problem to your system manager and/or to 2560*** bug-libtool@gnu.org 2561 2562EOF 2563 fi ;; 2564 esac 2565 fi 2566 break 2567 fi 2568 done 2569 IFS="$ac_save_ifs" 2570 MAGIC_CMD="$ac_save_MAGIC_CMD" 2571 ;; 2572esac 2573fi 2574 2575MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2576if test -n "$MAGIC_CMD"; then 2577 echo "$ac_t""$MAGIC_CMD" 1>&6 2578else 2579 echo "$ac_t""no" 1>&6 2580fi 2581 2582if test -z "$lt_cv_path_MAGIC_CMD"; then 2583 if test -n "$ac_tool_prefix"; then 2584 echo $ac_n "checking for file""... $ac_c" 1>&6 2585echo "configure:2586: checking for file" >&5 2586if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 2587 echo $ac_n "(cached) $ac_c" 1>&6 2588else 2589 case $MAGIC_CMD in 2590 /*) 2591 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 2592 ;; 2593 ?:/*) 2594 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 2595 ;; 2596 *) 2597 ac_save_MAGIC_CMD="$MAGIC_CMD" 2598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2599 ac_dummy="/usr/bin:$PATH" 2600 for ac_dir in $ac_dummy; do 2601 test -z "$ac_dir" && ac_dir=. 2602 if test -f $ac_dir/file; then 2603 lt_cv_path_MAGIC_CMD="$ac_dir/file" 2604 if test -n "$file_magic_test_file"; then 2605 case $deplibs_check_method in 2606 "file_magic "*) 2607 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 2608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2610 egrep "$file_magic_regex" > /dev/null; then 2611 : 2612 else 2613 cat <<EOF 1>&2 2614 2615*** Warning: the command libtool uses to detect shared libraries, 2616*** $file_magic_cmd, produces output that libtool cannot recognize. 2617*** The result is that libtool may fail to recognize shared libraries 2618*** as such. This will affect the creation of libtool libraries that 2619*** depend on shared libraries, but programs linked with such libtool 2620*** libraries will work regardless of this problem. Nevertheless, you 2621*** may want to report the problem to your system manager and/or to 2622*** bug-libtool@gnu.org 2623 2624EOF 2625 fi ;; 2626 esac 2627 fi 2628 break 2629 fi 2630 done 2631 IFS="$ac_save_ifs" 2632 MAGIC_CMD="$ac_save_MAGIC_CMD" 2633 ;; 2634esac 2635fi 2636 2637MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2638if test -n "$MAGIC_CMD"; then 2639 echo "$ac_t""$MAGIC_CMD" 1>&6 2640else 2641 echo "$ac_t""no" 1>&6 2642fi 2643 2644 else 2645 MAGIC_CMD=: 2646 fi 2647fi 2648 2649 fi 2650 ;; 2651esac 2652 2653# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2654set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2655echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2656echo "configure:2657: checking for $ac_word" >&5 2657if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2658 echo $ac_n "(cached) $ac_c" 1>&6 2659else 2660 if test -n "$RANLIB"; then 2661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2662else 2663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2664 ac_dummy="$PATH" 2665 for ac_dir in $ac_dummy; do 2666 test -z "$ac_dir" && ac_dir=. 2667 if test -f $ac_dir/$ac_word; then 2668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2669 break 2670 fi 2671 done 2672 IFS="$ac_save_ifs" 2673fi 2674fi 2675RANLIB="$ac_cv_prog_RANLIB" 2676if test -n "$RANLIB"; then 2677 echo "$ac_t""$RANLIB" 1>&6 2678else 2679 echo "$ac_t""no" 1>&6 2680fi 2681 2682 2683if test -z "$ac_cv_prog_RANLIB"; then 2684if test -n "$ac_tool_prefix"; then 2685 # Extract the first word of "ranlib", so it can be a program name with args. 2686set dummy ranlib; ac_word=$2 2687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2688echo "configure:2689: checking for $ac_word" >&5 2689if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2690 echo $ac_n "(cached) $ac_c" 1>&6 2691else 2692 if test -n "$RANLIB"; then 2693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2694else 2695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2696 ac_dummy="$PATH" 2697 for ac_dir in $ac_dummy; do 2698 test -z "$ac_dir" && ac_dir=. 2699 if test -f $ac_dir/$ac_word; then 2700 ac_cv_prog_RANLIB="ranlib" 2701 break 2702 fi 2703 done 2704 IFS="$ac_save_ifs" 2705 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 2706fi 2707fi 2708RANLIB="$ac_cv_prog_RANLIB" 2709if test -n "$RANLIB"; then 2710 echo "$ac_t""$RANLIB" 1>&6 2711else 2712 echo "$ac_t""no" 1>&6 2713fi 2714 2715else 2716 RANLIB=":" 2717fi 2718fi 2719 2720# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2721set dummy ${ac_tool_prefix}strip; ac_word=$2 2722echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2723echo "configure:2724: checking for $ac_word" >&5 2724if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2725 echo $ac_n "(cached) $ac_c" 1>&6 2726else 2727 if test -n "$STRIP"; then 2728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2729else 2730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2731 ac_dummy="$PATH" 2732 for ac_dir in $ac_dummy; do 2733 test -z "$ac_dir" && ac_dir=. 2734 if test -f $ac_dir/$ac_word; then 2735 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2736 break 2737 fi 2738 done 2739 IFS="$ac_save_ifs" 2740fi 2741fi 2742STRIP="$ac_cv_prog_STRIP" 2743if test -n "$STRIP"; then 2744 echo "$ac_t""$STRIP" 1>&6 2745else 2746 echo "$ac_t""no" 1>&6 2747fi 2748 2749 2750if test -z "$ac_cv_prog_STRIP"; then 2751if test -n "$ac_tool_prefix"; then 2752 # Extract the first word of "strip", so it can be a program name with args. 2753set dummy strip; ac_word=$2 2754echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2755echo "configure:2756: checking for $ac_word" >&5 2756if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2757 echo $ac_n "(cached) $ac_c" 1>&6 2758else 2759 if test -n "$STRIP"; then 2760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2761else 2762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2763 ac_dummy="$PATH" 2764 for ac_dir in $ac_dummy; do 2765 test -z "$ac_dir" && ac_dir=. 2766 if test -f $ac_dir/$ac_word; then 2767 ac_cv_prog_STRIP="strip" 2768 break 2769 fi 2770 done 2771 IFS="$ac_save_ifs" 2772 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 2773fi 2774fi 2775STRIP="$ac_cv_prog_STRIP" 2776if test -n "$STRIP"; then 2777 echo "$ac_t""$STRIP" 1>&6 2778else 2779 echo "$ac_t""no" 1>&6 2780fi 2781 2782else 2783 STRIP=":" 2784fi 2785fi 2786 2787 2788enable_dlopen=no 2789enable_win32_dll=no 2790 2791# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 2792if test "${enable_libtool_lock+set}" = set; then 2793 enableval="$enable_libtool_lock" 2794 : 2795fi 2796 2797test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 2798 2799# Some flags need to be propagated to the compiler or linker for good 2800# libtool support. 2801case $host in 2802*-*-irix6*) 2803 # Find out which ABI we are using. 2804 echo '#line 2805 "configure"' > conftest.$ac_ext 2805 if { (eval echo configure:2806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2806 case `/usr/bin/file conftest.$ac_objext` in 2807 *32-bit*) 2808 LD="${LD-ld} -32" 2809 ;; 2810 *N32*) 2811 LD="${LD-ld} -n32" 2812 ;; 2813 *64-bit*) 2814 LD="${LD-ld} -64" 2815 ;; 2816 esac 2817 fi 2818 rm -rf conftest* 2819 ;; 2820 2821*-*-sco3.2v5*) 2822 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2823 SAVE_CFLAGS="$CFLAGS" 2824 CFLAGS="$CFLAGS -belf" 2825 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 2826echo "configure:2827: checking whether the C compiler needs -belf" >&5 2827if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 2828 echo $ac_n "(cached) $ac_c" 1>&6 2829else 2830 2831 ac_ext=c 2832# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2833ac_cpp='$CPP $CPPFLAGS' 2834ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2835ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2836cross_compiling=$ac_cv_prog_cc_cross 2837 2838 cat > conftest.$ac_ext <<EOF 2839#line 2840 "configure" 2840#include "confdefs.h" 2841 2842int main() { 2843 2844; return 0; } 2845EOF 2846if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2847 rm -rf conftest* 2848 lt_cv_cc_needs_belf=yes 2849else 2850 echo "configure: failed program was:" >&5 2851 cat conftest.$ac_ext >&5 2852 rm -rf conftest* 2853 lt_cv_cc_needs_belf=no 2854fi 2855rm -f conftest* 2856 ac_ext=c 2857# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2858ac_cpp='$CPP $CPPFLAGS' 2859ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2860ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2861cross_compiling=$ac_cv_prog_cc_cross 2862 2863fi 2864 2865echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 2866 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2867 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2868 CFLAGS="$SAVE_CFLAGS" 2869 fi 2870 ;; 2871 2872 2873esac 2874 2875# Sed substitution that helps us do robust quoting. It backslashifies 2876# metacharacters that are still active within double-quoted strings. 2877Xsed='sed -e s/^X//' 2878sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 2879 2880# Same as above, but do not quote variable references. 2881double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 2882 2883# Sed substitution to delay expansion of an escaped shell variable in a 2884# double_quote_subst'ed string. 2885delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2886 2887# Constants: 2888rm="rm -f" 2889 2890# Global variables: 2891default_ofile=libtool 2892can_build_shared=yes 2893 2894# All known linkers require a `.a' archive for static linking (except M$VC, 2895# which needs '.lib'). 2896libext=a 2897ltmain="$ac_aux_dir/ltmain.sh" 2898ofile="$default_ofile" 2899with_gnu_ld="$lt_cv_prog_gnu_ld" 2900need_locks="$enable_libtool_lock" 2901 2902old_CC="$CC" 2903old_CFLAGS="$CFLAGS" 2904 2905# Set sane defaults for various variables 2906test -z "$AR" && AR=ar 2907test -z "$AR_FLAGS" && AR_FLAGS=cru 2908test -z "$AS" && AS=as 2909test -z "$CC" && CC=cc 2910test -z "$DLLTOOL" && DLLTOOL=dlltool 2911test -z "$LD" && LD=ld 2912test -z "$LN_S" && LN_S="ln -s" 2913test -z "$MAGIC_CMD" && MAGIC_CMD=file 2914test -z "$NM" && NM=nm 2915test -z "$OBJDUMP" && OBJDUMP=objdump 2916test -z "$RANLIB" && RANLIB=: 2917test -z "$STRIP" && STRIP=: 2918test -z "$ac_objext" && ac_objext=o 2919 2920if test x"$host" != x"$build"; then 2921 ac_tool_prefix=${host_alias}- 2922else 2923 ac_tool_prefix= 2924fi 2925 2926# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 2927case $host_os in 2928linux-gnu*) ;; 2929linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 2930esac 2931 2932case $host_os in 2933aix3*) 2934 # AIX sometimes has problems with the GCC collect2 program. For some 2935 # reason, if we set the COLLECT_NAMES environment variable, the problems 2936 # vanish in a puff of smoke. 2937 if test "X${COLLECT_NAMES+set}" != Xset; then 2938 COLLECT_NAMES= 2939 export COLLECT_NAMES 2940 fi 2941 ;; 2942esac 2943 2944# Determine commands to create old-style static archives. 2945old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 2946old_postinstall_cmds='chmod 644 $oldlib' 2947old_postuninstall_cmds= 2948 2949if test -n "$RANLIB"; then 2950 case $host_os in 2951 openbsd*) 2952 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 2953 ;; 2954 *) 2955 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 2956 ;; 2957 esac 2958 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 2959fi 2960 2961# Allow CC to be a program name with arguments. 2962set dummy $CC 2963compiler="$2" 2964 2965echo $ac_n "checking for objdir""... $ac_c" 1>&6 2966echo "configure:2967: checking for objdir" >&5 2967rm -f .libs 2>/dev/null 2968mkdir .libs 2>/dev/null 2969if test -d .libs; then 2970 objdir=.libs 2971else 2972 # MS-DOS does not allow filenames that begin with a dot. 2973 objdir=_libs 2974fi 2975rmdir .libs 2>/dev/null 2976echo "$ac_t""$objdir" 1>&6 2977 2978 2979# Check whether --with-pic or --without-pic was given. 2980if test "${with_pic+set}" = set; then 2981 withval="$with_pic" 2982 pic_mode="$withval" 2983else 2984 pic_mode=default 2985fi 2986 2987test -z "$pic_mode" && pic_mode=default 2988 2989# We assume here that the value for lt_cv_prog_cc_pic will not be cached 2990# in isolation, and that seeing it set (from the cache) indicates that 2991# the associated values are set (in the cache) correctly too. 2992echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 2993echo "configure:2994: checking for $compiler option to produce PIC" >&5 2994if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then 2995 echo $ac_n "(cached) $ac_c" 1>&6 2996else 2997 lt_cv_prog_cc_pic= 2998 lt_cv_prog_cc_shlib= 2999 lt_cv_prog_cc_wl= 3000 lt_cv_prog_cc_static= 3001 lt_cv_prog_cc_no_builtin= 3002 lt_cv_prog_cc_can_build_shared=$can_build_shared 3003 3004 if test "$GCC" = yes; then 3005 lt_cv_prog_cc_wl='-Wl,' 3006 lt_cv_prog_cc_static='-static' 3007 3008 case $host_os in 3009 aix*) 3010 # Below there is a dirty hack to force normal static linking with -ldl 3011 # The problem is because libdl dynamically linked with both libc and 3012 # libC (AIX C++ library), which obviously doesn't included in libraries 3013 # list by gcc. This cause undefined symbols with -static flags. 3014 # This hack allows C programs to be linked with "-static -ldl", but 3015 # not sure about C++ programs. 3016 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 3017 ;; 3018 amigaos*) 3019 # FIXME: we need at least 68020 code to build shared libraries, but 3020 # adding the `-m68020' flag to GCC prevents building anything better, 3021 # like `-m68040'. 3022 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 3023 ;; 3024 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3025 # PIC is the default for these OSes. 3026 ;; 3027 darwin* | rhapsody*) 3028 # PIC is the default on this platform 3029 # Common symbols not allowed in MH_DYLIB files 3030 lt_cv_prog_cc_pic='-fno-common' 3031 ;; 3032 cygwin* | mingw* | pw32* | os2*) 3033 # This hack is so that the source file can tell whether it is being 3034 # built for inclusion in a dll (and should export symbols for example). 3035 lt_cv_prog_cc_pic='-DDLL_EXPORT' 3036 ;; 3037 sysv4*MP*) 3038 if test -d /usr/nec; then 3039 lt_cv_prog_cc_pic=-Kconform_pic 3040 fi 3041 ;; 3042 *) 3043 lt_cv_prog_cc_pic='-fPIC' 3044 ;; 3045 esac 3046 else 3047 # PORTME Check for PIC flags for the system compiler. 3048 case $host_os in 3049 aix3* | aix4* | aix5*) 3050 lt_cv_prog_cc_wl='-Wl,' 3051 # All AIX code is PIC. 3052 if test "$host_cpu" = ia64; then 3053 # AIX 5 now supports IA64 processor 3054 lt_cv_prog_cc_static='-Bstatic' 3055 else 3056 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 3057 fi 3058 ;; 3059 3060 hpux9* | hpux10* | hpux11*) 3061 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 3062 lt_cv_prog_cc_wl='-Wl,' 3063 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 3064 lt_cv_prog_cc_pic='+Z' 3065 ;; 3066 3067 irix5* | irix6* | nonstopux*) 3068 lt_cv_prog_cc_wl='-Wl,' 3069 lt_cv_prog_cc_static='-non_shared' 3070 # PIC (with -KPIC) is the default. 3071 ;; 3072 3073 cygwin* | mingw* | pw32* | os2*) 3074 # This hack is so that the source file can tell whether it is being 3075 # built for inclusion in a dll (and should export symbols for example). 3076 lt_cv_prog_cc_pic='-DDLL_EXPORT' 3077 ;; 3078 3079 newsos6) 3080 lt_cv_prog_cc_pic='-KPIC' 3081 lt_cv_prog_cc_static='-Bstatic' 3082 ;; 3083 3084 osf3* | osf4* | osf5*) 3085 # All OSF/1 code is PIC. 3086 lt_cv_prog_cc_wl='-Wl,' 3087 lt_cv_prog_cc_static='-non_shared' 3088 ;; 3089 3090 sco3.2v5*) 3091 lt_cv_prog_cc_pic='-Kpic' 3092 lt_cv_prog_cc_static='-dn' 3093 lt_cv_prog_cc_shlib='-belf' 3094 ;; 3095 3096 solaris*) 3097 lt_cv_prog_cc_pic='-KPIC' 3098 lt_cv_prog_cc_static='-Bstatic' 3099 lt_cv_prog_cc_wl='-Wl,' 3100 ;; 3101 3102 sunos4*) 3103 lt_cv_prog_cc_pic='-PIC' 3104 lt_cv_prog_cc_static='-Bstatic' 3105 lt_cv_prog_cc_wl='-Qoption ld ' 3106 ;; 3107 3108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3109 lt_cv_prog_cc_pic='-KPIC' 3110 lt_cv_prog_cc_static='-Bstatic' 3111 if test "x$host_vendor" = xsni; then 3112 lt_cv_prog_cc_wl='-LD' 3113 else 3114 lt_cv_prog_cc_wl='-Wl,' 3115 fi 3116 ;; 3117 3118 uts4*) 3119 lt_cv_prog_cc_pic='-pic' 3120 lt_cv_prog_cc_static='-Bstatic' 3121 ;; 3122 3123 sysv4*MP*) 3124 if test -d /usr/nec ;then 3125 lt_cv_prog_cc_pic='-Kconform_pic' 3126 lt_cv_prog_cc_static='-Bstatic' 3127 fi 3128 ;; 3129 3130 *) 3131 lt_cv_prog_cc_can_build_shared=no 3132 ;; 3133 esac 3134 fi 3135 3136fi 3137 3138if test -z "$lt_cv_prog_cc_pic"; then 3139 echo "$ac_t""none" 1>&6 3140else 3141 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 3142 3143 # Check to make sure the pic_flag actually works. 3144 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 3145echo "configure:3146: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 3146 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then 3147 echo $ac_n "(cached) $ac_c" 1>&6 3148else 3149 save_CFLAGS="$CFLAGS" 3150 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 3151 cat > conftest.$ac_ext <<EOF 3152#line 3153 "configure" 3153#include "confdefs.h" 3154 3155int main() { 3156 3157; return 0; } 3158EOF 3159if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3160 rm -rf conftest* 3161 case $host_os in 3162 hpux9* | hpux10* | hpux11*) 3163 # On HP-UX, both CC and GCC only warn that PIC is supported... then 3164 # they create non-PIC objects. So, if there were any warnings, we 3165 # assume that PIC is not supported. 3166 if test -s conftest.err; then 3167 lt_cv_prog_cc_pic_works=no 3168 else 3169 lt_cv_prog_cc_pic_works=yes 3170 fi 3171 ;; 3172 *) 3173 lt_cv_prog_cc_pic_works=yes 3174 ;; 3175 esac 3176 3177else 3178 echo "configure: failed program was:" >&5 3179 cat conftest.$ac_ext >&5 3180 rm -rf conftest* 3181 lt_cv_prog_cc_pic_works=no 3182 3183fi 3184rm -f conftest* 3185 CFLAGS="$save_CFLAGS" 3186 3187fi 3188 3189 3190 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 3191 lt_cv_prog_cc_pic= 3192 lt_cv_prog_cc_can_build_shared=no 3193 else 3194 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 3195 fi 3196 3197 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 3198fi 3199 3200# Check for any special shared library compilation flags. 3201if test -n "$lt_cv_prog_cc_shlib"; then 3202 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 3203 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 3204 else 3205 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 3206 lt_cv_prog_cc_can_build_shared=no 3207 fi 3208fi 3209 3210echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 3211echo "configure:3212: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 3212if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then 3213 echo $ac_n "(cached) $ac_c" 1>&6 3214else 3215 lt_cv_prog_cc_static_works=no 3216 save_LDFLAGS="$LDFLAGS" 3217 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 3218 cat > conftest.$ac_ext <<EOF 3219#line 3220 "configure" 3220#include "confdefs.h" 3221 3222int main() { 3223 3224; return 0; } 3225EOF 3226if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3227 rm -rf conftest* 3228 lt_cv_prog_cc_static_works=yes 3229else 3230 echo "configure: failed program was:" >&5 3231 cat conftest.$ac_ext >&5 3232fi 3233rm -f conftest* 3234 LDFLAGS="$save_LDFLAGS" 3235 3236fi 3237 3238 3239# Belt *and* braces to stop my trousers falling down: 3240test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 3241echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 3242 3243pic_flag="$lt_cv_prog_cc_pic" 3244special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 3245wl="$lt_cv_prog_cc_wl" 3246link_static_flag="$lt_cv_prog_cc_static" 3247no_builtin_flag="$lt_cv_prog_cc_no_builtin" 3248can_build_shared="$lt_cv_prog_cc_can_build_shared" 3249 3250 3251# Check to see if options -o and -c are simultaneously supported by compiler 3252echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 3253echo "configure:3254: checking if $compiler supports -c -o file.$ac_objext" >&5 3254if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then 3255 echo $ac_n "(cached) $ac_c" 1>&6 3256else 3257 3258$rm -r conftest 2>/dev/null 3259mkdir conftest 3260cd conftest 3261echo "int some_variable = 0;" > conftest.$ac_ext 3262mkdir out 3263# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 3264# that will create temporary files in the current directory regardless of 3265# the output directory. Thus, making CWD read-only will cause this test 3266# to fail, enabling locking or at least warning the user not to do parallel 3267# builds. 3268chmod -w . 3269save_CFLAGS="$CFLAGS" 3270CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 3271compiler_c_o=no 3272if { (eval echo configure:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 3273 # The compiler can only warn and ignore the option if not recognized 3274 # So say no if there are warnings 3275 if test -s out/conftest.err; then 3276 lt_cv_compiler_c_o=no 3277 else 3278 lt_cv_compiler_c_o=yes 3279 fi 3280else 3281 # Append any errors to the config.log. 3282 cat out/conftest.err 1>&5 3283 lt_cv_compiler_c_o=no 3284fi 3285CFLAGS="$save_CFLAGS" 3286chmod u+w . 3287$rm conftest* out/* 3288rmdir out 3289cd .. 3290rmdir conftest 3291$rm -r conftest 2>/dev/null 3292 3293fi 3294 3295compiler_c_o=$lt_cv_compiler_c_o 3296echo "$ac_t""$compiler_c_o" 1>&6 3297 3298if test x"$compiler_c_o" = x"yes"; then 3299 # Check to see if we can write to a .lo 3300 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 3301echo "configure:3302: checking if $compiler supports -c -o file.lo" >&5 3302 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then 3303 echo $ac_n "(cached) $ac_c" 1>&6 3304else 3305 3306 lt_cv_compiler_o_lo=no 3307 save_CFLAGS="$CFLAGS" 3308 CFLAGS="$CFLAGS -c -o conftest.lo" 3309 save_objext="$ac_objext" 3310 ac_objext=lo 3311 cat > conftest.$ac_ext <<EOF 3312#line 3313 "configure" 3313#include "confdefs.h" 3314 3315int main() { 3316int some_variable = 0; 3317; return 0; } 3318EOF 3319if { (eval echo configure:3320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3320 rm -rf conftest* 3321 # The compiler can only warn and ignore the option if not recognized 3322 # So say no if there are warnings 3323 if test -s conftest.err; then 3324 lt_cv_compiler_o_lo=no 3325 else 3326 lt_cv_compiler_o_lo=yes 3327 fi 3328 3329else 3330 echo "configure: failed program was:" >&5 3331 cat conftest.$ac_ext >&5 3332fi 3333rm -f conftest* 3334 ac_objext="$save_objext" 3335 CFLAGS="$save_CFLAGS" 3336 3337fi 3338 3339 compiler_o_lo=$lt_cv_compiler_o_lo 3340 echo "$ac_t""$compiler_o_lo" 1>&6 3341else 3342 compiler_o_lo=no 3343fi 3344 3345# Check to see if we can do hard links to lock some files if needed 3346hard_links="nottested" 3347if test "$compiler_c_o" = no && test "$need_locks" != no; then 3348 # do not overwrite the value of need_locks provided by the user 3349 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 3350echo "configure:3351: checking if we can lock with hard links" >&5 3351 hard_links=yes 3352 $rm conftest* 3353 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3354 touch conftest.a 3355 ln conftest.a conftest.b 2>&5 || hard_links=no 3356 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3357 echo "$ac_t""$hard_links" 1>&6 3358 if test "$hard_links" = no; then 3359 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 3360 need_locks=warn 3361 fi 3362else 3363 need_locks=no 3364fi 3365 3366if test "$GCC" = yes; then 3367 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 3368 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 3369echo "configure:3370: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 3370 echo "int some_variable = 0;" > conftest.$ac_ext 3371 save_CFLAGS="$CFLAGS" 3372 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 3373 compiler_rtti_exceptions=no 3374 cat > conftest.$ac_ext <<EOF 3375#line 3376 "configure" 3376#include "confdefs.h" 3377 3378int main() { 3379int some_variable = 0; 3380; return 0; } 3381EOF 3382if { (eval echo configure:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3383 rm -rf conftest* 3384 # The compiler can only warn and ignore the option if not recognized 3385 # So say no if there are warnings 3386 if test -s conftest.err; then 3387 compiler_rtti_exceptions=no 3388 else 3389 compiler_rtti_exceptions=yes 3390 fi 3391 3392else 3393 echo "configure: failed program was:" >&5 3394 cat conftest.$ac_ext >&5 3395fi 3396rm -f conftest* 3397 CFLAGS="$save_CFLAGS" 3398 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 3399 3400 if test "$compiler_rtti_exceptions" = "yes"; then 3401 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 3402 else 3403 no_builtin_flag=' -fno-builtin' 3404 fi 3405fi 3406 3407# See if the linker supports building shared libraries. 3408echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 3409echo "configure:3410: checking whether the linker ($LD) supports shared libraries" >&5 3410 3411allow_undefined_flag= 3412no_undefined_flag= 3413need_lib_prefix=unknown 3414need_version=unknown 3415# when you set need_version to no, make sure it does not cause -set_version 3416# flags to be left without arguments 3417archive_cmds= 3418archive_expsym_cmds= 3419old_archive_from_new_cmds= 3420old_archive_from_expsyms_cmds= 3421export_dynamic_flag_spec= 3422whole_archive_flag_spec= 3423thread_safe_flag_spec= 3424hardcode_into_libs=no 3425hardcode_libdir_flag_spec= 3426hardcode_libdir_separator= 3427hardcode_direct=no 3428hardcode_minus_L=no 3429hardcode_shlibpath_var=unsupported 3430runpath_var= 3431link_all_deplibs=unknown 3432always_export_symbols=no 3433export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 3434# include_expsyms should be a list of space-separated symbols to be *always* 3435# included in the symbol list 3436include_expsyms= 3437# exclude_expsyms can be an egrep regular expression of symbols to exclude 3438# it will be wrapped by ` (' and `)$', so one must not match beginning or 3439# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 3440# as well as any symbol that contains `d'. 3441exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 3442# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 3443# platforms (ab)use it in PIC code, but their linkers get confused if 3444# the symbol is explicitly referenced. Since portable code cannot 3445# rely on this symbol name, it's probably fine to never include it in 3446# preloaded symbol tables. 3447extract_expsyms_cmds= 3448 3449case $host_os in 3450cygwin* | mingw* | pw32*) 3451 # FIXME: the MSVC++ port hasn't been tested in a loooong time 3452 # When not using gcc, we currently assume that we are using 3453 # Microsoft Visual C++. 3454 if test "$GCC" != yes; then 3455 with_gnu_ld=no 3456 fi 3457 ;; 3458openbsd*) 3459 with_gnu_ld=no 3460 ;; 3461esac 3462 3463ld_shlibs=yes 3464if test "$with_gnu_ld" = yes; then 3465 # If archive_cmds runs LD, not CC, wlarc should be empty 3466 wlarc='${wl}' 3467 3468 # See if GNU ld supports shared libraries. 3469 case $host_os in 3470 aix3* | aix4* | aix5*) 3471 # On AIX, the GNU linker is very broken 3472 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 3473 ld_shlibs=no 3474 cat <<EOF 1>&2 3475 3476*** Warning: the GNU linker, at least up to release 2.9.1, is reported 3477*** to be unable to reliably create shared libraries on AIX. 3478*** Therefore, libtool is disabling shared libraries support. If you 3479*** really care for shared libraries, you may want to modify your PATH 3480*** so that a non-GNU linker is found, and then restart. 3481 3482EOF 3483 ;; 3484 3485 amigaos*) 3486 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 3487 hardcode_libdir_flag_spec='-L$libdir' 3488 hardcode_minus_L=yes 3489 3490 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 3491 # that the semantics of dynamic libraries on AmigaOS, at least up 3492 # to version 4, is to share data among multiple programs linked 3493 # with the same dynamic library. Since this doesn't match the 3494 # behavior of shared libraries on other platforms, we can use 3495 # them. 3496 ld_shlibs=no 3497 ;; 3498 3499 beos*) 3500 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 3501 allow_undefined_flag=unsupported 3502 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 3503 # support --undefined. This deserves some investigation. FIXME 3504 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3505 else 3506 ld_shlibs=no 3507 fi 3508 ;; 3509 3510 cygwin* | mingw* | pw32*) 3511 # hardcode_libdir_flag_spec is actually meaningless, as there is 3512 # no search path for DLLs. 3513 hardcode_libdir_flag_spec='-L$libdir' 3514 allow_undefined_flag=unsupported 3515 always_export_symbols=yes 3516 3517 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 3518 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 3519 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 3520 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 3521 else $CC -o impgen impgen.c ; fi)~ 3522 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 3523 3524 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 3525 3526 # cygwin and mingw dlls have different entry points and sets of symbols 3527 # to exclude. 3528 # FIXME: what about values for MSVC? 3529 dll_entry=__cygwin_dll_entry@12 3530 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 3531 case $host_os in 3532 mingw*) 3533 # mingw values 3534 dll_entry=_DllMainCRTStartup@12 3535 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 3536 ;; 3537 esac 3538 3539 # mingw and cygwin differ, and it's simplest to just exclude the union 3540 # of the two symbol sets. 3541 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 3542 3543 # recent cygwin and mingw systems supply a stub DllMain which the user 3544 # can override, but on older systems we have to supply one (in ltdll.c) 3545 if test "x$lt_cv_need_dllmain" = "xyes"; then 3546 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 3547 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 3548 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 3549 else 3550 ltdll_obj= 3551 ltdll_cmds= 3552 fi 3553 3554 # Extract the symbol export list from an `--export-all' def file, 3555 # then regenerate the def file from the symbol export list, so that 3556 # the compiled dll only exports the symbol export list. 3557 # Be careful not to strip the DATA tag left be newer dlltools. 3558 export_symbols_cmds="$ltdll_cmds"' 3559 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 3560 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 3561 3562 # If the export-symbols file already is a .def file (1st line 3563 # is EXPORTS), use it as is. 3564 # If DATA tags from a recent dlltool are present, honour them! 3565 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 3566 cp $export_symbols $output_objdir/$soname-def; 3567 else 3568 echo EXPORTS > $output_objdir/$soname-def; 3569 _lt_hint=1; 3570 cat $export_symbols | while read symbol; do 3571 set dummy \$symbol; 3572 case \$# in 3573 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 3574 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 3575 esac; 3576 _lt_hint=`expr 1 + \$_lt_hint`; 3577 done; 3578 fi~ 3579 '"$ltdll_cmds"' 3580 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 3581 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 3582 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 3583 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 3584 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 3585 ;; 3586 3587 netbsd*) 3588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3589 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 3590 wlarc= 3591 else 3592 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3593 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3594 fi 3595 ;; 3596 3597 solaris* | sysv5*) 3598 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 3599 ld_shlibs=no 3600 cat <<EOF 1>&2 3601 3602*** Warning: The releases 2.8.* of the GNU linker cannot reliably 3603*** create shared libraries on Solaris systems. Therefore, libtool 3604*** is disabling shared libraries support. We urge you to upgrade GNU 3605*** binutils to release 2.9.1 or newer. Another option is to modify 3606*** your PATH or compiler configuration so that the native linker is 3607*** used, and then restart. 3608 3609EOF 3610 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 3611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3613 else 3614 ld_shlibs=no 3615 fi 3616 ;; 3617 3618 sunos4*) 3619 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 3620 wlarc= 3621 hardcode_direct=yes 3622 hardcode_shlibpath_var=no 3623 ;; 3624 3625 *) 3626 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 3627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3629 else 3630 ld_shlibs=no 3631 fi 3632 ;; 3633 esac 3634 3635 if test "$ld_shlibs" = yes; then 3636 runpath_var=LD_RUN_PATH 3637 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 3638 export_dynamic_flag_spec='${wl}--export-dynamic' 3639 case $host_os in 3640 cygwin* | mingw* | pw32*) 3641 # dlltool doesn't understand --whole-archive et. al. 3642 whole_archive_flag_spec= 3643 ;; 3644 *) 3645 # ancient GNU ld didn't support --whole-archive et. al. 3646 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 3647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3648 else 3649 whole_archive_flag_spec= 3650 fi 3651 ;; 3652 esac 3653 fi 3654else 3655 # PORTME fill in a description of your system's linker (not GNU ld) 3656 case $host_os in 3657 aix3*) 3658 allow_undefined_flag=unsupported 3659 always_export_symbols=yes 3660 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 3661 # Note: this linker hardcodes the directories in LIBPATH if there 3662 # are no directories specified by -L. 3663 hardcode_minus_L=yes 3664 if test "$GCC" = yes && test -z "$link_static_flag"; then 3665 # Neither direct hardcoding nor static linking is supported with a 3666 # broken collect2. 3667 hardcode_direct=unsupported 3668 fi 3669 ;; 3670 3671 aix4* | aix5*) 3672 if test "$host_cpu" = ia64; then 3673 # On IA64, the linker does run time linking by default, so we don't 3674 # have to do anything special. 3675 aix_use_runtimelinking=no 3676 exp_sym_flag='-Bexport' 3677 no_entry_flag="" 3678 else 3679 aix_use_runtimelinking=no 3680 3681 # Test if we are trying to use run time linking or normal 3682 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 3683 # need to do runtime linking. 3684 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 3685 for ld_flag in $LDFLAGS; do 3686 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 3687 aix_use_runtimelinking=yes 3688 break 3689 fi 3690 done 3691 esac 3692 3693 exp_sym_flag='-bexport' 3694 no_entry_flag='-bnoentry' 3695 fi 3696 3697 # When large executables or shared objects are built, AIX ld can 3698 # have problems creating the table of contents. If linking a library 3699 # or program results in "error TOC overflow" add -mminimal-toc to 3700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 3701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 3702 3703 hardcode_direct=yes 3704 archive_cmds='' 3705 hardcode_libdir_separator=':' 3706 if test "$GCC" = yes; then 3707 case $host_os in aix4.[012]|aix4.[012].*) 3708 collect2name=`${CC} -print-prog-name=collect2` 3709 if test -f "$collect2name" && \ 3710 strings "$collect2name" | grep resolve_lib_name >/dev/null 3711 then 3712 # We have reworked collect2 3713 hardcode_direct=yes 3714 else 3715 # We have old collect2 3716 hardcode_direct=unsupported 3717 # It fails to find uninstalled libraries when the uninstalled 3718 # path is not listed in the libpath. Setting hardcode_minus_L 3719 # to unsupported forces relinking 3720 hardcode_minus_L=yes 3721 hardcode_libdir_flag_spec='-L$libdir' 3722 hardcode_libdir_separator= 3723 fi 3724 esac 3725 3726 shared_flag='-shared' 3727 else 3728 # not using gcc 3729 if test "$host_cpu" = ia64; then 3730 shared_flag='${wl}-G' 3731 else 3732 if test "$aix_use_runtimelinking" = yes; then 3733 shared_flag='${wl}-G' 3734 else 3735 shared_flag='${wl}-bM:SRE' 3736 fi 3737 fi 3738 fi 3739 3740 # It seems that -bexpall can do strange things, so it is better to 3741 # generate a list of symbols to export. 3742 always_export_symbols=yes 3743 if test "$aix_use_runtimelinking" = yes; then 3744 # Warning - without using the other runtime loading flags (-brtl), 3745 # -berok will link without error, but may produce a broken library. 3746 allow_undefined_flag='-berok' 3747 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 3748 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 3749 else 3750 if test "$host_cpu" = ia64; then 3751 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 3752 allow_undefined_flag="-z nodefs" 3753 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 3754 else 3755 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 3756 # Warning - without using the other run time loading flags, 3757 # -berok will link without error, but may produce a broken library. 3758 allow_undefined_flag='${wl}-berok' 3759 # This is a bit strange, but is similar to how AIX traditionally builds 3760 # it's shared libraries. 3761 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 3762 fi 3763 fi 3764 ;; 3765 3766 amigaos*) 3767 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 3768 hardcode_libdir_flag_spec='-L$libdir' 3769 hardcode_minus_L=yes 3770 # see comment about different semantics on the GNU ld section 3771 ld_shlibs=no 3772 ;; 3773 3774 cygwin* | mingw* | pw32*) 3775 # When not using gcc, we currently assume that we are using 3776 # Microsoft Visual C++. 3777 # hardcode_libdir_flag_spec is actually meaningless, as there is 3778 # no search path for DLLs. 3779 hardcode_libdir_flag_spec=' ' 3780 allow_undefined_flag=unsupported 3781 # Tell ltmain to make .lib files, not .a files. 3782 libext=lib 3783 # FIXME: Setting linknames here is a bad hack. 3784 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 3785 # The linker will automatically build a .lib file if we build a DLL. 3786 old_archive_from_new_cmds='true' 3787 # FIXME: Should let the user specify the lib program. 3788 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 3789 fix_srcfile_path='`cygpath -w "$srcfile"`' 3790 ;; 3791 3792 darwin* | rhapsody*) 3793 case "$host_os" in 3794 rhapsody* | darwin1.[012]) 3795 allow_undefined_flag='-undefined suppress' 3796 ;; 3797 *) # Darwin 1.3 on 3798 allow_undefined_flag='-flat_namespace -undefined suppress' 3799 ;; 3800 esac 3801 # FIXME: Relying on posixy $() will cause problems for 3802 # cross-compilation, but unfortunately the echo tests do not 3803 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 3804 # `"' quotes if we put them in here... so don't! 3805 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 3806 # We need to add '_' to the symbols in $export_symbols first 3807 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 3808 hardcode_direct=yes 3809 hardcode_shlibpath_var=no 3810 whole_archive_flag_spec='-all_load $convenience' 3811 ;; 3812 3813 freebsd1*) 3814 ld_shlibs=no 3815 ;; 3816 3817 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 3818 # support. Future versions do this automatically, but an explicit c++rt0.o 3819 # does not break anything, and helps significantly (at the cost of a little 3820 # extra space). 3821 freebsd2.2*) 3822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 3823 hardcode_libdir_flag_spec='-R$libdir' 3824 hardcode_direct=yes 3825 hardcode_shlibpath_var=no 3826 ;; 3827 3828 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 3829 freebsd2*) 3830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 3831 hardcode_direct=yes 3832 hardcode_minus_L=yes 3833 hardcode_shlibpath_var=no 3834 ;; 3835 3836 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 3837 freebsd*) 3838 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 3839 hardcode_libdir_flag_spec='-R$libdir' 3840 hardcode_direct=yes 3841 hardcode_shlibpath_var=no 3842 ;; 3843 3844 hpux9* | hpux10* | hpux11*) 3845 case $host_os in 3846 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; 3847 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 3848 esac 3849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 3850 hardcode_libdir_separator=: 3851 hardcode_direct=yes 3852 hardcode_minus_L=yes # Not in the search PATH, but as the default 3853 # location of the library. 3854 export_dynamic_flag_spec='${wl}-E' 3855 ;; 3856 3857 irix5* | irix6* | nonstopux*) 3858 if test "$GCC" = yes; then 3859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3860 else 3861 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3862 fi 3863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 3864 hardcode_libdir_separator=: 3865 link_all_deplibs=yes 3866 ;; 3867 3868 netbsd*) 3869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 3871 else 3872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 3873 fi 3874 hardcode_libdir_flag_spec='-R$libdir' 3875 hardcode_direct=yes 3876 hardcode_shlibpath_var=no 3877 ;; 3878 3879 newsos6) 3880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 3881 hardcode_direct=yes 3882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 3883 hardcode_libdir_separator=: 3884 hardcode_shlibpath_var=no 3885 ;; 3886 3887 openbsd*) 3888 hardcode_direct=yes 3889 hardcode_shlibpath_var=no 3890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 3892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 3893 export_dynamic_flag_spec='${wl}-E' 3894 else 3895 case "$host_os" in 3896 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 3897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 3898 hardcode_libdir_flag_spec='-R$libdir' 3899 ;; 3900 *) 3901 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 3902 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 3903 ;; 3904 esac 3905 fi 3906 ;; 3907 3908 os2*) 3909 hardcode_libdir_flag_spec='-L$libdir' 3910 hardcode_minus_L=yes 3911 allow_undefined_flag=unsupported 3912 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 3913 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 3914 ;; 3915 3916 osf3*) 3917 if test "$GCC" = yes; then 3918 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 3919 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3920 else 3921 allow_undefined_flag=' -expect_unresolved \*' 3922 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3923 fi 3924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 3925 hardcode_libdir_separator=: 3926 ;; 3927 3928 osf4* | osf5*) # as osf3* with the addition of -msym flag 3929 if test "$GCC" = yes; then 3930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 3931 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 3933 else 3934 allow_undefined_flag=' -expect_unresolved \*' 3935 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3936 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 3937 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 3938 3939 #Both c and cxx compiler support -rpath directly 3940 hardcode_libdir_flag_spec='-rpath $libdir' 3941 fi 3942 hardcode_libdir_separator=: 3943 ;; 3944 3945 sco3.2v5*) 3946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 3947 hardcode_shlibpath_var=no 3948 runpath_var=LD_RUN_PATH 3949 hardcode_runpath_var=yes 3950 export_dynamic_flag_spec='${wl}-Bexport' 3951 ;; 3952 3953 solaris*) 3954 # gcc --version < 3.0 without binutils cannot create self contained 3955 # shared libraries reliably, requiring libgcc.a to resolve some of 3956 # the object symbols generated in some cases. Libraries that use 3957 # assert need libgcc.a to resolve __eprintf, for example. Linking 3958 # a copy of libgcc.a into every shared library to guarantee resolving 3959 # such symbols causes other problems: According to Tim Van Holder 3960 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 3961 # (to the application) exception stack for one thing. 3962 no_undefined_flag=' -z defs' 3963 if test "$GCC" = yes; then 3964 case `$CC --version 2>/dev/null` in 3965 [12].*) 3966 cat <<EOF 1>&2 3967 3968*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 3969*** create self contained shared libraries on Solaris systems, without 3970*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 3971*** -no-undefined support, which will at least allow you to build shared 3972*** libraries. However, you may find that when you link such libraries 3973*** into an application without using GCC, you have to manually add 3974*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 3975*** upgrade to a newer version of GCC. Another option is to rebuild your 3976*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 3977 3978EOF 3979 no_undefined_flag= 3980 ;; 3981 esac 3982 fi 3983 # $CC -shared without GNU ld will not create a library from C++ 3984 # object files and a static libstdc++, better avoid it by now 3985 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 3986 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3987 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 3988 hardcode_libdir_flag_spec='-R$libdir' 3989 hardcode_shlibpath_var=no 3990 case $host_os in 3991 solaris2.[0-5] | solaris2.[0-5].*) ;; 3992 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 3993 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 3994 esac 3995 link_all_deplibs=yes 3996 ;; 3997 3998 sunos4*) 3999 if test "x$host_vendor" = xsequent; then 4000 # Use $CC to link under sequent, because it throws in some extra .o 4001 # files that make .init and .fini sections work. 4002 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 4003 else 4004 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 4005 fi 4006 hardcode_libdir_flag_spec='-L$libdir' 4007 hardcode_direct=yes 4008 hardcode_minus_L=yes 4009 hardcode_shlibpath_var=no 4010 ;; 4011 4012 sysv4) 4013 if test "x$host_vendor" = xsno; then 4014 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 4015 hardcode_direct=yes # is this really true??? 4016 else 4017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4018 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 4019 fi 4020 runpath_var='LD_RUN_PATH' 4021 hardcode_shlibpath_var=no 4022 ;; 4023 4024 sysv4.3*) 4025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4026 hardcode_shlibpath_var=no 4027 export_dynamic_flag_spec='-Bexport' 4028 ;; 4029 4030 sysv5*) 4031 no_undefined_flag=' -z text' 4032 # $CC -shared without GNU ld will not create a library from C++ 4033 # object files and a static libstdc++, better avoid it by now 4034 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 4035 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4036 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 4037 hardcode_libdir_flag_spec= 4038 hardcode_shlibpath_var=no 4039 runpath_var='LD_RUN_PATH' 4040 ;; 4041 4042 uts4*) 4043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4044 hardcode_libdir_flag_spec='-L$libdir' 4045 hardcode_shlibpath_var=no 4046 ;; 4047 4048 dgux*) 4049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4050 hardcode_libdir_flag_spec='-L$libdir' 4051 hardcode_shlibpath_var=no 4052 ;; 4053 4054 sysv4*MP*) 4055 if test -d /usr/nec; then 4056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4057 hardcode_shlibpath_var=no 4058 runpath_var=LD_RUN_PATH 4059 hardcode_runpath_var=yes 4060 ld_shlibs=yes 4061 fi 4062 ;; 4063 4064 sysv4.2uw2*) 4065 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 4066 hardcode_direct=yes 4067 hardcode_minus_L=no 4068 hardcode_shlibpath_var=no 4069 hardcode_runpath_var=yes 4070 runpath_var=LD_RUN_PATH 4071 ;; 4072 4073 sysv5uw7* | unixware7*) 4074 no_undefined_flag='${wl}-z ${wl}text' 4075 if test "$GCC" = yes; then 4076 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4077 else 4078 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4079 fi 4080 runpath_var='LD_RUN_PATH' 4081 hardcode_shlibpath_var=no 4082 ;; 4083 4084 *) 4085 ld_shlibs=no 4086 ;; 4087 esac 4088fi 4089echo "$ac_t""$ld_shlibs" 1>&6 4090test "$ld_shlibs" = no && can_build_shared=no 4091 4092# Check hardcoding attributes. 4093echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 4094echo "configure:4095: checking how to hardcode library paths into programs" >&5 4095hardcode_action= 4096if test -n "$hardcode_libdir_flag_spec" || \ 4097 test -n "$runpath_var"; then 4098 4099 # We can hardcode non-existant directories. 4100 if test "$hardcode_direct" != no && 4101 # If the only mechanism to avoid hardcoding is shlibpath_var, we 4102 # have to relink, otherwise we might link with an installed library 4103 # when we should be linking with a yet-to-be-installed one 4104 ## test "$hardcode_shlibpath_var" != no && 4105 test "$hardcode_minus_L" != no; then 4106 # Linking always hardcodes the temporary library directory. 4107 hardcode_action=relink 4108 else 4109 # We can link without hardcoding, and we can hardcode nonexisting dirs. 4110 hardcode_action=immediate 4111 fi 4112else 4113 # We cannot hardcode anything, or else we can only hardcode existing 4114 # directories. 4115 hardcode_action=unsupported 4116fi 4117echo "$ac_t""$hardcode_action" 1>&6 4118 4119striplib= 4120old_striplib= 4121echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 4122echo "configure:4123: checking whether stripping libraries is possible" >&5 4123if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 4124 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 4125 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 4126 echo "$ac_t""yes" 1>&6 4127else 4128 echo "$ac_t""no" 1>&6 4129fi 4130 4131reload_cmds='$LD$reload_flag -o $output$reload_objs' 4132test -z "$deplibs_check_method" && deplibs_check_method=unknown 4133 4134# PORTME Fill in your ld.so characteristics 4135echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 4136echo "configure:4137: checking dynamic linker characteristics" >&5 4137library_names_spec= 4138libname_spec='lib$name' 4139soname_spec= 4140postinstall_cmds= 4141postuninstall_cmds= 4142finish_cmds= 4143finish_eval= 4144shlibpath_var= 4145shlibpath_overrides_runpath=unknown 4146version_type=none 4147dynamic_linker="$host_os ld.so" 4148sys_lib_dlsearch_path_spec="/lib /usr/lib" 4149sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4150 4151case $host_os in 4152aix3*) 4153 version_type=linux 4154 library_names_spec='${libname}${release}.so$versuffix $libname.a' 4155 shlibpath_var=LIBPATH 4156 4157 # AIX has no versioning support, so we append a major version to the name. 4158 soname_spec='${libname}${release}.so$major' 4159 ;; 4160 4161aix4* | aix5*) 4162 version_type=linux 4163 if test "$host_cpu" = ia64; then 4164 # AIX 5 supports IA64 4165 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 4166 shlibpath_var=LD_LIBRARY_PATH 4167 else 4168 # With GCC up to 2.95.x, collect2 would create an import file 4169 # for dependence libraries. The import file would start with 4170 # the line `#! .'. This would cause the generated library to 4171 # depend on `.', always an invalid library. This was fixed in 4172 # development snapshots of GCC prior to 3.0. 4173 case $host_os in 4174 aix4 | aix4.[01] | aix4.[01].*) 4175 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4176 echo ' yes ' 4177 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 4178 : 4179 else 4180 can_build_shared=no 4181 fi 4182 ;; 4183 esac 4184 # AIX (on Power*) has no versioning support, so currently we can 4185 # not hardcode correct soname into executable. Probably we can 4186 # add versioning support to collect2, so additional links can 4187 # be useful in future. 4188 if test "$aix_use_runtimelinking" = yes; then 4189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4190 # instead of lib<name>.a to let people know that these are not 4191 # typical AIX shared libraries. 4192 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4193 else 4194 # We preserve .a as extension for shared libraries through AIX4.2 4195 # and later when we are not doing run time linking. 4196 library_names_spec='${libname}${release}.a $libname.a' 4197 soname_spec='${libname}${release}.so$major' 4198 fi 4199 shlibpath_var=LIBPATH 4200 fi 4201 ;; 4202 4203amigaos*) 4204 library_names_spec='$libname.ixlibrary $libname.a' 4205 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4206 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 4207 ;; 4208 4209beos*) 4210 library_names_spec='${libname}.so' 4211 dynamic_linker="$host_os ld.so" 4212 shlibpath_var=LIBRARY_PATH 4213 ;; 4214 4215bsdi4*) 4216 version_type=linux 4217 need_version=no 4218 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4219 soname_spec='${libname}${release}.so$major' 4220 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4221 shlibpath_var=LD_LIBRARY_PATH 4222 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4223 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4224 export_dynamic_flag_spec=-rdynamic 4225 # the default ld.so.conf also contains /usr/contrib/lib and 4226 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4227 # libtool to hard-code these into programs 4228 ;; 4229 4230cygwin* | mingw* | pw32*) 4231 version_type=windows 4232 need_version=no 4233 need_lib_prefix=no 4234 case $GCC,$host_os in 4235 yes,cygwin*) 4236 library_names_spec='$libname.dll.a' 4237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 4238 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 4239 dldir=$destdir/`dirname \$dlpath`~ 4240 test -d \$dldir || mkdir -p \$dldir~ 4241 $install_prog .libs/$dlname \$dldir/$dlname' 4242 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4243 dlpath=$dir/\$dldll~ 4244 $rm \$dlpath' 4245 ;; 4246 yes,mingw*) 4247 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 4248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 4249 ;; 4250 yes,pw32*) 4251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 4252 ;; 4253 *) 4254 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 4255 ;; 4256 esac 4257 dynamic_linker='Win32 ld.exe' 4258 # FIXME: first we should search . and the directory the executable is in 4259 shlibpath_var=PATH 4260 ;; 4261 4262darwin* | rhapsody*) 4263 dynamic_linker="$host_os dyld" 4264 version_type=darwin 4265 need_lib_prefix=no 4266 need_version=no 4267 # FIXME: Relying on posixy $() will cause problems for 4268 # cross-compilation, but unfortunately the echo tests do not 4269 # yet detect zsh echo's removal of \ escapes. 4270 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 4271 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 4272 shlibpath_overrides_runpath=yes 4273 shlibpath_var=DYLD_LIBRARY_PATH 4274 ;; 4275 4276freebsd1*) 4277 dynamic_linker=no 4278 ;; 4279 4280freebsd*) 4281 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 4282 version_type=freebsd-$objformat 4283 case $version_type in 4284 freebsd-elf*) 4285 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 4286 need_version=no 4287 need_lib_prefix=no 4288 ;; 4289 freebsd-*) 4290 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 4291 need_version=yes 4292 ;; 4293 esac 4294 shlibpath_var=LD_LIBRARY_PATH 4295 case $host_os in 4296 freebsd2*) 4297 shlibpath_overrides_runpath=yes 4298 ;; 4299 *) 4300 shlibpath_overrides_runpath=no 4301 hardcode_into_libs=yes 4302 ;; 4303 esac 4304 ;; 4305 4306gnu*) 4307 version_type=linux 4308 need_lib_prefix=no 4309 need_version=no 4310 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 4311 soname_spec='${libname}${release}.so$major' 4312 shlibpath_var=LD_LIBRARY_PATH 4313 hardcode_into_libs=yes 4314 ;; 4315 4316hpux9* | hpux10* | hpux11*) 4317 # Give a soname corresponding to the major version so that dld.sl refuses to 4318 # link against other versions. 4319 dynamic_linker="$host_os dld.sl" 4320 version_type=sunos 4321 need_lib_prefix=no 4322 need_version=no 4323 shlibpath_var=SHLIB_PATH 4324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 4325 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 4326 soname_spec='${libname}${release}.sl$major' 4327 # HP-UX runs *really* slowly unless shared libraries are mode 555. 4328 postinstall_cmds='chmod 555 $lib' 4329 ;; 4330 4331irix5* | irix6* | nonstopux*) 4332 case $host_os in 4333 nonstopux*) version_type=nonstopux ;; 4334 *) version_type=irix ;; 4335 esac 4336 need_lib_prefix=no 4337 need_version=no 4338 soname_spec='${libname}${release}.so$major' 4339 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 4340 case $host_os in 4341 irix5* | nonstopux*) 4342 libsuff= shlibsuff= 4343 ;; 4344 *) 4345 case $LD in # libtool.m4 will add one of these switches to LD 4346 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 4347 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 4348 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 4349 *) libsuff= shlibsuff= libmagic=never-match;; 4350 esac 4351 ;; 4352 esac 4353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 4354 shlibpath_overrides_runpath=no 4355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 4356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 4357 ;; 4358 4359# No shared lib support for Linux oldld, aout, or coff. 4360linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 4361 dynamic_linker=no 4362 ;; 4363 4364# This must be Linux ELF. 4365linux-gnu*) 4366 version_type=linux 4367 need_lib_prefix=no 4368 need_version=no 4369 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4370 soname_spec='${libname}${release}.so$major' 4371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 4372 shlibpath_var=LD_LIBRARY_PATH 4373 shlibpath_overrides_runpath=no 4374 # This implies no fast_install, which is unacceptable. 4375 # Some rework will be needed to allow for fast_install 4376 # before this can be enabled. 4377 hardcode_into_libs=yes 4378 4379 # We used to test for /lib/ld.so.1 and disable shared libraries on 4380 # powerpc, because MkLinux only supported shared libraries with the 4381 # GNU dynamic linker. Since this was broken with cross compilers, 4382 # most powerpc-linux boxes support dynamic linking these days and 4383 # people can always --disable-shared, the test was removed, and we 4384 # assume the GNU/Linux dynamic linker is in use. 4385 dynamic_linker='GNU/Linux ld.so' 4386 ;; 4387 4388netbsd*) 4389 version_type=sunos 4390 need_lib_prefix=no 4391 need_version=no 4392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4393 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 4394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4395 dynamic_linker='NetBSD (a.out) ld.so' 4396 else 4397 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 4398 soname_spec='${libname}${release}.so$major' 4399 dynamic_linker='NetBSD ld.elf_so' 4400 fi 4401 shlibpath_var=LD_LIBRARY_PATH 4402 shlibpath_overrides_runpath=yes 4403 hardcode_into_libs=yes 4404 ;; 4405 4406newsos6) 4407 version_type=linux 4408 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4409 shlibpath_var=LD_LIBRARY_PATH 4410 shlibpath_overrides_runpath=yes 4411 ;; 4412 4413openbsd*) 4414 version_type=sunos 4415 need_lib_prefix=no 4416 need_version=no 4417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4418 case "$host_os" in 4419 openbsd2.[89] | openbsd2.[89].*) 4420 shlibpath_overrides_runpath=no 4421 ;; 4422 *) 4423 shlibpath_overrides_runpath=yes 4424 ;; 4425 esac 4426 else 4427 shlibpath_overrides_runpath=yes 4428 fi 4429 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 4430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4431 shlibpath_var=LD_LIBRARY_PATH 4432 ;; 4433 4434os2*) 4435 libname_spec='$name' 4436 need_lib_prefix=no 4437 library_names_spec='$libname.dll $libname.a' 4438 dynamic_linker='OS/2 ld.exe' 4439 shlibpath_var=LIBPATH 4440 ;; 4441 4442osf3* | osf4* | osf5*) 4443 version_type=osf 4444 need_version=no 4445 need_lib_prefix=no 4446 soname_spec='${libname}${release}.so' 4447 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 4448 shlibpath_var=LD_LIBRARY_PATH 4449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 4451 ;; 4452 4453sco3.2v5*) 4454 version_type=osf 4455 soname_spec='${libname}${release}.so$major' 4456 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4457 shlibpath_var=LD_LIBRARY_PATH 4458 ;; 4459 4460solaris*) 4461 version_type=linux 4462 need_lib_prefix=no 4463 need_version=no 4464 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4465 soname_spec='${libname}${release}.so$major' 4466 shlibpath_var=LD_LIBRARY_PATH 4467 shlibpath_overrides_runpath=yes 4468 hardcode_into_libs=yes 4469 # ldd complains unless libraries are executable 4470 postinstall_cmds='chmod +x $lib' 4471 ;; 4472 4473sunos4*) 4474 version_type=sunos 4475 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 4476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4477 shlibpath_var=LD_LIBRARY_PATH 4478 shlibpath_overrides_runpath=yes 4479 if test "$with_gnu_ld" = yes; then 4480 need_lib_prefix=no 4481 fi 4482 need_version=yes 4483 ;; 4484 4485sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4486 version_type=linux 4487 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4488 soname_spec='${libname}${release}.so$major' 4489 shlibpath_var=LD_LIBRARY_PATH 4490 case $host_vendor in 4491 sni) 4492 shlibpath_overrides_runpath=no 4493 ;; 4494 motorola) 4495 need_lib_prefix=no 4496 need_version=no 4497 shlibpath_overrides_runpath=no 4498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4499 ;; 4500 esac 4501 ;; 4502 4503uts4*) 4504 version_type=linux 4505 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4506 soname_spec='${libname}${release}.so$major' 4507 shlibpath_var=LD_LIBRARY_PATH 4508 ;; 4509 4510dgux*) 4511 version_type=linux 4512 need_lib_prefix=no 4513 need_version=no 4514 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4515 soname_spec='${libname}${release}.so$major' 4516 shlibpath_var=LD_LIBRARY_PATH 4517 ;; 4518 4519sysv4*MP*) 4520 if test -d /usr/nec ;then 4521 version_type=linux 4522 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 4523 soname_spec='$libname.so.$major' 4524 shlibpath_var=LD_LIBRARY_PATH 4525 fi 4526 ;; 4527 4528*) 4529 dynamic_linker=no 4530 ;; 4531esac 4532echo "$ac_t""$dynamic_linker" 1>&6 4533test "$dynamic_linker" = no && can_build_shared=no 4534 4535# Report the final consequences. 4536echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 4537echo "configure:4538: checking if libtool supports shared libraries" >&5 4538echo "$ac_t""$can_build_shared" 1>&6 4539 4540echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6 4541echo "configure:4542: checking whether to build shared libraries" >&5 4542test "$can_build_shared" = "no" && enable_shared=no 4543 4544# On AIX, shared libraries and static libraries use the same namespace, and 4545# are all built from PIC. 4546case "$host_os" in 4547aix3*) 4548 test "$enable_shared" = yes && enable_static=no 4549 if test -n "$RANLIB"; then 4550 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4551 postinstall_cmds='$RANLIB $lib' 4552 fi 4553 ;; 4554 4555aix4*) 4556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 4557 test "$enable_shared" = yes && enable_static=no 4558 fi 4559 ;; 4560esac 4561echo "$ac_t""$enable_shared" 1>&6 4562 4563echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6 4564echo "configure:4565: checking whether to build static libraries" >&5 4565# Make sure either enable_shared or enable_static is yes. 4566test "$enable_shared" = yes || enable_static=yes 4567echo "$ac_t""$enable_static" 1>&6 4568 4569if test "$hardcode_action" = relink; then 4570 # Fast installation is not supported 4571 enable_fast_install=no 4572elif test "$shlibpath_overrides_runpath" = yes || 4573 test "$enable_shared" = no; then 4574 # Fast installation is not necessary 4575 enable_fast_install=needless 4576fi 4577 4578variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 4579if test "$GCC" = yes; then 4580 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 4581fi 4582 4583if test "x$enable_dlopen" != xyes; then 4584 enable_dlopen=unknown 4585 enable_dlopen_self=unknown 4586 enable_dlopen_self_static=unknown 4587else 4588 lt_cv_dlopen=no 4589 lt_cv_dlopen_libs= 4590 4591 case $host_os in 4592 beos*) 4593 lt_cv_dlopen="load_add_on" 4594 lt_cv_dlopen_libs= 4595 lt_cv_dlopen_self=yes 4596 ;; 4597 4598 cygwin* | mingw* | pw32*) 4599 lt_cv_dlopen="LoadLibrary" 4600 lt_cv_dlopen_libs= 4601 ;; 4602 4603 *) 4604 echo $ac_n "checking for shl_load""... $ac_c" 1>&6 4605echo "configure:4606: checking for shl_load" >&5 4606if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then 4607 echo $ac_n "(cached) $ac_c" 1>&6 4608else 4609 cat > conftest.$ac_ext <<EOF 4610#line 4611 "configure" 4611#include "confdefs.h" 4612/* System header to define __stub macros and hopefully few prototypes, 4613 which can conflict with char shl_load(); below. */ 4614#include <assert.h> 4615/* Override any gcc2 internal prototype to avoid an error. */ 4616/* We use char because int might match the return type of a gcc2 4617 builtin and then its argument prototype would still apply. */ 4618char shl_load(); 4619 4620int main() { 4621 4622/* The GNU C library defines this for functions which it implements 4623 to always fail with ENOSYS. Some functions are actually named 4624 something starting with __ and the normal name is an alias. */ 4625#if defined (__stub_shl_load) || defined (__stub___shl_load) 4626choke me 4627#else 4628shl_load(); 4629#endif 4630 4631; return 0; } 4632EOF 4633if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4634 rm -rf conftest* 4635 eval "ac_cv_func_shl_load=yes" 4636else 4637 echo "configure: failed program was:" >&5 4638 cat conftest.$ac_ext >&5 4639 rm -rf conftest* 4640 eval "ac_cv_func_shl_load=no" 4641fi 4642rm -f conftest* 4643fi 4644 4645if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 4646 echo "$ac_t""yes" 1>&6 4647 lt_cv_dlopen="shl_load" 4648else 4649 echo "$ac_t""no" 1>&6 4650echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 4651echo "configure:4652: checking for shl_load in -ldld" >&5 4652ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 4653if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4654 echo $ac_n "(cached) $ac_c" 1>&6 4655else 4656 ac_save_LIBS="$LIBS" 4657LIBS="-ldld $LIBS" 4658cat > conftest.$ac_ext <<EOF 4659#line 4660 "configure" 4660#include "confdefs.h" 4661/* Override any gcc2 internal prototype to avoid an error. */ 4662/* We use char because int might match the return type of a gcc2 4663 builtin and then its argument prototype would still apply. */ 4664char shl_load(); 4665 4666int main() { 4667shl_load() 4668; return 0; } 4669EOF 4670if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4671 rm -rf conftest* 4672 eval "ac_cv_lib_$ac_lib_var=yes" 4673else 4674 echo "configure: failed program was:" >&5 4675 cat conftest.$ac_ext >&5 4676 rm -rf conftest* 4677 eval "ac_cv_lib_$ac_lib_var=no" 4678fi 4679rm -f conftest* 4680LIBS="$ac_save_LIBS" 4681 4682fi 4683if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4684 echo "$ac_t""yes" 1>&6 4685 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 4686else 4687 echo "$ac_t""no" 1>&6 4688echo $ac_n "checking for dlopen""... $ac_c" 1>&6 4689echo "configure:4690: checking for dlopen" >&5 4690if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then 4691 echo $ac_n "(cached) $ac_c" 1>&6 4692else 4693 cat > conftest.$ac_ext <<EOF 4694#line 4695 "configure" 4695#include "confdefs.h" 4696/* System header to define __stub macros and hopefully few prototypes, 4697 which can conflict with char dlopen(); below. */ 4698#include <assert.h> 4699/* Override any gcc2 internal prototype to avoid an error. */ 4700/* We use char because int might match the return type of a gcc2 4701 builtin and then its argument prototype would still apply. */ 4702char dlopen(); 4703 4704int main() { 4705 4706/* The GNU C library defines this for functions which it implements 4707 to always fail with ENOSYS. Some functions are actually named 4708 something starting with __ and the normal name is an alias. */ 4709#if defined (__stub_dlopen) || defined (__stub___dlopen) 4710choke me 4711#else 4712dlopen(); 4713#endif 4714 4715; return 0; } 4716EOF 4717if { (eval echo configure:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4718 rm -rf conftest* 4719 eval "ac_cv_func_dlopen=yes" 4720else 4721 echo "configure: failed program was:" >&5 4722 cat conftest.$ac_ext >&5 4723 rm -rf conftest* 4724 eval "ac_cv_func_dlopen=no" 4725fi 4726rm -f conftest* 4727fi 4728 4729if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 4730 echo "$ac_t""yes" 1>&6 4731 lt_cv_dlopen="dlopen" 4732else 4733 echo "$ac_t""no" 1>&6 4734echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 4735echo "configure:4736: checking for dlopen in -ldl" >&5 4736ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 4737if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4738 echo $ac_n "(cached) $ac_c" 1>&6 4739else 4740 ac_save_LIBS="$LIBS" 4741LIBS="-ldl $LIBS" 4742cat > conftest.$ac_ext <<EOF 4743#line 4744 "configure" 4744#include "confdefs.h" 4745/* Override any gcc2 internal prototype to avoid an error. */ 4746/* We use char because int might match the return type of a gcc2 4747 builtin and then its argument prototype would still apply. */ 4748char dlopen(); 4749 4750int main() { 4751dlopen() 4752; return 0; } 4753EOF 4754if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4755 rm -rf conftest* 4756 eval "ac_cv_lib_$ac_lib_var=yes" 4757else 4758 echo "configure: failed program was:" >&5 4759 cat conftest.$ac_ext >&5 4760 rm -rf conftest* 4761 eval "ac_cv_lib_$ac_lib_var=no" 4762fi 4763rm -f conftest* 4764LIBS="$ac_save_LIBS" 4765 4766fi 4767if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4768 echo "$ac_t""yes" 1>&6 4769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 4770else 4771 echo "$ac_t""no" 1>&6 4772echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 4773echo "configure:4774: checking for dlopen in -lsvld" >&5 4774ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` 4775if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4776 echo $ac_n "(cached) $ac_c" 1>&6 4777else 4778 ac_save_LIBS="$LIBS" 4779LIBS="-lsvld $LIBS" 4780cat > conftest.$ac_ext <<EOF 4781#line 4782 "configure" 4782#include "confdefs.h" 4783/* Override any gcc2 internal prototype to avoid an error. */ 4784/* We use char because int might match the return type of a gcc2 4785 builtin and then its argument prototype would still apply. */ 4786char dlopen(); 4787 4788int main() { 4789dlopen() 4790; return 0; } 4791EOF 4792if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4793 rm -rf conftest* 4794 eval "ac_cv_lib_$ac_lib_var=yes" 4795else 4796 echo "configure: failed program was:" >&5 4797 cat conftest.$ac_ext >&5 4798 rm -rf conftest* 4799 eval "ac_cv_lib_$ac_lib_var=no" 4800fi 4801rm -f conftest* 4802LIBS="$ac_save_LIBS" 4803 4804fi 4805if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4806 echo "$ac_t""yes" 1>&6 4807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 4808else 4809 echo "$ac_t""no" 1>&6 4810echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 4811echo "configure:4812: checking for dld_link in -ldld" >&5 4812ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` 4813if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4814 echo $ac_n "(cached) $ac_c" 1>&6 4815else 4816 ac_save_LIBS="$LIBS" 4817LIBS="-ldld $LIBS" 4818cat > conftest.$ac_ext <<EOF 4819#line 4820 "configure" 4820#include "confdefs.h" 4821/* Override any gcc2 internal prototype to avoid an error. */ 4822/* We use char because int might match the return type of a gcc2 4823 builtin and then its argument prototype would still apply. */ 4824char dld_link(); 4825 4826int main() { 4827dld_link() 4828; return 0; } 4829EOF 4830if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4831 rm -rf conftest* 4832 eval "ac_cv_lib_$ac_lib_var=yes" 4833else 4834 echo "configure: failed program was:" >&5 4835 cat conftest.$ac_ext >&5 4836 rm -rf conftest* 4837 eval "ac_cv_lib_$ac_lib_var=no" 4838fi 4839rm -f conftest* 4840LIBS="$ac_save_LIBS" 4841 4842fi 4843if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4844 echo "$ac_t""yes" 1>&6 4845 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 4846else 4847 echo "$ac_t""no" 1>&6 4848fi 4849 4850 4851fi 4852 4853 4854fi 4855 4856 4857fi 4858 4859 4860fi 4861 4862 4863fi 4864 4865 ;; 4866 esac 4867 4868 if test "x$lt_cv_dlopen" != xno; then 4869 enable_dlopen=yes 4870 else 4871 enable_dlopen=no 4872 fi 4873 4874 case $lt_cv_dlopen in 4875 dlopen) 4876 save_CPPFLAGS="$CPPFLAGS" 4877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 4878 4879 save_LDFLAGS="$LDFLAGS" 4880 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 4881 4882 save_LIBS="$LIBS" 4883 LIBS="$lt_cv_dlopen_libs $LIBS" 4884 4885 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 4886echo "configure:4887: checking whether a program can dlopen itself" >&5 4887if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then 4888 echo $ac_n "(cached) $ac_c" 1>&6 4889else 4890 if test "$cross_compiling" = yes; then : 4891 lt_cv_dlopen_self=cross 4892else 4893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 4894 lt_status=$lt_dlunknown 4895 cat > conftest.$ac_ext <<EOF 4896#line 4897 "configure" 4897#include "confdefs.h" 4898 4899#if HAVE_DLFCN_H 4900#include <dlfcn.h> 4901#endif 4902 4903#include <stdio.h> 4904 4905#ifdef RTLD_GLOBAL 4906# define LT_DLGLOBAL RTLD_GLOBAL 4907#else 4908# ifdef DL_GLOBAL 4909# define LT_DLGLOBAL DL_GLOBAL 4910# else 4911# define LT_DLGLOBAL 0 4912# endif 4913#endif 4914 4915/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 4916 find out it does not work in some platform. */ 4917#ifndef LT_DLLAZY_OR_NOW 4918# ifdef RTLD_LAZY 4919# define LT_DLLAZY_OR_NOW RTLD_LAZY 4920# else 4921# ifdef DL_LAZY 4922# define LT_DLLAZY_OR_NOW DL_LAZY 4923# else 4924# ifdef RTLD_NOW 4925# define LT_DLLAZY_OR_NOW RTLD_NOW 4926# else 4927# ifdef DL_NOW 4928# define LT_DLLAZY_OR_NOW DL_NOW 4929# else 4930# define LT_DLLAZY_OR_NOW 0 4931# endif 4932# endif 4933# endif 4934# endif 4935#endif 4936 4937#ifdef __cplusplus 4938extern "C" void exit (int); 4939#endif 4940 4941void fnord() { int i=42;} 4942int main () 4943{ 4944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 4945 int status = $lt_dlunknown; 4946 4947 if (self) 4948 { 4949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 4950 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 4951 /* dlclose (self); */ 4952 } 4953 4954 exit (status); 4955} 4956EOF 4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 4958 (./conftest; exit; ) 2>/dev/null 4959 lt_status=$? 4960 case x$lt_status in 4961 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 4962 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 4963 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 4964 esac 4965 else : 4966 # compilation failed 4967 lt_cv_dlopen_self=no 4968 fi 4969fi 4970rm -fr conftest* 4971 4972 4973fi 4974 4975echo "$ac_t""$lt_cv_dlopen_self" 1>&6 4976 4977 if test "x$lt_cv_dlopen_self" = xyes; then 4978 LDFLAGS="$LDFLAGS $link_static_flag" 4979 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 4980echo "configure:4981: checking whether a statically linked program can dlopen itself" >&5 4981if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then 4982 echo $ac_n "(cached) $ac_c" 1>&6 4983else 4984 if test "$cross_compiling" = yes; then : 4985 lt_cv_dlopen_self_static=cross 4986else 4987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 4988 lt_status=$lt_dlunknown 4989 cat > conftest.$ac_ext <<EOF 4990#line 4991 "configure" 4991#include "confdefs.h" 4992 4993#if HAVE_DLFCN_H 4994#include <dlfcn.h> 4995#endif 4996 4997#include <stdio.h> 4998 4999#ifdef RTLD_GLOBAL 5000# define LT_DLGLOBAL RTLD_GLOBAL 5001#else 5002# ifdef DL_GLOBAL 5003# define LT_DLGLOBAL DL_GLOBAL 5004# else 5005# define LT_DLGLOBAL 0 5006# endif 5007#endif 5008 5009/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 5010 find out it does not work in some platform. */ 5011#ifndef LT_DLLAZY_OR_NOW 5012# ifdef RTLD_LAZY 5013# define LT_DLLAZY_OR_NOW RTLD_LAZY 5014# else 5015# ifdef DL_LAZY 5016# define LT_DLLAZY_OR_NOW DL_LAZY 5017# else 5018# ifdef RTLD_NOW 5019# define LT_DLLAZY_OR_NOW RTLD_NOW 5020# else 5021# ifdef DL_NOW 5022# define LT_DLLAZY_OR_NOW DL_NOW 5023# else 5024# define LT_DLLAZY_OR_NOW 0 5025# endif 5026# endif 5027# endif 5028# endif 5029#endif 5030 5031#ifdef __cplusplus 5032extern "C" void exit (int); 5033#endif 5034 5035void fnord() { int i=42;} 5036int main () 5037{ 5038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 5039 int status = $lt_dlunknown; 5040 5041 if (self) 5042 { 5043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 5044 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 5045 /* dlclose (self); */ 5046 } 5047 5048 exit (status); 5049} 5050EOF 5051 if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 5052 (./conftest; exit; ) 2>/dev/null 5053 lt_status=$? 5054 case x$lt_status in 5055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 5056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 5057 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 5058 esac 5059 else : 5060 # compilation failed 5061 lt_cv_dlopen_self_static=no 5062 fi 5063fi 5064rm -fr conftest* 5065 5066 5067fi 5068 5069echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 5070 fi 5071 5072 CPPFLAGS="$save_CPPFLAGS" 5073 LDFLAGS="$save_LDFLAGS" 5074 LIBS="$save_LIBS" 5075 ;; 5076 esac 5077 5078 case $lt_cv_dlopen_self in 5079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 5080 *) enable_dlopen_self=unknown ;; 5081 esac 5082 5083 case $lt_cv_dlopen_self_static in 5084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 5085 *) enable_dlopen_self_static=unknown ;; 5086 esac 5087fi 5088 5089 5090if test "$enable_shared" = yes && test "$GCC" = yes; then 5091 case $archive_cmds in 5092 *'~'*) 5093 # FIXME: we may have to deal with multi-command sequences. 5094 ;; 5095 '$CC '*) 5096 # Test whether the compiler implicitly links with -lc since on some 5097 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5098 # to ld, don't add -lc before -lgcc. 5099 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 5100echo "configure:5101: checking whether -lc should be explicitly linked in" >&5 5101 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then 5102 echo $ac_n "(cached) $ac_c" 1>&6 5103else 5104 $rm conftest* 5105 echo 'static int dummy;' > conftest.$ac_ext 5106 5107 if { (eval echo configure:5108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5108 soname=conftest 5109 lib=conftest 5110 libobjs=conftest.$ac_objext 5111 deplibs= 5112 wl=$lt_cv_prog_cc_wl 5113 compiler_flags=-v 5114 linker_flags=-v 5115 verstring= 5116 output_objdir=. 5117 libname=conftest 5118 save_allow_undefined_flag=$allow_undefined_flag 5119 allow_undefined_flag= 5120 if { (eval echo configure:5121: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } 5121 then 5122 lt_cv_archive_cmds_need_lc=no 5123 else 5124 lt_cv_archive_cmds_need_lc=yes 5125 fi 5126 allow_undefined_flag=$save_allow_undefined_flag 5127 else 5128 cat conftest.err 1>&5 5129 fi 5130fi 5131 5132 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 5133 ;; 5134 esac 5135fi 5136need_lc=${lt_cv_archive_cmds_need_lc-yes} 5137 5138# The second clause should only fire when bootstrapping the 5139# libtool distribution, otherwise you forgot to ship ltmain.sh 5140# with your package, and you will get complaints that there are 5141# no rules to generate ltmain.sh. 5142if test -f "$ltmain"; then 5143 : 5144else 5145 # If there is no Makefile yet, we rely on a make rule to execute 5146 # `config.status --recheck' to rerun these tests and create the 5147 # libtool script then. 5148 test -f Makefile && make "$ltmain" 5149fi 5150 5151if test -f "$ltmain"; then 5152 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 5153 $rm -f "${ofile}T" 5154 5155 echo creating $ofile 5156 5157 # Now quote all the things that may contain metacharacters while being 5158 # careful not to overquote the AC_SUBSTed values. We take copies of the 5159 # variables and quote the copies for generation of the libtool script. 5160 for var in echo old_CC old_CFLAGS \ 5161 AR AR_FLAGS CC LD LN_S NM SHELL \ 5162 reload_flag reload_cmds wl \ 5163 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 5164 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 5165 library_names_spec soname_spec \ 5166 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 5167 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 5168 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 5169 old_striplib striplib file_magic_cmd export_symbols_cmds \ 5170 deplibs_check_method allow_undefined_flag no_undefined_flag \ 5171 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 5172 global_symbol_to_c_name_address \ 5173 hardcode_libdir_flag_spec hardcode_libdir_separator \ 5174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 5175 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 5176 5177 case $var in 5178 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 5179 old_postinstall_cmds | old_postuninstall_cmds | \ 5180 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 5181 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 5182 postinstall_cmds | postuninstall_cmds | \ 5183 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 5184 # Double-quote double-evaled strings. 5185 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 5186 ;; 5187 *) 5188 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 5189 ;; 5190 esac 5191 done 5192 5193 cat <<__EOF__ > "${ofile}T" 5194#! $SHELL 5195 5196# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 5197# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 5198# NOTE: Changes made to this file will be lost: look at ltmain.sh. 5199# 5200# Copyright (C) 1996-2000 Free Software Foundation, Inc. 5201# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 5202# 5203# This program is free software; you can redistribute it and/or modify 5204# it under the terms of the GNU General Public License as published by 5205# the Free Software Foundation; either version 2 of the License, or 5206# (at your option) any later version. 5207# 5208# This program is distributed in the hope that it will be useful, but 5209# WITHOUT ANY WARRANTY; without even the implied warranty of 5210# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 5211# General Public License for more details. 5212# 5213# You should have received a copy of the GNU General Public License 5214# along with this program; if not, write to the Free Software 5215# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 5216# 5217# As a special exception to the GNU General Public License, if you 5218# distribute this file as part of a program that contains a 5219# configuration script generated by Autoconf, you may include it under 5220# the same distribution terms that you use for the rest of that program. 5221 5222# Sed that helps us avoid accidentally triggering echo(1) options like -n. 5223Xsed="sed -e s/^X//" 5224 5225# The HP-UX ksh and POSIX shell print the target directory to stdout 5226# if CDPATH is set. 5227if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 5228 5229# ### BEGIN LIBTOOL CONFIG 5230 5231# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5232 5233# Shell to use when invoking shell scripts. 5234SHELL=$lt_SHELL 5235 5236# Whether or not to build shared libraries. 5237build_libtool_libs=$enable_shared 5238 5239# Whether or not to build static libraries. 5240build_old_libs=$enable_static 5241 5242# Whether or not to add -lc for building shared libraries. 5243build_libtool_need_lc=$need_lc 5244 5245# Whether or not to optimize for fast installation. 5246fast_install=$enable_fast_install 5247 5248# The host system. 5249host_alias=$host_alias 5250host=$host 5251 5252# An echo program that does not interpret backslashes. 5253echo=$lt_echo 5254 5255# The archiver. 5256AR=$lt_AR 5257AR_FLAGS=$lt_AR_FLAGS 5258 5259# The default C compiler. 5260CC=$lt_CC 5261 5262# Is the compiler the GNU C compiler? 5263with_gcc=$GCC 5264 5265# The linker used to build libraries. 5266LD=$lt_LD 5267 5268# Whether we need hard or soft links. 5269LN_S=$lt_LN_S 5270 5271# A BSD-compatible nm program. 5272NM=$lt_NM 5273 5274# A symbol stripping program 5275STRIP=$STRIP 5276 5277# Used to examine libraries when file_magic_cmd begins "file" 5278MAGIC_CMD=$MAGIC_CMD 5279 5280# Used on cygwin: DLL creation program. 5281DLLTOOL="$DLLTOOL" 5282 5283# Used on cygwin: object dumper. 5284OBJDUMP="$OBJDUMP" 5285 5286# Used on cygwin: assembler. 5287AS="$AS" 5288 5289# The name of the directory that contains temporary libtool files. 5290objdir=$objdir 5291 5292# How to create reloadable object files. 5293reload_flag=$lt_reload_flag 5294reload_cmds=$lt_reload_cmds 5295 5296# How to pass a linker flag through the compiler. 5297wl=$lt_wl 5298 5299# Object file suffix (normally "o"). 5300objext="$ac_objext" 5301 5302# Old archive suffix (normally "a"). 5303libext="$libext" 5304 5305# Executable file suffix (normally ""). 5306exeext="$exeext" 5307 5308# Additional compiler flags for building library objects. 5309pic_flag=$lt_pic_flag 5310pic_mode=$pic_mode 5311 5312# Does compiler simultaneously support -c and -o options? 5313compiler_c_o=$lt_compiler_c_o 5314 5315# Can we write directly to a .lo ? 5316compiler_o_lo=$lt_compiler_o_lo 5317 5318# Must we lock files when doing compilation ? 5319need_locks=$lt_need_locks 5320 5321# Do we need the lib prefix for modules? 5322need_lib_prefix=$need_lib_prefix 5323 5324# Do we need a version for libraries? 5325need_version=$need_version 5326 5327# Whether dlopen is supported. 5328dlopen_support=$enable_dlopen 5329 5330# Whether dlopen of programs is supported. 5331dlopen_self=$enable_dlopen_self 5332 5333# Whether dlopen of statically linked programs is supported. 5334dlopen_self_static=$enable_dlopen_self_static 5335 5336# Compiler flag to prevent dynamic linking. 5337link_static_flag=$lt_link_static_flag 5338 5339# Compiler flag to turn off builtin functions. 5340no_builtin_flag=$lt_no_builtin_flag 5341 5342# Compiler flag to allow reflexive dlopens. 5343export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 5344 5345# Compiler flag to generate shared objects directly from archives. 5346whole_archive_flag_spec=$lt_whole_archive_flag_spec 5347 5348# Compiler flag to generate thread-safe objects. 5349thread_safe_flag_spec=$lt_thread_safe_flag_spec 5350 5351# Library versioning type. 5352version_type=$version_type 5353 5354# Format of library name prefix. 5355libname_spec=$lt_libname_spec 5356 5357# List of archive names. First name is the real one, the rest are links. 5358# The last name is the one that the linker finds with -lNAME. 5359library_names_spec=$lt_library_names_spec 5360 5361# The coded name of the library, if different from the real name. 5362soname_spec=$lt_soname_spec 5363 5364# Commands used to build and install an old-style archive. 5365RANLIB=$lt_RANLIB 5366old_archive_cmds=$lt_old_archive_cmds 5367old_postinstall_cmds=$lt_old_postinstall_cmds 5368old_postuninstall_cmds=$lt_old_postuninstall_cmds 5369 5370# Create an old-style archive from a shared archive. 5371old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 5372 5373# Create a temporary old-style archive to link instead of a shared archive. 5374old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 5375 5376# Commands used to build and install a shared archive. 5377archive_cmds=$lt_archive_cmds 5378archive_expsym_cmds=$lt_archive_expsym_cmds 5379postinstall_cmds=$lt_postinstall_cmds 5380postuninstall_cmds=$lt_postuninstall_cmds 5381 5382# Commands to strip libraries. 5383old_striplib=$lt_old_striplib 5384striplib=$lt_striplib 5385 5386# Method to check whether dependent libraries are shared objects. 5387deplibs_check_method=$lt_deplibs_check_method 5388 5389# Command to use when deplibs_check_method == file_magic. 5390file_magic_cmd=$lt_file_magic_cmd 5391 5392# Flag that allows shared libraries with undefined symbols to be built. 5393allow_undefined_flag=$lt_allow_undefined_flag 5394 5395# Flag that forces no undefined symbols. 5396no_undefined_flag=$lt_no_undefined_flag 5397 5398# Commands used to finish a libtool library installation in a directory. 5399finish_cmds=$lt_finish_cmds 5400 5401# Same as above, but a single script fragment to be evaled but not shown. 5402finish_eval=$lt_finish_eval 5403 5404# Take the output of nm and produce a listing of raw symbols and C names. 5405global_symbol_pipe=$lt_global_symbol_pipe 5406 5407# Transform the output of nm in a proper C declaration 5408global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 5409 5410# Transform the output of nm in a C name address pair 5411global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 5412 5413# This is the shared library runtime path variable. 5414runpath_var=$runpath_var 5415 5416# This is the shared library path variable. 5417shlibpath_var=$shlibpath_var 5418 5419# Is shlibpath searched before the hard-coded library search path? 5420shlibpath_overrides_runpath=$shlibpath_overrides_runpath 5421 5422# How to hardcode a shared library path into an executable. 5423hardcode_action=$hardcode_action 5424 5425# Whether we should hardcode library paths into libraries. 5426hardcode_into_libs=$hardcode_into_libs 5427 5428# Flag to hardcode \$libdir into a binary during linking. 5429# This must work even if \$libdir does not exist. 5430hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 5431 5432# Whether we need a single -rpath flag with a separated argument. 5433hardcode_libdir_separator=$lt_hardcode_libdir_separator 5434 5435# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 5436# resulting binary. 5437hardcode_direct=$hardcode_direct 5438 5439# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 5440# resulting binary. 5441hardcode_minus_L=$hardcode_minus_L 5442 5443# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 5444# the resulting binary. 5445hardcode_shlibpath_var=$hardcode_shlibpath_var 5446 5447# Variables whose values should be saved in libtool wrapper scripts and 5448# restored at relink time. 5449variables_saved_for_relink="$variables_saved_for_relink" 5450 5451# Whether libtool must link a program against all its dependency libraries. 5452link_all_deplibs=$link_all_deplibs 5453 5454# Compile-time system search path for libraries 5455sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 5456 5457# Run-time system search path for libraries 5458sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 5459 5460# Fix the shell variable \$srcfile for the compiler. 5461fix_srcfile_path="$fix_srcfile_path" 5462 5463# Set to yes if exported symbols are required. 5464always_export_symbols=$always_export_symbols 5465 5466# The commands to list exported symbols. 5467export_symbols_cmds=$lt_export_symbols_cmds 5468 5469# The commands to extract the exported symbol list from a shared archive. 5470extract_expsyms_cmds=$lt_extract_expsyms_cmds 5471 5472# Symbols that should not be listed in the preloaded symbols. 5473exclude_expsyms=$lt_exclude_expsyms 5474 5475# Symbols that must always be exported. 5476include_expsyms=$lt_include_expsyms 5477 5478# ### END LIBTOOL CONFIG 5479 5480__EOF__ 5481 5482 case $host_os in 5483 aix3*) 5484 cat <<\EOF >> "${ofile}T" 5485 5486# AIX sometimes has problems with the GCC collect2 program. For some 5487# reason, if we set the COLLECT_NAMES environment variable, the problems 5488# vanish in a puff of smoke. 5489if test "X${COLLECT_NAMES+set}" != Xset; then 5490 COLLECT_NAMES= 5491 export COLLECT_NAMES 5492fi 5493EOF 5494 ;; 5495 esac 5496 5497 case $host_os in 5498 cygwin* | mingw* | pw32* | os2*) 5499 cat <<'EOF' >> "${ofile}T" 5500 # This is a source program that is used to create dlls on Windows 5501 # Don't remove nor modify the starting and closing comments 5502# /* ltdll.c starts here */ 5503# #define WIN32_LEAN_AND_MEAN 5504# #include <windows.h> 5505# #undef WIN32_LEAN_AND_MEAN 5506# #include <stdio.h> 5507# 5508# #ifndef __CYGWIN__ 5509# # ifdef __CYGWIN32__ 5510# # define __CYGWIN__ __CYGWIN32__ 5511# # endif 5512# #endif 5513# 5514# #ifdef __cplusplus 5515# extern "C" { 5516# #endif 5517# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 5518# #ifdef __cplusplus 5519# } 5520# #endif 5521# 5522# #ifdef __CYGWIN__ 5523# #include <cygwin/cygwin_dll.h> 5524# DECLARE_CYGWIN_DLL( DllMain ); 5525# #endif 5526# HINSTANCE __hDllInstance_base; 5527# 5528# BOOL APIENTRY 5529# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 5530# { 5531# __hDllInstance_base = hInst; 5532# return TRUE; 5533# } 5534# /* ltdll.c ends here */ 5535 # This is a source program that is used to create import libraries 5536 # on Windows for dlls which lack them. Don't remove nor modify the 5537 # starting and closing comments 5538# /* impgen.c starts here */ 5539# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 5540# 5541# This file is part of GNU libtool. 5542# 5543# This program is free software; you can redistribute it and/or modify 5544# it under the terms of the GNU General Public License as published by 5545# the Free Software Foundation; either version 2 of the License, or 5546# (at your option) any later version. 5547# 5548# This program is distributed in the hope that it will be useful, 5549# but WITHOUT ANY WARRANTY; without even the implied warranty of 5550# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5551# GNU General Public License for more details. 5552# 5553# You should have received a copy of the GNU General Public License 5554# along with this program; if not, write to the Free Software 5555# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 5556# */ 5557# 5558# #include <stdio.h> /* for printf() */ 5559# #include <unistd.h> /* for open(), lseek(), read() */ 5560# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 5561# #include <string.h> /* for strdup() */ 5562# 5563# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 5564# #ifndef O_BINARY 5565# #define O_BINARY 0 5566# #endif 5567# 5568# static unsigned int 5569# pe_get16 (fd, offset) 5570# int fd; 5571# int offset; 5572# { 5573# unsigned char b[2]; 5574# lseek (fd, offset, SEEK_SET); 5575# read (fd, b, 2); 5576# return b[0] + (b[1]<<8); 5577# } 5578# 5579# static unsigned int 5580# pe_get32 (fd, offset) 5581# int fd; 5582# int offset; 5583# { 5584# unsigned char b[4]; 5585# lseek (fd, offset, SEEK_SET); 5586# read (fd, b, 4); 5587# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 5588# } 5589# 5590# static unsigned int 5591# pe_as32 (ptr) 5592# void *ptr; 5593# { 5594# unsigned char *b = ptr; 5595# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 5596# } 5597# 5598# int 5599# main (argc, argv) 5600# int argc; 5601# char *argv[]; 5602# { 5603# int dll; 5604# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 5605# unsigned long export_rva, export_size, nsections, secptr, expptr; 5606# unsigned long name_rvas, nexp; 5607# unsigned char *expdata, *erva; 5608# char *filename, *dll_name; 5609# 5610# filename = argv[1]; 5611# 5612# dll = open(filename, O_RDONLY|O_BINARY); 5613# if (dll < 1) 5614# return 1; 5615# 5616# dll_name = filename; 5617# 5618# for (i=0; filename[i]; i++) 5619# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 5620# dll_name = filename + i +1; 5621# 5622# pe_header_offset = pe_get32 (dll, 0x3c); 5623# opthdr_ofs = pe_header_offset + 4 + 20; 5624# num_entries = pe_get32 (dll, opthdr_ofs + 92); 5625# 5626# if (num_entries < 1) /* no exports */ 5627# return 1; 5628# 5629# export_rva = pe_get32 (dll, opthdr_ofs + 96); 5630# export_size = pe_get32 (dll, opthdr_ofs + 100); 5631# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 5632# secptr = (pe_header_offset + 4 + 20 + 5633# pe_get16 (dll, pe_header_offset + 4 + 16)); 5634# 5635# expptr = 0; 5636# for (i = 0; i < nsections; i++) 5637# { 5638# char sname[8]; 5639# unsigned long secptr1 = secptr + 40 * i; 5640# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 5641# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 5642# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 5643# lseek(dll, secptr1, SEEK_SET); 5644# read(dll, sname, 8); 5645# if (vaddr <= export_rva && vaddr+vsize > export_rva) 5646# { 5647# expptr = fptr + (export_rva - vaddr); 5648# if (export_rva + export_size > vaddr + vsize) 5649# export_size = vsize - (export_rva - vaddr); 5650# break; 5651# } 5652# } 5653# 5654# expdata = (unsigned char*)malloc(export_size); 5655# lseek (dll, expptr, SEEK_SET); 5656# read (dll, expdata, export_size); 5657# erva = expdata - export_rva; 5658# 5659# nexp = pe_as32 (expdata+24); 5660# name_rvas = pe_as32 (expdata+32); 5661# 5662# printf ("EXPORTS\n"); 5663# for (i = 0; i<nexp; i++) 5664# { 5665# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 5666# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 5667# } 5668# 5669# return 0; 5670# } 5671# /* impgen.c ends here */ 5672 5673EOF 5674 ;; 5675 esac 5676 5677 # We use sed instead of cat because bash on DJGPP gets confused if 5678 # if finds mixed CR/LF and LF-only lines. Since sed operates in 5679 # text mode, it properly converts lines to CR/LF. This bash problem 5680 # is reportedly fixed, but why not run on old versions too? 5681 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 5682 5683 mv -f "${ofile}T" "$ofile" || \ 5684 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 5685 chmod +x "$ofile" 5686fi 5687 5688 5689 5690 5691 5692# This can be used to rebuild libtool when needed 5693LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 5694 5695# Always use our own libtool. 5696LIBTOOL='$(SHELL) $(top_builddir)/libtool' 5697 5698# Prevent multiple expansion 5699 5700 5701 5702 5703echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6 5704echo "configure:5706: checking for cos in -lm" >&5 5705ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'` 5706if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5707 echo $ac_n "(cached) $ac_c" 1>&6 5708else 5709 ac_save_LIBS="$LIBS" 5710LIBS="-lm $LIBS" 5711cat > conftest.$ac_ext <<EOF 5712#line 5714 "configure" 5713#include "confdefs.h" 5714/* Override any gcc2 internal prototype to avoid an error. */ 5715/* We use char because int might match the return type of a gcc2 5716 builtin and then its argument prototype would still apply. */ 5717char cos(); 5718 5719int main() { 5720cos() 5721; return 0; } 5722EOF 5723if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5724 rm -rf conftest* 5725 eval "ac_cv_lib_$ac_lib_var=yes" 5726else 5727 echo "configure: failed program was:" >&5 5728 cat conftest.$ac_ext >&5 5729 rm -rf conftest* 5730 eval "ac_cv_lib_$ac_lib_var=no" 5731fi 5732rm -f conftest* 5733LIBS="$ac_save_LIBS" 5734 5735fi 5736if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5737 echo "$ac_t""yes" 1>&6 5738 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 5739 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 5740 cat >> confdefs.h <<EOF 5741#define $ac_tr_lib 1 5742EOF 5743 5744 LIBS="-lm $LIBS" 5745 5746else 5747 echo "$ac_t""no" 1>&6 5748fi 5749 5750 5751echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 5752echo "configure:5754: checking for ANSI C header files" >&5 5753if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 5754 echo $ac_n "(cached) $ac_c" 1>&6 5755else 5756 cat > conftest.$ac_ext <<EOF 5757#line 5759 "configure" 5758#include "confdefs.h" 5759#include <stdlib.h> 5760#include <stdarg.h> 5761#include <string.h> 5762#include <float.h> 5763EOF 5764ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5765{ (eval echo configure:5767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5766ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5767if test -z "$ac_err"; then 5768 rm -rf conftest* 5769 ac_cv_header_stdc=yes 5770else 5771 echo "$ac_err" >&5 5772 echo "configure: failed program was:" >&5 5773 cat conftest.$ac_ext >&5 5774 rm -rf conftest* 5775 ac_cv_header_stdc=no 5776fi 5777rm -f conftest* 5778 5779if test $ac_cv_header_stdc = yes; then 5780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5781cat > conftest.$ac_ext <<EOF 5782#line 5784 "configure" 5783#include "confdefs.h" 5784#include <string.h> 5785EOF 5786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5787 egrep "memchr" >/dev/null 2>&1; then 5788 : 5789else 5790 rm -rf conftest* 5791 ac_cv_header_stdc=no 5792fi 5793rm -f conftest* 5794 5795fi 5796 5797if test $ac_cv_header_stdc = yes; then 5798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5799cat > conftest.$ac_ext <<EOF 5800#line 5802 "configure" 5801#include "confdefs.h" 5802#include <stdlib.h> 5803EOF 5804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5805 egrep "free" >/dev/null 2>&1; then 5806 : 5807else 5808 rm -rf conftest* 5809 ac_cv_header_stdc=no 5810fi 5811rm -f conftest* 5812 5813fi 5814 5815if test $ac_cv_header_stdc = yes; then 5816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5817if test "$cross_compiling" = yes; then 5818 : 5819else 5820 cat > conftest.$ac_ext <<EOF 5821#line 5823 "configure" 5822#include "confdefs.h" 5823#include <ctype.h> 5824#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5825#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5827int main () { int i; for (i = 0; i < 256; i++) 5828if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 5829exit (0); } 5830 5831EOF 5832if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5833then 5834 : 5835else 5836 echo "configure: failed program was:" >&5 5837 cat conftest.$ac_ext >&5 5838 rm -fr conftest* 5839 ac_cv_header_stdc=no 5840fi 5841rm -fr conftest* 5842fi 5843 5844fi 5845fi 5846 5847echo "$ac_t""$ac_cv_header_stdc" 1>&6 5848if test $ac_cv_header_stdc = yes; then 5849 cat >> confdefs.h <<\EOF 5850#define STDC_HEADERS 1 5851EOF 5852 5853fi 5854 5855 5856echo $ac_n "checking for working const""... $ac_c" 1>&6 5857echo "configure:5859: checking for working const" >&5 5858if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 5859 echo $ac_n "(cached) $ac_c" 1>&6 5860else 5861 cat > conftest.$ac_ext <<EOF 5862#line 5864 "configure" 5863#include "confdefs.h" 5864 5865int main() { 5866 5867/* Ultrix mips cc rejects this. */ 5868typedef int charset[2]; const charset x; 5869/* SunOS 4.1.1 cc rejects this. */ 5870char const *const *ccp; 5871char **p; 5872/* NEC SVR4.0.2 mips cc rejects this. */ 5873struct point {int x, y;}; 5874static struct point const zero = {0,0}; 5875/* AIX XL C 1.02.0.0 rejects this. 5876 It does not let you subtract one const X* pointer from another in an arm 5877 of an if-expression whose if-part is not a constant expression */ 5878const char *g = "string"; 5879ccp = &g + (g ? g-g : 0); 5880/* HPUX 7.0 cc rejects these. */ 5881++ccp; 5882p = (char**) ccp; 5883ccp = (char const *const *) p; 5884{ /* SCO 3.2v4 cc rejects this. */ 5885 char *t; 5886 char const *s = 0 ? (char *) 0 : (char const *) 0; 5887 5888 *t++ = 0; 5889} 5890{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5891 int x[] = {25, 17}; 5892 const int *foo = &x[0]; 5893 ++foo; 5894} 5895{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5896 typedef const int *iptr; 5897 iptr p = 0; 5898 ++p; 5899} 5900{ /* AIX XL C 1.02.0.0 rejects this saying 5901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5902 struct s { int j; const int *ap[3]; }; 5903 struct s *b; b->j = 5; 5904} 5905{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5906 const int foo = 10; 5907} 5908 5909; return 0; } 5910EOF 5911if { (eval echo configure:5913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5912 rm -rf conftest* 5913 ac_cv_c_const=yes 5914else 5915 echo "configure: failed program was:" >&5 5916 cat conftest.$ac_ext >&5 5917 rm -rf conftest* 5918 ac_cv_c_const=no 5919fi 5920rm -f conftest* 5921fi 5922 5923echo "$ac_t""$ac_cv_c_const" 1>&6 5924if test $ac_cv_c_const = no; then 5925 cat >> confdefs.h <<\EOF 5926#define const 5927EOF 5928 5929fi 5930 5931 5932echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 5933echo "configure:5935: checking whether byte ordering is bigendian" >&5 5934if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 5935 echo $ac_n "(cached) $ac_c" 1>&6 5936else 5937 ac_cv_c_bigendian=unknown 5938# See if sys/param.h defines the BYTE_ORDER macro. 5939cat > conftest.$ac_ext <<EOF 5940#line 5942 "configure" 5941#include "confdefs.h" 5942#include <sys/types.h> 5943#include <sys/param.h> 5944int main() { 5945 5946#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 5947 bogus endian macros 5948#endif 5949; return 0; } 5950EOF 5951if { (eval echo configure:5953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5952 rm -rf conftest* 5953 # It does; now see whether it defined to BIG_ENDIAN or not. 5954cat > conftest.$ac_ext <<EOF 5955#line 5957 "configure" 5956#include "confdefs.h" 5957#include <sys/types.h> 5958#include <sys/param.h> 5959int main() { 5960 5961#if BYTE_ORDER != BIG_ENDIAN 5962 not big endian 5963#endif 5964; return 0; } 5965EOF 5966if { (eval echo configure:5968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5967 rm -rf conftest* 5968 ac_cv_c_bigendian=yes 5969else 5970 echo "configure: failed program was:" >&5 5971 cat conftest.$ac_ext >&5 5972 rm -rf conftest* 5973 ac_cv_c_bigendian=no 5974fi 5975rm -f conftest* 5976else 5977 echo "configure: failed program was:" >&5 5978 cat conftest.$ac_ext >&5 5979fi 5980rm -f conftest* 5981if test $ac_cv_c_bigendian = unknown; then 5982if test "$cross_compiling" = yes; then 5983 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 5984else 5985 cat > conftest.$ac_ext <<EOF 5986#line 5988 "configure" 5987#include "confdefs.h" 5988main () { 5989 /* Are we little or big endian? From Harbison&Steele. */ 5990 union 5991 { 5992 long l; 5993 char c[sizeof (long)]; 5994 } u; 5995 u.l = 1; 5996 exit (u.c[sizeof (long) - 1] == 1); 5997} 5998EOF 5999if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6000then 6001 ac_cv_c_bigendian=no 6002else 6003 echo "configure: failed program was:" >&5 6004 cat conftest.$ac_ext >&5 6005 rm -fr conftest* 6006 ac_cv_c_bigendian=yes 6007fi 6008rm -fr conftest* 6009fi 6010 6011fi 6012fi 6013 6014echo "$ac_t""$ac_cv_c_bigendian" 1>&6 6015if test $ac_cv_c_bigendian = yes; then 6016 cat >> confdefs.h <<\EOF 6017#define WORDS_BIGENDIAN 1 6018EOF 6019 6020fi 6021 6022 6023for ac_hdr in sys/soundcard.h machine/soundcard.h 6024do 6025ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6026echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6027echo "configure:6029: checking for $ac_hdr" >&5 6028if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6029 echo $ac_n "(cached) $ac_c" 1>&6 6030else 6031 cat > conftest.$ac_ext <<EOF 6032#line 6034 "configure" 6033#include "confdefs.h" 6034#include <$ac_hdr> 6035EOF 6036ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6037{ (eval echo configure:6039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6038ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6039if test -z "$ac_err"; then 6040 rm -rf conftest* 6041 eval "ac_cv_header_$ac_safe=yes" 6042else 6043 echo "$ac_err" >&5 6044 echo "configure: failed program was:" >&5 6045 cat conftest.$ac_ext >&5 6046 rm -rf conftest* 6047 eval "ac_cv_header_$ac_safe=no" 6048fi 6049rm -f conftest* 6050fi 6051if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6052 echo "$ac_t""yes" 1>&6 6053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 6054 cat >> confdefs.h <<EOF 6055#define $ac_tr_hdr 1 6056EOF 6057 6058else 6059 echo "$ac_t""no" 1>&6 6060fi 6061done 6062 6063if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \ 6064 test "${ac_cv_header_machine_soundcard_h}" = "yes"; then 6065 cat >> confdefs.h <<\EOF 6066#define DRIVER_OSS 1 6067EOF 6068 6069fi 6070 6071for ac_hdr in sys/audioio.h 6072do 6073ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6074echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6075echo "configure:6077: checking for $ac_hdr" >&5 6076if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6077 echo $ac_n "(cached) $ac_c" 1>&6 6078else 6079 cat > conftest.$ac_ext <<EOF 6080#line 6082 "configure" 6081#include "confdefs.h" 6082#include <$ac_hdr> 6083EOF 6084ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6085{ (eval echo configure:6087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6086ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6087if test -z "$ac_err"; then 6088 rm -rf conftest* 6089 eval "ac_cv_header_$ac_safe=yes" 6090else 6091 echo "$ac_err" >&5 6092 echo "configure: failed program was:" >&5 6093 cat conftest.$ac_ext >&5 6094 rm -rf conftest* 6095 eval "ac_cv_header_$ac_safe=no" 6096fi 6097rm -f conftest* 6098fi 6099if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6100 echo "$ac_t""yes" 1>&6 6101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 6102 cat >> confdefs.h <<EOF 6103#define $ac_tr_hdr 1 6104EOF 6105 6106else 6107 echo "$ac_t""no" 1>&6 6108fi 6109done 6110 6111if test "${ac_cv_header_sys_audioio_h}" = "yes"; then 6112 cat >> confdefs.h <<\EOF 6113#define DRIVER_SOLARIS_AUDIO 1 6114EOF 6115 6116fi 6117 6118if test "x${prefix}" = "xNONE"; then 6119 PACKAGE_PLUGIN_DIR="${ac_default_prefix}/lib/${PACKAGE}" 6120else 6121 PACKAGE_PLUGIN_DIR="${prefix}/lib/${PACKAGE}" 6122fi 6123cat >> confdefs.h <<EOF 6124#define PACKAGE_PLUGIN_DIR "${PACKAGE_PLUGIN_DIR}" 6125EOF 6126 6127 6128 6129trap '' 1 2 15 6130cat > confcache <<\EOF 6131# This file is a shell script that caches the results of configure 6132# tests run on this system so they can be shared between configure 6133# scripts and configure runs. It is not useful on other systems. 6134# If it contains results you don't want to keep, you may remove or edit it. 6135# 6136# By default, configure uses ./config.cache as the cache file, 6137# creating it if it does not exist already. You can give configure 6138# the --cache-file=FILE option to use a different cache file; that is 6139# what configure does when it calls configure scripts in 6140# subdirectories, so they share the cache. 6141# Giving --cache-file=/dev/null disables caching, for debugging configure. 6142# config.status only pays attention to the cache file if you give it the 6143# --recheck option to rerun configure. 6144# 6145EOF 6146# The following way of writing the cache mishandles newlines in values, 6147# but we know of no workaround that is simple, portable, and efficient. 6148# So, don't put newlines in cache variables' values. 6149# Ultrix sh set writes to stderr and can't be redirected directly, 6150# and sets the high bit in the cache file unless we assign to the vars. 6151(set) 2>&1 | 6152 case `(ac_space=' '; set | grep ac_space) 2>&1` in 6153 *ac_space=\ *) 6154 # `set' does not quote correctly, so add quotes (double-quote substitution 6155 # turns \\\\ into \\, and sed turns \\ into \). 6156 sed -n \ 6157 -e "s/'/'\\\\''/g" \ 6158 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 6159 ;; 6160 *) 6161 # `set' quotes correctly as required by POSIX, so do not add quotes. 6162 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 6163 ;; 6164 esac >> confcache 6165if cmp -s $cache_file confcache; then 6166 : 6167else 6168 if test -w $cache_file; then 6169 echo "updating cache $cache_file" 6170 cat confcache > $cache_file 6171 else 6172 echo "not updating unwritable cache $cache_file" 6173 fi 6174fi 6175rm -f confcache 6176 6177trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 6178 6179test "x$prefix" = xNONE && prefix=$ac_default_prefix 6180# Let make expand exec_prefix. 6181test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6182 6183# Any assignment to VPATH causes Sun make to only execute 6184# the first set of double-colon rules, so remove it if not needed. 6185# If there is a colon in the path, we need to keep it. 6186if test "x$srcdir" = x.; then 6187 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 6188fi 6189 6190trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 6191 6192DEFS=-DHAVE_CONFIG_H 6193 6194# Without the "./", some shells look in PATH for config.status. 6195: ${CONFIG_STATUS=./config.status} 6196 6197echo creating $CONFIG_STATUS 6198rm -f $CONFIG_STATUS 6199cat > $CONFIG_STATUS <<EOF 6200#! /bin/sh 6201# Generated automatically by configure. 6202# Run this file to recreate the current configuration. 6203# This directory was configured as follows, 6204# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 6205# 6206# $0 $ac_configure_args 6207# 6208# Compiler output produced by configure, useful for debugging 6209# configure, is in ./config.log if it exists. 6210 6211ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 6212for ac_option 6213do 6214 case "\$ac_option" in 6215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6216 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 6217 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 6218 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 6219 echo "$CONFIG_STATUS generated by autoconf version 2.13" 6220 exit 0 ;; 6221 -help | --help | --hel | --he | --h) 6222 echo "\$ac_cs_usage"; exit 0 ;; 6223 *) echo "\$ac_cs_usage"; exit 1 ;; 6224 esac 6225done 6226 6227ac_given_srcdir=$srcdir 6228ac_given_INSTALL="$INSTALL" 6229 6230trap 'rm -fr `echo " 6231Makefile 6232src/Makefile 6233src/mpeg/Makefile 6234src/tier1/Makefile 6235src/tier2/Makefile 6236src/plugins/Makefile 6237src/plugins_brief/Makefile 6238VisualC++/Makefile 6239demos/Makefile 6240Maaate.spec 6241 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 6242EOF 6243cat >> $CONFIG_STATUS <<EOF 6244 6245# Protect against being on the right side of a sed subst in config.status. 6246sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 6247 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 6248$ac_vpsub 6249$extrasub 6250s%@SHELL@%$SHELL%g 6251s%@CFLAGS@%$CFLAGS%g 6252s%@CPPFLAGS@%$CPPFLAGS%g 6253s%@CXXFLAGS@%$CXXFLAGS%g 6254s%@FFLAGS@%$FFLAGS%g 6255s%@DEFS@%$DEFS%g 6256s%@LDFLAGS@%$LDFLAGS%g 6257s%@LIBS@%$LIBS%g 6258s%@exec_prefix@%$exec_prefix%g 6259s%@prefix@%$prefix%g 6260s%@program_transform_name@%$program_transform_name%g 6261s%@bindir@%$bindir%g 6262s%@sbindir@%$sbindir%g 6263s%@libexecdir@%$libexecdir%g 6264s%@datadir@%$datadir%g 6265s%@sysconfdir@%$sysconfdir%g 6266s%@sharedstatedir@%$sharedstatedir%g 6267s%@localstatedir@%$localstatedir%g 6268s%@libdir@%$libdir%g 6269s%@includedir@%$includedir%g 6270s%@oldincludedir@%$oldincludedir%g 6271s%@infodir@%$infodir%g 6272s%@mandir@%$mandir%g 6273s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 6274s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 6275s%@INSTALL_DATA@%$INSTALL_DATA%g 6276s%@PACKAGE@%$PACKAGE%g 6277s%@VERSION@%$VERSION%g 6278s%@EXEEXT@%$EXEEXT%g 6279s%@OBJEXT@%$OBJEXT%g 6280s%@ACLOCAL@%$ACLOCAL%g 6281s%@AUTOCONF@%$AUTOCONF%g 6282s%@AUTOMAKE@%$AUTOMAKE%g 6283s%@AUTOHEADER@%$AUTOHEADER%g 6284s%@MAKEINFO@%$MAKEINFO%g 6285s%@AMTAR@%$AMTAR%g 6286s%@install_sh@%$install_sh%g 6287s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g 6288s%@AWK@%$AWK%g 6289s%@SET_MAKE@%$SET_MAKE%g 6290s%@AMDEP_TRUE@%$AMDEP_TRUE%g 6291s%@AMDEP_FALSE@%$AMDEP_FALSE%g 6292s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g 6293s%@DEPDIR@%$DEPDIR%g 6294s%@CXX@%$CXX%g 6295s%@am__include@%$am__include%g 6296s%@am__quote@%$am__quote%g 6297s%@CXXDEPMODE@%$CXXDEPMODE%g 6298s%@host@%$host%g 6299s%@host_alias@%$host_alias%g 6300s%@host_cpu@%$host_cpu%g 6301s%@host_vendor@%$host_vendor%g 6302s%@host_os@%$host_os%g 6303s%@build@%$build%g 6304s%@build_alias@%$build_alias%g 6305s%@build_cpu@%$build_cpu%g 6306s%@build_vendor@%$build_vendor%g 6307s%@build_os@%$build_os%g 6308s%@CC@%$CC%g 6309s%@CCDEPMODE@%$CCDEPMODE%g 6310s%@LN_S@%$LN_S%g 6311s%@ECHO@%$ECHO%g 6312s%@RANLIB@%$RANLIB%g 6313s%@STRIP@%$STRIP%g 6314s%@CPP@%$CPP%g 6315s%@LIBTOOL@%$LIBTOOL%g 6316s%@PACKAGE_PLUGIN_DIR@%$PACKAGE_PLUGIN_DIR%g 6317 6318CEOF 6319EOF 6320 6321cat >> $CONFIG_STATUS <<\EOF 6322 6323# Split the substitutions into bite-sized pieces for seds with 6324# small command number limits, like on Digital OSF/1 and HP-UX. 6325ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 6326ac_file=1 # Number of current file. 6327ac_beg=1 # First line for current file. 6328ac_end=$ac_max_sed_cmds # Line after last line for current file. 6329ac_more_lines=: 6330ac_sed_cmds="" 6331while $ac_more_lines; do 6332 if test $ac_beg -gt 1; then 6333 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 6334 else 6335 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 6336 fi 6337 if test ! -s conftest.s$ac_file; then 6338 ac_more_lines=false 6339 rm -f conftest.s$ac_file 6340 else 6341 if test -z "$ac_sed_cmds"; then 6342 ac_sed_cmds="sed -f conftest.s$ac_file" 6343 else 6344 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 6345 fi 6346 ac_file=`expr $ac_file + 1` 6347 ac_beg=$ac_end 6348 ac_end=`expr $ac_end + $ac_max_sed_cmds` 6349 fi 6350done 6351if test -z "$ac_sed_cmds"; then 6352 ac_sed_cmds=cat 6353fi 6354EOF 6355 6356cat >> $CONFIG_STATUS <<EOF 6357 6358CONFIG_FILES=\${CONFIG_FILES-"Makefile 6359src/Makefile 6360src/mpeg/Makefile 6361src/tier1/Makefile 6362src/tier2/Makefile 6363src/plugins/Makefile 6364src/plugins_brief/Makefile 6365VisualC++/Makefile 6366demos/Makefile 6367Maaate.spec 6368"} 6369EOF 6370cat >> $CONFIG_STATUS <<\EOF 6371for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 6372 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6373 case "$ac_file" in 6374 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 6375 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 6376 *) ac_file_in="${ac_file}.in" ;; 6377 esac 6378 6379 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 6380 6381 # Remove last slash and all that follows it. Not all systems have dirname. 6382 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 6383 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 6384 # The file is in a subdirectory. 6385 test ! -d "$ac_dir" && mkdir "$ac_dir" 6386 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 6387 # A "../" for each directory in $ac_dir_suffix. 6388 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 6389 else 6390 ac_dir_suffix= ac_dots= 6391 fi 6392 6393 case "$ac_given_srcdir" in 6394 .) srcdir=. 6395 if test -z "$ac_dots"; then top_srcdir=. 6396 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 6397 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 6398 *) # Relative path. 6399 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 6400 top_srcdir="$ac_dots$ac_given_srcdir" ;; 6401 esac 6402 6403 case "$ac_given_INSTALL" in 6404 [/$]*) INSTALL="$ac_given_INSTALL" ;; 6405 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 6406 esac 6407 6408 echo creating "$ac_file" 6409 rm -f "$ac_file" 6410 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 6411 case "$ac_file" in 6412 *Makefile*) ac_comsub="1i\\ 6413# $configure_input" ;; 6414 *) ac_comsub= ;; 6415 esac 6416 6417 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 6418 sed -e "$ac_comsub 6419s%@configure_input@%$configure_input%g 6420s%@srcdir@%$srcdir%g 6421s%@top_srcdir@%$top_srcdir%g 6422s%@INSTALL@%$INSTALL%g 6423" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 6424fi; done 6425rm -f conftest.s* 6426 6427# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 6428# NAME is the cpp macro being defined and VALUE is the value it is being given. 6429# 6430# ac_d sets the value in "#define NAME VALUE" lines. 6431ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 6432ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 6433ac_dC='\3' 6434ac_dD='%g' 6435# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 6436ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6437ac_uB='\([ ]\)%\1#\2define\3' 6438ac_uC=' ' 6439ac_uD='\4%g' 6440# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 6441ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6442ac_eB='$%\1#\2define\3' 6443ac_eC=' ' 6444ac_eD='%g' 6445 6446if test "${CONFIG_HEADERS+set}" != set; then 6447EOF 6448cat >> $CONFIG_STATUS <<EOF 6449 CONFIG_HEADERS="config.h" 6450EOF 6451cat >> $CONFIG_STATUS <<\EOF 6452fi 6453for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 6454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6455 case "$ac_file" in 6456 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 6457 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 6458 *) ac_file_in="${ac_file}.in" ;; 6459 esac 6460 6461 echo creating $ac_file 6462 6463 rm -f conftest.frag conftest.in conftest.out 6464 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 6465 cat $ac_file_inputs > conftest.in 6466 6467EOF 6468 6469# Transform confdefs.h into a sed script conftest.vals that substitutes 6470# the proper values into config.h.in to produce config.h. And first: 6471# Protect against being on the right side of a sed subst in config.status. 6472# Protect against being in an unquoted here document in config.status. 6473rm -f conftest.vals 6474cat > conftest.hdr <<\EOF 6475s/[\\&%]/\\&/g 6476s%[\\$`]%\\&%g 6477s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 6478s%ac_d%ac_u%gp 6479s%ac_u%ac_e%gp 6480EOF 6481sed -n -f conftest.hdr confdefs.h > conftest.vals 6482rm -f conftest.hdr 6483 6484# This sed command replaces #undef with comments. This is necessary, for 6485# example, in the case of _POSIX_SOURCE, which is predefined and required 6486# on some systems where configure will not decide to define it. 6487cat >> conftest.vals <<\EOF 6488s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 6489EOF 6490 6491# Break up conftest.vals because some shells have a limit on 6492# the size of here documents, and old seds have small limits too. 6493 6494rm -f conftest.tail 6495while : 6496do 6497 ac_lines=`grep -c . conftest.vals` 6498 # grep -c gives empty output for an empty file on some AIX systems. 6499 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 6500 # Write a limited-size here document to conftest.frag. 6501 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 6502 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 6503 echo 'CEOF 6504 sed -f conftest.frag conftest.in > conftest.out 6505 rm -f conftest.in 6506 mv conftest.out conftest.in 6507' >> $CONFIG_STATUS 6508 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 6509 rm -f conftest.vals 6510 mv conftest.tail conftest.vals 6511done 6512rm -f conftest.vals 6513 6514cat >> $CONFIG_STATUS <<\EOF 6515 rm -f conftest.frag conftest.h 6516 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 6517 cat conftest.in >> conftest.h 6518 rm -f conftest.in 6519 if cmp -s $ac_file conftest.h 2>/dev/null; then 6520 echo "$ac_file is unchanged" 6521 rm -f conftest.h 6522 else 6523 # Remove last slash and all that follows it. Not all systems have dirname. 6524 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 6525 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 6526 # The file is in a subdirectory. 6527 test ! -d "$ac_dir" && mkdir "$ac_dir" 6528 fi 6529 rm -f $ac_file 6530 mv conftest.h $ac_file 6531 fi 6532fi; done 6533 6534EOF 6535cat >> $CONFIG_STATUS <<EOF 6536am_indx=1 6537for am_file in config.h; do 6538 case " \$CONFIG_HEADERS " in 6539 *" \$am_file "*) 6540 am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\` 6541 if test -n "\$am_dir"; then 6542 am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\` 6543 for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do 6544 am_tmpdir=\$am_tmpdir\$am_subdir/ 6545 if test ! -d \$am_tmpdir; then 6546 mkdir \$am_tmpdir 6547 fi 6548 done 6549 fi 6550 echo timestamp > "\$am_dir"stamp-h\$am_indx 6551 ;; 6552 esac 6553 am_indx=\`expr \$am_indx + 1\` 6554done 6555AMDEP_TRUE="$AMDEP_TRUE" 6556ac_aux_dir="$ac_aux_dir" 6557 6558EOF 6559cat >> $CONFIG_STATUS <<\EOF 6560test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 6561 6562test x"$AMDEP_TRUE" != x"" || 6563for mf in $CONFIG_FILES; do 6564 case "$mf" in 6565 Makefile) dirpart=.;; 6566 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 6567 *) continue;; 6568 esac 6569 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 6570 # Extract the definition of DEP_FILES from the Makefile without 6571 # running `make'. 6572 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 6573 test -z "$DEPDIR" && continue 6574 # When using ansi2knr, U may be empty or an underscore; expand it 6575 U=`sed -n -e '/^U = / s///p' < "$mf"` 6576 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 6577 # We invoke sed twice because it is the simplest approach to 6578 # changing $(DEPDIR) to its actual value in the expansion. 6579 for file in `sed -n -e ' 6580 /^DEP_FILES = .*\\\\$/ { 6581 s/^DEP_FILES = // 6582 :loop 6583 s/\\\\$// 6584 p 6585 n 6586 /\\\\$/ b loop 6587 p 6588 } 6589 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 6590 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6591 # Make sure the directory exists. 6592 test -f "$dirpart/$file" && continue 6593 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 6594 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 6595 # echo "creating $dirpart/$file" 6596 echo '# dummy' > "$dirpart/$file" 6597 done 6598done 6599 6600 6601exit 0 6602EOF 6603chmod +x $CONFIG_STATUS 6604rm -fr confdefs* $ac_clean_files 6605test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 6606 6607 6608