1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string=`eval $cmd`) 2>/dev/null && 289 echo_test_string=`eval $cmd` && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME= 423PACKAGE_TARNAME= 424PACKAGE_VERSION= 425PACKAGE_STRING= 426PACKAGE_BUGREPORT= 427 428ac_unique_file="src/sqlite.h.in" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK program_prefix VERSION RELEASE VERSION_NUMBER BUILD_CC BUILD_CFLAGS SQLITE_THREADSAFE TARGET_THREAD_LIB XTHREADCONNECT THREADSOVERRIDELOCKS ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN OS_OS2 TARGET_EXEEXT TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE TARGET_DEBUG LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures this package to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008System types: 1009 --build=BUILD configure for building on BUILD [guessed] 1010 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1011_ACEOF 1012fi 1013 1014if test -n "$ac_init_help"; then 1015 1016 cat <<\_ACEOF 1017 1018Optional Features: 1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1021 --enable-shared[=PKGS] 1022 build shared libraries [default=yes] 1023 --enable-static[=PKGS] 1024 build static libraries [default=yes] 1025 --enable-fast-install[=PKGS] 1026 optimize for fast installation [default=yes] 1027 --disable-libtool-lock avoid locking (might break parallel builds) 1028 --enable-threadsafe Support threadsafe operation 1029 --enable-cross-thread-connections 1030 Allow connection sharing across threads 1031 --enable-threads-override-locks 1032 Threads can override each others locks 1033 --enable-releasemode Support libtool link to release mode 1034 --enable-tempstore Use an in-ram database for temporary tables 1035 (never,no,yes,always) 1036 --disable-tcl do not build TCL extension 1037 --disable-readline disable readline support [default=detect] 1038 --enable-debug enable debugging & verbose explain 1039 1040Optional Packages: 1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1044 --with-pic try to use only PIC/non-PIC objects [default=use 1045 both] 1046 --with-tags[=TAGS] 1047 include additional configurations [automatic] 1048 --with-hints=FILE Read configuration options from FILE 1049 --with-tcl=DIR directory containing tcl configuration 1050 (tclConfig.sh) 1051 --with-readline-lib specify readline library 1052 --with-readline-inc specify readline include paths 1053 1054Some influential environment variables: 1055 CC C compiler command 1056 CFLAGS C compiler flags 1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1058 nonstandard directory <lib dir> 1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1060 headers in a nonstandard directory <include dir> 1061 CPP C preprocessor 1062 CXX C++ compiler command 1063 CXXFLAGS C++ compiler flags 1064 CXXCPP C++ preprocessor 1065 F77 Fortran 77 compiler command 1066 FFLAGS Fortran 77 compiler flags 1067 1068Use these variables to override the choices made by `configure' or to help 1069it to find libraries and programs with nonstandard names/locations. 1070 1071_ACEOF 1072fi 1073 1074if test "$ac_init_help" = "recursive"; then 1075 # If there are subdirs, report their specific --help. 1076 ac_popdir=`pwd` 1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1078 test -d $ac_dir || continue 1079 ac_builddir=. 1080 1081if test "$ac_dir" != .; then 1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1083 # A "../" for each directory in $ac_dir_suffix. 1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1085else 1086 ac_dir_suffix= ac_top_builddir= 1087fi 1088 1089case $srcdir in 1090 .) # No --srcdir option. We are building in place. 1091 ac_srcdir=. 1092 if test -z "$ac_top_builddir"; then 1093 ac_top_srcdir=. 1094 else 1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1096 fi ;; 1097 [\\/]* | ?:[\\/]* ) # Absolute path. 1098 ac_srcdir=$srcdir$ac_dir_suffix; 1099 ac_top_srcdir=$srcdir ;; 1100 *) # Relative path. 1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1102 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1103esac 1104 1105# Do not use `cd foo && pwd` to compute absolute paths, because 1106# the directories may not exist. 1107case `pwd` in 1108.) ac_abs_builddir="$ac_dir";; 1109*) 1110 case "$ac_dir" in 1111 .) ac_abs_builddir=`pwd`;; 1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1113 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1114 esac;; 1115esac 1116case $ac_abs_builddir in 1117.) ac_abs_top_builddir=${ac_top_builddir}.;; 1118*) 1119 case ${ac_top_builddir}. in 1120 .) ac_abs_top_builddir=$ac_abs_builddir;; 1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1123 esac;; 1124esac 1125case $ac_abs_builddir in 1126.) ac_abs_srcdir=$ac_srcdir;; 1127*) 1128 case $ac_srcdir in 1129 .) ac_abs_srcdir=$ac_abs_builddir;; 1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1132 esac;; 1133esac 1134case $ac_abs_builddir in 1135.) ac_abs_top_srcdir=$ac_top_srcdir;; 1136*) 1137 case $ac_top_srcdir in 1138 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1141 esac;; 1142esac 1143 1144 cd $ac_dir 1145 # Check for guested configure; otherwise get Cygnus style configure. 1146 if test -f $ac_srcdir/configure.gnu; then 1147 echo 1148 $SHELL $ac_srcdir/configure.gnu --help=recursive 1149 elif test -f $ac_srcdir/configure; then 1150 echo 1151 $SHELL $ac_srcdir/configure --help=recursive 1152 elif test -f $ac_srcdir/configure.ac || 1153 test -f $ac_srcdir/configure.in; then 1154 echo 1155 $ac_configure --help 1156 else 1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1158 fi 1159 cd $ac_popdir 1160 done 1161fi 1162 1163test -n "$ac_init_help" && exit 0 1164if $ac_init_version; then 1165 cat <<\_ACEOF 1166 1167Copyright (C) 2003 Free Software Foundation, Inc. 1168This configure script is free software; the Free Software Foundation 1169gives unlimited permission to copy, distribute and modify it. 1170_ACEOF 1171 exit 0 1172fi 1173exec 5>config.log 1174cat >&5 <<_ACEOF 1175This file contains any messages produced by compilers while 1176running configure, to aid debugging if configure makes a mistake. 1177 1178It was created by $as_me, which was 1179generated by GNU Autoconf 2.59. Invocation command line was 1180 1181 $ $0 $@ 1182 1183_ACEOF 1184{ 1185cat <<_ASUNAME 1186## --------- ## 1187## Platform. ## 1188## --------- ## 1189 1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1191uname -m = `(uname -m) 2>/dev/null || echo unknown` 1192uname -r = `(uname -r) 2>/dev/null || echo unknown` 1193uname -s = `(uname -s) 2>/dev/null || echo unknown` 1194uname -v = `(uname -v) 2>/dev/null || echo unknown` 1195 1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1198 1199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1202hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1206 1207_ASUNAME 1208 1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1210for as_dir in $PATH 1211do 1212 IFS=$as_save_IFS 1213 test -z "$as_dir" && as_dir=. 1214 echo "PATH: $as_dir" 1215done 1216 1217} >&5 1218 1219cat >&5 <<_ACEOF 1220 1221 1222## ----------- ## 1223## Core tests. ## 1224## ----------- ## 1225 1226_ACEOF 1227 1228 1229# Keep a trace of the command line. 1230# Strip out --no-create and --no-recursion so they do not pile up. 1231# Strip out --silent because we don't want to record it for future runs. 1232# Also quote any args containing shell meta-characters. 1233# Make two passes to allow for proper duplicate-argument suppression. 1234ac_configure_args= 1235ac_configure_args0= 1236ac_configure_args1= 1237ac_sep= 1238ac_must_keep_next=false 1239for ac_pass in 1 2 1240do 1241 for ac_arg 1242 do 1243 case $ac_arg in 1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1246 | -silent | --silent | --silen | --sile | --sil) 1247 continue ;; 1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1250 esac 1251 case $ac_pass in 1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1253 2) 1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1255 if test $ac_must_keep_next = true; then 1256 ac_must_keep_next=false # Got value, back to normal. 1257 else 1258 case $ac_arg in 1259 *=* | --config-cache | -C | -disable-* | --disable-* \ 1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1262 | -with-* | --with-* | -without-* | --without-* | --x) 1263 case "$ac_configure_args0 " in 1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1265 esac 1266 ;; 1267 -* ) ac_must_keep_next=true ;; 1268 esac 1269 fi 1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1271 # Get rid of the leading space. 1272 ac_sep=" " 1273 ;; 1274 esac 1275 done 1276done 1277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1279 1280# When interrupted or exit'd, cleanup temporary files, and complete 1281# config.log. We remove comments because anyway the quotes in there 1282# would cause problems or look ugly. 1283# WARNING: Be sure not to use single quotes in there, as some shells, 1284# such as our DU 5.0 friend, will then `close' the trap. 1285trap 'exit_status=$? 1286 # Save into config.log some information that might help in debugging. 1287 { 1288 echo 1289 1290 cat <<\_ASBOX 1291## ---------------- ## 1292## Cache variables. ## 1293## ---------------- ## 1294_ASBOX 1295 echo 1296 # The following way of writing the cache mishandles newlines in values, 1297{ 1298 (set) 2>&1 | 1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1300 *ac_space=\ *) 1301 sed -n \ 1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1304 ;; 1305 *) 1306 sed -n \ 1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1308 ;; 1309 esac; 1310} 1311 echo 1312 1313 cat <<\_ASBOX 1314## ----------------- ## 1315## Output variables. ## 1316## ----------------- ## 1317_ASBOX 1318 echo 1319 for ac_var in $ac_subst_vars 1320 do 1321 eval ac_val=$`echo $ac_var` 1322 echo "$ac_var='"'"'$ac_val'"'"'" 1323 done | sort 1324 echo 1325 1326 if test -n "$ac_subst_files"; then 1327 cat <<\_ASBOX 1328## ------------- ## 1329## Output files. ## 1330## ------------- ## 1331_ASBOX 1332 echo 1333 for ac_var in $ac_subst_files 1334 do 1335 eval ac_val=$`echo $ac_var` 1336 echo "$ac_var='"'"'$ac_val'"'"'" 1337 done | sort 1338 echo 1339 fi 1340 1341 if test -s confdefs.h; then 1342 cat <<\_ASBOX 1343## ----------- ## 1344## confdefs.h. ## 1345## ----------- ## 1346_ASBOX 1347 echo 1348 sed "/^$/d" confdefs.h | sort 1349 echo 1350 fi 1351 test "$ac_signal" != 0 && 1352 echo "$as_me: caught signal $ac_signal" 1353 echo "$as_me: exit $exit_status" 1354 } >&5 1355 rm -f core *.core && 1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1357 exit $exit_status 1358 ' 0 1359for ac_signal in 1 2 13 15; do 1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1361done 1362ac_signal=0 1363 1364# confdefs.h avoids OS command line length limits that DEFS can exceed. 1365rm -rf conftest* confdefs.h 1366# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1367echo >confdefs.h 1368 1369# Predefined preprocessor variables. 1370 1371cat >>confdefs.h <<_ACEOF 1372#define PACKAGE_NAME "$PACKAGE_NAME" 1373_ACEOF 1374 1375 1376cat >>confdefs.h <<_ACEOF 1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1378_ACEOF 1379 1380 1381cat >>confdefs.h <<_ACEOF 1382#define PACKAGE_VERSION "$PACKAGE_VERSION" 1383_ACEOF 1384 1385 1386cat >>confdefs.h <<_ACEOF 1387#define PACKAGE_STRING "$PACKAGE_STRING" 1388_ACEOF 1389 1390 1391cat >>confdefs.h <<_ACEOF 1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1393_ACEOF 1394 1395 1396# Let the site file select an alternate cache file if it wants to. 1397# Prefer explicitly selected file to automatically selected ones. 1398if test -z "$CONFIG_SITE"; then 1399 if test "x$prefix" != xNONE; then 1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1401 else 1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1403 fi 1404fi 1405for ac_site_file in $CONFIG_SITE; do 1406 if test -r "$ac_site_file"; then 1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1408echo "$as_me: loading site script $ac_site_file" >&6;} 1409 sed 's/^/| /' "$ac_site_file" >&5 1410 . "$ac_site_file" 1411 fi 1412done 1413 1414if test -r "$cache_file"; then 1415 # Some versions of bash will fail to source /dev/null (special 1416 # files actually), so we avoid doing that. 1417 if test -f "$cache_file"; then 1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1419echo "$as_me: loading cache $cache_file" >&6;} 1420 case $cache_file in 1421 [\\/]* | ?:[\\/]* ) . $cache_file;; 1422 *) . ./$cache_file;; 1423 esac 1424 fi 1425else 1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1427echo "$as_me: creating cache $cache_file" >&6;} 1428 >$cache_file 1429fi 1430 1431# Check that the precious variables saved in the cache have kept the same 1432# value. 1433ac_cache_corrupted=false 1434for ac_var in `(set) 2>&1 | 1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1437 eval ac_new_set=\$ac_env_${ac_var}_set 1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1439 eval ac_new_val="\$ac_env_${ac_var}_value" 1440 case $ac_old_set,$ac_new_set in 1441 set,) 1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1444 ac_cache_corrupted=: ;; 1445 ,set) 1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1448 ac_cache_corrupted=: ;; 1449 ,);; 1450 *) 1451 if test "x$ac_old_val" != "x$ac_new_val"; then 1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1455echo "$as_me: former value: $ac_old_val" >&2;} 1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1457echo "$as_me: current value: $ac_new_val" >&2;} 1458 ac_cache_corrupted=: 1459 fi;; 1460 esac 1461 # Pass precious variables to config.status. 1462 if test "$ac_new_set" = set; then 1463 case $ac_new_val in 1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1466 *) ac_arg=$ac_var=$ac_new_val ;; 1467 esac 1468 case " $ac_configure_args " in 1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1471 esac 1472 fi 1473done 1474if $ac_cache_corrupted; then 1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1476echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1479 { (exit 1); exit 1; }; } 1480fi 1481 1482ac_ext=c 1483ac_cpp='$CPP $CPPFLAGS' 1484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1486ac_compiler_gnu=$ac_cv_c_compiler_gnu 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507# The following RCS revision string applies to configure.in 1508# $Revision: 1.45 $ 1509 1510######### 1511# Programs needed 1512# 1513# Check whether --enable-shared or --disable-shared was given. 1514if test "${enable_shared+set}" = set; then 1515 enableval="$enable_shared" 1516 p=${PACKAGE-default} 1517 case $enableval in 1518 yes) enable_shared=yes ;; 1519 no) enable_shared=no ;; 1520 *) 1521 enable_shared=no 1522 # Look at the argument we got. We use all the common list separators. 1523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1524 for pkg in $enableval; do 1525 IFS="$lt_save_ifs" 1526 if test "X$pkg" = "X$p"; then 1527 enable_shared=yes 1528 fi 1529 done 1530 IFS="$lt_save_ifs" 1531 ;; 1532 esac 1533else 1534 enable_shared=yes 1535fi; 1536 1537# Check whether --enable-static or --disable-static was given. 1538if test "${enable_static+set}" = set; then 1539 enableval="$enable_static" 1540 p=${PACKAGE-default} 1541 case $enableval in 1542 yes) enable_static=yes ;; 1543 no) enable_static=no ;; 1544 *) 1545 enable_static=no 1546 # Look at the argument we got. We use all the common list separators. 1547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1548 for pkg in $enableval; do 1549 IFS="$lt_save_ifs" 1550 if test "X$pkg" = "X$p"; then 1551 enable_static=yes 1552 fi 1553 done 1554 IFS="$lt_save_ifs" 1555 ;; 1556 esac 1557else 1558 enable_static=yes 1559fi; 1560 1561# Check whether --enable-fast-install or --disable-fast-install was given. 1562if test "${enable_fast_install+set}" = set; then 1563 enableval="$enable_fast_install" 1564 p=${PACKAGE-default} 1565 case $enableval in 1566 yes) enable_fast_install=yes ;; 1567 no) enable_fast_install=no ;; 1568 *) 1569 enable_fast_install=no 1570 # Look at the argument we got. We use all the common list separators. 1571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1572 for pkg in $enableval; do 1573 IFS="$lt_save_ifs" 1574 if test "X$pkg" = "X$p"; then 1575 enable_fast_install=yes 1576 fi 1577 done 1578 IFS="$lt_save_ifs" 1579 ;; 1580 esac 1581else 1582 enable_fast_install=yes 1583fi; 1584 1585ac_aux_dir= 1586for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1587 if test -f $ac_dir/install-sh; then 1588 ac_aux_dir=$ac_dir 1589 ac_install_sh="$ac_aux_dir/install-sh -c" 1590 break 1591 elif test -f $ac_dir/install.sh; then 1592 ac_aux_dir=$ac_dir 1593 ac_install_sh="$ac_aux_dir/install.sh -c" 1594 break 1595 elif test -f $ac_dir/shtool; then 1596 ac_aux_dir=$ac_dir 1597 ac_install_sh="$ac_aux_dir/shtool install -c" 1598 break 1599 fi 1600done 1601if test -z "$ac_aux_dir"; then 1602 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1603echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1604 { (exit 1); exit 1; }; } 1605fi 1606ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1607ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1608ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1609 1610# Make sure we can run config.sub. 1611$ac_config_sub sun4 >/dev/null 2>&1 || 1612 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1613echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1614 { (exit 1); exit 1; }; } 1615 1616echo "$as_me:$LINENO: checking build system type" >&5 1617echo $ECHO_N "checking build system type... $ECHO_C" >&6 1618if test "${ac_cv_build+set}" = set; then 1619 echo $ECHO_N "(cached) $ECHO_C" >&6 1620else 1621 ac_cv_build_alias=$build_alias 1622test -z "$ac_cv_build_alias" && 1623 ac_cv_build_alias=`$ac_config_guess` 1624test -z "$ac_cv_build_alias" && 1625 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1626echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1627 { (exit 1); exit 1; }; } 1628ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1630echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1631 { (exit 1); exit 1; }; } 1632 1633fi 1634echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1635echo "${ECHO_T}$ac_cv_build" >&6 1636build=$ac_cv_build 1637build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1638build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1639build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1640 1641 1642echo "$as_me:$LINENO: checking host system type" >&5 1643echo $ECHO_N "checking host system type... $ECHO_C" >&6 1644if test "${ac_cv_host+set}" = set; then 1645 echo $ECHO_N "(cached) $ECHO_C" >&6 1646else 1647 ac_cv_host_alias=$host_alias 1648test -z "$ac_cv_host_alias" && 1649 ac_cv_host_alias=$ac_cv_build_alias 1650ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1652echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1653 { (exit 1); exit 1; }; } 1654 1655fi 1656echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1657echo "${ECHO_T}$ac_cv_host" >&6 1658host=$ac_cv_host 1659host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1660host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1661host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1662 1663 1664ac_ext=c 1665ac_cpp='$CPP $CPPFLAGS' 1666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1668ac_compiler_gnu=$ac_cv_c_compiler_gnu 1669if test -n "$ac_tool_prefix"; then 1670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1671set dummy ${ac_tool_prefix}gcc; ac_word=$2 1672echo "$as_me:$LINENO: checking for $ac_word" >&5 1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1674if test "${ac_cv_prog_CC+set}" = set; then 1675 echo $ECHO_N "(cached) $ECHO_C" >&6 1676else 1677 if test -n "$CC"; then 1678 ac_cv_prog_CC="$CC" # Let the user override the test. 1679else 1680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1681for as_dir in $PATH 1682do 1683 IFS=$as_save_IFS 1684 test -z "$as_dir" && as_dir=. 1685 for ac_exec_ext in '' $ac_executable_extensions; do 1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1687 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1689 break 2 1690 fi 1691done 1692done 1693 1694fi 1695fi 1696CC=$ac_cv_prog_CC 1697if test -n "$CC"; then 1698 echo "$as_me:$LINENO: result: $CC" >&5 1699echo "${ECHO_T}$CC" >&6 1700else 1701 echo "$as_me:$LINENO: result: no" >&5 1702echo "${ECHO_T}no" >&6 1703fi 1704 1705fi 1706if test -z "$ac_cv_prog_CC"; then 1707 ac_ct_CC=$CC 1708 # Extract the first word of "gcc", so it can be a program name with args. 1709set dummy gcc; ac_word=$2 1710echo "$as_me:$LINENO: checking for $ac_word" >&5 1711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1713 echo $ECHO_N "(cached) $ECHO_C" >&6 1714else 1715 if test -n "$ac_ct_CC"; then 1716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1717else 1718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1719for as_dir in $PATH 1720do 1721 IFS=$as_save_IFS 1722 test -z "$as_dir" && as_dir=. 1723 for ac_exec_ext in '' $ac_executable_extensions; do 1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1725 ac_cv_prog_ac_ct_CC="gcc" 1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1727 break 2 1728 fi 1729done 1730done 1731 1732fi 1733fi 1734ac_ct_CC=$ac_cv_prog_ac_ct_CC 1735if test -n "$ac_ct_CC"; then 1736 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1737echo "${ECHO_T}$ac_ct_CC" >&6 1738else 1739 echo "$as_me:$LINENO: result: no" >&5 1740echo "${ECHO_T}no" >&6 1741fi 1742 1743 CC=$ac_ct_CC 1744else 1745 CC="$ac_cv_prog_CC" 1746fi 1747 1748if test -z "$CC"; then 1749 if test -n "$ac_tool_prefix"; then 1750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1751set dummy ${ac_tool_prefix}cc; ac_word=$2 1752echo "$as_me:$LINENO: checking for $ac_word" >&5 1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1754if test "${ac_cv_prog_CC+set}" = set; then 1755 echo $ECHO_N "(cached) $ECHO_C" >&6 1756else 1757 if test -n "$CC"; then 1758 ac_cv_prog_CC="$CC" # Let the user override the test. 1759else 1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1761for as_dir in $PATH 1762do 1763 IFS=$as_save_IFS 1764 test -z "$as_dir" && as_dir=. 1765 for ac_exec_ext in '' $ac_executable_extensions; do 1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1767 ac_cv_prog_CC="${ac_tool_prefix}cc" 1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1769 break 2 1770 fi 1771done 1772done 1773 1774fi 1775fi 1776CC=$ac_cv_prog_CC 1777if test -n "$CC"; then 1778 echo "$as_me:$LINENO: result: $CC" >&5 1779echo "${ECHO_T}$CC" >&6 1780else 1781 echo "$as_me:$LINENO: result: no" >&5 1782echo "${ECHO_T}no" >&6 1783fi 1784 1785fi 1786if test -z "$ac_cv_prog_CC"; then 1787 ac_ct_CC=$CC 1788 # Extract the first word of "cc", so it can be a program name with args. 1789set dummy cc; ac_word=$2 1790echo "$as_me:$LINENO: checking for $ac_word" >&5 1791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1793 echo $ECHO_N "(cached) $ECHO_C" >&6 1794else 1795 if test -n "$ac_ct_CC"; then 1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1797else 1798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1799for as_dir in $PATH 1800do 1801 IFS=$as_save_IFS 1802 test -z "$as_dir" && as_dir=. 1803 for ac_exec_ext in '' $ac_executable_extensions; do 1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1805 ac_cv_prog_ac_ct_CC="cc" 1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1807 break 2 1808 fi 1809done 1810done 1811 1812fi 1813fi 1814ac_ct_CC=$ac_cv_prog_ac_ct_CC 1815if test -n "$ac_ct_CC"; then 1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1817echo "${ECHO_T}$ac_ct_CC" >&6 1818else 1819 echo "$as_me:$LINENO: result: no" >&5 1820echo "${ECHO_T}no" >&6 1821fi 1822 1823 CC=$ac_ct_CC 1824else 1825 CC="$ac_cv_prog_CC" 1826fi 1827 1828fi 1829if test -z "$CC"; then 1830 # Extract the first word of "cc", so it can be a program name with args. 1831set dummy cc; ac_word=$2 1832echo "$as_me:$LINENO: checking for $ac_word" >&5 1833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1834if test "${ac_cv_prog_CC+set}" = set; then 1835 echo $ECHO_N "(cached) $ECHO_C" >&6 1836else 1837 if test -n "$CC"; then 1838 ac_cv_prog_CC="$CC" # Let the user override the test. 1839else 1840 ac_prog_rejected=no 1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1842for as_dir in $PATH 1843do 1844 IFS=$as_save_IFS 1845 test -z "$as_dir" && as_dir=. 1846 for ac_exec_ext in '' $ac_executable_extensions; do 1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1848 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1849 ac_prog_rejected=yes 1850 continue 1851 fi 1852 ac_cv_prog_CC="cc" 1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1854 break 2 1855 fi 1856done 1857done 1858 1859if test $ac_prog_rejected = yes; then 1860 # We found a bogon in the path, so make sure we never use it. 1861 set dummy $ac_cv_prog_CC 1862 shift 1863 if test $# != 0; then 1864 # We chose a different compiler from the bogus one. 1865 # However, it has the same basename, so the bogon will be chosen 1866 # first if we set CC to just the basename; use the full file name. 1867 shift 1868 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1869 fi 1870fi 1871fi 1872fi 1873CC=$ac_cv_prog_CC 1874if test -n "$CC"; then 1875 echo "$as_me:$LINENO: result: $CC" >&5 1876echo "${ECHO_T}$CC" >&6 1877else 1878 echo "$as_me:$LINENO: result: no" >&5 1879echo "${ECHO_T}no" >&6 1880fi 1881 1882fi 1883if test -z "$CC"; then 1884 if test -n "$ac_tool_prefix"; then 1885 for ac_prog in cl 1886 do 1887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1888set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1889echo "$as_me:$LINENO: checking for $ac_word" >&5 1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1891if test "${ac_cv_prog_CC+set}" = set; then 1892 echo $ECHO_N "(cached) $ECHO_C" >&6 1893else 1894 if test -n "$CC"; then 1895 ac_cv_prog_CC="$CC" # Let the user override the test. 1896else 1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1898for as_dir in $PATH 1899do 1900 IFS=$as_save_IFS 1901 test -z "$as_dir" && as_dir=. 1902 for ac_exec_ext in '' $ac_executable_extensions; do 1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1906 break 2 1907 fi 1908done 1909done 1910 1911fi 1912fi 1913CC=$ac_cv_prog_CC 1914if test -n "$CC"; then 1915 echo "$as_me:$LINENO: result: $CC" >&5 1916echo "${ECHO_T}$CC" >&6 1917else 1918 echo "$as_me:$LINENO: result: no" >&5 1919echo "${ECHO_T}no" >&6 1920fi 1921 1922 test -n "$CC" && break 1923 done 1924fi 1925if test -z "$CC"; then 1926 ac_ct_CC=$CC 1927 for ac_prog in cl 1928do 1929 # Extract the first word of "$ac_prog", so it can be a program name with args. 1930set dummy $ac_prog; ac_word=$2 1931echo "$as_me:$LINENO: checking for $ac_word" >&5 1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1933if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1934 echo $ECHO_N "(cached) $ECHO_C" >&6 1935else 1936 if test -n "$ac_ct_CC"; then 1937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1938else 1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1940for as_dir in $PATH 1941do 1942 IFS=$as_save_IFS 1943 test -z "$as_dir" && as_dir=. 1944 for ac_exec_ext in '' $ac_executable_extensions; do 1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1946 ac_cv_prog_ac_ct_CC="$ac_prog" 1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1948 break 2 1949 fi 1950done 1951done 1952 1953fi 1954fi 1955ac_ct_CC=$ac_cv_prog_ac_ct_CC 1956if test -n "$ac_ct_CC"; then 1957 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1958echo "${ECHO_T}$ac_ct_CC" >&6 1959else 1960 echo "$as_me:$LINENO: result: no" >&5 1961echo "${ECHO_T}no" >&6 1962fi 1963 1964 test -n "$ac_ct_CC" && break 1965done 1966 1967 CC=$ac_ct_CC 1968fi 1969 1970fi 1971 1972 1973test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1974See \`config.log' for more details." >&5 1975echo "$as_me: error: no acceptable C compiler found in \$PATH 1976See \`config.log' for more details." >&2;} 1977 { (exit 1); exit 1; }; } 1978 1979# Provide some information about the compiler. 1980echo "$as_me:$LINENO:" \ 1981 "checking for C compiler version" >&5 1982ac_compiler=`set X $ac_compile; echo $2` 1983{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1984 (eval $ac_compiler --version </dev/null >&5) 2>&5 1985 ac_status=$? 1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1987 (exit $ac_status); } 1988{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1989 (eval $ac_compiler -v </dev/null >&5) 2>&5 1990 ac_status=$? 1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1992 (exit $ac_status); } 1993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1994 (eval $ac_compiler -V </dev/null >&5) 2>&5 1995 ac_status=$? 1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1997 (exit $ac_status); } 1998 1999cat >conftest.$ac_ext <<_ACEOF 2000/* confdefs.h. */ 2001_ACEOF 2002cat confdefs.h >>conftest.$ac_ext 2003cat >>conftest.$ac_ext <<_ACEOF 2004/* end confdefs.h. */ 2005 2006int 2007main () 2008{ 2009 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014ac_clean_files_save=$ac_clean_files 2015ac_clean_files="$ac_clean_files a.out a.exe b.out" 2016# Try to create an executable without -o first, disregard a.out. 2017# It will help us diagnose broken compilers, and finding out an intuition 2018# of exeext. 2019echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2020echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2021ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2022if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2023 (eval $ac_link_default) 2>&5 2024 ac_status=$? 2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2026 (exit $ac_status); }; then 2027 # Find the output, starting from the most likely. This scheme is 2028# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2029# resort. 2030 2031# Be careful to initialize this variable, since it used to be cached. 2032# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2033ac_cv_exeext= 2034# b.out is created by i960 compilers. 2035for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2036do 2037 test -f "$ac_file" || continue 2038 case $ac_file in 2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2040 ;; 2041 conftest.$ac_ext ) 2042 # This is the source file. 2043 ;; 2044 [ab].out ) 2045 # We found the default executable, but exeext='' is most 2046 # certainly right. 2047 break;; 2048 *.* ) 2049 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2050 # FIXME: I believe we export ac_cv_exeext for Libtool, 2051 # but it would be cool to find out if it's true. Does anybody 2052 # maintain Libtool? --akim. 2053 export ac_cv_exeext 2054 break;; 2055 * ) 2056 break;; 2057 esac 2058done 2059else 2060 echo "$as_me: failed program was:" >&5 2061sed 's/^/| /' conftest.$ac_ext >&5 2062 2063{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2064See \`config.log' for more details." >&5 2065echo "$as_me: error: C compiler cannot create executables 2066See \`config.log' for more details." >&2;} 2067 { (exit 77); exit 77; }; } 2068fi 2069 2070ac_exeext=$ac_cv_exeext 2071echo "$as_me:$LINENO: result: $ac_file" >&5 2072echo "${ECHO_T}$ac_file" >&6 2073 2074# Check the compiler produces executables we can run. If not, either 2075# the compiler is broken, or we cross compile. 2076echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2077echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2078# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2079# If not cross compiling, check that we can run a simple program. 2080if test "$cross_compiling" != yes; then 2081 if { ac_try='./$ac_file' 2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2083 (eval $ac_try) 2>&5 2084 ac_status=$? 2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2086 (exit $ac_status); }; }; then 2087 cross_compiling=no 2088 else 2089 if test "$cross_compiling" = maybe; then 2090 cross_compiling=yes 2091 else 2092 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2093If you meant to cross compile, use \`--host'. 2094See \`config.log' for more details." >&5 2095echo "$as_me: error: cannot run C compiled programs. 2096If you meant to cross compile, use \`--host'. 2097See \`config.log' for more details." >&2;} 2098 { (exit 1); exit 1; }; } 2099 fi 2100 fi 2101fi 2102echo "$as_me:$LINENO: result: yes" >&5 2103echo "${ECHO_T}yes" >&6 2104 2105rm -f a.out a.exe conftest$ac_cv_exeext b.out 2106ac_clean_files=$ac_clean_files_save 2107# Check the compiler produces executables we can run. If not, either 2108# the compiler is broken, or we cross compile. 2109echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2110echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2111echo "$as_me:$LINENO: result: $cross_compiling" >&5 2112echo "${ECHO_T}$cross_compiling" >&6 2113 2114echo "$as_me:$LINENO: checking for suffix of executables" >&5 2115echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2117 (eval $ac_link) 2>&5 2118 ac_status=$? 2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2120 (exit $ac_status); }; then 2121 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2122# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2123# work properly (i.e., refer to `conftest.exe'), while it won't with 2124# `rm'. 2125for ac_file in conftest.exe conftest conftest.*; do 2126 test -f "$ac_file" || continue 2127 case $ac_file in 2128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2130 export ac_cv_exeext 2131 break;; 2132 * ) break;; 2133 esac 2134done 2135else 2136 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2137See \`config.log' for more details." >&5 2138echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2139See \`config.log' for more details." >&2;} 2140 { (exit 1); exit 1; }; } 2141fi 2142 2143rm -f conftest$ac_cv_exeext 2144echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2145echo "${ECHO_T}$ac_cv_exeext" >&6 2146 2147rm -f conftest.$ac_ext 2148EXEEXT=$ac_cv_exeext 2149ac_exeext=$EXEEXT 2150echo "$as_me:$LINENO: checking for suffix of object files" >&5 2151echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2152if test "${ac_cv_objext+set}" = set; then 2153 echo $ECHO_N "(cached) $ECHO_C" >&6 2154else 2155 cat >conftest.$ac_ext <<_ACEOF 2156/* confdefs.h. */ 2157_ACEOF 2158cat confdefs.h >>conftest.$ac_ext 2159cat >>conftest.$ac_ext <<_ACEOF 2160/* end confdefs.h. */ 2161 2162int 2163main () 2164{ 2165 2166 ; 2167 return 0; 2168} 2169_ACEOF 2170rm -f conftest.o conftest.obj 2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2172 (eval $ac_compile) 2>&5 2173 ac_status=$? 2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2175 (exit $ac_status); }; then 2176 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2177 case $ac_file in 2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2180 break;; 2181 esac 2182done 2183else 2184 echo "$as_me: failed program was:" >&5 2185sed 's/^/| /' conftest.$ac_ext >&5 2186 2187{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2188See \`config.log' for more details." >&5 2189echo "$as_me: error: cannot compute suffix of object files: cannot compile 2190See \`config.log' for more details." >&2;} 2191 { (exit 1); exit 1; }; } 2192fi 2193 2194rm -f conftest.$ac_cv_objext conftest.$ac_ext 2195fi 2196echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2197echo "${ECHO_T}$ac_cv_objext" >&6 2198OBJEXT=$ac_cv_objext 2199ac_objext=$OBJEXT 2200echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2201echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2202if test "${ac_cv_c_compiler_gnu+set}" = set; then 2203 echo $ECHO_N "(cached) $ECHO_C" >&6 2204else 2205 cat >conftest.$ac_ext <<_ACEOF 2206/* confdefs.h. */ 2207_ACEOF 2208cat confdefs.h >>conftest.$ac_ext 2209cat >>conftest.$ac_ext <<_ACEOF 2210/* end confdefs.h. */ 2211 2212int 2213main () 2214{ 2215#ifndef __GNUC__ 2216 choke me 2217#endif 2218 2219 ; 2220 return 0; 2221} 2222_ACEOF 2223rm -f conftest.$ac_objext 2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2225 (eval $ac_compile) 2>conftest.er1 2226 ac_status=$? 2227 grep -v '^ *+' conftest.er1 >conftest.err 2228 rm -f conftest.er1 2229 cat conftest.err >&5 2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2231 (exit $ac_status); } && 2232 { ac_try='test -z "$ac_c_werror_flag" 2233 || test ! -s conftest.err' 2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2235 (eval $ac_try) 2>&5 2236 ac_status=$? 2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2238 (exit $ac_status); }; } && 2239 { ac_try='test -s conftest.$ac_objext' 2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2241 (eval $ac_try) 2>&5 2242 ac_status=$? 2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2244 (exit $ac_status); }; }; then 2245 ac_compiler_gnu=yes 2246else 2247 echo "$as_me: failed program was:" >&5 2248sed 's/^/| /' conftest.$ac_ext >&5 2249 2250ac_compiler_gnu=no 2251fi 2252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2253ac_cv_c_compiler_gnu=$ac_compiler_gnu 2254 2255fi 2256echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2257echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2258GCC=`test $ac_compiler_gnu = yes && echo yes` 2259ac_test_CFLAGS=${CFLAGS+set} 2260ac_save_CFLAGS=$CFLAGS 2261CFLAGS="-g" 2262echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2263echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2264if test "${ac_cv_prog_cc_g+set}" = set; then 2265 echo $ECHO_N "(cached) $ECHO_C" >&6 2266else 2267 cat >conftest.$ac_ext <<_ACEOF 2268/* confdefs.h. */ 2269_ACEOF 2270cat confdefs.h >>conftest.$ac_ext 2271cat >>conftest.$ac_ext <<_ACEOF 2272/* end confdefs.h. */ 2273 2274int 2275main () 2276{ 2277 2278 ; 2279 return 0; 2280} 2281_ACEOF 2282rm -f conftest.$ac_objext 2283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2284 (eval $ac_compile) 2>conftest.er1 2285 ac_status=$? 2286 grep -v '^ *+' conftest.er1 >conftest.err 2287 rm -f conftest.er1 2288 cat conftest.err >&5 2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2290 (exit $ac_status); } && 2291 { ac_try='test -z "$ac_c_werror_flag" 2292 || test ! -s conftest.err' 2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2294 (eval $ac_try) 2>&5 2295 ac_status=$? 2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2297 (exit $ac_status); }; } && 2298 { ac_try='test -s conftest.$ac_objext' 2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2300 (eval $ac_try) 2>&5 2301 ac_status=$? 2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2303 (exit $ac_status); }; }; then 2304 ac_cv_prog_cc_g=yes 2305else 2306 echo "$as_me: failed program was:" >&5 2307sed 's/^/| /' conftest.$ac_ext >&5 2308 2309ac_cv_prog_cc_g=no 2310fi 2311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2312fi 2313echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2314echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2315if test "$ac_test_CFLAGS" = set; then 2316 CFLAGS=$ac_save_CFLAGS 2317elif test $ac_cv_prog_cc_g = yes; then 2318 if test "$GCC" = yes; then 2319 CFLAGS="-g -O2" 2320 else 2321 CFLAGS="-g" 2322 fi 2323else 2324 if test "$GCC" = yes; then 2325 CFLAGS="-O2" 2326 else 2327 CFLAGS= 2328 fi 2329fi 2330echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2331echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2332if test "${ac_cv_prog_cc_stdc+set}" = set; then 2333 echo $ECHO_N "(cached) $ECHO_C" >&6 2334else 2335 ac_cv_prog_cc_stdc=no 2336ac_save_CC=$CC 2337cat >conftest.$ac_ext <<_ACEOF 2338/* confdefs.h. */ 2339_ACEOF 2340cat confdefs.h >>conftest.$ac_ext 2341cat >>conftest.$ac_ext <<_ACEOF 2342/* end confdefs.h. */ 2343#include <stdarg.h> 2344#include <stdio.h> 2345#include <sys/types.h> 2346#include <sys/stat.h> 2347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2348struct buf { int x; }; 2349FILE * (*rcsopen) (struct buf *, struct stat *, int); 2350static char *e (p, i) 2351 char **p; 2352 int i; 2353{ 2354 return p[i]; 2355} 2356static char *f (char * (*g) (char **, int), char **p, ...) 2357{ 2358 char *s; 2359 va_list v; 2360 va_start (v,p); 2361 s = g (p, va_arg (v,int)); 2362 va_end (v); 2363 return s; 2364} 2365 2366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2367 function prototypes and stuff, but not '\xHH' hex character constants. 2368 These don't provoke an error unfortunately, instead are silently treated 2369 as 'x'. The following induces an error, until -std1 is added to get 2370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2371 array size at least. It's necessary to write '\x00'==0 to get something 2372 that's true only with -std1. */ 2373int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2374 2375int test (int i, double x); 2376struct s1 {int (*f) (int a);}; 2377struct s2 {int (*f) (double a);}; 2378int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2379int argc; 2380char **argv; 2381int 2382main () 2383{ 2384return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2385 ; 2386 return 0; 2387} 2388_ACEOF 2389# Don't try gcc -ansi; that turns off useful extensions and 2390# breaks some systems' header files. 2391# AIX -qlanglvl=ansi 2392# Ultrix and OSF/1 -std1 2393# HP-UX 10.20 and later -Ae 2394# HP-UX older versions -Aa -D_HPUX_SOURCE 2395# SVR4 -Xc -D__EXTENSIONS__ 2396for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2397do 2398 CC="$ac_save_CC $ac_arg" 2399 rm -f conftest.$ac_objext 2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2401 (eval $ac_compile) 2>conftest.er1 2402 ac_status=$? 2403 grep -v '^ *+' conftest.er1 >conftest.err 2404 rm -f conftest.er1 2405 cat conftest.err >&5 2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2407 (exit $ac_status); } && 2408 { ac_try='test -z "$ac_c_werror_flag" 2409 || test ! -s conftest.err' 2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2411 (eval $ac_try) 2>&5 2412 ac_status=$? 2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2414 (exit $ac_status); }; } && 2415 { ac_try='test -s conftest.$ac_objext' 2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2417 (eval $ac_try) 2>&5 2418 ac_status=$? 2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2420 (exit $ac_status); }; }; then 2421 ac_cv_prog_cc_stdc=$ac_arg 2422break 2423else 2424 echo "$as_me: failed program was:" >&5 2425sed 's/^/| /' conftest.$ac_ext >&5 2426 2427fi 2428rm -f conftest.err conftest.$ac_objext 2429done 2430rm -f conftest.$ac_ext conftest.$ac_objext 2431CC=$ac_save_CC 2432 2433fi 2434 2435case "x$ac_cv_prog_cc_stdc" in 2436 x|xno) 2437 echo "$as_me:$LINENO: result: none needed" >&5 2438echo "${ECHO_T}none needed" >&6 ;; 2439 *) 2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2441echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2442 CC="$CC $ac_cv_prog_cc_stdc" ;; 2443esac 2444 2445# Some people use a C++ compiler to compile C. Since we use `exit', 2446# in C++ we need to declare it. In case someone uses the same compiler 2447# for both compiling C and C++ we need to have the C++ compiler decide 2448# the declaration of exit, since it's the most demanding environment. 2449cat >conftest.$ac_ext <<_ACEOF 2450#ifndef __cplusplus 2451 choke me 2452#endif 2453_ACEOF 2454rm -f conftest.$ac_objext 2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2456 (eval $ac_compile) 2>conftest.er1 2457 ac_status=$? 2458 grep -v '^ *+' conftest.er1 >conftest.err 2459 rm -f conftest.er1 2460 cat conftest.err >&5 2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2462 (exit $ac_status); } && 2463 { ac_try='test -z "$ac_c_werror_flag" 2464 || test ! -s conftest.err' 2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2466 (eval $ac_try) 2>&5 2467 ac_status=$? 2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2469 (exit $ac_status); }; } && 2470 { ac_try='test -s conftest.$ac_objext' 2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2472 (eval $ac_try) 2>&5 2473 ac_status=$? 2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2475 (exit $ac_status); }; }; then 2476 for ac_declaration in \ 2477 '' \ 2478 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2479 'extern "C" void std::exit (int); using std::exit;' \ 2480 'extern "C" void exit (int) throw ();' \ 2481 'extern "C" void exit (int);' \ 2482 'void exit (int);' 2483do 2484 cat >conftest.$ac_ext <<_ACEOF 2485/* confdefs.h. */ 2486_ACEOF 2487cat confdefs.h >>conftest.$ac_ext 2488cat >>conftest.$ac_ext <<_ACEOF 2489/* end confdefs.h. */ 2490$ac_declaration 2491#include <stdlib.h> 2492int 2493main () 2494{ 2495exit (42); 2496 ; 2497 return 0; 2498} 2499_ACEOF 2500rm -f conftest.$ac_objext 2501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2502 (eval $ac_compile) 2>conftest.er1 2503 ac_status=$? 2504 grep -v '^ *+' conftest.er1 >conftest.err 2505 rm -f conftest.er1 2506 cat conftest.err >&5 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); } && 2509 { ac_try='test -z "$ac_c_werror_flag" 2510 || test ! -s conftest.err' 2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2512 (eval $ac_try) 2>&5 2513 ac_status=$? 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); }; } && 2516 { ac_try='test -s conftest.$ac_objext' 2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2518 (eval $ac_try) 2>&5 2519 ac_status=$? 2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2521 (exit $ac_status); }; }; then 2522 : 2523else 2524 echo "$as_me: failed program was:" >&5 2525sed 's/^/| /' conftest.$ac_ext >&5 2526 2527continue 2528fi 2529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2530 cat >conftest.$ac_ext <<_ACEOF 2531/* confdefs.h. */ 2532_ACEOF 2533cat confdefs.h >>conftest.$ac_ext 2534cat >>conftest.$ac_ext <<_ACEOF 2535/* end confdefs.h. */ 2536$ac_declaration 2537int 2538main () 2539{ 2540exit (42); 2541 ; 2542 return 0; 2543} 2544_ACEOF 2545rm -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" 2555 || test ! -s conftest.err' 2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2557 (eval $ac_try) 2>&5 2558 ac_status=$? 2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2560 (exit $ac_status); }; } && 2561 { ac_try='test -s conftest.$ac_objext' 2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2563 (eval $ac_try) 2>&5 2564 ac_status=$? 2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2566 (exit $ac_status); }; }; then 2567 break 2568else 2569 echo "$as_me: failed program was:" >&5 2570sed 's/^/| /' conftest.$ac_ext >&5 2571 2572fi 2573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2574done 2575rm -f conftest* 2576if test -n "$ac_declaration"; then 2577 echo '#ifdef __cplusplus' >>confdefs.h 2578 echo $ac_declaration >>confdefs.h 2579 echo '#endif' >>confdefs.h 2580fi 2581 2582else 2583 echo "$as_me: failed program was:" >&5 2584sed 's/^/| /' conftest.$ac_ext >&5 2585 2586fi 2587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2588ac_ext=c 2589ac_cpp='$CPP $CPPFLAGS' 2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2592ac_compiler_gnu=$ac_cv_c_compiler_gnu 2593 2594echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 2595echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 2596if test "${lt_cv_path_SED+set}" = set; then 2597 echo $ECHO_N "(cached) $ECHO_C" >&6 2598else 2599 # Loop through the user's path and test for sed and gsed. 2600# Then use that list of sed's as ones to test for truncation. 2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2602for as_dir in $PATH 2603do 2604 IFS=$as_save_IFS 2605 test -z "$as_dir" && as_dir=. 2606 for lt_ac_prog in sed gsed; do 2607 for ac_exec_ext in '' $ac_executable_extensions; do 2608 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 2609 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 2610 fi 2611 done 2612 done 2613done 2614lt_ac_max=0 2615lt_ac_count=0 2616# Add /usr/xpg4/bin/sed as it is typically found on Solaris 2617# along with /bin/sed that truncates output. 2618for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 2619 test ! -f $lt_ac_sed && continue 2620 cat /dev/null > conftest.in 2621 lt_ac_count=0 2622 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 2623 # Check for GNU sed and select it if it is found. 2624 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 2625 lt_cv_path_SED=$lt_ac_sed 2626 break 2627 fi 2628 while true; do 2629 cat conftest.in conftest.in >conftest.tmp 2630 mv conftest.tmp conftest.in 2631 cp conftest.in conftest.nl 2632 echo >>conftest.nl 2633 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 2634 cmp -s conftest.out conftest.nl || break 2635 # 10000 chars as input seems more than enough 2636 test $lt_ac_count -gt 10 && break 2637 lt_ac_count=`expr $lt_ac_count + 1` 2638 if test $lt_ac_count -gt $lt_ac_max; then 2639 lt_ac_max=$lt_ac_count 2640 lt_cv_path_SED=$lt_ac_sed 2641 fi 2642 done 2643done 2644 2645fi 2646 2647SED=$lt_cv_path_SED 2648echo "$as_me:$LINENO: result: $SED" >&5 2649echo "${ECHO_T}$SED" >&6 2650 2651echo "$as_me:$LINENO: checking for egrep" >&5 2652echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2653if test "${ac_cv_prog_egrep+set}" = set; then 2654 echo $ECHO_N "(cached) $ECHO_C" >&6 2655else 2656 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2657 then ac_cv_prog_egrep='grep -E' 2658 else ac_cv_prog_egrep='egrep' 2659 fi 2660fi 2661echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2662echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2663 EGREP=$ac_cv_prog_egrep 2664 2665 2666 2667# Check whether --with-gnu-ld or --without-gnu-ld was given. 2668if test "${with_gnu_ld+set}" = set; then 2669 withval="$with_gnu_ld" 2670 test "$withval" = no || with_gnu_ld=yes 2671else 2672 with_gnu_ld=no 2673fi; 2674ac_prog=ld 2675if test "$GCC" = yes; then 2676 # Check if gcc -print-prog-name=ld gives a path. 2677 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 2678echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 2679 case $host in 2680 *-*-mingw*) 2681 # gcc leaves a trailing carriage return which upsets mingw 2682 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2683 *) 2684 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2685 esac 2686 case $ac_prog in 2687 # Accept absolute paths. 2688 [\\/]* | ?:[\\/]*) 2689 re_direlt='/[^/][^/]*/\.\./' 2690 # Canonicalize the pathname of ld 2691 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2692 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2693 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2694 done 2695 test -z "$LD" && LD="$ac_prog" 2696 ;; 2697 "") 2698 # If it fails, then pretend we aren't using GCC. 2699 ac_prog=ld 2700 ;; 2701 *) 2702 # If it is relative, then search for the first ld in PATH. 2703 with_gnu_ld=unknown 2704 ;; 2705 esac 2706elif test "$with_gnu_ld" = yes; then 2707 echo "$as_me:$LINENO: checking for GNU ld" >&5 2708echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 2709else 2710 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 2711echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 2712fi 2713if test "${lt_cv_path_LD+set}" = set; then 2714 echo $ECHO_N "(cached) $ECHO_C" >&6 2715else 2716 if test -z "$LD"; then 2717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2718 for ac_dir in $PATH; do 2719 IFS="$lt_save_ifs" 2720 test -z "$ac_dir" && ac_dir=. 2721 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2722 lt_cv_path_LD="$ac_dir/$ac_prog" 2723 # Check to see if the program is GNU ld. I'd rather use --version, 2724 # but apparently some variants of GNU ld only accept -v. 2725 # Break only if it was the GNU/non-GNU ld that we prefer. 2726 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2727 *GNU* | *'with BFD'*) 2728 test "$with_gnu_ld" != no && break 2729 ;; 2730 *) 2731 test "$with_gnu_ld" != yes && break 2732 ;; 2733 esac 2734 fi 2735 done 2736 IFS="$lt_save_ifs" 2737else 2738 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2739fi 2740fi 2741 2742LD="$lt_cv_path_LD" 2743if test -n "$LD"; then 2744 echo "$as_me:$LINENO: result: $LD" >&5 2745echo "${ECHO_T}$LD" >&6 2746else 2747 echo "$as_me:$LINENO: result: no" >&5 2748echo "${ECHO_T}no" >&6 2749fi 2750test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 2751echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 2752 { (exit 1); exit 1; }; } 2753echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 2754echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 2755if test "${lt_cv_prog_gnu_ld+set}" = set; then 2756 echo $ECHO_N "(cached) $ECHO_C" >&6 2757else 2758 # I'd rather use --version here, but apparently some GNU lds only accept -v. 2759case `$LD -v 2>&1 </dev/null` in 2760*GNU* | *'with BFD'*) 2761 lt_cv_prog_gnu_ld=yes 2762 ;; 2763*) 2764 lt_cv_prog_gnu_ld=no 2765 ;; 2766esac 2767fi 2768echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 2769echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 2770with_gnu_ld=$lt_cv_prog_gnu_ld 2771 2772 2773echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 2774echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 2775if test "${lt_cv_ld_reload_flag+set}" = set; then 2776 echo $ECHO_N "(cached) $ECHO_C" >&6 2777else 2778 lt_cv_ld_reload_flag='-r' 2779fi 2780echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 2781echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 2782reload_flag=$lt_cv_ld_reload_flag 2783case $reload_flag in 2784"" | " "*) ;; 2785*) reload_flag=" $reload_flag" ;; 2786esac 2787reload_cmds='$LD$reload_flag -o $output$reload_objs' 2788case $host_os in 2789 darwin*) 2790 if test "$GCC" = yes; then 2791 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2792 else 2793 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2794 fi 2795 ;; 2796esac 2797 2798echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 2799echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 2800if test "${lt_cv_path_NM+set}" = set; then 2801 echo $ECHO_N "(cached) $ECHO_C" >&6 2802else 2803 if test -n "$NM"; then 2804 # Let the user override the test. 2805 lt_cv_path_NM="$NM" 2806else 2807 lt_nm_to_check="${ac_tool_prefix}nm" 2808 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2809 lt_nm_to_check="$lt_nm_to_check nm" 2810 fi 2811 for lt_tmp_nm in $lt_nm_to_check; do 2812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2813 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 2814 IFS="$lt_save_ifs" 2815 test -z "$ac_dir" && ac_dir=. 2816 tmp_nm="$ac_dir/$lt_tmp_nm" 2817 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2818 # Check to see if the nm accepts a BSD-compat flag. 2819 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2820 # nm: unknown option "B" ignored 2821 # Tru64's nm complains that /dev/null is an invalid object file 2822 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2823 */dev/null* | *'Invalid file or object type'*) 2824 lt_cv_path_NM="$tmp_nm -B" 2825 break 2826 ;; 2827 *) 2828 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2829 */dev/null*) 2830 lt_cv_path_NM="$tmp_nm -p" 2831 break 2832 ;; 2833 *) 2834 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2835 continue # so that we can try to find one that supports BSD flags 2836 ;; 2837 esac 2838 ;; 2839 esac 2840 fi 2841 done 2842 IFS="$lt_save_ifs" 2843 done 2844 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2845fi 2846fi 2847echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 2848echo "${ECHO_T}$lt_cv_path_NM" >&6 2849NM="$lt_cv_path_NM" 2850 2851echo "$as_me:$LINENO: checking whether ln -s works" >&5 2852echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2853LN_S=$as_ln_s 2854if test "$LN_S" = "ln -s"; then 2855 echo "$as_me:$LINENO: result: yes" >&5 2856echo "${ECHO_T}yes" >&6 2857else 2858 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2859echo "${ECHO_T}no, using $LN_S" >&6 2860fi 2861 2862echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 2863echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 2864if test "${lt_cv_deplibs_check_method+set}" = set; then 2865 echo $ECHO_N "(cached) $ECHO_C" >&6 2866else 2867 lt_cv_file_magic_cmd='$MAGIC_CMD' 2868lt_cv_file_magic_test_file= 2869lt_cv_deplibs_check_method='unknown' 2870# Need to set the preceding variable on all platforms that support 2871# interlibrary dependencies. 2872# 'none' -- dependencies not supported. 2873# `unknown' -- same as none, but documents that we really don't know. 2874# 'pass_all' -- all dependencies passed with no checks. 2875# 'test_compile' -- check by making test program. 2876# 'file_magic [[regex]]' -- check by looking for files in library path 2877# which responds to the $file_magic_cmd with a given extended regex. 2878# If you have `file' or equivalent on your system and you're not sure 2879# whether `pass_all' will *always* work, you probably want this one. 2880 2881case $host_os in 2882aix4* | aix5*) 2883 lt_cv_deplibs_check_method=pass_all 2884 ;; 2885 2886beos*) 2887 lt_cv_deplibs_check_method=pass_all 2888 ;; 2889 2890bsdi[45]*) 2891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 2892 lt_cv_file_magic_cmd='/usr/bin/file -L' 2893 lt_cv_file_magic_test_file=/shlib/libc.so 2894 ;; 2895 2896cygwin*) 2897 # func_win32_libid is a shell function defined in ltmain.sh 2898 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2899 lt_cv_file_magic_cmd='func_win32_libid' 2900 ;; 2901 2902mingw* | pw32*) 2903 # Base MSYS/MinGW do not provide the 'file' command needed by 2904 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2905 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2906 lt_cv_file_magic_cmd='$OBJDUMP -f' 2907 ;; 2908 2909darwin* | rhapsody*) 2910 lt_cv_deplibs_check_method=pass_all 2911 ;; 2912 2913freebsd* | kfreebsd*-gnu | dragonfly*) 2914 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2915 case $host_cpu in 2916 i*86 ) 2917 # Not sure whether the presence of OpenBSD here was a mistake. 2918 # Let's accept both of them until this is cleared up. 2919 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 2920 lt_cv_file_magic_cmd=/usr/bin/file 2921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2922 ;; 2923 esac 2924 else 2925 lt_cv_deplibs_check_method=pass_all 2926 fi 2927 ;; 2928 2929gnu*) 2930 lt_cv_deplibs_check_method=pass_all 2931 ;; 2932 2933hpux10.20* | hpux11*) 2934 lt_cv_file_magic_cmd=/usr/bin/file 2935 case $host_cpu in 2936 ia64*) 2937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 2938 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2939 ;; 2940 hppa*64*) 2941 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]' 2942 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 2943 ;; 2944 *) 2945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 2946 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2947 ;; 2948 esac 2949 ;; 2950 2951interix3*) 2952 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 2953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 2954 ;; 2955 2956irix5* | irix6* | nonstopux*) 2957 case $LD in 2958 *-32|*"-32 ") libmagic=32-bit;; 2959 *-n32|*"-n32 ") libmagic=N32;; 2960 *-64|*"-64 ") libmagic=64-bit;; 2961 *) libmagic=never-match;; 2962 esac 2963 lt_cv_deplibs_check_method=pass_all 2964 ;; 2965 2966# This must be Linux ELF. 2967linux*) 2968 lt_cv_deplibs_check_method=pass_all 2969 ;; 2970 2971netbsd*) 2972 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 2974 else 2975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 2976 fi 2977 ;; 2978 2979newos6*) 2980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 2981 lt_cv_file_magic_cmd=/usr/bin/file 2982 lt_cv_file_magic_test_file=/usr/lib/libnls.so 2983 ;; 2984 2985nto-qnx*) 2986 lt_cv_deplibs_check_method=unknown 2987 ;; 2988 2989openbsd*) 2990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 2992 else 2993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 2994 fi 2995 ;; 2996 2997osf3* | osf4* | osf5*) 2998 lt_cv_deplibs_check_method=pass_all 2999 ;; 3000 3001solaris*) 3002 lt_cv_deplibs_check_method=pass_all 3003 ;; 3004 3005sysv4 | sysv4.3*) 3006 case $host_vendor in 3007 motorola) 3008 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]' 3009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3010 ;; 3011 ncr) 3012 lt_cv_deplibs_check_method=pass_all 3013 ;; 3014 sequent) 3015 lt_cv_file_magic_cmd='/bin/file' 3016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3017 ;; 3018 sni) 3019 lt_cv_file_magic_cmd='/bin/file' 3020 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3021 lt_cv_file_magic_test_file=/lib/libc.so 3022 ;; 3023 siemens) 3024 lt_cv_deplibs_check_method=pass_all 3025 ;; 3026 pc) 3027 lt_cv_deplibs_check_method=pass_all 3028 ;; 3029 esac 3030 ;; 3031 3032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3033 lt_cv_deplibs_check_method=pass_all 3034 ;; 3035esac 3036 3037fi 3038echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3039echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3040file_magic_cmd=$lt_cv_file_magic_cmd 3041deplibs_check_method=$lt_cv_deplibs_check_method 3042test -z "$deplibs_check_method" && deplibs_check_method=unknown 3043 3044 3045 3046 3047# If no C compiler was specified, use CC. 3048LTCC=${LTCC-"$CC"} 3049 3050# If no C compiler flags were specified, use CFLAGS. 3051LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3052 3053# Allow CC to be a program name with arguments. 3054compiler=$CC 3055 3056 3057# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3058if test "${enable_libtool_lock+set}" = set; then 3059 enableval="$enable_libtool_lock" 3060 3061fi; 3062test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3063 3064# Some flags need to be propagated to the compiler or linker for good 3065# libtool support. 3066case $host in 3067ia64-*-hpux*) 3068 # Find out which ABI we are using. 3069 echo 'int i;' > conftest.$ac_ext 3070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3071 (eval $ac_compile) 2>&5 3072 ac_status=$? 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3074 (exit $ac_status); }; then 3075 case `/usr/bin/file conftest.$ac_objext` in 3076 *ELF-32*) 3077 HPUX_IA64_MODE="32" 3078 ;; 3079 *ELF-64*) 3080 HPUX_IA64_MODE="64" 3081 ;; 3082 esac 3083 fi 3084 rm -rf conftest* 3085 ;; 3086*-*-irix6*) 3087 # Find out which ABI we are using. 3088 echo '#line 3088 "configure"' > conftest.$ac_ext 3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3090 (eval $ac_compile) 2>&5 3091 ac_status=$? 3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3093 (exit $ac_status); }; then 3094 if test "$lt_cv_prog_gnu_ld" = yes; then 3095 case `/usr/bin/file conftest.$ac_objext` in 3096 *32-bit*) 3097 LD="${LD-ld} -melf32bsmip" 3098 ;; 3099 *N32*) 3100 LD="${LD-ld} -melf32bmipn32" 3101 ;; 3102 *64-bit*) 3103 LD="${LD-ld} -melf64bmip" 3104 ;; 3105 esac 3106 else 3107 case `/usr/bin/file conftest.$ac_objext` in 3108 *32-bit*) 3109 LD="${LD-ld} -32" 3110 ;; 3111 *N32*) 3112 LD="${LD-ld} -n32" 3113 ;; 3114 *64-bit*) 3115 LD="${LD-ld} -64" 3116 ;; 3117 esac 3118 fi 3119 fi 3120 rm -rf conftest* 3121 ;; 3122 3123x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3124 # Find out which ABI we are using. 3125 echo 'int i;' > conftest.$ac_ext 3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3127 (eval $ac_compile) 2>&5 3128 ac_status=$? 3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 (exit $ac_status); }; then 3131 case `/usr/bin/file conftest.o` in 3132 *32-bit*) 3133 case $host in 3134 x86_64-*linux*) 3135 LD="${LD-ld} -m elf_i386" 3136 ;; 3137 ppc64-*linux*|powerpc64-*linux*) 3138 LD="${LD-ld} -m elf32ppclinux" 3139 ;; 3140 s390x-*linux*) 3141 LD="${LD-ld} -m elf_s390" 3142 ;; 3143 sparc64-*linux*) 3144 LD="${LD-ld} -m elf32_sparc" 3145 ;; 3146 esac 3147 ;; 3148 *64-bit*) 3149 case $host in 3150 x86_64-*linux*) 3151 LD="${LD-ld} -m elf_x86_64" 3152 ;; 3153 ppc*-*linux*|powerpc*-*linux*) 3154 LD="${LD-ld} -m elf64ppc" 3155 ;; 3156 s390*-*linux*) 3157 LD="${LD-ld} -m elf64_s390" 3158 ;; 3159 sparc*-*linux*) 3160 LD="${LD-ld} -m elf64_sparc" 3161 ;; 3162 esac 3163 ;; 3164 esac 3165 fi 3166 rm -rf conftest* 3167 ;; 3168 3169*-*-sco3.2v5*) 3170 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3171 SAVE_CFLAGS="$CFLAGS" 3172 CFLAGS="$CFLAGS -belf" 3173 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3174echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3175if test "${lt_cv_cc_needs_belf+set}" = set; then 3176 echo $ECHO_N "(cached) $ECHO_C" >&6 3177else 3178 ac_ext=c 3179ac_cpp='$CPP $CPPFLAGS' 3180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3182ac_compiler_gnu=$ac_cv_c_compiler_gnu 3183 3184 cat >conftest.$ac_ext <<_ACEOF 3185/* confdefs.h. */ 3186_ACEOF 3187cat confdefs.h >>conftest.$ac_ext 3188cat >>conftest.$ac_ext <<_ACEOF 3189/* end confdefs.h. */ 3190 3191int 3192main () 3193{ 3194 3195 ; 3196 return 0; 3197} 3198_ACEOF 3199rm -f conftest.$ac_objext conftest$ac_exeext 3200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3201 (eval $ac_link) 2>conftest.er1 3202 ac_status=$? 3203 grep -v '^ *+' conftest.er1 >conftest.err 3204 rm -f conftest.er1 3205 cat conftest.err >&5 3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3207 (exit $ac_status); } && 3208 { ac_try='test -z "$ac_c_werror_flag" 3209 || test ! -s conftest.err' 3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3211 (eval $ac_try) 2>&5 3212 ac_status=$? 3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3214 (exit $ac_status); }; } && 3215 { ac_try='test -s conftest$ac_exeext' 3216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3217 (eval $ac_try) 2>&5 3218 ac_status=$? 3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); }; }; then 3221 lt_cv_cc_needs_belf=yes 3222else 3223 echo "$as_me: failed program was:" >&5 3224sed 's/^/| /' conftest.$ac_ext >&5 3225 3226lt_cv_cc_needs_belf=no 3227fi 3228rm -f conftest.err conftest.$ac_objext \ 3229 conftest$ac_exeext conftest.$ac_ext 3230 ac_ext=c 3231ac_cpp='$CPP $CPPFLAGS' 3232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3234ac_compiler_gnu=$ac_cv_c_compiler_gnu 3235 3236fi 3237echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3238echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3239 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3240 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3241 CFLAGS="$SAVE_CFLAGS" 3242 fi 3243 ;; 3244sparc*-*solaris*) 3245 # Find out which ABI we are using. 3246 echo 'int i;' > conftest.$ac_ext 3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3248 (eval $ac_compile) 2>&5 3249 ac_status=$? 3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3251 (exit $ac_status); }; then 3252 case `/usr/bin/file conftest.o` in 3253 *64-bit*) 3254 case $lt_cv_prog_gnu_ld in 3255 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3256 *) LD="${LD-ld} -64" ;; 3257 esac 3258 ;; 3259 esac 3260 fi 3261 rm -rf conftest* 3262 ;; 3263 3264 3265esac 3266 3267need_locks="$enable_libtool_lock" 3268 3269 3270ac_ext=c 3271ac_cpp='$CPP $CPPFLAGS' 3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3274ac_compiler_gnu=$ac_cv_c_compiler_gnu 3275echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3276echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3277# On Suns, sometimes $CPP names a directory. 3278if test -n "$CPP" && test -d "$CPP"; then 3279 CPP= 3280fi 3281if test -z "$CPP"; then 3282 if test "${ac_cv_prog_CPP+set}" = set; then 3283 echo $ECHO_N "(cached) $ECHO_C" >&6 3284else 3285 # Double quotes because CPP needs to be expanded 3286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3287 do 3288 ac_preproc_ok=false 3289for ac_c_preproc_warn_flag in '' yes 3290do 3291 # Use a header file that comes with gcc, so configuring glibc 3292 # with a fresh cross-compiler works. 3293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3294 # <limits.h> exists even on freestanding compilers. 3295 # On the NeXT, cc -E runs the code through the compiler's parser, 3296 # not just through cpp. "Syntax error" is here to catch this case. 3297 cat >conftest.$ac_ext <<_ACEOF 3298/* confdefs.h. */ 3299_ACEOF 3300cat confdefs.h >>conftest.$ac_ext 3301cat >>conftest.$ac_ext <<_ACEOF 3302/* end confdefs.h. */ 3303#ifdef __STDC__ 3304# include <limits.h> 3305#else 3306# include <assert.h> 3307#endif 3308 Syntax error 3309_ACEOF 3310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3312 ac_status=$? 3313 grep -v '^ *+' conftest.er1 >conftest.err 3314 rm -f conftest.er1 3315 cat conftest.err >&5 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); } >/dev/null; then 3318 if test -s conftest.err; then 3319 ac_cpp_err=$ac_c_preproc_warn_flag 3320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3321 else 3322 ac_cpp_err= 3323 fi 3324else 3325 ac_cpp_err=yes 3326fi 3327if test -z "$ac_cpp_err"; then 3328 : 3329else 3330 echo "$as_me: failed program was:" >&5 3331sed 's/^/| /' conftest.$ac_ext >&5 3332 3333 # Broken: fails on valid input. 3334continue 3335fi 3336rm -f conftest.err conftest.$ac_ext 3337 3338 # OK, works on sane cases. Now check whether non-existent headers 3339 # can be detected and how. 3340 cat >conftest.$ac_ext <<_ACEOF 3341/* confdefs.h. */ 3342_ACEOF 3343cat confdefs.h >>conftest.$ac_ext 3344cat >>conftest.$ac_ext <<_ACEOF 3345/* end confdefs.h. */ 3346#include <ac_nonexistent.h> 3347_ACEOF 3348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3350 ac_status=$? 3351 grep -v '^ *+' conftest.er1 >conftest.err 3352 rm -f conftest.er1 3353 cat conftest.err >&5 3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3355 (exit $ac_status); } >/dev/null; then 3356 if test -s conftest.err; then 3357 ac_cpp_err=$ac_c_preproc_warn_flag 3358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3359 else 3360 ac_cpp_err= 3361 fi 3362else 3363 ac_cpp_err=yes 3364fi 3365if test -z "$ac_cpp_err"; then 3366 # Broken: success on invalid input. 3367continue 3368else 3369 echo "$as_me: failed program was:" >&5 3370sed 's/^/| /' conftest.$ac_ext >&5 3371 3372 # Passes both tests. 3373ac_preproc_ok=: 3374break 3375fi 3376rm -f conftest.err conftest.$ac_ext 3377 3378done 3379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3380rm -f conftest.err conftest.$ac_ext 3381if $ac_preproc_ok; then 3382 break 3383fi 3384 3385 done 3386 ac_cv_prog_CPP=$CPP 3387 3388fi 3389 CPP=$ac_cv_prog_CPP 3390else 3391 ac_cv_prog_CPP=$CPP 3392fi 3393echo "$as_me:$LINENO: result: $CPP" >&5 3394echo "${ECHO_T}$CPP" >&6 3395ac_preproc_ok=false 3396for ac_c_preproc_warn_flag in '' yes 3397do 3398 # Use a header file that comes with gcc, so configuring glibc 3399 # with a fresh cross-compiler works. 3400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3401 # <limits.h> exists even on freestanding compilers. 3402 # On the NeXT, cc -E runs the code through the compiler's parser, 3403 # not just through cpp. "Syntax error" is here to catch this case. 3404 cat >conftest.$ac_ext <<_ACEOF 3405/* confdefs.h. */ 3406_ACEOF 3407cat confdefs.h >>conftest.$ac_ext 3408cat >>conftest.$ac_ext <<_ACEOF 3409/* end confdefs.h. */ 3410#ifdef __STDC__ 3411# include <limits.h> 3412#else 3413# include <assert.h> 3414#endif 3415 Syntax error 3416_ACEOF 3417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3419 ac_status=$? 3420 grep -v '^ *+' conftest.er1 >conftest.err 3421 rm -f conftest.er1 3422 cat conftest.err >&5 3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3424 (exit $ac_status); } >/dev/null; then 3425 if test -s conftest.err; then 3426 ac_cpp_err=$ac_c_preproc_warn_flag 3427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3428 else 3429 ac_cpp_err= 3430 fi 3431else 3432 ac_cpp_err=yes 3433fi 3434if test -z "$ac_cpp_err"; then 3435 : 3436else 3437 echo "$as_me: failed program was:" >&5 3438sed 's/^/| /' conftest.$ac_ext >&5 3439 3440 # Broken: fails on valid input. 3441continue 3442fi 3443rm -f conftest.err conftest.$ac_ext 3444 3445 # OK, works on sane cases. Now check whether non-existent headers 3446 # can be detected and how. 3447 cat >conftest.$ac_ext <<_ACEOF 3448/* confdefs.h. */ 3449_ACEOF 3450cat confdefs.h >>conftest.$ac_ext 3451cat >>conftest.$ac_ext <<_ACEOF 3452/* end confdefs.h. */ 3453#include <ac_nonexistent.h> 3454_ACEOF 3455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3457 ac_status=$? 3458 grep -v '^ *+' conftest.er1 >conftest.err 3459 rm -f conftest.er1 3460 cat conftest.err >&5 3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3462 (exit $ac_status); } >/dev/null; then 3463 if test -s conftest.err; then 3464 ac_cpp_err=$ac_c_preproc_warn_flag 3465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3466 else 3467 ac_cpp_err= 3468 fi 3469else 3470 ac_cpp_err=yes 3471fi 3472if test -z "$ac_cpp_err"; then 3473 # Broken: success on invalid input. 3474continue 3475else 3476 echo "$as_me: failed program was:" >&5 3477sed 's/^/| /' conftest.$ac_ext >&5 3478 3479 # Passes both tests. 3480ac_preproc_ok=: 3481break 3482fi 3483rm -f conftest.err conftest.$ac_ext 3484 3485done 3486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3487rm -f conftest.err conftest.$ac_ext 3488if $ac_preproc_ok; then 3489 : 3490else 3491 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3492See \`config.log' for more details." >&5 3493echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3494See \`config.log' for more details." >&2;} 3495 { (exit 1); exit 1; }; } 3496fi 3497 3498ac_ext=c 3499ac_cpp='$CPP $CPPFLAGS' 3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3502ac_compiler_gnu=$ac_cv_c_compiler_gnu 3503 3504 3505echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3506echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3507if test "${ac_cv_header_stdc+set}" = set; then 3508 echo $ECHO_N "(cached) $ECHO_C" >&6 3509else 3510 cat >conftest.$ac_ext <<_ACEOF 3511/* confdefs.h. */ 3512_ACEOF 3513cat confdefs.h >>conftest.$ac_ext 3514cat >>conftest.$ac_ext <<_ACEOF 3515/* end confdefs.h. */ 3516#include <stdlib.h> 3517#include <stdarg.h> 3518#include <string.h> 3519#include <float.h> 3520 3521int 3522main () 3523{ 3524 3525 ; 3526 return 0; 3527} 3528_ACEOF 3529rm -f conftest.$ac_objext 3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3531 (eval $ac_compile) 2>conftest.er1 3532 ac_status=$? 3533 grep -v '^ *+' conftest.er1 >conftest.err 3534 rm -f conftest.er1 3535 cat conftest.err >&5 3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3537 (exit $ac_status); } && 3538 { ac_try='test -z "$ac_c_werror_flag" 3539 || test ! -s conftest.err' 3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3541 (eval $ac_try) 2>&5 3542 ac_status=$? 3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3544 (exit $ac_status); }; } && 3545 { ac_try='test -s conftest.$ac_objext' 3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3547 (eval $ac_try) 2>&5 3548 ac_status=$? 3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3550 (exit $ac_status); }; }; then 3551 ac_cv_header_stdc=yes 3552else 3553 echo "$as_me: failed program was:" >&5 3554sed 's/^/| /' conftest.$ac_ext >&5 3555 3556ac_cv_header_stdc=no 3557fi 3558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3559 3560if test $ac_cv_header_stdc = yes; then 3561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 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#include <string.h> 3569 3570_ACEOF 3571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3572 $EGREP "memchr" >/dev/null 2>&1; then 3573 : 3574else 3575 ac_cv_header_stdc=no 3576fi 3577rm -f conftest* 3578 3579fi 3580 3581if test $ac_cv_header_stdc = yes; then 3582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3583 cat >conftest.$ac_ext <<_ACEOF 3584/* confdefs.h. */ 3585_ACEOF 3586cat confdefs.h >>conftest.$ac_ext 3587cat >>conftest.$ac_ext <<_ACEOF 3588/* end confdefs.h. */ 3589#include <stdlib.h> 3590 3591_ACEOF 3592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3593 $EGREP "free" >/dev/null 2>&1; then 3594 : 3595else 3596 ac_cv_header_stdc=no 3597fi 3598rm -f conftest* 3599 3600fi 3601 3602if test $ac_cv_header_stdc = yes; then 3603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3604 if test "$cross_compiling" = yes; then 3605 : 3606else 3607 cat >conftest.$ac_ext <<_ACEOF 3608/* confdefs.h. */ 3609_ACEOF 3610cat confdefs.h >>conftest.$ac_ext 3611cat >>conftest.$ac_ext <<_ACEOF 3612/* end confdefs.h. */ 3613#include <ctype.h> 3614#if ((' ' & 0x0FF) == 0x020) 3615# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3616# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3617#else 3618# define ISLOWER(c) \ 3619 (('a' <= (c) && (c) <= 'i') \ 3620 || ('j' <= (c) && (c) <= 'r') \ 3621 || ('s' <= (c) && (c) <= 'z')) 3622# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3623#endif 3624 3625#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3626int 3627main () 3628{ 3629 int i; 3630 for (i = 0; i < 256; i++) 3631 if (XOR (islower (i), ISLOWER (i)) 3632 || toupper (i) != TOUPPER (i)) 3633 exit(2); 3634 exit (0); 3635} 3636_ACEOF 3637rm -f conftest$ac_exeext 3638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3639 (eval $ac_link) 2>&5 3640 ac_status=$? 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3644 (eval $ac_try) 2>&5 3645 ac_status=$? 3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3647 (exit $ac_status); }; }; then 3648 : 3649else 3650 echo "$as_me: program exited with status $ac_status" >&5 3651echo "$as_me: failed program was:" >&5 3652sed 's/^/| /' conftest.$ac_ext >&5 3653 3654( exit $ac_status ) 3655ac_cv_header_stdc=no 3656fi 3657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3658fi 3659fi 3660fi 3661echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3662echo "${ECHO_T}$ac_cv_header_stdc" >&6 3663if test $ac_cv_header_stdc = yes; then 3664 3665cat >>confdefs.h <<\_ACEOF 3666#define STDC_HEADERS 1 3667_ACEOF 3668 3669fi 3670 3671# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3682 inttypes.h stdint.h unistd.h 3683do 3684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3685echo "$as_me:$LINENO: checking for $ac_header" >&5 3686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3687if eval "test \"\${$as_ac_Header+set}\" = set"; then 3688 echo $ECHO_N "(cached) $ECHO_C" >&6 3689else 3690 cat >conftest.$ac_ext <<_ACEOF 3691/* confdefs.h. */ 3692_ACEOF 3693cat confdefs.h >>conftest.$ac_ext 3694cat >>conftest.$ac_ext <<_ACEOF 3695/* end confdefs.h. */ 3696$ac_includes_default 3697 3698#include <$ac_header> 3699_ACEOF 3700rm -f conftest.$ac_objext 3701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3702 (eval $ac_compile) 2>conftest.er1 3703 ac_status=$? 3704 grep -v '^ *+' conftest.er1 >conftest.err 3705 rm -f conftest.er1 3706 cat conftest.err >&5 3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708 (exit $ac_status); } && 3709 { ac_try='test -z "$ac_c_werror_flag" 3710 || test ! -s conftest.err' 3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3712 (eval $ac_try) 2>&5 3713 ac_status=$? 3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3715 (exit $ac_status); }; } && 3716 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 3722 eval "$as_ac_Header=yes" 3723else 3724 echo "$as_me: failed program was:" >&5 3725sed 's/^/| /' conftest.$ac_ext >&5 3726 3727eval "$as_ac_Header=no" 3728fi 3729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3730fi 3731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3733if test `eval echo '${'$as_ac_Header'}'` = yes; then 3734 cat >>confdefs.h <<_ACEOF 3735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3736_ACEOF 3737 3738fi 3739 3740done 3741 3742 3743 3744for ac_header in dlfcn.h 3745do 3746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3747if eval "test \"\${$as_ac_Header+set}\" = set"; then 3748 echo "$as_me:$LINENO: checking for $ac_header" >&5 3749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3750if eval "test \"\${$as_ac_Header+set}\" = set"; then 3751 echo $ECHO_N "(cached) $ECHO_C" >&6 3752fi 3753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3755else 3756 # Is the header compilable? 3757echo "$as_me:$LINENO: checking $ac_header usability" >&5 3758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3759cat >conftest.$ac_ext <<_ACEOF 3760/* confdefs.h. */ 3761_ACEOF 3762cat confdefs.h >>conftest.$ac_ext 3763cat >>conftest.$ac_ext <<_ACEOF 3764/* end confdefs.h. */ 3765$ac_includes_default 3766#include <$ac_header> 3767_ACEOF 3768rm -f conftest.$ac_objext 3769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3770 (eval $ac_compile) 2>conftest.er1 3771 ac_status=$? 3772 grep -v '^ *+' conftest.er1 >conftest.err 3773 rm -f conftest.er1 3774 cat conftest.err >&5 3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3776 (exit $ac_status); } && 3777 { ac_try='test -z "$ac_c_werror_flag" 3778 || test ! -s conftest.err' 3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3780 (eval $ac_try) 2>&5 3781 ac_status=$? 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 (exit $ac_status); }; } && 3784 { ac_try='test -s conftest.$ac_objext' 3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3786 (eval $ac_try) 2>&5 3787 ac_status=$? 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 (exit $ac_status); }; }; then 3790 ac_header_compiler=yes 3791else 3792 echo "$as_me: failed program was:" >&5 3793sed 's/^/| /' conftest.$ac_ext >&5 3794 3795ac_header_compiler=no 3796fi 3797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3799echo "${ECHO_T}$ac_header_compiler" >&6 3800 3801# Is the header present? 3802echo "$as_me:$LINENO: checking $ac_header presence" >&5 3803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3804cat >conftest.$ac_ext <<_ACEOF 3805/* confdefs.h. */ 3806_ACEOF 3807cat confdefs.h >>conftest.$ac_ext 3808cat >>conftest.$ac_ext <<_ACEOF 3809/* end confdefs.h. */ 3810#include <$ac_header> 3811_ACEOF 3812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3814 ac_status=$? 3815 grep -v '^ *+' conftest.er1 >conftest.err 3816 rm -f conftest.er1 3817 cat conftest.err >&5 3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3819 (exit $ac_status); } >/dev/null; then 3820 if test -s conftest.err; then 3821 ac_cpp_err=$ac_c_preproc_warn_flag 3822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3823 else 3824 ac_cpp_err= 3825 fi 3826else 3827 ac_cpp_err=yes 3828fi 3829if test -z "$ac_cpp_err"; then 3830 ac_header_preproc=yes 3831else 3832 echo "$as_me: failed program was:" >&5 3833sed 's/^/| /' conftest.$ac_ext >&5 3834 3835 ac_header_preproc=no 3836fi 3837rm -f conftest.err conftest.$ac_ext 3838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3839echo "${ECHO_T}$ac_header_preproc" >&6 3840 3841# So? What about this header? 3842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3843 yes:no: ) 3844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3848 ac_header_preproc=yes 3849 ;; 3850 no:yes:* ) 3851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3863 ( 3864 cat <<\_ASBOX 3865## ------------------------------------------ ## 3866## Report this to the AC_PACKAGE_NAME lists. ## 3867## ------------------------------------------ ## 3868_ASBOX 3869 ) | 3870 sed "s/^/$as_me: WARNING: /" >&2 3871 ;; 3872esac 3873echo "$as_me:$LINENO: checking for $ac_header" >&5 3874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3875if eval "test \"\${$as_ac_Header+set}\" = set"; then 3876 echo $ECHO_N "(cached) $ECHO_C" >&6 3877else 3878 eval "$as_ac_Header=\$ac_header_preproc" 3879fi 3880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3882 3883fi 3884if test `eval echo '${'$as_ac_Header'}'` = yes; then 3885 cat >>confdefs.h <<_ACEOF 3886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3887_ACEOF 3888 3889fi 3890 3891done 3892 3893ac_ext=cc 3894ac_cpp='$CXXCPP $CPPFLAGS' 3895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3898if test -n "$ac_tool_prefix"; then 3899 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3900 do 3901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3902set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3903echo "$as_me:$LINENO: checking for $ac_word" >&5 3904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3905if test "${ac_cv_prog_CXX+set}" = set; then 3906 echo $ECHO_N "(cached) $ECHO_C" >&6 3907else 3908 if test -n "$CXX"; then 3909 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3910else 3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912for as_dir in $PATH 3913do 3914 IFS=$as_save_IFS 3915 test -z "$as_dir" && as_dir=. 3916 for ac_exec_ext in '' $ac_executable_extensions; do 3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3918 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3920 break 2 3921 fi 3922done 3923done 3924 3925fi 3926fi 3927CXX=$ac_cv_prog_CXX 3928if test -n "$CXX"; then 3929 echo "$as_me:$LINENO: result: $CXX" >&5 3930echo "${ECHO_T}$CXX" >&6 3931else 3932 echo "$as_me:$LINENO: result: no" >&5 3933echo "${ECHO_T}no" >&6 3934fi 3935 3936 test -n "$CXX" && break 3937 done 3938fi 3939if test -z "$CXX"; then 3940 ac_ct_CXX=$CXX 3941 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3942do 3943 # Extract the first word of "$ac_prog", so it can be a program name with args. 3944set dummy $ac_prog; ac_word=$2 3945echo "$as_me:$LINENO: checking for $ac_word" >&5 3946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3947if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3948 echo $ECHO_N "(cached) $ECHO_C" >&6 3949else 3950 if test -n "$ac_ct_CXX"; then 3951 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3952else 3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3954for as_dir in $PATH 3955do 3956 IFS=$as_save_IFS 3957 test -z "$as_dir" && as_dir=. 3958 for ac_exec_ext in '' $ac_executable_extensions; do 3959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3960 ac_cv_prog_ac_ct_CXX="$ac_prog" 3961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3962 break 2 3963 fi 3964done 3965done 3966 3967fi 3968fi 3969ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3970if test -n "$ac_ct_CXX"; then 3971 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3972echo "${ECHO_T}$ac_ct_CXX" >&6 3973else 3974 echo "$as_me:$LINENO: result: no" >&5 3975echo "${ECHO_T}no" >&6 3976fi 3977 3978 test -n "$ac_ct_CXX" && break 3979done 3980test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3981 3982 CXX=$ac_ct_CXX 3983fi 3984 3985 3986# Provide some information about the compiler. 3987echo "$as_me:$LINENO:" \ 3988 "checking for C++ compiler version" >&5 3989ac_compiler=`set X $ac_compile; echo $2` 3990{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3991 (eval $ac_compiler --version </dev/null >&5) 2>&5 3992 ac_status=$? 3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3994 (exit $ac_status); } 3995{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3996 (eval $ac_compiler -v </dev/null >&5) 2>&5 3997 ac_status=$? 3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3999 (exit $ac_status); } 4000{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4001 (eval $ac_compiler -V </dev/null >&5) 2>&5 4002 ac_status=$? 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 (exit $ac_status); } 4005 4006echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4007echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4008if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4009 echo $ECHO_N "(cached) $ECHO_C" >&6 4010else 4011 cat >conftest.$ac_ext <<_ACEOF 4012/* confdefs.h. */ 4013_ACEOF 4014cat confdefs.h >>conftest.$ac_ext 4015cat >>conftest.$ac_ext <<_ACEOF 4016/* end confdefs.h. */ 4017 4018int 4019main () 4020{ 4021#ifndef __GNUC__ 4022 choke me 4023#endif 4024 4025 ; 4026 return 0; 4027} 4028_ACEOF 4029rm -f conftest.$ac_objext 4030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4031 (eval $ac_compile) 2>conftest.er1 4032 ac_status=$? 4033 grep -v '^ *+' conftest.er1 >conftest.err 4034 rm -f conftest.er1 4035 cat conftest.err >&5 4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4037 (exit $ac_status); } && 4038 { ac_try='test -z "$ac_cxx_werror_flag" 4039 || test ! -s conftest.err' 4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4041 (eval $ac_try) 2>&5 4042 ac_status=$? 4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4044 (exit $ac_status); }; } && 4045 { ac_try='test -s conftest.$ac_objext' 4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4047 (eval $ac_try) 2>&5 4048 ac_status=$? 4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4050 (exit $ac_status); }; }; then 4051 ac_compiler_gnu=yes 4052else 4053 echo "$as_me: failed program was:" >&5 4054sed 's/^/| /' conftest.$ac_ext >&5 4055 4056ac_compiler_gnu=no 4057fi 4058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4059ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4060 4061fi 4062echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4063echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4064GXX=`test $ac_compiler_gnu = yes && echo yes` 4065ac_test_CXXFLAGS=${CXXFLAGS+set} 4066ac_save_CXXFLAGS=$CXXFLAGS 4067CXXFLAGS="-g" 4068echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4069echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4070if test "${ac_cv_prog_cxx_g+set}" = set; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072else 4073 cat >conftest.$ac_ext <<_ACEOF 4074/* confdefs.h. */ 4075_ACEOF 4076cat confdefs.h >>conftest.$ac_ext 4077cat >>conftest.$ac_ext <<_ACEOF 4078/* end confdefs.h. */ 4079 4080int 4081main () 4082{ 4083 4084 ; 4085 return 0; 4086} 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_cxx_werror_flag" 4098 || test ! -s conftest.err' 4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4100 (eval $ac_try) 2>&5 4101 ac_status=$? 4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4103 (exit $ac_status); }; } && 4104 { ac_try='test -s conftest.$ac_objext' 4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4106 (eval $ac_try) 2>&5 4107 ac_status=$? 4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4109 (exit $ac_status); }; }; then 4110 ac_cv_prog_cxx_g=yes 4111else 4112 echo "$as_me: failed program was:" >&5 4113sed 's/^/| /' conftest.$ac_ext >&5 4114 4115ac_cv_prog_cxx_g=no 4116fi 4117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4118fi 4119echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4120echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4121if test "$ac_test_CXXFLAGS" = set; then 4122 CXXFLAGS=$ac_save_CXXFLAGS 4123elif test $ac_cv_prog_cxx_g = yes; then 4124 if test "$GXX" = yes; then 4125 CXXFLAGS="-g -O2" 4126 else 4127 CXXFLAGS="-g" 4128 fi 4129else 4130 if test "$GXX" = yes; then 4131 CXXFLAGS="-O2" 4132 else 4133 CXXFLAGS= 4134 fi 4135fi 4136for ac_declaration in \ 4137 '' \ 4138 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4139 'extern "C" void std::exit (int); using std::exit;' \ 4140 'extern "C" void exit (int) throw ();' \ 4141 'extern "C" void exit (int);' \ 4142 'void exit (int);' 4143do 4144 cat >conftest.$ac_ext <<_ACEOF 4145/* confdefs.h. */ 4146_ACEOF 4147cat confdefs.h >>conftest.$ac_ext 4148cat >>conftest.$ac_ext <<_ACEOF 4149/* end confdefs.h. */ 4150$ac_declaration 4151#include <stdlib.h> 4152int 4153main () 4154{ 4155exit (42); 4156 ; 4157 return 0; 4158} 4159_ACEOF 4160rm -f conftest.$ac_objext 4161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4162 (eval $ac_compile) 2>conftest.er1 4163 ac_status=$? 4164 grep -v '^ *+' conftest.er1 >conftest.err 4165 rm -f conftest.er1 4166 cat conftest.err >&5 4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4168 (exit $ac_status); } && 4169 { ac_try='test -z "$ac_cxx_werror_flag" 4170 || test ! -s conftest.err' 4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4172 (eval $ac_try) 2>&5 4173 ac_status=$? 4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 (exit $ac_status); }; } && 4176 { ac_try='test -s conftest.$ac_objext' 4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4178 (eval $ac_try) 2>&5 4179 ac_status=$? 4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4181 (exit $ac_status); }; }; then 4182 : 4183else 4184 echo "$as_me: failed program was:" >&5 4185sed 's/^/| /' conftest.$ac_ext >&5 4186 4187continue 4188fi 4189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4190 cat >conftest.$ac_ext <<_ACEOF 4191/* confdefs.h. */ 4192_ACEOF 4193cat confdefs.h >>conftest.$ac_ext 4194cat >>conftest.$ac_ext <<_ACEOF 4195/* end confdefs.h. */ 4196$ac_declaration 4197int 4198main () 4199{ 4200exit (42); 4201 ; 4202 return 0; 4203} 4204_ACEOF 4205rm -f conftest.$ac_objext 4206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4207 (eval $ac_compile) 2>conftest.er1 4208 ac_status=$? 4209 grep -v '^ *+' conftest.er1 >conftest.err 4210 rm -f conftest.er1 4211 cat conftest.err >&5 4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4213 (exit $ac_status); } && 4214 { ac_try='test -z "$ac_cxx_werror_flag" 4215 || test ! -s conftest.err' 4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4217 (eval $ac_try) 2>&5 4218 ac_status=$? 4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4220 (exit $ac_status); }; } && 4221 { ac_try='test -s conftest.$ac_objext' 4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4223 (eval $ac_try) 2>&5 4224 ac_status=$? 4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4226 (exit $ac_status); }; }; then 4227 break 4228else 4229 echo "$as_me: failed program was:" >&5 4230sed 's/^/| /' conftest.$ac_ext >&5 4231 4232fi 4233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4234done 4235rm -f conftest* 4236if test -n "$ac_declaration"; then 4237 echo '#ifdef __cplusplus' >>confdefs.h 4238 echo $ac_declaration >>confdefs.h 4239 echo '#endif' >>confdefs.h 4240fi 4241 4242ac_ext=cc 4243ac_cpp='$CXXCPP $CPPFLAGS' 4244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4247 4248 4249 4250if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4251 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4252 (test "X$CXX" != "Xg++"))) ; then 4253 ac_ext=cc 4254ac_cpp='$CXXCPP $CPPFLAGS' 4255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4258echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4259echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4260if test -z "$CXXCPP"; then 4261 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4262 echo $ECHO_N "(cached) $ECHO_C" >&6 4263else 4264 # Double quotes because CXXCPP needs to be expanded 4265 for CXXCPP in "$CXX -E" "/lib/cpp" 4266 do 4267 ac_preproc_ok=false 4268for ac_cxx_preproc_warn_flag in '' yes 4269do 4270 # Use a header file that comes with gcc, so configuring glibc 4271 # with a fresh cross-compiler works. 4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4273 # <limits.h> exists even on freestanding compilers. 4274 # On the NeXT, cc -E runs the code through the compiler's parser, 4275 # not just through cpp. "Syntax error" is here to catch this case. 4276 cat >conftest.$ac_ext <<_ACEOF 4277/* confdefs.h. */ 4278_ACEOF 4279cat confdefs.h >>conftest.$ac_ext 4280cat >>conftest.$ac_ext <<_ACEOF 4281/* end confdefs.h. */ 4282#ifdef __STDC__ 4283# include <limits.h> 4284#else 4285# include <assert.h> 4286#endif 4287 Syntax error 4288_ACEOF 4289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4291 ac_status=$? 4292 grep -v '^ *+' conftest.er1 >conftest.err 4293 rm -f conftest.er1 4294 cat conftest.err >&5 4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4296 (exit $ac_status); } >/dev/null; then 4297 if test -s conftest.err; then 4298 ac_cpp_err=$ac_cxx_preproc_warn_flag 4299 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4300 else 4301 ac_cpp_err= 4302 fi 4303else 4304 ac_cpp_err=yes 4305fi 4306if test -z "$ac_cpp_err"; then 4307 : 4308else 4309 echo "$as_me: failed program was:" >&5 4310sed 's/^/| /' conftest.$ac_ext >&5 4311 4312 # Broken: fails on valid input. 4313continue 4314fi 4315rm -f conftest.err conftest.$ac_ext 4316 4317 # OK, works on sane cases. Now check whether non-existent headers 4318 # can be detected and how. 4319 cat >conftest.$ac_ext <<_ACEOF 4320/* confdefs.h. */ 4321_ACEOF 4322cat confdefs.h >>conftest.$ac_ext 4323cat >>conftest.$ac_ext <<_ACEOF 4324/* end confdefs.h. */ 4325#include <ac_nonexistent.h> 4326_ACEOF 4327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4329 ac_status=$? 4330 grep -v '^ *+' conftest.er1 >conftest.err 4331 rm -f conftest.er1 4332 cat conftest.err >&5 4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4334 (exit $ac_status); } >/dev/null; then 4335 if test -s conftest.err; then 4336 ac_cpp_err=$ac_cxx_preproc_warn_flag 4337 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4338 else 4339 ac_cpp_err= 4340 fi 4341else 4342 ac_cpp_err=yes 4343fi 4344if test -z "$ac_cpp_err"; then 4345 # Broken: success on invalid input. 4346continue 4347else 4348 echo "$as_me: failed program was:" >&5 4349sed 's/^/| /' conftest.$ac_ext >&5 4350 4351 # Passes both tests. 4352ac_preproc_ok=: 4353break 4354fi 4355rm -f conftest.err conftest.$ac_ext 4356 4357done 4358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4359rm -f conftest.err conftest.$ac_ext 4360if $ac_preproc_ok; then 4361 break 4362fi 4363 4364 done 4365 ac_cv_prog_CXXCPP=$CXXCPP 4366 4367fi 4368 CXXCPP=$ac_cv_prog_CXXCPP 4369else 4370 ac_cv_prog_CXXCPP=$CXXCPP 4371fi 4372echo "$as_me:$LINENO: result: $CXXCPP" >&5 4373echo "${ECHO_T}$CXXCPP" >&6 4374ac_preproc_ok=false 4375for ac_cxx_preproc_warn_flag in '' yes 4376do 4377 # Use a header file that comes with gcc, so configuring glibc 4378 # with a fresh cross-compiler works. 4379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4380 # <limits.h> exists even on freestanding compilers. 4381 # On the NeXT, cc -E runs the code through the compiler's parser, 4382 # not just through cpp. "Syntax error" is here to catch this case. 4383 cat >conftest.$ac_ext <<_ACEOF 4384/* confdefs.h. */ 4385_ACEOF 4386cat confdefs.h >>conftest.$ac_ext 4387cat >>conftest.$ac_ext <<_ACEOF 4388/* end confdefs.h. */ 4389#ifdef __STDC__ 4390# include <limits.h> 4391#else 4392# include <assert.h> 4393#endif 4394 Syntax error 4395_ACEOF 4396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4398 ac_status=$? 4399 grep -v '^ *+' conftest.er1 >conftest.err 4400 rm -f conftest.er1 4401 cat conftest.err >&5 4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4403 (exit $ac_status); } >/dev/null; then 4404 if test -s conftest.err; then 4405 ac_cpp_err=$ac_cxx_preproc_warn_flag 4406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4407 else 4408 ac_cpp_err= 4409 fi 4410else 4411 ac_cpp_err=yes 4412fi 4413if test -z "$ac_cpp_err"; then 4414 : 4415else 4416 echo "$as_me: failed program was:" >&5 4417sed 's/^/| /' conftest.$ac_ext >&5 4418 4419 # Broken: fails on valid input. 4420continue 4421fi 4422rm -f conftest.err conftest.$ac_ext 4423 4424 # OK, works on sane cases. Now check whether non-existent headers 4425 # can be detected and how. 4426 cat >conftest.$ac_ext <<_ACEOF 4427/* confdefs.h. */ 4428_ACEOF 4429cat confdefs.h >>conftest.$ac_ext 4430cat >>conftest.$ac_ext <<_ACEOF 4431/* end confdefs.h. */ 4432#include <ac_nonexistent.h> 4433_ACEOF 4434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4436 ac_status=$? 4437 grep -v '^ *+' conftest.er1 >conftest.err 4438 rm -f conftest.er1 4439 cat conftest.err >&5 4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4441 (exit $ac_status); } >/dev/null; then 4442 if test -s conftest.err; then 4443 ac_cpp_err=$ac_cxx_preproc_warn_flag 4444 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4445 else 4446 ac_cpp_err= 4447 fi 4448else 4449 ac_cpp_err=yes 4450fi 4451if test -z "$ac_cpp_err"; then 4452 # Broken: success on invalid input. 4453continue 4454else 4455 echo "$as_me: failed program was:" >&5 4456sed 's/^/| /' conftest.$ac_ext >&5 4457 4458 # Passes both tests. 4459ac_preproc_ok=: 4460break 4461fi 4462rm -f conftest.err conftest.$ac_ext 4463 4464done 4465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4466rm -f conftest.err conftest.$ac_ext 4467if $ac_preproc_ok; then 4468 : 4469else 4470 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4471See \`config.log' for more details." >&5 4472echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4473See \`config.log' for more details." >&2;} 4474 { (exit 1); exit 1; }; } 4475fi 4476 4477ac_ext=cc 4478ac_cpp='$CXXCPP $CPPFLAGS' 4479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4482 4483fi 4484 4485 4486ac_ext=f 4487ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4488ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4489ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4490if test -n "$ac_tool_prefix"; then 4491 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4492 do 4493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4494set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4495echo "$as_me:$LINENO: checking for $ac_word" >&5 4496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4497if test "${ac_cv_prog_F77+set}" = set; then 4498 echo $ECHO_N "(cached) $ECHO_C" >&6 4499else 4500 if test -n "$F77"; then 4501 ac_cv_prog_F77="$F77" # Let the user override the test. 4502else 4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4504for as_dir in $PATH 4505do 4506 IFS=$as_save_IFS 4507 test -z "$as_dir" && as_dir=. 4508 for ac_exec_ext in '' $ac_executable_extensions; do 4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4510 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4512 break 2 4513 fi 4514done 4515done 4516 4517fi 4518fi 4519F77=$ac_cv_prog_F77 4520if test -n "$F77"; then 4521 echo "$as_me:$LINENO: result: $F77" >&5 4522echo "${ECHO_T}$F77" >&6 4523else 4524 echo "$as_me:$LINENO: result: no" >&5 4525echo "${ECHO_T}no" >&6 4526fi 4527 4528 test -n "$F77" && break 4529 done 4530fi 4531if test -z "$F77"; then 4532 ac_ct_F77=$F77 4533 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4534do 4535 # Extract the first word of "$ac_prog", so it can be a program name with args. 4536set dummy $ac_prog; ac_word=$2 4537echo "$as_me:$LINENO: checking for $ac_word" >&5 4538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4539if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4540 echo $ECHO_N "(cached) $ECHO_C" >&6 4541else 4542 if test -n "$ac_ct_F77"; then 4543 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4544else 4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4552 ac_cv_prog_ac_ct_F77="$ac_prog" 4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4554 break 2 4555 fi 4556done 4557done 4558 4559fi 4560fi 4561ac_ct_F77=$ac_cv_prog_ac_ct_F77 4562if test -n "$ac_ct_F77"; then 4563 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4564echo "${ECHO_T}$ac_ct_F77" >&6 4565else 4566 echo "$as_me:$LINENO: result: no" >&5 4567echo "${ECHO_T}no" >&6 4568fi 4569 4570 test -n "$ac_ct_F77" && break 4571done 4572 4573 F77=$ac_ct_F77 4574fi 4575 4576 4577# Provide some information about the compiler. 4578echo "$as_me:4578:" \ 4579 "checking for Fortran 77 compiler version" >&5 4580ac_compiler=`set X $ac_compile; echo $2` 4581{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4582 (eval $ac_compiler --version </dev/null >&5) 2>&5 4583 ac_status=$? 4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4585 (exit $ac_status); } 4586{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4587 (eval $ac_compiler -v </dev/null >&5) 2>&5 4588 ac_status=$? 4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4590 (exit $ac_status); } 4591{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4592 (eval $ac_compiler -V </dev/null >&5) 2>&5 4593 ac_status=$? 4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4595 (exit $ac_status); } 4596rm -f a.out 4597 4598# If we don't use `.F' as extension, the preprocessor is not run on the 4599# input file. (Note that this only needs to work for GNU compilers.) 4600ac_save_ext=$ac_ext 4601ac_ext=F 4602echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4603echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4604if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4605 echo $ECHO_N "(cached) $ECHO_C" >&6 4606else 4607 cat >conftest.$ac_ext <<_ACEOF 4608 program main 4609#ifndef __GNUC__ 4610 choke me 4611#endif 4612 4613 end 4614_ACEOF 4615rm -f conftest.$ac_objext 4616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4617 (eval $ac_compile) 2>conftest.er1 4618 ac_status=$? 4619 grep -v '^ *+' conftest.er1 >conftest.err 4620 rm -f conftest.er1 4621 cat conftest.err >&5 4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4623 (exit $ac_status); } && 4624 { ac_try='test -z "$ac_f77_werror_flag" 4625 || test ! -s conftest.err' 4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4627 (eval $ac_try) 2>&5 4628 ac_status=$? 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); }; } && 4631 { ac_try='test -s conftest.$ac_objext' 4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4633 (eval $ac_try) 2>&5 4634 ac_status=$? 4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4636 (exit $ac_status); }; }; then 4637 ac_compiler_gnu=yes 4638else 4639 echo "$as_me: failed program was:" >&5 4640sed 's/^/| /' conftest.$ac_ext >&5 4641 4642ac_compiler_gnu=no 4643fi 4644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4645ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4646 4647fi 4648echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4649echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4650ac_ext=$ac_save_ext 4651ac_test_FFLAGS=${FFLAGS+set} 4652ac_save_FFLAGS=$FFLAGS 4653FFLAGS= 4654echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4655echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4656if test "${ac_cv_prog_f77_g+set}" = set; then 4657 echo $ECHO_N "(cached) $ECHO_C" >&6 4658else 4659 FFLAGS=-g 4660cat >conftest.$ac_ext <<_ACEOF 4661 program main 4662 4663 end 4664_ACEOF 4665rm -f conftest.$ac_objext 4666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4667 (eval $ac_compile) 2>conftest.er1 4668 ac_status=$? 4669 grep -v '^ *+' conftest.er1 >conftest.err 4670 rm -f conftest.er1 4671 cat conftest.err >&5 4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4673 (exit $ac_status); } && 4674 { ac_try='test -z "$ac_f77_werror_flag" 4675 || test ! -s conftest.err' 4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4677 (eval $ac_try) 2>&5 4678 ac_status=$? 4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); }; } && 4681 { ac_try='test -s conftest.$ac_objext' 4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4683 (eval $ac_try) 2>&5 4684 ac_status=$? 4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4686 (exit $ac_status); }; }; then 4687 ac_cv_prog_f77_g=yes 4688else 4689 echo "$as_me: failed program was:" >&5 4690sed 's/^/| /' conftest.$ac_ext >&5 4691 4692ac_cv_prog_f77_g=no 4693fi 4694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4695 4696fi 4697echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4698echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4699if test "$ac_test_FFLAGS" = set; then 4700 FFLAGS=$ac_save_FFLAGS 4701elif test $ac_cv_prog_f77_g = yes; then 4702 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4703 FFLAGS="-g -O2" 4704 else 4705 FFLAGS="-g" 4706 fi 4707else 4708 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4709 FFLAGS="-O2" 4710 else 4711 FFLAGS= 4712 fi 4713fi 4714 4715G77=`test $ac_compiler_gnu = yes && echo yes` 4716ac_ext=c 4717ac_cpp='$CPP $CPPFLAGS' 4718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4720ac_compiler_gnu=$ac_cv_c_compiler_gnu 4721 4722 4723 4724# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 4725 4726# find the maximum length of command line arguments 4727echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4728echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 4729if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4730 echo $ECHO_N "(cached) $ECHO_C" >&6 4731else 4732 i=0 4733 teststring="ABCD" 4734 4735 case $build_os in 4736 msdosdjgpp*) 4737 # On DJGPP, this test can blow up pretty badly due to problems in libc 4738 # (any single argument exceeding 2000 bytes causes a buffer overrun 4739 # during glob expansion). Even if it were fixed, the result of this 4740 # check would be larger than it should be. 4741 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4742 ;; 4743 4744 gnu*) 4745 # Under GNU Hurd, this test is not required because there is 4746 # no limit to the length of command line arguments. 4747 # Libtool will interpret -1 as no limit whatsoever 4748 lt_cv_sys_max_cmd_len=-1; 4749 ;; 4750 4751 cygwin* | mingw*) 4752 # On Win9x/ME, this test blows up -- it succeeds, but takes 4753 # about 5 minutes as the teststring grows exponentially. 4754 # Worse, since 9x/ME are not pre-emptively multitasking, 4755 # you end up with a "frozen" computer, even though with patience 4756 # the test eventually succeeds (with a max line length of 256k). 4757 # Instead, let's just punt: use the minimum linelength reported by 4758 # all of the supported platforms: 8192 (on NT/2K/XP). 4759 lt_cv_sys_max_cmd_len=8192; 4760 ;; 4761 4762 amigaos*) 4763 # On AmigaOS with pdksh, this test takes hours, literally. 4764 # So we just punt and use a minimum line length of 8192. 4765 lt_cv_sys_max_cmd_len=8192; 4766 ;; 4767 4768 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4769 # This has been around since 386BSD, at least. Likely further. 4770 if test -x /sbin/sysctl; then 4771 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4772 elif test -x /usr/sbin/sysctl; then 4773 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4774 else 4775 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4776 fi 4777 # And add a safety zone 4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4780 ;; 4781 4782 interix*) 4783 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4784 lt_cv_sys_max_cmd_len=196608 4785 ;; 4786 4787 osf*) 4788 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4789 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4790 # nice to cause kernel panics so lets avoid the loop below. 4791 # First set a reasonable default. 4792 lt_cv_sys_max_cmd_len=16384 4793 # 4794 if test -x /sbin/sysconfig; then 4795 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4796 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4797 esac 4798 fi 4799 ;; 4800 sco3.2v5*) 4801 lt_cv_sys_max_cmd_len=102400 4802 ;; 4803 sysv5* | sco5v6* | sysv4.2uw2*) 4804 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4805 if test -n "$kargmax"; then 4806 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4807 else 4808 lt_cv_sys_max_cmd_len=32768 4809 fi 4810 ;; 4811 *) 4812 # If test is not a shell built-in, we'll probably end up computing a 4813 # maximum length that is only half of the actual maximum length, but 4814 # we can't tell. 4815 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4816 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 4817 = "XX$teststring") >/dev/null 2>&1 && 4818 new_result=`expr "X$teststring" : ".*" 2>&1` && 4819 lt_cv_sys_max_cmd_len=$new_result && 4820 test $i != 17 # 1/2 MB should be enough 4821 do 4822 i=`expr $i + 1` 4823 teststring=$teststring$teststring 4824 done 4825 teststring= 4826 # Add a significant safety factor because C++ compilers can tack on massive 4827 # amounts of additional arguments before passing them to the linker. 4828 # It appears as though 1/2 is a usable value. 4829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4830 ;; 4831 esac 4832 4833fi 4834 4835if test -n $lt_cv_sys_max_cmd_len ; then 4836 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4837echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 4838else 4839 echo "$as_me:$LINENO: result: none" >&5 4840echo "${ECHO_T}none" >&6 4841fi 4842 4843 4844 4845 4846# Check for command to grab the raw symbol name followed by C symbol from nm. 4847echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 4848echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 4849if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4850 echo $ECHO_N "(cached) $ECHO_C" >&6 4851else 4852 4853# These are sane defaults that work on at least a few old systems. 4854# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4855 4856# Character class describing NM global symbol codes. 4857symcode='[BCDEGRST]' 4858 4859# Regexp to match symbols that can be accessed directly from C. 4860sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4861 4862# Transform an extracted symbol line into a proper C declaration 4863lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4864 4865# Transform an extracted symbol line into symbol name and symbol address 4866lt_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'" 4867 4868# Define system-specific variables. 4869case $host_os in 4870aix*) 4871 symcode='[BCDT]' 4872 ;; 4873cygwin* | mingw* | pw32*) 4874 symcode='[ABCDGISTW]' 4875 ;; 4876hpux*) # Its linker distinguishes data from code symbols 4877 if test "$host_cpu" = ia64; then 4878 symcode='[ABCDEGRST]' 4879 fi 4880 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4881 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'" 4882 ;; 4883linux*) 4884 if test "$host_cpu" = ia64; then 4885 symcode='[ABCDGIRSTW]' 4886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4887 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'" 4888 fi 4889 ;; 4890irix* | nonstopux*) 4891 symcode='[BCDEGRST]' 4892 ;; 4893osf*) 4894 symcode='[BCDEGQRST]' 4895 ;; 4896solaris*) 4897 symcode='[BDRT]' 4898 ;; 4899sco3.2v5*) 4900 symcode='[DT]' 4901 ;; 4902sysv4.2uw2*) 4903 symcode='[DT]' 4904 ;; 4905sysv5* | sco5v6* | unixware* | OpenUNIX*) 4906 symcode='[ABDT]' 4907 ;; 4908sysv4) 4909 symcode='[DFNSTU]' 4910 ;; 4911esac 4912 4913# Handle CRLF in mingw tool chain 4914opt_cr= 4915case $build_os in 4916mingw*) 4917 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4918 ;; 4919esac 4920 4921# If we're using GNU nm, then use its standard symbol codes. 4922case `$NM -V 2>&1` in 4923*GNU* | *'with BFD'*) 4924 symcode='[ABCDGIRSTW]' ;; 4925esac 4926 4927# Try without a prefix undercore, then with it. 4928for ac_symprfx in "" "_"; do 4929 4930 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4931 symxfrm="\\1 $ac_symprfx\\2 \\2" 4932 4933 # Write the raw and C identifiers. 4934 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4935 4936 # Check to see that the pipe works correctly. 4937 pipe_works=no 4938 4939 rm -f conftest* 4940 cat > conftest.$ac_ext <<EOF 4941#ifdef __cplusplus 4942extern "C" { 4943#endif 4944char nm_test_var; 4945void nm_test_func(){} 4946#ifdef __cplusplus 4947} 4948#endif 4949int main(){nm_test_var='a';nm_test_func();return(0);} 4950EOF 4951 4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4953 (eval $ac_compile) 2>&5 4954 ac_status=$? 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4956 (exit $ac_status); }; then 4957 # Now try to grab the symbols. 4958 nlist=conftest.nm 4959 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4960 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4961 ac_status=$? 4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4963 (exit $ac_status); } && test -s "$nlist"; then 4964 # Try sorting and uniquifying the output. 4965 if sort "$nlist" | uniq > "$nlist"T; then 4966 mv -f "$nlist"T "$nlist" 4967 else 4968 rm -f "$nlist"T 4969 fi 4970 4971 # Make sure that we snagged all the symbols we need. 4972 if grep ' nm_test_var$' "$nlist" >/dev/null; then 4973 if grep ' nm_test_func$' "$nlist" >/dev/null; then 4974 cat <<EOF > conftest.$ac_ext 4975#ifdef __cplusplus 4976extern "C" { 4977#endif 4978 4979EOF 4980 # Now generate the symbol file. 4981 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 4982 4983 cat <<EOF >> conftest.$ac_ext 4984#if defined (__STDC__) && __STDC__ 4985# define lt_ptr_t void * 4986#else 4987# define lt_ptr_t char * 4988# define const 4989#endif 4990 4991/* The mapping between symbol names and symbols. */ 4992const struct { 4993 const char *name; 4994 lt_ptr_t address; 4995} 4996lt_preloaded_symbols[] = 4997{ 4998EOF 4999 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5000 cat <<\EOF >> conftest.$ac_ext 5001 {0, (lt_ptr_t) 0} 5002}; 5003 5004#ifdef __cplusplus 5005} 5006#endif 5007EOF 5008 # Now try linking the two files. 5009 mv conftest.$ac_objext conftstm.$ac_objext 5010 lt_save_LIBS="$LIBS" 5011 lt_save_CFLAGS="$CFLAGS" 5012 LIBS="conftstm.$ac_objext" 5013 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5015 (eval $ac_link) 2>&5 5016 ac_status=$? 5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5018 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5019 pipe_works=yes 5020 fi 5021 LIBS="$lt_save_LIBS" 5022 CFLAGS="$lt_save_CFLAGS" 5023 else 5024 echo "cannot find nm_test_func in $nlist" >&5 5025 fi 5026 else 5027 echo "cannot find nm_test_var in $nlist" >&5 5028 fi 5029 else 5030 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5031 fi 5032 else 5033 echo "$progname: failed program was:" >&5 5034 cat conftest.$ac_ext >&5 5035 fi 5036 rm -f conftest* conftst* 5037 5038 # Do not use the global_symbol_pipe unless it works. 5039 if test "$pipe_works" = yes; then 5040 break 5041 else 5042 lt_cv_sys_global_symbol_pipe= 5043 fi 5044done 5045 5046fi 5047 5048if test -z "$lt_cv_sys_global_symbol_pipe"; then 5049 lt_cv_sys_global_symbol_to_cdecl= 5050fi 5051if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5052 echo "$as_me:$LINENO: result: failed" >&5 5053echo "${ECHO_T}failed" >&6 5054else 5055 echo "$as_me:$LINENO: result: ok" >&5 5056echo "${ECHO_T}ok" >&6 5057fi 5058 5059echo "$as_me:$LINENO: checking for objdir" >&5 5060echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5061if test "${lt_cv_objdir+set}" = set; then 5062 echo $ECHO_N "(cached) $ECHO_C" >&6 5063else 5064 rm -f .libs 2>/dev/null 5065mkdir .libs 2>/dev/null 5066if test -d .libs; then 5067 lt_cv_objdir=.libs 5068else 5069 # MS-DOS does not allow filenames that begin with a dot. 5070 lt_cv_objdir=_libs 5071fi 5072rmdir .libs 2>/dev/null 5073fi 5074echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5075echo "${ECHO_T}$lt_cv_objdir" >&6 5076objdir=$lt_cv_objdir 5077 5078 5079 5080 5081 5082case $host_os in 5083aix3*) 5084 # AIX sometimes has problems with the GCC collect2 program. For some 5085 # reason, if we set the COLLECT_NAMES environment variable, the problems 5086 # vanish in a puff of smoke. 5087 if test "X${COLLECT_NAMES+set}" != Xset; then 5088 COLLECT_NAMES= 5089 export COLLECT_NAMES 5090 fi 5091 ;; 5092esac 5093 5094# Sed substitution that helps us do robust quoting. It backslashifies 5095# metacharacters that are still active within double-quoted strings. 5096Xsed='sed -e 1s/^X//' 5097sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5098 5099# Same as above, but do not quote variable references. 5100double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5101 5102# Sed substitution to delay expansion of an escaped shell variable in a 5103# double_quote_subst'ed string. 5104delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5105 5106# Sed substitution to avoid accidental globbing in evaled expressions 5107no_glob_subst='s/\*/\\\*/g' 5108 5109# Constants: 5110rm="rm -f" 5111 5112# Global variables: 5113default_ofile=libtool 5114can_build_shared=yes 5115 5116# All known linkers require a `.a' archive for static linking (except MSVC, 5117# which needs '.lib'). 5118libext=a 5119ltmain="$ac_aux_dir/ltmain.sh" 5120ofile="$default_ofile" 5121with_gnu_ld="$lt_cv_prog_gnu_ld" 5122 5123if test -n "$ac_tool_prefix"; then 5124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5125set dummy ${ac_tool_prefix}ar; ac_word=$2 5126echo "$as_me:$LINENO: checking for $ac_word" >&5 5127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5128if test "${ac_cv_prog_AR+set}" = set; then 5129 echo $ECHO_N "(cached) $ECHO_C" >&6 5130else 5131 if test -n "$AR"; then 5132 ac_cv_prog_AR="$AR" # Let the user override the test. 5133else 5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5135for as_dir in $PATH 5136do 5137 IFS=$as_save_IFS 5138 test -z "$as_dir" && as_dir=. 5139 for ac_exec_ext in '' $ac_executable_extensions; do 5140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5141 ac_cv_prog_AR="${ac_tool_prefix}ar" 5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5143 break 2 5144 fi 5145done 5146done 5147 5148fi 5149fi 5150AR=$ac_cv_prog_AR 5151if test -n "$AR"; then 5152 echo "$as_me:$LINENO: result: $AR" >&5 5153echo "${ECHO_T}$AR" >&6 5154else 5155 echo "$as_me:$LINENO: result: no" >&5 5156echo "${ECHO_T}no" >&6 5157fi 5158 5159fi 5160if test -z "$ac_cv_prog_AR"; then 5161 ac_ct_AR=$AR 5162 # Extract the first word of "ar", so it can be a program name with args. 5163set dummy ar; ac_word=$2 5164echo "$as_me:$LINENO: checking for $ac_word" >&5 5165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5166if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5167 echo $ECHO_N "(cached) $ECHO_C" >&6 5168else 5169 if test -n "$ac_ct_AR"; then 5170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5171else 5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5173for as_dir in $PATH 5174do 5175 IFS=$as_save_IFS 5176 test -z "$as_dir" && as_dir=. 5177 for ac_exec_ext in '' $ac_executable_extensions; do 5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5179 ac_cv_prog_ac_ct_AR="ar" 5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5181 break 2 5182 fi 5183done 5184done 5185 5186 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5187fi 5188fi 5189ac_ct_AR=$ac_cv_prog_ac_ct_AR 5190if test -n "$ac_ct_AR"; then 5191 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5192echo "${ECHO_T}$ac_ct_AR" >&6 5193else 5194 echo "$as_me:$LINENO: result: no" >&5 5195echo "${ECHO_T}no" >&6 5196fi 5197 5198 AR=$ac_ct_AR 5199else 5200 AR="$ac_cv_prog_AR" 5201fi 5202 5203if test -n "$ac_tool_prefix"; then 5204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5205set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5206echo "$as_me:$LINENO: checking for $ac_word" >&5 5207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5208if test "${ac_cv_prog_RANLIB+set}" = set; then 5209 echo $ECHO_N "(cached) $ECHO_C" >&6 5210else 5211 if test -n "$RANLIB"; then 5212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5213else 5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5215for as_dir in $PATH 5216do 5217 IFS=$as_save_IFS 5218 test -z "$as_dir" && as_dir=. 5219 for ac_exec_ext in '' $ac_executable_extensions; do 5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5223 break 2 5224 fi 5225done 5226done 5227 5228fi 5229fi 5230RANLIB=$ac_cv_prog_RANLIB 5231if test -n "$RANLIB"; then 5232 echo "$as_me:$LINENO: result: $RANLIB" >&5 5233echo "${ECHO_T}$RANLIB" >&6 5234else 5235 echo "$as_me:$LINENO: result: no" >&5 5236echo "${ECHO_T}no" >&6 5237fi 5238 5239fi 5240if test -z "$ac_cv_prog_RANLIB"; then 5241 ac_ct_RANLIB=$RANLIB 5242 # Extract the first word of "ranlib", so it can be a program name with args. 5243set dummy ranlib; ac_word=$2 5244echo "$as_me:$LINENO: checking for $ac_word" >&5 5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5246if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5247 echo $ECHO_N "(cached) $ECHO_C" >&6 5248else 5249 if test -n "$ac_ct_RANLIB"; then 5250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5251else 5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5253for as_dir in $PATH 5254do 5255 IFS=$as_save_IFS 5256 test -z "$as_dir" && as_dir=. 5257 for ac_exec_ext in '' $ac_executable_extensions; do 5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5259 ac_cv_prog_ac_ct_RANLIB="ranlib" 5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5261 break 2 5262 fi 5263done 5264done 5265 5266 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5267fi 5268fi 5269ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5270if test -n "$ac_ct_RANLIB"; then 5271 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5272echo "${ECHO_T}$ac_ct_RANLIB" >&6 5273else 5274 echo "$as_me:$LINENO: result: no" >&5 5275echo "${ECHO_T}no" >&6 5276fi 5277 5278 RANLIB=$ac_ct_RANLIB 5279else 5280 RANLIB="$ac_cv_prog_RANLIB" 5281fi 5282 5283if test -n "$ac_tool_prefix"; then 5284 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5285set dummy ${ac_tool_prefix}strip; ac_word=$2 5286echo "$as_me:$LINENO: checking for $ac_word" >&5 5287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5288if test "${ac_cv_prog_STRIP+set}" = set; then 5289 echo $ECHO_N "(cached) $ECHO_C" >&6 5290else 5291 if test -n "$STRIP"; then 5292 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5293else 5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5301 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305done 5306done 5307 5308fi 5309fi 5310STRIP=$ac_cv_prog_STRIP 5311if test -n "$STRIP"; then 5312 echo "$as_me:$LINENO: result: $STRIP" >&5 5313echo "${ECHO_T}$STRIP" >&6 5314else 5315 echo "$as_me:$LINENO: result: no" >&5 5316echo "${ECHO_T}no" >&6 5317fi 5318 5319fi 5320if test -z "$ac_cv_prog_STRIP"; then 5321 ac_ct_STRIP=$STRIP 5322 # Extract the first word of "strip", so it can be a program name with args. 5323set dummy strip; ac_word=$2 5324echo "$as_me:$LINENO: checking for $ac_word" >&5 5325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5326if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5327 echo $ECHO_N "(cached) $ECHO_C" >&6 5328else 5329 if test -n "$ac_ct_STRIP"; then 5330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5331else 5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5333for as_dir in $PATH 5334do 5335 IFS=$as_save_IFS 5336 test -z "$as_dir" && as_dir=. 5337 for ac_exec_ext in '' $ac_executable_extensions; do 5338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5339 ac_cv_prog_ac_ct_STRIP="strip" 5340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5341 break 2 5342 fi 5343done 5344done 5345 5346 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5347fi 5348fi 5349ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5350if test -n "$ac_ct_STRIP"; then 5351 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5352echo "${ECHO_T}$ac_ct_STRIP" >&6 5353else 5354 echo "$as_me:$LINENO: result: no" >&5 5355echo "${ECHO_T}no" >&6 5356fi 5357 5358 STRIP=$ac_ct_STRIP 5359else 5360 STRIP="$ac_cv_prog_STRIP" 5361fi 5362 5363 5364old_CC="$CC" 5365old_CFLAGS="$CFLAGS" 5366 5367# Set sane defaults for various variables 5368test -z "$AR" && AR=ar 5369test -z "$AR_FLAGS" && AR_FLAGS=cru 5370test -z "$AS" && AS=as 5371test -z "$CC" && CC=cc 5372test -z "$LTCC" && LTCC=$CC 5373test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 5374test -z "$DLLTOOL" && DLLTOOL=dlltool 5375test -z "$LD" && LD=ld 5376test -z "$LN_S" && LN_S="ln -s" 5377test -z "$MAGIC_CMD" && MAGIC_CMD=file 5378test -z "$NM" && NM=nm 5379test -z "$SED" && SED=sed 5380test -z "$OBJDUMP" && OBJDUMP=objdump 5381test -z "$RANLIB" && RANLIB=: 5382test -z "$STRIP" && STRIP=: 5383test -z "$ac_objext" && ac_objext=o 5384 5385# Determine commands to create old-style static archives. 5386old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5387old_postinstall_cmds='chmod 644 $oldlib' 5388old_postuninstall_cmds= 5389 5390if test -n "$RANLIB"; then 5391 case $host_os in 5392 openbsd*) 5393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5394 ;; 5395 *) 5396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5397 ;; 5398 esac 5399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5400fi 5401 5402for cc_temp in $compiler""; do 5403 case $cc_temp in 5404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5406 \-*) ;; 5407 *) break;; 5408 esac 5409done 5410cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 5411 5412 5413# Only perform the check for file, if the check method requires it 5414case $deplibs_check_method in 5415file_magic*) 5416 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5417 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5418echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5419if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5420 echo $ECHO_N "(cached) $ECHO_C" >&6 5421else 5422 case $MAGIC_CMD in 5423[\\/*] | ?:[\\/]*) 5424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5425 ;; 5426*) 5427 lt_save_MAGIC_CMD="$MAGIC_CMD" 5428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5430 for ac_dir in $ac_dummy; do 5431 IFS="$lt_save_ifs" 5432 test -z "$ac_dir" && ac_dir=. 5433 if test -f $ac_dir/${ac_tool_prefix}file; then 5434 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5435 if test -n "$file_magic_test_file"; then 5436 case $deplibs_check_method in 5437 "file_magic "*) 5438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5441 $EGREP "$file_magic_regex" > /dev/null; then 5442 : 5443 else 5444 cat <<EOF 1>&2 5445 5446*** Warning: the command libtool uses to detect shared libraries, 5447*** $file_magic_cmd, produces output that libtool cannot recognize. 5448*** The result is that libtool may fail to recognize shared libraries 5449*** as such. This will affect the creation of libtool libraries that 5450*** depend on shared libraries, but programs linked with such libtool 5451*** libraries will work regardless of this problem. Nevertheless, you 5452*** may want to report the problem to your system manager and/or to 5453*** [email protected] 5454 5455EOF 5456 fi ;; 5457 esac 5458 fi 5459 break 5460 fi 5461 done 5462 IFS="$lt_save_ifs" 5463 MAGIC_CMD="$lt_save_MAGIC_CMD" 5464 ;; 5465esac 5466fi 5467 5468MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5469if test -n "$MAGIC_CMD"; then 5470 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5471echo "${ECHO_T}$MAGIC_CMD" >&6 5472else 5473 echo "$as_me:$LINENO: result: no" >&5 5474echo "${ECHO_T}no" >&6 5475fi 5476 5477if test -z "$lt_cv_path_MAGIC_CMD"; then 5478 if test -n "$ac_tool_prefix"; then 5479 echo "$as_me:$LINENO: checking for file" >&5 5480echo $ECHO_N "checking for file... $ECHO_C" >&6 5481if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5482 echo $ECHO_N "(cached) $ECHO_C" >&6 5483else 5484 case $MAGIC_CMD in 5485[\\/*] | ?:[\\/]*) 5486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5487 ;; 5488*) 5489 lt_save_MAGIC_CMD="$MAGIC_CMD" 5490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5491 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5492 for ac_dir in $ac_dummy; do 5493 IFS="$lt_save_ifs" 5494 test -z "$ac_dir" && ac_dir=. 5495 if test -f $ac_dir/file; then 5496 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5497 if test -n "$file_magic_test_file"; then 5498 case $deplibs_check_method in 5499 "file_magic "*) 5500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5503 $EGREP "$file_magic_regex" > /dev/null; then 5504 : 5505 else 5506 cat <<EOF 1>&2 5507 5508*** Warning: the command libtool uses to detect shared libraries, 5509*** $file_magic_cmd, produces output that libtool cannot recognize. 5510*** The result is that libtool may fail to recognize shared libraries 5511*** as such. This will affect the creation of libtool libraries that 5512*** depend on shared libraries, but programs linked with such libtool 5513*** libraries will work regardless of this problem. Nevertheless, you 5514*** may want to report the problem to your system manager and/or to 5515*** [email protected] 5516 5517EOF 5518 fi ;; 5519 esac 5520 fi 5521 break 5522 fi 5523 done 5524 IFS="$lt_save_ifs" 5525 MAGIC_CMD="$lt_save_MAGIC_CMD" 5526 ;; 5527esac 5528fi 5529 5530MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5531if test -n "$MAGIC_CMD"; then 5532 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5533echo "${ECHO_T}$MAGIC_CMD" >&6 5534else 5535 echo "$as_me:$LINENO: result: no" >&5 5536echo "${ECHO_T}no" >&6 5537fi 5538 5539 else 5540 MAGIC_CMD=: 5541 fi 5542fi 5543 5544 fi 5545 ;; 5546esac 5547 5548enable_dlopen=no 5549enable_win32_dll=no 5550 5551# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5552if test "${enable_libtool_lock+set}" = set; then 5553 enableval="$enable_libtool_lock" 5554 5555fi; 5556test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5557 5558 5559# Check whether --with-pic or --without-pic was given. 5560if test "${with_pic+set}" = set; then 5561 withval="$with_pic" 5562 pic_mode="$withval" 5563else 5564 pic_mode=default 5565fi; 5566test -z "$pic_mode" && pic_mode=default 5567 5568# Check if we have a version mismatch between libtool.m4 and ltmain.sh. 5569# 5570# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. 5571# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually 5572# calls AC_LIBTOOL_CONFIG and creates libtool. 5573# 5574echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 5575echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6 5576if test "x$ltmain" = "x" ; then 5577 echo "$as_me:$LINENO: result: no" >&5 5578echo "${ECHO_T}no" >&6 5579 { { echo "$as_me:$LINENO: error: 5580 5581*** [Gentoo] sanity check failed! *** 5582*** \$ltmain is not defined, please check the patch for consistency! *** 5583" >&5 5584echo "$as_me: error: 5585 5586*** [Gentoo] sanity check failed! *** 5587*** \$ltmain is not defined, please check the patch for consistency! *** 5588" >&2;} 5589 { (exit 1); exit 1; }; } 5590fi 5591gentoo_lt_version="1.5.22" 5592gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` 5593if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then 5594 echo "$as_me:$LINENO: result: no" >&5 5595echo "${ECHO_T}no" >&6 5596 { { echo "$as_me:$LINENO: error: 5597 5598*** [Gentoo] sanity check failed! *** 5599*** libtool.m4 and ltmain.sh have a version mismatch! *** 5600*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 5601 5602Please run: 5603 5604 libtoolize --copy --force 5605 5606if appropriate, please contact the maintainer of this 5607package (or your distribution) for help. 5608" >&5 5609echo "$as_me: error: 5610 5611*** [Gentoo] sanity check failed! *** 5612*** libtool.m4 and ltmain.sh have a version mismatch! *** 5613*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 5614 5615Please run: 5616 5617 libtoolize --copy --force 5618 5619if appropriate, please contact the maintainer of this 5620package (or your distribution) for help. 5621" >&2;} 5622 { (exit 1); exit 1; }; } 5623else 5624 echo "$as_me:$LINENO: result: yes" >&5 5625echo "${ECHO_T}yes" >&6 5626fi 5627 5628 5629# Use C for the default configuration in the libtool script 5630tagname= 5631lt_save_CC="$CC" 5632ac_ext=c 5633ac_cpp='$CPP $CPPFLAGS' 5634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5636ac_compiler_gnu=$ac_cv_c_compiler_gnu 5637 5638 5639# Source file extension for C test sources. 5640ac_ext=c 5641 5642# Object file extension for compiled C test sources. 5643objext=o 5644objext=$objext 5645 5646# Code to be used in simple compile tests 5647lt_simple_compile_test_code="int some_variable = 0;\n" 5648 5649# Code to be used in simple link tests 5650lt_simple_link_test_code='int main(){return(0);}\n' 5651 5652 5653# If no C compiler was specified, use CC. 5654LTCC=${LTCC-"$CC"} 5655 5656# If no C compiler flags were specified, use CFLAGS. 5657LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5658 5659# Allow CC to be a program name with arguments. 5660compiler=$CC 5661 5662 5663# save warnings/boilerplate of simple test code 5664ac_outfile=conftest.$ac_objext 5665printf "$lt_simple_compile_test_code" >conftest.$ac_ext 5666eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 5667_lt_compiler_boilerplate=`cat conftest.err` 5668$rm conftest* 5669 5670ac_outfile=conftest.$ac_objext 5671printf "$lt_simple_link_test_code" >conftest.$ac_ext 5672eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 5673_lt_linker_boilerplate=`cat conftest.err` 5674$rm conftest* 5675 5676 5677 5678lt_prog_compiler_no_builtin_flag= 5679 5680if test "$GCC" = yes; then 5681 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5682 5683 5684echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5685echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5686if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5687 echo $ECHO_N "(cached) $ECHO_C" >&6 5688else 5689 lt_cv_prog_compiler_rtti_exceptions=no 5690 ac_outfile=conftest.$ac_objext 5691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5692 lt_compiler_flag="-fno-rtti -fno-exceptions" 5693 # Insert the option either (1) after the last *FLAGS variable, or 5694 # (2) before a word containing "conftest.", or (3) at the end. 5695 # Note that $ac_compile itself does not contain backslashes and begins 5696 # with a dollar sign (not a hyphen), so the echo should work correctly. 5697 # The option is referenced via a variable to avoid confusing sed. 5698 lt_compile=`echo "$ac_compile" | $SED \ 5699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 5700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5701 -e 's:$: $lt_compiler_flag:'` 5702 (eval echo "\"\$as_me:5702: $lt_compile\"" >&5) 5703 (eval "$lt_compile" 2>conftest.err) 5704 ac_status=$? 5705 cat conftest.err >&5 5706 echo "$as_me:5706: \$? = $ac_status" >&5 5707 if (exit $ac_status) && test -s "$ac_outfile"; then 5708 # The compiler can only warn and ignore the option if not recognized 5709 # So say no if there are warnings other than the usual output. 5710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 5711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 5712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 5713 lt_cv_prog_compiler_rtti_exceptions=yes 5714 fi 5715 fi 5716 $rm conftest* 5717 5718fi 5719echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5720echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5721 5722if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5724else 5725 : 5726fi 5727 5728fi 5729 5730lt_prog_compiler_wl= 5731lt_prog_compiler_pic= 5732lt_prog_compiler_static= 5733 5734echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5735echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5736 5737 if test "$GCC" = yes; then 5738 lt_prog_compiler_wl='-Wl,' 5739 lt_prog_compiler_static='-static' 5740 5741 case $host_os in 5742 aix*) 5743 # All AIX code is PIC. 5744 if test "$host_cpu" = ia64; then 5745 # AIX 5 now supports IA64 processor 5746 lt_prog_compiler_static='-Bstatic' 5747 fi 5748 ;; 5749 5750 amigaos*) 5751 # FIXME: we need at least 68020 code to build shared libraries, but 5752 # adding the `-m68020' flag to GCC prevents building anything better, 5753 # like `-m68040'. 5754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5755 ;; 5756 5757 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5758 # PIC is the default for these OSes. 5759 ;; 5760 5761 mingw* | pw32* | os2*) 5762 # This hack is so that the source file can tell whether it is being 5763 # built for inclusion in a dll (and should export symbols for example). 5764 lt_prog_compiler_pic='-DDLL_EXPORT' 5765 ;; 5766 5767 darwin* | rhapsody*) 5768 # PIC is the default on this platform 5769 # Common symbols not allowed in MH_DYLIB files 5770 lt_prog_compiler_pic='-fno-common' 5771 ;; 5772 5773 interix3*) 5774 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5775 # Instead, we relocate shared libraries at runtime. 5776 ;; 5777 5778 msdosdjgpp*) 5779 # Just because we use GCC doesn't mean we suddenly get shared libraries 5780 # on systems that don't support them. 5781 lt_prog_compiler_can_build_shared=no 5782 enable_shared=no 5783 ;; 5784 5785 sysv4*MP*) 5786 if test -d /usr/nec; then 5787 lt_prog_compiler_pic=-Kconform_pic 5788 fi 5789 ;; 5790 5791 hpux*) 5792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5793 # not for PA HP-UX. 5794 case $host_cpu in 5795 hppa*64*|ia64*) 5796 # +Z the default 5797 ;; 5798 *) 5799 lt_prog_compiler_pic='-fPIC' 5800 ;; 5801 esac 5802 ;; 5803 5804 *) 5805 lt_prog_compiler_pic='-fPIC' 5806 ;; 5807 esac 5808 else 5809 # PORTME Check for flag to pass linker flags through the system compiler. 5810 case $host_os in 5811 aix*) 5812 lt_prog_compiler_wl='-Wl,' 5813 if test "$host_cpu" = ia64; then 5814 # AIX 5 now supports IA64 processor 5815 lt_prog_compiler_static='-Bstatic' 5816 else 5817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 5818 fi 5819 ;; 5820 darwin*) 5821 # PIC is the default on this platform 5822 # Common symbols not allowed in MH_DYLIB files 5823 case $cc_basename in 5824 xlc*) 5825 lt_prog_compiler_pic='-qnocommon' 5826 lt_prog_compiler_wl='-Wl,' 5827 ;; 5828 esac 5829 ;; 5830 5831 mingw* | pw32* | os2*) 5832 # This hack is so that the source file can tell whether it is being 5833 # built for inclusion in a dll (and should export symbols for example). 5834 lt_prog_compiler_pic='-DDLL_EXPORT' 5835 ;; 5836 5837 hpux9* | hpux10* | hpux11*) 5838 lt_prog_compiler_wl='-Wl,' 5839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5840 # not for PA HP-UX. 5841 case $host_cpu in 5842 hppa*64*|ia64*) 5843 # +Z the default 5844 ;; 5845 *) 5846 lt_prog_compiler_pic='+Z' 5847 ;; 5848 esac 5849 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5850 lt_prog_compiler_static='${wl}-a ${wl}archive' 5851 ;; 5852 5853 irix5* | irix6* | nonstopux*) 5854 lt_prog_compiler_wl='-Wl,' 5855 # PIC (with -KPIC) is the default. 5856 lt_prog_compiler_static='-non_shared' 5857 ;; 5858 5859 newsos6) 5860 lt_prog_compiler_pic='-KPIC' 5861 lt_prog_compiler_static='-Bstatic' 5862 ;; 5863 5864 linux*) 5865 case $cc_basename in 5866 icc* | ecc*) 5867 lt_prog_compiler_wl='-Wl,' 5868 lt_prog_compiler_pic='-KPIC' 5869 lt_prog_compiler_static='-static' 5870 ;; 5871 pgcc* | pgf77* | pgf90* | pgf95*) 5872 # Portland Group compilers (*not* the Pentium gcc compiler, 5873 # which looks to be a dead project) 5874 lt_prog_compiler_wl='-Wl,' 5875 lt_prog_compiler_pic='-fpic' 5876 lt_prog_compiler_static='-Bstatic' 5877 ;; 5878 ccc*) 5879 lt_prog_compiler_wl='-Wl,' 5880 # All Alpha code is PIC. 5881 lt_prog_compiler_static='-non_shared' 5882 ;; 5883 esac 5884 ;; 5885 5886 osf3* | osf4* | osf5*) 5887 lt_prog_compiler_wl='-Wl,' 5888 # All OSF/1 code is PIC. 5889 lt_prog_compiler_static='-non_shared' 5890 ;; 5891 5892 solaris*) 5893 lt_prog_compiler_pic='-KPIC' 5894 lt_prog_compiler_static='-Bstatic' 5895 case $cc_basename in 5896 f77* | f90* | f95*) 5897 lt_prog_compiler_wl='-Qoption ld ';; 5898 *) 5899 lt_prog_compiler_wl='-Wl,';; 5900 esac 5901 ;; 5902 5903 sunos4*) 5904 lt_prog_compiler_wl='-Qoption ld ' 5905 lt_prog_compiler_pic='-PIC' 5906 lt_prog_compiler_static='-Bstatic' 5907 ;; 5908 5909 sysv4 | sysv4.2uw2* | sysv4.3*) 5910 lt_prog_compiler_wl='-Wl,' 5911 lt_prog_compiler_pic='-KPIC' 5912 lt_prog_compiler_static='-Bstatic' 5913 ;; 5914 5915 sysv4*MP*) 5916 if test -d /usr/nec ;then 5917 lt_prog_compiler_pic='-Kconform_pic' 5918 lt_prog_compiler_static='-Bstatic' 5919 fi 5920 ;; 5921 5922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5923 lt_prog_compiler_wl='-Wl,' 5924 lt_prog_compiler_pic='-KPIC' 5925 lt_prog_compiler_static='-Bstatic' 5926 ;; 5927 5928 unicos*) 5929 lt_prog_compiler_wl='-Wl,' 5930 lt_prog_compiler_can_build_shared=no 5931 ;; 5932 5933 uts4*) 5934 lt_prog_compiler_pic='-pic' 5935 lt_prog_compiler_static='-Bstatic' 5936 ;; 5937 5938 *) 5939 lt_prog_compiler_can_build_shared=no 5940 ;; 5941 esac 5942 fi 5943 5944echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 5945echo "${ECHO_T}$lt_prog_compiler_pic" >&6 5946 5947# 5948# Check to make sure the PIC flag actually works. 5949# 5950if test -n "$lt_prog_compiler_pic"; then 5951 5952echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 5953echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 5954if test "${lt_prog_compiler_pic_works+set}" = set; then 5955 echo $ECHO_N "(cached) $ECHO_C" >&6 5956else 5957 lt_prog_compiler_pic_works=no 5958 ac_outfile=conftest.$ac_objext 5959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5960 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 5961 # Insert the option either (1) after the last *FLAGS variable, or 5962 # (2) before a word containing "conftest.", or (3) at the end. 5963 # Note that $ac_compile itself does not contain backslashes and begins 5964 # with a dollar sign (not a hyphen), so the echo should work correctly. 5965 # The option is referenced via a variable to avoid confusing sed. 5966 lt_compile=`echo "$ac_compile" | $SED \ 5967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 5968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5969 -e 's:$: $lt_compiler_flag:'` 5970 (eval echo "\"\$as_me:5970: $lt_compile\"" >&5) 5971 (eval "$lt_compile" 2>conftest.err) 5972 ac_status=$? 5973 cat conftest.err >&5 5974 echo "$as_me:5974: \$? = $ac_status" >&5 5975 if (exit $ac_status) && test -s "$ac_outfile"; then 5976 # The compiler can only warn and ignore the option if not recognized 5977 # So say no if there are warnings other than the usual output. 5978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 5979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 5980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 5981 lt_prog_compiler_pic_works=yes 5982 fi 5983 fi 5984 $rm conftest* 5985 5986fi 5987echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 5988echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 5989 5990if test x"$lt_prog_compiler_pic_works" = xyes; then 5991 case $lt_prog_compiler_pic in 5992 "" | " "*) ;; 5993 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 5994 esac 5995else 5996 lt_prog_compiler_pic= 5997 lt_prog_compiler_can_build_shared=no 5998fi 5999 6000fi 6001case $host_os in 6002 # For platforms which do not support PIC, -DPIC is meaningless: 6003 *djgpp*) 6004 lt_prog_compiler_pic= 6005 ;; 6006 *) 6007 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6008 ;; 6009esac 6010 6011# 6012# Check to make sure the static flag actually works. 6013# 6014wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6015echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6016echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6017if test "${lt_prog_compiler_static_works+set}" = set; then 6018 echo $ECHO_N "(cached) $ECHO_C" >&6 6019else 6020 lt_prog_compiler_static_works=no 6021 save_LDFLAGS="$LDFLAGS" 6022 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6023 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6024 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6025 # The linker can only warn and ignore the option if not recognized 6026 # So say no if there are warnings 6027 if test -s conftest.err; then 6028 # Append any errors to the config.log. 6029 cat conftest.err 1>&5 6030 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6032 if diff conftest.exp conftest.er2 >/dev/null; then 6033 lt_prog_compiler_static_works=yes 6034 fi 6035 else 6036 lt_prog_compiler_static_works=yes 6037 fi 6038 fi 6039 $rm conftest* 6040 LDFLAGS="$save_LDFLAGS" 6041 6042fi 6043echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6044echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6045 6046if test x"$lt_prog_compiler_static_works" = xyes; then 6047 : 6048else 6049 lt_prog_compiler_static= 6050fi 6051 6052 6053echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6054echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6055if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6056 echo $ECHO_N "(cached) $ECHO_C" >&6 6057else 6058 lt_cv_prog_compiler_c_o=no 6059 $rm -r conftest 2>/dev/null 6060 mkdir conftest 6061 cd conftest 6062 mkdir out 6063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6064 6065 lt_compiler_flag="-o out/conftest2.$ac_objext" 6066 # Insert the option either (1) after the last *FLAGS variable, or 6067 # (2) before a word containing "conftest.", or (3) at the end. 6068 # Note that $ac_compile itself does not contain backslashes and begins 6069 # with a dollar sign (not a hyphen), so the echo should work correctly. 6070 lt_compile=`echo "$ac_compile" | $SED \ 6071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6073 -e 's:$: $lt_compiler_flag:'` 6074 (eval echo "\"\$as_me:6074: $lt_compile\"" >&5) 6075 (eval "$lt_compile" 2>out/conftest.err) 6076 ac_status=$? 6077 cat out/conftest.err >&5 6078 echo "$as_me:6078: \$? = $ac_status" >&5 6079 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6080 then 6081 # The compiler can only warn and ignore the option if not recognized 6082 # So say no if there are warnings 6083 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6086 lt_cv_prog_compiler_c_o=yes 6087 fi 6088 fi 6089 chmod u+w . 2>&5 6090 $rm conftest* 6091 # SGI C++ compiler will create directory out/ii_files/ for 6092 # template instantiation 6093 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6094 $rm out/* && rmdir out 6095 cd .. 6096 rmdir conftest 6097 $rm conftest* 6098 6099fi 6100echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6101echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6102 6103 6104hard_links="nottested" 6105if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6106 # do not overwrite the value of need_locks provided by the user 6107 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6108echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6109 hard_links=yes 6110 $rm conftest* 6111 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6112 touch conftest.a 6113 ln conftest.a conftest.b 2>&5 || hard_links=no 6114 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6115 echo "$as_me:$LINENO: result: $hard_links" >&5 6116echo "${ECHO_T}$hard_links" >&6 6117 if test "$hard_links" = no; then 6118 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6119echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6120 need_locks=warn 6121 fi 6122else 6123 need_locks=no 6124fi 6125 6126echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6127echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6128 6129 runpath_var= 6130 allow_undefined_flag= 6131 enable_shared_with_static_runtimes=no 6132 archive_cmds= 6133 archive_expsym_cmds= 6134 old_archive_From_new_cmds= 6135 old_archive_from_expsyms_cmds= 6136 export_dynamic_flag_spec= 6137 whole_archive_flag_spec= 6138 thread_safe_flag_spec= 6139 hardcode_libdir_flag_spec= 6140 hardcode_libdir_flag_spec_ld= 6141 hardcode_libdir_separator= 6142 hardcode_direct=no 6143 hardcode_minus_L=no 6144 hardcode_shlibpath_var=unsupported 6145 link_all_deplibs=unknown 6146 hardcode_automatic=no 6147 module_cmds= 6148 module_expsym_cmds= 6149 always_export_symbols=no 6150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6151 # include_expsyms should be a list of space-separated symbols to be *always* 6152 # included in the symbol list 6153 include_expsyms= 6154 # exclude_expsyms can be an extended regexp of symbols to exclude 6155 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6157 # as well as any symbol that contains `d'. 6158 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6160 # platforms (ab)use it in PIC code, but their linkers get confused if 6161 # the symbol is explicitly referenced. Since portable code cannot 6162 # rely on this symbol name, it's probably fine to never include it in 6163 # preloaded symbol tables. 6164 extract_expsyms_cmds= 6165 # Just being paranoid about ensuring that cc_basename is set. 6166 for cc_temp in $compiler""; do 6167 case $cc_temp in 6168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6170 \-*) ;; 6171 *) break;; 6172 esac 6173done 6174cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6175 6176 case $host_os in 6177 cygwin* | mingw* | pw32*) 6178 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6179 # When not using gcc, we currently assume that we are using 6180 # Microsoft Visual C++. 6181 if test "$GCC" != yes; then 6182 with_gnu_ld=no 6183 fi 6184 ;; 6185 interix*) 6186 # we just hope/assume this is gcc and not c89 (= MSVC++) 6187 with_gnu_ld=yes 6188 ;; 6189 openbsd*) 6190 with_gnu_ld=no 6191 ;; 6192 esac 6193 6194 ld_shlibs=yes 6195 if test "$with_gnu_ld" = yes; then 6196 # If archive_cmds runs LD, not CC, wlarc should be empty 6197 wlarc='${wl}' 6198 6199 # Set some defaults for GNU ld with shared library support. These 6200 # are reset later if shared libraries are not supported. Putting them 6201 # here allows them to be overridden if necessary. 6202 runpath_var=LD_RUN_PATH 6203 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6204 export_dynamic_flag_spec='${wl}--export-dynamic' 6205 # ancient GNU ld didn't support --whole-archive et. al. 6206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6207 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6208 else 6209 whole_archive_flag_spec= 6210 fi 6211 supports_anon_versioning=no 6212 case `$LD -v 2>/dev/null` in 6213 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6214 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6215 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6216 *\ 2.11.*) ;; # other 2.11 versions 6217 *) supports_anon_versioning=yes ;; 6218 esac 6219 6220 # See if GNU ld supports shared libraries. 6221 case $host_os in 6222 aix3* | aix4* | aix5*) 6223 # On AIX/PPC, the GNU linker is very broken 6224 if test "$host_cpu" != ia64; then 6225 ld_shlibs=no 6226 cat <<EOF 1>&2 6227 6228*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6229*** to be unable to reliably create shared libraries on AIX. 6230*** Therefore, libtool is disabling shared libraries support. If you 6231*** really care for shared libraries, you may want to modify your PATH 6232*** so that a non-GNU linker is found, and then restart. 6233 6234EOF 6235 fi 6236 ;; 6237 6238 amigaos*) 6239 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)' 6240 hardcode_libdir_flag_spec='-L$libdir' 6241 hardcode_minus_L=yes 6242 6243 # Samuel A. Falvo II <[email protected]> reports 6244 # that the semantics of dynamic libraries on AmigaOS, at least up 6245 # to version 4, is to share data among multiple programs linked 6246 # with the same dynamic library. Since this doesn't match the 6247 # behavior of shared libraries on other platforms, we can't use 6248 # them. 6249 ld_shlibs=no 6250 ;; 6251 6252 beos*) 6253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6254 allow_undefined_flag=unsupported 6255 # Joseph Beckenbach <[email protected]> says some releases of gcc 6256 # support --undefined. This deserves some investigation. FIXME 6257 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6258 else 6259 ld_shlibs=no 6260 fi 6261 ;; 6262 6263 cygwin* | mingw* | pw32*) 6264 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6265 # as there is no search path for DLLs. 6266 hardcode_libdir_flag_spec='-L$libdir' 6267 allow_undefined_flag=unsupported 6268 always_export_symbols=no 6269 enable_shared_with_static_runtimes=yes 6270 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6271 6272 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6274 # If the export-symbols file already is a .def file (1st line 6275 # is EXPORTS), use it as is; otherwise, prepend... 6276 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6277 cp $export_symbols $output_objdir/$soname.def; 6278 else 6279 echo EXPORTS > $output_objdir/$soname.def; 6280 cat $export_symbols >> $output_objdir/$soname.def; 6281 fi~ 6282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6283 else 6284 ld_shlibs=no 6285 fi 6286 ;; 6287 6288 interix3*) 6289 hardcode_direct=no 6290 hardcode_shlibpath_var=no 6291 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6292 export_dynamic_flag_spec='${wl}-E' 6293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6294 # Instead, shared libraries are loaded at an image base (0x10000000 by 6295 # default) and relocated if they conflict, which is a slow very memory 6296 # consuming and fragmenting process. To avoid this, we pick a random, 6297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6298 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6300 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' 6301 ;; 6302 6303 linux*) 6304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6305 tmp_addflag= 6306 case $cc_basename,$host_cpu in 6307 pgcc*) # Portland Group C compiler 6308 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' 6309 tmp_addflag=' $pic_flag' 6310 ;; 6311 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6312 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' 6313 tmp_addflag=' $pic_flag -Mnomain' ;; 6314 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6315 tmp_addflag=' -i_dynamic' ;; 6316 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6317 tmp_addflag=' -i_dynamic -nofor_main' ;; 6318 ifc* | ifort*) # Intel Fortran compiler 6319 tmp_addflag=' -nofor_main' ;; 6320 esac 6321 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6322 6323 if test $supports_anon_versioning = yes; then 6324 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6326 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6327 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6328 fi 6329 else 6330 ld_shlibs=no 6331 fi 6332 ;; 6333 6334 netbsd*) 6335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6337 wlarc= 6338 else 6339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6341 fi 6342 ;; 6343 6344 solaris*) 6345 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6346 ld_shlibs=no 6347 cat <<EOF 1>&2 6348 6349*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6350*** create shared libraries on Solaris systems. Therefore, libtool 6351*** is disabling shared libraries support. We urge you to upgrade GNU 6352*** binutils to release 2.9.1 or newer. Another option is to modify 6353*** your PATH or compiler configuration so that the native linker is 6354*** used, and then restart. 6355 6356EOF 6357 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6360 else 6361 ld_shlibs=no 6362 fi 6363 ;; 6364 6365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6366 case `$LD -v 2>&1` in 6367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 6368 ld_shlibs=no 6369 cat <<_LT_EOF 1>&2 6370 6371*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6372*** reliably create shared libraries on SCO systems. Therefore, libtool 6373*** is disabling shared libraries support. We urge you to upgrade GNU 6374*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6375*** your PATH or compiler configuration so that the native linker is 6376*** used, and then restart. 6377 6378_LT_EOF 6379 ;; 6380 *) 6381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6382 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 6383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 6384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 6385 else 6386 ld_shlibs=no 6387 fi 6388 ;; 6389 esac 6390 ;; 6391 6392 sunos4*) 6393 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6394 wlarc= 6395 hardcode_direct=yes 6396 hardcode_shlibpath_var=no 6397 ;; 6398 6399 *) 6400 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6403 else 6404 ld_shlibs=no 6405 fi 6406 ;; 6407 esac 6408 6409 if test "$ld_shlibs" = no; then 6410 runpath_var= 6411 hardcode_libdir_flag_spec= 6412 export_dynamic_flag_spec= 6413 whole_archive_flag_spec= 6414 fi 6415 else 6416 # PORTME fill in a description of your system's linker (not GNU ld) 6417 case $host_os in 6418 aix3*) 6419 allow_undefined_flag=unsupported 6420 always_export_symbols=yes 6421 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' 6422 # Note: this linker hardcodes the directories in LIBPATH if there 6423 # are no directories specified by -L. 6424 hardcode_minus_L=yes 6425 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6426 # Neither direct hardcoding nor static linking is supported with a 6427 # broken collect2. 6428 hardcode_direct=unsupported 6429 fi 6430 ;; 6431 6432 aix4* | aix5*) 6433 if test "$host_cpu" = ia64; then 6434 # On IA64, the linker does run time linking by default, so we don't 6435 # have to do anything special. 6436 aix_use_runtimelinking=no 6437 exp_sym_flag='-Bexport' 6438 no_entry_flag="" 6439 else 6440 # If we're using GNU nm, then we don't want the "-C" option. 6441 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6442 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6443 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' 6444 else 6445 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' 6446 fi 6447 aix_use_runtimelinking=no 6448 6449 # Test if we are trying to use run time linking or normal 6450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6451 # need to do runtime linking. 6452 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6453 for ld_flag in $LDFLAGS; do 6454 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6455 aix_use_runtimelinking=yes 6456 break 6457 fi 6458 done 6459 ;; 6460 esac 6461 6462 exp_sym_flag='-bexport' 6463 no_entry_flag='-bnoentry' 6464 fi 6465 6466 # When large executables or shared objects are built, AIX ld can 6467 # have problems creating the table of contents. If linking a library 6468 # or program results in "error TOC overflow" add -mminimal-toc to 6469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6471 6472 archive_cmds='' 6473 hardcode_direct=yes 6474 hardcode_libdir_separator=':' 6475 link_all_deplibs=yes 6476 6477 if test "$GCC" = yes; then 6478 case $host_os in aix4.[012]|aix4.[012].*) 6479 # We only want to do this on AIX 4.2 and lower, the check 6480 # below for broken collect2 doesn't work under 4.3+ 6481 collect2name=`${CC} -print-prog-name=collect2` 6482 if test -f "$collect2name" && \ 6483 strings "$collect2name" | grep resolve_lib_name >/dev/null 6484 then 6485 # We have reworked collect2 6486 hardcode_direct=yes 6487 else 6488 # We have old collect2 6489 hardcode_direct=unsupported 6490 # It fails to find uninstalled libraries when the uninstalled 6491 # path is not listed in the libpath. Setting hardcode_minus_L 6492 # to unsupported forces relinking 6493 hardcode_minus_L=yes 6494 hardcode_libdir_flag_spec='-L$libdir' 6495 hardcode_libdir_separator= 6496 fi 6497 ;; 6498 esac 6499 shared_flag='-shared' 6500 if test "$aix_use_runtimelinking" = yes; then 6501 shared_flag="$shared_flag "'${wl}-G' 6502 fi 6503 else 6504 # not using gcc 6505 if test "$host_cpu" = ia64; then 6506 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6507 # chokes on -Wl,-G. The following line is correct: 6508 shared_flag='-G' 6509 else 6510 if test "$aix_use_runtimelinking" = yes; then 6511 shared_flag='${wl}-G' 6512 else 6513 shared_flag='${wl}-bM:SRE' 6514 fi 6515 fi 6516 fi 6517 6518 # It seems that -bexpall does not export symbols beginning with 6519 # underscore (_), so it is better to generate a list of symbols to export. 6520 always_export_symbols=yes 6521 if test "$aix_use_runtimelinking" = yes; then 6522 # Warning - without using the other runtime loading flags (-brtl), 6523 # -berok will link without error, but may produce a broken library. 6524 allow_undefined_flag='-berok' 6525 # Determine the default libpath from the value encoded in an empty executable. 6526 cat >conftest.$ac_ext <<_ACEOF 6527/* confdefs.h. */ 6528_ACEOF 6529cat confdefs.h >>conftest.$ac_ext 6530cat >>conftest.$ac_ext <<_ACEOF 6531/* end confdefs.h. */ 6532 6533int 6534main () 6535{ 6536 6537 ; 6538 return 0; 6539} 6540_ACEOF 6541rm -f conftest.$ac_objext conftest$ac_exeext 6542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6543 (eval $ac_link) 2>conftest.er1 6544 ac_status=$? 6545 grep -v '^ *+' conftest.er1 >conftest.err 6546 rm -f conftest.er1 6547 cat conftest.err >&5 6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6549 (exit $ac_status); } && 6550 { ac_try='test -z "$ac_c_werror_flag" 6551 || test ! -s conftest.err' 6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6553 (eval $ac_try) 2>&5 6554 ac_status=$? 6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6556 (exit $ac_status); }; } && 6557 { ac_try='test -s conftest$ac_exeext' 6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6559 (eval $ac_try) 2>&5 6560 ac_status=$? 6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6562 (exit $ac_status); }; }; then 6563 6564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6565}'` 6566# Check for a 64-bit object if we didn't find anything. 6567if 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; } 6568}'`; fi 6569else 6570 echo "$as_me: failed program was:" >&5 6571sed 's/^/| /' conftest.$ac_ext >&5 6572 6573fi 6574rm -f conftest.err conftest.$ac_objext \ 6575 conftest$ac_exeext conftest.$ac_ext 6576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6577 6578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6579 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" 6580 else 6581 if test "$host_cpu" = ia64; then 6582 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6583 allow_undefined_flag="-z nodefs" 6584 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" 6585 else 6586 # Determine the default libpath from the value encoded in an empty executable. 6587 cat >conftest.$ac_ext <<_ACEOF 6588/* confdefs.h. */ 6589_ACEOF 6590cat confdefs.h >>conftest.$ac_ext 6591cat >>conftest.$ac_ext <<_ACEOF 6592/* end confdefs.h. */ 6593 6594int 6595main () 6596{ 6597 6598 ; 6599 return 0; 6600} 6601_ACEOF 6602rm -f conftest.$ac_objext conftest$ac_exeext 6603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6604 (eval $ac_link) 2>conftest.er1 6605 ac_status=$? 6606 grep -v '^ *+' conftest.er1 >conftest.err 6607 rm -f conftest.er1 6608 cat conftest.err >&5 6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6610 (exit $ac_status); } && 6611 { ac_try='test -z "$ac_c_werror_flag" 6612 || test ! -s conftest.err' 6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6614 (eval $ac_try) 2>&5 6615 ac_status=$? 6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6617 (exit $ac_status); }; } && 6618 { ac_try='test -s conftest$ac_exeext' 6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6620 (eval $ac_try) 2>&5 6621 ac_status=$? 6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6623 (exit $ac_status); }; }; then 6624 6625aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6626}'` 6627# Check for a 64-bit object if we didn't find anything. 6628if 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; } 6629}'`; fi 6630else 6631 echo "$as_me: failed program was:" >&5 6632sed 's/^/| /' conftest.$ac_ext >&5 6633 6634fi 6635rm -f conftest.err conftest.$ac_objext \ 6636 conftest$ac_exeext conftest.$ac_ext 6637if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6638 6639 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6640 # Warning - without using the other run time loading flags, 6641 # -berok will link without error, but may produce a broken library. 6642 no_undefined_flag=' ${wl}-bernotok' 6643 allow_undefined_flag=' ${wl}-berok' 6644 # Exported symbols can be pulled into shared objects from archives 6645 whole_archive_flag_spec='$convenience' 6646 archive_cmds_need_lc=yes 6647 # This is similar to how AIX traditionally builds its shared libraries. 6648 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' 6649 fi 6650 fi 6651 ;; 6652 6653 amigaos*) 6654 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)' 6655 hardcode_libdir_flag_spec='-L$libdir' 6656 hardcode_minus_L=yes 6657 # see comment about different semantics on the GNU ld section 6658 ld_shlibs=no 6659 ;; 6660 6661 bsdi[45]*) 6662 export_dynamic_flag_spec=-rdynamic 6663 ;; 6664 6665 cygwin* | mingw* | pw32*) 6666 # When not using gcc, we currently assume that we are using 6667 # Microsoft Visual C++. 6668 # hardcode_libdir_flag_spec is actually meaningless, as there is 6669 # no search path for DLLs. 6670 hardcode_libdir_flag_spec=' ' 6671 allow_undefined_flag=unsupported 6672 # Tell ltmain to make .lib files, not .a files. 6673 libext=lib 6674 # Tell ltmain to make .dll files, not .so files. 6675 shrext_cmds=".dll" 6676 # FIXME: Setting linknames here is a bad hack. 6677 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6678 # The linker will automatically build a .lib file if we build a DLL. 6679 old_archive_From_new_cmds='true' 6680 # FIXME: Should let the user specify the lib program. 6681 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6682 fix_srcfile_path='`cygpath -w "$srcfile"`' 6683 enable_shared_with_static_runtimes=yes 6684 ;; 6685 6686 darwin* | rhapsody*) 6687 case $host_os in 6688 rhapsody* | darwin1.[012]) 6689 allow_undefined_flag='${wl}-undefined ${wl}suppress' 6690 ;; 6691 *) # Darwin 1.3 on 6692 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6693 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6694 else 6695 case ${MACOSX_DEPLOYMENT_TARGET} in 6696 10.[012]) 6697 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6698 ;; 6699 10.*) 6700 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 6701 ;; 6702 esac 6703 fi 6704 ;; 6705 esac 6706 archive_cmds_need_lc=no 6707 hardcode_direct=no 6708 hardcode_automatic=yes 6709 hardcode_shlibpath_var=unsupported 6710 whole_archive_flag_spec='' 6711 link_all_deplibs=yes 6712 if test "$GCC" = yes ; then 6713 output_verbose_link_cmd='echo' 6714 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6715 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6717 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}' 6718 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}' 6719 else 6720 case $cc_basename in 6721 xlc*) 6722 output_verbose_link_cmd='echo' 6723 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 6724 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6726 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}' 6727 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}' 6728 ;; 6729 *) 6730 ld_shlibs=no 6731 ;; 6732 esac 6733 fi 6734 ;; 6735 6736 dgux*) 6737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6738 hardcode_libdir_flag_spec='-L$libdir' 6739 hardcode_shlibpath_var=no 6740 ;; 6741 6742 freebsd1*) 6743 ld_shlibs=no 6744 ;; 6745 6746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6747 # support. Future versions do this automatically, but an explicit c++rt0.o 6748 # does not break anything, and helps significantly (at the cost of a little 6749 # extra space). 6750 freebsd2.2*) 6751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6752 hardcode_libdir_flag_spec='-R$libdir' 6753 hardcode_direct=yes 6754 hardcode_shlibpath_var=no 6755 ;; 6756 6757 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6758 freebsd2*) 6759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6760 hardcode_direct=yes 6761 hardcode_minus_L=yes 6762 hardcode_shlibpath_var=no 6763 ;; 6764 6765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6766 freebsd* | kfreebsd*-gnu | dragonfly*) 6767 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6768 hardcode_libdir_flag_spec='-R$libdir' 6769 hardcode_direct=yes 6770 hardcode_shlibpath_var=no 6771 ;; 6772 6773 hpux9*) 6774 if test "$GCC" = yes; then 6775 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' 6776 else 6777 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' 6778 fi 6779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6780 hardcode_libdir_separator=: 6781 hardcode_direct=yes 6782 6783 # hardcode_minus_L: Not really in the search PATH, 6784 # but as the default location of the library. 6785 hardcode_minus_L=yes 6786 export_dynamic_flag_spec='${wl}-E' 6787 ;; 6788 6789 hpux10*) 6790 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6792 else 6793 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6794 fi 6795 if test "$with_gnu_ld" = no; then 6796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6797 hardcode_libdir_separator=: 6798 6799 hardcode_direct=yes 6800 export_dynamic_flag_spec='${wl}-E' 6801 6802 # hardcode_minus_L: Not really in the search PATH, 6803 # but as the default location of the library. 6804 hardcode_minus_L=yes 6805 fi 6806 ;; 6807 6808 hpux11*) 6809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6810 case $host_cpu in 6811 hppa*64*) 6812 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6813 ;; 6814 ia64*) 6815 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6816 ;; 6817 *) 6818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6819 ;; 6820 esac 6821 else 6822 case $host_cpu in 6823 hppa*64*) 6824 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6825 ;; 6826 ia64*) 6827 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6828 ;; 6829 *) 6830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6831 ;; 6832 esac 6833 fi 6834 if test "$with_gnu_ld" = no; then 6835 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6836 hardcode_libdir_separator=: 6837 6838 case $host_cpu in 6839 hppa*64*|ia64*) 6840 hardcode_libdir_flag_spec_ld='+b $libdir' 6841 hardcode_direct=no 6842 hardcode_shlibpath_var=no 6843 ;; 6844 *) 6845 hardcode_direct=yes 6846 export_dynamic_flag_spec='${wl}-E' 6847 6848 # hardcode_minus_L: Not really in the search PATH, 6849 # but as the default location of the library. 6850 hardcode_minus_L=yes 6851 ;; 6852 esac 6853 fi 6854 ;; 6855 6856 irix5* | irix6* | nonstopux*) 6857 if test "$GCC" = yes; then 6858 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' 6859 else 6860 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' 6861 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6862 fi 6863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6864 hardcode_libdir_separator=: 6865 link_all_deplibs=yes 6866 ;; 6867 6868 netbsd*) 6869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6871 else 6872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6873 fi 6874 hardcode_libdir_flag_spec='-R$libdir' 6875 hardcode_direct=yes 6876 hardcode_shlibpath_var=no 6877 ;; 6878 6879 newsos6) 6880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6881 hardcode_direct=yes 6882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6883 hardcode_libdir_separator=: 6884 hardcode_shlibpath_var=no 6885 ;; 6886 6887 openbsd*) 6888 hardcode_direct=yes 6889 hardcode_shlibpath_var=no 6890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6892 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6894 export_dynamic_flag_spec='${wl}-E' 6895 else 6896 case $host_os in 6897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6899 hardcode_libdir_flag_spec='-R$libdir' 6900 ;; 6901 *) 6902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6904 ;; 6905 esac 6906 fi 6907 ;; 6908 6909 os2*) 6910 hardcode_libdir_flag_spec='-L$libdir' 6911 hardcode_minus_L=yes 6912 allow_undefined_flag=unsupported 6913 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' 6914 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6915 ;; 6916 6917 osf3*) 6918 if test "$GCC" = yes; then 6919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6920 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' 6921 else 6922 allow_undefined_flag=' -expect_unresolved \*' 6923 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' 6924 fi 6925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6926 hardcode_libdir_separator=: 6927 ;; 6928 6929 osf4* | osf5*) # as osf3* with the addition of -msym flag 6930 if test "$GCC" = yes; then 6931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6932 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' 6933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6934 else 6935 allow_undefined_flag=' -expect_unresolved \*' 6936 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' 6937 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6938 $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' 6939 6940 # Both c and cxx compiler support -rpath directly 6941 hardcode_libdir_flag_spec='-rpath $libdir' 6942 fi 6943 hardcode_libdir_separator=: 6944 ;; 6945 6946 solaris*) 6947 no_undefined_flag=' -z text' 6948 if test "$GCC" = yes; then 6949 wlarc='${wl}' 6950 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6951 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6952 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6953 else 6954 wlarc='' 6955 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6956 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6958 fi 6959 hardcode_libdir_flag_spec='-R$libdir' 6960 hardcode_shlibpath_var=no 6961 case $host_os in 6962 solaris2.[0-5] | solaris2.[0-5].*) ;; 6963 *) 6964 # The compiler driver will combine linker options so we 6965 # cannot just pass the convience library names through 6966 # without $wl, iff we do not link with $LD. 6967 # Luckily, gcc supports the same syntax we need for Sun Studio. 6968 # Supported since Solaris 2.6 (maybe 2.5.1?) 6969 case $wlarc in 6970 '') 6971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6972 *) 6973 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' ;; 6974 esac ;; 6975 esac 6976 link_all_deplibs=yes 6977 ;; 6978 6979 sunos4*) 6980 if test "x$host_vendor" = xsequent; then 6981 # Use $CC to link under sequent, because it throws in some extra .o 6982 # files that make .init and .fini sections work. 6983 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6984 else 6985 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6986 fi 6987 hardcode_libdir_flag_spec='-L$libdir' 6988 hardcode_direct=yes 6989 hardcode_minus_L=yes 6990 hardcode_shlibpath_var=no 6991 ;; 6992 6993 sysv4) 6994 case $host_vendor in 6995 sni) 6996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6997 hardcode_direct=yes # is this really true??? 6998 ;; 6999 siemens) 7000 ## LD is ld it makes a PLAMLIB 7001 ## CC just makes a GrossModule. 7002 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7003 reload_cmds='$CC -r -o $output$reload_objs' 7004 hardcode_direct=no 7005 ;; 7006 motorola) 7007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7008 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7009 ;; 7010 esac 7011 runpath_var='LD_RUN_PATH' 7012 hardcode_shlibpath_var=no 7013 ;; 7014 7015 sysv4.3*) 7016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7017 hardcode_shlibpath_var=no 7018 export_dynamic_flag_spec='-Bexport' 7019 ;; 7020 7021 sysv4*MP*) 7022 if test -d /usr/nec; then 7023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7024 hardcode_shlibpath_var=no 7025 runpath_var=LD_RUN_PATH 7026 hardcode_runpath_var=yes 7027 ld_shlibs=yes 7028 fi 7029 ;; 7030 7031 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7032 no_undefined_flag='${wl}-z,text' 7033 archive_cmds_need_lc=no 7034 hardcode_shlibpath_var=no 7035 runpath_var='LD_RUN_PATH' 7036 7037 if test "$GCC" = yes; then 7038 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7039 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7040 else 7041 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7042 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7043 fi 7044 ;; 7045 7046 sysv5* | sco3.2v5* | sco5v6*) 7047 # Note: We can NOT use -z defs as we might desire, because we do not 7048 # link with -lc, and that would cause any symbols used from libc to 7049 # always be unresolved, which means just about no library would 7050 # ever link correctly. If we're not using GNU ld we use -z text 7051 # though, which does catch some bad symbols but isn't as heavy-handed 7052 # as -z defs. 7053 no_undefined_flag='${wl}-z,text' 7054 allow_undefined_flag='${wl}-z,nodefs' 7055 archive_cmds_need_lc=no 7056 hardcode_shlibpath_var=no 7057 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7058 hardcode_libdir_separator=':' 7059 link_all_deplibs=yes 7060 export_dynamic_flag_spec='${wl}-Bexport' 7061 runpath_var='LD_RUN_PATH' 7062 7063 if test "$GCC" = yes; then 7064 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7065 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7066 else 7067 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7068 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7069 fi 7070 ;; 7071 7072 uts4*) 7073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7074 hardcode_libdir_flag_spec='-L$libdir' 7075 hardcode_shlibpath_var=no 7076 ;; 7077 7078 *) 7079 ld_shlibs=no 7080 ;; 7081 esac 7082 fi 7083 7084echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7085echo "${ECHO_T}$ld_shlibs" >&6 7086test "$ld_shlibs" = no && can_build_shared=no 7087 7088# 7089# Do we need to explicitly link libc? 7090# 7091case "x$archive_cmds_need_lc" in 7092x|xyes) 7093 # Assume -lc should be added 7094 archive_cmds_need_lc=yes 7095 7096 if test "$enable_shared" = yes && test "$GCC" = yes; then 7097 case $archive_cmds in 7098 *'~'*) 7099 # FIXME: we may have to deal with multi-command sequences. 7100 ;; 7101 '$CC '*) 7102 # Test whether the compiler implicitly links with -lc since on some 7103 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7104 # to ld, don't add -lc before -lgcc. 7105 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7106echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7107 $rm conftest* 7108 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7109 7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7111 (eval $ac_compile) 2>&5 7112 ac_status=$? 7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7114 (exit $ac_status); } 2>conftest.err; then 7115 soname=conftest 7116 lib=conftest 7117 libobjs=conftest.$ac_objext 7118 deplibs= 7119 wl=$lt_prog_compiler_wl 7120 pic_flag=$lt_prog_compiler_pic 7121 compiler_flags=-v 7122 linker_flags=-v 7123 verstring= 7124 output_objdir=. 7125 libname=conftest 7126 lt_save_allow_undefined_flag=$allow_undefined_flag 7127 allow_undefined_flag= 7128 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7129 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7130 ac_status=$? 7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7132 (exit $ac_status); } 7133 then 7134 archive_cmds_need_lc=no 7135 else 7136 archive_cmds_need_lc=yes 7137 fi 7138 allow_undefined_flag=$lt_save_allow_undefined_flag 7139 else 7140 cat conftest.err 1>&5 7141 fi 7142 $rm conftest* 7143 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7144echo "${ECHO_T}$archive_cmds_need_lc" >&6 7145 ;; 7146 esac 7147 fi 7148 ;; 7149esac 7150 7151echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7152echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7153library_names_spec= 7154libname_spec='lib$name' 7155soname_spec= 7156shrext_cmds=".so" 7157postinstall_cmds= 7158postuninstall_cmds= 7159finish_cmds= 7160finish_eval= 7161shlibpath_var= 7162shlibpath_overrides_runpath=unknown 7163version_type=none 7164dynamic_linker="$host_os ld.so" 7165sys_lib_dlsearch_path_spec="/lib /usr/lib" 7166if test "$GCC" = yes; then 7167 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7168 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7169 # if the path contains ";" then we assume it to be the separator 7170 # otherwise default to the standard path separator (i.e. ":") - it is 7171 # assumed that no part of a normal pathname contains ";" but that should 7172 # okay in the real world where ";" in dirpaths is itself problematic. 7173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7174 else 7175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7176 fi 7177else 7178 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7179fi 7180need_lib_prefix=unknown 7181hardcode_into_libs=no 7182 7183# when you set need_version to no, make sure it does not cause -set_version 7184# flags to be left without arguments 7185need_version=unknown 7186 7187case $host_os in 7188aix3*) 7189 version_type=linux 7190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7191 shlibpath_var=LIBPATH 7192 7193 # AIX 3 has no versioning support, so we append a major version to the name. 7194 soname_spec='${libname}${release}${shared_ext}$major' 7195 ;; 7196 7197aix4* | aix5*) 7198 version_type=linux 7199 need_lib_prefix=no 7200 need_version=no 7201 hardcode_into_libs=yes 7202 if test "$host_cpu" = ia64; then 7203 # AIX 5 supports IA64 7204 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7205 shlibpath_var=LD_LIBRARY_PATH 7206 else 7207 # With GCC up to 2.95.x, collect2 would create an import file 7208 # for dependence libraries. The import file would start with 7209 # the line `#! .'. This would cause the generated library to 7210 # depend on `.', always an invalid library. This was fixed in 7211 # development snapshots of GCC prior to 3.0. 7212 case $host_os in 7213 aix4 | aix4.[01] | aix4.[01].*) 7214 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7215 echo ' yes ' 7216 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7217 : 7218 else 7219 can_build_shared=no 7220 fi 7221 ;; 7222 esac 7223 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7224 # soname into executable. Probably we can add versioning support to 7225 # collect2, so additional links can be useful in future. 7226 if test "$aix_use_runtimelinking" = yes; then 7227 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7228 # instead of lib<name>.a to let people know that these are not 7229 # typical AIX shared libraries. 7230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7231 else 7232 # We preserve .a as extension for shared libraries through AIX4.2 7233 # and later when we are not doing run time linking. 7234 library_names_spec='${libname}${release}.a $libname.a' 7235 soname_spec='${libname}${release}${shared_ext}$major' 7236 fi 7237 shlibpath_var=LIBPATH 7238 fi 7239 ;; 7240 7241amigaos*) 7242 library_names_spec='$libname.ixlibrary $libname.a' 7243 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7244 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' 7245 ;; 7246 7247beos*) 7248 library_names_spec='${libname}${shared_ext}' 7249 dynamic_linker="$host_os ld.so" 7250 shlibpath_var=LIBRARY_PATH 7251 ;; 7252 7253bsdi[45]*) 7254 version_type=linux 7255 need_version=no 7256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7257 soname_spec='${libname}${release}${shared_ext}$major' 7258 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7259 shlibpath_var=LD_LIBRARY_PATH 7260 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7261 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7262 # the default ld.so.conf also contains /usr/contrib/lib and 7263 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7264 # libtool to hard-code these into programs 7265 ;; 7266 7267cygwin* | mingw* | pw32*) 7268 version_type=windows 7269 shrext_cmds=".dll" 7270 need_version=no 7271 need_lib_prefix=no 7272 7273 case $GCC,$host_os in 7274 yes,cygwin* | yes,mingw* | yes,pw32*) 7275 library_names_spec='$libname.dll.a' 7276 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7277 postinstall_cmds='base_file=`basename \${file}`~ 7278 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7279 dldir=$destdir/`dirname \$dlpath`~ 7280 test -d \$dldir || mkdir -p \$dldir~ 7281 $install_prog $dir/$dlname \$dldir/$dlname~ 7282 chmod a+x \$dldir/$dlname' 7283 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7284 dlpath=$dir/\$dldll~ 7285 $rm \$dlpath' 7286 shlibpath_overrides_runpath=yes 7287 7288 case $host_os in 7289 cygwin*) 7290 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7291 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7292 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7293 ;; 7294 mingw*) 7295 # MinGW DLLs use traditional 'lib' prefix 7296 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7298 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7299 # It is most probably a Windows format PATH printed by 7300 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7301 # path with ; separators, and with drive letters. We can handle the 7302 # drive letters (cygwin fileutils understands them), so leave them, 7303 # especially as we might pass files found there to a mingw objdump, 7304 # which wouldn't understand a cygwinified path. Ahh. 7305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7306 else 7307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7308 fi 7309 ;; 7310 pw32*) 7311 # pw32 DLLs use 'pw' prefix rather than 'lib' 7312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7313 ;; 7314 esac 7315 ;; 7316 7317 linux*) 7318 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 7319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7320 supports_anon_versioning=no 7321 case `$LD -v 2>/dev/null` in 7322 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7325 *\ 2.11.*) ;; # other 2.11 versions 7326 *) supports_anon_versioning=yes ;; 7327 esac 7328 if test $supports_anon_versioning = yes; then 7329 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7330cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7331$echo "local: *; };" >> $output_objdir/$libname.ver~ 7332 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7333 else 7334 $archive_expsym_cmds="$archive_cmds" 7335 fi 7336 else 7337 ld_shlibs=no 7338 fi 7339 ;; 7340 7341 *) 7342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7343 ;; 7344 esac 7345 dynamic_linker='Win32 ld.exe' 7346 # FIXME: first we should search . and the directory the executable is in 7347 shlibpath_var=PATH 7348 ;; 7349 7350darwin* | rhapsody*) 7351 dynamic_linker="$host_os dyld" 7352 version_type=darwin 7353 need_lib_prefix=no 7354 need_version=no 7355 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7356 soname_spec='${libname}${release}${major}$shared_ext' 7357 shlibpath_overrides_runpath=yes 7358 shlibpath_var=DYLD_LIBRARY_PATH 7359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7360 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7361 if test "$GCC" = yes; then 7362 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"` 7363 else 7364 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7365 fi 7366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7367 ;; 7368 7369dgux*) 7370 version_type=linux 7371 need_lib_prefix=no 7372 need_version=no 7373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7374 soname_spec='${libname}${release}${shared_ext}$major' 7375 shlibpath_var=LD_LIBRARY_PATH 7376 ;; 7377 7378freebsd1*) 7379 dynamic_linker=no 7380 ;; 7381 7382kfreebsd*-gnu) 7383 version_type=linux 7384 need_lib_prefix=no 7385 need_version=no 7386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7387 soname_spec='${libname}${release}${shared_ext}$major' 7388 shlibpath_var=LD_LIBRARY_PATH 7389 shlibpath_overrides_runpath=no 7390 hardcode_into_libs=yes 7391 dynamic_linker='GNU ld.so' 7392 ;; 7393 7394freebsd* | dragonfly*) 7395 # DragonFly does not have aout. When/if they implement a new 7396 # versioning mechanism, adjust this. 7397 if test -x /usr/bin/objformat; then 7398 objformat=`/usr/bin/objformat` 7399 else 7400 case $host_os in 7401 freebsd[123]*) objformat=aout ;; 7402 *) objformat=elf ;; 7403 esac 7404 fi 7405 # Handle Gentoo/FreeBSD as it was Linux 7406 case $host_vendor in 7407 gentoo) 7408 version_type=linux ;; 7409 *) 7410 version_type=freebsd-$objformat ;; 7411 esac 7412 7413 case $version_type in 7414 freebsd-elf*) 7415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7416 need_version=no 7417 need_lib_prefix=no 7418 ;; 7419 freebsd-*) 7420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7421 need_version=yes 7422 ;; 7423 linux) 7424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7425 soname_spec='${libname}${release}${shared_ext}$major' 7426 need_lib_prefix=no 7427 need_version=no 7428 ;; 7429 esac 7430 shlibpath_var=LD_LIBRARY_PATH 7431 case $host_os in 7432 freebsd2*) 7433 shlibpath_overrides_runpath=yes 7434 ;; 7435 freebsd3.[01]* | freebsdelf3.[01]*) 7436 shlibpath_overrides_runpath=yes 7437 hardcode_into_libs=yes 7438 ;; 7439 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 7440 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 7441 shlibpath_overrides_runpath=no 7442 hardcode_into_libs=yes 7443 ;; 7444 freebsd*) # from 4.6 on 7445 shlibpath_overrides_runpath=yes 7446 hardcode_into_libs=yes 7447 ;; 7448 esac 7449 ;; 7450 7451gnu*) 7452 version_type=linux 7453 need_lib_prefix=no 7454 need_version=no 7455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7456 soname_spec='${libname}${release}${shared_ext}$major' 7457 shlibpath_var=LD_LIBRARY_PATH 7458 hardcode_into_libs=yes 7459 ;; 7460 7461hpux9* | hpux10* | hpux11*) 7462 # Give a soname corresponding to the major version so that dld.sl refuses to 7463 # link against other versions. 7464 version_type=sunos 7465 need_lib_prefix=no 7466 need_version=no 7467 case $host_cpu in 7468 ia64*) 7469 shrext_cmds='.so' 7470 hardcode_into_libs=yes 7471 dynamic_linker="$host_os dld.so" 7472 shlibpath_var=LD_LIBRARY_PATH 7473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7475 soname_spec='${libname}${release}${shared_ext}$major' 7476 if test "X$HPUX_IA64_MODE" = X32; then 7477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7478 else 7479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7480 fi 7481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7482 ;; 7483 hppa*64*) 7484 shrext_cmds='.sl' 7485 hardcode_into_libs=yes 7486 dynamic_linker="$host_os dld.sl" 7487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7490 soname_spec='${libname}${release}${shared_ext}$major' 7491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7493 ;; 7494 *) 7495 shrext_cmds='.sl' 7496 dynamic_linker="$host_os dld.sl" 7497 shlibpath_var=SHLIB_PATH 7498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7500 soname_spec='${libname}${release}${shared_ext}$major' 7501 ;; 7502 esac 7503 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7504 postinstall_cmds='chmod 555 $lib' 7505 ;; 7506 7507interix3*) 7508 version_type=linux 7509 need_lib_prefix=no 7510 need_version=no 7511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7512 soname_spec='${libname}${release}${shared_ext}$major' 7513 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 7514 shlibpath_var=LD_LIBRARY_PATH 7515 shlibpath_overrides_runpath=no 7516 hardcode_into_libs=yes 7517 ;; 7518 7519irix5* | irix6* | nonstopux*) 7520 case $host_os in 7521 nonstopux*) version_type=nonstopux ;; 7522 *) 7523 if test "$lt_cv_prog_gnu_ld" = yes; then 7524 version_type=linux 7525 else 7526 version_type=irix 7527 fi ;; 7528 esac 7529 need_lib_prefix=no 7530 need_version=no 7531 soname_spec='${libname}${release}${shared_ext}$major' 7532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7533 case $host_os in 7534 irix5* | nonstopux*) 7535 libsuff= shlibsuff= 7536 ;; 7537 *) 7538 case $LD in # libtool.m4 will add one of these switches to LD 7539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7540 libsuff= shlibsuff= libmagic=32-bit;; 7541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7542 libsuff=32 shlibsuff=N32 libmagic=N32;; 7543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7544 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7545 *) libsuff= shlibsuff= libmagic=never-match;; 7546 esac 7547 ;; 7548 esac 7549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7550 shlibpath_overrides_runpath=no 7551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7553 hardcode_into_libs=yes 7554 ;; 7555 7556# No shared lib support for Linux oldld, aout, or coff. 7557linux*oldld* | linux*aout* | linux*coff*) 7558 dynamic_linker=no 7559 ;; 7560 7561# This must be Linux ELF. 7562linux*) 7563 version_type=linux 7564 need_lib_prefix=no 7565 need_version=no 7566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7567 soname_spec='${libname}${release}${shared_ext}$major' 7568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7569 shlibpath_var=LD_LIBRARY_PATH 7570 shlibpath_overrides_runpath=no 7571 # This implies no fast_install, which is unacceptable. 7572 # Some rework will be needed to allow for fast_install 7573 # before this can be enabled. 7574 hardcode_into_libs=yes 7575 7576 # Append ld.so.conf contents to the search path 7577 if test -f /etc/ld.so.conf; then 7578 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' ' '` 7579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 7580 fi 7581 7582 # We used to test for /lib/ld.so.1 and disable shared libraries on 7583 # powerpc, because MkLinux only supported shared libraries with the 7584 # GNU dynamic linker. Since this was broken with cross compilers, 7585 # most powerpc-linux boxes support dynamic linking these days and 7586 # people can always --disable-shared, the test was removed, and we 7587 # assume the GNU/Linux dynamic linker is in use. 7588 dynamic_linker='GNU/Linux ld.so' 7589 ;; 7590 7591knetbsd*-gnu) 7592 version_type=linux 7593 need_lib_prefix=no 7594 need_version=no 7595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7596 soname_spec='${libname}${release}${shared_ext}$major' 7597 shlibpath_var=LD_LIBRARY_PATH 7598 shlibpath_overrides_runpath=no 7599 hardcode_into_libs=yes 7600 dynamic_linker='GNU ld.so' 7601 ;; 7602 7603netbsd*) 7604 version_type=sunos 7605 need_lib_prefix=no 7606 need_version=no 7607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7610 dynamic_linker='NetBSD (a.out) ld.so' 7611 else 7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7613 soname_spec='${libname}${release}${shared_ext}$major' 7614 dynamic_linker='NetBSD ld.elf_so' 7615 fi 7616 shlibpath_var=LD_LIBRARY_PATH 7617 shlibpath_overrides_runpath=yes 7618 hardcode_into_libs=yes 7619 ;; 7620 7621newsos6) 7622 version_type=linux 7623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7624 shlibpath_var=LD_LIBRARY_PATH 7625 shlibpath_overrides_runpath=yes 7626 ;; 7627 7628nto-qnx*) 7629 version_type=linux 7630 need_lib_prefix=no 7631 need_version=no 7632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7633 soname_spec='${libname}${release}${shared_ext}$major' 7634 shlibpath_var=LD_LIBRARY_PATH 7635 shlibpath_overrides_runpath=yes 7636 ;; 7637 7638openbsd*) 7639 version_type=sunos 7640 sys_lib_dlsearch_path_spec="/usr/lib" 7641 need_lib_prefix=no 7642 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 7643 case $host_os in 7644 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 7645 *) need_version=no ;; 7646 esac 7647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7649 shlibpath_var=LD_LIBRARY_PATH 7650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7651 case $host_os in 7652 openbsd2.[89] | openbsd2.[89].*) 7653 shlibpath_overrides_runpath=no 7654 ;; 7655 *) 7656 shlibpath_overrides_runpath=yes 7657 ;; 7658 esac 7659 else 7660 shlibpath_overrides_runpath=yes 7661 fi 7662 ;; 7663 7664os2*) 7665 libname_spec='$name' 7666 shrext_cmds=".dll" 7667 need_lib_prefix=no 7668 library_names_spec='$libname${shared_ext} $libname.a' 7669 dynamic_linker='OS/2 ld.exe' 7670 shlibpath_var=LIBPATH 7671 ;; 7672 7673osf3* | osf4* | osf5*) 7674 version_type=osf 7675 need_lib_prefix=no 7676 need_version=no 7677 soname_spec='${libname}${release}${shared_ext}$major' 7678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7679 shlibpath_var=LD_LIBRARY_PATH 7680 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7681 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7682 ;; 7683 7684solaris*) 7685 version_type=linux 7686 need_lib_prefix=no 7687 need_version=no 7688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7689 soname_spec='${libname}${release}${shared_ext}$major' 7690 shlibpath_var=LD_LIBRARY_PATH 7691 shlibpath_overrides_runpath=yes 7692 hardcode_into_libs=yes 7693 # ldd complains unless libraries are executable 7694 postinstall_cmds='chmod +x $lib' 7695 ;; 7696 7697sunos4*) 7698 version_type=sunos 7699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7700 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7701 shlibpath_var=LD_LIBRARY_PATH 7702 shlibpath_overrides_runpath=yes 7703 if test "$with_gnu_ld" = yes; then 7704 need_lib_prefix=no 7705 fi 7706 need_version=yes 7707 ;; 7708 7709sysv4 | sysv4.3*) 7710 version_type=linux 7711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7712 soname_spec='${libname}${release}${shared_ext}$major' 7713 shlibpath_var=LD_LIBRARY_PATH 7714 case $host_vendor in 7715 sni) 7716 shlibpath_overrides_runpath=no 7717 need_lib_prefix=no 7718 export_dynamic_flag_spec='${wl}-Blargedynsym' 7719 runpath_var=LD_RUN_PATH 7720 ;; 7721 siemens) 7722 need_lib_prefix=no 7723 ;; 7724 motorola) 7725 need_lib_prefix=no 7726 need_version=no 7727 shlibpath_overrides_runpath=no 7728 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7729 ;; 7730 esac 7731 ;; 7732 7733sysv4*MP*) 7734 if test -d /usr/nec ;then 7735 version_type=linux 7736 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 7737 soname_spec='$libname${shared_ext}.$major' 7738 shlibpath_var=LD_LIBRARY_PATH 7739 fi 7740 ;; 7741 7742sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7743 version_type=freebsd-elf 7744 need_lib_prefix=no 7745 need_version=no 7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7747 soname_spec='${libname}${release}${shared_ext}$major' 7748 shlibpath_var=LD_LIBRARY_PATH 7749 hardcode_into_libs=yes 7750 if test "$with_gnu_ld" = yes; then 7751 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 7752 shlibpath_overrides_runpath=no 7753 else 7754 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 7755 shlibpath_overrides_runpath=yes 7756 case $host_os in 7757 sco3.2v5*) 7758 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 7759 ;; 7760 esac 7761 fi 7762 sys_lib_dlsearch_path_spec='/usr/lib' 7763 ;; 7764 7765uts4*) 7766 version_type=linux 7767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7768 soname_spec='${libname}${release}${shared_ext}$major' 7769 shlibpath_var=LD_LIBRARY_PATH 7770 ;; 7771 7772*) 7773 dynamic_linker=no 7774 ;; 7775esac 7776echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7777echo "${ECHO_T}$dynamic_linker" >&6 7778test "$dynamic_linker" = no && can_build_shared=no 7779 7780variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7781if test "$GCC" = yes; then 7782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7783fi 7784 7785echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7786echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7787hardcode_action= 7788if test -n "$hardcode_libdir_flag_spec" || \ 7789 test -n "$runpath_var" || \ 7790 test "X$hardcode_automatic" = "Xyes" ; then 7791 7792 # We can hardcode non-existant directories. 7793 if test "$hardcode_direct" != no && 7794 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7795 # have to relink, otherwise we might link with an installed library 7796 # when we should be linking with a yet-to-be-installed one 7797 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 7798 test "$hardcode_minus_L" != no; then 7799 # Linking always hardcodes the temporary library directory. 7800 hardcode_action=relink 7801 else 7802 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7803 hardcode_action=immediate 7804 fi 7805else 7806 # We cannot hardcode anything, or else we can only hardcode existing 7807 # directories. 7808 hardcode_action=unsupported 7809fi 7810echo "$as_me:$LINENO: result: $hardcode_action" >&5 7811echo "${ECHO_T}$hardcode_action" >&6 7812 7813if test "$hardcode_action" = relink; then 7814 # Fast installation is not supported 7815 enable_fast_install=no 7816elif test "$shlibpath_overrides_runpath" = yes || 7817 test "$enable_shared" = no; then 7818 # Fast installation is not necessary 7819 enable_fast_install=needless 7820fi 7821 7822striplib= 7823old_striplib= 7824echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7825echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7826if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7827 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7828 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7829 echo "$as_me:$LINENO: result: yes" >&5 7830echo "${ECHO_T}yes" >&6 7831else 7832# FIXME - insert some real tests, host_os isn't really good enough 7833 case $host_os in 7834 darwin*) 7835 if test -n "$STRIP" ; then 7836 striplib="$STRIP -x" 7837 echo "$as_me:$LINENO: result: yes" >&5 7838echo "${ECHO_T}yes" >&6 7839 else 7840 echo "$as_me:$LINENO: result: no" >&5 7841echo "${ECHO_T}no" >&6 7842fi 7843 ;; 7844 *) 7845 echo "$as_me:$LINENO: result: no" >&5 7846echo "${ECHO_T}no" >&6 7847 ;; 7848 esac 7849fi 7850 7851if test "x$enable_dlopen" != xyes; then 7852 enable_dlopen=unknown 7853 enable_dlopen_self=unknown 7854 enable_dlopen_self_static=unknown 7855else 7856 lt_cv_dlopen=no 7857 lt_cv_dlopen_libs= 7858 7859 case $host_os in 7860 beos*) 7861 lt_cv_dlopen="load_add_on" 7862 lt_cv_dlopen_libs= 7863 lt_cv_dlopen_self=yes 7864 ;; 7865 7866 mingw* | pw32*) 7867 lt_cv_dlopen="LoadLibrary" 7868 lt_cv_dlopen_libs= 7869 ;; 7870 7871 cygwin*) 7872 lt_cv_dlopen="dlopen" 7873 lt_cv_dlopen_libs= 7874 ;; 7875 7876 darwin*) 7877 # if libdl is installed we need to link against it 7878 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7879echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7880if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7881 echo $ECHO_N "(cached) $ECHO_C" >&6 7882else 7883 ac_check_lib_save_LIBS=$LIBS 7884LIBS="-ldl $LIBS" 7885cat >conftest.$ac_ext <<_ACEOF 7886/* confdefs.h. */ 7887_ACEOF 7888cat confdefs.h >>conftest.$ac_ext 7889cat >>conftest.$ac_ext <<_ACEOF 7890/* end confdefs.h. */ 7891 7892/* Override any gcc2 internal prototype to avoid an error. */ 7893#ifdef __cplusplus 7894extern "C" 7895#endif 7896/* We use char because int might match the return type of a gcc2 7897 builtin and then its argument prototype would still apply. */ 7898char dlopen (); 7899int 7900main () 7901{ 7902dlopen (); 7903 ; 7904 return 0; 7905} 7906_ACEOF 7907rm -f conftest.$ac_objext conftest$ac_exeext 7908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7909 (eval $ac_link) 2>conftest.er1 7910 ac_status=$? 7911 grep -v '^ *+' conftest.er1 >conftest.err 7912 rm -f conftest.er1 7913 cat conftest.err >&5 7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7915 (exit $ac_status); } && 7916 { ac_try='test -z "$ac_c_werror_flag" 7917 || test ! -s conftest.err' 7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7919 (eval $ac_try) 2>&5 7920 ac_status=$? 7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7922 (exit $ac_status); }; } && 7923 { ac_try='test -s conftest$ac_exeext' 7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7925 (eval $ac_try) 2>&5 7926 ac_status=$? 7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7928 (exit $ac_status); }; }; then 7929 ac_cv_lib_dl_dlopen=yes 7930else 7931 echo "$as_me: failed program was:" >&5 7932sed 's/^/| /' conftest.$ac_ext >&5 7933 7934ac_cv_lib_dl_dlopen=no 7935fi 7936rm -f conftest.err conftest.$ac_objext \ 7937 conftest$ac_exeext conftest.$ac_ext 7938LIBS=$ac_check_lib_save_LIBS 7939fi 7940echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7941echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7942if test $ac_cv_lib_dl_dlopen = yes; then 7943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7944else 7945 7946 lt_cv_dlopen="dyld" 7947 lt_cv_dlopen_libs= 7948 lt_cv_dlopen_self=yes 7949 7950fi 7951 7952 ;; 7953 7954 *) 7955 echo "$as_me:$LINENO: checking for shl_load" >&5 7956echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7957if test "${ac_cv_func_shl_load+set}" = set; then 7958 echo $ECHO_N "(cached) $ECHO_C" >&6 7959else 7960 cat >conftest.$ac_ext <<_ACEOF 7961/* confdefs.h. */ 7962_ACEOF 7963cat confdefs.h >>conftest.$ac_ext 7964cat >>conftest.$ac_ext <<_ACEOF 7965/* end confdefs.h. */ 7966/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 7967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7968#define shl_load innocuous_shl_load 7969 7970/* System header to define __stub macros and hopefully few prototypes, 7971 which can conflict with char shl_load (); below. 7972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7973 <limits.h> exists even on freestanding compilers. */ 7974 7975#ifdef __STDC__ 7976# include <limits.h> 7977#else 7978# include <assert.h> 7979#endif 7980 7981#undef shl_load 7982 7983/* Override any gcc2 internal prototype to avoid an error. */ 7984#ifdef __cplusplus 7985extern "C" 7986{ 7987#endif 7988/* We use char because int might match the return type of a gcc2 7989 builtin and then its argument prototype would still apply. */ 7990char shl_load (); 7991/* The GNU C library defines this for functions which it implements 7992 to always fail with ENOSYS. Some functions are actually named 7993 something starting with __ and the normal name is an alias. */ 7994#if defined (__stub_shl_load) || defined (__stub___shl_load) 7995choke me 7996#else 7997char (*f) () = shl_load; 7998#endif 7999#ifdef __cplusplus 8000} 8001#endif 8002 8003int 8004main () 8005{ 8006return f != shl_load; 8007 ; 8008 return 0; 8009} 8010_ACEOF 8011rm -f conftest.$ac_objext conftest$ac_exeext 8012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8013 (eval $ac_link) 2>conftest.er1 8014 ac_status=$? 8015 grep -v '^ *+' conftest.er1 >conftest.err 8016 rm -f conftest.er1 8017 cat conftest.err >&5 8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8019 (exit $ac_status); } && 8020 { ac_try='test -z "$ac_c_werror_flag" 8021 || test ! -s conftest.err' 8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8023 (eval $ac_try) 2>&5 8024 ac_status=$? 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8026 (exit $ac_status); }; } && 8027 { ac_try='test -s conftest$ac_exeext' 8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8029 (eval $ac_try) 2>&5 8030 ac_status=$? 8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8032 (exit $ac_status); }; }; then 8033 ac_cv_func_shl_load=yes 8034else 8035 echo "$as_me: failed program was:" >&5 8036sed 's/^/| /' conftest.$ac_ext >&5 8037 8038ac_cv_func_shl_load=no 8039fi 8040rm -f conftest.err conftest.$ac_objext \ 8041 conftest$ac_exeext conftest.$ac_ext 8042fi 8043echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8044echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8045if test $ac_cv_func_shl_load = yes; then 8046 lt_cv_dlopen="shl_load" 8047else 8048 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8049echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8050if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8051 echo $ECHO_N "(cached) $ECHO_C" >&6 8052else 8053 ac_check_lib_save_LIBS=$LIBS 8054LIBS="-ldld $LIBS" 8055cat >conftest.$ac_ext <<_ACEOF 8056/* confdefs.h. */ 8057_ACEOF 8058cat confdefs.h >>conftest.$ac_ext 8059cat >>conftest.$ac_ext <<_ACEOF 8060/* end confdefs.h. */ 8061 8062/* Override any gcc2 internal prototype to avoid an error. */ 8063#ifdef __cplusplus 8064extern "C" 8065#endif 8066/* We use char because int might match the return type of a gcc2 8067 builtin and then its argument prototype would still apply. */ 8068char shl_load (); 8069int 8070main () 8071{ 8072shl_load (); 8073 ; 8074 return 0; 8075} 8076_ACEOF 8077rm -f conftest.$ac_objext conftest$ac_exeext 8078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8079 (eval $ac_link) 2>conftest.er1 8080 ac_status=$? 8081 grep -v '^ *+' conftest.er1 >conftest.err 8082 rm -f conftest.er1 8083 cat conftest.err >&5 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8085 (exit $ac_status); } && 8086 { ac_try='test -z "$ac_c_werror_flag" 8087 || test ! -s conftest.err' 8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8089 (eval $ac_try) 2>&5 8090 ac_status=$? 8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8092 (exit $ac_status); }; } && 8093 { ac_try='test -s conftest$ac_exeext' 8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8095 (eval $ac_try) 2>&5 8096 ac_status=$? 8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8098 (exit $ac_status); }; }; then 8099 ac_cv_lib_dld_shl_load=yes 8100else 8101 echo "$as_me: failed program was:" >&5 8102sed 's/^/| /' conftest.$ac_ext >&5 8103 8104ac_cv_lib_dld_shl_load=no 8105fi 8106rm -f conftest.err conftest.$ac_objext \ 8107 conftest$ac_exeext conftest.$ac_ext 8108LIBS=$ac_check_lib_save_LIBS 8109fi 8110echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8111echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8112if test $ac_cv_lib_dld_shl_load = yes; then 8113 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8114else 8115 echo "$as_me:$LINENO: checking for dlopen" >&5 8116echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8117if test "${ac_cv_func_dlopen+set}" = set; then 8118 echo $ECHO_N "(cached) $ECHO_C" >&6 8119else 8120 cat >conftest.$ac_ext <<_ACEOF 8121/* confdefs.h. */ 8122_ACEOF 8123cat confdefs.h >>conftest.$ac_ext 8124cat >>conftest.$ac_ext <<_ACEOF 8125/* end confdefs.h. */ 8126/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8127 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8128#define dlopen innocuous_dlopen 8129 8130/* System header to define __stub macros and hopefully few prototypes, 8131 which can conflict with char dlopen (); below. 8132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8133 <limits.h> exists even on freestanding compilers. */ 8134 8135#ifdef __STDC__ 8136# include <limits.h> 8137#else 8138# include <assert.h> 8139#endif 8140 8141#undef dlopen 8142 8143/* Override any gcc2 internal prototype to avoid an error. */ 8144#ifdef __cplusplus 8145extern "C" 8146{ 8147#endif 8148/* We use char because int might match the return type of a gcc2 8149 builtin and then its argument prototype would still apply. */ 8150char dlopen (); 8151/* The GNU C library defines this for functions which it implements 8152 to always fail with ENOSYS. Some functions are actually named 8153 something starting with __ and the normal name is an alias. */ 8154#if defined (__stub_dlopen) || defined (__stub___dlopen) 8155choke me 8156#else 8157char (*f) () = dlopen; 8158#endif 8159#ifdef __cplusplus 8160} 8161#endif 8162 8163int 8164main () 8165{ 8166return f != dlopen; 8167 ; 8168 return 0; 8169} 8170_ACEOF 8171rm -f conftest.$ac_objext conftest$ac_exeext 8172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8173 (eval $ac_link) 2>conftest.er1 8174 ac_status=$? 8175 grep -v '^ *+' conftest.er1 >conftest.err 8176 rm -f conftest.er1 8177 cat conftest.err >&5 8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8179 (exit $ac_status); } && 8180 { ac_try='test -z "$ac_c_werror_flag" 8181 || test ! -s conftest.err' 8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8183 (eval $ac_try) 2>&5 8184 ac_status=$? 8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8186 (exit $ac_status); }; } && 8187 { ac_try='test -s conftest$ac_exeext' 8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8189 (eval $ac_try) 2>&5 8190 ac_status=$? 8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8192 (exit $ac_status); }; }; then 8193 ac_cv_func_dlopen=yes 8194else 8195 echo "$as_me: failed program was:" >&5 8196sed 's/^/| /' conftest.$ac_ext >&5 8197 8198ac_cv_func_dlopen=no 8199fi 8200rm -f conftest.err conftest.$ac_objext \ 8201 conftest$ac_exeext conftest.$ac_ext 8202fi 8203echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8204echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8205if test $ac_cv_func_dlopen = yes; then 8206 lt_cv_dlopen="dlopen" 8207else 8208 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8209echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8210if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8211 echo $ECHO_N "(cached) $ECHO_C" >&6 8212else 8213 ac_check_lib_save_LIBS=$LIBS 8214LIBS="-ldl $LIBS" 8215cat >conftest.$ac_ext <<_ACEOF 8216/* confdefs.h. */ 8217_ACEOF 8218cat confdefs.h >>conftest.$ac_ext 8219cat >>conftest.$ac_ext <<_ACEOF 8220/* end confdefs.h. */ 8221 8222/* Override any gcc2 internal prototype to avoid an error. */ 8223#ifdef __cplusplus 8224extern "C" 8225#endif 8226/* We use char because int might match the return type of a gcc2 8227 builtin and then its argument prototype would still apply. */ 8228char dlopen (); 8229int 8230main () 8231{ 8232dlopen (); 8233 ; 8234 return 0; 8235} 8236_ACEOF 8237rm -f conftest.$ac_objext conftest$ac_exeext 8238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8239 (eval $ac_link) 2>conftest.er1 8240 ac_status=$? 8241 grep -v '^ *+' conftest.er1 >conftest.err 8242 rm -f conftest.er1 8243 cat conftest.err >&5 8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8245 (exit $ac_status); } && 8246 { ac_try='test -z "$ac_c_werror_flag" 8247 || test ! -s conftest.err' 8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8249 (eval $ac_try) 2>&5 8250 ac_status=$? 8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8252 (exit $ac_status); }; } && 8253 { ac_try='test -s conftest$ac_exeext' 8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8255 (eval $ac_try) 2>&5 8256 ac_status=$? 8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8258 (exit $ac_status); }; }; then 8259 ac_cv_lib_dl_dlopen=yes 8260else 8261 echo "$as_me: failed program was:" >&5 8262sed 's/^/| /' conftest.$ac_ext >&5 8263 8264ac_cv_lib_dl_dlopen=no 8265fi 8266rm -f conftest.err conftest.$ac_objext \ 8267 conftest$ac_exeext conftest.$ac_ext 8268LIBS=$ac_check_lib_save_LIBS 8269fi 8270echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8271echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8272if test $ac_cv_lib_dl_dlopen = yes; then 8273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8274else 8275 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8276echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8277if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8278 echo $ECHO_N "(cached) $ECHO_C" >&6 8279else 8280 ac_check_lib_save_LIBS=$LIBS 8281LIBS="-lsvld $LIBS" 8282cat >conftest.$ac_ext <<_ACEOF 8283/* confdefs.h. */ 8284_ACEOF 8285cat confdefs.h >>conftest.$ac_ext 8286cat >>conftest.$ac_ext <<_ACEOF 8287/* end confdefs.h. */ 8288 8289/* Override any gcc2 internal prototype to avoid an error. */ 8290#ifdef __cplusplus 8291extern "C" 8292#endif 8293/* We use char because int might match the return type of a gcc2 8294 builtin and then its argument prototype would still apply. */ 8295char dlopen (); 8296int 8297main () 8298{ 8299dlopen (); 8300 ; 8301 return 0; 8302} 8303_ACEOF 8304rm -f conftest.$ac_objext conftest$ac_exeext 8305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8306 (eval $ac_link) 2>conftest.er1 8307 ac_status=$? 8308 grep -v '^ *+' conftest.er1 >conftest.err 8309 rm -f conftest.er1 8310 cat conftest.err >&5 8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8312 (exit $ac_status); } && 8313 { ac_try='test -z "$ac_c_werror_flag" 8314 || test ! -s conftest.err' 8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8316 (eval $ac_try) 2>&5 8317 ac_status=$? 8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8319 (exit $ac_status); }; } && 8320 { ac_try='test -s conftest$ac_exeext' 8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8322 (eval $ac_try) 2>&5 8323 ac_status=$? 8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8325 (exit $ac_status); }; }; then 8326 ac_cv_lib_svld_dlopen=yes 8327else 8328 echo "$as_me: failed program was:" >&5 8329sed 's/^/| /' conftest.$ac_ext >&5 8330 8331ac_cv_lib_svld_dlopen=no 8332fi 8333rm -f conftest.err conftest.$ac_objext \ 8334 conftest$ac_exeext conftest.$ac_ext 8335LIBS=$ac_check_lib_save_LIBS 8336fi 8337echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8338echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8339if test $ac_cv_lib_svld_dlopen = yes; then 8340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8341else 8342 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8343echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8344if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8345 echo $ECHO_N "(cached) $ECHO_C" >&6 8346else 8347 ac_check_lib_save_LIBS=$LIBS 8348LIBS="-ldld $LIBS" 8349cat >conftest.$ac_ext <<_ACEOF 8350/* confdefs.h. */ 8351_ACEOF 8352cat confdefs.h >>conftest.$ac_ext 8353cat >>conftest.$ac_ext <<_ACEOF 8354/* end confdefs.h. */ 8355 8356/* Override any gcc2 internal prototype to avoid an error. */ 8357#ifdef __cplusplus 8358extern "C" 8359#endif 8360/* We use char because int might match the return type of a gcc2 8361 builtin and then its argument prototype would still apply. */ 8362char dld_link (); 8363int 8364main () 8365{ 8366dld_link (); 8367 ; 8368 return 0; 8369} 8370_ACEOF 8371rm -f conftest.$ac_objext conftest$ac_exeext 8372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8373 (eval $ac_link) 2>conftest.er1 8374 ac_status=$? 8375 grep -v '^ *+' conftest.er1 >conftest.err 8376 rm -f conftest.er1 8377 cat conftest.err >&5 8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8379 (exit $ac_status); } && 8380 { ac_try='test -z "$ac_c_werror_flag" 8381 || test ! -s conftest.err' 8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8383 (eval $ac_try) 2>&5 8384 ac_status=$? 8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8386 (exit $ac_status); }; } && 8387 { ac_try='test -s conftest$ac_exeext' 8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8389 (eval $ac_try) 2>&5 8390 ac_status=$? 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8392 (exit $ac_status); }; }; then 8393 ac_cv_lib_dld_dld_link=yes 8394else 8395 echo "$as_me: failed program was:" >&5 8396sed 's/^/| /' conftest.$ac_ext >&5 8397 8398ac_cv_lib_dld_dld_link=no 8399fi 8400rm -f conftest.err conftest.$ac_objext \ 8401 conftest$ac_exeext conftest.$ac_ext 8402LIBS=$ac_check_lib_save_LIBS 8403fi 8404echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8405echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8406if test $ac_cv_lib_dld_dld_link = yes; then 8407 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8408fi 8409 8410 8411fi 8412 8413 8414fi 8415 8416 8417fi 8418 8419 8420fi 8421 8422 8423fi 8424 8425 ;; 8426 esac 8427 8428 if test "x$lt_cv_dlopen" != xno; then 8429 enable_dlopen=yes 8430 else 8431 enable_dlopen=no 8432 fi 8433 8434 case $lt_cv_dlopen in 8435 dlopen) 8436 save_CPPFLAGS="$CPPFLAGS" 8437 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8438 8439 save_LDFLAGS="$LDFLAGS" 8440 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8441 8442 save_LIBS="$LIBS" 8443 LIBS="$lt_cv_dlopen_libs $LIBS" 8444 8445 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8446echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8447if test "${lt_cv_dlopen_self+set}" = set; then 8448 echo $ECHO_N "(cached) $ECHO_C" >&6 8449else 8450 if test "$cross_compiling" = yes; then : 8451 lt_cv_dlopen_self=cross 8452else 8453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8454 lt_status=$lt_dlunknown 8455 cat > conftest.$ac_ext <<EOF 8456#line 8456 "configure" 8457#include "confdefs.h" 8458 8459#if HAVE_DLFCN_H 8460#include <dlfcn.h> 8461#endif 8462 8463#include <stdio.h> 8464 8465#ifdef RTLD_GLOBAL 8466# define LT_DLGLOBAL RTLD_GLOBAL 8467#else 8468# ifdef DL_GLOBAL 8469# define LT_DLGLOBAL DL_GLOBAL 8470# else 8471# define LT_DLGLOBAL 0 8472# endif 8473#endif 8474 8475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8476 find out it does not work in some platform. */ 8477#ifndef LT_DLLAZY_OR_NOW 8478# ifdef RTLD_LAZY 8479# define LT_DLLAZY_OR_NOW RTLD_LAZY 8480# else 8481# ifdef DL_LAZY 8482# define LT_DLLAZY_OR_NOW DL_LAZY 8483# else 8484# ifdef RTLD_NOW 8485# define LT_DLLAZY_OR_NOW RTLD_NOW 8486# else 8487# ifdef DL_NOW 8488# define LT_DLLAZY_OR_NOW DL_NOW 8489# else 8490# define LT_DLLAZY_OR_NOW 0 8491# endif 8492# endif 8493# endif 8494# endif 8495#endif 8496 8497#ifdef __cplusplus 8498extern "C" void exit (int); 8499#endif 8500 8501void fnord() { int i=42;} 8502int main () 8503{ 8504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8505 int status = $lt_dlunknown; 8506 8507 if (self) 8508 { 8509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8511 /* dlclose (self); */ 8512 } 8513 else 8514 puts (dlerror ()); 8515 8516 exit (status); 8517} 8518EOF 8519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8520 (eval $ac_link) 2>&5 8521 ac_status=$? 8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8523 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8524 (./conftest; exit; ) >&5 2>/dev/null 8525 lt_status=$? 8526 case x$lt_status in 8527 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8528 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8529 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 8530 esac 8531 else : 8532 # compilation failed 8533 lt_cv_dlopen_self=no 8534 fi 8535fi 8536rm -fr conftest* 8537 8538 8539fi 8540echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8541echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8542 8543 if test "x$lt_cv_dlopen_self" = xyes; then 8544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 8545 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8546echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8547if test "${lt_cv_dlopen_self_static+set}" = set; then 8548 echo $ECHO_N "(cached) $ECHO_C" >&6 8549else 8550 if test "$cross_compiling" = yes; then : 8551 lt_cv_dlopen_self_static=cross 8552else 8553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8554 lt_status=$lt_dlunknown 8555 cat > conftest.$ac_ext <<EOF 8556#line 8556 "configure" 8557#include "confdefs.h" 8558 8559#if HAVE_DLFCN_H 8560#include <dlfcn.h> 8561#endif 8562 8563#include <stdio.h> 8564 8565#ifdef RTLD_GLOBAL 8566# define LT_DLGLOBAL RTLD_GLOBAL 8567#else 8568# ifdef DL_GLOBAL 8569# define LT_DLGLOBAL DL_GLOBAL 8570# else 8571# define LT_DLGLOBAL 0 8572# endif 8573#endif 8574 8575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8576 find out it does not work in some platform. */ 8577#ifndef LT_DLLAZY_OR_NOW 8578# ifdef RTLD_LAZY 8579# define LT_DLLAZY_OR_NOW RTLD_LAZY 8580# else 8581# ifdef DL_LAZY 8582# define LT_DLLAZY_OR_NOW DL_LAZY 8583# else 8584# ifdef RTLD_NOW 8585# define LT_DLLAZY_OR_NOW RTLD_NOW 8586# else 8587# ifdef DL_NOW 8588# define LT_DLLAZY_OR_NOW DL_NOW 8589# else 8590# define LT_DLLAZY_OR_NOW 0 8591# endif 8592# endif 8593# endif 8594# endif 8595#endif 8596 8597#ifdef __cplusplus 8598extern "C" void exit (int); 8599#endif 8600 8601void fnord() { int i=42;} 8602int main () 8603{ 8604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8605 int status = $lt_dlunknown; 8606 8607 if (self) 8608 { 8609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8610 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8611 /* dlclose (self); */ 8612 } 8613 else 8614 puts (dlerror ()); 8615 8616 exit (status); 8617} 8618EOF 8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8620 (eval $ac_link) 2>&5 8621 ac_status=$? 8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8624 (./conftest; exit; ) >&5 2>/dev/null 8625 lt_status=$? 8626 case x$lt_status in 8627 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8628 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8629 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 8630 esac 8631 else : 8632 # compilation failed 8633 lt_cv_dlopen_self_static=no 8634 fi 8635fi 8636rm -fr conftest* 8637 8638 8639fi 8640echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8641echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8642 fi 8643 8644 CPPFLAGS="$save_CPPFLAGS" 8645 LDFLAGS="$save_LDFLAGS" 8646 LIBS="$save_LIBS" 8647 ;; 8648 esac 8649 8650 case $lt_cv_dlopen_self in 8651 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8652 *) enable_dlopen_self=unknown ;; 8653 esac 8654 8655 case $lt_cv_dlopen_self_static in 8656 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8657 *) enable_dlopen_self_static=unknown ;; 8658 esac 8659fi 8660 8661 8662# Report which library types will actually be built 8663echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8664echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8665echo "$as_me:$LINENO: result: $can_build_shared" >&5 8666echo "${ECHO_T}$can_build_shared" >&6 8667 8668echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8669echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8670test "$can_build_shared" = "no" && enable_shared=no 8671 8672# On AIX, shared libraries and static libraries use the same namespace, and 8673# are all built from PIC. 8674case $host_os in 8675aix3*) 8676 test "$enable_shared" = yes && enable_static=no 8677 if test -n "$RANLIB"; then 8678 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8679 postinstall_cmds='$RANLIB $lib' 8680 fi 8681 ;; 8682 8683aix4* | aix5*) 8684 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8685 test "$enable_shared" = yes && enable_static=no 8686 fi 8687 ;; 8688esac 8689echo "$as_me:$LINENO: result: $enable_shared" >&5 8690echo "${ECHO_T}$enable_shared" >&6 8691 8692echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8693echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8694# Make sure either enable_shared or enable_static is yes. 8695test "$enable_shared" = yes || enable_static=yes 8696echo "$as_me:$LINENO: result: $enable_static" >&5 8697echo "${ECHO_T}$enable_static" >&6 8698 8699# The else clause should only fire when bootstrapping the 8700# libtool distribution, otherwise you forgot to ship ltmain.sh 8701# with your package, and you will get complaints that there are 8702# no rules to generate ltmain.sh. 8703if test -f "$ltmain"; then 8704 # See if we are running on zsh, and set the options which allow our commands through 8705 # without removal of \ escapes. 8706 if test -n "${ZSH_VERSION+set}" ; then 8707 setopt NO_GLOB_SUBST 8708 fi 8709 # Now quote all the things that may contain metacharacters while being 8710 # careful not to overquote the AC_SUBSTed values. We take copies of the 8711 # variables and quote the copies for generation of the libtool script. 8712 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 8713 SED SHELL STRIP \ 8714 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8715 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8716 deplibs_check_method reload_flag reload_cmds need_locks \ 8717 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8718 lt_cv_sys_global_symbol_to_c_name_address \ 8719 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8720 old_postinstall_cmds old_postuninstall_cmds \ 8721 compiler \ 8722 CC \ 8723 LD \ 8724 lt_prog_compiler_wl \ 8725 lt_prog_compiler_pic \ 8726 lt_prog_compiler_static \ 8727 lt_prog_compiler_no_builtin_flag \ 8728 export_dynamic_flag_spec \ 8729 thread_safe_flag_spec \ 8730 whole_archive_flag_spec \ 8731 enable_shared_with_static_runtimes \ 8732 old_archive_cmds \ 8733 old_archive_from_new_cmds \ 8734 predep_objects \ 8735 postdep_objects \ 8736 predeps \ 8737 postdeps \ 8738 compiler_lib_search_path \ 8739 archive_cmds \ 8740 archive_expsym_cmds \ 8741 postinstall_cmds \ 8742 postuninstall_cmds \ 8743 old_archive_from_expsyms_cmds \ 8744 allow_undefined_flag \ 8745 no_undefined_flag \ 8746 export_symbols_cmds \ 8747 hardcode_libdir_flag_spec \ 8748 hardcode_libdir_flag_spec_ld \ 8749 hardcode_libdir_separator \ 8750 hardcode_automatic \ 8751 module_cmds \ 8752 module_expsym_cmds \ 8753 lt_cv_prog_compiler_c_o \ 8754 exclude_expsyms \ 8755 include_expsyms; do 8756 8757 case $var in 8758 old_archive_cmds | \ 8759 old_archive_from_new_cmds | \ 8760 archive_cmds | \ 8761 archive_expsym_cmds | \ 8762 module_cmds | \ 8763 module_expsym_cmds | \ 8764 old_archive_from_expsyms_cmds | \ 8765 export_symbols_cmds | \ 8766 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8767 postinstall_cmds | postuninstall_cmds | \ 8768 old_postinstall_cmds | old_postuninstall_cmds | \ 8769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8770 # Double-quote double-evaled strings. 8771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8772 ;; 8773 *) 8774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8775 ;; 8776 esac 8777 done 8778 8779 case $lt_echo in 8780 *'\$0 --fallback-echo"') 8781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8782 ;; 8783 esac 8784 8785cfgfile="${ofile}T" 8786 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8787 $rm -f "$cfgfile" 8788 { echo "$as_me:$LINENO: creating $ofile" >&5 8789echo "$as_me: creating $ofile" >&6;} 8790 8791 cat <<__EOF__ >> "$cfgfile" 8792#! $SHELL 8793 8794# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8795# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8796# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8797# 8798# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8799# Free Software Foundation, Inc. 8800# 8801# This file is part of GNU Libtool: 8802# Originally by Gordon Matzigkeit <[email protected]>, 1996 8803# 8804# This program is free software; you can redistribute it and/or modify 8805# it under the terms of the GNU General Public License as published by 8806# the Free Software Foundation; either version 2 of the License, or 8807# (at your option) any later version. 8808# 8809# This program is distributed in the hope that it will be useful, but 8810# WITHOUT ANY WARRANTY; without even the implied warranty of 8811# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8812# General Public License for more details. 8813# 8814# You should have received a copy of the GNU General Public License 8815# along with this program; if not, write to the Free Software 8816# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 8817# 8818# As a special exception to the GNU General Public License, if you 8819# distribute this file as part of a program that contains a 8820# configuration script generated by Autoconf, you may include it under 8821# the same distribution terms that you use for the rest of that program. 8822 8823# A sed program that does not truncate output. 8824SED=$lt_SED 8825 8826# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8827Xsed="$SED -e 1s/^X//" 8828 8829# The HP-UX ksh and POSIX shell print the target directory to stdout 8830# if CDPATH is set. 8831(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8832 8833# The names of the tagged configurations supported by this script. 8834available_tags= 8835 8836# ### BEGIN LIBTOOL CONFIG 8837 8838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8839 8840# Shell to use when invoking shell scripts. 8841SHELL=$lt_SHELL 8842 8843# Whether or not to build shared libraries. 8844build_libtool_libs=$enable_shared 8845 8846# Whether or not to build static libraries. 8847build_old_libs=$enable_static 8848 8849# Whether or not to add -lc for building shared libraries. 8850build_libtool_need_lc=$archive_cmds_need_lc 8851 8852# Whether or not to disallow shared libs when runtime libs are static 8853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8854 8855# Whether or not to optimize for fast installation. 8856fast_install=$enable_fast_install 8857 8858# The host system. 8859host_alias=$host_alias 8860host=$host 8861host_os=$host_os 8862 8863# The build system. 8864build_alias=$build_alias 8865build=$build 8866build_os=$build_os 8867 8868# An echo program that does not interpret backslashes. 8869echo=$lt_echo 8870 8871# The archiver. 8872AR=$lt_AR 8873AR_FLAGS=$lt_AR_FLAGS 8874 8875# A C compiler. 8876LTCC=$lt_LTCC 8877 8878# LTCC compiler flags. 8879LTCFLAGS=$lt_LTCFLAGS 8880 8881# A language-specific compiler. 8882CC=$lt_compiler 8883 8884# Is the compiler the GNU C compiler? 8885with_gcc=$GCC 8886 8887# An ERE matcher. 8888EGREP=$lt_EGREP 8889 8890# The linker used to build libraries. 8891LD=$lt_LD 8892 8893# Whether we need hard or soft links. 8894LN_S=$lt_LN_S 8895 8896# A BSD-compatible nm program. 8897NM=$lt_NM 8898 8899# A symbol stripping program 8900STRIP=$lt_STRIP 8901 8902# Used to examine libraries when file_magic_cmd begins "file" 8903MAGIC_CMD=$MAGIC_CMD 8904 8905# Used on cygwin: DLL creation program. 8906DLLTOOL="$DLLTOOL" 8907 8908# Used on cygwin: object dumper. 8909OBJDUMP="$OBJDUMP" 8910 8911# Used on cygwin: assembler. 8912AS="$AS" 8913 8914# The name of the directory that contains temporary libtool files. 8915objdir=$objdir 8916 8917# How to create reloadable object files. 8918reload_flag=$lt_reload_flag 8919reload_cmds=$lt_reload_cmds 8920 8921# How to pass a linker flag through the compiler. 8922wl=$lt_lt_prog_compiler_wl 8923 8924# Object file suffix (normally "o"). 8925objext="$ac_objext" 8926 8927# Old archive suffix (normally "a"). 8928libext="$libext" 8929 8930# Shared library suffix (normally ".so"). 8931shrext_cmds='$shrext_cmds' 8932 8933# Executable file suffix (normally ""). 8934exeext="$exeext" 8935 8936# Additional compiler flags for building library objects. 8937pic_flag=$lt_lt_prog_compiler_pic 8938pic_mode=$pic_mode 8939 8940# What is the maximum length of a command? 8941max_cmd_len=$lt_cv_sys_max_cmd_len 8942 8943# Does compiler simultaneously support -c and -o options? 8944compiler_c_o=$lt_lt_cv_prog_compiler_c_o 8945 8946# Must we lock files when doing compilation? 8947need_locks=$lt_need_locks 8948 8949# Do we need the lib prefix for modules? 8950need_lib_prefix=$need_lib_prefix 8951 8952# Do we need a version for libraries? 8953need_version=$need_version 8954 8955# Whether dlopen is supported. 8956dlopen_support=$enable_dlopen 8957 8958# Whether dlopen of programs is supported. 8959dlopen_self=$enable_dlopen_self 8960 8961# Whether dlopen of statically linked programs is supported. 8962dlopen_self_static=$enable_dlopen_self_static 8963 8964# Compiler flag to prevent dynamic linking. 8965link_static_flag=$lt_lt_prog_compiler_static 8966 8967# Compiler flag to turn off builtin functions. 8968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 8969 8970# Compiler flag to allow reflexive dlopens. 8971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8972 8973# Compiler flag to generate shared objects directly from archives. 8974whole_archive_flag_spec=$lt_whole_archive_flag_spec 8975 8976# Compiler flag to generate thread-safe objects. 8977thread_safe_flag_spec=$lt_thread_safe_flag_spec 8978 8979# Library versioning type. 8980version_type=$version_type 8981 8982# Format of library name prefix. 8983libname_spec=$lt_libname_spec 8984 8985# List of archive names. First name is the real one, the rest are links. 8986# The last name is the one that the linker finds with -lNAME. 8987library_names_spec=$lt_library_names_spec 8988 8989# The coded name of the library, if different from the real name. 8990soname_spec=$lt_soname_spec 8991 8992# Commands used to build and install an old-style archive. 8993RANLIB=$lt_RANLIB 8994old_archive_cmds=$lt_old_archive_cmds 8995old_postinstall_cmds=$lt_old_postinstall_cmds 8996old_postuninstall_cmds=$lt_old_postuninstall_cmds 8997 8998# Create an old-style archive from a shared archive. 8999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9000 9001# Create a temporary old-style archive to link instead of a shared archive. 9002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9003 9004# Commands used to build and install a shared archive. 9005archive_cmds=$lt_archive_cmds 9006archive_expsym_cmds=$lt_archive_expsym_cmds 9007postinstall_cmds=$lt_postinstall_cmds 9008postuninstall_cmds=$lt_postuninstall_cmds 9009 9010# Commands used to build a loadable module (assumed same as above if empty) 9011module_cmds=$lt_module_cmds 9012module_expsym_cmds=$lt_module_expsym_cmds 9013 9014# Commands to strip libraries. 9015old_striplib=$lt_old_striplib 9016striplib=$lt_striplib 9017 9018# Dependencies to place before the objects being linked to create a 9019# shared library. 9020predep_objects=$lt_predep_objects 9021 9022# Dependencies to place after the objects being linked to create a 9023# shared library. 9024postdep_objects=$lt_postdep_objects 9025 9026# Dependencies to place before the objects being linked to create a 9027# shared library. 9028predeps=$lt_predeps 9029 9030# Dependencies to place after the objects being linked to create a 9031# shared library. 9032postdeps=$lt_postdeps 9033 9034# The library search path used internally by the compiler when linking 9035# a shared library. 9036compiler_lib_search_path=$lt_compiler_lib_search_path 9037 9038# Method to check whether dependent libraries are shared objects. 9039deplibs_check_method=$lt_deplibs_check_method 9040 9041# Command to use when deplibs_check_method == file_magic. 9042file_magic_cmd=$lt_file_magic_cmd 9043 9044# Flag that allows shared libraries with undefined symbols to be built. 9045allow_undefined_flag=$lt_allow_undefined_flag 9046 9047# Flag that forces no undefined symbols. 9048no_undefined_flag=$lt_no_undefined_flag 9049 9050# Commands used to finish a libtool library installation in a directory. 9051finish_cmds=$lt_finish_cmds 9052 9053# Same as above, but a single script fragment to be evaled but not shown. 9054finish_eval=$lt_finish_eval 9055 9056# Take the output of nm and produce a listing of raw symbols and C names. 9057global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9058 9059# Transform the output of nm in a proper C declaration 9060global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9061 9062# Transform the output of nm in a C name address pair 9063global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9064 9065# This is the shared library runtime path variable. 9066runpath_var=$runpath_var 9067 9068# This is the shared library path variable. 9069shlibpath_var=$shlibpath_var 9070 9071# Is shlibpath searched before the hard-coded library search path? 9072shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9073 9074# How to hardcode a shared library path into an executable. 9075hardcode_action=$hardcode_action 9076 9077# Whether we should hardcode library paths into libraries. 9078hardcode_into_libs=$hardcode_into_libs 9079 9080# Flag to hardcode \$libdir into a binary during linking. 9081# This must work even if \$libdir does not exist. 9082hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9083 9084# If ld is used when linking, flag to hardcode \$libdir into 9085# a binary during linking. This must work even if \$libdir does 9086# not exist. 9087hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9088 9089# Whether we need a single -rpath flag with a separated argument. 9090hardcode_libdir_separator=$lt_hardcode_libdir_separator 9091 9092# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9093# resulting binary. 9094hardcode_direct=$hardcode_direct 9095 9096# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9097# resulting binary. 9098hardcode_minus_L=$hardcode_minus_L 9099 9100# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9101# the resulting binary. 9102hardcode_shlibpath_var=$hardcode_shlibpath_var 9103 9104# Set to yes if building a shared library automatically hardcodes DIR into the library 9105# and all subsequent libraries and executables linked against it. 9106hardcode_automatic=$hardcode_automatic 9107 9108# Variables whose values should be saved in libtool wrapper scripts and 9109# restored at relink time. 9110variables_saved_for_relink="$variables_saved_for_relink" 9111 9112# Whether libtool must link a program against all its dependency libraries. 9113link_all_deplibs=$link_all_deplibs 9114 9115# Compile-time system search path for libraries 9116sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9117 9118# Run-time system search path for libraries 9119sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9120 9121# Fix the shell variable \$srcfile for the compiler. 9122fix_srcfile_path="$fix_srcfile_path" 9123 9124# Set to yes if exported symbols are required. 9125always_export_symbols=$always_export_symbols 9126 9127# The commands to list exported symbols. 9128export_symbols_cmds=$lt_export_symbols_cmds 9129 9130# The commands to extract the exported symbol list from a shared archive. 9131extract_expsyms_cmds=$lt_extract_expsyms_cmds 9132 9133# Symbols that should not be listed in the preloaded symbols. 9134exclude_expsyms=$lt_exclude_expsyms 9135 9136# Symbols that must always be exported. 9137include_expsyms=$lt_include_expsyms 9138 9139# ### END LIBTOOL CONFIG 9140 9141__EOF__ 9142 9143 9144 case $host_os in 9145 aix3*) 9146 cat <<\EOF >> "$cfgfile" 9147 9148# AIX sometimes has problems with the GCC collect2 program. For some 9149# reason, if we set the COLLECT_NAMES environment variable, the problems 9150# vanish in a puff of smoke. 9151if test "X${COLLECT_NAMES+set}" != Xset; then 9152 COLLECT_NAMES= 9153 export COLLECT_NAMES 9154fi 9155EOF 9156 ;; 9157 esac 9158 9159 # We use sed instead of cat because bash on DJGPP gets confused if 9160 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9161 # text mode, it properly converts lines to CR/LF. This bash problem 9162 # is reportedly fixed, but why not run on old versions too? 9163 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9164 9165 mv -f "$cfgfile" "$ofile" || \ 9166 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9167 chmod +x "$ofile" 9168 9169else 9170 # If there is no Makefile yet, we rely on a make rule to execute 9171 # `config.status --recheck' to rerun these tests and create the 9172 # libtool script then. 9173 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9174 if test -f "$ltmain_in"; then 9175 test -f Makefile && make "$ltmain" 9176 fi 9177fi 9178 9179 9180ac_ext=c 9181ac_cpp='$CPP $CPPFLAGS' 9182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9184ac_compiler_gnu=$ac_cv_c_compiler_gnu 9185 9186CC="$lt_save_CC" 9187 9188 9189# Check whether --with-tags or --without-tags was given. 9190if test "${with_tags+set}" = set; then 9191 withval="$with_tags" 9192 tagnames="$withval" 9193fi; 9194 9195if test -f "$ltmain" && test -n "$tagnames"; then 9196 if test ! -f "${ofile}"; then 9197 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9198echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9199 fi 9200 9201 if test -z "$LTCC"; then 9202 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9203 if test -z "$LTCC"; then 9204 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9205echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9206 else 9207 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9208echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9209 fi 9210 fi 9211 if test -z "$LTCFLAGS"; then 9212 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9213 fi 9214 9215 # Extract list of available tagged configurations in $ofile. 9216 # Note that this assumes the entire list is on one line. 9217 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9218 9219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9220 for tagname in $tagnames; do 9221 IFS="$lt_save_ifs" 9222 # Check whether tagname contains only valid characters 9223 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9224 "") ;; 9225 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9226echo "$as_me: error: invalid tag name: $tagname" >&2;} 9227 { (exit 1); exit 1; }; } 9228 ;; 9229 esac 9230 9231 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9232 then 9233 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9234echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9235 { (exit 1); exit 1; }; } 9236 fi 9237 9238 # Update the list of available tags. 9239 if test -n "$tagname"; then 9240 echo appending configuration tag \"$tagname\" to $ofile 9241 9242 case $tagname in 9243 CXX) 9244 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9245 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9246 (test "X$CXX" != "Xg++"))) ; then 9247 ac_ext=cc 9248ac_cpp='$CXXCPP $CPPFLAGS' 9249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9252 9253 9254 9255 9256archive_cmds_need_lc_CXX=no 9257allow_undefined_flag_CXX= 9258always_export_symbols_CXX=no 9259archive_expsym_cmds_CXX= 9260export_dynamic_flag_spec_CXX= 9261hardcode_direct_CXX=no 9262hardcode_libdir_flag_spec_CXX= 9263hardcode_libdir_flag_spec_ld_CXX= 9264hardcode_libdir_separator_CXX= 9265hardcode_minus_L_CXX=no 9266hardcode_shlibpath_var_CXX=unsupported 9267hardcode_automatic_CXX=no 9268module_cmds_CXX= 9269module_expsym_cmds_CXX= 9270link_all_deplibs_CXX=unknown 9271old_archive_cmds_CXX=$old_archive_cmds 9272no_undefined_flag_CXX= 9273whole_archive_flag_spec_CXX= 9274enable_shared_with_static_runtimes_CXX=no 9275 9276# Dependencies to place before and after the object being linked: 9277predep_objects_CXX= 9278postdep_objects_CXX= 9279predeps_CXX= 9280postdeps_CXX= 9281compiler_lib_search_path_CXX= 9282 9283# Source file extension for C++ test sources. 9284ac_ext=cpp 9285 9286# Object file extension for compiled C++ test sources. 9287objext=o 9288objext_CXX=$objext 9289 9290# Code to be used in simple compile tests 9291lt_simple_compile_test_code="int some_variable = 0;\n" 9292 9293# Code to be used in simple link tests 9294lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9295 9296# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9297 9298# If no C compiler was specified, use CC. 9299LTCC=${LTCC-"$CC"} 9300 9301# If no C compiler flags were specified, use CFLAGS. 9302LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9303 9304# Allow CC to be a program name with arguments. 9305compiler=$CC 9306 9307 9308# save warnings/boilerplate of simple test code 9309ac_outfile=conftest.$ac_objext 9310printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9311eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9312_lt_compiler_boilerplate=`cat conftest.err` 9313$rm conftest* 9314 9315ac_outfile=conftest.$ac_objext 9316printf "$lt_simple_link_test_code" >conftest.$ac_ext 9317eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9318_lt_linker_boilerplate=`cat conftest.err` 9319$rm conftest* 9320 9321 9322# Allow CC to be a program name with arguments. 9323lt_save_CC=$CC 9324lt_save_LD=$LD 9325lt_save_GCC=$GCC 9326GCC=$GXX 9327lt_save_with_gnu_ld=$with_gnu_ld 9328lt_save_path_LD=$lt_cv_path_LD 9329if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9330 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9331else 9332 $as_unset lt_cv_prog_gnu_ld 9333fi 9334if test -n "${lt_cv_path_LDCXX+set}"; then 9335 lt_cv_path_LD=$lt_cv_path_LDCXX 9336else 9337 $as_unset lt_cv_path_LD 9338fi 9339test -z "${LDCXX+set}" || LD=$LDCXX 9340CC=${CXX-"c++"} 9341compiler=$CC 9342compiler_CXX=$CC 9343for cc_temp in $compiler""; do 9344 case $cc_temp in 9345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9347 \-*) ;; 9348 *) break;; 9349 esac 9350done 9351cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9352 9353 9354# We don't want -fno-exception wen compiling C++ code, so set the 9355# no_builtin_flag separately 9356if test "$GXX" = yes; then 9357 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9358else 9359 lt_prog_compiler_no_builtin_flag_CXX= 9360fi 9361 9362if test "$GXX" = yes; then 9363 # Set up default GNU C++ configuration 9364 9365 9366# Check whether --with-gnu-ld or --without-gnu-ld was given. 9367if test "${with_gnu_ld+set}" = set; then 9368 withval="$with_gnu_ld" 9369 test "$withval" = no || with_gnu_ld=yes 9370else 9371 with_gnu_ld=no 9372fi; 9373ac_prog=ld 9374if test "$GCC" = yes; then 9375 # Check if gcc -print-prog-name=ld gives a path. 9376 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9377echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9378 case $host in 9379 *-*-mingw*) 9380 # gcc leaves a trailing carriage return which upsets mingw 9381 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9382 *) 9383 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9384 esac 9385 case $ac_prog in 9386 # Accept absolute paths. 9387 [\\/]* | ?:[\\/]*) 9388 re_direlt='/[^/][^/]*/\.\./' 9389 # Canonicalize the pathname of ld 9390 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9391 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9392 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9393 done 9394 test -z "$LD" && LD="$ac_prog" 9395 ;; 9396 "") 9397 # If it fails, then pretend we aren't using GCC. 9398 ac_prog=ld 9399 ;; 9400 *) 9401 # If it is relative, then search for the first ld in PATH. 9402 with_gnu_ld=unknown 9403 ;; 9404 esac 9405elif test "$with_gnu_ld" = yes; then 9406 echo "$as_me:$LINENO: checking for GNU ld" >&5 9407echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9408else 9409 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9410echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9411fi 9412if test "${lt_cv_path_LD+set}" = set; then 9413 echo $ECHO_N "(cached) $ECHO_C" >&6 9414else 9415 if test -z "$LD"; then 9416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9417 for ac_dir in $PATH; do 9418 IFS="$lt_save_ifs" 9419 test -z "$ac_dir" && ac_dir=. 9420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9421 lt_cv_path_LD="$ac_dir/$ac_prog" 9422 # Check to see if the program is GNU ld. I'd rather use --version, 9423 # but apparently some variants of GNU ld only accept -v. 9424 # Break only if it was the GNU/non-GNU ld that we prefer. 9425 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9426 *GNU* | *'with BFD'*) 9427 test "$with_gnu_ld" != no && break 9428 ;; 9429 *) 9430 test "$with_gnu_ld" != yes && break 9431 ;; 9432 esac 9433 fi 9434 done 9435 IFS="$lt_save_ifs" 9436else 9437 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9438fi 9439fi 9440 9441LD="$lt_cv_path_LD" 9442if test -n "$LD"; then 9443 echo "$as_me:$LINENO: result: $LD" >&5 9444echo "${ECHO_T}$LD" >&6 9445else 9446 echo "$as_me:$LINENO: result: no" >&5 9447echo "${ECHO_T}no" >&6 9448fi 9449test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9450echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9451 { (exit 1); exit 1; }; } 9452echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9453echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9454if test "${lt_cv_prog_gnu_ld+set}" = set; then 9455 echo $ECHO_N "(cached) $ECHO_C" >&6 9456else 9457 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9458case `$LD -v 2>&1 </dev/null` in 9459*GNU* | *'with BFD'*) 9460 lt_cv_prog_gnu_ld=yes 9461 ;; 9462*) 9463 lt_cv_prog_gnu_ld=no 9464 ;; 9465esac 9466fi 9467echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9468echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9469with_gnu_ld=$lt_cv_prog_gnu_ld 9470 9471 9472 9473 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9474 # archiving commands below assume that GNU ld is being used. 9475 if test "$with_gnu_ld" = yes; then 9476 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9477 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' 9478 9479 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9481 9482 # If archive_cmds runs LD, not CC, wlarc should be empty 9483 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9484 # investigate it a little bit more. (MM) 9485 wlarc='${wl}' 9486 9487 # ancient GNU ld didn't support --whole-archive et. al. 9488 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9489 grep 'no-whole-archive' > /dev/null; then 9490 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9491 else 9492 whole_archive_flag_spec_CXX= 9493 fi 9494 else 9495 with_gnu_ld=no 9496 wlarc= 9497 9498 # A generic and very simple default shared library creation 9499 # command for GNU C++ for the case where it uses the native 9500 # linker, instead of GNU ld. If possible, this setting should 9501 # overridden to take advantage of the native linker features on 9502 # the platform it is being used on. 9503 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9504 fi 9505 9506 # Commands to make compiler produce verbose output that lists 9507 # what "hidden" libraries, object files and flags are used when 9508 # linking a shared library. 9509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9510 9511else 9512 GXX=no 9513 with_gnu_ld=no 9514 wlarc= 9515fi 9516 9517# PORTME: fill in a description of your system's C++ link characteristics 9518echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9519echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9520ld_shlibs_CXX=yes 9521case $host_os in 9522 aix3*) 9523 # FIXME: insert proper C++ library support 9524 ld_shlibs_CXX=no 9525 ;; 9526 aix4* | aix5*) 9527 if test "$host_cpu" = ia64; then 9528 # On IA64, the linker does run time linking by default, so we don't 9529 # have to do anything special. 9530 aix_use_runtimelinking=no 9531 exp_sym_flag='-Bexport' 9532 no_entry_flag="" 9533 else 9534 aix_use_runtimelinking=no 9535 9536 # Test if we are trying to use run time linking or normal 9537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9538 # need to do runtime linking. 9539 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9540 for ld_flag in $LDFLAGS; do 9541 case $ld_flag in 9542 *-brtl*) 9543 aix_use_runtimelinking=yes 9544 break 9545 ;; 9546 esac 9547 done 9548 ;; 9549 esac 9550 9551 exp_sym_flag='-bexport' 9552 no_entry_flag='-bnoentry' 9553 fi 9554 9555 # When large executables or shared objects are built, AIX ld can 9556 # have problems creating the table of contents. If linking a library 9557 # or program results in "error TOC overflow" add -mminimal-toc to 9558 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9559 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9560 9561 archive_cmds_CXX='' 9562 hardcode_direct_CXX=yes 9563 hardcode_libdir_separator_CXX=':' 9564 link_all_deplibs_CXX=yes 9565 9566 if test "$GXX" = yes; then 9567 case $host_os in aix4.[012]|aix4.[012].*) 9568 # We only want to do this on AIX 4.2 and lower, the check 9569 # below for broken collect2 doesn't work under 4.3+ 9570 collect2name=`${CC} -print-prog-name=collect2` 9571 if test -f "$collect2name" && \ 9572 strings "$collect2name" | grep resolve_lib_name >/dev/null 9573 then 9574 # We have reworked collect2 9575 hardcode_direct_CXX=yes 9576 else 9577 # We have old collect2 9578 hardcode_direct_CXX=unsupported 9579 # It fails to find uninstalled libraries when the uninstalled 9580 # path is not listed in the libpath. Setting hardcode_minus_L 9581 # to unsupported forces relinking 9582 hardcode_minus_L_CXX=yes 9583 hardcode_libdir_flag_spec_CXX='-L$libdir' 9584 hardcode_libdir_separator_CXX= 9585 fi 9586 ;; 9587 esac 9588 shared_flag='-shared' 9589 if test "$aix_use_runtimelinking" = yes; then 9590 shared_flag="$shared_flag "'${wl}-G' 9591 fi 9592 else 9593 # not using gcc 9594 if test "$host_cpu" = ia64; then 9595 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9596 # chokes on -Wl,-G. The following line is correct: 9597 shared_flag='-G' 9598 else 9599 if test "$aix_use_runtimelinking" = yes; then 9600 shared_flag='${wl}-G' 9601 else 9602 shared_flag='${wl}-bM:SRE' 9603 fi 9604 fi 9605 fi 9606 9607 # It seems that -bexpall does not export symbols beginning with 9608 # underscore (_), so it is better to generate a list of symbols to export. 9609 always_export_symbols_CXX=yes 9610 if test "$aix_use_runtimelinking" = yes; then 9611 # Warning - without using the other runtime loading flags (-brtl), 9612 # -berok will link without error, but may produce a broken library. 9613 allow_undefined_flag_CXX='-berok' 9614 # Determine the default libpath from the value encoded in an empty executable. 9615 cat >conftest.$ac_ext <<_ACEOF 9616/* confdefs.h. */ 9617_ACEOF 9618cat confdefs.h >>conftest.$ac_ext 9619cat >>conftest.$ac_ext <<_ACEOF 9620/* end confdefs.h. */ 9621 9622int 9623main () 9624{ 9625 9626 ; 9627 return 0; 9628} 9629_ACEOF 9630rm -f conftest.$ac_objext conftest$ac_exeext 9631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9632 (eval $ac_link) 2>conftest.er1 9633 ac_status=$? 9634 grep -v '^ *+' conftest.er1 >conftest.err 9635 rm -f conftest.er1 9636 cat conftest.err >&5 9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9638 (exit $ac_status); } && 9639 { ac_try='test -z "$ac_cxx_werror_flag" 9640 || test ! -s conftest.err' 9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9642 (eval $ac_try) 2>&5 9643 ac_status=$? 9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9645 (exit $ac_status); }; } && 9646 { ac_try='test -s conftest$ac_exeext' 9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9648 (eval $ac_try) 2>&5 9649 ac_status=$? 9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9651 (exit $ac_status); }; }; then 9652 9653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9654}'` 9655# Check for a 64-bit object if we didn't find anything. 9656if 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; } 9657}'`; fi 9658else 9659 echo "$as_me: failed program was:" >&5 9660sed 's/^/| /' conftest.$ac_ext >&5 9661 9662fi 9663rm -f conftest.err conftest.$ac_objext \ 9664 conftest$ac_exeext conftest.$ac_ext 9665if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9666 9667 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9668 9669 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" 9670 else 9671 if test "$host_cpu" = ia64; then 9672 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9673 allow_undefined_flag_CXX="-z nodefs" 9674 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" 9675 else 9676 # Determine the default libpath from the value encoded in an empty executable. 9677 cat >conftest.$ac_ext <<_ACEOF 9678/* confdefs.h. */ 9679_ACEOF 9680cat confdefs.h >>conftest.$ac_ext 9681cat >>conftest.$ac_ext <<_ACEOF 9682/* end confdefs.h. */ 9683 9684int 9685main () 9686{ 9687 9688 ; 9689 return 0; 9690} 9691_ACEOF 9692rm -f conftest.$ac_objext conftest$ac_exeext 9693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9694 (eval $ac_link) 2>conftest.er1 9695 ac_status=$? 9696 grep -v '^ *+' conftest.er1 >conftest.err 9697 rm -f conftest.er1 9698 cat conftest.err >&5 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 (exit $ac_status); } && 9701 { ac_try='test -z "$ac_cxx_werror_flag" 9702 || test ! -s conftest.err' 9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9704 (eval $ac_try) 2>&5 9705 ac_status=$? 9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9707 (exit $ac_status); }; } && 9708 { ac_try='test -s conftest$ac_exeext' 9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9710 (eval $ac_try) 2>&5 9711 ac_status=$? 9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9713 (exit $ac_status); }; }; then 9714 9715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9716}'` 9717# Check for a 64-bit object if we didn't find anything. 9718if 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; } 9719}'`; fi 9720else 9721 echo "$as_me: failed program was:" >&5 9722sed 's/^/| /' conftest.$ac_ext >&5 9723 9724fi 9725rm -f conftest.err conftest.$ac_objext \ 9726 conftest$ac_exeext conftest.$ac_ext 9727if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9728 9729 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9730 # Warning - without using the other run time loading flags, 9731 # -berok will link without error, but may produce a broken library. 9732 no_undefined_flag_CXX=' ${wl}-bernotok' 9733 allow_undefined_flag_CXX=' ${wl}-berok' 9734 # Exported symbols can be pulled into shared objects from archives 9735 whole_archive_flag_spec_CXX='$convenience' 9736 archive_cmds_need_lc_CXX=yes 9737 # This is similar to how AIX traditionally builds its shared libraries. 9738 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' 9739 fi 9740 fi 9741 ;; 9742 9743 beos*) 9744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9745 allow_undefined_flag_CXX=unsupported 9746 # Joseph Beckenbach <[email protected]> says some releases of gcc 9747 # support --undefined. This deserves some investigation. FIXME 9748 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9749 else 9750 ld_shlibs_CXX=no 9751 fi 9752 ;; 9753 9754 chorus*) 9755 case $cc_basename in 9756 *) 9757 # FIXME: insert proper C++ library support 9758 ld_shlibs_CXX=no 9759 ;; 9760 esac 9761 ;; 9762 9763 cygwin* | mingw* | pw32*) 9764 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9765 # as there is no search path for DLLs. 9766 hardcode_libdir_flag_spec_CXX='-L$libdir' 9767 allow_undefined_flag_CXX=unsupported 9768 always_export_symbols_CXX=no 9769 enable_shared_with_static_runtimes_CXX=yes 9770 9771 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9772 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' 9773 # If the export-symbols file already is a .def file (1st line 9774 # is EXPORTS), use it as is; otherwise, prepend... 9775 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9776 cp $export_symbols $output_objdir/$soname.def; 9777 else 9778 echo EXPORTS > $output_objdir/$soname.def; 9779 cat $export_symbols >> $output_objdir/$soname.def; 9780 fi~ 9781 $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' 9782 else 9783 ld_shlibs_CXX=no 9784 fi 9785 ;; 9786 darwin* | rhapsody*) 9787 case $host_os in 9788 rhapsody* | darwin1.[012]) 9789 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 9790 ;; 9791 *) # Darwin 1.3 on 9792 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9793 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9794 else 9795 case ${MACOSX_DEPLOYMENT_TARGET} in 9796 10.[012]) 9797 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9798 ;; 9799 10.*) 9800 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 9801 ;; 9802 esac 9803 fi 9804 ;; 9805 esac 9806 archive_cmds_need_lc_CXX=no 9807 hardcode_direct_CXX=no 9808 hardcode_automatic_CXX=yes 9809 hardcode_shlibpath_var_CXX=unsupported 9810 whole_archive_flag_spec_CXX='' 9811 link_all_deplibs_CXX=yes 9812 9813 if test "$GXX" = yes ; then 9814 lt_int_apple_cc_single_mod=no 9815 output_verbose_link_cmd='echo' 9816 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 9817 lt_int_apple_cc_single_mod=yes 9818 fi 9819 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9820 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9821 else 9822 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' 9823 fi 9824 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9826 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9827 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}' 9828 else 9829 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}' 9830 fi 9831 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}' 9832 else 9833 case $cc_basename in 9834 xlc*) 9835 output_verbose_link_cmd='echo' 9836 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' 9837 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9839 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}' 9840 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}' 9841 ;; 9842 *) 9843 ld_shlibs_CXX=no 9844 ;; 9845 esac 9846 fi 9847 ;; 9848 9849 dgux*) 9850 case $cc_basename in 9851 ec++*) 9852 # FIXME: insert proper C++ library support 9853 ld_shlibs_CXX=no 9854 ;; 9855 ghcx*) 9856 # Green Hills C++ Compiler 9857 # FIXME: insert proper C++ library support 9858 ld_shlibs_CXX=no 9859 ;; 9860 *) 9861 # FIXME: insert proper C++ library support 9862 ld_shlibs_CXX=no 9863 ;; 9864 esac 9865 ;; 9866 freebsd[12]*) 9867 # C++ shared libraries reported to be fairly broken before switch to ELF 9868 ld_shlibs_CXX=no 9869 ;; 9870 freebsd-elf*) 9871 archive_cmds_need_lc_CXX=no 9872 ;; 9873 freebsd* | kfreebsd*-gnu | dragonfly*) 9874 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9875 # conventions 9876 ld_shlibs_CXX=yes 9877 ;; 9878 gnu*) 9879 ;; 9880 hpux9*) 9881 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9882 hardcode_libdir_separator_CXX=: 9883 export_dynamic_flag_spec_CXX='${wl}-E' 9884 hardcode_direct_CXX=yes 9885 hardcode_minus_L_CXX=yes # Not in the search PATH, 9886 # but as the default 9887 # location of the library. 9888 9889 case $cc_basename in 9890 CC*) 9891 # FIXME: insert proper C++ library support 9892 ld_shlibs_CXX=no 9893 ;; 9894 aCC*) 9895 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' 9896 # Commands to make compiler produce verbose output that lists 9897 # what "hidden" libraries, object files and flags are used when 9898 # linking a shared library. 9899 # 9900 # There doesn't appear to be a way to prevent this compiler from 9901 # explicitly linking system object files so we need to strip them 9902 # from the output so that they don't get included in the library 9903 # dependencies. 9904 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' 9905 ;; 9906 *) 9907 if test "$GXX" = yes; then 9908 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' 9909 else 9910 # FIXME: insert proper C++ library support 9911 ld_shlibs_CXX=no 9912 fi 9913 ;; 9914 esac 9915 ;; 9916 hpux10*|hpux11*) 9917 if test $with_gnu_ld = no; then 9918 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9919 hardcode_libdir_separator_CXX=: 9920 9921 case $host_cpu in 9922 hppa*64*|ia64*) 9923 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 9924 ;; 9925 *) 9926 export_dynamic_flag_spec_CXX='${wl}-E' 9927 ;; 9928 esac 9929 fi 9930 case $host_cpu in 9931 hppa*64*|ia64*) 9932 hardcode_direct_CXX=no 9933 hardcode_shlibpath_var_CXX=no 9934 ;; 9935 *) 9936 hardcode_direct_CXX=yes 9937 hardcode_minus_L_CXX=yes # Not in the search PATH, 9938 # but as the default 9939 # location of the library. 9940 ;; 9941 esac 9942 9943 case $cc_basename in 9944 CC*) 9945 # FIXME: insert proper C++ library support 9946 ld_shlibs_CXX=no 9947 ;; 9948 aCC*) 9949 case $host_cpu in 9950 hppa*64*) 9951 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9952 ;; 9953 ia64*) 9954 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9955 ;; 9956 *) 9957 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9958 ;; 9959 esac 9960 # Commands to make compiler produce verbose output that lists 9961 # what "hidden" libraries, object files and flags are used when 9962 # linking a shared library. 9963 # 9964 # There doesn't appear to be a way to prevent this compiler from 9965 # explicitly linking system object files so we need to strip them 9966 # from the output so that they don't get included in the library 9967 # dependencies. 9968 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' 9969 ;; 9970 *) 9971 if test "$GXX" = yes; then 9972 if test $with_gnu_ld = no; then 9973 case $host_cpu in 9974 hppa*64*) 9975 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9976 ;; 9977 ia64*) 9978 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9979 ;; 9980 *) 9981 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' 9982 ;; 9983 esac 9984 fi 9985 else 9986 # FIXME: insert proper C++ library support 9987 ld_shlibs_CXX=no 9988 fi 9989 ;; 9990 esac 9991 ;; 9992 interix3*) 9993 hardcode_direct_CXX=no 9994 hardcode_shlibpath_var_CXX=no 9995 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9996 export_dynamic_flag_spec_CXX='${wl}-E' 9997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9998 # Instead, shared libraries are loaded at an image base (0x10000000 by 9999 # default) and relocated if they conflict, which is a slow very memory 10000 # consuming and fragmenting process. To avoid this, we pick a random, 10001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10002 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10003 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' 10004 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' 10005 ;; 10006 irix5* | irix6*) 10007 case $cc_basename in 10008 CC*) 10009 # SGI C++ 10010 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' 10011 10012 # Archives containing C++ object files must be created using 10013 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10014 # necessary to make sure instantiated templates are included 10015 # in the archive. 10016 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10017 ;; 10018 *) 10019 if test "$GXX" = yes; then 10020 if test "$with_gnu_ld" = no; then 10021 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' 10022 else 10023 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' 10024 fi 10025 fi 10026 link_all_deplibs_CXX=yes 10027 ;; 10028 esac 10029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10030 hardcode_libdir_separator_CXX=: 10031 ;; 10032 linux*) 10033 case $cc_basename in 10034 KCC*) 10035 # Kuck and Associates, Inc. (KAI) C++ Compiler 10036 10037 # KCC will only create a shared library if the output file 10038 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10039 # to its proper name (with version) after linking. 10040 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' 10041 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' 10042 # Commands to make compiler produce verbose output that lists 10043 # what "hidden" libraries, object files and flags are used when 10044 # linking a shared library. 10045 # 10046 # There doesn't appear to be a way to prevent this compiler from 10047 # explicitly linking system object files so we need to strip them 10048 # from the output so that they don't get included in the library 10049 # dependencies. 10050 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' 10051 10052 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10054 10055 # Archives containing C++ object files must be created using 10056 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10057 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10058 ;; 10059 icpc*) 10060 # Intel C++ 10061 with_gnu_ld=yes 10062 # version 8.0 and above of icpc choke on multiply defined symbols 10063 # if we add $predep_objects and $postdep_objects, however 7.1 and 10064 # earlier do not add the objects themselves. 10065 case `$CC -V 2>&1` in 10066 *"Version 7."*) 10067 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10068 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' 10069 ;; 10070 *) # Version 8.0 or newer 10071 tmp_idyn= 10072 case $host_cpu in 10073 ia64*) tmp_idyn=' -i_dynamic';; 10074 esac 10075 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10076 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' 10077 ;; 10078 esac 10079 archive_cmds_need_lc_CXX=no 10080 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10081 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10082 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10083 ;; 10084 pgCC*) 10085 # Portland Group C++ compiler 10086 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10087 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' 10088 10089 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10091 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' 10092 ;; 10093 cxx*) 10094 # Compaq C++ 10095 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10096 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' 10097 10098 runpath_var=LD_RUN_PATH 10099 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10100 hardcode_libdir_separator_CXX=: 10101 10102 # Commands to make compiler produce verbose output that lists 10103 # what "hidden" libraries, object files and flags are used when 10104 # linking a shared library. 10105 # 10106 # There doesn't appear to be a way to prevent this compiler from 10107 # explicitly linking system object files so we need to strip them 10108 # from the output so that they don't get included in the library 10109 # dependencies. 10110 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' 10111 ;; 10112 esac 10113 ;; 10114 lynxos*) 10115 # FIXME: insert proper C++ library support 10116 ld_shlibs_CXX=no 10117 ;; 10118 m88k*) 10119 # FIXME: insert proper C++ library support 10120 ld_shlibs_CXX=no 10121 ;; 10122 mvs*) 10123 case $cc_basename in 10124 cxx*) 10125 # FIXME: insert proper C++ library support 10126 ld_shlibs_CXX=no 10127 ;; 10128 *) 10129 # FIXME: insert proper C++ library support 10130 ld_shlibs_CXX=no 10131 ;; 10132 esac 10133 ;; 10134 netbsd*) 10135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10136 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10137 wlarc= 10138 hardcode_libdir_flag_spec_CXX='-R$libdir' 10139 hardcode_direct_CXX=yes 10140 hardcode_shlibpath_var_CXX=no 10141 fi 10142 # Workaround some broken pre-1.5 toolchains 10143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10144 ;; 10145 openbsd2*) 10146 # C++ shared libraries are fairly broken 10147 ld_shlibs_CXX=no 10148 ;; 10149 openbsd*) 10150 hardcode_direct_CXX=yes 10151 hardcode_shlibpath_var_CXX=no 10152 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10154 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10155 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10156 export_dynamic_flag_spec_CXX='${wl}-E' 10157 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10158 fi 10159 output_verbose_link_cmd='echo' 10160 ;; 10161 osf3*) 10162 case $cc_basename in 10163 KCC*) 10164 # Kuck and Associates, Inc. (KAI) C++ Compiler 10165 10166 # KCC will only create a shared library if the output file 10167 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10168 # to its proper name (with version) after linking. 10169 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' 10170 10171 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10172 hardcode_libdir_separator_CXX=: 10173 10174 # Archives containing C++ object files must be created using 10175 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10176 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10177 10178 ;; 10179 RCC*) 10180 # Rational C++ 2.4.1 10181 # FIXME: insert proper C++ library support 10182 ld_shlibs_CXX=no 10183 ;; 10184 cxx*) 10185 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10186 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' 10187 10188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10189 hardcode_libdir_separator_CXX=: 10190 10191 # Commands to make compiler produce verbose output that lists 10192 # what "hidden" libraries, object files and flags are used when 10193 # linking a shared library. 10194 # 10195 # There doesn't appear to be a way to prevent this compiler from 10196 # explicitly linking system object files so we need to strip them 10197 # from the output so that they don't get included in the library 10198 # dependencies. 10199 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' 10200 ;; 10201 *) 10202 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10203 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10204 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' 10205 10206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10207 hardcode_libdir_separator_CXX=: 10208 10209 # Commands to make compiler produce verbose output that lists 10210 # what "hidden" libraries, object files and flags are used when 10211 # linking a shared library. 10212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10213 10214 else 10215 # FIXME: insert proper C++ library support 10216 ld_shlibs_CXX=no 10217 fi 10218 ;; 10219 esac 10220 ;; 10221 osf4* | osf5*) 10222 case $cc_basename in 10223 KCC*) 10224 # Kuck and Associates, Inc. (KAI) C++ Compiler 10225 10226 # KCC will only create a shared library if the output file 10227 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10228 # to its proper name (with version) after linking. 10229 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' 10230 10231 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10232 hardcode_libdir_separator_CXX=: 10233 10234 # Archives containing C++ object files must be created using 10235 # the KAI C++ compiler. 10236 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10237 ;; 10238 RCC*) 10239 # Rational C++ 2.4.1 10240 # FIXME: insert proper C++ library support 10241 ld_shlibs_CXX=no 10242 ;; 10243 cxx*) 10244 allow_undefined_flag_CXX=' -expect_unresolved \*' 10245 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' 10246 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10247 echo "-hidden">> $lib.exp~ 10248 $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~ 10249 $rm $lib.exp' 10250 10251 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10252 hardcode_libdir_separator_CXX=: 10253 10254 # Commands to make compiler produce verbose output that lists 10255 # what "hidden" libraries, object files and flags are used when 10256 # linking a shared library. 10257 # 10258 # There doesn't appear to be a way to prevent this compiler from 10259 # explicitly linking system object files so we need to strip them 10260 # from the output so that they don't get included in the library 10261 # dependencies. 10262 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' 10263 ;; 10264 *) 10265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10266 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10267 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' 10268 10269 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10270 hardcode_libdir_separator_CXX=: 10271 10272 # Commands to make compiler produce verbose output that lists 10273 # what "hidden" libraries, object files and flags are used when 10274 # linking a shared library. 10275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10276 10277 else 10278 # FIXME: insert proper C++ library support 10279 ld_shlibs_CXX=no 10280 fi 10281 ;; 10282 esac 10283 ;; 10284 psos*) 10285 # FIXME: insert proper C++ library support 10286 ld_shlibs_CXX=no 10287 ;; 10288 sunos4*) 10289 case $cc_basename in 10290 CC*) 10291 # Sun C++ 4.x 10292 # FIXME: insert proper C++ library support 10293 ld_shlibs_CXX=no 10294 ;; 10295 lcc*) 10296 # Lucid 10297 # FIXME: insert proper C++ library support 10298 ld_shlibs_CXX=no 10299 ;; 10300 *) 10301 # FIXME: insert proper C++ library support 10302 ld_shlibs_CXX=no 10303 ;; 10304 esac 10305 ;; 10306 solaris*) 10307 case $cc_basename in 10308 CC*) 10309 # Sun C++ 4.2, 5.x and Centerline C++ 10310 archive_cmds_need_lc_CXX=yes 10311 no_undefined_flag_CXX=' -zdefs' 10312 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10313 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10314 $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' 10315 10316 hardcode_libdir_flag_spec_CXX='-R$libdir' 10317 hardcode_shlibpath_var_CXX=no 10318 case $host_os in 10319 solaris2.[0-5] | solaris2.[0-5].*) ;; 10320 *) 10321 # The C++ compiler is used as linker so we must use $wl 10322 # flag to pass the commands to the underlying system 10323 # linker. We must also pass each convience library through 10324 # to the system linker between allextract/defaultextract. 10325 # The C++ compiler will combine linker options so we 10326 # cannot just pass the convience library names through 10327 # without $wl. 10328 # Supported since Solaris 2.6 (maybe 2.5.1?) 10329 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' 10330 ;; 10331 esac 10332 link_all_deplibs_CXX=yes 10333 10334 output_verbose_link_cmd='echo' 10335 10336 # Archives containing C++ object files must be created using 10337 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10338 # necessary to make sure instantiated templates are included 10339 # in the archive. 10340 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10341 ;; 10342 gcx*) 10343 # Green Hills C++ Compiler 10344 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10345 10346 # The C++ compiler must be used to create the archive. 10347 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10348 ;; 10349 *) 10350 # GNU C++ compiler with Solaris linker 10351 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10352 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10353 if $CC --version | grep -v '^2\.7' > /dev/null; then 10354 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10355 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10356 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10357 10358 # Commands to make compiler produce verbose output that lists 10359 # what "hidden" libraries, object files and flags are used when 10360 # linking a shared library. 10361 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10362 else 10363 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10364 # platform. 10365 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10366 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10367 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10368 10369 # Commands to make compiler produce verbose output that lists 10370 # what "hidden" libraries, object files and flags are used when 10371 # linking a shared library. 10372 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10373 fi 10374 10375 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10376 fi 10377 ;; 10378 esac 10379 ;; 10380 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10381 no_undefined_flag_CXX='${wl}-z,text' 10382 archive_cmds_need_lc_CXX=no 10383 hardcode_shlibpath_var_CXX=no 10384 runpath_var='LD_RUN_PATH' 10385 10386 case $cc_basename in 10387 CC*) 10388 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10389 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10390 ;; 10391 *) 10392 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10393 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10394 ;; 10395 esac 10396 ;; 10397 sysv5* | sco3.2v5* | sco5v6*) 10398 # Note: We can NOT use -z defs as we might desire, because we do not 10399 # link with -lc, and that would cause any symbols used from libc to 10400 # always be unresolved, which means just about no library would 10401 # ever link correctly. If we're not using GNU ld we use -z text 10402 # though, which does catch some bad symbols but isn't as heavy-handed 10403 # as -z defs. 10404 # For security reasons, it is highly recommended that you always 10405 # use absolute paths for naming shared libraries, and exclude the 10406 # DT_RUNPATH tag from executables and libraries. But doing so 10407 # requires that you compile everything twice, which is a pain. 10408 # So that behaviour is only enabled if SCOABSPATH is set to a 10409 # non-empty value in the environment. Most likely only useful for 10410 # creating official distributions of packages. 10411 # This is a hack until libtool officially supports absolute path 10412 # names for shared libraries. 10413 no_undefined_flag_CXX='${wl}-z,text' 10414 allow_undefined_flag_CXX='${wl}-z,nodefs' 10415 archive_cmds_need_lc_CXX=no 10416 hardcode_shlibpath_var_CXX=no 10417 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10418 hardcode_libdir_separator_CXX=':' 10419 link_all_deplibs_CXX=yes 10420 export_dynamic_flag_spec_CXX='${wl}-Bexport' 10421 runpath_var='LD_RUN_PATH' 10422 10423 case $cc_basename in 10424 CC*) 10425 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10426 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10427 ;; 10428 *) 10429 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10430 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10431 ;; 10432 esac 10433 ;; 10434 tandem*) 10435 case $cc_basename in 10436 NCC*) 10437 # NonStop-UX NCC 3.20 10438 # FIXME: insert proper C++ library support 10439 ld_shlibs_CXX=no 10440 ;; 10441 *) 10442 # FIXME: insert proper C++ library support 10443 ld_shlibs_CXX=no 10444 ;; 10445 esac 10446 ;; 10447 vxworks*) 10448 # FIXME: insert proper C++ library support 10449 ld_shlibs_CXX=no 10450 ;; 10451 *) 10452 # FIXME: insert proper C++ library support 10453 ld_shlibs_CXX=no 10454 ;; 10455esac 10456echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10457echo "${ECHO_T}$ld_shlibs_CXX" >&6 10458test "$ld_shlibs_CXX" = no && can_build_shared=no 10459 10460GCC_CXX="$GXX" 10461LD_CXX="$LD" 10462 10463 10464cat > conftest.$ac_ext <<EOF 10465class Foo 10466{ 10467public: 10468 Foo (void) { a = 0; } 10469private: 10470 int a; 10471}; 10472EOF 10473 10474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10475 (eval $ac_compile) 2>&5 10476 ac_status=$? 10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10478 (exit $ac_status); }; then 10479 # Parse the compiler output and extract the necessary 10480 # objects, libraries and library flags. 10481 10482 # Sentinel used to keep track of whether or not we are before 10483 # the conftest object file. 10484 pre_test_object_deps_done=no 10485 10486 # The `*' in the case matches for architectures that use `case' in 10487 # $output_verbose_cmd can trigger glob expansion during the loop 10488 # eval without this substitution. 10489 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 10490 10491 for p in `eval $output_verbose_link_cmd`; do 10492 case $p in 10493 10494 -L* | -R* | -l*) 10495 # Some compilers place space between "-{L,R}" and the path. 10496 # Remove the space. 10497 if test $p = "-L" \ 10498 || test $p = "-R"; then 10499 prev=$p 10500 continue 10501 else 10502 prev= 10503 fi 10504 10505 if test "$pre_test_object_deps_done" = no; then 10506 case $p in 10507 -L* | -R*) 10508 # Internal compiler library paths should come after those 10509 # provided the user. The postdeps already come after the 10510 # user supplied libs so there is no need to process them. 10511 if test -z "$compiler_lib_search_path_CXX"; then 10512 compiler_lib_search_path_CXX="${prev}${p}" 10513 else 10514 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10515 fi 10516 ;; 10517 # The "-l" case would never come before the object being 10518 # linked, so don't bother handling this case. 10519 esac 10520 else 10521 if test -z "$postdeps_CXX"; then 10522 postdeps_CXX="${prev}${p}" 10523 else 10524 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10525 fi 10526 fi 10527 ;; 10528 10529 *.$objext) 10530 # This assumes that the test object file only shows up 10531 # once in the compiler output. 10532 if test "$p" = "conftest.$objext"; then 10533 pre_test_object_deps_done=yes 10534 continue 10535 fi 10536 10537 if test "$pre_test_object_deps_done" = no; then 10538 if test -z "$predep_objects_CXX"; then 10539 predep_objects_CXX="$p" 10540 else 10541 predep_objects_CXX="$predep_objects_CXX $p" 10542 fi 10543 else 10544 if test -z "$postdep_objects_CXX"; then 10545 postdep_objects_CXX="$p" 10546 else 10547 postdep_objects_CXX="$postdep_objects_CXX $p" 10548 fi 10549 fi 10550 ;; 10551 10552 *) ;; # Ignore the rest. 10553 10554 esac 10555 done 10556 10557 # Clean up. 10558 rm -f a.out a.exe 10559else 10560 echo "libtool.m4: error: problem compiling CXX test program" 10561fi 10562 10563$rm -f confest.$objext 10564 10565# PORTME: override above test on systems where it is broken 10566case $host_os in 10567interix3*) 10568 # Interix 3.5 installs completely hosed .la files for C++, so rather than 10569 # hack all around it, let's just trust "g++" to DTRT. 10570 predep_objects_CXX= 10571 postdep_objects_CXX= 10572 postdeps_CXX= 10573 ;; 10574 10575solaris*) 10576 case $cc_basename in 10577 CC*) 10578 # Adding this requires a known-good setup of shared libraries for 10579 # Sun compiler versions before 5.6, else PIC objects from an old 10580 # archive will be linked into the output, leading to subtle bugs. 10581 postdeps_CXX='-lCstd -lCrun' 10582 ;; 10583 esac 10584 ;; 10585esac 10586 10587 10588case " $postdeps_CXX " in 10589*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10590esac 10591 10592lt_prog_compiler_wl_CXX= 10593lt_prog_compiler_pic_CXX= 10594lt_prog_compiler_static_CXX= 10595 10596echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10597echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10598 10599 # C++ specific cases for pic, static, wl, etc. 10600 if test "$GXX" = yes; then 10601 lt_prog_compiler_wl_CXX='-Wl,' 10602 lt_prog_compiler_static_CXX='-static' 10603 10604 case $host_os in 10605 aix*) 10606 # All AIX code is PIC. 10607 if test "$host_cpu" = ia64; then 10608 # AIX 5 now supports IA64 processor 10609 lt_prog_compiler_static_CXX='-Bstatic' 10610 fi 10611 ;; 10612 amigaos*) 10613 # FIXME: we need at least 68020 code to build shared libraries, but 10614 # adding the `-m68020' flag to GCC prevents building anything better, 10615 # like `-m68040'. 10616 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10617 ;; 10618 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10619 # PIC is the default for these OSes. 10620 ;; 10621 mingw* | os2* | pw32*) 10622 # This hack is so that the source file can tell whether it is being 10623 # built for inclusion in a dll (and should export symbols for example). 10624 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10625 ;; 10626 darwin* | rhapsody*) 10627 # PIC is the default on this platform 10628 # Common symbols not allowed in MH_DYLIB files 10629 lt_prog_compiler_pic_CXX='-fno-common' 10630 ;; 10631 *djgpp*) 10632 # DJGPP does not support shared libraries at all 10633 lt_prog_compiler_pic_CXX= 10634 ;; 10635 interix3*) 10636 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10637 # Instead, we relocate shared libraries at runtime. 10638 ;; 10639 sysv4*MP*) 10640 if test -d /usr/nec; then 10641 lt_prog_compiler_pic_CXX=-Kconform_pic 10642 fi 10643 ;; 10644 hpux*) 10645 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10646 # not for PA HP-UX. 10647 case $host_cpu in 10648 hppa*64*|ia64*) 10649 ;; 10650 *) 10651 lt_prog_compiler_pic_CXX='-fPIC' 10652 ;; 10653 esac 10654 ;; 10655 *) 10656 lt_prog_compiler_pic_CXX='-fPIC' 10657 ;; 10658 esac 10659 else 10660 case $host_os in 10661 aix4* | aix5*) 10662 # All AIX code is PIC. 10663 if test "$host_cpu" = ia64; then 10664 # AIX 5 now supports IA64 processor 10665 lt_prog_compiler_static_CXX='-Bstatic' 10666 else 10667 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10668 fi 10669 ;; 10670 chorus*) 10671 case $cc_basename in 10672 cxch68*) 10673 # Green Hills C++ Compiler 10674 # _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" 10675 ;; 10676 esac 10677 ;; 10678 darwin*) 10679 # PIC is the default on this platform 10680 # Common symbols not allowed in MH_DYLIB files 10681 case $cc_basename in 10682 xlc*) 10683 lt_prog_compiler_pic_CXX='-qnocommon' 10684 lt_prog_compiler_wl_CXX='-Wl,' 10685 ;; 10686 esac 10687 ;; 10688 dgux*) 10689 case $cc_basename in 10690 ec++*) 10691 lt_prog_compiler_pic_CXX='-KPIC' 10692 ;; 10693 ghcx*) 10694 # Green Hills C++ Compiler 10695 lt_prog_compiler_pic_CXX='-pic' 10696 ;; 10697 *) 10698 ;; 10699 esac 10700 ;; 10701 freebsd* | kfreebsd*-gnu | dragonfly*) 10702 # FreeBSD uses GNU C++ 10703 ;; 10704 hpux9* | hpux10* | hpux11*) 10705 case $cc_basename in 10706 CC*) 10707 lt_prog_compiler_wl_CXX='-Wl,' 10708 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 10709 if test "$host_cpu" != ia64; then 10710 lt_prog_compiler_pic_CXX='+Z' 10711 fi 10712 ;; 10713 aCC*) 10714 lt_prog_compiler_wl_CXX='-Wl,' 10715 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 10716 case $host_cpu in 10717 hppa*64*|ia64*) 10718 # +Z the default 10719 ;; 10720 *) 10721 lt_prog_compiler_pic_CXX='+Z' 10722 ;; 10723 esac 10724 ;; 10725 *) 10726 ;; 10727 esac 10728 ;; 10729 interix*) 10730 # This is c89, which is MS Visual C++ (no shared libs) 10731 # Anyone wants to do a port? 10732 ;; 10733 irix5* | irix6* | nonstopux*) 10734 case $cc_basename in 10735 CC*) 10736 lt_prog_compiler_wl_CXX='-Wl,' 10737 lt_prog_compiler_static_CXX='-non_shared' 10738 # CC pic flag -KPIC is the default. 10739 ;; 10740 *) 10741 ;; 10742 esac 10743 ;; 10744 linux*) 10745 case $cc_basename in 10746 KCC*) 10747 # KAI C++ Compiler 10748 lt_prog_compiler_wl_CXX='--backend -Wl,' 10749 lt_prog_compiler_pic_CXX='-fPIC' 10750 ;; 10751 icpc* | ecpc*) 10752 # Intel C++ 10753 lt_prog_compiler_wl_CXX='-Wl,' 10754 lt_prog_compiler_pic_CXX='-KPIC' 10755 lt_prog_compiler_static_CXX='-static' 10756 ;; 10757 pgCC*) 10758 # Portland Group C++ compiler. 10759 lt_prog_compiler_wl_CXX='-Wl,' 10760 lt_prog_compiler_pic_CXX='-fpic' 10761 lt_prog_compiler_static_CXX='-Bstatic' 10762 ;; 10763 cxx*) 10764 # Compaq C++ 10765 # Make sure the PIC flag is empty. It appears that all Alpha 10766 # Linux and Compaq Tru64 Unix objects are PIC. 10767 lt_prog_compiler_pic_CXX= 10768 lt_prog_compiler_static_CXX='-non_shared' 10769 ;; 10770 *) 10771 ;; 10772 esac 10773 ;; 10774 lynxos*) 10775 ;; 10776 m88k*) 10777 ;; 10778 mvs*) 10779 case $cc_basename in 10780 cxx*) 10781 lt_prog_compiler_pic_CXX='-W c,exportall' 10782 ;; 10783 *) 10784 ;; 10785 esac 10786 ;; 10787 netbsd*) 10788 ;; 10789 osf3* | osf4* | osf5*) 10790 case $cc_basename in 10791 KCC*) 10792 lt_prog_compiler_wl_CXX='--backend -Wl,' 10793 ;; 10794 RCC*) 10795 # Rational C++ 2.4.1 10796 lt_prog_compiler_pic_CXX='-pic' 10797 ;; 10798 cxx*) 10799 # Digital/Compaq C++ 10800 lt_prog_compiler_wl_CXX='-Wl,' 10801 # Make sure the PIC flag is empty. It appears that all Alpha 10802 # Linux and Compaq Tru64 Unix objects are PIC. 10803 lt_prog_compiler_pic_CXX= 10804 lt_prog_compiler_static_CXX='-non_shared' 10805 ;; 10806 *) 10807 ;; 10808 esac 10809 ;; 10810 psos*) 10811 ;; 10812 solaris*) 10813 case $cc_basename in 10814 CC*) 10815 # Sun C++ 4.2, 5.x and Centerline C++ 10816 lt_prog_compiler_pic_CXX='-KPIC' 10817 lt_prog_compiler_static_CXX='-Bstatic' 10818 lt_prog_compiler_wl_CXX='-Qoption ld ' 10819 ;; 10820 gcx*) 10821 # Green Hills C++ Compiler 10822 lt_prog_compiler_pic_CXX='-PIC' 10823 ;; 10824 *) 10825 ;; 10826 esac 10827 ;; 10828 sunos4*) 10829 case $cc_basename in 10830 CC*) 10831 # Sun C++ 4.x 10832 lt_prog_compiler_pic_CXX='-pic' 10833 lt_prog_compiler_static_CXX='-Bstatic' 10834 ;; 10835 lcc*) 10836 # Lucid 10837 lt_prog_compiler_pic_CXX='-pic' 10838 ;; 10839 *) 10840 ;; 10841 esac 10842 ;; 10843 tandem*) 10844 case $cc_basename in 10845 NCC*) 10846 # NonStop-UX NCC 3.20 10847 lt_prog_compiler_pic_CXX='-KPIC' 10848 ;; 10849 *) 10850 ;; 10851 esac 10852 ;; 10853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10854 case $cc_basename in 10855 CC*) 10856 lt_prog_compiler_wl_CXX='-Wl,' 10857 lt_prog_compiler_pic_CXX='-KPIC' 10858 lt_prog_compiler_static_CXX='-Bstatic' 10859 ;; 10860 esac 10861 ;; 10862 vxworks*) 10863 ;; 10864 *) 10865 lt_prog_compiler_can_build_shared_CXX=no 10866 ;; 10867 esac 10868 fi 10869 10870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10871echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10872 10873# 10874# Check to make sure the PIC flag actually works. 10875# 10876if test -n "$lt_prog_compiler_pic_CXX"; then 10877 10878echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10879echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10880if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10881 echo $ECHO_N "(cached) $ECHO_C" >&6 10882else 10883 lt_prog_compiler_pic_works_CXX=no 10884 ac_outfile=conftest.$ac_objext 10885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10886 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10887 # Insert the option either (1) after the last *FLAGS variable, or 10888 # (2) before a word containing "conftest.", or (3) at the end. 10889 # Note that $ac_compile itself does not contain backslashes and begins 10890 # with a dollar sign (not a hyphen), so the echo should work correctly. 10891 # The option is referenced via a variable to avoid confusing sed. 10892 lt_compile=`echo "$ac_compile" | $SED \ 10893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10895 -e 's:$: $lt_compiler_flag:'` 10896 (eval echo "\"\$as_me:10896: $lt_compile\"" >&5) 10897 (eval "$lt_compile" 2>conftest.err) 10898 ac_status=$? 10899 cat conftest.err >&5 10900 echo "$as_me:10900: \$? = $ac_status" >&5 10901 if (exit $ac_status) && test -s "$ac_outfile"; then 10902 # The compiler can only warn and ignore the option if not recognized 10903 # So say no if there are warnings other than the usual output. 10904 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 10905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10907 lt_prog_compiler_pic_works_CXX=yes 10908 fi 10909 fi 10910 $rm conftest* 10911 10912fi 10913echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 10914echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 10915 10916if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 10917 case $lt_prog_compiler_pic_CXX in 10918 "" | " "*) ;; 10919 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 10920 esac 10921else 10922 lt_prog_compiler_pic_CXX= 10923 lt_prog_compiler_can_build_shared_CXX=no 10924fi 10925 10926fi 10927case $host_os in 10928 # For platforms which do not support PIC, -DPIC is meaningless: 10929 *djgpp*) 10930 lt_prog_compiler_pic_CXX= 10931 ;; 10932 *) 10933 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 10934 ;; 10935esac 10936 10937# 10938# Check to make sure the static flag actually works. 10939# 10940wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 10941echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10942echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 10943if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 10944 echo $ECHO_N "(cached) $ECHO_C" >&6 10945else 10946 lt_prog_compiler_static_works_CXX=no 10947 save_LDFLAGS="$LDFLAGS" 10948 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10949 printf "$lt_simple_link_test_code" > conftest.$ac_ext 10950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10951 # The linker can only warn and ignore the option if not recognized 10952 # So say no if there are warnings 10953 if test -s conftest.err; then 10954 # Append any errors to the config.log. 10955 cat conftest.err 1>&5 10956 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 10957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10958 if diff conftest.exp conftest.er2 >/dev/null; then 10959 lt_prog_compiler_static_works_CXX=yes 10960 fi 10961 else 10962 lt_prog_compiler_static_works_CXX=yes 10963 fi 10964 fi 10965 $rm conftest* 10966 LDFLAGS="$save_LDFLAGS" 10967 10968fi 10969echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 10970echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 10971 10972if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 10973 : 10974else 10975 lt_prog_compiler_static_CXX= 10976fi 10977 10978 10979echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10980echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10981if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 10982 echo $ECHO_N "(cached) $ECHO_C" >&6 10983else 10984 lt_cv_prog_compiler_c_o_CXX=no 10985 $rm -r conftest 2>/dev/null 10986 mkdir conftest 10987 cd conftest 10988 mkdir out 10989 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10990 10991 lt_compiler_flag="-o out/conftest2.$ac_objext" 10992 # Insert the option either (1) after the last *FLAGS variable, or 10993 # (2) before a word containing "conftest.", or (3) at the end. 10994 # Note that $ac_compile itself does not contain backslashes and begins 10995 # with a dollar sign (not a hyphen), so the echo should work correctly. 10996 lt_compile=`echo "$ac_compile" | $SED \ 10997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10999 -e 's:$: $lt_compiler_flag:'` 11000 (eval echo "\"\$as_me:11000: $lt_compile\"" >&5) 11001 (eval "$lt_compile" 2>out/conftest.err) 11002 ac_status=$? 11003 cat out/conftest.err >&5 11004 echo "$as_me:11004: \$? = $ac_status" >&5 11005 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11006 then 11007 # The compiler can only warn and ignore the option if not recognized 11008 # So say no if there are warnings 11009 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11012 lt_cv_prog_compiler_c_o_CXX=yes 11013 fi 11014 fi 11015 chmod u+w . 2>&5 11016 $rm conftest* 11017 # SGI C++ compiler will create directory out/ii_files/ for 11018 # template instantiation 11019 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11020 $rm out/* && rmdir out 11021 cd .. 11022 rmdir conftest 11023 $rm conftest* 11024 11025fi 11026echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11027echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11028 11029 11030hard_links="nottested" 11031if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11032 # do not overwrite the value of need_locks provided by the user 11033 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11034echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11035 hard_links=yes 11036 $rm conftest* 11037 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11038 touch conftest.a 11039 ln conftest.a conftest.b 2>&5 || hard_links=no 11040 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11041 echo "$as_me:$LINENO: result: $hard_links" >&5 11042echo "${ECHO_T}$hard_links" >&6 11043 if test "$hard_links" = no; then 11044 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11045echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11046 need_locks=warn 11047 fi 11048else 11049 need_locks=no 11050fi 11051 11052echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11053echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11054 11055 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11056 case $host_os in 11057 aix4* | aix5*) 11058 # If we're using GNU nm, then we don't want the "-C" option. 11059 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11060 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11061 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' 11062 else 11063 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' 11064 fi 11065 ;; 11066 pw32*) 11067 export_symbols_cmds_CXX="$ltdll_cmds" 11068 ;; 11069 cygwin* | mingw*) 11070 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' 11071 ;; 11072 *) 11073 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11074 ;; 11075 esac 11076 11077echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11078echo "${ECHO_T}$ld_shlibs_CXX" >&6 11079test "$ld_shlibs_CXX" = no && can_build_shared=no 11080 11081# 11082# Do we need to explicitly link libc? 11083# 11084case "x$archive_cmds_need_lc_CXX" in 11085x|xyes) 11086 # Assume -lc should be added 11087 archive_cmds_need_lc_CXX=yes 11088 11089 if test "$enable_shared" = yes && test "$GCC" = yes; then 11090 case $archive_cmds_CXX in 11091 *'~'*) 11092 # FIXME: we may have to deal with multi-command sequences. 11093 ;; 11094 '$CC '*) 11095 # Test whether the compiler implicitly links with -lc since on some 11096 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11097 # to ld, don't add -lc before -lgcc. 11098 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11099echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11100 $rm conftest* 11101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11102 11103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11104 (eval $ac_compile) 2>&5 11105 ac_status=$? 11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11107 (exit $ac_status); } 2>conftest.err; then 11108 soname=conftest 11109 lib=conftest 11110 libobjs=conftest.$ac_objext 11111 deplibs= 11112 wl=$lt_prog_compiler_wl_CXX 11113 pic_flag=$lt_prog_compiler_pic_CXX 11114 compiler_flags=-v 11115 linker_flags=-v 11116 verstring= 11117 output_objdir=. 11118 libname=conftest 11119 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11120 allow_undefined_flag_CXX= 11121 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11122 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11123 ac_status=$? 11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11125 (exit $ac_status); } 11126 then 11127 archive_cmds_need_lc_CXX=no 11128 else 11129 archive_cmds_need_lc_CXX=yes 11130 fi 11131 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11132 else 11133 cat conftest.err 1>&5 11134 fi 11135 $rm conftest* 11136 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11137echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11138 ;; 11139 esac 11140 fi 11141 ;; 11142esac 11143 11144echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11145echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11146library_names_spec= 11147libname_spec='lib$name' 11148soname_spec= 11149shrext_cmds=".so" 11150postinstall_cmds= 11151postuninstall_cmds= 11152finish_cmds= 11153finish_eval= 11154shlibpath_var= 11155shlibpath_overrides_runpath=unknown 11156version_type=none 11157dynamic_linker="$host_os ld.so" 11158sys_lib_dlsearch_path_spec="/lib /usr/lib" 11159if test "$GCC" = yes; then 11160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11161 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11162 # if the path contains ";" then we assume it to be the separator 11163 # otherwise default to the standard path separator (i.e. ":") - it is 11164 # assumed that no part of a normal pathname contains ";" but that should 11165 # okay in the real world where ";" in dirpaths is itself problematic. 11166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11167 else 11168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11169 fi 11170else 11171 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11172fi 11173need_lib_prefix=unknown 11174hardcode_into_libs=no 11175 11176# when you set need_version to no, make sure it does not cause -set_version 11177# flags to be left without arguments 11178need_version=unknown 11179 11180case $host_os in 11181aix3*) 11182 version_type=linux 11183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11184 shlibpath_var=LIBPATH 11185 11186 # AIX 3 has no versioning support, so we append a major version to the name. 11187 soname_spec='${libname}${release}${shared_ext}$major' 11188 ;; 11189 11190aix4* | aix5*) 11191 version_type=linux 11192 need_lib_prefix=no 11193 need_version=no 11194 hardcode_into_libs=yes 11195 if test "$host_cpu" = ia64; then 11196 # AIX 5 supports IA64 11197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11198 shlibpath_var=LD_LIBRARY_PATH 11199 else 11200 # With GCC up to 2.95.x, collect2 would create an import file 11201 # for dependence libraries. The import file would start with 11202 # the line `#! .'. This would cause the generated library to 11203 # depend on `.', always an invalid library. This was fixed in 11204 # development snapshots of GCC prior to 3.0. 11205 case $host_os in 11206 aix4 | aix4.[01] | aix4.[01].*) 11207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11208 echo ' yes ' 11209 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11210 : 11211 else 11212 can_build_shared=no 11213 fi 11214 ;; 11215 esac 11216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11217 # soname into executable. Probably we can add versioning support to 11218 # collect2, so additional links can be useful in future. 11219 if test "$aix_use_runtimelinking" = yes; then 11220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11221 # instead of lib<name>.a to let people know that these are not 11222 # typical AIX shared libraries. 11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11224 else 11225 # We preserve .a as extension for shared libraries through AIX4.2 11226 # and later when we are not doing run time linking. 11227 library_names_spec='${libname}${release}.a $libname.a' 11228 soname_spec='${libname}${release}${shared_ext}$major' 11229 fi 11230 shlibpath_var=LIBPATH 11231 fi 11232 ;; 11233 11234amigaos*) 11235 library_names_spec='$libname.ixlibrary $libname.a' 11236 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11237 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' 11238 ;; 11239 11240beos*) 11241 library_names_spec='${libname}${shared_ext}' 11242 dynamic_linker="$host_os ld.so" 11243 shlibpath_var=LIBRARY_PATH 11244 ;; 11245 11246bsdi[45]*) 11247 version_type=linux 11248 need_version=no 11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11250 soname_spec='${libname}${release}${shared_ext}$major' 11251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11252 shlibpath_var=LD_LIBRARY_PATH 11253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11255 # the default ld.so.conf also contains /usr/contrib/lib and 11256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11257 # libtool to hard-code these into programs 11258 ;; 11259 11260cygwin* | mingw* | pw32*) 11261 version_type=windows 11262 shrext_cmds=".dll" 11263 need_version=no 11264 need_lib_prefix=no 11265 11266 case $GCC,$host_os in 11267 yes,cygwin* | yes,mingw* | yes,pw32*) 11268 library_names_spec='$libname.dll.a' 11269 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11270 postinstall_cmds='base_file=`basename \${file}`~ 11271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11272 dldir=$destdir/`dirname \$dlpath`~ 11273 test -d \$dldir || mkdir -p \$dldir~ 11274 $install_prog $dir/$dlname \$dldir/$dlname~ 11275 chmod a+x \$dldir/$dlname' 11276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11277 dlpath=$dir/\$dldll~ 11278 $rm \$dlpath' 11279 shlibpath_overrides_runpath=yes 11280 11281 case $host_os in 11282 cygwin*) 11283 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11286 ;; 11287 mingw*) 11288 # MinGW DLLs use traditional 'lib' prefix 11289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11291 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11292 # It is most probably a Windows format PATH printed by 11293 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11294 # path with ; separators, and with drive letters. We can handle the 11295 # drive letters (cygwin fileutils understands them), so leave them, 11296 # especially as we might pass files found there to a mingw objdump, 11297 # which wouldn't understand a cygwinified path. Ahh. 11298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11299 else 11300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11301 fi 11302 ;; 11303 pw32*) 11304 # pw32 DLLs use 'pw' prefix rather than 'lib' 11305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11306 ;; 11307 esac 11308 ;; 11309 11310 linux*) 11311 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 11312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11313 supports_anon_versioning=no 11314 case `$LD -v 2>/dev/null` in 11315 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11318 *\ 2.11.*) ;; # other 2.11 versions 11319 *) supports_anon_versioning=yes ;; 11320 esac 11321 if test $supports_anon_versioning = yes; then 11322 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 11323cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11324$echo "local: *; };" >> $output_objdir/$libname.ver~ 11325 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11326 else 11327 $archive_expsym_cmds="$archive_cmds" 11328 fi 11329 else 11330 ld_shlibs=no 11331 fi 11332 ;; 11333 11334 *) 11335 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11336 ;; 11337 esac 11338 dynamic_linker='Win32 ld.exe' 11339 # FIXME: first we should search . and the directory the executable is in 11340 shlibpath_var=PATH 11341 ;; 11342 11343darwin* | rhapsody*) 11344 dynamic_linker="$host_os dyld" 11345 version_type=darwin 11346 need_lib_prefix=no 11347 need_version=no 11348 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11349 soname_spec='${libname}${release}${major}$shared_ext' 11350 shlibpath_overrides_runpath=yes 11351 shlibpath_var=DYLD_LIBRARY_PATH 11352 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11353 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11354 if test "$GCC" = yes; then 11355 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"` 11356 else 11357 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11358 fi 11359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11360 ;; 11361 11362dgux*) 11363 version_type=linux 11364 need_lib_prefix=no 11365 need_version=no 11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11367 soname_spec='${libname}${release}${shared_ext}$major' 11368 shlibpath_var=LD_LIBRARY_PATH 11369 ;; 11370 11371freebsd1*) 11372 dynamic_linker=no 11373 ;; 11374 11375kfreebsd*-gnu) 11376 version_type=linux 11377 need_lib_prefix=no 11378 need_version=no 11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11380 soname_spec='${libname}${release}${shared_ext}$major' 11381 shlibpath_var=LD_LIBRARY_PATH 11382 shlibpath_overrides_runpath=no 11383 hardcode_into_libs=yes 11384 dynamic_linker='GNU ld.so' 11385 ;; 11386 11387freebsd* | dragonfly*) 11388 # DragonFly does not have aout. When/if they implement a new 11389 # versioning mechanism, adjust this. 11390 if test -x /usr/bin/objformat; then 11391 objformat=`/usr/bin/objformat` 11392 else 11393 case $host_os in 11394 freebsd[123]*) objformat=aout ;; 11395 *) objformat=elf ;; 11396 esac 11397 fi 11398 # Handle Gentoo/FreeBSD as it was Linux 11399 case $host_vendor in 11400 gentoo) 11401 version_type=linux ;; 11402 *) 11403 version_type=freebsd-$objformat ;; 11404 esac 11405 11406 case $version_type in 11407 freebsd-elf*) 11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11409 need_version=no 11410 need_lib_prefix=no 11411 ;; 11412 freebsd-*) 11413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11414 need_version=yes 11415 ;; 11416 linux) 11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11418 soname_spec='${libname}${release}${shared_ext}$major' 11419 need_lib_prefix=no 11420 need_version=no 11421 ;; 11422 esac 11423 shlibpath_var=LD_LIBRARY_PATH 11424 case $host_os in 11425 freebsd2*) 11426 shlibpath_overrides_runpath=yes 11427 ;; 11428 freebsd3.[01]* | freebsdelf3.[01]*) 11429 shlibpath_overrides_runpath=yes 11430 hardcode_into_libs=yes 11431 ;; 11432 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11433 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11434 shlibpath_overrides_runpath=no 11435 hardcode_into_libs=yes 11436 ;; 11437 freebsd*) # from 4.6 on 11438 shlibpath_overrides_runpath=yes 11439 hardcode_into_libs=yes 11440 ;; 11441 esac 11442 ;; 11443 11444gnu*) 11445 version_type=linux 11446 need_lib_prefix=no 11447 need_version=no 11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11449 soname_spec='${libname}${release}${shared_ext}$major' 11450 shlibpath_var=LD_LIBRARY_PATH 11451 hardcode_into_libs=yes 11452 ;; 11453 11454hpux9* | hpux10* | hpux11*) 11455 # Give a soname corresponding to the major version so that dld.sl refuses to 11456 # link against other versions. 11457 version_type=sunos 11458 need_lib_prefix=no 11459 need_version=no 11460 case $host_cpu in 11461 ia64*) 11462 shrext_cmds='.so' 11463 hardcode_into_libs=yes 11464 dynamic_linker="$host_os dld.so" 11465 shlibpath_var=LD_LIBRARY_PATH 11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11468 soname_spec='${libname}${release}${shared_ext}$major' 11469 if test "X$HPUX_IA64_MODE" = X32; then 11470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11471 else 11472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11473 fi 11474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11475 ;; 11476 hppa*64*) 11477 shrext_cmds='.sl' 11478 hardcode_into_libs=yes 11479 dynamic_linker="$host_os dld.sl" 11480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11483 soname_spec='${libname}${release}${shared_ext}$major' 11484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11486 ;; 11487 *) 11488 shrext_cmds='.sl' 11489 dynamic_linker="$host_os dld.sl" 11490 shlibpath_var=SHLIB_PATH 11491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11493 soname_spec='${libname}${release}${shared_ext}$major' 11494 ;; 11495 esac 11496 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11497 postinstall_cmds='chmod 555 $lib' 11498 ;; 11499 11500interix3*) 11501 version_type=linux 11502 need_lib_prefix=no 11503 need_version=no 11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11505 soname_spec='${libname}${release}${shared_ext}$major' 11506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11507 shlibpath_var=LD_LIBRARY_PATH 11508 shlibpath_overrides_runpath=no 11509 hardcode_into_libs=yes 11510 ;; 11511 11512irix5* | irix6* | nonstopux*) 11513 case $host_os in 11514 nonstopux*) version_type=nonstopux ;; 11515 *) 11516 if test "$lt_cv_prog_gnu_ld" = yes; then 11517 version_type=linux 11518 else 11519 version_type=irix 11520 fi ;; 11521 esac 11522 need_lib_prefix=no 11523 need_version=no 11524 soname_spec='${libname}${release}${shared_ext}$major' 11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11526 case $host_os in 11527 irix5* | nonstopux*) 11528 libsuff= shlibsuff= 11529 ;; 11530 *) 11531 case $LD in # libtool.m4 will add one of these switches to LD 11532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11533 libsuff= shlibsuff= libmagic=32-bit;; 11534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11535 libsuff=32 shlibsuff=N32 libmagic=N32;; 11536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11537 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11538 *) libsuff= shlibsuff= libmagic=never-match;; 11539 esac 11540 ;; 11541 esac 11542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11543 shlibpath_overrides_runpath=no 11544 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11545 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11546 hardcode_into_libs=yes 11547 ;; 11548 11549# No shared lib support for Linux oldld, aout, or coff. 11550linux*oldld* | linux*aout* | linux*coff*) 11551 dynamic_linker=no 11552 ;; 11553 11554# This must be Linux ELF. 11555linux*) 11556 version_type=linux 11557 need_lib_prefix=no 11558 need_version=no 11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11560 soname_spec='${libname}${release}${shared_ext}$major' 11561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11562 shlibpath_var=LD_LIBRARY_PATH 11563 shlibpath_overrides_runpath=no 11564 # This implies no fast_install, which is unacceptable. 11565 # Some rework will be needed to allow for fast_install 11566 # before this can be enabled. 11567 hardcode_into_libs=yes 11568 11569 # Append ld.so.conf contents to the search path 11570 if test -f /etc/ld.so.conf; then 11571 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' ' '` 11572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11573 fi 11574 11575 # We used to test for /lib/ld.so.1 and disable shared libraries on 11576 # powerpc, because MkLinux only supported shared libraries with the 11577 # GNU dynamic linker. Since this was broken with cross compilers, 11578 # most powerpc-linux boxes support dynamic linking these days and 11579 # people can always --disable-shared, the test was removed, and we 11580 # assume the GNU/Linux dynamic linker is in use. 11581 dynamic_linker='GNU/Linux ld.so' 11582 ;; 11583 11584knetbsd*-gnu) 11585 version_type=linux 11586 need_lib_prefix=no 11587 need_version=no 11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11589 soname_spec='${libname}${release}${shared_ext}$major' 11590 shlibpath_var=LD_LIBRARY_PATH 11591 shlibpath_overrides_runpath=no 11592 hardcode_into_libs=yes 11593 dynamic_linker='GNU ld.so' 11594 ;; 11595 11596netbsd*) 11597 version_type=sunos 11598 need_lib_prefix=no 11599 need_version=no 11600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11603 dynamic_linker='NetBSD (a.out) ld.so' 11604 else 11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11606 soname_spec='${libname}${release}${shared_ext}$major' 11607 dynamic_linker='NetBSD ld.elf_so' 11608 fi 11609 shlibpath_var=LD_LIBRARY_PATH 11610 shlibpath_overrides_runpath=yes 11611 hardcode_into_libs=yes 11612 ;; 11613 11614newsos6) 11615 version_type=linux 11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11617 shlibpath_var=LD_LIBRARY_PATH 11618 shlibpath_overrides_runpath=yes 11619 ;; 11620 11621nto-qnx*) 11622 version_type=linux 11623 need_lib_prefix=no 11624 need_version=no 11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11626 soname_spec='${libname}${release}${shared_ext}$major' 11627 shlibpath_var=LD_LIBRARY_PATH 11628 shlibpath_overrides_runpath=yes 11629 ;; 11630 11631openbsd*) 11632 version_type=sunos 11633 sys_lib_dlsearch_path_spec="/usr/lib" 11634 need_lib_prefix=no 11635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11636 case $host_os in 11637 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11638 *) need_version=no ;; 11639 esac 11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11642 shlibpath_var=LD_LIBRARY_PATH 11643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11644 case $host_os in 11645 openbsd2.[89] | openbsd2.[89].*) 11646 shlibpath_overrides_runpath=no 11647 ;; 11648 *) 11649 shlibpath_overrides_runpath=yes 11650 ;; 11651 esac 11652 else 11653 shlibpath_overrides_runpath=yes 11654 fi 11655 ;; 11656 11657os2*) 11658 libname_spec='$name' 11659 shrext_cmds=".dll" 11660 need_lib_prefix=no 11661 library_names_spec='$libname${shared_ext} $libname.a' 11662 dynamic_linker='OS/2 ld.exe' 11663 shlibpath_var=LIBPATH 11664 ;; 11665 11666osf3* | osf4* | osf5*) 11667 version_type=osf 11668 need_lib_prefix=no 11669 need_version=no 11670 soname_spec='${libname}${release}${shared_ext}$major' 11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11672 shlibpath_var=LD_LIBRARY_PATH 11673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11675 ;; 11676 11677solaris*) 11678 version_type=linux 11679 need_lib_prefix=no 11680 need_version=no 11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11682 soname_spec='${libname}${release}${shared_ext}$major' 11683 shlibpath_var=LD_LIBRARY_PATH 11684 shlibpath_overrides_runpath=yes 11685 hardcode_into_libs=yes 11686 # ldd complains unless libraries are executable 11687 postinstall_cmds='chmod +x $lib' 11688 ;; 11689 11690sunos4*) 11691 version_type=sunos 11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11694 shlibpath_var=LD_LIBRARY_PATH 11695 shlibpath_overrides_runpath=yes 11696 if test "$with_gnu_ld" = yes; then 11697 need_lib_prefix=no 11698 fi 11699 need_version=yes 11700 ;; 11701 11702sysv4 | sysv4.3*) 11703 version_type=linux 11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11705 soname_spec='${libname}${release}${shared_ext}$major' 11706 shlibpath_var=LD_LIBRARY_PATH 11707 case $host_vendor in 11708 sni) 11709 shlibpath_overrides_runpath=no 11710 need_lib_prefix=no 11711 export_dynamic_flag_spec='${wl}-Blargedynsym' 11712 runpath_var=LD_RUN_PATH 11713 ;; 11714 siemens) 11715 need_lib_prefix=no 11716 ;; 11717 motorola) 11718 need_lib_prefix=no 11719 need_version=no 11720 shlibpath_overrides_runpath=no 11721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11722 ;; 11723 esac 11724 ;; 11725 11726sysv4*MP*) 11727 if test -d /usr/nec ;then 11728 version_type=linux 11729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11730 soname_spec='$libname${shared_ext}.$major' 11731 shlibpath_var=LD_LIBRARY_PATH 11732 fi 11733 ;; 11734 11735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11736 version_type=freebsd-elf 11737 need_lib_prefix=no 11738 need_version=no 11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11740 soname_spec='${libname}${release}${shared_ext}$major' 11741 shlibpath_var=LD_LIBRARY_PATH 11742 hardcode_into_libs=yes 11743 if test "$with_gnu_ld" = yes; then 11744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11745 shlibpath_overrides_runpath=no 11746 else 11747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11748 shlibpath_overrides_runpath=yes 11749 case $host_os in 11750 sco3.2v5*) 11751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11752 ;; 11753 esac 11754 fi 11755 sys_lib_dlsearch_path_spec='/usr/lib' 11756 ;; 11757 11758uts4*) 11759 version_type=linux 11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11761 soname_spec='${libname}${release}${shared_ext}$major' 11762 shlibpath_var=LD_LIBRARY_PATH 11763 ;; 11764 11765*) 11766 dynamic_linker=no 11767 ;; 11768esac 11769echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11770echo "${ECHO_T}$dynamic_linker" >&6 11771test "$dynamic_linker" = no && can_build_shared=no 11772 11773variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11774if test "$GCC" = yes; then 11775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11776fi 11777 11778echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11779echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11780hardcode_action_CXX= 11781if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11782 test -n "$runpath_var_CXX" || \ 11783 test "X$hardcode_automatic_CXX" = "Xyes" ; then 11784 11785 # We can hardcode non-existant directories. 11786 if test "$hardcode_direct_CXX" != no && 11787 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11788 # have to relink, otherwise we might link with an installed library 11789 # when we should be linking with a yet-to-be-installed one 11790 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11791 test "$hardcode_minus_L_CXX" != no; then 11792 # Linking always hardcodes the temporary library directory. 11793 hardcode_action_CXX=relink 11794 else 11795 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11796 hardcode_action_CXX=immediate 11797 fi 11798else 11799 # We cannot hardcode anything, or else we can only hardcode existing 11800 # directories. 11801 hardcode_action_CXX=unsupported 11802fi 11803echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11804echo "${ECHO_T}$hardcode_action_CXX" >&6 11805 11806if test "$hardcode_action_CXX" = relink; then 11807 # Fast installation is not supported 11808 enable_fast_install=no 11809elif test "$shlibpath_overrides_runpath" = yes || 11810 test "$enable_shared" = no; then 11811 # Fast installation is not necessary 11812 enable_fast_install=needless 11813fi 11814 11815 11816# The else clause should only fire when bootstrapping the 11817# libtool distribution, otherwise you forgot to ship ltmain.sh 11818# with your package, and you will get complaints that there are 11819# no rules to generate ltmain.sh. 11820if test -f "$ltmain"; then 11821 # See if we are running on zsh, and set the options which allow our commands through 11822 # without removal of \ escapes. 11823 if test -n "${ZSH_VERSION+set}" ; then 11824 setopt NO_GLOB_SUBST 11825 fi 11826 # Now quote all the things that may contain metacharacters while being 11827 # careful not to overquote the AC_SUBSTed values. We take copies of the 11828 # variables and quote the copies for generation of the libtool script. 11829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11830 SED SHELL STRIP \ 11831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11833 deplibs_check_method reload_flag reload_cmds need_locks \ 11834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11835 lt_cv_sys_global_symbol_to_c_name_address \ 11836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11837 old_postinstall_cmds old_postuninstall_cmds \ 11838 compiler_CXX \ 11839 CC_CXX \ 11840 LD_CXX \ 11841 lt_prog_compiler_wl_CXX \ 11842 lt_prog_compiler_pic_CXX \ 11843 lt_prog_compiler_static_CXX \ 11844 lt_prog_compiler_no_builtin_flag_CXX \ 11845 export_dynamic_flag_spec_CXX \ 11846 thread_safe_flag_spec_CXX \ 11847 whole_archive_flag_spec_CXX \ 11848 enable_shared_with_static_runtimes_CXX \ 11849 old_archive_cmds_CXX \ 11850 old_archive_from_new_cmds_CXX \ 11851 predep_objects_CXX \ 11852 postdep_objects_CXX \ 11853 predeps_CXX \ 11854 postdeps_CXX \ 11855 compiler_lib_search_path_CXX \ 11856 archive_cmds_CXX \ 11857 archive_expsym_cmds_CXX \ 11858 postinstall_cmds_CXX \ 11859 postuninstall_cmds_CXX \ 11860 old_archive_from_expsyms_cmds_CXX \ 11861 allow_undefined_flag_CXX \ 11862 no_undefined_flag_CXX \ 11863 export_symbols_cmds_CXX \ 11864 hardcode_libdir_flag_spec_CXX \ 11865 hardcode_libdir_flag_spec_ld_CXX \ 11866 hardcode_libdir_separator_CXX \ 11867 hardcode_automatic_CXX \ 11868 module_cmds_CXX \ 11869 module_expsym_cmds_CXX \ 11870 lt_cv_prog_compiler_c_o_CXX \ 11871 exclude_expsyms_CXX \ 11872 include_expsyms_CXX; do 11873 11874 case $var in 11875 old_archive_cmds_CXX | \ 11876 old_archive_from_new_cmds_CXX | \ 11877 archive_cmds_CXX | \ 11878 archive_expsym_cmds_CXX | \ 11879 module_cmds_CXX | \ 11880 module_expsym_cmds_CXX | \ 11881 old_archive_from_expsyms_cmds_CXX | \ 11882 export_symbols_cmds_CXX | \ 11883 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11884 postinstall_cmds | postuninstall_cmds | \ 11885 old_postinstall_cmds | old_postuninstall_cmds | \ 11886 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11887 # Double-quote double-evaled strings. 11888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11889 ;; 11890 *) 11891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11892 ;; 11893 esac 11894 done 11895 11896 case $lt_echo in 11897 *'\$0 --fallback-echo"') 11898 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11899 ;; 11900 esac 11901 11902cfgfile="$ofile" 11903 11904 cat <<__EOF__ >> "$cfgfile" 11905# ### BEGIN LIBTOOL TAG CONFIG: $tagname 11906 11907# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11908 11909# Shell to use when invoking shell scripts. 11910SHELL=$lt_SHELL 11911 11912# Whether or not to build shared libraries. 11913build_libtool_libs=$enable_shared 11914 11915# Whether or not to build static libraries. 11916build_old_libs=$enable_static 11917 11918# Whether or not to add -lc for building shared libraries. 11919build_libtool_need_lc=$archive_cmds_need_lc_CXX 11920 11921# Whether or not to disallow shared libs when runtime libs are static 11922allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 11923 11924# Whether or not to optimize for fast installation. 11925fast_install=$enable_fast_install 11926 11927# The host system. 11928host_alias=$host_alias 11929host=$host 11930host_os=$host_os 11931 11932# The build system. 11933build_alias=$build_alias 11934build=$build 11935build_os=$build_os 11936 11937# An echo program that does not interpret backslashes. 11938echo=$lt_echo 11939 11940# The archiver. 11941AR=$lt_AR 11942AR_FLAGS=$lt_AR_FLAGS 11943 11944# A C compiler. 11945LTCC=$lt_LTCC 11946 11947# LTCC compiler flags. 11948LTCFLAGS=$lt_LTCFLAGS 11949 11950# A language-specific compiler. 11951CC=$lt_compiler_CXX 11952 11953# Is the compiler the GNU C compiler? 11954with_gcc=$GCC_CXX 11955 11956# An ERE matcher. 11957EGREP=$lt_EGREP 11958 11959# The linker used to build libraries. 11960LD=$lt_LD_CXX 11961 11962# Whether we need hard or soft links. 11963LN_S=$lt_LN_S 11964 11965# A BSD-compatible nm program. 11966NM=$lt_NM 11967 11968# A symbol stripping program 11969STRIP=$lt_STRIP 11970 11971# Used to examine libraries when file_magic_cmd begins "file" 11972MAGIC_CMD=$MAGIC_CMD 11973 11974# Used on cygwin: DLL creation program. 11975DLLTOOL="$DLLTOOL" 11976 11977# Used on cygwin: object dumper. 11978OBJDUMP="$OBJDUMP" 11979 11980# Used on cygwin: assembler. 11981AS="$AS" 11982 11983# The name of the directory that contains temporary libtool files. 11984objdir=$objdir 11985 11986# How to create reloadable object files. 11987reload_flag=$lt_reload_flag 11988reload_cmds=$lt_reload_cmds 11989 11990# How to pass a linker flag through the compiler. 11991wl=$lt_lt_prog_compiler_wl_CXX 11992 11993# Object file suffix (normally "o"). 11994objext="$ac_objext" 11995 11996# Old archive suffix (normally "a"). 11997libext="$libext" 11998 11999# Shared library suffix (normally ".so"). 12000shrext_cmds='$shrext_cmds' 12001 12002# Executable file suffix (normally ""). 12003exeext="$exeext" 12004 12005# Additional compiler flags for building library objects. 12006pic_flag=$lt_lt_prog_compiler_pic_CXX 12007pic_mode=$pic_mode 12008 12009# What is the maximum length of a command? 12010max_cmd_len=$lt_cv_sys_max_cmd_len 12011 12012# Does compiler simultaneously support -c and -o options? 12013compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12014 12015# Must we lock files when doing compilation? 12016need_locks=$lt_need_locks 12017 12018# Do we need the lib prefix for modules? 12019need_lib_prefix=$need_lib_prefix 12020 12021# Do we need a version for libraries? 12022need_version=$need_version 12023 12024# Whether dlopen is supported. 12025dlopen_support=$enable_dlopen 12026 12027# Whether dlopen of programs is supported. 12028dlopen_self=$enable_dlopen_self 12029 12030# Whether dlopen of statically linked programs is supported. 12031dlopen_self_static=$enable_dlopen_self_static 12032 12033# Compiler flag to prevent dynamic linking. 12034link_static_flag=$lt_lt_prog_compiler_static_CXX 12035 12036# Compiler flag to turn off builtin functions. 12037no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12038 12039# Compiler flag to allow reflexive dlopens. 12040export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12041 12042# Compiler flag to generate shared objects directly from archives. 12043whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12044 12045# Compiler flag to generate thread-safe objects. 12046thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12047 12048# Library versioning type. 12049version_type=$version_type 12050 12051# Format of library name prefix. 12052libname_spec=$lt_libname_spec 12053 12054# List of archive names. First name is the real one, the rest are links. 12055# The last name is the one that the linker finds with -lNAME. 12056library_names_spec=$lt_library_names_spec 12057 12058# The coded name of the library, if different from the real name. 12059soname_spec=$lt_soname_spec 12060 12061# Commands used to build and install an old-style archive. 12062RANLIB=$lt_RANLIB 12063old_archive_cmds=$lt_old_archive_cmds_CXX 12064old_postinstall_cmds=$lt_old_postinstall_cmds 12065old_postuninstall_cmds=$lt_old_postuninstall_cmds 12066 12067# Create an old-style archive from a shared archive. 12068old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12069 12070# Create a temporary old-style archive to link instead of a shared archive. 12071old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12072 12073# Commands used to build and install a shared archive. 12074archive_cmds=$lt_archive_cmds_CXX 12075archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12076postinstall_cmds=$lt_postinstall_cmds 12077postuninstall_cmds=$lt_postuninstall_cmds 12078 12079# Commands used to build a loadable module (assumed same as above if empty) 12080module_cmds=$lt_module_cmds_CXX 12081module_expsym_cmds=$lt_module_expsym_cmds_CXX 12082 12083# Commands to strip libraries. 12084old_striplib=$lt_old_striplib 12085striplib=$lt_striplib 12086 12087# Dependencies to place before the objects being linked to create a 12088# shared library. 12089predep_objects=$lt_predep_objects_CXX 12090 12091# Dependencies to place after the objects being linked to create a 12092# shared library. 12093postdep_objects=$lt_postdep_objects_CXX 12094 12095# Dependencies to place before the objects being linked to create a 12096# shared library. 12097predeps=$lt_predeps_CXX 12098 12099# Dependencies to place after the objects being linked to create a 12100# shared library. 12101postdeps=$lt_postdeps_CXX 12102 12103# The library search path used internally by the compiler when linking 12104# a shared library. 12105compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12106 12107# Method to check whether dependent libraries are shared objects. 12108deplibs_check_method=$lt_deplibs_check_method 12109 12110# Command to use when deplibs_check_method == file_magic. 12111file_magic_cmd=$lt_file_magic_cmd 12112 12113# Flag that allows shared libraries with undefined symbols to be built. 12114allow_undefined_flag=$lt_allow_undefined_flag_CXX 12115 12116# Flag that forces no undefined symbols. 12117no_undefined_flag=$lt_no_undefined_flag_CXX 12118 12119# Commands used to finish a libtool library installation in a directory. 12120finish_cmds=$lt_finish_cmds 12121 12122# Same as above, but a single script fragment to be evaled but not shown. 12123finish_eval=$lt_finish_eval 12124 12125# Take the output of nm and produce a listing of raw symbols and C names. 12126global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12127 12128# Transform the output of nm in a proper C declaration 12129global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12130 12131# Transform the output of nm in a C name address pair 12132global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12133 12134# This is the shared library runtime path variable. 12135runpath_var=$runpath_var 12136 12137# This is the shared library path variable. 12138shlibpath_var=$shlibpath_var 12139 12140# Is shlibpath searched before the hard-coded library search path? 12141shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12142 12143# How to hardcode a shared library path into an executable. 12144hardcode_action=$hardcode_action_CXX 12145 12146# Whether we should hardcode library paths into libraries. 12147hardcode_into_libs=$hardcode_into_libs 12148 12149# Flag to hardcode \$libdir into a binary during linking. 12150# This must work even if \$libdir does not exist. 12151hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12152 12153# If ld is used when linking, flag to hardcode \$libdir into 12154# a binary during linking. This must work even if \$libdir does 12155# not exist. 12156hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12157 12158# Whether we need a single -rpath flag with a separated argument. 12159hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12160 12161# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12162# resulting binary. 12163hardcode_direct=$hardcode_direct_CXX 12164 12165# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12166# resulting binary. 12167hardcode_minus_L=$hardcode_minus_L_CXX 12168 12169# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12170# the resulting binary. 12171hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12172 12173# Set to yes if building a shared library automatically hardcodes DIR into the library 12174# and all subsequent libraries and executables linked against it. 12175hardcode_automatic=$hardcode_automatic_CXX 12176 12177# Variables whose values should be saved in libtool wrapper scripts and 12178# restored at relink time. 12179variables_saved_for_relink="$variables_saved_for_relink" 12180 12181# Whether libtool must link a program against all its dependency libraries. 12182link_all_deplibs=$link_all_deplibs_CXX 12183 12184# Compile-time system search path for libraries 12185sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12186 12187# Run-time system search path for libraries 12188sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12189 12190# Fix the shell variable \$srcfile for the compiler. 12191fix_srcfile_path="$fix_srcfile_path_CXX" 12192 12193# Set to yes if exported symbols are required. 12194always_export_symbols=$always_export_symbols_CXX 12195 12196# The commands to list exported symbols. 12197export_symbols_cmds=$lt_export_symbols_cmds_CXX 12198 12199# The commands to extract the exported symbol list from a shared archive. 12200extract_expsyms_cmds=$lt_extract_expsyms_cmds 12201 12202# Symbols that should not be listed in the preloaded symbols. 12203exclude_expsyms=$lt_exclude_expsyms_CXX 12204 12205# Symbols that must always be exported. 12206include_expsyms=$lt_include_expsyms_CXX 12207 12208# ### END LIBTOOL TAG CONFIG: $tagname 12209 12210__EOF__ 12211 12212 12213else 12214 # If there is no Makefile yet, we rely on a make rule to execute 12215 # `config.status --recheck' to rerun these tests and create the 12216 # libtool script then. 12217 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12218 if test -f "$ltmain_in"; then 12219 test -f Makefile && make "$ltmain" 12220 fi 12221fi 12222 12223 12224ac_ext=c 12225ac_cpp='$CPP $CPPFLAGS' 12226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12228ac_compiler_gnu=$ac_cv_c_compiler_gnu 12229 12230CC=$lt_save_CC 12231LDCXX=$LD 12232LD=$lt_save_LD 12233GCC=$lt_save_GCC 12234with_gnu_ldcxx=$with_gnu_ld 12235with_gnu_ld=$lt_save_with_gnu_ld 12236lt_cv_path_LDCXX=$lt_cv_path_LD 12237lt_cv_path_LD=$lt_save_path_LD 12238lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12239lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12240 12241 else 12242 tagname="" 12243 fi 12244 ;; 12245 12246 F77) 12247 if test -n "$F77" && test "X$F77" != "Xno"; then 12248 12249ac_ext=f 12250ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12251ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12252ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12253 12254 12255archive_cmds_need_lc_F77=no 12256allow_undefined_flag_F77= 12257always_export_symbols_F77=no 12258archive_expsym_cmds_F77= 12259export_dynamic_flag_spec_F77= 12260hardcode_direct_F77=no 12261hardcode_libdir_flag_spec_F77= 12262hardcode_libdir_flag_spec_ld_F77= 12263hardcode_libdir_separator_F77= 12264hardcode_minus_L_F77=no 12265hardcode_automatic_F77=no 12266module_cmds_F77= 12267module_expsym_cmds_F77= 12268link_all_deplibs_F77=unknown 12269old_archive_cmds_F77=$old_archive_cmds 12270no_undefined_flag_F77= 12271whole_archive_flag_spec_F77= 12272enable_shared_with_static_runtimes_F77=no 12273 12274# Source file extension for f77 test sources. 12275ac_ext=f 12276 12277# Object file extension for compiled f77 test sources. 12278objext=o 12279objext_F77=$objext 12280 12281# Code to be used in simple compile tests 12282lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12283 12284# Code to be used in simple link tests 12285lt_simple_link_test_code=" program t\n end\n" 12286 12287# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12288 12289# If no C compiler was specified, use CC. 12290LTCC=${LTCC-"$CC"} 12291 12292# If no C compiler flags were specified, use CFLAGS. 12293LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12294 12295# Allow CC to be a program name with arguments. 12296compiler=$CC 12297 12298 12299# save warnings/boilerplate of simple test code 12300ac_outfile=conftest.$ac_objext 12301printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12302eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12303_lt_compiler_boilerplate=`cat conftest.err` 12304$rm conftest* 12305 12306ac_outfile=conftest.$ac_objext 12307printf "$lt_simple_link_test_code" >conftest.$ac_ext 12308eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12309_lt_linker_boilerplate=`cat conftest.err` 12310$rm conftest* 12311 12312 12313# Allow CC to be a program name with arguments. 12314lt_save_CC="$CC" 12315CC=${F77-"f77"} 12316compiler=$CC 12317compiler_F77=$CC 12318for cc_temp in $compiler""; do 12319 case $cc_temp in 12320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12322 \-*) ;; 12323 *) break;; 12324 esac 12325done 12326cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12327 12328 12329echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12330echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12331echo "$as_me:$LINENO: result: $can_build_shared" >&5 12332echo "${ECHO_T}$can_build_shared" >&6 12333 12334echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12335echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12336test "$can_build_shared" = "no" && enable_shared=no 12337 12338# On AIX, shared libraries and static libraries use the same namespace, and 12339# are all built from PIC. 12340case $host_os in 12341aix3*) 12342 test "$enable_shared" = yes && enable_static=no 12343 if test -n "$RANLIB"; then 12344 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12345 postinstall_cmds='$RANLIB $lib' 12346 fi 12347 ;; 12348aix4* | aix5*) 12349 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12350 test "$enable_shared" = yes && enable_static=no 12351 fi 12352 ;; 12353esac 12354echo "$as_me:$LINENO: result: $enable_shared" >&5 12355echo "${ECHO_T}$enable_shared" >&6 12356 12357echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12358echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12359# Make sure either enable_shared or enable_static is yes. 12360test "$enable_shared" = yes || enable_static=yes 12361echo "$as_me:$LINENO: result: $enable_static" >&5 12362echo "${ECHO_T}$enable_static" >&6 12363 12364GCC_F77="$G77" 12365LD_F77="$LD" 12366 12367lt_prog_compiler_wl_F77= 12368lt_prog_compiler_pic_F77= 12369lt_prog_compiler_static_F77= 12370 12371echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12372echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12373 12374 if test "$GCC" = yes; then 12375 lt_prog_compiler_wl_F77='-Wl,' 12376 lt_prog_compiler_static_F77='-static' 12377 12378 case $host_os in 12379 aix*) 12380 # All AIX code is PIC. 12381 if test "$host_cpu" = ia64; then 12382 # AIX 5 now supports IA64 processor 12383 lt_prog_compiler_static_F77='-Bstatic' 12384 fi 12385 ;; 12386 12387 amigaos*) 12388 # FIXME: we need at least 68020 code to build shared libraries, but 12389 # adding the `-m68020' flag to GCC prevents building anything better, 12390 # like `-m68040'. 12391 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12392 ;; 12393 12394 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12395 # PIC is the default for these OSes. 12396 ;; 12397 12398 mingw* | pw32* | os2*) 12399 # This hack is so that the source file can tell whether it is being 12400 # built for inclusion in a dll (and should export symbols for example). 12401 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12402 ;; 12403 12404 darwin* | rhapsody*) 12405 # PIC is the default on this platform 12406 # Common symbols not allowed in MH_DYLIB files 12407 lt_prog_compiler_pic_F77='-fno-common' 12408 ;; 12409 12410 interix3*) 12411 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12412 # Instead, we relocate shared libraries at runtime. 12413 ;; 12414 12415 msdosdjgpp*) 12416 # Just because we use GCC doesn't mean we suddenly get shared libraries 12417 # on systems that don't support them. 12418 lt_prog_compiler_can_build_shared_F77=no 12419 enable_shared=no 12420 ;; 12421 12422 sysv4*MP*) 12423 if test -d /usr/nec; then 12424 lt_prog_compiler_pic_F77=-Kconform_pic 12425 fi 12426 ;; 12427 12428 hpux*) 12429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12430 # not for PA HP-UX. 12431 case $host_cpu in 12432 hppa*64*|ia64*) 12433 # +Z the default 12434 ;; 12435 *) 12436 lt_prog_compiler_pic_F77='-fPIC' 12437 ;; 12438 esac 12439 ;; 12440 12441 *) 12442 lt_prog_compiler_pic_F77='-fPIC' 12443 ;; 12444 esac 12445 else 12446 # PORTME Check for flag to pass linker flags through the system compiler. 12447 case $host_os in 12448 aix*) 12449 lt_prog_compiler_wl_F77='-Wl,' 12450 if test "$host_cpu" = ia64; then 12451 # AIX 5 now supports IA64 processor 12452 lt_prog_compiler_static_F77='-Bstatic' 12453 else 12454 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12455 fi 12456 ;; 12457 darwin*) 12458 # PIC is the default on this platform 12459 # Common symbols not allowed in MH_DYLIB files 12460 case $cc_basename in 12461 xlc*) 12462 lt_prog_compiler_pic_F77='-qnocommon' 12463 lt_prog_compiler_wl_F77='-Wl,' 12464 ;; 12465 esac 12466 ;; 12467 12468 mingw* | pw32* | os2*) 12469 # This hack is so that the source file can tell whether it is being 12470 # built for inclusion in a dll (and should export symbols for example). 12471 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12472 ;; 12473 12474 hpux9* | hpux10* | hpux11*) 12475 lt_prog_compiler_wl_F77='-Wl,' 12476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12477 # not for PA HP-UX. 12478 case $host_cpu in 12479 hppa*64*|ia64*) 12480 # +Z the default 12481 ;; 12482 *) 12483 lt_prog_compiler_pic_F77='+Z' 12484 ;; 12485 esac 12486 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12487 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12488 ;; 12489 12490 irix5* | irix6* | nonstopux*) 12491 lt_prog_compiler_wl_F77='-Wl,' 12492 # PIC (with -KPIC) is the default. 12493 lt_prog_compiler_static_F77='-non_shared' 12494 ;; 12495 12496 newsos6) 12497 lt_prog_compiler_pic_F77='-KPIC' 12498 lt_prog_compiler_static_F77='-Bstatic' 12499 ;; 12500 12501 linux*) 12502 case $cc_basename in 12503 icc* | ecc*) 12504 lt_prog_compiler_wl_F77='-Wl,' 12505 lt_prog_compiler_pic_F77='-KPIC' 12506 lt_prog_compiler_static_F77='-static' 12507 ;; 12508 pgcc* | pgf77* | pgf90* | pgf95*) 12509 # Portland Group compilers (*not* the Pentium gcc compiler, 12510 # which looks to be a dead project) 12511 lt_prog_compiler_wl_F77='-Wl,' 12512 lt_prog_compiler_pic_F77='-fpic' 12513 lt_prog_compiler_static_F77='-Bstatic' 12514 ;; 12515 ccc*) 12516 lt_prog_compiler_wl_F77='-Wl,' 12517 # All Alpha code is PIC. 12518 lt_prog_compiler_static_F77='-non_shared' 12519 ;; 12520 esac 12521 ;; 12522 12523 osf3* | osf4* | osf5*) 12524 lt_prog_compiler_wl_F77='-Wl,' 12525 # All OSF/1 code is PIC. 12526 lt_prog_compiler_static_F77='-non_shared' 12527 ;; 12528 12529 solaris*) 12530 lt_prog_compiler_pic_F77='-KPIC' 12531 lt_prog_compiler_static_F77='-Bstatic' 12532 case $cc_basename in 12533 f77* | f90* | f95*) 12534 lt_prog_compiler_wl_F77='-Qoption ld ';; 12535 *) 12536 lt_prog_compiler_wl_F77='-Wl,';; 12537 esac 12538 ;; 12539 12540 sunos4*) 12541 lt_prog_compiler_wl_F77='-Qoption ld ' 12542 lt_prog_compiler_pic_F77='-PIC' 12543 lt_prog_compiler_static_F77='-Bstatic' 12544 ;; 12545 12546 sysv4 | sysv4.2uw2* | sysv4.3*) 12547 lt_prog_compiler_wl_F77='-Wl,' 12548 lt_prog_compiler_pic_F77='-KPIC' 12549 lt_prog_compiler_static_F77='-Bstatic' 12550 ;; 12551 12552 sysv4*MP*) 12553 if test -d /usr/nec ;then 12554 lt_prog_compiler_pic_F77='-Kconform_pic' 12555 lt_prog_compiler_static_F77='-Bstatic' 12556 fi 12557 ;; 12558 12559 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12560 lt_prog_compiler_wl_F77='-Wl,' 12561 lt_prog_compiler_pic_F77='-KPIC' 12562 lt_prog_compiler_static_F77='-Bstatic' 12563 ;; 12564 12565 unicos*) 12566 lt_prog_compiler_wl_F77='-Wl,' 12567 lt_prog_compiler_can_build_shared_F77=no 12568 ;; 12569 12570 uts4*) 12571 lt_prog_compiler_pic_F77='-pic' 12572 lt_prog_compiler_static_F77='-Bstatic' 12573 ;; 12574 12575 *) 12576 lt_prog_compiler_can_build_shared_F77=no 12577 ;; 12578 esac 12579 fi 12580 12581echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12582echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12583 12584# 12585# Check to make sure the PIC flag actually works. 12586# 12587if test -n "$lt_prog_compiler_pic_F77"; then 12588 12589echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12590echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12591if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12592 echo $ECHO_N "(cached) $ECHO_C" >&6 12593else 12594 lt_prog_compiler_pic_works_F77=no 12595 ac_outfile=conftest.$ac_objext 12596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12597 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12598 # Insert the option either (1) after the last *FLAGS variable, or 12599 # (2) before a word containing "conftest.", or (3) at the end. 12600 # Note that $ac_compile itself does not contain backslashes and begins 12601 # with a dollar sign (not a hyphen), so the echo should work correctly. 12602 # The option is referenced via a variable to avoid confusing sed. 12603 lt_compile=`echo "$ac_compile" | $SED \ 12604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12606 -e 's:$: $lt_compiler_flag:'` 12607 (eval echo "\"\$as_me:12607: $lt_compile\"" >&5) 12608 (eval "$lt_compile" 2>conftest.err) 12609 ac_status=$? 12610 cat conftest.err >&5 12611 echo "$as_me:12611: \$? = $ac_status" >&5 12612 if (exit $ac_status) && test -s "$ac_outfile"; then 12613 # The compiler can only warn and ignore the option if not recognized 12614 # So say no if there are warnings other than the usual output. 12615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12618 lt_prog_compiler_pic_works_F77=yes 12619 fi 12620 fi 12621 $rm conftest* 12622 12623fi 12624echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12625echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12626 12627if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12628 case $lt_prog_compiler_pic_F77 in 12629 "" | " "*) ;; 12630 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12631 esac 12632else 12633 lt_prog_compiler_pic_F77= 12634 lt_prog_compiler_can_build_shared_F77=no 12635fi 12636 12637fi 12638case $host_os in 12639 # For platforms which do not support PIC, -DPIC is meaningless: 12640 *djgpp*) 12641 lt_prog_compiler_pic_F77= 12642 ;; 12643 *) 12644 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12645 ;; 12646esac 12647 12648# 12649# Check to make sure the static flag actually works. 12650# 12651wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 12652echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12653echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 12654if test "${lt_prog_compiler_static_works_F77+set}" = set; then 12655 echo $ECHO_N "(cached) $ECHO_C" >&6 12656else 12657 lt_prog_compiler_static_works_F77=no 12658 save_LDFLAGS="$LDFLAGS" 12659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12660 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12662 # The linker can only warn and ignore the option if not recognized 12663 # So say no if there are warnings 12664 if test -s conftest.err; then 12665 # Append any errors to the config.log. 12666 cat conftest.err 1>&5 12667 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12669 if diff conftest.exp conftest.er2 >/dev/null; then 12670 lt_prog_compiler_static_works_F77=yes 12671 fi 12672 else 12673 lt_prog_compiler_static_works_F77=yes 12674 fi 12675 fi 12676 $rm conftest* 12677 LDFLAGS="$save_LDFLAGS" 12678 12679fi 12680echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 12681echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 12682 12683if test x"$lt_prog_compiler_static_works_F77" = xyes; then 12684 : 12685else 12686 lt_prog_compiler_static_F77= 12687fi 12688 12689 12690echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12691echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12692if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 12693 echo $ECHO_N "(cached) $ECHO_C" >&6 12694else 12695 lt_cv_prog_compiler_c_o_F77=no 12696 $rm -r conftest 2>/dev/null 12697 mkdir conftest 12698 cd conftest 12699 mkdir out 12700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12701 12702 lt_compiler_flag="-o out/conftest2.$ac_objext" 12703 # Insert the option either (1) after the last *FLAGS variable, or 12704 # (2) before a word containing "conftest.", or (3) at the end. 12705 # Note that $ac_compile itself does not contain backslashes and begins 12706 # with a dollar sign (not a hyphen), so the echo should work correctly. 12707 lt_compile=`echo "$ac_compile" | $SED \ 12708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12710 -e 's:$: $lt_compiler_flag:'` 12711 (eval echo "\"\$as_me:12711: $lt_compile\"" >&5) 12712 (eval "$lt_compile" 2>out/conftest.err) 12713 ac_status=$? 12714 cat out/conftest.err >&5 12715 echo "$as_me:12715: \$? = $ac_status" >&5 12716 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12717 then 12718 # The compiler can only warn and ignore the option if not recognized 12719 # So say no if there are warnings 12720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12723 lt_cv_prog_compiler_c_o_F77=yes 12724 fi 12725 fi 12726 chmod u+w . 2>&5 12727 $rm conftest* 12728 # SGI C++ compiler will create directory out/ii_files/ for 12729 # template instantiation 12730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12731 $rm out/* && rmdir out 12732 cd .. 12733 rmdir conftest 12734 $rm conftest* 12735 12736fi 12737echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 12738echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 12739 12740 12741hard_links="nottested" 12742if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 12743 # do not overwrite the value of need_locks provided by the user 12744 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12745echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12746 hard_links=yes 12747 $rm conftest* 12748 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12749 touch conftest.a 12750 ln conftest.a conftest.b 2>&5 || hard_links=no 12751 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12752 echo "$as_me:$LINENO: result: $hard_links" >&5 12753echo "${ECHO_T}$hard_links" >&6 12754 if test "$hard_links" = no; then 12755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12756echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12757 need_locks=warn 12758 fi 12759else 12760 need_locks=no 12761fi 12762 12763echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12764echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12765 12766 runpath_var= 12767 allow_undefined_flag_F77= 12768 enable_shared_with_static_runtimes_F77=no 12769 archive_cmds_F77= 12770 archive_expsym_cmds_F77= 12771 old_archive_From_new_cmds_F77= 12772 old_archive_from_expsyms_cmds_F77= 12773 export_dynamic_flag_spec_F77= 12774 whole_archive_flag_spec_F77= 12775 thread_safe_flag_spec_F77= 12776 hardcode_libdir_flag_spec_F77= 12777 hardcode_libdir_flag_spec_ld_F77= 12778 hardcode_libdir_separator_F77= 12779 hardcode_direct_F77=no 12780 hardcode_minus_L_F77=no 12781 hardcode_shlibpath_var_F77=unsupported 12782 link_all_deplibs_F77=unknown 12783 hardcode_automatic_F77=no 12784 module_cmds_F77= 12785 module_expsym_cmds_F77= 12786 always_export_symbols_F77=no 12787 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12788 # include_expsyms should be a list of space-separated symbols to be *always* 12789 # included in the symbol list 12790 include_expsyms_F77= 12791 # exclude_expsyms can be an extended regexp of symbols to exclude 12792 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12793 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12794 # as well as any symbol that contains `d'. 12795 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 12796 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12797 # platforms (ab)use it in PIC code, but their linkers get confused if 12798 # the symbol is explicitly referenced. Since portable code cannot 12799 # rely on this symbol name, it's probably fine to never include it in 12800 # preloaded symbol tables. 12801 extract_expsyms_cmds= 12802 # Just being paranoid about ensuring that cc_basename is set. 12803 for cc_temp in $compiler""; do 12804 case $cc_temp in 12805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12807 \-*) ;; 12808 *) break;; 12809 esac 12810done 12811cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12812 12813 case $host_os in 12814 cygwin* | mingw* | pw32*) 12815 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12816 # When not using gcc, we currently assume that we are using 12817 # Microsoft Visual C++. 12818 if test "$GCC" != yes; then 12819 with_gnu_ld=no 12820 fi 12821 ;; 12822 interix*) 12823 # we just hope/assume this is gcc and not c89 (= MSVC++) 12824 with_gnu_ld=yes 12825 ;; 12826 openbsd*) 12827 with_gnu_ld=no 12828 ;; 12829 esac 12830 12831 ld_shlibs_F77=yes 12832 if test "$with_gnu_ld" = yes; then 12833 # If archive_cmds runs LD, not CC, wlarc should be empty 12834 wlarc='${wl}' 12835 12836 # Set some defaults for GNU ld with shared library support. These 12837 # are reset later if shared libraries are not supported. Putting them 12838 # here allows them to be overridden if necessary. 12839 runpath_var=LD_RUN_PATH 12840 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 12841 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 12842 # ancient GNU ld didn't support --whole-archive et. al. 12843 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 12844 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12845 else 12846 whole_archive_flag_spec_F77= 12847 fi 12848 supports_anon_versioning=no 12849 case `$LD -v 2>/dev/null` in 12850 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12851 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12852 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12853 *\ 2.11.*) ;; # other 2.11 versions 12854 *) supports_anon_versioning=yes ;; 12855 esac 12856 12857 # See if GNU ld supports shared libraries. 12858 case $host_os in 12859 aix3* | aix4* | aix5*) 12860 # On AIX/PPC, the GNU linker is very broken 12861 if test "$host_cpu" != ia64; then 12862 ld_shlibs_F77=no 12863 cat <<EOF 1>&2 12864 12865*** Warning: the GNU linker, at least up to release 2.9.1, is reported 12866*** to be unable to reliably create shared libraries on AIX. 12867*** Therefore, libtool is disabling shared libraries support. If you 12868*** really care for shared libraries, you may want to modify your PATH 12869*** so that a non-GNU linker is found, and then restart. 12870 12871EOF 12872 fi 12873 ;; 12874 12875 amigaos*) 12876 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)' 12877 hardcode_libdir_flag_spec_F77='-L$libdir' 12878 hardcode_minus_L_F77=yes 12879 12880 # Samuel A. Falvo II <[email protected]> reports 12881 # that the semantics of dynamic libraries on AmigaOS, at least up 12882 # to version 4, is to share data among multiple programs linked 12883 # with the same dynamic library. Since this doesn't match the 12884 # behavior of shared libraries on other platforms, we can't use 12885 # them. 12886 ld_shlibs_F77=no 12887 ;; 12888 12889 beos*) 12890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12891 allow_undefined_flag_F77=unsupported 12892 # Joseph Beckenbach <[email protected]> says some releases of gcc 12893 # support --undefined. This deserves some investigation. FIXME 12894 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12895 else 12896 ld_shlibs_F77=no 12897 fi 12898 ;; 12899 12900 cygwin* | mingw* | pw32*) 12901 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 12902 # as there is no search path for DLLs. 12903 hardcode_libdir_flag_spec_F77='-L$libdir' 12904 allow_undefined_flag_F77=unsupported 12905 always_export_symbols_F77=no 12906 enable_shared_with_static_runtimes_F77=yes 12907 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12908 12909 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12911 # If the export-symbols file already is a .def file (1st line 12912 # is EXPORTS), use it as is; otherwise, prepend... 12913 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12914 cp $export_symbols $output_objdir/$soname.def; 12915 else 12916 echo EXPORTS > $output_objdir/$soname.def; 12917 cat $export_symbols >> $output_objdir/$soname.def; 12918 fi~ 12919 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12920 else 12921 ld_shlibs_F77=no 12922 fi 12923 ;; 12924 12925 interix3*) 12926 hardcode_direct_F77=no 12927 hardcode_shlibpath_var_F77=no 12928 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 12929 export_dynamic_flag_spec_F77='${wl}-E' 12930 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12931 # Instead, shared libraries are loaded at an image base (0x10000000 by 12932 # default) and relocated if they conflict, which is a slow very memory 12933 # consuming and fragmenting process. To avoid this, we pick a random, 12934 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12935 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12936 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' 12937 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' 12938 ;; 12939 12940 linux*) 12941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12942 tmp_addflag= 12943 case $cc_basename,$host_cpu in 12944 pgcc*) # Portland Group C compiler 12945 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' 12946 tmp_addflag=' $pic_flag' 12947 ;; 12948 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 12949 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' 12950 tmp_addflag=' $pic_flag -Mnomain' ;; 12951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12952 tmp_addflag=' -i_dynamic' ;; 12953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12954 tmp_addflag=' -i_dynamic -nofor_main' ;; 12955 ifc* | ifort*) # Intel Fortran compiler 12956 tmp_addflag=' -nofor_main' ;; 12957 esac 12958 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12959 12960 if test $supports_anon_versioning = yes; then 12961 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 12962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12963 $echo "local: *; };" >> $output_objdir/$libname.ver~ 12964 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12965 fi 12966 else 12967 ld_shlibs_F77=no 12968 fi 12969 ;; 12970 12971 netbsd*) 12972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12973 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12974 wlarc= 12975 else 12976 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12977 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12978 fi 12979 ;; 12980 12981 solaris*) 12982 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 12983 ld_shlibs_F77=no 12984 cat <<EOF 1>&2 12985 12986*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12987*** create shared libraries on Solaris systems. Therefore, libtool 12988*** is disabling shared libraries support. We urge you to upgrade GNU 12989*** binutils to release 2.9.1 or newer. Another option is to modify 12990*** your PATH or compiler configuration so that the native linker is 12991*** used, and then restart. 12992 12993EOF 12994 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12995 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12996 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12997 else 12998 ld_shlibs_F77=no 12999 fi 13000 ;; 13001 13002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13003 case `$LD -v 2>&1` in 13004 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13005 ld_shlibs_F77=no 13006 cat <<_LT_EOF 1>&2 13007 13008*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13009*** reliably create shared libraries on SCO systems. Therefore, libtool 13010*** is disabling shared libraries support. We urge you to upgrade GNU 13011*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13012*** your PATH or compiler configuration so that the native linker is 13013*** used, and then restart. 13014 13015_LT_EOF 13016 ;; 13017 *) 13018 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13019 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13020 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13021 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13022 else 13023 ld_shlibs_F77=no 13024 fi 13025 ;; 13026 esac 13027 ;; 13028 13029 sunos4*) 13030 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13031 wlarc= 13032 hardcode_direct_F77=yes 13033 hardcode_shlibpath_var_F77=no 13034 ;; 13035 13036 *) 13037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13038 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13039 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13040 else 13041 ld_shlibs_F77=no 13042 fi 13043 ;; 13044 esac 13045 13046 if test "$ld_shlibs_F77" = no; then 13047 runpath_var= 13048 hardcode_libdir_flag_spec_F77= 13049 export_dynamic_flag_spec_F77= 13050 whole_archive_flag_spec_F77= 13051 fi 13052 else 13053 # PORTME fill in a description of your system's linker (not GNU ld) 13054 case $host_os in 13055 aix3*) 13056 allow_undefined_flag_F77=unsupported 13057 always_export_symbols_F77=yes 13058 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' 13059 # Note: this linker hardcodes the directories in LIBPATH if there 13060 # are no directories specified by -L. 13061 hardcode_minus_L_F77=yes 13062 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13063 # Neither direct hardcoding nor static linking is supported with a 13064 # broken collect2. 13065 hardcode_direct_F77=unsupported 13066 fi 13067 ;; 13068 13069 aix4* | aix5*) 13070 if test "$host_cpu" = ia64; then 13071 # On IA64, the linker does run time linking by default, so we don't 13072 # have to do anything special. 13073 aix_use_runtimelinking=no 13074 exp_sym_flag='-Bexport' 13075 no_entry_flag="" 13076 else 13077 # If we're using GNU nm, then we don't want the "-C" option. 13078 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13079 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13080 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' 13081 else 13082 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' 13083 fi 13084 aix_use_runtimelinking=no 13085 13086 # Test if we are trying to use run time linking or normal 13087 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13088 # need to do runtime linking. 13089 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13090 for ld_flag in $LDFLAGS; do 13091 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13092 aix_use_runtimelinking=yes 13093 break 13094 fi 13095 done 13096 ;; 13097 esac 13098 13099 exp_sym_flag='-bexport' 13100 no_entry_flag='-bnoentry' 13101 fi 13102 13103 # When large executables or shared objects are built, AIX ld can 13104 # have problems creating the table of contents. If linking a library 13105 # or program results in "error TOC overflow" add -mminimal-toc to 13106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13108 13109 archive_cmds_F77='' 13110 hardcode_direct_F77=yes 13111 hardcode_libdir_separator_F77=':' 13112 link_all_deplibs_F77=yes 13113 13114 if test "$GCC" = yes; then 13115 case $host_os in aix4.[012]|aix4.[012].*) 13116 # We only want to do this on AIX 4.2 and lower, the check 13117 # below for broken collect2 doesn't work under 4.3+ 13118 collect2name=`${CC} -print-prog-name=collect2` 13119 if test -f "$collect2name" && \ 13120 strings "$collect2name" | grep resolve_lib_name >/dev/null 13121 then 13122 # We have reworked collect2 13123 hardcode_direct_F77=yes 13124 else 13125 # We have old collect2 13126 hardcode_direct_F77=unsupported 13127 # It fails to find uninstalled libraries when the uninstalled 13128 # path is not listed in the libpath. Setting hardcode_minus_L 13129 # to unsupported forces relinking 13130 hardcode_minus_L_F77=yes 13131 hardcode_libdir_flag_spec_F77='-L$libdir' 13132 hardcode_libdir_separator_F77= 13133 fi 13134 ;; 13135 esac 13136 shared_flag='-shared' 13137 if test "$aix_use_runtimelinking" = yes; then 13138 shared_flag="$shared_flag "'${wl}-G' 13139 fi 13140 else 13141 # not using gcc 13142 if test "$host_cpu" = ia64; then 13143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13144 # chokes on -Wl,-G. The following line is correct: 13145 shared_flag='-G' 13146 else 13147 if test "$aix_use_runtimelinking" = yes; then 13148 shared_flag='${wl}-G' 13149 else 13150 shared_flag='${wl}-bM:SRE' 13151 fi 13152 fi 13153 fi 13154 13155 # It seems that -bexpall does not export symbols beginning with 13156 # underscore (_), so it is better to generate a list of symbols to export. 13157 always_export_symbols_F77=yes 13158 if test "$aix_use_runtimelinking" = yes; then 13159 # Warning - without using the other runtime loading flags (-brtl), 13160 # -berok will link without error, but may produce a broken library. 13161 allow_undefined_flag_F77='-berok' 13162 # Determine the default libpath from the value encoded in an empty executable. 13163 cat >conftest.$ac_ext <<_ACEOF 13164 program main 13165 13166 end 13167_ACEOF 13168rm -f conftest.$ac_objext conftest$ac_exeext 13169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13170 (eval $ac_link) 2>conftest.er1 13171 ac_status=$? 13172 grep -v '^ *+' conftest.er1 >conftest.err 13173 rm -f conftest.er1 13174 cat conftest.err >&5 13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13176 (exit $ac_status); } && 13177 { ac_try='test -z "$ac_f77_werror_flag" 13178 || test ! -s conftest.err' 13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13180 (eval $ac_try) 2>&5 13181 ac_status=$? 13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13183 (exit $ac_status); }; } && 13184 { ac_try='test -s conftest$ac_exeext' 13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13186 (eval $ac_try) 2>&5 13187 ac_status=$? 13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13189 (exit $ac_status); }; }; then 13190 13191aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13192}'` 13193# Check for a 64-bit object if we didn't find anything. 13194if 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; } 13195}'`; fi 13196else 13197 echo "$as_me: failed program was:" >&5 13198sed 's/^/| /' conftest.$ac_ext >&5 13199 13200fi 13201rm -f conftest.err conftest.$ac_objext \ 13202 conftest$ac_exeext conftest.$ac_ext 13203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13204 13205 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13206 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" 13207 else 13208 if test "$host_cpu" = ia64; then 13209 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13210 allow_undefined_flag_F77="-z nodefs" 13211 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" 13212 else 13213 # Determine the default libpath from the value encoded in an empty executable. 13214 cat >conftest.$ac_ext <<_ACEOF 13215 program main 13216 13217 end 13218_ACEOF 13219rm -f conftest.$ac_objext conftest$ac_exeext 13220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13221 (eval $ac_link) 2>conftest.er1 13222 ac_status=$? 13223 grep -v '^ *+' conftest.er1 >conftest.err 13224 rm -f conftest.er1 13225 cat conftest.err >&5 13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13227 (exit $ac_status); } && 13228 { ac_try='test -z "$ac_f77_werror_flag" 13229 || test ! -s conftest.err' 13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13231 (eval $ac_try) 2>&5 13232 ac_status=$? 13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13234 (exit $ac_status); }; } && 13235 { ac_try='test -s conftest$ac_exeext' 13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13237 (eval $ac_try) 2>&5 13238 ac_status=$? 13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13240 (exit $ac_status); }; }; then 13241 13242aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13243}'` 13244# Check for a 64-bit object if we didn't find anything. 13245if 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; } 13246}'`; fi 13247else 13248 echo "$as_me: failed program was:" >&5 13249sed 's/^/| /' conftest.$ac_ext >&5 13250 13251fi 13252rm -f conftest.err conftest.$ac_objext \ 13253 conftest$ac_exeext conftest.$ac_ext 13254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13255 13256 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13257 # Warning - without using the other run time loading flags, 13258 # -berok will link without error, but may produce a broken library. 13259 no_undefined_flag_F77=' ${wl}-bernotok' 13260 allow_undefined_flag_F77=' ${wl}-berok' 13261 # Exported symbols can be pulled into shared objects from archives 13262 whole_archive_flag_spec_F77='$convenience' 13263 archive_cmds_need_lc_F77=yes 13264 # This is similar to how AIX traditionally builds its shared libraries. 13265 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' 13266 fi 13267 fi 13268 ;; 13269 13270 amigaos*) 13271 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)' 13272 hardcode_libdir_flag_spec_F77='-L$libdir' 13273 hardcode_minus_L_F77=yes 13274 # see comment about different semantics on the GNU ld section 13275 ld_shlibs_F77=no 13276 ;; 13277 13278 bsdi[45]*) 13279 export_dynamic_flag_spec_F77=-rdynamic 13280 ;; 13281 13282 cygwin* | mingw* | pw32*) 13283 # When not using gcc, we currently assume that we are using 13284 # Microsoft Visual C++. 13285 # hardcode_libdir_flag_spec is actually meaningless, as there is 13286 # no search path for DLLs. 13287 hardcode_libdir_flag_spec_F77=' ' 13288 allow_undefined_flag_F77=unsupported 13289 # Tell ltmain to make .lib files, not .a files. 13290 libext=lib 13291 # Tell ltmain to make .dll files, not .so files. 13292 shrext_cmds=".dll" 13293 # FIXME: Setting linknames here is a bad hack. 13294 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13295 # The linker will automatically build a .lib file if we build a DLL. 13296 old_archive_From_new_cmds_F77='true' 13297 # FIXME: Should let the user specify the lib program. 13298 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13299 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13300 enable_shared_with_static_runtimes_F77=yes 13301 ;; 13302 13303 darwin* | rhapsody*) 13304 case $host_os in 13305 rhapsody* | darwin1.[012]) 13306 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13307 ;; 13308 *) # Darwin 1.3 on 13309 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13310 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13311 else 13312 case ${MACOSX_DEPLOYMENT_TARGET} in 13313 10.[012]) 13314 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13315 ;; 13316 10.*) 13317 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13318 ;; 13319 esac 13320 fi 13321 ;; 13322 esac 13323 archive_cmds_need_lc_F77=no 13324 hardcode_direct_F77=no 13325 hardcode_automatic_F77=yes 13326 hardcode_shlibpath_var_F77=unsupported 13327 whole_archive_flag_spec_F77='' 13328 link_all_deplibs_F77=yes 13329 if test "$GCC" = yes ; then 13330 output_verbose_link_cmd='echo' 13331 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13332 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13333 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13334 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}' 13335 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}' 13336 else 13337 case $cc_basename in 13338 xlc*) 13339 output_verbose_link_cmd='echo' 13340 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13341 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13343 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}' 13344 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}' 13345 ;; 13346 *) 13347 ld_shlibs_F77=no 13348 ;; 13349 esac 13350 fi 13351 ;; 13352 13353 dgux*) 13354 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13355 hardcode_libdir_flag_spec_F77='-L$libdir' 13356 hardcode_shlibpath_var_F77=no 13357 ;; 13358 13359 freebsd1*) 13360 ld_shlibs_F77=no 13361 ;; 13362 13363 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13364 # support. Future versions do this automatically, but an explicit c++rt0.o 13365 # does not break anything, and helps significantly (at the cost of a little 13366 # extra space). 13367 freebsd2.2*) 13368 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13369 hardcode_libdir_flag_spec_F77='-R$libdir' 13370 hardcode_direct_F77=yes 13371 hardcode_shlibpath_var_F77=no 13372 ;; 13373 13374 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13375 freebsd2*) 13376 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13377 hardcode_direct_F77=yes 13378 hardcode_minus_L_F77=yes 13379 hardcode_shlibpath_var_F77=no 13380 ;; 13381 13382 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13383 freebsd* | kfreebsd*-gnu | dragonfly*) 13384 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13385 hardcode_libdir_flag_spec_F77='-R$libdir' 13386 hardcode_direct_F77=yes 13387 hardcode_shlibpath_var_F77=no 13388 ;; 13389 13390 hpux9*) 13391 if test "$GCC" = yes; then 13392 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' 13393 else 13394 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' 13395 fi 13396 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13397 hardcode_libdir_separator_F77=: 13398 hardcode_direct_F77=yes 13399 13400 # hardcode_minus_L: Not really in the search PATH, 13401 # but as the default location of the library. 13402 hardcode_minus_L_F77=yes 13403 export_dynamic_flag_spec_F77='${wl}-E' 13404 ;; 13405 13406 hpux10*) 13407 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13408 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13409 else 13410 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13411 fi 13412 if test "$with_gnu_ld" = no; then 13413 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13414 hardcode_libdir_separator_F77=: 13415 13416 hardcode_direct_F77=yes 13417 export_dynamic_flag_spec_F77='${wl}-E' 13418 13419 # hardcode_minus_L: Not really in the search PATH, 13420 # but as the default location of the library. 13421 hardcode_minus_L_F77=yes 13422 fi 13423 ;; 13424 13425 hpux11*) 13426 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13427 case $host_cpu in 13428 hppa*64*) 13429 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13430 ;; 13431 ia64*) 13432 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13433 ;; 13434 *) 13435 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13436 ;; 13437 esac 13438 else 13439 case $host_cpu in 13440 hppa*64*) 13441 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13442 ;; 13443 ia64*) 13444 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13445 ;; 13446 *) 13447 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13448 ;; 13449 esac 13450 fi 13451 if test "$with_gnu_ld" = no; then 13452 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13453 hardcode_libdir_separator_F77=: 13454 13455 case $host_cpu in 13456 hppa*64*|ia64*) 13457 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13458 hardcode_direct_F77=no 13459 hardcode_shlibpath_var_F77=no 13460 ;; 13461 *) 13462 hardcode_direct_F77=yes 13463 export_dynamic_flag_spec_F77='${wl}-E' 13464 13465 # hardcode_minus_L: Not really in the search PATH, 13466 # but as the default location of the library. 13467 hardcode_minus_L_F77=yes 13468 ;; 13469 esac 13470 fi 13471 ;; 13472 13473 irix5* | irix6* | nonstopux*) 13474 if test "$GCC" = yes; then 13475 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' 13476 else 13477 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' 13478 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13479 fi 13480 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13481 hardcode_libdir_separator_F77=: 13482 link_all_deplibs_F77=yes 13483 ;; 13484 13485 netbsd*) 13486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13487 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13488 else 13489 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13490 fi 13491 hardcode_libdir_flag_spec_F77='-R$libdir' 13492 hardcode_direct_F77=yes 13493 hardcode_shlibpath_var_F77=no 13494 ;; 13495 13496 newsos6) 13497 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13498 hardcode_direct_F77=yes 13499 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13500 hardcode_libdir_separator_F77=: 13501 hardcode_shlibpath_var_F77=no 13502 ;; 13503 13504 openbsd*) 13505 hardcode_direct_F77=yes 13506 hardcode_shlibpath_var_F77=no 13507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13508 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13509 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13510 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13511 export_dynamic_flag_spec_F77='${wl}-E' 13512 else 13513 case $host_os in 13514 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13515 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13516 hardcode_libdir_flag_spec_F77='-R$libdir' 13517 ;; 13518 *) 13519 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13520 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13521 ;; 13522 esac 13523 fi 13524 ;; 13525 13526 os2*) 13527 hardcode_libdir_flag_spec_F77='-L$libdir' 13528 hardcode_minus_L_F77=yes 13529 allow_undefined_flag_F77=unsupported 13530 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' 13531 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13532 ;; 13533 13534 osf3*) 13535 if test "$GCC" = yes; then 13536 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13537 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' 13538 else 13539 allow_undefined_flag_F77=' -expect_unresolved \*' 13540 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' 13541 fi 13542 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13543 hardcode_libdir_separator_F77=: 13544 ;; 13545 13546 osf4* | osf5*) # as osf3* with the addition of -msym flag 13547 if test "$GCC" = yes; then 13548 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13549 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' 13550 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13551 else 13552 allow_undefined_flag_F77=' -expect_unresolved \*' 13553 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' 13554 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~ 13555 $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' 13556 13557 # Both c and cxx compiler support -rpath directly 13558 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13559 fi 13560 hardcode_libdir_separator_F77=: 13561 ;; 13562 13563 solaris*) 13564 no_undefined_flag_F77=' -z text' 13565 if test "$GCC" = yes; then 13566 wlarc='${wl}' 13567 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13568 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13569 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13570 else 13571 wlarc='' 13572 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13573 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13575 fi 13576 hardcode_libdir_flag_spec_F77='-R$libdir' 13577 hardcode_shlibpath_var_F77=no 13578 case $host_os in 13579 solaris2.[0-5] | solaris2.[0-5].*) ;; 13580 *) 13581 # The compiler driver will combine linker options so we 13582 # cannot just pass the convience library names through 13583 # without $wl, iff we do not link with $LD. 13584 # Luckily, gcc supports the same syntax we need for Sun Studio. 13585 # Supported since Solaris 2.6 (maybe 2.5.1?) 13586 case $wlarc in 13587 '') 13588 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13589 *) 13590 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' ;; 13591 esac ;; 13592 esac 13593 link_all_deplibs_F77=yes 13594 ;; 13595 13596 sunos4*) 13597 if test "x$host_vendor" = xsequent; then 13598 # Use $CC to link under sequent, because it throws in some extra .o 13599 # files that make .init and .fini sections work. 13600 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13601 else 13602 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13603 fi 13604 hardcode_libdir_flag_spec_F77='-L$libdir' 13605 hardcode_direct_F77=yes 13606 hardcode_minus_L_F77=yes 13607 hardcode_shlibpath_var_F77=no 13608 ;; 13609 13610 sysv4) 13611 case $host_vendor in 13612 sni) 13613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13614 hardcode_direct_F77=yes # is this really true??? 13615 ;; 13616 siemens) 13617 ## LD is ld it makes a PLAMLIB 13618 ## CC just makes a GrossModule. 13619 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13620 reload_cmds_F77='$CC -r -o $output$reload_objs' 13621 hardcode_direct_F77=no 13622 ;; 13623 motorola) 13624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13625 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13626 ;; 13627 esac 13628 runpath_var='LD_RUN_PATH' 13629 hardcode_shlibpath_var_F77=no 13630 ;; 13631 13632 sysv4.3*) 13633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13634 hardcode_shlibpath_var_F77=no 13635 export_dynamic_flag_spec_F77='-Bexport' 13636 ;; 13637 13638 sysv4*MP*) 13639 if test -d /usr/nec; then 13640 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13641 hardcode_shlibpath_var_F77=no 13642 runpath_var=LD_RUN_PATH 13643 hardcode_runpath_var=yes 13644 ld_shlibs_F77=yes 13645 fi 13646 ;; 13647 13648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 13649 no_undefined_flag_F77='${wl}-z,text' 13650 archive_cmds_need_lc_F77=no 13651 hardcode_shlibpath_var_F77=no 13652 runpath_var='LD_RUN_PATH' 13653 13654 if test "$GCC" = yes; then 13655 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13656 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13657 else 13658 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13659 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13660 fi 13661 ;; 13662 13663 sysv5* | sco3.2v5* | sco5v6*) 13664 # Note: We can NOT use -z defs as we might desire, because we do not 13665 # link with -lc, and that would cause any symbols used from libc to 13666 # always be unresolved, which means just about no library would 13667 # ever link correctly. If we're not using GNU ld we use -z text 13668 # though, which does catch some bad symbols but isn't as heavy-handed 13669 # as -z defs. 13670 no_undefined_flag_F77='${wl}-z,text' 13671 allow_undefined_flag_F77='${wl}-z,nodefs' 13672 archive_cmds_need_lc_F77=no 13673 hardcode_shlibpath_var_F77=no 13674 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13675 hardcode_libdir_separator_F77=':' 13676 link_all_deplibs_F77=yes 13677 export_dynamic_flag_spec_F77='${wl}-Bexport' 13678 runpath_var='LD_RUN_PATH' 13679 13680 if test "$GCC" = yes; then 13681 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13682 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13683 else 13684 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13685 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13686 fi 13687 ;; 13688 13689 uts4*) 13690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13691 hardcode_libdir_flag_spec_F77='-L$libdir' 13692 hardcode_shlibpath_var_F77=no 13693 ;; 13694 13695 *) 13696 ld_shlibs_F77=no 13697 ;; 13698 esac 13699 fi 13700 13701echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 13702echo "${ECHO_T}$ld_shlibs_F77" >&6 13703test "$ld_shlibs_F77" = no && can_build_shared=no 13704 13705# 13706# Do we need to explicitly link libc? 13707# 13708case "x$archive_cmds_need_lc_F77" in 13709x|xyes) 13710 # Assume -lc should be added 13711 archive_cmds_need_lc_F77=yes 13712 13713 if test "$enable_shared" = yes && test "$GCC" = yes; then 13714 case $archive_cmds_F77 in 13715 *'~'*) 13716 # FIXME: we may have to deal with multi-command sequences. 13717 ;; 13718 '$CC '*) 13719 # Test whether the compiler implicitly links with -lc since on some 13720 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13721 # to ld, don't add -lc before -lgcc. 13722 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13723echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13724 $rm conftest* 13725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13726 13727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13728 (eval $ac_compile) 2>&5 13729 ac_status=$? 13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13731 (exit $ac_status); } 2>conftest.err; then 13732 soname=conftest 13733 lib=conftest 13734 libobjs=conftest.$ac_objext 13735 deplibs= 13736 wl=$lt_prog_compiler_wl_F77 13737 pic_flag=$lt_prog_compiler_pic_F77 13738 compiler_flags=-v 13739 linker_flags=-v 13740 verstring= 13741 output_objdir=. 13742 libname=conftest 13743 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 13744 allow_undefined_flag_F77= 13745 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13746 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13747 ac_status=$? 13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13749 (exit $ac_status); } 13750 then 13751 archive_cmds_need_lc_F77=no 13752 else 13753 archive_cmds_need_lc_F77=yes 13754 fi 13755 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 13756 else 13757 cat conftest.err 1>&5 13758 fi 13759 $rm conftest* 13760 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 13761echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 13762 ;; 13763 esac 13764 fi 13765 ;; 13766esac 13767 13768echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13769echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13770library_names_spec= 13771libname_spec='lib$name' 13772soname_spec= 13773shrext_cmds=".so" 13774postinstall_cmds= 13775postuninstall_cmds= 13776finish_cmds= 13777finish_eval= 13778shlibpath_var= 13779shlibpath_overrides_runpath=unknown 13780version_type=none 13781dynamic_linker="$host_os ld.so" 13782sys_lib_dlsearch_path_spec="/lib /usr/lib" 13783if test "$GCC" = yes; then 13784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13786 # if the path contains ";" then we assume it to be the separator 13787 # otherwise default to the standard path separator (i.e. ":") - it is 13788 # assumed that no part of a normal pathname contains ";" but that should 13789 # okay in the real world where ";" in dirpaths is itself problematic. 13790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13791 else 13792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13793 fi 13794else 13795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13796fi 13797need_lib_prefix=unknown 13798hardcode_into_libs=no 13799 13800# when you set need_version to no, make sure it does not cause -set_version 13801# flags to be left without arguments 13802need_version=unknown 13803 13804case $host_os in 13805aix3*) 13806 version_type=linux 13807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13808 shlibpath_var=LIBPATH 13809 13810 # AIX 3 has no versioning support, so we append a major version to the name. 13811 soname_spec='${libname}${release}${shared_ext}$major' 13812 ;; 13813 13814aix4* | aix5*) 13815 version_type=linux 13816 need_lib_prefix=no 13817 need_version=no 13818 hardcode_into_libs=yes 13819 if test "$host_cpu" = ia64; then 13820 # AIX 5 supports IA64 13821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13822 shlibpath_var=LD_LIBRARY_PATH 13823 else 13824 # With GCC up to 2.95.x, collect2 would create an import file 13825 # for dependence libraries. The import file would start with 13826 # the line `#! .'. This would cause the generated library to 13827 # depend on `.', always an invalid library. This was fixed in 13828 # development snapshots of GCC prior to 3.0. 13829 case $host_os in 13830 aix4 | aix4.[01] | aix4.[01].*) 13831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13832 echo ' yes ' 13833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13834 : 13835 else 13836 can_build_shared=no 13837 fi 13838 ;; 13839 esac 13840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13841 # soname into executable. Probably we can add versioning support to 13842 # collect2, so additional links can be useful in future. 13843 if test "$aix_use_runtimelinking" = yes; then 13844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13845 # instead of lib<name>.a to let people know that these are not 13846 # typical AIX shared libraries. 13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13848 else 13849 # We preserve .a as extension for shared libraries through AIX4.2 13850 # and later when we are not doing run time linking. 13851 library_names_spec='${libname}${release}.a $libname.a' 13852 soname_spec='${libname}${release}${shared_ext}$major' 13853 fi 13854 shlibpath_var=LIBPATH 13855 fi 13856 ;; 13857 13858amigaos*) 13859 library_names_spec='$libname.ixlibrary $libname.a' 13860 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13861 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' 13862 ;; 13863 13864beos*) 13865 library_names_spec='${libname}${shared_ext}' 13866 dynamic_linker="$host_os ld.so" 13867 shlibpath_var=LIBRARY_PATH 13868 ;; 13869 13870bsdi[45]*) 13871 version_type=linux 13872 need_version=no 13873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13874 soname_spec='${libname}${release}${shared_ext}$major' 13875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13876 shlibpath_var=LD_LIBRARY_PATH 13877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13879 # the default ld.so.conf also contains /usr/contrib/lib and 13880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13881 # libtool to hard-code these into programs 13882 ;; 13883 13884cygwin* | mingw* | pw32*) 13885 version_type=windows 13886 shrext_cmds=".dll" 13887 need_version=no 13888 need_lib_prefix=no 13889 13890 case $GCC,$host_os in 13891 yes,cygwin* | yes,mingw* | yes,pw32*) 13892 library_names_spec='$libname.dll.a' 13893 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13894 postinstall_cmds='base_file=`basename \${file}`~ 13895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13896 dldir=$destdir/`dirname \$dlpath`~ 13897 test -d \$dldir || mkdir -p \$dldir~ 13898 $install_prog $dir/$dlname \$dldir/$dlname~ 13899 chmod a+x \$dldir/$dlname' 13900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13901 dlpath=$dir/\$dldll~ 13902 $rm \$dlpath' 13903 shlibpath_overrides_runpath=yes 13904 13905 case $host_os in 13906 cygwin*) 13907 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13909 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13910 ;; 13911 mingw*) 13912 # MinGW DLLs use traditional 'lib' prefix 13913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13915 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13916 # It is most probably a Windows format PATH printed by 13917 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13918 # path with ; separators, and with drive letters. We can handle the 13919 # drive letters (cygwin fileutils understands them), so leave them, 13920 # especially as we might pass files found there to a mingw objdump, 13921 # which wouldn't understand a cygwinified path. Ahh. 13922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13923 else 13924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13925 fi 13926 ;; 13927 pw32*) 13928 # pw32 DLLs use 'pw' prefix rather than 'lib' 13929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13930 ;; 13931 esac 13932 ;; 13933 13934 linux*) 13935 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 13936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13937 supports_anon_versioning=no 13938 case `$LD -v 2>/dev/null` in 13939 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13942 *\ 2.11.*) ;; # other 2.11 versions 13943 *) supports_anon_versioning=yes ;; 13944 esac 13945 if test $supports_anon_versioning = yes; then 13946 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 13947cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13948$echo "local: *; };" >> $output_objdir/$libname.ver~ 13949 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13950 else 13951 $archive_expsym_cmds="$archive_cmds" 13952 fi 13953 else 13954 ld_shlibs=no 13955 fi 13956 ;; 13957 13958 *) 13959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13960 ;; 13961 esac 13962 dynamic_linker='Win32 ld.exe' 13963 # FIXME: first we should search . and the directory the executable is in 13964 shlibpath_var=PATH 13965 ;; 13966 13967darwin* | rhapsody*) 13968 dynamic_linker="$host_os dyld" 13969 version_type=darwin 13970 need_lib_prefix=no 13971 need_version=no 13972 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13973 soname_spec='${libname}${release}${major}$shared_ext' 13974 shlibpath_overrides_runpath=yes 13975 shlibpath_var=DYLD_LIBRARY_PATH 13976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13977 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13978 if test "$GCC" = yes; then 13979 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"` 13980 else 13981 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13982 fi 13983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13984 ;; 13985 13986dgux*) 13987 version_type=linux 13988 need_lib_prefix=no 13989 need_version=no 13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13991 soname_spec='${libname}${release}${shared_ext}$major' 13992 shlibpath_var=LD_LIBRARY_PATH 13993 ;; 13994 13995freebsd1*) 13996 dynamic_linker=no 13997 ;; 13998 13999kfreebsd*-gnu) 14000 version_type=linux 14001 need_lib_prefix=no 14002 need_version=no 14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14004 soname_spec='${libname}${release}${shared_ext}$major' 14005 shlibpath_var=LD_LIBRARY_PATH 14006 shlibpath_overrides_runpath=no 14007 hardcode_into_libs=yes 14008 dynamic_linker='GNU ld.so' 14009 ;; 14010 14011freebsd* | dragonfly*) 14012 # DragonFly does not have aout. When/if they implement a new 14013 # versioning mechanism, adjust this. 14014 if test -x /usr/bin/objformat; then 14015 objformat=`/usr/bin/objformat` 14016 else 14017 case $host_os in 14018 freebsd[123]*) objformat=aout ;; 14019 *) objformat=elf ;; 14020 esac 14021 fi 14022 # Handle Gentoo/FreeBSD as it was Linux 14023 case $host_vendor in 14024 gentoo) 14025 version_type=linux ;; 14026 *) 14027 version_type=freebsd-$objformat ;; 14028 esac 14029 14030 case $version_type in 14031 freebsd-elf*) 14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14033 need_version=no 14034 need_lib_prefix=no 14035 ;; 14036 freebsd-*) 14037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14038 need_version=yes 14039 ;; 14040 linux) 14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14042 soname_spec='${libname}${release}${shared_ext}$major' 14043 need_lib_prefix=no 14044 need_version=no 14045 ;; 14046 esac 14047 shlibpath_var=LD_LIBRARY_PATH 14048 case $host_os in 14049 freebsd2*) 14050 shlibpath_overrides_runpath=yes 14051 ;; 14052 freebsd3.[01]* | freebsdelf3.[01]*) 14053 shlibpath_overrides_runpath=yes 14054 hardcode_into_libs=yes 14055 ;; 14056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14058 shlibpath_overrides_runpath=no 14059 hardcode_into_libs=yes 14060 ;; 14061 freebsd*) # from 4.6 on 14062 shlibpath_overrides_runpath=yes 14063 hardcode_into_libs=yes 14064 ;; 14065 esac 14066 ;; 14067 14068gnu*) 14069 version_type=linux 14070 need_lib_prefix=no 14071 need_version=no 14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14073 soname_spec='${libname}${release}${shared_ext}$major' 14074 shlibpath_var=LD_LIBRARY_PATH 14075 hardcode_into_libs=yes 14076 ;; 14077 14078hpux9* | hpux10* | hpux11*) 14079 # Give a soname corresponding to the major version so that dld.sl refuses to 14080 # link against other versions. 14081 version_type=sunos 14082 need_lib_prefix=no 14083 need_version=no 14084 case $host_cpu in 14085 ia64*) 14086 shrext_cmds='.so' 14087 hardcode_into_libs=yes 14088 dynamic_linker="$host_os dld.so" 14089 shlibpath_var=LD_LIBRARY_PATH 14090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14092 soname_spec='${libname}${release}${shared_ext}$major' 14093 if test "X$HPUX_IA64_MODE" = X32; then 14094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14095 else 14096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14097 fi 14098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14099 ;; 14100 hppa*64*) 14101 shrext_cmds='.sl' 14102 hardcode_into_libs=yes 14103 dynamic_linker="$host_os dld.sl" 14104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14107 soname_spec='${libname}${release}${shared_ext}$major' 14108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14110 ;; 14111 *) 14112 shrext_cmds='.sl' 14113 dynamic_linker="$host_os dld.sl" 14114 shlibpath_var=SHLIB_PATH 14115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14117 soname_spec='${libname}${release}${shared_ext}$major' 14118 ;; 14119 esac 14120 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14121 postinstall_cmds='chmod 555 $lib' 14122 ;; 14123 14124interix3*) 14125 version_type=linux 14126 need_lib_prefix=no 14127 need_version=no 14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14129 soname_spec='${libname}${release}${shared_ext}$major' 14130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14131 shlibpath_var=LD_LIBRARY_PATH 14132 shlibpath_overrides_runpath=no 14133 hardcode_into_libs=yes 14134 ;; 14135 14136irix5* | irix6* | nonstopux*) 14137 case $host_os in 14138 nonstopux*) version_type=nonstopux ;; 14139 *) 14140 if test "$lt_cv_prog_gnu_ld" = yes; then 14141 version_type=linux 14142 else 14143 version_type=irix 14144 fi ;; 14145 esac 14146 need_lib_prefix=no 14147 need_version=no 14148 soname_spec='${libname}${release}${shared_ext}$major' 14149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14150 case $host_os in 14151 irix5* | nonstopux*) 14152 libsuff= shlibsuff= 14153 ;; 14154 *) 14155 case $LD in # libtool.m4 will add one of these switches to LD 14156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14157 libsuff= shlibsuff= libmagic=32-bit;; 14158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14159 libsuff=32 shlibsuff=N32 libmagic=N32;; 14160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14161 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14162 *) libsuff= shlibsuff= libmagic=never-match;; 14163 esac 14164 ;; 14165 esac 14166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14167 shlibpath_overrides_runpath=no 14168 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14169 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14170 hardcode_into_libs=yes 14171 ;; 14172 14173# No shared lib support for Linux oldld, aout, or coff. 14174linux*oldld* | linux*aout* | linux*coff*) 14175 dynamic_linker=no 14176 ;; 14177 14178# This must be Linux ELF. 14179linux*) 14180 version_type=linux 14181 need_lib_prefix=no 14182 need_version=no 14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14184 soname_spec='${libname}${release}${shared_ext}$major' 14185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14186 shlibpath_var=LD_LIBRARY_PATH 14187 shlibpath_overrides_runpath=no 14188 # This implies no fast_install, which is unacceptable. 14189 # Some rework will be needed to allow for fast_install 14190 # before this can be enabled. 14191 hardcode_into_libs=yes 14192 14193 # Append ld.so.conf contents to the search path 14194 if test -f /etc/ld.so.conf; then 14195 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' ' '` 14196 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14197 fi 14198 14199 # We used to test for /lib/ld.so.1 and disable shared libraries on 14200 # powerpc, because MkLinux only supported shared libraries with the 14201 # GNU dynamic linker. Since this was broken with cross compilers, 14202 # most powerpc-linux boxes support dynamic linking these days and 14203 # people can always --disable-shared, the test was removed, and we 14204 # assume the GNU/Linux dynamic linker is in use. 14205 dynamic_linker='GNU/Linux ld.so' 14206 ;; 14207 14208knetbsd*-gnu) 14209 version_type=linux 14210 need_lib_prefix=no 14211 need_version=no 14212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14213 soname_spec='${libname}${release}${shared_ext}$major' 14214 shlibpath_var=LD_LIBRARY_PATH 14215 shlibpath_overrides_runpath=no 14216 hardcode_into_libs=yes 14217 dynamic_linker='GNU ld.so' 14218 ;; 14219 14220netbsd*) 14221 version_type=sunos 14222 need_lib_prefix=no 14223 need_version=no 14224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14227 dynamic_linker='NetBSD (a.out) ld.so' 14228 else 14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14230 soname_spec='${libname}${release}${shared_ext}$major' 14231 dynamic_linker='NetBSD ld.elf_so' 14232 fi 14233 shlibpath_var=LD_LIBRARY_PATH 14234 shlibpath_overrides_runpath=yes 14235 hardcode_into_libs=yes 14236 ;; 14237 14238newsos6) 14239 version_type=linux 14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14241 shlibpath_var=LD_LIBRARY_PATH 14242 shlibpath_overrides_runpath=yes 14243 ;; 14244 14245nto-qnx*) 14246 version_type=linux 14247 need_lib_prefix=no 14248 need_version=no 14249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14250 soname_spec='${libname}${release}${shared_ext}$major' 14251 shlibpath_var=LD_LIBRARY_PATH 14252 shlibpath_overrides_runpath=yes 14253 ;; 14254 14255openbsd*) 14256 version_type=sunos 14257 sys_lib_dlsearch_path_spec="/usr/lib" 14258 need_lib_prefix=no 14259 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14260 case $host_os in 14261 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14262 *) need_version=no ;; 14263 esac 14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14266 shlibpath_var=LD_LIBRARY_PATH 14267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14268 case $host_os in 14269 openbsd2.[89] | openbsd2.[89].*) 14270 shlibpath_overrides_runpath=no 14271 ;; 14272 *) 14273 shlibpath_overrides_runpath=yes 14274 ;; 14275 esac 14276 else 14277 shlibpath_overrides_runpath=yes 14278 fi 14279 ;; 14280 14281os2*) 14282 libname_spec='$name' 14283 shrext_cmds=".dll" 14284 need_lib_prefix=no 14285 library_names_spec='$libname${shared_ext} $libname.a' 14286 dynamic_linker='OS/2 ld.exe' 14287 shlibpath_var=LIBPATH 14288 ;; 14289 14290osf3* | osf4* | osf5*) 14291 version_type=osf 14292 need_lib_prefix=no 14293 need_version=no 14294 soname_spec='${libname}${release}${shared_ext}$major' 14295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14296 shlibpath_var=LD_LIBRARY_PATH 14297 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14298 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14299 ;; 14300 14301solaris*) 14302 version_type=linux 14303 need_lib_prefix=no 14304 need_version=no 14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14306 soname_spec='${libname}${release}${shared_ext}$major' 14307 shlibpath_var=LD_LIBRARY_PATH 14308 shlibpath_overrides_runpath=yes 14309 hardcode_into_libs=yes 14310 # ldd complains unless libraries are executable 14311 postinstall_cmds='chmod +x $lib' 14312 ;; 14313 14314sunos4*) 14315 version_type=sunos 14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14318 shlibpath_var=LD_LIBRARY_PATH 14319 shlibpath_overrides_runpath=yes 14320 if test "$with_gnu_ld" = yes; then 14321 need_lib_prefix=no 14322 fi 14323 need_version=yes 14324 ;; 14325 14326sysv4 | sysv4.3*) 14327 version_type=linux 14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14329 soname_spec='${libname}${release}${shared_ext}$major' 14330 shlibpath_var=LD_LIBRARY_PATH 14331 case $host_vendor in 14332 sni) 14333 shlibpath_overrides_runpath=no 14334 need_lib_prefix=no 14335 export_dynamic_flag_spec='${wl}-Blargedynsym' 14336 runpath_var=LD_RUN_PATH 14337 ;; 14338 siemens) 14339 need_lib_prefix=no 14340 ;; 14341 motorola) 14342 need_lib_prefix=no 14343 need_version=no 14344 shlibpath_overrides_runpath=no 14345 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14346 ;; 14347 esac 14348 ;; 14349 14350sysv4*MP*) 14351 if test -d /usr/nec ;then 14352 version_type=linux 14353 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14354 soname_spec='$libname${shared_ext}.$major' 14355 shlibpath_var=LD_LIBRARY_PATH 14356 fi 14357 ;; 14358 14359sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14360 version_type=freebsd-elf 14361 need_lib_prefix=no 14362 need_version=no 14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14364 soname_spec='${libname}${release}${shared_ext}$major' 14365 shlibpath_var=LD_LIBRARY_PATH 14366 hardcode_into_libs=yes 14367 if test "$with_gnu_ld" = yes; then 14368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14369 shlibpath_overrides_runpath=no 14370 else 14371 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14372 shlibpath_overrides_runpath=yes 14373 case $host_os in 14374 sco3.2v5*) 14375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14376 ;; 14377 esac 14378 fi 14379 sys_lib_dlsearch_path_spec='/usr/lib' 14380 ;; 14381 14382uts4*) 14383 version_type=linux 14384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14385 soname_spec='${libname}${release}${shared_ext}$major' 14386 shlibpath_var=LD_LIBRARY_PATH 14387 ;; 14388 14389*) 14390 dynamic_linker=no 14391 ;; 14392esac 14393echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14394echo "${ECHO_T}$dynamic_linker" >&6 14395test "$dynamic_linker" = no && can_build_shared=no 14396 14397variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14398if test "$GCC" = yes; then 14399 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14400fi 14401 14402echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14403echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14404hardcode_action_F77= 14405if test -n "$hardcode_libdir_flag_spec_F77" || \ 14406 test -n "$runpath_var_F77" || \ 14407 test "X$hardcode_automatic_F77" = "Xyes" ; then 14408 14409 # We can hardcode non-existant directories. 14410 if test "$hardcode_direct_F77" != no && 14411 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14412 # have to relink, otherwise we might link with an installed library 14413 # when we should be linking with a yet-to-be-installed one 14414 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14415 test "$hardcode_minus_L_F77" != no; then 14416 # Linking always hardcodes the temporary library directory. 14417 hardcode_action_F77=relink 14418 else 14419 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14420 hardcode_action_F77=immediate 14421 fi 14422else 14423 # We cannot hardcode anything, or else we can only hardcode existing 14424 # directories. 14425 hardcode_action_F77=unsupported 14426fi 14427echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14428echo "${ECHO_T}$hardcode_action_F77" >&6 14429 14430if test "$hardcode_action_F77" = relink; then 14431 # Fast installation is not supported 14432 enable_fast_install=no 14433elif test "$shlibpath_overrides_runpath" = yes || 14434 test "$enable_shared" = no; then 14435 # Fast installation is not necessary 14436 enable_fast_install=needless 14437fi 14438 14439 14440# The else clause should only fire when bootstrapping the 14441# libtool distribution, otherwise you forgot to ship ltmain.sh 14442# with your package, and you will get complaints that there are 14443# no rules to generate ltmain.sh. 14444if test -f "$ltmain"; then 14445 # See if we are running on zsh, and set the options which allow our commands through 14446 # without removal of \ escapes. 14447 if test -n "${ZSH_VERSION+set}" ; then 14448 setopt NO_GLOB_SUBST 14449 fi 14450 # Now quote all the things that may contain metacharacters while being 14451 # careful not to overquote the AC_SUBSTed values. We take copies of the 14452 # variables and quote the copies for generation of the libtool script. 14453 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14454 SED SHELL STRIP \ 14455 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14456 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14457 deplibs_check_method reload_flag reload_cmds need_locks \ 14458 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14459 lt_cv_sys_global_symbol_to_c_name_address \ 14460 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14461 old_postinstall_cmds old_postuninstall_cmds \ 14462 compiler_F77 \ 14463 CC_F77 \ 14464 LD_F77 \ 14465 lt_prog_compiler_wl_F77 \ 14466 lt_prog_compiler_pic_F77 \ 14467 lt_prog_compiler_static_F77 \ 14468 lt_prog_compiler_no_builtin_flag_F77 \ 14469 export_dynamic_flag_spec_F77 \ 14470 thread_safe_flag_spec_F77 \ 14471 whole_archive_flag_spec_F77 \ 14472 enable_shared_with_static_runtimes_F77 \ 14473 old_archive_cmds_F77 \ 14474 old_archive_from_new_cmds_F77 \ 14475 predep_objects_F77 \ 14476 postdep_objects_F77 \ 14477 predeps_F77 \ 14478 postdeps_F77 \ 14479 compiler_lib_search_path_F77 \ 14480 archive_cmds_F77 \ 14481 archive_expsym_cmds_F77 \ 14482 postinstall_cmds_F77 \ 14483 postuninstall_cmds_F77 \ 14484 old_archive_from_expsyms_cmds_F77 \ 14485 allow_undefined_flag_F77 \ 14486 no_undefined_flag_F77 \ 14487 export_symbols_cmds_F77 \ 14488 hardcode_libdir_flag_spec_F77 \ 14489 hardcode_libdir_flag_spec_ld_F77 \ 14490 hardcode_libdir_separator_F77 \ 14491 hardcode_automatic_F77 \ 14492 module_cmds_F77 \ 14493 module_expsym_cmds_F77 \ 14494 lt_cv_prog_compiler_c_o_F77 \ 14495 exclude_expsyms_F77 \ 14496 include_expsyms_F77; do 14497 14498 case $var in 14499 old_archive_cmds_F77 | \ 14500 old_archive_from_new_cmds_F77 | \ 14501 archive_cmds_F77 | \ 14502 archive_expsym_cmds_F77 | \ 14503 module_cmds_F77 | \ 14504 module_expsym_cmds_F77 | \ 14505 old_archive_from_expsyms_cmds_F77 | \ 14506 export_symbols_cmds_F77 | \ 14507 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14508 postinstall_cmds | postuninstall_cmds | \ 14509 old_postinstall_cmds | old_postuninstall_cmds | \ 14510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14511 # Double-quote double-evaled strings. 14512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14513 ;; 14514 *) 14515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14516 ;; 14517 esac 14518 done 14519 14520 case $lt_echo in 14521 *'\$0 --fallback-echo"') 14522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14523 ;; 14524 esac 14525 14526cfgfile="$ofile" 14527 14528 cat <<__EOF__ >> "$cfgfile" 14529# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14530 14531# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14532 14533# Shell to use when invoking shell scripts. 14534SHELL=$lt_SHELL 14535 14536# Whether or not to build shared libraries. 14537build_libtool_libs=$enable_shared 14538 14539# Whether or not to build static libraries. 14540build_old_libs=$enable_static 14541 14542# Whether or not to add -lc for building shared libraries. 14543build_libtool_need_lc=$archive_cmds_need_lc_F77 14544 14545# Whether or not to disallow shared libs when runtime libs are static 14546allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14547 14548# Whether or not to optimize for fast installation. 14549fast_install=$enable_fast_install 14550 14551# The host system. 14552host_alias=$host_alias 14553host=$host 14554host_os=$host_os 14555 14556# The build system. 14557build_alias=$build_alias 14558build=$build 14559build_os=$build_os 14560 14561# An echo program that does not interpret backslashes. 14562echo=$lt_echo 14563 14564# The archiver. 14565AR=$lt_AR 14566AR_FLAGS=$lt_AR_FLAGS 14567 14568# A C compiler. 14569LTCC=$lt_LTCC 14570 14571# LTCC compiler flags. 14572LTCFLAGS=$lt_LTCFLAGS 14573 14574# A language-specific compiler. 14575CC=$lt_compiler_F77 14576 14577# Is the compiler the GNU C compiler? 14578with_gcc=$GCC_F77 14579 14580# An ERE matcher. 14581EGREP=$lt_EGREP 14582 14583# The linker used to build libraries. 14584LD=$lt_LD_F77 14585 14586# Whether we need hard or soft links. 14587LN_S=$lt_LN_S 14588 14589# A BSD-compatible nm program. 14590NM=$lt_NM 14591 14592# A symbol stripping program 14593STRIP=$lt_STRIP 14594 14595# Used to examine libraries when file_magic_cmd begins "file" 14596MAGIC_CMD=$MAGIC_CMD 14597 14598# Used on cygwin: DLL creation program. 14599DLLTOOL="$DLLTOOL" 14600 14601# Used on cygwin: object dumper. 14602OBJDUMP="$OBJDUMP" 14603 14604# Used on cygwin: assembler. 14605AS="$AS" 14606 14607# The name of the directory that contains temporary libtool files. 14608objdir=$objdir 14609 14610# How to create reloadable object files. 14611reload_flag=$lt_reload_flag 14612reload_cmds=$lt_reload_cmds 14613 14614# How to pass a linker flag through the compiler. 14615wl=$lt_lt_prog_compiler_wl_F77 14616 14617# Object file suffix (normally "o"). 14618objext="$ac_objext" 14619 14620# Old archive suffix (normally "a"). 14621libext="$libext" 14622 14623# Shared library suffix (normally ".so"). 14624shrext_cmds='$shrext_cmds' 14625 14626# Executable file suffix (normally ""). 14627exeext="$exeext" 14628 14629# Additional compiler flags for building library objects. 14630pic_flag=$lt_lt_prog_compiler_pic_F77 14631pic_mode=$pic_mode 14632 14633# What is the maximum length of a command? 14634max_cmd_len=$lt_cv_sys_max_cmd_len 14635 14636# Does compiler simultaneously support -c and -o options? 14637compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14638 14639# Must we lock files when doing compilation? 14640need_locks=$lt_need_locks 14641 14642# Do we need the lib prefix for modules? 14643need_lib_prefix=$need_lib_prefix 14644 14645# Do we need a version for libraries? 14646need_version=$need_version 14647 14648# Whether dlopen is supported. 14649dlopen_support=$enable_dlopen 14650 14651# Whether dlopen of programs is supported. 14652dlopen_self=$enable_dlopen_self 14653 14654# Whether dlopen of statically linked programs is supported. 14655dlopen_self_static=$enable_dlopen_self_static 14656 14657# Compiler flag to prevent dynamic linking. 14658link_static_flag=$lt_lt_prog_compiler_static_F77 14659 14660# Compiler flag to turn off builtin functions. 14661no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14662 14663# Compiler flag to allow reflexive dlopens. 14664export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 14665 14666# Compiler flag to generate shared objects directly from archives. 14667whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 14668 14669# Compiler flag to generate thread-safe objects. 14670thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 14671 14672# Library versioning type. 14673version_type=$version_type 14674 14675# Format of library name prefix. 14676libname_spec=$lt_libname_spec 14677 14678# List of archive names. First name is the real one, the rest are links. 14679# The last name is the one that the linker finds with -lNAME. 14680library_names_spec=$lt_library_names_spec 14681 14682# The coded name of the library, if different from the real name. 14683soname_spec=$lt_soname_spec 14684 14685# Commands used to build and install an old-style archive. 14686RANLIB=$lt_RANLIB 14687old_archive_cmds=$lt_old_archive_cmds_F77 14688old_postinstall_cmds=$lt_old_postinstall_cmds 14689old_postuninstall_cmds=$lt_old_postuninstall_cmds 14690 14691# Create an old-style archive from a shared archive. 14692old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 14693 14694# Create a temporary old-style archive to link instead of a shared archive. 14695old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 14696 14697# Commands used to build and install a shared archive. 14698archive_cmds=$lt_archive_cmds_F77 14699archive_expsym_cmds=$lt_archive_expsym_cmds_F77 14700postinstall_cmds=$lt_postinstall_cmds 14701postuninstall_cmds=$lt_postuninstall_cmds 14702 14703# Commands used to build a loadable module (assumed same as above if empty) 14704module_cmds=$lt_module_cmds_F77 14705module_expsym_cmds=$lt_module_expsym_cmds_F77 14706 14707# Commands to strip libraries. 14708old_striplib=$lt_old_striplib 14709striplib=$lt_striplib 14710 14711# Dependencies to place before the objects being linked to create a 14712# shared library. 14713predep_objects=$lt_predep_objects_F77 14714 14715# Dependencies to place after the objects being linked to create a 14716# shared library. 14717postdep_objects=$lt_postdep_objects_F77 14718 14719# Dependencies to place before the objects being linked to create a 14720# shared library. 14721predeps=$lt_predeps_F77 14722 14723# Dependencies to place after the objects being linked to create a 14724# shared library. 14725postdeps=$lt_postdeps_F77 14726 14727# The library search path used internally by the compiler when linking 14728# a shared library. 14729compiler_lib_search_path=$lt_compiler_lib_search_path_F77 14730 14731# Method to check whether dependent libraries are shared objects. 14732deplibs_check_method=$lt_deplibs_check_method 14733 14734# Command to use when deplibs_check_method == file_magic. 14735file_magic_cmd=$lt_file_magic_cmd 14736 14737# Flag that allows shared libraries with undefined symbols to be built. 14738allow_undefined_flag=$lt_allow_undefined_flag_F77 14739 14740# Flag that forces no undefined symbols. 14741no_undefined_flag=$lt_no_undefined_flag_F77 14742 14743# Commands used to finish a libtool library installation in a directory. 14744finish_cmds=$lt_finish_cmds 14745 14746# Same as above, but a single script fragment to be evaled but not shown. 14747finish_eval=$lt_finish_eval 14748 14749# Take the output of nm and produce a listing of raw symbols and C names. 14750global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14751 14752# Transform the output of nm in a proper C declaration 14753global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14754 14755# Transform the output of nm in a C name address pair 14756global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14757 14758# This is the shared library runtime path variable. 14759runpath_var=$runpath_var 14760 14761# This is the shared library path variable. 14762shlibpath_var=$shlibpath_var 14763 14764# Is shlibpath searched before the hard-coded library search path? 14765shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14766 14767# How to hardcode a shared library path into an executable. 14768hardcode_action=$hardcode_action_F77 14769 14770# Whether we should hardcode library paths into libraries. 14771hardcode_into_libs=$hardcode_into_libs 14772 14773# Flag to hardcode \$libdir into a binary during linking. 14774# This must work even if \$libdir does not exist. 14775hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 14776 14777# If ld is used when linking, flag to hardcode \$libdir into 14778# a binary during linking. This must work even if \$libdir does 14779# not exist. 14780hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 14781 14782# Whether we need a single -rpath flag with a separated argument. 14783hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 14784 14785# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14786# resulting binary. 14787hardcode_direct=$hardcode_direct_F77 14788 14789# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14790# resulting binary. 14791hardcode_minus_L=$hardcode_minus_L_F77 14792 14793# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14794# the resulting binary. 14795hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 14796 14797# Set to yes if building a shared library automatically hardcodes DIR into the library 14798# and all subsequent libraries and executables linked against it. 14799hardcode_automatic=$hardcode_automatic_F77 14800 14801# Variables whose values should be saved in libtool wrapper scripts and 14802# restored at relink time. 14803variables_saved_for_relink="$variables_saved_for_relink" 14804 14805# Whether libtool must link a program against all its dependency libraries. 14806link_all_deplibs=$link_all_deplibs_F77 14807 14808# Compile-time system search path for libraries 14809sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14810 14811# Run-time system search path for libraries 14812sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14813 14814# Fix the shell variable \$srcfile for the compiler. 14815fix_srcfile_path="$fix_srcfile_path_F77" 14816 14817# Set to yes if exported symbols are required. 14818always_export_symbols=$always_export_symbols_F77 14819 14820# The commands to list exported symbols. 14821export_symbols_cmds=$lt_export_symbols_cmds_F77 14822 14823# The commands to extract the exported symbol list from a shared archive. 14824extract_expsyms_cmds=$lt_extract_expsyms_cmds 14825 14826# Symbols that should not be listed in the preloaded symbols. 14827exclude_expsyms=$lt_exclude_expsyms_F77 14828 14829# Symbols that must always be exported. 14830include_expsyms=$lt_include_expsyms_F77 14831 14832# ### END LIBTOOL TAG CONFIG: $tagname 14833 14834__EOF__ 14835 14836 14837else 14838 # If there is no Makefile yet, we rely on a make rule to execute 14839 # `config.status --recheck' to rerun these tests and create the 14840 # libtool script then. 14841 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14842 if test -f "$ltmain_in"; then 14843 test -f Makefile && make "$ltmain" 14844 fi 14845fi 14846 14847 14848ac_ext=c 14849ac_cpp='$CPP $CPPFLAGS' 14850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14852ac_compiler_gnu=$ac_cv_c_compiler_gnu 14853 14854CC="$lt_save_CC" 14855 14856 else 14857 tagname="" 14858 fi 14859 ;; 14860 14861 GCJ) 14862 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 14863 14864 14865 14866# Source file extension for Java test sources. 14867ac_ext=java 14868 14869# Object file extension for compiled Java test sources. 14870objext=o 14871objext_GCJ=$objext 14872 14873# Code to be used in simple compile tests 14874lt_simple_compile_test_code="class foo {}\n" 14875 14876# Code to be used in simple link tests 14877lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 14878 14879# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14880 14881# If no C compiler was specified, use CC. 14882LTCC=${LTCC-"$CC"} 14883 14884# If no C compiler flags were specified, use CFLAGS. 14885LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14886 14887# Allow CC to be a program name with arguments. 14888compiler=$CC 14889 14890 14891# save warnings/boilerplate of simple test code 14892ac_outfile=conftest.$ac_objext 14893printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14894eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14895_lt_compiler_boilerplate=`cat conftest.err` 14896$rm conftest* 14897 14898ac_outfile=conftest.$ac_objext 14899printf "$lt_simple_link_test_code" >conftest.$ac_ext 14900eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14901_lt_linker_boilerplate=`cat conftest.err` 14902$rm conftest* 14903 14904 14905# Allow CC to be a program name with arguments. 14906lt_save_CC="$CC" 14907CC=${GCJ-"gcj"} 14908compiler=$CC 14909compiler_GCJ=$CC 14910for cc_temp in $compiler""; do 14911 case $cc_temp in 14912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14914 \-*) ;; 14915 *) break;; 14916 esac 14917done 14918cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14919 14920 14921# GCJ did not exist at the time GCC didn't implicitly link libc in. 14922archive_cmds_need_lc_GCJ=no 14923 14924old_archive_cmds_GCJ=$old_archive_cmds 14925 14926 14927lt_prog_compiler_no_builtin_flag_GCJ= 14928 14929if test "$GCC" = yes; then 14930 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 14931 14932 14933echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14934echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 14935if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 14936 echo $ECHO_N "(cached) $ECHO_C" >&6 14937else 14938 lt_cv_prog_compiler_rtti_exceptions=no 14939 ac_outfile=conftest.$ac_objext 14940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14941 lt_compiler_flag="-fno-rtti -fno-exceptions" 14942 # Insert the option either (1) after the last *FLAGS variable, or 14943 # (2) before a word containing "conftest.", or (3) at the end. 14944 # Note that $ac_compile itself does not contain backslashes and begins 14945 # with a dollar sign (not a hyphen), so the echo should work correctly. 14946 # The option is referenced via a variable to avoid confusing sed. 14947 lt_compile=`echo "$ac_compile" | $SED \ 14948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14950 -e 's:$: $lt_compiler_flag:'` 14951 (eval echo "\"\$as_me:14951: $lt_compile\"" >&5) 14952 (eval "$lt_compile" 2>conftest.err) 14953 ac_status=$? 14954 cat conftest.err >&5 14955 echo "$as_me:14955: \$? = $ac_status" >&5 14956 if (exit $ac_status) && test -s "$ac_outfile"; then 14957 # The compiler can only warn and ignore the option if not recognized 14958 # So say no if there are warnings other than the usual output. 14959 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14961 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14962 lt_cv_prog_compiler_rtti_exceptions=yes 14963 fi 14964 fi 14965 $rm conftest* 14966 14967fi 14968echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14969echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 14970 14971if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14972 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 14973else 14974 : 14975fi 14976 14977fi 14978 14979lt_prog_compiler_wl_GCJ= 14980lt_prog_compiler_pic_GCJ= 14981lt_prog_compiler_static_GCJ= 14982 14983echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14984echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14985 14986 if test "$GCC" = yes; then 14987 lt_prog_compiler_wl_GCJ='-Wl,' 14988 lt_prog_compiler_static_GCJ='-static' 14989 14990 case $host_os in 14991 aix*) 14992 # All AIX code is PIC. 14993 if test "$host_cpu" = ia64; then 14994 # AIX 5 now supports IA64 processor 14995 lt_prog_compiler_static_GCJ='-Bstatic' 14996 fi 14997 ;; 14998 14999 amigaos*) 15000 # FIXME: we need at least 68020 code to build shared libraries, but 15001 # adding the `-m68020' flag to GCC prevents building anything better, 15002 # like `-m68040'. 15003 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15004 ;; 15005 15006 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15007 # PIC is the default for these OSes. 15008 ;; 15009 15010 mingw* | pw32* | os2*) 15011 # This hack is so that the source file can tell whether it is being 15012 # built for inclusion in a dll (and should export symbols for example). 15013 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15014 ;; 15015 15016 darwin* | rhapsody*) 15017 # PIC is the default on this platform 15018 # Common symbols not allowed in MH_DYLIB files 15019 lt_prog_compiler_pic_GCJ='-fno-common' 15020 ;; 15021 15022 interix3*) 15023 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15024 # Instead, we relocate shared libraries at runtime. 15025 ;; 15026 15027 msdosdjgpp*) 15028 # Just because we use GCC doesn't mean we suddenly get shared libraries 15029 # on systems that don't support them. 15030 lt_prog_compiler_can_build_shared_GCJ=no 15031 enable_shared=no 15032 ;; 15033 15034 sysv4*MP*) 15035 if test -d /usr/nec; then 15036 lt_prog_compiler_pic_GCJ=-Kconform_pic 15037 fi 15038 ;; 15039 15040 hpux*) 15041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15042 # not for PA HP-UX. 15043 case $host_cpu in 15044 hppa*64*|ia64*) 15045 # +Z the default 15046 ;; 15047 *) 15048 lt_prog_compiler_pic_GCJ='-fPIC' 15049 ;; 15050 esac 15051 ;; 15052 15053 *) 15054 lt_prog_compiler_pic_GCJ='-fPIC' 15055 ;; 15056 esac 15057 else 15058 # PORTME Check for flag to pass linker flags through the system compiler. 15059 case $host_os in 15060 aix*) 15061 lt_prog_compiler_wl_GCJ='-Wl,' 15062 if test "$host_cpu" = ia64; then 15063 # AIX 5 now supports IA64 processor 15064 lt_prog_compiler_static_GCJ='-Bstatic' 15065 else 15066 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15067 fi 15068 ;; 15069 darwin*) 15070 # PIC is the default on this platform 15071 # Common symbols not allowed in MH_DYLIB files 15072 case $cc_basename in 15073 xlc*) 15074 lt_prog_compiler_pic_GCJ='-qnocommon' 15075 lt_prog_compiler_wl_GCJ='-Wl,' 15076 ;; 15077 esac 15078 ;; 15079 15080 mingw* | pw32* | os2*) 15081 # This hack is so that the source file can tell whether it is being 15082 # built for inclusion in a dll (and should export symbols for example). 15083 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15084 ;; 15085 15086 hpux9* | hpux10* | hpux11*) 15087 lt_prog_compiler_wl_GCJ='-Wl,' 15088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15089 # not for PA HP-UX. 15090 case $host_cpu in 15091 hppa*64*|ia64*) 15092 # +Z the default 15093 ;; 15094 *) 15095 lt_prog_compiler_pic_GCJ='+Z' 15096 ;; 15097 esac 15098 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15099 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15100 ;; 15101 15102 irix5* | irix6* | nonstopux*) 15103 lt_prog_compiler_wl_GCJ='-Wl,' 15104 # PIC (with -KPIC) is the default. 15105 lt_prog_compiler_static_GCJ='-non_shared' 15106 ;; 15107 15108 newsos6) 15109 lt_prog_compiler_pic_GCJ='-KPIC' 15110 lt_prog_compiler_static_GCJ='-Bstatic' 15111 ;; 15112 15113 linux*) 15114 case $cc_basename in 15115 icc* | ecc*) 15116 lt_prog_compiler_wl_GCJ='-Wl,' 15117 lt_prog_compiler_pic_GCJ='-KPIC' 15118 lt_prog_compiler_static_GCJ='-static' 15119 ;; 15120 pgcc* | pgf77* | pgf90* | pgf95*) 15121 # Portland Group compilers (*not* the Pentium gcc compiler, 15122 # which looks to be a dead project) 15123 lt_prog_compiler_wl_GCJ='-Wl,' 15124 lt_prog_compiler_pic_GCJ='-fpic' 15125 lt_prog_compiler_static_GCJ='-Bstatic' 15126 ;; 15127 ccc*) 15128 lt_prog_compiler_wl_GCJ='-Wl,' 15129 # All Alpha code is PIC. 15130 lt_prog_compiler_static_GCJ='-non_shared' 15131 ;; 15132 esac 15133 ;; 15134 15135 osf3* | osf4* | osf5*) 15136 lt_prog_compiler_wl_GCJ='-Wl,' 15137 # All OSF/1 code is PIC. 15138 lt_prog_compiler_static_GCJ='-non_shared' 15139 ;; 15140 15141 solaris*) 15142 lt_prog_compiler_pic_GCJ='-KPIC' 15143 lt_prog_compiler_static_GCJ='-Bstatic' 15144 case $cc_basename in 15145 f77* | f90* | f95*) 15146 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15147 *) 15148 lt_prog_compiler_wl_GCJ='-Wl,';; 15149 esac 15150 ;; 15151 15152 sunos4*) 15153 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15154 lt_prog_compiler_pic_GCJ='-PIC' 15155 lt_prog_compiler_static_GCJ='-Bstatic' 15156 ;; 15157 15158 sysv4 | sysv4.2uw2* | sysv4.3*) 15159 lt_prog_compiler_wl_GCJ='-Wl,' 15160 lt_prog_compiler_pic_GCJ='-KPIC' 15161 lt_prog_compiler_static_GCJ='-Bstatic' 15162 ;; 15163 15164 sysv4*MP*) 15165 if test -d /usr/nec ;then 15166 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15167 lt_prog_compiler_static_GCJ='-Bstatic' 15168 fi 15169 ;; 15170 15171 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15172 lt_prog_compiler_wl_GCJ='-Wl,' 15173 lt_prog_compiler_pic_GCJ='-KPIC' 15174 lt_prog_compiler_static_GCJ='-Bstatic' 15175 ;; 15176 15177 unicos*) 15178 lt_prog_compiler_wl_GCJ='-Wl,' 15179 lt_prog_compiler_can_build_shared_GCJ=no 15180 ;; 15181 15182 uts4*) 15183 lt_prog_compiler_pic_GCJ='-pic' 15184 lt_prog_compiler_static_GCJ='-Bstatic' 15185 ;; 15186 15187 *) 15188 lt_prog_compiler_can_build_shared_GCJ=no 15189 ;; 15190 esac 15191 fi 15192 15193echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15194echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15195 15196# 15197# Check to make sure the PIC flag actually works. 15198# 15199if test -n "$lt_prog_compiler_pic_GCJ"; then 15200 15201echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15202echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15203if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15204 echo $ECHO_N "(cached) $ECHO_C" >&6 15205else 15206 lt_prog_compiler_pic_works_GCJ=no 15207 ac_outfile=conftest.$ac_objext 15208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15209 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15210 # Insert the option either (1) after the last *FLAGS variable, or 15211 # (2) before a word containing "conftest.", or (3) at the end. 15212 # Note that $ac_compile itself does not contain backslashes and begins 15213 # with a dollar sign (not a hyphen), so the echo should work correctly. 15214 # The option is referenced via a variable to avoid confusing sed. 15215 lt_compile=`echo "$ac_compile" | $SED \ 15216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15218 -e 's:$: $lt_compiler_flag:'` 15219 (eval echo "\"\$as_me:15219: $lt_compile\"" >&5) 15220 (eval "$lt_compile" 2>conftest.err) 15221 ac_status=$? 15222 cat conftest.err >&5 15223 echo "$as_me:15223: \$? = $ac_status" >&5 15224 if (exit $ac_status) && test -s "$ac_outfile"; then 15225 # The compiler can only warn and ignore the option if not recognized 15226 # So say no if there are warnings other than the usual output. 15227 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15230 lt_prog_compiler_pic_works_GCJ=yes 15231 fi 15232 fi 15233 $rm conftest* 15234 15235fi 15236echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15237echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15238 15239if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15240 case $lt_prog_compiler_pic_GCJ in 15241 "" | " "*) ;; 15242 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15243 esac 15244else 15245 lt_prog_compiler_pic_GCJ= 15246 lt_prog_compiler_can_build_shared_GCJ=no 15247fi 15248 15249fi 15250case $host_os in 15251 # For platforms which do not support PIC, -DPIC is meaningless: 15252 *djgpp*) 15253 lt_prog_compiler_pic_GCJ= 15254 ;; 15255 *) 15256 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15257 ;; 15258esac 15259 15260# 15261# Check to make sure the static flag actually works. 15262# 15263wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15264echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15265echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15266if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15267 echo $ECHO_N "(cached) $ECHO_C" >&6 15268else 15269 lt_prog_compiler_static_works_GCJ=no 15270 save_LDFLAGS="$LDFLAGS" 15271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15272 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15274 # The linker can only warn and ignore the option if not recognized 15275 # So say no if there are warnings 15276 if test -s conftest.err; then 15277 # Append any errors to the config.log. 15278 cat conftest.err 1>&5 15279 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15281 if diff conftest.exp conftest.er2 >/dev/null; then 15282 lt_prog_compiler_static_works_GCJ=yes 15283 fi 15284 else 15285 lt_prog_compiler_static_works_GCJ=yes 15286 fi 15287 fi 15288 $rm conftest* 15289 LDFLAGS="$save_LDFLAGS" 15290 15291fi 15292echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15293echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15294 15295if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15296 : 15297else 15298 lt_prog_compiler_static_GCJ= 15299fi 15300 15301 15302echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15303echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15304if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15305 echo $ECHO_N "(cached) $ECHO_C" >&6 15306else 15307 lt_cv_prog_compiler_c_o_GCJ=no 15308 $rm -r conftest 2>/dev/null 15309 mkdir conftest 15310 cd conftest 15311 mkdir out 15312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15313 15314 lt_compiler_flag="-o out/conftest2.$ac_objext" 15315 # Insert the option either (1) after the last *FLAGS variable, or 15316 # (2) before a word containing "conftest.", or (3) at the end. 15317 # Note that $ac_compile itself does not contain backslashes and begins 15318 # with a dollar sign (not a hyphen), so the echo should work correctly. 15319 lt_compile=`echo "$ac_compile" | $SED \ 15320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15322 -e 's:$: $lt_compiler_flag:'` 15323 (eval echo "\"\$as_me:15323: $lt_compile\"" >&5) 15324 (eval "$lt_compile" 2>out/conftest.err) 15325 ac_status=$? 15326 cat out/conftest.err >&5 15327 echo "$as_me:15327: \$? = $ac_status" >&5 15328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15329 then 15330 # The compiler can only warn and ignore the option if not recognized 15331 # So say no if there are warnings 15332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15335 lt_cv_prog_compiler_c_o_GCJ=yes 15336 fi 15337 fi 15338 chmod u+w . 2>&5 15339 $rm conftest* 15340 # SGI C++ compiler will create directory out/ii_files/ for 15341 # template instantiation 15342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15343 $rm out/* && rmdir out 15344 cd .. 15345 rmdir conftest 15346 $rm conftest* 15347 15348fi 15349echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15350echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15351 15352 15353hard_links="nottested" 15354if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15355 # do not overwrite the value of need_locks provided by the user 15356 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15357echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15358 hard_links=yes 15359 $rm conftest* 15360 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15361 touch conftest.a 15362 ln conftest.a conftest.b 2>&5 || hard_links=no 15363 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15364 echo "$as_me:$LINENO: result: $hard_links" >&5 15365echo "${ECHO_T}$hard_links" >&6 15366 if test "$hard_links" = no; then 15367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15368echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15369 need_locks=warn 15370 fi 15371else 15372 need_locks=no 15373fi 15374 15375echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15376echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15377 15378 runpath_var= 15379 allow_undefined_flag_GCJ= 15380 enable_shared_with_static_runtimes_GCJ=no 15381 archive_cmds_GCJ= 15382 archive_expsym_cmds_GCJ= 15383 old_archive_From_new_cmds_GCJ= 15384 old_archive_from_expsyms_cmds_GCJ= 15385 export_dynamic_flag_spec_GCJ= 15386 whole_archive_flag_spec_GCJ= 15387 thread_safe_flag_spec_GCJ= 15388 hardcode_libdir_flag_spec_GCJ= 15389 hardcode_libdir_flag_spec_ld_GCJ= 15390 hardcode_libdir_separator_GCJ= 15391 hardcode_direct_GCJ=no 15392 hardcode_minus_L_GCJ=no 15393 hardcode_shlibpath_var_GCJ=unsupported 15394 link_all_deplibs_GCJ=unknown 15395 hardcode_automatic_GCJ=no 15396 module_cmds_GCJ= 15397 module_expsym_cmds_GCJ= 15398 always_export_symbols_GCJ=no 15399 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15400 # include_expsyms should be a list of space-separated symbols to be *always* 15401 # included in the symbol list 15402 include_expsyms_GCJ= 15403 # exclude_expsyms can be an extended regexp of symbols to exclude 15404 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15406 # as well as any symbol that contains `d'. 15407 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15409 # platforms (ab)use it in PIC code, but their linkers get confused if 15410 # the symbol is explicitly referenced. Since portable code cannot 15411 # rely on this symbol name, it's probably fine to never include it in 15412 # preloaded symbol tables. 15413 extract_expsyms_cmds= 15414 # Just being paranoid about ensuring that cc_basename is set. 15415 for cc_temp in $compiler""; do 15416 case $cc_temp in 15417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15419 \-*) ;; 15420 *) break;; 15421 esac 15422done 15423cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15424 15425 case $host_os in 15426 cygwin* | mingw* | pw32*) 15427 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15428 # When not using gcc, we currently assume that we are using 15429 # Microsoft Visual C++. 15430 if test "$GCC" != yes; then 15431 with_gnu_ld=no 15432 fi 15433 ;; 15434 interix*) 15435 # we just hope/assume this is gcc and not c89 (= MSVC++) 15436 with_gnu_ld=yes 15437 ;; 15438 openbsd*) 15439 with_gnu_ld=no 15440 ;; 15441 esac 15442 15443 ld_shlibs_GCJ=yes 15444 if test "$with_gnu_ld" = yes; then 15445 # If archive_cmds runs LD, not CC, wlarc should be empty 15446 wlarc='${wl}' 15447 15448 # Set some defaults for GNU ld with shared library support. These 15449 # are reset later if shared libraries are not supported. Putting them 15450 # here allows them to be overridden if necessary. 15451 runpath_var=LD_RUN_PATH 15452 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15453 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15454 # ancient GNU ld didn't support --whole-archive et. al. 15455 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15456 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15457 else 15458 whole_archive_flag_spec_GCJ= 15459 fi 15460 supports_anon_versioning=no 15461 case `$LD -v 2>/dev/null` in 15462 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15463 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15464 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15465 *\ 2.11.*) ;; # other 2.11 versions 15466 *) supports_anon_versioning=yes ;; 15467 esac 15468 15469 # See if GNU ld supports shared libraries. 15470 case $host_os in 15471 aix3* | aix4* | aix5*) 15472 # On AIX/PPC, the GNU linker is very broken 15473 if test "$host_cpu" != ia64; then 15474 ld_shlibs_GCJ=no 15475 cat <<EOF 1>&2 15476 15477*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15478*** to be unable to reliably create shared libraries on AIX. 15479*** Therefore, libtool is disabling shared libraries support. If you 15480*** really care for shared libraries, you may want to modify your PATH 15481*** so that a non-GNU linker is found, and then restart. 15482 15483EOF 15484 fi 15485 ;; 15486 15487 amigaos*) 15488 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)' 15489 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15490 hardcode_minus_L_GCJ=yes 15491 15492 # Samuel A. Falvo II <[email protected]> reports 15493 # that the semantics of dynamic libraries on AmigaOS, at least up 15494 # to version 4, is to share data among multiple programs linked 15495 # with the same dynamic library. Since this doesn't match the 15496 # behavior of shared libraries on other platforms, we can't use 15497 # them. 15498 ld_shlibs_GCJ=no 15499 ;; 15500 15501 beos*) 15502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15503 allow_undefined_flag_GCJ=unsupported 15504 # Joseph Beckenbach <[email protected]> says some releases of gcc 15505 # support --undefined. This deserves some investigation. FIXME 15506 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15507 else 15508 ld_shlibs_GCJ=no 15509 fi 15510 ;; 15511 15512 cygwin* | mingw* | pw32*) 15513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15514 # as there is no search path for DLLs. 15515 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15516 allow_undefined_flag_GCJ=unsupported 15517 always_export_symbols_GCJ=no 15518 enable_shared_with_static_runtimes_GCJ=yes 15519 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15520 15521 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15523 # If the export-symbols file already is a .def file (1st line 15524 # is EXPORTS), use it as is; otherwise, prepend... 15525 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15526 cp $export_symbols $output_objdir/$soname.def; 15527 else 15528 echo EXPORTS > $output_objdir/$soname.def; 15529 cat $export_symbols >> $output_objdir/$soname.def; 15530 fi~ 15531 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15532 else 15533 ld_shlibs_GCJ=no 15534 fi 15535 ;; 15536 15537 interix3*) 15538 hardcode_direct_GCJ=no 15539 hardcode_shlibpath_var_GCJ=no 15540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15541 export_dynamic_flag_spec_GCJ='${wl}-E' 15542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15543 # Instead, shared libraries are loaded at an image base (0x10000000 by 15544 # default) and relocated if they conflict, which is a slow very memory 15545 # consuming and fragmenting process. To avoid this, we pick a random, 15546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15547 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15548 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' 15549 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' 15550 ;; 15551 15552 linux*) 15553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15554 tmp_addflag= 15555 case $cc_basename,$host_cpu in 15556 pgcc*) # Portland Group C compiler 15557 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' 15558 tmp_addflag=' $pic_flag' 15559 ;; 15560 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15561 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' 15562 tmp_addflag=' $pic_flag -Mnomain' ;; 15563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15564 tmp_addflag=' -i_dynamic' ;; 15565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15566 tmp_addflag=' -i_dynamic -nofor_main' ;; 15567 ifc* | ifort*) # Intel Fortran compiler 15568 tmp_addflag=' -nofor_main' ;; 15569 esac 15570 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15571 15572 if test $supports_anon_versioning = yes; then 15573 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 15574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15575 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15576 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15577 fi 15578 else 15579 ld_shlibs_GCJ=no 15580 fi 15581 ;; 15582 15583 netbsd*) 15584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15585 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15586 wlarc= 15587 else 15588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15590 fi 15591 ;; 15592 15593 solaris*) 15594 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15595 ld_shlibs_GCJ=no 15596 cat <<EOF 1>&2 15597 15598*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15599*** create shared libraries on Solaris systems. Therefore, libtool 15600*** is disabling shared libraries support. We urge you to upgrade GNU 15601*** binutils to release 2.9.1 or newer. Another option is to modify 15602*** your PATH or compiler configuration so that the native linker is 15603*** used, and then restart. 15604 15605EOF 15606 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15609 else 15610 ld_shlibs_GCJ=no 15611 fi 15612 ;; 15613 15614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15615 case `$LD -v 2>&1` in 15616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15617 ld_shlibs_GCJ=no 15618 cat <<_LT_EOF 1>&2 15619 15620*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15621*** reliably create shared libraries on SCO systems. Therefore, libtool 15622*** is disabling shared libraries support. We urge you to upgrade GNU 15623*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15624*** your PATH or compiler configuration so that the native linker is 15625*** used, and then restart. 15626 15627_LT_EOF 15628 ;; 15629 *) 15630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15631 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15632 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15633 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15634 else 15635 ld_shlibs_GCJ=no 15636 fi 15637 ;; 15638 esac 15639 ;; 15640 15641 sunos4*) 15642 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15643 wlarc= 15644 hardcode_direct_GCJ=yes 15645 hardcode_shlibpath_var_GCJ=no 15646 ;; 15647 15648 *) 15649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15652 else 15653 ld_shlibs_GCJ=no 15654 fi 15655 ;; 15656 esac 15657 15658 if test "$ld_shlibs_GCJ" = no; then 15659 runpath_var= 15660 hardcode_libdir_flag_spec_GCJ= 15661 export_dynamic_flag_spec_GCJ= 15662 whole_archive_flag_spec_GCJ= 15663 fi 15664 else 15665 # PORTME fill in a description of your system's linker (not GNU ld) 15666 case $host_os in 15667 aix3*) 15668 allow_undefined_flag_GCJ=unsupported 15669 always_export_symbols_GCJ=yes 15670 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' 15671 # Note: this linker hardcodes the directories in LIBPATH if there 15672 # are no directories specified by -L. 15673 hardcode_minus_L_GCJ=yes 15674 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15675 # Neither direct hardcoding nor static linking is supported with a 15676 # broken collect2. 15677 hardcode_direct_GCJ=unsupported 15678 fi 15679 ;; 15680 15681 aix4* | aix5*) 15682 if test "$host_cpu" = ia64; then 15683 # On IA64, the linker does run time linking by default, so we don't 15684 # have to do anything special. 15685 aix_use_runtimelinking=no 15686 exp_sym_flag='-Bexport' 15687 no_entry_flag="" 15688 else 15689 # If we're using GNU nm, then we don't want the "-C" option. 15690 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15691 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15692 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' 15693 else 15694 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' 15695 fi 15696 aix_use_runtimelinking=no 15697 15698 # Test if we are trying to use run time linking or normal 15699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15700 # need to do runtime linking. 15701 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15702 for ld_flag in $LDFLAGS; do 15703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15704 aix_use_runtimelinking=yes 15705 break 15706 fi 15707 done 15708 ;; 15709 esac 15710 15711 exp_sym_flag='-bexport' 15712 no_entry_flag='-bnoentry' 15713 fi 15714 15715 # When large executables or shared objects are built, AIX ld can 15716 # have problems creating the table of contents. If linking a library 15717 # or program results in "error TOC overflow" add -mminimal-toc to 15718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15720 15721 archive_cmds_GCJ='' 15722 hardcode_direct_GCJ=yes 15723 hardcode_libdir_separator_GCJ=':' 15724 link_all_deplibs_GCJ=yes 15725 15726 if test "$GCC" = yes; then 15727 case $host_os in aix4.[012]|aix4.[012].*) 15728 # We only want to do this on AIX 4.2 and lower, the check 15729 # below for broken collect2 doesn't work under 4.3+ 15730 collect2name=`${CC} -print-prog-name=collect2` 15731 if test -f "$collect2name" && \ 15732 strings "$collect2name" | grep resolve_lib_name >/dev/null 15733 then 15734 # We have reworked collect2 15735 hardcode_direct_GCJ=yes 15736 else 15737 # We have old collect2 15738 hardcode_direct_GCJ=unsupported 15739 # It fails to find uninstalled libraries when the uninstalled 15740 # path is not listed in the libpath. Setting hardcode_minus_L 15741 # to unsupported forces relinking 15742 hardcode_minus_L_GCJ=yes 15743 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15744 hardcode_libdir_separator_GCJ= 15745 fi 15746 ;; 15747 esac 15748 shared_flag='-shared' 15749 if test "$aix_use_runtimelinking" = yes; then 15750 shared_flag="$shared_flag "'${wl}-G' 15751 fi 15752 else 15753 # not using gcc 15754 if test "$host_cpu" = ia64; then 15755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15756 # chokes on -Wl,-G. The following line is correct: 15757 shared_flag='-G' 15758 else 15759 if test "$aix_use_runtimelinking" = yes; then 15760 shared_flag='${wl}-G' 15761 else 15762 shared_flag='${wl}-bM:SRE' 15763 fi 15764 fi 15765 fi 15766 15767 # It seems that -bexpall does not export symbols beginning with 15768 # underscore (_), so it is better to generate a list of symbols to export. 15769 always_export_symbols_GCJ=yes 15770 if test "$aix_use_runtimelinking" = yes; then 15771 # Warning - without using the other runtime loading flags (-brtl), 15772 # -berok will link without error, but may produce a broken library. 15773 allow_undefined_flag_GCJ='-berok' 15774 # Determine the default libpath from the value encoded in an empty executable. 15775 cat >conftest.$ac_ext <<_ACEOF 15776/* confdefs.h. */ 15777_ACEOF 15778cat confdefs.h >>conftest.$ac_ext 15779cat >>conftest.$ac_ext <<_ACEOF 15780/* end confdefs.h. */ 15781 15782int 15783main () 15784{ 15785 15786 ; 15787 return 0; 15788} 15789_ACEOF 15790rm -f conftest.$ac_objext conftest$ac_exeext 15791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15792 (eval $ac_link) 2>conftest.er1 15793 ac_status=$? 15794 grep -v '^ *+' conftest.er1 >conftest.err 15795 rm -f conftest.er1 15796 cat conftest.err >&5 15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15798 (exit $ac_status); } && 15799 { ac_try='test -z "$ac_c_werror_flag" 15800 || test ! -s conftest.err' 15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15802 (eval $ac_try) 2>&5 15803 ac_status=$? 15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15805 (exit $ac_status); }; } && 15806 { ac_try='test -s conftest$ac_exeext' 15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15808 (eval $ac_try) 2>&5 15809 ac_status=$? 15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15811 (exit $ac_status); }; }; then 15812 15813aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15814}'` 15815# Check for a 64-bit object if we didn't find anything. 15816if 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; } 15817}'`; fi 15818else 15819 echo "$as_me: failed program was:" >&5 15820sed 's/^/| /' conftest.$ac_ext >&5 15821 15822fi 15823rm -f conftest.err conftest.$ac_objext \ 15824 conftest$ac_exeext conftest.$ac_ext 15825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15826 15827 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15828 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" 15829 else 15830 if test "$host_cpu" = ia64; then 15831 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 15832 allow_undefined_flag_GCJ="-z nodefs" 15833 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" 15834 else 15835 # Determine the default libpath from the value encoded in an empty executable. 15836 cat >conftest.$ac_ext <<_ACEOF 15837/* confdefs.h. */ 15838_ACEOF 15839cat confdefs.h >>conftest.$ac_ext 15840cat >>conftest.$ac_ext <<_ACEOF 15841/* end confdefs.h. */ 15842 15843int 15844main () 15845{ 15846 15847 ; 15848 return 0; 15849} 15850_ACEOF 15851rm -f conftest.$ac_objext conftest$ac_exeext 15852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15853 (eval $ac_link) 2>conftest.er1 15854 ac_status=$? 15855 grep -v '^ *+' conftest.er1 >conftest.err 15856 rm -f conftest.er1 15857 cat conftest.err >&5 15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15859 (exit $ac_status); } && 15860 { ac_try='test -z "$ac_c_werror_flag" 15861 || test ! -s conftest.err' 15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15863 (eval $ac_try) 2>&5 15864 ac_status=$? 15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15866 (exit $ac_status); }; } && 15867 { ac_try='test -s conftest$ac_exeext' 15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15869 (eval $ac_try) 2>&5 15870 ac_status=$? 15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15872 (exit $ac_status); }; }; then 15873 15874aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15875}'` 15876# Check for a 64-bit object if we didn't find anything. 15877if 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; } 15878}'`; fi 15879else 15880 echo "$as_me: failed program was:" >&5 15881sed 's/^/| /' conftest.$ac_ext >&5 15882 15883fi 15884rm -f conftest.err conftest.$ac_objext \ 15885 conftest$ac_exeext conftest.$ac_ext 15886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15887 15888 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15889 # Warning - without using the other run time loading flags, 15890 # -berok will link without error, but may produce a broken library. 15891 no_undefined_flag_GCJ=' ${wl}-bernotok' 15892 allow_undefined_flag_GCJ=' ${wl}-berok' 15893 # Exported symbols can be pulled into shared objects from archives 15894 whole_archive_flag_spec_GCJ='$convenience' 15895 archive_cmds_need_lc_GCJ=yes 15896 # This is similar to how AIX traditionally builds its shared libraries. 15897 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' 15898 fi 15899 fi 15900 ;; 15901 15902 amigaos*) 15903 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)' 15904 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15905 hardcode_minus_L_GCJ=yes 15906 # see comment about different semantics on the GNU ld section 15907 ld_shlibs_GCJ=no 15908 ;; 15909 15910 bsdi[45]*) 15911 export_dynamic_flag_spec_GCJ=-rdynamic 15912 ;; 15913 15914 cygwin* | mingw* | pw32*) 15915 # When not using gcc, we currently assume that we are using 15916 # Microsoft Visual C++. 15917 # hardcode_libdir_flag_spec is actually meaningless, as there is 15918 # no search path for DLLs. 15919 hardcode_libdir_flag_spec_GCJ=' ' 15920 allow_undefined_flag_GCJ=unsupported 15921 # Tell ltmain to make .lib files, not .a files. 15922 libext=lib 15923 # Tell ltmain to make .dll files, not .so files. 15924 shrext_cmds=".dll" 15925 # FIXME: Setting linknames here is a bad hack. 15926 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15927 # The linker will automatically build a .lib file if we build a DLL. 15928 old_archive_From_new_cmds_GCJ='true' 15929 # FIXME: Should let the user specify the lib program. 15930 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 15931 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 15932 enable_shared_with_static_runtimes_GCJ=yes 15933 ;; 15934 15935 darwin* | rhapsody*) 15936 case $host_os in 15937 rhapsody* | darwin1.[012]) 15938 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 15939 ;; 15940 *) # Darwin 1.3 on 15941 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15942 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15943 else 15944 case ${MACOSX_DEPLOYMENT_TARGET} in 15945 10.[012]) 15946 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15947 ;; 15948 10.*) 15949 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 15950 ;; 15951 esac 15952 fi 15953 ;; 15954 esac 15955 archive_cmds_need_lc_GCJ=no 15956 hardcode_direct_GCJ=no 15957 hardcode_automatic_GCJ=yes 15958 hardcode_shlibpath_var_GCJ=unsupported 15959 whole_archive_flag_spec_GCJ='' 15960 link_all_deplibs_GCJ=yes 15961 if test "$GCC" = yes ; then 15962 output_verbose_link_cmd='echo' 15963 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15964 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15965 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15966 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}' 15967 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}' 15968 else 15969 case $cc_basename in 15970 xlc*) 15971 output_verbose_link_cmd='echo' 15972 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15973 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15974 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15975 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}' 15976 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}' 15977 ;; 15978 *) 15979 ld_shlibs_GCJ=no 15980 ;; 15981 esac 15982 fi 15983 ;; 15984 15985 dgux*) 15986 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15987 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15988 hardcode_shlibpath_var_GCJ=no 15989 ;; 15990 15991 freebsd1*) 15992 ld_shlibs_GCJ=no 15993 ;; 15994 15995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15996 # support. Future versions do this automatically, but an explicit c++rt0.o 15997 # does not break anything, and helps significantly (at the cost of a little 15998 # extra space). 15999 freebsd2.2*) 16000 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16001 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16002 hardcode_direct_GCJ=yes 16003 hardcode_shlibpath_var_GCJ=no 16004 ;; 16005 16006 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16007 freebsd2*) 16008 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16009 hardcode_direct_GCJ=yes 16010 hardcode_minus_L_GCJ=yes 16011 hardcode_shlibpath_var_GCJ=no 16012 ;; 16013 16014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16015 freebsd* | kfreebsd*-gnu | dragonfly*) 16016 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16017 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16018 hardcode_direct_GCJ=yes 16019 hardcode_shlibpath_var_GCJ=no 16020 ;; 16021 16022 hpux9*) 16023 if test "$GCC" = yes; then 16024 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' 16025 else 16026 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' 16027 fi 16028 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16029 hardcode_libdir_separator_GCJ=: 16030 hardcode_direct_GCJ=yes 16031 16032 # hardcode_minus_L: Not really in the search PATH, 16033 # but as the default location of the library. 16034 hardcode_minus_L_GCJ=yes 16035 export_dynamic_flag_spec_GCJ='${wl}-E' 16036 ;; 16037 16038 hpux10*) 16039 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16040 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16041 else 16042 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16043 fi 16044 if test "$with_gnu_ld" = no; then 16045 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16046 hardcode_libdir_separator_GCJ=: 16047 16048 hardcode_direct_GCJ=yes 16049 export_dynamic_flag_spec_GCJ='${wl}-E' 16050 16051 # hardcode_minus_L: Not really in the search PATH, 16052 # but as the default location of the library. 16053 hardcode_minus_L_GCJ=yes 16054 fi 16055 ;; 16056 16057 hpux11*) 16058 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16059 case $host_cpu in 16060 hppa*64*) 16061 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16062 ;; 16063 ia64*) 16064 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16065 ;; 16066 *) 16067 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16068 ;; 16069 esac 16070 else 16071 case $host_cpu in 16072 hppa*64*) 16073 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16074 ;; 16075 ia64*) 16076 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16077 ;; 16078 *) 16079 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16080 ;; 16081 esac 16082 fi 16083 if test "$with_gnu_ld" = no; then 16084 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16085 hardcode_libdir_separator_GCJ=: 16086 16087 case $host_cpu in 16088 hppa*64*|ia64*) 16089 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16090 hardcode_direct_GCJ=no 16091 hardcode_shlibpath_var_GCJ=no 16092 ;; 16093 *) 16094 hardcode_direct_GCJ=yes 16095 export_dynamic_flag_spec_GCJ='${wl}-E' 16096 16097 # hardcode_minus_L: Not really in the search PATH, 16098 # but as the default location of the library. 16099 hardcode_minus_L_GCJ=yes 16100 ;; 16101 esac 16102 fi 16103 ;; 16104 16105 irix5* | irix6* | nonstopux*) 16106 if test "$GCC" = yes; then 16107 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' 16108 else 16109 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' 16110 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16111 fi 16112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16113 hardcode_libdir_separator_GCJ=: 16114 link_all_deplibs_GCJ=yes 16115 ;; 16116 16117 netbsd*) 16118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16119 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16120 else 16121 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16122 fi 16123 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16124 hardcode_direct_GCJ=yes 16125 hardcode_shlibpath_var_GCJ=no 16126 ;; 16127 16128 newsos6) 16129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16130 hardcode_direct_GCJ=yes 16131 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16132 hardcode_libdir_separator_GCJ=: 16133 hardcode_shlibpath_var_GCJ=no 16134 ;; 16135 16136 openbsd*) 16137 hardcode_direct_GCJ=yes 16138 hardcode_shlibpath_var_GCJ=no 16139 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16140 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16141 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16142 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16143 export_dynamic_flag_spec_GCJ='${wl}-E' 16144 else 16145 case $host_os in 16146 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16147 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16148 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16149 ;; 16150 *) 16151 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16152 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16153 ;; 16154 esac 16155 fi 16156 ;; 16157 16158 os2*) 16159 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16160 hardcode_minus_L_GCJ=yes 16161 allow_undefined_flag_GCJ=unsupported 16162 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' 16163 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16164 ;; 16165 16166 osf3*) 16167 if test "$GCC" = yes; then 16168 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16169 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' 16170 else 16171 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16172 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' 16173 fi 16174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16175 hardcode_libdir_separator_GCJ=: 16176 ;; 16177 16178 osf4* | osf5*) # as osf3* with the addition of -msym flag 16179 if test "$GCC" = yes; then 16180 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16181 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' 16182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16183 else 16184 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16185 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' 16186 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~ 16187 $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' 16188 16189 # Both c and cxx compiler support -rpath directly 16190 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16191 fi 16192 hardcode_libdir_separator_GCJ=: 16193 ;; 16194 16195 solaris*) 16196 no_undefined_flag_GCJ=' -z text' 16197 if test "$GCC" = yes; then 16198 wlarc='${wl}' 16199 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16200 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16201 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16202 else 16203 wlarc='' 16204 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16205 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16207 fi 16208 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16209 hardcode_shlibpath_var_GCJ=no 16210 case $host_os in 16211 solaris2.[0-5] | solaris2.[0-5].*) ;; 16212 *) 16213 # The compiler driver will combine linker options so we 16214 # cannot just pass the convience library names through 16215 # without $wl, iff we do not link with $LD. 16216 # Luckily, gcc supports the same syntax we need for Sun Studio. 16217 # Supported since Solaris 2.6 (maybe 2.5.1?) 16218 case $wlarc in 16219 '') 16220 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16221 *) 16222 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' ;; 16223 esac ;; 16224 esac 16225 link_all_deplibs_GCJ=yes 16226 ;; 16227 16228 sunos4*) 16229 if test "x$host_vendor" = xsequent; then 16230 # Use $CC to link under sequent, because it throws in some extra .o 16231 # files that make .init and .fini sections work. 16232 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16233 else 16234 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16235 fi 16236 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16237 hardcode_direct_GCJ=yes 16238 hardcode_minus_L_GCJ=yes 16239 hardcode_shlibpath_var_GCJ=no 16240 ;; 16241 16242 sysv4) 16243 case $host_vendor in 16244 sni) 16245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16246 hardcode_direct_GCJ=yes # is this really true??? 16247 ;; 16248 siemens) 16249 ## LD is ld it makes a PLAMLIB 16250 ## CC just makes a GrossModule. 16251 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16252 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16253 hardcode_direct_GCJ=no 16254 ;; 16255 motorola) 16256 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16257 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16258 ;; 16259 esac 16260 runpath_var='LD_RUN_PATH' 16261 hardcode_shlibpath_var_GCJ=no 16262 ;; 16263 16264 sysv4.3*) 16265 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16266 hardcode_shlibpath_var_GCJ=no 16267 export_dynamic_flag_spec_GCJ='-Bexport' 16268 ;; 16269 16270 sysv4*MP*) 16271 if test -d /usr/nec; then 16272 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16273 hardcode_shlibpath_var_GCJ=no 16274 runpath_var=LD_RUN_PATH 16275 hardcode_runpath_var=yes 16276 ld_shlibs_GCJ=yes 16277 fi 16278 ;; 16279 16280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16281 no_undefined_flag_GCJ='${wl}-z,text' 16282 archive_cmds_need_lc_GCJ=no 16283 hardcode_shlibpath_var_GCJ=no 16284 runpath_var='LD_RUN_PATH' 16285 16286 if test "$GCC" = yes; then 16287 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16288 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16289 else 16290 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16291 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16292 fi 16293 ;; 16294 16295 sysv5* | sco3.2v5* | sco5v6*) 16296 # Note: We can NOT use -z defs as we might desire, because we do not 16297 # link with -lc, and that would cause any symbols used from libc to 16298 # always be unresolved, which means just about no library would 16299 # ever link correctly. If we're not using GNU ld we use -z text 16300 # though, which does catch some bad symbols but isn't as heavy-handed 16301 # as -z defs. 16302 no_undefined_flag_GCJ='${wl}-z,text' 16303 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16304 archive_cmds_need_lc_GCJ=no 16305 hardcode_shlibpath_var_GCJ=no 16306 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16307 hardcode_libdir_separator_GCJ=':' 16308 link_all_deplibs_GCJ=yes 16309 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16310 runpath_var='LD_RUN_PATH' 16311 16312 if test "$GCC" = yes; then 16313 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16314 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16315 else 16316 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16317 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16318 fi 16319 ;; 16320 16321 uts4*) 16322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16323 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16324 hardcode_shlibpath_var_GCJ=no 16325 ;; 16326 16327 *) 16328 ld_shlibs_GCJ=no 16329 ;; 16330 esac 16331 fi 16332 16333echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16334echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16335test "$ld_shlibs_GCJ" = no && can_build_shared=no 16336 16337# 16338# Do we need to explicitly link libc? 16339# 16340case "x$archive_cmds_need_lc_GCJ" in 16341x|xyes) 16342 # Assume -lc should be added 16343 archive_cmds_need_lc_GCJ=yes 16344 16345 if test "$enable_shared" = yes && test "$GCC" = yes; then 16346 case $archive_cmds_GCJ in 16347 *'~'*) 16348 # FIXME: we may have to deal with multi-command sequences. 16349 ;; 16350 '$CC '*) 16351 # Test whether the compiler implicitly links with -lc since on some 16352 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16353 # to ld, don't add -lc before -lgcc. 16354 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16355echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16356 $rm conftest* 16357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16358 16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16360 (eval $ac_compile) 2>&5 16361 ac_status=$? 16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16363 (exit $ac_status); } 2>conftest.err; then 16364 soname=conftest 16365 lib=conftest 16366 libobjs=conftest.$ac_objext 16367 deplibs= 16368 wl=$lt_prog_compiler_wl_GCJ 16369 pic_flag=$lt_prog_compiler_pic_GCJ 16370 compiler_flags=-v 16371 linker_flags=-v 16372 verstring= 16373 output_objdir=. 16374 libname=conftest 16375 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16376 allow_undefined_flag_GCJ= 16377 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16378 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16379 ac_status=$? 16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16381 (exit $ac_status); } 16382 then 16383 archive_cmds_need_lc_GCJ=no 16384 else 16385 archive_cmds_need_lc_GCJ=yes 16386 fi 16387 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16388 else 16389 cat conftest.err 1>&5 16390 fi 16391 $rm conftest* 16392 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16393echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16394 ;; 16395 esac 16396 fi 16397 ;; 16398esac 16399 16400echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16401echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16402library_names_spec= 16403libname_spec='lib$name' 16404soname_spec= 16405shrext_cmds=".so" 16406postinstall_cmds= 16407postuninstall_cmds= 16408finish_cmds= 16409finish_eval= 16410shlibpath_var= 16411shlibpath_overrides_runpath=unknown 16412version_type=none 16413dynamic_linker="$host_os ld.so" 16414sys_lib_dlsearch_path_spec="/lib /usr/lib" 16415if test "$GCC" = yes; then 16416 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16417 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16418 # if the path contains ";" then we assume it to be the separator 16419 # otherwise default to the standard path separator (i.e. ":") - it is 16420 # assumed that no part of a normal pathname contains ";" but that should 16421 # okay in the real world where ";" in dirpaths is itself problematic. 16422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16423 else 16424 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16425 fi 16426else 16427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16428fi 16429need_lib_prefix=unknown 16430hardcode_into_libs=no 16431 16432# when you set need_version to no, make sure it does not cause -set_version 16433# flags to be left without arguments 16434need_version=unknown 16435 16436case $host_os in 16437aix3*) 16438 version_type=linux 16439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16440 shlibpath_var=LIBPATH 16441 16442 # AIX 3 has no versioning support, so we append a major version to the name. 16443 soname_spec='${libname}${release}${shared_ext}$major' 16444 ;; 16445 16446aix4* | aix5*) 16447 version_type=linux 16448 need_lib_prefix=no 16449 need_version=no 16450 hardcode_into_libs=yes 16451 if test "$host_cpu" = ia64; then 16452 # AIX 5 supports IA64 16453 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16454 shlibpath_var=LD_LIBRARY_PATH 16455 else 16456 # With GCC up to 2.95.x, collect2 would create an import file 16457 # for dependence libraries. The import file would start with 16458 # the line `#! .'. This would cause the generated library to 16459 # depend on `.', always an invalid library. This was fixed in 16460 # development snapshots of GCC prior to 3.0. 16461 case $host_os in 16462 aix4 | aix4.[01] | aix4.[01].*) 16463 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16464 echo ' yes ' 16465 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16466 : 16467 else 16468 can_build_shared=no 16469 fi 16470 ;; 16471 esac 16472 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16473 # soname into executable. Probably we can add versioning support to 16474 # collect2, so additional links can be useful in future. 16475 if test "$aix_use_runtimelinking" = yes; then 16476 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16477 # instead of lib<name>.a to let people know that these are not 16478 # typical AIX shared libraries. 16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16480 else 16481 # We preserve .a as extension for shared libraries through AIX4.2 16482 # and later when we are not doing run time linking. 16483 library_names_spec='${libname}${release}.a $libname.a' 16484 soname_spec='${libname}${release}${shared_ext}$major' 16485 fi 16486 shlibpath_var=LIBPATH 16487 fi 16488 ;; 16489 16490amigaos*) 16491 library_names_spec='$libname.ixlibrary $libname.a' 16492 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16493 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' 16494 ;; 16495 16496beos*) 16497 library_names_spec='${libname}${shared_ext}' 16498 dynamic_linker="$host_os ld.so" 16499 shlibpath_var=LIBRARY_PATH 16500 ;; 16501 16502bsdi[45]*) 16503 version_type=linux 16504 need_version=no 16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16506 soname_spec='${libname}${release}${shared_ext}$major' 16507 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16508 shlibpath_var=LD_LIBRARY_PATH 16509 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16510 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16511 # the default ld.so.conf also contains /usr/contrib/lib and 16512 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16513 # libtool to hard-code these into programs 16514 ;; 16515 16516cygwin* | mingw* | pw32*) 16517 version_type=windows 16518 shrext_cmds=".dll" 16519 need_version=no 16520 need_lib_prefix=no 16521 16522 case $GCC,$host_os in 16523 yes,cygwin* | yes,mingw* | yes,pw32*) 16524 library_names_spec='$libname.dll.a' 16525 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16526 postinstall_cmds='base_file=`basename \${file}`~ 16527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16528 dldir=$destdir/`dirname \$dlpath`~ 16529 test -d \$dldir || mkdir -p \$dldir~ 16530 $install_prog $dir/$dlname \$dldir/$dlname~ 16531 chmod a+x \$dldir/$dlname' 16532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16533 dlpath=$dir/\$dldll~ 16534 $rm \$dlpath' 16535 shlibpath_overrides_runpath=yes 16536 16537 case $host_os in 16538 cygwin*) 16539 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16541 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16542 ;; 16543 mingw*) 16544 # MinGW DLLs use traditional 'lib' prefix 16545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16547 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16548 # It is most probably a Windows format PATH printed by 16549 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16550 # path with ; separators, and with drive letters. We can handle the 16551 # drive letters (cygwin fileutils understands them), so leave them, 16552 # especially as we might pass files found there to a mingw objdump, 16553 # which wouldn't understand a cygwinified path. Ahh. 16554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16555 else 16556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16557 fi 16558 ;; 16559 pw32*) 16560 # pw32 DLLs use 'pw' prefix rather than 'lib' 16561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16562 ;; 16563 esac 16564 ;; 16565 16566 linux*) 16567 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 16568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16569 supports_anon_versioning=no 16570 case `$LD -v 2>/dev/null` in 16571 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16572 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16573 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16574 *\ 2.11.*) ;; # other 2.11 versions 16575 *) supports_anon_versioning=yes ;; 16576 esac 16577 if test $supports_anon_versioning = yes; then 16578 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 16579cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16580$echo "local: *; };" >> $output_objdir/$libname.ver~ 16581 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16582 else 16583 $archive_expsym_cmds="$archive_cmds" 16584 fi 16585 else 16586 ld_shlibs=no 16587 fi 16588 ;; 16589 16590 *) 16591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16592 ;; 16593 esac 16594 dynamic_linker='Win32 ld.exe' 16595 # FIXME: first we should search . and the directory the executable is in 16596 shlibpath_var=PATH 16597 ;; 16598 16599darwin* | rhapsody*) 16600 dynamic_linker="$host_os dyld" 16601 version_type=darwin 16602 need_lib_prefix=no 16603 need_version=no 16604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16605 soname_spec='${libname}${release}${major}$shared_ext' 16606 shlibpath_overrides_runpath=yes 16607 shlibpath_var=DYLD_LIBRARY_PATH 16608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16610 if test "$GCC" = yes; then 16611 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"` 16612 else 16613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16614 fi 16615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16616 ;; 16617 16618dgux*) 16619 version_type=linux 16620 need_lib_prefix=no 16621 need_version=no 16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16623 soname_spec='${libname}${release}${shared_ext}$major' 16624 shlibpath_var=LD_LIBRARY_PATH 16625 ;; 16626 16627freebsd1*) 16628 dynamic_linker=no 16629 ;; 16630 16631kfreebsd*-gnu) 16632 version_type=linux 16633 need_lib_prefix=no 16634 need_version=no 16635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16636 soname_spec='${libname}${release}${shared_ext}$major' 16637 shlibpath_var=LD_LIBRARY_PATH 16638 shlibpath_overrides_runpath=no 16639 hardcode_into_libs=yes 16640 dynamic_linker='GNU ld.so' 16641 ;; 16642 16643freebsd* | dragonfly*) 16644 # DragonFly does not have aout. When/if they implement a new 16645 # versioning mechanism, adjust this. 16646 if test -x /usr/bin/objformat; then 16647 objformat=`/usr/bin/objformat` 16648 else 16649 case $host_os in 16650 freebsd[123]*) objformat=aout ;; 16651 *) objformat=elf ;; 16652 esac 16653 fi 16654 # Handle Gentoo/FreeBSD as it was Linux 16655 case $host_vendor in 16656 gentoo) 16657 version_type=linux ;; 16658 *) 16659 version_type=freebsd-$objformat ;; 16660 esac 16661 16662 case $version_type in 16663 freebsd-elf*) 16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16665 need_version=no 16666 need_lib_prefix=no 16667 ;; 16668 freebsd-*) 16669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16670 need_version=yes 16671 ;; 16672 linux) 16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16674 soname_spec='${libname}${release}${shared_ext}$major' 16675 need_lib_prefix=no 16676 need_version=no 16677 ;; 16678 esac 16679 shlibpath_var=LD_LIBRARY_PATH 16680 case $host_os in 16681 freebsd2*) 16682 shlibpath_overrides_runpath=yes 16683 ;; 16684 freebsd3.[01]* | freebsdelf3.[01]*) 16685 shlibpath_overrides_runpath=yes 16686 hardcode_into_libs=yes 16687 ;; 16688 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16689 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16690 shlibpath_overrides_runpath=no 16691 hardcode_into_libs=yes 16692 ;; 16693 freebsd*) # from 4.6 on 16694 shlibpath_overrides_runpath=yes 16695 hardcode_into_libs=yes 16696 ;; 16697 esac 16698 ;; 16699 16700gnu*) 16701 version_type=linux 16702 need_lib_prefix=no 16703 need_version=no 16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16705 soname_spec='${libname}${release}${shared_ext}$major' 16706 shlibpath_var=LD_LIBRARY_PATH 16707 hardcode_into_libs=yes 16708 ;; 16709 16710hpux9* | hpux10* | hpux11*) 16711 # Give a soname corresponding to the major version so that dld.sl refuses to 16712 # link against other versions. 16713 version_type=sunos 16714 need_lib_prefix=no 16715 need_version=no 16716 case $host_cpu in 16717 ia64*) 16718 shrext_cmds='.so' 16719 hardcode_into_libs=yes 16720 dynamic_linker="$host_os dld.so" 16721 shlibpath_var=LD_LIBRARY_PATH 16722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16724 soname_spec='${libname}${release}${shared_ext}$major' 16725 if test "X$HPUX_IA64_MODE" = X32; then 16726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16727 else 16728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16729 fi 16730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16731 ;; 16732 hppa*64*) 16733 shrext_cmds='.sl' 16734 hardcode_into_libs=yes 16735 dynamic_linker="$host_os dld.sl" 16736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16739 soname_spec='${libname}${release}${shared_ext}$major' 16740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16742 ;; 16743 *) 16744 shrext_cmds='.sl' 16745 dynamic_linker="$host_os dld.sl" 16746 shlibpath_var=SHLIB_PATH 16747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16749 soname_spec='${libname}${release}${shared_ext}$major' 16750 ;; 16751 esac 16752 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16753 postinstall_cmds='chmod 555 $lib' 16754 ;; 16755 16756interix3*) 16757 version_type=linux 16758 need_lib_prefix=no 16759 need_version=no 16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16761 soname_spec='${libname}${release}${shared_ext}$major' 16762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16763 shlibpath_var=LD_LIBRARY_PATH 16764 shlibpath_overrides_runpath=no 16765 hardcode_into_libs=yes 16766 ;; 16767 16768irix5* | irix6* | nonstopux*) 16769 case $host_os in 16770 nonstopux*) version_type=nonstopux ;; 16771 *) 16772 if test "$lt_cv_prog_gnu_ld" = yes; then 16773 version_type=linux 16774 else 16775 version_type=irix 16776 fi ;; 16777 esac 16778 need_lib_prefix=no 16779 need_version=no 16780 soname_spec='${libname}${release}${shared_ext}$major' 16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16782 case $host_os in 16783 irix5* | nonstopux*) 16784 libsuff= shlibsuff= 16785 ;; 16786 *) 16787 case $LD in # libtool.m4 will add one of these switches to LD 16788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16789 libsuff= shlibsuff= libmagic=32-bit;; 16790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16791 libsuff=32 shlibsuff=N32 libmagic=N32;; 16792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16793 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16794 *) libsuff= shlibsuff= libmagic=never-match;; 16795 esac 16796 ;; 16797 esac 16798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16799 shlibpath_overrides_runpath=no 16800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16802 hardcode_into_libs=yes 16803 ;; 16804 16805# No shared lib support for Linux oldld, aout, or coff. 16806linux*oldld* | linux*aout* | linux*coff*) 16807 dynamic_linker=no 16808 ;; 16809 16810# This must be Linux ELF. 16811linux*) 16812 version_type=linux 16813 need_lib_prefix=no 16814 need_version=no 16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16816 soname_spec='${libname}${release}${shared_ext}$major' 16817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16818 shlibpath_var=LD_LIBRARY_PATH 16819 shlibpath_overrides_runpath=no 16820 # This implies no fast_install, which is unacceptable. 16821 # Some rework will be needed to allow for fast_install 16822 # before this can be enabled. 16823 hardcode_into_libs=yes 16824 16825 # Append ld.so.conf contents to the search path 16826 if test -f /etc/ld.so.conf; then 16827 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' ' '` 16828 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16829 fi 16830 16831 # We used to test for /lib/ld.so.1 and disable shared libraries on 16832 # powerpc, because MkLinux only supported shared libraries with the 16833 # GNU dynamic linker. Since this was broken with cross compilers, 16834 # most powerpc-linux boxes support dynamic linking these days and 16835 # people can always --disable-shared, the test was removed, and we 16836 # assume the GNU/Linux dynamic linker is in use. 16837 dynamic_linker='GNU/Linux ld.so' 16838 ;; 16839 16840knetbsd*-gnu) 16841 version_type=linux 16842 need_lib_prefix=no 16843 need_version=no 16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16845 soname_spec='${libname}${release}${shared_ext}$major' 16846 shlibpath_var=LD_LIBRARY_PATH 16847 shlibpath_overrides_runpath=no 16848 hardcode_into_libs=yes 16849 dynamic_linker='GNU ld.so' 16850 ;; 16851 16852netbsd*) 16853 version_type=sunos 16854 need_lib_prefix=no 16855 need_version=no 16856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16859 dynamic_linker='NetBSD (a.out) ld.so' 16860 else 16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16862 soname_spec='${libname}${release}${shared_ext}$major' 16863 dynamic_linker='NetBSD ld.elf_so' 16864 fi 16865 shlibpath_var=LD_LIBRARY_PATH 16866 shlibpath_overrides_runpath=yes 16867 hardcode_into_libs=yes 16868 ;; 16869 16870newsos6) 16871 version_type=linux 16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16873 shlibpath_var=LD_LIBRARY_PATH 16874 shlibpath_overrides_runpath=yes 16875 ;; 16876 16877nto-qnx*) 16878 version_type=linux 16879 need_lib_prefix=no 16880 need_version=no 16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16882 soname_spec='${libname}${release}${shared_ext}$major' 16883 shlibpath_var=LD_LIBRARY_PATH 16884 shlibpath_overrides_runpath=yes 16885 ;; 16886 16887openbsd*) 16888 version_type=sunos 16889 sys_lib_dlsearch_path_spec="/usr/lib" 16890 need_lib_prefix=no 16891 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16892 case $host_os in 16893 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16894 *) need_version=no ;; 16895 esac 16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16898 shlibpath_var=LD_LIBRARY_PATH 16899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16900 case $host_os in 16901 openbsd2.[89] | openbsd2.[89].*) 16902 shlibpath_overrides_runpath=no 16903 ;; 16904 *) 16905 shlibpath_overrides_runpath=yes 16906 ;; 16907 esac 16908 else 16909 shlibpath_overrides_runpath=yes 16910 fi 16911 ;; 16912 16913os2*) 16914 libname_spec='$name' 16915 shrext_cmds=".dll" 16916 need_lib_prefix=no 16917 library_names_spec='$libname${shared_ext} $libname.a' 16918 dynamic_linker='OS/2 ld.exe' 16919 shlibpath_var=LIBPATH 16920 ;; 16921 16922osf3* | osf4* | osf5*) 16923 version_type=osf 16924 need_lib_prefix=no 16925 need_version=no 16926 soname_spec='${libname}${release}${shared_ext}$major' 16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16928 shlibpath_var=LD_LIBRARY_PATH 16929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16930 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16931 ;; 16932 16933solaris*) 16934 version_type=linux 16935 need_lib_prefix=no 16936 need_version=no 16937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16938 soname_spec='${libname}${release}${shared_ext}$major' 16939 shlibpath_var=LD_LIBRARY_PATH 16940 shlibpath_overrides_runpath=yes 16941 hardcode_into_libs=yes 16942 # ldd complains unless libraries are executable 16943 postinstall_cmds='chmod +x $lib' 16944 ;; 16945 16946sunos4*) 16947 version_type=sunos 16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16949 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16950 shlibpath_var=LD_LIBRARY_PATH 16951 shlibpath_overrides_runpath=yes 16952 if test "$with_gnu_ld" = yes; then 16953 need_lib_prefix=no 16954 fi 16955 need_version=yes 16956 ;; 16957 16958sysv4 | sysv4.3*) 16959 version_type=linux 16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16961 soname_spec='${libname}${release}${shared_ext}$major' 16962 shlibpath_var=LD_LIBRARY_PATH 16963 case $host_vendor in 16964 sni) 16965 shlibpath_overrides_runpath=no 16966 need_lib_prefix=no 16967 export_dynamic_flag_spec='${wl}-Blargedynsym' 16968 runpath_var=LD_RUN_PATH 16969 ;; 16970 siemens) 16971 need_lib_prefix=no 16972 ;; 16973 motorola) 16974 need_lib_prefix=no 16975 need_version=no 16976 shlibpath_overrides_runpath=no 16977 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16978 ;; 16979 esac 16980 ;; 16981 16982sysv4*MP*) 16983 if test -d /usr/nec ;then 16984 version_type=linux 16985 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16986 soname_spec='$libname${shared_ext}.$major' 16987 shlibpath_var=LD_LIBRARY_PATH 16988 fi 16989 ;; 16990 16991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16992 version_type=freebsd-elf 16993 need_lib_prefix=no 16994 need_version=no 16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16996 soname_spec='${libname}${release}${shared_ext}$major' 16997 shlibpath_var=LD_LIBRARY_PATH 16998 hardcode_into_libs=yes 16999 if test "$with_gnu_ld" = yes; then 17000 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17001 shlibpath_overrides_runpath=no 17002 else 17003 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17004 shlibpath_overrides_runpath=yes 17005 case $host_os in 17006 sco3.2v5*) 17007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17008 ;; 17009 esac 17010 fi 17011 sys_lib_dlsearch_path_spec='/usr/lib' 17012 ;; 17013 17014uts4*) 17015 version_type=linux 17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17017 soname_spec='${libname}${release}${shared_ext}$major' 17018 shlibpath_var=LD_LIBRARY_PATH 17019 ;; 17020 17021*) 17022 dynamic_linker=no 17023 ;; 17024esac 17025echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17026echo "${ECHO_T}$dynamic_linker" >&6 17027test "$dynamic_linker" = no && can_build_shared=no 17028 17029variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17030if test "$GCC" = yes; then 17031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17032fi 17033 17034echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17035echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17036hardcode_action_GCJ= 17037if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17038 test -n "$runpath_var_GCJ" || \ 17039 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17040 17041 # We can hardcode non-existant directories. 17042 if test "$hardcode_direct_GCJ" != no && 17043 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17044 # have to relink, otherwise we might link with an installed library 17045 # when we should be linking with a yet-to-be-installed one 17046 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17047 test "$hardcode_minus_L_GCJ" != no; then 17048 # Linking always hardcodes the temporary library directory. 17049 hardcode_action_GCJ=relink 17050 else 17051 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17052 hardcode_action_GCJ=immediate 17053 fi 17054else 17055 # We cannot hardcode anything, or else we can only hardcode existing 17056 # directories. 17057 hardcode_action_GCJ=unsupported 17058fi 17059echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17060echo "${ECHO_T}$hardcode_action_GCJ" >&6 17061 17062if test "$hardcode_action_GCJ" = relink; then 17063 # Fast installation is not supported 17064 enable_fast_install=no 17065elif test "$shlibpath_overrides_runpath" = yes || 17066 test "$enable_shared" = no; then 17067 # Fast installation is not necessary 17068 enable_fast_install=needless 17069fi 17070 17071 17072# The else clause should only fire when bootstrapping the 17073# libtool distribution, otherwise you forgot to ship ltmain.sh 17074# with your package, and you will get complaints that there are 17075# no rules to generate ltmain.sh. 17076if test -f "$ltmain"; then 17077 # See if we are running on zsh, and set the options which allow our commands through 17078 # without removal of \ escapes. 17079 if test -n "${ZSH_VERSION+set}" ; then 17080 setopt NO_GLOB_SUBST 17081 fi 17082 # Now quote all the things that may contain metacharacters while being 17083 # careful not to overquote the AC_SUBSTed values. We take copies of the 17084 # variables and quote the copies for generation of the libtool script. 17085 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17086 SED SHELL STRIP \ 17087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17089 deplibs_check_method reload_flag reload_cmds need_locks \ 17090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17091 lt_cv_sys_global_symbol_to_c_name_address \ 17092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17093 old_postinstall_cmds old_postuninstall_cmds \ 17094 compiler_GCJ \ 17095 CC_GCJ \ 17096 LD_GCJ \ 17097 lt_prog_compiler_wl_GCJ \ 17098 lt_prog_compiler_pic_GCJ \ 17099 lt_prog_compiler_static_GCJ \ 17100 lt_prog_compiler_no_builtin_flag_GCJ \ 17101 export_dynamic_flag_spec_GCJ \ 17102 thread_safe_flag_spec_GCJ \ 17103 whole_archive_flag_spec_GCJ \ 17104 enable_shared_with_static_runtimes_GCJ \ 17105 old_archive_cmds_GCJ \ 17106 old_archive_from_new_cmds_GCJ \ 17107 predep_objects_GCJ \ 17108 postdep_objects_GCJ \ 17109 predeps_GCJ \ 17110 postdeps_GCJ \ 17111 compiler_lib_search_path_GCJ \ 17112 archive_cmds_GCJ \ 17113 archive_expsym_cmds_GCJ \ 17114 postinstall_cmds_GCJ \ 17115 postuninstall_cmds_GCJ \ 17116 old_archive_from_expsyms_cmds_GCJ \ 17117 allow_undefined_flag_GCJ \ 17118 no_undefined_flag_GCJ \ 17119 export_symbols_cmds_GCJ \ 17120 hardcode_libdir_flag_spec_GCJ \ 17121 hardcode_libdir_flag_spec_ld_GCJ \ 17122 hardcode_libdir_separator_GCJ \ 17123 hardcode_automatic_GCJ \ 17124 module_cmds_GCJ \ 17125 module_expsym_cmds_GCJ \ 17126 lt_cv_prog_compiler_c_o_GCJ \ 17127 exclude_expsyms_GCJ \ 17128 include_expsyms_GCJ; do 17129 17130 case $var in 17131 old_archive_cmds_GCJ | \ 17132 old_archive_from_new_cmds_GCJ | \ 17133 archive_cmds_GCJ | \ 17134 archive_expsym_cmds_GCJ | \ 17135 module_cmds_GCJ | \ 17136 module_expsym_cmds_GCJ | \ 17137 old_archive_from_expsyms_cmds_GCJ | \ 17138 export_symbols_cmds_GCJ | \ 17139 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17140 postinstall_cmds | postuninstall_cmds | \ 17141 old_postinstall_cmds | old_postuninstall_cmds | \ 17142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17143 # Double-quote double-evaled strings. 17144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17145 ;; 17146 *) 17147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17148 ;; 17149 esac 17150 done 17151 17152 case $lt_echo in 17153 *'\$0 --fallback-echo"') 17154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17155 ;; 17156 esac 17157 17158cfgfile="$ofile" 17159 17160 cat <<__EOF__ >> "$cfgfile" 17161# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17162 17163# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17164 17165# Shell to use when invoking shell scripts. 17166SHELL=$lt_SHELL 17167 17168# Whether or not to build shared libraries. 17169build_libtool_libs=$enable_shared 17170 17171# Whether or not to build static libraries. 17172build_old_libs=$enable_static 17173 17174# Whether or not to add -lc for building shared libraries. 17175build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17176 17177# Whether or not to disallow shared libs when runtime libs are static 17178allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17179 17180# Whether or not to optimize for fast installation. 17181fast_install=$enable_fast_install 17182 17183# The host system. 17184host_alias=$host_alias 17185host=$host 17186host_os=$host_os 17187 17188# The build system. 17189build_alias=$build_alias 17190build=$build 17191build_os=$build_os 17192 17193# An echo program that does not interpret backslashes. 17194echo=$lt_echo 17195 17196# The archiver. 17197AR=$lt_AR 17198AR_FLAGS=$lt_AR_FLAGS 17199 17200# A C compiler. 17201LTCC=$lt_LTCC 17202 17203# LTCC compiler flags. 17204LTCFLAGS=$lt_LTCFLAGS 17205 17206# A language-specific compiler. 17207CC=$lt_compiler_GCJ 17208 17209# Is the compiler the GNU C compiler? 17210with_gcc=$GCC_GCJ 17211 17212# An ERE matcher. 17213EGREP=$lt_EGREP 17214 17215# The linker used to build libraries. 17216LD=$lt_LD_GCJ 17217 17218# Whether we need hard or soft links. 17219LN_S=$lt_LN_S 17220 17221# A BSD-compatible nm program. 17222NM=$lt_NM 17223 17224# A symbol stripping program 17225STRIP=$lt_STRIP 17226 17227# Used to examine libraries when file_magic_cmd begins "file" 17228MAGIC_CMD=$MAGIC_CMD 17229 17230# Used on cygwin: DLL creation program. 17231DLLTOOL="$DLLTOOL" 17232 17233# Used on cygwin: object dumper. 17234OBJDUMP="$OBJDUMP" 17235 17236# Used on cygwin: assembler. 17237AS="$AS" 17238 17239# The name of the directory that contains temporary libtool files. 17240objdir=$objdir 17241 17242# How to create reloadable object files. 17243reload_flag=$lt_reload_flag 17244reload_cmds=$lt_reload_cmds 17245 17246# How to pass a linker flag through the compiler. 17247wl=$lt_lt_prog_compiler_wl_GCJ 17248 17249# Object file suffix (normally "o"). 17250objext="$ac_objext" 17251 17252# Old archive suffix (normally "a"). 17253libext="$libext" 17254 17255# Shared library suffix (normally ".so"). 17256shrext_cmds='$shrext_cmds' 17257 17258# Executable file suffix (normally ""). 17259exeext="$exeext" 17260 17261# Additional compiler flags for building library objects. 17262pic_flag=$lt_lt_prog_compiler_pic_GCJ 17263pic_mode=$pic_mode 17264 17265# What is the maximum length of a command? 17266max_cmd_len=$lt_cv_sys_max_cmd_len 17267 17268# Does compiler simultaneously support -c and -o options? 17269compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17270 17271# Must we lock files when doing compilation? 17272need_locks=$lt_need_locks 17273 17274# Do we need the lib prefix for modules? 17275need_lib_prefix=$need_lib_prefix 17276 17277# Do we need a version for libraries? 17278need_version=$need_version 17279 17280# Whether dlopen is supported. 17281dlopen_support=$enable_dlopen 17282 17283# Whether dlopen of programs is supported. 17284dlopen_self=$enable_dlopen_self 17285 17286# Whether dlopen of statically linked programs is supported. 17287dlopen_self_static=$enable_dlopen_self_static 17288 17289# Compiler flag to prevent dynamic linking. 17290link_static_flag=$lt_lt_prog_compiler_static_GCJ 17291 17292# Compiler flag to turn off builtin functions. 17293no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17294 17295# Compiler flag to allow reflexive dlopens. 17296export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17297 17298# Compiler flag to generate shared objects directly from archives. 17299whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17300 17301# Compiler flag to generate thread-safe objects. 17302thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17303 17304# Library versioning type. 17305version_type=$version_type 17306 17307# Format of library name prefix. 17308libname_spec=$lt_libname_spec 17309 17310# List of archive names. First name is the real one, the rest are links. 17311# The last name is the one that the linker finds with -lNAME. 17312library_names_spec=$lt_library_names_spec 17313 17314# The coded name of the library, if different from the real name. 17315soname_spec=$lt_soname_spec 17316 17317# Commands used to build and install an old-style archive. 17318RANLIB=$lt_RANLIB 17319old_archive_cmds=$lt_old_archive_cmds_GCJ 17320old_postinstall_cmds=$lt_old_postinstall_cmds 17321old_postuninstall_cmds=$lt_old_postuninstall_cmds 17322 17323# Create an old-style archive from a shared archive. 17324old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17325 17326# Create a temporary old-style archive to link instead of a shared archive. 17327old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17328 17329# Commands used to build and install a shared archive. 17330archive_cmds=$lt_archive_cmds_GCJ 17331archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17332postinstall_cmds=$lt_postinstall_cmds 17333postuninstall_cmds=$lt_postuninstall_cmds 17334 17335# Commands used to build a loadable module (assumed same as above if empty) 17336module_cmds=$lt_module_cmds_GCJ 17337module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17338 17339# Commands to strip libraries. 17340old_striplib=$lt_old_striplib 17341striplib=$lt_striplib 17342 17343# Dependencies to place before the objects being linked to create a 17344# shared library. 17345predep_objects=$lt_predep_objects_GCJ 17346 17347# Dependencies to place after the objects being linked to create a 17348# shared library. 17349postdep_objects=$lt_postdep_objects_GCJ 17350 17351# Dependencies to place before the objects being linked to create a 17352# shared library. 17353predeps=$lt_predeps_GCJ 17354 17355# Dependencies to place after the objects being linked to create a 17356# shared library. 17357postdeps=$lt_postdeps_GCJ 17358 17359# The library search path used internally by the compiler when linking 17360# a shared library. 17361compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17362 17363# Method to check whether dependent libraries are shared objects. 17364deplibs_check_method=$lt_deplibs_check_method 17365 17366# Command to use when deplibs_check_method == file_magic. 17367file_magic_cmd=$lt_file_magic_cmd 17368 17369# Flag that allows shared libraries with undefined symbols to be built. 17370allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17371 17372# Flag that forces no undefined symbols. 17373no_undefined_flag=$lt_no_undefined_flag_GCJ 17374 17375# Commands used to finish a libtool library installation in a directory. 17376finish_cmds=$lt_finish_cmds 17377 17378# Same as above, but a single script fragment to be evaled but not shown. 17379finish_eval=$lt_finish_eval 17380 17381# Take the output of nm and produce a listing of raw symbols and C names. 17382global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17383 17384# Transform the output of nm in a proper C declaration 17385global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17386 17387# Transform the output of nm in a C name address pair 17388global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17389 17390# This is the shared library runtime path variable. 17391runpath_var=$runpath_var 17392 17393# This is the shared library path variable. 17394shlibpath_var=$shlibpath_var 17395 17396# Is shlibpath searched before the hard-coded library search path? 17397shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17398 17399# How to hardcode a shared library path into an executable. 17400hardcode_action=$hardcode_action_GCJ 17401 17402# Whether we should hardcode library paths into libraries. 17403hardcode_into_libs=$hardcode_into_libs 17404 17405# Flag to hardcode \$libdir into a binary during linking. 17406# This must work even if \$libdir does not exist. 17407hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17408 17409# If ld is used when linking, flag to hardcode \$libdir into 17410# a binary during linking. This must work even if \$libdir does 17411# not exist. 17412hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17413 17414# Whether we need a single -rpath flag with a separated argument. 17415hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17416 17417# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17418# resulting binary. 17419hardcode_direct=$hardcode_direct_GCJ 17420 17421# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17422# resulting binary. 17423hardcode_minus_L=$hardcode_minus_L_GCJ 17424 17425# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17426# the resulting binary. 17427hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17428 17429# Set to yes if building a shared library automatically hardcodes DIR into the library 17430# and all subsequent libraries and executables linked against it. 17431hardcode_automatic=$hardcode_automatic_GCJ 17432 17433# Variables whose values should be saved in libtool wrapper scripts and 17434# restored at relink time. 17435variables_saved_for_relink="$variables_saved_for_relink" 17436 17437# Whether libtool must link a program against all its dependency libraries. 17438link_all_deplibs=$link_all_deplibs_GCJ 17439 17440# Compile-time system search path for libraries 17441sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17442 17443# Run-time system search path for libraries 17444sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17445 17446# Fix the shell variable \$srcfile for the compiler. 17447fix_srcfile_path="$fix_srcfile_path_GCJ" 17448 17449# Set to yes if exported symbols are required. 17450always_export_symbols=$always_export_symbols_GCJ 17451 17452# The commands to list exported symbols. 17453export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17454 17455# The commands to extract the exported symbol list from a shared archive. 17456extract_expsyms_cmds=$lt_extract_expsyms_cmds 17457 17458# Symbols that should not be listed in the preloaded symbols. 17459exclude_expsyms=$lt_exclude_expsyms_GCJ 17460 17461# Symbols that must always be exported. 17462include_expsyms=$lt_include_expsyms_GCJ 17463 17464# ### END LIBTOOL TAG CONFIG: $tagname 17465 17466__EOF__ 17467 17468 17469else 17470 # If there is no Makefile yet, we rely on a make rule to execute 17471 # `config.status --recheck' to rerun these tests and create the 17472 # libtool script then. 17473 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17474 if test -f "$ltmain_in"; then 17475 test -f Makefile && make "$ltmain" 17476 fi 17477fi 17478 17479 17480ac_ext=c 17481ac_cpp='$CPP $CPPFLAGS' 17482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17484ac_compiler_gnu=$ac_cv_c_compiler_gnu 17485 17486CC="$lt_save_CC" 17487 17488 else 17489 tagname="" 17490 fi 17491 ;; 17492 17493 RC) 17494 17495 17496 17497# Source file extension for RC test sources. 17498ac_ext=rc 17499 17500# Object file extension for compiled RC test sources. 17501objext=o 17502objext_RC=$objext 17503 17504# Code to be used in simple compile tests 17505lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17506 17507# Code to be used in simple link tests 17508lt_simple_link_test_code="$lt_simple_compile_test_code" 17509 17510# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17511 17512# If no C compiler was specified, use CC. 17513LTCC=${LTCC-"$CC"} 17514 17515# If no C compiler flags were specified, use CFLAGS. 17516LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17517 17518# Allow CC to be a program name with arguments. 17519compiler=$CC 17520 17521 17522# save warnings/boilerplate of simple test code 17523ac_outfile=conftest.$ac_objext 17524printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17525eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17526_lt_compiler_boilerplate=`cat conftest.err` 17527$rm conftest* 17528 17529ac_outfile=conftest.$ac_objext 17530printf "$lt_simple_link_test_code" >conftest.$ac_ext 17531eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17532_lt_linker_boilerplate=`cat conftest.err` 17533$rm conftest* 17534 17535 17536# Allow CC to be a program name with arguments. 17537lt_save_CC="$CC" 17538CC=${RC-"windres"} 17539compiler=$CC 17540compiler_RC=$CC 17541for cc_temp in $compiler""; do 17542 case $cc_temp in 17543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17545 \-*) ;; 17546 *) break;; 17547 esac 17548done 17549cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17550 17551lt_cv_prog_compiler_c_o_RC=yes 17552 17553# The else clause should only fire when bootstrapping the 17554# libtool distribution, otherwise you forgot to ship ltmain.sh 17555# with your package, and you will get complaints that there are 17556# no rules to generate ltmain.sh. 17557if test -f "$ltmain"; then 17558 # See if we are running on zsh, and set the options which allow our commands through 17559 # without removal of \ escapes. 17560 if test -n "${ZSH_VERSION+set}" ; then 17561 setopt NO_GLOB_SUBST 17562 fi 17563 # Now quote all the things that may contain metacharacters while being 17564 # careful not to overquote the AC_SUBSTed values. We take copies of the 17565 # variables and quote the copies for generation of the libtool script. 17566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17567 SED SHELL STRIP \ 17568 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17569 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17570 deplibs_check_method reload_flag reload_cmds need_locks \ 17571 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17572 lt_cv_sys_global_symbol_to_c_name_address \ 17573 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17574 old_postinstall_cmds old_postuninstall_cmds \ 17575 compiler_RC \ 17576 CC_RC \ 17577 LD_RC \ 17578 lt_prog_compiler_wl_RC \ 17579 lt_prog_compiler_pic_RC \ 17580 lt_prog_compiler_static_RC \ 17581 lt_prog_compiler_no_builtin_flag_RC \ 17582 export_dynamic_flag_spec_RC \ 17583 thread_safe_flag_spec_RC \ 17584 whole_archive_flag_spec_RC \ 17585 enable_shared_with_static_runtimes_RC \ 17586 old_archive_cmds_RC \ 17587 old_archive_from_new_cmds_RC \ 17588 predep_objects_RC \ 17589 postdep_objects_RC \ 17590 predeps_RC \ 17591 postdeps_RC \ 17592 compiler_lib_search_path_RC \ 17593 archive_cmds_RC \ 17594 archive_expsym_cmds_RC \ 17595 postinstall_cmds_RC \ 17596 postuninstall_cmds_RC \ 17597 old_archive_from_expsyms_cmds_RC \ 17598 allow_undefined_flag_RC \ 17599 no_undefined_flag_RC \ 17600 export_symbols_cmds_RC \ 17601 hardcode_libdir_flag_spec_RC \ 17602 hardcode_libdir_flag_spec_ld_RC \ 17603 hardcode_libdir_separator_RC \ 17604 hardcode_automatic_RC \ 17605 module_cmds_RC \ 17606 module_expsym_cmds_RC \ 17607 lt_cv_prog_compiler_c_o_RC \ 17608 exclude_expsyms_RC \ 17609 include_expsyms_RC; do 17610 17611 case $var in 17612 old_archive_cmds_RC | \ 17613 old_archive_from_new_cmds_RC | \ 17614 archive_cmds_RC | \ 17615 archive_expsym_cmds_RC | \ 17616 module_cmds_RC | \ 17617 module_expsym_cmds_RC | \ 17618 old_archive_from_expsyms_cmds_RC | \ 17619 export_symbols_cmds_RC | \ 17620 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17621 postinstall_cmds | postuninstall_cmds | \ 17622 old_postinstall_cmds | old_postuninstall_cmds | \ 17623 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17624 # Double-quote double-evaled strings. 17625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17626 ;; 17627 *) 17628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17629 ;; 17630 esac 17631 done 17632 17633 case $lt_echo in 17634 *'\$0 --fallback-echo"') 17635 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17636 ;; 17637 esac 17638 17639cfgfile="$ofile" 17640 17641 cat <<__EOF__ >> "$cfgfile" 17642# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17643 17644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17645 17646# Shell to use when invoking shell scripts. 17647SHELL=$lt_SHELL 17648 17649# Whether or not to build shared libraries. 17650build_libtool_libs=$enable_shared 17651 17652# Whether or not to build static libraries. 17653build_old_libs=$enable_static 17654 17655# Whether or not to add -lc for building shared libraries. 17656build_libtool_need_lc=$archive_cmds_need_lc_RC 17657 17658# Whether or not to disallow shared libs when runtime libs are static 17659allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 17660 17661# Whether or not to optimize for fast installation. 17662fast_install=$enable_fast_install 17663 17664# The host system. 17665host_alias=$host_alias 17666host=$host 17667host_os=$host_os 17668 17669# The build system. 17670build_alias=$build_alias 17671build=$build 17672build_os=$build_os 17673 17674# An echo program that does not interpret backslashes. 17675echo=$lt_echo 17676 17677# The archiver. 17678AR=$lt_AR 17679AR_FLAGS=$lt_AR_FLAGS 17680 17681# A C compiler. 17682LTCC=$lt_LTCC 17683 17684# LTCC compiler flags. 17685LTCFLAGS=$lt_LTCFLAGS 17686 17687# A language-specific compiler. 17688CC=$lt_compiler_RC 17689 17690# Is the compiler the GNU C compiler? 17691with_gcc=$GCC_RC 17692 17693# An ERE matcher. 17694EGREP=$lt_EGREP 17695 17696# The linker used to build libraries. 17697LD=$lt_LD_RC 17698 17699# Whether we need hard or soft links. 17700LN_S=$lt_LN_S 17701 17702# A BSD-compatible nm program. 17703NM=$lt_NM 17704 17705# A symbol stripping program 17706STRIP=$lt_STRIP 17707 17708# Used to examine libraries when file_magic_cmd begins "file" 17709MAGIC_CMD=$MAGIC_CMD 17710 17711# Used on cygwin: DLL creation program. 17712DLLTOOL="$DLLTOOL" 17713 17714# Used on cygwin: object dumper. 17715OBJDUMP="$OBJDUMP" 17716 17717# Used on cygwin: assembler. 17718AS="$AS" 17719 17720# The name of the directory that contains temporary libtool files. 17721objdir=$objdir 17722 17723# How to create reloadable object files. 17724reload_flag=$lt_reload_flag 17725reload_cmds=$lt_reload_cmds 17726 17727# How to pass a linker flag through the compiler. 17728wl=$lt_lt_prog_compiler_wl_RC 17729 17730# Object file suffix (normally "o"). 17731objext="$ac_objext" 17732 17733# Old archive suffix (normally "a"). 17734libext="$libext" 17735 17736# Shared library suffix (normally ".so"). 17737shrext_cmds='$shrext_cmds' 17738 17739# Executable file suffix (normally ""). 17740exeext="$exeext" 17741 17742# Additional compiler flags for building library objects. 17743pic_flag=$lt_lt_prog_compiler_pic_RC 17744pic_mode=$pic_mode 17745 17746# What is the maximum length of a command? 17747max_cmd_len=$lt_cv_sys_max_cmd_len 17748 17749# Does compiler simultaneously support -c and -o options? 17750compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 17751 17752# Must we lock files when doing compilation? 17753need_locks=$lt_need_locks 17754 17755# Do we need the lib prefix for modules? 17756need_lib_prefix=$need_lib_prefix 17757 17758# Do we need a version for libraries? 17759need_version=$need_version 17760 17761# Whether dlopen is supported. 17762dlopen_support=$enable_dlopen 17763 17764# Whether dlopen of programs is supported. 17765dlopen_self=$enable_dlopen_self 17766 17767# Whether dlopen of statically linked programs is supported. 17768dlopen_self_static=$enable_dlopen_self_static 17769 17770# Compiler flag to prevent dynamic linking. 17771link_static_flag=$lt_lt_prog_compiler_static_RC 17772 17773# Compiler flag to turn off builtin functions. 17774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 17775 17776# Compiler flag to allow reflexive dlopens. 17777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 17778 17779# Compiler flag to generate shared objects directly from archives. 17780whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 17781 17782# Compiler flag to generate thread-safe objects. 17783thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 17784 17785# Library versioning type. 17786version_type=$version_type 17787 17788# Format of library name prefix. 17789libname_spec=$lt_libname_spec 17790 17791# List of archive names. First name is the real one, the rest are links. 17792# The last name is the one that the linker finds with -lNAME. 17793library_names_spec=$lt_library_names_spec 17794 17795# The coded name of the library, if different from the real name. 17796soname_spec=$lt_soname_spec 17797 17798# Commands used to build and install an old-style archive. 17799RANLIB=$lt_RANLIB 17800old_archive_cmds=$lt_old_archive_cmds_RC 17801old_postinstall_cmds=$lt_old_postinstall_cmds 17802old_postuninstall_cmds=$lt_old_postuninstall_cmds 17803 17804# Create an old-style archive from a shared archive. 17805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 17806 17807# Create a temporary old-style archive to link instead of a shared archive. 17808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 17809 17810# Commands used to build and install a shared archive. 17811archive_cmds=$lt_archive_cmds_RC 17812archive_expsym_cmds=$lt_archive_expsym_cmds_RC 17813postinstall_cmds=$lt_postinstall_cmds 17814postuninstall_cmds=$lt_postuninstall_cmds 17815 17816# Commands used to build a loadable module (assumed same as above if empty) 17817module_cmds=$lt_module_cmds_RC 17818module_expsym_cmds=$lt_module_expsym_cmds_RC 17819 17820# Commands to strip libraries. 17821old_striplib=$lt_old_striplib 17822striplib=$lt_striplib 17823 17824# Dependencies to place before the objects being linked to create a 17825# shared library. 17826predep_objects=$lt_predep_objects_RC 17827 17828# Dependencies to place after the objects being linked to create a 17829# shared library. 17830postdep_objects=$lt_postdep_objects_RC 17831 17832# Dependencies to place before the objects being linked to create a 17833# shared library. 17834predeps=$lt_predeps_RC 17835 17836# Dependencies to place after the objects being linked to create a 17837# shared library. 17838postdeps=$lt_postdeps_RC 17839 17840# The library search path used internally by the compiler when linking 17841# a shared library. 17842compiler_lib_search_path=$lt_compiler_lib_search_path_RC 17843 17844# Method to check whether dependent libraries are shared objects. 17845deplibs_check_method=$lt_deplibs_check_method 17846 17847# Command to use when deplibs_check_method == file_magic. 17848file_magic_cmd=$lt_file_magic_cmd 17849 17850# Flag that allows shared libraries with undefined symbols to be built. 17851allow_undefined_flag=$lt_allow_undefined_flag_RC 17852 17853# Flag that forces no undefined symbols. 17854no_undefined_flag=$lt_no_undefined_flag_RC 17855 17856# Commands used to finish a libtool library installation in a directory. 17857finish_cmds=$lt_finish_cmds 17858 17859# Same as above, but a single script fragment to be evaled but not shown. 17860finish_eval=$lt_finish_eval 17861 17862# Take the output of nm and produce a listing of raw symbols and C names. 17863global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17864 17865# Transform the output of nm in a proper C declaration 17866global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17867 17868# Transform the output of nm in a C name address pair 17869global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17870 17871# This is the shared library runtime path variable. 17872runpath_var=$runpath_var 17873 17874# This is the shared library path variable. 17875shlibpath_var=$shlibpath_var 17876 17877# Is shlibpath searched before the hard-coded library search path? 17878shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17879 17880# How to hardcode a shared library path into an executable. 17881hardcode_action=$hardcode_action_RC 17882 17883# Whether we should hardcode library paths into libraries. 17884hardcode_into_libs=$hardcode_into_libs 17885 17886# Flag to hardcode \$libdir into a binary during linking. 17887# This must work even if \$libdir does not exist. 17888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 17889 17890# If ld is used when linking, flag to hardcode \$libdir into 17891# a binary during linking. This must work even if \$libdir does 17892# not exist. 17893hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 17894 17895# Whether we need a single -rpath flag with a separated argument. 17896hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 17897 17898# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17899# resulting binary. 17900hardcode_direct=$hardcode_direct_RC 17901 17902# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17903# resulting binary. 17904hardcode_minus_L=$hardcode_minus_L_RC 17905 17906# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17907# the resulting binary. 17908hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 17909 17910# Set to yes if building a shared library automatically hardcodes DIR into the library 17911# and all subsequent libraries and executables linked against it. 17912hardcode_automatic=$hardcode_automatic_RC 17913 17914# Variables whose values should be saved in libtool wrapper scripts and 17915# restored at relink time. 17916variables_saved_for_relink="$variables_saved_for_relink" 17917 17918# Whether libtool must link a program against all its dependency libraries. 17919link_all_deplibs=$link_all_deplibs_RC 17920 17921# Compile-time system search path for libraries 17922sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17923 17924# Run-time system search path for libraries 17925sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17926 17927# Fix the shell variable \$srcfile for the compiler. 17928fix_srcfile_path="$fix_srcfile_path_RC" 17929 17930# Set to yes if exported symbols are required. 17931always_export_symbols=$always_export_symbols_RC 17932 17933# The commands to list exported symbols. 17934export_symbols_cmds=$lt_export_symbols_cmds_RC 17935 17936# The commands to extract the exported symbol list from a shared archive. 17937extract_expsyms_cmds=$lt_extract_expsyms_cmds 17938 17939# Symbols that should not be listed in the preloaded symbols. 17940exclude_expsyms=$lt_exclude_expsyms_RC 17941 17942# Symbols that must always be exported. 17943include_expsyms=$lt_include_expsyms_RC 17944 17945# ### END LIBTOOL TAG CONFIG: $tagname 17946 17947__EOF__ 17948 17949 17950else 17951 # If there is no Makefile yet, we rely on a make rule to execute 17952 # `config.status --recheck' to rerun these tests and create the 17953 # libtool script then. 17954 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17955 if test -f "$ltmain_in"; then 17956 test -f Makefile && make "$ltmain" 17957 fi 17958fi 17959 17960 17961ac_ext=c 17962ac_cpp='$CPP $CPPFLAGS' 17963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17965ac_compiler_gnu=$ac_cv_c_compiler_gnu 17966 17967CC="$lt_save_CC" 17968 17969 ;; 17970 17971 *) 17972 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 17973echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 17974 { (exit 1); exit 1; }; } 17975 ;; 17976 esac 17977 17978 # Append the new tag name to the list of available tags. 17979 if test -n "$tagname" ; then 17980 available_tags="$available_tags $tagname" 17981 fi 17982 fi 17983 done 17984 IFS="$lt_save_ifs" 17985 17986 # Now substitute the updated list of available tags. 17987 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 17988 mv "${ofile}T" "$ofile" 17989 chmod +x "$ofile" 17990 else 17991 rm -f "${ofile}T" 17992 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 17993echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 17994 { (exit 1); exit 1; }; } 17995 fi 17996fi 17997 17998 17999 18000# This can be used to rebuild libtool when needed 18001LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18002 18003# Always use our own libtool. 18004LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18005 18006# Prevent multiple expansion 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027# Find a good install program. We prefer a C program (faster), 18028# so one script is as good as another. But avoid the broken or 18029# incompatible versions: 18030# SysV /etc/install, /usr/sbin/install 18031# SunOS /usr/etc/install 18032# IRIX /sbin/install 18033# AIX /bin/install 18034# AmigaOS /C/install, which installs bootblocks on floppy discs 18035# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 18036# AFS /usr/afsws/bin/install, which mishandles nonexistent args 18037# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 18038# OS/2's system install, which has a completely different semantic 18039# ./install, which can be erroneously created by make from ./install.sh. 18040echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 18041echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 18042if test -z "$INSTALL"; then 18043if test "${ac_cv_path_install+set}" = set; then 18044 echo $ECHO_N "(cached) $ECHO_C" >&6 18045else 18046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18047for as_dir in $PATH 18048do 18049 IFS=$as_save_IFS 18050 test -z "$as_dir" && as_dir=. 18051 # Account for people who put trailing slashes in PATH elements. 18052case $as_dir/ in 18053 ./ | .// | /cC/* | \ 18054 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 18055 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 18056 /usr/ucb/* ) ;; 18057 *) 18058 # OSF1 and SCO ODT 3.0 have their own names for install. 18059 # Don't use installbsd from OSF since it installs stuff as root 18060 # by default. 18061 for ac_prog in ginstall scoinst install; do 18062 for ac_exec_ext in '' $ac_executable_extensions; do 18063 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 18064 if test $ac_prog = install && 18065 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 18066 # AIX install. It has an incompatible calling convention. 18067 : 18068 elif test $ac_prog = install && 18069 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 18070 # program-specific install script used by HP pwplus--don't use. 18071 : 18072 else 18073 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 18074 break 3 18075 fi 18076 fi 18077 done 18078 done 18079 ;; 18080esac 18081done 18082 18083 18084fi 18085 if test "${ac_cv_path_install+set}" = set; then 18086 INSTALL=$ac_cv_path_install 18087 else 18088 # As a last resort, use the slow shell script. We don't cache a 18089 # path for INSTALL within a source directory, because that will 18090 # break other packages using the cache if that directory is 18091 # removed, or if the path is relative. 18092 INSTALL=$ac_install_sh 18093 fi 18094fi 18095echo "$as_me:$LINENO: result: $INSTALL" >&5 18096echo "${ECHO_T}$INSTALL" >&6 18097 18098# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 18099# It thinks the first close brace ends the variable substitution. 18100test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 18101 18102test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 18103 18104test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 18105 18106for ac_prog in gawk mawk nawk awk 18107do 18108 # Extract the first word of "$ac_prog", so it can be a program name with args. 18109set dummy $ac_prog; ac_word=$2 18110echo "$as_me:$LINENO: checking for $ac_word" >&5 18111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18112if test "${ac_cv_prog_AWK+set}" = set; then 18113 echo $ECHO_N "(cached) $ECHO_C" >&6 18114else 18115 if test -n "$AWK"; then 18116 ac_cv_prog_AWK="$AWK" # Let the user override the test. 18117else 18118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18119for as_dir in $PATH 18120do 18121 IFS=$as_save_IFS 18122 test -z "$as_dir" && as_dir=. 18123 for ac_exec_ext in '' $ac_executable_extensions; do 18124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18125 ac_cv_prog_AWK="$ac_prog" 18126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18127 break 2 18128 fi 18129done 18130done 18131 18132fi 18133fi 18134AWK=$ac_cv_prog_AWK 18135if test -n "$AWK"; then 18136 echo "$as_me:$LINENO: result: $AWK" >&5 18137echo "${ECHO_T}$AWK" >&6 18138else 18139 echo "$as_me:$LINENO: result: no" >&5 18140echo "${ECHO_T}no" >&6 18141fi 18142 18143 test -n "$AWK" && break 18144done 18145 18146 18147######### 18148# Set up an appropriate program prefix 18149# 18150if test "$program_prefix" = "NONE"; then 18151 program_prefix="" 18152fi 18153 18154 18155VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` 18156echo "Version set to $VERSION" 18157 18158RELEASE=`cat $srcdir/VERSION` 18159echo "Release set to $RELEASE" 18160 18161VERSION_NUMBER=`cat $srcdir/VERSION \ 18162 | sed 's/[^0-9]/ /g' \ 18163 | awk '{printf "%d%03d%03d",$1,$2,$3}'` 18164echo "Version number set to $VERSION_NUMBER" 18165 18166 18167######### 18168# Check to see if the --with-hints=FILE option is used. If there is none, 18169# then check for a files named "$host.hints" and ../$hosts.hints where 18170# $host is the hostname of the build system. If still no hints are 18171# found, try looking in $system.hints and ../$system.hints where 18172# $system is the result of uname -s. 18173# 18174 18175# Check whether --with-hints or --without-hints was given. 18176if test "${with_hints+set}" = set; then 18177 withval="$with_hints" 18178 hints=$withval 18179fi; 18180if test "$hints" = ""; then 18181 host=`hostname | sed 's/\..*//'` 18182 if test -r $host.hints; then 18183 hints=$host.hints 18184 else 18185 if test -r ../$host.hints; then 18186 hints=../$host.hints 18187 fi 18188 fi 18189fi 18190if test "$hints" = ""; then 18191 sys=`uname -s` 18192 if test -r $sys.hints; then 18193 hints=$sys.hints 18194 else 18195 if test -r ../$sys.hints; then 18196 hints=../$sys.hints 18197 fi 18198 fi 18199fi 18200if test "$hints" != ""; then 18201 echo "$as_me:$LINENO: result: reading hints from $hints" >&5 18202echo "${ECHO_T}reading hints from $hints" >&6 18203 . $hints 18204fi 18205 18206######### 18207# Locate a compiler for the build machine. This compiler should 18208# generate command-line programs that run on the build machine. 18209# 18210if test x"$cross_compiling" = xno; then 18211 BUILD_CC=$CC 18212 BUILD_CFLAGS=$CFLAGS 18213else 18214 if test "${BUILD_CC+set}" != set; then 18215 for ac_prog in gcc cc cl 18216do 18217 # Extract the first word of "$ac_prog", so it can be a program name with args. 18218set dummy $ac_prog; ac_word=$2 18219echo "$as_me:$LINENO: checking for $ac_word" >&5 18220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18221if test "${ac_cv_prog_BUILD_CC+set}" = set; then 18222 echo $ECHO_N "(cached) $ECHO_C" >&6 18223else 18224 if test -n "$BUILD_CC"; then 18225 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 18226else 18227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18228for as_dir in $PATH 18229do 18230 IFS=$as_save_IFS 18231 test -z "$as_dir" && as_dir=. 18232 for ac_exec_ext in '' $ac_executable_extensions; do 18233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18234 ac_cv_prog_BUILD_CC="$ac_prog" 18235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18236 break 2 18237 fi 18238done 18239done 18240 18241fi 18242fi 18243BUILD_CC=$ac_cv_prog_BUILD_CC 18244if test -n "$BUILD_CC"; then 18245 echo "$as_me:$LINENO: result: $BUILD_CC" >&5 18246echo "${ECHO_T}$BUILD_CC" >&6 18247else 18248 echo "$as_me:$LINENO: result: no" >&5 18249echo "${ECHO_T}no" >&6 18250fi 18251 18252 test -n "$BUILD_CC" && break 18253done 18254 18255 fi 18256 if test "${BUILD_CFLAGS+set}" != set; then 18257 BUILD_CFLAGS="-g" 18258 fi 18259fi 18260 18261 18262 18263########## 18264# Do we want to support multithreaded use of sqlite 18265# 18266# Check whether --enable-threadsafe or --disable-threadsafe was given. 18267if test "${enable_threadsafe+set}" = set; then 18268 enableval="$enable_threadsafe" 18269 18270else 18271 enable_threadsafe=yes 18272fi; 18273echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 18274echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6 18275if test "$enable_threadsafe" = "no"; then 18276 SQLITE_THREADSAFE=0 18277 echo "$as_me:$LINENO: result: no" >&5 18278echo "${ECHO_T}no" >&6 18279else 18280 SQLITE_THREADSAFE=1 18281 echo "$as_me:$LINENO: result: yes" >&5 18282echo "${ECHO_T}yes" >&6 18283fi 18284 18285 18286if test "$SQLITE_THREADSAFE" = "1"; then 18287 LIBS="" 18288 18289echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 18290echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 18291if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 18292 echo $ECHO_N "(cached) $ECHO_C" >&6 18293else 18294 ac_check_lib_save_LIBS=$LIBS 18295LIBS="-lpthread $LIBS" 18296cat >conftest.$ac_ext <<_ACEOF 18297/* confdefs.h. */ 18298_ACEOF 18299cat confdefs.h >>conftest.$ac_ext 18300cat >>conftest.$ac_ext <<_ACEOF 18301/* end confdefs.h. */ 18302 18303/* Override any gcc2 internal prototype to avoid an error. */ 18304#ifdef __cplusplus 18305extern "C" 18306#endif 18307/* We use char because int might match the return type of a gcc2 18308 builtin and then its argument prototype would still apply. */ 18309char pthread_create (); 18310int 18311main () 18312{ 18313pthread_create (); 18314 ; 18315 return 0; 18316} 18317_ACEOF 18318rm -f conftest.$ac_objext conftest$ac_exeext 18319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18320 (eval $ac_link) 2>conftest.er1 18321 ac_status=$? 18322 grep -v '^ *+' conftest.er1 >conftest.err 18323 rm -f conftest.er1 18324 cat conftest.err >&5 18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18326 (exit $ac_status); } && 18327 { ac_try='test -z "$ac_c_werror_flag" 18328 || test ! -s conftest.err' 18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18330 (eval $ac_try) 2>&5 18331 ac_status=$? 18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18333 (exit $ac_status); }; } && 18334 { ac_try='test -s conftest$ac_exeext' 18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18336 (eval $ac_try) 2>&5 18337 ac_status=$? 18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18339 (exit $ac_status); }; }; then 18340 ac_cv_lib_pthread_pthread_create=yes 18341else 18342 echo "$as_me: failed program was:" >&5 18343sed 's/^/| /' conftest.$ac_ext >&5 18344 18345ac_cv_lib_pthread_pthread_create=no 18346fi 18347rm -f conftest.err conftest.$ac_objext \ 18348 conftest$ac_exeext conftest.$ac_ext 18349LIBS=$ac_check_lib_save_LIBS 18350fi 18351echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 18352echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 18353if test $ac_cv_lib_pthread_pthread_create = yes; then 18354 cat >>confdefs.h <<_ACEOF 18355#define HAVE_LIBPTHREAD 1 18356_ACEOF 18357 18358 LIBS="-lpthread $LIBS" 18359 18360fi 18361 18362 TARGET_THREAD_LIB="$LIBS" 18363 LIBS="" 18364else 18365 TARGET_THREAD_LIB="" 18366fi 18367 18368 18369########## 18370# Do we want to allow a connection created in one thread to be used 18371# in another thread. This does not work on many Linux systems (ex: RedHat 9) 18372# due to bugs in the threading implementations. This is thus off by default. 18373# 18374# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given. 18375if test "${enable_cross_thread_connections+set}" = set; then 18376 enableval="$enable_cross_thread_connections" 18377 18378else 18379 enable_xthreadconnect=no 18380fi; 18381echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5 18382echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6 18383if test "$enable_xthreadconnect" = "no"; then 18384 XTHREADCONNECT='' 18385 echo "$as_me:$LINENO: result: no" >&5 18386echo "${ECHO_T}no" >&6 18387else 18388 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1' 18389 echo "$as_me:$LINENO: result: yes" >&5 18390echo "${ECHO_T}yes" >&6 18391fi 18392 18393 18394########## 18395# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by 18396# default. Normally, a test at runtime is performed to determine the 18397# appropriate value of this variable. Use this option only if you're sure that 18398# threads can safely override each others locks in all runtime situations. 18399# 18400# Check whether --enable-threads-override-locks or --disable-threads-override-locks was given. 18401if test "${enable_threads_override_locks+set}" = set; then 18402 enableval="$enable_threads_override_locks" 18403 18404else 18405 enable_threads_override_locks=no 18406fi; 18407echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5 18408echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6 18409if test "$enable_threads_override_locks" = "no"; then 18410 THREADSOVERRIDELOCKS='-1' 18411 echo "$as_me:$LINENO: result: no" >&5 18412echo "${ECHO_T}no" >&6 18413else 18414 THREADSOVERRIDELOCKS='1' 18415 echo "$as_me:$LINENO: result: yes" >&5 18416echo "${ECHO_T}yes" >&6 18417fi 18418 18419 18420########## 18421# Do we want to support release 18422# 18423# Check whether --enable-releasemode or --disable-releasemode was given. 18424if test "${enable_releasemode+set}" = set; then 18425 enableval="$enable_releasemode" 18426 18427else 18428 enable_releasemode=no 18429fi; 18430echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 18431echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6 18432if test "$enable_releasemode" = "no"; then 18433 ALLOWRELEASE="" 18434 echo "$as_me:$LINENO: result: no" >&5 18435echo "${ECHO_T}no" >&6 18436else 18437 ALLOWRELEASE="-release `cat $srcdir/VERSION`" 18438 echo "$as_me:$LINENO: result: yes" >&5 18439echo "${ECHO_T}yes" >&6 18440fi 18441 18442 18443########## 18444# Do we want temporary databases in memory 18445# 18446# Check whether --enable-tempstore or --disable-tempstore was given. 18447if test "${enable_tempstore+set}" = set; then 18448 enableval="$enable_tempstore" 18449 18450else 18451 enable_tempstore=no 18452fi; 18453echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 18454echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6 18455case "$enable_tempstore" in 18456 never ) 18457 TEMP_STORE=0 18458 echo "$as_me:$LINENO: result: never" >&5 18459echo "${ECHO_T}never" >&6 18460 ;; 18461 no ) 18462 TEMP_STORE=1 18463 echo "$as_me:$LINENO: result: no" >&5 18464echo "${ECHO_T}no" >&6 18465 ;; 18466 always ) 18467 TEMP_STORE=3 18468 echo "$as_me:$LINENO: result: always" >&5 18469echo "${ECHO_T}always" >&6 18470 ;; 18471 yes ) 18472 TEMP_STORE=3 18473 echo "$as_me:$LINENO: result: always" >&5 18474echo "${ECHO_T}always" >&6 18475 ;; 18476 * ) 18477 TEMP_STORE=1 18478 echo "$as_me:$LINENO: result: yes" >&5 18479echo "${ECHO_T}yes" >&6 18480 ;; 18481esac 18482 18483 18484 18485########### 18486# Lots of things are different if we are compiling for Windows using 18487# the CYGWIN environment. So check for that special case and handle 18488# things accordingly. 18489# 18490echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 18491echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6 18492if test "$config_BUILD_EXEEXT" = ".exe"; then 18493 CYGWIN=yes 18494 echo "$as_me:$LINENO: result: yes" >&5 18495echo "${ECHO_T}yes" >&6 18496else 18497 echo "$as_me:$LINENO: result: unknown" >&5 18498echo "${ECHO_T}unknown" >&6 18499fi 18500if test "$CYGWIN" != "yes"; then 18501 18502case $host_os in 18503 *cygwin* ) CYGWIN=yes;; 18504 * ) CYGWIN=no;; 18505esac 18506 18507fi 18508if test "$CYGWIN" = "yes"; then 18509 BUILD_EXEEXT=.exe 18510else 18511 BUILD_EXEEXT=$EXEEXT 18512fi 18513if test x"$cross_compiling" = xno; then 18514 TARGET_EXEEXT=$BUILD_EXEEXT 18515else 18516 TARGET_EXEEXT=$config_TARGET_EXEEXT 18517fi 18518if test "$TARGET_EXEEXT" = ".exe"; then 18519 if test $OS2_SHELL ; then 18520 OS_UNIX=0 18521 OS_WIN=0 18522 OS_OS2=1 18523 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1" 18524 if test "$ac_compiler_gnu" == "yes" ; then 18525 TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap" 18526 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" 18527 fi 18528 else 18529 OS_UNIX=0 18530 OS_WIN=1 18531 OS_OS2=0 18532 tclsubdir=win 18533 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1" 18534 fi 18535else 18536 OS_UNIX=1 18537 OS_WIN=0 18538 OS_OS2=0 18539 tclsubdir=unix 18540 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1" 18541fi 18542 18543 18544 18545 18546 18547 18548 18549########## 18550# Figure out all the parameters needed to compile against Tcl. 18551# 18552# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG 18553# macros in the in the tcl.m4 file of the standard TCL distribution. 18554# Those macros could not be used directly since we have to make some 18555# minor changes to accomodate systems that do not have TCL installed. 18556# 18557# Check whether --enable-tcl or --disable-tcl was given. 18558if test "${enable_tcl+set}" = set; then 18559 enableval="$enable_tcl" 18560 use_tcl=$enableval 18561else 18562 use_tcl=yes 18563fi; 18564if test "${use_tcl}" = "yes" ; then 18565 18566# Check whether --with-tcl or --without-tcl was given. 18567if test "${with_tcl+set}" = set; then 18568 withval="$with_tcl" 18569 with_tclconfig=${withval} 18570fi; 18571 echo "$as_me:$LINENO: checking for Tcl configuration" >&5 18572echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 18573 if test "${ac_cv_c_tclconfig+set}" = set; then 18574 echo $ECHO_N "(cached) $ECHO_C" >&6 18575else 18576 18577 # First check to see if --with-tcl was specified. 18578 if test x"${with_tclconfig}" != x ; then 18579 if test -f "${with_tclconfig}/tclConfig.sh" ; then 18580 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 18581 else 18582 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 18583echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 18584 { (exit 1); exit 1; }; } 18585 fi 18586 fi 18587 # then check for a private Tcl installation 18588 if test x"${ac_cv_c_tclconfig}" = x ; then 18589 for i in \ 18590 ../tcl \ 18591 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 18592 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 18593 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 18594 ../../tcl \ 18595 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 18596 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 18597 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 18598 ../../../tcl \ 18599 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 18600 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 18601 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` 18602 do 18603 if test -f "$i/unix/tclConfig.sh" ; then 18604 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 18605 break 18606 fi 18607 done 18608 fi 18609 18610 # check in a few common install locations 18611 if test x"${ac_cv_c_tclconfig}" = x ; then 18612 for i in \ 18613 `ls -d ${libdir} 2>/dev/null` \ 18614 `ls -d /usr/local/lib 2>/dev/null` \ 18615 `ls -d /usr/contrib/lib 2>/dev/null` \ 18616 `ls -d /usr/lib 2>/dev/null` 18617 do 18618 if test -f "$i/tclConfig.sh" ; then 18619 ac_cv_c_tclconfig=`(cd $i; pwd)` 18620 break 18621 fi 18622 done 18623 fi 18624 18625 # check in a few other private locations 18626 if test x"${ac_cv_c_tclconfig}" = x ; then 18627 for i in \ 18628 ${srcdir}/../tcl \ 18629 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 18630 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 18631 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` 18632 do 18633 if test -f "$i/unix/tclConfig.sh" ; then 18634 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 18635 break 18636 fi 18637 done 18638 fi 18639 18640fi 18641 18642 18643 if test x"${ac_cv_c_tclconfig}" = x ; then 18644 use_tcl=no 18645 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 18646echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 18647 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 18648echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} 18649 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 18650echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} 18651 else 18652 TCL_BIN_DIR=${ac_cv_c_tclconfig} 18653 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 18654echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6 18655 18656 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 18657echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6 18658 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 18659 echo "$as_me:$LINENO: result: loading" >&5 18660echo "${ECHO_T}loading" >&6 18661 . $TCL_BIN_DIR/tclConfig.sh 18662 else 18663 echo "$as_me:$LINENO: result: file not found" >&5 18664echo "${ECHO_T}file not found" >&6 18665 fi 18666 18667 # 18668 # If the TCL_BIN_DIR is the build directory (not the install directory), 18669 # then set the common variable name to the value of the build variables. 18670 # For example, the variable TCL_LIB_SPEC will be set to the value 18671 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 18672 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 18673 # installed and uninstalled version of Tcl. 18674 # 18675 18676 if test -f $TCL_BIN_DIR/Makefile ; then 18677 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 18678 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 18679 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 18680 fi 18681 18682 # 18683 # eval is required to do the TCL_DBGX substitution 18684 # 18685 18686 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 18687 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 18688 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 18689 18690 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 18691 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 18692 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 fi 18708fi 18709if test "${use_tcl}" = "no" ; then 18710 HAVE_TCL="" 18711else 18712 HAVE_TCL=1 18713fi 18714 18715 18716########## 18717# Figure out what C libraries are required to compile programs 18718# that use "readline()" library. 18719# 18720TARGET_READLINE_LIBS="" 18721TARGET_READLINE_INC="" 18722TARGET_HAVE_READLINE=0 18723# Check whether --enable-readline or --disable-readline was given. 18724if test "${enable_readline+set}" = set; then 18725 enableval="$enable_readline" 18726 with_readline=$enableval 18727else 18728 with_readline=auto 18729fi; 18730 18731if test x"$with_readline" != xno; then 18732 found="yes" 18733 18734 18735# Check whether --with-readline-lib or --without-readline-lib was given. 18736if test "${with_readline_lib+set}" = set; then 18737 withval="$with_readline_lib" 18738 with_readline_lib=$withval 18739else 18740 with_readline_lib="auto" 18741fi; 18742 if test "x$with_readline_lib" = xauto; then 18743 save_LIBS="$LIBS" 18744 LIBS="" 18745 echo "$as_me:$LINENO: checking for library containing tgetent" >&5 18746echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 18747if test "${ac_cv_search_tgetent+set}" = set; then 18748 echo $ECHO_N "(cached) $ECHO_C" >&6 18749else 18750 ac_func_search_save_LIBS=$LIBS 18751ac_cv_search_tgetent=no 18752cat >conftest.$ac_ext <<_ACEOF 18753/* confdefs.h. */ 18754_ACEOF 18755cat confdefs.h >>conftest.$ac_ext 18756cat >>conftest.$ac_ext <<_ACEOF 18757/* end confdefs.h. */ 18758 18759/* Override any gcc2 internal prototype to avoid an error. */ 18760#ifdef __cplusplus 18761extern "C" 18762#endif 18763/* We use char because int might match the return type of a gcc2 18764 builtin and then its argument prototype would still apply. */ 18765char tgetent (); 18766int 18767main () 18768{ 18769tgetent (); 18770 ; 18771 return 0; 18772} 18773_ACEOF 18774rm -f conftest.$ac_objext conftest$ac_exeext 18775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18776 (eval $ac_link) 2>conftest.er1 18777 ac_status=$? 18778 grep -v '^ *+' conftest.er1 >conftest.err 18779 rm -f conftest.er1 18780 cat conftest.err >&5 18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18782 (exit $ac_status); } && 18783 { ac_try='test -z "$ac_c_werror_flag" 18784 || test ! -s conftest.err' 18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18786 (eval $ac_try) 2>&5 18787 ac_status=$? 18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18789 (exit $ac_status); }; } && 18790 { ac_try='test -s conftest$ac_exeext' 18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18792 (eval $ac_try) 2>&5 18793 ac_status=$? 18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18795 (exit $ac_status); }; }; then 18796 ac_cv_search_tgetent="none required" 18797else 18798 echo "$as_me: failed program was:" >&5 18799sed 's/^/| /' conftest.$ac_ext >&5 18800 18801fi 18802rm -f conftest.err conftest.$ac_objext \ 18803 conftest$ac_exeext conftest.$ac_ext 18804if test "$ac_cv_search_tgetent" = no; then 18805 for ac_lib in readline ncurses curses termcap; do 18806 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18807 cat >conftest.$ac_ext <<_ACEOF 18808/* confdefs.h. */ 18809_ACEOF 18810cat confdefs.h >>conftest.$ac_ext 18811cat >>conftest.$ac_ext <<_ACEOF 18812/* end confdefs.h. */ 18813 18814/* Override any gcc2 internal prototype to avoid an error. */ 18815#ifdef __cplusplus 18816extern "C" 18817#endif 18818/* We use char because int might match the return type of a gcc2 18819 builtin and then its argument prototype would still apply. */ 18820char tgetent (); 18821int 18822main () 18823{ 18824tgetent (); 18825 ; 18826 return 0; 18827} 18828_ACEOF 18829rm -f conftest.$ac_objext conftest$ac_exeext 18830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18831 (eval $ac_link) 2>conftest.er1 18832 ac_status=$? 18833 grep -v '^ *+' conftest.er1 >conftest.err 18834 rm -f conftest.er1 18835 cat conftest.err >&5 18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18837 (exit $ac_status); } && 18838 { ac_try='test -z "$ac_c_werror_flag" 18839 || test ! -s conftest.err' 18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18841 (eval $ac_try) 2>&5 18842 ac_status=$? 18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18844 (exit $ac_status); }; } && 18845 { ac_try='test -s conftest$ac_exeext' 18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18847 (eval $ac_try) 2>&5 18848 ac_status=$? 18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18850 (exit $ac_status); }; }; then 18851 ac_cv_search_tgetent="-l$ac_lib" 18852break 18853else 18854 echo "$as_me: failed program was:" >&5 18855sed 's/^/| /' conftest.$ac_ext >&5 18856 18857fi 18858rm -f conftest.err conftest.$ac_objext \ 18859 conftest$ac_exeext conftest.$ac_ext 18860 done 18861fi 18862LIBS=$ac_func_search_save_LIBS 18863fi 18864echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 18865echo "${ECHO_T}$ac_cv_search_tgetent" >&6 18866if test "$ac_cv_search_tgetent" != no; then 18867 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" 18868 term_LIBS="$LIBS" 18869else 18870 term_LIBS="" 18871fi 18872 18873 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 18874echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 18875if test "${ac_cv_lib_readline_readline+set}" = set; then 18876 echo $ECHO_N "(cached) $ECHO_C" >&6 18877else 18878 ac_check_lib_save_LIBS=$LIBS 18879LIBS="-lreadline $LIBS" 18880cat >conftest.$ac_ext <<_ACEOF 18881/* confdefs.h. */ 18882_ACEOF 18883cat confdefs.h >>conftest.$ac_ext 18884cat >>conftest.$ac_ext <<_ACEOF 18885/* end confdefs.h. */ 18886 18887/* Override any gcc2 internal prototype to avoid an error. */ 18888#ifdef __cplusplus 18889extern "C" 18890#endif 18891/* We use char because int might match the return type of a gcc2 18892 builtin and then its argument prototype would still apply. */ 18893char readline (); 18894int 18895main () 18896{ 18897readline (); 18898 ; 18899 return 0; 18900} 18901_ACEOF 18902rm -f conftest.$ac_objext conftest$ac_exeext 18903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18904 (eval $ac_link) 2>conftest.er1 18905 ac_status=$? 18906 grep -v '^ *+' conftest.er1 >conftest.err 18907 rm -f conftest.er1 18908 cat conftest.err >&5 18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18910 (exit $ac_status); } && 18911 { ac_try='test -z "$ac_c_werror_flag" 18912 || test ! -s conftest.err' 18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18914 (eval $ac_try) 2>&5 18915 ac_status=$? 18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18917 (exit $ac_status); }; } && 18918 { ac_try='test -s conftest$ac_exeext' 18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18920 (eval $ac_try) 2>&5 18921 ac_status=$? 18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18923 (exit $ac_status); }; }; then 18924 ac_cv_lib_readline_readline=yes 18925else 18926 echo "$as_me: failed program was:" >&5 18927sed 's/^/| /' conftest.$ac_ext >&5 18928 18929ac_cv_lib_readline_readline=no 18930fi 18931rm -f conftest.err conftest.$ac_objext \ 18932 conftest$ac_exeext conftest.$ac_ext 18933LIBS=$ac_check_lib_save_LIBS 18934fi 18935echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 18936echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 18937if test $ac_cv_lib_readline_readline = yes; then 18938 TARGET_READLINE_LIBS="-lreadline" 18939else 18940 found="no" 18941fi 18942 18943 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 18944 LIBS="$save_LIBS" 18945 else 18946 TARGET_READLINE_LIBS="$with_readline_lib" 18947 fi 18948 18949 18950# Check whether --with-readline-inc or --without-readline-inc was given. 18951if test "${with_readline_inc+set}" = set; then 18952 withval="$with_readline_inc" 18953 with_readline_inc=$withval 18954else 18955 with_readline_inc="auto" 18956fi; 18957 if test "x$with_readline_inc" = xauto; then 18958 if test "${ac_cv_header_readline_h+set}" = set; then 18959 echo "$as_me:$LINENO: checking for readline.h" >&5 18960echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 18961if test "${ac_cv_header_readline_h+set}" = set; then 18962 echo $ECHO_N "(cached) $ECHO_C" >&6 18963fi 18964echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 18965echo "${ECHO_T}$ac_cv_header_readline_h" >&6 18966else 18967 # Is the header compilable? 18968echo "$as_me:$LINENO: checking readline.h usability" >&5 18969echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6 18970cat >conftest.$ac_ext <<_ACEOF 18971/* confdefs.h. */ 18972_ACEOF 18973cat confdefs.h >>conftest.$ac_ext 18974cat >>conftest.$ac_ext <<_ACEOF 18975/* end confdefs.h. */ 18976$ac_includes_default 18977#include <readline.h> 18978_ACEOF 18979rm -f conftest.$ac_objext 18980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18981 (eval $ac_compile) 2>conftest.er1 18982 ac_status=$? 18983 grep -v '^ *+' conftest.er1 >conftest.err 18984 rm -f conftest.er1 18985 cat conftest.err >&5 18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18987 (exit $ac_status); } && 18988 { ac_try='test -z "$ac_c_werror_flag" 18989 || test ! -s conftest.err' 18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18991 (eval $ac_try) 2>&5 18992 ac_status=$? 18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18994 (exit $ac_status); }; } && 18995 { ac_try='test -s conftest.$ac_objext' 18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18997 (eval $ac_try) 2>&5 18998 ac_status=$? 18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19000 (exit $ac_status); }; }; then 19001 ac_header_compiler=yes 19002else 19003 echo "$as_me: failed program was:" >&5 19004sed 's/^/| /' conftest.$ac_ext >&5 19005 19006ac_header_compiler=no 19007fi 19008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19010echo "${ECHO_T}$ac_header_compiler" >&6 19011 19012# Is the header present? 19013echo "$as_me:$LINENO: checking readline.h presence" >&5 19014echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6 19015cat >conftest.$ac_ext <<_ACEOF 19016/* confdefs.h. */ 19017_ACEOF 19018cat confdefs.h >>conftest.$ac_ext 19019cat >>conftest.$ac_ext <<_ACEOF 19020/* end confdefs.h. */ 19021#include <readline.h> 19022_ACEOF 19023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19025 ac_status=$? 19026 grep -v '^ *+' conftest.er1 >conftest.err 19027 rm -f conftest.er1 19028 cat conftest.err >&5 19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19030 (exit $ac_status); } >/dev/null; then 19031 if test -s conftest.err; then 19032 ac_cpp_err=$ac_c_preproc_warn_flag 19033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19034 else 19035 ac_cpp_err= 19036 fi 19037else 19038 ac_cpp_err=yes 19039fi 19040if test -z "$ac_cpp_err"; then 19041 ac_header_preproc=yes 19042else 19043 echo "$as_me: failed program was:" >&5 19044sed 's/^/| /' conftest.$ac_ext >&5 19045 19046 ac_header_preproc=no 19047fi 19048rm -f conftest.err conftest.$ac_ext 19049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19050echo "${ECHO_T}$ac_header_preproc" >&6 19051 19052# So? What about this header? 19053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19054 yes:no: ) 19055 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 19056echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 19057 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 19058echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} 19059 ac_header_preproc=yes 19060 ;; 19061 no:yes:* ) 19062 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 19063echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} 19064 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 19065echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} 19066 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 19067echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} 19068 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 19069echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} 19070 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 19071echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} 19072 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 19073echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} 19074 ( 19075 cat <<\_ASBOX 19076## ------------------------------------------ ## 19077## Report this to the AC_PACKAGE_NAME lists. ## 19078## ------------------------------------------ ## 19079_ASBOX 19080 ) | 19081 sed "s/^/$as_me: WARNING: /" >&2 19082 ;; 19083esac 19084echo "$as_me:$LINENO: checking for readline.h" >&5 19085echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 19086if test "${ac_cv_header_readline_h+set}" = set; then 19087 echo $ECHO_N "(cached) $ECHO_C" >&6 19088else 19089 ac_cv_header_readline_h=$ac_header_preproc 19090fi 19091echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 19092echo "${ECHO_T}$ac_cv_header_readline_h" >&6 19093 19094fi 19095if test $ac_cv_header_readline_h = yes; then 19096 found="yes" 19097else 19098 19099 found="no" 19100 if test "$cross_compiling" != yes; then 19101 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do 19102 for subdir in include include/readline; do 19103 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` 19104echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 19105echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6 19106if eval "test \"\${$as_ac_File+set}\" = set"; then 19107 echo $ECHO_N "(cached) $ECHO_C" >&6 19108else 19109 test "$cross_compiling" = yes && 19110 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 19111echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 19112 { (exit 1); exit 1; }; } 19113if test -r "$dir/$subdir/readline.h"; then 19114 eval "$as_ac_File=yes" 19115else 19116 eval "$as_ac_File=no" 19117fi 19118fi 19119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 19120echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 19121if test `eval echo '${'$as_ac_File'}'` = yes; then 19122 found=yes 19123fi 19124 19125 if test "$found" = "yes"; then 19126 TARGET_READLINE_INC="-I$dir/$subdir" 19127 break 19128 fi 19129 done 19130 test "$found" = "yes" && break 19131 done 19132 fi 19133 19134fi 19135 19136 19137 else 19138 TARGET_READLINE_INC="$with_readline_inc" 19139 fi 19140 19141 if test x"$found" = xno; then 19142 TARGET_READLINE_LIBS="" 19143 TARGET_READLINE_INC="" 19144 TARGET_HAVE_READLINE=0 19145 else 19146 TARGET_HAVE_READLINE=1 19147 fi 19148fi 19149 19150 19151 19152 19153 19154########## 19155# Figure out what C libraries are required to compile programs 19156# that use "fdatasync()" function. 19157# 19158echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 19159echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6 19160if test "${ac_cv_search_fdatasync+set}" = set; then 19161 echo $ECHO_N "(cached) $ECHO_C" >&6 19162else 19163 ac_func_search_save_LIBS=$LIBS 19164ac_cv_search_fdatasync=no 19165cat >conftest.$ac_ext <<_ACEOF 19166/* confdefs.h. */ 19167_ACEOF 19168cat confdefs.h >>conftest.$ac_ext 19169cat >>conftest.$ac_ext <<_ACEOF 19170/* end confdefs.h. */ 19171 19172/* Override any gcc2 internal prototype to avoid an error. */ 19173#ifdef __cplusplus 19174extern "C" 19175#endif 19176/* We use char because int might match the return type of a gcc2 19177 builtin and then its argument prototype would still apply. */ 19178char fdatasync (); 19179int 19180main () 19181{ 19182fdatasync (); 19183 ; 19184 return 0; 19185} 19186_ACEOF 19187rm -f conftest.$ac_objext conftest$ac_exeext 19188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19189 (eval $ac_link) 2>conftest.er1 19190 ac_status=$? 19191 grep -v '^ *+' conftest.er1 >conftest.err 19192 rm -f conftest.er1 19193 cat conftest.err >&5 19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19195 (exit $ac_status); } && 19196 { ac_try='test -z "$ac_c_werror_flag" 19197 || test ! -s conftest.err' 19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19199 (eval $ac_try) 2>&5 19200 ac_status=$? 19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19202 (exit $ac_status); }; } && 19203 { ac_try='test -s conftest$ac_exeext' 19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19205 (eval $ac_try) 2>&5 19206 ac_status=$? 19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19208 (exit $ac_status); }; }; then 19209 ac_cv_search_fdatasync="none required" 19210else 19211 echo "$as_me: failed program was:" >&5 19212sed 's/^/| /' conftest.$ac_ext >&5 19213 19214fi 19215rm -f conftest.err conftest.$ac_objext \ 19216 conftest$ac_exeext conftest.$ac_ext 19217if test "$ac_cv_search_fdatasync" = no; then 19218 for ac_lib in rt; do 19219 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19220 cat >conftest.$ac_ext <<_ACEOF 19221/* confdefs.h. */ 19222_ACEOF 19223cat confdefs.h >>conftest.$ac_ext 19224cat >>conftest.$ac_ext <<_ACEOF 19225/* end confdefs.h. */ 19226 19227/* Override any gcc2 internal prototype to avoid an error. */ 19228#ifdef __cplusplus 19229extern "C" 19230#endif 19231/* We use char because int might match the return type of a gcc2 19232 builtin and then its argument prototype would still apply. */ 19233char fdatasync (); 19234int 19235main () 19236{ 19237fdatasync (); 19238 ; 19239 return 0; 19240} 19241_ACEOF 19242rm -f conftest.$ac_objext conftest$ac_exeext 19243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19244 (eval $ac_link) 2>conftest.er1 19245 ac_status=$? 19246 grep -v '^ *+' conftest.er1 >conftest.err 19247 rm -f conftest.er1 19248 cat conftest.err >&5 19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19250 (exit $ac_status); } && 19251 { ac_try='test -z "$ac_c_werror_flag" 19252 || test ! -s conftest.err' 19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19254 (eval $ac_try) 2>&5 19255 ac_status=$? 19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19257 (exit $ac_status); }; } && 19258 { ac_try='test -s conftest$ac_exeext' 19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19260 (eval $ac_try) 2>&5 19261 ac_status=$? 19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19263 (exit $ac_status); }; }; then 19264 ac_cv_search_fdatasync="-l$ac_lib" 19265break 19266else 19267 echo "$as_me: failed program was:" >&5 19268sed 's/^/| /' conftest.$ac_ext >&5 19269 19270fi 19271rm -f conftest.err conftest.$ac_objext \ 19272 conftest$ac_exeext conftest.$ac_ext 19273 done 19274fi 19275LIBS=$ac_func_search_save_LIBS 19276fi 19277echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 19278echo "${ECHO_T}$ac_cv_search_fdatasync" >&6 19279if test "$ac_cv_search_fdatasync" != no; then 19280 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS" 19281 19282fi 19283 19284 19285######### 19286# check for debug enabled 19287# Check whether --enable-debug or --disable-debug was given. 19288if test "${enable_debug+set}" = set; then 19289 enableval="$enable_debug" 19290 use_debug=$enableval 19291else 19292 use_debug=no 19293fi; 19294if test "${use_debug}" = "yes" ; then 19295 TARGET_DEBUG="-DSQLITE_DEBUG=1" 19296else 19297 TARGET_DEBUG="-DNDEBUG" 19298fi 19299 19300 19301######### 19302# Figure out whether or not we have a "usleep()" function. 19303# 19304echo "$as_me:$LINENO: checking for usleep" >&5 19305echo $ECHO_N "checking for usleep... $ECHO_C" >&6 19306if test "${ac_cv_func_usleep+set}" = set; then 19307 echo $ECHO_N "(cached) $ECHO_C" >&6 19308else 19309 cat >conftest.$ac_ext <<_ACEOF 19310/* confdefs.h. */ 19311_ACEOF 19312cat confdefs.h >>conftest.$ac_ext 19313cat >>conftest.$ac_ext <<_ACEOF 19314/* end confdefs.h. */ 19315/* Define usleep to an innocuous variant, in case <limits.h> declares usleep. 19316 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19317#define usleep innocuous_usleep 19318 19319/* System header to define __stub macros and hopefully few prototypes, 19320 which can conflict with char usleep (); below. 19321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19322 <limits.h> exists even on freestanding compilers. */ 19323 19324#ifdef __STDC__ 19325# include <limits.h> 19326#else 19327# include <assert.h> 19328#endif 19329 19330#undef usleep 19331 19332/* Override any gcc2 internal prototype to avoid an error. */ 19333#ifdef __cplusplus 19334extern "C" 19335{ 19336#endif 19337/* We use char because int might match the return type of a gcc2 19338 builtin and then its argument prototype would still apply. */ 19339char usleep (); 19340/* The GNU C library defines this for functions which it implements 19341 to always fail with ENOSYS. Some functions are actually named 19342 something starting with __ and the normal name is an alias. */ 19343#if defined (__stub_usleep) || defined (__stub___usleep) 19344choke me 19345#else 19346char (*f) () = usleep; 19347#endif 19348#ifdef __cplusplus 19349} 19350#endif 19351 19352int 19353main () 19354{ 19355return f != usleep; 19356 ; 19357 return 0; 19358} 19359_ACEOF 19360rm -f conftest.$ac_objext conftest$ac_exeext 19361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19362 (eval $ac_link) 2>conftest.er1 19363 ac_status=$? 19364 grep -v '^ *+' conftest.er1 >conftest.err 19365 rm -f conftest.er1 19366 cat conftest.err >&5 19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19368 (exit $ac_status); } && 19369 { ac_try='test -z "$ac_c_werror_flag" 19370 || test ! -s conftest.err' 19371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19372 (eval $ac_try) 2>&5 19373 ac_status=$? 19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19375 (exit $ac_status); }; } && 19376 { ac_try='test -s conftest$ac_exeext' 19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19378 (eval $ac_try) 2>&5 19379 ac_status=$? 19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19381 (exit $ac_status); }; }; then 19382 ac_cv_func_usleep=yes 19383else 19384 echo "$as_me: failed program was:" >&5 19385sed 's/^/| /' conftest.$ac_ext >&5 19386 19387ac_cv_func_usleep=no 19388fi 19389rm -f conftest.err conftest.$ac_objext \ 19390 conftest$ac_exeext conftest.$ac_ext 19391fi 19392echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5 19393echo "${ECHO_T}$ac_cv_func_usleep" >&6 19394if test $ac_cv_func_usleep = yes; then 19395 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1" 19396fi 19397 19398 19399#-------------------------------------------------------------------- 19400# Redefine fdatasync as fsync on systems that lack fdatasync 19401#-------------------------------------------------------------------- 19402 19403echo "$as_me:$LINENO: checking for fdatasync" >&5 19404echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 19405if test "${ac_cv_func_fdatasync+set}" = set; then 19406 echo $ECHO_N "(cached) $ECHO_C" >&6 19407else 19408 cat >conftest.$ac_ext <<_ACEOF 19409/* confdefs.h. */ 19410_ACEOF 19411cat confdefs.h >>conftest.$ac_ext 19412cat >>conftest.$ac_ext <<_ACEOF 19413/* end confdefs.h. */ 19414/* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync. 19415 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19416#define fdatasync innocuous_fdatasync 19417 19418/* System header to define __stub macros and hopefully few prototypes, 19419 which can conflict with char fdatasync (); below. 19420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19421 <limits.h> exists even on freestanding compilers. */ 19422 19423#ifdef __STDC__ 19424# include <limits.h> 19425#else 19426# include <assert.h> 19427#endif 19428 19429#undef fdatasync 19430 19431/* Override any gcc2 internal prototype to avoid an error. */ 19432#ifdef __cplusplus 19433extern "C" 19434{ 19435#endif 19436/* We use char because int might match the return type of a gcc2 19437 builtin and then its argument prototype would still apply. */ 19438char fdatasync (); 19439/* The GNU C library defines this for functions which it implements 19440 to always fail with ENOSYS. Some functions are actually named 19441 something starting with __ and the normal name is an alias. */ 19442#if defined (__stub_fdatasync) || defined (__stub___fdatasync) 19443choke me 19444#else 19445char (*f) () = fdatasync; 19446#endif 19447#ifdef __cplusplus 19448} 19449#endif 19450 19451int 19452main () 19453{ 19454return f != fdatasync; 19455 ; 19456 return 0; 19457} 19458_ACEOF 19459rm -f conftest.$ac_objext conftest$ac_exeext 19460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19461 (eval $ac_link) 2>conftest.er1 19462 ac_status=$? 19463 grep -v '^ *+' conftest.er1 >conftest.err 19464 rm -f conftest.er1 19465 cat conftest.err >&5 19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19467 (exit $ac_status); } && 19468 { ac_try='test -z "$ac_c_werror_flag" 19469 || test ! -s conftest.err' 19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19471 (eval $ac_try) 2>&5 19472 ac_status=$? 19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19474 (exit $ac_status); }; } && 19475 { ac_try='test -s conftest$ac_exeext' 19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19477 (eval $ac_try) 2>&5 19478 ac_status=$? 19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19480 (exit $ac_status); }; }; then 19481 ac_cv_func_fdatasync=yes 19482else 19483 echo "$as_me: failed program was:" >&5 19484sed 's/^/| /' conftest.$ac_ext >&5 19485 19486ac_cv_func_fdatasync=no 19487fi 19488rm -f conftest.err conftest.$ac_objext \ 19489 conftest$ac_exeext conftest.$ac_ext 19490fi 19491echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5 19492echo "${ECHO_T}$ac_cv_func_fdatasync" >&6 19493if test $ac_cv_func_fdatasync = yes; then 19494 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1" 19495fi 19496 19497 19498######### 19499# Generate the output files. 19500# 19501 ac_config_files="$ac_config_files Makefile sqlite3.pc" 19502cat >confcache <<\_ACEOF 19503# This file is a shell script that caches the results of configure 19504# tests run on this system so they can be shared between configure 19505# scripts and configure runs, see configure's option --config-cache. 19506# It is not useful on other systems. If it contains results you don't 19507# want to keep, you may remove or edit it. 19508# 19509# config.status only pays attention to the cache file if you give it 19510# the --recheck option to rerun configure. 19511# 19512# `ac_cv_env_foo' variables (set or unset) will be overridden when 19513# loading this file, other *unset* `ac_cv_foo' will be assigned the 19514# following values. 19515 19516_ACEOF 19517 19518# The following way of writing the cache mishandles newlines in values, 19519# but we know of no workaround that is simple, portable, and efficient. 19520# So, don't put newlines in cache variables' values. 19521# Ultrix sh set writes to stderr and can't be redirected directly, 19522# and sets the high bit in the cache file unless we assign to the vars. 19523{ 19524 (set) 2>&1 | 19525 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19526 *ac_space=\ *) 19527 # `set' does not quote correctly, so add quotes (double-quote 19528 # substitution turns \\\\ into \\, and sed turns \\ into \). 19529 sed -n \ 19530 "s/'/'\\\\''/g; 19531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19532 ;; 19533 *) 19534 # `set' quotes correctly as required by POSIX, so do not add quotes. 19535 sed -n \ 19536 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19537 ;; 19538 esac; 19539} | 19540 sed ' 19541 t clear 19542 : clear 19543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19544 t end 19545 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19546 : end' >>confcache 19547if diff $cache_file confcache >/dev/null 2>&1; then :; else 19548 if test -w $cache_file; then 19549 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19550 cat confcache >$cache_file 19551 else 19552 echo "not updating unwritable cache $cache_file" 19553 fi 19554fi 19555rm -f confcache 19556 19557test "x$prefix" = xNONE && prefix=$ac_default_prefix 19558# Let make expand exec_prefix. 19559test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19560 19561# VPATH may cause trouble with some makes, so we remove $(srcdir), 19562# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19563# trailing colons and then remove the whole line if VPATH becomes empty 19564# (actually we leave an empty line to preserve line numbers). 19565if test "x$srcdir" = x.; then 19566 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19567s/:*\$(srcdir):*/:/; 19568s/:*\${srcdir}:*/:/; 19569s/:*@srcdir@:*/:/; 19570s/^\([^=]*=[ ]*\):*/\1/; 19571s/:*$//; 19572s/^[^=]*=[ ]*$//; 19573}' 19574fi 19575 19576# Transform confdefs.h into DEFS. 19577# Protect against shell expansion while executing Makefile rules. 19578# Protect against Makefile macro expansion. 19579# 19580# If the first sed substitution is executed (which looks for macros that 19581# take arguments), then we branch to the quote section. Otherwise, 19582# look for a macro that doesn't take arguments. 19583cat >confdef2opt.sed <<\_ACEOF 19584t clear 19585: clear 19586s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 19587t quote 19588s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 19589t quote 19590d 19591: quote 19592s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 19593s,\[,\\&,g 19594s,\],\\&,g 19595s,\$,$$,g 19596p 19597_ACEOF 19598# We use echo to avoid assuming a particular line-breaking character. 19599# The extra dot is to prevent the shell from consuming trailing 19600# line-breaks from the sub-command output. A line-break within 19601# single-quotes doesn't work because, if this script is created in a 19602# platform that uses two characters for line-breaks (e.g., DOS), tr 19603# would break. 19604ac_LF_and_DOT=`echo; echo .` 19605DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 19606rm -f confdef2opt.sed 19607 19608 19609ac_libobjs= 19610ac_ltlibobjs= 19611for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19612 # 1. Remove the extension, and $U if already installed. 19613 ac_i=`echo "$ac_i" | 19614 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 19615 # 2. Add them. 19616 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 19617 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 19618done 19619LIBOBJS=$ac_libobjs 19620 19621LTLIBOBJS=$ac_ltlibobjs 19622 19623 19624 19625: ${CONFIG_STATUS=./config.status} 19626ac_clean_files_save=$ac_clean_files 19627ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19628{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19629echo "$as_me: creating $CONFIG_STATUS" >&6;} 19630cat >$CONFIG_STATUS <<_ACEOF 19631#! $SHELL 19632# Generated by $as_me. 19633# Run this file to recreate the current configuration. 19634# Compiler output produced by configure, useful for debugging 19635# configure, is in config.log if it exists. 19636 19637debug=false 19638ac_cs_recheck=false 19639ac_cs_silent=false 19640SHELL=\${CONFIG_SHELL-$SHELL} 19641_ACEOF 19642 19643cat >>$CONFIG_STATUS <<\_ACEOF 19644## --------------------- ## 19645## M4sh Initialization. ## 19646## --------------------- ## 19647 19648# Be Bourne compatible 19649if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19650 emulate sh 19651 NULLCMD=: 19652 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19653 # is contrary to our usage. Disable this feature. 19654 alias -g '${1+"$@"}'='"$@"' 19655elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19656 set -o posix 19657fi 19658DUALCASE=1; export DUALCASE # for MKS sh 19659 19660# Support unset when possible. 19661if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19662 as_unset=unset 19663else 19664 as_unset=false 19665fi 19666 19667 19668# Work around bugs in pre-3.0 UWIN ksh. 19669$as_unset ENV MAIL MAILPATH 19670PS1='$ ' 19671PS2='> ' 19672PS4='+ ' 19673 19674# NLS nuisances. 19675for as_var in \ 19676 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19677 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19678 LC_TELEPHONE LC_TIME 19679do 19680 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19681 eval $as_var=C; export $as_var 19682 else 19683 $as_unset $as_var 19684 fi 19685done 19686 19687# Required to use basename. 19688if expr a : '\(a\)' >/dev/null 2>&1; then 19689 as_expr=expr 19690else 19691 as_expr=false 19692fi 19693 19694if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 19695 as_basename=basename 19696else 19697 as_basename=false 19698fi 19699 19700 19701# Name of the executable. 19702as_me=`$as_basename "$0" || 19703$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19704 X"$0" : 'X\(//\)$' \| \ 19705 X"$0" : 'X\(/\)$' \| \ 19706 . : '\(.\)' 2>/dev/null || 19707echo X/"$0" | 19708 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19709 /^X\/\(\/\/\)$/{ s//\1/; q; } 19710 /^X\/\(\/\).*/{ s//\1/; q; } 19711 s/.*/./; q'` 19712 19713 19714# PATH needs CR, and LINENO needs CR and PATH. 19715# Avoid depending upon Character Ranges. 19716as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19717as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19718as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19719as_cr_digits='0123456789' 19720as_cr_alnum=$as_cr_Letters$as_cr_digits 19721 19722# The user is always right. 19723if test "${PATH_SEPARATOR+set}" != set; then 19724 echo "#! /bin/sh" >conf$$.sh 19725 echo "exit 0" >>conf$$.sh 19726 chmod +x conf$$.sh 19727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19728 PATH_SEPARATOR=';' 19729 else 19730 PATH_SEPARATOR=: 19731 fi 19732 rm -f conf$$.sh 19733fi 19734 19735 19736 as_lineno_1=$LINENO 19737 as_lineno_2=$LINENO 19738 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19739 test "x$as_lineno_1" != "x$as_lineno_2" && 19740 test "x$as_lineno_3" = "x$as_lineno_2" || { 19741 # Find who we are. Look in the path if we contain no path at all 19742 # relative or not. 19743 case $0 in 19744 *[\\/]* ) as_myself=$0 ;; 19745 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19746for as_dir in $PATH 19747do 19748 IFS=$as_save_IFS 19749 test -z "$as_dir" && as_dir=. 19750 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19751done 19752 19753 ;; 19754 esac 19755 # We did not find ourselves, most probably we were run as `sh COMMAND' 19756 # in which case we are not to be found in the path. 19757 if test "x$as_myself" = x; then 19758 as_myself=$0 19759 fi 19760 if test ! -f "$as_myself"; then 19761 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19762echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19763 { (exit 1); exit 1; }; } 19764 fi 19765 case $CONFIG_SHELL in 19766 '') 19767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19768for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19769do 19770 IFS=$as_save_IFS 19771 test -z "$as_dir" && as_dir=. 19772 for as_base in sh bash ksh sh5; do 19773 case $as_dir in 19774 /*) 19775 if ("$as_dir/$as_base" -c ' 19776 as_lineno_1=$LINENO 19777 as_lineno_2=$LINENO 19778 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19779 test "x$as_lineno_1" != "x$as_lineno_2" && 19780 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19781 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 19782 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 19783 CONFIG_SHELL=$as_dir/$as_base 19784 export CONFIG_SHELL 19785 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 19786 fi;; 19787 esac 19788 done 19789done 19790;; 19791 esac 19792 19793 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19794 # uniformly replaced by the line number. The first 'sed' inserts a 19795 # line-number line before each line; the second 'sed' does the real 19796 # work. The second script uses 'N' to pair each line-number line 19797 # with the numbered line, and appends trailing '-' during 19798 # substitution so that $LINENO is not a special case at line end. 19799 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19800 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 19801 sed '=' <$as_myself | 19802 sed ' 19803 N 19804 s,$,-, 19805 : loop 19806 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 19807 t loop 19808 s,-$,, 19809 s,^['$as_cr_digits']*\n,, 19810 ' >$as_me.lineno && 19811 chmod +x $as_me.lineno || 19812 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 19813echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 19814 { (exit 1); exit 1; }; } 19815 19816 # Don't try to exec as it changes $[0], causing all sort of problems 19817 # (the dirname of $[0] is not the place where we might find the 19818 # original and so on. Autoconf is especially sensible to this). 19819 . ./$as_me.lineno 19820 # Exit status is that of the last command. 19821 exit 19822} 19823 19824 19825case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 19826 *c*,-n*) ECHO_N= ECHO_C=' 19827' ECHO_T=' ' ;; 19828 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 19829 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 19830esac 19831 19832if expr a : '\(a\)' >/dev/null 2>&1; then 19833 as_expr=expr 19834else 19835 as_expr=false 19836fi 19837 19838rm -f conf$$ conf$$.exe conf$$.file 19839echo >conf$$.file 19840if ln -s conf$$.file conf$$ 2>/dev/null; then 19841 # We could just check for DJGPP; but this test a) works b) is more generic 19842 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19843 if test -f conf$$.exe; then 19844 # Don't use ln at all; we don't have any links 19845 as_ln_s='cp -p' 19846 else 19847 as_ln_s='ln -s' 19848 fi 19849elif ln conf$$.file conf$$ 2>/dev/null; then 19850 as_ln_s=ln 19851else 19852 as_ln_s='cp -p' 19853fi 19854rm -f conf$$ conf$$.exe conf$$.file 19855 19856if mkdir -p . 2>/dev/null; then 19857 as_mkdir_p=: 19858else 19859 test -d ./-p && rmdir ./-p 19860 as_mkdir_p=false 19861fi 19862 19863as_executable_p="test -f" 19864 19865# Sed expression to map a string onto a valid CPP name. 19866as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19867 19868# Sed expression to map a string onto a valid variable name. 19869as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19870 19871 19872# IFS 19873# We need space, tab and new line, in precisely that order. 19874as_nl=' 19875' 19876IFS=" $as_nl" 19877 19878# CDPATH. 19879$as_unset CDPATH 19880 19881exec 6>&1 19882 19883# Open the log real soon, to keep \$[0] and so on meaningful, and to 19884# report actual input values of CONFIG_FILES etc. instead of their 19885# values after options handling. Logging --version etc. is OK. 19886exec 5>>config.log 19887{ 19888 echo 19889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19890## Running $as_me. ## 19891_ASBOX 19892} >&5 19893cat >&5 <<_CSEOF 19894 19895This file was extended by $as_me, which was 19896generated by GNU Autoconf 2.59. Invocation command line was 19897 19898 CONFIG_FILES = $CONFIG_FILES 19899 CONFIG_HEADERS = $CONFIG_HEADERS 19900 CONFIG_LINKS = $CONFIG_LINKS 19901 CONFIG_COMMANDS = $CONFIG_COMMANDS 19902 $ $0 $@ 19903 19904_CSEOF 19905echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 19906echo >&5 19907_ACEOF 19908 19909# Files that config.status was made for. 19910if test -n "$ac_config_files"; then 19911 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19912fi 19913 19914if test -n "$ac_config_headers"; then 19915 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19916fi 19917 19918if test -n "$ac_config_links"; then 19919 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19920fi 19921 19922if test -n "$ac_config_commands"; then 19923 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19924fi 19925 19926cat >>$CONFIG_STATUS <<\_ACEOF 19927 19928ac_cs_usage="\ 19929\`$as_me' instantiates files from templates according to the 19930current configuration. 19931 19932Usage: $0 [OPTIONS] [FILE]... 19933 19934 -h, --help print this help, then exit 19935 -V, --version print version number, then exit 19936 -q, --quiet do not print progress messages 19937 -d, --debug don't remove temporary files 19938 --recheck update $as_me by reconfiguring in the same conditions 19939 --file=FILE[:TEMPLATE] 19940 instantiate the configuration file FILE 19941 19942Configuration files: 19943$config_files 19944 19945Report bugs to <[email protected]>." 19946_ACEOF 19947 19948cat >>$CONFIG_STATUS <<_ACEOF 19949ac_cs_version="\\ 19950config.status 19951configured by $0, generated by GNU Autoconf 2.59, 19952 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19953 19954Copyright (C) 2003 Free Software Foundation, Inc. 19955This config.status script is free software; the Free Software Foundation 19956gives unlimited permission to copy, distribute and modify it." 19957srcdir=$srcdir 19958INSTALL="$INSTALL" 19959_ACEOF 19960 19961cat >>$CONFIG_STATUS <<\_ACEOF 19962# If no file are specified by the user, then we need to provide default 19963# value. By we need to know if files were specified by the user. 19964ac_need_defaults=: 19965while test $# != 0 19966do 19967 case $1 in 19968 --*=*) 19969 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19970 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19971 ac_shift=: 19972 ;; 19973 -*) 19974 ac_option=$1 19975 ac_optarg=$2 19976 ac_shift=shift 19977 ;; 19978 *) # This is not an option, so the user has probably given explicit 19979 # arguments. 19980 ac_option=$1 19981 ac_need_defaults=false;; 19982 esac 19983 19984 case $ac_option in 19985 # Handling of the options. 19986_ACEOF 19987cat >>$CONFIG_STATUS <<\_ACEOF 19988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19989 ac_cs_recheck=: ;; 19990 --version | --vers* | -V ) 19991 echo "$ac_cs_version"; exit 0 ;; 19992 --he | --h) 19993 # Conflict between --help and --header 19994 { { echo "$as_me:$LINENO: error: ambiguous option: $1 19995Try \`$0 --help' for more information." >&5 19996echo "$as_me: error: ambiguous option: $1 19997Try \`$0 --help' for more information." >&2;} 19998 { (exit 1); exit 1; }; };; 19999 --help | --hel | -h ) 20000 echo "$ac_cs_usage"; exit 0 ;; 20001 --debug | --d* | -d ) 20002 debug=: ;; 20003 --file | --fil | --fi | --f ) 20004 $ac_shift 20005 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20006 ac_need_defaults=false;; 20007 --header | --heade | --head | --hea ) 20008 $ac_shift 20009 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20010 ac_need_defaults=false;; 20011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20012 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20013 ac_cs_silent=: ;; 20014 20015 # This is an error. 20016 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20017Try \`$0 --help' for more information." >&5 20018echo "$as_me: error: unrecognized option: $1 20019Try \`$0 --help' for more information." >&2;} 20020 { (exit 1); exit 1; }; } ;; 20021 20022 *) ac_config_targets="$ac_config_targets $1" ;; 20023 20024 esac 20025 shift 20026done 20027 20028ac_configure_extra_args= 20029 20030if $ac_cs_silent; then 20031 exec 6>/dev/null 20032 ac_configure_extra_args="$ac_configure_extra_args --silent" 20033fi 20034 20035_ACEOF 20036cat >>$CONFIG_STATUS <<_ACEOF 20037if \$ac_cs_recheck; then 20038 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20039 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20040fi 20041 20042_ACEOF 20043 20044 20045 20046 20047 20048cat >>$CONFIG_STATUS <<\_ACEOF 20049for ac_config_target in $ac_config_targets 20050do 20051 case "$ac_config_target" in 20052 # Handling of arguments. 20053 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20054 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 20055 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20056echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20057 { (exit 1); exit 1; }; };; 20058 esac 20059done 20060 20061# If the user did not use the arguments to specify the items to instantiate, 20062# then the envvar interface is used. Set only those that are not. 20063# We use the long form for the default assignment because of an extremely 20064# bizarre bug on SunOS 4.1.3. 20065if $ac_need_defaults; then 20066 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20067fi 20068 20069# Have a temporary directory for convenience. Make it in the build tree 20070# simply because there is no reason to put it here, and in addition, 20071# creating and moving files from /tmp can sometimes cause problems. 20072# Create a temporary directory, and hook for its removal unless debugging. 20073$debug || 20074{ 20075 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20076 trap '{ (exit 1); exit 1; }' 1 2 13 15 20077} 20078 20079# Create a (secure) tmp directory for tmp files. 20080 20081{ 20082 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20083 test -n "$tmp" && test -d "$tmp" 20084} || 20085{ 20086 tmp=./confstat$$-$RANDOM 20087 (umask 077 && mkdir $tmp) 20088} || 20089{ 20090 echo "$me: cannot create a temporary directory in ." >&2 20091 { (exit 1); exit 1; } 20092} 20093 20094_ACEOF 20095 20096cat >>$CONFIG_STATUS <<_ACEOF 20097 20098# 20099# CONFIG_FILES section. 20100# 20101 20102# No need to generate the scripts if there are no CONFIG_FILES. 20103# This happens for instance when ./config.status config.h 20104if test -n "\$CONFIG_FILES"; then 20105 # Protect against being on the right side of a sed subst in config.status. 20106 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20107 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20108s,@SHELL@,$SHELL,;t t 20109s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20110s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20111s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20112s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20113s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20114s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20115s,@exec_prefix@,$exec_prefix,;t t 20116s,@prefix@,$prefix,;t t 20117s,@program_transform_name@,$program_transform_name,;t t 20118s,@bindir@,$bindir,;t t 20119s,@sbindir@,$sbindir,;t t 20120s,@libexecdir@,$libexecdir,;t t 20121s,@datadir@,$datadir,;t t 20122s,@sysconfdir@,$sysconfdir,;t t 20123s,@sharedstatedir@,$sharedstatedir,;t t 20124s,@localstatedir@,$localstatedir,;t t 20125s,@libdir@,$libdir,;t t 20126s,@includedir@,$includedir,;t t 20127s,@oldincludedir@,$oldincludedir,;t t 20128s,@infodir@,$infodir,;t t 20129s,@mandir@,$mandir,;t t 20130s,@build_alias@,$build_alias,;t t 20131s,@host_alias@,$host_alias,;t t 20132s,@target_alias@,$target_alias,;t t 20133s,@DEFS@,$DEFS,;t t 20134s,@ECHO_C@,$ECHO_C,;t t 20135s,@ECHO_N@,$ECHO_N,;t t 20136s,@ECHO_T@,$ECHO_T,;t t 20137s,@LIBS@,$LIBS,;t t 20138s,@build@,$build,;t t 20139s,@build_cpu@,$build_cpu,;t t 20140s,@build_vendor@,$build_vendor,;t t 20141s,@build_os@,$build_os,;t t 20142s,@host@,$host,;t t 20143s,@host_cpu@,$host_cpu,;t t 20144s,@host_vendor@,$host_vendor,;t t 20145s,@host_os@,$host_os,;t t 20146s,@CC@,$CC,;t t 20147s,@CFLAGS@,$CFLAGS,;t t 20148s,@LDFLAGS@,$LDFLAGS,;t t 20149s,@CPPFLAGS@,$CPPFLAGS,;t t 20150s,@ac_ct_CC@,$ac_ct_CC,;t t 20151s,@EXEEXT@,$EXEEXT,;t t 20152s,@OBJEXT@,$OBJEXT,;t t 20153s,@EGREP@,$EGREP,;t t 20154s,@LN_S@,$LN_S,;t t 20155s,@ECHO@,$ECHO,;t t 20156s,@AR@,$AR,;t t 20157s,@ac_ct_AR@,$ac_ct_AR,;t t 20158s,@RANLIB@,$RANLIB,;t t 20159s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20160s,@STRIP@,$STRIP,;t t 20161s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20162s,@CPP@,$CPP,;t t 20163s,@CXX@,$CXX,;t t 20164s,@CXXFLAGS@,$CXXFLAGS,;t t 20165s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20166s,@CXXCPP@,$CXXCPP,;t t 20167s,@F77@,$F77,;t t 20168s,@FFLAGS@,$FFLAGS,;t t 20169s,@ac_ct_F77@,$ac_ct_F77,;t t 20170s,@LIBTOOL@,$LIBTOOL,;t t 20171s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20172s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20173s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20174s,@AWK@,$AWK,;t t 20175s,@program_prefix@,$program_prefix,;t t 20176s,@VERSION@,$VERSION,;t t 20177s,@RELEASE@,$RELEASE,;t t 20178s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t 20179s,@BUILD_CC@,$BUILD_CC,;t t 20180s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t 20181s,@SQLITE_THREADSAFE@,$SQLITE_THREADSAFE,;t t 20182s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t 20183s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t 20184s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t 20185s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t 20186s,@TEMP_STORE@,$TEMP_STORE,;t t 20187s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t 20188s,@OS_UNIX@,$OS_UNIX,;t t 20189s,@OS_WIN@,$OS_WIN,;t t 20190s,@OS_OS2@,$OS_OS2,;t t 20191s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t 20192s,@TCL_VERSION@,$TCL_VERSION,;t t 20193s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t 20194s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 20195s,@TCL_LIBS@,$TCL_LIBS,;t t 20196s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t 20197s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t 20198s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t 20199s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 20200s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t 20201s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t 20202s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t 20203s,@HAVE_TCL@,$HAVE_TCL,;t t 20204s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t 20205s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t 20206s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t 20207s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t 20208s,@LIBOBJS@,$LIBOBJS,;t t 20209s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20210CEOF 20211 20212_ACEOF 20213 20214 cat >>$CONFIG_STATUS <<\_ACEOF 20215 # Split the substitutions into bite-sized pieces for seds with 20216 # small command number limits, like on Digital OSF/1 and HP-UX. 20217 ac_max_sed_lines=48 20218 ac_sed_frag=1 # Number of current file. 20219 ac_beg=1 # First line for current file. 20220 ac_end=$ac_max_sed_lines # Line after last line for current file. 20221 ac_more_lines=: 20222 ac_sed_cmds= 20223 while $ac_more_lines; do 20224 if test $ac_beg -gt 1; then 20225 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20226 else 20227 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20228 fi 20229 if test ! -s $tmp/subs.frag; then 20230 ac_more_lines=false 20231 else 20232 # The purpose of the label and of the branching condition is to 20233 # speed up the sed processing (if there are no `@' at all, there 20234 # is no need to browse any of the substitutions). 20235 # These are the two extra sed commands mentioned above. 20236 (echo ':t 20237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20238 if test -z "$ac_sed_cmds"; then 20239 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20240 else 20241 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20242 fi 20243 ac_sed_frag=`expr $ac_sed_frag + 1` 20244 ac_beg=$ac_end 20245 ac_end=`expr $ac_end + $ac_max_sed_lines` 20246 fi 20247 done 20248 if test -z "$ac_sed_cmds"; then 20249 ac_sed_cmds=cat 20250 fi 20251fi # test -n "$CONFIG_FILES" 20252 20253_ACEOF 20254cat >>$CONFIG_STATUS <<\_ACEOF 20255for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20257 case $ac_file in 20258 - | *:- | *:-:* ) # input from stdin 20259 cat >$tmp/stdin 20260 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20262 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20264 * ) ac_file_in=$ac_file.in ;; 20265 esac 20266 20267 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20268 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20269$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20270 X"$ac_file" : 'X\(//\)[^/]' \| \ 20271 X"$ac_file" : 'X\(//\)$' \| \ 20272 X"$ac_file" : 'X\(/\)' \| \ 20273 . : '\(.\)' 2>/dev/null || 20274echo X"$ac_file" | 20275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20276 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20277 /^X\(\/\/\)$/{ s//\1/; q; } 20278 /^X\(\/\).*/{ s//\1/; q; } 20279 s/.*/./; q'` 20280 { if $as_mkdir_p; then 20281 mkdir -p "$ac_dir" 20282 else 20283 as_dir="$ac_dir" 20284 as_dirs= 20285 while test ! -d "$as_dir"; do 20286 as_dirs="$as_dir $as_dirs" 20287 as_dir=`(dirname "$as_dir") 2>/dev/null || 20288$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20289 X"$as_dir" : 'X\(//\)[^/]' \| \ 20290 X"$as_dir" : 'X\(//\)$' \| \ 20291 X"$as_dir" : 'X\(/\)' \| \ 20292 . : '\(.\)' 2>/dev/null || 20293echo X"$as_dir" | 20294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20295 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20296 /^X\(\/\/\)$/{ s//\1/; q; } 20297 /^X\(\/\).*/{ s//\1/; q; } 20298 s/.*/./; q'` 20299 done 20300 test ! -n "$as_dirs" || mkdir $as_dirs 20301 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20302echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20303 { (exit 1); exit 1; }; }; } 20304 20305 ac_builddir=. 20306 20307if test "$ac_dir" != .; then 20308 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20309 # A "../" for each directory in $ac_dir_suffix. 20310 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20311else 20312 ac_dir_suffix= ac_top_builddir= 20313fi 20314 20315case $srcdir in 20316 .) # No --srcdir option. We are building in place. 20317 ac_srcdir=. 20318 if test -z "$ac_top_builddir"; then 20319 ac_top_srcdir=. 20320 else 20321 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20322 fi ;; 20323 [\\/]* | ?:[\\/]* ) # Absolute path. 20324 ac_srcdir=$srcdir$ac_dir_suffix; 20325 ac_top_srcdir=$srcdir ;; 20326 *) # Relative path. 20327 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20328 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20329esac 20330 20331# Do not use `cd foo && pwd` to compute absolute paths, because 20332# the directories may not exist. 20333case `pwd` in 20334.) ac_abs_builddir="$ac_dir";; 20335*) 20336 case "$ac_dir" in 20337 .) ac_abs_builddir=`pwd`;; 20338 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20339 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20340 esac;; 20341esac 20342case $ac_abs_builddir in 20343.) ac_abs_top_builddir=${ac_top_builddir}.;; 20344*) 20345 case ${ac_top_builddir}. in 20346 .) ac_abs_top_builddir=$ac_abs_builddir;; 20347 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20348 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20349 esac;; 20350esac 20351case $ac_abs_builddir in 20352.) ac_abs_srcdir=$ac_srcdir;; 20353*) 20354 case $ac_srcdir in 20355 .) ac_abs_srcdir=$ac_abs_builddir;; 20356 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20357 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20358 esac;; 20359esac 20360case $ac_abs_builddir in 20361.) ac_abs_top_srcdir=$ac_top_srcdir;; 20362*) 20363 case $ac_top_srcdir in 20364 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20365 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20366 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20367 esac;; 20368esac 20369 20370 20371 case $INSTALL in 20372 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20373 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20374 esac 20375 20376 if test x"$ac_file" != x-; then 20377 { echo "$as_me:$LINENO: creating $ac_file" >&5 20378echo "$as_me: creating $ac_file" >&6;} 20379 rm -f "$ac_file" 20380 fi 20381 # Let's still pretend it is `configure' which instantiates (i.e., don't 20382 # use $as_me), people would be surprised to read: 20383 # /* config.h. Generated by config.status. */ 20384 if test x"$ac_file" = x-; then 20385 configure_input= 20386 else 20387 configure_input="$ac_file. " 20388 fi 20389 configure_input=$configure_input"Generated from `echo $ac_file_in | 20390 sed 's,.*/,,'` by configure." 20391 20392 # First look for the input files in the build tree, otherwise in the 20393 # src tree. 20394 ac_file_inputs=`IFS=: 20395 for f in $ac_file_in; do 20396 case $f in 20397 -) echo $tmp/stdin ;; 20398 [\\/$]*) 20399 # Absolute (can't be DOS-style, as IFS=:) 20400 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20401echo "$as_me: error: cannot find input file: $f" >&2;} 20402 { (exit 1); exit 1; }; } 20403 echo "$f";; 20404 *) # Relative 20405 if test -f "$f"; then 20406 # Build tree 20407 echo "$f" 20408 elif test -f "$srcdir/$f"; then 20409 # Source tree 20410 echo "$srcdir/$f" 20411 else 20412 # /dev/null tree 20413 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20414echo "$as_me: error: cannot find input file: $f" >&2;} 20415 { (exit 1); exit 1; }; } 20416 fi;; 20417 esac 20418 done` || { (exit 1); exit 1; } 20419_ACEOF 20420cat >>$CONFIG_STATUS <<_ACEOF 20421 sed "$ac_vpsub 20422$extrasub 20423_ACEOF 20424cat >>$CONFIG_STATUS <<\_ACEOF 20425:t 20426/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20427s,@configure_input@,$configure_input,;t t 20428s,@srcdir@,$ac_srcdir,;t t 20429s,@abs_srcdir@,$ac_abs_srcdir,;t t 20430s,@top_srcdir@,$ac_top_srcdir,;t t 20431s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20432s,@builddir@,$ac_builddir,;t t 20433s,@abs_builddir@,$ac_abs_builddir,;t t 20434s,@top_builddir@,$ac_top_builddir,;t t 20435s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20436s,@INSTALL@,$ac_INSTALL,;t t 20437" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20438 rm -f $tmp/stdin 20439 if test x"$ac_file" != x-; then 20440 mv $tmp/out $ac_file 20441 else 20442 cat $tmp/out 20443 rm -f $tmp/out 20444 fi 20445 20446done 20447_ACEOF 20448 20449cat >>$CONFIG_STATUS <<\_ACEOF 20450 20451{ (exit 0); exit 0; } 20452_ACEOF 20453chmod +x $CONFIG_STATUS 20454ac_clean_files=$ac_clean_files_save 20455 20456 20457# configure is writing to config.log, and then calls config.status. 20458# config.status does its own redirection, appending to config.log. 20459# Unfortunately, on DOS this fails, as config.log is still kept open 20460# by configure, so config.status won't be able to write to it; its 20461# output is simply discarded. So we exec the FD to /dev/null, 20462# effectively closing config.log, so it can be properly (re)opened and 20463# appended to by config.status. When coming back to configure, we 20464# need to make the FD available again. 20465if test "$no_create" != yes; then 20466 ac_cs_success=: 20467 ac_config_status_args= 20468 test "$silent" = yes && 20469 ac_config_status_args="$ac_config_status_args --quiet" 20470 exec 5>/dev/null 20471 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20472 exec 5>>config.log 20473 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20474 # would make configure fail if this is the last instruction. 20475 $ac_cs_success || { (exit 1); exit 1; } 20476fi 20477 20478