1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for JSON C Library 0.3. 4# 5# Report bugs to <michael@metaparadigm.com>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string=`eval $cmd`) 2>/dev/null && 291 echo_test_string=`eval $cmd` && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='JSON C Library' 425PACKAGE_TARNAME='json-c' 426PACKAGE_VERSION='0.3' 427PACKAGE_STRING='JSON C Library 0.3' 428PACKAGE_BUGREPORT='michael@metaparadigm.com' 429 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTLIBOBJS' 468ac_subst_files='' 469 470# Initialize some variables set by options. 471ac_init_help= 472ac_init_version=false 473# The variables have the same names as the options, with 474# dashes changed to underlines. 475cache_file=/dev/null 476exec_prefix=NONE 477no_create= 478no_recursion= 479prefix=NONE 480program_prefix=NONE 481program_suffix=NONE 482program_transform_name=s,x,x, 483silent= 484site= 485srcdir= 486verbose= 487x_includes=NONE 488x_libraries=NONE 489 490# Installation directory options. 491# These are left unexpanded so users can "make install exec_prefix=/foo" 492# and all the variables that are supposed to be based on exec_prefix 493# by default will actually change. 494# Use braces instead of parens because sh, perl, etc. also accept them. 495bindir='${exec_prefix}/bin' 496sbindir='${exec_prefix}/sbin' 497libexecdir='${exec_prefix}/libexec' 498datadir='${prefix}/share' 499sysconfdir='${prefix}/etc' 500sharedstatedir='${prefix}/com' 501localstatedir='${prefix}/var' 502libdir='${exec_prefix}/lib' 503includedir='${prefix}/include' 504oldincludedir='/usr/include' 505infodir='${prefix}/info' 506mandir='${prefix}/man' 507 508ac_prev= 509for ac_option 510do 511 # If the previous option needs an argument, assign it. 512 if test -n "$ac_prev"; then 513 eval "$ac_prev=\$ac_option" 514 ac_prev= 515 continue 516 fi 517 518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 519 520 # Accept the important Cygnus configure options, so we can diagnose typos. 521 522 case $ac_option in 523 524 -bindir | --bindir | --bindi | --bind | --bin | --bi) 525 ac_prev=bindir ;; 526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 527 bindir=$ac_optarg ;; 528 529 -build | --build | --buil | --bui | --bu) 530 ac_prev=build_alias ;; 531 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 532 build_alias=$ac_optarg ;; 533 534 -cache-file | --cache-file | --cache-fil | --cache-fi \ 535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 536 ac_prev=cache_file ;; 537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 539 cache_file=$ac_optarg ;; 540 541 --config-cache | -C) 542 cache_file=config.cache ;; 543 544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 545 ac_prev=datadir ;; 546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 547 | --da=*) 548 datadir=$ac_optarg ;; 549 550 -disable-* | --disable-*) 551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 552 # Reject names that are not valid shell variable names. 553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 555 { (exit 1); exit 1; }; } 556 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 557 eval "enable_$ac_feature=no" ;; 558 559 -enable-* | --enable-*) 560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 561 # Reject names that are not valid shell variable names. 562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 564 { (exit 1); exit 1; }; } 565 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 566 case $ac_option in 567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 568 *) ac_optarg=yes ;; 569 esac 570 eval "enable_$ac_feature='$ac_optarg'" ;; 571 572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 574 | --exec | --exe | --ex) 575 ac_prev=exec_prefix ;; 576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 578 | --exec=* | --exe=* | --ex=*) 579 exec_prefix=$ac_optarg ;; 580 581 -gas | --gas | --ga | --g) 582 # Obsolete; use --with-gas. 583 with_gas=yes ;; 584 585 -help | --help | --hel | --he | -h) 586 ac_init_help=long ;; 587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 588 ac_init_help=recursive ;; 589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 590 ac_init_help=short ;; 591 592 -host | --host | --hos | --ho) 593 ac_prev=host_alias ;; 594 -host=* | --host=* | --hos=* | --ho=*) 595 host_alias=$ac_optarg ;; 596 597 -includedir | --includedir | --includedi | --included | --include \ 598 | --includ | --inclu | --incl | --inc) 599 ac_prev=includedir ;; 600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 601 | --includ=* | --inclu=* | --incl=* | --inc=*) 602 includedir=$ac_optarg ;; 603 604 -infodir | --infodir | --infodi | --infod | --info | --inf) 605 ac_prev=infodir ;; 606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 607 infodir=$ac_optarg ;; 608 609 -libdir | --libdir | --libdi | --libd) 610 ac_prev=libdir ;; 611 -libdir=* | --libdir=* | --libdi=* | --libd=*) 612 libdir=$ac_optarg ;; 613 614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 615 | --libexe | --libex | --libe) 616 ac_prev=libexecdir ;; 617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 618 | --libexe=* | --libex=* | --libe=*) 619 libexecdir=$ac_optarg ;; 620 621 -localstatedir | --localstatedir | --localstatedi | --localstated \ 622 | --localstate | --localstat | --localsta | --localst \ 623 | --locals | --local | --loca | --loc | --lo) 624 ac_prev=localstatedir ;; 625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 628 localstatedir=$ac_optarg ;; 629 630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 631 ac_prev=mandir ;; 632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 633 mandir=$ac_optarg ;; 634 635 -nfp | --nfp | --nf) 636 # Obsolete; use --without-fp. 637 with_fp=no ;; 638 639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 640 | --no-cr | --no-c | -n) 641 no_create=yes ;; 642 643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 645 no_recursion=yes ;; 646 647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 649 | --oldin | --oldi | --old | --ol | --o) 650 ac_prev=oldincludedir ;; 651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 654 oldincludedir=$ac_optarg ;; 655 656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 657 ac_prev=prefix ;; 658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 659 prefix=$ac_optarg ;; 660 661 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 662 | --program-pre | --program-pr | --program-p) 663 ac_prev=program_prefix ;; 664 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 666 program_prefix=$ac_optarg ;; 667 668 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 669 | --program-suf | --program-su | --program-s) 670 ac_prev=program_suffix ;; 671 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 673 program_suffix=$ac_optarg ;; 674 675 -program-transform-name | --program-transform-name \ 676 | --program-transform-nam | --program-transform-na \ 677 | --program-transform-n | --program-transform- \ 678 | --program-transform | --program-transfor \ 679 | --program-transfo | --program-transf \ 680 | --program-trans | --program-tran \ 681 | --progr-tra | --program-tr | --program-t) 682 ac_prev=program_transform_name ;; 683 -program-transform-name=* | --program-transform-name=* \ 684 | --program-transform-nam=* | --program-transform-na=* \ 685 | --program-transform-n=* | --program-transform-=* \ 686 | --program-transform=* | --program-transfor=* \ 687 | --program-transfo=* | --program-transf=* \ 688 | --program-trans=* | --program-tran=* \ 689 | --progr-tra=* | --program-tr=* | --program-t=*) 690 program_transform_name=$ac_optarg ;; 691 692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 693 | -silent | --silent | --silen | --sile | --sil) 694 silent=yes ;; 695 696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 697 ac_prev=sbindir ;; 698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 699 | --sbi=* | --sb=*) 700 sbindir=$ac_optarg ;; 701 702 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 704 | --sharedst | --shareds | --shared | --share | --shar \ 705 | --sha | --sh) 706 ac_prev=sharedstatedir ;; 707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 710 | --sha=* | --sh=*) 711 sharedstatedir=$ac_optarg ;; 712 713 -site | --site | --sit) 714 ac_prev=site ;; 715 -site=* | --site=* | --sit=*) 716 site=$ac_optarg ;; 717 718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 719 ac_prev=srcdir ;; 720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 721 srcdir=$ac_optarg ;; 722 723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 724 | --syscon | --sysco | --sysc | --sys | --sy) 725 ac_prev=sysconfdir ;; 726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 728 sysconfdir=$ac_optarg ;; 729 730 -target | --target | --targe | --targ | --tar | --ta | --t) 731 ac_prev=target_alias ;; 732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 733 target_alias=$ac_optarg ;; 734 735 -v | -verbose | --verbose | --verbos | --verbo | --verb) 736 verbose=yes ;; 737 738 -version | --version | --versio | --versi | --vers | -V) 739 ac_init_version=: ;; 740 741 -with-* | --with-*) 742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 743 # Reject names that are not valid shell variable names. 744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 745 { echo "$as_me: error: invalid package name: $ac_package" >&2 746 { (exit 1); exit 1; }; } 747 ac_package=`echo $ac_package| sed 's/-/_/g'` 748 case $ac_option in 749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 750 *) ac_optarg=yes ;; 751 esac 752 eval "with_$ac_package='$ac_optarg'" ;; 753 754 -without-* | --without-*) 755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 756 # Reject names that are not valid shell variable names. 757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 758 { echo "$as_me: error: invalid package name: $ac_package" >&2 759 { (exit 1); exit 1; }; } 760 ac_package=`echo $ac_package | sed 's/-/_/g'` 761 eval "with_$ac_package=no" ;; 762 763 --x) 764 # Obsolete; use --with-x. 765 with_x=yes ;; 766 767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 768 | --x-incl | --x-inc | --x-in | --x-i) 769 ac_prev=x_includes ;; 770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 772 x_includes=$ac_optarg ;; 773 774 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 776 ac_prev=x_libraries ;; 777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 779 x_libraries=$ac_optarg ;; 780 781 -*) { echo "$as_me: error: unrecognized option: $ac_option 782Try \`$0 --help' for more information." >&2 783 { (exit 1); exit 1; }; } 784 ;; 785 786 *=*) 787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 788 # Reject names that are not valid shell variable names. 789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 791 { (exit 1); exit 1; }; } 792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 793 eval "$ac_envvar='$ac_optarg'" 794 export $ac_envvar ;; 795 796 *) 797 # FIXME: should be removed in autoconf 3.0. 798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 802 ;; 803 804 esac 805done 806 807if test -n "$ac_prev"; then 808 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 809 { echo "$as_me: error: missing argument to $ac_option" >&2 810 { (exit 1); exit 1; }; } 811fi 812 813# Be sure to have absolute paths. 814for ac_var in exec_prefix prefix 815do 816 eval ac_val=$`echo $ac_var` 817 case $ac_val in 818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 820 { (exit 1); exit 1; }; };; 821 esac 822done 823 824# Be sure to have absolute paths. 825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 826 localstatedir libdir includedir oldincludedir infodir mandir 827do 828 eval ac_val=$`echo $ac_var` 829 case $ac_val in 830 [\\/$]* | ?:[\\/]* ) ;; 831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 832 { (exit 1); exit 1; }; };; 833 esac 834done 835 836# There might be people who depend on the old broken behavior: `$host' 837# used to hold the argument of --host etc. 838# FIXME: To remove some day. 839build=$build_alias 840host=$host_alias 841target=$target_alias 842 843# FIXME: To remove some day. 844if test "x$host_alias" != x; then 845 if test "x$build_alias" = x; then 846 cross_compiling=maybe 847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 848 If a cross compiler is detected then cross compile mode will be used." >&2 849 elif test "x$build_alias" != "x$host_alias"; then 850 cross_compiling=yes 851 fi 852fi 853 854ac_tool_prefix= 855test -n "$host_alias" && ac_tool_prefix=$host_alias- 856 857test "$silent" = yes && exec 6>/dev/null 858 859 860# Find the source files, if location was not specified. 861if test -z "$srcdir"; then 862 ac_srcdir_defaulted=yes 863 # Try the directory containing this script, then its parent. 864 ac_confdir=`(dirname "$0") 2>/dev/null || 865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 866 X"$0" : 'X\(//\)[^/]' \| \ 867 X"$0" : 'X\(//\)$' \| \ 868 X"$0" : 'X\(/\)' \| \ 869 . : '\(.\)' 2>/dev/null || 870echo X"$0" | 871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 872 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 873 /^X\(\/\/\)$/{ s//\1/; q; } 874 /^X\(\/\).*/{ s//\1/; q; } 875 s/.*/./; q'` 876 srcdir=$ac_confdir 877 if test ! -r $srcdir/$ac_unique_file; then 878 srcdir=.. 879 fi 880else 881 ac_srcdir_defaulted=no 882fi 883if test ! -r $srcdir/$ac_unique_file; then 884 if test "$ac_srcdir_defaulted" = yes; then 885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 886 { (exit 1); exit 1; }; } 887 else 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 889 { (exit 1); exit 1; }; } 890 fi 891fi 892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 894 { (exit 1); exit 1; }; } 895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 896ac_env_build_alias_set=${build_alias+set} 897ac_env_build_alias_value=$build_alias 898ac_cv_env_build_alias_set=${build_alias+set} 899ac_cv_env_build_alias_value=$build_alias 900ac_env_host_alias_set=${host_alias+set} 901ac_env_host_alias_value=$host_alias 902ac_cv_env_host_alias_set=${host_alias+set} 903ac_cv_env_host_alias_value=$host_alias 904ac_env_target_alias_set=${target_alias+set} 905ac_env_target_alias_value=$target_alias 906ac_cv_env_target_alias_set=${target_alias+set} 907ac_cv_env_target_alias_value=$target_alias 908ac_env_CC_set=${CC+set} 909ac_env_CC_value=$CC 910ac_cv_env_CC_set=${CC+set} 911ac_cv_env_CC_value=$CC 912ac_env_CFLAGS_set=${CFLAGS+set} 913ac_env_CFLAGS_value=$CFLAGS 914ac_cv_env_CFLAGS_set=${CFLAGS+set} 915ac_cv_env_CFLAGS_value=$CFLAGS 916ac_env_LDFLAGS_set=${LDFLAGS+set} 917ac_env_LDFLAGS_value=$LDFLAGS 918ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 919ac_cv_env_LDFLAGS_value=$LDFLAGS 920ac_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_env_CPPFLAGS_value=$CPPFLAGS 922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 923ac_cv_env_CPPFLAGS_value=$CPPFLAGS 924ac_env_CPP_set=${CPP+set} 925ac_env_CPP_value=$CPP 926ac_cv_env_CPP_set=${CPP+set} 927ac_cv_env_CPP_value=$CPP 928ac_env_CXX_set=${CXX+set} 929ac_env_CXX_value=$CXX 930ac_cv_env_CXX_set=${CXX+set} 931ac_cv_env_CXX_value=$CXX 932ac_env_CXXFLAGS_set=${CXXFLAGS+set} 933ac_env_CXXFLAGS_value=$CXXFLAGS 934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 935ac_cv_env_CXXFLAGS_value=$CXXFLAGS 936ac_env_CXXCPP_set=${CXXCPP+set} 937ac_env_CXXCPP_value=$CXXCPP 938ac_cv_env_CXXCPP_set=${CXXCPP+set} 939ac_cv_env_CXXCPP_value=$CXXCPP 940ac_env_F77_set=${F77+set} 941ac_env_F77_value=$F77 942ac_cv_env_F77_set=${F77+set} 943ac_cv_env_F77_value=$F77 944ac_env_FFLAGS_set=${FFLAGS+set} 945ac_env_FFLAGS_value=$FFLAGS 946ac_cv_env_FFLAGS_set=${FFLAGS+set} 947ac_cv_env_FFLAGS_value=$FFLAGS 948 949# 950# Report the --help message. 951# 952if test "$ac_init_help" = "long"; then 953 # Omit some internal or obsolete options to make the list less imposing. 954 # This message is too long to be a string in the A/UX 3.1 sh. 955 cat <<_ACEOF 956\`configure' configures JSON C Library 0.3 to adapt to many kinds of systems. 957 958Usage: $0 [OPTION]... [VAR=VALUE]... 959 960To assign environment variables (e.g., CC, CFLAGS...), specify them as 961VAR=VALUE. See below for descriptions of some of the useful variables. 962 963Defaults for the options are specified in brackets. 964 965Configuration: 966 -h, --help display this help and exit 967 --help=short display options specific to this package 968 --help=recursive display the short help of all the included packages 969 -V, --version display version information and exit 970 -q, --quiet, --silent do not print \`checking...' messages 971 --cache-file=FILE cache test results in FILE [disabled] 972 -C, --config-cache alias for \`--cache-file=config.cache' 973 -n, --no-create do not create output files 974 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 975 976_ACEOF 977 978 cat <<_ACEOF 979Installation directories: 980 --prefix=PREFIX install architecture-independent files in PREFIX 981 [$ac_default_prefix] 982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 983 [PREFIX] 984 985By default, \`make install' will install all the files in 986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 987an installation prefix other than \`$ac_default_prefix' using \`--prefix', 988for instance \`--prefix=\$HOME'. 989 990For better control, use the options below. 991 992Fine tuning of the installation directories: 993 --bindir=DIR user executables [EPREFIX/bin] 994 --sbindir=DIR system admin executables [EPREFIX/sbin] 995 --libexecdir=DIR program executables [EPREFIX/libexec] 996 --datadir=DIR read-only architecture-independent data [PREFIX/share] 997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 999 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1000 --libdir=DIR object code libraries [EPREFIX/lib] 1001 --includedir=DIR C header files [PREFIX/include] 1002 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1003 --infodir=DIR info documentation [PREFIX/info] 1004 --mandir=DIR man documentation [PREFIX/man] 1005_ACEOF 1006 1007 cat <<\_ACEOF 1008 1009Program names: 1010 --program-prefix=PREFIX prepend PREFIX to installed program names 1011 --program-suffix=SUFFIX append SUFFIX to installed program names 1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1013 1014System types: 1015 --build=BUILD configure for building on BUILD [guessed] 1016 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1017_ACEOF 1018fi 1019 1020if test -n "$ac_init_help"; then 1021 case $ac_init_help in 1022 short | recursive ) echo "Configuration of JSON C Library 0.3:";; 1023 esac 1024 cat <<\_ACEOF 1025 1026Optional Features: 1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1029 --enable-shared[=PKGS] 1030 build shared libraries [default=yes] 1031 --enable-static[=PKGS] 1032 build static libraries [default=yes] 1033 --enable-fast-install[=PKGS] 1034 optimize for fast installation [default=yes] 1035 --disable-libtool-lock avoid locking (might break parallel builds) 1036 1037Optional Packages: 1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1041 --with-pic try to use only PIC/non-PIC objects [default=use 1042 both] 1043 --with-tags[=TAGS] 1044 include additional configurations [automatic] 1045 1046Some influential environment variables: 1047 CC C compiler command 1048 CFLAGS C compiler flags 1049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1050 nonstandard directory <lib dir> 1051 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1052 headers in a nonstandard directory <include dir> 1053 CPP C preprocessor 1054 CXX C++ compiler command 1055 CXXFLAGS C++ compiler flags 1056 CXXCPP C++ preprocessor 1057 F77 Fortran 77 compiler command 1058 FFLAGS Fortran 77 compiler flags 1059 1060Use these variables to override the choices made by `configure' or to help 1061it to find libraries and programs with nonstandard names/locations. 1062 1063Report bugs to <michael@metaparadigm.com>. 1064_ACEOF 1065fi 1066 1067if test "$ac_init_help" = "recursive"; then 1068 # If there are subdirs, report their specific --help. 1069 ac_popdir=`pwd` 1070 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1071 test -d $ac_dir || continue 1072 ac_builddir=. 1073 1074if test "$ac_dir" != .; then 1075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1076 # A "../" for each directory in $ac_dir_suffix. 1077 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1078else 1079 ac_dir_suffix= ac_top_builddir= 1080fi 1081 1082case $srcdir in 1083 .) # No --srcdir option. We are building in place. 1084 ac_srcdir=. 1085 if test -z "$ac_top_builddir"; then 1086 ac_top_srcdir=. 1087 else 1088 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1089 fi ;; 1090 [\\/]* | ?:[\\/]* ) # Absolute path. 1091 ac_srcdir=$srcdir$ac_dir_suffix; 1092 ac_top_srcdir=$srcdir ;; 1093 *) # Relative path. 1094 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1095 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1096esac 1097 1098# Do not use `cd foo && pwd` to compute absolute paths, because 1099# the directories may not exist. 1100case `pwd` in 1101.) ac_abs_builddir="$ac_dir";; 1102*) 1103 case "$ac_dir" in 1104 .) ac_abs_builddir=`pwd`;; 1105 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1106 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1107 esac;; 1108esac 1109case $ac_abs_builddir in 1110.) ac_abs_top_builddir=${ac_top_builddir}.;; 1111*) 1112 case ${ac_top_builddir}. in 1113 .) ac_abs_top_builddir=$ac_abs_builddir;; 1114 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1115 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1116 esac;; 1117esac 1118case $ac_abs_builddir in 1119.) ac_abs_srcdir=$ac_srcdir;; 1120*) 1121 case $ac_srcdir in 1122 .) ac_abs_srcdir=$ac_abs_builddir;; 1123 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1124 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1125 esac;; 1126esac 1127case $ac_abs_builddir in 1128.) ac_abs_top_srcdir=$ac_top_srcdir;; 1129*) 1130 case $ac_top_srcdir in 1131 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1132 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1133 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1134 esac;; 1135esac 1136 1137 cd $ac_dir 1138 # Check for guested configure; otherwise get Cygnus style configure. 1139 if test -f $ac_srcdir/configure.gnu; then 1140 echo 1141 $SHELL $ac_srcdir/configure.gnu --help=recursive 1142 elif test -f $ac_srcdir/configure; then 1143 echo 1144 $SHELL $ac_srcdir/configure --help=recursive 1145 elif test -f $ac_srcdir/configure.ac || 1146 test -f $ac_srcdir/configure.in; then 1147 echo 1148 $ac_configure --help 1149 else 1150 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1151 fi 1152 cd "$ac_popdir" 1153 done 1154fi 1155 1156test -n "$ac_init_help" && exit 0 1157if $ac_init_version; then 1158 cat <<\_ACEOF 1159JSON C Library configure 0.3 1160generated by GNU Autoconf 2.59 1161 1162Copyright (C) 2003 Free Software Foundation, Inc. 1163This configure script is free software; the Free Software Foundation 1164gives unlimited permission to copy, distribute and modify it. 1165_ACEOF 1166 exit 0 1167fi 1168exec 5>config.log 1169cat >&5 <<_ACEOF 1170This file contains any messages produced by compilers while 1171running configure, to aid debugging if configure makes a mistake. 1172 1173It was created by JSON C Library $as_me 0.3, which was 1174generated by GNU Autoconf 2.59. Invocation command line was 1175 1176 $ $0 $@ 1177 1178_ACEOF 1179{ 1180cat <<_ASUNAME 1181## --------- ## 1182## Platform. ## 1183## --------- ## 1184 1185hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1186uname -m = `(uname -m) 2>/dev/null || echo unknown` 1187uname -r = `(uname -r) 2>/dev/null || echo unknown` 1188uname -s = `(uname -s) 2>/dev/null || echo unknown` 1189uname -v = `(uname -v) 2>/dev/null || echo unknown` 1190 1191/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1192/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1193 1194/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1195/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1196/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1197hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1198/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1199/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1200/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1201 1202_ASUNAME 1203 1204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1205for as_dir in $PATH 1206do 1207 IFS=$as_save_IFS 1208 test -z "$as_dir" && as_dir=. 1209 echo "PATH: $as_dir" 1210done 1211 1212} >&5 1213 1214cat >&5 <<_ACEOF 1215 1216 1217## ----------- ## 1218## Core tests. ## 1219## ----------- ## 1220 1221_ACEOF 1222 1223 1224# Keep a trace of the command line. 1225# Strip out --no-create and --no-recursion so they do not pile up. 1226# Strip out --silent because we don't want to record it for future runs. 1227# Also quote any args containing shell meta-characters. 1228# Make two passes to allow for proper duplicate-argument suppression. 1229ac_configure_args= 1230ac_configure_args0= 1231ac_configure_args1= 1232ac_sep= 1233ac_must_keep_next=false 1234for ac_pass in 1 2 1235do 1236 for ac_arg 1237 do 1238 case $ac_arg in 1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1241 | -silent | --silent | --silen | --sile | --sil) 1242 continue ;; 1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1245 esac 1246 case $ac_pass in 1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1248 2) 1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1250 if test $ac_must_keep_next = true; then 1251 ac_must_keep_next=false # Got value, back to normal. 1252 else 1253 case $ac_arg in 1254 *=* | --config-cache | -C | -disable-* | --disable-* \ 1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1257 | -with-* | --with-* | -without-* | --without-* | --x) 1258 case "$ac_configure_args0 " in 1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1260 esac 1261 ;; 1262 -* ) ac_must_keep_next=true ;; 1263 esac 1264 fi 1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1266 # Get rid of the leading space. 1267 ac_sep=" " 1268 ;; 1269 esac 1270 done 1271done 1272$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1273$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1274 1275# When interrupted or exit'd, cleanup temporary files, and complete 1276# config.log. We remove comments because anyway the quotes in there 1277# would cause problems or look ugly. 1278# WARNING: Be sure not to use single quotes in there, as some shells, 1279# such as our DU 5.0 friend, will then `close' the trap. 1280trap 'exit_status=$? 1281 # Save into config.log some information that might help in debugging. 1282 { 1283 echo 1284 1285 cat <<\_ASBOX 1286## ---------------- ## 1287## Cache variables. ## 1288## ---------------- ## 1289_ASBOX 1290 echo 1291 # The following way of writing the cache mishandles newlines in values, 1292{ 1293 (set) 2>&1 | 1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1295 *ac_space=\ *) 1296 sed -n \ 1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1299 ;; 1300 *) 1301 sed -n \ 1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1303 ;; 1304 esac; 1305} 1306 echo 1307 1308 cat <<\_ASBOX 1309## ----------------- ## 1310## Output variables. ## 1311## ----------------- ## 1312_ASBOX 1313 echo 1314 for ac_var in $ac_subst_vars 1315 do 1316 eval ac_val=$`echo $ac_var` 1317 echo "$ac_var='"'"'$ac_val'"'"'" 1318 done | sort 1319 echo 1320 1321 if test -n "$ac_subst_files"; then 1322 cat <<\_ASBOX 1323## ------------- ## 1324## Output files. ## 1325## ------------- ## 1326_ASBOX 1327 echo 1328 for ac_var in $ac_subst_files 1329 do 1330 eval ac_val=$`echo $ac_var` 1331 echo "$ac_var='"'"'$ac_val'"'"'" 1332 done | sort 1333 echo 1334 fi 1335 1336 if test -s confdefs.h; then 1337 cat <<\_ASBOX 1338## ----------- ## 1339## confdefs.h. ## 1340## ----------- ## 1341_ASBOX 1342 echo 1343 sed "/^$/d" confdefs.h | sort 1344 echo 1345 fi 1346 test "$ac_signal" != 0 && 1347 echo "$as_me: caught signal $ac_signal" 1348 echo "$as_me: exit $exit_status" 1349 } >&5 1350 rm -f core *.core && 1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1352 exit $exit_status 1353 ' 0 1354for ac_signal in 1 2 13 15; do 1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1356done 1357ac_signal=0 1358 1359# confdefs.h avoids OS command line length limits that DEFS can exceed. 1360rm -rf conftest* confdefs.h 1361# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1362echo >confdefs.h 1363 1364# Predefined preprocessor variables. 1365 1366cat >>confdefs.h <<_ACEOF 1367#define PACKAGE_NAME "$PACKAGE_NAME" 1368_ACEOF 1369 1370 1371cat >>confdefs.h <<_ACEOF 1372#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1373_ACEOF 1374 1375 1376cat >>confdefs.h <<_ACEOF 1377#define PACKAGE_VERSION "$PACKAGE_VERSION" 1378_ACEOF 1379 1380 1381cat >>confdefs.h <<_ACEOF 1382#define PACKAGE_STRING "$PACKAGE_STRING" 1383_ACEOF 1384 1385 1386cat >>confdefs.h <<_ACEOF 1387#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1388_ACEOF 1389 1390 1391# Let the site file select an alternate cache file if it wants to. 1392# Prefer explicitly selected file to automatically selected ones. 1393if test -z "$CONFIG_SITE"; then 1394 if test "x$prefix" != xNONE; then 1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1396 else 1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1398 fi 1399fi 1400for ac_site_file in $CONFIG_SITE; do 1401 if test -r "$ac_site_file"; then 1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1403echo "$as_me: loading site script $ac_site_file" >&6;} 1404 sed 's/^/| /' "$ac_site_file" >&5 1405 . "$ac_site_file" 1406 fi 1407done 1408 1409if test -r "$cache_file"; then 1410 # Some versions of bash will fail to source /dev/null (special 1411 # files actually), so we avoid doing that. 1412 if test -f "$cache_file"; then 1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1414echo "$as_me: loading cache $cache_file" >&6;} 1415 case $cache_file in 1416 [\\/]* | ?:[\\/]* ) . $cache_file;; 1417 *) . ./$cache_file;; 1418 esac 1419 fi 1420else 1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1422echo "$as_me: creating cache $cache_file" >&6;} 1423 >$cache_file 1424fi 1425 1426# Check that the precious variables saved in the cache have kept the same 1427# value. 1428ac_cache_corrupted=false 1429for ac_var in `(set) 2>&1 | 1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1432 eval ac_new_set=\$ac_env_${ac_var}_set 1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1434 eval ac_new_val="\$ac_env_${ac_var}_value" 1435 case $ac_old_set,$ac_new_set in 1436 set,) 1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1438echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1439 ac_cache_corrupted=: ;; 1440 ,set) 1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1442echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1443 ac_cache_corrupted=: ;; 1444 ,);; 1445 *) 1446 if test "x$ac_old_val" != "x$ac_new_val"; then 1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1448echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1450echo "$as_me: former value: $ac_old_val" >&2;} 1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1452echo "$as_me: current value: $ac_new_val" >&2;} 1453 ac_cache_corrupted=: 1454 fi;; 1455 esac 1456 # Pass precious variables to config.status. 1457 if test "$ac_new_set" = set; then 1458 case $ac_new_val in 1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1461 *) ac_arg=$ac_var=$ac_new_val ;; 1462 esac 1463 case " $ac_configure_args " in 1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1466 esac 1467 fi 1468done 1469if $ac_cache_corrupted; then 1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1471echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1473echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1474 { (exit 1); exit 1; }; } 1475fi 1476 1477ac_ext=c 1478ac_cpp='$CPP $CPPFLAGS' 1479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1481ac_compiler_gnu=$ac_cv_c_compiler_gnu 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510am__api_version="1.4" 1511ac_aux_dir= 1512for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1513 if test -f $ac_dir/install-sh; then 1514 ac_aux_dir=$ac_dir 1515 ac_install_sh="$ac_aux_dir/install-sh -c" 1516 break 1517 elif test -f $ac_dir/install.sh; then 1518 ac_aux_dir=$ac_dir 1519 ac_install_sh="$ac_aux_dir/install.sh -c" 1520 break 1521 elif test -f $ac_dir/shtool; then 1522 ac_aux_dir=$ac_dir 1523 ac_install_sh="$ac_aux_dir/shtool install -c" 1524 break 1525 fi 1526done 1527if test -z "$ac_aux_dir"; then 1528 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1529echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1530 { (exit 1); exit 1; }; } 1531fi 1532ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1533ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1534ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1535 1536# Find a good install program. We prefer a C program (faster), 1537# so one script is as good as another. But avoid the broken or 1538# incompatible versions: 1539# SysV /etc/install, /usr/sbin/install 1540# SunOS /usr/etc/install 1541# IRIX /sbin/install 1542# AIX /bin/install 1543# AmigaOS /C/install, which installs bootblocks on floppy discs 1544# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1545# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1546# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1547# OS/2's system install, which has a completely different semantic 1548# ./install, which can be erroneously created by make from ./install.sh. 1549echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1550echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1551if test -z "$INSTALL"; then 1552if test "${ac_cv_path_install+set}" = set; then 1553 echo $ECHO_N "(cached) $ECHO_C" >&6 1554else 1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1556for as_dir in $PATH 1557do 1558 IFS=$as_save_IFS 1559 test -z "$as_dir" && as_dir=. 1560 # Account for people who put trailing slashes in PATH elements. 1561case $as_dir/ in 1562 ./ | .// | /cC/* | \ 1563 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1564 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1565 /usr/ucb/* ) ;; 1566 *) 1567 # OSF1 and SCO ODT 3.0 have their own names for install. 1568 # Don't use installbsd from OSF since it installs stuff as root 1569 # by default. 1570 for ac_prog in ginstall scoinst install; do 1571 for ac_exec_ext in '' $ac_executable_extensions; do 1572 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1573 if test $ac_prog = install && 1574 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1575 # AIX install. It has an incompatible calling convention. 1576 : 1577 elif test $ac_prog = install && 1578 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1579 # program-specific install script used by HP pwplus--don't use. 1580 : 1581 else 1582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1583 break 3 1584 fi 1585 fi 1586 done 1587 done 1588 ;; 1589esac 1590done 1591 1592 1593fi 1594 if test "${ac_cv_path_install+set}" = set; then 1595 INSTALL=$ac_cv_path_install 1596 else 1597 # As a last resort, use the slow shell script. We don't cache a 1598 # path for INSTALL within a source directory, because that will 1599 # break other packages using the cache if that directory is 1600 # removed, or if the path is relative. 1601 INSTALL=$ac_install_sh 1602 fi 1603fi 1604echo "$as_me:$LINENO: result: $INSTALL" >&5 1605echo "${ECHO_T}$INSTALL" >&6 1606 1607# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1608# It thinks the first close brace ends the variable substitution. 1609test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1610 1611test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1612 1613test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1614 1615echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1616echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1617# Just in case 1618sleep 1 1619echo timestamp > conftestfile 1620# Do `set' in a subshell so we don't clobber the current shell's 1621# arguments. Must try -L first in case configure is actually a 1622# symlink; some systems play weird games with the mod time of symlinks 1623# (eg FreeBSD returns the mod time of the symlink's containing 1624# directory). 1625if ( 1626 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 1627 if test "$*" = "X"; then 1628 # -L didn't work. 1629 set X `ls -t $srcdir/configure conftestfile` 1630 fi 1631 if test "$*" != "X $srcdir/configure conftestfile" \ 1632 && test "$*" != "X conftestfile $srcdir/configure"; then 1633 1634 # If neither matched, then we have a broken ls. This can happen 1635 # if, for instance, CONFIG_SHELL is bash and it inherits a 1636 # broken ls alias from the environment. This has actually 1637 # happened. Such a system could not be considered "sane". 1638 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1639alias in your environment" >&5 1640echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1641alias in your environment" >&2;} 1642 { (exit 1); exit 1; }; } 1643 fi 1644 1645 test "$2" = conftestfile 1646 ) 1647then 1648 # Ok. 1649 : 1650else 1651 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1652Check your system clock" >&5 1653echo "$as_me: error: newly created file is older than distributed files! 1654Check your system clock" >&2;} 1655 { (exit 1); exit 1; }; } 1656fi 1657rm -f conftest* 1658echo "$as_me:$LINENO: result: yes" >&5 1659echo "${ECHO_T}yes" >&6 1660test "$program_prefix" != NONE && 1661 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1662# Use a double $ so make ignores it. 1663test "$program_suffix" != NONE && 1664 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1665# Double any \ or $. echo might interpret backslashes. 1666# By default was `s,x,x', remove it if useless. 1667cat <<\_ACEOF >conftest.sed 1668s/[\\$]/&&/g;s/;s,x,x,$// 1669_ACEOF 1670program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1671rm conftest.sed 1672 1673echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1674echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1675set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1676if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1677 echo $ECHO_N "(cached) $ECHO_C" >&6 1678else 1679 cat >conftest.make <<\_ACEOF 1680all: 1681 @echo 'ac_maketemp="$(MAKE)"' 1682_ACEOF 1683# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1684eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1685if test -n "$ac_maketemp"; then 1686 eval ac_cv_prog_make_${ac_make}_set=yes 1687else 1688 eval ac_cv_prog_make_${ac_make}_set=no 1689fi 1690rm -f conftest.make 1691fi 1692if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1693 echo "$as_me:$LINENO: result: yes" >&5 1694echo "${ECHO_T}yes" >&6 1695 SET_MAKE= 1696else 1697 echo "$as_me:$LINENO: result: no" >&5 1698echo "${ECHO_T}no" >&6 1699 SET_MAKE="MAKE=${MAKE-make}" 1700fi 1701 1702 1703PACKAGE=JSON C Library 1704 1705VERSION=0.3 1706 1707if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 1708 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1709echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1710 { (exit 1); exit 1; }; } 1711fi 1712 1713cat >>confdefs.h <<_ACEOF 1714#define PACKAGE "$PACKAGE" 1715_ACEOF 1716 1717 1718cat >>confdefs.h <<_ACEOF 1719#define VERSION "$VERSION" 1720_ACEOF 1721 1722 1723 1724missing_dir=`cd $ac_aux_dir && pwd` 1725echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 1726echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 1727# Run test in a subshell; some versions of sh will print an error if 1728# an executable is not found, even if stderr is redirected. 1729# Redirect stdin to placate older versions of autoconf. Sigh. 1730if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1731 ACLOCAL=aclocal-${am__api_version} 1732 echo "$as_me:$LINENO: result: found" >&5 1733echo "${ECHO_T}found" >&6 1734else 1735 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" 1736 echo "$as_me:$LINENO: result: missing" >&5 1737echo "${ECHO_T}missing" >&6 1738fi 1739 1740echo "$as_me:$LINENO: checking for working autoconf" >&5 1741echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 1742# Run test in a subshell; some versions of sh will print an error if 1743# an executable is not found, even if stderr is redirected. 1744# Redirect stdin to placate older versions of autoconf. Sigh. 1745if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1746 AUTOCONF=autoconf 1747 echo "$as_me:$LINENO: result: found" >&5 1748echo "${ECHO_T}found" >&6 1749else 1750 AUTOCONF="$missing_dir/missing autoconf" 1751 echo "$as_me:$LINENO: result: missing" >&5 1752echo "${ECHO_T}missing" >&6 1753fi 1754 1755echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 1756echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 1757# Run test in a subshell; some versions of sh will print an error if 1758# an executable is not found, even if stderr is redirected. 1759# Redirect stdin to placate older versions of autoconf. Sigh. 1760if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1761 AUTOMAKE=automake-${am__api_version} 1762 echo "$as_me:$LINENO: result: found" >&5 1763echo "${ECHO_T}found" >&6 1764else 1765 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" 1766 echo "$as_me:$LINENO: result: missing" >&5 1767echo "${ECHO_T}missing" >&6 1768fi 1769 1770echo "$as_me:$LINENO: checking for working autoheader" >&5 1771echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 1772# Run test in a subshell; some versions of sh will print an error if 1773# an executable is not found, even if stderr is redirected. 1774# Redirect stdin to placate older versions of autoconf. Sigh. 1775if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1776 AUTOHEADER=autoheader 1777 echo "$as_me:$LINENO: result: found" >&5 1778echo "${ECHO_T}found" >&6 1779else 1780 AUTOHEADER="$missing_dir/missing autoheader" 1781 echo "$as_me:$LINENO: result: missing" >&5 1782echo "${ECHO_T}missing" >&6 1783fi 1784 1785echo "$as_me:$LINENO: checking for working makeinfo" >&5 1786echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 1787# Run test in a subshell; some versions of sh will print an error if 1788# an executable is not found, even if stderr is redirected. 1789# Redirect stdin to placate older versions of autoconf. Sigh. 1790if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1791 MAKEINFO=makeinfo 1792 echo "$as_me:$LINENO: result: found" >&5 1793echo "${ECHO_T}found" >&6 1794else 1795 MAKEINFO="$missing_dir/missing makeinfo" 1796 echo "$as_me:$LINENO: result: missing" >&5 1797echo "${ECHO_T}missing" >&6 1798fi 1799 1800 1801 1802# Checks for programs. 1803 1804# Checks for libraries. 1805 1806# Checks for header files. 1807 1808 ac_config_headers="$ac_config_headers config.h" 1809 1810 ac_config_commands="$ac_config_commands default-1" 1811 1812ac_ext=c 1813ac_cpp='$CPP $CPPFLAGS' 1814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1816ac_compiler_gnu=$ac_cv_c_compiler_gnu 1817if test -n "$ac_tool_prefix"; then 1818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1819set dummy ${ac_tool_prefix}gcc; ac_word=$2 1820echo "$as_me:$LINENO: checking for $ac_word" >&5 1821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1822if test "${ac_cv_prog_CC+set}" = set; then 1823 echo $ECHO_N "(cached) $ECHO_C" >&6 1824else 1825 if test -n "$CC"; then 1826 ac_cv_prog_CC="$CC" # Let the user override the test. 1827else 1828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1829for as_dir in $PATH 1830do 1831 IFS=$as_save_IFS 1832 test -z "$as_dir" && as_dir=. 1833 for ac_exec_ext in '' $ac_executable_extensions; do 1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1835 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1837 break 2 1838 fi 1839done 1840done 1841 1842fi 1843fi 1844CC=$ac_cv_prog_CC 1845if test -n "$CC"; then 1846 echo "$as_me:$LINENO: result: $CC" >&5 1847echo "${ECHO_T}$CC" >&6 1848else 1849 echo "$as_me:$LINENO: result: no" >&5 1850echo "${ECHO_T}no" >&6 1851fi 1852 1853fi 1854if test -z "$ac_cv_prog_CC"; then 1855 ac_ct_CC=$CC 1856 # Extract the first word of "gcc", so it can be a program name with args. 1857set dummy gcc; ac_word=$2 1858echo "$as_me:$LINENO: checking for $ac_word" >&5 1859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1860if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1861 echo $ECHO_N "(cached) $ECHO_C" >&6 1862else 1863 if test -n "$ac_ct_CC"; then 1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1865else 1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1867for as_dir in $PATH 1868do 1869 IFS=$as_save_IFS 1870 test -z "$as_dir" && as_dir=. 1871 for ac_exec_ext in '' $ac_executable_extensions; do 1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1873 ac_cv_prog_ac_ct_CC="gcc" 1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1875 break 2 1876 fi 1877done 1878done 1879 1880fi 1881fi 1882ac_ct_CC=$ac_cv_prog_ac_ct_CC 1883if test -n "$ac_ct_CC"; then 1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1885echo "${ECHO_T}$ac_ct_CC" >&6 1886else 1887 echo "$as_me:$LINENO: result: no" >&5 1888echo "${ECHO_T}no" >&6 1889fi 1890 1891 CC=$ac_ct_CC 1892else 1893 CC="$ac_cv_prog_CC" 1894fi 1895 1896if test -z "$CC"; then 1897 if test -n "$ac_tool_prefix"; then 1898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1899set dummy ${ac_tool_prefix}cc; ac_word=$2 1900echo "$as_me:$LINENO: checking for $ac_word" >&5 1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1902if test "${ac_cv_prog_CC+set}" = set; then 1903 echo $ECHO_N "(cached) $ECHO_C" >&6 1904else 1905 if test -n "$CC"; then 1906 ac_cv_prog_CC="$CC" # Let the user override the test. 1907else 1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1909for as_dir in $PATH 1910do 1911 IFS=$as_save_IFS 1912 test -z "$as_dir" && as_dir=. 1913 for ac_exec_ext in '' $ac_executable_extensions; do 1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1915 ac_cv_prog_CC="${ac_tool_prefix}cc" 1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1917 break 2 1918 fi 1919done 1920done 1921 1922fi 1923fi 1924CC=$ac_cv_prog_CC 1925if test -n "$CC"; then 1926 echo "$as_me:$LINENO: result: $CC" >&5 1927echo "${ECHO_T}$CC" >&6 1928else 1929 echo "$as_me:$LINENO: result: no" >&5 1930echo "${ECHO_T}no" >&6 1931fi 1932 1933fi 1934if test -z "$ac_cv_prog_CC"; then 1935 ac_ct_CC=$CC 1936 # Extract the first word of "cc", so it can be a program name with args. 1937set dummy cc; ac_word=$2 1938echo "$as_me:$LINENO: checking for $ac_word" >&5 1939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1940if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1941 echo $ECHO_N "(cached) $ECHO_C" >&6 1942else 1943 if test -n "$ac_ct_CC"; then 1944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1945else 1946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1947for as_dir in $PATH 1948do 1949 IFS=$as_save_IFS 1950 test -z "$as_dir" && as_dir=. 1951 for ac_exec_ext in '' $ac_executable_extensions; do 1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1953 ac_cv_prog_ac_ct_CC="cc" 1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1955 break 2 1956 fi 1957done 1958done 1959 1960fi 1961fi 1962ac_ct_CC=$ac_cv_prog_ac_ct_CC 1963if test -n "$ac_ct_CC"; then 1964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1965echo "${ECHO_T}$ac_ct_CC" >&6 1966else 1967 echo "$as_me:$LINENO: result: no" >&5 1968echo "${ECHO_T}no" >&6 1969fi 1970 1971 CC=$ac_ct_CC 1972else 1973 CC="$ac_cv_prog_CC" 1974fi 1975 1976fi 1977if test -z "$CC"; then 1978 # Extract the first word of "cc", so it can be a program name with args. 1979set dummy cc; ac_word=$2 1980echo "$as_me:$LINENO: checking for $ac_word" >&5 1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1982if test "${ac_cv_prog_CC+set}" = set; then 1983 echo $ECHO_N "(cached) $ECHO_C" >&6 1984else 1985 if test -n "$CC"; then 1986 ac_cv_prog_CC="$CC" # Let the user override the test. 1987else 1988 ac_prog_rejected=no 1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1990for as_dir in $PATH 1991do 1992 IFS=$as_save_IFS 1993 test -z "$as_dir" && as_dir=. 1994 for ac_exec_ext in '' $ac_executable_extensions; do 1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1997 ac_prog_rejected=yes 1998 continue 1999 fi 2000 ac_cv_prog_CC="cc" 2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2002 break 2 2003 fi 2004done 2005done 2006 2007if test $ac_prog_rejected = yes; then 2008 # We found a bogon in the path, so make sure we never use it. 2009 set dummy $ac_cv_prog_CC 2010 shift 2011 if test $# != 0; then 2012 # We chose a different compiler from the bogus one. 2013 # However, it has the same basename, so the bogon will be chosen 2014 # first if we set CC to just the basename; use the full file name. 2015 shift 2016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2017 fi 2018fi 2019fi 2020fi 2021CC=$ac_cv_prog_CC 2022if test -n "$CC"; then 2023 echo "$as_me:$LINENO: result: $CC" >&5 2024echo "${ECHO_T}$CC" >&6 2025else 2026 echo "$as_me:$LINENO: result: no" >&5 2027echo "${ECHO_T}no" >&6 2028fi 2029 2030fi 2031if test -z "$CC"; then 2032 if test -n "$ac_tool_prefix"; then 2033 for ac_prog in cl 2034 do 2035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2036set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2037echo "$as_me:$LINENO: checking for $ac_word" >&5 2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2039if test "${ac_cv_prog_CC+set}" = set; then 2040 echo $ECHO_N "(cached) $ECHO_C" >&6 2041else 2042 if test -n "$CC"; then 2043 ac_cv_prog_CC="$CC" # Let the user override the test. 2044else 2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2046for as_dir in $PATH 2047do 2048 IFS=$as_save_IFS 2049 test -z "$as_dir" && as_dir=. 2050 for ac_exec_ext in '' $ac_executable_extensions; do 2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2054 break 2 2055 fi 2056done 2057done 2058 2059fi 2060fi 2061CC=$ac_cv_prog_CC 2062if test -n "$CC"; then 2063 echo "$as_me:$LINENO: result: $CC" >&5 2064echo "${ECHO_T}$CC" >&6 2065else 2066 echo "$as_me:$LINENO: result: no" >&5 2067echo "${ECHO_T}no" >&6 2068fi 2069 2070 test -n "$CC" && break 2071 done 2072fi 2073if test -z "$CC"; then 2074 ac_ct_CC=$CC 2075 for ac_prog in cl 2076do 2077 # Extract the first word of "$ac_prog", so it can be a program name with args. 2078set dummy $ac_prog; ac_word=$2 2079echo "$as_me:$LINENO: checking for $ac_word" >&5 2080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2081if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2082 echo $ECHO_N "(cached) $ECHO_C" >&6 2083else 2084 if test -n "$ac_ct_CC"; then 2085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2086else 2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2088for as_dir in $PATH 2089do 2090 IFS=$as_save_IFS 2091 test -z "$as_dir" && as_dir=. 2092 for ac_exec_ext in '' $ac_executable_extensions; do 2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2094 ac_cv_prog_ac_ct_CC="$ac_prog" 2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2096 break 2 2097 fi 2098done 2099done 2100 2101fi 2102fi 2103ac_ct_CC=$ac_cv_prog_ac_ct_CC 2104if test -n "$ac_ct_CC"; then 2105 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2106echo "${ECHO_T}$ac_ct_CC" >&6 2107else 2108 echo "$as_me:$LINENO: result: no" >&5 2109echo "${ECHO_T}no" >&6 2110fi 2111 2112 test -n "$ac_ct_CC" && break 2113done 2114 2115 CC=$ac_ct_CC 2116fi 2117 2118fi 2119 2120 2121test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2122See \`config.log' for more details." >&5 2123echo "$as_me: error: no acceptable C compiler found in \$PATH 2124See \`config.log' for more details." >&2;} 2125 { (exit 1); exit 1; }; } 2126 2127# Provide some information about the compiler. 2128echo "$as_me:$LINENO:" \ 2129 "checking for C compiler version" >&5 2130ac_compiler=`set X $ac_compile; echo $2` 2131{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2132 (eval $ac_compiler --version </dev/null >&5) 2>&5 2133 ac_status=$? 2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2135 (exit $ac_status); } 2136{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2137 (eval $ac_compiler -v </dev/null >&5) 2>&5 2138 ac_status=$? 2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2140 (exit $ac_status); } 2141{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2142 (eval $ac_compiler -V </dev/null >&5) 2>&5 2143 ac_status=$? 2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145 (exit $ac_status); } 2146 2147cat >conftest.$ac_ext <<_ACEOF 2148/* confdefs.h. */ 2149_ACEOF 2150cat confdefs.h >>conftest.$ac_ext 2151cat >>conftest.$ac_ext <<_ACEOF 2152/* end confdefs.h. */ 2153 2154int 2155main () 2156{ 2157 2158 ; 2159 return 0; 2160} 2161_ACEOF 2162ac_clean_files_save=$ac_clean_files 2163ac_clean_files="$ac_clean_files a.out a.exe b.out" 2164# Try to create an executable without -o first, disregard a.out. 2165# It will help us diagnose broken compilers, and finding out an intuition 2166# of exeext. 2167echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2168echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2169ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2170if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2171 (eval $ac_link_default) 2>&5 2172 ac_status=$? 2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2174 (exit $ac_status); }; then 2175 # Find the output, starting from the most likely. This scheme is 2176# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2177# resort. 2178 2179# Be careful to initialize this variable, since it used to be cached. 2180# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2181ac_cv_exeext= 2182# b.out is created by i960 compilers. 2183for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2184do 2185 test -f "$ac_file" || continue 2186 case $ac_file in 2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2188 ;; 2189 conftest.$ac_ext ) 2190 # This is the source file. 2191 ;; 2192 [ab].out ) 2193 # We found the default executable, but exeext='' is most 2194 # certainly right. 2195 break;; 2196 *.* ) 2197 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2198 # FIXME: I believe we export ac_cv_exeext for Libtool, 2199 # but it would be cool to find out if it's true. Does anybody 2200 # maintain Libtool? --akim. 2201 export ac_cv_exeext 2202 break;; 2203 * ) 2204 break;; 2205 esac 2206done 2207else 2208 echo "$as_me: failed program was:" >&5 2209sed 's/^/| /' conftest.$ac_ext >&5 2210 2211{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2212See \`config.log' for more details." >&5 2213echo "$as_me: error: C compiler cannot create executables 2214See \`config.log' for more details." >&2;} 2215 { (exit 77); exit 77; }; } 2216fi 2217 2218ac_exeext=$ac_cv_exeext 2219echo "$as_me:$LINENO: result: $ac_file" >&5 2220echo "${ECHO_T}$ac_file" >&6 2221 2222# Check the compiler produces executables we can run. If not, either 2223# the compiler is broken, or we cross compile. 2224echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2225echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2226# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2227# If not cross compiling, check that we can run a simple program. 2228if test "$cross_compiling" != yes; then 2229 if { ac_try='./$ac_file' 2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2231 (eval $ac_try) 2>&5 2232 ac_status=$? 2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2234 (exit $ac_status); }; }; then 2235 cross_compiling=no 2236 else 2237 if test "$cross_compiling" = maybe; then 2238 cross_compiling=yes 2239 else 2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2241If you meant to cross compile, use \`--host'. 2242See \`config.log' for more details." >&5 2243echo "$as_me: error: cannot run C compiled programs. 2244If you meant to cross compile, use \`--host'. 2245See \`config.log' for more details." >&2;} 2246 { (exit 1); exit 1; }; } 2247 fi 2248 fi 2249fi 2250echo "$as_me:$LINENO: result: yes" >&5 2251echo "${ECHO_T}yes" >&6 2252 2253rm -f a.out a.exe conftest$ac_cv_exeext b.out 2254ac_clean_files=$ac_clean_files_save 2255# Check the compiler produces executables we can run. If not, either 2256# the compiler is broken, or we cross compile. 2257echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2258echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2259echo "$as_me:$LINENO: result: $cross_compiling" >&5 2260echo "${ECHO_T}$cross_compiling" >&6 2261 2262echo "$as_me:$LINENO: checking for suffix of executables" >&5 2263echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2265 (eval $ac_link) 2>&5 2266 ac_status=$? 2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2268 (exit $ac_status); }; then 2269 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2270# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2271# work properly (i.e., refer to `conftest.exe'), while it won't with 2272# `rm'. 2273for ac_file in conftest.exe conftest conftest.*; do 2274 test -f "$ac_file" || continue 2275 case $ac_file in 2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2278 export ac_cv_exeext 2279 break;; 2280 * ) break;; 2281 esac 2282done 2283else 2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2285See \`config.log' for more details." >&5 2286echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2287See \`config.log' for more details." >&2;} 2288 { (exit 1); exit 1; }; } 2289fi 2290 2291rm -f conftest$ac_cv_exeext 2292echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2293echo "${ECHO_T}$ac_cv_exeext" >&6 2294 2295rm -f conftest.$ac_ext 2296EXEEXT=$ac_cv_exeext 2297ac_exeext=$EXEEXT 2298echo "$as_me:$LINENO: checking for suffix of object files" >&5 2299echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2300if test "${ac_cv_objext+set}" = set; then 2301 echo $ECHO_N "(cached) $ECHO_C" >&6 2302else 2303 cat >conftest.$ac_ext <<_ACEOF 2304/* confdefs.h. */ 2305_ACEOF 2306cat confdefs.h >>conftest.$ac_ext 2307cat >>conftest.$ac_ext <<_ACEOF 2308/* end confdefs.h. */ 2309 2310int 2311main () 2312{ 2313 2314 ; 2315 return 0; 2316} 2317_ACEOF 2318rm -f conftest.o conftest.obj 2319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2320 (eval $ac_compile) 2>&5 2321 ac_status=$? 2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2323 (exit $ac_status); }; then 2324 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2325 case $ac_file in 2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2328 break;; 2329 esac 2330done 2331else 2332 echo "$as_me: failed program was:" >&5 2333sed 's/^/| /' conftest.$ac_ext >&5 2334 2335{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2336See \`config.log' for more details." >&5 2337echo "$as_me: error: cannot compute suffix of object files: cannot compile 2338See \`config.log' for more details." >&2;} 2339 { (exit 1); exit 1; }; } 2340fi 2341 2342rm -f conftest.$ac_cv_objext conftest.$ac_ext 2343fi 2344echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2345echo "${ECHO_T}$ac_cv_objext" >&6 2346OBJEXT=$ac_cv_objext 2347ac_objext=$OBJEXT 2348echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2349echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2350if test "${ac_cv_c_compiler_gnu+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352else 2353 cat >conftest.$ac_ext <<_ACEOF 2354/* confdefs.h. */ 2355_ACEOF 2356cat confdefs.h >>conftest.$ac_ext 2357cat >>conftest.$ac_ext <<_ACEOF 2358/* end confdefs.h. */ 2359 2360int 2361main () 2362{ 2363#ifndef __GNUC__ 2364 choke me 2365#endif 2366 2367 ; 2368 return 0; 2369} 2370_ACEOF 2371rm -f conftest.$ac_objext 2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2373 (eval $ac_compile) 2>conftest.er1 2374 ac_status=$? 2375 grep -v '^ *+' conftest.er1 >conftest.err 2376 rm -f conftest.er1 2377 cat conftest.err >&5 2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2379 (exit $ac_status); } && 2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2382 (eval $ac_try) 2>&5 2383 ac_status=$? 2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2385 (exit $ac_status); }; } && 2386 { ac_try='test -s conftest.$ac_objext' 2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2388 (eval $ac_try) 2>&5 2389 ac_status=$? 2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2391 (exit $ac_status); }; }; then 2392 ac_compiler_gnu=yes 2393else 2394 echo "$as_me: failed program was:" >&5 2395sed 's/^/| /' conftest.$ac_ext >&5 2396 2397ac_compiler_gnu=no 2398fi 2399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2400ac_cv_c_compiler_gnu=$ac_compiler_gnu 2401 2402fi 2403echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2404echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2405GCC=`test $ac_compiler_gnu = yes && echo yes` 2406ac_test_CFLAGS=${CFLAGS+set} 2407ac_save_CFLAGS=$CFLAGS 2408CFLAGS="-g" 2409echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2410echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2411if test "${ac_cv_prog_cc_g+set}" = set; then 2412 echo $ECHO_N "(cached) $ECHO_C" >&6 2413else 2414 cat >conftest.$ac_ext <<_ACEOF 2415/* confdefs.h. */ 2416_ACEOF 2417cat confdefs.h >>conftest.$ac_ext 2418cat >>conftest.$ac_ext <<_ACEOF 2419/* end confdefs.h. */ 2420 2421int 2422main () 2423{ 2424 2425 ; 2426 return 0; 2427} 2428_ACEOF 2429rm -f conftest.$ac_objext 2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2431 (eval $ac_compile) 2>conftest.er1 2432 ac_status=$? 2433 grep -v '^ *+' conftest.er1 >conftest.err 2434 rm -f conftest.er1 2435 cat conftest.err >&5 2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2437 (exit $ac_status); } && 2438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2440 (eval $ac_try) 2>&5 2441 ac_status=$? 2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2443 (exit $ac_status); }; } && 2444 { ac_try='test -s conftest.$ac_objext' 2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2446 (eval $ac_try) 2>&5 2447 ac_status=$? 2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2449 (exit $ac_status); }; }; then 2450 ac_cv_prog_cc_g=yes 2451else 2452 echo "$as_me: failed program was:" >&5 2453sed 's/^/| /' conftest.$ac_ext >&5 2454 2455ac_cv_prog_cc_g=no 2456fi 2457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2458fi 2459echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2460echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2461if test "$ac_test_CFLAGS" = set; then 2462 CFLAGS=$ac_save_CFLAGS 2463elif test $ac_cv_prog_cc_g = yes; then 2464 if test "$GCC" = yes; then 2465 CFLAGS="-g -O2" 2466 else 2467 CFLAGS="-g" 2468 fi 2469else 2470 if test "$GCC" = yes; then 2471 CFLAGS="-O2" 2472 else 2473 CFLAGS= 2474 fi 2475fi 2476echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2477echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2478if test "${ac_cv_prog_cc_stdc+set}" = set; then 2479 echo $ECHO_N "(cached) $ECHO_C" >&6 2480else 2481 ac_cv_prog_cc_stdc=no 2482ac_save_CC=$CC 2483cat >conftest.$ac_ext <<_ACEOF 2484/* confdefs.h. */ 2485_ACEOF 2486cat confdefs.h >>conftest.$ac_ext 2487cat >>conftest.$ac_ext <<_ACEOF 2488/* end confdefs.h. */ 2489#include <stdarg.h> 2490#include <stdio.h> 2491#include <sys/types.h> 2492#include <sys/stat.h> 2493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2494struct buf { int x; }; 2495FILE * (*rcsopen) (struct buf *, struct stat *, int); 2496static char *e (p, i) 2497 char **p; 2498 int i; 2499{ 2500 return p[i]; 2501} 2502static char *f (char * (*g) (char **, int), char **p, ...) 2503{ 2504 char *s; 2505 va_list v; 2506 va_start (v,p); 2507 s = g (p, va_arg (v,int)); 2508 va_end (v); 2509 return s; 2510} 2511 2512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2513 function prototypes and stuff, but not '\xHH' hex character constants. 2514 These don't provoke an error unfortunately, instead are silently treated 2515 as 'x'. The following induces an error, until -std1 is added to get 2516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2517 array size at least. It's necessary to write '\x00'==0 to get something 2518 that's true only with -std1. */ 2519int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2520 2521int test (int i, double x); 2522struct s1 {int (*f) (int a);}; 2523struct s2 {int (*f) (double a);}; 2524int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2525int argc; 2526char **argv; 2527int 2528main () 2529{ 2530return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2531 ; 2532 return 0; 2533} 2534_ACEOF 2535# Don't try gcc -ansi; that turns off useful extensions and 2536# breaks some systems' header files. 2537# AIX -qlanglvl=ansi 2538# Ultrix and OSF/1 -std1 2539# HP-UX 10.20 and later -Ae 2540# HP-UX older versions -Aa -D_HPUX_SOURCE 2541# SVR4 -Xc -D__EXTENSIONS__ 2542for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2543do 2544 CC="$ac_save_CC $ac_arg" 2545 rm -f conftest.$ac_objext 2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2547 (eval $ac_compile) 2>conftest.er1 2548 ac_status=$? 2549 grep -v '^ *+' conftest.er1 >conftest.err 2550 rm -f conftest.er1 2551 cat conftest.err >&5 2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2553 (exit $ac_status); } && 2554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2556 (eval $ac_try) 2>&5 2557 ac_status=$? 2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2559 (exit $ac_status); }; } && 2560 { ac_try='test -s conftest.$ac_objext' 2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2562 (eval $ac_try) 2>&5 2563 ac_status=$? 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); }; }; then 2566 ac_cv_prog_cc_stdc=$ac_arg 2567break 2568else 2569 echo "$as_me: failed program was:" >&5 2570sed 's/^/| /' conftest.$ac_ext >&5 2571 2572fi 2573rm -f conftest.err conftest.$ac_objext 2574done 2575rm -f conftest.$ac_ext conftest.$ac_objext 2576CC=$ac_save_CC 2577 2578fi 2579 2580case "x$ac_cv_prog_cc_stdc" in 2581 x|xno) 2582 echo "$as_me:$LINENO: result: none needed" >&5 2583echo "${ECHO_T}none needed" >&6 ;; 2584 *) 2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2586echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2587 CC="$CC $ac_cv_prog_cc_stdc" ;; 2588esac 2589 2590# Some people use a C++ compiler to compile C. Since we use `exit', 2591# in C++ we need to declare it. In case someone uses the same compiler 2592# for both compiling C and C++ we need to have the C++ compiler decide 2593# the declaration of exit, since it's the most demanding environment. 2594cat >conftest.$ac_ext <<_ACEOF 2595#ifndef __cplusplus 2596 choke me 2597#endif 2598_ACEOF 2599rm -f conftest.$ac_objext 2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2601 (eval $ac_compile) 2>conftest.er1 2602 ac_status=$? 2603 grep -v '^ *+' conftest.er1 >conftest.err 2604 rm -f conftest.er1 2605 cat conftest.err >&5 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); } && 2608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2610 (eval $ac_try) 2>&5 2611 ac_status=$? 2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2613 (exit $ac_status); }; } && 2614 { ac_try='test -s conftest.$ac_objext' 2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2616 (eval $ac_try) 2>&5 2617 ac_status=$? 2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2619 (exit $ac_status); }; }; then 2620 for ac_declaration in \ 2621 '' \ 2622 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2623 'extern "C" void std::exit (int); using std::exit;' \ 2624 'extern "C" void exit (int) throw ();' \ 2625 'extern "C" void exit (int);' \ 2626 'void exit (int);' 2627do 2628 cat >conftest.$ac_ext <<_ACEOF 2629/* confdefs.h. */ 2630_ACEOF 2631cat confdefs.h >>conftest.$ac_ext 2632cat >>conftest.$ac_ext <<_ACEOF 2633/* end confdefs.h. */ 2634$ac_declaration 2635#include <stdlib.h> 2636int 2637main () 2638{ 2639exit (42); 2640 ; 2641 return 0; 2642} 2643_ACEOF 2644rm -f conftest.$ac_objext 2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2646 (eval $ac_compile) 2>conftest.er1 2647 ac_status=$? 2648 grep -v '^ *+' conftest.er1 >conftest.err 2649 rm -f conftest.er1 2650 cat conftest.err >&5 2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2652 (exit $ac_status); } && 2653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2655 (eval $ac_try) 2>&5 2656 ac_status=$? 2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2658 (exit $ac_status); }; } && 2659 { ac_try='test -s conftest.$ac_objext' 2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2661 (eval $ac_try) 2>&5 2662 ac_status=$? 2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2664 (exit $ac_status); }; }; then 2665 : 2666else 2667 echo "$as_me: failed program was:" >&5 2668sed 's/^/| /' conftest.$ac_ext >&5 2669 2670continue 2671fi 2672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2673 cat >conftest.$ac_ext <<_ACEOF 2674/* confdefs.h. */ 2675_ACEOF 2676cat confdefs.h >>conftest.$ac_ext 2677cat >>conftest.$ac_ext <<_ACEOF 2678/* end confdefs.h. */ 2679$ac_declaration 2680int 2681main () 2682{ 2683exit (42); 2684 ; 2685 return 0; 2686} 2687_ACEOF 2688rm -f conftest.$ac_objext 2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2690 (eval $ac_compile) 2>conftest.er1 2691 ac_status=$? 2692 grep -v '^ *+' conftest.er1 >conftest.err 2693 rm -f conftest.er1 2694 cat conftest.err >&5 2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2696 (exit $ac_status); } && 2697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2699 (eval $ac_try) 2>&5 2700 ac_status=$? 2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2702 (exit $ac_status); }; } && 2703 { ac_try='test -s conftest.$ac_objext' 2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2705 (eval $ac_try) 2>&5 2706 ac_status=$? 2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2708 (exit $ac_status); }; }; then 2709 break 2710else 2711 echo "$as_me: failed program was:" >&5 2712sed 's/^/| /' conftest.$ac_ext >&5 2713 2714fi 2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2716done 2717rm -f conftest* 2718if test -n "$ac_declaration"; then 2719 echo '#ifdef __cplusplus' >>confdefs.h 2720 echo $ac_declaration >>confdefs.h 2721 echo '#endif' >>confdefs.h 2722fi 2723 2724else 2725 echo "$as_me: failed program was:" >&5 2726sed 's/^/| /' conftest.$ac_ext >&5 2727 2728fi 2729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2730ac_ext=c 2731ac_cpp='$CPP $CPPFLAGS' 2732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2734ac_compiler_gnu=$ac_cv_c_compiler_gnu 2735 2736 2737ac_ext=c 2738ac_cpp='$CPP $CPPFLAGS' 2739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2741ac_compiler_gnu=$ac_cv_c_compiler_gnu 2742echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2743echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2744# On Suns, sometimes $CPP names a directory. 2745if test -n "$CPP" && test -d "$CPP"; then 2746 CPP= 2747fi 2748if test -z "$CPP"; then 2749 if test "${ac_cv_prog_CPP+set}" = set; then 2750 echo $ECHO_N "(cached) $ECHO_C" >&6 2751else 2752 # Double quotes because CPP needs to be expanded 2753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2754 do 2755 ac_preproc_ok=false 2756for ac_c_preproc_warn_flag in '' yes 2757do 2758 # Use a header file that comes with gcc, so configuring glibc 2759 # with a fresh cross-compiler works. 2760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2761 # <limits.h> exists even on freestanding compilers. 2762 # On the NeXT, cc -E runs the code through the compiler's parser, 2763 # not just through cpp. "Syntax error" is here to catch this case. 2764 cat >conftest.$ac_ext <<_ACEOF 2765/* confdefs.h. */ 2766_ACEOF 2767cat confdefs.h >>conftest.$ac_ext 2768cat >>conftest.$ac_ext <<_ACEOF 2769/* end confdefs.h. */ 2770#ifdef __STDC__ 2771# include <limits.h> 2772#else 2773# include <assert.h> 2774#endif 2775 Syntax error 2776_ACEOF 2777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2779 ac_status=$? 2780 grep -v '^ *+' conftest.er1 >conftest.err 2781 rm -f conftest.er1 2782 cat conftest.err >&5 2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2784 (exit $ac_status); } >/dev/null; then 2785 if test -s conftest.err; then 2786 ac_cpp_err=$ac_c_preproc_warn_flag 2787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2788 else 2789 ac_cpp_err= 2790 fi 2791else 2792 ac_cpp_err=yes 2793fi 2794if test -z "$ac_cpp_err"; then 2795 : 2796else 2797 echo "$as_me: failed program was:" >&5 2798sed 's/^/| /' conftest.$ac_ext >&5 2799 2800 # Broken: fails on valid input. 2801continue 2802fi 2803rm -f conftest.err conftest.$ac_ext 2804 2805 # OK, works on sane cases. Now check whether non-existent headers 2806 # can be detected and how. 2807 cat >conftest.$ac_ext <<_ACEOF 2808/* confdefs.h. */ 2809_ACEOF 2810cat confdefs.h >>conftest.$ac_ext 2811cat >>conftest.$ac_ext <<_ACEOF 2812/* end confdefs.h. */ 2813#include <ac_nonexistent.h> 2814_ACEOF 2815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2817 ac_status=$? 2818 grep -v '^ *+' conftest.er1 >conftest.err 2819 rm -f conftest.er1 2820 cat conftest.err >&5 2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2822 (exit $ac_status); } >/dev/null; then 2823 if test -s conftest.err; then 2824 ac_cpp_err=$ac_c_preproc_warn_flag 2825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2826 else 2827 ac_cpp_err= 2828 fi 2829else 2830 ac_cpp_err=yes 2831fi 2832if test -z "$ac_cpp_err"; then 2833 # Broken: success on invalid input. 2834continue 2835else 2836 echo "$as_me: failed program was:" >&5 2837sed 's/^/| /' conftest.$ac_ext >&5 2838 2839 # Passes both tests. 2840ac_preproc_ok=: 2841break 2842fi 2843rm -f conftest.err conftest.$ac_ext 2844 2845done 2846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2847rm -f conftest.err conftest.$ac_ext 2848if $ac_preproc_ok; then 2849 break 2850fi 2851 2852 done 2853 ac_cv_prog_CPP=$CPP 2854 2855fi 2856 CPP=$ac_cv_prog_CPP 2857else 2858 ac_cv_prog_CPP=$CPP 2859fi 2860echo "$as_me:$LINENO: result: $CPP" >&5 2861echo "${ECHO_T}$CPP" >&6 2862ac_preproc_ok=false 2863for ac_c_preproc_warn_flag in '' yes 2864do 2865 # Use a header file that comes with gcc, so configuring glibc 2866 # with a fresh cross-compiler works. 2867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2868 # <limits.h> exists even on freestanding compilers. 2869 # On the NeXT, cc -E runs the code through the compiler's parser, 2870 # not just through cpp. "Syntax error" is here to catch this case. 2871 cat >conftest.$ac_ext <<_ACEOF 2872/* confdefs.h. */ 2873_ACEOF 2874cat confdefs.h >>conftest.$ac_ext 2875cat >>conftest.$ac_ext <<_ACEOF 2876/* end confdefs.h. */ 2877#ifdef __STDC__ 2878# include <limits.h> 2879#else 2880# include <assert.h> 2881#endif 2882 Syntax error 2883_ACEOF 2884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2886 ac_status=$? 2887 grep -v '^ *+' conftest.er1 >conftest.err 2888 rm -f conftest.er1 2889 cat conftest.err >&5 2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2891 (exit $ac_status); } >/dev/null; then 2892 if test -s conftest.err; then 2893 ac_cpp_err=$ac_c_preproc_warn_flag 2894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2895 else 2896 ac_cpp_err= 2897 fi 2898else 2899 ac_cpp_err=yes 2900fi 2901if test -z "$ac_cpp_err"; then 2902 : 2903else 2904 echo "$as_me: failed program was:" >&5 2905sed 's/^/| /' conftest.$ac_ext >&5 2906 2907 # Broken: fails on valid input. 2908continue 2909fi 2910rm -f conftest.err conftest.$ac_ext 2911 2912 # OK, works on sane cases. Now check whether non-existent headers 2913 # can be detected and how. 2914 cat >conftest.$ac_ext <<_ACEOF 2915/* confdefs.h. */ 2916_ACEOF 2917cat confdefs.h >>conftest.$ac_ext 2918cat >>conftest.$ac_ext <<_ACEOF 2919/* end confdefs.h. */ 2920#include <ac_nonexistent.h> 2921_ACEOF 2922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2924 ac_status=$? 2925 grep -v '^ *+' conftest.er1 >conftest.err 2926 rm -f conftest.er1 2927 cat conftest.err >&5 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); } >/dev/null; then 2930 if test -s conftest.err; then 2931 ac_cpp_err=$ac_c_preproc_warn_flag 2932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2933 else 2934 ac_cpp_err= 2935 fi 2936else 2937 ac_cpp_err=yes 2938fi 2939if test -z "$ac_cpp_err"; then 2940 # Broken: success on invalid input. 2941continue 2942else 2943 echo "$as_me: failed program was:" >&5 2944sed 's/^/| /' conftest.$ac_ext >&5 2945 2946 # Passes both tests. 2947ac_preproc_ok=: 2948break 2949fi 2950rm -f conftest.err conftest.$ac_ext 2951 2952done 2953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2954rm -f conftest.err conftest.$ac_ext 2955if $ac_preproc_ok; then 2956 : 2957else 2958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2959See \`config.log' for more details." >&5 2960echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2961See \`config.log' for more details." >&2;} 2962 { (exit 1); exit 1; }; } 2963fi 2964 2965ac_ext=c 2966ac_cpp='$CPP $CPPFLAGS' 2967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2969ac_compiler_gnu=$ac_cv_c_compiler_gnu 2970 2971 2972echo "$as_me:$LINENO: checking for egrep" >&5 2973echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2974if test "${ac_cv_prog_egrep+set}" = set; then 2975 echo $ECHO_N "(cached) $ECHO_C" >&6 2976else 2977 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2978 then ac_cv_prog_egrep='grep -E' 2979 else ac_cv_prog_egrep='egrep' 2980 fi 2981fi 2982echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2983echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2984 EGREP=$ac_cv_prog_egrep 2985 2986 2987echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2988echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2989if test "${ac_cv_header_stdc+set}" = set; then 2990 echo $ECHO_N "(cached) $ECHO_C" >&6 2991else 2992 cat >conftest.$ac_ext <<_ACEOF 2993/* confdefs.h. */ 2994_ACEOF 2995cat confdefs.h >>conftest.$ac_ext 2996cat >>conftest.$ac_ext <<_ACEOF 2997/* end confdefs.h. */ 2998#include <stdlib.h> 2999#include <stdarg.h> 3000#include <string.h> 3001#include <float.h> 3002 3003int 3004main () 3005{ 3006 3007 ; 3008 return 0; 3009} 3010_ACEOF 3011rm -f conftest.$ac_objext 3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3013 (eval $ac_compile) 2>conftest.er1 3014 ac_status=$? 3015 grep -v '^ *+' conftest.er1 >conftest.err 3016 rm -f conftest.er1 3017 cat conftest.err >&5 3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3019 (exit $ac_status); } && 3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3022 (eval $ac_try) 2>&5 3023 ac_status=$? 3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3025 (exit $ac_status); }; } && 3026 { ac_try='test -s conftest.$ac_objext' 3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3028 (eval $ac_try) 2>&5 3029 ac_status=$? 3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3031 (exit $ac_status); }; }; then 3032 ac_cv_header_stdc=yes 3033else 3034 echo "$as_me: failed program was:" >&5 3035sed 's/^/| /' conftest.$ac_ext >&5 3036 3037ac_cv_header_stdc=no 3038fi 3039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3040 3041if test $ac_cv_header_stdc = yes; then 3042 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3043 cat >conftest.$ac_ext <<_ACEOF 3044/* confdefs.h. */ 3045_ACEOF 3046cat confdefs.h >>conftest.$ac_ext 3047cat >>conftest.$ac_ext <<_ACEOF 3048/* end confdefs.h. */ 3049#include <string.h> 3050 3051_ACEOF 3052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3053 $EGREP "memchr" >/dev/null 2>&1; then 3054 : 3055else 3056 ac_cv_header_stdc=no 3057fi 3058rm -f conftest* 3059 3060fi 3061 3062if test $ac_cv_header_stdc = yes; then 3063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3064 cat >conftest.$ac_ext <<_ACEOF 3065/* confdefs.h. */ 3066_ACEOF 3067cat confdefs.h >>conftest.$ac_ext 3068cat >>conftest.$ac_ext <<_ACEOF 3069/* end confdefs.h. */ 3070#include <stdlib.h> 3071 3072_ACEOF 3073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3074 $EGREP "free" >/dev/null 2>&1; then 3075 : 3076else 3077 ac_cv_header_stdc=no 3078fi 3079rm -f conftest* 3080 3081fi 3082 3083if test $ac_cv_header_stdc = yes; then 3084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3085 if test "$cross_compiling" = yes; then 3086 : 3087else 3088 cat >conftest.$ac_ext <<_ACEOF 3089/* confdefs.h. */ 3090_ACEOF 3091cat confdefs.h >>conftest.$ac_ext 3092cat >>conftest.$ac_ext <<_ACEOF 3093/* end confdefs.h. */ 3094#include <ctype.h> 3095#if ((' ' & 0x0FF) == 0x020) 3096# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3097# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3098#else 3099# define ISLOWER(c) \ 3100 (('a' <= (c) && (c) <= 'i') \ 3101 || ('j' <= (c) && (c) <= 'r') \ 3102 || ('s' <= (c) && (c) <= 'z')) 3103# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3104#endif 3105 3106#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3107int 3108main () 3109{ 3110 int i; 3111 for (i = 0; i < 256; i++) 3112 if (XOR (islower (i), ISLOWER (i)) 3113 || toupper (i) != TOUPPER (i)) 3114 exit(2); 3115 exit (0); 3116} 3117_ACEOF 3118rm -f conftest$ac_exeext 3119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3120 (eval $ac_link) 2>&5 3121 ac_status=$? 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3125 (eval $ac_try) 2>&5 3126 ac_status=$? 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3128 (exit $ac_status); }; }; then 3129 : 3130else 3131 echo "$as_me: program exited with status $ac_status" >&5 3132echo "$as_me: failed program was:" >&5 3133sed 's/^/| /' conftest.$ac_ext >&5 3134 3135( exit $ac_status ) 3136ac_cv_header_stdc=no 3137fi 3138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3139fi 3140fi 3141fi 3142echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3143echo "${ECHO_T}$ac_cv_header_stdc" >&6 3144if test $ac_cv_header_stdc = yes; then 3145 3146cat >>confdefs.h <<\_ACEOF 3147#define STDC_HEADERS 1 3148_ACEOF 3149 3150fi 3151 3152# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3163 inttypes.h stdint.h unistd.h 3164do 3165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3166echo "$as_me:$LINENO: checking for $ac_header" >&5 3167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3168if eval "test \"\${$as_ac_Header+set}\" = set"; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170else 3171 cat >conftest.$ac_ext <<_ACEOF 3172/* confdefs.h. */ 3173_ACEOF 3174cat confdefs.h >>conftest.$ac_ext 3175cat >>conftest.$ac_ext <<_ACEOF 3176/* end confdefs.h. */ 3177$ac_includes_default 3178 3179#include <$ac_header> 3180_ACEOF 3181rm -f conftest.$ac_objext 3182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3183 (eval $ac_compile) 2>conftest.er1 3184 ac_status=$? 3185 grep -v '^ *+' conftest.er1 >conftest.err 3186 rm -f conftest.er1 3187 cat conftest.err >&5 3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3189 (exit $ac_status); } && 3190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3192 (eval $ac_try) 2>&5 3193 ac_status=$? 3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3195 (exit $ac_status); }; } && 3196 { ac_try='test -s conftest.$ac_objext' 3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3198 (eval $ac_try) 2>&5 3199 ac_status=$? 3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3201 (exit $ac_status); }; }; then 3202 eval "$as_ac_Header=yes" 3203else 3204 echo "$as_me: failed program was:" >&5 3205sed 's/^/| /' conftest.$ac_ext >&5 3206 3207eval "$as_ac_Header=no" 3208fi 3209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3210fi 3211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3213if test `eval echo '${'$as_ac_Header'}'` = yes; then 3214 cat >>confdefs.h <<_ACEOF 3215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3216_ACEOF 3217 3218fi 3219 3220done 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/param.h stdarg.h 3231do 3232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3233if eval "test \"\${$as_ac_Header+set}\" = set"; then 3234 echo "$as_me:$LINENO: checking for $ac_header" >&5 3235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3236if eval "test \"\${$as_ac_Header+set}\" = set"; then 3237 echo $ECHO_N "(cached) $ECHO_C" >&6 3238fi 3239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3241else 3242 # Is the header compilable? 3243echo "$as_me:$LINENO: checking $ac_header usability" >&5 3244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3245cat >conftest.$ac_ext <<_ACEOF 3246/* confdefs.h. */ 3247_ACEOF 3248cat confdefs.h >>conftest.$ac_ext 3249cat >>conftest.$ac_ext <<_ACEOF 3250/* end confdefs.h. */ 3251$ac_includes_default 3252#include <$ac_header> 3253_ACEOF 3254rm -f conftest.$ac_objext 3255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3256 (eval $ac_compile) 2>conftest.er1 3257 ac_status=$? 3258 grep -v '^ *+' conftest.er1 >conftest.err 3259 rm -f conftest.er1 3260 cat conftest.err >&5 3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3262 (exit $ac_status); } && 3263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3265 (eval $ac_try) 2>&5 3266 ac_status=$? 3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3268 (exit $ac_status); }; } && 3269 { ac_try='test -s conftest.$ac_objext' 3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3271 (eval $ac_try) 2>&5 3272 ac_status=$? 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274 (exit $ac_status); }; }; then 3275 ac_header_compiler=yes 3276else 3277 echo "$as_me: failed program was:" >&5 3278sed 's/^/| /' conftest.$ac_ext >&5 3279 3280ac_header_compiler=no 3281fi 3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3283echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3284echo "${ECHO_T}$ac_header_compiler" >&6 3285 3286# Is the header present? 3287echo "$as_me:$LINENO: checking $ac_header presence" >&5 3288echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3289cat >conftest.$ac_ext <<_ACEOF 3290/* confdefs.h. */ 3291_ACEOF 3292cat confdefs.h >>conftest.$ac_ext 3293cat >>conftest.$ac_ext <<_ACEOF 3294/* end confdefs.h. */ 3295#include <$ac_header> 3296_ACEOF 3297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } >/dev/null; then 3305 if test -s conftest.err; then 3306 ac_cpp_err=$ac_c_preproc_warn_flag 3307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3308 else 3309 ac_cpp_err= 3310 fi 3311else 3312 ac_cpp_err=yes 3313fi 3314if test -z "$ac_cpp_err"; then 3315 ac_header_preproc=yes 3316else 3317 echo "$as_me: failed program was:" >&5 3318sed 's/^/| /' conftest.$ac_ext >&5 3319 3320 ac_header_preproc=no 3321fi 3322rm -f conftest.err conftest.$ac_ext 3323echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3324echo "${ECHO_T}$ac_header_preproc" >&6 3325 3326# So? What about this header? 3327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3328 yes:no: ) 3329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3333 ac_header_preproc=yes 3334 ;; 3335 no:yes:* ) 3336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3343echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3348 ( 3349 cat <<\_ASBOX 3350## --------------------------------------- ## 3351## Report this to michael@metaparadigm.com ## 3352## --------------------------------------- ## 3353_ASBOX 3354 ) | 3355 sed "s/^/$as_me: WARNING: /" >&2 3356 ;; 3357esac 3358echo "$as_me:$LINENO: checking for $ac_header" >&5 3359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3360if eval "test \"\${$as_ac_Header+set}\" = set"; then 3361 echo $ECHO_N "(cached) $ECHO_C" >&6 3362else 3363 eval "$as_ac_Header=\$ac_header_preproc" 3364fi 3365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3367 3368fi 3369if test `eval echo '${'$as_ac_Header'}'` = yes; then 3370 cat >>confdefs.h <<_ACEOF 3371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3372_ACEOF 3373 3374fi 3375 3376done 3377 3378 3379# Checks for typedefs, structures, and compiler characteristics. 3380echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3381echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3382if test "${ac_cv_c_const+set}" = set; then 3383 echo $ECHO_N "(cached) $ECHO_C" >&6 3384else 3385 cat >conftest.$ac_ext <<_ACEOF 3386/* confdefs.h. */ 3387_ACEOF 3388cat confdefs.h >>conftest.$ac_ext 3389cat >>conftest.$ac_ext <<_ACEOF 3390/* end confdefs.h. */ 3391 3392int 3393main () 3394{ 3395/* FIXME: Include the comments suggested by Paul. */ 3396#ifndef __cplusplus 3397 /* Ultrix mips cc rejects this. */ 3398 typedef int charset[2]; 3399 const charset x; 3400 /* SunOS 4.1.1 cc rejects this. */ 3401 char const *const *ccp; 3402 char **p; 3403 /* NEC SVR4.0.2 mips cc rejects this. */ 3404 struct point {int x, y;}; 3405 static struct point const zero = {0,0}; 3406 /* AIX XL C 1.02.0.0 rejects this. 3407 It does not let you subtract one const X* pointer from another in 3408 an arm of an if-expression whose if-part is not a constant 3409 expression */ 3410 const char *g = "string"; 3411 ccp = &g + (g ? g-g : 0); 3412 /* HPUX 7.0 cc rejects these. */ 3413 ++ccp; 3414 p = (char**) ccp; 3415 ccp = (char const *const *) p; 3416 { /* SCO 3.2v4 cc rejects this. */ 3417 char *t; 3418 char const *s = 0 ? (char *) 0 : (char const *) 0; 3419 3420 *t++ = 0; 3421 } 3422 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3423 int x[] = {25, 17}; 3424 const int *foo = &x[0]; 3425 ++foo; 3426 } 3427 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3428 typedef const int *iptr; 3429 iptr p = 0; 3430 ++p; 3431 } 3432 { /* AIX XL C 1.02.0.0 rejects this saying 3433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3434 struct s { int j; const int *ap[3]; }; 3435 struct s *b; b->j = 5; 3436 } 3437 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3438 const int foo = 10; 3439 } 3440#endif 3441 3442 ; 3443 return 0; 3444} 3445_ACEOF 3446rm -f conftest.$ac_objext 3447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3448 (eval $ac_compile) 2>conftest.er1 3449 ac_status=$? 3450 grep -v '^ *+' conftest.er1 >conftest.err 3451 rm -f conftest.er1 3452 cat conftest.err >&5 3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3454 (exit $ac_status); } && 3455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3457 (eval $ac_try) 2>&5 3458 ac_status=$? 3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460 (exit $ac_status); }; } && 3461 { ac_try='test -s conftest.$ac_objext' 3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3463 (eval $ac_try) 2>&5 3464 ac_status=$? 3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3466 (exit $ac_status); }; }; then 3467 ac_cv_c_const=yes 3468else 3469 echo "$as_me: failed program was:" >&5 3470sed 's/^/| /' conftest.$ac_ext >&5 3471 3472ac_cv_c_const=no 3473fi 3474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3475fi 3476echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3477echo "${ECHO_T}$ac_cv_c_const" >&6 3478if test $ac_cv_c_const = no; then 3479 3480cat >>confdefs.h <<\_ACEOF 3481#define const 3482_ACEOF 3483 3484fi 3485 3486echo "$as_me:$LINENO: checking for size_t" >&5 3487echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3488if test "${ac_cv_type_size_t+set}" = set; then 3489 echo $ECHO_N "(cached) $ECHO_C" >&6 3490else 3491 cat >conftest.$ac_ext <<_ACEOF 3492/* confdefs.h. */ 3493_ACEOF 3494cat confdefs.h >>conftest.$ac_ext 3495cat >>conftest.$ac_ext <<_ACEOF 3496/* end confdefs.h. */ 3497$ac_includes_default 3498int 3499main () 3500{ 3501if ((size_t *) 0) 3502 return 0; 3503if (sizeof (size_t)) 3504 return 0; 3505 ; 3506 return 0; 3507} 3508_ACEOF 3509rm -f conftest.$ac_objext 3510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3511 (eval $ac_compile) 2>conftest.er1 3512 ac_status=$? 3513 grep -v '^ *+' conftest.er1 >conftest.err 3514 rm -f conftest.er1 3515 cat conftest.err >&5 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 (exit $ac_status); } && 3518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3520 (eval $ac_try) 2>&5 3521 ac_status=$? 3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3523 (exit $ac_status); }; } && 3524 { ac_try='test -s conftest.$ac_objext' 3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3526 (eval $ac_try) 2>&5 3527 ac_status=$? 3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3529 (exit $ac_status); }; }; then 3530 ac_cv_type_size_t=yes 3531else 3532 echo "$as_me: failed program was:" >&5 3533sed 's/^/| /' conftest.$ac_ext >&5 3534 3535ac_cv_type_size_t=no 3536fi 3537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3538fi 3539echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 3540echo "${ECHO_T}$ac_cv_type_size_t" >&6 3541if test $ac_cv_type_size_t = yes; then 3542 : 3543else 3544 3545cat >>confdefs.h <<_ACEOF 3546#define size_t unsigned 3547_ACEOF 3548 3549fi 3550 3551 3552# Checks for library functions. 3553 3554for ac_func in vprintf 3555do 3556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3557echo "$as_me:$LINENO: checking for $ac_func" >&5 3558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3559if eval "test \"\${$as_ac_var+set}\" = set"; then 3560 echo $ECHO_N "(cached) $ECHO_C" >&6 3561else 3562 cat >conftest.$ac_ext <<_ACEOF 3563/* confdefs.h. */ 3564_ACEOF 3565cat confdefs.h >>conftest.$ac_ext 3566cat >>conftest.$ac_ext <<_ACEOF 3567/* end confdefs.h. */ 3568/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3569 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3570#define $ac_func innocuous_$ac_func 3571 3572/* System header to define __stub macros and hopefully few prototypes, 3573 which can conflict with char $ac_func (); below. 3574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3575 <limits.h> exists even on freestanding compilers. */ 3576 3577#ifdef __STDC__ 3578# include <limits.h> 3579#else 3580# include <assert.h> 3581#endif 3582 3583#undef $ac_func 3584 3585/* Override any gcc2 internal prototype to avoid an error. */ 3586#ifdef __cplusplus 3587extern "C" 3588{ 3589#endif 3590/* We use char because int might match the return type of a gcc2 3591 builtin and then its argument prototype would still apply. */ 3592char $ac_func (); 3593/* The GNU C library defines this for functions which it implements 3594 to always fail with ENOSYS. Some functions are actually named 3595 something starting with __ and the normal name is an alias. */ 3596#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3597choke me 3598#else 3599char (*f) () = $ac_func; 3600#endif 3601#ifdef __cplusplus 3602} 3603#endif 3604 3605int 3606main () 3607{ 3608return f != $ac_func; 3609 ; 3610 return 0; 3611} 3612_ACEOF 3613rm -f conftest.$ac_objext conftest$ac_exeext 3614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3615 (eval $ac_link) 2>conftest.er1 3616 ac_status=$? 3617 grep -v '^ *+' conftest.er1 >conftest.err 3618 rm -f conftest.er1 3619 cat conftest.err >&5 3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 (exit $ac_status); } && 3622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3624 (eval $ac_try) 2>&5 3625 ac_status=$? 3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3627 (exit $ac_status); }; } && 3628 { ac_try='test -s conftest$ac_exeext' 3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3630 (eval $ac_try) 2>&5 3631 ac_status=$? 3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3633 (exit $ac_status); }; }; then 3634 eval "$as_ac_var=yes" 3635else 3636 echo "$as_me: failed program was:" >&5 3637sed 's/^/| /' conftest.$ac_ext >&5 3638 3639eval "$as_ac_var=no" 3640fi 3641rm -f conftest.err conftest.$ac_objext \ 3642 conftest$ac_exeext conftest.$ac_ext 3643fi 3644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3646if test `eval echo '${'$as_ac_var'}'` = yes; then 3647 cat >>confdefs.h <<_ACEOF 3648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3649_ACEOF 3650 3651echo "$as_me:$LINENO: checking for _doprnt" >&5 3652echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 3653if test "${ac_cv_func__doprnt+set}" = set; then 3654 echo $ECHO_N "(cached) $ECHO_C" >&6 3655else 3656 cat >conftest.$ac_ext <<_ACEOF 3657/* confdefs.h. */ 3658_ACEOF 3659cat confdefs.h >>conftest.$ac_ext 3660cat >>conftest.$ac_ext <<_ACEOF 3661/* end confdefs.h. */ 3662/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 3663 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3664#define _doprnt innocuous__doprnt 3665 3666/* System header to define __stub macros and hopefully few prototypes, 3667 which can conflict with char _doprnt (); below. 3668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3669 <limits.h> exists even on freestanding compilers. */ 3670 3671#ifdef __STDC__ 3672# include <limits.h> 3673#else 3674# include <assert.h> 3675#endif 3676 3677#undef _doprnt 3678 3679/* Override any gcc2 internal prototype to avoid an error. */ 3680#ifdef __cplusplus 3681extern "C" 3682{ 3683#endif 3684/* We use char because int might match the return type of a gcc2 3685 builtin and then its argument prototype would still apply. */ 3686char _doprnt (); 3687/* The GNU C library defines this for functions which it implements 3688 to always fail with ENOSYS. Some functions are actually named 3689 something starting with __ and the normal name is an alias. */ 3690#if defined (__stub__doprnt) || defined (__stub____doprnt) 3691choke me 3692#else 3693char (*f) () = _doprnt; 3694#endif 3695#ifdef __cplusplus 3696} 3697#endif 3698 3699int 3700main () 3701{ 3702return f != _doprnt; 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707rm -f conftest.$ac_objext conftest$ac_exeext 3708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3709 (eval $ac_link) 2>conftest.er1 3710 ac_status=$? 3711 grep -v '^ *+' conftest.er1 >conftest.err 3712 rm -f conftest.er1 3713 cat conftest.err >&5 3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3715 (exit $ac_status); } && 3716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3718 (eval $ac_try) 2>&5 3719 ac_status=$? 3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3721 (exit $ac_status); }; } && 3722 { ac_try='test -s conftest$ac_exeext' 3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3724 (eval $ac_try) 2>&5 3725 ac_status=$? 3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3727 (exit $ac_status); }; }; then 3728 ac_cv_func__doprnt=yes 3729else 3730 echo "$as_me: failed program was:" >&5 3731sed 's/^/| /' conftest.$ac_ext >&5 3732 3733ac_cv_func__doprnt=no 3734fi 3735rm -f conftest.err conftest.$ac_objext \ 3736 conftest$ac_exeext conftest.$ac_ext 3737fi 3738echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 3739echo "${ECHO_T}$ac_cv_func__doprnt" >&6 3740if test $ac_cv_func__doprnt = yes; then 3741 3742cat >>confdefs.h <<\_ACEOF 3743#define HAVE_DOPRNT 1 3744_ACEOF 3745 3746fi 3747 3748fi 3749done 3750 3751 3752echo "$as_me:$LINENO: checking for working memcmp" >&5 3753echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 3754if test "${ac_cv_func_memcmp_working+set}" = set; then 3755 echo $ECHO_N "(cached) $ECHO_C" >&6 3756else 3757 if test "$cross_compiling" = yes; then 3758 ac_cv_func_memcmp_working=no 3759else 3760 cat >conftest.$ac_ext <<_ACEOF 3761/* confdefs.h. */ 3762_ACEOF 3763cat confdefs.h >>conftest.$ac_ext 3764cat >>conftest.$ac_ext <<_ACEOF 3765/* end confdefs.h. */ 3766$ac_includes_default 3767int 3768main () 3769{ 3770 3771 /* Some versions of memcmp are not 8-bit clean. */ 3772 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 3773 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 3774 exit (1); 3775 3776 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 3777 or more and with at least one buffer not starting on a 4-byte boundary. 3778 William Lewis provided this test program. */ 3779 { 3780 char foo[21]; 3781 char bar[21]; 3782 int i; 3783 for (i = 0; i < 4; i++) 3784 { 3785 char *a = foo + i; 3786 char *b = bar + i; 3787 strcpy (a, "--------01111111"); 3788 strcpy (b, "--------10000000"); 3789 if (memcmp (a, b, 16) >= 0) 3790 exit (1); 3791 } 3792 exit (0); 3793 } 3794 3795 ; 3796 return 0; 3797} 3798_ACEOF 3799rm -f conftest$ac_exeext 3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3801 (eval $ac_link) 2>&5 3802 ac_status=$? 3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3806 (eval $ac_try) 2>&5 3807 ac_status=$? 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3809 (exit $ac_status); }; }; then 3810 ac_cv_func_memcmp_working=yes 3811else 3812 echo "$as_me: program exited with status $ac_status" >&5 3813echo "$as_me: failed program was:" >&5 3814sed 's/^/| /' conftest.$ac_ext >&5 3815 3816( exit $ac_status ) 3817ac_cv_func_memcmp_working=no 3818fi 3819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3820fi 3821fi 3822echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 3823echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 3824test $ac_cv_func_memcmp_working = no && case $LIBOBJS in 3825 "memcmp.$ac_objext" | \ 3826 *" memcmp.$ac_objext" | \ 3827 "memcmp.$ac_objext "* | \ 3828 *" memcmp.$ac_objext "* ) ;; 3829 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 3830esac 3831 3832 3833 3834for ac_header in stdlib.h 3835do 3836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3837if eval "test \"\${$as_ac_Header+set}\" = set"; then 3838 echo "$as_me:$LINENO: checking for $ac_header" >&5 3839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3840if eval "test \"\${$as_ac_Header+set}\" = set"; then 3841 echo $ECHO_N "(cached) $ECHO_C" >&6 3842fi 3843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3845else 3846 # Is the header compilable? 3847echo "$as_me:$LINENO: checking $ac_header usability" >&5 3848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3849cat >conftest.$ac_ext <<_ACEOF 3850/* confdefs.h. */ 3851_ACEOF 3852cat confdefs.h >>conftest.$ac_ext 3853cat >>conftest.$ac_ext <<_ACEOF 3854/* end confdefs.h. */ 3855$ac_includes_default 3856#include <$ac_header> 3857_ACEOF 3858rm -f conftest.$ac_objext 3859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3860 (eval $ac_compile) 2>conftest.er1 3861 ac_status=$? 3862 grep -v '^ *+' conftest.er1 >conftest.err 3863 rm -f conftest.er1 3864 cat conftest.err >&5 3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3866 (exit $ac_status); } && 3867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3869 (eval $ac_try) 2>&5 3870 ac_status=$? 3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3872 (exit $ac_status); }; } && 3873 { ac_try='test -s conftest.$ac_objext' 3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3875 (eval $ac_try) 2>&5 3876 ac_status=$? 3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3878 (exit $ac_status); }; }; then 3879 ac_header_compiler=yes 3880else 3881 echo "$as_me: failed program was:" >&5 3882sed 's/^/| /' conftest.$ac_ext >&5 3883 3884ac_header_compiler=no 3885fi 3886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3888echo "${ECHO_T}$ac_header_compiler" >&6 3889 3890# Is the header present? 3891echo "$as_me:$LINENO: checking $ac_header presence" >&5 3892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3893cat >conftest.$ac_ext <<_ACEOF 3894/* confdefs.h. */ 3895_ACEOF 3896cat confdefs.h >>conftest.$ac_ext 3897cat >>conftest.$ac_ext <<_ACEOF 3898/* end confdefs.h. */ 3899#include <$ac_header> 3900_ACEOF 3901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3903 ac_status=$? 3904 grep -v '^ *+' conftest.er1 >conftest.err 3905 rm -f conftest.er1 3906 cat conftest.err >&5 3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3908 (exit $ac_status); } >/dev/null; then 3909 if test -s conftest.err; then 3910 ac_cpp_err=$ac_c_preproc_warn_flag 3911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3912 else 3913 ac_cpp_err= 3914 fi 3915else 3916 ac_cpp_err=yes 3917fi 3918if test -z "$ac_cpp_err"; then 3919 ac_header_preproc=yes 3920else 3921 echo "$as_me: failed program was:" >&5 3922sed 's/^/| /' conftest.$ac_ext >&5 3923 3924 ac_header_preproc=no 3925fi 3926rm -f conftest.err conftest.$ac_ext 3927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3928echo "${ECHO_T}$ac_header_preproc" >&6 3929 3930# So? What about this header? 3931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3932 yes:no: ) 3933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3937 ac_header_preproc=yes 3938 ;; 3939 no:yes:* ) 3940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3952 ( 3953 cat <<\_ASBOX 3954## --------------------------------------- ## 3955## Report this to michael@metaparadigm.com ## 3956## --------------------------------------- ## 3957_ASBOX 3958 ) | 3959 sed "s/^/$as_me: WARNING: /" >&2 3960 ;; 3961esac 3962echo "$as_me:$LINENO: checking for $ac_header" >&5 3963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3964if eval "test \"\${$as_ac_Header+set}\" = set"; then 3965 echo $ECHO_N "(cached) $ECHO_C" >&6 3966else 3967 eval "$as_ac_Header=\$ac_header_preproc" 3968fi 3969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3971 3972fi 3973if test `eval echo '${'$as_ac_Header'}'` = yes; then 3974 cat >>confdefs.h <<_ACEOF 3975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3976_ACEOF 3977 3978fi 3979 3980done 3981 3982echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 3983echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 3984if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 3985 echo $ECHO_N "(cached) $ECHO_C" >&6 3986else 3987 if test "$cross_compiling" = yes; then 3988 ac_cv_func_malloc_0_nonnull=no 3989else 3990 cat >conftest.$ac_ext <<_ACEOF 3991/* confdefs.h. */ 3992_ACEOF 3993cat confdefs.h >>conftest.$ac_ext 3994cat >>conftest.$ac_ext <<_ACEOF 3995/* end confdefs.h. */ 3996#if STDC_HEADERS || HAVE_STDLIB_H 3997# include <stdlib.h> 3998#else 3999char *malloc (); 4000#endif 4001 4002int 4003main () 4004{ 4005exit (malloc (0) ? 0 : 1); 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010rm -f conftest$ac_exeext 4011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4012 (eval $ac_link) 2>&5 4013 ac_status=$? 4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4017 (eval $ac_try) 2>&5 4018 ac_status=$? 4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4020 (exit $ac_status); }; }; then 4021 ac_cv_func_malloc_0_nonnull=yes 4022else 4023 echo "$as_me: program exited with status $ac_status" >&5 4024echo "$as_me: failed program was:" >&5 4025sed 's/^/| /' conftest.$ac_ext >&5 4026 4027( exit $ac_status ) 4028ac_cv_func_malloc_0_nonnull=no 4029fi 4030rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4031fi 4032fi 4033echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 4034echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 4035if test $ac_cv_func_malloc_0_nonnull = yes; then 4036 4037cat >>confdefs.h <<\_ACEOF 4038#define HAVE_MALLOC 1 4039_ACEOF 4040 4041else 4042 cat >>confdefs.h <<\_ACEOF 4043#define HAVE_MALLOC 0 4044_ACEOF 4045 4046 case $LIBOBJS in 4047 "malloc.$ac_objext" | \ 4048 *" malloc.$ac_objext" | \ 4049 "malloc.$ac_objext "* | \ 4050 *" malloc.$ac_objext "* ) ;; 4051 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; 4052esac 4053 4054 4055cat >>confdefs.h <<\_ACEOF 4056#define malloc rpl_malloc 4057_ACEOF 4058 4059fi 4060 4061 4062 4063 4064for ac_header in stdlib.h 4065do 4066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4067if eval "test \"\${$as_ac_Header+set}\" = set"; then 4068 echo "$as_me:$LINENO: checking for $ac_header" >&5 4069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4070if eval "test \"\${$as_ac_Header+set}\" = set"; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072fi 4073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4075else 4076 # Is the header compilable? 4077echo "$as_me:$LINENO: checking $ac_header usability" >&5 4078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4079cat >conftest.$ac_ext <<_ACEOF 4080/* confdefs.h. */ 4081_ACEOF 4082cat confdefs.h >>conftest.$ac_ext 4083cat >>conftest.$ac_ext <<_ACEOF 4084/* end confdefs.h. */ 4085$ac_includes_default 4086#include <$ac_header> 4087_ACEOF 4088rm -f conftest.$ac_objext 4089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4090 (eval $ac_compile) 2>conftest.er1 4091 ac_status=$? 4092 grep -v '^ *+' conftest.er1 >conftest.err 4093 rm -f conftest.er1 4094 cat conftest.err >&5 4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4096 (exit $ac_status); } && 4097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4099 (eval $ac_try) 2>&5 4100 ac_status=$? 4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4102 (exit $ac_status); }; } && 4103 { ac_try='test -s conftest.$ac_objext' 4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4105 (eval $ac_try) 2>&5 4106 ac_status=$? 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); }; }; then 4109 ac_header_compiler=yes 4110else 4111 echo "$as_me: failed program was:" >&5 4112sed 's/^/| /' conftest.$ac_ext >&5 4113 4114ac_header_compiler=no 4115fi 4116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4118echo "${ECHO_T}$ac_header_compiler" >&6 4119 4120# Is the header present? 4121echo "$as_me:$LINENO: checking $ac_header presence" >&5 4122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4123cat >conftest.$ac_ext <<_ACEOF 4124/* confdefs.h. */ 4125_ACEOF 4126cat confdefs.h >>conftest.$ac_ext 4127cat >>conftest.$ac_ext <<_ACEOF 4128/* end confdefs.h. */ 4129#include <$ac_header> 4130_ACEOF 4131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4133 ac_status=$? 4134 grep -v '^ *+' conftest.er1 >conftest.err 4135 rm -f conftest.er1 4136 cat conftest.err >&5 4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4138 (exit $ac_status); } >/dev/null; then 4139 if test -s conftest.err; then 4140 ac_cpp_err=$ac_c_preproc_warn_flag 4141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4142 else 4143 ac_cpp_err= 4144 fi 4145else 4146 ac_cpp_err=yes 4147fi 4148if test -z "$ac_cpp_err"; then 4149 ac_header_preproc=yes 4150else 4151 echo "$as_me: failed program was:" >&5 4152sed 's/^/| /' conftest.$ac_ext >&5 4153 4154 ac_header_preproc=no 4155fi 4156rm -f conftest.err conftest.$ac_ext 4157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4158echo "${ECHO_T}$ac_header_preproc" >&6 4159 4160# So? What about this header? 4161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4162 yes:no: ) 4163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4167 ac_header_preproc=yes 4168 ;; 4169 no:yes:* ) 4170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4182 ( 4183 cat <<\_ASBOX 4184## --------------------------------------- ## 4185## Report this to michael@metaparadigm.com ## 4186## --------------------------------------- ## 4187_ASBOX 4188 ) | 4189 sed "s/^/$as_me: WARNING: /" >&2 4190 ;; 4191esac 4192echo "$as_me:$LINENO: checking for $ac_header" >&5 4193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4194if eval "test \"\${$as_ac_Header+set}\" = set"; then 4195 echo $ECHO_N "(cached) $ECHO_C" >&6 4196else 4197 eval "$as_ac_Header=\$ac_header_preproc" 4198fi 4199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4201 4202fi 4203if test `eval echo '${'$as_ac_Header'}'` = yes; then 4204 cat >>confdefs.h <<_ACEOF 4205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4206_ACEOF 4207 4208fi 4209 4210done 4211 4212echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 4213echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 4214if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 4215 echo $ECHO_N "(cached) $ECHO_C" >&6 4216else 4217 if test "$cross_compiling" = yes; then 4218 ac_cv_func_realloc_0_nonnull=no 4219else 4220 cat >conftest.$ac_ext <<_ACEOF 4221/* confdefs.h. */ 4222_ACEOF 4223cat confdefs.h >>conftest.$ac_ext 4224cat >>conftest.$ac_ext <<_ACEOF 4225/* end confdefs.h. */ 4226#if STDC_HEADERS || HAVE_STDLIB_H 4227# include <stdlib.h> 4228#else 4229char *realloc (); 4230#endif 4231 4232int 4233main () 4234{ 4235exit (realloc (0, 0) ? 0 : 1); 4236 ; 4237 return 0; 4238} 4239_ACEOF 4240rm -f conftest$ac_exeext 4241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4242 (eval $ac_link) 2>&5 4243 ac_status=$? 4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4247 (eval $ac_try) 2>&5 4248 ac_status=$? 4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4250 (exit $ac_status); }; }; then 4251 ac_cv_func_realloc_0_nonnull=yes 4252else 4253 echo "$as_me: program exited with status $ac_status" >&5 4254echo "$as_me: failed program was:" >&5 4255sed 's/^/| /' conftest.$ac_ext >&5 4256 4257( exit $ac_status ) 4258ac_cv_func_realloc_0_nonnull=no 4259fi 4260rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4261fi 4262fi 4263echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 4264echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 4265if test $ac_cv_func_realloc_0_nonnull = yes; then 4266 4267cat >>confdefs.h <<\_ACEOF 4268#define HAVE_REALLOC 1 4269_ACEOF 4270 4271else 4272 cat >>confdefs.h <<\_ACEOF 4273#define HAVE_REALLOC 0 4274_ACEOF 4275 4276 case $LIBOBJS in 4277 "realloc.$ac_objext" | \ 4278 *" realloc.$ac_objext" | \ 4279 "realloc.$ac_objext "* | \ 4280 *" realloc.$ac_objext "* ) ;; 4281 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; 4282esac 4283 4284 4285cat >>confdefs.h <<\_ACEOF 4286#define realloc rpl_realloc 4287_ACEOF 4288 4289fi 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300for ac_func in strndup strerror vsnprintf vasprintf open vsyslog strncasecmp 4301do 4302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4303echo "$as_me:$LINENO: checking for $ac_func" >&5 4304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4305if eval "test \"\${$as_ac_var+set}\" = set"; then 4306 echo $ECHO_N "(cached) $ECHO_C" >&6 4307else 4308 cat >conftest.$ac_ext <<_ACEOF 4309/* confdefs.h. */ 4310_ACEOF 4311cat confdefs.h >>conftest.$ac_ext 4312cat >>conftest.$ac_ext <<_ACEOF 4313/* end confdefs.h. */ 4314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4315 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4316#define $ac_func innocuous_$ac_func 4317 4318/* System header to define __stub macros and hopefully few prototypes, 4319 which can conflict with char $ac_func (); below. 4320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4321 <limits.h> exists even on freestanding compilers. */ 4322 4323#ifdef __STDC__ 4324# include <limits.h> 4325#else 4326# include <assert.h> 4327#endif 4328 4329#undef $ac_func 4330 4331/* Override any gcc2 internal prototype to avoid an error. */ 4332#ifdef __cplusplus 4333extern "C" 4334{ 4335#endif 4336/* We use char because int might match the return type of a gcc2 4337 builtin and then its argument prototype would still apply. */ 4338char $ac_func (); 4339/* The GNU C library defines this for functions which it implements 4340 to always fail with ENOSYS. Some functions are actually named 4341 something starting with __ and the normal name is an alias. */ 4342#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4343choke me 4344#else 4345char (*f) () = $ac_func; 4346#endif 4347#ifdef __cplusplus 4348} 4349#endif 4350 4351int 4352main () 4353{ 4354return f != $ac_func; 4355 ; 4356 return 0; 4357} 4358_ACEOF 4359rm -f conftest.$ac_objext conftest$ac_exeext 4360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4361 (eval $ac_link) 2>conftest.er1 4362 ac_status=$? 4363 grep -v '^ *+' conftest.er1 >conftest.err 4364 rm -f conftest.er1 4365 cat conftest.err >&5 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); } && 4368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4370 (eval $ac_try) 2>&5 4371 ac_status=$? 4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 (exit $ac_status); }; } && 4374 { ac_try='test -s conftest$ac_exeext' 4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4376 (eval $ac_try) 2>&5 4377 ac_status=$? 4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4379 (exit $ac_status); }; }; then 4380 eval "$as_ac_var=yes" 4381else 4382 echo "$as_me: failed program was:" >&5 4383sed 's/^/| /' conftest.$ac_ext >&5 4384 4385eval "$as_ac_var=no" 4386fi 4387rm -f conftest.err conftest.$ac_objext \ 4388 conftest$ac_exeext conftest.$ac_ext 4389fi 4390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4392if test `eval echo '${'$as_ac_var'}'` = yes; then 4393 cat >>confdefs.h <<_ACEOF 4394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4395_ACEOF 4396 4397fi 4398done 4399 4400 4401# Check whether --enable-shared or --disable-shared was given. 4402if test "${enable_shared+set}" = set; then 4403 enableval="$enable_shared" 4404 p=${PACKAGE-default} 4405 case $enableval in 4406 yes) enable_shared=yes ;; 4407 no) enable_shared=no ;; 4408 *) 4409 enable_shared=no 4410 # Look at the argument we got. We use all the common list separators. 4411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4412 for pkg in $enableval; do 4413 IFS="$lt_save_ifs" 4414 if test "X$pkg" = "X$p"; then 4415 enable_shared=yes 4416 fi 4417 done 4418 IFS="$lt_save_ifs" 4419 ;; 4420 esac 4421else 4422 enable_shared=yes 4423fi; 4424 4425# Check whether --enable-static or --disable-static was given. 4426if test "${enable_static+set}" = set; then 4427 enableval="$enable_static" 4428 p=${PACKAGE-default} 4429 case $enableval in 4430 yes) enable_static=yes ;; 4431 no) enable_static=no ;; 4432 *) 4433 enable_static=no 4434 # Look at the argument we got. We use all the common list separators. 4435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4436 for pkg in $enableval; do 4437 IFS="$lt_save_ifs" 4438 if test "X$pkg" = "X$p"; then 4439 enable_static=yes 4440 fi 4441 done 4442 IFS="$lt_save_ifs" 4443 ;; 4444 esac 4445else 4446 enable_static=yes 4447fi; 4448 4449# Check whether --enable-fast-install or --disable-fast-install was given. 4450if test "${enable_fast_install+set}" = set; then 4451 enableval="$enable_fast_install" 4452 p=${PACKAGE-default} 4453 case $enableval in 4454 yes) enable_fast_install=yes ;; 4455 no) enable_fast_install=no ;; 4456 *) 4457 enable_fast_install=no 4458 # Look at the argument we got. We use all the common list separators. 4459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4460 for pkg in $enableval; do 4461 IFS="$lt_save_ifs" 4462 if test "X$pkg" = "X$p"; then 4463 enable_fast_install=yes 4464 fi 4465 done 4466 IFS="$lt_save_ifs" 4467 ;; 4468 esac 4469else 4470 enable_fast_install=yes 4471fi; 4472 4473# Make sure we can run config.sub. 4474$ac_config_sub sun4 >/dev/null 2>&1 || 4475 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 4476echo "$as_me: error: cannot run $ac_config_sub" >&2;} 4477 { (exit 1); exit 1; }; } 4478 4479echo "$as_me:$LINENO: checking build system type" >&5 4480echo $ECHO_N "checking build system type... $ECHO_C" >&6 4481if test "${ac_cv_build+set}" = set; then 4482 echo $ECHO_N "(cached) $ECHO_C" >&6 4483else 4484 ac_cv_build_alias=$build_alias 4485test -z "$ac_cv_build_alias" && 4486 ac_cv_build_alias=`$ac_config_guess` 4487test -z "$ac_cv_build_alias" && 4488 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4489echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4490 { (exit 1); exit 1; }; } 4491ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 4492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 4493echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 4494 { (exit 1); exit 1; }; } 4495 4496fi 4497echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4498echo "${ECHO_T}$ac_cv_build" >&6 4499build=$ac_cv_build 4500build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4501build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4502build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4503 4504 4505echo "$as_me:$LINENO: checking host system type" >&5 4506echo $ECHO_N "checking host system type... $ECHO_C" >&6 4507if test "${ac_cv_host+set}" = set; then 4508 echo $ECHO_N "(cached) $ECHO_C" >&6 4509else 4510 ac_cv_host_alias=$host_alias 4511test -z "$ac_cv_host_alias" && 4512 ac_cv_host_alias=$ac_cv_build_alias 4513ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 4514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 4515echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 4516 { (exit 1); exit 1; }; } 4517 4518fi 4519echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4520echo "${ECHO_T}$ac_cv_host" >&6 4521host=$ac_cv_host 4522host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4523host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4524host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4525 4526 4527echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4528echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4529if test "${lt_cv_path_SED+set}" = set; then 4530 echo $ECHO_N "(cached) $ECHO_C" >&6 4531else 4532 # Loop through the user's path and test for sed and gsed. 4533# Then use that list of sed's as ones to test for truncation. 4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4535for as_dir in $PATH 4536do 4537 IFS=$as_save_IFS 4538 test -z "$as_dir" && as_dir=. 4539 for lt_ac_prog in sed gsed; do 4540 for ac_exec_ext in '' $ac_executable_extensions; do 4541 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4542 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4543 fi 4544 done 4545 done 4546done 4547lt_ac_max=0 4548lt_ac_count=0 4549# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4550# along with /bin/sed that truncates output. 4551for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4552 test ! -f $lt_ac_sed && continue 4553 cat /dev/null > conftest.in 4554 lt_ac_count=0 4555 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4556 # Check for GNU sed and select it if it is found. 4557 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4558 lt_cv_path_SED=$lt_ac_sed 4559 break 4560 fi 4561 while true; do 4562 cat conftest.in conftest.in >conftest.tmp 4563 mv conftest.tmp conftest.in 4564 cp conftest.in conftest.nl 4565 echo >>conftest.nl 4566 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4567 cmp -s conftest.out conftest.nl || break 4568 # 10000 chars as input seems more than enough 4569 test $lt_ac_count -gt 10 && break 4570 lt_ac_count=`expr $lt_ac_count + 1` 4571 if test $lt_ac_count -gt $lt_ac_max; then 4572 lt_ac_max=$lt_ac_count 4573 lt_cv_path_SED=$lt_ac_sed 4574 fi 4575 done 4576done 4577 4578fi 4579 4580SED=$lt_cv_path_SED 4581echo "$as_me:$LINENO: result: $SED" >&5 4582echo "${ECHO_T}$SED" >&6 4583 4584 4585# Check whether --with-gnu-ld or --without-gnu-ld was given. 4586if test "${with_gnu_ld+set}" = set; then 4587 withval="$with_gnu_ld" 4588 test "$withval" = no || with_gnu_ld=yes 4589else 4590 with_gnu_ld=no 4591fi; 4592ac_prog=ld 4593if test "$GCC" = yes; then 4594 # Check if gcc -print-prog-name=ld gives a path. 4595 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4596echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4597 case $host in 4598 *-*-mingw*) 4599 # gcc leaves a trailing carriage return which upsets mingw 4600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4601 *) 4602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4603 esac 4604 case $ac_prog in 4605 # Accept absolute paths. 4606 [\\/]* | ?:[\\/]*) 4607 re_direlt='/[^/][^/]*/\.\./' 4608 # Canonicalize the pathname of ld 4609 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4611 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4612 done 4613 test -z "$LD" && LD="$ac_prog" 4614 ;; 4615 "") 4616 # If it fails, then pretend we aren't using GCC. 4617 ac_prog=ld 4618 ;; 4619 *) 4620 # If it is relative, then search for the first ld in PATH. 4621 with_gnu_ld=unknown 4622 ;; 4623 esac 4624elif test "$with_gnu_ld" = yes; then 4625 echo "$as_me:$LINENO: checking for GNU ld" >&5 4626echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4627else 4628 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4629echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4630fi 4631if test "${lt_cv_path_LD+set}" = set; then 4632 echo $ECHO_N "(cached) $ECHO_C" >&6 4633else 4634 if test -z "$LD"; then 4635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4636 for ac_dir in $PATH; do 4637 IFS="$lt_save_ifs" 4638 test -z "$ac_dir" && ac_dir=. 4639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4640 lt_cv_path_LD="$ac_dir/$ac_prog" 4641 # Check to see if the program is GNU ld. I'd rather use --version, 4642 # but apparently some variants of GNU ld only accept -v. 4643 # Break only if it was the GNU/non-GNU ld that we prefer. 4644 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4645 *GNU* | *'with BFD'*) 4646 test "$with_gnu_ld" != no && break 4647 ;; 4648 *) 4649 test "$with_gnu_ld" != yes && break 4650 ;; 4651 esac 4652 fi 4653 done 4654 IFS="$lt_save_ifs" 4655else 4656 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4657fi 4658fi 4659 4660LD="$lt_cv_path_LD" 4661if test -n "$LD"; then 4662 echo "$as_me:$LINENO: result: $LD" >&5 4663echo "${ECHO_T}$LD" >&6 4664else 4665 echo "$as_me:$LINENO: result: no" >&5 4666echo "${ECHO_T}no" >&6 4667fi 4668test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4669echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4670 { (exit 1); exit 1; }; } 4671echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4672echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4673if test "${lt_cv_prog_gnu_ld+set}" = set; then 4674 echo $ECHO_N "(cached) $ECHO_C" >&6 4675else 4676 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4677case `$LD -v 2>&1 </dev/null` in 4678*GNU* | *'with BFD'*) 4679 lt_cv_prog_gnu_ld=yes 4680 ;; 4681*) 4682 lt_cv_prog_gnu_ld=no 4683 ;; 4684esac 4685fi 4686echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4687echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4688with_gnu_ld=$lt_cv_prog_gnu_ld 4689 4690 4691echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4692echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4693if test "${lt_cv_ld_reload_flag+set}" = set; then 4694 echo $ECHO_N "(cached) $ECHO_C" >&6 4695else 4696 lt_cv_ld_reload_flag='-r' 4697fi 4698echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4699echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4700reload_flag=$lt_cv_ld_reload_flag 4701case $reload_flag in 4702"" | " "*) ;; 4703*) reload_flag=" $reload_flag" ;; 4704esac 4705reload_cmds='$LD$reload_flag -o $output$reload_objs' 4706case $host_os in 4707 darwin*) 4708 if test "$GCC" = yes; then 4709 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4710 else 4711 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4712 fi 4713 ;; 4714esac 4715 4716echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4717echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4718if test "${lt_cv_path_NM+set}" = set; then 4719 echo $ECHO_N "(cached) $ECHO_C" >&6 4720else 4721 if test -n "$NM"; then 4722 # Let the user override the test. 4723 lt_cv_path_NM="$NM" 4724else 4725 lt_nm_to_check="${ac_tool_prefix}nm" 4726 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4727 lt_nm_to_check="$lt_nm_to_check nm" 4728 fi 4729 for lt_tmp_nm in $lt_nm_to_check; do 4730 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4731 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4732 IFS="$lt_save_ifs" 4733 test -z "$ac_dir" && ac_dir=. 4734 tmp_nm="$ac_dir/$lt_tmp_nm" 4735 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4736 # Check to see if the nm accepts a BSD-compat flag. 4737 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4738 # nm: unknown option "B" ignored 4739 # Tru64's nm complains that /dev/null is an invalid object file 4740 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4741 */dev/null* | *'Invalid file or object type'*) 4742 lt_cv_path_NM="$tmp_nm -B" 4743 break 4744 ;; 4745 *) 4746 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4747 */dev/null*) 4748 lt_cv_path_NM="$tmp_nm -p" 4749 break 4750 ;; 4751 *) 4752 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4753 continue # so that we can try to find one that supports BSD flags 4754 ;; 4755 esac 4756 ;; 4757 esac 4758 fi 4759 done 4760 IFS="$lt_save_ifs" 4761 done 4762 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4763fi 4764fi 4765echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4766echo "${ECHO_T}$lt_cv_path_NM" >&6 4767NM="$lt_cv_path_NM" 4768 4769echo "$as_me:$LINENO: checking whether ln -s works" >&5 4770echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4771LN_S=$as_ln_s 4772if test "$LN_S" = "ln -s"; then 4773 echo "$as_me:$LINENO: result: yes" >&5 4774echo "${ECHO_T}yes" >&6 4775else 4776 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4777echo "${ECHO_T}no, using $LN_S" >&6 4778fi 4779 4780echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4781echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4782if test "${lt_cv_deplibs_check_method+set}" = set; then 4783 echo $ECHO_N "(cached) $ECHO_C" >&6 4784else 4785 lt_cv_file_magic_cmd='$MAGIC_CMD' 4786lt_cv_file_magic_test_file= 4787lt_cv_deplibs_check_method='unknown' 4788# Need to set the preceding variable on all platforms that support 4789# interlibrary dependencies. 4790# 'none' -- dependencies not supported. 4791# `unknown' -- same as none, but documents that we really don't know. 4792# 'pass_all' -- all dependencies passed with no checks. 4793# 'test_compile' -- check by making test program. 4794# 'file_magic [[regex]]' -- check by looking for files in library path 4795# which responds to the $file_magic_cmd with a given extended regex. 4796# If you have `file' or equivalent on your system and you're not sure 4797# whether `pass_all' will *always* work, you probably want this one. 4798 4799case $host_os in 4800aix4* | aix5*) 4801 lt_cv_deplibs_check_method=pass_all 4802 ;; 4803 4804beos*) 4805 lt_cv_deplibs_check_method=pass_all 4806 ;; 4807 4808bsdi[45]*) 4809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4810 lt_cv_file_magic_cmd='/usr/bin/file -L' 4811 lt_cv_file_magic_test_file=/shlib/libc.so 4812 ;; 4813 4814cygwin*) 4815 # func_win32_libid is a shell function defined in ltmain.sh 4816 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4817 lt_cv_file_magic_cmd='func_win32_libid' 4818 ;; 4819 4820mingw* | pw32*) 4821 # Base MSYS/MinGW do not provide the 'file' command needed by 4822 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4823 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4824 lt_cv_file_magic_cmd='$OBJDUMP -f' 4825 ;; 4826 4827darwin* | rhapsody*) 4828 lt_cv_deplibs_check_method=pass_all 4829 ;; 4830 4831freebsd* | kfreebsd*-gnu | dragonfly*) 4832 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4833 case $host_cpu in 4834 i*86 ) 4835 # Not sure whether the presence of OpenBSD here was a mistake. 4836 # Let's accept both of them until this is cleared up. 4837 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4838 lt_cv_file_magic_cmd=/usr/bin/file 4839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4840 ;; 4841 esac 4842 else 4843 lt_cv_deplibs_check_method=pass_all 4844 fi 4845 ;; 4846 4847gnu*) 4848 lt_cv_deplibs_check_method=pass_all 4849 ;; 4850 4851hpux10.20* | hpux11*) 4852 lt_cv_file_magic_cmd=/usr/bin/file 4853 case $host_cpu in 4854 ia64*) 4855 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4856 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4857 ;; 4858 hppa*64*) 4859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 4860 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4861 ;; 4862 *) 4863 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4864 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4865 ;; 4866 esac 4867 ;; 4868 4869interix3*) 4870 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4871 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4872 ;; 4873 4874irix5* | irix6* | nonstopux*) 4875 case $LD in 4876 *-32|*"-32 ") libmagic=32-bit;; 4877 *-n32|*"-n32 ") libmagic=N32;; 4878 *-64|*"-64 ") libmagic=64-bit;; 4879 *) libmagic=never-match;; 4880 esac 4881 lt_cv_deplibs_check_method=pass_all 4882 ;; 4883 4884# This must be Linux ELF. 4885linux*) 4886 lt_cv_deplibs_check_method=pass_all 4887 ;; 4888 4889netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 4890 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4892 else 4893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4894 fi 4895 ;; 4896 4897newos6*) 4898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4899 lt_cv_file_magic_cmd=/usr/bin/file 4900 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4901 ;; 4902 4903nto-qnx*) 4904 lt_cv_deplibs_check_method=unknown 4905 ;; 4906 4907openbsd*) 4908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4910 else 4911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4912 fi 4913 ;; 4914 4915osf3* | osf4* | osf5*) 4916 lt_cv_deplibs_check_method=pass_all 4917 ;; 4918 4919solaris*) 4920 lt_cv_deplibs_check_method=pass_all 4921 ;; 4922 4923sysv4 | sysv4.3*) 4924 case $host_vendor in 4925 motorola) 4926 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]' 4927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4928 ;; 4929 ncr) 4930 lt_cv_deplibs_check_method=pass_all 4931 ;; 4932 sequent) 4933 lt_cv_file_magic_cmd='/bin/file' 4934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4935 ;; 4936 sni) 4937 lt_cv_file_magic_cmd='/bin/file' 4938 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4939 lt_cv_file_magic_test_file=/lib/libc.so 4940 ;; 4941 siemens) 4942 lt_cv_deplibs_check_method=pass_all 4943 ;; 4944 pc) 4945 lt_cv_deplibs_check_method=pass_all 4946 ;; 4947 esac 4948 ;; 4949 4950sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4951 lt_cv_deplibs_check_method=pass_all 4952 ;; 4953esac 4954 4955fi 4956echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4957echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4958file_magic_cmd=$lt_cv_file_magic_cmd 4959deplibs_check_method=$lt_cv_deplibs_check_method 4960test -z "$deplibs_check_method" && deplibs_check_method=unknown 4961 4962 4963 4964 4965# If no C compiler was specified, use CC. 4966LTCC=${LTCC-"$CC"} 4967 4968# If no C compiler flags were specified, use CFLAGS. 4969LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4970 4971# Allow CC to be a program name with arguments. 4972compiler=$CC 4973 4974# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4975if test "${enable_libtool_lock+set}" = set; then 4976 enableval="$enable_libtool_lock" 4977 4978fi; 4979test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4980 4981# Some flags need to be propagated to the compiler or linker for good 4982# libtool support. 4983case $host in 4984ia64-*-hpux*) 4985 # Find out which ABI we are using. 4986 echo 'int i;' > conftest.$ac_ext 4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4988 (eval $ac_compile) 2>&5 4989 ac_status=$? 4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4991 (exit $ac_status); }; then 4992 case `/usr/bin/file conftest.$ac_objext` in 4993 *ELF-32*) 4994 HPUX_IA64_MODE="32" 4995 ;; 4996 *ELF-64*) 4997 HPUX_IA64_MODE="64" 4998 ;; 4999 esac 5000 fi 5001 rm -rf conftest* 5002 ;; 5003*-*-irix6*) 5004 # Find out which ABI we are using. 5005 echo '#line 5005 "configure"' > conftest.$ac_ext 5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5007 (eval $ac_compile) 2>&5 5008 ac_status=$? 5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5010 (exit $ac_status); }; then 5011 if test "$lt_cv_prog_gnu_ld" = yes; then 5012 case `/usr/bin/file conftest.$ac_objext` in 5013 *32-bit*) 5014 LD="${LD-ld} -melf32bsmip" 5015 ;; 5016 *N32*) 5017 LD="${LD-ld} -melf32bmipn32" 5018 ;; 5019 *64-bit*) 5020 LD="${LD-ld} -melf64bmip" 5021 ;; 5022 esac 5023 else 5024 case `/usr/bin/file conftest.$ac_objext` in 5025 *32-bit*) 5026 LD="${LD-ld} -32" 5027 ;; 5028 *N32*) 5029 LD="${LD-ld} -n32" 5030 ;; 5031 *64-bit*) 5032 LD="${LD-ld} -64" 5033 ;; 5034 esac 5035 fi 5036 fi 5037 rm -rf conftest* 5038 ;; 5039 5040x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5041 # Find out which ABI we are using. 5042 echo 'int i;' > conftest.$ac_ext 5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5044 (eval $ac_compile) 2>&5 5045 ac_status=$? 5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5047 (exit $ac_status); }; then 5048 case `/usr/bin/file conftest.o` in 5049 *32-bit*) 5050 case $host in 5051 x86_64-*linux*) 5052 LD="${LD-ld} -m elf_i386" 5053 ;; 5054 ppc64-*linux*|powerpc64-*linux*) 5055 LD="${LD-ld} -m elf32ppclinux" 5056 ;; 5057 s390x-*linux*) 5058 LD="${LD-ld} -m elf_s390" 5059 ;; 5060 sparc64-*linux*) 5061 LD="${LD-ld} -m elf32_sparc" 5062 ;; 5063 esac 5064 ;; 5065 *64-bit*) 5066 case $host in 5067 x86_64-*linux*) 5068 LD="${LD-ld} -m elf_x86_64" 5069 ;; 5070 ppc*-*linux*|powerpc*-*linux*) 5071 LD="${LD-ld} -m elf64ppc" 5072 ;; 5073 s390*-*linux*) 5074 LD="${LD-ld} -m elf64_s390" 5075 ;; 5076 sparc*-*linux*) 5077 LD="${LD-ld} -m elf64_sparc" 5078 ;; 5079 esac 5080 ;; 5081 esac 5082 fi 5083 rm -rf conftest* 5084 ;; 5085 5086*-*-sco3.2v5*) 5087 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5088 SAVE_CFLAGS="$CFLAGS" 5089 CFLAGS="$CFLAGS -belf" 5090 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5091echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5092if test "${lt_cv_cc_needs_belf+set}" = set; then 5093 echo $ECHO_N "(cached) $ECHO_C" >&6 5094else 5095 ac_ext=c 5096ac_cpp='$CPP $CPPFLAGS' 5097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5099ac_compiler_gnu=$ac_cv_c_compiler_gnu 5100 5101 cat >conftest.$ac_ext <<_ACEOF 5102/* confdefs.h. */ 5103_ACEOF 5104cat confdefs.h >>conftest.$ac_ext 5105cat >>conftest.$ac_ext <<_ACEOF 5106/* end confdefs.h. */ 5107 5108int 5109main () 5110{ 5111 5112 ; 5113 return 0; 5114} 5115_ACEOF 5116rm -f conftest.$ac_objext conftest$ac_exeext 5117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5118 (eval $ac_link) 2>conftest.er1 5119 ac_status=$? 5120 grep -v '^ *+' conftest.er1 >conftest.err 5121 rm -f conftest.er1 5122 cat conftest.err >&5 5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5124 (exit $ac_status); } && 5125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5127 (eval $ac_try) 2>&5 5128 ac_status=$? 5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5130 (exit $ac_status); }; } && 5131 { ac_try='test -s conftest$ac_exeext' 5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5133 (eval $ac_try) 2>&5 5134 ac_status=$? 5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5136 (exit $ac_status); }; }; then 5137 lt_cv_cc_needs_belf=yes 5138else 5139 echo "$as_me: failed program was:" >&5 5140sed 's/^/| /' conftest.$ac_ext >&5 5141 5142lt_cv_cc_needs_belf=no 5143fi 5144rm -f conftest.err conftest.$ac_objext \ 5145 conftest$ac_exeext conftest.$ac_ext 5146 ac_ext=c 5147ac_cpp='$CPP $CPPFLAGS' 5148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5150ac_compiler_gnu=$ac_cv_c_compiler_gnu 5151 5152fi 5153echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5154echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5155 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5156 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5157 CFLAGS="$SAVE_CFLAGS" 5158 fi 5159 ;; 5160sparc*-*solaris*) 5161 # Find out which ABI we are using. 5162 echo 'int i;' > conftest.$ac_ext 5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5164 (eval $ac_compile) 2>&5 5165 ac_status=$? 5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5167 (exit $ac_status); }; then 5168 case `/usr/bin/file conftest.o` in 5169 *64-bit*) 5170 case $lt_cv_prog_gnu_ld in 5171 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5172 *) LD="${LD-ld} -64" ;; 5173 esac 5174 ;; 5175 esac 5176 fi 5177 rm -rf conftest* 5178 ;; 5179 5180 5181esac 5182 5183need_locks="$enable_libtool_lock" 5184 5185 5186 5187for ac_header in dlfcn.h 5188do 5189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5190if eval "test \"\${$as_ac_Header+set}\" = set"; then 5191 echo "$as_me:$LINENO: checking for $ac_header" >&5 5192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5193if eval "test \"\${$as_ac_Header+set}\" = set"; then 5194 echo $ECHO_N "(cached) $ECHO_C" >&6 5195fi 5196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5198else 5199 # Is the header compilable? 5200echo "$as_me:$LINENO: checking $ac_header usability" >&5 5201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5202cat >conftest.$ac_ext <<_ACEOF 5203/* confdefs.h. */ 5204_ACEOF 5205cat confdefs.h >>conftest.$ac_ext 5206cat >>conftest.$ac_ext <<_ACEOF 5207/* end confdefs.h. */ 5208$ac_includes_default 5209#include <$ac_header> 5210_ACEOF 5211rm -f conftest.$ac_objext 5212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5213 (eval $ac_compile) 2>conftest.er1 5214 ac_status=$? 5215 grep -v '^ *+' conftest.er1 >conftest.err 5216 rm -f conftest.er1 5217 cat conftest.err >&5 5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5219 (exit $ac_status); } && 5220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5222 (eval $ac_try) 2>&5 5223 ac_status=$? 5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5225 (exit $ac_status); }; } && 5226 { ac_try='test -s conftest.$ac_objext' 5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5228 (eval $ac_try) 2>&5 5229 ac_status=$? 5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5231 (exit $ac_status); }; }; then 5232 ac_header_compiler=yes 5233else 5234 echo "$as_me: failed program was:" >&5 5235sed 's/^/| /' conftest.$ac_ext >&5 5236 5237ac_header_compiler=no 5238fi 5239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5240echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5241echo "${ECHO_T}$ac_header_compiler" >&6 5242 5243# Is the header present? 5244echo "$as_me:$LINENO: checking $ac_header presence" >&5 5245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5246cat >conftest.$ac_ext <<_ACEOF 5247/* confdefs.h. */ 5248_ACEOF 5249cat confdefs.h >>conftest.$ac_ext 5250cat >>conftest.$ac_ext <<_ACEOF 5251/* end confdefs.h. */ 5252#include <$ac_header> 5253_ACEOF 5254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5256 ac_status=$? 5257 grep -v '^ *+' conftest.er1 >conftest.err 5258 rm -f conftest.er1 5259 cat conftest.err >&5 5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5261 (exit $ac_status); } >/dev/null; then 5262 if test -s conftest.err; then 5263 ac_cpp_err=$ac_c_preproc_warn_flag 5264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5265 else 5266 ac_cpp_err= 5267 fi 5268else 5269 ac_cpp_err=yes 5270fi 5271if test -z "$ac_cpp_err"; then 5272 ac_header_preproc=yes 5273else 5274 echo "$as_me: failed program was:" >&5 5275sed 's/^/| /' conftest.$ac_ext >&5 5276 5277 ac_header_preproc=no 5278fi 5279rm -f conftest.err conftest.$ac_ext 5280echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5281echo "${ECHO_T}$ac_header_preproc" >&6 5282 5283# So? What about this header? 5284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5285 yes:no: ) 5286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5287echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5289echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5290 ac_header_preproc=yes 5291 ;; 5292 no:yes:* ) 5293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5298echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5300echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5304echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5305 ( 5306 cat <<\_ASBOX 5307## --------------------------------------- ## 5308## Report this to michael@metaparadigm.com ## 5309## --------------------------------------- ## 5310_ASBOX 5311 ) | 5312 sed "s/^/$as_me: WARNING: /" >&2 5313 ;; 5314esac 5315echo "$as_me:$LINENO: checking for $ac_header" >&5 5316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5317if eval "test \"\${$as_ac_Header+set}\" = set"; then 5318 echo $ECHO_N "(cached) $ECHO_C" >&6 5319else 5320 eval "$as_ac_Header=\$ac_header_preproc" 5321fi 5322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5324 5325fi 5326if test `eval echo '${'$as_ac_Header'}'` = yes; then 5327 cat >>confdefs.h <<_ACEOF 5328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5329_ACEOF 5330 5331fi 5332 5333done 5334 5335ac_ext=cc 5336ac_cpp='$CXXCPP $CPPFLAGS' 5337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5340if test -n "$ac_tool_prefix"; then 5341 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5342 do 5343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5344set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5345echo "$as_me:$LINENO: checking for $ac_word" >&5 5346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5347if test "${ac_cv_prog_CXX+set}" = set; then 5348 echo $ECHO_N "(cached) $ECHO_C" >&6 5349else 5350 if test -n "$CXX"; then 5351 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5352else 5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5354for as_dir in $PATH 5355do 5356 IFS=$as_save_IFS 5357 test -z "$as_dir" && as_dir=. 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5360 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5362 break 2 5363 fi 5364done 5365done 5366 5367fi 5368fi 5369CXX=$ac_cv_prog_CXX 5370if test -n "$CXX"; then 5371 echo "$as_me:$LINENO: result: $CXX" >&5 5372echo "${ECHO_T}$CXX" >&6 5373else 5374 echo "$as_me:$LINENO: result: no" >&5 5375echo "${ECHO_T}no" >&6 5376fi 5377 5378 test -n "$CXX" && break 5379 done 5380fi 5381if test -z "$CXX"; then 5382 ac_ct_CXX=$CXX 5383 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5384do 5385 # Extract the first word of "$ac_prog", so it can be a program name with args. 5386set dummy $ac_prog; ac_word=$2 5387echo "$as_me:$LINENO: checking for $ac_word" >&5 5388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5389if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5390 echo $ECHO_N "(cached) $ECHO_C" >&6 5391else 5392 if test -n "$ac_ct_CXX"; then 5393 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5394else 5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5396for as_dir in $PATH 5397do 5398 IFS=$as_save_IFS 5399 test -z "$as_dir" && as_dir=. 5400 for ac_exec_ext in '' $ac_executable_extensions; do 5401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5402 ac_cv_prog_ac_ct_CXX="$ac_prog" 5403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5404 break 2 5405 fi 5406done 5407done 5408 5409fi 5410fi 5411ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5412if test -n "$ac_ct_CXX"; then 5413 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5414echo "${ECHO_T}$ac_ct_CXX" >&6 5415else 5416 echo "$as_me:$LINENO: result: no" >&5 5417echo "${ECHO_T}no" >&6 5418fi 5419 5420 test -n "$ac_ct_CXX" && break 5421done 5422test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 5423 5424 CXX=$ac_ct_CXX 5425fi 5426 5427 5428# Provide some information about the compiler. 5429echo "$as_me:$LINENO:" \ 5430 "checking for C++ compiler version" >&5 5431ac_compiler=`set X $ac_compile; echo $2` 5432{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5433 (eval $ac_compiler --version </dev/null >&5) 2>&5 5434 ac_status=$? 5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436 (exit $ac_status); } 5437{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5438 (eval $ac_compiler -v </dev/null >&5) 2>&5 5439 ac_status=$? 5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5441 (exit $ac_status); } 5442{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5443 (eval $ac_compiler -V </dev/null >&5) 2>&5 5444 ac_status=$? 5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5446 (exit $ac_status); } 5447 5448echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5449echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5450if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5451 echo $ECHO_N "(cached) $ECHO_C" >&6 5452else 5453 cat >conftest.$ac_ext <<_ACEOF 5454/* confdefs.h. */ 5455_ACEOF 5456cat confdefs.h >>conftest.$ac_ext 5457cat >>conftest.$ac_ext <<_ACEOF 5458/* end confdefs.h. */ 5459 5460int 5461main () 5462{ 5463#ifndef __GNUC__ 5464 choke me 5465#endif 5466 5467 ; 5468 return 0; 5469} 5470_ACEOF 5471rm -f conftest.$ac_objext 5472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5473 (eval $ac_compile) 2>conftest.er1 5474 ac_status=$? 5475 grep -v '^ *+' conftest.er1 >conftest.err 5476 rm -f conftest.er1 5477 cat conftest.err >&5 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); } && 5480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5482 (eval $ac_try) 2>&5 5483 ac_status=$? 5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 (exit $ac_status); }; } && 5486 { ac_try='test -s conftest.$ac_objext' 5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5488 (eval $ac_try) 2>&5 5489 ac_status=$? 5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5491 (exit $ac_status); }; }; then 5492 ac_compiler_gnu=yes 5493else 5494 echo "$as_me: failed program was:" >&5 5495sed 's/^/| /' conftest.$ac_ext >&5 5496 5497ac_compiler_gnu=no 5498fi 5499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5500ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5501 5502fi 5503echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5504echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 5505GXX=`test $ac_compiler_gnu = yes && echo yes` 5506ac_test_CXXFLAGS=${CXXFLAGS+set} 5507ac_save_CXXFLAGS=$CXXFLAGS 5508CXXFLAGS="-g" 5509echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5510echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 5511if test "${ac_cv_prog_cxx_g+set}" = set; then 5512 echo $ECHO_N "(cached) $ECHO_C" >&6 5513else 5514 cat >conftest.$ac_ext <<_ACEOF 5515/* confdefs.h. */ 5516_ACEOF 5517cat confdefs.h >>conftest.$ac_ext 5518cat >>conftest.$ac_ext <<_ACEOF 5519/* end confdefs.h. */ 5520 5521int 5522main () 5523{ 5524 5525 ; 5526 return 0; 5527} 5528_ACEOF 5529rm -f conftest.$ac_objext 5530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5531 (eval $ac_compile) 2>conftest.er1 5532 ac_status=$? 5533 grep -v '^ *+' conftest.er1 >conftest.err 5534 rm -f conftest.er1 5535 cat conftest.err >&5 5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5537 (exit $ac_status); } && 5538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5540 (eval $ac_try) 2>&5 5541 ac_status=$? 5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5543 (exit $ac_status); }; } && 5544 { ac_try='test -s conftest.$ac_objext' 5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5546 (eval $ac_try) 2>&5 5547 ac_status=$? 5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5549 (exit $ac_status); }; }; then 5550 ac_cv_prog_cxx_g=yes 5551else 5552 echo "$as_me: failed program was:" >&5 5553sed 's/^/| /' conftest.$ac_ext >&5 5554 5555ac_cv_prog_cxx_g=no 5556fi 5557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5558fi 5559echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5560echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5561if test "$ac_test_CXXFLAGS" = set; then 5562 CXXFLAGS=$ac_save_CXXFLAGS 5563elif test $ac_cv_prog_cxx_g = yes; then 5564 if test "$GXX" = yes; then 5565 CXXFLAGS="-g -O2" 5566 else 5567 CXXFLAGS="-g" 5568 fi 5569else 5570 if test "$GXX" = yes; then 5571 CXXFLAGS="-O2" 5572 else 5573 CXXFLAGS= 5574 fi 5575fi 5576for ac_declaration in \ 5577 '' \ 5578 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5579 'extern "C" void std::exit (int); using std::exit;' \ 5580 'extern "C" void exit (int) throw ();' \ 5581 'extern "C" void exit (int);' \ 5582 'void exit (int);' 5583do 5584 cat >conftest.$ac_ext <<_ACEOF 5585/* confdefs.h. */ 5586_ACEOF 5587cat confdefs.h >>conftest.$ac_ext 5588cat >>conftest.$ac_ext <<_ACEOF 5589/* end confdefs.h. */ 5590$ac_declaration 5591#include <stdlib.h> 5592int 5593main () 5594{ 5595exit (42); 5596 ; 5597 return 0; 5598} 5599_ACEOF 5600rm -f conftest.$ac_objext 5601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5602 (eval $ac_compile) 2>conftest.er1 5603 ac_status=$? 5604 grep -v '^ *+' conftest.er1 >conftest.err 5605 rm -f conftest.er1 5606 cat conftest.err >&5 5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5608 (exit $ac_status); } && 5609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5611 (eval $ac_try) 2>&5 5612 ac_status=$? 5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5614 (exit $ac_status); }; } && 5615 { ac_try='test -s conftest.$ac_objext' 5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5617 (eval $ac_try) 2>&5 5618 ac_status=$? 5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5620 (exit $ac_status); }; }; then 5621 : 5622else 5623 echo "$as_me: failed program was:" >&5 5624sed 's/^/| /' conftest.$ac_ext >&5 5625 5626continue 5627fi 5628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5629 cat >conftest.$ac_ext <<_ACEOF 5630/* confdefs.h. */ 5631_ACEOF 5632cat confdefs.h >>conftest.$ac_ext 5633cat >>conftest.$ac_ext <<_ACEOF 5634/* end confdefs.h. */ 5635$ac_declaration 5636int 5637main () 5638{ 5639exit (42); 5640 ; 5641 return 0; 5642} 5643_ACEOF 5644rm -f conftest.$ac_objext 5645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5646 (eval $ac_compile) 2>conftest.er1 5647 ac_status=$? 5648 grep -v '^ *+' conftest.er1 >conftest.err 5649 rm -f conftest.er1 5650 cat conftest.err >&5 5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5652 (exit $ac_status); } && 5653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5655 (eval $ac_try) 2>&5 5656 ac_status=$? 5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5658 (exit $ac_status); }; } && 5659 { ac_try='test -s conftest.$ac_objext' 5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5661 (eval $ac_try) 2>&5 5662 ac_status=$? 5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); }; }; then 5665 break 5666else 5667 echo "$as_me: failed program was:" >&5 5668sed 's/^/| /' conftest.$ac_ext >&5 5669 5670fi 5671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5672done 5673rm -f conftest* 5674if test -n "$ac_declaration"; then 5675 echo '#ifdef __cplusplus' >>confdefs.h 5676 echo $ac_declaration >>confdefs.h 5677 echo '#endif' >>confdefs.h 5678fi 5679 5680ac_ext=cc 5681ac_cpp='$CXXCPP $CPPFLAGS' 5682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5685 5686 5687 5688if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5689 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5690 (test "X$CXX" != "Xg++"))) ; then 5691 ac_ext=cc 5692ac_cpp='$CXXCPP $CPPFLAGS' 5693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5696echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5697echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5698if test -z "$CXXCPP"; then 5699 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5700 echo $ECHO_N "(cached) $ECHO_C" >&6 5701else 5702 # Double quotes because CXXCPP needs to be expanded 5703 for CXXCPP in "$CXX -E" "/lib/cpp" 5704 do 5705 ac_preproc_ok=false 5706for ac_cxx_preproc_warn_flag in '' yes 5707do 5708 # Use a header file that comes with gcc, so configuring glibc 5709 # with a fresh cross-compiler works. 5710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5711 # <limits.h> exists even on freestanding compilers. 5712 # On the NeXT, cc -E runs the code through the compiler's parser, 5713 # not just through cpp. "Syntax error" is here to catch this case. 5714 cat >conftest.$ac_ext <<_ACEOF 5715/* confdefs.h. */ 5716_ACEOF 5717cat confdefs.h >>conftest.$ac_ext 5718cat >>conftest.$ac_ext <<_ACEOF 5719/* end confdefs.h. */ 5720#ifdef __STDC__ 5721# include <limits.h> 5722#else 5723# include <assert.h> 5724#endif 5725 Syntax error 5726_ACEOF 5727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5729 ac_status=$? 5730 grep -v '^ *+' conftest.er1 >conftest.err 5731 rm -f conftest.er1 5732 cat conftest.err >&5 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5734 (exit $ac_status); } >/dev/null; then 5735 if test -s conftest.err; then 5736 ac_cpp_err=$ac_cxx_preproc_warn_flag 5737 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5738 else 5739 ac_cpp_err= 5740 fi 5741else 5742 ac_cpp_err=yes 5743fi 5744if test -z "$ac_cpp_err"; then 5745 : 5746else 5747 echo "$as_me: failed program was:" >&5 5748sed 's/^/| /' conftest.$ac_ext >&5 5749 5750 # Broken: fails on valid input. 5751continue 5752fi 5753rm -f conftest.err conftest.$ac_ext 5754 5755 # OK, works on sane cases. Now check whether non-existent headers 5756 # can be detected and how. 5757 cat >conftest.$ac_ext <<_ACEOF 5758/* confdefs.h. */ 5759_ACEOF 5760cat confdefs.h >>conftest.$ac_ext 5761cat >>conftest.$ac_ext <<_ACEOF 5762/* end confdefs.h. */ 5763#include <ac_nonexistent.h> 5764_ACEOF 5765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5767 ac_status=$? 5768 grep -v '^ *+' conftest.er1 >conftest.err 5769 rm -f conftest.er1 5770 cat conftest.err >&5 5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5772 (exit $ac_status); } >/dev/null; then 5773 if test -s conftest.err; then 5774 ac_cpp_err=$ac_cxx_preproc_warn_flag 5775 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5776 else 5777 ac_cpp_err= 5778 fi 5779else 5780 ac_cpp_err=yes 5781fi 5782if test -z "$ac_cpp_err"; then 5783 # Broken: success on invalid input. 5784continue 5785else 5786 echo "$as_me: failed program was:" >&5 5787sed 's/^/| /' conftest.$ac_ext >&5 5788 5789 # Passes both tests. 5790ac_preproc_ok=: 5791break 5792fi 5793rm -f conftest.err conftest.$ac_ext 5794 5795done 5796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5797rm -f conftest.err conftest.$ac_ext 5798if $ac_preproc_ok; then 5799 break 5800fi 5801 5802 done 5803 ac_cv_prog_CXXCPP=$CXXCPP 5804 5805fi 5806 CXXCPP=$ac_cv_prog_CXXCPP 5807else 5808 ac_cv_prog_CXXCPP=$CXXCPP 5809fi 5810echo "$as_me:$LINENO: result: $CXXCPP" >&5 5811echo "${ECHO_T}$CXXCPP" >&6 5812ac_preproc_ok=false 5813for ac_cxx_preproc_warn_flag in '' yes 5814do 5815 # Use a header file that comes with gcc, so configuring glibc 5816 # with a fresh cross-compiler works. 5817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5818 # <limits.h> exists even on freestanding compilers. 5819 # On the NeXT, cc -E runs the code through the compiler's parser, 5820 # not just through cpp. "Syntax error" is here to catch this case. 5821 cat >conftest.$ac_ext <<_ACEOF 5822/* confdefs.h. */ 5823_ACEOF 5824cat confdefs.h >>conftest.$ac_ext 5825cat >>conftest.$ac_ext <<_ACEOF 5826/* end confdefs.h. */ 5827#ifdef __STDC__ 5828# include <limits.h> 5829#else 5830# include <assert.h> 5831#endif 5832 Syntax error 5833_ACEOF 5834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5836 ac_status=$? 5837 grep -v '^ *+' conftest.er1 >conftest.err 5838 rm -f conftest.er1 5839 cat conftest.err >&5 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); } >/dev/null; then 5842 if test -s conftest.err; then 5843 ac_cpp_err=$ac_cxx_preproc_warn_flag 5844 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5845 else 5846 ac_cpp_err= 5847 fi 5848else 5849 ac_cpp_err=yes 5850fi 5851if test -z "$ac_cpp_err"; then 5852 : 5853else 5854 echo "$as_me: failed program was:" >&5 5855sed 's/^/| /' conftest.$ac_ext >&5 5856 5857 # Broken: fails on valid input. 5858continue 5859fi 5860rm -f conftest.err conftest.$ac_ext 5861 5862 # OK, works on sane cases. Now check whether non-existent headers 5863 # can be detected and how. 5864 cat >conftest.$ac_ext <<_ACEOF 5865/* confdefs.h. */ 5866_ACEOF 5867cat confdefs.h >>conftest.$ac_ext 5868cat >>conftest.$ac_ext <<_ACEOF 5869/* end confdefs.h. */ 5870#include <ac_nonexistent.h> 5871_ACEOF 5872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5874 ac_status=$? 5875 grep -v '^ *+' conftest.er1 >conftest.err 5876 rm -f conftest.er1 5877 cat conftest.err >&5 5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5879 (exit $ac_status); } >/dev/null; then 5880 if test -s conftest.err; then 5881 ac_cpp_err=$ac_cxx_preproc_warn_flag 5882 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5883 else 5884 ac_cpp_err= 5885 fi 5886else 5887 ac_cpp_err=yes 5888fi 5889if test -z "$ac_cpp_err"; then 5890 # Broken: success on invalid input. 5891continue 5892else 5893 echo "$as_me: failed program was:" >&5 5894sed 's/^/| /' conftest.$ac_ext >&5 5895 5896 # Passes both tests. 5897ac_preproc_ok=: 5898break 5899fi 5900rm -f conftest.err conftest.$ac_ext 5901 5902done 5903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5904rm -f conftest.err conftest.$ac_ext 5905if $ac_preproc_ok; then 5906 : 5907else 5908 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5909See \`config.log' for more details." >&5 5910echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5911See \`config.log' for more details." >&2;} 5912 { (exit 1); exit 1; }; } 5913fi 5914 5915ac_ext=cc 5916ac_cpp='$CXXCPP $CPPFLAGS' 5917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5920 5921fi 5922 5923 5924ac_ext=f 5925ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5926ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5927ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5928if test -n "$ac_tool_prefix"; then 5929 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5930 do 5931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5932set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5933echo "$as_me:$LINENO: checking for $ac_word" >&5 5934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5935if test "${ac_cv_prog_F77+set}" = set; then 5936 echo $ECHO_N "(cached) $ECHO_C" >&6 5937else 5938 if test -n "$F77"; then 5939 ac_cv_prog_F77="$F77" # Let the user override the test. 5940else 5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942for as_dir in $PATH 5943do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5948 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953done 5954 5955fi 5956fi 5957F77=$ac_cv_prog_F77 5958if test -n "$F77"; then 5959 echo "$as_me:$LINENO: result: $F77" >&5 5960echo "${ECHO_T}$F77" >&6 5961else 5962 echo "$as_me:$LINENO: result: no" >&5 5963echo "${ECHO_T}no" >&6 5964fi 5965 5966 test -n "$F77" && break 5967 done 5968fi 5969if test -z "$F77"; then 5970 ac_ct_F77=$F77 5971 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5972do 5973 # Extract the first word of "$ac_prog", so it can be a program name with args. 5974set dummy $ac_prog; ac_word=$2 5975echo "$as_me:$LINENO: checking for $ac_word" >&5 5976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5977if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5978 echo $ECHO_N "(cached) $ECHO_C" >&6 5979else 5980 if test -n "$ac_ct_F77"; then 5981 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5982else 5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5984for as_dir in $PATH 5985do 5986 IFS=$as_save_IFS 5987 test -z "$as_dir" && as_dir=. 5988 for ac_exec_ext in '' $ac_executable_extensions; do 5989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5990 ac_cv_prog_ac_ct_F77="$ac_prog" 5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5992 break 2 5993 fi 5994done 5995done 5996 5997fi 5998fi 5999ac_ct_F77=$ac_cv_prog_ac_ct_F77 6000if test -n "$ac_ct_F77"; then 6001 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6002echo "${ECHO_T}$ac_ct_F77" >&6 6003else 6004 echo "$as_me:$LINENO: result: no" >&5 6005echo "${ECHO_T}no" >&6 6006fi 6007 6008 test -n "$ac_ct_F77" && break 6009done 6010 6011 F77=$ac_ct_F77 6012fi 6013 6014 6015# Provide some information about the compiler. 6016echo "$as_me:6016:" \ 6017 "checking for Fortran 77 compiler version" >&5 6018ac_compiler=`set X $ac_compile; echo $2` 6019{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6020 (eval $ac_compiler --version </dev/null >&5) 2>&5 6021 ac_status=$? 6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6023 (exit $ac_status); } 6024{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6025 (eval $ac_compiler -v </dev/null >&5) 2>&5 6026 ac_status=$? 6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6028 (exit $ac_status); } 6029{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6030 (eval $ac_compiler -V </dev/null >&5) 2>&5 6031 ac_status=$? 6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6033 (exit $ac_status); } 6034rm -f a.out 6035 6036# If we don't use `.F' as extension, the preprocessor is not run on the 6037# input file. (Note that this only needs to work for GNU compilers.) 6038ac_save_ext=$ac_ext 6039ac_ext=F 6040echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6041echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 6042if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6043 echo $ECHO_N "(cached) $ECHO_C" >&6 6044else 6045 cat >conftest.$ac_ext <<_ACEOF 6046 program main 6047#ifndef __GNUC__ 6048 choke me 6049#endif 6050 6051 end 6052_ACEOF 6053rm -f conftest.$ac_objext 6054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6055 (eval $ac_compile) 2>conftest.er1 6056 ac_status=$? 6057 grep -v '^ *+' conftest.er1 >conftest.err 6058 rm -f conftest.er1 6059 cat conftest.err >&5 6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6061 (exit $ac_status); } && 6062 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6064 (eval $ac_try) 2>&5 6065 ac_status=$? 6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 (exit $ac_status); }; } && 6068 { ac_try='test -s conftest.$ac_objext' 6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6070 (eval $ac_try) 2>&5 6071 ac_status=$? 6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); }; }; then 6074 ac_compiler_gnu=yes 6075else 6076 echo "$as_me: failed program was:" >&5 6077sed 's/^/| /' conftest.$ac_ext >&5 6078 6079ac_compiler_gnu=no 6080fi 6081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6082ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6083 6084fi 6085echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6086echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 6087ac_ext=$ac_save_ext 6088ac_test_FFLAGS=${FFLAGS+set} 6089ac_save_FFLAGS=$FFLAGS 6090FFLAGS= 6091echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6092echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 6093if test "${ac_cv_prog_f77_g+set}" = set; then 6094 echo $ECHO_N "(cached) $ECHO_C" >&6 6095else 6096 FFLAGS=-g 6097cat >conftest.$ac_ext <<_ACEOF 6098 program main 6099 6100 end 6101_ACEOF 6102rm -f conftest.$ac_objext 6103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6104 (eval $ac_compile) 2>conftest.er1 6105 ac_status=$? 6106 grep -v '^ *+' conftest.er1 >conftest.err 6107 rm -f conftest.er1 6108 cat conftest.err >&5 6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6110 (exit $ac_status); } && 6111 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6113 (eval $ac_try) 2>&5 6114 ac_status=$? 6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116 (exit $ac_status); }; } && 6117 { ac_try='test -s conftest.$ac_objext' 6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6119 (eval $ac_try) 2>&5 6120 ac_status=$? 6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6122 (exit $ac_status); }; }; then 6123 ac_cv_prog_f77_g=yes 6124else 6125 echo "$as_me: failed program was:" >&5 6126sed 's/^/| /' conftest.$ac_ext >&5 6127 6128ac_cv_prog_f77_g=no 6129fi 6130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6131 6132fi 6133echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6134echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 6135if test "$ac_test_FFLAGS" = set; then 6136 FFLAGS=$ac_save_FFLAGS 6137elif test $ac_cv_prog_f77_g = yes; then 6138 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6139 FFLAGS="-g -O2" 6140 else 6141 FFLAGS="-g" 6142 fi 6143else 6144 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6145 FFLAGS="-O2" 6146 else 6147 FFLAGS= 6148 fi 6149fi 6150 6151G77=`test $ac_compiler_gnu = yes && echo yes` 6152ac_ext=c 6153ac_cpp='$CPP $CPPFLAGS' 6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6156ac_compiler_gnu=$ac_cv_c_compiler_gnu 6157 6158 6159 6160# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6161 6162# find the maximum length of command line arguments 6163echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6164echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 6165if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6166 echo $ECHO_N "(cached) $ECHO_C" >&6 6167else 6168 i=0 6169 teststring="ABCD" 6170 6171 case $build_os in 6172 msdosdjgpp*) 6173 # On DJGPP, this test can blow up pretty badly due to problems in libc 6174 # (any single argument exceeding 2000 bytes causes a buffer overrun 6175 # during glob expansion). Even if it were fixed, the result of this 6176 # check would be larger than it should be. 6177 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6178 ;; 6179 6180 gnu*) 6181 # Under GNU Hurd, this test is not required because there is 6182 # no limit to the length of command line arguments. 6183 # Libtool will interpret -1 as no limit whatsoever 6184 lt_cv_sys_max_cmd_len=-1; 6185 ;; 6186 6187 cygwin* | mingw*) 6188 # On Win9x/ME, this test blows up -- it succeeds, but takes 6189 # about 5 minutes as the teststring grows exponentially. 6190 # Worse, since 9x/ME are not pre-emptively multitasking, 6191 # you end up with a "frozen" computer, even though with patience 6192 # the test eventually succeeds (with a max line length of 256k). 6193 # Instead, let's just punt: use the minimum linelength reported by 6194 # all of the supported platforms: 8192 (on NT/2K/XP). 6195 lt_cv_sys_max_cmd_len=8192; 6196 ;; 6197 6198 amigaos*) 6199 # On AmigaOS with pdksh, this test takes hours, literally. 6200 # So we just punt and use a minimum line length of 8192. 6201 lt_cv_sys_max_cmd_len=8192; 6202 ;; 6203 6204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6205 # This has been around since 386BSD, at least. Likely further. 6206 if test -x /sbin/sysctl; then 6207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6208 elif test -x /usr/sbin/sysctl; then 6209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6210 else 6211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6212 fi 6213 # And add a safety zone 6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6216 ;; 6217 6218 interix*) 6219 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6220 lt_cv_sys_max_cmd_len=196608 6221 ;; 6222 6223 osf*) 6224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6226 # nice to cause kernel panics so lets avoid the loop below. 6227 # First set a reasonable default. 6228 lt_cv_sys_max_cmd_len=16384 6229 # 6230 if test -x /sbin/sysconfig; then 6231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6232 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6233 esac 6234 fi 6235 ;; 6236 sco3.2v5*) 6237 lt_cv_sys_max_cmd_len=102400 6238 ;; 6239 sysv5* | sco5v6* | sysv4.2uw2*) 6240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6241 if test -n "$kargmax"; then 6242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6243 else 6244 lt_cv_sys_max_cmd_len=32768 6245 fi 6246 ;; 6247 *) 6248 # If test is not a shell built-in, we'll probably end up computing a 6249 # maximum length that is only half of the actual maximum length, but 6250 # we can't tell. 6251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6252 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6253 = "XX$teststring") >/dev/null 2>&1 && 6254 new_result=`expr "X$teststring" : ".*" 2>&1` && 6255 lt_cv_sys_max_cmd_len=$new_result && 6256 test $i != 17 # 1/2 MB should be enough 6257 do 6258 i=`expr $i + 1` 6259 teststring=$teststring$teststring 6260 done 6261 teststring= 6262 # Add a significant safety factor because C++ compilers can tack on massive 6263 # amounts of additional arguments before passing them to the linker. 6264 # It appears as though 1/2 is a usable value. 6265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6266 ;; 6267 esac 6268 6269fi 6270 6271if test -n $lt_cv_sys_max_cmd_len ; then 6272 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6273echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6274else 6275 echo "$as_me:$LINENO: result: none" >&5 6276echo "${ECHO_T}none" >&6 6277fi 6278 6279 6280 6281 6282# Check for command to grab the raw symbol name followed by C symbol from nm. 6283echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6284echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6285if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6286 echo $ECHO_N "(cached) $ECHO_C" >&6 6287else 6288 6289# These are sane defaults that work on at least a few old systems. 6290# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6291 6292# Character class describing NM global symbol codes. 6293symcode='[BCDEGRST]' 6294 6295# Regexp to match symbols that can be accessed directly from C. 6296sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6297 6298# Transform an extracted symbol line into a proper C declaration 6299lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6300 6301# Transform an extracted symbol line into symbol name and symbol address 6302lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6303 6304# Define system-specific variables. 6305case $host_os in 6306aix*) 6307 symcode='[BCDT]' 6308 ;; 6309cygwin* | mingw* | pw32*) 6310 symcode='[ABCDGISTW]' 6311 ;; 6312hpux*) # Its linker distinguishes data from code symbols 6313 if test "$host_cpu" = ia64; then 6314 symcode='[ABCDEGRST]' 6315 fi 6316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6317 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6318 ;; 6319linux*) 6320 if test "$host_cpu" = ia64; then 6321 symcode='[ABCDGIRSTW]' 6322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6323 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6324 fi 6325 ;; 6326irix* | nonstopux*) 6327 symcode='[BCDEGRST]' 6328 ;; 6329osf*) 6330 symcode='[BCDEGQRST]' 6331 ;; 6332solaris*) 6333 symcode='[BDRT]' 6334 ;; 6335sco3.2v5*) 6336 symcode='[DT]' 6337 ;; 6338sysv4.2uw2*) 6339 symcode='[DT]' 6340 ;; 6341sysv5* | sco5v6* | unixware* | OpenUNIX*) 6342 symcode='[ABDT]' 6343 ;; 6344sysv4) 6345 symcode='[DFNSTU]' 6346 ;; 6347esac 6348 6349# Handle CRLF in mingw tool chain 6350opt_cr= 6351case $build_os in 6352mingw*) 6353 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6354 ;; 6355esac 6356 6357# If we're using GNU nm, then use its standard symbol codes. 6358case `$NM -V 2>&1` in 6359*GNU* | *'with BFD'*) 6360 symcode='[ABCDGIRSTW]' ;; 6361esac 6362 6363# Try without a prefix undercore, then with it. 6364for ac_symprfx in "" "_"; do 6365 6366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6367 symxfrm="\\1 $ac_symprfx\\2 \\2" 6368 6369 # Write the raw and C identifiers. 6370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6371 6372 # Check to see that the pipe works correctly. 6373 pipe_works=no 6374 6375 rm -f conftest* 6376 cat > conftest.$ac_ext <<EOF 6377#ifdef __cplusplus 6378extern "C" { 6379#endif 6380char nm_test_var; 6381void nm_test_func(){} 6382#ifdef __cplusplus 6383} 6384#endif 6385int main(){nm_test_var='a';nm_test_func();return(0);} 6386EOF 6387 6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6389 (eval $ac_compile) 2>&5 6390 ac_status=$? 6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6392 (exit $ac_status); }; then 6393 # Now try to grab the symbols. 6394 nlist=conftest.nm 6395 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6396 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6397 ac_status=$? 6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6399 (exit $ac_status); } && test -s "$nlist"; then 6400 # Try sorting and uniquifying the output. 6401 if sort "$nlist" | uniq > "$nlist"T; then 6402 mv -f "$nlist"T "$nlist" 6403 else 6404 rm -f "$nlist"T 6405 fi 6406 6407 # Make sure that we snagged all the symbols we need. 6408 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6409 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6410 cat <<EOF > conftest.$ac_ext 6411#ifdef __cplusplus 6412extern "C" { 6413#endif 6414 6415EOF 6416 # Now generate the symbol file. 6417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6418 6419 cat <<EOF >> conftest.$ac_ext 6420#if defined (__STDC__) && __STDC__ 6421# define lt_ptr_t void * 6422#else 6423# define lt_ptr_t char * 6424# define const 6425#endif 6426 6427/* The mapping between symbol names and symbols. */ 6428const struct { 6429 const char *name; 6430 lt_ptr_t address; 6431} 6432lt_preloaded_symbols[] = 6433{ 6434EOF 6435 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6436 cat <<\EOF >> conftest.$ac_ext 6437 {0, (lt_ptr_t) 0} 6438}; 6439 6440#ifdef __cplusplus 6441} 6442#endif 6443EOF 6444 # Now try linking the two files. 6445 mv conftest.$ac_objext conftstm.$ac_objext 6446 lt_save_LIBS="$LIBS" 6447 lt_save_CFLAGS="$CFLAGS" 6448 LIBS="conftstm.$ac_objext" 6449 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6451 (eval $ac_link) 2>&5 6452 ac_status=$? 6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6454 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6455 pipe_works=yes 6456 fi 6457 LIBS="$lt_save_LIBS" 6458 CFLAGS="$lt_save_CFLAGS" 6459 else 6460 echo "cannot find nm_test_func in $nlist" >&5 6461 fi 6462 else 6463 echo "cannot find nm_test_var in $nlist" >&5 6464 fi 6465 else 6466 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6467 fi 6468 else 6469 echo "$progname: failed program was:" >&5 6470 cat conftest.$ac_ext >&5 6471 fi 6472 rm -f conftest* conftst* 6473 6474 # Do not use the global_symbol_pipe unless it works. 6475 if test "$pipe_works" = yes; then 6476 break 6477 else 6478 lt_cv_sys_global_symbol_pipe= 6479 fi 6480done 6481 6482fi 6483 6484if test -z "$lt_cv_sys_global_symbol_pipe"; then 6485 lt_cv_sys_global_symbol_to_cdecl= 6486fi 6487if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6488 echo "$as_me:$LINENO: result: failed" >&5 6489echo "${ECHO_T}failed" >&6 6490else 6491 echo "$as_me:$LINENO: result: ok" >&5 6492echo "${ECHO_T}ok" >&6 6493fi 6494 6495echo "$as_me:$LINENO: checking for objdir" >&5 6496echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6497if test "${lt_cv_objdir+set}" = set; then 6498 echo $ECHO_N "(cached) $ECHO_C" >&6 6499else 6500 rm -f .libs 2>/dev/null 6501mkdir .libs 2>/dev/null 6502if test -d .libs; then 6503 lt_cv_objdir=.libs 6504else 6505 # MS-DOS does not allow filenames that begin with a dot. 6506 lt_cv_objdir=_libs 6507fi 6508rmdir .libs 2>/dev/null 6509fi 6510echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6511echo "${ECHO_T}$lt_cv_objdir" >&6 6512objdir=$lt_cv_objdir 6513 6514 6515 6516 6517 6518case $host_os in 6519aix3*) 6520 # AIX sometimes has problems with the GCC collect2 program. For some 6521 # reason, if we set the COLLECT_NAMES environment variable, the problems 6522 # vanish in a puff of smoke. 6523 if test "X${COLLECT_NAMES+set}" != Xset; then 6524 COLLECT_NAMES= 6525 export COLLECT_NAMES 6526 fi 6527 ;; 6528esac 6529 6530# Sed substitution that helps us do robust quoting. It backslashifies 6531# metacharacters that are still active within double-quoted strings. 6532Xsed='sed -e 1s/^X//' 6533sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6534 6535# Same as above, but do not quote variable references. 6536double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6537 6538# Sed substitution to delay expansion of an escaped shell variable in a 6539# double_quote_subst'ed string. 6540delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6541 6542# Sed substitution to avoid accidental globbing in evaled expressions 6543no_glob_subst='s/\*/\\\*/g' 6544 6545# Constants: 6546rm="rm -f" 6547 6548# Global variables: 6549default_ofile=libtool 6550can_build_shared=yes 6551 6552# All known linkers require a `.a' archive for static linking (except MSVC, 6553# which needs '.lib'). 6554libext=a 6555ltmain="$ac_aux_dir/ltmain.sh" 6556ofile="$default_ofile" 6557with_gnu_ld="$lt_cv_prog_gnu_ld" 6558 6559if test -n "$ac_tool_prefix"; then 6560 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6561set dummy ${ac_tool_prefix}ar; ac_word=$2 6562echo "$as_me:$LINENO: checking for $ac_word" >&5 6563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6564if test "${ac_cv_prog_AR+set}" = set; then 6565 echo $ECHO_N "(cached) $ECHO_C" >&6 6566else 6567 if test -n "$AR"; then 6568 ac_cv_prog_AR="$AR" # Let the user override the test. 6569else 6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6571for as_dir in $PATH 6572do 6573 IFS=$as_save_IFS 6574 test -z "$as_dir" && as_dir=. 6575 for ac_exec_ext in '' $ac_executable_extensions; do 6576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6577 ac_cv_prog_AR="${ac_tool_prefix}ar" 6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6579 break 2 6580 fi 6581done 6582done 6583 6584fi 6585fi 6586AR=$ac_cv_prog_AR 6587if test -n "$AR"; then 6588 echo "$as_me:$LINENO: result: $AR" >&5 6589echo "${ECHO_T}$AR" >&6 6590else 6591 echo "$as_me:$LINENO: result: no" >&5 6592echo "${ECHO_T}no" >&6 6593fi 6594 6595fi 6596if test -z "$ac_cv_prog_AR"; then 6597 ac_ct_AR=$AR 6598 # Extract the first word of "ar", so it can be a program name with args. 6599set dummy ar; ac_word=$2 6600echo "$as_me:$LINENO: checking for $ac_word" >&5 6601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6602if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6603 echo $ECHO_N "(cached) $ECHO_C" >&6 6604else 6605 if test -n "$ac_ct_AR"; then 6606 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6607else 6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6609for as_dir in $PATH 6610do 6611 IFS=$as_save_IFS 6612 test -z "$as_dir" && as_dir=. 6613 for ac_exec_ext in '' $ac_executable_extensions; do 6614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6615 ac_cv_prog_ac_ct_AR="ar" 6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6617 break 2 6618 fi 6619done 6620done 6621 6622 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6623fi 6624fi 6625ac_ct_AR=$ac_cv_prog_ac_ct_AR 6626if test -n "$ac_ct_AR"; then 6627 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6628echo "${ECHO_T}$ac_ct_AR" >&6 6629else 6630 echo "$as_me:$LINENO: result: no" >&5 6631echo "${ECHO_T}no" >&6 6632fi 6633 6634 AR=$ac_ct_AR 6635else 6636 AR="$ac_cv_prog_AR" 6637fi 6638 6639if test -n "$ac_tool_prefix"; then 6640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6641set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6642echo "$as_me:$LINENO: checking for $ac_word" >&5 6643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6644if test "${ac_cv_prog_RANLIB+set}" = set; then 6645 echo $ECHO_N "(cached) $ECHO_C" >&6 6646else 6647 if test -n "$RANLIB"; then 6648 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6649else 6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651for as_dir in $PATH 6652do 6653 IFS=$as_save_IFS 6654 test -z "$as_dir" && as_dir=. 6655 for ac_exec_ext in '' $ac_executable_extensions; do 6656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6659 break 2 6660 fi 6661done 6662done 6663 6664fi 6665fi 6666RANLIB=$ac_cv_prog_RANLIB 6667if test -n "$RANLIB"; then 6668 echo "$as_me:$LINENO: result: $RANLIB" >&5 6669echo "${ECHO_T}$RANLIB" >&6 6670else 6671 echo "$as_me:$LINENO: result: no" >&5 6672echo "${ECHO_T}no" >&6 6673fi 6674 6675fi 6676if test -z "$ac_cv_prog_RANLIB"; then 6677 ac_ct_RANLIB=$RANLIB 6678 # Extract the first word of "ranlib", so it can be a program name with args. 6679set dummy ranlib; ac_word=$2 6680echo "$as_me:$LINENO: checking for $ac_word" >&5 6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6682if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6683 echo $ECHO_N "(cached) $ECHO_C" >&6 6684else 6685 if test -n "$ac_ct_RANLIB"; then 6686 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6687else 6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689for as_dir in $PATH 6690do 6691 IFS=$as_save_IFS 6692 test -z "$as_dir" && as_dir=. 6693 for ac_exec_ext in '' $ac_executable_extensions; do 6694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6695 ac_cv_prog_ac_ct_RANLIB="ranlib" 6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6697 break 2 6698 fi 6699done 6700done 6701 6702 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6703fi 6704fi 6705ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6706if test -n "$ac_ct_RANLIB"; then 6707 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6708echo "${ECHO_T}$ac_ct_RANLIB" >&6 6709else 6710 echo "$as_me:$LINENO: result: no" >&5 6711echo "${ECHO_T}no" >&6 6712fi 6713 6714 RANLIB=$ac_ct_RANLIB 6715else 6716 RANLIB="$ac_cv_prog_RANLIB" 6717fi 6718 6719if test -n "$ac_tool_prefix"; then 6720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6721set dummy ${ac_tool_prefix}strip; ac_word=$2 6722echo "$as_me:$LINENO: checking for $ac_word" >&5 6723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6724if test "${ac_cv_prog_STRIP+set}" = set; then 6725 echo $ECHO_N "(cached) $ECHO_C" >&6 6726else 6727 if test -n "$STRIP"; then 6728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6729else 6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6731for as_dir in $PATH 6732do 6733 IFS=$as_save_IFS 6734 test -z "$as_dir" && as_dir=. 6735 for ac_exec_ext in '' $ac_executable_extensions; do 6736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6737 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6739 break 2 6740 fi 6741done 6742done 6743 6744fi 6745fi 6746STRIP=$ac_cv_prog_STRIP 6747if test -n "$STRIP"; then 6748 echo "$as_me:$LINENO: result: $STRIP" >&5 6749echo "${ECHO_T}$STRIP" >&6 6750else 6751 echo "$as_me:$LINENO: result: no" >&5 6752echo "${ECHO_T}no" >&6 6753fi 6754 6755fi 6756if test -z "$ac_cv_prog_STRIP"; then 6757 ac_ct_STRIP=$STRIP 6758 # Extract the first word of "strip", so it can be a program name with args. 6759set dummy strip; ac_word=$2 6760echo "$as_me:$LINENO: checking for $ac_word" >&5 6761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6762if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6763 echo $ECHO_N "(cached) $ECHO_C" >&6 6764else 6765 if test -n "$ac_ct_STRIP"; then 6766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6767else 6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6769for as_dir in $PATH 6770do 6771 IFS=$as_save_IFS 6772 test -z "$as_dir" && as_dir=. 6773 for ac_exec_ext in '' $ac_executable_extensions; do 6774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6775 ac_cv_prog_ac_ct_STRIP="strip" 6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6777 break 2 6778 fi 6779done 6780done 6781 6782 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6783fi 6784fi 6785ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6786if test -n "$ac_ct_STRIP"; then 6787 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6788echo "${ECHO_T}$ac_ct_STRIP" >&6 6789else 6790 echo "$as_me:$LINENO: result: no" >&5 6791echo "${ECHO_T}no" >&6 6792fi 6793 6794 STRIP=$ac_ct_STRIP 6795else 6796 STRIP="$ac_cv_prog_STRIP" 6797fi 6798 6799 6800old_CC="$CC" 6801old_CFLAGS="$CFLAGS" 6802 6803# Set sane defaults for various variables 6804test -z "$AR" && AR=ar 6805test -z "$AR_FLAGS" && AR_FLAGS=cru 6806test -z "$AS" && AS=as 6807test -z "$CC" && CC=cc 6808test -z "$LTCC" && LTCC=$CC 6809test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6810test -z "$DLLTOOL" && DLLTOOL=dlltool 6811test -z "$LD" && LD=ld 6812test -z "$LN_S" && LN_S="ln -s" 6813test -z "$MAGIC_CMD" && MAGIC_CMD=file 6814test -z "$NM" && NM=nm 6815test -z "$SED" && SED=sed 6816test -z "$OBJDUMP" && OBJDUMP=objdump 6817test -z "$RANLIB" && RANLIB=: 6818test -z "$STRIP" && STRIP=: 6819test -z "$ac_objext" && ac_objext=o 6820 6821# Determine commands to create old-style static archives. 6822old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6823old_postinstall_cmds='chmod 644 $oldlib' 6824old_postuninstall_cmds= 6825 6826if test -n "$RANLIB"; then 6827 case $host_os in 6828 openbsd*) 6829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6830 ;; 6831 *) 6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6833 ;; 6834 esac 6835 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6836fi 6837 6838for cc_temp in $compiler""; do 6839 case $cc_temp in 6840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6842 \-*) ;; 6843 *) break;; 6844 esac 6845done 6846cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6847 6848 6849# Only perform the check for file, if the check method requires it 6850case $deplibs_check_method in 6851file_magic*) 6852 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6853 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6854echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6855if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6856 echo $ECHO_N "(cached) $ECHO_C" >&6 6857else 6858 case $MAGIC_CMD in 6859[\\/*] | ?:[\\/]*) 6860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6861 ;; 6862*) 6863 lt_save_MAGIC_CMD="$MAGIC_CMD" 6864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6866 for ac_dir in $ac_dummy; do 6867 IFS="$lt_save_ifs" 6868 test -z "$ac_dir" && ac_dir=. 6869 if test -f $ac_dir/${ac_tool_prefix}file; then 6870 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6871 if test -n "$file_magic_test_file"; then 6872 case $deplibs_check_method in 6873 "file_magic "*) 6874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6877 $EGREP "$file_magic_regex" > /dev/null; then 6878 : 6879 else 6880 cat <<EOF 1>&2 6881 6882*** Warning: the command libtool uses to detect shared libraries, 6883*** $file_magic_cmd, produces output that libtool cannot recognize. 6884*** The result is that libtool may fail to recognize shared libraries 6885*** as such. This will affect the creation of libtool libraries that 6886*** depend on shared libraries, but programs linked with such libtool 6887*** libraries will work regardless of this problem. Nevertheless, you 6888*** may want to report the problem to your system manager and/or to 6889*** bug-libtool@gnu.org 6890 6891EOF 6892 fi ;; 6893 esac 6894 fi 6895 break 6896 fi 6897 done 6898 IFS="$lt_save_ifs" 6899 MAGIC_CMD="$lt_save_MAGIC_CMD" 6900 ;; 6901esac 6902fi 6903 6904MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6905if test -n "$MAGIC_CMD"; then 6906 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6907echo "${ECHO_T}$MAGIC_CMD" >&6 6908else 6909 echo "$as_me:$LINENO: result: no" >&5 6910echo "${ECHO_T}no" >&6 6911fi 6912 6913if test -z "$lt_cv_path_MAGIC_CMD"; then 6914 if test -n "$ac_tool_prefix"; then 6915 echo "$as_me:$LINENO: checking for file" >&5 6916echo $ECHO_N "checking for file... $ECHO_C" >&6 6917if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6918 echo $ECHO_N "(cached) $ECHO_C" >&6 6919else 6920 case $MAGIC_CMD in 6921[\\/*] | ?:[\\/]*) 6922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6923 ;; 6924*) 6925 lt_save_MAGIC_CMD="$MAGIC_CMD" 6926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6928 for ac_dir in $ac_dummy; do 6929 IFS="$lt_save_ifs" 6930 test -z "$ac_dir" && ac_dir=. 6931 if test -f $ac_dir/file; then 6932 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6933 if test -n "$file_magic_test_file"; then 6934 case $deplibs_check_method in 6935 "file_magic "*) 6936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6939 $EGREP "$file_magic_regex" > /dev/null; then 6940 : 6941 else 6942 cat <<EOF 1>&2 6943 6944*** Warning: the command libtool uses to detect shared libraries, 6945*** $file_magic_cmd, produces output that libtool cannot recognize. 6946*** The result is that libtool may fail to recognize shared libraries 6947*** as such. This will affect the creation of libtool libraries that 6948*** depend on shared libraries, but programs linked with such libtool 6949*** libraries will work regardless of this problem. Nevertheless, you 6950*** may want to report the problem to your system manager and/or to 6951*** bug-libtool@gnu.org 6952 6953EOF 6954 fi ;; 6955 esac 6956 fi 6957 break 6958 fi 6959 done 6960 IFS="$lt_save_ifs" 6961 MAGIC_CMD="$lt_save_MAGIC_CMD" 6962 ;; 6963esac 6964fi 6965 6966MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6967if test -n "$MAGIC_CMD"; then 6968 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6969echo "${ECHO_T}$MAGIC_CMD" >&6 6970else 6971 echo "$as_me:$LINENO: result: no" >&5 6972echo "${ECHO_T}no" >&6 6973fi 6974 6975 else 6976 MAGIC_CMD=: 6977 fi 6978fi 6979 6980 fi 6981 ;; 6982esac 6983 6984enable_dlopen=no 6985enable_win32_dll=no 6986 6987# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6988if test "${enable_libtool_lock+set}" = set; then 6989 enableval="$enable_libtool_lock" 6990 6991fi; 6992test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6993 6994 6995# Check whether --with-pic or --without-pic was given. 6996if test "${with_pic+set}" = set; then 6997 withval="$with_pic" 6998 pic_mode="$withval" 6999else 7000 pic_mode=default 7001fi; 7002test -z "$pic_mode" && pic_mode=default 7003 7004# Use C for the default configuration in the libtool script 7005tagname= 7006lt_save_CC="$CC" 7007ac_ext=c 7008ac_cpp='$CPP $CPPFLAGS' 7009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7011ac_compiler_gnu=$ac_cv_c_compiler_gnu 7012 7013 7014# Source file extension for C test sources. 7015ac_ext=c 7016 7017# Object file extension for compiled C test sources. 7018objext=o 7019objext=$objext 7020 7021# Code to be used in simple compile tests 7022lt_simple_compile_test_code="int some_variable = 0;\n" 7023 7024# Code to be used in simple link tests 7025lt_simple_link_test_code='int main(){return(0);}\n' 7026 7027 7028# If no C compiler was specified, use CC. 7029LTCC=${LTCC-"$CC"} 7030 7031# If no C compiler flags were specified, use CFLAGS. 7032LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7033 7034# Allow CC to be a program name with arguments. 7035compiler=$CC 7036 7037 7038# save warnings/boilerplate of simple test code 7039ac_outfile=conftest.$ac_objext 7040printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7041eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7042_lt_compiler_boilerplate=`cat conftest.err` 7043$rm conftest* 7044 7045ac_outfile=conftest.$ac_objext 7046printf "$lt_simple_link_test_code" >conftest.$ac_ext 7047eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7048_lt_linker_boilerplate=`cat conftest.err` 7049$rm conftest* 7050 7051 7052 7053lt_prog_compiler_no_builtin_flag= 7054 7055if test "$GCC" = yes; then 7056 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7057 7058 7059echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7060echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 7061if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7062 echo $ECHO_N "(cached) $ECHO_C" >&6 7063else 7064 lt_cv_prog_compiler_rtti_exceptions=no 7065 ac_outfile=conftest.$ac_objext 7066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7067 lt_compiler_flag="-fno-rtti -fno-exceptions" 7068 # Insert the option either (1) after the last *FLAGS variable, or 7069 # (2) before a word containing "conftest.", or (3) at the end. 7070 # Note that $ac_compile itself does not contain backslashes and begins 7071 # with a dollar sign (not a hyphen), so the echo should work correctly. 7072 # The option is referenced via a variable to avoid confusing sed. 7073 lt_compile=`echo "$ac_compile" | $SED \ 7074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7076 -e 's:$: $lt_compiler_flag:'` 7077 (eval echo "\"\$as_me:7077: $lt_compile\"" >&5) 7078 (eval "$lt_compile" 2>conftest.err) 7079 ac_status=$? 7080 cat conftest.err >&5 7081 echo "$as_me:7081: \$? = $ac_status" >&5 7082 if (exit $ac_status) && test -s "$ac_outfile"; then 7083 # The compiler can only warn and ignore the option if not recognized 7084 # So say no if there are warnings other than the usual output. 7085 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7088 lt_cv_prog_compiler_rtti_exceptions=yes 7089 fi 7090 fi 7091 $rm conftest* 7092 7093fi 7094echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7095echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 7096 7097if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7098 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7099else 7100 : 7101fi 7102 7103fi 7104 7105lt_prog_compiler_wl= 7106lt_prog_compiler_pic= 7107lt_prog_compiler_static= 7108 7109echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7110echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 7111 7112 if test "$GCC" = yes; then 7113 lt_prog_compiler_wl='-Wl,' 7114 lt_prog_compiler_static='-static' 7115 7116 case $host_os in 7117 aix*) 7118 # All AIX code is PIC. 7119 if test "$host_cpu" = ia64; then 7120 # AIX 5 now supports IA64 processor 7121 lt_prog_compiler_static='-Bstatic' 7122 fi 7123 ;; 7124 7125 amigaos*) 7126 # FIXME: we need at least 68020 code to build shared libraries, but 7127 # adding the `-m68020' flag to GCC prevents building anything better, 7128 # like `-m68040'. 7129 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7130 ;; 7131 7132 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7133 # PIC is the default for these OSes. 7134 ;; 7135 7136 mingw* | pw32* | os2*) 7137 # This hack is so that the source file can tell whether it is being 7138 # built for inclusion in a dll (and should export symbols for example). 7139 lt_prog_compiler_pic='-DDLL_EXPORT' 7140 ;; 7141 7142 darwin* | rhapsody*) 7143 # PIC is the default on this platform 7144 # Common symbols not allowed in MH_DYLIB files 7145 lt_prog_compiler_pic='-fno-common' 7146 ;; 7147 7148 interix3*) 7149 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7150 # Instead, we relocate shared libraries at runtime. 7151 ;; 7152 7153 msdosdjgpp*) 7154 # Just because we use GCC doesn't mean we suddenly get shared libraries 7155 # on systems that don't support them. 7156 lt_prog_compiler_can_build_shared=no 7157 enable_shared=no 7158 ;; 7159 7160 sysv4*MP*) 7161 if test -d /usr/nec; then 7162 lt_prog_compiler_pic=-Kconform_pic 7163 fi 7164 ;; 7165 7166 hpux*) 7167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7168 # not for PA HP-UX. 7169 case $host_cpu in 7170 hppa*64*|ia64*) 7171 # +Z the default 7172 ;; 7173 *) 7174 lt_prog_compiler_pic='-fPIC' 7175 ;; 7176 esac 7177 ;; 7178 7179 *) 7180 lt_prog_compiler_pic='-fPIC' 7181 ;; 7182 esac 7183 else 7184 # PORTME Check for flag to pass linker flags through the system compiler. 7185 case $host_os in 7186 aix*) 7187 lt_prog_compiler_wl='-Wl,' 7188 if test "$host_cpu" = ia64; then 7189 # AIX 5 now supports IA64 processor 7190 lt_prog_compiler_static='-Bstatic' 7191 else 7192 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7193 fi 7194 ;; 7195 darwin*) 7196 # PIC is the default on this platform 7197 # Common symbols not allowed in MH_DYLIB files 7198 case $cc_basename in 7199 xlc*) 7200 lt_prog_compiler_pic='-qnocommon' 7201 lt_prog_compiler_wl='-Wl,' 7202 ;; 7203 esac 7204 ;; 7205 7206 mingw* | pw32* | os2*) 7207 # This hack is so that the source file can tell whether it is being 7208 # built for inclusion in a dll (and should export symbols for example). 7209 lt_prog_compiler_pic='-DDLL_EXPORT' 7210 ;; 7211 7212 hpux9* | hpux10* | hpux11*) 7213 lt_prog_compiler_wl='-Wl,' 7214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7215 # not for PA HP-UX. 7216 case $host_cpu in 7217 hppa*64*|ia64*) 7218 # +Z the default 7219 ;; 7220 *) 7221 lt_prog_compiler_pic='+Z' 7222 ;; 7223 esac 7224 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7225 lt_prog_compiler_static='${wl}-a ${wl}archive' 7226 ;; 7227 7228 irix5* | irix6* | nonstopux*) 7229 lt_prog_compiler_wl='-Wl,' 7230 # PIC (with -KPIC) is the default. 7231 lt_prog_compiler_static='-non_shared' 7232 ;; 7233 7234 newsos6) 7235 lt_prog_compiler_pic='-KPIC' 7236 lt_prog_compiler_static='-Bstatic' 7237 ;; 7238 7239 linux*) 7240 case $cc_basename in 7241 icc* | ecc*) 7242 lt_prog_compiler_wl='-Wl,' 7243 lt_prog_compiler_pic='-KPIC' 7244 lt_prog_compiler_static='-static' 7245 ;; 7246 pgcc* | pgf77* | pgf90* | pgf95*) 7247 # Portland Group compilers (*not* the Pentium gcc compiler, 7248 # which looks to be a dead project) 7249 lt_prog_compiler_wl='-Wl,' 7250 lt_prog_compiler_pic='-fpic' 7251 lt_prog_compiler_static='-Bstatic' 7252 ;; 7253 ccc*) 7254 lt_prog_compiler_wl='-Wl,' 7255 # All Alpha code is PIC. 7256 lt_prog_compiler_static='-non_shared' 7257 ;; 7258 esac 7259 ;; 7260 7261 osf3* | osf4* | osf5*) 7262 lt_prog_compiler_wl='-Wl,' 7263 # All OSF/1 code is PIC. 7264 lt_prog_compiler_static='-non_shared' 7265 ;; 7266 7267 solaris*) 7268 lt_prog_compiler_pic='-KPIC' 7269 lt_prog_compiler_static='-Bstatic' 7270 case $cc_basename in 7271 f77* | f90* | f95*) 7272 lt_prog_compiler_wl='-Qoption ld ';; 7273 *) 7274 lt_prog_compiler_wl='-Wl,';; 7275 esac 7276 ;; 7277 7278 sunos4*) 7279 lt_prog_compiler_wl='-Qoption ld ' 7280 lt_prog_compiler_pic='-PIC' 7281 lt_prog_compiler_static='-Bstatic' 7282 ;; 7283 7284 sysv4 | sysv4.2uw2* | sysv4.3*) 7285 lt_prog_compiler_wl='-Wl,' 7286 lt_prog_compiler_pic='-KPIC' 7287 lt_prog_compiler_static='-Bstatic' 7288 ;; 7289 7290 sysv4*MP*) 7291 if test -d /usr/nec ;then 7292 lt_prog_compiler_pic='-Kconform_pic' 7293 lt_prog_compiler_static='-Bstatic' 7294 fi 7295 ;; 7296 7297 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7298 lt_prog_compiler_wl='-Wl,' 7299 lt_prog_compiler_pic='-KPIC' 7300 lt_prog_compiler_static='-Bstatic' 7301 ;; 7302 7303 unicos*) 7304 lt_prog_compiler_wl='-Wl,' 7305 lt_prog_compiler_can_build_shared=no 7306 ;; 7307 7308 uts4*) 7309 lt_prog_compiler_pic='-pic' 7310 lt_prog_compiler_static='-Bstatic' 7311 ;; 7312 7313 *) 7314 lt_prog_compiler_can_build_shared=no 7315 ;; 7316 esac 7317 fi 7318 7319echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7320echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7321 7322# 7323# Check to make sure the PIC flag actually works. 7324# 7325if test -n "$lt_prog_compiler_pic"; then 7326 7327echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7328echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7329if test "${lt_prog_compiler_pic_works+set}" = set; then 7330 echo $ECHO_N "(cached) $ECHO_C" >&6 7331else 7332 lt_prog_compiler_pic_works=no 7333 ac_outfile=conftest.$ac_objext 7334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7335 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7336 # Insert the option either (1) after the last *FLAGS variable, or 7337 # (2) before a word containing "conftest.", or (3) at the end. 7338 # Note that $ac_compile itself does not contain backslashes and begins 7339 # with a dollar sign (not a hyphen), so the echo should work correctly. 7340 # The option is referenced via a variable to avoid confusing sed. 7341 lt_compile=`echo "$ac_compile" | $SED \ 7342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7344 -e 's:$: $lt_compiler_flag:'` 7345 (eval echo "\"\$as_me:7345: $lt_compile\"" >&5) 7346 (eval "$lt_compile" 2>conftest.err) 7347 ac_status=$? 7348 cat conftest.err >&5 7349 echo "$as_me:7349: \$? = $ac_status" >&5 7350 if (exit $ac_status) && test -s "$ac_outfile"; then 7351 # The compiler can only warn and ignore the option if not recognized 7352 # So say no if there are warnings other than the usual output. 7353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7356 lt_prog_compiler_pic_works=yes 7357 fi 7358 fi 7359 $rm conftest* 7360 7361fi 7362echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7363echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7364 7365if test x"$lt_prog_compiler_pic_works" = xyes; then 7366 case $lt_prog_compiler_pic in 7367 "" | " "*) ;; 7368 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7369 esac 7370else 7371 lt_prog_compiler_pic= 7372 lt_prog_compiler_can_build_shared=no 7373fi 7374 7375fi 7376case $host_os in 7377 # For platforms which do not support PIC, -DPIC is meaningless: 7378 *djgpp*) 7379 lt_prog_compiler_pic= 7380 ;; 7381 *) 7382 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7383 ;; 7384esac 7385 7386# 7387# Check to make sure the static flag actually works. 7388# 7389wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7390echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7391echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 7392if test "${lt_prog_compiler_static_works+set}" = set; then 7393 echo $ECHO_N "(cached) $ECHO_C" >&6 7394else 7395 lt_prog_compiler_static_works=no 7396 save_LDFLAGS="$LDFLAGS" 7397 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7398 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7399 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7400 # The linker can only warn and ignore the option if not recognized 7401 # So say no if there are warnings 7402 if test -s conftest.err; then 7403 # Append any errors to the config.log. 7404 cat conftest.err 1>&5 7405 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7407 if diff conftest.exp conftest.er2 >/dev/null; then 7408 lt_prog_compiler_static_works=yes 7409 fi 7410 else 7411 lt_prog_compiler_static_works=yes 7412 fi 7413 fi 7414 $rm conftest* 7415 LDFLAGS="$save_LDFLAGS" 7416 7417fi 7418echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7419echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 7420 7421if test x"$lt_prog_compiler_static_works" = xyes; then 7422 : 7423else 7424 lt_prog_compiler_static= 7425fi 7426 7427 7428echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7429echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7430if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7431 echo $ECHO_N "(cached) $ECHO_C" >&6 7432else 7433 lt_cv_prog_compiler_c_o=no 7434 $rm -r conftest 2>/dev/null 7435 mkdir conftest 7436 cd conftest 7437 mkdir out 7438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7439 7440 lt_compiler_flag="-o out/conftest2.$ac_objext" 7441 # Insert the option either (1) after the last *FLAGS variable, or 7442 # (2) before a word containing "conftest.", or (3) at the end. 7443 # Note that $ac_compile itself does not contain backslashes and begins 7444 # with a dollar sign (not a hyphen), so the echo should work correctly. 7445 lt_compile=`echo "$ac_compile" | $SED \ 7446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7448 -e 's:$: $lt_compiler_flag:'` 7449 (eval echo "\"\$as_me:7449: $lt_compile\"" >&5) 7450 (eval "$lt_compile" 2>out/conftest.err) 7451 ac_status=$? 7452 cat out/conftest.err >&5 7453 echo "$as_me:7453: \$? = $ac_status" >&5 7454 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7455 then 7456 # The compiler can only warn and ignore the option if not recognized 7457 # So say no if there are warnings 7458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7461 lt_cv_prog_compiler_c_o=yes 7462 fi 7463 fi 7464 chmod u+w . 2>&5 7465 $rm conftest* 7466 # SGI C++ compiler will create directory out/ii_files/ for 7467 # template instantiation 7468 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7469 $rm out/* && rmdir out 7470 cd .. 7471 rmdir conftest 7472 $rm conftest* 7473 7474fi 7475echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7476echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7477 7478 7479hard_links="nottested" 7480if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7481 # do not overwrite the value of need_locks provided by the user 7482 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7483echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7484 hard_links=yes 7485 $rm conftest* 7486 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7487 touch conftest.a 7488 ln conftest.a conftest.b 2>&5 || hard_links=no 7489 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7490 echo "$as_me:$LINENO: result: $hard_links" >&5 7491echo "${ECHO_T}$hard_links" >&6 7492 if test "$hard_links" = no; then 7493 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7494echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7495 need_locks=warn 7496 fi 7497else 7498 need_locks=no 7499fi 7500 7501echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7502echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7503 7504 runpath_var= 7505 allow_undefined_flag= 7506 enable_shared_with_static_runtimes=no 7507 archive_cmds= 7508 archive_expsym_cmds= 7509 old_archive_From_new_cmds= 7510 old_archive_from_expsyms_cmds= 7511 export_dynamic_flag_spec= 7512 whole_archive_flag_spec= 7513 thread_safe_flag_spec= 7514 hardcode_libdir_flag_spec= 7515 hardcode_libdir_flag_spec_ld= 7516 hardcode_libdir_separator= 7517 hardcode_direct=no 7518 hardcode_minus_L=no 7519 hardcode_shlibpath_var=unsupported 7520 link_all_deplibs=unknown 7521 hardcode_automatic=no 7522 module_cmds= 7523 module_expsym_cmds= 7524 always_export_symbols=no 7525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7526 # include_expsyms should be a list of space-separated symbols to be *always* 7527 # included in the symbol list 7528 include_expsyms= 7529 # exclude_expsyms can be an extended regexp of symbols to exclude 7530 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7531 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7532 # as well as any symbol that contains `d'. 7533 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7535 # platforms (ab)use it in PIC code, but their linkers get confused if 7536 # the symbol is explicitly referenced. Since portable code cannot 7537 # rely on this symbol name, it's probably fine to never include it in 7538 # preloaded symbol tables. 7539 extract_expsyms_cmds= 7540 # Just being paranoid about ensuring that cc_basename is set. 7541 for cc_temp in $compiler""; do 7542 case $cc_temp in 7543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7545 \-*) ;; 7546 *) break;; 7547 esac 7548done 7549cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7550 7551 case $host_os in 7552 cygwin* | mingw* | pw32*) 7553 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7554 # When not using gcc, we currently assume that we are using 7555 # Microsoft Visual C++. 7556 if test "$GCC" != yes; then 7557 with_gnu_ld=no 7558 fi 7559 ;; 7560 interix*) 7561 # we just hope/assume this is gcc and not c89 (= MSVC++) 7562 with_gnu_ld=yes 7563 ;; 7564 openbsd*) 7565 with_gnu_ld=no 7566 ;; 7567 esac 7568 7569 ld_shlibs=yes 7570 if test "$with_gnu_ld" = yes; then 7571 # If archive_cmds runs LD, not CC, wlarc should be empty 7572 wlarc='${wl}' 7573 7574 # Set some defaults for GNU ld with shared library support. These 7575 # are reset later if shared libraries are not supported. Putting them 7576 # here allows them to be overridden if necessary. 7577 runpath_var=LD_RUN_PATH 7578 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7579 export_dynamic_flag_spec='${wl}--export-dynamic' 7580 # ancient GNU ld didn't support --whole-archive et. al. 7581 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7582 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7583 else 7584 whole_archive_flag_spec= 7585 fi 7586 supports_anon_versioning=no 7587 case `$LD -v 2>/dev/null` in 7588 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7589 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7590 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7591 *\ 2.11.*) ;; # other 2.11 versions 7592 *) supports_anon_versioning=yes ;; 7593 esac 7594 7595 # See if GNU ld supports shared libraries. 7596 case $host_os in 7597 aix3* | aix4* | aix5*) 7598 # On AIX/PPC, the GNU linker is very broken 7599 if test "$host_cpu" != ia64; then 7600 ld_shlibs=no 7601 cat <<EOF 1>&2 7602 7603*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7604*** to be unable to reliably create shared libraries on AIX. 7605*** Therefore, libtool is disabling shared libraries support. If you 7606*** really care for shared libraries, you may want to modify your PATH 7607*** so that a non-GNU linker is found, and then restart. 7608 7609EOF 7610 fi 7611 ;; 7612 7613 amigaos*) 7614 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)' 7615 hardcode_libdir_flag_spec='-L$libdir' 7616 hardcode_minus_L=yes 7617 7618 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7619 # that the semantics of dynamic libraries on AmigaOS, at least up 7620 # to version 4, is to share data among multiple programs linked 7621 # with the same dynamic library. Since this doesn't match the 7622 # behavior of shared libraries on other platforms, we can't use 7623 # them. 7624 ld_shlibs=no 7625 ;; 7626 7627 beos*) 7628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7629 allow_undefined_flag=unsupported 7630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7631 # support --undefined. This deserves some investigation. FIXME 7632 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7633 else 7634 ld_shlibs=no 7635 fi 7636 ;; 7637 7638 cygwin* | mingw* | pw32*) 7639 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7640 # as there is no search path for DLLs. 7641 hardcode_libdir_flag_spec='-L$libdir' 7642 allow_undefined_flag=unsupported 7643 always_export_symbols=no 7644 enable_shared_with_static_runtimes=yes 7645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7646 7647 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7649 # If the export-symbols file already is a .def file (1st line 7650 # is EXPORTS), use it as is; otherwise, prepend... 7651 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7652 cp $export_symbols $output_objdir/$soname.def; 7653 else 7654 echo EXPORTS > $output_objdir/$soname.def; 7655 cat $export_symbols >> $output_objdir/$soname.def; 7656 fi~ 7657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7658 else 7659 ld_shlibs=no 7660 fi 7661 ;; 7662 7663 interix3*) 7664 hardcode_direct=no 7665 hardcode_shlibpath_var=no 7666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7667 export_dynamic_flag_spec='${wl}-E' 7668 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7669 # Instead, shared libraries are loaded at an image base (0x10000000 by 7670 # default) and relocated if they conflict, which is a slow very memory 7671 # consuming and fragmenting process. To avoid this, we pick a random, 7672 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7673 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7675 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7676 ;; 7677 7678 linux*) 7679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7680 tmp_addflag= 7681 case $cc_basename,$host_cpu in 7682 pgcc*) # Portland Group C compiler 7683 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7684 tmp_addflag=' $pic_flag' 7685 ;; 7686 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7687 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7688 tmp_addflag=' $pic_flag -Mnomain' ;; 7689 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7690 tmp_addflag=' -i_dynamic' ;; 7691 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7692 tmp_addflag=' -i_dynamic -nofor_main' ;; 7693 ifc* | ifort*) # Intel Fortran compiler 7694 tmp_addflag=' -nofor_main' ;; 7695 esac 7696 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7697 7698 if test $supports_anon_versioning = yes; then 7699 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7701 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7702 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7703 fi 7704 link_all_deplibs=no 7705 else 7706 ld_shlibs=no 7707 fi 7708 ;; 7709 7710 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 7711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7712 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7713 wlarc= 7714 else 7715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7717 fi 7718 ;; 7719 7720 solaris*) 7721 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7722 ld_shlibs=no 7723 cat <<EOF 1>&2 7724 7725*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7726*** create shared libraries on Solaris systems. Therefore, libtool 7727*** is disabling shared libraries support. We urge you to upgrade GNU 7728*** binutils to release 2.9.1 or newer. Another option is to modify 7729*** your PATH or compiler configuration so that the native linker is 7730*** used, and then restart. 7731 7732EOF 7733 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7736 else 7737 ld_shlibs=no 7738 fi 7739 ;; 7740 7741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7742 case `$LD -v 2>&1` in 7743 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7744 ld_shlibs=no 7745 cat <<_LT_EOF 1>&2 7746 7747*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7748*** reliably create shared libraries on SCO systems. Therefore, libtool 7749*** is disabling shared libraries support. We urge you to upgrade GNU 7750*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7751*** your PATH or compiler configuration so that the native linker is 7752*** used, and then restart. 7753 7754_LT_EOF 7755 ;; 7756 *) 7757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7758 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7761 else 7762 ld_shlibs=no 7763 fi 7764 ;; 7765 esac 7766 ;; 7767 7768 sunos4*) 7769 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7770 wlarc= 7771 hardcode_direct=yes 7772 hardcode_shlibpath_var=no 7773 ;; 7774 7775 *) 7776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7779 else 7780 ld_shlibs=no 7781 fi 7782 ;; 7783 esac 7784 7785 if test "$ld_shlibs" = no; then 7786 runpath_var= 7787 hardcode_libdir_flag_spec= 7788 export_dynamic_flag_spec= 7789 whole_archive_flag_spec= 7790 fi 7791 else 7792 # PORTME fill in a description of your system's linker (not GNU ld) 7793 case $host_os in 7794 aix3*) 7795 allow_undefined_flag=unsupported 7796 always_export_symbols=yes 7797 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' 7798 # Note: this linker hardcodes the directories in LIBPATH if there 7799 # are no directories specified by -L. 7800 hardcode_minus_L=yes 7801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7802 # Neither direct hardcoding nor static linking is supported with a 7803 # broken collect2. 7804 hardcode_direct=unsupported 7805 fi 7806 ;; 7807 7808 aix4* | aix5*) 7809 if test "$host_cpu" = ia64; then 7810 # On IA64, the linker does run time linking by default, so we don't 7811 # have to do anything special. 7812 aix_use_runtimelinking=no 7813 exp_sym_flag='-Bexport' 7814 no_entry_flag="" 7815 else 7816 # If we're using GNU nm, then we don't want the "-C" option. 7817 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7818 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7819 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 7820 else 7821 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 7822 fi 7823 aix_use_runtimelinking=no 7824 7825 # Test if we are trying to use run time linking or normal 7826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7827 # need to do runtime linking. 7828 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7829 for ld_flag in $LDFLAGS; do 7830 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7831 aix_use_runtimelinking=yes 7832 break 7833 fi 7834 done 7835 ;; 7836 esac 7837 7838 exp_sym_flag='-bexport' 7839 no_entry_flag='-bnoentry' 7840 fi 7841 7842 # When large executables or shared objects are built, AIX ld can 7843 # have problems creating the table of contents. If linking a library 7844 # or program results in "error TOC overflow" add -mminimal-toc to 7845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7847 7848 archive_cmds='' 7849 hardcode_direct=yes 7850 hardcode_libdir_separator=':' 7851 link_all_deplibs=yes 7852 7853 if test "$GCC" = yes; then 7854 case $host_os in aix4.[012]|aix4.[012].*) 7855 # We only want to do this on AIX 4.2 and lower, the check 7856 # below for broken collect2 doesn't work under 4.3+ 7857 collect2name=`${CC} -print-prog-name=collect2` 7858 if test -f "$collect2name" && \ 7859 strings "$collect2name" | grep resolve_lib_name >/dev/null 7860 then 7861 # We have reworked collect2 7862 hardcode_direct=yes 7863 else 7864 # We have old collect2 7865 hardcode_direct=unsupported 7866 # It fails to find uninstalled libraries when the uninstalled 7867 # path is not listed in the libpath. Setting hardcode_minus_L 7868 # to unsupported forces relinking 7869 hardcode_minus_L=yes 7870 hardcode_libdir_flag_spec='-L$libdir' 7871 hardcode_libdir_separator= 7872 fi 7873 ;; 7874 esac 7875 shared_flag='-shared' 7876 if test "$aix_use_runtimelinking" = yes; then 7877 shared_flag="$shared_flag "'${wl}-G' 7878 fi 7879 else 7880 # not using gcc 7881 if test "$host_cpu" = ia64; then 7882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7883 # chokes on -Wl,-G. The following line is correct: 7884 shared_flag='-G' 7885 else 7886 if test "$aix_use_runtimelinking" = yes; then 7887 shared_flag='${wl}-G' 7888 else 7889 shared_flag='${wl}-bM:SRE' 7890 fi 7891 fi 7892 fi 7893 7894 # It seems that -bexpall does not export symbols beginning with 7895 # underscore (_), so it is better to generate a list of symbols to export. 7896 always_export_symbols=yes 7897 if test "$aix_use_runtimelinking" = yes; then 7898 # Warning - without using the other runtime loading flags (-brtl), 7899 # -berok will link without error, but may produce a broken library. 7900 allow_undefined_flag='-berok' 7901 # Determine the default libpath from the value encoded in an empty executable. 7902 cat >conftest.$ac_ext <<_ACEOF 7903/* confdefs.h. */ 7904_ACEOF 7905cat confdefs.h >>conftest.$ac_ext 7906cat >>conftest.$ac_ext <<_ACEOF 7907/* end confdefs.h. */ 7908 7909int 7910main () 7911{ 7912 7913 ; 7914 return 0; 7915} 7916_ACEOF 7917rm -f conftest.$ac_objext conftest$ac_exeext 7918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7919 (eval $ac_link) 2>conftest.er1 7920 ac_status=$? 7921 grep -v '^ *+' conftest.er1 >conftest.err 7922 rm -f conftest.er1 7923 cat conftest.err >&5 7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7925 (exit $ac_status); } && 7926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7928 (eval $ac_try) 2>&5 7929 ac_status=$? 7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7931 (exit $ac_status); }; } && 7932 { ac_try='test -s conftest$ac_exeext' 7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7934 (eval $ac_try) 2>&5 7935 ac_status=$? 7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7937 (exit $ac_status); }; }; then 7938 7939aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7940}'` 7941# Check for a 64-bit object if we didn't find anything. 7942if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7943}'`; fi 7944else 7945 echo "$as_me: failed program was:" >&5 7946sed 's/^/| /' conftest.$ac_ext >&5 7947 7948fi 7949rm -f conftest.err conftest.$ac_objext \ 7950 conftest$ac_exeext conftest.$ac_ext 7951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7952 7953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7954 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7955 else 7956 if test "$host_cpu" = ia64; then 7957 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7958 allow_undefined_flag="-z nodefs" 7959 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 7960 else 7961 # Determine the default libpath from the value encoded in an empty executable. 7962 cat >conftest.$ac_ext <<_ACEOF 7963/* confdefs.h. */ 7964_ACEOF 7965cat confdefs.h >>conftest.$ac_ext 7966cat >>conftest.$ac_ext <<_ACEOF 7967/* end confdefs.h. */ 7968 7969int 7970main () 7971{ 7972 7973 ; 7974 return 0; 7975} 7976_ACEOF 7977rm -f conftest.$ac_objext conftest$ac_exeext 7978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7979 (eval $ac_link) 2>conftest.er1 7980 ac_status=$? 7981 grep -v '^ *+' conftest.er1 >conftest.err 7982 rm -f conftest.er1 7983 cat conftest.err >&5 7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7985 (exit $ac_status); } && 7986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7988 (eval $ac_try) 2>&5 7989 ac_status=$? 7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7991 (exit $ac_status); }; } && 7992 { ac_try='test -s conftest$ac_exeext' 7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7994 (eval $ac_try) 2>&5 7995 ac_status=$? 7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7997 (exit $ac_status); }; }; then 7998 7999aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8000}'` 8001# Check for a 64-bit object if we didn't find anything. 8002if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8003}'`; fi 8004else 8005 echo "$as_me: failed program was:" >&5 8006sed 's/^/| /' conftest.$ac_ext >&5 8007 8008fi 8009rm -f conftest.err conftest.$ac_objext \ 8010 conftest$ac_exeext conftest.$ac_ext 8011if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8012 8013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8014 # Warning - without using the other run time loading flags, 8015 # -berok will link without error, but may produce a broken library. 8016 no_undefined_flag=' ${wl}-bernotok' 8017 allow_undefined_flag=' ${wl}-berok' 8018 # Exported symbols can be pulled into shared objects from archives 8019 whole_archive_flag_spec='$convenience' 8020 archive_cmds_need_lc=yes 8021 # This is similar to how AIX traditionally builds its shared libraries. 8022 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8023 fi 8024 fi 8025 ;; 8026 8027 amigaos*) 8028 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)' 8029 hardcode_libdir_flag_spec='-L$libdir' 8030 hardcode_minus_L=yes 8031 # see comment about different semantics on the GNU ld section 8032 ld_shlibs=no 8033 ;; 8034 8035 bsdi[45]*) 8036 export_dynamic_flag_spec=-rdynamic 8037 ;; 8038 8039 cygwin* | mingw* | pw32*) 8040 # When not using gcc, we currently assume that we are using 8041 # Microsoft Visual C++. 8042 # hardcode_libdir_flag_spec is actually meaningless, as there is 8043 # no search path for DLLs. 8044 hardcode_libdir_flag_spec=' ' 8045 allow_undefined_flag=unsupported 8046 # Tell ltmain to make .lib files, not .a files. 8047 libext=lib 8048 # Tell ltmain to make .dll files, not .so files. 8049 shrext_cmds=".dll" 8050 # FIXME: Setting linknames here is a bad hack. 8051 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8052 # The linker will automatically build a .lib file if we build a DLL. 8053 old_archive_From_new_cmds='true' 8054 # FIXME: Should let the user specify the lib program. 8055 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8056 fix_srcfile_path='`cygpath -w "$srcfile"`' 8057 enable_shared_with_static_runtimes=yes 8058 ;; 8059 8060 darwin* | rhapsody*) 8061 case $host_os in 8062 rhapsody* | darwin1.[012]) 8063 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8064 ;; 8065 *) # Darwin 1.3 on 8066 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8067 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8068 else 8069 case ${MACOSX_DEPLOYMENT_TARGET} in 8070 10.[012]) 8071 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8072 ;; 8073 10.*) 8074 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8075 ;; 8076 esac 8077 fi 8078 ;; 8079 esac 8080 archive_cmds_need_lc=no 8081 hardcode_direct=no 8082 hardcode_automatic=yes 8083 hardcode_shlibpath_var=unsupported 8084 whole_archive_flag_spec='' 8085 link_all_deplibs=yes 8086 if test "$GCC" = yes ; then 8087 output_verbose_link_cmd='echo' 8088 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8089 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8090 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8091 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8092 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8093 else 8094 case $cc_basename in 8095 xlc*) 8096 output_verbose_link_cmd='echo' 8097 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8098 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8100 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8101 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8102 ;; 8103 *) 8104 ld_shlibs=no 8105 ;; 8106 esac 8107 fi 8108 ;; 8109 8110 dgux*) 8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8112 hardcode_libdir_flag_spec='-L$libdir' 8113 hardcode_shlibpath_var=no 8114 ;; 8115 8116 freebsd1*) 8117 ld_shlibs=no 8118 ;; 8119 8120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8121 # support. Future versions do this automatically, but an explicit c++rt0.o 8122 # does not break anything, and helps significantly (at the cost of a little 8123 # extra space). 8124 freebsd2.2*) 8125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8126 hardcode_libdir_flag_spec='-R$libdir' 8127 hardcode_direct=yes 8128 hardcode_shlibpath_var=no 8129 ;; 8130 8131 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8132 freebsd2*) 8133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8134 hardcode_direct=yes 8135 hardcode_minus_L=yes 8136 hardcode_shlibpath_var=no 8137 ;; 8138 8139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8140 freebsd* | dragonfly*) 8141 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8142 hardcode_libdir_flag_spec='-R$libdir' 8143 hardcode_direct=yes 8144 hardcode_shlibpath_var=no 8145 ;; 8146 8147 # GNU/kFreeBSD uses gcc -shared to do shared libraries. 8148 kfreebsd*-gnu) 8149 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8150 hardcode_libdir_flag_spec='-R$libdir' 8151 hardcode_direct=yes 8152 hardcode_shlibpath_var=no 8153 link_all_deplibs=no 8154 ;; 8155 8156 hpux9*) 8157 if test "$GCC" = yes; then 8158 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8159 else 8160 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' 8161 fi 8162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8163 hardcode_libdir_separator=: 8164 hardcode_direct=yes 8165 8166 # hardcode_minus_L: Not really in the search PATH, 8167 # but as the default location of the library. 8168 hardcode_minus_L=yes 8169 export_dynamic_flag_spec='${wl}-E' 8170 ;; 8171 8172 hpux10*) 8173 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8174 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8175 else 8176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8177 fi 8178 if test "$with_gnu_ld" = no; then 8179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8180 hardcode_libdir_separator=: 8181 8182 hardcode_direct=yes 8183 export_dynamic_flag_spec='${wl}-E' 8184 8185 # hardcode_minus_L: Not really in the search PATH, 8186 # but as the default location of the library. 8187 hardcode_minus_L=yes 8188 fi 8189 ;; 8190 8191 hpux11*) 8192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8193 case $host_cpu in 8194 hppa*64*) 8195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8196 ;; 8197 ia64*) 8198 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8199 ;; 8200 *) 8201 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8202 ;; 8203 esac 8204 else 8205 case $host_cpu in 8206 hppa*64*) 8207 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8208 ;; 8209 ia64*) 8210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8211 ;; 8212 *) 8213 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8214 ;; 8215 esac 8216 fi 8217 if test "$with_gnu_ld" = no; then 8218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8219 hardcode_libdir_separator=: 8220 8221 case $host_cpu in 8222 hppa*64*|ia64*) 8223 hardcode_libdir_flag_spec_ld='+b $libdir' 8224 hardcode_direct=no 8225 hardcode_shlibpath_var=no 8226 ;; 8227 *) 8228 hardcode_direct=yes 8229 export_dynamic_flag_spec='${wl}-E' 8230 8231 # hardcode_minus_L: Not really in the search PATH, 8232 # but as the default location of the library. 8233 hardcode_minus_L=yes 8234 ;; 8235 esac 8236 fi 8237 ;; 8238 8239 irix5* | irix6* | nonstopux*) 8240 if test "$GCC" = yes; then 8241 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' 8242 else 8243 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' 8244 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8245 fi 8246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8247 hardcode_libdir_separator=: 8248 link_all_deplibs=yes 8249 ;; 8250 8251 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 8252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8254 else 8255 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8256 fi 8257 hardcode_libdir_flag_spec='-R$libdir' 8258 hardcode_direct=yes 8259 hardcode_shlibpath_var=no 8260 ;; 8261 8262 newsos6) 8263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8264 hardcode_direct=yes 8265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8266 hardcode_libdir_separator=: 8267 hardcode_shlibpath_var=no 8268 ;; 8269 8270 openbsd*) 8271 hardcode_direct=yes 8272 hardcode_shlibpath_var=no 8273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8275 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8277 export_dynamic_flag_spec='${wl}-E' 8278 else 8279 case $host_os in 8280 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8282 hardcode_libdir_flag_spec='-R$libdir' 8283 ;; 8284 *) 8285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8287 ;; 8288 esac 8289 fi 8290 ;; 8291 8292 os2*) 8293 hardcode_libdir_flag_spec='-L$libdir' 8294 hardcode_minus_L=yes 8295 allow_undefined_flag=unsupported 8296 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' 8297 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8298 ;; 8299 8300 osf3*) 8301 if test "$GCC" = yes; then 8302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8303 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' 8304 else 8305 allow_undefined_flag=' -expect_unresolved \*' 8306 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' 8307 fi 8308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8309 hardcode_libdir_separator=: 8310 ;; 8311 8312 osf4* | osf5*) # as osf3* with the addition of -msym flag 8313 if test "$GCC" = yes; then 8314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8315 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' 8316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8317 else 8318 allow_undefined_flag=' -expect_unresolved \*' 8319 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' 8320 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8321 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 8322 8323 # Both c and cxx compiler support -rpath directly 8324 hardcode_libdir_flag_spec='-rpath $libdir' 8325 fi 8326 hardcode_libdir_separator=: 8327 ;; 8328 8329 solaris*) 8330 no_undefined_flag=' -z text' 8331 if test "$GCC" = yes; then 8332 wlarc='${wl}' 8333 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8334 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8335 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8336 else 8337 wlarc='' 8338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8339 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8341 fi 8342 hardcode_libdir_flag_spec='-R$libdir' 8343 hardcode_shlibpath_var=no 8344 case $host_os in 8345 solaris2.[0-5] | solaris2.[0-5].*) ;; 8346 *) 8347 # The compiler driver will combine linker options so we 8348 # cannot just pass the convience library names through 8349 # without $wl, iff we do not link with $LD. 8350 # Luckily, gcc supports the same syntax we need for Sun Studio. 8351 # Supported since Solaris 2.6 (maybe 2.5.1?) 8352 case $wlarc in 8353 '') 8354 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8355 *) 8356 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8357 esac ;; 8358 esac 8359 link_all_deplibs=yes 8360 ;; 8361 8362 sunos4*) 8363 if test "x$host_vendor" = xsequent; then 8364 # Use $CC to link under sequent, because it throws in some extra .o 8365 # files that make .init and .fini sections work. 8366 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8367 else 8368 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8369 fi 8370 hardcode_libdir_flag_spec='-L$libdir' 8371 hardcode_direct=yes 8372 hardcode_minus_L=yes 8373 hardcode_shlibpath_var=no 8374 ;; 8375 8376 sysv4) 8377 case $host_vendor in 8378 sni) 8379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8380 hardcode_direct=yes # is this really true??? 8381 ;; 8382 siemens) 8383 ## LD is ld it makes a PLAMLIB 8384 ## CC just makes a GrossModule. 8385 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8386 reload_cmds='$CC -r -o $output$reload_objs' 8387 hardcode_direct=no 8388 ;; 8389 motorola) 8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8391 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8392 ;; 8393 esac 8394 runpath_var='LD_RUN_PATH' 8395 hardcode_shlibpath_var=no 8396 ;; 8397 8398 sysv4.3*) 8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8400 hardcode_shlibpath_var=no 8401 export_dynamic_flag_spec='-Bexport' 8402 ;; 8403 8404 sysv4*MP*) 8405 if test -d /usr/nec; then 8406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8407 hardcode_shlibpath_var=no 8408 runpath_var=LD_RUN_PATH 8409 hardcode_runpath_var=yes 8410 ld_shlibs=yes 8411 fi 8412 ;; 8413 8414 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8415 no_undefined_flag='${wl}-z,text' 8416 archive_cmds_need_lc=no 8417 hardcode_shlibpath_var=no 8418 runpath_var='LD_RUN_PATH' 8419 8420 if test "$GCC" = yes; then 8421 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8422 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8423 else 8424 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8425 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8426 fi 8427 ;; 8428 8429 sysv5* | sco3.2v5* | sco5v6*) 8430 # Note: We can NOT use -z defs as we might desire, because we do not 8431 # link with -lc, and that would cause any symbols used from libc to 8432 # always be unresolved, which means just about no library would 8433 # ever link correctly. If we're not using GNU ld we use -z text 8434 # though, which does catch some bad symbols but isn't as heavy-handed 8435 # as -z defs. 8436 no_undefined_flag='${wl}-z,text' 8437 allow_undefined_flag='${wl}-z,nodefs' 8438 archive_cmds_need_lc=no 8439 hardcode_shlibpath_var=no 8440 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8441 hardcode_libdir_separator=':' 8442 link_all_deplibs=yes 8443 export_dynamic_flag_spec='${wl}-Bexport' 8444 runpath_var='LD_RUN_PATH' 8445 8446 if test "$GCC" = yes; then 8447 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8448 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8449 else 8450 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8451 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8452 fi 8453 ;; 8454 8455 uts4*) 8456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8457 hardcode_libdir_flag_spec='-L$libdir' 8458 hardcode_shlibpath_var=no 8459 ;; 8460 8461 *) 8462 ld_shlibs=no 8463 ;; 8464 esac 8465 fi 8466 8467echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8468echo "${ECHO_T}$ld_shlibs" >&6 8469test "$ld_shlibs" = no && can_build_shared=no 8470 8471# 8472# Do we need to explicitly link libc? 8473# 8474case "x$archive_cmds_need_lc" in 8475x|xyes) 8476 # Assume -lc should be added 8477 archive_cmds_need_lc=yes 8478 8479 if test "$enable_shared" = yes && test "$GCC" = yes; then 8480 case $archive_cmds in 8481 *'~'*) 8482 # FIXME: we may have to deal with multi-command sequences. 8483 ;; 8484 '$CC '*) 8485 # Test whether the compiler implicitly links with -lc since on some 8486 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8487 # to ld, don't add -lc before -lgcc. 8488 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8489echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8490 $rm conftest* 8491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8492 8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8494 (eval $ac_compile) 2>&5 8495 ac_status=$? 8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8497 (exit $ac_status); } 2>conftest.err; then 8498 soname=conftest 8499 lib=conftest 8500 libobjs=conftest.$ac_objext 8501 deplibs= 8502 wl=$lt_prog_compiler_wl 8503 pic_flag=$lt_prog_compiler_pic 8504 compiler_flags=-v 8505 linker_flags=-v 8506 verstring= 8507 output_objdir=. 8508 libname=conftest 8509 lt_save_allow_undefined_flag=$allow_undefined_flag 8510 allow_undefined_flag= 8511 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8512 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8513 ac_status=$? 8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8515 (exit $ac_status); } 8516 then 8517 archive_cmds_need_lc=no 8518 else 8519 archive_cmds_need_lc=yes 8520 fi 8521 allow_undefined_flag=$lt_save_allow_undefined_flag 8522 else 8523 cat conftest.err 1>&5 8524 fi 8525 $rm conftest* 8526 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8527echo "${ECHO_T}$archive_cmds_need_lc" >&6 8528 ;; 8529 esac 8530 fi 8531 ;; 8532esac 8533 8534echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8536library_names_spec= 8537libname_spec='lib$name' 8538soname_spec= 8539shrext_cmds=".so" 8540postinstall_cmds= 8541postuninstall_cmds= 8542finish_cmds= 8543finish_eval= 8544shlibpath_var= 8545shlibpath_overrides_runpath=unknown 8546version_type=none 8547dynamic_linker="$host_os ld.so" 8548sys_lib_dlsearch_path_spec="/lib /usr/lib" 8549if test "$GCC" = yes; then 8550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8552 # if the path contains ";" then we assume it to be the separator 8553 # otherwise default to the standard path separator (i.e. ":") - it is 8554 # assumed that no part of a normal pathname contains ";" but that should 8555 # okay in the real world where ";" in dirpaths is itself problematic. 8556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8557 else 8558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8559 fi 8560else 8561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8562fi 8563need_lib_prefix=unknown 8564hardcode_into_libs=no 8565 8566# when you set need_version to no, make sure it does not cause -set_version 8567# flags to be left without arguments 8568need_version=unknown 8569 8570case $host_os in 8571aix3*) 8572 version_type=linux 8573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8574 shlibpath_var=LIBPATH 8575 8576 # AIX 3 has no versioning support, so we append a major version to the name. 8577 soname_spec='${libname}${release}${shared_ext}$major' 8578 ;; 8579 8580aix4* | aix5*) 8581 version_type=linux 8582 need_lib_prefix=no 8583 need_version=no 8584 hardcode_into_libs=yes 8585 if test "$host_cpu" = ia64; then 8586 # AIX 5 supports IA64 8587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8588 shlibpath_var=LD_LIBRARY_PATH 8589 else 8590 # With GCC up to 2.95.x, collect2 would create an import file 8591 # for dependence libraries. The import file would start with 8592 # the line `#! .'. This would cause the generated library to 8593 # depend on `.', always an invalid library. This was fixed in 8594 # development snapshots of GCC prior to 3.0. 8595 case $host_os in 8596 aix4 | aix4.[01] | aix4.[01].*) 8597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8598 echo ' yes ' 8599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8600 : 8601 else 8602 can_build_shared=no 8603 fi 8604 ;; 8605 esac 8606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8607 # soname into executable. Probably we can add versioning support to 8608 # collect2, so additional links can be useful in future. 8609 if test "$aix_use_runtimelinking" = yes; then 8610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8611 # instead of lib<name>.a to let people know that these are not 8612 # typical AIX shared libraries. 8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8614 else 8615 # We preserve .a as extension for shared libraries through AIX4.2 8616 # and later when we are not doing run time linking. 8617 library_names_spec='${libname}${release}.a $libname.a' 8618 soname_spec='${libname}${release}${shared_ext}$major' 8619 fi 8620 shlibpath_var=LIBPATH 8621 fi 8622 ;; 8623 8624amigaos*) 8625 library_names_spec='$libname.ixlibrary $libname.a' 8626 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8627 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' 8628 ;; 8629 8630beos*) 8631 library_names_spec='${libname}${shared_ext}' 8632 dynamic_linker="$host_os ld.so" 8633 shlibpath_var=LIBRARY_PATH 8634 ;; 8635 8636bsdi[45]*) 8637 version_type=linux 8638 need_version=no 8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8640 soname_spec='${libname}${release}${shared_ext}$major' 8641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8642 shlibpath_var=LD_LIBRARY_PATH 8643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8645 # the default ld.so.conf also contains /usr/contrib/lib and 8646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8647 # libtool to hard-code these into programs 8648 ;; 8649 8650cygwin* | mingw* | pw32*) 8651 version_type=windows 8652 shrext_cmds=".dll" 8653 need_version=no 8654 need_lib_prefix=no 8655 8656 case $GCC,$host_os in 8657 yes,cygwin* | yes,mingw* | yes,pw32*) 8658 library_names_spec='$libname.dll.a' 8659 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8660 postinstall_cmds='base_file=`basename \${file}`~ 8661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8662 dldir=$destdir/`dirname \$dlpath`~ 8663 test -d \$dldir || mkdir -p \$dldir~ 8664 $install_prog $dir/$dlname \$dldir/$dlname~ 8665 chmod a+x \$dldir/$dlname' 8666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8667 dlpath=$dir/\$dldll~ 8668 $rm \$dlpath' 8669 shlibpath_overrides_runpath=yes 8670 8671 case $host_os in 8672 cygwin*) 8673 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8676 ;; 8677 mingw*) 8678 # MinGW DLLs use traditional 'lib' prefix 8679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8682 # It is most probably a Windows format PATH printed by 8683 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8684 # path with ; separators, and with drive letters. We can handle the 8685 # drive letters (cygwin fileutils understands them), so leave them, 8686 # especially as we might pass files found there to a mingw objdump, 8687 # which wouldn't understand a cygwinified path. Ahh. 8688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8689 else 8690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8691 fi 8692 ;; 8693 pw32*) 8694 # pw32 DLLs use 'pw' prefix rather than 'lib' 8695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8696 ;; 8697 esac 8698 ;; 8699 8700 *) 8701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8702 ;; 8703 esac 8704 dynamic_linker='Win32 ld.exe' 8705 # FIXME: first we should search . and the directory the executable is in 8706 shlibpath_var=PATH 8707 ;; 8708 8709darwin* | rhapsody*) 8710 dynamic_linker="$host_os dyld" 8711 version_type=darwin 8712 need_lib_prefix=no 8713 need_version=no 8714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8715 soname_spec='${libname}${release}${major}$shared_ext' 8716 shlibpath_overrides_runpath=yes 8717 shlibpath_var=DYLD_LIBRARY_PATH 8718 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8720 if test "$GCC" = yes; then 8721 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8722 else 8723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8724 fi 8725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8726 ;; 8727 8728dgux*) 8729 version_type=linux 8730 need_lib_prefix=no 8731 need_version=no 8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8733 soname_spec='${libname}${release}${shared_ext}$major' 8734 shlibpath_var=LD_LIBRARY_PATH 8735 ;; 8736 8737freebsd1*) 8738 dynamic_linker=no 8739 ;; 8740 8741kfreebsd*-gnu) 8742 version_type=linux 8743 need_lib_prefix=no 8744 need_version=no 8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8746 soname_spec='${libname}${release}${shared_ext}$major' 8747 shlibpath_var=LD_LIBRARY_PATH 8748 shlibpath_overrides_runpath=no 8749 hardcode_into_libs=yes 8750 dynamic_linker='GNU ld.so' 8751 ;; 8752 8753freebsd* | dragonfly*) 8754 # DragonFly does not have aout. When/if they implement a new 8755 # versioning mechanism, adjust this. 8756 if test -x /usr/bin/objformat; then 8757 objformat=`/usr/bin/objformat` 8758 else 8759 case $host_os in 8760 freebsd[123]*) objformat=aout ;; 8761 *) objformat=elf ;; 8762 esac 8763 fi 8764 version_type=freebsd-$objformat 8765 case $version_type in 8766 freebsd-elf*) 8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8768 need_version=no 8769 need_lib_prefix=no 8770 ;; 8771 freebsd-*) 8772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8773 need_version=yes 8774 ;; 8775 esac 8776 shlibpath_var=LD_LIBRARY_PATH 8777 case $host_os in 8778 freebsd2*) 8779 shlibpath_overrides_runpath=yes 8780 ;; 8781 freebsd3.[01]* | freebsdelf3.[01]*) 8782 shlibpath_overrides_runpath=yes 8783 hardcode_into_libs=yes 8784 ;; 8785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8787 shlibpath_overrides_runpath=no 8788 hardcode_into_libs=yes 8789 ;; 8790 freebsd*) # from 4.6 on 8791 shlibpath_overrides_runpath=yes 8792 hardcode_into_libs=yes 8793 ;; 8794 esac 8795 ;; 8796 8797gnu*) 8798 version_type=linux 8799 need_lib_prefix=no 8800 need_version=no 8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8802 soname_spec='${libname}${release}${shared_ext}$major' 8803 shlibpath_var=LD_LIBRARY_PATH 8804 hardcode_into_libs=yes 8805 ;; 8806 8807hpux9* | hpux10* | hpux11*) 8808 # Give a soname corresponding to the major version so that dld.sl refuses to 8809 # link against other versions. 8810 version_type=sunos 8811 need_lib_prefix=no 8812 need_version=no 8813 case $host_cpu in 8814 ia64*) 8815 shrext_cmds='.so' 8816 hardcode_into_libs=yes 8817 dynamic_linker="$host_os dld.so" 8818 shlibpath_var=LD_LIBRARY_PATH 8819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8821 soname_spec='${libname}${release}${shared_ext}$major' 8822 if test "X$HPUX_IA64_MODE" = X32; then 8823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8824 else 8825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8826 fi 8827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8828 ;; 8829 hppa*64*) 8830 shrext_cmds='.sl' 8831 hardcode_into_libs=yes 8832 dynamic_linker="$host_os dld.sl" 8833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8836 soname_spec='${libname}${release}${shared_ext}$major' 8837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8839 ;; 8840 *) 8841 shrext_cmds='.sl' 8842 dynamic_linker="$host_os dld.sl" 8843 shlibpath_var=SHLIB_PATH 8844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8846 soname_spec='${libname}${release}${shared_ext}$major' 8847 ;; 8848 esac 8849 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8850 postinstall_cmds='chmod 555 $lib' 8851 ;; 8852 8853interix3*) 8854 version_type=linux 8855 need_lib_prefix=no 8856 need_version=no 8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8858 soname_spec='${libname}${release}${shared_ext}$major' 8859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8860 shlibpath_var=LD_LIBRARY_PATH 8861 shlibpath_overrides_runpath=no 8862 hardcode_into_libs=yes 8863 ;; 8864 8865irix5* | irix6* | nonstopux*) 8866 case $host_os in 8867 nonstopux*) version_type=nonstopux ;; 8868 *) 8869 if test "$lt_cv_prog_gnu_ld" = yes; then 8870 version_type=linux 8871 else 8872 version_type=irix 8873 fi ;; 8874 esac 8875 need_lib_prefix=no 8876 need_version=no 8877 soname_spec='${libname}${release}${shared_ext}$major' 8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8879 case $host_os in 8880 irix5* | nonstopux*) 8881 libsuff= shlibsuff= 8882 ;; 8883 *) 8884 case $LD in # libtool.m4 will add one of these switches to LD 8885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8886 libsuff= shlibsuff= libmagic=32-bit;; 8887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8888 libsuff=32 shlibsuff=N32 libmagic=N32;; 8889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8890 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8891 *) libsuff= shlibsuff= libmagic=never-match;; 8892 esac 8893 ;; 8894 esac 8895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8896 shlibpath_overrides_runpath=no 8897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8899 hardcode_into_libs=yes 8900 ;; 8901 8902# No shared lib support for Linux oldld, aout, or coff. 8903linux*oldld* | linux*aout* | linux*coff*) 8904 dynamic_linker=no 8905 ;; 8906 8907# This must be Linux ELF. 8908linux*) 8909 version_type=linux 8910 need_lib_prefix=no 8911 need_version=no 8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8913 soname_spec='${libname}${release}${shared_ext}$major' 8914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8915 shlibpath_var=LD_LIBRARY_PATH 8916 shlibpath_overrides_runpath=no 8917 # This implies no fast_install, which is unacceptable. 8918 # Some rework will be needed to allow for fast_install 8919 # before this can be enabled. 8920 hardcode_into_libs=yes 8921 8922 # Append ld.so.conf contents to the search path 8923 if test -f /etc/ld.so.conf; then 8924 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8926 fi 8927 8928 # We used to test for /lib/ld.so.1 and disable shared libraries on 8929 # powerpc, because MkLinux only supported shared libraries with the 8930 # GNU dynamic linker. Since this was broken with cross compilers, 8931 # most powerpc-linux boxes support dynamic linking these days and 8932 # people can always --disable-shared, the test was removed, and we 8933 # assume the GNU/Linux dynamic linker is in use. 8934 dynamic_linker='GNU/Linux ld.so' 8935 ;; 8936 8937netbsdelf*-gnu) 8938 version_type=linux 8939 need_lib_prefix=no 8940 need_version=no 8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8942 soname_spec='${libname}${release}${shared_ext}$major' 8943 shlibpath_var=LD_LIBRARY_PATH 8944 shlibpath_overrides_runpath=no 8945 hardcode_into_libs=yes 8946 dynamic_linker='NetBSD ld.elf_so' 8947 ;; 8948 8949knetbsd*-gnu) 8950 version_type=linux 8951 need_lib_prefix=no 8952 need_version=no 8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8954 soname_spec='${libname}${release}${shared_ext}$major' 8955 shlibpath_var=LD_LIBRARY_PATH 8956 shlibpath_overrides_runpath=no 8957 hardcode_into_libs=yes 8958 dynamic_linker='GNU ld.so' 8959 ;; 8960 8961netbsd*) 8962 version_type=sunos 8963 need_lib_prefix=no 8964 need_version=no 8965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8968 dynamic_linker='NetBSD (a.out) ld.so' 8969 else 8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8971 soname_spec='${libname}${release}${shared_ext}$major' 8972 dynamic_linker='NetBSD ld.elf_so' 8973 fi 8974 shlibpath_var=LD_LIBRARY_PATH 8975 shlibpath_overrides_runpath=yes 8976 hardcode_into_libs=yes 8977 ;; 8978 8979newsos6) 8980 version_type=linux 8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8982 shlibpath_var=LD_LIBRARY_PATH 8983 shlibpath_overrides_runpath=yes 8984 ;; 8985 8986nto-qnx*) 8987 version_type=linux 8988 need_lib_prefix=no 8989 need_version=no 8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8991 soname_spec='${libname}${release}${shared_ext}$major' 8992 shlibpath_var=LD_LIBRARY_PATH 8993 shlibpath_overrides_runpath=yes 8994 ;; 8995 8996openbsd*) 8997 version_type=sunos 8998 sys_lib_dlsearch_path_spec="/usr/lib" 8999 need_lib_prefix=no 9000 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9001 case $host_os in 9002 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9003 *) need_version=no ;; 9004 esac 9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9007 shlibpath_var=LD_LIBRARY_PATH 9008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9009 case $host_os in 9010 openbsd2.[89] | openbsd2.[89].*) 9011 shlibpath_overrides_runpath=no 9012 ;; 9013 *) 9014 shlibpath_overrides_runpath=yes 9015 ;; 9016 esac 9017 else 9018 shlibpath_overrides_runpath=yes 9019 fi 9020 ;; 9021 9022os2*) 9023 libname_spec='$name' 9024 shrext_cmds=".dll" 9025 need_lib_prefix=no 9026 library_names_spec='$libname${shared_ext} $libname.a' 9027 dynamic_linker='OS/2 ld.exe' 9028 shlibpath_var=LIBPATH 9029 ;; 9030 9031osf3* | osf4* | osf5*) 9032 version_type=osf 9033 need_lib_prefix=no 9034 need_version=no 9035 soname_spec='${libname}${release}${shared_ext}$major' 9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9037 shlibpath_var=LD_LIBRARY_PATH 9038 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9039 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9040 ;; 9041 9042solaris*) 9043 version_type=linux 9044 need_lib_prefix=no 9045 need_version=no 9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9047 soname_spec='${libname}${release}${shared_ext}$major' 9048 shlibpath_var=LD_LIBRARY_PATH 9049 shlibpath_overrides_runpath=yes 9050 hardcode_into_libs=yes 9051 # ldd complains unless libraries are executable 9052 postinstall_cmds='chmod +x $lib' 9053 ;; 9054 9055sunos4*) 9056 version_type=sunos 9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9059 shlibpath_var=LD_LIBRARY_PATH 9060 shlibpath_overrides_runpath=yes 9061 if test "$with_gnu_ld" = yes; then 9062 need_lib_prefix=no 9063 fi 9064 need_version=yes 9065 ;; 9066 9067sysv4 | sysv4.3*) 9068 version_type=linux 9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9070 soname_spec='${libname}${release}${shared_ext}$major' 9071 shlibpath_var=LD_LIBRARY_PATH 9072 case $host_vendor in 9073 sni) 9074 shlibpath_overrides_runpath=no 9075 need_lib_prefix=no 9076 export_dynamic_flag_spec='${wl}-Blargedynsym' 9077 runpath_var=LD_RUN_PATH 9078 ;; 9079 siemens) 9080 need_lib_prefix=no 9081 ;; 9082 motorola) 9083 need_lib_prefix=no 9084 need_version=no 9085 shlibpath_overrides_runpath=no 9086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9087 ;; 9088 esac 9089 ;; 9090 9091sysv4*MP*) 9092 if test -d /usr/nec ;then 9093 version_type=linux 9094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9095 soname_spec='$libname${shared_ext}.$major' 9096 shlibpath_var=LD_LIBRARY_PATH 9097 fi 9098 ;; 9099 9100sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9101 version_type=freebsd-elf 9102 need_lib_prefix=no 9103 need_version=no 9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9105 soname_spec='${libname}${release}${shared_ext}$major' 9106 shlibpath_var=LD_LIBRARY_PATH 9107 hardcode_into_libs=yes 9108 if test "$with_gnu_ld" = yes; then 9109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9110 shlibpath_overrides_runpath=no 9111 else 9112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9113 shlibpath_overrides_runpath=yes 9114 case $host_os in 9115 sco3.2v5*) 9116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9117 ;; 9118 esac 9119 fi 9120 sys_lib_dlsearch_path_spec='/usr/lib' 9121 ;; 9122 9123uts4*) 9124 version_type=linux 9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9126 soname_spec='${libname}${release}${shared_ext}$major' 9127 shlibpath_var=LD_LIBRARY_PATH 9128 ;; 9129 9130*) 9131 dynamic_linker=no 9132 ;; 9133esac 9134echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9135echo "${ECHO_T}$dynamic_linker" >&6 9136test "$dynamic_linker" = no && can_build_shared=no 9137 9138variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9139if test "$GCC" = yes; then 9140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9141fi 9142 9143echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9144echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9145hardcode_action= 9146if test -n "$hardcode_libdir_flag_spec" || \ 9147 test -n "$runpath_var" || \ 9148 test "X$hardcode_automatic" = "Xyes" ; then 9149 9150 # We can hardcode non-existant directories. 9151 if test "$hardcode_direct" != no && 9152 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9153 # have to relink, otherwise we might link with an installed library 9154 # when we should be linking with a yet-to-be-installed one 9155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9156 test "$hardcode_minus_L" != no; then 9157 # Linking always hardcodes the temporary library directory. 9158 hardcode_action=relink 9159 else 9160 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9161 hardcode_action=immediate 9162 fi 9163else 9164 # We cannot hardcode anything, or else we can only hardcode existing 9165 # directories. 9166 hardcode_action=unsupported 9167fi 9168echo "$as_me:$LINENO: result: $hardcode_action" >&5 9169echo "${ECHO_T}$hardcode_action" >&6 9170 9171if test "$hardcode_action" = relink; then 9172 # Fast installation is not supported 9173 enable_fast_install=no 9174elif test "$shlibpath_overrides_runpath" = yes || 9175 test "$enable_shared" = no; then 9176 # Fast installation is not necessary 9177 enable_fast_install=needless 9178fi 9179 9180striplib= 9181old_striplib= 9182echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9183echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9184if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9185 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9186 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9187 echo "$as_me:$LINENO: result: yes" >&5 9188echo "${ECHO_T}yes" >&6 9189else 9190# FIXME - insert some real tests, host_os isn't really good enough 9191 case $host_os in 9192 darwin*) 9193 if test -n "$STRIP" ; then 9194 striplib="$STRIP -x" 9195 echo "$as_me:$LINENO: result: yes" >&5 9196echo "${ECHO_T}yes" >&6 9197 else 9198 echo "$as_me:$LINENO: result: no" >&5 9199echo "${ECHO_T}no" >&6 9200fi 9201 ;; 9202 *) 9203 echo "$as_me:$LINENO: result: no" >&5 9204echo "${ECHO_T}no" >&6 9205 ;; 9206 esac 9207fi 9208 9209if test "x$enable_dlopen" != xyes; then 9210 enable_dlopen=unknown 9211 enable_dlopen_self=unknown 9212 enable_dlopen_self_static=unknown 9213else 9214 lt_cv_dlopen=no 9215 lt_cv_dlopen_libs= 9216 9217 case $host_os in 9218 beos*) 9219 lt_cv_dlopen="load_add_on" 9220 lt_cv_dlopen_libs= 9221 lt_cv_dlopen_self=yes 9222 ;; 9223 9224 mingw* | pw32*) 9225 lt_cv_dlopen="LoadLibrary" 9226 lt_cv_dlopen_libs= 9227 ;; 9228 9229 cygwin*) 9230 lt_cv_dlopen="dlopen" 9231 lt_cv_dlopen_libs= 9232 ;; 9233 9234 darwin*) 9235 # if libdl is installed we need to link against it 9236 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9237echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9238if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9239 echo $ECHO_N "(cached) $ECHO_C" >&6 9240else 9241 ac_check_lib_save_LIBS=$LIBS 9242LIBS="-ldl $LIBS" 9243cat >conftest.$ac_ext <<_ACEOF 9244/* confdefs.h. */ 9245_ACEOF 9246cat confdefs.h >>conftest.$ac_ext 9247cat >>conftest.$ac_ext <<_ACEOF 9248/* end confdefs.h. */ 9249 9250/* Override any gcc2 internal prototype to avoid an error. */ 9251#ifdef __cplusplus 9252extern "C" 9253#endif 9254/* We use char because int might match the return type of a gcc2 9255 builtin and then its argument prototype would still apply. */ 9256char dlopen (); 9257int 9258main () 9259{ 9260dlopen (); 9261 ; 9262 return 0; 9263} 9264_ACEOF 9265rm -f conftest.$ac_objext conftest$ac_exeext 9266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9267 (eval $ac_link) 2>conftest.er1 9268 ac_status=$? 9269 grep -v '^ *+' conftest.er1 >conftest.err 9270 rm -f conftest.er1 9271 cat conftest.err >&5 9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9273 (exit $ac_status); } && 9274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9276 (eval $ac_try) 2>&5 9277 ac_status=$? 9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9279 (exit $ac_status); }; } && 9280 { ac_try='test -s conftest$ac_exeext' 9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9282 (eval $ac_try) 2>&5 9283 ac_status=$? 9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9285 (exit $ac_status); }; }; then 9286 ac_cv_lib_dl_dlopen=yes 9287else 9288 echo "$as_me: failed program was:" >&5 9289sed 's/^/| /' conftest.$ac_ext >&5 9290 9291ac_cv_lib_dl_dlopen=no 9292fi 9293rm -f conftest.err conftest.$ac_objext \ 9294 conftest$ac_exeext conftest.$ac_ext 9295LIBS=$ac_check_lib_save_LIBS 9296fi 9297echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9298echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9299if test $ac_cv_lib_dl_dlopen = yes; then 9300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9301else 9302 9303 lt_cv_dlopen="dyld" 9304 lt_cv_dlopen_libs= 9305 lt_cv_dlopen_self=yes 9306 9307fi 9308 9309 ;; 9310 9311 *) 9312 echo "$as_me:$LINENO: checking for shl_load" >&5 9313echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 9314if test "${ac_cv_func_shl_load+set}" = set; then 9315 echo $ECHO_N "(cached) $ECHO_C" >&6 9316else 9317 cat >conftest.$ac_ext <<_ACEOF 9318/* confdefs.h. */ 9319_ACEOF 9320cat confdefs.h >>conftest.$ac_ext 9321cat >>conftest.$ac_ext <<_ACEOF 9322/* end confdefs.h. */ 9323/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9324 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9325#define shl_load innocuous_shl_load 9326 9327/* System header to define __stub macros and hopefully few prototypes, 9328 which can conflict with char shl_load (); below. 9329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9330 <limits.h> exists even on freestanding compilers. */ 9331 9332#ifdef __STDC__ 9333# include <limits.h> 9334#else 9335# include <assert.h> 9336#endif 9337 9338#undef shl_load 9339 9340/* Override any gcc2 internal prototype to avoid an error. */ 9341#ifdef __cplusplus 9342extern "C" 9343{ 9344#endif 9345/* We use char because int might match the return type of a gcc2 9346 builtin and then its argument prototype would still apply. */ 9347char shl_load (); 9348/* The GNU C library defines this for functions which it implements 9349 to always fail with ENOSYS. Some functions are actually named 9350 something starting with __ and the normal name is an alias. */ 9351#if defined (__stub_shl_load) || defined (__stub___shl_load) 9352choke me 9353#else 9354char (*f) () = shl_load; 9355#endif 9356#ifdef __cplusplus 9357} 9358#endif 9359 9360int 9361main () 9362{ 9363return f != shl_load; 9364 ; 9365 return 0; 9366} 9367_ACEOF 9368rm -f conftest.$ac_objext conftest$ac_exeext 9369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9370 (eval $ac_link) 2>conftest.er1 9371 ac_status=$? 9372 grep -v '^ *+' conftest.er1 >conftest.err 9373 rm -f conftest.er1 9374 cat conftest.err >&5 9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9376 (exit $ac_status); } && 9377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9379 (eval $ac_try) 2>&5 9380 ac_status=$? 9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9382 (exit $ac_status); }; } && 9383 { ac_try='test -s conftest$ac_exeext' 9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9385 (eval $ac_try) 2>&5 9386 ac_status=$? 9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9388 (exit $ac_status); }; }; then 9389 ac_cv_func_shl_load=yes 9390else 9391 echo "$as_me: failed program was:" >&5 9392sed 's/^/| /' conftest.$ac_ext >&5 9393 9394ac_cv_func_shl_load=no 9395fi 9396rm -f conftest.err conftest.$ac_objext \ 9397 conftest$ac_exeext conftest.$ac_ext 9398fi 9399echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9400echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9401if test $ac_cv_func_shl_load = yes; then 9402 lt_cv_dlopen="shl_load" 9403else 9404 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9405echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9406if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9407 echo $ECHO_N "(cached) $ECHO_C" >&6 9408else 9409 ac_check_lib_save_LIBS=$LIBS 9410LIBS="-ldld $LIBS" 9411cat >conftest.$ac_ext <<_ACEOF 9412/* confdefs.h. */ 9413_ACEOF 9414cat confdefs.h >>conftest.$ac_ext 9415cat >>conftest.$ac_ext <<_ACEOF 9416/* end confdefs.h. */ 9417 9418/* Override any gcc2 internal prototype to avoid an error. */ 9419#ifdef __cplusplus 9420extern "C" 9421#endif 9422/* We use char because int might match the return type of a gcc2 9423 builtin and then its argument prototype would still apply. */ 9424char shl_load (); 9425int 9426main () 9427{ 9428shl_load (); 9429 ; 9430 return 0; 9431} 9432_ACEOF 9433rm -f conftest.$ac_objext conftest$ac_exeext 9434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9435 (eval $ac_link) 2>conftest.er1 9436 ac_status=$? 9437 grep -v '^ *+' conftest.er1 >conftest.err 9438 rm -f conftest.er1 9439 cat conftest.err >&5 9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9441 (exit $ac_status); } && 9442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9444 (eval $ac_try) 2>&5 9445 ac_status=$? 9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9447 (exit $ac_status); }; } && 9448 { ac_try='test -s conftest$ac_exeext' 9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9450 (eval $ac_try) 2>&5 9451 ac_status=$? 9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9453 (exit $ac_status); }; }; then 9454 ac_cv_lib_dld_shl_load=yes 9455else 9456 echo "$as_me: failed program was:" >&5 9457sed 's/^/| /' conftest.$ac_ext >&5 9458 9459ac_cv_lib_dld_shl_load=no 9460fi 9461rm -f conftest.err conftest.$ac_objext \ 9462 conftest$ac_exeext conftest.$ac_ext 9463LIBS=$ac_check_lib_save_LIBS 9464fi 9465echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9466echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9467if test $ac_cv_lib_dld_shl_load = yes; then 9468 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9469else 9470 echo "$as_me:$LINENO: checking for dlopen" >&5 9471echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9472if test "${ac_cv_func_dlopen+set}" = set; then 9473 echo $ECHO_N "(cached) $ECHO_C" >&6 9474else 9475 cat >conftest.$ac_ext <<_ACEOF 9476/* confdefs.h. */ 9477_ACEOF 9478cat confdefs.h >>conftest.$ac_ext 9479cat >>conftest.$ac_ext <<_ACEOF 9480/* end confdefs.h. */ 9481/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9482 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9483#define dlopen innocuous_dlopen 9484 9485/* System header to define __stub macros and hopefully few prototypes, 9486 which can conflict with char dlopen (); below. 9487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9488 <limits.h> exists even on freestanding compilers. */ 9489 9490#ifdef __STDC__ 9491# include <limits.h> 9492#else 9493# include <assert.h> 9494#endif 9495 9496#undef dlopen 9497 9498/* Override any gcc2 internal prototype to avoid an error. */ 9499#ifdef __cplusplus 9500extern "C" 9501{ 9502#endif 9503/* We use char because int might match the return type of a gcc2 9504 builtin and then its argument prototype would still apply. */ 9505char dlopen (); 9506/* The GNU C library defines this for functions which it implements 9507 to always fail with ENOSYS. Some functions are actually named 9508 something starting with __ and the normal name is an alias. */ 9509#if defined (__stub_dlopen) || defined (__stub___dlopen) 9510choke me 9511#else 9512char (*f) () = dlopen; 9513#endif 9514#ifdef __cplusplus 9515} 9516#endif 9517 9518int 9519main () 9520{ 9521return f != dlopen; 9522 ; 9523 return 0; 9524} 9525_ACEOF 9526rm -f conftest.$ac_objext conftest$ac_exeext 9527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9528 (eval $ac_link) 2>conftest.er1 9529 ac_status=$? 9530 grep -v '^ *+' conftest.er1 >conftest.err 9531 rm -f conftest.er1 9532 cat conftest.err >&5 9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9534 (exit $ac_status); } && 9535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9537 (eval $ac_try) 2>&5 9538 ac_status=$? 9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9540 (exit $ac_status); }; } && 9541 { ac_try='test -s conftest$ac_exeext' 9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9543 (eval $ac_try) 2>&5 9544 ac_status=$? 9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9546 (exit $ac_status); }; }; then 9547 ac_cv_func_dlopen=yes 9548else 9549 echo "$as_me: failed program was:" >&5 9550sed 's/^/| /' conftest.$ac_ext >&5 9551 9552ac_cv_func_dlopen=no 9553fi 9554rm -f conftest.err conftest.$ac_objext \ 9555 conftest$ac_exeext conftest.$ac_ext 9556fi 9557echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9558echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9559if test $ac_cv_func_dlopen = yes; then 9560 lt_cv_dlopen="dlopen" 9561else 9562 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9563echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9564if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9565 echo $ECHO_N "(cached) $ECHO_C" >&6 9566else 9567 ac_check_lib_save_LIBS=$LIBS 9568LIBS="-ldl $LIBS" 9569cat >conftest.$ac_ext <<_ACEOF 9570/* confdefs.h. */ 9571_ACEOF 9572cat confdefs.h >>conftest.$ac_ext 9573cat >>conftest.$ac_ext <<_ACEOF 9574/* end confdefs.h. */ 9575 9576/* Override any gcc2 internal prototype to avoid an error. */ 9577#ifdef __cplusplus 9578extern "C" 9579#endif 9580/* We use char because int might match the return type of a gcc2 9581 builtin and then its argument prototype would still apply. */ 9582char dlopen (); 9583int 9584main () 9585{ 9586dlopen (); 9587 ; 9588 return 0; 9589} 9590_ACEOF 9591rm -f conftest.$ac_objext conftest$ac_exeext 9592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9593 (eval $ac_link) 2>conftest.er1 9594 ac_status=$? 9595 grep -v '^ *+' conftest.er1 >conftest.err 9596 rm -f conftest.er1 9597 cat conftest.err >&5 9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9599 (exit $ac_status); } && 9600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9602 (eval $ac_try) 2>&5 9603 ac_status=$? 9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9605 (exit $ac_status); }; } && 9606 { ac_try='test -s conftest$ac_exeext' 9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9608 (eval $ac_try) 2>&5 9609 ac_status=$? 9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9611 (exit $ac_status); }; }; then 9612 ac_cv_lib_dl_dlopen=yes 9613else 9614 echo "$as_me: failed program was:" >&5 9615sed 's/^/| /' conftest.$ac_ext >&5 9616 9617ac_cv_lib_dl_dlopen=no 9618fi 9619rm -f conftest.err conftest.$ac_objext \ 9620 conftest$ac_exeext conftest.$ac_ext 9621LIBS=$ac_check_lib_save_LIBS 9622fi 9623echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9624echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9625if test $ac_cv_lib_dl_dlopen = yes; then 9626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9627else 9628 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9629echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9630if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9631 echo $ECHO_N "(cached) $ECHO_C" >&6 9632else 9633 ac_check_lib_save_LIBS=$LIBS 9634LIBS="-lsvld $LIBS" 9635cat >conftest.$ac_ext <<_ACEOF 9636/* confdefs.h. */ 9637_ACEOF 9638cat confdefs.h >>conftest.$ac_ext 9639cat >>conftest.$ac_ext <<_ACEOF 9640/* end confdefs.h. */ 9641 9642/* Override any gcc2 internal prototype to avoid an error. */ 9643#ifdef __cplusplus 9644extern "C" 9645#endif 9646/* We use char because int might match the return type of a gcc2 9647 builtin and then its argument prototype would still apply. */ 9648char dlopen (); 9649int 9650main () 9651{ 9652dlopen (); 9653 ; 9654 return 0; 9655} 9656_ACEOF 9657rm -f conftest.$ac_objext conftest$ac_exeext 9658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9659 (eval $ac_link) 2>conftest.er1 9660 ac_status=$? 9661 grep -v '^ *+' conftest.er1 >conftest.err 9662 rm -f conftest.er1 9663 cat conftest.err >&5 9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9665 (exit $ac_status); } && 9666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9668 (eval $ac_try) 2>&5 9669 ac_status=$? 9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9671 (exit $ac_status); }; } && 9672 { ac_try='test -s conftest$ac_exeext' 9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9674 (eval $ac_try) 2>&5 9675 ac_status=$? 9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9677 (exit $ac_status); }; }; then 9678 ac_cv_lib_svld_dlopen=yes 9679else 9680 echo "$as_me: failed program was:" >&5 9681sed 's/^/| /' conftest.$ac_ext >&5 9682 9683ac_cv_lib_svld_dlopen=no 9684fi 9685rm -f conftest.err conftest.$ac_objext \ 9686 conftest$ac_exeext conftest.$ac_ext 9687LIBS=$ac_check_lib_save_LIBS 9688fi 9689echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9690echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9691if test $ac_cv_lib_svld_dlopen = yes; then 9692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9693else 9694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9695echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9696if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9697 echo $ECHO_N "(cached) $ECHO_C" >&6 9698else 9699 ac_check_lib_save_LIBS=$LIBS 9700LIBS="-ldld $LIBS" 9701cat >conftest.$ac_ext <<_ACEOF 9702/* confdefs.h. */ 9703_ACEOF 9704cat confdefs.h >>conftest.$ac_ext 9705cat >>conftest.$ac_ext <<_ACEOF 9706/* end confdefs.h. */ 9707 9708/* Override any gcc2 internal prototype to avoid an error. */ 9709#ifdef __cplusplus 9710extern "C" 9711#endif 9712/* We use char because int might match the return type of a gcc2 9713 builtin and then its argument prototype would still apply. */ 9714char dld_link (); 9715int 9716main () 9717{ 9718dld_link (); 9719 ; 9720 return 0; 9721} 9722_ACEOF 9723rm -f conftest.$ac_objext conftest$ac_exeext 9724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9725 (eval $ac_link) 2>conftest.er1 9726 ac_status=$? 9727 grep -v '^ *+' conftest.er1 >conftest.err 9728 rm -f conftest.er1 9729 cat conftest.err >&5 9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9731 (exit $ac_status); } && 9732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9734 (eval $ac_try) 2>&5 9735 ac_status=$? 9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9737 (exit $ac_status); }; } && 9738 { ac_try='test -s conftest$ac_exeext' 9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9740 (eval $ac_try) 2>&5 9741 ac_status=$? 9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9743 (exit $ac_status); }; }; then 9744 ac_cv_lib_dld_dld_link=yes 9745else 9746 echo "$as_me: failed program was:" >&5 9747sed 's/^/| /' conftest.$ac_ext >&5 9748 9749ac_cv_lib_dld_dld_link=no 9750fi 9751rm -f conftest.err conftest.$ac_objext \ 9752 conftest$ac_exeext conftest.$ac_ext 9753LIBS=$ac_check_lib_save_LIBS 9754fi 9755echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9756echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9757if test $ac_cv_lib_dld_dld_link = yes; then 9758 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9759fi 9760 9761 9762fi 9763 9764 9765fi 9766 9767 9768fi 9769 9770 9771fi 9772 9773 9774fi 9775 9776 ;; 9777 esac 9778 9779 if test "x$lt_cv_dlopen" != xno; then 9780 enable_dlopen=yes 9781 else 9782 enable_dlopen=no 9783 fi 9784 9785 case $lt_cv_dlopen in 9786 dlopen) 9787 save_CPPFLAGS="$CPPFLAGS" 9788 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9789 9790 save_LDFLAGS="$LDFLAGS" 9791 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9792 9793 save_LIBS="$LIBS" 9794 LIBS="$lt_cv_dlopen_libs $LIBS" 9795 9796 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9797echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9798if test "${lt_cv_dlopen_self+set}" = set; then 9799 echo $ECHO_N "(cached) $ECHO_C" >&6 9800else 9801 if test "$cross_compiling" = yes; then : 9802 lt_cv_dlopen_self=cross 9803else 9804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9805 lt_status=$lt_dlunknown 9806 cat > conftest.$ac_ext <<EOF 9807#line 9807 "configure" 9808#include "confdefs.h" 9809 9810#if HAVE_DLFCN_H 9811#include <dlfcn.h> 9812#endif 9813 9814#include <stdio.h> 9815 9816#ifdef RTLD_GLOBAL 9817# define LT_DLGLOBAL RTLD_GLOBAL 9818#else 9819# ifdef DL_GLOBAL 9820# define LT_DLGLOBAL DL_GLOBAL 9821# else 9822# define LT_DLGLOBAL 0 9823# endif 9824#endif 9825 9826/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9827 find out it does not work in some platform. */ 9828#ifndef LT_DLLAZY_OR_NOW 9829# ifdef RTLD_LAZY 9830# define LT_DLLAZY_OR_NOW RTLD_LAZY 9831# else 9832# ifdef DL_LAZY 9833# define LT_DLLAZY_OR_NOW DL_LAZY 9834# else 9835# ifdef RTLD_NOW 9836# define LT_DLLAZY_OR_NOW RTLD_NOW 9837# else 9838# ifdef DL_NOW 9839# define LT_DLLAZY_OR_NOW DL_NOW 9840# else 9841# define LT_DLLAZY_OR_NOW 0 9842# endif 9843# endif 9844# endif 9845# endif 9846#endif 9847 9848#ifdef __cplusplus 9849extern "C" void exit (int); 9850#endif 9851 9852void fnord() { int i=42;} 9853int main () 9854{ 9855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9856 int status = $lt_dlunknown; 9857 9858 if (self) 9859 { 9860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9862 /* dlclose (self); */ 9863 } 9864 else 9865 puts (dlerror ()); 9866 9867 exit (status); 9868} 9869EOF 9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9871 (eval $ac_link) 2>&5 9872 ac_status=$? 9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9874 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9875 (./conftest; exit; ) >&5 2>/dev/null 9876 lt_status=$? 9877 case x$lt_status in 9878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9880 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9881 esac 9882 else : 9883 # compilation failed 9884 lt_cv_dlopen_self=no 9885 fi 9886fi 9887rm -fr conftest* 9888 9889 9890fi 9891echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9892echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9893 9894 if test "x$lt_cv_dlopen_self" = xyes; then 9895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9896 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9897echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9898if test "${lt_cv_dlopen_self_static+set}" = set; then 9899 echo $ECHO_N "(cached) $ECHO_C" >&6 9900else 9901 if test "$cross_compiling" = yes; then : 9902 lt_cv_dlopen_self_static=cross 9903else 9904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9905 lt_status=$lt_dlunknown 9906 cat > conftest.$ac_ext <<EOF 9907#line 9907 "configure" 9908#include "confdefs.h" 9909 9910#if HAVE_DLFCN_H 9911#include <dlfcn.h> 9912#endif 9913 9914#include <stdio.h> 9915 9916#ifdef RTLD_GLOBAL 9917# define LT_DLGLOBAL RTLD_GLOBAL 9918#else 9919# ifdef DL_GLOBAL 9920# define LT_DLGLOBAL DL_GLOBAL 9921# else 9922# define LT_DLGLOBAL 0 9923# endif 9924#endif 9925 9926/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9927 find out it does not work in some platform. */ 9928#ifndef LT_DLLAZY_OR_NOW 9929# ifdef RTLD_LAZY 9930# define LT_DLLAZY_OR_NOW RTLD_LAZY 9931# else 9932# ifdef DL_LAZY 9933# define LT_DLLAZY_OR_NOW DL_LAZY 9934# else 9935# ifdef RTLD_NOW 9936# define LT_DLLAZY_OR_NOW RTLD_NOW 9937# else 9938# ifdef DL_NOW 9939# define LT_DLLAZY_OR_NOW DL_NOW 9940# else 9941# define LT_DLLAZY_OR_NOW 0 9942# endif 9943# endif 9944# endif 9945# endif 9946#endif 9947 9948#ifdef __cplusplus 9949extern "C" void exit (int); 9950#endif 9951 9952void fnord() { int i=42;} 9953int main () 9954{ 9955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9956 int status = $lt_dlunknown; 9957 9958 if (self) 9959 { 9960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9962 /* dlclose (self); */ 9963 } 9964 else 9965 puts (dlerror ()); 9966 9967 exit (status); 9968} 9969EOF 9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9971 (eval $ac_link) 2>&5 9972 ac_status=$? 9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9974 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9975 (./conftest; exit; ) >&5 2>/dev/null 9976 lt_status=$? 9977 case x$lt_status in 9978 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9979 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9980 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9981 esac 9982 else : 9983 # compilation failed 9984 lt_cv_dlopen_self_static=no 9985 fi 9986fi 9987rm -fr conftest* 9988 9989 9990fi 9991echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9992echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9993 fi 9994 9995 CPPFLAGS="$save_CPPFLAGS" 9996 LDFLAGS="$save_LDFLAGS" 9997 LIBS="$save_LIBS" 9998 ;; 9999 esac 10000 10001 case $lt_cv_dlopen_self in 10002 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10003 *) enable_dlopen_self=unknown ;; 10004 esac 10005 10006 case $lt_cv_dlopen_self_static in 10007 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10008 *) enable_dlopen_self_static=unknown ;; 10009 esac 10010fi 10011 10012 10013# Report which library types will actually be built 10014echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10015echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10016echo "$as_me:$LINENO: result: $can_build_shared" >&5 10017echo "${ECHO_T}$can_build_shared" >&6 10018 10019echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10020echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10021test "$can_build_shared" = "no" && enable_shared=no 10022 10023# On AIX, shared libraries and static libraries use the same namespace, and 10024# are all built from PIC. 10025case $host_os in 10026aix3*) 10027 test "$enable_shared" = yes && enable_static=no 10028 if test -n "$RANLIB"; then 10029 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10030 postinstall_cmds='$RANLIB $lib' 10031 fi 10032 ;; 10033 10034aix4* | aix5*) 10035 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10036 test "$enable_shared" = yes && enable_static=no 10037 fi 10038 ;; 10039esac 10040echo "$as_me:$LINENO: result: $enable_shared" >&5 10041echo "${ECHO_T}$enable_shared" >&6 10042 10043echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10044echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10045# Make sure either enable_shared or enable_static is yes. 10046test "$enable_shared" = yes || enable_static=yes 10047echo "$as_me:$LINENO: result: $enable_static" >&5 10048echo "${ECHO_T}$enable_static" >&6 10049 10050# The else clause should only fire when bootstrapping the 10051# libtool distribution, otherwise you forgot to ship ltmain.sh 10052# with your package, and you will get complaints that there are 10053# no rules to generate ltmain.sh. 10054if test -f "$ltmain"; then 10055 # See if we are running on zsh, and set the options which allow our commands through 10056 # without removal of \ escapes. 10057 if test -n "${ZSH_VERSION+set}" ; then 10058 setopt NO_GLOB_SUBST 10059 fi 10060 # Now quote all the things that may contain metacharacters while being 10061 # careful not to overquote the AC_SUBSTed values. We take copies of the 10062 # variables and quote the copies for generation of the libtool script. 10063 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10064 SED SHELL STRIP \ 10065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10067 deplibs_check_method reload_flag reload_cmds need_locks \ 10068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10069 lt_cv_sys_global_symbol_to_c_name_address \ 10070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10071 old_postinstall_cmds old_postuninstall_cmds \ 10072 compiler \ 10073 CC \ 10074 LD \ 10075 lt_prog_compiler_wl \ 10076 lt_prog_compiler_pic \ 10077 lt_prog_compiler_static \ 10078 lt_prog_compiler_no_builtin_flag \ 10079 export_dynamic_flag_spec \ 10080 thread_safe_flag_spec \ 10081 whole_archive_flag_spec \ 10082 enable_shared_with_static_runtimes \ 10083 old_archive_cmds \ 10084 old_archive_from_new_cmds \ 10085 predep_objects \ 10086 postdep_objects \ 10087 predeps \ 10088 postdeps \ 10089 compiler_lib_search_path \ 10090 archive_cmds \ 10091 archive_expsym_cmds \ 10092 postinstall_cmds \ 10093 postuninstall_cmds \ 10094 old_archive_from_expsyms_cmds \ 10095 allow_undefined_flag \ 10096 no_undefined_flag \ 10097 export_symbols_cmds \ 10098 hardcode_libdir_flag_spec \ 10099 hardcode_libdir_flag_spec_ld \ 10100 hardcode_libdir_separator \ 10101 hardcode_automatic \ 10102 module_cmds \ 10103 module_expsym_cmds \ 10104 lt_cv_prog_compiler_c_o \ 10105 exclude_expsyms \ 10106 include_expsyms; do 10107 10108 case $var in 10109 old_archive_cmds | \ 10110 old_archive_from_new_cmds | \ 10111 archive_cmds | \ 10112 archive_expsym_cmds | \ 10113 module_cmds | \ 10114 module_expsym_cmds | \ 10115 old_archive_from_expsyms_cmds | \ 10116 export_symbols_cmds | \ 10117 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10118 postinstall_cmds | postuninstall_cmds | \ 10119 old_postinstall_cmds | old_postuninstall_cmds | \ 10120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10121 # Double-quote double-evaled strings. 10122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10123 ;; 10124 *) 10125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10126 ;; 10127 esac 10128 done 10129 10130 case $lt_echo in 10131 *'\$0 --fallback-echo"') 10132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10133 ;; 10134 esac 10135 10136cfgfile="${ofile}T" 10137 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10138 $rm -f "$cfgfile" 10139 { echo "$as_me:$LINENO: creating $ofile" >&5 10140echo "$as_me: creating $ofile" >&6;} 10141 10142 cat <<__EOF__ >> "$cfgfile" 10143#! $SHELL 10144 10145# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10146# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10147# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10148# 10149# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10150# Free Software Foundation, Inc. 10151# 10152# This file is part of GNU Libtool: 10153# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10154# 10155# This program is free software; you can redistribute it and/or modify 10156# it under the terms of the GNU General Public License as published by 10157# the Free Software Foundation; either version 2 of the License, or 10158# (at your option) any later version. 10159# 10160# This program is distributed in the hope that it will be useful, but 10161# WITHOUT ANY WARRANTY; without even the implied warranty of 10162# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10163# General Public License for more details. 10164# 10165# You should have received a copy of the GNU General Public License 10166# along with this program; if not, write to the Free Software 10167# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10168# 10169# As a special exception to the GNU General Public License, if you 10170# distribute this file as part of a program that contains a 10171# configuration script generated by Autoconf, you may include it under 10172# the same distribution terms that you use for the rest of that program. 10173 10174# A sed program that does not truncate output. 10175SED=$lt_SED 10176 10177# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10178Xsed="$SED -e 1s/^X//" 10179 10180# The HP-UX ksh and POSIX shell print the target directory to stdout 10181# if CDPATH is set. 10182(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10183 10184# The names of the tagged configurations supported by this script. 10185available_tags= 10186 10187# ### BEGIN LIBTOOL CONFIG 10188 10189# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10190 10191# Shell to use when invoking shell scripts. 10192SHELL=$lt_SHELL 10193 10194# Whether or not to build shared libraries. 10195build_libtool_libs=$enable_shared 10196 10197# Whether or not to build static libraries. 10198build_old_libs=$enable_static 10199 10200# Whether or not to add -lc for building shared libraries. 10201build_libtool_need_lc=$archive_cmds_need_lc 10202 10203# Whether or not to disallow shared libs when runtime libs are static 10204allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10205 10206# Whether or not to optimize for fast installation. 10207fast_install=$enable_fast_install 10208 10209# The host system. 10210host_alias=$host_alias 10211host=$host 10212host_os=$host_os 10213 10214# The build system. 10215build_alias=$build_alias 10216build=$build 10217build_os=$build_os 10218 10219# An echo program that does not interpret backslashes. 10220echo=$lt_echo 10221 10222# The archiver. 10223AR=$lt_AR 10224AR_FLAGS=$lt_AR_FLAGS 10225 10226# A C compiler. 10227LTCC=$lt_LTCC 10228 10229# LTCC compiler flags. 10230LTCFLAGS=$lt_LTCFLAGS 10231 10232# A language-specific compiler. 10233CC=$lt_compiler 10234 10235# Is the compiler the GNU C compiler? 10236with_gcc=$GCC 10237 10238# An ERE matcher. 10239EGREP=$lt_EGREP 10240 10241# The linker used to build libraries. 10242LD=$lt_LD 10243 10244# Whether we need hard or soft links. 10245LN_S=$lt_LN_S 10246 10247# A BSD-compatible nm program. 10248NM=$lt_NM 10249 10250# A symbol stripping program 10251STRIP=$lt_STRIP 10252 10253# Used to examine libraries when file_magic_cmd begins "file" 10254MAGIC_CMD=$MAGIC_CMD 10255 10256# Used on cygwin: DLL creation program. 10257DLLTOOL="$DLLTOOL" 10258 10259# Used on cygwin: object dumper. 10260OBJDUMP="$OBJDUMP" 10261 10262# Used on cygwin: assembler. 10263AS="$AS" 10264 10265# The name of the directory that contains temporary libtool files. 10266objdir=$objdir 10267 10268# How to create reloadable object files. 10269reload_flag=$lt_reload_flag 10270reload_cmds=$lt_reload_cmds 10271 10272# How to pass a linker flag through the compiler. 10273wl=$lt_lt_prog_compiler_wl 10274 10275# Object file suffix (normally "o"). 10276objext="$ac_objext" 10277 10278# Old archive suffix (normally "a"). 10279libext="$libext" 10280 10281# Shared library suffix (normally ".so"). 10282shrext_cmds='$shrext_cmds' 10283 10284# Executable file suffix (normally ""). 10285exeext="$exeext" 10286 10287# Additional compiler flags for building library objects. 10288pic_flag=$lt_lt_prog_compiler_pic 10289pic_mode=$pic_mode 10290 10291# What is the maximum length of a command? 10292max_cmd_len=$lt_cv_sys_max_cmd_len 10293 10294# Does compiler simultaneously support -c and -o options? 10295compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10296 10297# Must we lock files when doing compilation? 10298need_locks=$lt_need_locks 10299 10300# Do we need the lib prefix for modules? 10301need_lib_prefix=$need_lib_prefix 10302 10303# Do we need a version for libraries? 10304need_version=$need_version 10305 10306# Whether dlopen is supported. 10307dlopen_support=$enable_dlopen 10308 10309# Whether dlopen of programs is supported. 10310dlopen_self=$enable_dlopen_self 10311 10312# Whether dlopen of statically linked programs is supported. 10313dlopen_self_static=$enable_dlopen_self_static 10314 10315# Compiler flag to prevent dynamic linking. 10316link_static_flag=$lt_lt_prog_compiler_static 10317 10318# Compiler flag to turn off builtin functions. 10319no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10320 10321# Compiler flag to allow reflexive dlopens. 10322export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10323 10324# Compiler flag to generate shared objects directly from archives. 10325whole_archive_flag_spec=$lt_whole_archive_flag_spec 10326 10327# Compiler flag to generate thread-safe objects. 10328thread_safe_flag_spec=$lt_thread_safe_flag_spec 10329 10330# Library versioning type. 10331version_type=$version_type 10332 10333# Format of library name prefix. 10334libname_spec=$lt_libname_spec 10335 10336# List of archive names. First name is the real one, the rest are links. 10337# The last name is the one that the linker finds with -lNAME. 10338library_names_spec=$lt_library_names_spec 10339 10340# The coded name of the library, if different from the real name. 10341soname_spec=$lt_soname_spec 10342 10343# Commands used to build and install an old-style archive. 10344RANLIB=$lt_RANLIB 10345old_archive_cmds=$lt_old_archive_cmds 10346old_postinstall_cmds=$lt_old_postinstall_cmds 10347old_postuninstall_cmds=$lt_old_postuninstall_cmds 10348 10349# Create an old-style archive from a shared archive. 10350old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10351 10352# Create a temporary old-style archive to link instead of a shared archive. 10353old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10354 10355# Commands used to build and install a shared archive. 10356archive_cmds=$lt_archive_cmds 10357archive_expsym_cmds=$lt_archive_expsym_cmds 10358postinstall_cmds=$lt_postinstall_cmds 10359postuninstall_cmds=$lt_postuninstall_cmds 10360 10361# Commands used to build a loadable module (assumed same as above if empty) 10362module_cmds=$lt_module_cmds 10363module_expsym_cmds=$lt_module_expsym_cmds 10364 10365# Commands to strip libraries. 10366old_striplib=$lt_old_striplib 10367striplib=$lt_striplib 10368 10369# Dependencies to place before the objects being linked to create a 10370# shared library. 10371predep_objects=$lt_predep_objects 10372 10373# Dependencies to place after the objects being linked to create a 10374# shared library. 10375postdep_objects=$lt_postdep_objects 10376 10377# Dependencies to place before the objects being linked to create a 10378# shared library. 10379predeps=$lt_predeps 10380 10381# Dependencies to place after the objects being linked to create a 10382# shared library. 10383postdeps=$lt_postdeps 10384 10385# The library search path used internally by the compiler when linking 10386# a shared library. 10387compiler_lib_search_path=$lt_compiler_lib_search_path 10388 10389# Method to check whether dependent libraries are shared objects. 10390deplibs_check_method=$lt_deplibs_check_method 10391 10392# Command to use when deplibs_check_method == file_magic. 10393file_magic_cmd=$lt_file_magic_cmd 10394 10395# Flag that allows shared libraries with undefined symbols to be built. 10396allow_undefined_flag=$lt_allow_undefined_flag 10397 10398# Flag that forces no undefined symbols. 10399no_undefined_flag=$lt_no_undefined_flag 10400 10401# Commands used to finish a libtool library installation in a directory. 10402finish_cmds=$lt_finish_cmds 10403 10404# Same as above, but a single script fragment to be evaled but not shown. 10405finish_eval=$lt_finish_eval 10406 10407# Take the output of nm and produce a listing of raw symbols and C names. 10408global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10409 10410# Transform the output of nm in a proper C declaration 10411global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10412 10413# Transform the output of nm in a C name address pair 10414global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10415 10416# This is the shared library runtime path variable. 10417runpath_var=$runpath_var 10418 10419# This is the shared library path variable. 10420shlibpath_var=$shlibpath_var 10421 10422# Is shlibpath searched before the hard-coded library search path? 10423shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10424 10425# How to hardcode a shared library path into an executable. 10426hardcode_action=$hardcode_action 10427 10428# Whether we should hardcode library paths into libraries. 10429hardcode_into_libs=$hardcode_into_libs 10430 10431# Flag to hardcode \$libdir into a binary during linking. 10432# This must work even if \$libdir does not exist. 10433hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10434 10435# If ld is used when linking, flag to hardcode \$libdir into 10436# a binary during linking. This must work even if \$libdir does 10437# not exist. 10438hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10439 10440# Whether we need a single -rpath flag with a separated argument. 10441hardcode_libdir_separator=$lt_hardcode_libdir_separator 10442 10443# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10444# resulting binary. 10445hardcode_direct=$hardcode_direct 10446 10447# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10448# resulting binary. 10449hardcode_minus_L=$hardcode_minus_L 10450 10451# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10452# the resulting binary. 10453hardcode_shlibpath_var=$hardcode_shlibpath_var 10454 10455# Set to yes if building a shared library automatically hardcodes DIR into the library 10456# and all subsequent libraries and executables linked against it. 10457hardcode_automatic=$hardcode_automatic 10458 10459# Variables whose values should be saved in libtool wrapper scripts and 10460# restored at relink time. 10461variables_saved_for_relink="$variables_saved_for_relink" 10462 10463# Whether libtool must link a program against all its dependency libraries. 10464link_all_deplibs=$link_all_deplibs 10465 10466# Compile-time system search path for libraries 10467sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10468 10469# Run-time system search path for libraries 10470sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10471 10472# Fix the shell variable \$srcfile for the compiler. 10473fix_srcfile_path="$fix_srcfile_path" 10474 10475# Set to yes if exported symbols are required. 10476always_export_symbols=$always_export_symbols 10477 10478# The commands to list exported symbols. 10479export_symbols_cmds=$lt_export_symbols_cmds 10480 10481# The commands to extract the exported symbol list from a shared archive. 10482extract_expsyms_cmds=$lt_extract_expsyms_cmds 10483 10484# Symbols that should not be listed in the preloaded symbols. 10485exclude_expsyms=$lt_exclude_expsyms 10486 10487# Symbols that must always be exported. 10488include_expsyms=$lt_include_expsyms 10489 10490# ### END LIBTOOL CONFIG 10491 10492__EOF__ 10493 10494 10495 case $host_os in 10496 aix3*) 10497 cat <<\EOF >> "$cfgfile" 10498 10499# AIX sometimes has problems with the GCC collect2 program. For some 10500# reason, if we set the COLLECT_NAMES environment variable, the problems 10501# vanish in a puff of smoke. 10502if test "X${COLLECT_NAMES+set}" != Xset; then 10503 COLLECT_NAMES= 10504 export COLLECT_NAMES 10505fi 10506EOF 10507 ;; 10508 esac 10509 10510 # We use sed instead of cat because bash on DJGPP gets confused if 10511 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10512 # text mode, it properly converts lines to CR/LF. This bash problem 10513 # is reportedly fixed, but why not run on old versions too? 10514 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10515 10516 mv -f "$cfgfile" "$ofile" || \ 10517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10518 chmod +x "$ofile" 10519 10520else 10521 # If there is no Makefile yet, we rely on a make rule to execute 10522 # `config.status --recheck' to rerun these tests and create the 10523 # libtool script then. 10524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10525 if test -f "$ltmain_in"; then 10526 test -f Makefile && make "$ltmain" 10527 fi 10528fi 10529 10530 10531ac_ext=c 10532ac_cpp='$CPP $CPPFLAGS' 10533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10535ac_compiler_gnu=$ac_cv_c_compiler_gnu 10536 10537CC="$lt_save_CC" 10538 10539 10540# Check whether --with-tags or --without-tags was given. 10541if test "${with_tags+set}" = set; then 10542 withval="$with_tags" 10543 tagnames="$withval" 10544fi; 10545 10546if test -f "$ltmain" && test -n "$tagnames"; then 10547 if test ! -f "${ofile}"; then 10548 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10549echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10550 fi 10551 10552 if test -z "$LTCC"; then 10553 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10554 if test -z "$LTCC"; then 10555 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10556echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10557 else 10558 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10559echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10560 fi 10561 fi 10562 if test -z "$LTCFLAGS"; then 10563 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10564 fi 10565 10566 # Extract list of available tagged configurations in $ofile. 10567 # Note that this assumes the entire list is on one line. 10568 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10569 10570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10571 for tagname in $tagnames; do 10572 IFS="$lt_save_ifs" 10573 # Check whether tagname contains only valid characters 10574 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10575 "") ;; 10576 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10577echo "$as_me: error: invalid tag name: $tagname" >&2;} 10578 { (exit 1); exit 1; }; } 10579 ;; 10580 esac 10581 10582 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10583 then 10584 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10585echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10586 { (exit 1); exit 1; }; } 10587 fi 10588 10589 # Update the list of available tags. 10590 if test -n "$tagname"; then 10591 echo appending configuration tag \"$tagname\" to $ofile 10592 10593 case $tagname in 10594 CXX) 10595 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10596 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10597 (test "X$CXX" != "Xg++"))) ; then 10598 ac_ext=cc 10599ac_cpp='$CXXCPP $CPPFLAGS' 10600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10603 10604 10605 10606 10607archive_cmds_need_lc_CXX=no 10608allow_undefined_flag_CXX= 10609always_export_symbols_CXX=no 10610archive_expsym_cmds_CXX= 10611export_dynamic_flag_spec_CXX= 10612hardcode_direct_CXX=no 10613hardcode_libdir_flag_spec_CXX= 10614hardcode_libdir_flag_spec_ld_CXX= 10615hardcode_libdir_separator_CXX= 10616hardcode_minus_L_CXX=no 10617hardcode_shlibpath_var_CXX=unsupported 10618hardcode_automatic_CXX=no 10619module_cmds_CXX= 10620module_expsym_cmds_CXX= 10621link_all_deplibs_CXX=unknown 10622old_archive_cmds_CXX=$old_archive_cmds 10623no_undefined_flag_CXX= 10624whole_archive_flag_spec_CXX= 10625enable_shared_with_static_runtimes_CXX=no 10626 10627# Dependencies to place before and after the object being linked: 10628predep_objects_CXX= 10629postdep_objects_CXX= 10630predeps_CXX= 10631postdeps_CXX= 10632compiler_lib_search_path_CXX= 10633 10634# Source file extension for C++ test sources. 10635ac_ext=cpp 10636 10637# Object file extension for compiled C++ test sources. 10638objext=o 10639objext_CXX=$objext 10640 10641# Code to be used in simple compile tests 10642lt_simple_compile_test_code="int some_variable = 0;\n" 10643 10644# Code to be used in simple link tests 10645lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10646 10647# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10648 10649# If no C compiler was specified, use CC. 10650LTCC=${LTCC-"$CC"} 10651 10652# If no C compiler flags were specified, use CFLAGS. 10653LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10654 10655# Allow CC to be a program name with arguments. 10656compiler=$CC 10657 10658 10659# save warnings/boilerplate of simple test code 10660ac_outfile=conftest.$ac_objext 10661printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10662eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10663_lt_compiler_boilerplate=`cat conftest.err` 10664$rm conftest* 10665 10666ac_outfile=conftest.$ac_objext 10667printf "$lt_simple_link_test_code" >conftest.$ac_ext 10668eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10669_lt_linker_boilerplate=`cat conftest.err` 10670$rm conftest* 10671 10672 10673# Allow CC to be a program name with arguments. 10674lt_save_CC=$CC 10675lt_save_LD=$LD 10676lt_save_GCC=$GCC 10677GCC=$GXX 10678lt_save_with_gnu_ld=$with_gnu_ld 10679lt_save_path_LD=$lt_cv_path_LD 10680if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10682else 10683 $as_unset lt_cv_prog_gnu_ld 10684fi 10685if test -n "${lt_cv_path_LDCXX+set}"; then 10686 lt_cv_path_LD=$lt_cv_path_LDCXX 10687else 10688 $as_unset lt_cv_path_LD 10689fi 10690test -z "${LDCXX+set}" || LD=$LDCXX 10691CC=${CXX-"c++"} 10692compiler=$CC 10693compiler_CXX=$CC 10694for cc_temp in $compiler""; do 10695 case $cc_temp in 10696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10698 \-*) ;; 10699 *) break;; 10700 esac 10701done 10702cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10703 10704 10705# We don't want -fno-exception wen compiling C++ code, so set the 10706# no_builtin_flag separately 10707if test "$GXX" = yes; then 10708 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10709else 10710 lt_prog_compiler_no_builtin_flag_CXX= 10711fi 10712 10713if test "$GXX" = yes; then 10714 # Set up default GNU C++ configuration 10715 10716 10717# Check whether --with-gnu-ld or --without-gnu-ld was given. 10718if test "${with_gnu_ld+set}" = set; then 10719 withval="$with_gnu_ld" 10720 test "$withval" = no || with_gnu_ld=yes 10721else 10722 with_gnu_ld=no 10723fi; 10724ac_prog=ld 10725if test "$GCC" = yes; then 10726 # Check if gcc -print-prog-name=ld gives a path. 10727 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10728echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10729 case $host in 10730 *-*-mingw*) 10731 # gcc leaves a trailing carriage return which upsets mingw 10732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10733 *) 10734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10735 esac 10736 case $ac_prog in 10737 # Accept absolute paths. 10738 [\\/]* | ?:[\\/]*) 10739 re_direlt='/[^/][^/]*/\.\./' 10740 # Canonicalize the pathname of ld 10741 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10742 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10743 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10744 done 10745 test -z "$LD" && LD="$ac_prog" 10746 ;; 10747 "") 10748 # If it fails, then pretend we aren't using GCC. 10749 ac_prog=ld 10750 ;; 10751 *) 10752 # If it is relative, then search for the first ld in PATH. 10753 with_gnu_ld=unknown 10754 ;; 10755 esac 10756elif test "$with_gnu_ld" = yes; then 10757 echo "$as_me:$LINENO: checking for GNU ld" >&5 10758echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10759else 10760 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10761echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10762fi 10763if test "${lt_cv_path_LD+set}" = set; then 10764 echo $ECHO_N "(cached) $ECHO_C" >&6 10765else 10766 if test -z "$LD"; then 10767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10768 for ac_dir in $PATH; do 10769 IFS="$lt_save_ifs" 10770 test -z "$ac_dir" && ac_dir=. 10771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10772 lt_cv_path_LD="$ac_dir/$ac_prog" 10773 # Check to see if the program is GNU ld. I'd rather use --version, 10774 # but apparently some variants of GNU ld only accept -v. 10775 # Break only if it was the GNU/non-GNU ld that we prefer. 10776 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10777 *GNU* | *'with BFD'*) 10778 test "$with_gnu_ld" != no && break 10779 ;; 10780 *) 10781 test "$with_gnu_ld" != yes && break 10782 ;; 10783 esac 10784 fi 10785 done 10786 IFS="$lt_save_ifs" 10787else 10788 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10789fi 10790fi 10791 10792LD="$lt_cv_path_LD" 10793if test -n "$LD"; then 10794 echo "$as_me:$LINENO: result: $LD" >&5 10795echo "${ECHO_T}$LD" >&6 10796else 10797 echo "$as_me:$LINENO: result: no" >&5 10798echo "${ECHO_T}no" >&6 10799fi 10800test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10801echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10802 { (exit 1); exit 1; }; } 10803echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10804echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10805if test "${lt_cv_prog_gnu_ld+set}" = set; then 10806 echo $ECHO_N "(cached) $ECHO_C" >&6 10807else 10808 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10809case `$LD -v 2>&1 </dev/null` in 10810*GNU* | *'with BFD'*) 10811 lt_cv_prog_gnu_ld=yes 10812 ;; 10813*) 10814 lt_cv_prog_gnu_ld=no 10815 ;; 10816esac 10817fi 10818echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10819echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10820with_gnu_ld=$lt_cv_prog_gnu_ld 10821 10822 10823 10824 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10825 # archiving commands below assume that GNU ld is being used. 10826 if test "$with_gnu_ld" = yes; then 10827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10828 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10829 10830 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10832 10833 # If archive_cmds runs LD, not CC, wlarc should be empty 10834 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10835 # investigate it a little bit more. (MM) 10836 wlarc='${wl}' 10837 10838 # ancient GNU ld didn't support --whole-archive et. al. 10839 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10840 grep 'no-whole-archive' > /dev/null; then 10841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10842 else 10843 whole_archive_flag_spec_CXX= 10844 fi 10845 else 10846 with_gnu_ld=no 10847 wlarc= 10848 10849 # A generic and very simple default shared library creation 10850 # command for GNU C++ for the case where it uses the native 10851 # linker, instead of GNU ld. If possible, this setting should 10852 # overridden to take advantage of the native linker features on 10853 # the platform it is being used on. 10854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10855 fi 10856 10857 # Commands to make compiler produce verbose output that lists 10858 # what "hidden" libraries, object files and flags are used when 10859 # linking a shared library. 10860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10861 10862else 10863 GXX=no 10864 with_gnu_ld=no 10865 wlarc= 10866fi 10867 10868# PORTME: fill in a description of your system's C++ link characteristics 10869echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10870echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10871ld_shlibs_CXX=yes 10872case $host_os in 10873 aix3*) 10874 # FIXME: insert proper C++ library support 10875 ld_shlibs_CXX=no 10876 ;; 10877 aix4* | aix5*) 10878 if test "$host_cpu" = ia64; then 10879 # On IA64, the linker does run time linking by default, so we don't 10880 # have to do anything special. 10881 aix_use_runtimelinking=no 10882 exp_sym_flag='-Bexport' 10883 no_entry_flag="" 10884 else 10885 aix_use_runtimelinking=no 10886 10887 # Test if we are trying to use run time linking or normal 10888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10889 # need to do runtime linking. 10890 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10891 for ld_flag in $LDFLAGS; do 10892 case $ld_flag in 10893 *-brtl*) 10894 aix_use_runtimelinking=yes 10895 break 10896 ;; 10897 esac 10898 done 10899 ;; 10900 esac 10901 10902 exp_sym_flag='-bexport' 10903 no_entry_flag='-bnoentry' 10904 fi 10905 10906 # When large executables or shared objects are built, AIX ld can 10907 # have problems creating the table of contents. If linking a library 10908 # or program results in "error TOC overflow" add -mminimal-toc to 10909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10911 10912 archive_cmds_CXX='' 10913 hardcode_direct_CXX=yes 10914 hardcode_libdir_separator_CXX=':' 10915 link_all_deplibs_CXX=yes 10916 10917 if test "$GXX" = yes; then 10918 case $host_os in aix4.[012]|aix4.[012].*) 10919 # We only want to do this on AIX 4.2 and lower, the check 10920 # below for broken collect2 doesn't work under 4.3+ 10921 collect2name=`${CC} -print-prog-name=collect2` 10922 if test -f "$collect2name" && \ 10923 strings "$collect2name" | grep resolve_lib_name >/dev/null 10924 then 10925 # We have reworked collect2 10926 hardcode_direct_CXX=yes 10927 else 10928 # We have old collect2 10929 hardcode_direct_CXX=unsupported 10930 # It fails to find uninstalled libraries when the uninstalled 10931 # path is not listed in the libpath. Setting hardcode_minus_L 10932 # to unsupported forces relinking 10933 hardcode_minus_L_CXX=yes 10934 hardcode_libdir_flag_spec_CXX='-L$libdir' 10935 hardcode_libdir_separator_CXX= 10936 fi 10937 ;; 10938 esac 10939 shared_flag='-shared' 10940 if test "$aix_use_runtimelinking" = yes; then 10941 shared_flag="$shared_flag "'${wl}-G' 10942 fi 10943 else 10944 # not using gcc 10945 if test "$host_cpu" = ia64; then 10946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10947 # chokes on -Wl,-G. The following line is correct: 10948 shared_flag='-G' 10949 else 10950 if test "$aix_use_runtimelinking" = yes; then 10951 shared_flag='${wl}-G' 10952 else 10953 shared_flag='${wl}-bM:SRE' 10954 fi 10955 fi 10956 fi 10957 10958 # It seems that -bexpall does not export symbols beginning with 10959 # underscore (_), so it is better to generate a list of symbols to export. 10960 always_export_symbols_CXX=yes 10961 if test "$aix_use_runtimelinking" = yes; then 10962 # Warning - without using the other runtime loading flags (-brtl), 10963 # -berok will link without error, but may produce a broken library. 10964 allow_undefined_flag_CXX='-berok' 10965 # Determine the default libpath from the value encoded in an empty executable. 10966 cat >conftest.$ac_ext <<_ACEOF 10967/* confdefs.h. */ 10968_ACEOF 10969cat confdefs.h >>conftest.$ac_ext 10970cat >>conftest.$ac_ext <<_ACEOF 10971/* end confdefs.h. */ 10972 10973int 10974main () 10975{ 10976 10977 ; 10978 return 0; 10979} 10980_ACEOF 10981rm -f conftest.$ac_objext conftest$ac_exeext 10982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10983 (eval $ac_link) 2>conftest.er1 10984 ac_status=$? 10985 grep -v '^ *+' conftest.er1 >conftest.err 10986 rm -f conftest.er1 10987 cat conftest.err >&5 10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10989 (exit $ac_status); } && 10990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10992 (eval $ac_try) 2>&5 10993 ac_status=$? 10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10995 (exit $ac_status); }; } && 10996 { ac_try='test -s conftest$ac_exeext' 10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10998 (eval $ac_try) 2>&5 10999 ac_status=$? 11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11001 (exit $ac_status); }; }; then 11002 11003aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11004}'` 11005# Check for a 64-bit object if we didn't find anything. 11006if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11007}'`; fi 11008else 11009 echo "$as_me: failed program was:" >&5 11010sed 's/^/| /' conftest.$ac_ext >&5 11011 11012fi 11013rm -f conftest.err conftest.$ac_objext \ 11014 conftest$ac_exeext conftest.$ac_ext 11015if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11016 11017 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11018 11019 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11020 else 11021 if test "$host_cpu" = ia64; then 11022 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11023 allow_undefined_flag_CXX="-z nodefs" 11024 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 11025 else 11026 # Determine the default libpath from the value encoded in an empty executable. 11027 cat >conftest.$ac_ext <<_ACEOF 11028/* confdefs.h. */ 11029_ACEOF 11030cat confdefs.h >>conftest.$ac_ext 11031cat >>conftest.$ac_ext <<_ACEOF 11032/* end confdefs.h. */ 11033 11034int 11035main () 11036{ 11037 11038 ; 11039 return 0; 11040} 11041_ACEOF 11042rm -f conftest.$ac_objext conftest$ac_exeext 11043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11044 (eval $ac_link) 2>conftest.er1 11045 ac_status=$? 11046 grep -v '^ *+' conftest.er1 >conftest.err 11047 rm -f conftest.er1 11048 cat conftest.err >&5 11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11050 (exit $ac_status); } && 11051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11053 (eval $ac_try) 2>&5 11054 ac_status=$? 11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11056 (exit $ac_status); }; } && 11057 { ac_try='test -s conftest$ac_exeext' 11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11059 (eval $ac_try) 2>&5 11060 ac_status=$? 11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11062 (exit $ac_status); }; }; then 11063 11064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11065}'` 11066# Check for a 64-bit object if we didn't find anything. 11067if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11068}'`; fi 11069else 11070 echo "$as_me: failed program was:" >&5 11071sed 's/^/| /' conftest.$ac_ext >&5 11072 11073fi 11074rm -f conftest.err conftest.$ac_objext \ 11075 conftest$ac_exeext conftest.$ac_ext 11076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11077 11078 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11079 # Warning - without using the other run time loading flags, 11080 # -berok will link without error, but may produce a broken library. 11081 no_undefined_flag_CXX=' ${wl}-bernotok' 11082 allow_undefined_flag_CXX=' ${wl}-berok' 11083 # Exported symbols can be pulled into shared objects from archives 11084 whole_archive_flag_spec_CXX='$convenience' 11085 archive_cmds_need_lc_CXX=yes 11086 # This is similar to how AIX traditionally builds its shared libraries. 11087 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11088 fi 11089 fi 11090 ;; 11091 11092 beos*) 11093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11094 allow_undefined_flag_CXX=unsupported 11095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11096 # support --undefined. This deserves some investigation. FIXME 11097 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11098 else 11099 ld_shlibs_CXX=no 11100 fi 11101 ;; 11102 11103 chorus*) 11104 case $cc_basename in 11105 *) 11106 # FIXME: insert proper C++ library support 11107 ld_shlibs_CXX=no 11108 ;; 11109 esac 11110 ;; 11111 11112 cygwin* | mingw* | pw32*) 11113 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11114 # as there is no search path for DLLs. 11115 hardcode_libdir_flag_spec_CXX='-L$libdir' 11116 allow_undefined_flag_CXX=unsupported 11117 always_export_symbols_CXX=no 11118 enable_shared_with_static_runtimes_CXX=yes 11119 11120 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11121 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11122 # If the export-symbols file already is a .def file (1st line 11123 # is EXPORTS), use it as is; otherwise, prepend... 11124 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11125 cp $export_symbols $output_objdir/$soname.def; 11126 else 11127 echo EXPORTS > $output_objdir/$soname.def; 11128 cat $export_symbols >> $output_objdir/$soname.def; 11129 fi~ 11130 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11131 else 11132 ld_shlibs_CXX=no 11133 fi 11134 ;; 11135 darwin* | rhapsody*) 11136 case $host_os in 11137 rhapsody* | darwin1.[012]) 11138 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11139 ;; 11140 *) # Darwin 1.3 on 11141 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11142 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11143 else 11144 case ${MACOSX_DEPLOYMENT_TARGET} in 11145 10.[012]) 11146 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11147 ;; 11148 10.*) 11149 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11150 ;; 11151 esac 11152 fi 11153 ;; 11154 esac 11155 archive_cmds_need_lc_CXX=no 11156 hardcode_direct_CXX=no 11157 hardcode_automatic_CXX=yes 11158 hardcode_shlibpath_var_CXX=unsupported 11159 whole_archive_flag_spec_CXX='' 11160 link_all_deplibs_CXX=yes 11161 11162 if test "$GXX" = yes ; then 11163 lt_int_apple_cc_single_mod=no 11164 output_verbose_link_cmd='echo' 11165 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11166 lt_int_apple_cc_single_mod=yes 11167 fi 11168 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11169 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11170 else 11171 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11172 fi 11173 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11175 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11176 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11177 else 11178 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11179 fi 11180 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11181 else 11182 case $cc_basename in 11183 xlc*) 11184 output_verbose_link_cmd='echo' 11185 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11186 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11188 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11189 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11190 ;; 11191 *) 11192 ld_shlibs_CXX=no 11193 ;; 11194 esac 11195 fi 11196 ;; 11197 11198 dgux*) 11199 case $cc_basename in 11200 ec++*) 11201 # FIXME: insert proper C++ library support 11202 ld_shlibs_CXX=no 11203 ;; 11204 ghcx*) 11205 # Green Hills C++ Compiler 11206 # FIXME: insert proper C++ library support 11207 ld_shlibs_CXX=no 11208 ;; 11209 *) 11210 # FIXME: insert proper C++ library support 11211 ld_shlibs_CXX=no 11212 ;; 11213 esac 11214 ;; 11215 freebsd[12]*) 11216 # C++ shared libraries reported to be fairly broken before switch to ELF 11217 ld_shlibs_CXX=no 11218 ;; 11219 freebsd-elf*) 11220 archive_cmds_need_lc_CXX=no 11221 ;; 11222 freebsd* | kfreebsd*-gnu | dragonfly*) 11223 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11224 # conventions 11225 ld_shlibs_CXX=yes 11226 ;; 11227 gnu*) 11228 ;; 11229 hpux9*) 11230 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11231 hardcode_libdir_separator_CXX=: 11232 export_dynamic_flag_spec_CXX='${wl}-E' 11233 hardcode_direct_CXX=yes 11234 hardcode_minus_L_CXX=yes # Not in the search PATH, 11235 # but as the default 11236 # location of the library. 11237 11238 case $cc_basename in 11239 CC*) 11240 # FIXME: insert proper C++ library support 11241 ld_shlibs_CXX=no 11242 ;; 11243 aCC*) 11244 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11245 # Commands to make compiler produce verbose output that lists 11246 # what "hidden" libraries, object files and flags are used when 11247 # linking a shared library. 11248 # 11249 # There doesn't appear to be a way to prevent this compiler from 11250 # explicitly linking system object files so we need to strip them 11251 # from the output so that they don't get included in the library 11252 # dependencies. 11253 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11254 ;; 11255 *) 11256 if test "$GXX" = yes; then 11257 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11258 else 11259 # FIXME: insert proper C++ library support 11260 ld_shlibs_CXX=no 11261 fi 11262 ;; 11263 esac 11264 ;; 11265 hpux10*|hpux11*) 11266 if test $with_gnu_ld = no; then 11267 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11268 hardcode_libdir_separator_CXX=: 11269 11270 case $host_cpu in 11271 hppa*64*|ia64*) 11272 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11273 ;; 11274 *) 11275 export_dynamic_flag_spec_CXX='${wl}-E' 11276 ;; 11277 esac 11278 fi 11279 case $host_cpu in 11280 hppa*64*|ia64*) 11281 hardcode_direct_CXX=no 11282 hardcode_shlibpath_var_CXX=no 11283 ;; 11284 *) 11285 hardcode_direct_CXX=yes 11286 hardcode_minus_L_CXX=yes # Not in the search PATH, 11287 # but as the default 11288 # location of the library. 11289 ;; 11290 esac 11291 11292 case $cc_basename in 11293 CC*) 11294 # FIXME: insert proper C++ library support 11295 ld_shlibs_CXX=no 11296 ;; 11297 aCC*) 11298 case $host_cpu in 11299 hppa*64*) 11300 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11301 ;; 11302 ia64*) 11303 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11304 ;; 11305 *) 11306 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11307 ;; 11308 esac 11309 # Commands to make compiler produce verbose output that lists 11310 # what "hidden" libraries, object files and flags are used when 11311 # linking a shared library. 11312 # 11313 # There doesn't appear to be a way to prevent this compiler from 11314 # explicitly linking system object files so we need to strip them 11315 # from the output so that they don't get included in the library 11316 # dependencies. 11317 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11318 ;; 11319 *) 11320 if test "$GXX" = yes; then 11321 if test $with_gnu_ld = no; then 11322 case $host_cpu in 11323 hppa*64*) 11324 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11325 ;; 11326 ia64*) 11327 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11328 ;; 11329 *) 11330 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11331 ;; 11332 esac 11333 fi 11334 else 11335 # FIXME: insert proper C++ library support 11336 ld_shlibs_CXX=no 11337 fi 11338 ;; 11339 esac 11340 ;; 11341 interix3*) 11342 hardcode_direct_CXX=no 11343 hardcode_shlibpath_var_CXX=no 11344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11345 export_dynamic_flag_spec_CXX='${wl}-E' 11346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11347 # Instead, shared libraries are loaded at an image base (0x10000000 by 11348 # default) and relocated if they conflict, which is a slow very memory 11349 # consuming and fragmenting process. To avoid this, we pick a random, 11350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11351 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11352 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11353 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11354 ;; 11355 irix5* | irix6*) 11356 case $cc_basename in 11357 CC*) 11358 # SGI C++ 11359 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11360 11361 # Archives containing C++ object files must be created using 11362 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11363 # necessary to make sure instantiated templates are included 11364 # in the archive. 11365 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11366 ;; 11367 *) 11368 if test "$GXX" = yes; then 11369 if test "$with_gnu_ld" = no; then 11370 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 11371 else 11372 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11373 fi 11374 fi 11375 link_all_deplibs_CXX=yes 11376 ;; 11377 esac 11378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11379 hardcode_libdir_separator_CXX=: 11380 ;; 11381 linux*) 11382 case $cc_basename in 11383 KCC*) 11384 # Kuck and Associates, Inc. (KAI) C++ Compiler 11385 11386 # KCC will only create a shared library if the output file 11387 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11388 # to its proper name (with version) after linking. 11389 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11390 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 11391 # Commands to make compiler produce verbose output that lists 11392 # what "hidden" libraries, object files and flags are used when 11393 # linking a shared library. 11394 # 11395 # There doesn't appear to be a way to prevent this compiler from 11396 # explicitly linking system object files so we need to strip them 11397 # from the output so that they don't get included in the library 11398 # dependencies. 11399 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11400 11401 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11403 11404 # Archives containing C++ object files must be created using 11405 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11406 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11407 ;; 11408 icpc*) 11409 # Intel C++ 11410 with_gnu_ld=yes 11411 # version 8.0 and above of icpc choke on multiply defined symbols 11412 # if we add $predep_objects and $postdep_objects, however 7.1 and 11413 # earlier do not add the objects themselves. 11414 case `$CC -V 2>&1` in 11415 *"Version 7."*) 11416 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11417 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11418 ;; 11419 *) # Version 8.0 or newer 11420 tmp_idyn= 11421 case $host_cpu in 11422 ia64*) tmp_idyn=' -i_dynamic';; 11423 esac 11424 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11425 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11426 ;; 11427 esac 11428 archive_cmds_need_lc_CXX=no 11429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11431 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11432 ;; 11433 pgCC*) 11434 # Portland Group C++ compiler 11435 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11436 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 11437 11438 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11440 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11441 ;; 11442 cxx*) 11443 # Compaq C++ 11444 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11445 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 11446 11447 runpath_var=LD_RUN_PATH 11448 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11449 hardcode_libdir_separator_CXX=: 11450 11451 # Commands to make compiler produce verbose output that lists 11452 # what "hidden" libraries, object files and flags are used when 11453 # linking a shared library. 11454 # 11455 # There doesn't appear to be a way to prevent this compiler from 11456 # explicitly linking system object files so we need to strip them 11457 # from the output so that they don't get included in the library 11458 # dependencies. 11459 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11460 ;; 11461 esac 11462 ;; 11463 lynxos*) 11464 # FIXME: insert proper C++ library support 11465 ld_shlibs_CXX=no 11466 ;; 11467 m88k*) 11468 # FIXME: insert proper C++ library support 11469 ld_shlibs_CXX=no 11470 ;; 11471 mvs*) 11472 case $cc_basename in 11473 cxx*) 11474 # FIXME: insert proper C++ library support 11475 ld_shlibs_CXX=no 11476 ;; 11477 *) 11478 # FIXME: insert proper C++ library support 11479 ld_shlibs_CXX=no 11480 ;; 11481 esac 11482 ;; 11483 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 11484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11485 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11486 wlarc= 11487 hardcode_libdir_flag_spec_CXX='-R$libdir' 11488 hardcode_direct_CXX=yes 11489 hardcode_shlibpath_var_CXX=no 11490 fi 11491 # Workaround some broken pre-1.5 toolchains 11492 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11493 ;; 11494 openbsd2*) 11495 # C++ shared libraries are fairly broken 11496 ld_shlibs_CXX=no 11497 ;; 11498 openbsd*) 11499 hardcode_direct_CXX=yes 11500 hardcode_shlibpath_var_CXX=no 11501 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11502 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11503 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11504 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11505 export_dynamic_flag_spec_CXX='${wl}-E' 11506 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11507 fi 11508 output_verbose_link_cmd='echo' 11509 ;; 11510 osf3*) 11511 case $cc_basename in 11512 KCC*) 11513 # Kuck and Associates, Inc. (KAI) C++ Compiler 11514 11515 # KCC will only create a shared library if the output file 11516 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11517 # to its proper name (with version) after linking. 11518 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11519 11520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11521 hardcode_libdir_separator_CXX=: 11522 11523 # Archives containing C++ object files must be created using 11524 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11525 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11526 11527 ;; 11528 RCC*) 11529 # Rational C++ 2.4.1 11530 # FIXME: insert proper C++ library support 11531 ld_shlibs_CXX=no 11532 ;; 11533 cxx*) 11534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11535 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11536 11537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11538 hardcode_libdir_separator_CXX=: 11539 11540 # Commands to make compiler produce verbose output that lists 11541 # what "hidden" libraries, object files and flags are used when 11542 # linking a shared library. 11543 # 11544 # There doesn't appear to be a way to prevent this compiler from 11545 # explicitly linking system object files so we need to strip them 11546 # from the output so that they don't get included in the library 11547 # dependencies. 11548 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11549 ;; 11550 *) 11551 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11552 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11553 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 11554 11555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11556 hardcode_libdir_separator_CXX=: 11557 11558 # Commands to make compiler produce verbose output that lists 11559 # what "hidden" libraries, object files and flags are used when 11560 # linking a shared library. 11561 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11562 11563 else 11564 # FIXME: insert proper C++ library support 11565 ld_shlibs_CXX=no 11566 fi 11567 ;; 11568 esac 11569 ;; 11570 osf4* | osf5*) 11571 case $cc_basename in 11572 KCC*) 11573 # Kuck and Associates, Inc. (KAI) C++ Compiler 11574 11575 # KCC will only create a shared library if the output file 11576 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11577 # to its proper name (with version) after linking. 11578 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11579 11580 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11581 hardcode_libdir_separator_CXX=: 11582 11583 # Archives containing C++ object files must be created using 11584 # the KAI C++ compiler. 11585 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11586 ;; 11587 RCC*) 11588 # Rational C++ 2.4.1 11589 # FIXME: insert proper C++ library support 11590 ld_shlibs_CXX=no 11591 ;; 11592 cxx*) 11593 allow_undefined_flag_CXX=' -expect_unresolved \*' 11594 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11595 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11596 echo "-hidden">> $lib.exp~ 11597 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 11598 $rm $lib.exp' 11599 11600 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11601 hardcode_libdir_separator_CXX=: 11602 11603 # Commands to make compiler produce verbose output that lists 11604 # what "hidden" libraries, object files and flags are used when 11605 # linking a shared library. 11606 # 11607 # There doesn't appear to be a way to prevent this compiler from 11608 # explicitly linking system object files so we need to strip them 11609 # from the output so that they don't get included in the library 11610 # dependencies. 11611 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11612 ;; 11613 *) 11614 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11615 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11616 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 11617 11618 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11619 hardcode_libdir_separator_CXX=: 11620 11621 # Commands to make compiler produce verbose output that lists 11622 # what "hidden" libraries, object files and flags are used when 11623 # linking a shared library. 11624 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11625 11626 else 11627 # FIXME: insert proper C++ library support 11628 ld_shlibs_CXX=no 11629 fi 11630 ;; 11631 esac 11632 ;; 11633 psos*) 11634 # FIXME: insert proper C++ library support 11635 ld_shlibs_CXX=no 11636 ;; 11637 sunos4*) 11638 case $cc_basename in 11639 CC*) 11640 # Sun C++ 4.x 11641 # FIXME: insert proper C++ library support 11642 ld_shlibs_CXX=no 11643 ;; 11644 lcc*) 11645 # Lucid 11646 # FIXME: insert proper C++ library support 11647 ld_shlibs_CXX=no 11648 ;; 11649 *) 11650 # FIXME: insert proper C++ library support 11651 ld_shlibs_CXX=no 11652 ;; 11653 esac 11654 ;; 11655 solaris*) 11656 case $cc_basename in 11657 CC*) 11658 # Sun C++ 4.2, 5.x and Centerline C++ 11659 archive_cmds_need_lc_CXX=yes 11660 no_undefined_flag_CXX=' -zdefs' 11661 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11662 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11663 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11664 11665 hardcode_libdir_flag_spec_CXX='-R$libdir' 11666 hardcode_shlibpath_var_CXX=no 11667 case $host_os in 11668 solaris2.[0-5] | solaris2.[0-5].*) ;; 11669 *) 11670 # The C++ compiler is used as linker so we must use $wl 11671 # flag to pass the commands to the underlying system 11672 # linker. We must also pass each convience library through 11673 # to the system linker between allextract/defaultextract. 11674 # The C++ compiler will combine linker options so we 11675 # cannot just pass the convience library names through 11676 # without $wl. 11677 # Supported since Solaris 2.6 (maybe 2.5.1?) 11678 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11679 ;; 11680 esac 11681 link_all_deplibs_CXX=yes 11682 11683 output_verbose_link_cmd='echo' 11684 11685 # Archives containing C++ object files must be created using 11686 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11687 # necessary to make sure instantiated templates are included 11688 # in the archive. 11689 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11690 ;; 11691 gcx*) 11692 # Green Hills C++ Compiler 11693 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11694 11695 # The C++ compiler must be used to create the archive. 11696 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11697 ;; 11698 *) 11699 # GNU C++ compiler with Solaris linker 11700 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11701 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11702 if $CC --version | grep -v '^2\.7' > /dev/null; then 11703 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11704 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11705 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11706 11707 # Commands to make compiler produce verbose output that lists 11708 # what "hidden" libraries, object files and flags are used when 11709 # linking a shared library. 11710 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11711 else 11712 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11713 # platform. 11714 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11715 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11716 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11717 11718 # Commands to make compiler produce verbose output that lists 11719 # what "hidden" libraries, object files and flags are used when 11720 # linking a shared library. 11721 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11722 fi 11723 11724 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11725 fi 11726 ;; 11727 esac 11728 ;; 11729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11730 no_undefined_flag_CXX='${wl}-z,text' 11731 archive_cmds_need_lc_CXX=no 11732 hardcode_shlibpath_var_CXX=no 11733 runpath_var='LD_RUN_PATH' 11734 11735 case $cc_basename in 11736 CC*) 11737 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11738 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11739 ;; 11740 *) 11741 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11742 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11743 ;; 11744 esac 11745 ;; 11746 sysv5* | sco3.2v5* | sco5v6*) 11747 # Note: We can NOT use -z defs as we might desire, because we do not 11748 # link with -lc, and that would cause any symbols used from libc to 11749 # always be unresolved, which means just about no library would 11750 # ever link correctly. If we're not using GNU ld we use -z text 11751 # though, which does catch some bad symbols but isn't as heavy-handed 11752 # as -z defs. 11753 # For security reasons, it is highly recommended that you always 11754 # use absolute paths for naming shared libraries, and exclude the 11755 # DT_RUNPATH tag from executables and libraries. But doing so 11756 # requires that you compile everything twice, which is a pain. 11757 # So that behaviour is only enabled if SCOABSPATH is set to a 11758 # non-empty value in the environment. Most likely only useful for 11759 # creating official distributions of packages. 11760 # This is a hack until libtool officially supports absolute path 11761 # names for shared libraries. 11762 no_undefined_flag_CXX='${wl}-z,text' 11763 allow_undefined_flag_CXX='${wl}-z,nodefs' 11764 archive_cmds_need_lc_CXX=no 11765 hardcode_shlibpath_var_CXX=no 11766 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11767 hardcode_libdir_separator_CXX=':' 11768 link_all_deplibs_CXX=yes 11769 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11770 runpath_var='LD_RUN_PATH' 11771 11772 case $cc_basename in 11773 CC*) 11774 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11775 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11776 ;; 11777 *) 11778 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11779 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11780 ;; 11781 esac 11782 ;; 11783 tandem*) 11784 case $cc_basename in 11785 NCC*) 11786 # NonStop-UX NCC 3.20 11787 # FIXME: insert proper C++ library support 11788 ld_shlibs_CXX=no 11789 ;; 11790 *) 11791 # FIXME: insert proper C++ library support 11792 ld_shlibs_CXX=no 11793 ;; 11794 esac 11795 ;; 11796 vxworks*) 11797 # FIXME: insert proper C++ library support 11798 ld_shlibs_CXX=no 11799 ;; 11800 *) 11801 # FIXME: insert proper C++ library support 11802 ld_shlibs_CXX=no 11803 ;; 11804esac 11805echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11806echo "${ECHO_T}$ld_shlibs_CXX" >&6 11807test "$ld_shlibs_CXX" = no && can_build_shared=no 11808 11809GCC_CXX="$GXX" 11810LD_CXX="$LD" 11811 11812 11813cat > conftest.$ac_ext <<EOF 11814class Foo 11815{ 11816public: 11817 Foo (void) { a = 0; } 11818private: 11819 int a; 11820}; 11821EOF 11822 11823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11824 (eval $ac_compile) 2>&5 11825 ac_status=$? 11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11827 (exit $ac_status); }; then 11828 # Parse the compiler output and extract the necessary 11829 # objects, libraries and library flags. 11830 11831 # Sentinel used to keep track of whether or not we are before 11832 # the conftest object file. 11833 pre_test_object_deps_done=no 11834 11835 # The `*' in the case matches for architectures that use `case' in 11836 # $output_verbose_cmd can trigger glob expansion during the loop 11837 # eval without this substitution. 11838 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11839 11840 for p in `eval $output_verbose_link_cmd`; do 11841 case $p in 11842 11843 -L* | -R* | -l*) 11844 # Some compilers place space between "-{L,R}" and the path. 11845 # Remove the space. 11846 if test $p = "-L" \ 11847 || test $p = "-R"; then 11848 prev=$p 11849 continue 11850 else 11851 prev= 11852 fi 11853 11854 if test "$pre_test_object_deps_done" = no; then 11855 case $p in 11856 -L* | -R*) 11857 # Internal compiler library paths should come after those 11858 # provided the user. The postdeps already come after the 11859 # user supplied libs so there is no need to process them. 11860 if test -z "$compiler_lib_search_path_CXX"; then 11861 compiler_lib_search_path_CXX="${prev}${p}" 11862 else 11863 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11864 fi 11865 ;; 11866 # The "-l" case would never come before the object being 11867 # linked, so don't bother handling this case. 11868 esac 11869 else 11870 if test -z "$postdeps_CXX"; then 11871 postdeps_CXX="${prev}${p}" 11872 else 11873 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11874 fi 11875 fi 11876 ;; 11877 11878 *.$objext) 11879 # This assumes that the test object file only shows up 11880 # once in the compiler output. 11881 if test "$p" = "conftest.$objext"; then 11882 pre_test_object_deps_done=yes 11883 continue 11884 fi 11885 11886 if test "$pre_test_object_deps_done" = no; then 11887 if test -z "$predep_objects_CXX"; then 11888 predep_objects_CXX="$p" 11889 else 11890 predep_objects_CXX="$predep_objects_CXX $p" 11891 fi 11892 else 11893 if test -z "$postdep_objects_CXX"; then 11894 postdep_objects_CXX="$p" 11895 else 11896 postdep_objects_CXX="$postdep_objects_CXX $p" 11897 fi 11898 fi 11899 ;; 11900 11901 *) ;; # Ignore the rest. 11902 11903 esac 11904 done 11905 11906 # Clean up. 11907 rm -f a.out a.exe 11908else 11909 echo "libtool.m4: error: problem compiling CXX test program" 11910fi 11911 11912$rm -f confest.$objext 11913 11914# PORTME: override above test on systems where it is broken 11915case $host_os in 11916interix3*) 11917 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11918 # hack all around it, let's just trust "g++" to DTRT. 11919 predep_objects_CXX= 11920 postdep_objects_CXX= 11921 postdeps_CXX= 11922 ;; 11923 11924solaris*) 11925 case $cc_basename in 11926 CC*) 11927 # Adding this requires a known-good setup of shared libraries for 11928 # Sun compiler versions before 5.6, else PIC objects from an old 11929 # archive will be linked into the output, leading to subtle bugs. 11930 postdeps_CXX='-lCstd -lCrun' 11931 ;; 11932 esac 11933 ;; 11934esac 11935 11936 11937case " $postdeps_CXX " in 11938*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11939esac 11940 11941lt_prog_compiler_wl_CXX= 11942lt_prog_compiler_pic_CXX= 11943lt_prog_compiler_static_CXX= 11944 11945echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11946echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11947 11948 # C++ specific cases for pic, static, wl, etc. 11949 if test "$GXX" = yes; then 11950 lt_prog_compiler_wl_CXX='-Wl,' 11951 lt_prog_compiler_static_CXX='-static' 11952 11953 case $host_os in 11954 aix*) 11955 # All AIX code is PIC. 11956 if test "$host_cpu" = ia64; then 11957 # AIX 5 now supports IA64 processor 11958 lt_prog_compiler_static_CXX='-Bstatic' 11959 fi 11960 ;; 11961 amigaos*) 11962 # FIXME: we need at least 68020 code to build shared libraries, but 11963 # adding the `-m68020' flag to GCC prevents building anything better, 11964 # like `-m68040'. 11965 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11966 ;; 11967 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11968 # PIC is the default for these OSes. 11969 ;; 11970 mingw* | os2* | pw32*) 11971 # This hack is so that the source file can tell whether it is being 11972 # built for inclusion in a dll (and should export symbols for example). 11973 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11974 ;; 11975 darwin* | rhapsody*) 11976 # PIC is the default on this platform 11977 # Common symbols not allowed in MH_DYLIB files 11978 lt_prog_compiler_pic_CXX='-fno-common' 11979 ;; 11980 *djgpp*) 11981 # DJGPP does not support shared libraries at all 11982 lt_prog_compiler_pic_CXX= 11983 ;; 11984 interix3*) 11985 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11986 # Instead, we relocate shared libraries at runtime. 11987 ;; 11988 sysv4*MP*) 11989 if test -d /usr/nec; then 11990 lt_prog_compiler_pic_CXX=-Kconform_pic 11991 fi 11992 ;; 11993 hpux*) 11994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11995 # not for PA HP-UX. 11996 case $host_cpu in 11997 hppa*64*|ia64*) 11998 ;; 11999 *) 12000 lt_prog_compiler_pic_CXX='-fPIC' 12001 ;; 12002 esac 12003 ;; 12004 *) 12005 lt_prog_compiler_pic_CXX='-fPIC' 12006 ;; 12007 esac 12008 else 12009 case $host_os in 12010 aix4* | aix5*) 12011 # All AIX code is PIC. 12012 if test "$host_cpu" = ia64; then 12013 # AIX 5 now supports IA64 processor 12014 lt_prog_compiler_static_CXX='-Bstatic' 12015 else 12016 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12017 fi 12018 ;; 12019 chorus*) 12020 case $cc_basename in 12021 cxch68*) 12022 # Green Hills C++ Compiler 12023 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 12024 ;; 12025 esac 12026 ;; 12027 darwin*) 12028 # PIC is the default on this platform 12029 # Common symbols not allowed in MH_DYLIB files 12030 case $cc_basename in 12031 xlc*) 12032 lt_prog_compiler_pic_CXX='-qnocommon' 12033 lt_prog_compiler_wl_CXX='-Wl,' 12034 ;; 12035 esac 12036 ;; 12037 dgux*) 12038 case $cc_basename in 12039 ec++*) 12040 lt_prog_compiler_pic_CXX='-KPIC' 12041 ;; 12042 ghcx*) 12043 # Green Hills C++ Compiler 12044 lt_prog_compiler_pic_CXX='-pic' 12045 ;; 12046 *) 12047 ;; 12048 esac 12049 ;; 12050 freebsd* | kfreebsd*-gnu | dragonfly*) 12051 # FreeBSD uses GNU C++ 12052 ;; 12053 hpux9* | hpux10* | hpux11*) 12054 case $cc_basename in 12055 CC*) 12056 lt_prog_compiler_wl_CXX='-Wl,' 12057 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12058 if test "$host_cpu" != ia64; then 12059 lt_prog_compiler_pic_CXX='+Z' 12060 fi 12061 ;; 12062 aCC*) 12063 lt_prog_compiler_wl_CXX='-Wl,' 12064 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12065 case $host_cpu in 12066 hppa*64*|ia64*) 12067 # +Z the default 12068 ;; 12069 *) 12070 lt_prog_compiler_pic_CXX='+Z' 12071 ;; 12072 esac 12073 ;; 12074 *) 12075 ;; 12076 esac 12077 ;; 12078 interix*) 12079 # This is c89, which is MS Visual C++ (no shared libs) 12080 # Anyone wants to do a port? 12081 ;; 12082 irix5* | irix6* | nonstopux*) 12083 case $cc_basename in 12084 CC*) 12085 lt_prog_compiler_wl_CXX='-Wl,' 12086 lt_prog_compiler_static_CXX='-non_shared' 12087 # CC pic flag -KPIC is the default. 12088 ;; 12089 *) 12090 ;; 12091 esac 12092 ;; 12093 linux*) 12094 case $cc_basename in 12095 KCC*) 12096 # KAI C++ Compiler 12097 lt_prog_compiler_wl_CXX='--backend -Wl,' 12098 lt_prog_compiler_pic_CXX='-fPIC' 12099 ;; 12100 icpc* | ecpc*) 12101 # Intel C++ 12102 lt_prog_compiler_wl_CXX='-Wl,' 12103 lt_prog_compiler_pic_CXX='-KPIC' 12104 lt_prog_compiler_static_CXX='-static' 12105 ;; 12106 pgCC*) 12107 # Portland Group C++ compiler. 12108 lt_prog_compiler_wl_CXX='-Wl,' 12109 lt_prog_compiler_pic_CXX='-fpic' 12110 lt_prog_compiler_static_CXX='-Bstatic' 12111 ;; 12112 cxx*) 12113 # Compaq C++ 12114 # Make sure the PIC flag is empty. It appears that all Alpha 12115 # Linux and Compaq Tru64 Unix objects are PIC. 12116 lt_prog_compiler_pic_CXX= 12117 lt_prog_compiler_static_CXX='-non_shared' 12118 ;; 12119 *) 12120 ;; 12121 esac 12122 ;; 12123 lynxos*) 12124 ;; 12125 m88k*) 12126 ;; 12127 mvs*) 12128 case $cc_basename in 12129 cxx*) 12130 lt_prog_compiler_pic_CXX='-W c,exportall' 12131 ;; 12132 *) 12133 ;; 12134 esac 12135 ;; 12136 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 12137 ;; 12138 osf3* | osf4* | osf5*) 12139 case $cc_basename in 12140 KCC*) 12141 lt_prog_compiler_wl_CXX='--backend -Wl,' 12142 ;; 12143 RCC*) 12144 # Rational C++ 2.4.1 12145 lt_prog_compiler_pic_CXX='-pic' 12146 ;; 12147 cxx*) 12148 # Digital/Compaq C++ 12149 lt_prog_compiler_wl_CXX='-Wl,' 12150 # Make sure the PIC flag is empty. It appears that all Alpha 12151 # Linux and Compaq Tru64 Unix objects are PIC. 12152 lt_prog_compiler_pic_CXX= 12153 lt_prog_compiler_static_CXX='-non_shared' 12154 ;; 12155 *) 12156 ;; 12157 esac 12158 ;; 12159 psos*) 12160 ;; 12161 solaris*) 12162 case $cc_basename in 12163 CC*) 12164 # Sun C++ 4.2, 5.x and Centerline C++ 12165 lt_prog_compiler_pic_CXX='-KPIC' 12166 lt_prog_compiler_static_CXX='-Bstatic' 12167 lt_prog_compiler_wl_CXX='-Qoption ld ' 12168 ;; 12169 gcx*) 12170 # Green Hills C++ Compiler 12171 lt_prog_compiler_pic_CXX='-PIC' 12172 ;; 12173 *) 12174 ;; 12175 esac 12176 ;; 12177 sunos4*) 12178 case $cc_basename in 12179 CC*) 12180 # Sun C++ 4.x 12181 lt_prog_compiler_pic_CXX='-pic' 12182 lt_prog_compiler_static_CXX='-Bstatic' 12183 ;; 12184 lcc*) 12185 # Lucid 12186 lt_prog_compiler_pic_CXX='-pic' 12187 ;; 12188 *) 12189 ;; 12190 esac 12191 ;; 12192 tandem*) 12193 case $cc_basename in 12194 NCC*) 12195 # NonStop-UX NCC 3.20 12196 lt_prog_compiler_pic_CXX='-KPIC' 12197 ;; 12198 *) 12199 ;; 12200 esac 12201 ;; 12202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12203 case $cc_basename in 12204 CC*) 12205 lt_prog_compiler_wl_CXX='-Wl,' 12206 lt_prog_compiler_pic_CXX='-KPIC' 12207 lt_prog_compiler_static_CXX='-Bstatic' 12208 ;; 12209 esac 12210 ;; 12211 vxworks*) 12212 ;; 12213 *) 12214 lt_prog_compiler_can_build_shared_CXX=no 12215 ;; 12216 esac 12217 fi 12218 12219echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12220echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 12221 12222# 12223# Check to make sure the PIC flag actually works. 12224# 12225if test -n "$lt_prog_compiler_pic_CXX"; then 12226 12227echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12228echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 12229if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12230 echo $ECHO_N "(cached) $ECHO_C" >&6 12231else 12232 lt_prog_compiler_pic_works_CXX=no 12233 ac_outfile=conftest.$ac_objext 12234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12235 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12236 # Insert the option either (1) after the last *FLAGS variable, or 12237 # (2) before a word containing "conftest.", or (3) at the end. 12238 # Note that $ac_compile itself does not contain backslashes and begins 12239 # with a dollar sign (not a hyphen), so the echo should work correctly. 12240 # The option is referenced via a variable to avoid confusing sed. 12241 lt_compile=`echo "$ac_compile" | $SED \ 12242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12244 -e 's:$: $lt_compiler_flag:'` 12245 (eval echo "\"\$as_me:12245: $lt_compile\"" >&5) 12246 (eval "$lt_compile" 2>conftest.err) 12247 ac_status=$? 12248 cat conftest.err >&5 12249 echo "$as_me:12249: \$? = $ac_status" >&5 12250 if (exit $ac_status) && test -s "$ac_outfile"; then 12251 # The compiler can only warn and ignore the option if not recognized 12252 # So say no if there are warnings other than the usual output. 12253 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12256 lt_prog_compiler_pic_works_CXX=yes 12257 fi 12258 fi 12259 $rm conftest* 12260 12261fi 12262echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12263echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 12264 12265if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12266 case $lt_prog_compiler_pic_CXX in 12267 "" | " "*) ;; 12268 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12269 esac 12270else 12271 lt_prog_compiler_pic_CXX= 12272 lt_prog_compiler_can_build_shared_CXX=no 12273fi 12274 12275fi 12276case $host_os in 12277 # For platforms which do not support PIC, -DPIC is meaningless: 12278 *djgpp*) 12279 lt_prog_compiler_pic_CXX= 12280 ;; 12281 *) 12282 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12283 ;; 12284esac 12285 12286# 12287# Check to make sure the static flag actually works. 12288# 12289wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12290echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12291echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 12292if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12293 echo $ECHO_N "(cached) $ECHO_C" >&6 12294else 12295 lt_prog_compiler_static_works_CXX=no 12296 save_LDFLAGS="$LDFLAGS" 12297 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12298 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12299 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12300 # The linker can only warn and ignore the option if not recognized 12301 # So say no if there are warnings 12302 if test -s conftest.err; then 12303 # Append any errors to the config.log. 12304 cat conftest.err 1>&5 12305 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12307 if diff conftest.exp conftest.er2 >/dev/null; then 12308 lt_prog_compiler_static_works_CXX=yes 12309 fi 12310 else 12311 lt_prog_compiler_static_works_CXX=yes 12312 fi 12313 fi 12314 $rm conftest* 12315 LDFLAGS="$save_LDFLAGS" 12316 12317fi 12318echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12319echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 12320 12321if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12322 : 12323else 12324 lt_prog_compiler_static_CXX= 12325fi 12326 12327 12328echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12329echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12330if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12331 echo $ECHO_N "(cached) $ECHO_C" >&6 12332else 12333 lt_cv_prog_compiler_c_o_CXX=no 12334 $rm -r conftest 2>/dev/null 12335 mkdir conftest 12336 cd conftest 12337 mkdir out 12338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12339 12340 lt_compiler_flag="-o out/conftest2.$ac_objext" 12341 # Insert the option either (1) after the last *FLAGS variable, or 12342 # (2) before a word containing "conftest.", or (3) at the end. 12343 # Note that $ac_compile itself does not contain backslashes and begins 12344 # with a dollar sign (not a hyphen), so the echo should work correctly. 12345 lt_compile=`echo "$ac_compile" | $SED \ 12346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12348 -e 's:$: $lt_compiler_flag:'` 12349 (eval echo "\"\$as_me:12349: $lt_compile\"" >&5) 12350 (eval "$lt_compile" 2>out/conftest.err) 12351 ac_status=$? 12352 cat out/conftest.err >&5 12353 echo "$as_me:12353: \$? = $ac_status" >&5 12354 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12355 then 12356 # The compiler can only warn and ignore the option if not recognized 12357 # So say no if there are warnings 12358 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12361 lt_cv_prog_compiler_c_o_CXX=yes 12362 fi 12363 fi 12364 chmod u+w . 2>&5 12365 $rm conftest* 12366 # SGI C++ compiler will create directory out/ii_files/ for 12367 # template instantiation 12368 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12369 $rm out/* && rmdir out 12370 cd .. 12371 rmdir conftest 12372 $rm conftest* 12373 12374fi 12375echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12376echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 12377 12378 12379hard_links="nottested" 12380if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12381 # do not overwrite the value of need_locks provided by the user 12382 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12383echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12384 hard_links=yes 12385 $rm conftest* 12386 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12387 touch conftest.a 12388 ln conftest.a conftest.b 2>&5 || hard_links=no 12389 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12390 echo "$as_me:$LINENO: result: $hard_links" >&5 12391echo "${ECHO_T}$hard_links" >&6 12392 if test "$hard_links" = no; then 12393 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12394echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12395 need_locks=warn 12396 fi 12397else 12398 need_locks=no 12399fi 12400 12401echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12402echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12403 12404 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12405 case $host_os in 12406 aix4* | aix5*) 12407 # If we're using GNU nm, then we don't want the "-C" option. 12408 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12410 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12411 else 12412 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12413 fi 12414 ;; 12415 pw32*) 12416 export_symbols_cmds_CXX="$ltdll_cmds" 12417 ;; 12418 cygwin* | mingw*) 12419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12420 ;; 12421 kfreebsd*-gnu) 12422 link_all_deplibs_CXX=no 12423 ;; 12424 linux*) 12425 link_all_deplibs_CXX=no 12426 ;; 12427 *) 12428 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12429 ;; 12430 esac 12431 12432echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12433echo "${ECHO_T}$ld_shlibs_CXX" >&6 12434test "$ld_shlibs_CXX" = no && can_build_shared=no 12435 12436# 12437# Do we need to explicitly link libc? 12438# 12439case "x$archive_cmds_need_lc_CXX" in 12440x|xyes) 12441 # Assume -lc should be added 12442 archive_cmds_need_lc_CXX=yes 12443 12444 if test "$enable_shared" = yes && test "$GCC" = yes; then 12445 case $archive_cmds_CXX in 12446 *'~'*) 12447 # FIXME: we may have to deal with multi-command sequences. 12448 ;; 12449 '$CC '*) 12450 # Test whether the compiler implicitly links with -lc since on some 12451 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12452 # to ld, don't add -lc before -lgcc. 12453 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12454echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12455 $rm conftest* 12456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12457 12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12459 (eval $ac_compile) 2>&5 12460 ac_status=$? 12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12462 (exit $ac_status); } 2>conftest.err; then 12463 soname=conftest 12464 lib=conftest 12465 libobjs=conftest.$ac_objext 12466 deplibs= 12467 wl=$lt_prog_compiler_wl_CXX 12468 pic_flag=$lt_prog_compiler_pic_CXX 12469 compiler_flags=-v 12470 linker_flags=-v 12471 verstring= 12472 output_objdir=. 12473 libname=conftest 12474 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12475 allow_undefined_flag_CXX= 12476 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12477 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12478 ac_status=$? 12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12480 (exit $ac_status); } 12481 then 12482 archive_cmds_need_lc_CXX=no 12483 else 12484 archive_cmds_need_lc_CXX=yes 12485 fi 12486 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12487 else 12488 cat conftest.err 1>&5 12489 fi 12490 $rm conftest* 12491 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12492echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12493 ;; 12494 esac 12495 fi 12496 ;; 12497esac 12498 12499echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12500echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12501library_names_spec= 12502libname_spec='lib$name' 12503soname_spec= 12504shrext_cmds=".so" 12505postinstall_cmds= 12506postuninstall_cmds= 12507finish_cmds= 12508finish_eval= 12509shlibpath_var= 12510shlibpath_overrides_runpath=unknown 12511version_type=none 12512dynamic_linker="$host_os ld.so" 12513sys_lib_dlsearch_path_spec="/lib /usr/lib" 12514if test "$GCC" = yes; then 12515 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12516 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12517 # if the path contains ";" then we assume it to be the separator 12518 # otherwise default to the standard path separator (i.e. ":") - it is 12519 # assumed that no part of a normal pathname contains ";" but that should 12520 # okay in the real world where ";" in dirpaths is itself problematic. 12521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12522 else 12523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12524 fi 12525else 12526 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12527fi 12528need_lib_prefix=unknown 12529hardcode_into_libs=no 12530 12531# when you set need_version to no, make sure it does not cause -set_version 12532# flags to be left without arguments 12533need_version=unknown 12534 12535case $host_os in 12536aix3*) 12537 version_type=linux 12538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12539 shlibpath_var=LIBPATH 12540 12541 # AIX 3 has no versioning support, so we append a major version to the name. 12542 soname_spec='${libname}${release}${shared_ext}$major' 12543 ;; 12544 12545aix4* | aix5*) 12546 version_type=linux 12547 need_lib_prefix=no 12548 need_version=no 12549 hardcode_into_libs=yes 12550 if test "$host_cpu" = ia64; then 12551 # AIX 5 supports IA64 12552 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12553 shlibpath_var=LD_LIBRARY_PATH 12554 else 12555 # With GCC up to 2.95.x, collect2 would create an import file 12556 # for dependence libraries. The import file would start with 12557 # the line `#! .'. This would cause the generated library to 12558 # depend on `.', always an invalid library. This was fixed in 12559 # development snapshots of GCC prior to 3.0. 12560 case $host_os in 12561 aix4 | aix4.[01] | aix4.[01].*) 12562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12563 echo ' yes ' 12564 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12565 : 12566 else 12567 can_build_shared=no 12568 fi 12569 ;; 12570 esac 12571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12572 # soname into executable. Probably we can add versioning support to 12573 # collect2, so additional links can be useful in future. 12574 if test "$aix_use_runtimelinking" = yes; then 12575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12576 # instead of lib<name>.a to let people know that these are not 12577 # typical AIX shared libraries. 12578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12579 else 12580 # We preserve .a as extension for shared libraries through AIX4.2 12581 # and later when we are not doing run time linking. 12582 library_names_spec='${libname}${release}.a $libname.a' 12583 soname_spec='${libname}${release}${shared_ext}$major' 12584 fi 12585 shlibpath_var=LIBPATH 12586 fi 12587 ;; 12588 12589amigaos*) 12590 library_names_spec='$libname.ixlibrary $libname.a' 12591 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12592 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' 12593 ;; 12594 12595beos*) 12596 library_names_spec='${libname}${shared_ext}' 12597 dynamic_linker="$host_os ld.so" 12598 shlibpath_var=LIBRARY_PATH 12599 ;; 12600 12601bsdi[45]*) 12602 version_type=linux 12603 need_version=no 12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12605 soname_spec='${libname}${release}${shared_ext}$major' 12606 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12607 shlibpath_var=LD_LIBRARY_PATH 12608 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12609 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12610 # the default ld.so.conf also contains /usr/contrib/lib and 12611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12612 # libtool to hard-code these into programs 12613 ;; 12614 12615cygwin* | mingw* | pw32*) 12616 version_type=windows 12617 shrext_cmds=".dll" 12618 need_version=no 12619 need_lib_prefix=no 12620 12621 case $GCC,$host_os in 12622 yes,cygwin* | yes,mingw* | yes,pw32*) 12623 library_names_spec='$libname.dll.a' 12624 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12625 postinstall_cmds='base_file=`basename \${file}`~ 12626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12627 dldir=$destdir/`dirname \$dlpath`~ 12628 test -d \$dldir || mkdir -p \$dldir~ 12629 $install_prog $dir/$dlname \$dldir/$dlname~ 12630 chmod a+x \$dldir/$dlname' 12631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12632 dlpath=$dir/\$dldll~ 12633 $rm \$dlpath' 12634 shlibpath_overrides_runpath=yes 12635 12636 case $host_os in 12637 cygwin*) 12638 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12639 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12640 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12641 ;; 12642 mingw*) 12643 # MinGW DLLs use traditional 'lib' prefix 12644 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12646 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12647 # It is most probably a Windows format PATH printed by 12648 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12649 # path with ; separators, and with drive letters. We can handle the 12650 # drive letters (cygwin fileutils understands them), so leave them, 12651 # especially as we might pass files found there to a mingw objdump, 12652 # which wouldn't understand a cygwinified path. Ahh. 12653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12654 else 12655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12656 fi 12657 ;; 12658 pw32*) 12659 # pw32 DLLs use 'pw' prefix rather than 'lib' 12660 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12661 ;; 12662 esac 12663 ;; 12664 12665 *) 12666 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12667 ;; 12668 esac 12669 dynamic_linker='Win32 ld.exe' 12670 # FIXME: first we should search . and the directory the executable is in 12671 shlibpath_var=PATH 12672 ;; 12673 12674darwin* | rhapsody*) 12675 dynamic_linker="$host_os dyld" 12676 version_type=darwin 12677 need_lib_prefix=no 12678 need_version=no 12679 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12680 soname_spec='${libname}${release}${major}$shared_ext' 12681 shlibpath_overrides_runpath=yes 12682 shlibpath_var=DYLD_LIBRARY_PATH 12683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12684 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12685 if test "$GCC" = yes; then 12686 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12687 else 12688 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12689 fi 12690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12691 ;; 12692 12693dgux*) 12694 version_type=linux 12695 need_lib_prefix=no 12696 need_version=no 12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12698 soname_spec='${libname}${release}${shared_ext}$major' 12699 shlibpath_var=LD_LIBRARY_PATH 12700 ;; 12701 12702freebsd1*) 12703 dynamic_linker=no 12704 ;; 12705 12706kfreebsd*-gnu) 12707 version_type=linux 12708 need_lib_prefix=no 12709 need_version=no 12710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12711 soname_spec='${libname}${release}${shared_ext}$major' 12712 shlibpath_var=LD_LIBRARY_PATH 12713 shlibpath_overrides_runpath=no 12714 hardcode_into_libs=yes 12715 dynamic_linker='GNU ld.so' 12716 ;; 12717 12718freebsd* | dragonfly*) 12719 # DragonFly does not have aout. When/if they implement a new 12720 # versioning mechanism, adjust this. 12721 if test -x /usr/bin/objformat; then 12722 objformat=`/usr/bin/objformat` 12723 else 12724 case $host_os in 12725 freebsd[123]*) objformat=aout ;; 12726 *) objformat=elf ;; 12727 esac 12728 fi 12729 version_type=freebsd-$objformat 12730 case $version_type in 12731 freebsd-elf*) 12732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12733 need_version=no 12734 need_lib_prefix=no 12735 ;; 12736 freebsd-*) 12737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12738 need_version=yes 12739 ;; 12740 esac 12741 shlibpath_var=LD_LIBRARY_PATH 12742 case $host_os in 12743 freebsd2*) 12744 shlibpath_overrides_runpath=yes 12745 ;; 12746 freebsd3.[01]* | freebsdelf3.[01]*) 12747 shlibpath_overrides_runpath=yes 12748 hardcode_into_libs=yes 12749 ;; 12750 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12751 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12752 shlibpath_overrides_runpath=no 12753 hardcode_into_libs=yes 12754 ;; 12755 freebsd*) # from 4.6 on 12756 shlibpath_overrides_runpath=yes 12757 hardcode_into_libs=yes 12758 ;; 12759 esac 12760 ;; 12761 12762gnu*) 12763 version_type=linux 12764 need_lib_prefix=no 12765 need_version=no 12766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12767 soname_spec='${libname}${release}${shared_ext}$major' 12768 shlibpath_var=LD_LIBRARY_PATH 12769 hardcode_into_libs=yes 12770 ;; 12771 12772hpux9* | hpux10* | hpux11*) 12773 # Give a soname corresponding to the major version so that dld.sl refuses to 12774 # link against other versions. 12775 version_type=sunos 12776 need_lib_prefix=no 12777 need_version=no 12778 case $host_cpu in 12779 ia64*) 12780 shrext_cmds='.so' 12781 hardcode_into_libs=yes 12782 dynamic_linker="$host_os dld.so" 12783 shlibpath_var=LD_LIBRARY_PATH 12784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12786 soname_spec='${libname}${release}${shared_ext}$major' 12787 if test "X$HPUX_IA64_MODE" = X32; then 12788 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12789 else 12790 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12791 fi 12792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12793 ;; 12794 hppa*64*) 12795 shrext_cmds='.sl' 12796 hardcode_into_libs=yes 12797 dynamic_linker="$host_os dld.sl" 12798 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12801 soname_spec='${libname}${release}${shared_ext}$major' 12802 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12804 ;; 12805 *) 12806 shrext_cmds='.sl' 12807 dynamic_linker="$host_os dld.sl" 12808 shlibpath_var=SHLIB_PATH 12809 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12811 soname_spec='${libname}${release}${shared_ext}$major' 12812 ;; 12813 esac 12814 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12815 postinstall_cmds='chmod 555 $lib' 12816 ;; 12817 12818interix3*) 12819 version_type=linux 12820 need_lib_prefix=no 12821 need_version=no 12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12823 soname_spec='${libname}${release}${shared_ext}$major' 12824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12825 shlibpath_var=LD_LIBRARY_PATH 12826 shlibpath_overrides_runpath=no 12827 hardcode_into_libs=yes 12828 ;; 12829 12830irix5* | irix6* | nonstopux*) 12831 case $host_os in 12832 nonstopux*) version_type=nonstopux ;; 12833 *) 12834 if test "$lt_cv_prog_gnu_ld" = yes; then 12835 version_type=linux 12836 else 12837 version_type=irix 12838 fi ;; 12839 esac 12840 need_lib_prefix=no 12841 need_version=no 12842 soname_spec='${libname}${release}${shared_ext}$major' 12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12844 case $host_os in 12845 irix5* | nonstopux*) 12846 libsuff= shlibsuff= 12847 ;; 12848 *) 12849 case $LD in # libtool.m4 will add one of these switches to LD 12850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12851 libsuff= shlibsuff= libmagic=32-bit;; 12852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12853 libsuff=32 shlibsuff=N32 libmagic=N32;; 12854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12855 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12856 *) libsuff= shlibsuff= libmagic=never-match;; 12857 esac 12858 ;; 12859 esac 12860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12861 shlibpath_overrides_runpath=no 12862 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12863 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12864 hardcode_into_libs=yes 12865 ;; 12866 12867# No shared lib support for Linux oldld, aout, or coff. 12868linux*oldld* | linux*aout* | linux*coff*) 12869 dynamic_linker=no 12870 ;; 12871 12872# This must be Linux ELF. 12873linux*) 12874 version_type=linux 12875 need_lib_prefix=no 12876 need_version=no 12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12878 soname_spec='${libname}${release}${shared_ext}$major' 12879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12880 shlibpath_var=LD_LIBRARY_PATH 12881 shlibpath_overrides_runpath=no 12882 # This implies no fast_install, which is unacceptable. 12883 # Some rework will be needed to allow for fast_install 12884 # before this can be enabled. 12885 hardcode_into_libs=yes 12886 12887 # Append ld.so.conf contents to the search path 12888 if test -f /etc/ld.so.conf; then 12889 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12891 fi 12892 12893 # We used to test for /lib/ld.so.1 and disable shared libraries on 12894 # powerpc, because MkLinux only supported shared libraries with the 12895 # GNU dynamic linker. Since this was broken with cross compilers, 12896 # most powerpc-linux boxes support dynamic linking these days and 12897 # people can always --disable-shared, the test was removed, and we 12898 # assume the GNU/Linux dynamic linker is in use. 12899 dynamic_linker='GNU/Linux ld.so' 12900 ;; 12901 12902netbsdelf*-gnu) 12903 version_type=linux 12904 need_lib_prefix=no 12905 need_version=no 12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12907 soname_spec='${libname}${release}${shared_ext}$major' 12908 shlibpath_var=LD_LIBRARY_PATH 12909 shlibpath_overrides_runpath=no 12910 hardcode_into_libs=yes 12911 dynamic_linker='NetBSD ld.elf_so' 12912 ;; 12913 12914knetbsd*-gnu) 12915 version_type=linux 12916 need_lib_prefix=no 12917 need_version=no 12918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12919 soname_spec='${libname}${release}${shared_ext}$major' 12920 shlibpath_var=LD_LIBRARY_PATH 12921 shlibpath_overrides_runpath=no 12922 hardcode_into_libs=yes 12923 dynamic_linker='GNU ld.so' 12924 ;; 12925 12926netbsd*) 12927 version_type=sunos 12928 need_lib_prefix=no 12929 need_version=no 12930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12933 dynamic_linker='NetBSD (a.out) ld.so' 12934 else 12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12936 soname_spec='${libname}${release}${shared_ext}$major' 12937 dynamic_linker='NetBSD ld.elf_so' 12938 fi 12939 shlibpath_var=LD_LIBRARY_PATH 12940 shlibpath_overrides_runpath=yes 12941 hardcode_into_libs=yes 12942 ;; 12943 12944newsos6) 12945 version_type=linux 12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12947 shlibpath_var=LD_LIBRARY_PATH 12948 shlibpath_overrides_runpath=yes 12949 ;; 12950 12951nto-qnx*) 12952 version_type=linux 12953 need_lib_prefix=no 12954 need_version=no 12955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12956 soname_spec='${libname}${release}${shared_ext}$major' 12957 shlibpath_var=LD_LIBRARY_PATH 12958 shlibpath_overrides_runpath=yes 12959 ;; 12960 12961openbsd*) 12962 version_type=sunos 12963 sys_lib_dlsearch_path_spec="/usr/lib" 12964 need_lib_prefix=no 12965 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12966 case $host_os in 12967 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12968 *) need_version=no ;; 12969 esac 12970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12972 shlibpath_var=LD_LIBRARY_PATH 12973 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12974 case $host_os in 12975 openbsd2.[89] | openbsd2.[89].*) 12976 shlibpath_overrides_runpath=no 12977 ;; 12978 *) 12979 shlibpath_overrides_runpath=yes 12980 ;; 12981 esac 12982 else 12983 shlibpath_overrides_runpath=yes 12984 fi 12985 ;; 12986 12987os2*) 12988 libname_spec='$name' 12989 shrext_cmds=".dll" 12990 need_lib_prefix=no 12991 library_names_spec='$libname${shared_ext} $libname.a' 12992 dynamic_linker='OS/2 ld.exe' 12993 shlibpath_var=LIBPATH 12994 ;; 12995 12996osf3* | osf4* | osf5*) 12997 version_type=osf 12998 need_lib_prefix=no 12999 need_version=no 13000 soname_spec='${libname}${release}${shared_ext}$major' 13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13002 shlibpath_var=LD_LIBRARY_PATH 13003 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13004 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13005 ;; 13006 13007solaris*) 13008 version_type=linux 13009 need_lib_prefix=no 13010 need_version=no 13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13012 soname_spec='${libname}${release}${shared_ext}$major' 13013 shlibpath_var=LD_LIBRARY_PATH 13014 shlibpath_overrides_runpath=yes 13015 hardcode_into_libs=yes 13016 # ldd complains unless libraries are executable 13017 postinstall_cmds='chmod +x $lib' 13018 ;; 13019 13020sunos4*) 13021 version_type=sunos 13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13024 shlibpath_var=LD_LIBRARY_PATH 13025 shlibpath_overrides_runpath=yes 13026 if test "$with_gnu_ld" = yes; then 13027 need_lib_prefix=no 13028 fi 13029 need_version=yes 13030 ;; 13031 13032sysv4 | sysv4.3*) 13033 version_type=linux 13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13035 soname_spec='${libname}${release}${shared_ext}$major' 13036 shlibpath_var=LD_LIBRARY_PATH 13037 case $host_vendor in 13038 sni) 13039 shlibpath_overrides_runpath=no 13040 need_lib_prefix=no 13041 export_dynamic_flag_spec='${wl}-Blargedynsym' 13042 runpath_var=LD_RUN_PATH 13043 ;; 13044 siemens) 13045 need_lib_prefix=no 13046 ;; 13047 motorola) 13048 need_lib_prefix=no 13049 need_version=no 13050 shlibpath_overrides_runpath=no 13051 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13052 ;; 13053 esac 13054 ;; 13055 13056sysv4*MP*) 13057 if test -d /usr/nec ;then 13058 version_type=linux 13059 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13060 soname_spec='$libname${shared_ext}.$major' 13061 shlibpath_var=LD_LIBRARY_PATH 13062 fi 13063 ;; 13064 13065sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13066 version_type=freebsd-elf 13067 need_lib_prefix=no 13068 need_version=no 13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13070 soname_spec='${libname}${release}${shared_ext}$major' 13071 shlibpath_var=LD_LIBRARY_PATH 13072 hardcode_into_libs=yes 13073 if test "$with_gnu_ld" = yes; then 13074 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13075 shlibpath_overrides_runpath=no 13076 else 13077 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13078 shlibpath_overrides_runpath=yes 13079 case $host_os in 13080 sco3.2v5*) 13081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13082 ;; 13083 esac 13084 fi 13085 sys_lib_dlsearch_path_spec='/usr/lib' 13086 ;; 13087 13088uts4*) 13089 version_type=linux 13090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13091 soname_spec='${libname}${release}${shared_ext}$major' 13092 shlibpath_var=LD_LIBRARY_PATH 13093 ;; 13094 13095*) 13096 dynamic_linker=no 13097 ;; 13098esac 13099echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13100echo "${ECHO_T}$dynamic_linker" >&6 13101test "$dynamic_linker" = no && can_build_shared=no 13102 13103variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13104if test "$GCC" = yes; then 13105 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13106fi 13107 13108echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13109echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13110hardcode_action_CXX= 13111if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13112 test -n "$runpath_var_CXX" || \ 13113 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13114 13115 # We can hardcode non-existant directories. 13116 if test "$hardcode_direct_CXX" != no && 13117 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13118 # have to relink, otherwise we might link with an installed library 13119 # when we should be linking with a yet-to-be-installed one 13120 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13121 test "$hardcode_minus_L_CXX" != no; then 13122 # Linking always hardcodes the temporary library directory. 13123 hardcode_action_CXX=relink 13124 else 13125 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13126 hardcode_action_CXX=immediate 13127 fi 13128else 13129 # We cannot hardcode anything, or else we can only hardcode existing 13130 # directories. 13131 hardcode_action_CXX=unsupported 13132fi 13133echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13134echo "${ECHO_T}$hardcode_action_CXX" >&6 13135 13136if test "$hardcode_action_CXX" = relink; then 13137 # Fast installation is not supported 13138 enable_fast_install=no 13139elif test "$shlibpath_overrides_runpath" = yes || 13140 test "$enable_shared" = no; then 13141 # Fast installation is not necessary 13142 enable_fast_install=needless 13143fi 13144 13145 13146# The else clause should only fire when bootstrapping the 13147# libtool distribution, otherwise you forgot to ship ltmain.sh 13148# with your package, and you will get complaints that there are 13149# no rules to generate ltmain.sh. 13150if test -f "$ltmain"; then 13151 # See if we are running on zsh, and set the options which allow our commands through 13152 # without removal of \ escapes. 13153 if test -n "${ZSH_VERSION+set}" ; then 13154 setopt NO_GLOB_SUBST 13155 fi 13156 # Now quote all the things that may contain metacharacters while being 13157 # careful not to overquote the AC_SUBSTed values. We take copies of the 13158 # variables and quote the copies for generation of the libtool script. 13159 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13160 SED SHELL STRIP \ 13161 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13162 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13163 deplibs_check_method reload_flag reload_cmds need_locks \ 13164 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13165 lt_cv_sys_global_symbol_to_c_name_address \ 13166 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13167 old_postinstall_cmds old_postuninstall_cmds \ 13168 compiler_CXX \ 13169 CC_CXX \ 13170 LD_CXX \ 13171 lt_prog_compiler_wl_CXX \ 13172 lt_prog_compiler_pic_CXX \ 13173 lt_prog_compiler_static_CXX \ 13174 lt_prog_compiler_no_builtin_flag_CXX \ 13175 export_dynamic_flag_spec_CXX \ 13176 thread_safe_flag_spec_CXX \ 13177 whole_archive_flag_spec_CXX \ 13178 enable_shared_with_static_runtimes_CXX \ 13179 old_archive_cmds_CXX \ 13180 old_archive_from_new_cmds_CXX \ 13181 predep_objects_CXX \ 13182 postdep_objects_CXX \ 13183 predeps_CXX \ 13184 postdeps_CXX \ 13185 compiler_lib_search_path_CXX \ 13186 archive_cmds_CXX \ 13187 archive_expsym_cmds_CXX \ 13188 postinstall_cmds_CXX \ 13189 postuninstall_cmds_CXX \ 13190 old_archive_from_expsyms_cmds_CXX \ 13191 allow_undefined_flag_CXX \ 13192 no_undefined_flag_CXX \ 13193 export_symbols_cmds_CXX \ 13194 hardcode_libdir_flag_spec_CXX \ 13195 hardcode_libdir_flag_spec_ld_CXX \ 13196 hardcode_libdir_separator_CXX \ 13197 hardcode_automatic_CXX \ 13198 module_cmds_CXX \ 13199 module_expsym_cmds_CXX \ 13200 lt_cv_prog_compiler_c_o_CXX \ 13201 exclude_expsyms_CXX \ 13202 include_expsyms_CXX; do 13203 13204 case $var in 13205 old_archive_cmds_CXX | \ 13206 old_archive_from_new_cmds_CXX | \ 13207 archive_cmds_CXX | \ 13208 archive_expsym_cmds_CXX | \ 13209 module_cmds_CXX | \ 13210 module_expsym_cmds_CXX | \ 13211 old_archive_from_expsyms_cmds_CXX | \ 13212 export_symbols_cmds_CXX | \ 13213 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13214 postinstall_cmds | postuninstall_cmds | \ 13215 old_postinstall_cmds | old_postuninstall_cmds | \ 13216 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13217 # Double-quote double-evaled strings. 13218 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13219 ;; 13220 *) 13221 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13222 ;; 13223 esac 13224 done 13225 13226 case $lt_echo in 13227 *'\$0 --fallback-echo"') 13228 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13229 ;; 13230 esac 13231 13232cfgfile="$ofile" 13233 13234 cat <<__EOF__ >> "$cfgfile" 13235# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13236 13237# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13238 13239# Shell to use when invoking shell scripts. 13240SHELL=$lt_SHELL 13241 13242# Whether or not to build shared libraries. 13243build_libtool_libs=$enable_shared 13244 13245# Whether or not to build static libraries. 13246build_old_libs=$enable_static 13247 13248# Whether or not to add -lc for building shared libraries. 13249build_libtool_need_lc=$archive_cmds_need_lc_CXX 13250 13251# Whether or not to disallow shared libs when runtime libs are static 13252allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13253 13254# Whether or not to optimize for fast installation. 13255fast_install=$enable_fast_install 13256 13257# The host system. 13258host_alias=$host_alias 13259host=$host 13260host_os=$host_os 13261 13262# The build system. 13263build_alias=$build_alias 13264build=$build 13265build_os=$build_os 13266 13267# An echo program that does not interpret backslashes. 13268echo=$lt_echo 13269 13270# The archiver. 13271AR=$lt_AR 13272AR_FLAGS=$lt_AR_FLAGS 13273 13274# A C compiler. 13275LTCC=$lt_LTCC 13276 13277# LTCC compiler flags. 13278LTCFLAGS=$lt_LTCFLAGS 13279 13280# A language-specific compiler. 13281CC=$lt_compiler_CXX 13282 13283# Is the compiler the GNU C compiler? 13284with_gcc=$GCC_CXX 13285 13286# An ERE matcher. 13287EGREP=$lt_EGREP 13288 13289# The linker used to build libraries. 13290LD=$lt_LD_CXX 13291 13292# Whether we need hard or soft links. 13293LN_S=$lt_LN_S 13294 13295# A BSD-compatible nm program. 13296NM=$lt_NM 13297 13298# A symbol stripping program 13299STRIP=$lt_STRIP 13300 13301# Used to examine libraries when file_magic_cmd begins "file" 13302MAGIC_CMD=$MAGIC_CMD 13303 13304# Used on cygwin: DLL creation program. 13305DLLTOOL="$DLLTOOL" 13306 13307# Used on cygwin: object dumper. 13308OBJDUMP="$OBJDUMP" 13309 13310# Used on cygwin: assembler. 13311AS="$AS" 13312 13313# The name of the directory that contains temporary libtool files. 13314objdir=$objdir 13315 13316# How to create reloadable object files. 13317reload_flag=$lt_reload_flag 13318reload_cmds=$lt_reload_cmds 13319 13320# How to pass a linker flag through the compiler. 13321wl=$lt_lt_prog_compiler_wl_CXX 13322 13323# Object file suffix (normally "o"). 13324objext="$ac_objext" 13325 13326# Old archive suffix (normally "a"). 13327libext="$libext" 13328 13329# Shared library suffix (normally ".so"). 13330shrext_cmds='$shrext_cmds' 13331 13332# Executable file suffix (normally ""). 13333exeext="$exeext" 13334 13335# Additional compiler flags for building library objects. 13336pic_flag=$lt_lt_prog_compiler_pic_CXX 13337pic_mode=$pic_mode 13338 13339# What is the maximum length of a command? 13340max_cmd_len=$lt_cv_sys_max_cmd_len 13341 13342# Does compiler simultaneously support -c and -o options? 13343compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13344 13345# Must we lock files when doing compilation? 13346need_locks=$lt_need_locks 13347 13348# Do we need the lib prefix for modules? 13349need_lib_prefix=$need_lib_prefix 13350 13351# Do we need a version for libraries? 13352need_version=$need_version 13353 13354# Whether dlopen is supported. 13355dlopen_support=$enable_dlopen 13356 13357# Whether dlopen of programs is supported. 13358dlopen_self=$enable_dlopen_self 13359 13360# Whether dlopen of statically linked programs is supported. 13361dlopen_self_static=$enable_dlopen_self_static 13362 13363# Compiler flag to prevent dynamic linking. 13364link_static_flag=$lt_lt_prog_compiler_static_CXX 13365 13366# Compiler flag to turn off builtin functions. 13367no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13368 13369# Compiler flag to allow reflexive dlopens. 13370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13371 13372# Compiler flag to generate shared objects directly from archives. 13373whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13374 13375# Compiler flag to generate thread-safe objects. 13376thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13377 13378# Library versioning type. 13379version_type=$version_type 13380 13381# Format of library name prefix. 13382libname_spec=$lt_libname_spec 13383 13384# List of archive names. First name is the real one, the rest are links. 13385# The last name is the one that the linker finds with -lNAME. 13386library_names_spec=$lt_library_names_spec 13387 13388# The coded name of the library, if different from the real name. 13389soname_spec=$lt_soname_spec 13390 13391# Commands used to build and install an old-style archive. 13392RANLIB=$lt_RANLIB 13393old_archive_cmds=$lt_old_archive_cmds_CXX 13394old_postinstall_cmds=$lt_old_postinstall_cmds 13395old_postuninstall_cmds=$lt_old_postuninstall_cmds 13396 13397# Create an old-style archive from a shared archive. 13398old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13399 13400# Create a temporary old-style archive to link instead of a shared archive. 13401old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13402 13403# Commands used to build and install a shared archive. 13404archive_cmds=$lt_archive_cmds_CXX 13405archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13406postinstall_cmds=$lt_postinstall_cmds 13407postuninstall_cmds=$lt_postuninstall_cmds 13408 13409# Commands used to build a loadable module (assumed same as above if empty) 13410module_cmds=$lt_module_cmds_CXX 13411module_expsym_cmds=$lt_module_expsym_cmds_CXX 13412 13413# Commands to strip libraries. 13414old_striplib=$lt_old_striplib 13415striplib=$lt_striplib 13416 13417# Dependencies to place before the objects being linked to create a 13418# shared library. 13419predep_objects=$lt_predep_objects_CXX 13420 13421# Dependencies to place after the objects being linked to create a 13422# shared library. 13423postdep_objects=$lt_postdep_objects_CXX 13424 13425# Dependencies to place before the objects being linked to create a 13426# shared library. 13427predeps=$lt_predeps_CXX 13428 13429# Dependencies to place after the objects being linked to create a 13430# shared library. 13431postdeps=$lt_postdeps_CXX 13432 13433# The library search path used internally by the compiler when linking 13434# a shared library. 13435compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13436 13437# Method to check whether dependent libraries are shared objects. 13438deplibs_check_method=$lt_deplibs_check_method 13439 13440# Command to use when deplibs_check_method == file_magic. 13441file_magic_cmd=$lt_file_magic_cmd 13442 13443# Flag that allows shared libraries with undefined symbols to be built. 13444allow_undefined_flag=$lt_allow_undefined_flag_CXX 13445 13446# Flag that forces no undefined symbols. 13447no_undefined_flag=$lt_no_undefined_flag_CXX 13448 13449# Commands used to finish a libtool library installation in a directory. 13450finish_cmds=$lt_finish_cmds 13451 13452# Same as above, but a single script fragment to be evaled but not shown. 13453finish_eval=$lt_finish_eval 13454 13455# Take the output of nm and produce a listing of raw symbols and C names. 13456global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13457 13458# Transform the output of nm in a proper C declaration 13459global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13460 13461# Transform the output of nm in a C name address pair 13462global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13463 13464# This is the shared library runtime path variable. 13465runpath_var=$runpath_var 13466 13467# This is the shared library path variable. 13468shlibpath_var=$shlibpath_var 13469 13470# Is shlibpath searched before the hard-coded library search path? 13471shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13472 13473# How to hardcode a shared library path into an executable. 13474hardcode_action=$hardcode_action_CXX 13475 13476# Whether we should hardcode library paths into libraries. 13477hardcode_into_libs=$hardcode_into_libs 13478 13479# Flag to hardcode \$libdir into a binary during linking. 13480# This must work even if \$libdir does not exist. 13481hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13482 13483# If ld is used when linking, flag to hardcode \$libdir into 13484# a binary during linking. This must work even if \$libdir does 13485# not exist. 13486hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13487 13488# Whether we need a single -rpath flag with a separated argument. 13489hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13490 13491# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13492# resulting binary. 13493hardcode_direct=$hardcode_direct_CXX 13494 13495# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13496# resulting binary. 13497hardcode_minus_L=$hardcode_minus_L_CXX 13498 13499# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13500# the resulting binary. 13501hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13502 13503# Set to yes if building a shared library automatically hardcodes DIR into the library 13504# and all subsequent libraries and executables linked against it. 13505hardcode_automatic=$hardcode_automatic_CXX 13506 13507# Variables whose values should be saved in libtool wrapper scripts and 13508# restored at relink time. 13509variables_saved_for_relink="$variables_saved_for_relink" 13510 13511# Whether libtool must link a program against all its dependency libraries. 13512link_all_deplibs=$link_all_deplibs_CXX 13513 13514# Compile-time system search path for libraries 13515sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13516 13517# Run-time system search path for libraries 13518sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13519 13520# Fix the shell variable \$srcfile for the compiler. 13521fix_srcfile_path="$fix_srcfile_path_CXX" 13522 13523# Set to yes if exported symbols are required. 13524always_export_symbols=$always_export_symbols_CXX 13525 13526# The commands to list exported symbols. 13527export_symbols_cmds=$lt_export_symbols_cmds_CXX 13528 13529# The commands to extract the exported symbol list from a shared archive. 13530extract_expsyms_cmds=$lt_extract_expsyms_cmds 13531 13532# Symbols that should not be listed in the preloaded symbols. 13533exclude_expsyms=$lt_exclude_expsyms_CXX 13534 13535# Symbols that must always be exported. 13536include_expsyms=$lt_include_expsyms_CXX 13537 13538# ### END LIBTOOL TAG CONFIG: $tagname 13539 13540__EOF__ 13541 13542 13543else 13544 # If there is no Makefile yet, we rely on a make rule to execute 13545 # `config.status --recheck' to rerun these tests and create the 13546 # libtool script then. 13547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13548 if test -f "$ltmain_in"; then 13549 test -f Makefile && make "$ltmain" 13550 fi 13551fi 13552 13553 13554ac_ext=c 13555ac_cpp='$CPP $CPPFLAGS' 13556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13558ac_compiler_gnu=$ac_cv_c_compiler_gnu 13559 13560CC=$lt_save_CC 13561LDCXX=$LD 13562LD=$lt_save_LD 13563GCC=$lt_save_GCC 13564with_gnu_ldcxx=$with_gnu_ld 13565with_gnu_ld=$lt_save_with_gnu_ld 13566lt_cv_path_LDCXX=$lt_cv_path_LD 13567lt_cv_path_LD=$lt_save_path_LD 13568lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13569lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13570 13571 else 13572 tagname="" 13573 fi 13574 ;; 13575 13576 F77) 13577 if test -n "$F77" && test "X$F77" != "Xno"; then 13578 13579ac_ext=f 13580ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13581ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13582ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13583 13584 13585archive_cmds_need_lc_F77=no 13586allow_undefined_flag_F77= 13587always_export_symbols_F77=no 13588archive_expsym_cmds_F77= 13589export_dynamic_flag_spec_F77= 13590hardcode_direct_F77=no 13591hardcode_libdir_flag_spec_F77= 13592hardcode_libdir_flag_spec_ld_F77= 13593hardcode_libdir_separator_F77= 13594hardcode_minus_L_F77=no 13595hardcode_automatic_F77=no 13596module_cmds_F77= 13597module_expsym_cmds_F77= 13598link_all_deplibs_F77=unknown 13599old_archive_cmds_F77=$old_archive_cmds 13600no_undefined_flag_F77= 13601whole_archive_flag_spec_F77= 13602enable_shared_with_static_runtimes_F77=no 13603 13604# Source file extension for f77 test sources. 13605ac_ext=f 13606 13607# Object file extension for compiled f77 test sources. 13608objext=o 13609objext_F77=$objext 13610 13611# Code to be used in simple compile tests 13612lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13613 13614# Code to be used in simple link tests 13615lt_simple_link_test_code=" program t\n end\n" 13616 13617# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13618 13619# If no C compiler was specified, use CC. 13620LTCC=${LTCC-"$CC"} 13621 13622# If no C compiler flags were specified, use CFLAGS. 13623LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13624 13625# Allow CC to be a program name with arguments. 13626compiler=$CC 13627 13628 13629# save warnings/boilerplate of simple test code 13630ac_outfile=conftest.$ac_objext 13631printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13632eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13633_lt_compiler_boilerplate=`cat conftest.err` 13634$rm conftest* 13635 13636ac_outfile=conftest.$ac_objext 13637printf "$lt_simple_link_test_code" >conftest.$ac_ext 13638eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13639_lt_linker_boilerplate=`cat conftest.err` 13640$rm conftest* 13641 13642 13643# Allow CC to be a program name with arguments. 13644lt_save_CC="$CC" 13645CC=${F77-"f77"} 13646compiler=$CC 13647compiler_F77=$CC 13648for cc_temp in $compiler""; do 13649 case $cc_temp in 13650 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13651 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13652 \-*) ;; 13653 *) break;; 13654 esac 13655done 13656cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13657 13658 13659echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13660echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13661echo "$as_me:$LINENO: result: $can_build_shared" >&5 13662echo "${ECHO_T}$can_build_shared" >&6 13663 13664echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13665echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13666test "$can_build_shared" = "no" && enable_shared=no 13667 13668# On AIX, shared libraries and static libraries use the same namespace, and 13669# are all built from PIC. 13670case $host_os in 13671aix3*) 13672 test "$enable_shared" = yes && enable_static=no 13673 if test -n "$RANLIB"; then 13674 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13675 postinstall_cmds='$RANLIB $lib' 13676 fi 13677 ;; 13678aix4* | aix5*) 13679 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13680 test "$enable_shared" = yes && enable_static=no 13681 fi 13682 ;; 13683esac 13684echo "$as_me:$LINENO: result: $enable_shared" >&5 13685echo "${ECHO_T}$enable_shared" >&6 13686 13687echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13688echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13689# Make sure either enable_shared or enable_static is yes. 13690test "$enable_shared" = yes || enable_static=yes 13691echo "$as_me:$LINENO: result: $enable_static" >&5 13692echo "${ECHO_T}$enable_static" >&6 13693 13694GCC_F77="$G77" 13695LD_F77="$LD" 13696 13697lt_prog_compiler_wl_F77= 13698lt_prog_compiler_pic_F77= 13699lt_prog_compiler_static_F77= 13700 13701echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13702echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13703 13704 if test "$GCC" = yes; then 13705 lt_prog_compiler_wl_F77='-Wl,' 13706 lt_prog_compiler_static_F77='-static' 13707 13708 case $host_os in 13709 aix*) 13710 # All AIX code is PIC. 13711 if test "$host_cpu" = ia64; then 13712 # AIX 5 now supports IA64 processor 13713 lt_prog_compiler_static_F77='-Bstatic' 13714 fi 13715 ;; 13716 13717 amigaos*) 13718 # FIXME: we need at least 68020 code to build shared libraries, but 13719 # adding the `-m68020' flag to GCC prevents building anything better, 13720 # like `-m68040'. 13721 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13722 ;; 13723 13724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13725 # PIC is the default for these OSes. 13726 ;; 13727 13728 mingw* | pw32* | os2*) 13729 # This hack is so that the source file can tell whether it is being 13730 # built for inclusion in a dll (and should export symbols for example). 13731 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13732 ;; 13733 13734 darwin* | rhapsody*) 13735 # PIC is the default on this platform 13736 # Common symbols not allowed in MH_DYLIB files 13737 lt_prog_compiler_pic_F77='-fno-common' 13738 ;; 13739 13740 interix3*) 13741 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13742 # Instead, we relocate shared libraries at runtime. 13743 ;; 13744 13745 msdosdjgpp*) 13746 # Just because we use GCC doesn't mean we suddenly get shared libraries 13747 # on systems that don't support them. 13748 lt_prog_compiler_can_build_shared_F77=no 13749 enable_shared=no 13750 ;; 13751 13752 sysv4*MP*) 13753 if test -d /usr/nec; then 13754 lt_prog_compiler_pic_F77=-Kconform_pic 13755 fi 13756 ;; 13757 13758 hpux*) 13759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13760 # not for PA HP-UX. 13761 case $host_cpu in 13762 hppa*64*|ia64*) 13763 # +Z the default 13764 ;; 13765 *) 13766 lt_prog_compiler_pic_F77='-fPIC' 13767 ;; 13768 esac 13769 ;; 13770 13771 *) 13772 lt_prog_compiler_pic_F77='-fPIC' 13773 ;; 13774 esac 13775 else 13776 # PORTME Check for flag to pass linker flags through the system compiler. 13777 case $host_os in 13778 aix*) 13779 lt_prog_compiler_wl_F77='-Wl,' 13780 if test "$host_cpu" = ia64; then 13781 # AIX 5 now supports IA64 processor 13782 lt_prog_compiler_static_F77='-Bstatic' 13783 else 13784 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13785 fi 13786 ;; 13787 darwin*) 13788 # PIC is the default on this platform 13789 # Common symbols not allowed in MH_DYLIB files 13790 case $cc_basename in 13791 xlc*) 13792 lt_prog_compiler_pic_F77='-qnocommon' 13793 lt_prog_compiler_wl_F77='-Wl,' 13794 ;; 13795 esac 13796 ;; 13797 13798 mingw* | pw32* | os2*) 13799 # This hack is so that the source file can tell whether it is being 13800 # built for inclusion in a dll (and should export symbols for example). 13801 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13802 ;; 13803 13804 hpux9* | hpux10* | hpux11*) 13805 lt_prog_compiler_wl_F77='-Wl,' 13806 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13807 # not for PA HP-UX. 13808 case $host_cpu in 13809 hppa*64*|ia64*) 13810 # +Z the default 13811 ;; 13812 *) 13813 lt_prog_compiler_pic_F77='+Z' 13814 ;; 13815 esac 13816 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13817 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13818 ;; 13819 13820 irix5* | irix6* | nonstopux*) 13821 lt_prog_compiler_wl_F77='-Wl,' 13822 # PIC (with -KPIC) is the default. 13823 lt_prog_compiler_static_F77='-non_shared' 13824 ;; 13825 13826 newsos6) 13827 lt_prog_compiler_pic_F77='-KPIC' 13828 lt_prog_compiler_static_F77='-Bstatic' 13829 ;; 13830 13831 linux*) 13832 case $cc_basename in 13833 icc* | ecc*) 13834 lt_prog_compiler_wl_F77='-Wl,' 13835 lt_prog_compiler_pic_F77='-KPIC' 13836 lt_prog_compiler_static_F77='-static' 13837 ;; 13838 pgcc* | pgf77* | pgf90* | pgf95*) 13839 # Portland Group compilers (*not* the Pentium gcc compiler, 13840 # which looks to be a dead project) 13841 lt_prog_compiler_wl_F77='-Wl,' 13842 lt_prog_compiler_pic_F77='-fpic' 13843 lt_prog_compiler_static_F77='-Bstatic' 13844 ;; 13845 ccc*) 13846 lt_prog_compiler_wl_F77='-Wl,' 13847 # All Alpha code is PIC. 13848 lt_prog_compiler_static_F77='-non_shared' 13849 ;; 13850 esac 13851 ;; 13852 13853 osf3* | osf4* | osf5*) 13854 lt_prog_compiler_wl_F77='-Wl,' 13855 # All OSF/1 code is PIC. 13856 lt_prog_compiler_static_F77='-non_shared' 13857 ;; 13858 13859 solaris*) 13860 lt_prog_compiler_pic_F77='-KPIC' 13861 lt_prog_compiler_static_F77='-Bstatic' 13862 case $cc_basename in 13863 f77* | f90* | f95*) 13864 lt_prog_compiler_wl_F77='-Qoption ld ';; 13865 *) 13866 lt_prog_compiler_wl_F77='-Wl,';; 13867 esac 13868 ;; 13869 13870 sunos4*) 13871 lt_prog_compiler_wl_F77='-Qoption ld ' 13872 lt_prog_compiler_pic_F77='-PIC' 13873 lt_prog_compiler_static_F77='-Bstatic' 13874 ;; 13875 13876 sysv4 | sysv4.2uw2* | sysv4.3*) 13877 lt_prog_compiler_wl_F77='-Wl,' 13878 lt_prog_compiler_pic_F77='-KPIC' 13879 lt_prog_compiler_static_F77='-Bstatic' 13880 ;; 13881 13882 sysv4*MP*) 13883 if test -d /usr/nec ;then 13884 lt_prog_compiler_pic_F77='-Kconform_pic' 13885 lt_prog_compiler_static_F77='-Bstatic' 13886 fi 13887 ;; 13888 13889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13890 lt_prog_compiler_wl_F77='-Wl,' 13891 lt_prog_compiler_pic_F77='-KPIC' 13892 lt_prog_compiler_static_F77='-Bstatic' 13893 ;; 13894 13895 unicos*) 13896 lt_prog_compiler_wl_F77='-Wl,' 13897 lt_prog_compiler_can_build_shared_F77=no 13898 ;; 13899 13900 uts4*) 13901 lt_prog_compiler_pic_F77='-pic' 13902 lt_prog_compiler_static_F77='-Bstatic' 13903 ;; 13904 13905 *) 13906 lt_prog_compiler_can_build_shared_F77=no 13907 ;; 13908 esac 13909 fi 13910 13911echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13912echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13913 13914# 13915# Check to make sure the PIC flag actually works. 13916# 13917if test -n "$lt_prog_compiler_pic_F77"; then 13918 13919echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13920echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13921if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13922 echo $ECHO_N "(cached) $ECHO_C" >&6 13923else 13924 lt_prog_compiler_pic_works_F77=no 13925 ac_outfile=conftest.$ac_objext 13926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13927 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13928 # Insert the option either (1) after the last *FLAGS variable, or 13929 # (2) before a word containing "conftest.", or (3) at the end. 13930 # Note that $ac_compile itself does not contain backslashes and begins 13931 # with a dollar sign (not a hyphen), so the echo should work correctly. 13932 # The option is referenced via a variable to avoid confusing sed. 13933 lt_compile=`echo "$ac_compile" | $SED \ 13934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13936 -e 's:$: $lt_compiler_flag:'` 13937 (eval echo "\"\$as_me:13937: $lt_compile\"" >&5) 13938 (eval "$lt_compile" 2>conftest.err) 13939 ac_status=$? 13940 cat conftest.err >&5 13941 echo "$as_me:13941: \$? = $ac_status" >&5 13942 if (exit $ac_status) && test -s "$ac_outfile"; then 13943 # The compiler can only warn and ignore the option if not recognized 13944 # So say no if there are warnings other than the usual output. 13945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13948 lt_prog_compiler_pic_works_F77=yes 13949 fi 13950 fi 13951 $rm conftest* 13952 13953fi 13954echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13955echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13956 13957if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13958 case $lt_prog_compiler_pic_F77 in 13959 "" | " "*) ;; 13960 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13961 esac 13962else 13963 lt_prog_compiler_pic_F77= 13964 lt_prog_compiler_can_build_shared_F77=no 13965fi 13966 13967fi 13968case $host_os in 13969 # For platforms which do not support PIC, -DPIC is meaningless: 13970 *djgpp*) 13971 lt_prog_compiler_pic_F77= 13972 ;; 13973 *) 13974 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13975 ;; 13976esac 13977 13978# 13979# Check to make sure the static flag actually works. 13980# 13981wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13982echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13983echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13984if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13985 echo $ECHO_N "(cached) $ECHO_C" >&6 13986else 13987 lt_prog_compiler_static_works_F77=no 13988 save_LDFLAGS="$LDFLAGS" 13989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13990 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13992 # The linker can only warn and ignore the option if not recognized 13993 # So say no if there are warnings 13994 if test -s conftest.err; then 13995 # Append any errors to the config.log. 13996 cat conftest.err 1>&5 13997 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13999 if diff conftest.exp conftest.er2 >/dev/null; then 14000 lt_prog_compiler_static_works_F77=yes 14001 fi 14002 else 14003 lt_prog_compiler_static_works_F77=yes 14004 fi 14005 fi 14006 $rm conftest* 14007 LDFLAGS="$save_LDFLAGS" 14008 14009fi 14010echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14011echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 14012 14013if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14014 : 14015else 14016 lt_prog_compiler_static_F77= 14017fi 14018 14019 14020echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14021echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14022if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14023 echo $ECHO_N "(cached) $ECHO_C" >&6 14024else 14025 lt_cv_prog_compiler_c_o_F77=no 14026 $rm -r conftest 2>/dev/null 14027 mkdir conftest 14028 cd conftest 14029 mkdir out 14030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14031 14032 lt_compiler_flag="-o out/conftest2.$ac_objext" 14033 # Insert the option either (1) after the last *FLAGS variable, or 14034 # (2) before a word containing "conftest.", or (3) at the end. 14035 # Note that $ac_compile itself does not contain backslashes and begins 14036 # with a dollar sign (not a hyphen), so the echo should work correctly. 14037 lt_compile=`echo "$ac_compile" | $SED \ 14038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14040 -e 's:$: $lt_compiler_flag:'` 14041 (eval echo "\"\$as_me:14041: $lt_compile\"" >&5) 14042 (eval "$lt_compile" 2>out/conftest.err) 14043 ac_status=$? 14044 cat out/conftest.err >&5 14045 echo "$as_me:14045: \$? = $ac_status" >&5 14046 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14047 then 14048 # The compiler can only warn and ignore the option if not recognized 14049 # So say no if there are warnings 14050 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14053 lt_cv_prog_compiler_c_o_F77=yes 14054 fi 14055 fi 14056 chmod u+w . 2>&5 14057 $rm conftest* 14058 # SGI C++ compiler will create directory out/ii_files/ for 14059 # template instantiation 14060 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14061 $rm out/* && rmdir out 14062 cd .. 14063 rmdir conftest 14064 $rm conftest* 14065 14066fi 14067echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14068echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14069 14070 14071hard_links="nottested" 14072if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14073 # do not overwrite the value of need_locks provided by the user 14074 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14075echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14076 hard_links=yes 14077 $rm conftest* 14078 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14079 touch conftest.a 14080 ln conftest.a conftest.b 2>&5 || hard_links=no 14081 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14082 echo "$as_me:$LINENO: result: $hard_links" >&5 14083echo "${ECHO_T}$hard_links" >&6 14084 if test "$hard_links" = no; then 14085 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14086echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14087 need_locks=warn 14088 fi 14089else 14090 need_locks=no 14091fi 14092 14093echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14094echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14095 14096 runpath_var= 14097 allow_undefined_flag_F77= 14098 enable_shared_with_static_runtimes_F77=no 14099 archive_cmds_F77= 14100 archive_expsym_cmds_F77= 14101 old_archive_From_new_cmds_F77= 14102 old_archive_from_expsyms_cmds_F77= 14103 export_dynamic_flag_spec_F77= 14104 whole_archive_flag_spec_F77= 14105 thread_safe_flag_spec_F77= 14106 hardcode_libdir_flag_spec_F77= 14107 hardcode_libdir_flag_spec_ld_F77= 14108 hardcode_libdir_separator_F77= 14109 hardcode_direct_F77=no 14110 hardcode_minus_L_F77=no 14111 hardcode_shlibpath_var_F77=unsupported 14112 link_all_deplibs_F77=unknown 14113 hardcode_automatic_F77=no 14114 module_cmds_F77= 14115 module_expsym_cmds_F77= 14116 always_export_symbols_F77=no 14117 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14118 # include_expsyms should be a list of space-separated symbols to be *always* 14119 # included in the symbol list 14120 include_expsyms_F77= 14121 # exclude_expsyms can be an extended regexp of symbols to exclude 14122 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14124 # as well as any symbol that contains `d'. 14125 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14127 # platforms (ab)use it in PIC code, but their linkers get confused if 14128 # the symbol is explicitly referenced. Since portable code cannot 14129 # rely on this symbol name, it's probably fine to never include it in 14130 # preloaded symbol tables. 14131 extract_expsyms_cmds= 14132 # Just being paranoid about ensuring that cc_basename is set. 14133 for cc_temp in $compiler""; do 14134 case $cc_temp in 14135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14137 \-*) ;; 14138 *) break;; 14139 esac 14140done 14141cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14142 14143 case $host_os in 14144 cygwin* | mingw* | pw32*) 14145 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14146 # When not using gcc, we currently assume that we are using 14147 # Microsoft Visual C++. 14148 if test "$GCC" != yes; then 14149 with_gnu_ld=no 14150 fi 14151 ;; 14152 interix*) 14153 # we just hope/assume this is gcc and not c89 (= MSVC++) 14154 with_gnu_ld=yes 14155 ;; 14156 openbsd*) 14157 with_gnu_ld=no 14158 ;; 14159 esac 14160 14161 ld_shlibs_F77=yes 14162 if test "$with_gnu_ld" = yes; then 14163 # If archive_cmds runs LD, not CC, wlarc should be empty 14164 wlarc='${wl}' 14165 14166 # Set some defaults for GNU ld with shared library support. These 14167 # are reset later if shared libraries are not supported. Putting them 14168 # here allows them to be overridden if necessary. 14169 runpath_var=LD_RUN_PATH 14170 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14171 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14172 # ancient GNU ld didn't support --whole-archive et. al. 14173 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14174 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14175 else 14176 whole_archive_flag_spec_F77= 14177 fi 14178 supports_anon_versioning=no 14179 case `$LD -v 2>/dev/null` in 14180 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14181 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14182 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14183 *\ 2.11.*) ;; # other 2.11 versions 14184 *) supports_anon_versioning=yes ;; 14185 esac 14186 14187 # See if GNU ld supports shared libraries. 14188 case $host_os in 14189 aix3* | aix4* | aix5*) 14190 # On AIX/PPC, the GNU linker is very broken 14191 if test "$host_cpu" != ia64; then 14192 ld_shlibs_F77=no 14193 cat <<EOF 1>&2 14194 14195*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14196*** to be unable to reliably create shared libraries on AIX. 14197*** Therefore, libtool is disabling shared libraries support. If you 14198*** really care for shared libraries, you may want to modify your PATH 14199*** so that a non-GNU linker is found, and then restart. 14200 14201EOF 14202 fi 14203 ;; 14204 14205 amigaos*) 14206 archive_cmds_F77='$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)' 14207 hardcode_libdir_flag_spec_F77='-L$libdir' 14208 hardcode_minus_L_F77=yes 14209 14210 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14211 # that the semantics of dynamic libraries on AmigaOS, at least up 14212 # to version 4, is to share data among multiple programs linked 14213 # with the same dynamic library. Since this doesn't match the 14214 # behavior of shared libraries on other platforms, we can't use 14215 # them. 14216 ld_shlibs_F77=no 14217 ;; 14218 14219 beos*) 14220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14221 allow_undefined_flag_F77=unsupported 14222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14223 # support --undefined. This deserves some investigation. FIXME 14224 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14225 else 14226 ld_shlibs_F77=no 14227 fi 14228 ;; 14229 14230 cygwin* | mingw* | pw32*) 14231 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14232 # as there is no search path for DLLs. 14233 hardcode_libdir_flag_spec_F77='-L$libdir' 14234 allow_undefined_flag_F77=unsupported 14235 always_export_symbols_F77=no 14236 enable_shared_with_static_runtimes_F77=yes 14237 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14238 14239 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14240 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14241 # If the export-symbols file already is a .def file (1st line 14242 # is EXPORTS), use it as is; otherwise, prepend... 14243 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14244 cp $export_symbols $output_objdir/$soname.def; 14245 else 14246 echo EXPORTS > $output_objdir/$soname.def; 14247 cat $export_symbols >> $output_objdir/$soname.def; 14248 fi~ 14249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14250 else 14251 ld_shlibs_F77=no 14252 fi 14253 ;; 14254 14255 interix3*) 14256 hardcode_direct_F77=no 14257 hardcode_shlibpath_var_F77=no 14258 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14259 export_dynamic_flag_spec_F77='${wl}-E' 14260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14261 # Instead, shared libraries are loaded at an image base (0x10000000 by 14262 # default) and relocated if they conflict, which is a slow very memory 14263 # consuming and fragmenting process. To avoid this, we pick a random, 14264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14265 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14266 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14267 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14268 ;; 14269 14270 linux*) 14271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14272 tmp_addflag= 14273 case $cc_basename,$host_cpu in 14274 pgcc*) # Portland Group C compiler 14275 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14276 tmp_addflag=' $pic_flag' 14277 ;; 14278 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14279 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14280 tmp_addflag=' $pic_flag -Mnomain' ;; 14281 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14282 tmp_addflag=' -i_dynamic' ;; 14283 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14284 tmp_addflag=' -i_dynamic -nofor_main' ;; 14285 ifc* | ifort*) # Intel Fortran compiler 14286 tmp_addflag=' -nofor_main' ;; 14287 esac 14288 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14289 14290 if test $supports_anon_versioning = yes; then 14291 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14293 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14294 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14295 fi 14296 link_all_deplibs_F77=no 14297 else 14298 ld_shlibs_F77=no 14299 fi 14300 ;; 14301 14302 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 14303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14304 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14305 wlarc= 14306 else 14307 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14308 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14309 fi 14310 ;; 14311 14312 solaris*) 14313 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14314 ld_shlibs_F77=no 14315 cat <<EOF 1>&2 14316 14317*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14318*** create shared libraries on Solaris systems. Therefore, libtool 14319*** is disabling shared libraries support. We urge you to upgrade GNU 14320*** binutils to release 2.9.1 or newer. Another option is to modify 14321*** your PATH or compiler configuration so that the native linker is 14322*** used, and then restart. 14323 14324EOF 14325 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14326 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14327 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14328 else 14329 ld_shlibs_F77=no 14330 fi 14331 ;; 14332 14333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14334 case `$LD -v 2>&1` in 14335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14336 ld_shlibs_F77=no 14337 cat <<_LT_EOF 1>&2 14338 14339*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14340*** reliably create shared libraries on SCO systems. Therefore, libtool 14341*** is disabling shared libraries support. We urge you to upgrade GNU 14342*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14343*** your PATH or compiler configuration so that the native linker is 14344*** used, and then restart. 14345 14346_LT_EOF 14347 ;; 14348 *) 14349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14350 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14351 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14352 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14353 else 14354 ld_shlibs_F77=no 14355 fi 14356 ;; 14357 esac 14358 ;; 14359 14360 sunos4*) 14361 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14362 wlarc= 14363 hardcode_direct_F77=yes 14364 hardcode_shlibpath_var_F77=no 14365 ;; 14366 14367 *) 14368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14369 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14370 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14371 else 14372 ld_shlibs_F77=no 14373 fi 14374 ;; 14375 esac 14376 14377 if test "$ld_shlibs_F77" = no; then 14378 runpath_var= 14379 hardcode_libdir_flag_spec_F77= 14380 export_dynamic_flag_spec_F77= 14381 whole_archive_flag_spec_F77= 14382 fi 14383 else 14384 # PORTME fill in a description of your system's linker (not GNU ld) 14385 case $host_os in 14386 aix3*) 14387 allow_undefined_flag_F77=unsupported 14388 always_export_symbols_F77=yes 14389 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14390 # Note: this linker hardcodes the directories in LIBPATH if there 14391 # are no directories specified by -L. 14392 hardcode_minus_L_F77=yes 14393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14394 # Neither direct hardcoding nor static linking is supported with a 14395 # broken collect2. 14396 hardcode_direct_F77=unsupported 14397 fi 14398 ;; 14399 14400 aix4* | aix5*) 14401 if test "$host_cpu" = ia64; then 14402 # On IA64, the linker does run time linking by default, so we don't 14403 # have to do anything special. 14404 aix_use_runtimelinking=no 14405 exp_sym_flag='-Bexport' 14406 no_entry_flag="" 14407 else 14408 # If we're using GNU nm, then we don't want the "-C" option. 14409 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14411 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14412 else 14413 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14414 fi 14415 aix_use_runtimelinking=no 14416 14417 # Test if we are trying to use run time linking or normal 14418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14419 # need to do runtime linking. 14420 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14421 for ld_flag in $LDFLAGS; do 14422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14423 aix_use_runtimelinking=yes 14424 break 14425 fi 14426 done 14427 ;; 14428 esac 14429 14430 exp_sym_flag='-bexport' 14431 no_entry_flag='-bnoentry' 14432 fi 14433 14434 # When large executables or shared objects are built, AIX ld can 14435 # have problems creating the table of contents. If linking a library 14436 # or program results in "error TOC overflow" add -mminimal-toc to 14437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14439 14440 archive_cmds_F77='' 14441 hardcode_direct_F77=yes 14442 hardcode_libdir_separator_F77=':' 14443 link_all_deplibs_F77=yes 14444 14445 if test "$GCC" = yes; then 14446 case $host_os in aix4.[012]|aix4.[012].*) 14447 # We only want to do this on AIX 4.2 and lower, the check 14448 # below for broken collect2 doesn't work under 4.3+ 14449 collect2name=`${CC} -print-prog-name=collect2` 14450 if test -f "$collect2name" && \ 14451 strings "$collect2name" | grep resolve_lib_name >/dev/null 14452 then 14453 # We have reworked collect2 14454 hardcode_direct_F77=yes 14455 else 14456 # We have old collect2 14457 hardcode_direct_F77=unsupported 14458 # It fails to find uninstalled libraries when the uninstalled 14459 # path is not listed in the libpath. Setting hardcode_minus_L 14460 # to unsupported forces relinking 14461 hardcode_minus_L_F77=yes 14462 hardcode_libdir_flag_spec_F77='-L$libdir' 14463 hardcode_libdir_separator_F77= 14464 fi 14465 ;; 14466 esac 14467 shared_flag='-shared' 14468 if test "$aix_use_runtimelinking" = yes; then 14469 shared_flag="$shared_flag "'${wl}-G' 14470 fi 14471 else 14472 # not using gcc 14473 if test "$host_cpu" = ia64; then 14474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14475 # chokes on -Wl,-G. The following line is correct: 14476 shared_flag='-G' 14477 else 14478 if test "$aix_use_runtimelinking" = yes; then 14479 shared_flag='${wl}-G' 14480 else 14481 shared_flag='${wl}-bM:SRE' 14482 fi 14483 fi 14484 fi 14485 14486 # It seems that -bexpall does not export symbols beginning with 14487 # underscore (_), so it is better to generate a list of symbols to export. 14488 always_export_symbols_F77=yes 14489 if test "$aix_use_runtimelinking" = yes; then 14490 # Warning - without using the other runtime loading flags (-brtl), 14491 # -berok will link without error, but may produce a broken library. 14492 allow_undefined_flag_F77='-berok' 14493 # Determine the default libpath from the value encoded in an empty executable. 14494 cat >conftest.$ac_ext <<_ACEOF 14495 program main 14496 14497 end 14498_ACEOF 14499rm -f conftest.$ac_objext conftest$ac_exeext 14500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14501 (eval $ac_link) 2>conftest.er1 14502 ac_status=$? 14503 grep -v '^ *+' conftest.er1 >conftest.err 14504 rm -f conftest.er1 14505 cat conftest.err >&5 14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14507 (exit $ac_status); } && 14508 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14510 (eval $ac_try) 2>&5 14511 ac_status=$? 14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14513 (exit $ac_status); }; } && 14514 { ac_try='test -s conftest$ac_exeext' 14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14516 (eval $ac_try) 2>&5 14517 ac_status=$? 14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14519 (exit $ac_status); }; }; then 14520 14521aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14522}'` 14523# Check for a 64-bit object if we didn't find anything. 14524if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14525}'`; fi 14526else 14527 echo "$as_me: failed program was:" >&5 14528sed 's/^/| /' conftest.$ac_ext >&5 14529 14530fi 14531rm -f conftest.err conftest.$ac_objext \ 14532 conftest$ac_exeext conftest.$ac_ext 14533if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14534 14535 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14536 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14537 else 14538 if test "$host_cpu" = ia64; then 14539 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14540 allow_undefined_flag_F77="-z nodefs" 14541 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 14542 else 14543 # Determine the default libpath from the value encoded in an empty executable. 14544 cat >conftest.$ac_ext <<_ACEOF 14545 program main 14546 14547 end 14548_ACEOF 14549rm -f conftest.$ac_objext conftest$ac_exeext 14550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14551 (eval $ac_link) 2>conftest.er1 14552 ac_status=$? 14553 grep -v '^ *+' conftest.er1 >conftest.err 14554 rm -f conftest.er1 14555 cat conftest.err >&5 14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14557 (exit $ac_status); } && 14558 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14560 (eval $ac_try) 2>&5 14561 ac_status=$? 14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14563 (exit $ac_status); }; } && 14564 { ac_try='test -s conftest$ac_exeext' 14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14566 (eval $ac_try) 2>&5 14567 ac_status=$? 14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14569 (exit $ac_status); }; }; then 14570 14571aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14572}'` 14573# Check for a 64-bit object if we didn't find anything. 14574if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14575}'`; fi 14576else 14577 echo "$as_me: failed program was:" >&5 14578sed 's/^/| /' conftest.$ac_ext >&5 14579 14580fi 14581rm -f conftest.err conftest.$ac_objext \ 14582 conftest$ac_exeext conftest.$ac_ext 14583if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14584 14585 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14586 # Warning - without using the other run time loading flags, 14587 # -berok will link without error, but may produce a broken library. 14588 no_undefined_flag_F77=' ${wl}-bernotok' 14589 allow_undefined_flag_F77=' ${wl}-berok' 14590 # Exported symbols can be pulled into shared objects from archives 14591 whole_archive_flag_spec_F77='$convenience' 14592 archive_cmds_need_lc_F77=yes 14593 # This is similar to how AIX traditionally builds its shared libraries. 14594 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14595 fi 14596 fi 14597 ;; 14598 14599 amigaos*) 14600 archive_cmds_F77='$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)' 14601 hardcode_libdir_flag_spec_F77='-L$libdir' 14602 hardcode_minus_L_F77=yes 14603 # see comment about different semantics on the GNU ld section 14604 ld_shlibs_F77=no 14605 ;; 14606 14607 bsdi[45]*) 14608 export_dynamic_flag_spec_F77=-rdynamic 14609 ;; 14610 14611 cygwin* | mingw* | pw32*) 14612 # When not using gcc, we currently assume that we are using 14613 # Microsoft Visual C++. 14614 # hardcode_libdir_flag_spec is actually meaningless, as there is 14615 # no search path for DLLs. 14616 hardcode_libdir_flag_spec_F77=' ' 14617 allow_undefined_flag_F77=unsupported 14618 # Tell ltmain to make .lib files, not .a files. 14619 libext=lib 14620 # Tell ltmain to make .dll files, not .so files. 14621 shrext_cmds=".dll" 14622 # FIXME: Setting linknames here is a bad hack. 14623 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14624 # The linker will automatically build a .lib file if we build a DLL. 14625 old_archive_From_new_cmds_F77='true' 14626 # FIXME: Should let the user specify the lib program. 14627 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14628 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14629 enable_shared_with_static_runtimes_F77=yes 14630 ;; 14631 14632 darwin* | rhapsody*) 14633 case $host_os in 14634 rhapsody* | darwin1.[012]) 14635 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14636 ;; 14637 *) # Darwin 1.3 on 14638 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14639 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14640 else 14641 case ${MACOSX_DEPLOYMENT_TARGET} in 14642 10.[012]) 14643 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14644 ;; 14645 10.*) 14646 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14647 ;; 14648 esac 14649 fi 14650 ;; 14651 esac 14652 archive_cmds_need_lc_F77=no 14653 hardcode_direct_F77=no 14654 hardcode_automatic_F77=yes 14655 hardcode_shlibpath_var_F77=unsupported 14656 whole_archive_flag_spec_F77='' 14657 link_all_deplibs_F77=yes 14658 if test "$GCC" = yes ; then 14659 output_verbose_link_cmd='echo' 14660 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14661 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14662 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14663 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14664 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14665 else 14666 case $cc_basename in 14667 xlc*) 14668 output_verbose_link_cmd='echo' 14669 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14670 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14671 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14672 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14673 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14674 ;; 14675 *) 14676 ld_shlibs_F77=no 14677 ;; 14678 esac 14679 fi 14680 ;; 14681 14682 dgux*) 14683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14684 hardcode_libdir_flag_spec_F77='-L$libdir' 14685 hardcode_shlibpath_var_F77=no 14686 ;; 14687 14688 freebsd1*) 14689 ld_shlibs_F77=no 14690 ;; 14691 14692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14693 # support. Future versions do this automatically, but an explicit c++rt0.o 14694 # does not break anything, and helps significantly (at the cost of a little 14695 # extra space). 14696 freebsd2.2*) 14697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14698 hardcode_libdir_flag_spec_F77='-R$libdir' 14699 hardcode_direct_F77=yes 14700 hardcode_shlibpath_var_F77=no 14701 ;; 14702 14703 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14704 freebsd2*) 14705 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14706 hardcode_direct_F77=yes 14707 hardcode_minus_L_F77=yes 14708 hardcode_shlibpath_var_F77=no 14709 ;; 14710 14711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14712 freebsd* | dragonfly*) 14713 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14714 hardcode_libdir_flag_spec_F77='-R$libdir' 14715 hardcode_direct_F77=yes 14716 hardcode_shlibpath_var_F77=no 14717 ;; 14718 14719 # GNU/kFreeBSD uses gcc -shared to do shared libraries. 14720 kfreebsd*-gnu) 14721 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14722 hardcode_libdir_flag_spec_F77='-R$libdir' 14723 hardcode_direct_F77=yes 14724 hardcode_shlibpath_var_F77=no 14725 link_all_deplibs_F77=no 14726 ;; 14727 14728 hpux9*) 14729 if test "$GCC" = yes; then 14730 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14731 else 14732 archive_cmds_F77='$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' 14733 fi 14734 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14735 hardcode_libdir_separator_F77=: 14736 hardcode_direct_F77=yes 14737 14738 # hardcode_minus_L: Not really in the search PATH, 14739 # but as the default location of the library. 14740 hardcode_minus_L_F77=yes 14741 export_dynamic_flag_spec_F77='${wl}-E' 14742 ;; 14743 14744 hpux10*) 14745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14746 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14747 else 14748 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14749 fi 14750 if test "$with_gnu_ld" = no; then 14751 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14752 hardcode_libdir_separator_F77=: 14753 14754 hardcode_direct_F77=yes 14755 export_dynamic_flag_spec_F77='${wl}-E' 14756 14757 # hardcode_minus_L: Not really in the search PATH, 14758 # but as the default location of the library. 14759 hardcode_minus_L_F77=yes 14760 fi 14761 ;; 14762 14763 hpux11*) 14764 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14765 case $host_cpu in 14766 hppa*64*) 14767 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14768 ;; 14769 ia64*) 14770 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14771 ;; 14772 *) 14773 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14774 ;; 14775 esac 14776 else 14777 case $host_cpu in 14778 hppa*64*) 14779 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14780 ;; 14781 ia64*) 14782 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14783 ;; 14784 *) 14785 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14786 ;; 14787 esac 14788 fi 14789 if test "$with_gnu_ld" = no; then 14790 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14791 hardcode_libdir_separator_F77=: 14792 14793 case $host_cpu in 14794 hppa*64*|ia64*) 14795 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14796 hardcode_direct_F77=no 14797 hardcode_shlibpath_var_F77=no 14798 ;; 14799 *) 14800 hardcode_direct_F77=yes 14801 export_dynamic_flag_spec_F77='${wl}-E' 14802 14803 # hardcode_minus_L: Not really in the search PATH, 14804 # but as the default location of the library. 14805 hardcode_minus_L_F77=yes 14806 ;; 14807 esac 14808 fi 14809 ;; 14810 14811 irix5* | irix6* | nonstopux*) 14812 if test "$GCC" = yes; then 14813 archive_cmds_F77='$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' 14814 else 14815 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14816 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14817 fi 14818 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14819 hardcode_libdir_separator_F77=: 14820 link_all_deplibs_F77=yes 14821 ;; 14822 14823 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 14824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14825 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14826 else 14827 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14828 fi 14829 hardcode_libdir_flag_spec_F77='-R$libdir' 14830 hardcode_direct_F77=yes 14831 hardcode_shlibpath_var_F77=no 14832 ;; 14833 14834 newsos6) 14835 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14836 hardcode_direct_F77=yes 14837 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14838 hardcode_libdir_separator_F77=: 14839 hardcode_shlibpath_var_F77=no 14840 ;; 14841 14842 openbsd*) 14843 hardcode_direct_F77=yes 14844 hardcode_shlibpath_var_F77=no 14845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14846 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14847 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14848 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14849 export_dynamic_flag_spec_F77='${wl}-E' 14850 else 14851 case $host_os in 14852 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14853 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14854 hardcode_libdir_flag_spec_F77='-R$libdir' 14855 ;; 14856 *) 14857 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14858 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14859 ;; 14860 esac 14861 fi 14862 ;; 14863 14864 os2*) 14865 hardcode_libdir_flag_spec_F77='-L$libdir' 14866 hardcode_minus_L_F77=yes 14867 allow_undefined_flag_F77=unsupported 14868 archive_cmds_F77='$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' 14869 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14870 ;; 14871 14872 osf3*) 14873 if test "$GCC" = yes; then 14874 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14875 archive_cmds_F77='$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' 14876 else 14877 allow_undefined_flag_F77=' -expect_unresolved \*' 14878 archive_cmds_F77='$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' 14879 fi 14880 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14881 hardcode_libdir_separator_F77=: 14882 ;; 14883 14884 osf4* | osf5*) # as osf3* with the addition of -msym flag 14885 if test "$GCC" = yes; then 14886 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14887 archive_cmds_F77='$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' 14888 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14889 else 14890 allow_undefined_flag_F77=' -expect_unresolved \*' 14891 archive_cmds_F77='$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' 14892 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 14893 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14894 14895 # Both c and cxx compiler support -rpath directly 14896 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14897 fi 14898 hardcode_libdir_separator_F77=: 14899 ;; 14900 14901 solaris*) 14902 no_undefined_flag_F77=' -z text' 14903 if test "$GCC" = yes; then 14904 wlarc='${wl}' 14905 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14906 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14907 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14908 else 14909 wlarc='' 14910 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14911 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14913 fi 14914 hardcode_libdir_flag_spec_F77='-R$libdir' 14915 hardcode_shlibpath_var_F77=no 14916 case $host_os in 14917 solaris2.[0-5] | solaris2.[0-5].*) ;; 14918 *) 14919 # The compiler driver will combine linker options so we 14920 # cannot just pass the convience library names through 14921 # without $wl, iff we do not link with $LD. 14922 # Luckily, gcc supports the same syntax we need for Sun Studio. 14923 # Supported since Solaris 2.6 (maybe 2.5.1?) 14924 case $wlarc in 14925 '') 14926 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14927 *) 14928 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14929 esac ;; 14930 esac 14931 link_all_deplibs_F77=yes 14932 ;; 14933 14934 sunos4*) 14935 if test "x$host_vendor" = xsequent; then 14936 # Use $CC to link under sequent, because it throws in some extra .o 14937 # files that make .init and .fini sections work. 14938 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14939 else 14940 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14941 fi 14942 hardcode_libdir_flag_spec_F77='-L$libdir' 14943 hardcode_direct_F77=yes 14944 hardcode_minus_L_F77=yes 14945 hardcode_shlibpath_var_F77=no 14946 ;; 14947 14948 sysv4) 14949 case $host_vendor in 14950 sni) 14951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14952 hardcode_direct_F77=yes # is this really true??? 14953 ;; 14954 siemens) 14955 ## LD is ld it makes a PLAMLIB 14956 ## CC just makes a GrossModule. 14957 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14958 reload_cmds_F77='$CC -r -o $output$reload_objs' 14959 hardcode_direct_F77=no 14960 ;; 14961 motorola) 14962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14963 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14964 ;; 14965 esac 14966 runpath_var='LD_RUN_PATH' 14967 hardcode_shlibpath_var_F77=no 14968 ;; 14969 14970 sysv4.3*) 14971 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14972 hardcode_shlibpath_var_F77=no 14973 export_dynamic_flag_spec_F77='-Bexport' 14974 ;; 14975 14976 sysv4*MP*) 14977 if test -d /usr/nec; then 14978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14979 hardcode_shlibpath_var_F77=no 14980 runpath_var=LD_RUN_PATH 14981 hardcode_runpath_var=yes 14982 ld_shlibs_F77=yes 14983 fi 14984 ;; 14985 14986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14987 no_undefined_flag_F77='${wl}-z,text' 14988 archive_cmds_need_lc_F77=no 14989 hardcode_shlibpath_var_F77=no 14990 runpath_var='LD_RUN_PATH' 14991 14992 if test "$GCC" = yes; then 14993 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14994 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14995 else 14996 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14997 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14998 fi 14999 ;; 15000 15001 sysv5* | sco3.2v5* | sco5v6*) 15002 # Note: We can NOT use -z defs as we might desire, because we do not 15003 # link with -lc, and that would cause any symbols used from libc to 15004 # always be unresolved, which means just about no library would 15005 # ever link correctly. If we're not using GNU ld we use -z text 15006 # though, which does catch some bad symbols but isn't as heavy-handed 15007 # as -z defs. 15008 no_undefined_flag_F77='${wl}-z,text' 15009 allow_undefined_flag_F77='${wl}-z,nodefs' 15010 archive_cmds_need_lc_F77=no 15011 hardcode_shlibpath_var_F77=no 15012 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15013 hardcode_libdir_separator_F77=':' 15014 link_all_deplibs_F77=yes 15015 export_dynamic_flag_spec_F77='${wl}-Bexport' 15016 runpath_var='LD_RUN_PATH' 15017 15018 if test "$GCC" = yes; then 15019 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15020 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15021 else 15022 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15023 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15024 fi 15025 ;; 15026 15027 uts4*) 15028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15029 hardcode_libdir_flag_spec_F77='-L$libdir' 15030 hardcode_shlibpath_var_F77=no 15031 ;; 15032 15033 *) 15034 ld_shlibs_F77=no 15035 ;; 15036 esac 15037 fi 15038 15039echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15040echo "${ECHO_T}$ld_shlibs_F77" >&6 15041test "$ld_shlibs_F77" = no && can_build_shared=no 15042 15043# 15044# Do we need to explicitly link libc? 15045# 15046case "x$archive_cmds_need_lc_F77" in 15047x|xyes) 15048 # Assume -lc should be added 15049 archive_cmds_need_lc_F77=yes 15050 15051 if test "$enable_shared" = yes && test "$GCC" = yes; then 15052 case $archive_cmds_F77 in 15053 *'~'*) 15054 # FIXME: we may have to deal with multi-command sequences. 15055 ;; 15056 '$CC '*) 15057 # Test whether the compiler implicitly links with -lc since on some 15058 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15059 # to ld, don't add -lc before -lgcc. 15060 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15061echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15062 $rm conftest* 15063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15064 15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15066 (eval $ac_compile) 2>&5 15067 ac_status=$? 15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15069 (exit $ac_status); } 2>conftest.err; then 15070 soname=conftest 15071 lib=conftest 15072 libobjs=conftest.$ac_objext 15073 deplibs= 15074 wl=$lt_prog_compiler_wl_F77 15075 pic_flag=$lt_prog_compiler_pic_F77 15076 compiler_flags=-v 15077 linker_flags=-v 15078 verstring= 15079 output_objdir=. 15080 libname=conftest 15081 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15082 allow_undefined_flag_F77= 15083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15084 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15085 ac_status=$? 15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15087 (exit $ac_status); } 15088 then 15089 archive_cmds_need_lc_F77=no 15090 else 15091 archive_cmds_need_lc_F77=yes 15092 fi 15093 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15094 else 15095 cat conftest.err 1>&5 15096 fi 15097 $rm conftest* 15098 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15099echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15100 ;; 15101 esac 15102 fi 15103 ;; 15104esac 15105 15106echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15107echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15108library_names_spec= 15109libname_spec='lib$name' 15110soname_spec= 15111shrext_cmds=".so" 15112postinstall_cmds= 15113postuninstall_cmds= 15114finish_cmds= 15115finish_eval= 15116shlibpath_var= 15117shlibpath_overrides_runpath=unknown 15118version_type=none 15119dynamic_linker="$host_os ld.so" 15120sys_lib_dlsearch_path_spec="/lib /usr/lib" 15121if test "$GCC" = yes; then 15122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15123 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15124 # if the path contains ";" then we assume it to be the separator 15125 # otherwise default to the standard path separator (i.e. ":") - it is 15126 # assumed that no part of a normal pathname contains ";" but that should 15127 # okay in the real world where ";" in dirpaths is itself problematic. 15128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15129 else 15130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15131 fi 15132else 15133 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15134fi 15135need_lib_prefix=unknown 15136hardcode_into_libs=no 15137 15138# when you set need_version to no, make sure it does not cause -set_version 15139# flags to be left without arguments 15140need_version=unknown 15141 15142case $host_os in 15143aix3*) 15144 version_type=linux 15145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15146 shlibpath_var=LIBPATH 15147 15148 # AIX 3 has no versioning support, so we append a major version to the name. 15149 soname_spec='${libname}${release}${shared_ext}$major' 15150 ;; 15151 15152aix4* | aix5*) 15153 version_type=linux 15154 need_lib_prefix=no 15155 need_version=no 15156 hardcode_into_libs=yes 15157 if test "$host_cpu" = ia64; then 15158 # AIX 5 supports IA64 15159 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15160 shlibpath_var=LD_LIBRARY_PATH 15161 else 15162 # With GCC up to 2.95.x, collect2 would create an import file 15163 # for dependence libraries. The import file would start with 15164 # the line `#! .'. This would cause the generated library to 15165 # depend on `.', always an invalid library. This was fixed in 15166 # development snapshots of GCC prior to 3.0. 15167 case $host_os in 15168 aix4 | aix4.[01] | aix4.[01].*) 15169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15170 echo ' yes ' 15171 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15172 : 15173 else 15174 can_build_shared=no 15175 fi 15176 ;; 15177 esac 15178 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15179 # soname into executable. Probably we can add versioning support to 15180 # collect2, so additional links can be useful in future. 15181 if test "$aix_use_runtimelinking" = yes; then 15182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15183 # instead of lib<name>.a to let people know that these are not 15184 # typical AIX shared libraries. 15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15186 else 15187 # We preserve .a as extension for shared libraries through AIX4.2 15188 # and later when we are not doing run time linking. 15189 library_names_spec='${libname}${release}.a $libname.a' 15190 soname_spec='${libname}${release}${shared_ext}$major' 15191 fi 15192 shlibpath_var=LIBPATH 15193 fi 15194 ;; 15195 15196amigaos*) 15197 library_names_spec='$libname.ixlibrary $libname.a' 15198 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15199 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' 15200 ;; 15201 15202beos*) 15203 library_names_spec='${libname}${shared_ext}' 15204 dynamic_linker="$host_os ld.so" 15205 shlibpath_var=LIBRARY_PATH 15206 ;; 15207 15208bsdi[45]*) 15209 version_type=linux 15210 need_version=no 15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15212 soname_spec='${libname}${release}${shared_ext}$major' 15213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15214 shlibpath_var=LD_LIBRARY_PATH 15215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15217 # the default ld.so.conf also contains /usr/contrib/lib and 15218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15219 # libtool to hard-code these into programs 15220 ;; 15221 15222cygwin* | mingw* | pw32*) 15223 version_type=windows 15224 shrext_cmds=".dll" 15225 need_version=no 15226 need_lib_prefix=no 15227 15228 case $GCC,$host_os in 15229 yes,cygwin* | yes,mingw* | yes,pw32*) 15230 library_names_spec='$libname.dll.a' 15231 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15232 postinstall_cmds='base_file=`basename \${file}`~ 15233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15234 dldir=$destdir/`dirname \$dlpath`~ 15235 test -d \$dldir || mkdir -p \$dldir~ 15236 $install_prog $dir/$dlname \$dldir/$dlname~ 15237 chmod a+x \$dldir/$dlname' 15238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15239 dlpath=$dir/\$dldll~ 15240 $rm \$dlpath' 15241 shlibpath_overrides_runpath=yes 15242 15243 case $host_os in 15244 cygwin*) 15245 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15247 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15248 ;; 15249 mingw*) 15250 # MinGW DLLs use traditional 'lib' prefix 15251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15253 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15254 # It is most probably a Windows format PATH printed by 15255 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15256 # path with ; separators, and with drive letters. We can handle the 15257 # drive letters (cygwin fileutils understands them), so leave them, 15258 # especially as we might pass files found there to a mingw objdump, 15259 # which wouldn't understand a cygwinified path. Ahh. 15260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15261 else 15262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15263 fi 15264 ;; 15265 pw32*) 15266 # pw32 DLLs use 'pw' prefix rather than 'lib' 15267 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15268 ;; 15269 esac 15270 ;; 15271 15272 *) 15273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15274 ;; 15275 esac 15276 dynamic_linker='Win32 ld.exe' 15277 # FIXME: first we should search . and the directory the executable is in 15278 shlibpath_var=PATH 15279 ;; 15280 15281darwin* | rhapsody*) 15282 dynamic_linker="$host_os dyld" 15283 version_type=darwin 15284 need_lib_prefix=no 15285 need_version=no 15286 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15287 soname_spec='${libname}${release}${major}$shared_ext' 15288 shlibpath_overrides_runpath=yes 15289 shlibpath_var=DYLD_LIBRARY_PATH 15290 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15291 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15292 if test "$GCC" = yes; then 15293 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15294 else 15295 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15296 fi 15297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15298 ;; 15299 15300dgux*) 15301 version_type=linux 15302 need_lib_prefix=no 15303 need_version=no 15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15305 soname_spec='${libname}${release}${shared_ext}$major' 15306 shlibpath_var=LD_LIBRARY_PATH 15307 ;; 15308 15309freebsd1*) 15310 dynamic_linker=no 15311 ;; 15312 15313kfreebsd*-gnu) 15314 version_type=linux 15315 need_lib_prefix=no 15316 need_version=no 15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15318 soname_spec='${libname}${release}${shared_ext}$major' 15319 shlibpath_var=LD_LIBRARY_PATH 15320 shlibpath_overrides_runpath=no 15321 hardcode_into_libs=yes 15322 dynamic_linker='GNU ld.so' 15323 ;; 15324 15325freebsd* | dragonfly*) 15326 # DragonFly does not have aout. When/if they implement a new 15327 # versioning mechanism, adjust this. 15328 if test -x /usr/bin/objformat; then 15329 objformat=`/usr/bin/objformat` 15330 else 15331 case $host_os in 15332 freebsd[123]*) objformat=aout ;; 15333 *) objformat=elf ;; 15334 esac 15335 fi 15336 version_type=freebsd-$objformat 15337 case $version_type in 15338 freebsd-elf*) 15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15340 need_version=no 15341 need_lib_prefix=no 15342 ;; 15343 freebsd-*) 15344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15345 need_version=yes 15346 ;; 15347 esac 15348 shlibpath_var=LD_LIBRARY_PATH 15349 case $host_os in 15350 freebsd2*) 15351 shlibpath_overrides_runpath=yes 15352 ;; 15353 freebsd3.[01]* | freebsdelf3.[01]*) 15354 shlibpath_overrides_runpath=yes 15355 hardcode_into_libs=yes 15356 ;; 15357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15359 shlibpath_overrides_runpath=no 15360 hardcode_into_libs=yes 15361 ;; 15362 freebsd*) # from 4.6 on 15363 shlibpath_overrides_runpath=yes 15364 hardcode_into_libs=yes 15365 ;; 15366 esac 15367 ;; 15368 15369gnu*) 15370 version_type=linux 15371 need_lib_prefix=no 15372 need_version=no 15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15374 soname_spec='${libname}${release}${shared_ext}$major' 15375 shlibpath_var=LD_LIBRARY_PATH 15376 hardcode_into_libs=yes 15377 ;; 15378 15379hpux9* | hpux10* | hpux11*) 15380 # Give a soname corresponding to the major version so that dld.sl refuses to 15381 # link against other versions. 15382 version_type=sunos 15383 need_lib_prefix=no 15384 need_version=no 15385 case $host_cpu in 15386 ia64*) 15387 shrext_cmds='.so' 15388 hardcode_into_libs=yes 15389 dynamic_linker="$host_os dld.so" 15390 shlibpath_var=LD_LIBRARY_PATH 15391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15393 soname_spec='${libname}${release}${shared_ext}$major' 15394 if test "X$HPUX_IA64_MODE" = X32; then 15395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15396 else 15397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15398 fi 15399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15400 ;; 15401 hppa*64*) 15402 shrext_cmds='.sl' 15403 hardcode_into_libs=yes 15404 dynamic_linker="$host_os dld.sl" 15405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15408 soname_spec='${libname}${release}${shared_ext}$major' 15409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15411 ;; 15412 *) 15413 shrext_cmds='.sl' 15414 dynamic_linker="$host_os dld.sl" 15415 shlibpath_var=SHLIB_PATH 15416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15418 soname_spec='${libname}${release}${shared_ext}$major' 15419 ;; 15420 esac 15421 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15422 postinstall_cmds='chmod 555 $lib' 15423 ;; 15424 15425interix3*) 15426 version_type=linux 15427 need_lib_prefix=no 15428 need_version=no 15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15430 soname_spec='${libname}${release}${shared_ext}$major' 15431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15432 shlibpath_var=LD_LIBRARY_PATH 15433 shlibpath_overrides_runpath=no 15434 hardcode_into_libs=yes 15435 ;; 15436 15437irix5* | irix6* | nonstopux*) 15438 case $host_os in 15439 nonstopux*) version_type=nonstopux ;; 15440 *) 15441 if test "$lt_cv_prog_gnu_ld" = yes; then 15442 version_type=linux 15443 else 15444 version_type=irix 15445 fi ;; 15446 esac 15447 need_lib_prefix=no 15448 need_version=no 15449 soname_spec='${libname}${release}${shared_ext}$major' 15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15451 case $host_os in 15452 irix5* | nonstopux*) 15453 libsuff= shlibsuff= 15454 ;; 15455 *) 15456 case $LD in # libtool.m4 will add one of these switches to LD 15457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15458 libsuff= shlibsuff= libmagic=32-bit;; 15459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15460 libsuff=32 shlibsuff=N32 libmagic=N32;; 15461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15462 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15463 *) libsuff= shlibsuff= libmagic=never-match;; 15464 esac 15465 ;; 15466 esac 15467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15468 shlibpath_overrides_runpath=no 15469 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15470 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15471 hardcode_into_libs=yes 15472 ;; 15473 15474# No shared lib support for Linux oldld, aout, or coff. 15475linux*oldld* | linux*aout* | linux*coff*) 15476 dynamic_linker=no 15477 ;; 15478 15479# This must be Linux ELF. 15480linux*) 15481 version_type=linux 15482 need_lib_prefix=no 15483 need_version=no 15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15485 soname_spec='${libname}${release}${shared_ext}$major' 15486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15487 shlibpath_var=LD_LIBRARY_PATH 15488 shlibpath_overrides_runpath=no 15489 # This implies no fast_install, which is unacceptable. 15490 # Some rework will be needed to allow for fast_install 15491 # before this can be enabled. 15492 hardcode_into_libs=yes 15493 15494 # Append ld.so.conf contents to the search path 15495 if test -f /etc/ld.so.conf; then 15496 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15497 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15498 fi 15499 15500 # We used to test for /lib/ld.so.1 and disable shared libraries on 15501 # powerpc, because MkLinux only supported shared libraries with the 15502 # GNU dynamic linker. Since this was broken with cross compilers, 15503 # most powerpc-linux boxes support dynamic linking these days and 15504 # people can always --disable-shared, the test was removed, and we 15505 # assume the GNU/Linux dynamic linker is in use. 15506 dynamic_linker='GNU/Linux ld.so' 15507 ;; 15508 15509netbsdelf*-gnu) 15510 version_type=linux 15511 need_lib_prefix=no 15512 need_version=no 15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15514 soname_spec='${libname}${release}${shared_ext}$major' 15515 shlibpath_var=LD_LIBRARY_PATH 15516 shlibpath_overrides_runpath=no 15517 hardcode_into_libs=yes 15518 dynamic_linker='NetBSD ld.elf_so' 15519 ;; 15520 15521knetbsd*-gnu) 15522 version_type=linux 15523 need_lib_prefix=no 15524 need_version=no 15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15526 soname_spec='${libname}${release}${shared_ext}$major' 15527 shlibpath_var=LD_LIBRARY_PATH 15528 shlibpath_overrides_runpath=no 15529 hardcode_into_libs=yes 15530 dynamic_linker='GNU ld.so' 15531 ;; 15532 15533netbsd*) 15534 version_type=sunos 15535 need_lib_prefix=no 15536 need_version=no 15537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15540 dynamic_linker='NetBSD (a.out) ld.so' 15541 else 15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15543 soname_spec='${libname}${release}${shared_ext}$major' 15544 dynamic_linker='NetBSD ld.elf_so' 15545 fi 15546 shlibpath_var=LD_LIBRARY_PATH 15547 shlibpath_overrides_runpath=yes 15548 hardcode_into_libs=yes 15549 ;; 15550 15551newsos6) 15552 version_type=linux 15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15554 shlibpath_var=LD_LIBRARY_PATH 15555 shlibpath_overrides_runpath=yes 15556 ;; 15557 15558nto-qnx*) 15559 version_type=linux 15560 need_lib_prefix=no 15561 need_version=no 15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15563 soname_spec='${libname}${release}${shared_ext}$major' 15564 shlibpath_var=LD_LIBRARY_PATH 15565 shlibpath_overrides_runpath=yes 15566 ;; 15567 15568openbsd*) 15569 version_type=sunos 15570 sys_lib_dlsearch_path_spec="/usr/lib" 15571 need_lib_prefix=no 15572 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15573 case $host_os in 15574 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15575 *) need_version=no ;; 15576 esac 15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15579 shlibpath_var=LD_LIBRARY_PATH 15580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15581 case $host_os in 15582 openbsd2.[89] | openbsd2.[89].*) 15583 shlibpath_overrides_runpath=no 15584 ;; 15585 *) 15586 shlibpath_overrides_runpath=yes 15587 ;; 15588 esac 15589 else 15590 shlibpath_overrides_runpath=yes 15591 fi 15592 ;; 15593 15594os2*) 15595 libname_spec='$name' 15596 shrext_cmds=".dll" 15597 need_lib_prefix=no 15598 library_names_spec='$libname${shared_ext} $libname.a' 15599 dynamic_linker='OS/2 ld.exe' 15600 shlibpath_var=LIBPATH 15601 ;; 15602 15603osf3* | osf4* | osf5*) 15604 version_type=osf 15605 need_lib_prefix=no 15606 need_version=no 15607 soname_spec='${libname}${release}${shared_ext}$major' 15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15609 shlibpath_var=LD_LIBRARY_PATH 15610 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15611 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15612 ;; 15613 15614solaris*) 15615 version_type=linux 15616 need_lib_prefix=no 15617 need_version=no 15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15619 soname_spec='${libname}${release}${shared_ext}$major' 15620 shlibpath_var=LD_LIBRARY_PATH 15621 shlibpath_overrides_runpath=yes 15622 hardcode_into_libs=yes 15623 # ldd complains unless libraries are executable 15624 postinstall_cmds='chmod +x $lib' 15625 ;; 15626 15627sunos4*) 15628 version_type=sunos 15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15631 shlibpath_var=LD_LIBRARY_PATH 15632 shlibpath_overrides_runpath=yes 15633 if test "$with_gnu_ld" = yes; then 15634 need_lib_prefix=no 15635 fi 15636 need_version=yes 15637 ;; 15638 15639sysv4 | sysv4.3*) 15640 version_type=linux 15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15642 soname_spec='${libname}${release}${shared_ext}$major' 15643 shlibpath_var=LD_LIBRARY_PATH 15644 case $host_vendor in 15645 sni) 15646 shlibpath_overrides_runpath=no 15647 need_lib_prefix=no 15648 export_dynamic_flag_spec='${wl}-Blargedynsym' 15649 runpath_var=LD_RUN_PATH 15650 ;; 15651 siemens) 15652 need_lib_prefix=no 15653 ;; 15654 motorola) 15655 need_lib_prefix=no 15656 need_version=no 15657 shlibpath_overrides_runpath=no 15658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15659 ;; 15660 esac 15661 ;; 15662 15663sysv4*MP*) 15664 if test -d /usr/nec ;then 15665 version_type=linux 15666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15667 soname_spec='$libname${shared_ext}.$major' 15668 shlibpath_var=LD_LIBRARY_PATH 15669 fi 15670 ;; 15671 15672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15673 version_type=freebsd-elf 15674 need_lib_prefix=no 15675 need_version=no 15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15677 soname_spec='${libname}${release}${shared_ext}$major' 15678 shlibpath_var=LD_LIBRARY_PATH 15679 hardcode_into_libs=yes 15680 if test "$with_gnu_ld" = yes; then 15681 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15682 shlibpath_overrides_runpath=no 15683 else 15684 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15685 shlibpath_overrides_runpath=yes 15686 case $host_os in 15687 sco3.2v5*) 15688 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15689 ;; 15690 esac 15691 fi 15692 sys_lib_dlsearch_path_spec='/usr/lib' 15693 ;; 15694 15695uts4*) 15696 version_type=linux 15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15698 soname_spec='${libname}${release}${shared_ext}$major' 15699 shlibpath_var=LD_LIBRARY_PATH 15700 ;; 15701 15702*) 15703 dynamic_linker=no 15704 ;; 15705esac 15706echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15707echo "${ECHO_T}$dynamic_linker" >&6 15708test "$dynamic_linker" = no && can_build_shared=no 15709 15710variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15711if test "$GCC" = yes; then 15712 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15713fi 15714 15715echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15716echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15717hardcode_action_F77= 15718if test -n "$hardcode_libdir_flag_spec_F77" || \ 15719 test -n "$runpath_var_F77" || \ 15720 test "X$hardcode_automatic_F77" = "Xyes" ; then 15721 15722 # We can hardcode non-existant directories. 15723 if test "$hardcode_direct_F77" != no && 15724 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15725 # have to relink, otherwise we might link with an installed library 15726 # when we should be linking with a yet-to-be-installed one 15727 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15728 test "$hardcode_minus_L_F77" != no; then 15729 # Linking always hardcodes the temporary library directory. 15730 hardcode_action_F77=relink 15731 else 15732 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15733 hardcode_action_F77=immediate 15734 fi 15735else 15736 # We cannot hardcode anything, or else we can only hardcode existing 15737 # directories. 15738 hardcode_action_F77=unsupported 15739fi 15740echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15741echo "${ECHO_T}$hardcode_action_F77" >&6 15742 15743if test "$hardcode_action_F77" = relink; then 15744 # Fast installation is not supported 15745 enable_fast_install=no 15746elif test "$shlibpath_overrides_runpath" = yes || 15747 test "$enable_shared" = no; then 15748 # Fast installation is not necessary 15749 enable_fast_install=needless 15750fi 15751 15752 15753# The else clause should only fire when bootstrapping the 15754# libtool distribution, otherwise you forgot to ship ltmain.sh 15755# with your package, and you will get complaints that there are 15756# no rules to generate ltmain.sh. 15757if test -f "$ltmain"; then 15758 # See if we are running on zsh, and set the options which allow our commands through 15759 # without removal of \ escapes. 15760 if test -n "${ZSH_VERSION+set}" ; then 15761 setopt NO_GLOB_SUBST 15762 fi 15763 # Now quote all the things that may contain metacharacters while being 15764 # careful not to overquote the AC_SUBSTed values. We take copies of the 15765 # variables and quote the copies for generation of the libtool script. 15766 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15767 SED SHELL STRIP \ 15768 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15769 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15770 deplibs_check_method reload_flag reload_cmds need_locks \ 15771 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15772 lt_cv_sys_global_symbol_to_c_name_address \ 15773 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15774 old_postinstall_cmds old_postuninstall_cmds \ 15775 compiler_F77 \ 15776 CC_F77 \ 15777 LD_F77 \ 15778 lt_prog_compiler_wl_F77 \ 15779 lt_prog_compiler_pic_F77 \ 15780 lt_prog_compiler_static_F77 \ 15781 lt_prog_compiler_no_builtin_flag_F77 \ 15782 export_dynamic_flag_spec_F77 \ 15783 thread_safe_flag_spec_F77 \ 15784 whole_archive_flag_spec_F77 \ 15785 enable_shared_with_static_runtimes_F77 \ 15786 old_archive_cmds_F77 \ 15787 old_archive_from_new_cmds_F77 \ 15788 predep_objects_F77 \ 15789 postdep_objects_F77 \ 15790 predeps_F77 \ 15791 postdeps_F77 \ 15792 compiler_lib_search_path_F77 \ 15793 archive_cmds_F77 \ 15794 archive_expsym_cmds_F77 \ 15795 postinstall_cmds_F77 \ 15796 postuninstall_cmds_F77 \ 15797 old_archive_from_expsyms_cmds_F77 \ 15798 allow_undefined_flag_F77 \ 15799 no_undefined_flag_F77 \ 15800 export_symbols_cmds_F77 \ 15801 hardcode_libdir_flag_spec_F77 \ 15802 hardcode_libdir_flag_spec_ld_F77 \ 15803 hardcode_libdir_separator_F77 \ 15804 hardcode_automatic_F77 \ 15805 module_cmds_F77 \ 15806 module_expsym_cmds_F77 \ 15807 lt_cv_prog_compiler_c_o_F77 \ 15808 exclude_expsyms_F77 \ 15809 include_expsyms_F77; do 15810 15811 case $var in 15812 old_archive_cmds_F77 | \ 15813 old_archive_from_new_cmds_F77 | \ 15814 archive_cmds_F77 | \ 15815 archive_expsym_cmds_F77 | \ 15816 module_cmds_F77 | \ 15817 module_expsym_cmds_F77 | \ 15818 old_archive_from_expsyms_cmds_F77 | \ 15819 export_symbols_cmds_F77 | \ 15820 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15821 postinstall_cmds | postuninstall_cmds | \ 15822 old_postinstall_cmds | old_postuninstall_cmds | \ 15823 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15824 # Double-quote double-evaled strings. 15825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15826 ;; 15827 *) 15828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15829 ;; 15830 esac 15831 done 15832 15833 case $lt_echo in 15834 *'\$0 --fallback-echo"') 15835 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15836 ;; 15837 esac 15838 15839cfgfile="$ofile" 15840 15841 cat <<__EOF__ >> "$cfgfile" 15842# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15843 15844# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15845 15846# Shell to use when invoking shell scripts. 15847SHELL=$lt_SHELL 15848 15849# Whether or not to build shared libraries. 15850build_libtool_libs=$enable_shared 15851 15852# Whether or not to build static libraries. 15853build_old_libs=$enable_static 15854 15855# Whether or not to add -lc for building shared libraries. 15856build_libtool_need_lc=$archive_cmds_need_lc_F77 15857 15858# Whether or not to disallow shared libs when runtime libs are static 15859allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15860 15861# Whether or not to optimize for fast installation. 15862fast_install=$enable_fast_install 15863 15864# The host system. 15865host_alias=$host_alias 15866host=$host 15867host_os=$host_os 15868 15869# The build system. 15870build_alias=$build_alias 15871build=$build 15872build_os=$build_os 15873 15874# An echo program that does not interpret backslashes. 15875echo=$lt_echo 15876 15877# The archiver. 15878AR=$lt_AR 15879AR_FLAGS=$lt_AR_FLAGS 15880 15881# A C compiler. 15882LTCC=$lt_LTCC 15883 15884# LTCC compiler flags. 15885LTCFLAGS=$lt_LTCFLAGS 15886 15887# A language-specific compiler. 15888CC=$lt_compiler_F77 15889 15890# Is the compiler the GNU C compiler? 15891with_gcc=$GCC_F77 15892 15893# An ERE matcher. 15894EGREP=$lt_EGREP 15895 15896# The linker used to build libraries. 15897LD=$lt_LD_F77 15898 15899# Whether we need hard or soft links. 15900LN_S=$lt_LN_S 15901 15902# A BSD-compatible nm program. 15903NM=$lt_NM 15904 15905# A symbol stripping program 15906STRIP=$lt_STRIP 15907 15908# Used to examine libraries when file_magic_cmd begins "file" 15909MAGIC_CMD=$MAGIC_CMD 15910 15911# Used on cygwin: DLL creation program. 15912DLLTOOL="$DLLTOOL" 15913 15914# Used on cygwin: object dumper. 15915OBJDUMP="$OBJDUMP" 15916 15917# Used on cygwin: assembler. 15918AS="$AS" 15919 15920# The name of the directory that contains temporary libtool files. 15921objdir=$objdir 15922 15923# How to create reloadable object files. 15924reload_flag=$lt_reload_flag 15925reload_cmds=$lt_reload_cmds 15926 15927# How to pass a linker flag through the compiler. 15928wl=$lt_lt_prog_compiler_wl_F77 15929 15930# Object file suffix (normally "o"). 15931objext="$ac_objext" 15932 15933# Old archive suffix (normally "a"). 15934libext="$libext" 15935 15936# Shared library suffix (normally ".so"). 15937shrext_cmds='$shrext_cmds' 15938 15939# Executable file suffix (normally ""). 15940exeext="$exeext" 15941 15942# Additional compiler flags for building library objects. 15943pic_flag=$lt_lt_prog_compiler_pic_F77 15944pic_mode=$pic_mode 15945 15946# What is the maximum length of a command? 15947max_cmd_len=$lt_cv_sys_max_cmd_len 15948 15949# Does compiler simultaneously support -c and -o options? 15950compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15951 15952# Must we lock files when doing compilation? 15953need_locks=$lt_need_locks 15954 15955# Do we need the lib prefix for modules? 15956need_lib_prefix=$need_lib_prefix 15957 15958# Do we need a version for libraries? 15959need_version=$need_version 15960 15961# Whether dlopen is supported. 15962dlopen_support=$enable_dlopen 15963 15964# Whether dlopen of programs is supported. 15965dlopen_self=$enable_dlopen_self 15966 15967# Whether dlopen of statically linked programs is supported. 15968dlopen_self_static=$enable_dlopen_self_static 15969 15970# Compiler flag to prevent dynamic linking. 15971link_static_flag=$lt_lt_prog_compiler_static_F77 15972 15973# Compiler flag to turn off builtin functions. 15974no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15975 15976# Compiler flag to allow reflexive dlopens. 15977export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15978 15979# Compiler flag to generate shared objects directly from archives. 15980whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15981 15982# Compiler flag to generate thread-safe objects. 15983thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15984 15985# Library versioning type. 15986version_type=$version_type 15987 15988# Format of library name prefix. 15989libname_spec=$lt_libname_spec 15990 15991# List of archive names. First name is the real one, the rest are links. 15992# The last name is the one that the linker finds with -lNAME. 15993library_names_spec=$lt_library_names_spec 15994 15995# The coded name of the library, if different from the real name. 15996soname_spec=$lt_soname_spec 15997 15998# Commands used to build and install an old-style archive. 15999RANLIB=$lt_RANLIB 16000old_archive_cmds=$lt_old_archive_cmds_F77 16001old_postinstall_cmds=$lt_old_postinstall_cmds 16002old_postuninstall_cmds=$lt_old_postuninstall_cmds 16003 16004# Create an old-style archive from a shared archive. 16005old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16006 16007# Create a temporary old-style archive to link instead of a shared archive. 16008old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16009 16010# Commands used to build and install a shared archive. 16011archive_cmds=$lt_archive_cmds_F77 16012archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16013postinstall_cmds=$lt_postinstall_cmds 16014postuninstall_cmds=$lt_postuninstall_cmds 16015 16016# Commands used to build a loadable module (assumed same as above if empty) 16017module_cmds=$lt_module_cmds_F77 16018module_expsym_cmds=$lt_module_expsym_cmds_F77 16019 16020# Commands to strip libraries. 16021old_striplib=$lt_old_striplib 16022striplib=$lt_striplib 16023 16024# Dependencies to place before the objects being linked to create a 16025# shared library. 16026predep_objects=$lt_predep_objects_F77 16027 16028# Dependencies to place after the objects being linked to create a 16029# shared library. 16030postdep_objects=$lt_postdep_objects_F77 16031 16032# Dependencies to place before the objects being linked to create a 16033# shared library. 16034predeps=$lt_predeps_F77 16035 16036# Dependencies to place after the objects being linked to create a 16037# shared library. 16038postdeps=$lt_postdeps_F77 16039 16040# The library search path used internally by the compiler when linking 16041# a shared library. 16042compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16043 16044# Method to check whether dependent libraries are shared objects. 16045deplibs_check_method=$lt_deplibs_check_method 16046 16047# Command to use when deplibs_check_method == file_magic. 16048file_magic_cmd=$lt_file_magic_cmd 16049 16050# Flag that allows shared libraries with undefined symbols to be built. 16051allow_undefined_flag=$lt_allow_undefined_flag_F77 16052 16053# Flag that forces no undefined symbols. 16054no_undefined_flag=$lt_no_undefined_flag_F77 16055 16056# Commands used to finish a libtool library installation in a directory. 16057finish_cmds=$lt_finish_cmds 16058 16059# Same as above, but a single script fragment to be evaled but not shown. 16060finish_eval=$lt_finish_eval 16061 16062# Take the output of nm and produce a listing of raw symbols and C names. 16063global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16064 16065# Transform the output of nm in a proper C declaration 16066global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16067 16068# Transform the output of nm in a C name address pair 16069global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16070 16071# This is the shared library runtime path variable. 16072runpath_var=$runpath_var 16073 16074# This is the shared library path variable. 16075shlibpath_var=$shlibpath_var 16076 16077# Is shlibpath searched before the hard-coded library search path? 16078shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16079 16080# How to hardcode a shared library path into an executable. 16081hardcode_action=$hardcode_action_F77 16082 16083# Whether we should hardcode library paths into libraries. 16084hardcode_into_libs=$hardcode_into_libs 16085 16086# Flag to hardcode \$libdir into a binary during linking. 16087# This must work even if \$libdir does not exist. 16088hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16089 16090# If ld is used when linking, flag to hardcode \$libdir into 16091# a binary during linking. This must work even if \$libdir does 16092# not exist. 16093hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16094 16095# Whether we need a single -rpath flag with a separated argument. 16096hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16097 16098# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16099# resulting binary. 16100hardcode_direct=$hardcode_direct_F77 16101 16102# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16103# resulting binary. 16104hardcode_minus_L=$hardcode_minus_L_F77 16105 16106# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16107# the resulting binary. 16108hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16109 16110# Set to yes if building a shared library automatically hardcodes DIR into the library 16111# and all subsequent libraries and executables linked against it. 16112hardcode_automatic=$hardcode_automatic_F77 16113 16114# Variables whose values should be saved in libtool wrapper scripts and 16115# restored at relink time. 16116variables_saved_for_relink="$variables_saved_for_relink" 16117 16118# Whether libtool must link a program against all its dependency libraries. 16119link_all_deplibs=$link_all_deplibs_F77 16120 16121# Compile-time system search path for libraries 16122sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16123 16124# Run-time system search path for libraries 16125sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16126 16127# Fix the shell variable \$srcfile for the compiler. 16128fix_srcfile_path="$fix_srcfile_path_F77" 16129 16130# Set to yes if exported symbols are required. 16131always_export_symbols=$always_export_symbols_F77 16132 16133# The commands to list exported symbols. 16134export_symbols_cmds=$lt_export_symbols_cmds_F77 16135 16136# The commands to extract the exported symbol list from a shared archive. 16137extract_expsyms_cmds=$lt_extract_expsyms_cmds 16138 16139# Symbols that should not be listed in the preloaded symbols. 16140exclude_expsyms=$lt_exclude_expsyms_F77 16141 16142# Symbols that must always be exported. 16143include_expsyms=$lt_include_expsyms_F77 16144 16145# ### END LIBTOOL TAG CONFIG: $tagname 16146 16147__EOF__ 16148 16149 16150else 16151 # If there is no Makefile yet, we rely on a make rule to execute 16152 # `config.status --recheck' to rerun these tests and create the 16153 # libtool script then. 16154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16155 if test -f "$ltmain_in"; then 16156 test -f Makefile && make "$ltmain" 16157 fi 16158fi 16159 16160 16161ac_ext=c 16162ac_cpp='$CPP $CPPFLAGS' 16163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16165ac_compiler_gnu=$ac_cv_c_compiler_gnu 16166 16167CC="$lt_save_CC" 16168 16169 else 16170 tagname="" 16171 fi 16172 ;; 16173 16174 GCJ) 16175 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16176 16177 16178 16179# Source file extension for Java test sources. 16180ac_ext=java 16181 16182# Object file extension for compiled Java test sources. 16183objext=o 16184objext_GCJ=$objext 16185 16186# Code to be used in simple compile tests 16187lt_simple_compile_test_code="class foo {}\n" 16188 16189# Code to be used in simple link tests 16190lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16191 16192# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16193 16194# If no C compiler was specified, use CC. 16195LTCC=${LTCC-"$CC"} 16196 16197# If no C compiler flags were specified, use CFLAGS. 16198LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16199 16200# Allow CC to be a program name with arguments. 16201compiler=$CC 16202 16203 16204# save warnings/boilerplate of simple test code 16205ac_outfile=conftest.$ac_objext 16206printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16207eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16208_lt_compiler_boilerplate=`cat conftest.err` 16209$rm conftest* 16210 16211ac_outfile=conftest.$ac_objext 16212printf "$lt_simple_link_test_code" >conftest.$ac_ext 16213eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16214_lt_linker_boilerplate=`cat conftest.err` 16215$rm conftest* 16216 16217 16218# Allow CC to be a program name with arguments. 16219lt_save_CC="$CC" 16220CC=${GCJ-"gcj"} 16221compiler=$CC 16222compiler_GCJ=$CC 16223for cc_temp in $compiler""; do 16224 case $cc_temp in 16225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16227 \-*) ;; 16228 *) break;; 16229 esac 16230done 16231cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16232 16233 16234# GCJ did not exist at the time GCC didn't implicitly link libc in. 16235archive_cmds_need_lc_GCJ=no 16236 16237old_archive_cmds_GCJ=$old_archive_cmds 16238 16239 16240lt_prog_compiler_no_builtin_flag_GCJ= 16241 16242if test "$GCC" = yes; then 16243 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16244 16245 16246echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16247echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16248if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16249 echo $ECHO_N "(cached) $ECHO_C" >&6 16250else 16251 lt_cv_prog_compiler_rtti_exceptions=no 16252 ac_outfile=conftest.$ac_objext 16253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16254 lt_compiler_flag="-fno-rtti -fno-exceptions" 16255 # Insert the option either (1) after the last *FLAGS variable, or 16256 # (2) before a word containing "conftest.", or (3) at the end. 16257 # Note that $ac_compile itself does not contain backslashes and begins 16258 # with a dollar sign (not a hyphen), so the echo should work correctly. 16259 # The option is referenced via a variable to avoid confusing sed. 16260 lt_compile=`echo "$ac_compile" | $SED \ 16261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16263 -e 's:$: $lt_compiler_flag:'` 16264 (eval echo "\"\$as_me:16264: $lt_compile\"" >&5) 16265 (eval "$lt_compile" 2>conftest.err) 16266 ac_status=$? 16267 cat conftest.err >&5 16268 echo "$as_me:16268: \$? = $ac_status" >&5 16269 if (exit $ac_status) && test -s "$ac_outfile"; then 16270 # The compiler can only warn and ignore the option if not recognized 16271 # So say no if there are warnings other than the usual output. 16272 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16275 lt_cv_prog_compiler_rtti_exceptions=yes 16276 fi 16277 fi 16278 $rm conftest* 16279 16280fi 16281echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16282echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16283 16284if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16285 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16286else 16287 : 16288fi 16289 16290fi 16291 16292lt_prog_compiler_wl_GCJ= 16293lt_prog_compiler_pic_GCJ= 16294lt_prog_compiler_static_GCJ= 16295 16296echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16297echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16298 16299 if test "$GCC" = yes; then 16300 lt_prog_compiler_wl_GCJ='-Wl,' 16301 lt_prog_compiler_static_GCJ='-static' 16302 16303 case $host_os in 16304 aix*) 16305 # All AIX code is PIC. 16306 if test "$host_cpu" = ia64; then 16307 # AIX 5 now supports IA64 processor 16308 lt_prog_compiler_static_GCJ='-Bstatic' 16309 fi 16310 ;; 16311 16312 amigaos*) 16313 # FIXME: we need at least 68020 code to build shared libraries, but 16314 # adding the `-m68020' flag to GCC prevents building anything better, 16315 # like `-m68040'. 16316 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16317 ;; 16318 16319 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16320 # PIC is the default for these OSes. 16321 ;; 16322 16323 mingw* | pw32* | os2*) 16324 # This hack is so that the source file can tell whether it is being 16325 # built for inclusion in a dll (and should export symbols for example). 16326 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16327 ;; 16328 16329 darwin* | rhapsody*) 16330 # PIC is the default on this platform 16331 # Common symbols not allowed in MH_DYLIB files 16332 lt_prog_compiler_pic_GCJ='-fno-common' 16333 ;; 16334 16335 interix3*) 16336 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16337 # Instead, we relocate shared libraries at runtime. 16338 ;; 16339 16340 msdosdjgpp*) 16341 # Just because we use GCC doesn't mean we suddenly get shared libraries 16342 # on systems that don't support them. 16343 lt_prog_compiler_can_build_shared_GCJ=no 16344 enable_shared=no 16345 ;; 16346 16347 sysv4*MP*) 16348 if test -d /usr/nec; then 16349 lt_prog_compiler_pic_GCJ=-Kconform_pic 16350 fi 16351 ;; 16352 16353 hpux*) 16354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16355 # not for PA HP-UX. 16356 case $host_cpu in 16357 hppa*64*|ia64*) 16358 # +Z the default 16359 ;; 16360 *) 16361 lt_prog_compiler_pic_GCJ='-fPIC' 16362 ;; 16363 esac 16364 ;; 16365 16366 *) 16367 lt_prog_compiler_pic_GCJ='-fPIC' 16368 ;; 16369 esac 16370 else 16371 # PORTME Check for flag to pass linker flags through the system compiler. 16372 case $host_os in 16373 aix*) 16374 lt_prog_compiler_wl_GCJ='-Wl,' 16375 if test "$host_cpu" = ia64; then 16376 # AIX 5 now supports IA64 processor 16377 lt_prog_compiler_static_GCJ='-Bstatic' 16378 else 16379 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16380 fi 16381 ;; 16382 darwin*) 16383 # PIC is the default on this platform 16384 # Common symbols not allowed in MH_DYLIB files 16385 case $cc_basename in 16386 xlc*) 16387 lt_prog_compiler_pic_GCJ='-qnocommon' 16388 lt_prog_compiler_wl_GCJ='-Wl,' 16389 ;; 16390 esac 16391 ;; 16392 16393 mingw* | pw32* | os2*) 16394 # This hack is so that the source file can tell whether it is being 16395 # built for inclusion in a dll (and should export symbols for example). 16396 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16397 ;; 16398 16399 hpux9* | hpux10* | hpux11*) 16400 lt_prog_compiler_wl_GCJ='-Wl,' 16401 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16402 # not for PA HP-UX. 16403 case $host_cpu in 16404 hppa*64*|ia64*) 16405 # +Z the default 16406 ;; 16407 *) 16408 lt_prog_compiler_pic_GCJ='+Z' 16409 ;; 16410 esac 16411 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16412 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16413 ;; 16414 16415 irix5* | irix6* | nonstopux*) 16416 lt_prog_compiler_wl_GCJ='-Wl,' 16417 # PIC (with -KPIC) is the default. 16418 lt_prog_compiler_static_GCJ='-non_shared' 16419 ;; 16420 16421 newsos6) 16422 lt_prog_compiler_pic_GCJ='-KPIC' 16423 lt_prog_compiler_static_GCJ='-Bstatic' 16424 ;; 16425 16426 linux*) 16427 case $cc_basename in 16428 icc* | ecc*) 16429 lt_prog_compiler_wl_GCJ='-Wl,' 16430 lt_prog_compiler_pic_GCJ='-KPIC' 16431 lt_prog_compiler_static_GCJ='-static' 16432 ;; 16433 pgcc* | pgf77* | pgf90* | pgf95*) 16434 # Portland Group compilers (*not* the Pentium gcc compiler, 16435 # which looks to be a dead project) 16436 lt_prog_compiler_wl_GCJ='-Wl,' 16437 lt_prog_compiler_pic_GCJ='-fpic' 16438 lt_prog_compiler_static_GCJ='-Bstatic' 16439 ;; 16440 ccc*) 16441 lt_prog_compiler_wl_GCJ='-Wl,' 16442 # All Alpha code is PIC. 16443 lt_prog_compiler_static_GCJ='-non_shared' 16444 ;; 16445 esac 16446 ;; 16447 16448 osf3* | osf4* | osf5*) 16449 lt_prog_compiler_wl_GCJ='-Wl,' 16450 # All OSF/1 code is PIC. 16451 lt_prog_compiler_static_GCJ='-non_shared' 16452 ;; 16453 16454 solaris*) 16455 lt_prog_compiler_pic_GCJ='-KPIC' 16456 lt_prog_compiler_static_GCJ='-Bstatic' 16457 case $cc_basename in 16458 f77* | f90* | f95*) 16459 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16460 *) 16461 lt_prog_compiler_wl_GCJ='-Wl,';; 16462 esac 16463 ;; 16464 16465 sunos4*) 16466 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16467 lt_prog_compiler_pic_GCJ='-PIC' 16468 lt_prog_compiler_static_GCJ='-Bstatic' 16469 ;; 16470 16471 sysv4 | sysv4.2uw2* | sysv4.3*) 16472 lt_prog_compiler_wl_GCJ='-Wl,' 16473 lt_prog_compiler_pic_GCJ='-KPIC' 16474 lt_prog_compiler_static_GCJ='-Bstatic' 16475 ;; 16476 16477 sysv4*MP*) 16478 if test -d /usr/nec ;then 16479 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16480 lt_prog_compiler_static_GCJ='-Bstatic' 16481 fi 16482 ;; 16483 16484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16485 lt_prog_compiler_wl_GCJ='-Wl,' 16486 lt_prog_compiler_pic_GCJ='-KPIC' 16487 lt_prog_compiler_static_GCJ='-Bstatic' 16488 ;; 16489 16490 unicos*) 16491 lt_prog_compiler_wl_GCJ='-Wl,' 16492 lt_prog_compiler_can_build_shared_GCJ=no 16493 ;; 16494 16495 uts4*) 16496 lt_prog_compiler_pic_GCJ='-pic' 16497 lt_prog_compiler_static_GCJ='-Bstatic' 16498 ;; 16499 16500 *) 16501 lt_prog_compiler_can_build_shared_GCJ=no 16502 ;; 16503 esac 16504 fi 16505 16506echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16507echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16508 16509# 16510# Check to make sure the PIC flag actually works. 16511# 16512if test -n "$lt_prog_compiler_pic_GCJ"; then 16513 16514echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16515echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16516if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16517 echo $ECHO_N "(cached) $ECHO_C" >&6 16518else 16519 lt_prog_compiler_pic_works_GCJ=no 16520 ac_outfile=conftest.$ac_objext 16521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16522 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16523 # Insert the option either (1) after the last *FLAGS variable, or 16524 # (2) before a word containing "conftest.", or (3) at the end. 16525 # Note that $ac_compile itself does not contain backslashes and begins 16526 # with a dollar sign (not a hyphen), so the echo should work correctly. 16527 # The option is referenced via a variable to avoid confusing sed. 16528 lt_compile=`echo "$ac_compile" | $SED \ 16529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16531 -e 's:$: $lt_compiler_flag:'` 16532 (eval echo "\"\$as_me:16532: $lt_compile\"" >&5) 16533 (eval "$lt_compile" 2>conftest.err) 16534 ac_status=$? 16535 cat conftest.err >&5 16536 echo "$as_me:16536: \$? = $ac_status" >&5 16537 if (exit $ac_status) && test -s "$ac_outfile"; then 16538 # The compiler can only warn and ignore the option if not recognized 16539 # So say no if there are warnings other than the usual output. 16540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16543 lt_prog_compiler_pic_works_GCJ=yes 16544 fi 16545 fi 16546 $rm conftest* 16547 16548fi 16549echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16550echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16551 16552if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16553 case $lt_prog_compiler_pic_GCJ in 16554 "" | " "*) ;; 16555 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16556 esac 16557else 16558 lt_prog_compiler_pic_GCJ= 16559 lt_prog_compiler_can_build_shared_GCJ=no 16560fi 16561 16562fi 16563case $host_os in 16564 # For platforms which do not support PIC, -DPIC is meaningless: 16565 *djgpp*) 16566 lt_prog_compiler_pic_GCJ= 16567 ;; 16568 *) 16569 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16570 ;; 16571esac 16572 16573# 16574# Check to make sure the static flag actually works. 16575# 16576wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16577echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16578echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 16579if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16580 echo $ECHO_N "(cached) $ECHO_C" >&6 16581else 16582 lt_prog_compiler_static_works_GCJ=no 16583 save_LDFLAGS="$LDFLAGS" 16584 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16585 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16587 # The linker can only warn and ignore the option if not recognized 16588 # So say no if there are warnings 16589 if test -s conftest.err; then 16590 # Append any errors to the config.log. 16591 cat conftest.err 1>&5 16592 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16594 if diff conftest.exp conftest.er2 >/dev/null; then 16595 lt_prog_compiler_static_works_GCJ=yes 16596 fi 16597 else 16598 lt_prog_compiler_static_works_GCJ=yes 16599 fi 16600 fi 16601 $rm conftest* 16602 LDFLAGS="$save_LDFLAGS" 16603 16604fi 16605echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16606echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 16607 16608if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16609 : 16610else 16611 lt_prog_compiler_static_GCJ= 16612fi 16613 16614 16615echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16616echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16617if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16618 echo $ECHO_N "(cached) $ECHO_C" >&6 16619else 16620 lt_cv_prog_compiler_c_o_GCJ=no 16621 $rm -r conftest 2>/dev/null 16622 mkdir conftest 16623 cd conftest 16624 mkdir out 16625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16626 16627 lt_compiler_flag="-o out/conftest2.$ac_objext" 16628 # Insert the option either (1) after the last *FLAGS variable, or 16629 # (2) before a word containing "conftest.", or (3) at the end. 16630 # Note that $ac_compile itself does not contain backslashes and begins 16631 # with a dollar sign (not a hyphen), so the echo should work correctly. 16632 lt_compile=`echo "$ac_compile" | $SED \ 16633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16635 -e 's:$: $lt_compiler_flag:'` 16636 (eval echo "\"\$as_me:16636: $lt_compile\"" >&5) 16637 (eval "$lt_compile" 2>out/conftest.err) 16638 ac_status=$? 16639 cat out/conftest.err >&5 16640 echo "$as_me:16640: \$? = $ac_status" >&5 16641 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16642 then 16643 # The compiler can only warn and ignore the option if not recognized 16644 # So say no if there are warnings 16645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16648 lt_cv_prog_compiler_c_o_GCJ=yes 16649 fi 16650 fi 16651 chmod u+w . 2>&5 16652 $rm conftest* 16653 # SGI C++ compiler will create directory out/ii_files/ for 16654 # template instantiation 16655 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16656 $rm out/* && rmdir out 16657 cd .. 16658 rmdir conftest 16659 $rm conftest* 16660 16661fi 16662echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16663echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16664 16665 16666hard_links="nottested" 16667if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16668 # do not overwrite the value of need_locks provided by the user 16669 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16670echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16671 hard_links=yes 16672 $rm conftest* 16673 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16674 touch conftest.a 16675 ln conftest.a conftest.b 2>&5 || hard_links=no 16676 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16677 echo "$as_me:$LINENO: result: $hard_links" >&5 16678echo "${ECHO_T}$hard_links" >&6 16679 if test "$hard_links" = no; then 16680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16681echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16682 need_locks=warn 16683 fi 16684else 16685 need_locks=no 16686fi 16687 16688echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16689echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16690 16691 runpath_var= 16692 allow_undefined_flag_GCJ= 16693 enable_shared_with_static_runtimes_GCJ=no 16694 archive_cmds_GCJ= 16695 archive_expsym_cmds_GCJ= 16696 old_archive_From_new_cmds_GCJ= 16697 old_archive_from_expsyms_cmds_GCJ= 16698 export_dynamic_flag_spec_GCJ= 16699 whole_archive_flag_spec_GCJ= 16700 thread_safe_flag_spec_GCJ= 16701 hardcode_libdir_flag_spec_GCJ= 16702 hardcode_libdir_flag_spec_ld_GCJ= 16703 hardcode_libdir_separator_GCJ= 16704 hardcode_direct_GCJ=no 16705 hardcode_minus_L_GCJ=no 16706 hardcode_shlibpath_var_GCJ=unsupported 16707 link_all_deplibs_GCJ=unknown 16708 hardcode_automatic_GCJ=no 16709 module_cmds_GCJ= 16710 module_expsym_cmds_GCJ= 16711 always_export_symbols_GCJ=no 16712 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16713 # include_expsyms should be a list of space-separated symbols to be *always* 16714 # included in the symbol list 16715 include_expsyms_GCJ= 16716 # exclude_expsyms can be an extended regexp of symbols to exclude 16717 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16719 # as well as any symbol that contains `d'. 16720 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16722 # platforms (ab)use it in PIC code, but their linkers get confused if 16723 # the symbol is explicitly referenced. Since portable code cannot 16724 # rely on this symbol name, it's probably fine to never include it in 16725 # preloaded symbol tables. 16726 extract_expsyms_cmds= 16727 # Just being paranoid about ensuring that cc_basename is set. 16728 for cc_temp in $compiler""; do 16729 case $cc_temp in 16730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16732 \-*) ;; 16733 *) break;; 16734 esac 16735done 16736cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16737 16738 case $host_os in 16739 cygwin* | mingw* | pw32*) 16740 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16741 # When not using gcc, we currently assume that we are using 16742 # Microsoft Visual C++. 16743 if test "$GCC" != yes; then 16744 with_gnu_ld=no 16745 fi 16746 ;; 16747 interix*) 16748 # we just hope/assume this is gcc and not c89 (= MSVC++) 16749 with_gnu_ld=yes 16750 ;; 16751 openbsd*) 16752 with_gnu_ld=no 16753 ;; 16754 esac 16755 16756 ld_shlibs_GCJ=yes 16757 if test "$with_gnu_ld" = yes; then 16758 # If archive_cmds runs LD, not CC, wlarc should be empty 16759 wlarc='${wl}' 16760 16761 # Set some defaults for GNU ld with shared library support. These 16762 # are reset later if shared libraries are not supported. Putting them 16763 # here allows them to be overridden if necessary. 16764 runpath_var=LD_RUN_PATH 16765 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16766 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16767 # ancient GNU ld didn't support --whole-archive et. al. 16768 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16769 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16770 else 16771 whole_archive_flag_spec_GCJ= 16772 fi 16773 supports_anon_versioning=no 16774 case `$LD -v 2>/dev/null` in 16775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16778 *\ 2.11.*) ;; # other 2.11 versions 16779 *) supports_anon_versioning=yes ;; 16780 esac 16781 16782 # See if GNU ld supports shared libraries. 16783 case $host_os in 16784 aix3* | aix4* | aix5*) 16785 # On AIX/PPC, the GNU linker is very broken 16786 if test "$host_cpu" != ia64; then 16787 ld_shlibs_GCJ=no 16788 cat <<EOF 1>&2 16789 16790*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16791*** to be unable to reliably create shared libraries on AIX. 16792*** Therefore, libtool is disabling shared libraries support. If you 16793*** really care for shared libraries, you may want to modify your PATH 16794*** so that a non-GNU linker is found, and then restart. 16795 16796EOF 16797 fi 16798 ;; 16799 16800 amigaos*) 16801 archive_cmds_GCJ='$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)' 16802 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16803 hardcode_minus_L_GCJ=yes 16804 16805 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16806 # that the semantics of dynamic libraries on AmigaOS, at least up 16807 # to version 4, is to share data among multiple programs linked 16808 # with the same dynamic library. Since this doesn't match the 16809 # behavior of shared libraries on other platforms, we can't use 16810 # them. 16811 ld_shlibs_GCJ=no 16812 ;; 16813 16814 beos*) 16815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16816 allow_undefined_flag_GCJ=unsupported 16817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16818 # support --undefined. This deserves some investigation. FIXME 16819 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16820 else 16821 ld_shlibs_GCJ=no 16822 fi 16823 ;; 16824 16825 cygwin* | mingw* | pw32*) 16826 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16827 # as there is no search path for DLLs. 16828 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16829 allow_undefined_flag_GCJ=unsupported 16830 always_export_symbols_GCJ=no 16831 enable_shared_with_static_runtimes_GCJ=yes 16832 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16833 16834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16835 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16836 # If the export-symbols file already is a .def file (1st line 16837 # is EXPORTS), use it as is; otherwise, prepend... 16838 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16839 cp $export_symbols $output_objdir/$soname.def; 16840 else 16841 echo EXPORTS > $output_objdir/$soname.def; 16842 cat $export_symbols >> $output_objdir/$soname.def; 16843 fi~ 16844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16845 else 16846 ld_shlibs_GCJ=no 16847 fi 16848 ;; 16849 16850 interix3*) 16851 hardcode_direct_GCJ=no 16852 hardcode_shlibpath_var_GCJ=no 16853 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16854 export_dynamic_flag_spec_GCJ='${wl}-E' 16855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16856 # Instead, shared libraries are loaded at an image base (0x10000000 by 16857 # default) and relocated if they conflict, which is a slow very memory 16858 # consuming and fragmenting process. To avoid this, we pick a random, 16859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16860 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16861 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16862 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16863 ;; 16864 16865 linux*) 16866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16867 tmp_addflag= 16868 case $cc_basename,$host_cpu in 16869 pgcc*) # Portland Group C compiler 16870 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16871 tmp_addflag=' $pic_flag' 16872 ;; 16873 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16874 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16875 tmp_addflag=' $pic_flag -Mnomain' ;; 16876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16877 tmp_addflag=' -i_dynamic' ;; 16878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16879 tmp_addflag=' -i_dynamic -nofor_main' ;; 16880 ifc* | ifort*) # Intel Fortran compiler 16881 tmp_addflag=' -nofor_main' ;; 16882 esac 16883 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16884 16885 if test $supports_anon_versioning = yes; then 16886 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16888 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16889 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16890 fi 16891 link_all_deplibs_GCJ=no 16892 else 16893 ld_shlibs_GCJ=no 16894 fi 16895 ;; 16896 16897 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 16898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16899 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16900 wlarc= 16901 else 16902 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16903 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16904 fi 16905 ;; 16906 16907 solaris*) 16908 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16909 ld_shlibs_GCJ=no 16910 cat <<EOF 1>&2 16911 16912*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16913*** create shared libraries on Solaris systems. Therefore, libtool 16914*** is disabling shared libraries support. We urge you to upgrade GNU 16915*** binutils to release 2.9.1 or newer. Another option is to modify 16916*** your PATH or compiler configuration so that the native linker is 16917*** used, and then restart. 16918 16919EOF 16920 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16923 else 16924 ld_shlibs_GCJ=no 16925 fi 16926 ;; 16927 16928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16929 case `$LD -v 2>&1` in 16930 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16931 ld_shlibs_GCJ=no 16932 cat <<_LT_EOF 1>&2 16933 16934*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16935*** reliably create shared libraries on SCO systems. Therefore, libtool 16936*** is disabling shared libraries support. We urge you to upgrade GNU 16937*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16938*** your PATH or compiler configuration so that the native linker is 16939*** used, and then restart. 16940 16941_LT_EOF 16942 ;; 16943 *) 16944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16945 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16946 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16947 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16948 else 16949 ld_shlibs_GCJ=no 16950 fi 16951 ;; 16952 esac 16953 ;; 16954 16955 sunos4*) 16956 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16957 wlarc= 16958 hardcode_direct_GCJ=yes 16959 hardcode_shlibpath_var_GCJ=no 16960 ;; 16961 16962 *) 16963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16964 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16965 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16966 else 16967 ld_shlibs_GCJ=no 16968 fi 16969 ;; 16970 esac 16971 16972 if test "$ld_shlibs_GCJ" = no; then 16973 runpath_var= 16974 hardcode_libdir_flag_spec_GCJ= 16975 export_dynamic_flag_spec_GCJ= 16976 whole_archive_flag_spec_GCJ= 16977 fi 16978 else 16979 # PORTME fill in a description of your system's linker (not GNU ld) 16980 case $host_os in 16981 aix3*) 16982 allow_undefined_flag_GCJ=unsupported 16983 always_export_symbols_GCJ=yes 16984 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16985 # Note: this linker hardcodes the directories in LIBPATH if there 16986 # are no directories specified by -L. 16987 hardcode_minus_L_GCJ=yes 16988 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16989 # Neither direct hardcoding nor static linking is supported with a 16990 # broken collect2. 16991 hardcode_direct_GCJ=unsupported 16992 fi 16993 ;; 16994 16995 aix4* | aix5*) 16996 if test "$host_cpu" = ia64; then 16997 # On IA64, the linker does run time linking by default, so we don't 16998 # have to do anything special. 16999 aix_use_runtimelinking=no 17000 exp_sym_flag='-Bexport' 17001 no_entry_flag="" 17002 else 17003 # If we're using GNU nm, then we don't want the "-C" option. 17004 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17005 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17006 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17007 else 17008 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17009 fi 17010 aix_use_runtimelinking=no 17011 17012 # Test if we are trying to use run time linking or normal 17013 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17014 # need to do runtime linking. 17015 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17016 for ld_flag in $LDFLAGS; do 17017 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17018 aix_use_runtimelinking=yes 17019 break 17020 fi 17021 done 17022 ;; 17023 esac 17024 17025 exp_sym_flag='-bexport' 17026 no_entry_flag='-bnoentry' 17027 fi 17028 17029 # When large executables or shared objects are built, AIX ld can 17030 # have problems creating the table of contents. If linking a library 17031 # or program results in "error TOC overflow" add -mminimal-toc to 17032 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17033 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17034 17035 archive_cmds_GCJ='' 17036 hardcode_direct_GCJ=yes 17037 hardcode_libdir_separator_GCJ=':' 17038 link_all_deplibs_GCJ=yes 17039 17040 if test "$GCC" = yes; then 17041 case $host_os in aix4.[012]|aix4.[012].*) 17042 # We only want to do this on AIX 4.2 and lower, the check 17043 # below for broken collect2 doesn't work under 4.3+ 17044 collect2name=`${CC} -print-prog-name=collect2` 17045 if test -f "$collect2name" && \ 17046 strings "$collect2name" | grep resolve_lib_name >/dev/null 17047 then 17048 # We have reworked collect2 17049 hardcode_direct_GCJ=yes 17050 else 17051 # We have old collect2 17052 hardcode_direct_GCJ=unsupported 17053 # It fails to find uninstalled libraries when the uninstalled 17054 # path is not listed in the libpath. Setting hardcode_minus_L 17055 # to unsupported forces relinking 17056 hardcode_minus_L_GCJ=yes 17057 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17058 hardcode_libdir_separator_GCJ= 17059 fi 17060 ;; 17061 esac 17062 shared_flag='-shared' 17063 if test "$aix_use_runtimelinking" = yes; then 17064 shared_flag="$shared_flag "'${wl}-G' 17065 fi 17066 else 17067 # not using gcc 17068 if test "$host_cpu" = ia64; then 17069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17070 # chokes on -Wl,-G. The following line is correct: 17071 shared_flag='-G' 17072 else 17073 if test "$aix_use_runtimelinking" = yes; then 17074 shared_flag='${wl}-G' 17075 else 17076 shared_flag='${wl}-bM:SRE' 17077 fi 17078 fi 17079 fi 17080 17081 # It seems that -bexpall does not export symbols beginning with 17082 # underscore (_), so it is better to generate a list of symbols to export. 17083 always_export_symbols_GCJ=yes 17084 if test "$aix_use_runtimelinking" = yes; then 17085 # Warning - without using the other runtime loading flags (-brtl), 17086 # -berok will link without error, but may produce a broken library. 17087 allow_undefined_flag_GCJ='-berok' 17088 # Determine the default libpath from the value encoded in an empty executable. 17089 cat >conftest.$ac_ext <<_ACEOF 17090/* confdefs.h. */ 17091_ACEOF 17092cat confdefs.h >>conftest.$ac_ext 17093cat >>conftest.$ac_ext <<_ACEOF 17094/* end confdefs.h. */ 17095 17096int 17097main () 17098{ 17099 17100 ; 17101 return 0; 17102} 17103_ACEOF 17104rm -f conftest.$ac_objext conftest$ac_exeext 17105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17106 (eval $ac_link) 2>conftest.er1 17107 ac_status=$? 17108 grep -v '^ *+' conftest.er1 >conftest.err 17109 rm -f conftest.er1 17110 cat conftest.err >&5 17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17112 (exit $ac_status); } && 17113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17115 (eval $ac_try) 2>&5 17116 ac_status=$? 17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17118 (exit $ac_status); }; } && 17119 { ac_try='test -s conftest$ac_exeext' 17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17121 (eval $ac_try) 2>&5 17122 ac_status=$? 17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17124 (exit $ac_status); }; }; then 17125 17126aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17127}'` 17128# Check for a 64-bit object if we didn't find anything. 17129if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17130}'`; fi 17131else 17132 echo "$as_me: failed program was:" >&5 17133sed 's/^/| /' conftest.$ac_ext >&5 17134 17135fi 17136rm -f conftest.err conftest.$ac_objext \ 17137 conftest$ac_exeext conftest.$ac_ext 17138if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17139 17140 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17141 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17142 else 17143 if test "$host_cpu" = ia64; then 17144 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17145 allow_undefined_flag_GCJ="-z nodefs" 17146 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 17147 else 17148 # Determine the default libpath from the value encoded in an empty executable. 17149 cat >conftest.$ac_ext <<_ACEOF 17150/* confdefs.h. */ 17151_ACEOF 17152cat confdefs.h >>conftest.$ac_ext 17153cat >>conftest.$ac_ext <<_ACEOF 17154/* end confdefs.h. */ 17155 17156int 17157main () 17158{ 17159 17160 ; 17161 return 0; 17162} 17163_ACEOF 17164rm -f conftest.$ac_objext conftest$ac_exeext 17165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17166 (eval $ac_link) 2>conftest.er1 17167 ac_status=$? 17168 grep -v '^ *+' conftest.er1 >conftest.err 17169 rm -f conftest.er1 17170 cat conftest.err >&5 17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17172 (exit $ac_status); } && 17173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17175 (eval $ac_try) 2>&5 17176 ac_status=$? 17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17178 (exit $ac_status); }; } && 17179 { ac_try='test -s conftest$ac_exeext' 17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17181 (eval $ac_try) 2>&5 17182 ac_status=$? 17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17184 (exit $ac_status); }; }; then 17185 17186aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17187}'` 17188# Check for a 64-bit object if we didn't find anything. 17189if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17190}'`; fi 17191else 17192 echo "$as_me: failed program was:" >&5 17193sed 's/^/| /' conftest.$ac_ext >&5 17194 17195fi 17196rm -f conftest.err conftest.$ac_objext \ 17197 conftest$ac_exeext conftest.$ac_ext 17198if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17199 17200 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17201 # Warning - without using the other run time loading flags, 17202 # -berok will link without error, but may produce a broken library. 17203 no_undefined_flag_GCJ=' ${wl}-bernotok' 17204 allow_undefined_flag_GCJ=' ${wl}-berok' 17205 # Exported symbols can be pulled into shared objects from archives 17206 whole_archive_flag_spec_GCJ='$convenience' 17207 archive_cmds_need_lc_GCJ=yes 17208 # This is similar to how AIX traditionally builds its shared libraries. 17209 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17210 fi 17211 fi 17212 ;; 17213 17214 amigaos*) 17215 archive_cmds_GCJ='$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)' 17216 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17217 hardcode_minus_L_GCJ=yes 17218 # see comment about different semantics on the GNU ld section 17219 ld_shlibs_GCJ=no 17220 ;; 17221 17222 bsdi[45]*) 17223 export_dynamic_flag_spec_GCJ=-rdynamic 17224 ;; 17225 17226 cygwin* | mingw* | pw32*) 17227 # When not using gcc, we currently assume that we are using 17228 # Microsoft Visual C++. 17229 # hardcode_libdir_flag_spec is actually meaningless, as there is 17230 # no search path for DLLs. 17231 hardcode_libdir_flag_spec_GCJ=' ' 17232 allow_undefined_flag_GCJ=unsupported 17233 # Tell ltmain to make .lib files, not .a files. 17234 libext=lib 17235 # Tell ltmain to make .dll files, not .so files. 17236 shrext_cmds=".dll" 17237 # FIXME: Setting linknames here is a bad hack. 17238 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17239 # The linker will automatically build a .lib file if we build a DLL. 17240 old_archive_From_new_cmds_GCJ='true' 17241 # FIXME: Should let the user specify the lib program. 17242 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17243 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17244 enable_shared_with_static_runtimes_GCJ=yes 17245 ;; 17246 17247 darwin* | rhapsody*) 17248 case $host_os in 17249 rhapsody* | darwin1.[012]) 17250 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17251 ;; 17252 *) # Darwin 1.3 on 17253 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17254 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17255 else 17256 case ${MACOSX_DEPLOYMENT_TARGET} in 17257 10.[012]) 17258 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17259 ;; 17260 10.*) 17261 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17262 ;; 17263 esac 17264 fi 17265 ;; 17266 esac 17267 archive_cmds_need_lc_GCJ=no 17268 hardcode_direct_GCJ=no 17269 hardcode_automatic_GCJ=yes 17270 hardcode_shlibpath_var_GCJ=unsupported 17271 whole_archive_flag_spec_GCJ='' 17272 link_all_deplibs_GCJ=yes 17273 if test "$GCC" = yes ; then 17274 output_verbose_link_cmd='echo' 17275 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17276 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17278 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17279 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17280 else 17281 case $cc_basename in 17282 xlc*) 17283 output_verbose_link_cmd='echo' 17284 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17285 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17286 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17287 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17288 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17289 ;; 17290 *) 17291 ld_shlibs_GCJ=no 17292 ;; 17293 esac 17294 fi 17295 ;; 17296 17297 dgux*) 17298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17299 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17300 hardcode_shlibpath_var_GCJ=no 17301 ;; 17302 17303 freebsd1*) 17304 ld_shlibs_GCJ=no 17305 ;; 17306 17307 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17308 # support. Future versions do this automatically, but an explicit c++rt0.o 17309 # does not break anything, and helps significantly (at the cost of a little 17310 # extra space). 17311 freebsd2.2*) 17312 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17313 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17314 hardcode_direct_GCJ=yes 17315 hardcode_shlibpath_var_GCJ=no 17316 ;; 17317 17318 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17319 freebsd2*) 17320 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17321 hardcode_direct_GCJ=yes 17322 hardcode_minus_L_GCJ=yes 17323 hardcode_shlibpath_var_GCJ=no 17324 ;; 17325 17326 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17327 freebsd* | dragonfly*) 17328 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17329 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17330 hardcode_direct_GCJ=yes 17331 hardcode_shlibpath_var_GCJ=no 17332 ;; 17333 17334 # GNU/kFreeBSD uses gcc -shared to do shared libraries. 17335 kfreebsd*-gnu) 17336 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17337 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17338 hardcode_direct_GCJ=yes 17339 hardcode_shlibpath_var_GCJ=no 17340 link_all_deplibs_GCJ=no 17341 ;; 17342 17343 hpux9*) 17344 if test "$GCC" = yes; then 17345 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17346 else 17347 archive_cmds_GCJ='$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' 17348 fi 17349 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17350 hardcode_libdir_separator_GCJ=: 17351 hardcode_direct_GCJ=yes 17352 17353 # hardcode_minus_L: Not really in the search PATH, 17354 # but as the default location of the library. 17355 hardcode_minus_L_GCJ=yes 17356 export_dynamic_flag_spec_GCJ='${wl}-E' 17357 ;; 17358 17359 hpux10*) 17360 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17361 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17362 else 17363 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17364 fi 17365 if test "$with_gnu_ld" = no; then 17366 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17367 hardcode_libdir_separator_GCJ=: 17368 17369 hardcode_direct_GCJ=yes 17370 export_dynamic_flag_spec_GCJ='${wl}-E' 17371 17372 # hardcode_minus_L: Not really in the search PATH, 17373 # but as the default location of the library. 17374 hardcode_minus_L_GCJ=yes 17375 fi 17376 ;; 17377 17378 hpux11*) 17379 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17380 case $host_cpu in 17381 hppa*64*) 17382 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17383 ;; 17384 ia64*) 17385 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17386 ;; 17387 *) 17388 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17389 ;; 17390 esac 17391 else 17392 case $host_cpu in 17393 hppa*64*) 17394 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17395 ;; 17396 ia64*) 17397 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17398 ;; 17399 *) 17400 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17401 ;; 17402 esac 17403 fi 17404 if test "$with_gnu_ld" = no; then 17405 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17406 hardcode_libdir_separator_GCJ=: 17407 17408 case $host_cpu in 17409 hppa*64*|ia64*) 17410 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17411 hardcode_direct_GCJ=no 17412 hardcode_shlibpath_var_GCJ=no 17413 ;; 17414 *) 17415 hardcode_direct_GCJ=yes 17416 export_dynamic_flag_spec_GCJ='${wl}-E' 17417 17418 # hardcode_minus_L: Not really in the search PATH, 17419 # but as the default location of the library. 17420 hardcode_minus_L_GCJ=yes 17421 ;; 17422 esac 17423 fi 17424 ;; 17425 17426 irix5* | irix6* | nonstopux*) 17427 if test "$GCC" = yes; then 17428 archive_cmds_GCJ='$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' 17429 else 17430 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17431 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17432 fi 17433 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17434 hardcode_libdir_separator_GCJ=: 17435 link_all_deplibs_GCJ=yes 17436 ;; 17437 17438 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 17439 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17440 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17441 else 17442 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17443 fi 17444 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17445 hardcode_direct_GCJ=yes 17446 hardcode_shlibpath_var_GCJ=no 17447 ;; 17448 17449 newsos6) 17450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17451 hardcode_direct_GCJ=yes 17452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17453 hardcode_libdir_separator_GCJ=: 17454 hardcode_shlibpath_var_GCJ=no 17455 ;; 17456 17457 openbsd*) 17458 hardcode_direct_GCJ=yes 17459 hardcode_shlibpath_var_GCJ=no 17460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17461 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17462 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17463 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17464 export_dynamic_flag_spec_GCJ='${wl}-E' 17465 else 17466 case $host_os in 17467 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17468 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17469 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17470 ;; 17471 *) 17472 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17474 ;; 17475 esac 17476 fi 17477 ;; 17478 17479 os2*) 17480 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17481 hardcode_minus_L_GCJ=yes 17482 allow_undefined_flag_GCJ=unsupported 17483 archive_cmds_GCJ='$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' 17484 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17485 ;; 17486 17487 osf3*) 17488 if test "$GCC" = yes; then 17489 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17490 archive_cmds_GCJ='$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' 17491 else 17492 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17493 archive_cmds_GCJ='$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' 17494 fi 17495 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17496 hardcode_libdir_separator_GCJ=: 17497 ;; 17498 17499 osf4* | osf5*) # as osf3* with the addition of -msym flag 17500 if test "$GCC" = yes; then 17501 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17502 archive_cmds_GCJ='$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' 17503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17504 else 17505 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17506 archive_cmds_GCJ='$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' 17507 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 17508 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17509 17510 # Both c and cxx compiler support -rpath directly 17511 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17512 fi 17513 hardcode_libdir_separator_GCJ=: 17514 ;; 17515 17516 solaris*) 17517 no_undefined_flag_GCJ=' -z text' 17518 if test "$GCC" = yes; then 17519 wlarc='${wl}' 17520 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17521 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17522 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17523 else 17524 wlarc='' 17525 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17526 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17527 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17528 fi 17529 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17530 hardcode_shlibpath_var_GCJ=no 17531 case $host_os in 17532 solaris2.[0-5] | solaris2.[0-5].*) ;; 17533 *) 17534 # The compiler driver will combine linker options so we 17535 # cannot just pass the convience library names through 17536 # without $wl, iff we do not link with $LD. 17537 # Luckily, gcc supports the same syntax we need for Sun Studio. 17538 # Supported since Solaris 2.6 (maybe 2.5.1?) 17539 case $wlarc in 17540 '') 17541 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17542 *) 17543 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17544 esac ;; 17545 esac 17546 link_all_deplibs_GCJ=yes 17547 ;; 17548 17549 sunos4*) 17550 if test "x$host_vendor" = xsequent; then 17551 # Use $CC to link under sequent, because it throws in some extra .o 17552 # files that make .init and .fini sections work. 17553 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17554 else 17555 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17556 fi 17557 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17558 hardcode_direct_GCJ=yes 17559 hardcode_minus_L_GCJ=yes 17560 hardcode_shlibpath_var_GCJ=no 17561 ;; 17562 17563 sysv4) 17564 case $host_vendor in 17565 sni) 17566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17567 hardcode_direct_GCJ=yes # is this really true??? 17568 ;; 17569 siemens) 17570 ## LD is ld it makes a PLAMLIB 17571 ## CC just makes a GrossModule. 17572 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17573 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17574 hardcode_direct_GCJ=no 17575 ;; 17576 motorola) 17577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17578 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17579 ;; 17580 esac 17581 runpath_var='LD_RUN_PATH' 17582 hardcode_shlibpath_var_GCJ=no 17583 ;; 17584 17585 sysv4.3*) 17586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17587 hardcode_shlibpath_var_GCJ=no 17588 export_dynamic_flag_spec_GCJ='-Bexport' 17589 ;; 17590 17591 sysv4*MP*) 17592 if test -d /usr/nec; then 17593 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17594 hardcode_shlibpath_var_GCJ=no 17595 runpath_var=LD_RUN_PATH 17596 hardcode_runpath_var=yes 17597 ld_shlibs_GCJ=yes 17598 fi 17599 ;; 17600 17601 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17602 no_undefined_flag_GCJ='${wl}-z,text' 17603 archive_cmds_need_lc_GCJ=no 17604 hardcode_shlibpath_var_GCJ=no 17605 runpath_var='LD_RUN_PATH' 17606 17607 if test "$GCC" = yes; then 17608 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17609 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17610 else 17611 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17612 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17613 fi 17614 ;; 17615 17616 sysv5* | sco3.2v5* | sco5v6*) 17617 # Note: We can NOT use -z defs as we might desire, because we do not 17618 # link with -lc, and that would cause any symbols used from libc to 17619 # always be unresolved, which means just about no library would 17620 # ever link correctly. If we're not using GNU ld we use -z text 17621 # though, which does catch some bad symbols but isn't as heavy-handed 17622 # as -z defs. 17623 no_undefined_flag_GCJ='${wl}-z,text' 17624 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17625 archive_cmds_need_lc_GCJ=no 17626 hardcode_shlibpath_var_GCJ=no 17627 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17628 hardcode_libdir_separator_GCJ=':' 17629 link_all_deplibs_GCJ=yes 17630 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17631 runpath_var='LD_RUN_PATH' 17632 17633 if test "$GCC" = yes; then 17634 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17635 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17636 else 17637 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17638 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17639 fi 17640 ;; 17641 17642 uts4*) 17643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17644 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17645 hardcode_shlibpath_var_GCJ=no 17646 ;; 17647 17648 *) 17649 ld_shlibs_GCJ=no 17650 ;; 17651 esac 17652 fi 17653 17654echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17655echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17656test "$ld_shlibs_GCJ" = no && can_build_shared=no 17657 17658# 17659# Do we need to explicitly link libc? 17660# 17661case "x$archive_cmds_need_lc_GCJ" in 17662x|xyes) 17663 # Assume -lc should be added 17664 archive_cmds_need_lc_GCJ=yes 17665 17666 if test "$enable_shared" = yes && test "$GCC" = yes; then 17667 case $archive_cmds_GCJ in 17668 *'~'*) 17669 # FIXME: we may have to deal with multi-command sequences. 17670 ;; 17671 '$CC '*) 17672 # Test whether the compiler implicitly links with -lc since on some 17673 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17674 # to ld, don't add -lc before -lgcc. 17675 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17676echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17677 $rm conftest* 17678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17679 17680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17681 (eval $ac_compile) 2>&5 17682 ac_status=$? 17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17684 (exit $ac_status); } 2>conftest.err; then 17685 soname=conftest 17686 lib=conftest 17687 libobjs=conftest.$ac_objext 17688 deplibs= 17689 wl=$lt_prog_compiler_wl_GCJ 17690 pic_flag=$lt_prog_compiler_pic_GCJ 17691 compiler_flags=-v 17692 linker_flags=-v 17693 verstring= 17694 output_objdir=. 17695 libname=conftest 17696 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17697 allow_undefined_flag_GCJ= 17698 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17699 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17700 ac_status=$? 17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17702 (exit $ac_status); } 17703 then 17704 archive_cmds_need_lc_GCJ=no 17705 else 17706 archive_cmds_need_lc_GCJ=yes 17707 fi 17708 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17709 else 17710 cat conftest.err 1>&5 17711 fi 17712 $rm conftest* 17713 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17714echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17715 ;; 17716 esac 17717 fi 17718 ;; 17719esac 17720 17721echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17722echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17723library_names_spec= 17724libname_spec='lib$name' 17725soname_spec= 17726shrext_cmds=".so" 17727postinstall_cmds= 17728postuninstall_cmds= 17729finish_cmds= 17730finish_eval= 17731shlibpath_var= 17732shlibpath_overrides_runpath=unknown 17733version_type=none 17734dynamic_linker="$host_os ld.so" 17735sys_lib_dlsearch_path_spec="/lib /usr/lib" 17736if test "$GCC" = yes; then 17737 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17738 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17739 # if the path contains ";" then we assume it to be the separator 17740 # otherwise default to the standard path separator (i.e. ":") - it is 17741 # assumed that no part of a normal pathname contains ";" but that should 17742 # okay in the real world where ";" in dirpaths is itself problematic. 17743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17744 else 17745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17746 fi 17747else 17748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17749fi 17750need_lib_prefix=unknown 17751hardcode_into_libs=no 17752 17753# when you set need_version to no, make sure it does not cause -set_version 17754# flags to be left without arguments 17755need_version=unknown 17756 17757case $host_os in 17758aix3*) 17759 version_type=linux 17760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17761 shlibpath_var=LIBPATH 17762 17763 # AIX 3 has no versioning support, so we append a major version to the name. 17764 soname_spec='${libname}${release}${shared_ext}$major' 17765 ;; 17766 17767aix4* | aix5*) 17768 version_type=linux 17769 need_lib_prefix=no 17770 need_version=no 17771 hardcode_into_libs=yes 17772 if test "$host_cpu" = ia64; then 17773 # AIX 5 supports IA64 17774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17775 shlibpath_var=LD_LIBRARY_PATH 17776 else 17777 # With GCC up to 2.95.x, collect2 would create an import file 17778 # for dependence libraries. The import file would start with 17779 # the line `#! .'. This would cause the generated library to 17780 # depend on `.', always an invalid library. This was fixed in 17781 # development snapshots of GCC prior to 3.0. 17782 case $host_os in 17783 aix4 | aix4.[01] | aix4.[01].*) 17784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17785 echo ' yes ' 17786 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17787 : 17788 else 17789 can_build_shared=no 17790 fi 17791 ;; 17792 esac 17793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17794 # soname into executable. Probably we can add versioning support to 17795 # collect2, so additional links can be useful in future. 17796 if test "$aix_use_runtimelinking" = yes; then 17797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17798 # instead of lib<name>.a to let people know that these are not 17799 # typical AIX shared libraries. 17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17801 else 17802 # We preserve .a as extension for shared libraries through AIX4.2 17803 # and later when we are not doing run time linking. 17804 library_names_spec='${libname}${release}.a $libname.a' 17805 soname_spec='${libname}${release}${shared_ext}$major' 17806 fi 17807 shlibpath_var=LIBPATH 17808 fi 17809 ;; 17810 17811amigaos*) 17812 library_names_spec='$libname.ixlibrary $libname.a' 17813 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17814 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' 17815 ;; 17816 17817beos*) 17818 library_names_spec='${libname}${shared_ext}' 17819 dynamic_linker="$host_os ld.so" 17820 shlibpath_var=LIBRARY_PATH 17821 ;; 17822 17823bsdi[45]*) 17824 version_type=linux 17825 need_version=no 17826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17827 soname_spec='${libname}${release}${shared_ext}$major' 17828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17829 shlibpath_var=LD_LIBRARY_PATH 17830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17832 # the default ld.so.conf also contains /usr/contrib/lib and 17833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17834 # libtool to hard-code these into programs 17835 ;; 17836 17837cygwin* | mingw* | pw32*) 17838 version_type=windows 17839 shrext_cmds=".dll" 17840 need_version=no 17841 need_lib_prefix=no 17842 17843 case $GCC,$host_os in 17844 yes,cygwin* | yes,mingw* | yes,pw32*) 17845 library_names_spec='$libname.dll.a' 17846 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17847 postinstall_cmds='base_file=`basename \${file}`~ 17848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17849 dldir=$destdir/`dirname \$dlpath`~ 17850 test -d \$dldir || mkdir -p \$dldir~ 17851 $install_prog $dir/$dlname \$dldir/$dlname~ 17852 chmod a+x \$dldir/$dlname' 17853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17854 dlpath=$dir/\$dldll~ 17855 $rm \$dlpath' 17856 shlibpath_overrides_runpath=yes 17857 17858 case $host_os in 17859 cygwin*) 17860 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17862 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17863 ;; 17864 mingw*) 17865 # MinGW DLLs use traditional 'lib' prefix 17866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17868 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17869 # It is most probably a Windows format PATH printed by 17870 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17871 # path with ; separators, and with drive letters. We can handle the 17872 # drive letters (cygwin fileutils understands them), so leave them, 17873 # especially as we might pass files found there to a mingw objdump, 17874 # which wouldn't understand a cygwinified path. Ahh. 17875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17876 else 17877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17878 fi 17879 ;; 17880 pw32*) 17881 # pw32 DLLs use 'pw' prefix rather than 'lib' 17882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17883 ;; 17884 esac 17885 ;; 17886 17887 *) 17888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17889 ;; 17890 esac 17891 dynamic_linker='Win32 ld.exe' 17892 # FIXME: first we should search . and the directory the executable is in 17893 shlibpath_var=PATH 17894 ;; 17895 17896darwin* | rhapsody*) 17897 dynamic_linker="$host_os dyld" 17898 version_type=darwin 17899 need_lib_prefix=no 17900 need_version=no 17901 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17902 soname_spec='${libname}${release}${major}$shared_ext' 17903 shlibpath_overrides_runpath=yes 17904 shlibpath_var=DYLD_LIBRARY_PATH 17905 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17906 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17907 if test "$GCC" = yes; then 17908 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17909 else 17910 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17911 fi 17912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17913 ;; 17914 17915dgux*) 17916 version_type=linux 17917 need_lib_prefix=no 17918 need_version=no 17919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17920 soname_spec='${libname}${release}${shared_ext}$major' 17921 shlibpath_var=LD_LIBRARY_PATH 17922 ;; 17923 17924freebsd1*) 17925 dynamic_linker=no 17926 ;; 17927 17928kfreebsd*-gnu) 17929 version_type=linux 17930 need_lib_prefix=no 17931 need_version=no 17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17933 soname_spec='${libname}${release}${shared_ext}$major' 17934 shlibpath_var=LD_LIBRARY_PATH 17935 shlibpath_overrides_runpath=no 17936 hardcode_into_libs=yes 17937 dynamic_linker='GNU ld.so' 17938 ;; 17939 17940freebsd* | dragonfly*) 17941 # DragonFly does not have aout. When/if they implement a new 17942 # versioning mechanism, adjust this. 17943 if test -x /usr/bin/objformat; then 17944 objformat=`/usr/bin/objformat` 17945 else 17946 case $host_os in 17947 freebsd[123]*) objformat=aout ;; 17948 *) objformat=elf ;; 17949 esac 17950 fi 17951 version_type=freebsd-$objformat 17952 case $version_type in 17953 freebsd-elf*) 17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17955 need_version=no 17956 need_lib_prefix=no 17957 ;; 17958 freebsd-*) 17959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17960 need_version=yes 17961 ;; 17962 esac 17963 shlibpath_var=LD_LIBRARY_PATH 17964 case $host_os in 17965 freebsd2*) 17966 shlibpath_overrides_runpath=yes 17967 ;; 17968 freebsd3.[01]* | freebsdelf3.[01]*) 17969 shlibpath_overrides_runpath=yes 17970 hardcode_into_libs=yes 17971 ;; 17972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17974 shlibpath_overrides_runpath=no 17975 hardcode_into_libs=yes 17976 ;; 17977 freebsd*) # from 4.6 on 17978 shlibpath_overrides_runpath=yes 17979 hardcode_into_libs=yes 17980 ;; 17981 esac 17982 ;; 17983 17984gnu*) 17985 version_type=linux 17986 need_lib_prefix=no 17987 need_version=no 17988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17989 soname_spec='${libname}${release}${shared_ext}$major' 17990 shlibpath_var=LD_LIBRARY_PATH 17991 hardcode_into_libs=yes 17992 ;; 17993 17994hpux9* | hpux10* | hpux11*) 17995 # Give a soname corresponding to the major version so that dld.sl refuses to 17996 # link against other versions. 17997 version_type=sunos 17998 need_lib_prefix=no 17999 need_version=no 18000 case $host_cpu in 18001 ia64*) 18002 shrext_cmds='.so' 18003 hardcode_into_libs=yes 18004 dynamic_linker="$host_os dld.so" 18005 shlibpath_var=LD_LIBRARY_PATH 18006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18008 soname_spec='${libname}${release}${shared_ext}$major' 18009 if test "X$HPUX_IA64_MODE" = X32; then 18010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18011 else 18012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18013 fi 18014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18015 ;; 18016 hppa*64*) 18017 shrext_cmds='.sl' 18018 hardcode_into_libs=yes 18019 dynamic_linker="$host_os dld.sl" 18020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18023 soname_spec='${libname}${release}${shared_ext}$major' 18024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18026 ;; 18027 *) 18028 shrext_cmds='.sl' 18029 dynamic_linker="$host_os dld.sl" 18030 shlibpath_var=SHLIB_PATH 18031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18033 soname_spec='${libname}${release}${shared_ext}$major' 18034 ;; 18035 esac 18036 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18037 postinstall_cmds='chmod 555 $lib' 18038 ;; 18039 18040interix3*) 18041 version_type=linux 18042 need_lib_prefix=no 18043 need_version=no 18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18045 soname_spec='${libname}${release}${shared_ext}$major' 18046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18047 shlibpath_var=LD_LIBRARY_PATH 18048 shlibpath_overrides_runpath=no 18049 hardcode_into_libs=yes 18050 ;; 18051 18052irix5* | irix6* | nonstopux*) 18053 case $host_os in 18054 nonstopux*) version_type=nonstopux ;; 18055 *) 18056 if test "$lt_cv_prog_gnu_ld" = yes; then 18057 version_type=linux 18058 else 18059 version_type=irix 18060 fi ;; 18061 esac 18062 need_lib_prefix=no 18063 need_version=no 18064 soname_spec='${libname}${release}${shared_ext}$major' 18065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18066 case $host_os in 18067 irix5* | nonstopux*) 18068 libsuff= shlibsuff= 18069 ;; 18070 *) 18071 case $LD in # libtool.m4 will add one of these switches to LD 18072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18073 libsuff= shlibsuff= libmagic=32-bit;; 18074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18075 libsuff=32 shlibsuff=N32 libmagic=N32;; 18076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18077 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18078 *) libsuff= shlibsuff= libmagic=never-match;; 18079 esac 18080 ;; 18081 esac 18082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18083 shlibpath_overrides_runpath=no 18084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18086 hardcode_into_libs=yes 18087 ;; 18088 18089# No shared lib support for Linux oldld, aout, or coff. 18090linux*oldld* | linux*aout* | linux*coff*) 18091 dynamic_linker=no 18092 ;; 18093 18094# This must be Linux ELF. 18095linux*) 18096 version_type=linux 18097 need_lib_prefix=no 18098 need_version=no 18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18100 soname_spec='${libname}${release}${shared_ext}$major' 18101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18102 shlibpath_var=LD_LIBRARY_PATH 18103 shlibpath_overrides_runpath=no 18104 # This implies no fast_install, which is unacceptable. 18105 # Some rework will be needed to allow for fast_install 18106 # before this can be enabled. 18107 hardcode_into_libs=yes 18108 18109 # Append ld.so.conf contents to the search path 18110 if test -f /etc/ld.so.conf; then 18111 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18113 fi 18114 18115 # We used to test for /lib/ld.so.1 and disable shared libraries on 18116 # powerpc, because MkLinux only supported shared libraries with the 18117 # GNU dynamic linker. Since this was broken with cross compilers, 18118 # most powerpc-linux boxes support dynamic linking these days and 18119 # people can always --disable-shared, the test was removed, and we 18120 # assume the GNU/Linux dynamic linker is in use. 18121 dynamic_linker='GNU/Linux ld.so' 18122 ;; 18123 18124netbsdelf*-gnu) 18125 version_type=linux 18126 need_lib_prefix=no 18127 need_version=no 18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18129 soname_spec='${libname}${release}${shared_ext}$major' 18130 shlibpath_var=LD_LIBRARY_PATH 18131 shlibpath_overrides_runpath=no 18132 hardcode_into_libs=yes 18133 dynamic_linker='NetBSD ld.elf_so' 18134 ;; 18135 18136knetbsd*-gnu) 18137 version_type=linux 18138 need_lib_prefix=no 18139 need_version=no 18140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18141 soname_spec='${libname}${release}${shared_ext}$major' 18142 shlibpath_var=LD_LIBRARY_PATH 18143 shlibpath_overrides_runpath=no 18144 hardcode_into_libs=yes 18145 dynamic_linker='GNU ld.so' 18146 ;; 18147 18148netbsd*) 18149 version_type=sunos 18150 need_lib_prefix=no 18151 need_version=no 18152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18155 dynamic_linker='NetBSD (a.out) ld.so' 18156 else 18157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18158 soname_spec='${libname}${release}${shared_ext}$major' 18159 dynamic_linker='NetBSD ld.elf_so' 18160 fi 18161 shlibpath_var=LD_LIBRARY_PATH 18162 shlibpath_overrides_runpath=yes 18163 hardcode_into_libs=yes 18164 ;; 18165 18166newsos6) 18167 version_type=linux 18168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18169 shlibpath_var=LD_LIBRARY_PATH 18170 shlibpath_overrides_runpath=yes 18171 ;; 18172 18173nto-qnx*) 18174 version_type=linux 18175 need_lib_prefix=no 18176 need_version=no 18177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18178 soname_spec='${libname}${release}${shared_ext}$major' 18179 shlibpath_var=LD_LIBRARY_PATH 18180 shlibpath_overrides_runpath=yes 18181 ;; 18182 18183openbsd*) 18184 version_type=sunos 18185 sys_lib_dlsearch_path_spec="/usr/lib" 18186 need_lib_prefix=no 18187 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18188 case $host_os in 18189 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18190 *) need_version=no ;; 18191 esac 18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18194 shlibpath_var=LD_LIBRARY_PATH 18195 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18196 case $host_os in 18197 openbsd2.[89] | openbsd2.[89].*) 18198 shlibpath_overrides_runpath=no 18199 ;; 18200 *) 18201 shlibpath_overrides_runpath=yes 18202 ;; 18203 esac 18204 else 18205 shlibpath_overrides_runpath=yes 18206 fi 18207 ;; 18208 18209os2*) 18210 libname_spec='$name' 18211 shrext_cmds=".dll" 18212 need_lib_prefix=no 18213 library_names_spec='$libname${shared_ext} $libname.a' 18214 dynamic_linker='OS/2 ld.exe' 18215 shlibpath_var=LIBPATH 18216 ;; 18217 18218osf3* | osf4* | osf5*) 18219 version_type=osf 18220 need_lib_prefix=no 18221 need_version=no 18222 soname_spec='${libname}${release}${shared_ext}$major' 18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18224 shlibpath_var=LD_LIBRARY_PATH 18225 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18226 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18227 ;; 18228 18229solaris*) 18230 version_type=linux 18231 need_lib_prefix=no 18232 need_version=no 18233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18234 soname_spec='${libname}${release}${shared_ext}$major' 18235 shlibpath_var=LD_LIBRARY_PATH 18236 shlibpath_overrides_runpath=yes 18237 hardcode_into_libs=yes 18238 # ldd complains unless libraries are executable 18239 postinstall_cmds='chmod +x $lib' 18240 ;; 18241 18242sunos4*) 18243 version_type=sunos 18244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18246 shlibpath_var=LD_LIBRARY_PATH 18247 shlibpath_overrides_runpath=yes 18248 if test "$with_gnu_ld" = yes; then 18249 need_lib_prefix=no 18250 fi 18251 need_version=yes 18252 ;; 18253 18254sysv4 | sysv4.3*) 18255 version_type=linux 18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18257 soname_spec='${libname}${release}${shared_ext}$major' 18258 shlibpath_var=LD_LIBRARY_PATH 18259 case $host_vendor in 18260 sni) 18261 shlibpath_overrides_runpath=no 18262 need_lib_prefix=no 18263 export_dynamic_flag_spec='${wl}-Blargedynsym' 18264 runpath_var=LD_RUN_PATH 18265 ;; 18266 siemens) 18267 need_lib_prefix=no 18268 ;; 18269 motorola) 18270 need_lib_prefix=no 18271 need_version=no 18272 shlibpath_overrides_runpath=no 18273 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18274 ;; 18275 esac 18276 ;; 18277 18278sysv4*MP*) 18279 if test -d /usr/nec ;then 18280 version_type=linux 18281 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18282 soname_spec='$libname${shared_ext}.$major' 18283 shlibpath_var=LD_LIBRARY_PATH 18284 fi 18285 ;; 18286 18287sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18288 version_type=freebsd-elf 18289 need_lib_prefix=no 18290 need_version=no 18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18292 soname_spec='${libname}${release}${shared_ext}$major' 18293 shlibpath_var=LD_LIBRARY_PATH 18294 hardcode_into_libs=yes 18295 if test "$with_gnu_ld" = yes; then 18296 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18297 shlibpath_overrides_runpath=no 18298 else 18299 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18300 shlibpath_overrides_runpath=yes 18301 case $host_os in 18302 sco3.2v5*) 18303 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18304 ;; 18305 esac 18306 fi 18307 sys_lib_dlsearch_path_spec='/usr/lib' 18308 ;; 18309 18310uts4*) 18311 version_type=linux 18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18313 soname_spec='${libname}${release}${shared_ext}$major' 18314 shlibpath_var=LD_LIBRARY_PATH 18315 ;; 18316 18317*) 18318 dynamic_linker=no 18319 ;; 18320esac 18321echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18322echo "${ECHO_T}$dynamic_linker" >&6 18323test "$dynamic_linker" = no && can_build_shared=no 18324 18325variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18326if test "$GCC" = yes; then 18327 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18328fi 18329 18330echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18331echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18332hardcode_action_GCJ= 18333if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18334 test -n "$runpath_var_GCJ" || \ 18335 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18336 18337 # We can hardcode non-existant directories. 18338 if test "$hardcode_direct_GCJ" != no && 18339 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18340 # have to relink, otherwise we might link with an installed library 18341 # when we should be linking with a yet-to-be-installed one 18342 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18343 test "$hardcode_minus_L_GCJ" != no; then 18344 # Linking always hardcodes the temporary library directory. 18345 hardcode_action_GCJ=relink 18346 else 18347 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18348 hardcode_action_GCJ=immediate 18349 fi 18350else 18351 # We cannot hardcode anything, or else we can only hardcode existing 18352 # directories. 18353 hardcode_action_GCJ=unsupported 18354fi 18355echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18356echo "${ECHO_T}$hardcode_action_GCJ" >&6 18357 18358if test "$hardcode_action_GCJ" = relink; then 18359 # Fast installation is not supported 18360 enable_fast_install=no 18361elif test "$shlibpath_overrides_runpath" = yes || 18362 test "$enable_shared" = no; then 18363 # Fast installation is not necessary 18364 enable_fast_install=needless 18365fi 18366 18367 18368# The else clause should only fire when bootstrapping the 18369# libtool distribution, otherwise you forgot to ship ltmain.sh 18370# with your package, and you will get complaints that there are 18371# no rules to generate ltmain.sh. 18372if test -f "$ltmain"; then 18373 # See if we are running on zsh, and set the options which allow our commands through 18374 # without removal of \ escapes. 18375 if test -n "${ZSH_VERSION+set}" ; then 18376 setopt NO_GLOB_SUBST 18377 fi 18378 # Now quote all the things that may contain metacharacters while being 18379 # careful not to overquote the AC_SUBSTed values. We take copies of the 18380 # variables and quote the copies for generation of the libtool script. 18381 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18382 SED SHELL STRIP \ 18383 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18384 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18385 deplibs_check_method reload_flag reload_cmds need_locks \ 18386 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18387 lt_cv_sys_global_symbol_to_c_name_address \ 18388 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18389 old_postinstall_cmds old_postuninstall_cmds \ 18390 compiler_GCJ \ 18391 CC_GCJ \ 18392 LD_GCJ \ 18393 lt_prog_compiler_wl_GCJ \ 18394 lt_prog_compiler_pic_GCJ \ 18395 lt_prog_compiler_static_GCJ \ 18396 lt_prog_compiler_no_builtin_flag_GCJ \ 18397 export_dynamic_flag_spec_GCJ \ 18398 thread_safe_flag_spec_GCJ \ 18399 whole_archive_flag_spec_GCJ \ 18400 enable_shared_with_static_runtimes_GCJ \ 18401 old_archive_cmds_GCJ \ 18402 old_archive_from_new_cmds_GCJ \ 18403 predep_objects_GCJ \ 18404 postdep_objects_GCJ \ 18405 predeps_GCJ \ 18406 postdeps_GCJ \ 18407 compiler_lib_search_path_GCJ \ 18408 archive_cmds_GCJ \ 18409 archive_expsym_cmds_GCJ \ 18410 postinstall_cmds_GCJ \ 18411 postuninstall_cmds_GCJ \ 18412 old_archive_from_expsyms_cmds_GCJ \ 18413 allow_undefined_flag_GCJ \ 18414 no_undefined_flag_GCJ \ 18415 export_symbols_cmds_GCJ \ 18416 hardcode_libdir_flag_spec_GCJ \ 18417 hardcode_libdir_flag_spec_ld_GCJ \ 18418 hardcode_libdir_separator_GCJ \ 18419 hardcode_automatic_GCJ \ 18420 module_cmds_GCJ \ 18421 module_expsym_cmds_GCJ \ 18422 lt_cv_prog_compiler_c_o_GCJ \ 18423 exclude_expsyms_GCJ \ 18424 include_expsyms_GCJ; do 18425 18426 case $var in 18427 old_archive_cmds_GCJ | \ 18428 old_archive_from_new_cmds_GCJ | \ 18429 archive_cmds_GCJ | \ 18430 archive_expsym_cmds_GCJ | \ 18431 module_cmds_GCJ | \ 18432 module_expsym_cmds_GCJ | \ 18433 old_archive_from_expsyms_cmds_GCJ | \ 18434 export_symbols_cmds_GCJ | \ 18435 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18436 postinstall_cmds | postuninstall_cmds | \ 18437 old_postinstall_cmds | old_postuninstall_cmds | \ 18438 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18439 # Double-quote double-evaled strings. 18440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18441 ;; 18442 *) 18443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18444 ;; 18445 esac 18446 done 18447 18448 case $lt_echo in 18449 *'\$0 --fallback-echo"') 18450 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18451 ;; 18452 esac 18453 18454cfgfile="$ofile" 18455 18456 cat <<__EOF__ >> "$cfgfile" 18457# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18458 18459# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18460 18461# Shell to use when invoking shell scripts. 18462SHELL=$lt_SHELL 18463 18464# Whether or not to build shared libraries. 18465build_libtool_libs=$enable_shared 18466 18467# Whether or not to build static libraries. 18468build_old_libs=$enable_static 18469 18470# Whether or not to add -lc for building shared libraries. 18471build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18472 18473# Whether or not to disallow shared libs when runtime libs are static 18474allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18475 18476# Whether or not to optimize for fast installation. 18477fast_install=$enable_fast_install 18478 18479# The host system. 18480host_alias=$host_alias 18481host=$host 18482host_os=$host_os 18483 18484# The build system. 18485build_alias=$build_alias 18486build=$build 18487build_os=$build_os 18488 18489# An echo program that does not interpret backslashes. 18490echo=$lt_echo 18491 18492# The archiver. 18493AR=$lt_AR 18494AR_FLAGS=$lt_AR_FLAGS 18495 18496# A C compiler. 18497LTCC=$lt_LTCC 18498 18499# LTCC compiler flags. 18500LTCFLAGS=$lt_LTCFLAGS 18501 18502# A language-specific compiler. 18503CC=$lt_compiler_GCJ 18504 18505# Is the compiler the GNU C compiler? 18506with_gcc=$GCC_GCJ 18507 18508# An ERE matcher. 18509EGREP=$lt_EGREP 18510 18511# The linker used to build libraries. 18512LD=$lt_LD_GCJ 18513 18514# Whether we need hard or soft links. 18515LN_S=$lt_LN_S 18516 18517# A BSD-compatible nm program. 18518NM=$lt_NM 18519 18520# A symbol stripping program 18521STRIP=$lt_STRIP 18522 18523# Used to examine libraries when file_magic_cmd begins "file" 18524MAGIC_CMD=$MAGIC_CMD 18525 18526# Used on cygwin: DLL creation program. 18527DLLTOOL="$DLLTOOL" 18528 18529# Used on cygwin: object dumper. 18530OBJDUMP="$OBJDUMP" 18531 18532# Used on cygwin: assembler. 18533AS="$AS" 18534 18535# The name of the directory that contains temporary libtool files. 18536objdir=$objdir 18537 18538# How to create reloadable object files. 18539reload_flag=$lt_reload_flag 18540reload_cmds=$lt_reload_cmds 18541 18542# How to pass a linker flag through the compiler. 18543wl=$lt_lt_prog_compiler_wl_GCJ 18544 18545# Object file suffix (normally "o"). 18546objext="$ac_objext" 18547 18548# Old archive suffix (normally "a"). 18549libext="$libext" 18550 18551# Shared library suffix (normally ".so"). 18552shrext_cmds='$shrext_cmds' 18553 18554# Executable file suffix (normally ""). 18555exeext="$exeext" 18556 18557# Additional compiler flags for building library objects. 18558pic_flag=$lt_lt_prog_compiler_pic_GCJ 18559pic_mode=$pic_mode 18560 18561# What is the maximum length of a command? 18562max_cmd_len=$lt_cv_sys_max_cmd_len 18563 18564# Does compiler simultaneously support -c and -o options? 18565compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18566 18567# Must we lock files when doing compilation? 18568need_locks=$lt_need_locks 18569 18570# Do we need the lib prefix for modules? 18571need_lib_prefix=$need_lib_prefix 18572 18573# Do we need a version for libraries? 18574need_version=$need_version 18575 18576# Whether dlopen is supported. 18577dlopen_support=$enable_dlopen 18578 18579# Whether dlopen of programs is supported. 18580dlopen_self=$enable_dlopen_self 18581 18582# Whether dlopen of statically linked programs is supported. 18583dlopen_self_static=$enable_dlopen_self_static 18584 18585# Compiler flag to prevent dynamic linking. 18586link_static_flag=$lt_lt_prog_compiler_static_GCJ 18587 18588# Compiler flag to turn off builtin functions. 18589no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18590 18591# Compiler flag to allow reflexive dlopens. 18592export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18593 18594# Compiler flag to generate shared objects directly from archives. 18595whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18596 18597# Compiler flag to generate thread-safe objects. 18598thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18599 18600# Library versioning type. 18601version_type=$version_type 18602 18603# Format of library name prefix. 18604libname_spec=$lt_libname_spec 18605 18606# List of archive names. First name is the real one, the rest are links. 18607# The last name is the one that the linker finds with -lNAME. 18608library_names_spec=$lt_library_names_spec 18609 18610# The coded name of the library, if different from the real name. 18611soname_spec=$lt_soname_spec 18612 18613# Commands used to build and install an old-style archive. 18614RANLIB=$lt_RANLIB 18615old_archive_cmds=$lt_old_archive_cmds_GCJ 18616old_postinstall_cmds=$lt_old_postinstall_cmds 18617old_postuninstall_cmds=$lt_old_postuninstall_cmds 18618 18619# Create an old-style archive from a shared archive. 18620old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18621 18622# Create a temporary old-style archive to link instead of a shared archive. 18623old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18624 18625# Commands used to build and install a shared archive. 18626archive_cmds=$lt_archive_cmds_GCJ 18627archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18628postinstall_cmds=$lt_postinstall_cmds 18629postuninstall_cmds=$lt_postuninstall_cmds 18630 18631# Commands used to build a loadable module (assumed same as above if empty) 18632module_cmds=$lt_module_cmds_GCJ 18633module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18634 18635# Commands to strip libraries. 18636old_striplib=$lt_old_striplib 18637striplib=$lt_striplib 18638 18639# Dependencies to place before the objects being linked to create a 18640# shared library. 18641predep_objects=$lt_predep_objects_GCJ 18642 18643# Dependencies to place after the objects being linked to create a 18644# shared library. 18645postdep_objects=$lt_postdep_objects_GCJ 18646 18647# Dependencies to place before the objects being linked to create a 18648# shared library. 18649predeps=$lt_predeps_GCJ 18650 18651# Dependencies to place after the objects being linked to create a 18652# shared library. 18653postdeps=$lt_postdeps_GCJ 18654 18655# The library search path used internally by the compiler when linking 18656# a shared library. 18657compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18658 18659# Method to check whether dependent libraries are shared objects. 18660deplibs_check_method=$lt_deplibs_check_method 18661 18662# Command to use when deplibs_check_method == file_magic. 18663file_magic_cmd=$lt_file_magic_cmd 18664 18665# Flag that allows shared libraries with undefined symbols to be built. 18666allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18667 18668# Flag that forces no undefined symbols. 18669no_undefined_flag=$lt_no_undefined_flag_GCJ 18670 18671# Commands used to finish a libtool library installation in a directory. 18672finish_cmds=$lt_finish_cmds 18673 18674# Same as above, but a single script fragment to be evaled but not shown. 18675finish_eval=$lt_finish_eval 18676 18677# Take the output of nm and produce a listing of raw symbols and C names. 18678global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18679 18680# Transform the output of nm in a proper C declaration 18681global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18682 18683# Transform the output of nm in a C name address pair 18684global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18685 18686# This is the shared library runtime path variable. 18687runpath_var=$runpath_var 18688 18689# This is the shared library path variable. 18690shlibpath_var=$shlibpath_var 18691 18692# Is shlibpath searched before the hard-coded library search path? 18693shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18694 18695# How to hardcode a shared library path into an executable. 18696hardcode_action=$hardcode_action_GCJ 18697 18698# Whether we should hardcode library paths into libraries. 18699hardcode_into_libs=$hardcode_into_libs 18700 18701# Flag to hardcode \$libdir into a binary during linking. 18702# This must work even if \$libdir does not exist. 18703hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18704 18705# If ld is used when linking, flag to hardcode \$libdir into 18706# a binary during linking. This must work even if \$libdir does 18707# not exist. 18708hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18709 18710# Whether we need a single -rpath flag with a separated argument. 18711hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18712 18713# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18714# resulting binary. 18715hardcode_direct=$hardcode_direct_GCJ 18716 18717# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18718# resulting binary. 18719hardcode_minus_L=$hardcode_minus_L_GCJ 18720 18721# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18722# the resulting binary. 18723hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18724 18725# Set to yes if building a shared library automatically hardcodes DIR into the library 18726# and all subsequent libraries and executables linked against it. 18727hardcode_automatic=$hardcode_automatic_GCJ 18728 18729# Variables whose values should be saved in libtool wrapper scripts and 18730# restored at relink time. 18731variables_saved_for_relink="$variables_saved_for_relink" 18732 18733# Whether libtool must link a program against all its dependency libraries. 18734link_all_deplibs=$link_all_deplibs_GCJ 18735 18736# Compile-time system search path for libraries 18737sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18738 18739# Run-time system search path for libraries 18740sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18741 18742# Fix the shell variable \$srcfile for the compiler. 18743fix_srcfile_path="$fix_srcfile_path_GCJ" 18744 18745# Set to yes if exported symbols are required. 18746always_export_symbols=$always_export_symbols_GCJ 18747 18748# The commands to list exported symbols. 18749export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18750 18751# The commands to extract the exported symbol list from a shared archive. 18752extract_expsyms_cmds=$lt_extract_expsyms_cmds 18753 18754# Symbols that should not be listed in the preloaded symbols. 18755exclude_expsyms=$lt_exclude_expsyms_GCJ 18756 18757# Symbols that must always be exported. 18758include_expsyms=$lt_include_expsyms_GCJ 18759 18760# ### END LIBTOOL TAG CONFIG: $tagname 18761 18762__EOF__ 18763 18764 18765else 18766 # If there is no Makefile yet, we rely on a make rule to execute 18767 # `config.status --recheck' to rerun these tests and create the 18768 # libtool script then. 18769 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18770 if test -f "$ltmain_in"; then 18771 test -f Makefile && make "$ltmain" 18772 fi 18773fi 18774 18775 18776ac_ext=c 18777ac_cpp='$CPP $CPPFLAGS' 18778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18780ac_compiler_gnu=$ac_cv_c_compiler_gnu 18781 18782CC="$lt_save_CC" 18783 18784 else 18785 tagname="" 18786 fi 18787 ;; 18788 18789 RC) 18790 18791 18792 18793# Source file extension for RC test sources. 18794ac_ext=rc 18795 18796# Object file extension for compiled RC test sources. 18797objext=o 18798objext_RC=$objext 18799 18800# Code to be used in simple compile tests 18801lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18802 18803# Code to be used in simple link tests 18804lt_simple_link_test_code="$lt_simple_compile_test_code" 18805 18806# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18807 18808# If no C compiler was specified, use CC. 18809LTCC=${LTCC-"$CC"} 18810 18811# If no C compiler flags were specified, use CFLAGS. 18812LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18813 18814# Allow CC to be a program name with arguments. 18815compiler=$CC 18816 18817 18818# save warnings/boilerplate of simple test code 18819ac_outfile=conftest.$ac_objext 18820printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18821eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18822_lt_compiler_boilerplate=`cat conftest.err` 18823$rm conftest* 18824 18825ac_outfile=conftest.$ac_objext 18826printf "$lt_simple_link_test_code" >conftest.$ac_ext 18827eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18828_lt_linker_boilerplate=`cat conftest.err` 18829$rm conftest* 18830 18831 18832# Allow CC to be a program name with arguments. 18833lt_save_CC="$CC" 18834CC=${RC-"windres"} 18835compiler=$CC 18836compiler_RC=$CC 18837for cc_temp in $compiler""; do 18838 case $cc_temp in 18839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18841 \-*) ;; 18842 *) break;; 18843 esac 18844done 18845cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18846 18847lt_cv_prog_compiler_c_o_RC=yes 18848 18849# The else clause should only fire when bootstrapping the 18850# libtool distribution, otherwise you forgot to ship ltmain.sh 18851# with your package, and you will get complaints that there are 18852# no rules to generate ltmain.sh. 18853if test -f "$ltmain"; then 18854 # See if we are running on zsh, and set the options which allow our commands through 18855 # without removal of \ escapes. 18856 if test -n "${ZSH_VERSION+set}" ; then 18857 setopt NO_GLOB_SUBST 18858 fi 18859 # Now quote all the things that may contain metacharacters while being 18860 # careful not to overquote the AC_SUBSTed values. We take copies of the 18861 # variables and quote the copies for generation of the libtool script. 18862 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18863 SED SHELL STRIP \ 18864 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18865 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18866 deplibs_check_method reload_flag reload_cmds need_locks \ 18867 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18868 lt_cv_sys_global_symbol_to_c_name_address \ 18869 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18870 old_postinstall_cmds old_postuninstall_cmds \ 18871 compiler_RC \ 18872 CC_RC \ 18873 LD_RC \ 18874 lt_prog_compiler_wl_RC \ 18875 lt_prog_compiler_pic_RC \ 18876 lt_prog_compiler_static_RC \ 18877 lt_prog_compiler_no_builtin_flag_RC \ 18878 export_dynamic_flag_spec_RC \ 18879 thread_safe_flag_spec_RC \ 18880 whole_archive_flag_spec_RC \ 18881 enable_shared_with_static_runtimes_RC \ 18882 old_archive_cmds_RC \ 18883 old_archive_from_new_cmds_RC \ 18884 predep_objects_RC \ 18885 postdep_objects_RC \ 18886 predeps_RC \ 18887 postdeps_RC \ 18888 compiler_lib_search_path_RC \ 18889 archive_cmds_RC \ 18890 archive_expsym_cmds_RC \ 18891 postinstall_cmds_RC \ 18892 postuninstall_cmds_RC \ 18893 old_archive_from_expsyms_cmds_RC \ 18894 allow_undefined_flag_RC \ 18895 no_undefined_flag_RC \ 18896 export_symbols_cmds_RC \ 18897 hardcode_libdir_flag_spec_RC \ 18898 hardcode_libdir_flag_spec_ld_RC \ 18899 hardcode_libdir_separator_RC \ 18900 hardcode_automatic_RC \ 18901 module_cmds_RC \ 18902 module_expsym_cmds_RC \ 18903 lt_cv_prog_compiler_c_o_RC \ 18904 exclude_expsyms_RC \ 18905 include_expsyms_RC; do 18906 18907 case $var in 18908 old_archive_cmds_RC | \ 18909 old_archive_from_new_cmds_RC | \ 18910 archive_cmds_RC | \ 18911 archive_expsym_cmds_RC | \ 18912 module_cmds_RC | \ 18913 module_expsym_cmds_RC | \ 18914 old_archive_from_expsyms_cmds_RC | \ 18915 export_symbols_cmds_RC | \ 18916 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18917 postinstall_cmds | postuninstall_cmds | \ 18918 old_postinstall_cmds | old_postuninstall_cmds | \ 18919 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18920 # Double-quote double-evaled strings. 18921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18922 ;; 18923 *) 18924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18925 ;; 18926 esac 18927 done 18928 18929 case $lt_echo in 18930 *'\$0 --fallback-echo"') 18931 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18932 ;; 18933 esac 18934 18935cfgfile="$ofile" 18936 18937 cat <<__EOF__ >> "$cfgfile" 18938# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18939 18940# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18941 18942# Shell to use when invoking shell scripts. 18943SHELL=$lt_SHELL 18944 18945# Whether or not to build shared libraries. 18946build_libtool_libs=$enable_shared 18947 18948# Whether or not to build static libraries. 18949build_old_libs=$enable_static 18950 18951# Whether or not to add -lc for building shared libraries. 18952build_libtool_need_lc=$archive_cmds_need_lc_RC 18953 18954# Whether or not to disallow shared libs when runtime libs are static 18955allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18956 18957# Whether or not to optimize for fast installation. 18958fast_install=$enable_fast_install 18959 18960# The host system. 18961host_alias=$host_alias 18962host=$host 18963host_os=$host_os 18964 18965# The build system. 18966build_alias=$build_alias 18967build=$build 18968build_os=$build_os 18969 18970# An echo program that does not interpret backslashes. 18971echo=$lt_echo 18972 18973# The archiver. 18974AR=$lt_AR 18975AR_FLAGS=$lt_AR_FLAGS 18976 18977# A C compiler. 18978LTCC=$lt_LTCC 18979 18980# LTCC compiler flags. 18981LTCFLAGS=$lt_LTCFLAGS 18982 18983# A language-specific compiler. 18984CC=$lt_compiler_RC 18985 18986# Is the compiler the GNU C compiler? 18987with_gcc=$GCC_RC 18988 18989# An ERE matcher. 18990EGREP=$lt_EGREP 18991 18992# The linker used to build libraries. 18993LD=$lt_LD_RC 18994 18995# Whether we need hard or soft links. 18996LN_S=$lt_LN_S 18997 18998# A BSD-compatible nm program. 18999NM=$lt_NM 19000 19001# A symbol stripping program 19002STRIP=$lt_STRIP 19003 19004# Used to examine libraries when file_magic_cmd begins "file" 19005MAGIC_CMD=$MAGIC_CMD 19006 19007# Used on cygwin: DLL creation program. 19008DLLTOOL="$DLLTOOL" 19009 19010# Used on cygwin: object dumper. 19011OBJDUMP="$OBJDUMP" 19012 19013# Used on cygwin: assembler. 19014AS="$AS" 19015 19016# The name of the directory that contains temporary libtool files. 19017objdir=$objdir 19018 19019# How to create reloadable object files. 19020reload_flag=$lt_reload_flag 19021reload_cmds=$lt_reload_cmds 19022 19023# How to pass a linker flag through the compiler. 19024wl=$lt_lt_prog_compiler_wl_RC 19025 19026# Object file suffix (normally "o"). 19027objext="$ac_objext" 19028 19029# Old archive suffix (normally "a"). 19030libext="$libext" 19031 19032# Shared library suffix (normally ".so"). 19033shrext_cmds='$shrext_cmds' 19034 19035# Executable file suffix (normally ""). 19036exeext="$exeext" 19037 19038# Additional compiler flags for building library objects. 19039pic_flag=$lt_lt_prog_compiler_pic_RC 19040pic_mode=$pic_mode 19041 19042# What is the maximum length of a command? 19043max_cmd_len=$lt_cv_sys_max_cmd_len 19044 19045# Does compiler simultaneously support -c and -o options? 19046compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19047 19048# Must we lock files when doing compilation? 19049need_locks=$lt_need_locks 19050 19051# Do we need the lib prefix for modules? 19052need_lib_prefix=$need_lib_prefix 19053 19054# Do we need a version for libraries? 19055need_version=$need_version 19056 19057# Whether dlopen is supported. 19058dlopen_support=$enable_dlopen 19059 19060# Whether dlopen of programs is supported. 19061dlopen_self=$enable_dlopen_self 19062 19063# Whether dlopen of statically linked programs is supported. 19064dlopen_self_static=$enable_dlopen_self_static 19065 19066# Compiler flag to prevent dynamic linking. 19067link_static_flag=$lt_lt_prog_compiler_static_RC 19068 19069# Compiler flag to turn off builtin functions. 19070no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19071 19072# Compiler flag to allow reflexive dlopens. 19073export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19074 19075# Compiler flag to generate shared objects directly from archives. 19076whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19077 19078# Compiler flag to generate thread-safe objects. 19079thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19080 19081# Library versioning type. 19082version_type=$version_type 19083 19084# Format of library name prefix. 19085libname_spec=$lt_libname_spec 19086 19087# List of archive names. First name is the real one, the rest are links. 19088# The last name is the one that the linker finds with -lNAME. 19089library_names_spec=$lt_library_names_spec 19090 19091# The coded name of the library, if different from the real name. 19092soname_spec=$lt_soname_spec 19093 19094# Commands used to build and install an old-style archive. 19095RANLIB=$lt_RANLIB 19096old_archive_cmds=$lt_old_archive_cmds_RC 19097old_postinstall_cmds=$lt_old_postinstall_cmds 19098old_postuninstall_cmds=$lt_old_postuninstall_cmds 19099 19100# Create an old-style archive from a shared archive. 19101old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19102 19103# Create a temporary old-style archive to link instead of a shared archive. 19104old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19105 19106# Commands used to build and install a shared archive. 19107archive_cmds=$lt_archive_cmds_RC 19108archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19109postinstall_cmds=$lt_postinstall_cmds 19110postuninstall_cmds=$lt_postuninstall_cmds 19111 19112# Commands used to build a loadable module (assumed same as above if empty) 19113module_cmds=$lt_module_cmds_RC 19114module_expsym_cmds=$lt_module_expsym_cmds_RC 19115 19116# Commands to strip libraries. 19117old_striplib=$lt_old_striplib 19118striplib=$lt_striplib 19119 19120# Dependencies to place before the objects being linked to create a 19121# shared library. 19122predep_objects=$lt_predep_objects_RC 19123 19124# Dependencies to place after the objects being linked to create a 19125# shared library. 19126postdep_objects=$lt_postdep_objects_RC 19127 19128# Dependencies to place before the objects being linked to create a 19129# shared library. 19130predeps=$lt_predeps_RC 19131 19132# Dependencies to place after the objects being linked to create a 19133# shared library. 19134postdeps=$lt_postdeps_RC 19135 19136# The library search path used internally by the compiler when linking 19137# a shared library. 19138compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19139 19140# Method to check whether dependent libraries are shared objects. 19141deplibs_check_method=$lt_deplibs_check_method 19142 19143# Command to use when deplibs_check_method == file_magic. 19144file_magic_cmd=$lt_file_magic_cmd 19145 19146# Flag that allows shared libraries with undefined symbols to be built. 19147allow_undefined_flag=$lt_allow_undefined_flag_RC 19148 19149# Flag that forces no undefined symbols. 19150no_undefined_flag=$lt_no_undefined_flag_RC 19151 19152# Commands used to finish a libtool library installation in a directory. 19153finish_cmds=$lt_finish_cmds 19154 19155# Same as above, but a single script fragment to be evaled but not shown. 19156finish_eval=$lt_finish_eval 19157 19158# Take the output of nm and produce a listing of raw symbols and C names. 19159global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19160 19161# Transform the output of nm in a proper C declaration 19162global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19163 19164# Transform the output of nm in a C name address pair 19165global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19166 19167# This is the shared library runtime path variable. 19168runpath_var=$runpath_var 19169 19170# This is the shared library path variable. 19171shlibpath_var=$shlibpath_var 19172 19173# Is shlibpath searched before the hard-coded library search path? 19174shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19175 19176# How to hardcode a shared library path into an executable. 19177hardcode_action=$hardcode_action_RC 19178 19179# Whether we should hardcode library paths into libraries. 19180hardcode_into_libs=$hardcode_into_libs 19181 19182# Flag to hardcode \$libdir into a binary during linking. 19183# This must work even if \$libdir does not exist. 19184hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19185 19186# If ld is used when linking, flag to hardcode \$libdir into 19187# a binary during linking. This must work even if \$libdir does 19188# not exist. 19189hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19190 19191# Whether we need a single -rpath flag with a separated argument. 19192hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19193 19194# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19195# resulting binary. 19196hardcode_direct=$hardcode_direct_RC 19197 19198# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19199# resulting binary. 19200hardcode_minus_L=$hardcode_minus_L_RC 19201 19202# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19203# the resulting binary. 19204hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19205 19206# Set to yes if building a shared library automatically hardcodes DIR into the library 19207# and all subsequent libraries and executables linked against it. 19208hardcode_automatic=$hardcode_automatic_RC 19209 19210# Variables whose values should be saved in libtool wrapper scripts and 19211# restored at relink time. 19212variables_saved_for_relink="$variables_saved_for_relink" 19213 19214# Whether libtool must link a program against all its dependency libraries. 19215link_all_deplibs=$link_all_deplibs_RC 19216 19217# Compile-time system search path for libraries 19218sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19219 19220# Run-time system search path for libraries 19221sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19222 19223# Fix the shell variable \$srcfile for the compiler. 19224fix_srcfile_path="$fix_srcfile_path_RC" 19225 19226# Set to yes if exported symbols are required. 19227always_export_symbols=$always_export_symbols_RC 19228 19229# The commands to list exported symbols. 19230export_symbols_cmds=$lt_export_symbols_cmds_RC 19231 19232# The commands to extract the exported symbol list from a shared archive. 19233extract_expsyms_cmds=$lt_extract_expsyms_cmds 19234 19235# Symbols that should not be listed in the preloaded symbols. 19236exclude_expsyms=$lt_exclude_expsyms_RC 19237 19238# Symbols that must always be exported. 19239include_expsyms=$lt_include_expsyms_RC 19240 19241# ### END LIBTOOL TAG CONFIG: $tagname 19242 19243__EOF__ 19244 19245 19246else 19247 # If there is no Makefile yet, we rely on a make rule to execute 19248 # `config.status --recheck' to rerun these tests and create the 19249 # libtool script then. 19250 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19251 if test -f "$ltmain_in"; then 19252 test -f Makefile && make "$ltmain" 19253 fi 19254fi 19255 19256 19257ac_ext=c 19258ac_cpp='$CPP $CPPFLAGS' 19259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19261ac_compiler_gnu=$ac_cv_c_compiler_gnu 19262 19263CC="$lt_save_CC" 19264 19265 ;; 19266 19267 *) 19268 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19269echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19270 { (exit 1); exit 1; }; } 19271 ;; 19272 esac 19273 19274 # Append the new tag name to the list of available tags. 19275 if test -n "$tagname" ; then 19276 available_tags="$available_tags $tagname" 19277 fi 19278 fi 19279 done 19280 IFS="$lt_save_ifs" 19281 19282 # Now substitute the updated list of available tags. 19283 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19284 mv "${ofile}T" "$ofile" 19285 chmod +x "$ofile" 19286 else 19287 rm -f "${ofile}T" 19288 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19289echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19290 { (exit 1); exit 1; }; } 19291 fi 19292fi 19293 19294 19295 19296# This can be used to rebuild libtool when needed 19297LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19298 19299# Always use our own libtool. 19300LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19301 19302# Prevent multiple expansion 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 ac_config_files="$ac_config_files Makefile json.pc" 19325cat >confcache <<\_ACEOF 19326# This file is a shell script that caches the results of configure 19327# tests run on this system so they can be shared between configure 19328# scripts and configure runs, see configure's option --config-cache. 19329# It is not useful on other systems. If it contains results you don't 19330# want to keep, you may remove or edit it. 19331# 19332# config.status only pays attention to the cache file if you give it 19333# the --recheck option to rerun configure. 19334# 19335# `ac_cv_env_foo' variables (set or unset) will be overridden when 19336# loading this file, other *unset* `ac_cv_foo' will be assigned the 19337# following values. 19338 19339_ACEOF 19340 19341# The following way of writing the cache mishandles newlines in values, 19342# but we know of no workaround that is simple, portable, and efficient. 19343# So, don't put newlines in cache variables' values. 19344# Ultrix sh set writes to stderr and can't be redirected directly, 19345# and sets the high bit in the cache file unless we assign to the vars. 19346{ 19347 (set) 2>&1 | 19348 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19349 *ac_space=\ *) 19350 # `set' does not quote correctly, so add quotes (double-quote 19351 # substitution turns \\\\ into \\, and sed turns \\ into \). 19352 sed -n \ 19353 "s/'/'\\\\''/g; 19354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19355 ;; 19356 *) 19357 # `set' quotes correctly as required by POSIX, so do not add quotes. 19358 sed -n \ 19359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19360 ;; 19361 esac; 19362} | 19363 sed ' 19364 t clear 19365 : clear 19366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19367 t end 19368 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19369 : end' >>confcache 19370if diff $cache_file confcache >/dev/null 2>&1; then :; else 19371 if test -w $cache_file; then 19372 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19373 cat confcache >$cache_file 19374 else 19375 echo "not updating unwritable cache $cache_file" 19376 fi 19377fi 19378rm -f confcache 19379 19380test "x$prefix" = xNONE && prefix=$ac_default_prefix 19381# Let make expand exec_prefix. 19382test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19383 19384# VPATH may cause trouble with some makes, so we remove $(srcdir), 19385# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19386# trailing colons and then remove the whole line if VPATH becomes empty 19387# (actually we leave an empty line to preserve line numbers). 19388if test "x$srcdir" = x.; then 19389 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19390s/:*\$(srcdir):*/:/; 19391s/:*\${srcdir}:*/:/; 19392s/:*@srcdir@:*/:/; 19393s/^\([^=]*=[ ]*\):*/\1/; 19394s/:*$//; 19395s/^[^=]*=[ ]*$//; 19396}' 19397fi 19398 19399DEFS=-DHAVE_CONFIG_H 19400 19401ac_libobjs= 19402ac_ltlibobjs= 19403for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19404 # 1. Remove the extension, and $U if already installed. 19405 ac_i=`echo "$ac_i" | 19406 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 19407 # 2. Add them. 19408 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 19409 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 19410done 19411LIBOBJS=$ac_libobjs 19412 19413LTLIBOBJS=$ac_ltlibobjs 19414 19415 19416 19417: ${CONFIG_STATUS=./config.status} 19418ac_clean_files_save=$ac_clean_files 19419ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19420{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19421echo "$as_me: creating $CONFIG_STATUS" >&6;} 19422cat >$CONFIG_STATUS <<_ACEOF 19423#! $SHELL 19424# Generated by $as_me. 19425# Run this file to recreate the current configuration. 19426# Compiler output produced by configure, useful for debugging 19427# configure, is in config.log if it exists. 19428 19429debug=false 19430ac_cs_recheck=false 19431ac_cs_silent=false 19432SHELL=\${CONFIG_SHELL-$SHELL} 19433_ACEOF 19434 19435cat >>$CONFIG_STATUS <<\_ACEOF 19436## --------------------- ## 19437## M4sh Initialization. ## 19438## --------------------- ## 19439 19440# Be Bourne compatible 19441if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19442 emulate sh 19443 NULLCMD=: 19444 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19445 # is contrary to our usage. Disable this feature. 19446 alias -g '${1+"$@"}'='"$@"' 19447elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19448 set -o posix 19449fi 19450DUALCASE=1; export DUALCASE # for MKS sh 19451 19452# Support unset when possible. 19453if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19454 as_unset=unset 19455else 19456 as_unset=false 19457fi 19458 19459 19460# Work around bugs in pre-3.0 UWIN ksh. 19461$as_unset ENV MAIL MAILPATH 19462PS1='$ ' 19463PS2='> ' 19464PS4='+ ' 19465 19466# NLS nuisances. 19467for as_var in \ 19468 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19469 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19470 LC_TELEPHONE LC_TIME 19471do 19472 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19473 eval $as_var=C; export $as_var 19474 else 19475 $as_unset $as_var 19476 fi 19477done 19478 19479# Required to use basename. 19480if expr a : '\(a\)' >/dev/null 2>&1; then 19481 as_expr=expr 19482else 19483 as_expr=false 19484fi 19485 19486if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 19487 as_basename=basename 19488else 19489 as_basename=false 19490fi 19491 19492 19493# Name of the executable. 19494as_me=`$as_basename "$0" || 19495$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19496 X"$0" : 'X\(//\)$' \| \ 19497 X"$0" : 'X\(/\)$' \| \ 19498 . : '\(.\)' 2>/dev/null || 19499echo X/"$0" | 19500 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19501 /^X\/\(\/\/\)$/{ s//\1/; q; } 19502 /^X\/\(\/\).*/{ s//\1/; q; } 19503 s/.*/./; q'` 19504 19505 19506# PATH needs CR, and LINENO needs CR and PATH. 19507# Avoid depending upon Character Ranges. 19508as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19509as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19510as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19511as_cr_digits='0123456789' 19512as_cr_alnum=$as_cr_Letters$as_cr_digits 19513 19514# The user is always right. 19515if test "${PATH_SEPARATOR+set}" != set; then 19516 echo "#! /bin/sh" >conf$$.sh 19517 echo "exit 0" >>conf$$.sh 19518 chmod +x conf$$.sh 19519 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19520 PATH_SEPARATOR=';' 19521 else 19522 PATH_SEPARATOR=: 19523 fi 19524 rm -f conf$$.sh 19525fi 19526 19527 19528 as_lineno_1=$LINENO 19529 as_lineno_2=$LINENO 19530 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19531 test "x$as_lineno_1" != "x$as_lineno_2" && 19532 test "x$as_lineno_3" = "x$as_lineno_2" || { 19533 # Find who we are. Look in the path if we contain no path at all 19534 # relative or not. 19535 case $0 in 19536 *[\\/]* ) as_myself=$0 ;; 19537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19538for as_dir in $PATH 19539do 19540 IFS=$as_save_IFS 19541 test -z "$as_dir" && as_dir=. 19542 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19543done 19544 19545 ;; 19546 esac 19547 # We did not find ourselves, most probably we were run as `sh COMMAND' 19548 # in which case we are not to be found in the path. 19549 if test "x$as_myself" = x; then 19550 as_myself=$0 19551 fi 19552 if test ! -f "$as_myself"; then 19553 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19554echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19555 { (exit 1); exit 1; }; } 19556 fi 19557 case $CONFIG_SHELL in 19558 '') 19559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19560for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19561do 19562 IFS=$as_save_IFS 19563 test -z "$as_dir" && as_dir=. 19564 for as_base in sh bash ksh sh5; do 19565 case $as_dir in 19566 /*) 19567 if ("$as_dir/$as_base" -c ' 19568 as_lineno_1=$LINENO 19569 as_lineno_2=$LINENO 19570 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19571 test "x$as_lineno_1" != "x$as_lineno_2" && 19572 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19573 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 19574 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 19575 CONFIG_SHELL=$as_dir/$as_base 19576 export CONFIG_SHELL 19577 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 19578 fi;; 19579 esac 19580 done 19581done 19582;; 19583 esac 19584 19585 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19586 # uniformly replaced by the line number. The first 'sed' inserts a 19587 # line-number line before each line; the second 'sed' does the real 19588 # work. The second script uses 'N' to pair each line-number line 19589 # with the numbered line, and appends trailing '-' during 19590 # substitution so that $LINENO is not a special case at line end. 19591 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19592 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 19593 sed '=' <$as_myself | 19594 sed ' 19595 N 19596 s,$,-, 19597 : loop 19598 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 19599 t loop 19600 s,-$,, 19601 s,^['$as_cr_digits']*\n,, 19602 ' >$as_me.lineno && 19603 chmod +x $as_me.lineno || 19604 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 19605echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 19606 { (exit 1); exit 1; }; } 19607 19608 # Don't try to exec as it changes $[0], causing all sort of problems 19609 # (the dirname of $[0] is not the place where we might find the 19610 # original and so on. Autoconf is especially sensible to this). 19611 . ./$as_me.lineno 19612 # Exit status is that of the last command. 19613 exit 19614} 19615 19616 19617case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 19618 *c*,-n*) ECHO_N= ECHO_C=' 19619' ECHO_T=' ' ;; 19620 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 19621 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 19622esac 19623 19624if expr a : '\(a\)' >/dev/null 2>&1; then 19625 as_expr=expr 19626else 19627 as_expr=false 19628fi 19629 19630rm -f conf$$ conf$$.exe conf$$.file 19631echo >conf$$.file 19632if ln -s conf$$.file conf$$ 2>/dev/null; then 19633 # We could just check for DJGPP; but this test a) works b) is more generic 19634 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19635 if test -f conf$$.exe; then 19636 # Don't use ln at all; we don't have any links 19637 as_ln_s='cp -p' 19638 else 19639 as_ln_s='ln -s' 19640 fi 19641elif ln conf$$.file conf$$ 2>/dev/null; then 19642 as_ln_s=ln 19643else 19644 as_ln_s='cp -p' 19645fi 19646rm -f conf$$ conf$$.exe conf$$.file 19647 19648if mkdir -p . 2>/dev/null; then 19649 as_mkdir_p=: 19650else 19651 test -d ./-p && rmdir ./-p 19652 as_mkdir_p=false 19653fi 19654 19655as_executable_p="test -f" 19656 19657# Sed expression to map a string onto a valid CPP name. 19658as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19659 19660# Sed expression to map a string onto a valid variable name. 19661as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19662 19663 19664# IFS 19665# We need space, tab and new line, in precisely that order. 19666as_nl=' 19667' 19668IFS=" $as_nl" 19669 19670# CDPATH. 19671$as_unset CDPATH 19672 19673exec 6>&1 19674 19675# Open the log real soon, to keep \$[0] and so on meaningful, and to 19676# report actual input values of CONFIG_FILES etc. instead of their 19677# values after options handling. Logging --version etc. is OK. 19678exec 5>>config.log 19679{ 19680 echo 19681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19682## Running $as_me. ## 19683_ASBOX 19684} >&5 19685cat >&5 <<_CSEOF 19686 19687This file was extended by JSON C Library $as_me 0.3, which was 19688generated by GNU Autoconf 2.59. Invocation command line was 19689 19690 CONFIG_FILES = $CONFIG_FILES 19691 CONFIG_HEADERS = $CONFIG_HEADERS 19692 CONFIG_LINKS = $CONFIG_LINKS 19693 CONFIG_COMMANDS = $CONFIG_COMMANDS 19694 $ $0 $@ 19695 19696_CSEOF 19697echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 19698echo >&5 19699_ACEOF 19700 19701# Files that config.status was made for. 19702if test -n "$ac_config_files"; then 19703 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19704fi 19705 19706if test -n "$ac_config_headers"; then 19707 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19708fi 19709 19710if test -n "$ac_config_links"; then 19711 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19712fi 19713 19714if test -n "$ac_config_commands"; then 19715 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19716fi 19717 19718cat >>$CONFIG_STATUS <<\_ACEOF 19719 19720ac_cs_usage="\ 19721\`$as_me' instantiates files from templates according to the 19722current configuration. 19723 19724Usage: $0 [OPTIONS] [FILE]... 19725 19726 -h, --help print this help, then exit 19727 -V, --version print version number, then exit 19728 -q, --quiet do not print progress messages 19729 -d, --debug don't remove temporary files 19730 --recheck update $as_me by reconfiguring in the same conditions 19731 --file=FILE[:TEMPLATE] 19732 instantiate the configuration file FILE 19733 --header=FILE[:TEMPLATE] 19734 instantiate the configuration header FILE 19735 19736Configuration files: 19737$config_files 19738 19739Configuration headers: 19740$config_headers 19741 19742Configuration commands: 19743$config_commands 19744 19745Report bugs to <bug-autoconf@gnu.org>." 19746_ACEOF 19747 19748cat >>$CONFIG_STATUS <<_ACEOF 19749ac_cs_version="\\ 19750JSON C Library config.status 0.3 19751configured by $0, generated by GNU Autoconf 2.59, 19752 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19753 19754Copyright (C) 2003 Free Software Foundation, Inc. 19755This config.status script is free software; the Free Software Foundation 19756gives unlimited permission to copy, distribute and modify it." 19757srcdir=$srcdir 19758INSTALL="$INSTALL" 19759_ACEOF 19760 19761cat >>$CONFIG_STATUS <<\_ACEOF 19762# If no file are specified by the user, then we need to provide default 19763# value. By we need to know if files were specified by the user. 19764ac_need_defaults=: 19765while test $# != 0 19766do 19767 case $1 in 19768 --*=*) 19769 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19770 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19771 ac_shift=: 19772 ;; 19773 -*) 19774 ac_option=$1 19775 ac_optarg=$2 19776 ac_shift=shift 19777 ;; 19778 *) # This is not an option, so the user has probably given explicit 19779 # arguments. 19780 ac_option=$1 19781 ac_need_defaults=false;; 19782 esac 19783 19784 case $ac_option in 19785 # Handling of the options. 19786_ACEOF 19787cat >>$CONFIG_STATUS <<\_ACEOF 19788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19789 ac_cs_recheck=: ;; 19790 --version | --vers* | -V ) 19791 echo "$ac_cs_version"; exit 0 ;; 19792 --he | --h) 19793 # Conflict between --help and --header 19794 { { echo "$as_me:$LINENO: error: ambiguous option: $1 19795Try \`$0 --help' for more information." >&5 19796echo "$as_me: error: ambiguous option: $1 19797Try \`$0 --help' for more information." >&2;} 19798 { (exit 1); exit 1; }; };; 19799 --help | --hel | -h ) 19800 echo "$ac_cs_usage"; exit 0 ;; 19801 --debug | --d* | -d ) 19802 debug=: ;; 19803 --file | --fil | --fi | --f ) 19804 $ac_shift 19805 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 19806 ac_need_defaults=false;; 19807 --header | --heade | --head | --hea ) 19808 $ac_shift 19809 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 19810 ac_need_defaults=false;; 19811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19812 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19813 ac_cs_silent=: ;; 19814 19815 # This is an error. 19816 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 19817Try \`$0 --help' for more information." >&5 19818echo "$as_me: error: unrecognized option: $1 19819Try \`$0 --help' for more information." >&2;} 19820 { (exit 1); exit 1; }; } ;; 19821 19822 *) ac_config_targets="$ac_config_targets $1" ;; 19823 19824 esac 19825 shift 19826done 19827 19828ac_configure_extra_args= 19829 19830if $ac_cs_silent; then 19831 exec 6>/dev/null 19832 ac_configure_extra_args="$ac_configure_extra_args --silent" 19833fi 19834 19835_ACEOF 19836cat >>$CONFIG_STATUS <<_ACEOF 19837if \$ac_cs_recheck; then 19838 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 19839 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19840fi 19841 19842_ACEOF 19843 19844cat >>$CONFIG_STATUS <<_ACEOF 19845# 19846# INIT-COMMANDS section. 19847# 19848 19849 19850 19851_ACEOF 19852 19853 19854 19855cat >>$CONFIG_STATUS <<\_ACEOF 19856for ac_config_target in $ac_config_targets 19857do 19858 case "$ac_config_target" in 19859 # Handling of arguments. 19860 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19861 "json.pc" ) CONFIG_FILES="$CONFIG_FILES json.pc" ;; 19862 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 19863 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 19865echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19866 { (exit 1); exit 1; }; };; 19867 esac 19868done 19869 19870# If the user did not use the arguments to specify the items to instantiate, 19871# then the envvar interface is used. Set only those that are not. 19872# We use the long form for the default assignment because of an extremely 19873# bizarre bug on SunOS 4.1.3. 19874if $ac_need_defaults; then 19875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19878fi 19879 19880# Have a temporary directory for convenience. Make it in the build tree 19881# simply because there is no reason to put it here, and in addition, 19882# creating and moving files from /tmp can sometimes cause problems. 19883# Create a temporary directory, and hook for its removal unless debugging. 19884$debug || 19885{ 19886 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 19887 trap '{ (exit 1); exit 1; }' 1 2 13 15 19888} 19889 19890# Create a (secure) tmp directory for tmp files. 19891 19892{ 19893 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 19894 test -n "$tmp" && test -d "$tmp" 19895} || 19896{ 19897 tmp=./confstat$$-$RANDOM 19898 (umask 077 && mkdir $tmp) 19899} || 19900{ 19901 echo "$me: cannot create a temporary directory in ." >&2 19902 { (exit 1); exit 1; } 19903} 19904 19905_ACEOF 19906 19907cat >>$CONFIG_STATUS <<_ACEOF 19908 19909# 19910# CONFIG_FILES section. 19911# 19912 19913# No need to generate the scripts if there are no CONFIG_FILES. 19914# This happens for instance when ./config.status config.h 19915if test -n "\$CONFIG_FILES"; then 19916 # Protect against being on the right side of a sed subst in config.status. 19917 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 19918 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 19919s,@SHELL@,$SHELL,;t t 19920s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 19921s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 19922s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 19923s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 19924s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 19925s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 19926s,@exec_prefix@,$exec_prefix,;t t 19927s,@prefix@,$prefix,;t t 19928s,@program_transform_name@,$program_transform_name,;t t 19929s,@bindir@,$bindir,;t t 19930s,@sbindir@,$sbindir,;t t 19931s,@libexecdir@,$libexecdir,;t t 19932s,@datadir@,$datadir,;t t 19933s,@sysconfdir@,$sysconfdir,;t t 19934s,@sharedstatedir@,$sharedstatedir,;t t 19935s,@localstatedir@,$localstatedir,;t t 19936s,@libdir@,$libdir,;t t 19937s,@includedir@,$includedir,;t t 19938s,@oldincludedir@,$oldincludedir,;t t 19939s,@infodir@,$infodir,;t t 19940s,@mandir@,$mandir,;t t 19941s,@build_alias@,$build_alias,;t t 19942s,@host_alias@,$host_alias,;t t 19943s,@target_alias@,$target_alias,;t t 19944s,@DEFS@,$DEFS,;t t 19945s,@ECHO_C@,$ECHO_C,;t t 19946s,@ECHO_N@,$ECHO_N,;t t 19947s,@ECHO_T@,$ECHO_T,;t t 19948s,@LIBS@,$LIBS,;t t 19949s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 19950s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 19951s,@INSTALL_DATA@,$INSTALL_DATA,;t t 19952s,@PACKAGE@,$PACKAGE,;t t 19953s,@VERSION@,$VERSION,;t t 19954s,@ACLOCAL@,$ACLOCAL,;t t 19955s,@AUTOCONF@,$AUTOCONF,;t t 19956s,@AUTOMAKE@,$AUTOMAKE,;t t 19957s,@AUTOHEADER@,$AUTOHEADER,;t t 19958s,@MAKEINFO@,$MAKEINFO,;t t 19959s,@SET_MAKE@,$SET_MAKE,;t t 19960s,@CC@,$CC,;t t 19961s,@CFLAGS@,$CFLAGS,;t t 19962s,@LDFLAGS@,$LDFLAGS,;t t 19963s,@CPPFLAGS@,$CPPFLAGS,;t t 19964s,@ac_ct_CC@,$ac_ct_CC,;t t 19965s,@EXEEXT@,$EXEEXT,;t t 19966s,@OBJEXT@,$OBJEXT,;t t 19967s,@CPP@,$CPP,;t t 19968s,@EGREP@,$EGREP,;t t 19969s,@LIBOBJS@,$LIBOBJS,;t t 19970s,@build@,$build,;t t 19971s,@build_cpu@,$build_cpu,;t t 19972s,@build_vendor@,$build_vendor,;t t 19973s,@build_os@,$build_os,;t t 19974s,@host@,$host,;t t 19975s,@host_cpu@,$host_cpu,;t t 19976s,@host_vendor@,$host_vendor,;t t 19977s,@host_os@,$host_os,;t t 19978s,@LN_S@,$LN_S,;t t 19979s,@ECHO@,$ECHO,;t t 19980s,@AR@,$AR,;t t 19981s,@ac_ct_AR@,$ac_ct_AR,;t t 19982s,@RANLIB@,$RANLIB,;t t 19983s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 19984s,@STRIP@,$STRIP,;t t 19985s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 19986s,@CXX@,$CXX,;t t 19987s,@CXXFLAGS@,$CXXFLAGS,;t t 19988s,@ac_ct_CXX@,$ac_ct_CXX,;t t 19989s,@CXXCPP@,$CXXCPP,;t t 19990s,@F77@,$F77,;t t 19991s,@FFLAGS@,$FFLAGS,;t t 19992s,@ac_ct_F77@,$ac_ct_F77,;t t 19993s,@LIBTOOL@,$LIBTOOL,;t t 19994s,@LTLIBOBJS@,$LTLIBOBJS,;t t 19995CEOF 19996 19997_ACEOF 19998 19999 cat >>$CONFIG_STATUS <<\_ACEOF 20000 # Split the substitutions into bite-sized pieces for seds with 20001 # small command number limits, like on Digital OSF/1 and HP-UX. 20002 ac_max_sed_lines=48 20003 ac_sed_frag=1 # Number of current file. 20004 ac_beg=1 # First line for current file. 20005 ac_end=$ac_max_sed_lines # Line after last line for current file. 20006 ac_more_lines=: 20007 ac_sed_cmds= 20008 while $ac_more_lines; do 20009 if test $ac_beg -gt 1; then 20010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20011 else 20012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20013 fi 20014 if test ! -s $tmp/subs.frag; then 20015 ac_more_lines=false 20016 else 20017 # The purpose of the label and of the branching condition is to 20018 # speed up the sed processing (if there are no `@' at all, there 20019 # is no need to browse any of the substitutions). 20020 # These are the two extra sed commands mentioned above. 20021 (echo ':t 20022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20023 if test -z "$ac_sed_cmds"; then 20024 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20025 else 20026 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20027 fi 20028 ac_sed_frag=`expr $ac_sed_frag + 1` 20029 ac_beg=$ac_end 20030 ac_end=`expr $ac_end + $ac_max_sed_lines` 20031 fi 20032 done 20033 if test -z "$ac_sed_cmds"; then 20034 ac_sed_cmds=cat 20035 fi 20036fi # test -n "$CONFIG_FILES" 20037 20038_ACEOF 20039cat >>$CONFIG_STATUS <<\_ACEOF 20040for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20042 case $ac_file in 20043 - | *:- | *:-:* ) # input from stdin 20044 cat >$tmp/stdin 20045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20049 * ) ac_file_in=$ac_file.in ;; 20050 esac 20051 20052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20053 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20054$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20055 X"$ac_file" : 'X\(//\)[^/]' \| \ 20056 X"$ac_file" : 'X\(//\)$' \| \ 20057 X"$ac_file" : 'X\(/\)' \| \ 20058 . : '\(.\)' 2>/dev/null || 20059echo X"$ac_file" | 20060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20061 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20062 /^X\(\/\/\)$/{ s//\1/; q; } 20063 /^X\(\/\).*/{ s//\1/; q; } 20064 s/.*/./; q'` 20065 { if $as_mkdir_p; then 20066 mkdir -p "$ac_dir" 20067 else 20068 as_dir="$ac_dir" 20069 as_dirs= 20070 while test ! -d "$as_dir"; do 20071 as_dirs="$as_dir $as_dirs" 20072 as_dir=`(dirname "$as_dir") 2>/dev/null || 20073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20074 X"$as_dir" : 'X\(//\)[^/]' \| \ 20075 X"$as_dir" : 'X\(//\)$' \| \ 20076 X"$as_dir" : 'X\(/\)' \| \ 20077 . : '\(.\)' 2>/dev/null || 20078echo X"$as_dir" | 20079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20080 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20081 /^X\(\/\/\)$/{ s//\1/; q; } 20082 /^X\(\/\).*/{ s//\1/; q; } 20083 s/.*/./; q'` 20084 done 20085 test ! -n "$as_dirs" || mkdir $as_dirs 20086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20087echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20088 { (exit 1); exit 1; }; }; } 20089 20090 ac_builddir=. 20091 20092if test "$ac_dir" != .; then 20093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20094 # A "../" for each directory in $ac_dir_suffix. 20095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20096else 20097 ac_dir_suffix= ac_top_builddir= 20098fi 20099 20100case $srcdir in 20101 .) # No --srcdir option. We are building in place. 20102 ac_srcdir=. 20103 if test -z "$ac_top_builddir"; then 20104 ac_top_srcdir=. 20105 else 20106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20107 fi ;; 20108 [\\/]* | ?:[\\/]* ) # Absolute path. 20109 ac_srcdir=$srcdir$ac_dir_suffix; 20110 ac_top_srcdir=$srcdir ;; 20111 *) # Relative path. 20112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20113 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20114esac 20115 20116# Do not use `cd foo && pwd` to compute absolute paths, because 20117# the directories may not exist. 20118case `pwd` in 20119.) ac_abs_builddir="$ac_dir";; 20120*) 20121 case "$ac_dir" in 20122 .) ac_abs_builddir=`pwd`;; 20123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20124 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20125 esac;; 20126esac 20127case $ac_abs_builddir in 20128.) ac_abs_top_builddir=${ac_top_builddir}.;; 20129*) 20130 case ${ac_top_builddir}. in 20131 .) ac_abs_top_builddir=$ac_abs_builddir;; 20132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20134 esac;; 20135esac 20136case $ac_abs_builddir in 20137.) ac_abs_srcdir=$ac_srcdir;; 20138*) 20139 case $ac_srcdir in 20140 .) ac_abs_srcdir=$ac_abs_builddir;; 20141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20143 esac;; 20144esac 20145case $ac_abs_builddir in 20146.) ac_abs_top_srcdir=$ac_top_srcdir;; 20147*) 20148 case $ac_top_srcdir in 20149 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20152 esac;; 20153esac 20154 20155 20156 case $INSTALL in 20157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20158 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20159 esac 20160 20161 # Let's still pretend it is `configure' which instantiates (i.e., don't 20162 # use $as_me), people would be surprised to read: 20163 # /* config.h. Generated by config.status. */ 20164 if test x"$ac_file" = x-; then 20165 configure_input= 20166 else 20167 configure_input="$ac_file. " 20168 fi 20169 configure_input=$configure_input"Generated from `echo $ac_file_in | 20170 sed 's,.*/,,'` by configure." 20171 20172 # First look for the input files in the build tree, otherwise in the 20173 # src tree. 20174 ac_file_inputs=`IFS=: 20175 for f in $ac_file_in; do 20176 case $f in 20177 -) echo $tmp/stdin ;; 20178 [\\/$]*) 20179 # Absolute (can't be DOS-style, as IFS=:) 20180 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20181echo "$as_me: error: cannot find input file: $f" >&2;} 20182 { (exit 1); exit 1; }; } 20183 echo "$f";; 20184 *) # Relative 20185 if test -f "$f"; then 20186 # Build tree 20187 echo "$f" 20188 elif test -f "$srcdir/$f"; then 20189 # Source tree 20190 echo "$srcdir/$f" 20191 else 20192 # /dev/null tree 20193 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20194echo "$as_me: error: cannot find input file: $f" >&2;} 20195 { (exit 1); exit 1; }; } 20196 fi;; 20197 esac 20198 done` || { (exit 1); exit 1; } 20199 20200 if test x"$ac_file" != x-; then 20201 { echo "$as_me:$LINENO: creating $ac_file" >&5 20202echo "$as_me: creating $ac_file" >&6;} 20203 rm -f "$ac_file" 20204 fi 20205_ACEOF 20206cat >>$CONFIG_STATUS <<_ACEOF 20207 sed "$ac_vpsub 20208$extrasub 20209_ACEOF 20210cat >>$CONFIG_STATUS <<\_ACEOF 20211:t 20212/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20213s,@configure_input@,$configure_input,;t t 20214s,@srcdir@,$ac_srcdir,;t t 20215s,@abs_srcdir@,$ac_abs_srcdir,;t t 20216s,@top_srcdir@,$ac_top_srcdir,;t t 20217s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20218s,@builddir@,$ac_builddir,;t t 20219s,@abs_builddir@,$ac_abs_builddir,;t t 20220s,@top_builddir@,$ac_top_builddir,;t t 20221s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20222s,@INSTALL@,$ac_INSTALL,;t t 20223" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20224 rm -f $tmp/stdin 20225 if test x"$ac_file" != x-; then 20226 mv $tmp/out $ac_file 20227 else 20228 cat $tmp/out 20229 rm -f $tmp/out 20230 fi 20231 20232done 20233_ACEOF 20234cat >>$CONFIG_STATUS <<\_ACEOF 20235 20236# 20237# CONFIG_HEADER section. 20238# 20239 20240# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20241# NAME is the cpp macro being defined and VALUE is the value it is being given. 20242# 20243# ac_d sets the value in "#define NAME VALUE" lines. 20244ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20245ac_dB='[ ].*$,\1#\2' 20246ac_dC=' ' 20247ac_dD=',;t' 20248# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20249ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20250ac_uB='$,\1#\2define\3' 20251ac_uC=' ' 20252ac_uD=',;t' 20253 20254for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20255 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20256 case $ac_file in 20257 - | *:- | *:-:* ) # input from stdin 20258 cat >$tmp/stdin 20259 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20260 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20261 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20263 * ) ac_file_in=$ac_file.in ;; 20264 esac 20265 20266 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20267echo "$as_me: creating $ac_file" >&6;} 20268 20269 # First look for the input files in the build tree, otherwise in the 20270 # src tree. 20271 ac_file_inputs=`IFS=: 20272 for f in $ac_file_in; do 20273 case $f in 20274 -) echo $tmp/stdin ;; 20275 [\\/$]*) 20276 # Absolute (can't be DOS-style, as IFS=:) 20277 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20278echo "$as_me: error: cannot find input file: $f" >&2;} 20279 { (exit 1); exit 1; }; } 20280 # Do quote $f, to prevent DOS paths from being IFS'd. 20281 echo "$f";; 20282 *) # Relative 20283 if test -f "$f"; then 20284 # Build tree 20285 echo "$f" 20286 elif test -f "$srcdir/$f"; then 20287 # Source tree 20288 echo "$srcdir/$f" 20289 else 20290 # /dev/null tree 20291 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20292echo "$as_me: error: cannot find input file: $f" >&2;} 20293 { (exit 1); exit 1; }; } 20294 fi;; 20295 esac 20296 done` || { (exit 1); exit 1; } 20297 # Remove the trailing spaces. 20298 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20299 20300_ACEOF 20301 20302# Transform confdefs.h into two sed scripts, `conftest.defines' and 20303# `conftest.undefs', that substitutes the proper values into 20304# config.h.in to produce config.h. The first handles `#define' 20305# templates, and the second `#undef' templates. 20306# And first: Protect against being on the right side of a sed subst in 20307# config.status. Protect against being in an unquoted here document 20308# in config.status. 20309rm -f conftest.defines conftest.undefs 20310# Using a here document instead of a string reduces the quoting nightmare. 20311# Putting comments in sed scripts is not portable. 20312# 20313# `end' is used to avoid that the second main sed command (meant for 20314# 0-ary CPP macros) applies to n-ary macro definitions. 20315# See the Autoconf documentation for `clear'. 20316cat >confdef2sed.sed <<\_ACEOF 20317s/[\\&,]/\\&/g 20318s,[\\$`],\\&,g 20319t clear 20320: clear 20321s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20322t end 20323s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20324: end 20325_ACEOF 20326# If some macros were called several times there might be several times 20327# the same #defines, which is useless. Nevertheless, we may not want to 20328# sort them, since we want the *last* AC-DEFINE to be honored. 20329uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20330sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20331rm -f confdef2sed.sed 20332 20333# This sed command replaces #undef with comments. This is necessary, for 20334# example, in the case of _POSIX_SOURCE, which is predefined and required 20335# on some systems where configure will not decide to define it. 20336cat >>conftest.undefs <<\_ACEOF 20337s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20338_ACEOF 20339 20340# Break up conftest.defines because some shells have a limit on the size 20341# of here documents, and old seds have small limits too (100 cmds). 20342echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20343echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20344echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20345echo ' :' >>$CONFIG_STATUS 20346rm -f conftest.tail 20347while grep . conftest.defines >/dev/null 20348do 20349 # Write a limited-size here document to $tmp/defines.sed. 20350 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20351 # Speed up: don't consider the non `#define' lines. 20352 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20353 # Work around the forget-to-reset-the-flag bug. 20354 echo 't clr' >>$CONFIG_STATUS 20355 echo ': clr' >>$CONFIG_STATUS 20356 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20357 echo 'CEOF 20358 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20359 rm -f $tmp/in 20360 mv $tmp/out $tmp/in 20361' >>$CONFIG_STATUS 20362 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 20363 rm -f conftest.defines 20364 mv conftest.tail conftest.defines 20365done 20366rm -f conftest.defines 20367echo ' fi # grep' >>$CONFIG_STATUS 20368echo >>$CONFIG_STATUS 20369 20370# Break up conftest.undefs because some shells have a limit on the size 20371# of here documents, and old seds have small limits too (100 cmds). 20372echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 20373rm -f conftest.tail 20374while grep . conftest.undefs >/dev/null 20375do 20376 # Write a limited-size here document to $tmp/undefs.sed. 20377 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 20378 # Speed up: don't consider the non `#undef' 20379 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 20380 # Work around the forget-to-reset-the-flag bug. 20381 echo 't clr' >>$CONFIG_STATUS 20382 echo ': clr' >>$CONFIG_STATUS 20383 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 20384 echo 'CEOF 20385 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 20386 rm -f $tmp/in 20387 mv $tmp/out $tmp/in 20388' >>$CONFIG_STATUS 20389 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 20390 rm -f conftest.undefs 20391 mv conftest.tail conftest.undefs 20392done 20393rm -f conftest.undefs 20394 20395cat >>$CONFIG_STATUS <<\_ACEOF 20396 # Let's still pretend it is `configure' which instantiates (i.e., don't 20397 # use $as_me), people would be surprised to read: 20398 # /* config.h. Generated by config.status. */ 20399 if test x"$ac_file" = x-; then 20400 echo "/* Generated by configure. */" >$tmp/config.h 20401 else 20402 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 20403 fi 20404 cat $tmp/in >>$tmp/config.h 20405 rm -f $tmp/in 20406 if test x"$ac_file" != x-; then 20407 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 20408 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20409echo "$as_me: $ac_file is unchanged" >&6;} 20410 else 20411 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20412$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20413 X"$ac_file" : 'X\(//\)[^/]' \| \ 20414 X"$ac_file" : 'X\(//\)$' \| \ 20415 X"$ac_file" : 'X\(/\)' \| \ 20416 . : '\(.\)' 2>/dev/null || 20417echo X"$ac_file" | 20418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20419 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20420 /^X\(\/\/\)$/{ s//\1/; q; } 20421 /^X\(\/\).*/{ s//\1/; q; } 20422 s/.*/./; q'` 20423 { if $as_mkdir_p; then 20424 mkdir -p "$ac_dir" 20425 else 20426 as_dir="$ac_dir" 20427 as_dirs= 20428 while test ! -d "$as_dir"; do 20429 as_dirs="$as_dir $as_dirs" 20430 as_dir=`(dirname "$as_dir") 2>/dev/null || 20431$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20432 X"$as_dir" : 'X\(//\)[^/]' \| \ 20433 X"$as_dir" : 'X\(//\)$' \| \ 20434 X"$as_dir" : 'X\(/\)' \| \ 20435 . : '\(.\)' 2>/dev/null || 20436echo X"$as_dir" | 20437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20438 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20439 /^X\(\/\/\)$/{ s//\1/; q; } 20440 /^X\(\/\).*/{ s//\1/; q; } 20441 s/.*/./; q'` 20442 done 20443 test ! -n "$as_dirs" || mkdir $as_dirs 20444 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20445echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20446 { (exit 1); exit 1; }; }; } 20447 20448 rm -f $ac_file 20449 mv $tmp/config.h $ac_file 20450 fi 20451 else 20452 cat $tmp/config.h 20453 rm -f $tmp/config.h 20454 fi 20455done 20456_ACEOF 20457cat >>$CONFIG_STATUS <<\_ACEOF 20458 20459# 20460# CONFIG_COMMANDS section. 20461# 20462for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 20463 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 20464 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 20465 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 20466$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20467 X"$ac_dest" : 'X\(//\)[^/]' \| \ 20468 X"$ac_dest" : 'X\(//\)$' \| \ 20469 X"$ac_dest" : 'X\(/\)' \| \ 20470 . : '\(.\)' 2>/dev/null || 20471echo X"$ac_dest" | 20472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20473 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20474 /^X\(\/\/\)$/{ s//\1/; q; } 20475 /^X\(\/\).*/{ s//\1/; q; } 20476 s/.*/./; q'` 20477 { if $as_mkdir_p; then 20478 mkdir -p "$ac_dir" 20479 else 20480 as_dir="$ac_dir" 20481 as_dirs= 20482 while test ! -d "$as_dir"; do 20483 as_dirs="$as_dir $as_dirs" 20484 as_dir=`(dirname "$as_dir") 2>/dev/null || 20485$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20486 X"$as_dir" : 'X\(//\)[^/]' \| \ 20487 X"$as_dir" : 'X\(//\)$' \| \ 20488 X"$as_dir" : 'X\(/\)' \| \ 20489 . : '\(.\)' 2>/dev/null || 20490echo X"$as_dir" | 20491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20492 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20493 /^X\(\/\/\)$/{ s//\1/; q; } 20494 /^X\(\/\).*/{ s//\1/; q; } 20495 s/.*/./; q'` 20496 done 20497 test ! -n "$as_dirs" || mkdir $as_dirs 20498 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20499echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20500 { (exit 1); exit 1; }; }; } 20501 20502 ac_builddir=. 20503 20504if test "$ac_dir" != .; then 20505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20506 # A "../" for each directory in $ac_dir_suffix. 20507 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20508else 20509 ac_dir_suffix= ac_top_builddir= 20510fi 20511 20512case $srcdir in 20513 .) # No --srcdir option. We are building in place. 20514 ac_srcdir=. 20515 if test -z "$ac_top_builddir"; then 20516 ac_top_srcdir=. 20517 else 20518 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20519 fi ;; 20520 [\\/]* | ?:[\\/]* ) # Absolute path. 20521 ac_srcdir=$srcdir$ac_dir_suffix; 20522 ac_top_srcdir=$srcdir ;; 20523 *) # Relative path. 20524 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20525 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20526esac 20527 20528# Do not use `cd foo && pwd` to compute absolute paths, because 20529# the directories may not exist. 20530case `pwd` in 20531.) ac_abs_builddir="$ac_dir";; 20532*) 20533 case "$ac_dir" in 20534 .) ac_abs_builddir=`pwd`;; 20535 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20536 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20537 esac;; 20538esac 20539case $ac_abs_builddir in 20540.) ac_abs_top_builddir=${ac_top_builddir}.;; 20541*) 20542 case ${ac_top_builddir}. in 20543 .) ac_abs_top_builddir=$ac_abs_builddir;; 20544 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20545 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20546 esac;; 20547esac 20548case $ac_abs_builddir in 20549.) ac_abs_srcdir=$ac_srcdir;; 20550*) 20551 case $ac_srcdir in 20552 .) ac_abs_srcdir=$ac_abs_builddir;; 20553 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20554 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20555 esac;; 20556esac 20557case $ac_abs_builddir in 20558.) ac_abs_top_srcdir=$ac_top_srcdir;; 20559*) 20560 case $ac_top_srcdir in 20561 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20562 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20563 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20564 esac;; 20565esac 20566 20567 20568 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 20569echo "$as_me: executing $ac_dest commands" >&6;} 20570 case $ac_dest in 20571 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 20572 esac 20573done 20574_ACEOF 20575 20576cat >>$CONFIG_STATUS <<\_ACEOF 20577 20578{ (exit 0); exit 0; } 20579_ACEOF 20580chmod +x $CONFIG_STATUS 20581ac_clean_files=$ac_clean_files_save 20582 20583 20584# configure is writing to config.log, and then calls config.status. 20585# config.status does its own redirection, appending to config.log. 20586# Unfortunately, on DOS this fails, as config.log is still kept open 20587# by configure, so config.status won't be able to write to it; its 20588# output is simply discarded. So we exec the FD to /dev/null, 20589# effectively closing config.log, so it can be properly (re)opened and 20590# appended to by config.status. When coming back to configure, we 20591# need to make the FD available again. 20592if test "$no_create" != yes; then 20593 ac_cs_success=: 20594 ac_config_status_args= 20595 test "$silent" = yes && 20596 ac_config_status_args="$ac_config_status_args --quiet" 20597 exec 5>/dev/null 20598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20599 exec 5>>config.log 20600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20601 # would make configure fail if this is the last instruction. 20602 $ac_cs_success || { (exit 1); exit 1; } 20603fi 20604 20605