1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23 24# Support unset when possible. 25if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false 222fi 223 224as_executable_p="test -f" 225 226# Sed expression to map a string onto a valid CPP name. 227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 228 229# Sed expression to map a string onto a valid variable name. 230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 231 232 233# IFS 234# We need space, tab and new line, in precisely that order. 235as_nl=' 236' 237IFS=" $as_nl" 238 239# CDPATH. 240$as_unset CDPATH 241 242 243 244# Check that we are running under the correct shell. 245SHELL=${CONFIG_SHELL-/bin/sh} 246 247case X$ECHO in 248X*--fallback-echo) 249 # Remove one level of quotation (which was required for Make). 250 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 251 ;; 252esac 253 254echo=${ECHO-echo} 255if test "X$1" = X--no-reexec; then 256 # Discard the --no-reexec flag, and continue. 257 shift 258elif test "X$1" = X--fallback-echo; then 259 # Avoid inline document here, it may be left over 260 : 261elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 262 # Yippee, $echo works! 263 : 264else 265 # Restart under the correct shell. 266 exec $SHELL "$0" --no-reexec ${1+"$@"} 267fi 268 269if test "X$1" = X--fallback-echo; then 270 # used as fallback echo 271 shift 272 cat <<EOF 273$* 274EOF 275 exit 0 276fi 277 278# The HP-UX ksh and POSIX shell print the target directory to stdout 279# if CDPATH is set. 280if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 281 282if test -z "$ECHO"; then 283if test "X${echo_test_string+set}" != Xset; then 284# find a string as large as possible, as long as the shell can cope with it 285 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 286 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 287 if (echo_test_string="`eval $cmd`") 2>/dev/null && 288 echo_test_string="`eval $cmd`" && 289 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 290 then 291 break 292 fi 293 done 294fi 295 296if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 297 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 298 test "X$echo_testing_string" = "X$echo_test_string"; then 299 : 300else 301 # The Solaris, AIX, and Digital Unix default echo programs unquote 302 # backslashes. This makes it impossible to quote backslashes using 303 # echo "$something" | sed 's/\\/\\\\/g' 304 # 305 # So, first we look for a working echo in the user's PATH. 306 307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 308 for dir in $PATH /usr/ucb; do 309 IFS="$lt_save_ifs" 310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 313 test "X$echo_testing_string" = "X$echo_test_string"; then 314 echo="$dir/echo" 315 break 316 fi 317 done 318 IFS="$lt_save_ifs" 319 320 if test "X$echo" = Xecho; then 321 # We didn't find a better echo, so look for alternatives. 322 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 323 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 324 test "X$echo_testing_string" = "X$echo_test_string"; then 325 # This shell has a builtin print -r that does the trick. 326 echo='print -r' 327 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 328 test "X$CONFIG_SHELL" != X/bin/ksh; then 329 # If we have ksh, try running configure again with it. 330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 331 export ORIGINAL_CONFIG_SHELL 332 CONFIG_SHELL=/bin/ksh 333 export CONFIG_SHELL 334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 335 else 336 # Try using printf. 337 echo='printf %s\n' 338 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 339 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 340 test "X$echo_testing_string" = "X$echo_test_string"; then 341 # Cool, printf works 342 : 343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 344 test "X$echo_testing_string" = 'X\t' && 345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 346 test "X$echo_testing_string" = "X$echo_test_string"; then 347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 348 export CONFIG_SHELL 349 SHELL="$CONFIG_SHELL" 350 export SHELL 351 echo="$CONFIG_SHELL $0 --fallback-echo" 352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 353 test "X$echo_testing_string" = 'X\t' && 354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 355 test "X$echo_testing_string" = "X$echo_test_string"; then 356 echo="$CONFIG_SHELL $0 --fallback-echo" 357 else 358 # maybe with a smaller string... 359 prev=: 360 361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 362 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 363 then 364 break 365 fi 366 prev="$cmd" 367 done 368 369 if test "$prev" != 'sed 50q "$0"'; then 370 echo_test_string=`eval $prev` 371 export echo_test_string 372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 373 else 374 # Oops. We lost completely, so just stick with echo. 375 echo=echo 376 fi 377 fi 378 fi 379 fi 380fi 381fi 382 383# Copy echo and quote the copy suitably for passing to libtool from 384# the Makefile, instead of quoting the original, which is used later. 385ECHO=$echo 386if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 387 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 388fi 389 390 391 392 393tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` 394 395tagnames=`echo "$tagnames,F77" | sed 's/^,//'` 396 397# Name of the host. 398# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 399# so uname gets run too. 400ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 401 402exec 6>&1 403 404# 405# Initializations. 406# 407ac_default_prefix=/usr/local 408ac_config_libobj_dir=. 409cross_compiling=no 410subdirs= 411MFLAGS= 412MAKEFLAGS= 413SHELL=${CONFIG_SHELL-/bin/sh} 414 415# Maximum number of lines to put in a shell here document. 416# This variable seems obsolete. It should probably be removed, and 417# only ac_max_sed_lines should be used. 418: ${ac_max_here_lines=38} 419 420# Identity of this package. 421PACKAGE_NAME= 422PACKAGE_TARNAME= 423PACKAGE_VERSION= 424PACKAGE_STRING= 425PACKAGE_BUGREPORT= 426 427ac_unique_file="sid.h" 428# Factoring default headers for most tests. 429ac_includes_default="\ 430#include <stdio.h> 431#if HAVE_SYS_TYPES_H 432# include <sys/types.h> 433#endif 434#if HAVE_SYS_STAT_H 435# include <sys/stat.h> 436#endif 437#if STDC_HEADERS 438# include <stdlib.h> 439# include <stddef.h> 440#else 441# if HAVE_STDLIB_H 442# include <stdlib.h> 443# endif 444#endif 445#if HAVE_STRING_H 446# if !STDC_HEADERS && HAVE_MEMORY_H 447# include <memory.h> 448# endif 449# include <string.h> 450#endif 451#if HAVE_STRINGS_H 452# include <strings.h> 453#endif 454#if HAVE_INTTYPES_H 455# include <inttypes.h> 456#else 457# if HAVE_STDINT_H 458# include <stdint.h> 459# endif 460#endif 461#if HAVE_UNISTD_H 462# include <unistd.h> 463#endif" 464 465ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot RESID_INLINING RESID_INLINE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PERL CXXCPP EGREP RESID_HAVE_BOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LTVERSION RESID_NAMESPACE INSTALL_RESID_TRUE INSTALL_RESID_FALSE LIBOBJS LTLIBOBJS' 466ac_subst_files='' 467 468# Initialize some variables set by options. 469ac_init_help= 470ac_init_version=false 471# The variables have the same names as the options, with 472# dashes changed to underlines. 473cache_file=/dev/null 474exec_prefix=NONE 475no_create= 476no_recursion= 477prefix=NONE 478program_prefix=NONE 479program_suffix=NONE 480program_transform_name=s,x,x, 481silent= 482site= 483srcdir= 484verbose= 485x_includes=NONE 486x_libraries=NONE 487 488# Installation directory options. 489# These are left unexpanded so users can "make install exec_prefix=/foo" 490# and all the variables that are supposed to be based on exec_prefix 491# by default will actually change. 492# Use braces instead of parens because sh, perl, etc. also accept them. 493bindir='${exec_prefix}/bin' 494sbindir='${exec_prefix}/sbin' 495libexecdir='${exec_prefix}/libexec' 496datadir='${prefix}/share' 497sysconfdir='${prefix}/etc' 498sharedstatedir='${prefix}/com' 499localstatedir='${prefix}/var' 500libdir='${exec_prefix}/lib' 501includedir='${prefix}/include' 502oldincludedir='/usr/include' 503infodir='${prefix}/info' 504mandir='${prefix}/man' 505 506ac_prev= 507for ac_option 508do 509 # If the previous option needs an argument, assign it. 510 if test -n "$ac_prev"; then 511 eval "$ac_prev=\$ac_option" 512 ac_prev= 513 continue 514 fi 515 516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 517 518 # Accept the important Cygnus configure options, so we can diagnose typos. 519 520 case $ac_option in 521 522 -bindir | --bindir | --bindi | --bind | --bin | --bi) 523 ac_prev=bindir ;; 524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 525 bindir=$ac_optarg ;; 526 527 -build | --build | --buil | --bui | --bu) 528 ac_prev=build_alias ;; 529 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 530 build_alias=$ac_optarg ;; 531 532 -cache-file | --cache-file | --cache-fil | --cache-fi \ 533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 534 ac_prev=cache_file ;; 535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 537 cache_file=$ac_optarg ;; 538 539 --config-cache | -C) 540 cache_file=config.cache ;; 541 542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 543 ac_prev=datadir ;; 544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 545 | --da=*) 546 datadir=$ac_optarg ;; 547 548 -disable-* | --disable-*) 549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 550 # Reject names that are not valid shell variable names. 551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 553 { (exit 1); exit 1; }; } 554 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 555 eval "enable_$ac_feature=no" ;; 556 557 -enable-* | --enable-*) 558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 559 # Reject names that are not valid shell variable names. 560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 562 { (exit 1); exit 1; }; } 563 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 564 case $ac_option in 565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 566 *) ac_optarg=yes ;; 567 esac 568 eval "enable_$ac_feature='$ac_optarg'" ;; 569 570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 572 | --exec | --exe | --ex) 573 ac_prev=exec_prefix ;; 574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 576 | --exec=* | --exe=* | --ex=*) 577 exec_prefix=$ac_optarg ;; 578 579 -gas | --gas | --ga | --g) 580 # Obsolete; use --with-gas. 581 with_gas=yes ;; 582 583 -help | --help | --hel | --he | -h) 584 ac_init_help=long ;; 585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 586 ac_init_help=recursive ;; 587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 588 ac_init_help=short ;; 589 590 -host | --host | --hos | --ho) 591 ac_prev=host_alias ;; 592 -host=* | --host=* | --hos=* | --ho=*) 593 host_alias=$ac_optarg ;; 594 595 -includedir | --includedir | --includedi | --included | --include \ 596 | --includ | --inclu | --incl | --inc) 597 ac_prev=includedir ;; 598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 599 | --includ=* | --inclu=* | --incl=* | --inc=*) 600 includedir=$ac_optarg ;; 601 602 -infodir | --infodir | --infodi | --infod | --info | --inf) 603 ac_prev=infodir ;; 604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 605 infodir=$ac_optarg ;; 606 607 -libdir | --libdir | --libdi | --libd) 608 ac_prev=libdir ;; 609 -libdir=* | --libdir=* | --libdi=* | --libd=*) 610 libdir=$ac_optarg ;; 611 612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 613 | --libexe | --libex | --libe) 614 ac_prev=libexecdir ;; 615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 616 | --libexe=* | --libex=* | --libe=*) 617 libexecdir=$ac_optarg ;; 618 619 -localstatedir | --localstatedir | --localstatedi | --localstated \ 620 | --localstate | --localstat | --localsta | --localst \ 621 | --locals | --local | --loca | --loc | --lo) 622 ac_prev=localstatedir ;; 623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 626 localstatedir=$ac_optarg ;; 627 628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 629 ac_prev=mandir ;; 630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 631 mandir=$ac_optarg ;; 632 633 -nfp | --nfp | --nf) 634 # Obsolete; use --without-fp. 635 with_fp=no ;; 636 637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 638 | --no-cr | --no-c | -n) 639 no_create=yes ;; 640 641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 643 no_recursion=yes ;; 644 645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 647 | --oldin | --oldi | --old | --ol | --o) 648 ac_prev=oldincludedir ;; 649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 652 oldincludedir=$ac_optarg ;; 653 654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 655 ac_prev=prefix ;; 656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 657 prefix=$ac_optarg ;; 658 659 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 660 | --program-pre | --program-pr | --program-p) 661 ac_prev=program_prefix ;; 662 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 664 program_prefix=$ac_optarg ;; 665 666 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 667 | --program-suf | --program-su | --program-s) 668 ac_prev=program_suffix ;; 669 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 671 program_suffix=$ac_optarg ;; 672 673 -program-transform-name | --program-transform-name \ 674 | --program-transform-nam | --program-transform-na \ 675 | --program-transform-n | --program-transform- \ 676 | --program-transform | --program-transfor \ 677 | --program-transfo | --program-transf \ 678 | --program-trans | --program-tran \ 679 | --progr-tra | --program-tr | --program-t) 680 ac_prev=program_transform_name ;; 681 -program-transform-name=* | --program-transform-name=* \ 682 | --program-transform-nam=* | --program-transform-na=* \ 683 | --program-transform-n=* | --program-transform-=* \ 684 | --program-transform=* | --program-transfor=* \ 685 | --program-transfo=* | --program-transf=* \ 686 | --program-trans=* | --program-tran=* \ 687 | --progr-tra=* | --program-tr=* | --program-t=*) 688 program_transform_name=$ac_optarg ;; 689 690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 691 | -silent | --silent | --silen | --sile | --sil) 692 silent=yes ;; 693 694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 695 ac_prev=sbindir ;; 696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 697 | --sbi=* | --sb=*) 698 sbindir=$ac_optarg ;; 699 700 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 702 | --sharedst | --shareds | --shared | --share | --shar \ 703 | --sha | --sh) 704 ac_prev=sharedstatedir ;; 705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 708 | --sha=* | --sh=*) 709 sharedstatedir=$ac_optarg ;; 710 711 -site | --site | --sit) 712 ac_prev=site ;; 713 -site=* | --site=* | --sit=*) 714 site=$ac_optarg ;; 715 716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 717 ac_prev=srcdir ;; 718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 719 srcdir=$ac_optarg ;; 720 721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 722 | --syscon | --sysco | --sysc | --sys | --sy) 723 ac_prev=sysconfdir ;; 724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 726 sysconfdir=$ac_optarg ;; 727 728 -target | --target | --targe | --targ | --tar | --ta | --t) 729 ac_prev=target_alias ;; 730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 731 target_alias=$ac_optarg ;; 732 733 -v | -verbose | --verbose | --verbos | --verbo | --verb) 734 verbose=yes ;; 735 736 -version | --version | --versio | --versi | --vers | -V) 737 ac_init_version=: ;; 738 739 -with-* | --with-*) 740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 741 # Reject names that are not valid shell variable names. 742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 743 { echo "$as_me: error: invalid package name: $ac_package" >&2 744 { (exit 1); exit 1; }; } 745 ac_package=`echo $ac_package| sed 's/-/_/g'` 746 case $ac_option in 747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 748 *) ac_optarg=yes ;; 749 esac 750 eval "with_$ac_package='$ac_optarg'" ;; 751 752 -without-* | --without-*) 753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 754 # Reject names that are not valid shell variable names. 755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 756 { echo "$as_me: error: invalid package name: $ac_package" >&2 757 { (exit 1); exit 1; }; } 758 ac_package=`echo $ac_package | sed 's/-/_/g'` 759 eval "with_$ac_package=no" ;; 760 761 --x) 762 # Obsolete; use --with-x. 763 with_x=yes ;; 764 765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 766 | --x-incl | --x-inc | --x-in | --x-i) 767 ac_prev=x_includes ;; 768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 770 x_includes=$ac_optarg ;; 771 772 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 774 ac_prev=x_libraries ;; 775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 777 x_libraries=$ac_optarg ;; 778 779 -*) { echo "$as_me: error: unrecognized option: $ac_option 780Try \`$0 --help' for more information." >&2 781 { (exit 1); exit 1; }; } 782 ;; 783 784 *=*) 785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 786 # Reject names that are not valid shell variable names. 787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 789 { (exit 1); exit 1; }; } 790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 791 eval "$ac_envvar='$ac_optarg'" 792 export $ac_envvar ;; 793 794 *) 795 # FIXME: should be removed in autoconf 3.0. 796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 800 ;; 801 802 esac 803done 804 805if test -n "$ac_prev"; then 806 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 807 { echo "$as_me: error: missing argument to $ac_option" >&2 808 { (exit 1); exit 1; }; } 809fi 810 811# Be sure to have absolute paths. 812for ac_var in exec_prefix prefix 813do 814 eval ac_val=$`echo $ac_var` 815 case $ac_val in 816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 818 { (exit 1); exit 1; }; };; 819 esac 820done 821 822# Be sure to have absolute paths. 823for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 824 localstatedir libdir includedir oldincludedir infodir mandir 825do 826 eval ac_val=$`echo $ac_var` 827 case $ac_val in 828 [\\/$]* | ?:[\\/]* ) ;; 829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 830 { (exit 1); exit 1; }; };; 831 esac 832done 833 834# There might be people who depend on the old broken behavior: `$host' 835# used to hold the argument of --host etc. 836# FIXME: To remove some day. 837build=$build_alias 838host=$host_alias 839target=$target_alias 840 841# FIXME: To remove some day. 842if test "x$host_alias" != x; then 843 if test "x$build_alias" = x; then 844 cross_compiling=maybe 845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 846 If a cross compiler is detected then cross compile mode will be used." >&2 847 elif test "x$build_alias" != "x$host_alias"; then 848 cross_compiling=yes 849 fi 850fi 851 852ac_tool_prefix= 853test -n "$host_alias" && ac_tool_prefix=$host_alias- 854 855test "$silent" = yes && exec 6>/dev/null 856 857 858# Find the source files, if location was not specified. 859if test -z "$srcdir"; then 860 ac_srcdir_defaulted=yes 861 # Try the directory containing this script, then its parent. 862 ac_confdir=`(dirname "$0") 2>/dev/null || 863$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 864 X"$0" : 'X\(//\)[^/]' \| \ 865 X"$0" : 'X\(//\)$' \| \ 866 X"$0" : 'X\(/\)' \| \ 867 . : '\(.\)' 2>/dev/null || 868echo X"$0" | 869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 870 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 871 /^X\(\/\/\)$/{ s//\1/; q; } 872 /^X\(\/\).*/{ s//\1/; q; } 873 s/.*/./; q'` 874 srcdir=$ac_confdir 875 if test ! -r $srcdir/$ac_unique_file; then 876 srcdir=.. 877 fi 878else 879 ac_srcdir_defaulted=no 880fi 881if test ! -r $srcdir/$ac_unique_file; then 882 if test "$ac_srcdir_defaulted" = yes; then 883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 884 { (exit 1); exit 1; }; } 885 else 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 887 { (exit 1); exit 1; }; } 888 fi 889fi 890(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 892 { (exit 1); exit 1; }; } 893srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 894ac_env_build_alias_set=${build_alias+set} 895ac_env_build_alias_value=$build_alias 896ac_cv_env_build_alias_set=${build_alias+set} 897ac_cv_env_build_alias_value=$build_alias 898ac_env_host_alias_set=${host_alias+set} 899ac_env_host_alias_value=$host_alias 900ac_cv_env_host_alias_set=${host_alias+set} 901ac_cv_env_host_alias_value=$host_alias 902ac_env_target_alias_set=${target_alias+set} 903ac_env_target_alias_value=$target_alias 904ac_cv_env_target_alias_set=${target_alias+set} 905ac_cv_env_target_alias_value=$target_alias 906ac_env_CXX_set=${CXX+set} 907ac_env_CXX_value=$CXX 908ac_cv_env_CXX_set=${CXX+set} 909ac_cv_env_CXX_value=$CXX 910ac_env_CXXFLAGS_set=${CXXFLAGS+set} 911ac_env_CXXFLAGS_value=$CXXFLAGS 912ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 913ac_cv_env_CXXFLAGS_value=$CXXFLAGS 914ac_env_LDFLAGS_set=${LDFLAGS+set} 915ac_env_LDFLAGS_value=$LDFLAGS 916ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 917ac_cv_env_LDFLAGS_value=$LDFLAGS 918ac_env_CPPFLAGS_set=${CPPFLAGS+set} 919ac_env_CPPFLAGS_value=$CPPFLAGS 920ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_cv_env_CPPFLAGS_value=$CPPFLAGS 922ac_env_CXXCPP_set=${CXXCPP+set} 923ac_env_CXXCPP_value=$CXXCPP 924ac_cv_env_CXXCPP_set=${CXXCPP+set} 925ac_cv_env_CXXCPP_value=$CXXCPP 926ac_env_CC_set=${CC+set} 927ac_env_CC_value=$CC 928ac_cv_env_CC_set=${CC+set} 929ac_cv_env_CC_value=$CC 930ac_env_CFLAGS_set=${CFLAGS+set} 931ac_env_CFLAGS_value=$CFLAGS 932ac_cv_env_CFLAGS_set=${CFLAGS+set} 933ac_cv_env_CFLAGS_value=$CFLAGS 934ac_env_CPP_set=${CPP+set} 935ac_env_CPP_value=$CPP 936ac_cv_env_CPP_set=${CPP+set} 937ac_cv_env_CPP_value=$CPP 938ac_env_F77_set=${F77+set} 939ac_env_F77_value=$F77 940ac_cv_env_F77_set=${F77+set} 941ac_cv_env_F77_value=$F77 942ac_env_FFLAGS_set=${FFLAGS+set} 943ac_env_FFLAGS_value=$FFLAGS 944ac_cv_env_FFLAGS_set=${FFLAGS+set} 945ac_cv_env_FFLAGS_value=$FFLAGS 946 947# 948# Report the --help message. 949# 950if test "$ac_init_help" = "long"; then 951 # Omit some internal or obsolete options to make the list less imposing. 952 # This message is too long to be a string in the A/UX 3.1 sh. 953 cat <<_ACEOF 954\`configure' configures this package to adapt to many kinds of systems. 955 956Usage: $0 [OPTION]... [VAR=VALUE]... 957 958To assign environment variables (e.g., CC, CFLAGS...), specify them as 959VAR=VALUE. See below for descriptions of some of the useful variables. 960 961Defaults for the options are specified in brackets. 962 963Configuration: 964 -h, --help display this help and exit 965 --help=short display options specific to this package 966 --help=recursive display the short help of all the included packages 967 -V, --version display version information and exit 968 -q, --quiet, --silent do not print \`checking...' messages 969 --cache-file=FILE cache test results in FILE [disabled] 970 -C, --config-cache alias for \`--cache-file=config.cache' 971 -n, --no-create do not create output files 972 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 973 974_ACEOF 975 976 cat <<_ACEOF 977Installation directories: 978 --prefix=PREFIX install architecture-independent files in PREFIX 979 [$ac_default_prefix] 980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 981 [PREFIX] 982 983By default, \`make install' will install all the files in 984\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 985an installation prefix other than \`$ac_default_prefix' using \`--prefix', 986for instance \`--prefix=\$HOME'. 987 988For better control, use the options below. 989 990Fine tuning of the installation directories: 991 --bindir=DIR user executables [EPREFIX/bin] 992 --sbindir=DIR system admin executables [EPREFIX/sbin] 993 --libexecdir=DIR program executables [EPREFIX/libexec] 994 --datadir=DIR read-only architecture-independent data [PREFIX/share] 995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 997 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 998 --libdir=DIR object code libraries [EPREFIX/lib] 999 --includedir=DIR C header files [PREFIX/include] 1000 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1001 --infodir=DIR info documentation [PREFIX/info] 1002 --mandir=DIR man documentation [PREFIX/man] 1003_ACEOF 1004 1005 cat <<\_ACEOF 1006 1007Program names: 1008 --program-prefix=PREFIX prepend PREFIX to installed program names 1009 --program-suffix=SUFFIX append SUFFIX to installed program names 1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1011 1012System types: 1013 --build=BUILD configure for building on BUILD [guessed] 1014 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1015_ACEOF 1016fi 1017 1018if test -n "$ac_init_help"; then 1019 1020 cat <<\_ACEOF 1021 1022Optional Features: 1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1025 --enable-inline enable inlining of functions default=yes 1026 --disable-dependency-tracking Speeds up one-time builds 1027 --enable-dependency-tracking Do not reject slow dependency extractors 1028 --enable-shared[=PKGS] 1029 build shared libraries [default=no] 1030 --enable-static[=PKGS] 1031 build static libraries [default=yes] 1032 --enable-fast-install[=PKGS] 1033 optimize for fast installation [default=yes] 1034 --disable-libtool-lock avoid locking (might break parallel builds) 1035 --disable-resid-install No install library 1036 1037Optional Packages: 1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1041 --with-pic try to use only PIC/non-PIC objects [default=use 1042 both] 1043 --with-tags[=TAGS] 1044 include additional configurations [automatic] 1045 --with-namespace=NAMESPACE 1046 resid namespace default=$RESID_NAMESPACE 1047 1048Some influential environment variables: 1049 CXX C++ compiler command 1050 CXXFLAGS C++ compiler flags 1051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1052 nonstandard directory <lib dir> 1053 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1054 headers in a nonstandard directory <include dir> 1055 CXXCPP C++ preprocessor 1056 CC C compiler command 1057 CFLAGS C compiler flags 1058 CPP C preprocessor 1059 F77 Fortran 77 compiler command 1060 FFLAGS Fortran 77 compiler flags 1061 1062Use these variables to override the choices made by `configure' or to help 1063it to find libraries and programs with nonstandard names/locations. 1064 1065_ACEOF 1066fi 1067 1068if test "$ac_init_help" = "recursive"; then 1069 # If there are subdirs, report their specific --help. 1070 ac_popdir=`pwd` 1071 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1072 test -d $ac_dir || continue 1073 ac_builddir=. 1074 1075if test "$ac_dir" != .; then 1076 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1077 # A "../" for each directory in $ac_dir_suffix. 1078 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1079else 1080 ac_dir_suffix= ac_top_builddir= 1081fi 1082 1083case $srcdir in 1084 .) # No --srcdir option. We are building in place. 1085 ac_srcdir=. 1086 if test -z "$ac_top_builddir"; then 1087 ac_top_srcdir=. 1088 else 1089 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1090 fi ;; 1091 [\\/]* | ?:[\\/]* ) # Absolute path. 1092 ac_srcdir=$srcdir$ac_dir_suffix; 1093 ac_top_srcdir=$srcdir ;; 1094 *) # Relative path. 1095 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1096 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1097esac 1098# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1099# absolute. 1100ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1101ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 1102ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1103ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1104 1105 cd $ac_dir 1106 # Check for guested configure; otherwise get Cygnus style configure. 1107 if test -f $ac_srcdir/configure.gnu; then 1108 echo 1109 $SHELL $ac_srcdir/configure.gnu --help=recursive 1110 elif test -f $ac_srcdir/configure; then 1111 echo 1112 $SHELL $ac_srcdir/configure --help=recursive 1113 elif test -f $ac_srcdir/configure.ac || 1114 test -f $ac_srcdir/configure.in; then 1115 echo 1116 $ac_configure --help 1117 else 1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1119 fi 1120 cd $ac_popdir 1121 done 1122fi 1123 1124test -n "$ac_init_help" && exit 0 1125if $ac_init_version; then 1126 cat <<\_ACEOF 1127 1128Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1129Free Software Foundation, Inc. 1130This configure script is free software; the Free Software Foundation 1131gives unlimited permission to copy, distribute and modify it. 1132_ACEOF 1133 exit 0 1134fi 1135exec 5>config.log 1136cat >&5 <<_ACEOF 1137This file contains any messages produced by compilers while 1138running configure, to aid debugging if configure makes a mistake. 1139 1140It was created by $as_me, which was 1141generated by GNU Autoconf 2.57. Invocation command line was 1142 1143 $ $0 $@ 1144 1145_ACEOF 1146{ 1147cat <<_ASUNAME 1148## --------- ## 1149## Platform. ## 1150## --------- ## 1151 1152hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1153uname -m = `(uname -m) 2>/dev/null || echo unknown` 1154uname -r = `(uname -r) 2>/dev/null || echo unknown` 1155uname -s = `(uname -s) 2>/dev/null || echo unknown` 1156uname -v = `(uname -v) 2>/dev/null || echo unknown` 1157 1158/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1159/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1160 1161/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1162/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1163/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1164hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1165/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1166/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1167/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1168 1169_ASUNAME 1170 1171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1172for as_dir in $PATH 1173do 1174 IFS=$as_save_IFS 1175 test -z "$as_dir" && as_dir=. 1176 echo "PATH: $as_dir" 1177done 1178 1179} >&5 1180 1181cat >&5 <<_ACEOF 1182 1183 1184## ----------- ## 1185## Core tests. ## 1186## ----------- ## 1187 1188_ACEOF 1189 1190 1191# Keep a trace of the command line. 1192# Strip out --no-create and --no-recursion so they do not pile up. 1193# Strip out --silent because we don't want to record it for future runs. 1194# Also quote any args containing shell meta-characters. 1195# Make two passes to allow for proper duplicate-argument suppression. 1196ac_configure_args= 1197ac_configure_args0= 1198ac_configure_args1= 1199ac_sep= 1200ac_must_keep_next=false 1201for ac_pass in 1 2 1202do 1203 for ac_arg 1204 do 1205 case $ac_arg in 1206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1208 | -silent | --silent | --silen | --sile | --sil) 1209 continue ;; 1210 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1211 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1212 esac 1213 case $ac_pass in 1214 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1215 2) 1216 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1217 if test $ac_must_keep_next = true; then 1218 ac_must_keep_next=false # Got value, back to normal. 1219 else 1220 case $ac_arg in 1221 *=* | --config-cache | -C | -disable-* | --disable-* \ 1222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1224 | -with-* | --with-* | -without-* | --without-* | --x) 1225 case "$ac_configure_args0 " in 1226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1227 esac 1228 ;; 1229 -* ) ac_must_keep_next=true ;; 1230 esac 1231 fi 1232 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1233 # Get rid of the leading space. 1234 ac_sep=" " 1235 ;; 1236 esac 1237 done 1238done 1239$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1240$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1241 1242# When interrupted or exit'd, cleanup temporary files, and complete 1243# config.log. We remove comments because anyway the quotes in there 1244# would cause problems or look ugly. 1245# WARNING: Be sure not to use single quotes in there, as some shells, 1246# such as our DU 5.0 friend, will then `close' the trap. 1247trap 'exit_status=$? 1248 # Save into config.log some information that might help in debugging. 1249 { 1250 echo 1251 1252 cat <<\_ASBOX 1253## ---------------- ## 1254## Cache variables. ## 1255## ---------------- ## 1256_ASBOX 1257 echo 1258 # The following way of writing the cache mishandles newlines in values, 1259{ 1260 (set) 2>&1 | 1261 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1262 *ac_space=\ *) 1263 sed -n \ 1264 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1266 ;; 1267 *) 1268 sed -n \ 1269 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1270 ;; 1271 esac; 1272} 1273 echo 1274 1275 cat <<\_ASBOX 1276## ----------------- ## 1277## Output variables. ## 1278## ----------------- ## 1279_ASBOX 1280 echo 1281 for ac_var in $ac_subst_vars 1282 do 1283 eval ac_val=$`echo $ac_var` 1284 echo "$ac_var='"'"'$ac_val'"'"'" 1285 done | sort 1286 echo 1287 1288 if test -n "$ac_subst_files"; then 1289 cat <<\_ASBOX 1290## ------------- ## 1291## Output files. ## 1292## ------------- ## 1293_ASBOX 1294 echo 1295 for ac_var in $ac_subst_files 1296 do 1297 eval ac_val=$`echo $ac_var` 1298 echo "$ac_var='"'"'$ac_val'"'"'" 1299 done | sort 1300 echo 1301 fi 1302 1303 if test -s confdefs.h; then 1304 cat <<\_ASBOX 1305## ----------- ## 1306## confdefs.h. ## 1307## ----------- ## 1308_ASBOX 1309 echo 1310 sed "/^$/d" confdefs.h | sort 1311 echo 1312 fi 1313 test "$ac_signal" != 0 && 1314 echo "$as_me: caught signal $ac_signal" 1315 echo "$as_me: exit $exit_status" 1316 } >&5 1317 rm -f core core.* *.core && 1318 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1319 exit $exit_status 1320 ' 0 1321for ac_signal in 1 2 13 15; do 1322 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1323done 1324ac_signal=0 1325 1326# confdefs.h avoids OS command line length limits that DEFS can exceed. 1327rm -rf conftest* confdefs.h 1328# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1329echo >confdefs.h 1330 1331# Predefined preprocessor variables. 1332 1333cat >>confdefs.h <<_ACEOF 1334#define PACKAGE_NAME "$PACKAGE_NAME" 1335_ACEOF 1336 1337 1338cat >>confdefs.h <<_ACEOF 1339#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1340_ACEOF 1341 1342 1343cat >>confdefs.h <<_ACEOF 1344#define PACKAGE_VERSION "$PACKAGE_VERSION" 1345_ACEOF 1346 1347 1348cat >>confdefs.h <<_ACEOF 1349#define PACKAGE_STRING "$PACKAGE_STRING" 1350_ACEOF 1351 1352 1353cat >>confdefs.h <<_ACEOF 1354#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1355_ACEOF 1356 1357 1358# Let the site file select an alternate cache file if it wants to. 1359# Prefer explicitly selected file to automatically selected ones. 1360if test -z "$CONFIG_SITE"; then 1361 if test "x$prefix" != xNONE; then 1362 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1363 else 1364 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1365 fi 1366fi 1367for ac_site_file in $CONFIG_SITE; do 1368 if test -r "$ac_site_file"; then 1369 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1370echo "$as_me: loading site script $ac_site_file" >&6;} 1371 sed 's/^/| /' "$ac_site_file" >&5 1372 . "$ac_site_file" 1373 fi 1374done 1375 1376if test -r "$cache_file"; then 1377 # Some versions of bash will fail to source /dev/null (special 1378 # files actually), so we avoid doing that. 1379 if test -f "$cache_file"; then 1380 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1381echo "$as_me: loading cache $cache_file" >&6;} 1382 case $cache_file in 1383 [\\/]* | ?:[\\/]* ) . $cache_file;; 1384 *) . ./$cache_file;; 1385 esac 1386 fi 1387else 1388 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1389echo "$as_me: creating cache $cache_file" >&6;} 1390 >$cache_file 1391fi 1392 1393# Check that the precious variables saved in the cache have kept the same 1394# value. 1395ac_cache_corrupted=false 1396for ac_var in `(set) 2>&1 | 1397 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1398 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1399 eval ac_new_set=\$ac_env_${ac_var}_set 1400 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1401 eval ac_new_val="\$ac_env_${ac_var}_value" 1402 case $ac_old_set,$ac_new_set in 1403 set,) 1404 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1405echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1406 ac_cache_corrupted=: ;; 1407 ,set) 1408 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1409echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1410 ac_cache_corrupted=: ;; 1411 ,);; 1412 *) 1413 if test "x$ac_old_val" != "x$ac_new_val"; then 1414 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1415echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1416 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1417echo "$as_me: former value: $ac_old_val" >&2;} 1418 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1419echo "$as_me: current value: $ac_new_val" >&2;} 1420 ac_cache_corrupted=: 1421 fi;; 1422 esac 1423 # Pass precious variables to config.status. 1424 if test "$ac_new_set" = set; then 1425 case $ac_new_val in 1426 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1427 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1428 *) ac_arg=$ac_var=$ac_new_val ;; 1429 esac 1430 case " $ac_configure_args " in 1431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1432 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1433 esac 1434 fi 1435done 1436if $ac_cache_corrupted; then 1437 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1438echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1439 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1440echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1441 { (exit 1); exit 1; }; } 1442fi 1443 1444ac_ext=c 1445ac_cpp='$CPP $CPPFLAGS' 1446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1448ac_compiler_gnu=$ac_cv_c_compiler_gnu 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469am__api_version="1.7" 1470ac_aux_dir= 1471for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1472 if test -f $ac_dir/install-sh; then 1473 ac_aux_dir=$ac_dir 1474 ac_install_sh="$ac_aux_dir/install-sh -c" 1475 break 1476 elif test -f $ac_dir/install.sh; then 1477 ac_aux_dir=$ac_dir 1478 ac_install_sh="$ac_aux_dir/install.sh -c" 1479 break 1480 elif test -f $ac_dir/shtool; then 1481 ac_aux_dir=$ac_dir 1482 ac_install_sh="$ac_aux_dir/shtool install -c" 1483 break 1484 fi 1485done 1486if test -z "$ac_aux_dir"; then 1487 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1488echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1489 { (exit 1); exit 1; }; } 1490fi 1491ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1492ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1493ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1494 1495# Find a good install program. We prefer a C program (faster), 1496# so one script is as good as another. But avoid the broken or 1497# incompatible versions: 1498# SysV /etc/install, /usr/sbin/install 1499# SunOS /usr/etc/install 1500# IRIX /sbin/install 1501# AIX /bin/install 1502# AmigaOS /C/install, which installs bootblocks on floppy discs 1503# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1504# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1505# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1506# ./install, which can be erroneously created by make from ./install.sh. 1507echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1508echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1509if test -z "$INSTALL"; then 1510if test "${ac_cv_path_install+set}" = set; then 1511 echo $ECHO_N "(cached) $ECHO_C" >&6 1512else 1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1514for as_dir in $PATH 1515do 1516 IFS=$as_save_IFS 1517 test -z "$as_dir" && as_dir=. 1518 # Account for people who put trailing slashes in PATH elements. 1519case $as_dir/ in 1520 ./ | .// | /cC/* | \ 1521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1522 /usr/ucb/* ) ;; 1523 *) 1524 # OSF1 and SCO ODT 3.0 have their own names for install. 1525 # Don't use installbsd from OSF since it installs stuff as root 1526 # by default. 1527 for ac_prog in ginstall scoinst install; do 1528 for ac_exec_ext in '' $ac_executable_extensions; do 1529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1530 if test $ac_prog = install && 1531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1532 # AIX install. It has an incompatible calling convention. 1533 : 1534 elif test $ac_prog = install && 1535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1536 # program-specific install script used by HP pwplus--don't use. 1537 : 1538 else 1539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1540 break 3 1541 fi 1542 fi 1543 done 1544 done 1545 ;; 1546esac 1547done 1548 1549 1550fi 1551 if test "${ac_cv_path_install+set}" = set; then 1552 INSTALL=$ac_cv_path_install 1553 else 1554 # As a last resort, use the slow shell script. We don't cache a 1555 # path for INSTALL within a source directory, because that will 1556 # break other packages using the cache if that directory is 1557 # removed, or if the path is relative. 1558 INSTALL=$ac_install_sh 1559 fi 1560fi 1561echo "$as_me:$LINENO: result: $INSTALL" >&5 1562echo "${ECHO_T}$INSTALL" >&6 1563 1564# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1565# It thinks the first close brace ends the variable substitution. 1566test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1567 1568test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1569 1570test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1571 1572echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1573echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1574# Just in case 1575sleep 1 1576echo timestamp > conftest.file 1577# Do `set' in a subshell so we don't clobber the current shell's 1578# arguments. Must try -L first in case configure is actually a 1579# symlink; some systems play weird games with the mod time of symlinks 1580# (eg FreeBSD returns the mod time of the symlink's containing 1581# directory). 1582if ( 1583 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1584 if test "$*" = "X"; then 1585 # -L didn't work. 1586 set X `ls -t $srcdir/configure conftest.file` 1587 fi 1588 rm -f conftest.file 1589 if test "$*" != "X $srcdir/configure conftest.file" \ 1590 && test "$*" != "X conftest.file $srcdir/configure"; then 1591 1592 # If neither matched, then we have a broken ls. This can happen 1593 # if, for instance, CONFIG_SHELL is bash and it inherits a 1594 # broken ls alias from the environment. This has actually 1595 # happened. Such a system could not be considered "sane". 1596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1597alias in your environment" >&5 1598echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1599alias in your environment" >&2;} 1600 { (exit 1); exit 1; }; } 1601 fi 1602 1603 test "$2" = conftest.file 1604 ) 1605then 1606 # Ok. 1607 : 1608else 1609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1610Check your system clock" >&5 1611echo "$as_me: error: newly created file is older than distributed files! 1612Check your system clock" >&2;} 1613 { (exit 1); exit 1; }; } 1614fi 1615echo "$as_me:$LINENO: result: yes" >&5 1616echo "${ECHO_T}yes" >&6 1617test "$program_prefix" != NONE && 1618 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1619# Use a double $ so make ignores it. 1620test "$program_suffix" != NONE && 1621 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1622# Double any \ or $. echo might interpret backslashes. 1623# By default was `s,x,x', remove it if useless. 1624cat <<\_ACEOF >conftest.sed 1625s/[\\$]/&&/g;s/;s,x,x,$// 1626_ACEOF 1627program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1628rm conftest.sed 1629 1630 1631# expand $ac_aux_dir to an absolute path 1632am_aux_dir=`cd $ac_aux_dir && pwd` 1633 1634test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1635# Use eval to expand $SHELL 1636if eval "$MISSING --run true"; then 1637 am_missing_run="$MISSING --run " 1638else 1639 am_missing_run= 1640 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1641echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1642fi 1643 1644for ac_prog in gawk mawk nawk awk 1645do 1646 # Extract the first word of "$ac_prog", so it can be a program name with args. 1647set dummy $ac_prog; ac_word=$2 1648echo "$as_me:$LINENO: checking for $ac_word" >&5 1649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1650if test "${ac_cv_prog_AWK+set}" = set; then 1651 echo $ECHO_N "(cached) $ECHO_C" >&6 1652else 1653 if test -n "$AWK"; then 1654 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1655else 1656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1657for as_dir in $PATH 1658do 1659 IFS=$as_save_IFS 1660 test -z "$as_dir" && as_dir=. 1661 for ac_exec_ext in '' $ac_executable_extensions; do 1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1663 ac_cv_prog_AWK="$ac_prog" 1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1665 break 2 1666 fi 1667done 1668done 1669 1670fi 1671fi 1672AWK=$ac_cv_prog_AWK 1673if test -n "$AWK"; then 1674 echo "$as_me:$LINENO: result: $AWK" >&5 1675echo "${ECHO_T}$AWK" >&6 1676else 1677 echo "$as_me:$LINENO: result: no" >&5 1678echo "${ECHO_T}no" >&6 1679fi 1680 1681 test -n "$AWK" && break 1682done 1683 1684echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1685echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1686set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1687if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1688 echo $ECHO_N "(cached) $ECHO_C" >&6 1689else 1690 cat >conftest.make <<\_ACEOF 1691all: 1692 @echo 'ac_maketemp="$(MAKE)"' 1693_ACEOF 1694# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1695eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1696if test -n "$ac_maketemp"; then 1697 eval ac_cv_prog_make_${ac_make}_set=yes 1698else 1699 eval ac_cv_prog_make_${ac_make}_set=no 1700fi 1701rm -f conftest.make 1702fi 1703if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1704 echo "$as_me:$LINENO: result: yes" >&5 1705echo "${ECHO_T}yes" >&6 1706 SET_MAKE= 1707else 1708 echo "$as_me:$LINENO: result: no" >&5 1709echo "${ECHO_T}no" >&6 1710 SET_MAKE="MAKE=${MAKE-make}" 1711fi 1712 1713rm -rf .tst 2>/dev/null 1714mkdir .tst 2>/dev/null 1715if test -d .tst; then 1716 am__leading_dot=. 1717else 1718 am__leading_dot=_ 1719fi 1720rmdir .tst 2>/dev/null 1721 1722 # test to see if srcdir already configured 1723if test "`cd $srcdir && pwd`" != "`pwd`" && 1724 test -f $srcdir/config.status; then 1725 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1726echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1727 { (exit 1); exit 1; }; } 1728fi 1729 1730# test whether we have cygpath 1731if test -z "$CYGPATH_W"; then 1732 if (cygpath --version) >/dev/null 2>/dev/null; then 1733 CYGPATH_W='cygpath -w' 1734 else 1735 CYGPATH_W=echo 1736 fi 1737fi 1738 1739 1740# Define the identity of the package. 1741 PACKAGE=resid 1742 VERSION=0.16 1743 1744 1745cat >>confdefs.h <<_ACEOF 1746#define PACKAGE "$PACKAGE" 1747_ACEOF 1748 1749 1750cat >>confdefs.h <<_ACEOF 1751#define VERSION "$VERSION" 1752_ACEOF 1753 1754# Some tools Automake needs. 1755 1756ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1757 1758 1759AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1760 1761 1762AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1763 1764 1765AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1766 1767 1768MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1769 1770 1771AMTAR=${AMTAR-"${am_missing_run}tar"} 1772 1773install_sh=${install_sh-"$am_aux_dir/install-sh"} 1774 1775# Installed binaries are usually stripped using `strip' when the user 1776# run `make install-strip'. However `strip' might not be the right 1777# tool to use in cross-compilation environments, therefore Automake 1778# will honor the `STRIP' environment variable to overrule this program. 1779if test "$cross_compiling" != no; then 1780 if test -n "$ac_tool_prefix"; then 1781 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1782set dummy ${ac_tool_prefix}strip; ac_word=$2 1783echo "$as_me:$LINENO: checking for $ac_word" >&5 1784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1785if test "${ac_cv_prog_STRIP+set}" = set; then 1786 echo $ECHO_N "(cached) $ECHO_C" >&6 1787else 1788 if test -n "$STRIP"; then 1789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1790else 1791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1792for as_dir in $PATH 1793do 1794 IFS=$as_save_IFS 1795 test -z "$as_dir" && as_dir=. 1796 for ac_exec_ext in '' $ac_executable_extensions; do 1797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1798 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1800 break 2 1801 fi 1802done 1803done 1804 1805fi 1806fi 1807STRIP=$ac_cv_prog_STRIP 1808if test -n "$STRIP"; then 1809 echo "$as_me:$LINENO: result: $STRIP" >&5 1810echo "${ECHO_T}$STRIP" >&6 1811else 1812 echo "$as_me:$LINENO: result: no" >&5 1813echo "${ECHO_T}no" >&6 1814fi 1815 1816fi 1817if test -z "$ac_cv_prog_STRIP"; then 1818 ac_ct_STRIP=$STRIP 1819 # Extract the first word of "strip", so it can be a program name with args. 1820set dummy strip; ac_word=$2 1821echo "$as_me:$LINENO: checking for $ac_word" >&5 1822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1823if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1824 echo $ECHO_N "(cached) $ECHO_C" >&6 1825else 1826 if test -n "$ac_ct_STRIP"; then 1827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1828else 1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1830for as_dir in $PATH 1831do 1832 IFS=$as_save_IFS 1833 test -z "$as_dir" && as_dir=. 1834 for ac_exec_ext in '' $ac_executable_extensions; do 1835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1836 ac_cv_prog_ac_ct_STRIP="strip" 1837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1838 break 2 1839 fi 1840done 1841done 1842 1843 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1844fi 1845fi 1846ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1847if test -n "$ac_ct_STRIP"; then 1848 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1849echo "${ECHO_T}$ac_ct_STRIP" >&6 1850else 1851 echo "$as_me:$LINENO: result: no" >&5 1852echo "${ECHO_T}no" >&6 1853fi 1854 1855 STRIP=$ac_ct_STRIP 1856else 1857 STRIP="$ac_cv_prog_STRIP" 1858fi 1859 1860fi 1861INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1862 1863# We need awk for the "check" target. The system "awk" is bad on 1864# some platforms. 1865 1866 1867 1868LTVERSION=5:0:0 1869 1870ac_ext=cc 1871ac_cpp='$CXXCPP $CPPFLAGS' 1872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1875 1876 1877# Check whether --enable-inline or --disable-inline was given. 1878if test "${enable_inline+set}" = set; then 1879 enableval="$enable_inline" 1880 1881fi; 1882 1883if test "$enable_inline" != no; then 1884 RESID_INLINING=1 1885 RESID_INLINE=inline 1886else 1887 RESID_INLINING=0 1888 RESID_INLINE= 1889fi 1890 1891 1892 1893 1894ac_ext=cc 1895ac_cpp='$CXXCPP $CPPFLAGS' 1896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1899if test -n "$ac_tool_prefix"; then 1900 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1901 do 1902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1903set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1904echo "$as_me:$LINENO: checking for $ac_word" >&5 1905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1906if test "${ac_cv_prog_CXX+set}" = set; then 1907 echo $ECHO_N "(cached) $ECHO_C" >&6 1908else 1909 if test -n "$CXX"; then 1910 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1911else 1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1913for as_dir in $PATH 1914do 1915 IFS=$as_save_IFS 1916 test -z "$as_dir" && as_dir=. 1917 for ac_exec_ext in '' $ac_executable_extensions; do 1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1919 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1921 break 2 1922 fi 1923done 1924done 1925 1926fi 1927fi 1928CXX=$ac_cv_prog_CXX 1929if test -n "$CXX"; then 1930 echo "$as_me:$LINENO: result: $CXX" >&5 1931echo "${ECHO_T}$CXX" >&6 1932else 1933 echo "$as_me:$LINENO: result: no" >&5 1934echo "${ECHO_T}no" >&6 1935fi 1936 1937 test -n "$CXX" && break 1938 done 1939fi 1940if test -z "$CXX"; then 1941 ac_ct_CXX=$CXX 1942 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1943do 1944 # Extract the first word of "$ac_prog", so it can be a program name with args. 1945set dummy $ac_prog; ac_word=$2 1946echo "$as_me:$LINENO: checking for $ac_word" >&5 1947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1948if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1949 echo $ECHO_N "(cached) $ECHO_C" >&6 1950else 1951 if test -n "$ac_ct_CXX"; then 1952 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1953else 1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1955for as_dir in $PATH 1956do 1957 IFS=$as_save_IFS 1958 test -z "$as_dir" && as_dir=. 1959 for ac_exec_ext in '' $ac_executable_extensions; do 1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1961 ac_cv_prog_ac_ct_CXX="$ac_prog" 1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1963 break 2 1964 fi 1965done 1966done 1967 1968fi 1969fi 1970ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1971if test -n "$ac_ct_CXX"; then 1972 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1973echo "${ECHO_T}$ac_ct_CXX" >&6 1974else 1975 echo "$as_me:$LINENO: result: no" >&5 1976echo "${ECHO_T}no" >&6 1977fi 1978 1979 test -n "$ac_ct_CXX" && break 1980done 1981test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1982 1983 CXX=$ac_ct_CXX 1984fi 1985 1986 1987# Provide some information about the compiler. 1988echo "$as_me:$LINENO:" \ 1989 "checking for C++ compiler version" >&5 1990ac_compiler=`set X $ac_compile; echo $2` 1991{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1992 (eval $ac_compiler --version </dev/null >&5) 2>&5 1993 ac_status=$? 1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1995 (exit $ac_status); } 1996{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1997 (eval $ac_compiler -v </dev/null >&5) 2>&5 1998 ac_status=$? 1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2000 (exit $ac_status); } 2001{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2002 (eval $ac_compiler -V </dev/null >&5) 2>&5 2003 ac_status=$? 2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2005 (exit $ac_status); } 2006 2007cat >conftest.$ac_ext <<_ACEOF 2008#line $LINENO "configure" 2009/* confdefs.h. */ 2010_ACEOF 2011cat confdefs.h >>conftest.$ac_ext 2012cat >>conftest.$ac_ext <<_ACEOF 2013/* end confdefs.h. */ 2014 2015int 2016main () 2017{ 2018 2019 ; 2020 return 0; 2021} 2022_ACEOF 2023ac_clean_files_save=$ac_clean_files 2024ac_clean_files="$ac_clean_files a.out a.exe b.out" 2025# Try to create an executable without -o first, disregard a.out. 2026# It will help us diagnose broken compilers, and finding out an intuition 2027# of exeext. 2028echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 2029echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 2030ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2031if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2032 (eval $ac_link_default) 2>&5 2033 ac_status=$? 2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2035 (exit $ac_status); }; then 2036 # Find the output, starting from the most likely. This scheme is 2037# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2038# resort. 2039 2040# Be careful to initialize this variable, since it used to be cached. 2041# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2042ac_cv_exeext= 2043# b.out is created by i960 compilers. 2044for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2045do 2046 test -f "$ac_file" || continue 2047 case $ac_file in 2048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2049 ;; 2050 conftest.$ac_ext ) 2051 # This is the source file. 2052 ;; 2053 [ab].out ) 2054 # We found the default executable, but exeext='' is most 2055 # certainly right. 2056 break;; 2057 *.* ) 2058 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2059 # FIXME: I believe we export ac_cv_exeext for Libtool, 2060 # but it would be cool to find out if it's true. Does anybody 2061 # maintain Libtool? --akim. 2062 export ac_cv_exeext 2063 break;; 2064 * ) 2065 break;; 2066 esac 2067done 2068else 2069 echo "$as_me: failed program was:" >&5 2070sed 's/^/| /' conftest.$ac_ext >&5 2071 2072{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2073See \`config.log' for more details." >&5 2074echo "$as_me: error: C++ compiler cannot create executables 2075See \`config.log' for more details." >&2;} 2076 { (exit 77); exit 77; }; } 2077fi 2078 2079ac_exeext=$ac_cv_exeext 2080echo "$as_me:$LINENO: result: $ac_file" >&5 2081echo "${ECHO_T}$ac_file" >&6 2082 2083# Check the compiler produces executables we can run. If not, either 2084# the compiler is broken, or we cross compile. 2085echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2086echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 2087# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2088# If not cross compiling, check that we can run a simple program. 2089if test "$cross_compiling" != yes; then 2090 if { ac_try='./$ac_file' 2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2092 (eval $ac_try) 2>&5 2093 ac_status=$? 2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2095 (exit $ac_status); }; }; then 2096 cross_compiling=no 2097 else 2098 if test "$cross_compiling" = maybe; then 2099 cross_compiling=yes 2100 else 2101 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2102If you meant to cross compile, use \`--host'. 2103See \`config.log' for more details." >&5 2104echo "$as_me: error: cannot run C++ compiled programs. 2105If you meant to cross compile, use \`--host'. 2106See \`config.log' for more details." >&2;} 2107 { (exit 1); exit 1; }; } 2108 fi 2109 fi 2110fi 2111echo "$as_me:$LINENO: result: yes" >&5 2112echo "${ECHO_T}yes" >&6 2113 2114rm -f a.out a.exe conftest$ac_cv_exeext b.out 2115ac_clean_files=$ac_clean_files_save 2116# Check the compiler produces executables we can run. If not, either 2117# the compiler is broken, or we cross compile. 2118echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2119echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2120echo "$as_me:$LINENO: result: $cross_compiling" >&5 2121echo "${ECHO_T}$cross_compiling" >&6 2122 2123echo "$as_me:$LINENO: checking for suffix of executables" >&5 2124echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2126 (eval $ac_link) 2>&5 2127 ac_status=$? 2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2129 (exit $ac_status); }; then 2130 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2131# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2132# work properly (i.e., refer to `conftest.exe'), while it won't with 2133# `rm'. 2134for ac_file in conftest.exe conftest conftest.*; do 2135 test -f "$ac_file" || continue 2136 case $ac_file in 2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2138 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2139 export ac_cv_exeext 2140 break;; 2141 * ) break;; 2142 esac 2143done 2144else 2145 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2146See \`config.log' for more details." >&5 2147echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2148See \`config.log' for more details." >&2;} 2149 { (exit 1); exit 1; }; } 2150fi 2151 2152rm -f conftest$ac_cv_exeext 2153echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2154echo "${ECHO_T}$ac_cv_exeext" >&6 2155 2156rm -f conftest.$ac_ext 2157EXEEXT=$ac_cv_exeext 2158ac_exeext=$EXEEXT 2159echo "$as_me:$LINENO: checking for suffix of object files" >&5 2160echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2161if test "${ac_cv_objext+set}" = set; then 2162 echo $ECHO_N "(cached) $ECHO_C" >&6 2163else 2164 cat >conftest.$ac_ext <<_ACEOF 2165#line $LINENO "configure" 2166/* confdefs.h. */ 2167_ACEOF 2168cat confdefs.h >>conftest.$ac_ext 2169cat >>conftest.$ac_ext <<_ACEOF 2170/* end confdefs.h. */ 2171 2172int 2173main () 2174{ 2175 2176 ; 2177 return 0; 2178} 2179_ACEOF 2180rm -f conftest.o conftest.obj 2181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2182 (eval $ac_compile) 2>&5 2183 ac_status=$? 2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2185 (exit $ac_status); }; then 2186 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2187 case $ac_file in 2188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2190 break;; 2191 esac 2192done 2193else 2194 echo "$as_me: failed program was:" >&5 2195sed 's/^/| /' conftest.$ac_ext >&5 2196 2197{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2198See \`config.log' for more details." >&5 2199echo "$as_me: error: cannot compute suffix of object files: cannot compile 2200See \`config.log' for more details." >&2;} 2201 { (exit 1); exit 1; }; } 2202fi 2203 2204rm -f conftest.$ac_cv_objext conftest.$ac_ext 2205fi 2206echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2207echo "${ECHO_T}$ac_cv_objext" >&6 2208OBJEXT=$ac_cv_objext 2209ac_objext=$OBJEXT 2210echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2211echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2212if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2213 echo $ECHO_N "(cached) $ECHO_C" >&6 2214else 2215 cat >conftest.$ac_ext <<_ACEOF 2216#line $LINENO "configure" 2217/* confdefs.h. */ 2218_ACEOF 2219cat confdefs.h >>conftest.$ac_ext 2220cat >>conftest.$ac_ext <<_ACEOF 2221/* end confdefs.h. */ 2222 2223int 2224main () 2225{ 2226#ifndef __GNUC__ 2227 choke me 2228#endif 2229 2230 ; 2231 return 0; 2232} 2233_ACEOF 2234rm -f conftest.$ac_objext 2235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2236 (eval $ac_compile) 2>&5 2237 ac_status=$? 2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2239 (exit $ac_status); } && 2240 { ac_try='test -s conftest.$ac_objext' 2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2242 (eval $ac_try) 2>&5 2243 ac_status=$? 2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2245 (exit $ac_status); }; }; then 2246 ac_compiler_gnu=yes 2247else 2248 echo "$as_me: failed program was:" >&5 2249sed 's/^/| /' conftest.$ac_ext >&5 2250 2251ac_compiler_gnu=no 2252fi 2253rm -f conftest.$ac_objext conftest.$ac_ext 2254ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2255 2256fi 2257echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2258echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2259GXX=`test $ac_compiler_gnu = yes && echo yes` 2260ac_test_CXXFLAGS=${CXXFLAGS+set} 2261ac_save_CXXFLAGS=$CXXFLAGS 2262CXXFLAGS="-g" 2263echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2264echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2265if test "${ac_cv_prog_cxx_g+set}" = set; then 2266 echo $ECHO_N "(cached) $ECHO_C" >&6 2267else 2268 cat >conftest.$ac_ext <<_ACEOF 2269#line $LINENO "configure" 2270/* confdefs.h. */ 2271_ACEOF 2272cat confdefs.h >>conftest.$ac_ext 2273cat >>conftest.$ac_ext <<_ACEOF 2274/* end confdefs.h. */ 2275 2276int 2277main () 2278{ 2279 2280 ; 2281 return 0; 2282} 2283_ACEOF 2284rm -f conftest.$ac_objext 2285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2286 (eval $ac_compile) 2>&5 2287 ac_status=$? 2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2289 (exit $ac_status); } && 2290 { ac_try='test -s conftest.$ac_objext' 2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2292 (eval $ac_try) 2>&5 2293 ac_status=$? 2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2295 (exit $ac_status); }; }; then 2296 ac_cv_prog_cxx_g=yes 2297else 2298 echo "$as_me: failed program was:" >&5 2299sed 's/^/| /' conftest.$ac_ext >&5 2300 2301ac_cv_prog_cxx_g=no 2302fi 2303rm -f conftest.$ac_objext conftest.$ac_ext 2304fi 2305echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2306echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2307if test "$ac_test_CXXFLAGS" = set; then 2308 CXXFLAGS=$ac_save_CXXFLAGS 2309elif test $ac_cv_prog_cxx_g = yes; then 2310 if test "$GXX" = yes; then 2311 CXXFLAGS="-g -O2" 2312 else 2313 CXXFLAGS="-g" 2314 fi 2315else 2316 if test "$GXX" = yes; then 2317 CXXFLAGS="-O2" 2318 else 2319 CXXFLAGS= 2320 fi 2321fi 2322for ac_declaration in \ 2323 ''\ 2324 '#include <stdlib.h>' \ 2325 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2326 'extern "C" void std::exit (int); using std::exit;' \ 2327 'extern "C" void exit (int) throw ();' \ 2328 'extern "C" void exit (int);' \ 2329 'void exit (int);' 2330do 2331 cat >conftest.$ac_ext <<_ACEOF 2332#line $LINENO "configure" 2333/* confdefs.h. */ 2334_ACEOF 2335cat confdefs.h >>conftest.$ac_ext 2336cat >>conftest.$ac_ext <<_ACEOF 2337/* end confdefs.h. */ 2338#include <stdlib.h> 2339$ac_declaration 2340int 2341main () 2342{ 2343exit (42); 2344 ; 2345 return 0; 2346} 2347_ACEOF 2348rm -f conftest.$ac_objext 2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2350 (eval $ac_compile) 2>&5 2351 ac_status=$? 2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2353 (exit $ac_status); } && 2354 { ac_try='test -s conftest.$ac_objext' 2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2356 (eval $ac_try) 2>&5 2357 ac_status=$? 2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2359 (exit $ac_status); }; }; then 2360 : 2361else 2362 echo "$as_me: failed program was:" >&5 2363sed 's/^/| /' conftest.$ac_ext >&5 2364 2365continue 2366fi 2367rm -f conftest.$ac_objext conftest.$ac_ext 2368 cat >conftest.$ac_ext <<_ACEOF 2369#line $LINENO "configure" 2370/* confdefs.h. */ 2371_ACEOF 2372cat confdefs.h >>conftest.$ac_ext 2373cat >>conftest.$ac_ext <<_ACEOF 2374/* end confdefs.h. */ 2375$ac_declaration 2376int 2377main () 2378{ 2379exit (42); 2380 ; 2381 return 0; 2382} 2383_ACEOF 2384rm -f conftest.$ac_objext 2385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2386 (eval $ac_compile) 2>&5 2387 ac_status=$? 2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2389 (exit $ac_status); } && 2390 { ac_try='test -s conftest.$ac_objext' 2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2392 (eval $ac_try) 2>&5 2393 ac_status=$? 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); }; }; then 2396 break 2397else 2398 echo "$as_me: failed program was:" >&5 2399sed 's/^/| /' conftest.$ac_ext >&5 2400 2401fi 2402rm -f conftest.$ac_objext conftest.$ac_ext 2403done 2404rm -f conftest* 2405if test -n "$ac_declaration"; then 2406 echo '#ifdef __cplusplus' >>confdefs.h 2407 echo $ac_declaration >>confdefs.h 2408 echo '#endif' >>confdefs.h 2409fi 2410 2411ac_ext=cc 2412ac_cpp='$CXXCPP $CPPFLAGS' 2413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2416DEPDIR="${am__leading_dot}deps" 2417 2418 ac_config_commands="$ac_config_commands depfiles" 2419 2420 2421am_make=${MAKE-make} 2422cat > confinc << 'END' 2423doit: 2424 @echo done 2425END 2426# If we don't find an include directive, just comment out the code. 2427echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2428echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2429am__include="#" 2430am__quote= 2431_am_result=none 2432# First try GNU make style include. 2433echo "include confinc" > confmf 2434# We grep out `Entering directory' and `Leaving directory' 2435# messages which can occur if `w' ends up in MAKEFLAGS. 2436# In particular we don't look at `^make:' because GNU make might 2437# be invoked under some other name (usually "gmake"), in which 2438# case it prints its new name instead of `make'. 2439if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2440 am__include=include 2441 am__quote= 2442 _am_result=GNU 2443fi 2444# Now try BSD make style include. 2445if test "$am__include" = "#"; then 2446 echo '.include "confinc"' > confmf 2447 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2448 am__include=.include 2449 am__quote="\"" 2450 _am_result=BSD 2451 fi 2452fi 2453 2454 2455echo "$as_me:$LINENO: result: $_am_result" >&5 2456echo "${ECHO_T}$_am_result" >&6 2457rm -f confinc confmf 2458 2459# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2460if test "${enable_dependency_tracking+set}" = set; then 2461 enableval="$enable_dependency_tracking" 2462 2463fi; 2464if test "x$enable_dependency_tracking" != xno; then 2465 am_depcomp="$ac_aux_dir/depcomp" 2466 AMDEPBACKSLASH='\' 2467fi 2468 2469 2470if test "x$enable_dependency_tracking" != xno; then 2471 AMDEP_TRUE= 2472 AMDEP_FALSE='#' 2473else 2474 AMDEP_TRUE='#' 2475 AMDEP_FALSE= 2476fi 2477 2478 2479 2480 2481depcc="$CXX" am_compiler_list= 2482 2483echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2484echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2485if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 2486 echo $ECHO_N "(cached) $ECHO_C" >&6 2487else 2488 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2489 # We make a subdir and do the tests there. Otherwise we can end up 2490 # making bogus files that we don't know about and never remove. For 2491 # instance it was reported that on HP-UX the gcc test will end up 2492 # making a dummy file named `D' -- because `-MD' means `put the output 2493 # in D'. 2494 mkdir conftest.dir 2495 # Copy depcomp to subdir because otherwise we won't find it if we're 2496 # using a relative directory. 2497 cp "$am_depcomp" conftest.dir 2498 cd conftest.dir 2499 2500 am_cv_CXX_dependencies_compiler_type=none 2501 if test "$am_compiler_list" = ""; then 2502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2503 fi 2504 for depmode in $am_compiler_list; do 2505 # We need to recreate these files for each test, as the compiler may 2506 # overwrite some of them when testing with obscure command lines. 2507 # This happens at least with the AIX C compiler. 2508 echo '#include "conftest.h"' > conftest.c 2509 echo 'int i;' > conftest.h 2510 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2511 2512 case $depmode in 2513 nosideeffect) 2514 # after this tag, mechanisms are not by side-effect, so they'll 2515 # only be used when explicitly requested 2516 if test "x$enable_dependency_tracking" = xyes; then 2517 continue 2518 else 2519 break 2520 fi 2521 ;; 2522 none) break ;; 2523 esac 2524 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2525 # mode. It turns out that the SunPro C++ compiler does not properly 2526 # handle `-M -o', and we need to detect this. 2527 if depmode=$depmode \ 2528 source=conftest.c object=conftest.o \ 2529 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2530 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \ 2531 >/dev/null 2>conftest.err && 2532 grep conftest.h conftest.Po > /dev/null 2>&1 && 2533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2534 # icc doesn't choke on unknown options, it will just issue warnings 2535 # (even with -Werror). So we grep stderr for any message 2536 # that says an option was ignored. 2537 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 2538 am_cv_CXX_dependencies_compiler_type=$depmode 2539 break 2540 fi 2541 fi 2542 done 2543 2544 cd .. 2545 rm -rf conftest.dir 2546else 2547 am_cv_CXX_dependencies_compiler_type=none 2548fi 2549 2550fi 2551echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 2552echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 2553CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 2554 2555 2556 2557if 2558 test "x$enable_dependency_tracking" != xno \ 2559 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 2560 am__fastdepCXX_TRUE= 2561 am__fastdepCXX_FALSE='#' 2562else 2563 am__fastdepCXX_TRUE='#' 2564 am__fastdepCXX_FALSE= 2565fi 2566 2567 2568 2569if test "$GXX" = yes; then 2570 if test "$ac_test_CXXFLAGS" != set; then 2571 CXXFLAGS="-g -Wall -O2 -funroll-loops -fomit-frame-pointer -fno-exceptions" 2572 echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 2573echo $ECHO_N "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... $ECHO_C" >&6 2574 2575cat >conftest.$ac_ext <<_ACEOF 2576#line $LINENO "configure" 2577/* confdefs.h. */ 2578_ACEOF 2579cat confdefs.h >>conftest.$ac_ext 2580cat >>conftest.$ac_ext <<_ACEOF 2581/* end confdefs.h. */ 2582 2583int 2584main () 2585{ 2586int test; 2587 ; 2588 return 0; 2589} 2590_ACEOF 2591rm -f conftest.$ac_objext 2592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2593 (eval $ac_compile) 2>&5 2594 ac_status=$? 2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2596 (exit $ac_status); } && 2597 { ac_try='test -s conftest.$ac_objext' 2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2599 (eval $ac_try) 2>&5 2600 ac_status=$? 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); }; }; then 2603 echo "$as_me:$LINENO: result: yes" >&5 2604echo "${ECHO_T}yes" >&6 2605else 2606 echo "$as_me: failed program was:" >&5 2607sed 's/^/| /' conftest.$ac_ext >&5 2608 2609 echo "$as_me:$LINENO: result: no" >&5 2610echo "${ECHO_T}no" >&6 2611 CXXFLAGS="-g -Wall -O2 -funroll-loops -fomit-frame-pointer" 2612 2613fi 2614rm -f conftest.$ac_objext conftest.$ac_ext 2615 fi 2616fi 2617 2618# Extract the first word of "perl", so it can be a program name with args. 2619set dummy perl; ac_word=$2 2620echo "$as_me:$LINENO: checking for $ac_word" >&5 2621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2622if test "${ac_cv_path_PERL+set}" = set; then 2623 echo $ECHO_N "(cached) $ECHO_C" >&6 2624else 2625 case $PERL in 2626 [\\/]* | ?:[\\/]*) 2627 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 2628 ;; 2629 *) 2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2631for as_dir in $PATH 2632do 2633 IFS=$as_save_IFS 2634 test -z "$as_dir" && as_dir=. 2635 for ac_exec_ext in '' $ac_executable_extensions; do 2636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2637 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2639 break 2 2640 fi 2641done 2642done 2643 2644 ;; 2645esac 2646fi 2647PERL=$ac_cv_path_PERL 2648 2649if test -n "$PERL"; then 2650 echo "$as_me:$LINENO: result: $PERL" >&5 2651echo "${ECHO_T}$PERL" >&6 2652else 2653 echo "$as_me:$LINENO: result: no" >&5 2654echo "${ECHO_T}no" >&6 2655fi 2656 2657 2658 2659 2660ac_ext=cc 2661ac_cpp='$CXXCPP $CPPFLAGS' 2662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2665echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 2666echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 2667if test -z "$CXXCPP"; then 2668 if test "${ac_cv_prog_CXXCPP+set}" = set; then 2669 echo $ECHO_N "(cached) $ECHO_C" >&6 2670else 2671 # Double quotes because CXXCPP needs to be expanded 2672 for CXXCPP in "$CXX -E" "/lib/cpp" 2673 do 2674 ac_preproc_ok=false 2675for ac_cxx_preproc_warn_flag in '' yes 2676do 2677 # Use a header file that comes with gcc, so configuring glibc 2678 # with a fresh cross-compiler works. 2679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2680 # <limits.h> exists even on freestanding compilers. 2681 # On the NeXT, cc -E runs the code through the compiler's parser, 2682 # not just through cpp. "Syntax error" is here to catch this case. 2683 cat >conftest.$ac_ext <<_ACEOF 2684#line $LINENO "configure" 2685/* confdefs.h. */ 2686_ACEOF 2687cat confdefs.h >>conftest.$ac_ext 2688cat >>conftest.$ac_ext <<_ACEOF 2689/* end confdefs.h. */ 2690#ifdef __STDC__ 2691# include <limits.h> 2692#else 2693# include <assert.h> 2694#endif 2695 Syntax error 2696_ACEOF 2697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2699 ac_status=$? 2700 grep -v '^ *+' conftest.er1 >conftest.err 2701 rm -f conftest.er1 2702 cat conftest.err >&5 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); } >/dev/null; then 2705 if test -s conftest.err; then 2706 ac_cpp_err=$ac_cxx_preproc_warn_flag 2707 else 2708 ac_cpp_err= 2709 fi 2710else 2711 ac_cpp_err=yes 2712fi 2713if test -z "$ac_cpp_err"; then 2714 : 2715else 2716 echo "$as_me: failed program was:" >&5 2717sed 's/^/| /' conftest.$ac_ext >&5 2718 2719 # Broken: fails on valid input. 2720continue 2721fi 2722rm -f conftest.err conftest.$ac_ext 2723 2724 # OK, works on sane cases. Now check whether non-existent headers 2725 # can be detected and how. 2726 cat >conftest.$ac_ext <<_ACEOF 2727#line $LINENO "configure" 2728/* confdefs.h. */ 2729_ACEOF 2730cat confdefs.h >>conftest.$ac_ext 2731cat >>conftest.$ac_ext <<_ACEOF 2732/* end confdefs.h. */ 2733#include <ac_nonexistent.h> 2734_ACEOF 2735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2737 ac_status=$? 2738 grep -v '^ *+' conftest.er1 >conftest.err 2739 rm -f conftest.er1 2740 cat conftest.err >&5 2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2742 (exit $ac_status); } >/dev/null; then 2743 if test -s conftest.err; then 2744 ac_cpp_err=$ac_cxx_preproc_warn_flag 2745 else 2746 ac_cpp_err= 2747 fi 2748else 2749 ac_cpp_err=yes 2750fi 2751if test -z "$ac_cpp_err"; then 2752 # Broken: success on invalid input. 2753continue 2754else 2755 echo "$as_me: failed program was:" >&5 2756sed 's/^/| /' conftest.$ac_ext >&5 2757 2758 # Passes both tests. 2759ac_preproc_ok=: 2760break 2761fi 2762rm -f conftest.err conftest.$ac_ext 2763 2764done 2765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2766rm -f conftest.err conftest.$ac_ext 2767if $ac_preproc_ok; then 2768 break 2769fi 2770 2771 done 2772 ac_cv_prog_CXXCPP=$CXXCPP 2773 2774fi 2775 CXXCPP=$ac_cv_prog_CXXCPP 2776else 2777 ac_cv_prog_CXXCPP=$CXXCPP 2778fi 2779echo "$as_me:$LINENO: result: $CXXCPP" >&5 2780echo "${ECHO_T}$CXXCPP" >&6 2781ac_preproc_ok=false 2782for ac_cxx_preproc_warn_flag in '' yes 2783do 2784 # Use a header file that comes with gcc, so configuring glibc 2785 # with a fresh cross-compiler works. 2786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2787 # <limits.h> exists even on freestanding compilers. 2788 # On the NeXT, cc -E runs the code through the compiler's parser, 2789 # not just through cpp. "Syntax error" is here to catch this case. 2790 cat >conftest.$ac_ext <<_ACEOF 2791#line $LINENO "configure" 2792/* confdefs.h. */ 2793_ACEOF 2794cat confdefs.h >>conftest.$ac_ext 2795cat >>conftest.$ac_ext <<_ACEOF 2796/* end confdefs.h. */ 2797#ifdef __STDC__ 2798# include <limits.h> 2799#else 2800# include <assert.h> 2801#endif 2802 Syntax error 2803_ACEOF 2804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2806 ac_status=$? 2807 grep -v '^ *+' conftest.er1 >conftest.err 2808 rm -f conftest.er1 2809 cat conftest.err >&5 2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2811 (exit $ac_status); } >/dev/null; then 2812 if test -s conftest.err; then 2813 ac_cpp_err=$ac_cxx_preproc_warn_flag 2814 else 2815 ac_cpp_err= 2816 fi 2817else 2818 ac_cpp_err=yes 2819fi 2820if test -z "$ac_cpp_err"; then 2821 : 2822else 2823 echo "$as_me: failed program was:" >&5 2824sed 's/^/| /' conftest.$ac_ext >&5 2825 2826 # Broken: fails on valid input. 2827continue 2828fi 2829rm -f conftest.err conftest.$ac_ext 2830 2831 # OK, works on sane cases. Now check whether non-existent headers 2832 # can be detected and how. 2833 cat >conftest.$ac_ext <<_ACEOF 2834#line $LINENO "configure" 2835/* confdefs.h. */ 2836_ACEOF 2837cat confdefs.h >>conftest.$ac_ext 2838cat >>conftest.$ac_ext <<_ACEOF 2839/* end confdefs.h. */ 2840#include <ac_nonexistent.h> 2841_ACEOF 2842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2844 ac_status=$? 2845 grep -v '^ *+' conftest.er1 >conftest.err 2846 rm -f conftest.er1 2847 cat conftest.err >&5 2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2849 (exit $ac_status); } >/dev/null; then 2850 if test -s conftest.err; then 2851 ac_cpp_err=$ac_cxx_preproc_warn_flag 2852 else 2853 ac_cpp_err= 2854 fi 2855else 2856 ac_cpp_err=yes 2857fi 2858if test -z "$ac_cpp_err"; then 2859 # Broken: success on invalid input. 2860continue 2861else 2862 echo "$as_me: failed program was:" >&5 2863sed 's/^/| /' conftest.$ac_ext >&5 2864 2865 # Passes both tests. 2866ac_preproc_ok=: 2867break 2868fi 2869rm -f conftest.err conftest.$ac_ext 2870 2871done 2872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2873rm -f conftest.err conftest.$ac_ext 2874if $ac_preproc_ok; then 2875 : 2876else 2877 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 2878See \`config.log' for more details." >&5 2879echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 2880See \`config.log' for more details." >&2;} 2881 { (exit 1); exit 1; }; } 2882fi 2883 2884ac_ext=cc 2885ac_cpp='$CXXCPP $CPPFLAGS' 2886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2889 2890 2891echo "$as_me:$LINENO: checking for egrep" >&5 2892echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2893if test "${ac_cv_prog_egrep+set}" = set; then 2894 echo $ECHO_N "(cached) $ECHO_C" >&6 2895else 2896 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2897 then ac_cv_prog_egrep='grep -E' 2898 else ac_cv_prog_egrep='egrep' 2899 fi 2900fi 2901echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2902echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2903 EGREP=$ac_cv_prog_egrep 2904 2905 2906echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2907echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2908if test "${ac_cv_header_stdc+set}" = set; then 2909 echo $ECHO_N "(cached) $ECHO_C" >&6 2910else 2911 cat >conftest.$ac_ext <<_ACEOF 2912#line $LINENO "configure" 2913/* confdefs.h. */ 2914_ACEOF 2915cat confdefs.h >>conftest.$ac_ext 2916cat >>conftest.$ac_ext <<_ACEOF 2917/* end confdefs.h. */ 2918#include <stdlib.h> 2919#include <stdarg.h> 2920#include <string.h> 2921#include <float.h> 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931rm -f conftest.$ac_objext 2932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2933 (eval $ac_compile) 2>&5 2934 ac_status=$? 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); } && 2937 { ac_try='test -s conftest.$ac_objext' 2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2939 (eval $ac_try) 2>&5 2940 ac_status=$? 2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2942 (exit $ac_status); }; }; then 2943 ac_cv_header_stdc=yes 2944else 2945 echo "$as_me: failed program was:" >&5 2946sed 's/^/| /' conftest.$ac_ext >&5 2947 2948ac_cv_header_stdc=no 2949fi 2950rm -f conftest.$ac_objext conftest.$ac_ext 2951 2952if test $ac_cv_header_stdc = yes; then 2953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2954 cat >conftest.$ac_ext <<_ACEOF 2955#line $LINENO "configure" 2956/* confdefs.h. */ 2957_ACEOF 2958cat confdefs.h >>conftest.$ac_ext 2959cat >>conftest.$ac_ext <<_ACEOF 2960/* end confdefs.h. */ 2961#include <string.h> 2962 2963_ACEOF 2964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2965 $EGREP "memchr" >/dev/null 2>&1; then 2966 : 2967else 2968 ac_cv_header_stdc=no 2969fi 2970rm -f conftest* 2971 2972fi 2973 2974if test $ac_cv_header_stdc = yes; then 2975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2976 cat >conftest.$ac_ext <<_ACEOF 2977#line $LINENO "configure" 2978/* confdefs.h. */ 2979_ACEOF 2980cat confdefs.h >>conftest.$ac_ext 2981cat >>conftest.$ac_ext <<_ACEOF 2982/* end confdefs.h. */ 2983#include <stdlib.h> 2984 2985_ACEOF 2986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2987 $EGREP "free" >/dev/null 2>&1; then 2988 : 2989else 2990 ac_cv_header_stdc=no 2991fi 2992rm -f conftest* 2993 2994fi 2995 2996if test $ac_cv_header_stdc = yes; then 2997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2998 if test "$cross_compiling" = yes; then 2999 : 3000else 3001 cat >conftest.$ac_ext <<_ACEOF 3002#line $LINENO "configure" 3003/* confdefs.h. */ 3004_ACEOF 3005cat confdefs.h >>conftest.$ac_ext 3006cat >>conftest.$ac_ext <<_ACEOF 3007/* end confdefs.h. */ 3008#include <ctype.h> 3009#if ((' ' & 0x0FF) == 0x020) 3010# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3011# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3012#else 3013# define ISLOWER(c) \ 3014 (('a' <= (c) && (c) <= 'i') \ 3015 || ('j' <= (c) && (c) <= 'r') \ 3016 || ('s' <= (c) && (c) <= 'z')) 3017# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3018#endif 3019 3020#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3021int 3022main () 3023{ 3024 int i; 3025 for (i = 0; i < 256; i++) 3026 if (XOR (islower (i), ISLOWER (i)) 3027 || toupper (i) != TOUPPER (i)) 3028 exit(2); 3029 exit (0); 3030} 3031_ACEOF 3032rm -f conftest$ac_exeext 3033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3034 (eval $ac_link) 2>&5 3035 ac_status=$? 3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3039 (eval $ac_try) 2>&5 3040 ac_status=$? 3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3042 (exit $ac_status); }; }; then 3043 : 3044else 3045 echo "$as_me: program exited with status $ac_status" >&5 3046echo "$as_me: failed program was:" >&5 3047sed 's/^/| /' conftest.$ac_ext >&5 3048 3049( exit $ac_status ) 3050ac_cv_header_stdc=no 3051fi 3052rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3053fi 3054fi 3055fi 3056echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3057echo "${ECHO_T}$ac_cv_header_stdc" >&6 3058if test $ac_cv_header_stdc = yes; then 3059 3060cat >>confdefs.h <<\_ACEOF 3061#define STDC_HEADERS 1 3062_ACEOF 3063 3064fi 3065 3066# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3077 inttypes.h stdint.h unistd.h 3078do 3079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3080echo "$as_me:$LINENO: checking for $ac_header" >&5 3081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3082if eval "test \"\${$as_ac_Header+set}\" = set"; then 3083 echo $ECHO_N "(cached) $ECHO_C" >&6 3084else 3085 cat >conftest.$ac_ext <<_ACEOF 3086#line $LINENO "configure" 3087/* confdefs.h. */ 3088_ACEOF 3089cat confdefs.h >>conftest.$ac_ext 3090cat >>conftest.$ac_ext <<_ACEOF 3091/* end confdefs.h. */ 3092$ac_includes_default 3093 3094#include <$ac_header> 3095_ACEOF 3096rm -f conftest.$ac_objext 3097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3098 (eval $ac_compile) 2>&5 3099 ac_status=$? 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); } && 3102 { ac_try='test -s conftest.$ac_objext' 3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3104 (eval $ac_try) 2>&5 3105 ac_status=$? 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); }; }; then 3108 eval "$as_ac_Header=yes" 3109else 3110 echo "$as_me: failed program was:" >&5 3111sed 's/^/| /' conftest.$ac_ext >&5 3112 3113eval "$as_ac_Header=no" 3114fi 3115rm -f conftest.$ac_objext conftest.$ac_ext 3116fi 3117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3119if test `eval echo '${'$as_ac_Header'}'` = yes; then 3120 cat >>confdefs.h <<_ACEOF 3121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3122_ACEOF 3123 3124fi 3125 3126done 3127 3128 3129echo "$as_me:$LINENO: checking for int" >&5 3130echo $ECHO_N "checking for int... $ECHO_C" >&6 3131if test "${ac_cv_type_int+set}" = set; then 3132 echo $ECHO_N "(cached) $ECHO_C" >&6 3133else 3134 cat >conftest.$ac_ext <<_ACEOF 3135#line $LINENO "configure" 3136/* confdefs.h. */ 3137_ACEOF 3138cat confdefs.h >>conftest.$ac_ext 3139cat >>conftest.$ac_ext <<_ACEOF 3140/* end confdefs.h. */ 3141$ac_includes_default 3142int 3143main () 3144{ 3145if ((int *) 0) 3146 return 0; 3147if (sizeof (int)) 3148 return 0; 3149 ; 3150 return 0; 3151} 3152_ACEOF 3153rm -f conftest.$ac_objext 3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3155 (eval $ac_compile) 2>&5 3156 ac_status=$? 3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3158 (exit $ac_status); } && 3159 { ac_try='test -s conftest.$ac_objext' 3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3161 (eval $ac_try) 2>&5 3162 ac_status=$? 3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3164 (exit $ac_status); }; }; then 3165 ac_cv_type_int=yes 3166else 3167 echo "$as_me: failed program was:" >&5 3168sed 's/^/| /' conftest.$ac_ext >&5 3169 3170ac_cv_type_int=no 3171fi 3172rm -f conftest.$ac_objext conftest.$ac_ext 3173fi 3174echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 3175echo "${ECHO_T}$ac_cv_type_int" >&6 3176 3177echo "$as_me:$LINENO: checking size of int" >&5 3178echo $ECHO_N "checking size of int... $ECHO_C" >&6 3179if test "${ac_cv_sizeof_int+set}" = set; then 3180 echo $ECHO_N "(cached) $ECHO_C" >&6 3181else 3182 if test "$ac_cv_type_int" = yes; then 3183 # The cast to unsigned long works around a bug in the HP C Compiler 3184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3186 # This bug is HP SR number 8606223364. 3187 if test "$cross_compiling" = yes; then 3188 # Depending upon the size, compute the lo and hi bounds. 3189cat >conftest.$ac_ext <<_ACEOF 3190#line $LINENO "configure" 3191/* confdefs.h. */ 3192_ACEOF 3193cat confdefs.h >>conftest.$ac_ext 3194cat >>conftest.$ac_ext <<_ACEOF 3195/* end confdefs.h. */ 3196$ac_includes_default 3197int 3198main () 3199{ 3200static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 3201test_array [0] = 0 3202 3203 ; 3204 return 0; 3205} 3206_ACEOF 3207rm -f conftest.$ac_objext 3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3209 (eval $ac_compile) 2>&5 3210 ac_status=$? 3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3212 (exit $ac_status); } && 3213 { ac_try='test -s conftest.$ac_objext' 3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3215 (eval $ac_try) 2>&5 3216 ac_status=$? 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3218 (exit $ac_status); }; }; then 3219 ac_lo=0 ac_mid=0 3220 while :; do 3221 cat >conftest.$ac_ext <<_ACEOF 3222#line $LINENO "configure" 3223/* confdefs.h. */ 3224_ACEOF 3225cat confdefs.h >>conftest.$ac_ext 3226cat >>conftest.$ac_ext <<_ACEOF 3227/* end confdefs.h. */ 3228$ac_includes_default 3229int 3230main () 3231{ 3232static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 3233test_array [0] = 0 3234 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239rm -f conftest.$ac_objext 3240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3241 (eval $ac_compile) 2>&5 3242 ac_status=$? 3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3244 (exit $ac_status); } && 3245 { ac_try='test -s conftest.$ac_objext' 3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3247 (eval $ac_try) 2>&5 3248 ac_status=$? 3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3250 (exit $ac_status); }; }; then 3251 ac_hi=$ac_mid; break 3252else 3253 echo "$as_me: failed program was:" >&5 3254sed 's/^/| /' conftest.$ac_ext >&5 3255 3256ac_lo=`expr $ac_mid + 1` 3257 if test $ac_lo -le $ac_mid; then 3258 ac_lo= ac_hi= 3259 break 3260 fi 3261 ac_mid=`expr 2 '*' $ac_mid + 1` 3262fi 3263rm -f conftest.$ac_objext conftest.$ac_ext 3264 done 3265else 3266 echo "$as_me: failed program was:" >&5 3267sed 's/^/| /' conftest.$ac_ext >&5 3268 3269cat >conftest.$ac_ext <<_ACEOF 3270#line $LINENO "configure" 3271/* confdefs.h. */ 3272_ACEOF 3273cat confdefs.h >>conftest.$ac_ext 3274cat >>conftest.$ac_ext <<_ACEOF 3275/* end confdefs.h. */ 3276$ac_includes_default 3277int 3278main () 3279{ 3280static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 3281test_array [0] = 0 3282 3283 ; 3284 return 0; 3285} 3286_ACEOF 3287rm -f conftest.$ac_objext 3288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3289 (eval $ac_compile) 2>&5 3290 ac_status=$? 3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3292 (exit $ac_status); } && 3293 { ac_try='test -s conftest.$ac_objext' 3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3295 (eval $ac_try) 2>&5 3296 ac_status=$? 3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 (exit $ac_status); }; }; then 3299 ac_hi=-1 ac_mid=-1 3300 while :; do 3301 cat >conftest.$ac_ext <<_ACEOF 3302#line $LINENO "configure" 3303/* confdefs.h. */ 3304_ACEOF 3305cat confdefs.h >>conftest.$ac_ext 3306cat >>conftest.$ac_ext <<_ACEOF 3307/* end confdefs.h. */ 3308$ac_includes_default 3309int 3310main () 3311{ 3312static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 3313test_array [0] = 0 3314 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319rm -f conftest.$ac_objext 3320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3321 (eval $ac_compile) 2>&5 3322 ac_status=$? 3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3324 (exit $ac_status); } && 3325 { ac_try='test -s conftest.$ac_objext' 3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3327 (eval $ac_try) 2>&5 3328 ac_status=$? 3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3330 (exit $ac_status); }; }; then 3331 ac_lo=$ac_mid; break 3332else 3333 echo "$as_me: failed program was:" >&5 3334sed 's/^/| /' conftest.$ac_ext >&5 3335 3336ac_hi=`expr '(' $ac_mid ')' - 1` 3337 if test $ac_mid -le $ac_hi; then 3338 ac_lo= ac_hi= 3339 break 3340 fi 3341 ac_mid=`expr 2 '*' $ac_mid` 3342fi 3343rm -f conftest.$ac_objext conftest.$ac_ext 3344 done 3345else 3346 echo "$as_me: failed program was:" >&5 3347sed 's/^/| /' conftest.$ac_ext >&5 3348 3349ac_lo= ac_hi= 3350fi 3351rm -f conftest.$ac_objext conftest.$ac_ext 3352fi 3353rm -f conftest.$ac_objext conftest.$ac_ext 3354# Binary search between lo and hi bounds. 3355while test "x$ac_lo" != "x$ac_hi"; do 3356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3357 cat >conftest.$ac_ext <<_ACEOF 3358#line $LINENO "configure" 3359/* confdefs.h. */ 3360_ACEOF 3361cat confdefs.h >>conftest.$ac_ext 3362cat >>conftest.$ac_ext <<_ACEOF 3363/* end confdefs.h. */ 3364$ac_includes_default 3365int 3366main () 3367{ 3368static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 3369test_array [0] = 0 3370 3371 ; 3372 return 0; 3373} 3374_ACEOF 3375rm -f conftest.$ac_objext 3376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3377 (eval $ac_compile) 2>&5 3378 ac_status=$? 3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3380 (exit $ac_status); } && 3381 { ac_try='test -s conftest.$ac_objext' 3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3383 (eval $ac_try) 2>&5 3384 ac_status=$? 3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3386 (exit $ac_status); }; }; then 3387 ac_hi=$ac_mid 3388else 3389 echo "$as_me: failed program was:" >&5 3390sed 's/^/| /' conftest.$ac_ext >&5 3391 3392ac_lo=`expr '(' $ac_mid ')' + 1` 3393fi 3394rm -f conftest.$ac_objext conftest.$ac_ext 3395done 3396case $ac_lo in 3397?*) ac_cv_sizeof_int=$ac_lo;; 3398'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 3399See \`config.log' for more details." >&5 3400echo "$as_me: error: cannot compute sizeof (int), 77 3401See \`config.log' for more details." >&2;} 3402 { (exit 1); exit 1; }; } ;; 3403esac 3404else 3405 if test "$cross_compiling" = yes; then 3406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3407See \`config.log' for more details." >&5 3408echo "$as_me: error: cannot run test program while cross compiling 3409See \`config.log' for more details." >&2;} 3410 { (exit 1); exit 1; }; } 3411else 3412 cat >conftest.$ac_ext <<_ACEOF 3413#line $LINENO "configure" 3414/* confdefs.h. */ 3415_ACEOF 3416cat confdefs.h >>conftest.$ac_ext 3417cat >>conftest.$ac_ext <<_ACEOF 3418/* end confdefs.h. */ 3419$ac_includes_default 3420long longval () { return (long) (sizeof (int)); } 3421unsigned long ulongval () { return (long) (sizeof (int)); } 3422#include <stdio.h> 3423#include <stdlib.h> 3424int 3425main () 3426{ 3427 3428 FILE *f = fopen ("conftest.val", "w"); 3429 if (! f) 3430 exit (1); 3431 if (((long) (sizeof (int))) < 0) 3432 { 3433 long i = longval (); 3434 if (i != ((long) (sizeof (int)))) 3435 exit (1); 3436 fprintf (f, "%ld\n", i); 3437 } 3438 else 3439 { 3440 unsigned long i = ulongval (); 3441 if (i != ((long) (sizeof (int)))) 3442 exit (1); 3443 fprintf (f, "%lu\n", i); 3444 } 3445 exit (ferror (f) || fclose (f) != 0); 3446 3447 ; 3448 return 0; 3449} 3450_ACEOF 3451rm -f conftest$ac_exeext 3452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3453 (eval $ac_link) 2>&5 3454 ac_status=$? 3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3458 (eval $ac_try) 2>&5 3459 ac_status=$? 3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3461 (exit $ac_status); }; }; then 3462 ac_cv_sizeof_int=`cat conftest.val` 3463else 3464 echo "$as_me: program exited with status $ac_status" >&5 3465echo "$as_me: failed program was:" >&5 3466sed 's/^/| /' conftest.$ac_ext >&5 3467 3468( exit $ac_status ) 3469{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 3470See \`config.log' for more details." >&5 3471echo "$as_me: error: cannot compute sizeof (int), 77 3472See \`config.log' for more details." >&2;} 3473 { (exit 1); exit 1; }; } 3474fi 3475rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3476fi 3477fi 3478rm -f conftest.val 3479else 3480 ac_cv_sizeof_int=0 3481fi 3482fi 3483echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 3484echo "${ECHO_T}$ac_cv_sizeof_int" >&6 3485cat >>confdefs.h <<_ACEOF 3486#define SIZEOF_INT $ac_cv_sizeof_int 3487_ACEOF 3488 3489 3490 3491if test $ac_cv_sizeof_int -lt 4; then 3492 { { echo "$as_me:$LINENO: error: only 32 bit or better CPUs are supported" >&5 3493echo "$as_me: error: only 32 bit or better CPUs are supported" >&2;} 3494 { (exit 1); exit 1; }; } 3495fi 3496 3497echo "$as_me:$LINENO: checking for working bool" >&5 3498echo $ECHO_N "checking for working bool... $ECHO_C" >&6 3499if test "${ac_cv_cxx_bool+set}" = set; then 3500 echo $ECHO_N "(cached) $ECHO_C" >&6 3501else 3502 cat >conftest.$ac_ext <<_ACEOF 3503#line $LINENO "configure" 3504/* confdefs.h. */ 3505_ACEOF 3506cat confdefs.h >>conftest.$ac_ext 3507cat >>conftest.$ac_ext <<_ACEOF 3508/* end confdefs.h. */ 3509 3510int 3511main () 3512{ 3513 3514bool flag; 3515 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520rm -f conftest.$ac_objext 3521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3522 (eval $ac_compile) 2>&5 3523 ac_status=$? 3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); } && 3526 { ac_try='test -s conftest.$ac_objext' 3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3528 (eval $ac_try) 2>&5 3529 ac_status=$? 3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); }; }; then 3532 ac_cv_cxx_bool=yes 3533else 3534 echo "$as_me: failed program was:" >&5 3535sed 's/^/| /' conftest.$ac_ext >&5 3536 3537ac_cv_cxx_bool=no 3538fi 3539rm -f conftest.$ac_objext conftest.$ac_ext 3540fi 3541echo "$as_me:$LINENO: result: $ac_cv_cxx_bool" >&5 3542echo "${ECHO_T}$ac_cv_cxx_bool" >&6 3543 3544if test $ac_cv_cxx_bool = no; then 3545 RESID_HAVE_BOOL=0 3546else 3547 RESID_HAVE_BOOL=1 3548fi 3549 3550 3551 3552 3553# Check whether --enable-shared or --disable-shared was given. 3554if test "${enable_shared+set}" = set; then 3555 enableval="$enable_shared" 3556 p=${PACKAGE-default} 3557 case $enableval in 3558 yes) enable_shared=yes ;; 3559 no) enable_shared=no ;; 3560 *) 3561 enable_shared=no 3562 # Look at the argument we got. We use all the common list separators. 3563 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3564 for pkg in $enableval; do 3565 IFS="$lt_save_ifs" 3566 if test "X$pkg" = "X$p"; then 3567 enable_shared=yes 3568 fi 3569 done 3570 IFS="$lt_save_ifs" 3571 ;; 3572 esac 3573else 3574 enable_shared=no 3575fi; 3576 3577 3578# Check whether --enable-static or --disable-static was given. 3579if test "${enable_static+set}" = set; then 3580 enableval="$enable_static" 3581 p=${PACKAGE-default} 3582 case $enableval in 3583 yes) enable_static=yes ;; 3584 no) enable_static=no ;; 3585 *) 3586 enable_static=no 3587 # Look at the argument we got. We use all the common list separators. 3588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3589 for pkg in $enableval; do 3590 IFS="$lt_save_ifs" 3591 if test "X$pkg" = "X$p"; then 3592 enable_static=yes 3593 fi 3594 done 3595 IFS="$lt_save_ifs" 3596 ;; 3597 esac 3598else 3599 enable_static=yes 3600fi; 3601 3602# Check whether --enable-fast-install or --disable-fast-install was given. 3603if test "${enable_fast_install+set}" = set; then 3604 enableval="$enable_fast_install" 3605 p=${PACKAGE-default} 3606 case $enableval in 3607 yes) enable_fast_install=yes ;; 3608 no) enable_fast_install=no ;; 3609 *) 3610 enable_fast_install=no 3611 # Look at the argument we got. We use all the common list separators. 3612 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3613 for pkg in $enableval; do 3614 IFS="$lt_save_ifs" 3615 if test "X$pkg" = "X$p"; then 3616 enable_fast_install=yes 3617 fi 3618 done 3619 IFS="$lt_save_ifs" 3620 ;; 3621 esac 3622else 3623 enable_fast_install=yes 3624fi; 3625 3626# Make sure we can run config.sub. 3627$ac_config_sub sun4 >/dev/null 2>&1 || 3628 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3629echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3630 { (exit 1); exit 1; }; } 3631 3632echo "$as_me:$LINENO: checking build system type" >&5 3633echo $ECHO_N "checking build system type... $ECHO_C" >&6 3634if test "${ac_cv_build+set}" = set; then 3635 echo $ECHO_N "(cached) $ECHO_C" >&6 3636else 3637 ac_cv_build_alias=$build_alias 3638test -z "$ac_cv_build_alias" && 3639 ac_cv_build_alias=`$ac_config_guess` 3640test -z "$ac_cv_build_alias" && 3641 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3642echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3643 { (exit 1); exit 1; }; } 3644ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3646echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3647 { (exit 1); exit 1; }; } 3648 3649fi 3650echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3651echo "${ECHO_T}$ac_cv_build" >&6 3652build=$ac_cv_build 3653build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3654build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3655build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3656 3657 3658echo "$as_me:$LINENO: checking host system type" >&5 3659echo $ECHO_N "checking host system type... $ECHO_C" >&6 3660if test "${ac_cv_host+set}" = set; then 3661 echo $ECHO_N "(cached) $ECHO_C" >&6 3662else 3663 ac_cv_host_alias=$host_alias 3664test -z "$ac_cv_host_alias" && 3665 ac_cv_host_alias=$ac_cv_build_alias 3666ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3667 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3668echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3669 { (exit 1); exit 1; }; } 3670 3671fi 3672echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3673echo "${ECHO_T}$ac_cv_host" >&6 3674host=$ac_cv_host 3675host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3676host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3677host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3678 3679 3680ac_ext=c 3681ac_cpp='$CPP $CPPFLAGS' 3682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3684ac_compiler_gnu=$ac_cv_c_compiler_gnu 3685if test -n "$ac_tool_prefix"; then 3686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3687set dummy ${ac_tool_prefix}gcc; ac_word=$2 3688echo "$as_me:$LINENO: checking for $ac_word" >&5 3689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3690if test "${ac_cv_prog_CC+set}" = set; then 3691 echo $ECHO_N "(cached) $ECHO_C" >&6 3692else 3693 if test -n "$CC"; then 3694 ac_cv_prog_CC="$CC" # Let the user override the test. 3695else 3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697for as_dir in $PATH 3698do 3699 IFS=$as_save_IFS 3700 test -z "$as_dir" && as_dir=. 3701 for ac_exec_ext in '' $ac_executable_extensions; do 3702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3703 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3705 break 2 3706 fi 3707done 3708done 3709 3710fi 3711fi 3712CC=$ac_cv_prog_CC 3713if test -n "$CC"; then 3714 echo "$as_me:$LINENO: result: $CC" >&5 3715echo "${ECHO_T}$CC" >&6 3716else 3717 echo "$as_me:$LINENO: result: no" >&5 3718echo "${ECHO_T}no" >&6 3719fi 3720 3721fi 3722if test -z "$ac_cv_prog_CC"; then 3723 ac_ct_CC=$CC 3724 # Extract the first word of "gcc", so it can be a program name with args. 3725set dummy gcc; ac_word=$2 3726echo "$as_me:$LINENO: checking for $ac_word" >&5 3727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3729 echo $ECHO_N "(cached) $ECHO_C" >&6 3730else 3731 if test -n "$ac_ct_CC"; then 3732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3733else 3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3735for as_dir in $PATH 3736do 3737 IFS=$as_save_IFS 3738 test -z "$as_dir" && as_dir=. 3739 for ac_exec_ext in '' $ac_executable_extensions; do 3740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3741 ac_cv_prog_ac_ct_CC="gcc" 3742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3743 break 2 3744 fi 3745done 3746done 3747 3748fi 3749fi 3750ac_ct_CC=$ac_cv_prog_ac_ct_CC 3751if test -n "$ac_ct_CC"; then 3752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3753echo "${ECHO_T}$ac_ct_CC" >&6 3754else 3755 echo "$as_me:$LINENO: result: no" >&5 3756echo "${ECHO_T}no" >&6 3757fi 3758 3759 CC=$ac_ct_CC 3760else 3761 CC="$ac_cv_prog_CC" 3762fi 3763 3764if test -z "$CC"; then 3765 if test -n "$ac_tool_prefix"; then 3766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3767set dummy ${ac_tool_prefix}cc; ac_word=$2 3768echo "$as_me:$LINENO: checking for $ac_word" >&5 3769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3770if test "${ac_cv_prog_CC+set}" = set; then 3771 echo $ECHO_N "(cached) $ECHO_C" >&6 3772else 3773 if test -n "$CC"; then 3774 ac_cv_prog_CC="$CC" # Let the user override the test. 3775else 3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777for as_dir in $PATH 3778do 3779 IFS=$as_save_IFS 3780 test -z "$as_dir" && as_dir=. 3781 for ac_exec_ext in '' $ac_executable_extensions; do 3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3783 ac_cv_prog_CC="${ac_tool_prefix}cc" 3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3785 break 2 3786 fi 3787done 3788done 3789 3790fi 3791fi 3792CC=$ac_cv_prog_CC 3793if test -n "$CC"; then 3794 echo "$as_me:$LINENO: result: $CC" >&5 3795echo "${ECHO_T}$CC" >&6 3796else 3797 echo "$as_me:$LINENO: result: no" >&5 3798echo "${ECHO_T}no" >&6 3799fi 3800 3801fi 3802if test -z "$ac_cv_prog_CC"; then 3803 ac_ct_CC=$CC 3804 # Extract the first word of "cc", so it can be a program name with args. 3805set dummy cc; ac_word=$2 3806echo "$as_me:$LINENO: checking for $ac_word" >&5 3807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3809 echo $ECHO_N "(cached) $ECHO_C" >&6 3810else 3811 if test -n "$ac_ct_CC"; then 3812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3813else 3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3815for as_dir in $PATH 3816do 3817 IFS=$as_save_IFS 3818 test -z "$as_dir" && as_dir=. 3819 for ac_exec_ext in '' $ac_executable_extensions; do 3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3821 ac_cv_prog_ac_ct_CC="cc" 3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3823 break 2 3824 fi 3825done 3826done 3827 3828fi 3829fi 3830ac_ct_CC=$ac_cv_prog_ac_ct_CC 3831if test -n "$ac_ct_CC"; then 3832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3833echo "${ECHO_T}$ac_ct_CC" >&6 3834else 3835 echo "$as_me:$LINENO: result: no" >&5 3836echo "${ECHO_T}no" >&6 3837fi 3838 3839 CC=$ac_ct_CC 3840else 3841 CC="$ac_cv_prog_CC" 3842fi 3843 3844fi 3845if test -z "$CC"; then 3846 # Extract the first word of "cc", so it can be a program name with args. 3847set dummy cc; ac_word=$2 3848echo "$as_me:$LINENO: checking for $ac_word" >&5 3849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3850if test "${ac_cv_prog_CC+set}" = set; then 3851 echo $ECHO_N "(cached) $ECHO_C" >&6 3852else 3853 if test -n "$CC"; then 3854 ac_cv_prog_CC="$CC" # Let the user override the test. 3855else 3856 ac_prog_rejected=no 3857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3858for as_dir in $PATH 3859do 3860 IFS=$as_save_IFS 3861 test -z "$as_dir" && as_dir=. 3862 for ac_exec_ext in '' $ac_executable_extensions; do 3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3865 ac_prog_rejected=yes 3866 continue 3867 fi 3868 ac_cv_prog_CC="cc" 3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3870 break 2 3871 fi 3872done 3873done 3874 3875if test $ac_prog_rejected = yes; then 3876 # We found a bogon in the path, so make sure we never use it. 3877 set dummy $ac_cv_prog_CC 3878 shift 3879 if test $# != 0; then 3880 # We chose a different compiler from the bogus one. 3881 # However, it has the same basename, so the bogon will be chosen 3882 # first if we set CC to just the basename; use the full file name. 3883 shift 3884 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3885 fi 3886fi 3887fi 3888fi 3889CC=$ac_cv_prog_CC 3890if test -n "$CC"; then 3891 echo "$as_me:$LINENO: result: $CC" >&5 3892echo "${ECHO_T}$CC" >&6 3893else 3894 echo "$as_me:$LINENO: result: no" >&5 3895echo "${ECHO_T}no" >&6 3896fi 3897 3898fi 3899if test -z "$CC"; then 3900 if test -n "$ac_tool_prefix"; then 3901 for ac_prog in cl 3902 do 3903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3904set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3905echo "$as_me:$LINENO: checking for $ac_word" >&5 3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3907if test "${ac_cv_prog_CC+set}" = set; then 3908 echo $ECHO_N "(cached) $ECHO_C" >&6 3909else 3910 if test -n "$CC"; then 3911 ac_cv_prog_CC="$CC" # Let the user override the test. 3912else 3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3914for as_dir in $PATH 3915do 3916 IFS=$as_save_IFS 3917 test -z "$as_dir" && as_dir=. 3918 for ac_exec_ext in '' $ac_executable_extensions; do 3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3920 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3922 break 2 3923 fi 3924done 3925done 3926 3927fi 3928fi 3929CC=$ac_cv_prog_CC 3930if test -n "$CC"; then 3931 echo "$as_me:$LINENO: result: $CC" >&5 3932echo "${ECHO_T}$CC" >&6 3933else 3934 echo "$as_me:$LINENO: result: no" >&5 3935echo "${ECHO_T}no" >&6 3936fi 3937 3938 test -n "$CC" && break 3939 done 3940fi 3941if test -z "$CC"; then 3942 ac_ct_CC=$CC 3943 for ac_prog in cl 3944do 3945 # Extract the first word of "$ac_prog", so it can be a program name with args. 3946set dummy $ac_prog; ac_word=$2 3947echo "$as_me:$LINENO: checking for $ac_word" >&5 3948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3949if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3950 echo $ECHO_N "(cached) $ECHO_C" >&6 3951else 3952 if test -n "$ac_ct_CC"; then 3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3954else 3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3956for as_dir in $PATH 3957do 3958 IFS=$as_save_IFS 3959 test -z "$as_dir" && as_dir=. 3960 for ac_exec_ext in '' $ac_executable_extensions; do 3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3962 ac_cv_prog_ac_ct_CC="$ac_prog" 3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3964 break 2 3965 fi 3966done 3967done 3968 3969fi 3970fi 3971ac_ct_CC=$ac_cv_prog_ac_ct_CC 3972if test -n "$ac_ct_CC"; then 3973 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3974echo "${ECHO_T}$ac_ct_CC" >&6 3975else 3976 echo "$as_me:$LINENO: result: no" >&5 3977echo "${ECHO_T}no" >&6 3978fi 3979 3980 test -n "$ac_ct_CC" && break 3981done 3982 3983 CC=$ac_ct_CC 3984fi 3985 3986fi 3987 3988 3989test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3990See \`config.log' for more details." >&5 3991echo "$as_me: error: no acceptable C compiler found in \$PATH 3992See \`config.log' for more details." >&2;} 3993 { (exit 1); exit 1; }; } 3994 3995# Provide some information about the compiler. 3996echo "$as_me:$LINENO:" \ 3997 "checking for C compiler version" >&5 3998ac_compiler=`set X $ac_compile; echo $2` 3999{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4000 (eval $ac_compiler --version </dev/null >&5) 2>&5 4001 ac_status=$? 4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4003 (exit $ac_status); } 4004{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4005 (eval $ac_compiler -v </dev/null >&5) 2>&5 4006 ac_status=$? 4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4008 (exit $ac_status); } 4009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4010 (eval $ac_compiler -V </dev/null >&5) 2>&5 4011 ac_status=$? 4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4013 (exit $ac_status); } 4014 4015echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4016echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 4017if test "${ac_cv_c_compiler_gnu+set}" = set; then 4018 echo $ECHO_N "(cached) $ECHO_C" >&6 4019else 4020 cat >conftest.$ac_ext <<_ACEOF 4021#line $LINENO "configure" 4022/* confdefs.h. */ 4023_ACEOF 4024cat confdefs.h >>conftest.$ac_ext 4025cat >>conftest.$ac_ext <<_ACEOF 4026/* end confdefs.h. */ 4027 4028int 4029main () 4030{ 4031#ifndef __GNUC__ 4032 choke me 4033#endif 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039rm -f conftest.$ac_objext 4040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4041 (eval $ac_compile) 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.$ac_objext conftest.$ac_ext 4059ac_cv_c_compiler_gnu=$ac_compiler_gnu 4060 4061fi 4062echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4063echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 4064GCC=`test $ac_compiler_gnu = yes && echo yes` 4065ac_test_CFLAGS=${CFLAGS+set} 4066ac_save_CFLAGS=$CFLAGS 4067CFLAGS="-g" 4068echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4069echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 4070if test "${ac_cv_prog_cc_g+set}" = set; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072else 4073 cat >conftest.$ac_ext <<_ACEOF 4074#line $LINENO "configure" 4075/* confdefs.h. */ 4076_ACEOF 4077cat confdefs.h >>conftest.$ac_ext 4078cat >>conftest.$ac_ext <<_ACEOF 4079/* end confdefs.h. */ 4080 4081int 4082main () 4083{ 4084 4085 ; 4086 return 0; 4087} 4088_ACEOF 4089rm -f conftest.$ac_objext 4090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4091 (eval $ac_compile) 2>&5 4092 ac_status=$? 4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4094 (exit $ac_status); } && 4095 { ac_try='test -s conftest.$ac_objext' 4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4097 (eval $ac_try) 2>&5 4098 ac_status=$? 4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4100 (exit $ac_status); }; }; then 4101 ac_cv_prog_cc_g=yes 4102else 4103 echo "$as_me: failed program was:" >&5 4104sed 's/^/| /' conftest.$ac_ext >&5 4105 4106ac_cv_prog_cc_g=no 4107fi 4108rm -f conftest.$ac_objext conftest.$ac_ext 4109fi 4110echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4111echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 4112if test "$ac_test_CFLAGS" = set; then 4113 CFLAGS=$ac_save_CFLAGS 4114elif test $ac_cv_prog_cc_g = yes; then 4115 if test "$GCC" = yes; then 4116 CFLAGS="-g -O2" 4117 else 4118 CFLAGS="-g" 4119 fi 4120else 4121 if test "$GCC" = yes; then 4122 CFLAGS="-O2" 4123 else 4124 CFLAGS= 4125 fi 4126fi 4127echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 4128echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 4129if test "${ac_cv_prog_cc_stdc+set}" = set; then 4130 echo $ECHO_N "(cached) $ECHO_C" >&6 4131else 4132 ac_cv_prog_cc_stdc=no 4133ac_save_CC=$CC 4134cat >conftest.$ac_ext <<_ACEOF 4135#line $LINENO "configure" 4136/* confdefs.h. */ 4137_ACEOF 4138cat confdefs.h >>conftest.$ac_ext 4139cat >>conftest.$ac_ext <<_ACEOF 4140/* end confdefs.h. */ 4141#include <stdarg.h> 4142#include <stdio.h> 4143#include <sys/types.h> 4144#include <sys/stat.h> 4145/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4146struct buf { int x; }; 4147FILE * (*rcsopen) (struct buf *, struct stat *, int); 4148static char *e (p, i) 4149 char **p; 4150 int i; 4151{ 4152 return p[i]; 4153} 4154static char *f (char * (*g) (char **, int), char **p, ...) 4155{ 4156 char *s; 4157 va_list v; 4158 va_start (v,p); 4159 s = g (p, va_arg (v,int)); 4160 va_end (v); 4161 return s; 4162} 4163int test (int i, double x); 4164struct s1 {int (*f) (int a);}; 4165struct s2 {int (*f) (double a);}; 4166int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4167int argc; 4168char **argv; 4169int 4170main () 4171{ 4172return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177# Don't try gcc -ansi; that turns off useful extensions and 4178# breaks some systems' header files. 4179# AIX -qlanglvl=ansi 4180# Ultrix and OSF/1 -std1 4181# HP-UX 10.20 and later -Ae 4182# HP-UX older versions -Aa -D_HPUX_SOURCE 4183# SVR4 -Xc -D__EXTENSIONS__ 4184for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4185do 4186 CC="$ac_save_CC $ac_arg" 4187 rm -f conftest.$ac_objext 4188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4189 (eval $ac_compile) 2>&5 4190 ac_status=$? 4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4192 (exit $ac_status); } && 4193 { ac_try='test -s conftest.$ac_objext' 4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4195 (eval $ac_try) 2>&5 4196 ac_status=$? 4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4198 (exit $ac_status); }; }; then 4199 ac_cv_prog_cc_stdc=$ac_arg 4200break 4201else 4202 echo "$as_me: failed program was:" >&5 4203sed 's/^/| /' conftest.$ac_ext >&5 4204 4205fi 4206rm -f conftest.$ac_objext 4207done 4208rm -f conftest.$ac_ext conftest.$ac_objext 4209CC=$ac_save_CC 4210 4211fi 4212 4213case "x$ac_cv_prog_cc_stdc" in 4214 x|xno) 4215 echo "$as_me:$LINENO: result: none needed" >&5 4216echo "${ECHO_T}none needed" >&6 ;; 4217 *) 4218 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 4219echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 4220 CC="$CC $ac_cv_prog_cc_stdc" ;; 4221esac 4222 4223# Some people use a C++ compiler to compile C. Since we use `exit', 4224# in C++ we need to declare it. In case someone uses the same compiler 4225# for both compiling C and C++ we need to have the C++ compiler decide 4226# the declaration of exit, since it's the most demanding environment. 4227cat >conftest.$ac_ext <<_ACEOF 4228#ifndef __cplusplus 4229 choke me 4230#endif 4231_ACEOF 4232rm -f conftest.$ac_objext 4233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4234 (eval $ac_compile) 2>&5 4235 ac_status=$? 4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4237 (exit $ac_status); } && 4238 { ac_try='test -s conftest.$ac_objext' 4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4240 (eval $ac_try) 2>&5 4241 ac_status=$? 4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4243 (exit $ac_status); }; }; then 4244 for ac_declaration in \ 4245 ''\ 4246 '#include <stdlib.h>' \ 4247 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4248 'extern "C" void std::exit (int); using std::exit;' \ 4249 'extern "C" void exit (int) throw ();' \ 4250 'extern "C" void exit (int);' \ 4251 'void exit (int);' 4252do 4253 cat >conftest.$ac_ext <<_ACEOF 4254#line $LINENO "configure" 4255/* confdefs.h. */ 4256_ACEOF 4257cat confdefs.h >>conftest.$ac_ext 4258cat >>conftest.$ac_ext <<_ACEOF 4259/* end confdefs.h. */ 4260#include <stdlib.h> 4261$ac_declaration 4262int 4263main () 4264{ 4265exit (42); 4266 ; 4267 return 0; 4268} 4269_ACEOF 4270rm -f conftest.$ac_objext 4271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4272 (eval $ac_compile) 2>&5 4273 ac_status=$? 4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4275 (exit $ac_status); } && 4276 { ac_try='test -s conftest.$ac_objext' 4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4278 (eval $ac_try) 2>&5 4279 ac_status=$? 4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 (exit $ac_status); }; }; then 4282 : 4283else 4284 echo "$as_me: failed program was:" >&5 4285sed 's/^/| /' conftest.$ac_ext >&5 4286 4287continue 4288fi 4289rm -f conftest.$ac_objext conftest.$ac_ext 4290 cat >conftest.$ac_ext <<_ACEOF 4291#line $LINENO "configure" 4292/* confdefs.h. */ 4293_ACEOF 4294cat confdefs.h >>conftest.$ac_ext 4295cat >>conftest.$ac_ext <<_ACEOF 4296/* end confdefs.h. */ 4297$ac_declaration 4298int 4299main () 4300{ 4301exit (42); 4302 ; 4303 return 0; 4304} 4305_ACEOF 4306rm -f conftest.$ac_objext 4307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4308 (eval $ac_compile) 2>&5 4309 ac_status=$? 4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4311 (exit $ac_status); } && 4312 { ac_try='test -s conftest.$ac_objext' 4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4314 (eval $ac_try) 2>&5 4315 ac_status=$? 4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4317 (exit $ac_status); }; }; then 4318 break 4319else 4320 echo "$as_me: failed program was:" >&5 4321sed 's/^/| /' conftest.$ac_ext >&5 4322 4323fi 4324rm -f conftest.$ac_objext conftest.$ac_ext 4325done 4326rm -f conftest* 4327if test -n "$ac_declaration"; then 4328 echo '#ifdef __cplusplus' >>confdefs.h 4329 echo $ac_declaration >>confdefs.h 4330 echo '#endif' >>confdefs.h 4331fi 4332 4333else 4334 echo "$as_me: failed program was:" >&5 4335sed 's/^/| /' conftest.$ac_ext >&5 4336 4337fi 4338rm -f conftest.$ac_objext conftest.$ac_ext 4339ac_ext=cc 4340ac_cpp='$CXXCPP $CPPFLAGS' 4341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4344 4345depcc="$CC" am_compiler_list= 4346 4347echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4348echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4349if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4350 echo $ECHO_N "(cached) $ECHO_C" >&6 4351else 4352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4353 # We make a subdir and do the tests there. Otherwise we can end up 4354 # making bogus files that we don't know about and never remove. For 4355 # instance it was reported that on HP-UX the gcc test will end up 4356 # making a dummy file named `D' -- because `-MD' means `put the output 4357 # in D'. 4358 mkdir conftest.dir 4359 # Copy depcomp to subdir because otherwise we won't find it if we're 4360 # using a relative directory. 4361 cp "$am_depcomp" conftest.dir 4362 cd conftest.dir 4363 4364 am_cv_CC_dependencies_compiler_type=none 4365 if test "$am_compiler_list" = ""; then 4366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4367 fi 4368 for depmode in $am_compiler_list; do 4369 # We need to recreate these files for each test, as the compiler may 4370 # overwrite some of them when testing with obscure command lines. 4371 # This happens at least with the AIX C compiler. 4372 echo '#include "conftest.h"' > conftest.c 4373 echo 'int i;' > conftest.h 4374 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 4375 4376 case $depmode in 4377 nosideeffect) 4378 # after this tag, mechanisms are not by side-effect, so they'll 4379 # only be used when explicitly requested 4380 if test "x$enable_dependency_tracking" = xyes; then 4381 continue 4382 else 4383 break 4384 fi 4385 ;; 4386 none) break ;; 4387 esac 4388 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4389 # mode. It turns out that the SunPro C++ compiler does not properly 4390 # handle `-M -o', and we need to detect this. 4391 if depmode=$depmode \ 4392 source=conftest.c object=conftest.o \ 4393 depfile=conftest.Po tmpdepfile=conftest.TPo \ 4394 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \ 4395 >/dev/null 2>conftest.err && 4396 grep conftest.h conftest.Po > /dev/null 2>&1 && 4397 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4398 # icc doesn't choke on unknown options, it will just issue warnings 4399 # (even with -Werror). So we grep stderr for any message 4400 # that says an option was ignored. 4401 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 4402 am_cv_CC_dependencies_compiler_type=$depmode 4403 break 4404 fi 4405 fi 4406 done 4407 4408 cd .. 4409 rm -rf conftest.dir 4410else 4411 am_cv_CC_dependencies_compiler_type=none 4412fi 4413 4414fi 4415echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4416echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 4417CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4418 4419 4420 4421if 4422 test "x$enable_dependency_tracking" != xno \ 4423 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4424 am__fastdepCC_TRUE= 4425 am__fastdepCC_FALSE='#' 4426else 4427 am__fastdepCC_TRUE='#' 4428 am__fastdepCC_FALSE= 4429fi 4430 4431 4432echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4433echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4434if test "${lt_cv_path_SED+set}" = set; then 4435 echo $ECHO_N "(cached) $ECHO_C" >&6 4436else 4437 # Loop through the user's path and test for sed and gsed. 4438# Then use that list of sed's as ones to test for truncation. 4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4440for as_dir in $PATH 4441do 4442 IFS=$as_save_IFS 4443 test -z "$as_dir" && as_dir=. 4444 for lt_ac_prog in sed gsed; do 4445 for ac_exec_ext in '' $ac_executable_extensions; do 4446 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4447 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4448 fi 4449 done 4450 done 4451done 4452lt_ac_max=0 4453lt_ac_count=0 4454# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4455# along with /bin/sed that truncates output. 4456for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4457 test ! -f $lt_ac_sed && break 4458 cat /dev/null > conftest.in 4459 lt_ac_count=0 4460 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4461 # Check for GNU sed and select it if it is found. 4462 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4463 lt_cv_path_SED=$lt_ac_sed 4464 break 4465 fi 4466 while true; do 4467 cat conftest.in conftest.in >conftest.tmp 4468 mv conftest.tmp conftest.in 4469 cp conftest.in conftest.nl 4470 echo >>conftest.nl 4471 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4472 cmp -s conftest.out conftest.nl || break 4473 # 10000 chars as input seems more than enough 4474 test $lt_ac_count -gt 10 && break 4475 lt_ac_count=`expr $lt_ac_count + 1` 4476 if test $lt_ac_count -gt $lt_ac_max; then 4477 lt_ac_max=$lt_ac_count 4478 lt_cv_path_SED=$lt_ac_sed 4479 fi 4480 done 4481done 4482SED=$lt_cv_path_SED 4483 4484fi 4485 4486echo "$as_me:$LINENO: result: $SED" >&5 4487echo "${ECHO_T}$SED" >&6 4488 4489 4490# Check whether --with-gnu-ld or --without-gnu-ld was given. 4491if test "${with_gnu_ld+set}" = set; then 4492 withval="$with_gnu_ld" 4493 test "$withval" = no || with_gnu_ld=yes 4494else 4495 with_gnu_ld=no 4496fi; 4497ac_prog=ld 4498if test "$GCC" = yes; then 4499 # Check if gcc -print-prog-name=ld gives a path. 4500 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4501echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4502 case $host in 4503 *-*-mingw*) 4504 # gcc leaves a trailing carriage return which upsets mingw 4505 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4506 *) 4507 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4508 esac 4509 case $ac_prog in 4510 # Accept absolute paths. 4511 [\\/]* | ?:[\\/]*) 4512 re_direlt='/[^/][^/]*/\.\./' 4513 # Canonicalize the path of ld 4514 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4515 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4516 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4517 done 4518 test -z "$LD" && LD="$ac_prog" 4519 ;; 4520 "") 4521 # If it fails, then pretend we aren't using GCC. 4522 ac_prog=ld 4523 ;; 4524 *) 4525 # If it is relative, then search for the first ld in PATH. 4526 with_gnu_ld=unknown 4527 ;; 4528 esac 4529elif test "$with_gnu_ld" = yes; then 4530 echo "$as_me:$LINENO: checking for GNU ld" >&5 4531echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4532else 4533 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4534echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4535fi 4536if test "${lt_cv_path_LD+set}" = set; then 4537 echo $ECHO_N "(cached) $ECHO_C" >&6 4538else 4539 if test -z "$LD"; then 4540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4541 for ac_dir in $PATH; do 4542 IFS="$lt_save_ifs" 4543 test -z "$ac_dir" && ac_dir=. 4544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4545 lt_cv_path_LD="$ac_dir/$ac_prog" 4546 # Check to see if the program is GNU ld. I'd rather use --version, 4547 # but apparently some GNU ld's only accept -v. 4548 # Break only if it was the GNU/non-GNU ld that we prefer. 4549 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4550 *GNU* | *'with BFD'*) 4551 test "$with_gnu_ld" != no && break 4552 ;; 4553 *) 4554 test "$with_gnu_ld" != yes && break 4555 ;; 4556 esac 4557 fi 4558 done 4559 IFS="$lt_save_ifs" 4560else 4561 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4562fi 4563fi 4564 4565LD="$lt_cv_path_LD" 4566if test -n "$LD"; then 4567 echo "$as_me:$LINENO: result: $LD" >&5 4568echo "${ECHO_T}$LD" >&6 4569else 4570 echo "$as_me:$LINENO: result: no" >&5 4571echo "${ECHO_T}no" >&6 4572fi 4573test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4574echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4575 { (exit 1); exit 1; }; } 4576echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4577echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4578if test "${lt_cv_prog_gnu_ld+set}" = set; then 4579 echo $ECHO_N "(cached) $ECHO_C" >&6 4580else 4581 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4582case `"$LD" -v 2>&1 </dev/null` in 4583*GNU* | *'with BFD'*) 4584 lt_cv_prog_gnu_ld=yes 4585 ;; 4586*) 4587 lt_cv_prog_gnu_ld=no 4588 ;; 4589esac 4590fi 4591echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4592echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4593with_gnu_ld=$lt_cv_prog_gnu_ld 4594 4595 4596echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4597echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4598if test "${lt_cv_ld_reload_flag+set}" = set; then 4599 echo $ECHO_N "(cached) $ECHO_C" >&6 4600else 4601 lt_cv_ld_reload_flag='-r' 4602fi 4603echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4604echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4605reload_flag=$lt_cv_ld_reload_flag 4606case $reload_flag in 4607"" | " "*) ;; 4608*) reload_flag=" $reload_flag" ;; 4609esac 4610reload_cmds='$LD$reload_flag -o $output$reload_objs' 4611 4612echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4613echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4614if test "${lt_cv_path_NM+set}" = set; then 4615 echo $ECHO_N "(cached) $ECHO_C" >&6 4616else 4617 if test -n "$NM"; then 4618 # Let the user override the test. 4619 lt_cv_path_NM="$NM" 4620else 4621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4622 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4623 IFS="$lt_save_ifs" 4624 test -z "$ac_dir" && ac_dir=. 4625 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 4626 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4627 # Check to see if the nm accepts a BSD-compat flag. 4628 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4629 # nm: unknown option "B" ignored 4630 # Tru64's nm complains that /dev/null is an invalid object file 4631 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4632 */dev/null* | *'Invalid file or object type'*) 4633 lt_cv_path_NM="$tmp_nm -B" 4634 break 4635 ;; 4636 *) 4637 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4638 */dev/null*) 4639 lt_cv_path_NM="$tmp_nm -p" 4640 break 4641 ;; 4642 *) 4643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4644 continue # so that we can try to find one that supports BSD flags 4645 ;; 4646 esac 4647 esac 4648 fi 4649 done 4650 IFS="$lt_save_ifs" 4651 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4652fi 4653fi 4654echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4655echo "${ECHO_T}$lt_cv_path_NM" >&6 4656NM="$lt_cv_path_NM" 4657 4658echo "$as_me:$LINENO: checking whether ln -s works" >&5 4659echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4660LN_S=$as_ln_s 4661if test "$LN_S" = "ln -s"; then 4662 echo "$as_me:$LINENO: result: yes" >&5 4663echo "${ECHO_T}yes" >&6 4664else 4665 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4666echo "${ECHO_T}no, using $LN_S" >&6 4667fi 4668 4669echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4670echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4671if test "${lt_cv_deplibs_check_method+set}" = set; then 4672 echo $ECHO_N "(cached) $ECHO_C" >&6 4673else 4674 lt_cv_file_magic_cmd='$MAGIC_CMD' 4675lt_cv_file_magic_test_file= 4676lt_cv_deplibs_check_method='unknown' 4677# Need to set the preceding variable on all platforms that support 4678# interlibrary dependencies. 4679# 'none' -- dependencies not supported. 4680# `unknown' -- same as none, but documents that we really don't know. 4681# 'pass_all' -- all dependencies passed with no checks. 4682# 'test_compile' -- check by making test program. 4683# 'file_magic [[regex]]' -- check by looking for files in library path 4684# which responds to the $file_magic_cmd with a given extended regex. 4685# If you have `file' or equivalent on your system and you're not sure 4686# whether `pass_all' will *always* work, you probably want this one. 4687 4688case $host_os in 4689aix4* | aix5*) 4690 lt_cv_deplibs_check_method=pass_all 4691 ;; 4692 4693beos*) 4694 lt_cv_deplibs_check_method=pass_all 4695 ;; 4696 4697bsdi4*) 4698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4699 lt_cv_file_magic_cmd='/usr/bin/file -L' 4700 lt_cv_file_magic_test_file=/shlib/libc.so 4701 ;; 4702 4703cygwin* | mingw* | pw32*) 4704 # win32_libid is a shell function defined in ltmain.sh 4705 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4706 lt_cv_file_magic_cmd='win32_libid' 4707 ;; 4708 4709darwin* | rhapsody*) 4710 # this will be overwritten by pass_all, but leave it in just in case 4711 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 4712 lt_cv_file_magic_cmd='/usr/bin/file -L' 4713 case "$host_os" in 4714 rhapsody* | darwin1.[012]) 4715 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 4716 ;; 4717 *) # Darwin 1.3 on 4718 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 4719 ;; 4720 esac 4721 lt_cv_deplibs_check_method=pass_all 4722 ;; 4723 4724freebsd*) 4725 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4726 case $host_cpu in 4727 i*86 ) 4728 # Not sure whether the presence of OpenBSD here was a mistake. 4729 # Let's accept both of them until this is cleared up. 4730 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4731 lt_cv_file_magic_cmd=/usr/bin/file 4732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4733 ;; 4734 esac 4735 else 4736 lt_cv_deplibs_check_method=pass_all 4737 fi 4738 ;; 4739 4740gnu*) 4741 lt_cv_deplibs_check_method=pass_all 4742 ;; 4743 4744hpux10.20* | hpux11*) 4745 lt_cv_file_magic_cmd=/usr/bin/file 4746 case "$host_cpu" in 4747 ia64*) 4748 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4749 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4750 ;; 4751 hppa*64*) 4752 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]' 4753 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4754 ;; 4755 *) 4756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4757 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4758 ;; 4759 esac 4760 ;; 4761 4762irix5* | irix6* | nonstopux*) 4763 case $host_os in 4764 irix5* | nonstopux*) 4765 # this will be overridden with pass_all, but let us keep it just in case 4766 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 4767 ;; 4768 *) 4769 case $LD in 4770 *-32|*"-32 ") libmagic=32-bit;; 4771 *-n32|*"-n32 ") libmagic=N32;; 4772 *-64|*"-64 ") libmagic=64-bit;; 4773 *) libmagic=never-match;; 4774 esac 4775 # this will be overridden with pass_all, but let us keep it just in case 4776 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 4777 ;; 4778 esac 4779 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 4780 lt_cv_deplibs_check_method=pass_all 4781 ;; 4782 4783# This must be Linux ELF. 4784linux*) 4785 case $host_cpu in 4786 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) 4787 lt_cv_deplibs_check_method=pass_all ;; 4788 *) 4789 # glibc up to 2.1.1 does not perform some relocations on ARM 4790 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 4791 esac 4792 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 4793 ;; 4794 4795netbsd*) 4796 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4798 else 4799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4800 fi 4801 ;; 4802 4803newos6*) 4804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4805 lt_cv_file_magic_cmd=/usr/bin/file 4806 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4807 ;; 4808 4809nto-qnx) 4810 lt_cv_deplibs_check_method=unknown 4811 ;; 4812 4813openbsd*) 4814 lt_cv_file_magic_cmd=/usr/bin/file 4815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 4818 else 4819 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4820 fi 4821 ;; 4822 4823osf3* | osf4* | osf5*) 4824 # this will be overridden with pass_all, but let us keep it just in case 4825 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 4826 lt_cv_file_magic_test_file=/shlib/libc.so 4827 lt_cv_deplibs_check_method=pass_all 4828 ;; 4829 4830sco3.2v5*) 4831 lt_cv_deplibs_check_method=pass_all 4832 ;; 4833 4834solaris*) 4835 lt_cv_deplibs_check_method=pass_all 4836 lt_cv_file_magic_test_file=/lib/libc.so 4837 ;; 4838 4839sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4840 case $host_vendor in 4841 motorola) 4842 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]' 4843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4844 ;; 4845 ncr) 4846 lt_cv_deplibs_check_method=pass_all 4847 ;; 4848 sequent) 4849 lt_cv_file_magic_cmd='/bin/file' 4850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4851 ;; 4852 sni) 4853 lt_cv_file_magic_cmd='/bin/file' 4854 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4855 lt_cv_file_magic_test_file=/lib/libc.so 4856 ;; 4857 siemens) 4858 lt_cv_deplibs_check_method=pass_all 4859 ;; 4860 esac 4861 ;; 4862 4863sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4864 lt_cv_deplibs_check_method=pass_all 4865 ;; 4866esac 4867 4868fi 4869echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4870echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4871file_magic_cmd=$lt_cv_file_magic_cmd 4872deplibs_check_method=$lt_cv_deplibs_check_method 4873test -z "$deplibs_check_method" && deplibs_check_method=unknown 4874 4875 4876 4877 4878# If no C compiler was specified, use CC. 4879LTCC=${LTCC-"$CC"} 4880 4881# Allow CC to be a program name with arguments. 4882compiler=$CC 4883 4884 4885# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4886if test "${enable_libtool_lock+set}" = set; then 4887 enableval="$enable_libtool_lock" 4888 4889fi; 4890test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4891 4892# Some flags need to be propagated to the compiler or linker for good 4893# libtool support. 4894case $host in 4895ia64-*-hpux*) 4896 # Find out which ABI we are using. 4897 echo 'int i;' > conftest.$ac_ext 4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4899 (eval $ac_compile) 2>&5 4900 ac_status=$? 4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4902 (exit $ac_status); }; then 4903 case `/usr/bin/file conftest.$ac_objext` in 4904 *ELF-32*) 4905 HPUX_IA64_MODE="32" 4906 ;; 4907 *ELF-64*) 4908 HPUX_IA64_MODE="64" 4909 ;; 4910 esac 4911 fi 4912 rm -rf conftest* 4913 ;; 4914*-*-irix6*) 4915 # Find out which ABI we are using. 4916 echo '#line 4916 "configure"' > conftest.$ac_ext 4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4918 (eval $ac_compile) 2>&5 4919 ac_status=$? 4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4921 (exit $ac_status); }; then 4922 if test "$lt_cv_prog_gnu_ld" = yes; then 4923 case `/usr/bin/file conftest.$ac_objext` in 4924 *32-bit*) 4925 LD="${LD-ld} -melf32bsmip" 4926 ;; 4927 *N32*) 4928 LD="${LD-ld} -melf32bmipn32" 4929 ;; 4930 *64-bit*) 4931 LD="${LD-ld} -melf64bmip" 4932 ;; 4933 esac 4934 else 4935 case `/usr/bin/file conftest.$ac_objext` in 4936 *32-bit*) 4937 LD="${LD-ld} -32" 4938 ;; 4939 *N32*) 4940 LD="${LD-ld} -n32" 4941 ;; 4942 *64-bit*) 4943 LD="${LD-ld} -64" 4944 ;; 4945 esac 4946 fi 4947 fi 4948 rm -rf conftest* 4949 ;; 4950 4951x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4952 # Find out which ABI we are using. 4953 echo 'int i;' > conftest.$ac_ext 4954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4955 (eval $ac_compile) 2>&5 4956 ac_status=$? 4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4958 (exit $ac_status); }; then 4959 case "`/usr/bin/file conftest.o`" in 4960 *32-bit*) 4961 case $host in 4962 x86_64-*linux*) 4963 LD="${LD-ld} -m elf_i386" 4964 ;; 4965 ppc64-*linux*) 4966 LD="${LD-ld} -m elf32ppclinux" 4967 ;; 4968 s390x-*linux*) 4969 LD="${LD-ld} -m elf_s390" 4970 ;; 4971 sparc64-*linux*) 4972 LD="${LD-ld} -m elf32_sparc" 4973 ;; 4974 esac 4975 ;; 4976 *64-bit*) 4977 case $host in 4978 x86_64-*linux*) 4979 LD="${LD-ld} -m elf_x86_64" 4980 ;; 4981 ppc*-*linux*|powerpc*-*linux*) 4982 LD="${LD-ld} -m elf64ppc" 4983 ;; 4984 s390*-*linux*) 4985 LD="${LD-ld} -m elf64_s390" 4986 ;; 4987 sparc*-*linux*) 4988 LD="${LD-ld} -m elf64_sparc" 4989 ;; 4990 esac 4991 ;; 4992 esac 4993 fi 4994 rm -rf conftest* 4995 ;; 4996 4997*-*-sco3.2v5*) 4998 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4999 SAVE_CFLAGS="$CFLAGS" 5000 CFLAGS="$CFLAGS -belf" 5001 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5002echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5003if test "${lt_cv_cc_needs_belf+set}" = set; then 5004 echo $ECHO_N "(cached) $ECHO_C" >&6 5005else 5006 ac_ext=c 5007ac_cpp='$CPP $CPPFLAGS' 5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5010ac_compiler_gnu=$ac_cv_c_compiler_gnu 5011 5012 cat >conftest.$ac_ext <<_ACEOF 5013#line $LINENO "configure" 5014/* confdefs.h. */ 5015_ACEOF 5016cat confdefs.h >>conftest.$ac_ext 5017cat >>conftest.$ac_ext <<_ACEOF 5018/* end confdefs.h. */ 5019 5020int 5021main () 5022{ 5023 5024 ; 5025 return 0; 5026} 5027_ACEOF 5028rm -f conftest.$ac_objext conftest$ac_exeext 5029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5030 (eval $ac_link) 2>&5 5031 ac_status=$? 5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5033 (exit $ac_status); } && 5034 { ac_try='test -s conftest$ac_exeext' 5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5036 (eval $ac_try) 2>&5 5037 ac_status=$? 5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 (exit $ac_status); }; }; then 5040 lt_cv_cc_needs_belf=yes 5041else 5042 echo "$as_me: failed program was:" >&5 5043sed 's/^/| /' conftest.$ac_ext >&5 5044 5045lt_cv_cc_needs_belf=no 5046fi 5047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5048 ac_ext=c 5049ac_cpp='$CPP $CPPFLAGS' 5050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5052ac_compiler_gnu=$ac_cv_c_compiler_gnu 5053 5054fi 5055echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5056echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5057 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5059 CFLAGS="$SAVE_CFLAGS" 5060 fi 5061 ;; 5062 5063esac 5064 5065need_locks="$enable_libtool_lock" 5066 5067 5068ac_ext=c 5069ac_cpp='$CPP $CPPFLAGS' 5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5072ac_compiler_gnu=$ac_cv_c_compiler_gnu 5073echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5074echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 5075# On Suns, sometimes $CPP names a directory. 5076if test -n "$CPP" && test -d "$CPP"; then 5077 CPP= 5078fi 5079if test -z "$CPP"; then 5080 if test "${ac_cv_prog_CPP+set}" = set; then 5081 echo $ECHO_N "(cached) $ECHO_C" >&6 5082else 5083 # Double quotes because CPP needs to be expanded 5084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5085 do 5086 ac_preproc_ok=false 5087for ac_c_preproc_warn_flag in '' yes 5088do 5089 # Use a header file that comes with gcc, so configuring glibc 5090 # with a fresh cross-compiler works. 5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5092 # <limits.h> exists even on freestanding compilers. 5093 # On the NeXT, cc -E runs the code through the compiler's parser, 5094 # not just through cpp. "Syntax error" is here to catch this case. 5095 cat >conftest.$ac_ext <<_ACEOF 5096#line $LINENO "configure" 5097/* confdefs.h. */ 5098_ACEOF 5099cat confdefs.h >>conftest.$ac_ext 5100cat >>conftest.$ac_ext <<_ACEOF 5101/* end confdefs.h. */ 5102#ifdef __STDC__ 5103# include <limits.h> 5104#else 5105# include <assert.h> 5106#endif 5107 Syntax error 5108_ACEOF 5109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5111 ac_status=$? 5112 grep -v '^ *+' conftest.er1 >conftest.err 5113 rm -f conftest.er1 5114 cat conftest.err >&5 5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5116 (exit $ac_status); } >/dev/null; then 5117 if test -s conftest.err; then 5118 ac_cpp_err=$ac_c_preproc_warn_flag 5119 else 5120 ac_cpp_err= 5121 fi 5122else 5123 ac_cpp_err=yes 5124fi 5125if test -z "$ac_cpp_err"; then 5126 : 5127else 5128 echo "$as_me: failed program was:" >&5 5129sed 's/^/| /' conftest.$ac_ext >&5 5130 5131 # Broken: fails on valid input. 5132continue 5133fi 5134rm -f conftest.err conftest.$ac_ext 5135 5136 # OK, works on sane cases. Now check whether non-existent headers 5137 # can be detected and how. 5138 cat >conftest.$ac_ext <<_ACEOF 5139#line $LINENO "configure" 5140/* confdefs.h. */ 5141_ACEOF 5142cat confdefs.h >>conftest.$ac_ext 5143cat >>conftest.$ac_ext <<_ACEOF 5144/* end confdefs.h. */ 5145#include <ac_nonexistent.h> 5146_ACEOF 5147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5149 ac_status=$? 5150 grep -v '^ *+' conftest.er1 >conftest.err 5151 rm -f conftest.er1 5152 cat conftest.err >&5 5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5154 (exit $ac_status); } >/dev/null; then 5155 if test -s conftest.err; then 5156 ac_cpp_err=$ac_c_preproc_warn_flag 5157 else 5158 ac_cpp_err= 5159 fi 5160else 5161 ac_cpp_err=yes 5162fi 5163if test -z "$ac_cpp_err"; then 5164 # Broken: success on invalid input. 5165continue 5166else 5167 echo "$as_me: failed program was:" >&5 5168sed 's/^/| /' conftest.$ac_ext >&5 5169 5170 # Passes both tests. 5171ac_preproc_ok=: 5172break 5173fi 5174rm -f conftest.err conftest.$ac_ext 5175 5176done 5177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5178rm -f conftest.err conftest.$ac_ext 5179if $ac_preproc_ok; then 5180 break 5181fi 5182 5183 done 5184 ac_cv_prog_CPP=$CPP 5185 5186fi 5187 CPP=$ac_cv_prog_CPP 5188else 5189 ac_cv_prog_CPP=$CPP 5190fi 5191echo "$as_me:$LINENO: result: $CPP" >&5 5192echo "${ECHO_T}$CPP" >&6 5193ac_preproc_ok=false 5194for ac_c_preproc_warn_flag in '' yes 5195do 5196 # Use a header file that comes with gcc, so configuring glibc 5197 # with a fresh cross-compiler works. 5198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5199 # <limits.h> exists even on freestanding compilers. 5200 # On the NeXT, cc -E runs the code through the compiler's parser, 5201 # not just through cpp. "Syntax error" is here to catch this case. 5202 cat >conftest.$ac_ext <<_ACEOF 5203#line $LINENO "configure" 5204/* confdefs.h. */ 5205_ACEOF 5206cat confdefs.h >>conftest.$ac_ext 5207cat >>conftest.$ac_ext <<_ACEOF 5208/* end confdefs.h. */ 5209#ifdef __STDC__ 5210# include <limits.h> 5211#else 5212# include <assert.h> 5213#endif 5214 Syntax error 5215_ACEOF 5216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5218 ac_status=$? 5219 grep -v '^ *+' conftest.er1 >conftest.err 5220 rm -f conftest.er1 5221 cat conftest.err >&5 5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5223 (exit $ac_status); } >/dev/null; then 5224 if test -s conftest.err; then 5225 ac_cpp_err=$ac_c_preproc_warn_flag 5226 else 5227 ac_cpp_err= 5228 fi 5229else 5230 ac_cpp_err=yes 5231fi 5232if test -z "$ac_cpp_err"; then 5233 : 5234else 5235 echo "$as_me: failed program was:" >&5 5236sed 's/^/| /' conftest.$ac_ext >&5 5237 5238 # Broken: fails on valid input. 5239continue 5240fi 5241rm -f conftest.err conftest.$ac_ext 5242 5243 # OK, works on sane cases. Now check whether non-existent headers 5244 # can be detected and how. 5245 cat >conftest.$ac_ext <<_ACEOF 5246#line $LINENO "configure" 5247/* confdefs.h. */ 5248_ACEOF 5249cat confdefs.h >>conftest.$ac_ext 5250cat >>conftest.$ac_ext <<_ACEOF 5251/* end confdefs.h. */ 5252#include <ac_nonexistent.h> 5253_ACEOF 5254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5256 ac_status=$? 5257 grep -v '^ *+' conftest.er1 >conftest.err 5258 rm -f conftest.er1 5259 cat conftest.err >&5 5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5261 (exit $ac_status); } >/dev/null; then 5262 if test -s conftest.err; then 5263 ac_cpp_err=$ac_c_preproc_warn_flag 5264 else 5265 ac_cpp_err= 5266 fi 5267else 5268 ac_cpp_err=yes 5269fi 5270if test -z "$ac_cpp_err"; then 5271 # Broken: success on invalid input. 5272continue 5273else 5274 echo "$as_me: failed program was:" >&5 5275sed 's/^/| /' conftest.$ac_ext >&5 5276 5277 # Passes both tests. 5278ac_preproc_ok=: 5279break 5280fi 5281rm -f conftest.err conftest.$ac_ext 5282 5283done 5284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5285rm -f conftest.err conftest.$ac_ext 5286if $ac_preproc_ok; then 5287 : 5288else 5289 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5290See \`config.log' for more details." >&5 5291echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5292See \`config.log' for more details." >&2;} 5293 { (exit 1); exit 1; }; } 5294fi 5295 5296ac_ext=c 5297ac_cpp='$CPP $CPPFLAGS' 5298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5300ac_compiler_gnu=$ac_cv_c_compiler_gnu 5301 5302 5303 5304for ac_header in dlfcn.h 5305do 5306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5307if eval "test \"\${$as_ac_Header+set}\" = set"; then 5308 echo "$as_me:$LINENO: checking for $ac_header" >&5 5309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5310if eval "test \"\${$as_ac_Header+set}\" = set"; then 5311 echo $ECHO_N "(cached) $ECHO_C" >&6 5312fi 5313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5315else 5316 # Is the header compilable? 5317echo "$as_me:$LINENO: checking $ac_header usability" >&5 5318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5319cat >conftest.$ac_ext <<_ACEOF 5320#line $LINENO "configure" 5321/* confdefs.h. */ 5322_ACEOF 5323cat confdefs.h >>conftest.$ac_ext 5324cat >>conftest.$ac_ext <<_ACEOF 5325/* end confdefs.h. */ 5326$ac_includes_default 5327#include <$ac_header> 5328_ACEOF 5329rm -f conftest.$ac_objext 5330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5331 (eval $ac_compile) 2>&5 5332 ac_status=$? 5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5334 (exit $ac_status); } && 5335 { ac_try='test -s conftest.$ac_objext' 5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5337 (eval $ac_try) 2>&5 5338 ac_status=$? 5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5340 (exit $ac_status); }; }; then 5341 ac_header_compiler=yes 5342else 5343 echo "$as_me: failed program was:" >&5 5344sed 's/^/| /' conftest.$ac_ext >&5 5345 5346ac_header_compiler=no 5347fi 5348rm -f conftest.$ac_objext conftest.$ac_ext 5349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5350echo "${ECHO_T}$ac_header_compiler" >&6 5351 5352# Is the header present? 5353echo "$as_me:$LINENO: checking $ac_header presence" >&5 5354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5355cat >conftest.$ac_ext <<_ACEOF 5356#line $LINENO "configure" 5357/* confdefs.h. */ 5358_ACEOF 5359cat confdefs.h >>conftest.$ac_ext 5360cat >>conftest.$ac_ext <<_ACEOF 5361/* end confdefs.h. */ 5362#include <$ac_header> 5363_ACEOF 5364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5366 ac_status=$? 5367 grep -v '^ *+' conftest.er1 >conftest.err 5368 rm -f conftest.er1 5369 cat conftest.err >&5 5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5371 (exit $ac_status); } >/dev/null; then 5372 if test -s conftest.err; then 5373 ac_cpp_err=$ac_c_preproc_warn_flag 5374 else 5375 ac_cpp_err= 5376 fi 5377else 5378 ac_cpp_err=yes 5379fi 5380if test -z "$ac_cpp_err"; then 5381 ac_header_preproc=yes 5382else 5383 echo "$as_me: failed program was:" >&5 5384sed 's/^/| /' conftest.$ac_ext >&5 5385 5386 ac_header_preproc=no 5387fi 5388rm -f conftest.err conftest.$ac_ext 5389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5390echo "${ECHO_T}$ac_header_preproc" >&6 5391 5392# So? What about this header? 5393case $ac_header_compiler:$ac_header_preproc in 5394 yes:no ) 5395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5398echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5399 ( 5400 cat <<\_ASBOX 5401## ------------------------------------ ## 5402## Report this to bug-autoconf@gnu.org. ## 5403## ------------------------------------ ## 5404_ASBOX 5405 ) | 5406 sed "s/^/$as_me: WARNING: /" >&2 5407 ;; 5408 no:yes ) 5409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5412echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5415 ( 5416 cat <<\_ASBOX 5417## ------------------------------------ ## 5418## Report this to bug-autoconf@gnu.org. ## 5419## ------------------------------------ ## 5420_ASBOX 5421 ) | 5422 sed "s/^/$as_me: WARNING: /" >&2 5423 ;; 5424esac 5425echo "$as_me:$LINENO: checking for $ac_header" >&5 5426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5427if eval "test \"\${$as_ac_Header+set}\" = set"; then 5428 echo $ECHO_N "(cached) $ECHO_C" >&6 5429else 5430 eval "$as_ac_Header=$ac_header_preproc" 5431fi 5432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5434 5435fi 5436if test `eval echo '${'$as_ac_Header'}'` = yes; then 5437 cat >>confdefs.h <<_ACEOF 5438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5439_ACEOF 5440 5441fi 5442 5443done 5444 5445ac_ext=f 5446ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5447ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5448ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5449if test -n "$ac_tool_prefix"; then 5450 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 5451 do 5452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5453set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5454echo "$as_me:$LINENO: checking for $ac_word" >&5 5455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5456if test "${ac_cv_prog_F77+set}" = set; then 5457 echo $ECHO_N "(cached) $ECHO_C" >&6 5458else 5459 if test -n "$F77"; then 5460 ac_cv_prog_F77="$F77" # Let the user override the test. 5461else 5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5463for as_dir in $PATH 5464do 5465 IFS=$as_save_IFS 5466 test -z "$as_dir" && as_dir=. 5467 for ac_exec_ext in '' $ac_executable_extensions; do 5468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5469 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5471 break 2 5472 fi 5473done 5474done 5475 5476fi 5477fi 5478F77=$ac_cv_prog_F77 5479if test -n "$F77"; then 5480 echo "$as_me:$LINENO: result: $F77" >&5 5481echo "${ECHO_T}$F77" >&6 5482else 5483 echo "$as_me:$LINENO: result: no" >&5 5484echo "${ECHO_T}no" >&6 5485fi 5486 5487 test -n "$F77" && break 5488 done 5489fi 5490if test -z "$F77"; then 5491 ac_ct_F77=$F77 5492 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 5493do 5494 # Extract the first word of "$ac_prog", so it can be a program name with args. 5495set dummy $ac_prog; ac_word=$2 5496echo "$as_me:$LINENO: checking for $ac_word" >&5 5497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5498if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5499 echo $ECHO_N "(cached) $ECHO_C" >&6 5500else 5501 if test -n "$ac_ct_F77"; then 5502 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5503else 5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5505for as_dir in $PATH 5506do 5507 IFS=$as_save_IFS 5508 test -z "$as_dir" && as_dir=. 5509 for ac_exec_ext in '' $ac_executable_extensions; do 5510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5511 ac_cv_prog_ac_ct_F77="$ac_prog" 5512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5513 break 2 5514 fi 5515done 5516done 5517 5518fi 5519fi 5520ac_ct_F77=$ac_cv_prog_ac_ct_F77 5521if test -n "$ac_ct_F77"; then 5522 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5523echo "${ECHO_T}$ac_ct_F77" >&6 5524else 5525 echo "$as_me:$LINENO: result: no" >&5 5526echo "${ECHO_T}no" >&6 5527fi 5528 5529 test -n "$ac_ct_F77" && break 5530done 5531 5532 F77=$ac_ct_F77 5533fi 5534 5535 5536# Provide some information about the compiler. 5537echo "$as_me:5537:" \ 5538 "checking for Fortran 77 compiler version" >&5 5539ac_compiler=`set X $ac_compile; echo $2` 5540{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5541 (eval $ac_compiler --version </dev/null >&5) 2>&5 5542 ac_status=$? 5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5544 (exit $ac_status); } 5545{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5546 (eval $ac_compiler -v </dev/null >&5) 2>&5 5547 ac_status=$? 5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5549 (exit $ac_status); } 5550{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5551 (eval $ac_compiler -V </dev/null >&5) 2>&5 5552 ac_status=$? 5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5554 (exit $ac_status); } 5555 5556# If we don't use `.F' as extension, the preprocessor is not run on the 5557# input file. 5558ac_save_ext=$ac_ext 5559ac_ext=F 5560echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5561echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5562if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5563 echo $ECHO_N "(cached) $ECHO_C" >&6 5564else 5565 cat >conftest.$ac_ext <<_ACEOF 5566 program main 5567#ifndef __GNUC__ 5568 choke me 5569#endif 5570 5571 end 5572_ACEOF 5573rm -f conftest.$ac_objext 5574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5575 (eval $ac_compile) 2>&5 5576 ac_status=$? 5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5578 (exit $ac_status); } && 5579 { ac_try='test -s conftest.$ac_objext' 5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5581 (eval $ac_try) 2>&5 5582 ac_status=$? 5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 (exit $ac_status); }; }; then 5585 ac_compiler_gnu=yes 5586else 5587 echo "$as_me: failed program was:" >&5 5588sed 's/^/| /' conftest.$ac_ext >&5 5589 5590ac_compiler_gnu=no 5591fi 5592rm -f conftest.$ac_objext conftest.$ac_ext 5593ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5594 5595fi 5596echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5597echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5598ac_ext=$ac_save_ext 5599G77=`test $ac_compiler_gnu = yes && echo yes` 5600ac_test_FFLAGS=${FFLAGS+set} 5601ac_save_FFLAGS=$FFLAGS 5602FFLAGS= 5603echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5604echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5605if test "${ac_cv_prog_f77_g+set}" = set; then 5606 echo $ECHO_N "(cached) $ECHO_C" >&6 5607else 5608 FFLAGS=-g 5609cat >conftest.$ac_ext <<_ACEOF 5610 program main 5611 5612 end 5613_ACEOF 5614rm -f conftest.$ac_objext 5615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5616 (eval $ac_compile) 2>&5 5617 ac_status=$? 5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5619 (exit $ac_status); } && 5620 { ac_try='test -s conftest.$ac_objext' 5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5622 (eval $ac_try) 2>&5 5623 ac_status=$? 5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5625 (exit $ac_status); }; }; then 5626 ac_cv_prog_f77_g=yes 5627else 5628 echo "$as_me: failed program was:" >&5 5629sed 's/^/| /' conftest.$ac_ext >&5 5630 5631ac_cv_prog_f77_g=no 5632fi 5633rm -f conftest.$ac_objext conftest.$ac_ext 5634 5635fi 5636echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5637echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5638if test "$ac_test_FFLAGS" = set; then 5639 FFLAGS=$ac_save_FFLAGS 5640elif test $ac_cv_prog_f77_g = yes; then 5641 if test "$G77" = yes; then 5642 FFLAGS="-g -O2" 5643 else 5644 FFLAGS="-g" 5645 fi 5646else 5647 if test "$G77" = yes; then 5648 FFLAGS="-O2" 5649 else 5650 FFLAGS= 5651 fi 5652fi 5653ac_ext=cc 5654ac_cpp='$CXXCPP $CPPFLAGS' 5655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5658 5659 5660 5661# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5662 5663# find the maximum length of command line arguments 5664echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5665echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5666if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5667 echo $ECHO_N "(cached) $ECHO_C" >&6 5668else 5669 i=0 5670 testring="ABCD" 5671 5672 case $build_os in 5673 msdosdjgpp*) 5674 # On DJGPP, this test can blow up pretty badly due to problems in libc 5675 # (any single argument exceeding 2000 bytes causes a buffer overrun 5676 # during glob expansion). Even if it were fixed, the result of this 5677 # check would be larger than it should be. 5678 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5679 ;; 5680 5681 gnu*) 5682 # Under GNU Hurd, this test is not required because there is 5683 # no limit to the length of command line arguments. 5684 # Libtool will interpret -1 as no limit whatsoever 5685 lt_cv_sys_max_cmd_len=-1; 5686 ;; 5687 5688 cygwin* | mingw*) 5689 # On Win9x/ME, this test blows up -- it succeeds, but takes 5690 # about 5 minutes as the teststring grows exponentially. 5691 # Worse, since 9x/ME are not pre-emptively multitasking, 5692 # you end up with a "frozen" computer, even though with patience 5693 # the test eventually succeeds (with a max line length of 256k). 5694 # Instead, let's just punt: use the minimum linelength reported by 5695 # all of the supported platforms: 8192 (on NT/2K/XP). 5696 lt_cv_sys_max_cmd_len=8192; 5697 ;; 5698 5699 *) 5700 # If test is not a shell built-in, we'll probably end up computing a 5701 # maximum length that is only half of the actual maximum length, but 5702 # we can't tell. 5703 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 5704 = "XX$testring") >/dev/null 2>&1 && 5705 new_result=`expr "X$testring" : ".*" 2>&1` && 5706 lt_cv_sys_max_cmd_len=$new_result && 5707 test $i != 17 # 1/2 MB should be enough 5708 do 5709 i=`expr $i + 1` 5710 testring=$testring$testring 5711 done 5712 testring= 5713 # Add a significant safety factor because C++ compilers can tack on massive 5714 # amounts of additional arguments before passing them to the linker. 5715 # It appears as though 1/2 is a usable value. 5716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5717 ;; 5718 esac 5719 5720fi 5721 5722if test -n $lt_cv_sys_max_cmd_len ; then 5723 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5724echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5725else 5726 echo "$as_me:$LINENO: result: none" >&5 5727echo "${ECHO_T}none" >&6 5728fi 5729 5730 5731 5732 5733# Check for command to grab the raw symbol name followed by C symbol from nm. 5734echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5735echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5736if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5737 echo $ECHO_N "(cached) $ECHO_C" >&6 5738else 5739 5740# These are sane defaults that work on at least a few old systems. 5741# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5742 5743# Character class describing NM global symbol codes. 5744symcode='[BCDEGRST]' 5745 5746# Regexp to match symbols that can be accessed directly from C. 5747sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5748 5749# Transform the above into a raw symbol and a C symbol. 5750symxfrm='\1 \2\3 \3' 5751 5752# Transform an extracted symbol line into a proper C declaration 5753lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5754 5755# Transform an extracted symbol line into symbol name and symbol address 5756lt_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'" 5757 5758# Define system-specific variables. 5759case $host_os in 5760aix*) 5761 symcode='[BCDT]' 5762 ;; 5763cygwin* | mingw* | pw32*) 5764 symcode='[ABCDGISTW]' 5765 ;; 5766hpux*) # Its linker distinguishes data from code symbols 5767 if test "$host_cpu" = ia64; then 5768 symcode='[ABCDEGRST]' 5769 fi 5770 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5771 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'" 5772 ;; 5773irix* | nonstopux*) 5774 symcode='[BCDEGRST]' 5775 ;; 5776osf*) 5777 symcode='[BCDEGQRST]' 5778 ;; 5779solaris* | sysv5*) 5780 symcode='[BDT]' 5781 ;; 5782sysv4) 5783 symcode='[DFNSTU]' 5784 ;; 5785esac 5786 5787# Handle CRLF in mingw tool chain 5788opt_cr= 5789case $build_os in 5790mingw*) 5791 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5792 ;; 5793esac 5794 5795# If we're using GNU nm, then use its standard symbol codes. 5796case `$NM -V 2>&1` in 5797*GNU* | *'with BFD'*) 5798 symcode='[ABCDGISTW]' ;; 5799esac 5800 5801# Try without a prefix undercore, then with it. 5802for ac_symprfx in "" "_"; do 5803 5804 # Write the raw and C identifiers. 5805 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5806 5807 # Check to see that the pipe works correctly. 5808 pipe_works=no 5809 5810 rm -f conftest* 5811 cat > conftest.$ac_ext <<EOF 5812#ifdef __cplusplus 5813extern "C" { 5814#endif 5815char nm_test_var; 5816void nm_test_func(){} 5817#ifdef __cplusplus 5818} 5819#endif 5820int main(){nm_test_var='a';nm_test_func();return(0);} 5821EOF 5822 5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5824 (eval $ac_compile) 2>&5 5825 ac_status=$? 5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5827 (exit $ac_status); }; then 5828 # Now try to grab the symbols. 5829 nlist=conftest.nm 5830 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5831 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5832 ac_status=$? 5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5834 (exit $ac_status); } && test -s "$nlist"; then 5835 # Try sorting and uniquifying the output. 5836 if sort "$nlist" | uniq > "$nlist"T; then 5837 mv -f "$nlist"T "$nlist" 5838 else 5839 rm -f "$nlist"T 5840 fi 5841 5842 # Make sure that we snagged all the symbols we need. 5843 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5844 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5845 cat <<EOF > conftest.$ac_ext 5846#ifdef __cplusplus 5847extern "C" { 5848#endif 5849 5850EOF 5851 # Now generate the symbol file. 5852 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5853 5854 cat <<EOF >> conftest.$ac_ext 5855#if defined (__STDC__) && __STDC__ 5856# define lt_ptr_t void * 5857#else 5858# define lt_ptr_t char * 5859# define const 5860#endif 5861 5862/* The mapping between symbol names and symbols. */ 5863const struct { 5864 const char *name; 5865 lt_ptr_t address; 5866} 5867lt_preloaded_symbols[] = 5868{ 5869EOF 5870 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5871 cat <<\EOF >> conftest.$ac_ext 5872 {0, (lt_ptr_t) 0} 5873}; 5874 5875#ifdef __cplusplus 5876} 5877#endif 5878EOF 5879 # Now try linking the two files. 5880 mv conftest.$ac_objext conftstm.$ac_objext 5881 lt_save_LIBS="$LIBS" 5882 lt_save_CFLAGS="$CFLAGS" 5883 LIBS="conftstm.$ac_objext" 5884 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5886 (eval $ac_link) 2>&5 5887 ac_status=$? 5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5889 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5890 pipe_works=yes 5891 fi 5892 LIBS="$lt_save_LIBS" 5893 CFLAGS="$lt_save_CFLAGS" 5894 else 5895 echo "cannot find nm_test_func in $nlist" >&5 5896 fi 5897 else 5898 echo "cannot find nm_test_var in $nlist" >&5 5899 fi 5900 else 5901 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5902 fi 5903 else 5904 echo "$progname: failed program was:" >&5 5905 cat conftest.$ac_ext >&5 5906 fi 5907 rm -f conftest* conftst* 5908 5909 # Do not use the global_symbol_pipe unless it works. 5910 if test "$pipe_works" = yes; then 5911 break 5912 else 5913 lt_cv_sys_global_symbol_pipe= 5914 fi 5915done 5916 5917fi 5918 5919if test -z "$lt_cv_sys_global_symbol_pipe"; then 5920 lt_cv_sys_global_symbol_to_cdecl= 5921fi 5922if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5923 echo "$as_me:$LINENO: result: failed" >&5 5924echo "${ECHO_T}failed" >&6 5925else 5926 echo "$as_me:$LINENO: result: ok" >&5 5927echo "${ECHO_T}ok" >&6 5928fi 5929 5930echo "$as_me:$LINENO: checking for objdir" >&5 5931echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5932if test "${lt_cv_objdir+set}" = set; then 5933 echo $ECHO_N "(cached) $ECHO_C" >&6 5934else 5935 rm -f .libs 2>/dev/null 5936mkdir .libs 2>/dev/null 5937if test -d .libs; then 5938 lt_cv_objdir=.libs 5939else 5940 # MS-DOS does not allow filenames that begin with a dot. 5941 lt_cv_objdir=_libs 5942fi 5943rmdir .libs 2>/dev/null 5944fi 5945echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5946echo "${ECHO_T}$lt_cv_objdir" >&6 5947objdir=$lt_cv_objdir 5948 5949 5950 5951 5952 5953case $host_os in 5954aix3*) 5955 # AIX sometimes has problems with the GCC collect2 program. For some 5956 # reason, if we set the COLLECT_NAMES environment variable, the problems 5957 # vanish in a puff of smoke. 5958 if test "X${COLLECT_NAMES+set}" != Xset; then 5959 COLLECT_NAMES= 5960 export COLLECT_NAMES 5961 fi 5962 ;; 5963esac 5964 5965# Sed substitution that helps us do robust quoting. It backslashifies 5966# metacharacters that are still active within double-quoted strings. 5967Xsed='sed -e s/^X//' 5968sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5969 5970# Same as above, but do not quote variable references. 5971double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5972 5973# Sed substitution to delay expansion of an escaped shell variable in a 5974# double_quote_subst'ed string. 5975delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5976 5977# Sed substitution to avoid accidental globbing in evaled expressions 5978no_glob_subst='s/\*/\\\*/g' 5979 5980# Constants: 5981rm="rm -f" 5982 5983# Global variables: 5984default_ofile=libtool 5985can_build_shared=yes 5986 5987# All known linkers require a `.a' archive for static linking (except M$VC, 5988# which needs '.lib'). 5989libext=a 5990ltmain="$ac_aux_dir/ltmain.sh" 5991ofile="$default_ofile" 5992with_gnu_ld="$lt_cv_prog_gnu_ld" 5993 5994if test -n "$ac_tool_prefix"; then 5995 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5996set dummy ${ac_tool_prefix}ar; ac_word=$2 5997echo "$as_me:$LINENO: checking for $ac_word" >&5 5998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5999if test "${ac_cv_prog_AR+set}" = set; then 6000 echo $ECHO_N "(cached) $ECHO_C" >&6 6001else 6002 if test -n "$AR"; then 6003 ac_cv_prog_AR="$AR" # Let the user override the test. 6004else 6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6006for as_dir in $PATH 6007do 6008 IFS=$as_save_IFS 6009 test -z "$as_dir" && as_dir=. 6010 for ac_exec_ext in '' $ac_executable_extensions; do 6011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6012 ac_cv_prog_AR="${ac_tool_prefix}ar" 6013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6014 break 2 6015 fi 6016done 6017done 6018 6019fi 6020fi 6021AR=$ac_cv_prog_AR 6022if test -n "$AR"; then 6023 echo "$as_me:$LINENO: result: $AR" >&5 6024echo "${ECHO_T}$AR" >&6 6025else 6026 echo "$as_me:$LINENO: result: no" >&5 6027echo "${ECHO_T}no" >&6 6028fi 6029 6030fi 6031if test -z "$ac_cv_prog_AR"; then 6032 ac_ct_AR=$AR 6033 # Extract the first word of "ar", so it can be a program name with args. 6034set dummy ar; ac_word=$2 6035echo "$as_me:$LINENO: checking for $ac_word" >&5 6036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6037if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6038 echo $ECHO_N "(cached) $ECHO_C" >&6 6039else 6040 if test -n "$ac_ct_AR"; then 6041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6042else 6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6044for as_dir in $PATH 6045do 6046 IFS=$as_save_IFS 6047 test -z "$as_dir" && as_dir=. 6048 for ac_exec_ext in '' $ac_executable_extensions; do 6049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6050 ac_cv_prog_ac_ct_AR="ar" 6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6052 break 2 6053 fi 6054done 6055done 6056 6057 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6058fi 6059fi 6060ac_ct_AR=$ac_cv_prog_ac_ct_AR 6061if test -n "$ac_ct_AR"; then 6062 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6063echo "${ECHO_T}$ac_ct_AR" >&6 6064else 6065 echo "$as_me:$LINENO: result: no" >&5 6066echo "${ECHO_T}no" >&6 6067fi 6068 6069 AR=$ac_ct_AR 6070else 6071 AR="$ac_cv_prog_AR" 6072fi 6073 6074if test -n "$ac_tool_prefix"; then 6075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6076set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6077echo "$as_me:$LINENO: checking for $ac_word" >&5 6078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6079if test "${ac_cv_prog_RANLIB+set}" = set; then 6080 echo $ECHO_N "(cached) $ECHO_C" >&6 6081else 6082 if test -n "$RANLIB"; then 6083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6084else 6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6086for as_dir in $PATH 6087do 6088 IFS=$as_save_IFS 6089 test -z "$as_dir" && as_dir=. 6090 for ac_exec_ext in '' $ac_executable_extensions; do 6091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6094 break 2 6095 fi 6096done 6097done 6098 6099fi 6100fi 6101RANLIB=$ac_cv_prog_RANLIB 6102if test -n "$RANLIB"; then 6103 echo "$as_me:$LINENO: result: $RANLIB" >&5 6104echo "${ECHO_T}$RANLIB" >&6 6105else 6106 echo "$as_me:$LINENO: result: no" >&5 6107echo "${ECHO_T}no" >&6 6108fi 6109 6110fi 6111if test -z "$ac_cv_prog_RANLIB"; then 6112 ac_ct_RANLIB=$RANLIB 6113 # Extract the first word of "ranlib", so it can be a program name with args. 6114set dummy ranlib; ac_word=$2 6115echo "$as_me:$LINENO: checking for $ac_word" >&5 6116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6117if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6118 echo $ECHO_N "(cached) $ECHO_C" >&6 6119else 6120 if test -n "$ac_ct_RANLIB"; then 6121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6122else 6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6124for as_dir in $PATH 6125do 6126 IFS=$as_save_IFS 6127 test -z "$as_dir" && as_dir=. 6128 for ac_exec_ext in '' $ac_executable_extensions; do 6129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6130 ac_cv_prog_ac_ct_RANLIB="ranlib" 6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6132 break 2 6133 fi 6134done 6135done 6136 6137 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6138fi 6139fi 6140ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6141if test -n "$ac_ct_RANLIB"; then 6142 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6143echo "${ECHO_T}$ac_ct_RANLIB" >&6 6144else 6145 echo "$as_me:$LINENO: result: no" >&5 6146echo "${ECHO_T}no" >&6 6147fi 6148 6149 RANLIB=$ac_ct_RANLIB 6150else 6151 RANLIB="$ac_cv_prog_RANLIB" 6152fi 6153 6154if test -n "$ac_tool_prefix"; then 6155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6156set dummy ${ac_tool_prefix}strip; ac_word=$2 6157echo "$as_me:$LINENO: checking for $ac_word" >&5 6158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6159if test "${ac_cv_prog_STRIP+set}" = set; then 6160 echo $ECHO_N "(cached) $ECHO_C" >&6 6161else 6162 if test -n "$STRIP"; then 6163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6164else 6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6166for as_dir in $PATH 6167do 6168 IFS=$as_save_IFS 6169 test -z "$as_dir" && as_dir=. 6170 for ac_exec_ext in '' $ac_executable_extensions; do 6171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6172 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6174 break 2 6175 fi 6176done 6177done 6178 6179fi 6180fi 6181STRIP=$ac_cv_prog_STRIP 6182if test -n "$STRIP"; then 6183 echo "$as_me:$LINENO: result: $STRIP" >&5 6184echo "${ECHO_T}$STRIP" >&6 6185else 6186 echo "$as_me:$LINENO: result: no" >&5 6187echo "${ECHO_T}no" >&6 6188fi 6189 6190fi 6191if test -z "$ac_cv_prog_STRIP"; then 6192 ac_ct_STRIP=$STRIP 6193 # Extract the first word of "strip", so it can be a program name with args. 6194set dummy strip; ac_word=$2 6195echo "$as_me:$LINENO: checking for $ac_word" >&5 6196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6197if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6198 echo $ECHO_N "(cached) $ECHO_C" >&6 6199else 6200 if test -n "$ac_ct_STRIP"; then 6201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6202else 6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204for as_dir in $PATH 6205do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6210 ac_cv_prog_ac_ct_STRIP="strip" 6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215done 6216 6217 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6218fi 6219fi 6220ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6221if test -n "$ac_ct_STRIP"; then 6222 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6223echo "${ECHO_T}$ac_ct_STRIP" >&6 6224else 6225 echo "$as_me:$LINENO: result: no" >&5 6226echo "${ECHO_T}no" >&6 6227fi 6228 6229 STRIP=$ac_ct_STRIP 6230else 6231 STRIP="$ac_cv_prog_STRIP" 6232fi 6233 6234 6235old_CC="$CC" 6236old_CFLAGS="$CFLAGS" 6237 6238# Set sane defaults for various variables 6239test -z "$AR" && AR=ar 6240test -z "$AR_FLAGS" && AR_FLAGS=cru 6241test -z "$AS" && AS=as 6242test -z "$CC" && CC=cc 6243test -z "$LTCC" && LTCC=$CC 6244test -z "$DLLTOOL" && DLLTOOL=dlltool 6245test -z "$LD" && LD=ld 6246test -z "$LN_S" && LN_S="ln -s" 6247test -z "$MAGIC_CMD" && MAGIC_CMD=file 6248test -z "$NM" && NM=nm 6249test -z "$SED" && SED=sed 6250test -z "$OBJDUMP" && OBJDUMP=objdump 6251test -z "$RANLIB" && RANLIB=: 6252test -z "$STRIP" && STRIP=: 6253test -z "$ac_objext" && ac_objext=o 6254 6255# Determine commands to create old-style static archives. 6256old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6257old_postinstall_cmds='chmod 644 $oldlib' 6258old_postuninstall_cmds= 6259 6260if test -n "$RANLIB"; then 6261 case $host_os in 6262 openbsd*) 6263 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6264 ;; 6265 *) 6266 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6267 ;; 6268 esac 6269 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6270fi 6271 6272# Only perform the check for file, if the check method requires it 6273case $deplibs_check_method in 6274file_magic*) 6275 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6276 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6277echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6278if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6279 echo $ECHO_N "(cached) $ECHO_C" >&6 6280else 6281 case $MAGIC_CMD in 6282[\\/*] | ?:[\\/]*) 6283 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6284 ;; 6285*) 6286 lt_save_MAGIC_CMD="$MAGIC_CMD" 6287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6289 for ac_dir in $ac_dummy; do 6290 IFS="$lt_save_ifs" 6291 test -z "$ac_dir" && ac_dir=. 6292 if test -f $ac_dir/${ac_tool_prefix}file; then 6293 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6294 if test -n "$file_magic_test_file"; then 6295 case $deplibs_check_method in 6296 "file_magic "*) 6297 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6300 $EGREP "$file_magic_regex" > /dev/null; then 6301 : 6302 else 6303 cat <<EOF 1>&2 6304 6305*** Warning: the command libtool uses to detect shared libraries, 6306*** $file_magic_cmd, produces output that libtool cannot recognize. 6307*** The result is that libtool may fail to recognize shared libraries 6308*** as such. This will affect the creation of libtool libraries that 6309*** depend on shared libraries, but programs linked with such libtool 6310*** libraries will work regardless of this problem. Nevertheless, you 6311*** may want to report the problem to your system manager and/or to 6312*** bug-libtool@gnu.org 6313 6314EOF 6315 fi ;; 6316 esac 6317 fi 6318 break 6319 fi 6320 done 6321 IFS="$lt_save_ifs" 6322 MAGIC_CMD="$lt_save_MAGIC_CMD" 6323 ;; 6324esac 6325fi 6326 6327MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6328if test -n "$MAGIC_CMD"; then 6329 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6330echo "${ECHO_T}$MAGIC_CMD" >&6 6331else 6332 echo "$as_me:$LINENO: result: no" >&5 6333echo "${ECHO_T}no" >&6 6334fi 6335 6336if test -z "$lt_cv_path_MAGIC_CMD"; then 6337 if test -n "$ac_tool_prefix"; then 6338 echo "$as_me:$LINENO: checking for file" >&5 6339echo $ECHO_N "checking for file... $ECHO_C" >&6 6340if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6341 echo $ECHO_N "(cached) $ECHO_C" >&6 6342else 6343 case $MAGIC_CMD in 6344[\\/*] | ?:[\\/]*) 6345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6346 ;; 6347*) 6348 lt_save_MAGIC_CMD="$MAGIC_CMD" 6349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6350 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6351 for ac_dir in $ac_dummy; do 6352 IFS="$lt_save_ifs" 6353 test -z "$ac_dir" && ac_dir=. 6354 if test -f $ac_dir/file; then 6355 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6356 if test -n "$file_magic_test_file"; then 6357 case $deplibs_check_method in 6358 "file_magic "*) 6359 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6361 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6362 $EGREP "$file_magic_regex" > /dev/null; then 6363 : 6364 else 6365 cat <<EOF 1>&2 6366 6367*** Warning: the command libtool uses to detect shared libraries, 6368*** $file_magic_cmd, produces output that libtool cannot recognize. 6369*** The result is that libtool may fail to recognize shared libraries 6370*** as such. This will affect the creation of libtool libraries that 6371*** depend on shared libraries, but programs linked with such libtool 6372*** libraries will work regardless of this problem. Nevertheless, you 6373*** may want to report the problem to your system manager and/or to 6374*** bug-libtool@gnu.org 6375 6376EOF 6377 fi ;; 6378 esac 6379 fi 6380 break 6381 fi 6382 done 6383 IFS="$lt_save_ifs" 6384 MAGIC_CMD="$lt_save_MAGIC_CMD" 6385 ;; 6386esac 6387fi 6388 6389MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6390if test -n "$MAGIC_CMD"; then 6391 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6392echo "${ECHO_T}$MAGIC_CMD" >&6 6393else 6394 echo "$as_me:$LINENO: result: no" >&5 6395echo "${ECHO_T}no" >&6 6396fi 6397 6398 else 6399 MAGIC_CMD=: 6400 fi 6401fi 6402 6403 fi 6404 ;; 6405esac 6406 6407enable_dlopen=no 6408enable_win32_dll=no 6409 6410# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6411if test "${enable_libtool_lock+set}" = set; then 6412 enableval="$enable_libtool_lock" 6413 6414fi; 6415test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6416 6417 6418# Check whether --with-pic or --without-pic was given. 6419if test "${with_pic+set}" = set; then 6420 withval="$with_pic" 6421 pic_mode="$withval" 6422else 6423 pic_mode=default 6424fi; 6425test -z "$pic_mode" && pic_mode=default 6426 6427# Use C for the default configuration in the libtool script 6428tagname= 6429lt_save_CC="$CC" 6430ac_ext=c 6431ac_cpp='$CPP $CPPFLAGS' 6432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6434ac_compiler_gnu=$ac_cv_c_compiler_gnu 6435 6436 6437# Source file extension for C test sources. 6438ac_ext=c 6439 6440# Object file extension for compiled C test sources. 6441objext=o 6442objext=$objext 6443 6444# Code to be used in simple compile tests 6445lt_simple_compile_test_code="int some_variable = 0;\n" 6446 6447# Code to be used in simple link tests 6448lt_simple_link_test_code='int main(){return(0);}\n' 6449 6450 6451# If no C compiler was specified, use CC. 6452LTCC=${LTCC-"$CC"} 6453 6454# Allow CC to be a program name with arguments. 6455compiler=$CC 6456 6457 6458# 6459# Check for any special shared library compilation flags. 6460# 6461lt_prog_cc_shlib= 6462if test "$GCC" = no; then 6463 case $host_os in 6464 sco3.2v5*) 6465 lt_prog_cc_shlib='-belf' 6466 ;; 6467 esac 6468fi 6469if test -n "$lt_prog_cc_shlib"; then 6470 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6471echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6472 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6473 else 6474 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6475echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6476 lt_cv_prog_cc_can_build_shared=no 6477 fi 6478fi 6479 6480 6481# 6482# Check to make sure the static flag actually works. 6483# 6484echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6485echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6486if test "${lt_prog_compiler_static_works+set}" = set; then 6487 echo $ECHO_N "(cached) $ECHO_C" >&6 6488else 6489 lt_prog_compiler_static_works=no 6490 save_LDFLAGS="$LDFLAGS" 6491 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6492 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6494 # The compiler can only warn and ignore the option if not recognized 6495 # So say no if there are warnings 6496 if test -s conftest.err; then 6497 # Append any errors to the config.log. 6498 cat conftest.err 1>&5 6499 else 6500 lt_prog_compiler_static_works=yes 6501 fi 6502 fi 6503 $rm conftest* 6504 LDFLAGS="$save_LDFLAGS" 6505 6506fi 6507echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6508echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6509 6510if test x"$lt_prog_compiler_static_works" = xyes; then 6511 : 6512else 6513 lt_prog_compiler_static= 6514fi 6515 6516 6517 6518 6519lt_prog_compiler_no_builtin_flag= 6520 6521if test "$GCC" = yes; then 6522 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6523 6524 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6525echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6526if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6527 echo $ECHO_N "(cached) $ECHO_C" >&6 6528else 6529 lt_cv_prog_compiler_rtti_exceptions=no 6530 ac_outfile=conftest.$ac_objext 6531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6532 lt_compiler_flag="-fno-rtti -fno-exceptions" 6533 # Insert the option either (1) after the last *FLAGS variable, or 6534 # (2) before a word containing "conftest.", or (3) at the end. 6535 # Note that $ac_compile itself does not contain backslashes and begins 6536 # with a dollar sign (not a hyphen), so the echo should work correctly. 6537 # The option is referenced via a variable to avoid confusing sed. 6538 lt_compile=`echo "$ac_compile" | $SED \ 6539 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6541 -e 's:$: $lt_compiler_flag:'` 6542 (eval echo "\"\$as_me:6542: $lt_compile\"" >&5) 6543 (eval "$lt_compile" 2>conftest.err) 6544 ac_status=$? 6545 cat conftest.err >&5 6546 echo "$as_me:6546: \$? = $ac_status" >&5 6547 if (exit $ac_status) && test -s "$ac_outfile"; then 6548 # The compiler can only warn and ignore the option if not recognized 6549 # So say no if there are warnings 6550 if test ! -s conftest.err; then 6551 lt_cv_prog_compiler_rtti_exceptions=yes 6552 fi 6553 fi 6554 $rm conftest* 6555 6556fi 6557echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6558echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6559 6560if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6561 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6562else 6563 : 6564fi 6565 6566fi 6567 6568lt_prog_compiler_wl= 6569lt_prog_compiler_pic= 6570lt_prog_compiler_static= 6571 6572echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6573echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6574 6575 if test "$GCC" = yes; then 6576 lt_prog_compiler_wl='-Wl,' 6577 lt_prog_compiler_static='-static' 6578 6579 case $host_os in 6580 aix*) 6581 # All AIX code is PIC. 6582 if test "$host_cpu" = ia64; then 6583 # AIX 5 now supports IA64 processor 6584 lt_prog_compiler_static='-Bstatic' 6585 fi 6586 ;; 6587 6588 amigaos*) 6589 # FIXME: we need at least 68020 code to build shared libraries, but 6590 # adding the `-m68020' flag to GCC prevents building anything better, 6591 # like `-m68040'. 6592 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6593 ;; 6594 6595 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6596 # PIC is the default for these OSes. 6597 ;; 6598 6599 mingw* | pw32* | os2*) 6600 # This hack is so that the source file can tell whether it is being 6601 # built for inclusion in a dll (and should export symbols for example). 6602 lt_prog_compiler_pic='-DDLL_EXPORT' 6603 ;; 6604 6605 darwin* | rhapsody*) 6606 # PIC is the default on this platform 6607 # Common symbols not allowed in MH_DYLIB files 6608 lt_prog_compiler_pic='-fno-common' 6609 ;; 6610 6611 msdosdjgpp*) 6612 # Just because we use GCC doesn't mean we suddenly get shared libraries 6613 # on systems that don't support them. 6614 lt_prog_compiler_can_build_shared=no 6615 enable_shared=no 6616 ;; 6617 6618 sysv4*MP*) 6619 if test -d /usr/nec; then 6620 lt_prog_compiler_pic=-Kconform_pic 6621 fi 6622 ;; 6623 6624 hpux*) 6625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6626 # not for PA HP-UX. 6627 case "$host_cpu" in 6628 hppa*64*|ia64*) 6629 # +Z the default 6630 ;; 6631 *) 6632 lt_prog_compiler_pic='-fPIC' 6633 ;; 6634 esac 6635 ;; 6636 6637 *) 6638 lt_prog_compiler_pic='-fPIC' 6639 ;; 6640 esac 6641 else 6642 # PORTME Check for flag to pass linker flags through the system compiler. 6643 case $host_os in 6644 aix*) 6645 lt_prog_compiler_wl='-Wl,' 6646 if test "$host_cpu" = ia64; then 6647 # AIX 5 now supports IA64 processor 6648 lt_prog_compiler_static='-Bstatic' 6649 else 6650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6651 fi 6652 ;; 6653 6654 mingw* | pw32* | os2*) 6655 # This hack is so that the source file can tell whether it is being 6656 # built for inclusion in a dll (and should export symbols for example). 6657 lt_prog_compiler_pic='-DDLL_EXPORT' 6658 ;; 6659 6660 hpux9* | hpux10* | hpux11*) 6661 lt_prog_compiler_wl='-Wl,' 6662 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6663 # not for PA HP-UX. 6664 case "$host_cpu" in 6665 hppa*64*|ia64*) 6666 # +Z the default 6667 ;; 6668 *) 6669 lt_prog_compiler_pic='+Z' 6670 ;; 6671 esac 6672 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6673 lt_prog_compiler_static='${wl}-a ${wl}archive' 6674 ;; 6675 6676 irix5* | irix6* | nonstopux*) 6677 lt_prog_compiler_wl='-Wl,' 6678 # PIC (with -KPIC) is the default. 6679 lt_prog_compiler_static='-non_shared' 6680 ;; 6681 6682 newsos6) 6683 lt_prog_compiler_pic='-KPIC' 6684 lt_prog_compiler_static='-Bstatic' 6685 ;; 6686 6687 linux*) 6688 case $CC in 6689 icc|ecc) 6690 lt_prog_compiler_wl='-Wl,' 6691 lt_prog_compiler_pic='-KPIC' 6692 lt_prog_compiler_static='-static' 6693 ;; 6694 ccc) 6695 lt_prog_compiler_wl='-Wl,' 6696 # All Alpha code is PIC. 6697 lt_prog_compiler_static='-non_shared' 6698 ;; 6699 esac 6700 ;; 6701 6702 osf3* | osf4* | osf5*) 6703 lt_prog_compiler_wl='-Wl,' 6704 # All OSF/1 code is PIC. 6705 lt_prog_compiler_static='-non_shared' 6706 ;; 6707 6708 sco3.2v5*) 6709 lt_prog_compiler_pic='-Kpic' 6710 lt_prog_compiler_static='-dn' 6711 ;; 6712 6713 solaris*) 6714 lt_prog_compiler_wl='-Wl,' 6715 lt_prog_compiler_pic='-KPIC' 6716 lt_prog_compiler_static='-Bstatic' 6717 ;; 6718 6719 sunos4*) 6720 lt_prog_compiler_wl='-Qoption ld ' 6721 lt_prog_compiler_pic='-PIC' 6722 lt_prog_compiler_static='-Bstatic' 6723 ;; 6724 6725 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6726 lt_prog_compiler_wl='-Wl,' 6727 lt_prog_compiler_pic='-KPIC' 6728 lt_prog_compiler_static='-Bstatic' 6729 ;; 6730 6731 sysv4*MP*) 6732 if test -d /usr/nec ;then 6733 lt_prog_compiler_pic='-Kconform_pic' 6734 lt_prog_compiler_static='-Bstatic' 6735 fi 6736 ;; 6737 6738 uts4*) 6739 lt_prog_compiler_pic='-pic' 6740 lt_prog_compiler_static='-Bstatic' 6741 ;; 6742 6743 *) 6744 lt_prog_compiler_can_build_shared=no 6745 ;; 6746 esac 6747 fi 6748 6749echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6750echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6751 6752# 6753# Check to make sure the PIC flag actually works. 6754# 6755if test -n "$lt_prog_compiler_pic"; then 6756 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6757echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6758if test "${lt_prog_compiler_pic_works+set}" = set; then 6759 echo $ECHO_N "(cached) $ECHO_C" >&6 6760else 6761 lt_prog_compiler_pic_works=no 6762 ac_outfile=conftest.$ac_objext 6763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6765 # Insert the option either (1) after the last *FLAGS variable, or 6766 # (2) before a word containing "conftest.", or (3) at the end. 6767 # Note that $ac_compile itself does not contain backslashes and begins 6768 # with a dollar sign (not a hyphen), so the echo should work correctly. 6769 # The option is referenced via a variable to avoid confusing sed. 6770 lt_compile=`echo "$ac_compile" | $SED \ 6771 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6773 -e 's:$: $lt_compiler_flag:'` 6774 (eval echo "\"\$as_me:6774: $lt_compile\"" >&5) 6775 (eval "$lt_compile" 2>conftest.err) 6776 ac_status=$? 6777 cat conftest.err >&5 6778 echo "$as_me:6778: \$? = $ac_status" >&5 6779 if (exit $ac_status) && test -s "$ac_outfile"; then 6780 # The compiler can only warn and ignore the option if not recognized 6781 # So say no if there are warnings 6782 if test ! -s conftest.err; then 6783 lt_prog_compiler_pic_works=yes 6784 fi 6785 fi 6786 $rm conftest* 6787 6788fi 6789echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6790echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6791 6792if test x"$lt_prog_compiler_pic_works" = xyes; then 6793 case $lt_prog_compiler_pic in 6794 "" | " "*) ;; 6795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6796 esac 6797else 6798 lt_prog_compiler_pic= 6799 lt_prog_compiler_can_build_shared=no 6800fi 6801 6802fi 6803case "$host_os" in 6804 # For platforms which do not support PIC, -DPIC is meaningless: 6805 *djgpp*) 6806 lt_prog_compiler_pic= 6807 ;; 6808 *) 6809 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6810 ;; 6811esac 6812 6813echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6814echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6815if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6816 echo $ECHO_N "(cached) $ECHO_C" >&6 6817else 6818 lt_cv_prog_compiler_c_o=no 6819 $rm -r conftest 2>/dev/null 6820 mkdir conftest 6821 cd conftest 6822 mkdir out 6823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6824 6825 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 6826 # that will create temporary files in the current directory regardless of 6827 # the output directory. Thus, making CWD read-only will cause this test 6828 # to fail, enabling locking or at least warning the user not to do parallel 6829 # builds. 6830 chmod -w . 6831 6832 lt_compiler_flag="-o out/conftest2.$ac_objext" 6833 # Insert the option either (1) after the last *FLAGS variable, or 6834 # (2) before a word containing "conftest.", or (3) at the end. 6835 # Note that $ac_compile itself does not contain backslashes and begins 6836 # with a dollar sign (not a hyphen), so the echo should work correctly. 6837 lt_compile=`echo "$ac_compile" | $SED \ 6838 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6840 -e 's:$: $lt_compiler_flag:'` 6841 (eval echo "\"\$as_me:6841: $lt_compile\"" >&5) 6842 (eval "$lt_compile" 2>out/conftest.err) 6843 ac_status=$? 6844 cat out/conftest.err >&5 6845 echo "$as_me:6845: \$? = $ac_status" >&5 6846 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6847 then 6848 # The compiler can only warn and ignore the option if not recognized 6849 # So say no if there are warnings 6850 if test ! -s out/conftest.err; then 6851 lt_cv_prog_compiler_c_o=yes 6852 fi 6853 fi 6854 chmod u+w . 6855 $rm conftest* out/* 6856 rmdir out 6857 cd .. 6858 rmdir conftest 6859 $rm conftest* 6860 6861fi 6862echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6863echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6864 6865 6866hard_links="nottested" 6867if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6868 # do not overwrite the value of need_locks provided by the user 6869 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6870echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6871 hard_links=yes 6872 $rm conftest* 6873 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6874 touch conftest.a 6875 ln conftest.a conftest.b 2>&5 || hard_links=no 6876 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6877 echo "$as_me:$LINENO: result: $hard_links" >&5 6878echo "${ECHO_T}$hard_links" >&6 6879 if test "$hard_links" = no; then 6880 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6881echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6882 need_locks=warn 6883 fi 6884else 6885 need_locks=no 6886fi 6887 6888echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6889echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6890 6891 runpath_var= 6892 allow_undefined_flag= 6893 enable_shared_with_static_runtimes=no 6894 archive_cmds= 6895 archive_expsym_cmds= 6896 old_archive_From_new_cmds= 6897 old_archive_from_expsyms_cmds= 6898 export_dynamic_flag_spec= 6899 whole_archive_flag_spec= 6900 thread_safe_flag_spec= 6901 hardcode_libdir_flag_spec= 6902 hardcode_libdir_flag_spec_ld= 6903 hardcode_libdir_separator= 6904 hardcode_direct=no 6905 hardcode_minus_L=no 6906 hardcode_shlibpath_var=unsupported 6907 link_all_deplibs=unknown 6908 hardcode_automatic=no 6909 module_cmds= 6910 module_expsym_cmds= 6911 always_export_symbols=no 6912 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6913 # include_expsyms should be a list of space-separated symbols to be *always* 6914 # included in the symbol list 6915 include_expsyms= 6916 # exclude_expsyms can be an extended regexp of symbols to exclude 6917 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6918 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6919 # as well as any symbol that contains `d'. 6920 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6921 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6922 # platforms (ab)use it in PIC code, but their linkers get confused if 6923 # the symbol is explicitly referenced. Since portable code cannot 6924 # rely on this symbol name, it's probably fine to never include it in 6925 # preloaded symbol tables. 6926 extract_expsyms_cmds= 6927 6928 case $host_os in 6929 cygwin* | mingw* | pw32*) 6930 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6931 # When not using gcc, we currently assume that we are using 6932 # Microsoft Visual C++. 6933 if test "$GCC" != yes; then 6934 with_gnu_ld=no 6935 fi 6936 ;; 6937 openbsd*) 6938 with_gnu_ld=no 6939 ;; 6940 esac 6941 6942 ld_shlibs=yes 6943 if test "$with_gnu_ld" = yes; then 6944 # If archive_cmds runs LD, not CC, wlarc should be empty 6945 wlarc='${wl}' 6946 6947 # See if GNU ld supports shared libraries. 6948 case $host_os in 6949 aix3* | aix4* | aix5*) 6950 # On AIX/PPC, the GNU linker is very broken 6951 if test "$host_cpu" != ia64; then 6952 ld_shlibs=no 6953 cat <<EOF 1>&2 6954 6955*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6956*** to be unable to reliably create shared libraries on AIX. 6957*** Therefore, libtool is disabling shared libraries support. If you 6958*** really care for shared libraries, you may want to modify your PATH 6959*** so that a non-GNU linker is found, and then restart. 6960 6961EOF 6962 fi 6963 ;; 6964 6965 amigaos*) 6966 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)' 6967 hardcode_libdir_flag_spec='-L$libdir' 6968 hardcode_minus_L=yes 6969 6970 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6971 # that the semantics of dynamic libraries on AmigaOS, at least up 6972 # to version 4, is to share data among multiple programs linked 6973 # with the same dynamic library. Since this doesn't match the 6974 # behavior of shared libraries on other platforms, we can't use 6975 # them. 6976 ld_shlibs=no 6977 ;; 6978 6979 beos*) 6980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6981 allow_undefined_flag=unsupported 6982 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6983 # support --undefined. This deserves some investigation. FIXME 6984 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6985 else 6986 ld_shlibs=no 6987 fi 6988 ;; 6989 6990 cygwin* | mingw* | pw32*) 6991 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6992 # as there is no search path for DLLs. 6993 hardcode_libdir_flag_spec='-L$libdir' 6994 allow_undefined_flag=unsupported 6995 always_export_symbols=no 6996 enable_shared_with_static_runtimes=yes 6997 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6998 6999 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7001 # If the export-symbols file already is a .def file (1st line 7002 # is EXPORTS), use it as is; otherwise, prepend... 7003 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7004 cp $export_symbols $output_objdir/$soname.def; 7005 else 7006 echo EXPORTS > $output_objdir/$soname.def; 7007 cat $export_symbols >> $output_objdir/$soname.def; 7008 fi~ 7009 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7010 else 7011 ld_shlibs=no 7012 fi 7013 ;; 7014 7015 netbsd*) 7016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7017 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7018 wlarc= 7019 else 7020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7022 fi 7023 ;; 7024 7025 solaris* | sysv5*) 7026 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7027 ld_shlibs=no 7028 cat <<EOF 1>&2 7029 7030*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7031*** create shared libraries on Solaris systems. Therefore, libtool 7032*** is disabling shared libraries support. We urge you to upgrade GNU 7033*** binutils to release 2.9.1 or newer. Another option is to modify 7034*** your PATH or compiler configuration so that the native linker is 7035*** used, and then restart. 7036 7037EOF 7038 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7041 else 7042 ld_shlibs=no 7043 fi 7044 ;; 7045 7046 sunos4*) 7047 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7048 wlarc= 7049 hardcode_direct=yes 7050 hardcode_shlibpath_var=no 7051 ;; 7052 7053 *) 7054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7057 else 7058 ld_shlibs=no 7059 fi 7060 ;; 7061 esac 7062 7063 if test "$ld_shlibs" = yes; then 7064 runpath_var=LD_RUN_PATH 7065 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7066 export_dynamic_flag_spec='${wl}--export-dynamic' 7067 # ancient GNU ld didn't support --whole-archive et. al. 7068 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7069 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7070 else 7071 whole_archive_flag_spec= 7072 fi 7073 fi 7074 else 7075 # PORTME fill in a description of your system's linker (not GNU ld) 7076 case $host_os in 7077 aix3*) 7078 allow_undefined_flag=unsupported 7079 always_export_symbols=yes 7080 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' 7081 # Note: this linker hardcodes the directories in LIBPATH if there 7082 # are no directories specified by -L. 7083 hardcode_minus_L=yes 7084 if test "$GCC" = yes && test -z "$link_static_flag"; then 7085 # Neither direct hardcoding nor static linking is supported with a 7086 # broken collect2. 7087 hardcode_direct=unsupported 7088 fi 7089 ;; 7090 7091 aix4* | aix5*) 7092 if test "$host_cpu" = ia64; then 7093 # On IA64, the linker does run time linking by default, so we don't 7094 # have to do anything special. 7095 aix_use_runtimelinking=no 7096 exp_sym_flag='-Bexport' 7097 no_entry_flag="" 7098 else 7099 # If we're using GNU nm, then we don't want the "-C" option. 7100 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7101 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7102 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' 7103 else 7104 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' 7105 fi 7106 aix_use_runtimelinking=no 7107 7108 # Test if we are trying to use run time linking or normal 7109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7110 # need to do runtime linking. 7111 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7112 for ld_flag in $LDFLAGS; do 7113 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7114 aix_use_runtimelinking=yes 7115 break 7116 fi 7117 done 7118 esac 7119 7120 exp_sym_flag='-bexport' 7121 no_entry_flag='-bnoentry' 7122 fi 7123 7124 # When large executables or shared objects are built, AIX ld can 7125 # have problems creating the table of contents. If linking a library 7126 # or program results in "error TOC overflow" add -mminimal-toc to 7127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7129 7130 archive_cmds='' 7131 hardcode_direct=yes 7132 hardcode_libdir_separator=':' 7133 link_all_deplibs=yes 7134 7135 if test "$GCC" = yes; then 7136 case $host_os in aix4.012|aix4.012.*) 7137 # We only want to do this on AIX 4.2 and lower, the check 7138 # below for broken collect2 doesn't work under 4.3+ 7139 collect2name=`${CC} -print-prog-name=collect2` 7140 if test -f "$collect2name" && \ 7141 strings "$collect2name" | grep resolve_lib_name >/dev/null 7142 then 7143 # We have reworked collect2 7144 hardcode_direct=yes 7145 else 7146 # We have old collect2 7147 hardcode_direct=unsupported 7148 # It fails to find uninstalled libraries when the uninstalled 7149 # path is not listed in the libpath. Setting hardcode_minus_L 7150 # to unsupported forces relinking 7151 hardcode_minus_L=yes 7152 hardcode_libdir_flag_spec='-L$libdir' 7153 hardcode_libdir_separator= 7154 fi 7155 esac 7156 shared_flag='-shared' 7157 else 7158 # not using gcc 7159 if test "$host_cpu" = ia64; then 7160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7161 # chokes on -Wl,-G. The following line is correct: 7162 shared_flag='-G' 7163 else 7164 if test "$aix_use_runtimelinking" = yes; then 7165 shared_flag='${wl}-G' 7166 else 7167 shared_flag='${wl}-bM:SRE' 7168 fi 7169 fi 7170 fi 7171 7172 # It seems that -bexpall does not export symbols beginning with 7173 # underscore (_), so it is better to generate a list of symbols to export. 7174 always_export_symbols=yes 7175 if test "$aix_use_runtimelinking" = yes; then 7176 # Warning - without using the other runtime loading flags (-brtl), 7177 # -berok will link without error, but may produce a broken library. 7178 allow_undefined_flag='-berok' 7179 # Determine the default libpath from the value encoded in an empty executable. 7180 cat >conftest.$ac_ext <<_ACEOF 7181#line $LINENO "configure" 7182/* confdefs.h. */ 7183_ACEOF 7184cat confdefs.h >>conftest.$ac_ext 7185cat >>conftest.$ac_ext <<_ACEOF 7186/* end confdefs.h. */ 7187 7188int 7189main () 7190{ 7191 7192 ; 7193 return 0; 7194} 7195_ACEOF 7196rm -f conftest.$ac_objext conftest$ac_exeext 7197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7198 (eval $ac_link) 2>&5 7199 ac_status=$? 7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7201 (exit $ac_status); } && 7202 { ac_try='test -s conftest$ac_exeext' 7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7204 (eval $ac_try) 2>&5 7205 ac_status=$? 7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7207 (exit $ac_status); }; }; then 7208 7209aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7210}'` 7211# Check for a 64-bit object if we didn't find anything. 7212if 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; } 7213}'`; fi 7214else 7215 echo "$as_me: failed program was:" >&5 7216sed 's/^/| /' conftest.$ac_ext >&5 7217 7218fi 7219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7220if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7221 7222 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7223 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7224 else 7225 if test "$host_cpu" = ia64; then 7226 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7227 allow_undefined_flag="-z nodefs" 7228 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7229 else 7230 # Determine the default libpath from the value encoded in an empty executable. 7231 cat >conftest.$ac_ext <<_ACEOF 7232#line $LINENO "configure" 7233/* confdefs.h. */ 7234_ACEOF 7235cat confdefs.h >>conftest.$ac_ext 7236cat >>conftest.$ac_ext <<_ACEOF 7237/* end confdefs.h. */ 7238 7239int 7240main () 7241{ 7242 7243 ; 7244 return 0; 7245} 7246_ACEOF 7247rm -f conftest.$ac_objext conftest$ac_exeext 7248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7249 (eval $ac_link) 2>&5 7250 ac_status=$? 7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7252 (exit $ac_status); } && 7253 { ac_try='test -s conftest$ac_exeext' 7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7255 (eval $ac_try) 2>&5 7256 ac_status=$? 7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7258 (exit $ac_status); }; }; then 7259 7260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7261}'` 7262# Check for a 64-bit object if we didn't find anything. 7263if 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; } 7264}'`; fi 7265else 7266 echo "$as_me: failed program was:" >&5 7267sed 's/^/| /' conftest.$ac_ext >&5 7268 7269fi 7270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7271if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7272 7273 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7274 # Warning - without using the other run time loading flags, 7275 # -berok will link without error, but may produce a broken library. 7276 no_undefined_flag=' ${wl}-bernotok' 7277 allow_undefined_flag=' ${wl}-berok' 7278 # -bexpall does not export symbols beginning with underscore (_) 7279 always_export_symbols=yes 7280 # Exported symbols can be pulled into shared objects from archives 7281 whole_archive_flag_spec=' ' 7282 archive_cmds_need_lc=yes 7283 # This is similar to how AIX traditionally builds it's shared libraries. 7284 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7285 fi 7286 fi 7287 ;; 7288 7289 amigaos*) 7290 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)' 7291 hardcode_libdir_flag_spec='-L$libdir' 7292 hardcode_minus_L=yes 7293 # see comment about different semantics on the GNU ld section 7294 ld_shlibs=no 7295 ;; 7296 7297 bsdi4*) 7298 export_dynamic_flag_spec=-rdynamic 7299 ;; 7300 7301 cygwin* | mingw* | pw32*) 7302 # When not using gcc, we currently assume that we are using 7303 # Microsoft Visual C++. 7304 # hardcode_libdir_flag_spec is actually meaningless, as there is 7305 # no search path for DLLs. 7306 hardcode_libdir_flag_spec=' ' 7307 allow_undefined_flag=unsupported 7308 # Tell ltmain to make .lib files, not .a files. 7309 libext=lib 7310 # Tell ltmain to make .dll files, not .so files. 7311 shrext=".dll" 7312 # FIXME: Setting linknames here is a bad hack. 7313 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7314 # The linker will automatically build a .lib file if we build a DLL. 7315 old_archive_From_new_cmds='true' 7316 # FIXME: Should let the user specify the lib program. 7317 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7318 fix_srcfile_path='`cygpath -w "$srcfile"`' 7319 enable_shared_with_static_runtimes=yes 7320 ;; 7321 7322 darwin* | rhapsody*) 7323 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 7324 archive_cmds_need_lc=no 7325 case "$host_os" in 7326 rhapsody* | darwin1.[012]) 7327 allow_undefined_flag='-undefined suppress' 7328 ;; 7329 *) # Darwin 1.3 on 7330 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 7331 ;; 7332 esac 7333 # FIXME: Relying on posixy $() will cause problems for 7334 # cross-compilation, but unfortunately the echo tests do not 7335 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 7336 # `"' quotes if we put them in here... so don't! 7337 lt_int_apple_cc_single_mod=no 7338 output_verbose_link_cmd='echo' 7339 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 7340 lt_int_apple_cc_single_mod=yes 7341 fi 7342 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7343 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7344 else 7345 archive_cmds='$CC -r ${wl}-bind_at_load -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' 7346 fi 7347 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 7348 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7349 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7350 archive_expsym_cmds='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}' 7351 else 7352 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 7353 fi 7354 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7355 hardcode_direct=no 7356 hardcode_automatic=yes 7357 hardcode_shlibpath_var=unsupported 7358 whole_archive_flag_spec='-all_load $convenience' 7359 link_all_deplibs=yes 7360 fi 7361 ;; 7362 7363 dgux*) 7364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7365 hardcode_libdir_flag_spec='-L$libdir' 7366 hardcode_shlibpath_var=no 7367 ;; 7368 7369 freebsd1*) 7370 ld_shlibs=no 7371 ;; 7372 7373 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7374 # support. Future versions do this automatically, but an explicit c++rt0.o 7375 # does not break anything, and helps significantly (at the cost of a little 7376 # extra space). 7377 freebsd2.2*) 7378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7379 hardcode_libdir_flag_spec='-R$libdir' 7380 hardcode_direct=yes 7381 hardcode_shlibpath_var=no 7382 ;; 7383 7384 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7385 freebsd2*) 7386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7387 hardcode_direct=yes 7388 hardcode_minus_L=yes 7389 hardcode_shlibpath_var=no 7390 ;; 7391 7392 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7393 freebsd*) 7394 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7395 hardcode_libdir_flag_spec='-R$libdir' 7396 hardcode_direct=yes 7397 hardcode_shlibpath_var=no 7398 ;; 7399 7400 hpux9*) 7401 if test "$GCC" = yes; then 7402 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' 7403 else 7404 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' 7405 fi 7406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7407 hardcode_libdir_separator=: 7408 hardcode_direct=yes 7409 7410 # hardcode_minus_L: Not really in the search PATH, 7411 # but as the default location of the library. 7412 hardcode_minus_L=yes 7413 export_dynamic_flag_spec='${wl}-E' 7414 ;; 7415 7416 hpux10* | hpux11*) 7417 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7418 case "$host_cpu" in 7419 hppa*64*|ia64*) 7420 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7421 ;; 7422 *) 7423 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7424 ;; 7425 esac 7426 else 7427 case "$host_cpu" in 7428 hppa*64*|ia64*) 7429 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7430 ;; 7431 *) 7432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7433 ;; 7434 esac 7435 fi 7436 if test "$with_gnu_ld" = no; then 7437 case "$host_cpu" in 7438 hppa*64*) 7439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7440 hardcode_libdir_flag_spec_ld='+b $libdir' 7441 hardcode_libdir_separator=: 7442 hardcode_direct=no 7443 hardcode_shlibpath_var=no 7444 ;; 7445 ia64*) 7446 hardcode_libdir_flag_spec='-L$libdir' 7447 hardcode_direct=no 7448 hardcode_shlibpath_var=no 7449 7450 # hardcode_minus_L: Not really in the search PATH, 7451 # but as the default location of the library. 7452 hardcode_minus_L=yes 7453 ;; 7454 *) 7455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7456 hardcode_libdir_separator=: 7457 hardcode_direct=yes 7458 export_dynamic_flag_spec='${wl}-E' 7459 7460 # hardcode_minus_L: Not really in the search PATH, 7461 # but as the default location of the library. 7462 hardcode_minus_L=yes 7463 ;; 7464 esac 7465 fi 7466 ;; 7467 7468 irix5* | irix6* | nonstopux*) 7469 if test "$GCC" = yes; then 7470 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' 7471 else 7472 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' 7473 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7474 fi 7475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7476 hardcode_libdir_separator=: 7477 link_all_deplibs=yes 7478 ;; 7479 7480 netbsd*) 7481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7483 else 7484 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7485 fi 7486 hardcode_libdir_flag_spec='-R$libdir' 7487 hardcode_direct=yes 7488 hardcode_shlibpath_var=no 7489 ;; 7490 7491 newsos6) 7492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7493 hardcode_direct=yes 7494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7495 hardcode_libdir_separator=: 7496 hardcode_shlibpath_var=no 7497 ;; 7498 7499 openbsd*) 7500 hardcode_direct=yes 7501 hardcode_shlibpath_var=no 7502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7503 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7505 export_dynamic_flag_spec='${wl}-E' 7506 else 7507 case $host_os in 7508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7510 hardcode_libdir_flag_spec='-R$libdir' 7511 ;; 7512 *) 7513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7515 ;; 7516 esac 7517 fi 7518 ;; 7519 7520 os2*) 7521 hardcode_libdir_flag_spec='-L$libdir' 7522 hardcode_minus_L=yes 7523 allow_undefined_flag=unsupported 7524 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' 7525 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7526 ;; 7527 7528 osf3*) 7529 if test "$GCC" = yes; then 7530 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7531 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' 7532 else 7533 allow_undefined_flag=' -expect_unresolved \*' 7534 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' 7535 fi 7536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7537 hardcode_libdir_separator=: 7538 ;; 7539 7540 osf4* | osf5*) # as osf3* with the addition of -msym flag 7541 if test "$GCC" = yes; then 7542 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7543 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' 7544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7545 else 7546 allow_undefined_flag=' -expect_unresolved \*' 7547 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' 7548 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7549 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 7550 7551 # Both c and cxx compiler support -rpath directly 7552 hardcode_libdir_flag_spec='-rpath $libdir' 7553 fi 7554 hardcode_libdir_separator=: 7555 ;; 7556 7557 sco3.2v5*) 7558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7559 hardcode_shlibpath_var=no 7560 export_dynamic_flag_spec='${wl}-Bexport' 7561 runpath_var=LD_RUN_PATH 7562 hardcode_runpath_var=yes 7563 ;; 7564 7565 solaris*) 7566 no_undefined_flag=' -z text' 7567 if test "$GCC" = yes; then 7568 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7569 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7570 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7571 else 7572 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7573 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7575 fi 7576 hardcode_libdir_flag_spec='-R$libdir' 7577 hardcode_shlibpath_var=no 7578 case $host_os in 7579 solaris2.[0-5] | solaris2.[0-5].*) ;; 7580 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7581 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7582 esac 7583 link_all_deplibs=yes 7584 ;; 7585 7586 sunos4*) 7587 if test "x$host_vendor" = xsequent; then 7588 # Use $CC to link under sequent, because it throws in some extra .o 7589 # files that make .init and .fini sections work. 7590 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7591 else 7592 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7593 fi 7594 hardcode_libdir_flag_spec='-L$libdir' 7595 hardcode_direct=yes 7596 hardcode_minus_L=yes 7597 hardcode_shlibpath_var=no 7598 ;; 7599 7600 sysv4) 7601 case $host_vendor in 7602 sni) 7603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7604 hardcode_direct=yes # is this really true??? 7605 ;; 7606 siemens) 7607 ## LD is ld it makes a PLAMLIB 7608 ## CC just makes a GrossModule. 7609 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7610 reload_cmds='$CC -r -o $output$reload_objs' 7611 hardcode_direct=no 7612 ;; 7613 motorola) 7614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7615 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7616 ;; 7617 esac 7618 runpath_var='LD_RUN_PATH' 7619 hardcode_shlibpath_var=no 7620 ;; 7621 7622 sysv4.3*) 7623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7624 hardcode_shlibpath_var=no 7625 export_dynamic_flag_spec='-Bexport' 7626 ;; 7627 7628 sysv4*MP*) 7629 if test -d /usr/nec; then 7630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7631 hardcode_shlibpath_var=no 7632 runpath_var=LD_RUN_PATH 7633 hardcode_runpath_var=yes 7634 ld_shlibs=yes 7635 fi 7636 ;; 7637 7638 sysv4.2uw2*) 7639 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7640 hardcode_direct=yes 7641 hardcode_minus_L=no 7642 hardcode_shlibpath_var=no 7643 hardcode_runpath_var=yes 7644 runpath_var=LD_RUN_PATH 7645 ;; 7646 7647 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7648 no_undefined_flag='${wl}-z ${wl}text' 7649 if test "$GCC" = yes; then 7650 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7651 else 7652 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7653 fi 7654 runpath_var='LD_RUN_PATH' 7655 hardcode_shlibpath_var=no 7656 ;; 7657 7658 sysv5*) 7659 no_undefined_flag=' -z text' 7660 # $CC -shared without GNU ld will not create a library from C++ 7661 # object files and a static libstdc++, better avoid it by now 7662 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7663 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7664 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7665 hardcode_libdir_flag_spec= 7666 hardcode_shlibpath_var=no 7667 runpath_var='LD_RUN_PATH' 7668 ;; 7669 7670 uts4*) 7671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7672 hardcode_libdir_flag_spec='-L$libdir' 7673 hardcode_shlibpath_var=no 7674 ;; 7675 7676 *) 7677 ld_shlibs=no 7678 ;; 7679 esac 7680 fi 7681 7682echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7683echo "${ECHO_T}$ld_shlibs" >&6 7684test "$ld_shlibs" = no && can_build_shared=no 7685 7686variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7687if test "$GCC" = yes; then 7688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7689fi 7690 7691# 7692# Do we need to explicitly link libc? 7693# 7694case "x$archive_cmds_need_lc" in 7695x|xyes) 7696 # Assume -lc should be added 7697 archive_cmds_need_lc=yes 7698 7699 if test "$enable_shared" = yes && test "$GCC" = yes; then 7700 case $archive_cmds in 7701 *'~'*) 7702 # FIXME: we may have to deal with multi-command sequences. 7703 ;; 7704 '$CC '*) 7705 # Test whether the compiler implicitly links with -lc since on some 7706 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7707 # to ld, don't add -lc before -lgcc. 7708 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7709echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7710 $rm conftest* 7711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7712 7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7714 (eval $ac_compile) 2>&5 7715 ac_status=$? 7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7717 (exit $ac_status); } 2>conftest.err; then 7718 soname=conftest 7719 lib=conftest 7720 libobjs=conftest.$ac_objext 7721 deplibs= 7722 wl=$lt_prog_compiler_wl 7723 compiler_flags=-v 7724 linker_flags=-v 7725 verstring= 7726 output_objdir=. 7727 libname=conftest 7728 lt_save_allow_undefined_flag=$allow_undefined_flag 7729 allow_undefined_flag= 7730 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7731 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7732 ac_status=$? 7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7734 (exit $ac_status); } 7735 then 7736 archive_cmds_need_lc=no 7737 else 7738 archive_cmds_need_lc=yes 7739 fi 7740 allow_undefined_flag=$lt_save_allow_undefined_flag 7741 else 7742 cat conftest.err 1>&5 7743 fi 7744 $rm conftest* 7745 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7746echo "${ECHO_T}$archive_cmds_need_lc" >&6 7747 ;; 7748 esac 7749 fi 7750 ;; 7751esac 7752 7753echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7754echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7755hardcode_action= 7756if test -n "$hardcode_libdir_flag_spec" || \ 7757 test -n "$runpath_var " || \ 7758 test "X$hardcode_automatic"="Xyes" ; then 7759 7760 # We can hardcode non-existant directories. 7761 if test "$hardcode_direct" != no && 7762 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7763 # have to relink, otherwise we might link with an installed library 7764 # when we should be linking with a yet-to-be-installed one 7765 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 7766 test "$hardcode_minus_L" != no; then 7767 # Linking always hardcodes the temporary library directory. 7768 hardcode_action=relink 7769 else 7770 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7771 hardcode_action=immediate 7772 fi 7773else 7774 # We cannot hardcode anything, or else we can only hardcode existing 7775 # directories. 7776 hardcode_action=unsupported 7777fi 7778echo "$as_me:$LINENO: result: $hardcode_action" >&5 7779echo "${ECHO_T}$hardcode_action" >&6 7780 7781if test "$hardcode_action" = relink; then 7782 # Fast installation is not supported 7783 enable_fast_install=no 7784elif test "$shlibpath_overrides_runpath" = yes || 7785 test "$enable_shared" = no; then 7786 # Fast installation is not necessary 7787 enable_fast_install=needless 7788fi 7789 7790striplib= 7791old_striplib= 7792echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7793echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7794if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7795 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7796 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7797 echo "$as_me:$LINENO: result: yes" >&5 7798echo "${ECHO_T}yes" >&6 7799else 7800# FIXME - insert some real tests, host_os isn't really good enough 7801 case $host_os in 7802 darwin*) 7803 if test -n "$STRIP" ; then 7804 striplib="$STRIP -x" 7805 echo "$as_me:$LINENO: result: yes" >&5 7806echo "${ECHO_T}yes" >&6 7807 else 7808 echo "$as_me:$LINENO: result: no" >&5 7809echo "${ECHO_T}no" >&6 7810fi 7811 ;; 7812 *) 7813 echo "$as_me:$LINENO: result: no" >&5 7814echo "${ECHO_T}no" >&6 7815 ;; 7816 esac 7817fi 7818 7819echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7820echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7821library_names_spec= 7822libname_spec='lib$name' 7823soname_spec= 7824shrext=".so" 7825postinstall_cmds= 7826postuninstall_cmds= 7827finish_cmds= 7828finish_eval= 7829shlibpath_var= 7830shlibpath_overrides_runpath=unknown 7831version_type=none 7832dynamic_linker="$host_os ld.so" 7833sys_lib_dlsearch_path_spec="/lib /usr/lib" 7834if test "$GCC" = yes; then 7835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7836 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7837 # if the path contains ";" then we assume it to be the separator 7838 # otherwise default to the standard path separator (i.e. ":") - it is 7839 # assumed that no part of a normal pathname contains ";" but that should 7840 # okay in the real world where ";" in dirpaths is itself problematic. 7841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7842 else 7843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7844 fi 7845else 7846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7847fi 7848need_lib_prefix=unknown 7849hardcode_into_libs=no 7850 7851# when you set need_version to no, make sure it does not cause -set_version 7852# flags to be left without arguments 7853need_version=unknown 7854 7855case $host_os in 7856aix3*) 7857 version_type=linux 7858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7859 shlibpath_var=LIBPATH 7860 7861 # AIX 3 has no versioning support, so we append a major version to the name. 7862 soname_spec='${libname}${release}${shared_ext}$major' 7863 ;; 7864 7865aix4* | aix5*) 7866 version_type=linux 7867 need_lib_prefix=no 7868 need_version=no 7869 hardcode_into_libs=yes 7870 if test "$host_cpu" = ia64; then 7871 # AIX 5 supports IA64 7872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7873 shlibpath_var=LD_LIBRARY_PATH 7874 else 7875 # With GCC up to 2.95.x, collect2 would create an import file 7876 # for dependence libraries. The import file would start with 7877 # the line `#! .'. This would cause the generated library to 7878 # depend on `.', always an invalid library. This was fixed in 7879 # development snapshots of GCC prior to 3.0. 7880 case $host_os in 7881 aix4 | aix4.[01] | aix4.[01].*) 7882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7883 echo ' yes ' 7884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7885 : 7886 else 7887 can_build_shared=no 7888 fi 7889 ;; 7890 esac 7891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7892 # soname into executable. Probably we can add versioning support to 7893 # collect2, so additional links can be useful in future. 7894 if test "$aix_use_runtimelinking" = yes; then 7895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7896 # instead of lib<name>.a to let people know that these are not 7897 # typical AIX shared libraries. 7898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7899 else 7900 # We preserve .a as extension for shared libraries through AIX4.2 7901 # and later when we are not doing run time linking. 7902 library_names_spec='${libname}${release}.a $libname.a' 7903 soname_spec='${libname}${release}${shared_ext}$major' 7904 fi 7905 shlibpath_var=LIBPATH 7906 fi 7907 ;; 7908 7909amigaos*) 7910 library_names_spec='$libname.ixlibrary $libname.a' 7911 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7912 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' 7913 ;; 7914 7915beos*) 7916 library_names_spec='${libname}${shared_ext}' 7917 dynamic_linker="$host_os ld.so" 7918 shlibpath_var=LIBRARY_PATH 7919 ;; 7920 7921bsdi4*) 7922 version_type=linux 7923 need_version=no 7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7925 soname_spec='${libname}${release}${shared_ext}$major' 7926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7927 shlibpath_var=LD_LIBRARY_PATH 7928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7930 # the default ld.so.conf also contains /usr/contrib/lib and 7931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7932 # libtool to hard-code these into programs 7933 ;; 7934 7935cygwin* | mingw* | pw32*) 7936 version_type=windows 7937 shrext=".dll" 7938 need_version=no 7939 need_lib_prefix=no 7940 7941 case $GCC,$host_os in 7942 yes,cygwin* | yes,mingw* | yes,pw32*) 7943 library_names_spec='$libname.dll.a' 7944 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7945 postinstall_cmds='base_file=`basename \${file}`~ 7946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7947 dldir=$destdir/`dirname \$dlpath`~ 7948 test -d \$dldir || mkdir -p \$dldir~ 7949 $install_prog $dir/$dlname \$dldir/$dlname' 7950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7951 dlpath=$dir/\$dldll~ 7952 $rm \$dlpath' 7953 shlibpath_overrides_runpath=yes 7954 7955 case $host_os in 7956 cygwin*) 7957 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7959 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 7960 ;; 7961 mingw*) 7962 # MinGW DLLs use traditional 'lib' prefix 7963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7965 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7966 # It is most probably a Windows format PATH printed by 7967 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7968 # path with ; separators, and with drive letters. We can handle the 7969 # drive letters (cygwin fileutils understands them), so leave them, 7970 # especially as we might pass files found there to a mingw objdump, 7971 # which wouldn't understand a cygwinified path. Ahh. 7972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7973 else 7974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7975 fi 7976 ;; 7977 pw32*) 7978 # pw32 DLLs use 'pw' prefix rather than 'lib' 7979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7980 ;; 7981 esac 7982 ;; 7983 7984 *) 7985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7986 ;; 7987 esac 7988 dynamic_linker='Win32 ld.exe' 7989 # FIXME: first we should search . and the directory the executable is in 7990 shlibpath_var=PATH 7991 ;; 7992 7993darwin* | rhapsody*) 7994 dynamic_linker="$host_os dyld" 7995 version_type=darwin 7996 need_lib_prefix=no 7997 need_version=no 7998 # FIXME: Relying on posixy $() will cause problems for 7999 # cross-compilation, but unfortunately the echo tests do not 8000 # yet detect zsh echo's removal of \ escapes. 8001 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8002 soname_spec='${libname}${release}${major}$shared_ext' 8003 shlibpath_overrides_runpath=yes 8004 shlibpath_var=DYLD_LIBRARY_PATH 8005 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 8006 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8007 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 8008 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"` 8009 fi 8010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8011 ;; 8012 8013dgux*) 8014 version_type=linux 8015 need_lib_prefix=no 8016 need_version=no 8017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8018 soname_spec='${libname}${release}${shared_ext}$major' 8019 shlibpath_var=LD_LIBRARY_PATH 8020 ;; 8021 8022freebsd1*) 8023 dynamic_linker=no 8024 ;; 8025 8026freebsd*) 8027 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 8028 version_type=freebsd-$objformat 8029 case $version_type in 8030 freebsd-elf*) 8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8032 need_version=no 8033 need_lib_prefix=no 8034 ;; 8035 freebsd-*) 8036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8037 need_version=yes 8038 ;; 8039 esac 8040 shlibpath_var=LD_LIBRARY_PATH 8041 case $host_os in 8042 freebsd2*) 8043 shlibpath_overrides_runpath=yes 8044 ;; 8045 freebsd3.01* | freebsdelf3.01*) 8046 shlibpath_overrides_runpath=yes 8047 hardcode_into_libs=yes 8048 ;; 8049 *) # from 3.2 on 8050 shlibpath_overrides_runpath=no 8051 hardcode_into_libs=yes 8052 ;; 8053 esac 8054 ;; 8055 8056gnu*) 8057 version_type=linux 8058 need_lib_prefix=no 8059 need_version=no 8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8061 soname_spec='${libname}${release}${shared_ext}$major' 8062 shlibpath_var=LD_LIBRARY_PATH 8063 hardcode_into_libs=yes 8064 ;; 8065 8066hpux9* | hpux10* | hpux11*) 8067 # Give a soname corresponding to the major version so that dld.sl refuses to 8068 # link against other versions. 8069 version_type=sunos 8070 need_lib_prefix=no 8071 need_version=no 8072 case "$host_cpu" in 8073 ia64*) 8074 shrext='.so' 8075 hardcode_into_libs=yes 8076 dynamic_linker="$host_os dld.so" 8077 shlibpath_var=LD_LIBRARY_PATH 8078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8080 soname_spec='${libname}${release}${shared_ext}$major' 8081 if test "X$HPUX_IA64_MODE" = X32; then 8082 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8083 else 8084 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8085 fi 8086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8087 ;; 8088 hppa*64*) 8089 shrext='.sl' 8090 hardcode_into_libs=yes 8091 dynamic_linker="$host_os dld.sl" 8092 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8095 soname_spec='${libname}${release}${shared_ext}$major' 8096 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8098 ;; 8099 *) 8100 shrext='.sl' 8101 dynamic_linker="$host_os dld.sl" 8102 shlibpath_var=SHLIB_PATH 8103 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8105 soname_spec='${libname}${release}${shared_ext}$major' 8106 ;; 8107 esac 8108 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8109 postinstall_cmds='chmod 555 $lib' 8110 ;; 8111 8112irix5* | irix6* | nonstopux*) 8113 case $host_os in 8114 nonstopux*) version_type=nonstopux ;; 8115 *) 8116 if test "$lt_cv_prog_gnu_ld" = yes; then 8117 version_type=linux 8118 else 8119 version_type=irix 8120 fi ;; 8121 esac 8122 need_lib_prefix=no 8123 need_version=no 8124 soname_spec='${libname}${release}${shared_ext}$major' 8125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8126 case $host_os in 8127 irix5* | nonstopux*) 8128 libsuff= shlibsuff= 8129 ;; 8130 *) 8131 case $LD in # libtool.m4 will add one of these switches to LD 8132 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8133 libsuff= shlibsuff= libmagic=32-bit;; 8134 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8135 libsuff=32 shlibsuff=N32 libmagic=N32;; 8136 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8137 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8138 *) libsuff= shlibsuff= libmagic=never-match;; 8139 esac 8140 ;; 8141 esac 8142 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8143 shlibpath_overrides_runpath=no 8144 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8145 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8146 hardcode_into_libs=yes 8147 ;; 8148 8149# No shared lib support for Linux oldld, aout, or coff. 8150linux*oldld* | linux*aout* | linux*coff*) 8151 dynamic_linker=no 8152 ;; 8153 8154# This must be Linux ELF. 8155linux*) 8156 version_type=linux 8157 need_lib_prefix=no 8158 need_version=no 8159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8160 soname_spec='${libname}${release}${shared_ext}$major' 8161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8162 shlibpath_var=LD_LIBRARY_PATH 8163 shlibpath_overrides_runpath=no 8164 # This implies no fast_install, which is unacceptable. 8165 # Some rework will be needed to allow for fast_install 8166 # before this can be enabled. 8167 hardcode_into_libs=yes 8168 8169 # We used to test for /lib/ld.so.1 and disable shared libraries on 8170 # powerpc, because MkLinux only supported shared libraries with the 8171 # GNU dynamic linker. Since this was broken with cross compilers, 8172 # most powerpc-linux boxes support dynamic linking these days and 8173 # people can always --disable-shared, the test was removed, and we 8174 # assume the GNU/Linux dynamic linker is in use. 8175 dynamic_linker='GNU/Linux ld.so' 8176 ;; 8177 8178netbsd*) 8179 version_type=sunos 8180 need_lib_prefix=no 8181 need_version=no 8182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8185 dynamic_linker='NetBSD (a.out) ld.so' 8186 else 8187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 8188 soname_spec='${libname}${release}${shared_ext}$major' 8189 dynamic_linker='NetBSD ld.elf_so' 8190 fi 8191 shlibpath_var=LD_LIBRARY_PATH 8192 shlibpath_overrides_runpath=yes 8193 hardcode_into_libs=yes 8194 ;; 8195 8196newsos6) 8197 version_type=linux 8198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8199 shlibpath_var=LD_LIBRARY_PATH 8200 shlibpath_overrides_runpath=yes 8201 ;; 8202 8203nto-qnx) 8204 version_type=linux 8205 need_lib_prefix=no 8206 need_version=no 8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8208 soname_spec='${libname}${release}${shared_ext}$major' 8209 shlibpath_var=LD_LIBRARY_PATH 8210 shlibpath_overrides_runpath=yes 8211 ;; 8212 8213openbsd*) 8214 version_type=sunos 8215 need_lib_prefix=no 8216 need_version=no 8217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8219 shlibpath_var=LD_LIBRARY_PATH 8220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8221 case $host_os in 8222 openbsd2.[89] | openbsd2.[89].*) 8223 shlibpath_overrides_runpath=no 8224 ;; 8225 *) 8226 shlibpath_overrides_runpath=yes 8227 ;; 8228 esac 8229 else 8230 shlibpath_overrides_runpath=yes 8231 fi 8232 ;; 8233 8234os2*) 8235 libname_spec='$name' 8236 shrext=".dll" 8237 need_lib_prefix=no 8238 library_names_spec='$libname${shared_ext} $libname.a' 8239 dynamic_linker='OS/2 ld.exe' 8240 shlibpath_var=LIBPATH 8241 ;; 8242 8243osf3* | osf4* | osf5*) 8244 version_type=osf 8245 need_lib_prefix=no 8246 need_version=no 8247 soname_spec='${libname}${release}${shared_ext}$major' 8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8249 shlibpath_var=LD_LIBRARY_PATH 8250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8252 ;; 8253 8254sco3.2v5*) 8255 version_type=osf 8256 soname_spec='${libname}${release}${shared_ext}$major' 8257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8258 shlibpath_var=LD_LIBRARY_PATH 8259 ;; 8260 8261solaris*) 8262 version_type=linux 8263 need_lib_prefix=no 8264 need_version=no 8265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8266 soname_spec='${libname}${release}${shared_ext}$major' 8267 shlibpath_var=LD_LIBRARY_PATH 8268 shlibpath_overrides_runpath=yes 8269 hardcode_into_libs=yes 8270 # ldd complains unless libraries are executable 8271 postinstall_cmds='chmod +x $lib' 8272 ;; 8273 8274sunos4*) 8275 version_type=sunos 8276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8278 shlibpath_var=LD_LIBRARY_PATH 8279 shlibpath_overrides_runpath=yes 8280 if test "$with_gnu_ld" = yes; then 8281 need_lib_prefix=no 8282 fi 8283 need_version=yes 8284 ;; 8285 8286sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8287 version_type=linux 8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8289 soname_spec='${libname}${release}${shared_ext}$major' 8290 shlibpath_var=LD_LIBRARY_PATH 8291 case $host_vendor in 8292 sni) 8293 shlibpath_overrides_runpath=no 8294 need_lib_prefix=no 8295 export_dynamic_flag_spec='${wl}-Blargedynsym' 8296 runpath_var=LD_RUN_PATH 8297 ;; 8298 siemens) 8299 need_lib_prefix=no 8300 ;; 8301 motorola) 8302 need_lib_prefix=no 8303 need_version=no 8304 shlibpath_overrides_runpath=no 8305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8306 ;; 8307 esac 8308 ;; 8309 8310sysv4*MP*) 8311 if test -d /usr/nec ;then 8312 version_type=linux 8313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8314 soname_spec='$libname${shared_ext}.$major' 8315 shlibpath_var=LD_LIBRARY_PATH 8316 fi 8317 ;; 8318 8319uts4*) 8320 version_type=linux 8321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8322 soname_spec='${libname}${release}${shared_ext}$major' 8323 shlibpath_var=LD_LIBRARY_PATH 8324 ;; 8325 8326*) 8327 dynamic_linker=no 8328 ;; 8329esac 8330echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8331echo "${ECHO_T}$dynamic_linker" >&6 8332test "$dynamic_linker" = no && can_build_shared=no 8333 8334if test "x$enable_dlopen" != xyes; then 8335 enable_dlopen=unknown 8336 enable_dlopen_self=unknown 8337 enable_dlopen_self_static=unknown 8338else 8339 lt_cv_dlopen=no 8340 lt_cv_dlopen_libs= 8341 8342 case $host_os in 8343 beos*) 8344 lt_cv_dlopen="load_add_on" 8345 lt_cv_dlopen_libs= 8346 lt_cv_dlopen_self=yes 8347 ;; 8348 8349 mingw* | pw32*) 8350 lt_cv_dlopen="LoadLibrary" 8351 lt_cv_dlopen_libs= 8352 ;; 8353 8354 cygwin*) 8355 lt_cv_dlopen="dlopen" 8356 lt_cv_dlopen_libs= 8357 ;; 8358 8359 darwin*) 8360 # if libdl is installed we need to link against it 8361 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8362echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8363if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8364 echo $ECHO_N "(cached) $ECHO_C" >&6 8365else 8366 ac_check_lib_save_LIBS=$LIBS 8367LIBS="-ldl $LIBS" 8368cat >conftest.$ac_ext <<_ACEOF 8369#line $LINENO "configure" 8370/* confdefs.h. */ 8371_ACEOF 8372cat confdefs.h >>conftest.$ac_ext 8373cat >>conftest.$ac_ext <<_ACEOF 8374/* end confdefs.h. */ 8375 8376/* Override any gcc2 internal prototype to avoid an error. */ 8377#ifdef __cplusplus 8378extern "C" 8379#endif 8380/* We use char because int might match the return type of a gcc2 8381 builtin and then its argument prototype would still apply. */ 8382char dlopen (); 8383int 8384main () 8385{ 8386dlopen (); 8387 ; 8388 return 0; 8389} 8390_ACEOF 8391rm -f conftest.$ac_objext conftest$ac_exeext 8392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8393 (eval $ac_link) 2>&5 8394 ac_status=$? 8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8396 (exit $ac_status); } && 8397 { ac_try='test -s conftest$ac_exeext' 8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8399 (eval $ac_try) 2>&5 8400 ac_status=$? 8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8402 (exit $ac_status); }; }; then 8403 ac_cv_lib_dl_dlopen=yes 8404else 8405 echo "$as_me: failed program was:" >&5 8406sed 's/^/| /' conftest.$ac_ext >&5 8407 8408ac_cv_lib_dl_dlopen=no 8409fi 8410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8411LIBS=$ac_check_lib_save_LIBS 8412fi 8413echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8414echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8415if test $ac_cv_lib_dl_dlopen = yes; then 8416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8417else 8418 8419 lt_cv_dlopen="dyld" 8420 lt_cv_dlopen_libs= 8421 lt_cv_dlopen_self=yes 8422 8423fi 8424 8425 ;; 8426 8427 *) 8428 echo "$as_me:$LINENO: checking for shl_load" >&5 8429echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8430if test "${ac_cv_func_shl_load+set}" = set; then 8431 echo $ECHO_N "(cached) $ECHO_C" >&6 8432else 8433 cat >conftest.$ac_ext <<_ACEOF 8434#line $LINENO "configure" 8435/* confdefs.h. */ 8436_ACEOF 8437cat confdefs.h >>conftest.$ac_ext 8438cat >>conftest.$ac_ext <<_ACEOF 8439/* end confdefs.h. */ 8440/* System header to define __stub macros and hopefully few prototypes, 8441 which can conflict with char shl_load (); below. 8442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8443 <limits.h> exists even on freestanding compilers. */ 8444#ifdef __STDC__ 8445# include <limits.h> 8446#else 8447# include <assert.h> 8448#endif 8449/* Override any gcc2 internal prototype to avoid an error. */ 8450#ifdef __cplusplus 8451extern "C" 8452{ 8453#endif 8454/* We use char because int might match the return type of a gcc2 8455 builtin and then its argument prototype would still apply. */ 8456char shl_load (); 8457/* The GNU C library defines this for functions which it implements 8458 to always fail with ENOSYS. Some functions are actually named 8459 something starting with __ and the normal name is an alias. */ 8460#if defined (__stub_shl_load) || defined (__stub___shl_load) 8461choke me 8462#else 8463char (*f) () = shl_load; 8464#endif 8465#ifdef __cplusplus 8466} 8467#endif 8468 8469int 8470main () 8471{ 8472return f != shl_load; 8473 ; 8474 return 0; 8475} 8476_ACEOF 8477rm -f conftest.$ac_objext conftest$ac_exeext 8478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8479 (eval $ac_link) 2>&5 8480 ac_status=$? 8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8482 (exit $ac_status); } && 8483 { ac_try='test -s conftest$ac_exeext' 8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8485 (eval $ac_try) 2>&5 8486 ac_status=$? 8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8488 (exit $ac_status); }; }; then 8489 ac_cv_func_shl_load=yes 8490else 8491 echo "$as_me: failed program was:" >&5 8492sed 's/^/| /' conftest.$ac_ext >&5 8493 8494ac_cv_func_shl_load=no 8495fi 8496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8497fi 8498echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8499echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8500if test $ac_cv_func_shl_load = yes; then 8501 lt_cv_dlopen="shl_load" 8502else 8503 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8504echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8505if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8506 echo $ECHO_N "(cached) $ECHO_C" >&6 8507else 8508 ac_check_lib_save_LIBS=$LIBS 8509LIBS="-ldld $LIBS" 8510cat >conftest.$ac_ext <<_ACEOF 8511#line $LINENO "configure" 8512/* confdefs.h. */ 8513_ACEOF 8514cat confdefs.h >>conftest.$ac_ext 8515cat >>conftest.$ac_ext <<_ACEOF 8516/* end confdefs.h. */ 8517 8518/* Override any gcc2 internal prototype to avoid an error. */ 8519#ifdef __cplusplus 8520extern "C" 8521#endif 8522/* We use char because int might match the return type of a gcc2 8523 builtin and then its argument prototype would still apply. */ 8524char shl_load (); 8525int 8526main () 8527{ 8528shl_load (); 8529 ; 8530 return 0; 8531} 8532_ACEOF 8533rm -f conftest.$ac_objext conftest$ac_exeext 8534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8535 (eval $ac_link) 2>&5 8536 ac_status=$? 8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8538 (exit $ac_status); } && 8539 { ac_try='test -s conftest$ac_exeext' 8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8541 (eval $ac_try) 2>&5 8542 ac_status=$? 8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8544 (exit $ac_status); }; }; then 8545 ac_cv_lib_dld_shl_load=yes 8546else 8547 echo "$as_me: failed program was:" >&5 8548sed 's/^/| /' conftest.$ac_ext >&5 8549 8550ac_cv_lib_dld_shl_load=no 8551fi 8552rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8553LIBS=$ac_check_lib_save_LIBS 8554fi 8555echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8556echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8557if test $ac_cv_lib_dld_shl_load = yes; then 8558 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8559else 8560 echo "$as_me:$LINENO: checking for dlopen" >&5 8561echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8562if test "${ac_cv_func_dlopen+set}" = set; then 8563 echo $ECHO_N "(cached) $ECHO_C" >&6 8564else 8565 cat >conftest.$ac_ext <<_ACEOF 8566#line $LINENO "configure" 8567/* confdefs.h. */ 8568_ACEOF 8569cat confdefs.h >>conftest.$ac_ext 8570cat >>conftest.$ac_ext <<_ACEOF 8571/* end confdefs.h. */ 8572/* System header to define __stub macros and hopefully few prototypes, 8573 which can conflict with char dlopen (); below. 8574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8575 <limits.h> exists even on freestanding compilers. */ 8576#ifdef __STDC__ 8577# include <limits.h> 8578#else 8579# include <assert.h> 8580#endif 8581/* Override any gcc2 internal prototype to avoid an error. */ 8582#ifdef __cplusplus 8583extern "C" 8584{ 8585#endif 8586/* We use char because int might match the return type of a gcc2 8587 builtin and then its argument prototype would still apply. */ 8588char dlopen (); 8589/* The GNU C library defines this for functions which it implements 8590 to always fail with ENOSYS. Some functions are actually named 8591 something starting with __ and the normal name is an alias. */ 8592#if defined (__stub_dlopen) || defined (__stub___dlopen) 8593choke me 8594#else 8595char (*f) () = dlopen; 8596#endif 8597#ifdef __cplusplus 8598} 8599#endif 8600 8601int 8602main () 8603{ 8604return f != dlopen; 8605 ; 8606 return 0; 8607} 8608_ACEOF 8609rm -f conftest.$ac_objext conftest$ac_exeext 8610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8611 (eval $ac_link) 2>&5 8612 ac_status=$? 8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8614 (exit $ac_status); } && 8615 { ac_try='test -s conftest$ac_exeext' 8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8617 (eval $ac_try) 2>&5 8618 ac_status=$? 8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8620 (exit $ac_status); }; }; then 8621 ac_cv_func_dlopen=yes 8622else 8623 echo "$as_me: failed program was:" >&5 8624sed 's/^/| /' conftest.$ac_ext >&5 8625 8626ac_cv_func_dlopen=no 8627fi 8628rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8629fi 8630echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8631echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8632if test $ac_cv_func_dlopen = yes; then 8633 lt_cv_dlopen="dlopen" 8634else 8635 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8636echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8637if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8638 echo $ECHO_N "(cached) $ECHO_C" >&6 8639else 8640 ac_check_lib_save_LIBS=$LIBS 8641LIBS="-ldl $LIBS" 8642cat >conftest.$ac_ext <<_ACEOF 8643#line $LINENO "configure" 8644/* confdefs.h. */ 8645_ACEOF 8646cat confdefs.h >>conftest.$ac_ext 8647cat >>conftest.$ac_ext <<_ACEOF 8648/* end confdefs.h. */ 8649 8650/* Override any gcc2 internal prototype to avoid an error. */ 8651#ifdef __cplusplus 8652extern "C" 8653#endif 8654/* We use char because int might match the return type of a gcc2 8655 builtin and then its argument prototype would still apply. */ 8656char dlopen (); 8657int 8658main () 8659{ 8660dlopen (); 8661 ; 8662 return 0; 8663} 8664_ACEOF 8665rm -f conftest.$ac_objext conftest$ac_exeext 8666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8667 (eval $ac_link) 2>&5 8668 ac_status=$? 8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8670 (exit $ac_status); } && 8671 { ac_try='test -s conftest$ac_exeext' 8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8673 (eval $ac_try) 2>&5 8674 ac_status=$? 8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8676 (exit $ac_status); }; }; then 8677 ac_cv_lib_dl_dlopen=yes 8678else 8679 echo "$as_me: failed program was:" >&5 8680sed 's/^/| /' conftest.$ac_ext >&5 8681 8682ac_cv_lib_dl_dlopen=no 8683fi 8684rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8685LIBS=$ac_check_lib_save_LIBS 8686fi 8687echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8688echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8689if test $ac_cv_lib_dl_dlopen = yes; then 8690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8691else 8692 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8693echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8694if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8695 echo $ECHO_N "(cached) $ECHO_C" >&6 8696else 8697 ac_check_lib_save_LIBS=$LIBS 8698LIBS="-lsvld $LIBS" 8699cat >conftest.$ac_ext <<_ACEOF 8700#line $LINENO "configure" 8701/* confdefs.h. */ 8702_ACEOF 8703cat confdefs.h >>conftest.$ac_ext 8704cat >>conftest.$ac_ext <<_ACEOF 8705/* end confdefs.h. */ 8706 8707/* Override any gcc2 internal prototype to avoid an error. */ 8708#ifdef __cplusplus 8709extern "C" 8710#endif 8711/* We use char because int might match the return type of a gcc2 8712 builtin and then its argument prototype would still apply. */ 8713char dlopen (); 8714int 8715main () 8716{ 8717dlopen (); 8718 ; 8719 return 0; 8720} 8721_ACEOF 8722rm -f conftest.$ac_objext conftest$ac_exeext 8723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8724 (eval $ac_link) 2>&5 8725 ac_status=$? 8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8727 (exit $ac_status); } && 8728 { ac_try='test -s conftest$ac_exeext' 8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8730 (eval $ac_try) 2>&5 8731 ac_status=$? 8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8733 (exit $ac_status); }; }; then 8734 ac_cv_lib_svld_dlopen=yes 8735else 8736 echo "$as_me: failed program was:" >&5 8737sed 's/^/| /' conftest.$ac_ext >&5 8738 8739ac_cv_lib_svld_dlopen=no 8740fi 8741rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8742LIBS=$ac_check_lib_save_LIBS 8743fi 8744echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8745echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8746if test $ac_cv_lib_svld_dlopen = yes; then 8747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8748else 8749 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8750echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8751if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8752 echo $ECHO_N "(cached) $ECHO_C" >&6 8753else 8754 ac_check_lib_save_LIBS=$LIBS 8755LIBS="-ldld $LIBS" 8756cat >conftest.$ac_ext <<_ACEOF 8757#line $LINENO "configure" 8758/* confdefs.h. */ 8759_ACEOF 8760cat confdefs.h >>conftest.$ac_ext 8761cat >>conftest.$ac_ext <<_ACEOF 8762/* end confdefs.h. */ 8763 8764/* Override any gcc2 internal prototype to avoid an error. */ 8765#ifdef __cplusplus 8766extern "C" 8767#endif 8768/* We use char because int might match the return type of a gcc2 8769 builtin and then its argument prototype would still apply. */ 8770char dld_link (); 8771int 8772main () 8773{ 8774dld_link (); 8775 ; 8776 return 0; 8777} 8778_ACEOF 8779rm -f conftest.$ac_objext conftest$ac_exeext 8780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8781 (eval $ac_link) 2>&5 8782 ac_status=$? 8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8784 (exit $ac_status); } && 8785 { ac_try='test -s conftest$ac_exeext' 8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8787 (eval $ac_try) 2>&5 8788 ac_status=$? 8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8790 (exit $ac_status); }; }; then 8791 ac_cv_lib_dld_dld_link=yes 8792else 8793 echo "$as_me: failed program was:" >&5 8794sed 's/^/| /' conftest.$ac_ext >&5 8795 8796ac_cv_lib_dld_dld_link=no 8797fi 8798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8799LIBS=$ac_check_lib_save_LIBS 8800fi 8801echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8802echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8803if test $ac_cv_lib_dld_dld_link = yes; then 8804 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8805fi 8806 8807 8808fi 8809 8810 8811fi 8812 8813 8814fi 8815 8816 8817fi 8818 8819 8820fi 8821 8822 ;; 8823 esac 8824 8825 if test "x$lt_cv_dlopen" != xno; then 8826 enable_dlopen=yes 8827 else 8828 enable_dlopen=no 8829 fi 8830 8831 case $lt_cv_dlopen in 8832 dlopen) 8833 save_CPPFLAGS="$CPPFLAGS" 8834 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8835 8836 save_LDFLAGS="$LDFLAGS" 8837 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8838 8839 save_LIBS="$LIBS" 8840 LIBS="$lt_cv_dlopen_libs $LIBS" 8841 8842 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8843echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8844if test "${lt_cv_dlopen_self+set}" = set; then 8845 echo $ECHO_N "(cached) $ECHO_C" >&6 8846else 8847 if test "$cross_compiling" = yes; then : 8848 lt_cv_dlopen_self=cross 8849else 8850 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8851 lt_status=$lt_dlunknown 8852 cat > conftest.$ac_ext <<EOF 8853#line 8853 "configure" 8854#include "confdefs.h" 8855 8856#if HAVE_DLFCN_H 8857#include <dlfcn.h> 8858#endif 8859 8860#include <stdio.h> 8861 8862#ifdef RTLD_GLOBAL 8863# define LT_DLGLOBAL RTLD_GLOBAL 8864#else 8865# ifdef DL_GLOBAL 8866# define LT_DLGLOBAL DL_GLOBAL 8867# else 8868# define LT_DLGLOBAL 0 8869# endif 8870#endif 8871 8872/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8873 find out it does not work in some platform. */ 8874#ifndef LT_DLLAZY_OR_NOW 8875# ifdef RTLD_LAZY 8876# define LT_DLLAZY_OR_NOW RTLD_LAZY 8877# else 8878# ifdef DL_LAZY 8879# define LT_DLLAZY_OR_NOW DL_LAZY 8880# else 8881# ifdef RTLD_NOW 8882# define LT_DLLAZY_OR_NOW RTLD_NOW 8883# else 8884# ifdef DL_NOW 8885# define LT_DLLAZY_OR_NOW DL_NOW 8886# else 8887# define LT_DLLAZY_OR_NOW 0 8888# endif 8889# endif 8890# endif 8891# endif 8892#endif 8893 8894#ifdef __cplusplus 8895extern "C" void exit (int); 8896#endif 8897 8898void fnord() { int i=42;} 8899int main () 8900{ 8901 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8902 int status = $lt_dlunknown; 8903 8904 if (self) 8905 { 8906 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8907 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8908 /* dlclose (self); */ 8909 } 8910 8911 exit (status); 8912} 8913EOF 8914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8915 (eval $ac_link) 2>&5 8916 ac_status=$? 8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8918 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8919 (./conftest; exit; ) 2>/dev/null 8920 lt_status=$? 8921 case x$lt_status in 8922 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8923 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8924 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8925 esac 8926 else : 8927 # compilation failed 8928 lt_cv_dlopen_self=no 8929 fi 8930fi 8931rm -fr conftest* 8932 8933 8934fi 8935echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8936echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8937 8938 if test "x$lt_cv_dlopen_self" = xyes; then 8939 LDFLAGS="$LDFLAGS $link_static_flag" 8940 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8941echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8942if test "${lt_cv_dlopen_self_static+set}" = set; then 8943 echo $ECHO_N "(cached) $ECHO_C" >&6 8944else 8945 if test "$cross_compiling" = yes; then : 8946 lt_cv_dlopen_self_static=cross 8947else 8948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8949 lt_status=$lt_dlunknown 8950 cat > conftest.$ac_ext <<EOF 8951#line 8951 "configure" 8952#include "confdefs.h" 8953 8954#if HAVE_DLFCN_H 8955#include <dlfcn.h> 8956#endif 8957 8958#include <stdio.h> 8959 8960#ifdef RTLD_GLOBAL 8961# define LT_DLGLOBAL RTLD_GLOBAL 8962#else 8963# ifdef DL_GLOBAL 8964# define LT_DLGLOBAL DL_GLOBAL 8965# else 8966# define LT_DLGLOBAL 0 8967# endif 8968#endif 8969 8970/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8971 find out it does not work in some platform. */ 8972#ifndef LT_DLLAZY_OR_NOW 8973# ifdef RTLD_LAZY 8974# define LT_DLLAZY_OR_NOW RTLD_LAZY 8975# else 8976# ifdef DL_LAZY 8977# define LT_DLLAZY_OR_NOW DL_LAZY 8978# else 8979# ifdef RTLD_NOW 8980# define LT_DLLAZY_OR_NOW RTLD_NOW 8981# else 8982# ifdef DL_NOW 8983# define LT_DLLAZY_OR_NOW DL_NOW 8984# else 8985# define LT_DLLAZY_OR_NOW 0 8986# endif 8987# endif 8988# endif 8989# endif 8990#endif 8991 8992#ifdef __cplusplus 8993extern "C" void exit (int); 8994#endif 8995 8996void fnord() { int i=42;} 8997int main () 8998{ 8999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9000 int status = $lt_dlunknown; 9001 9002 if (self) 9003 { 9004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9006 /* dlclose (self); */ 9007 } 9008 9009 exit (status); 9010} 9011EOF 9012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9013 (eval $ac_link) 2>&5 9014 ac_status=$? 9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9016 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9017 (./conftest; exit; ) 2>/dev/null 9018 lt_status=$? 9019 case x$lt_status in 9020 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9021 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9022 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9023 esac 9024 else : 9025 # compilation failed 9026 lt_cv_dlopen_self_static=no 9027 fi 9028fi 9029rm -fr conftest* 9030 9031 9032fi 9033echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9034echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9035 fi 9036 9037 CPPFLAGS="$save_CPPFLAGS" 9038 LDFLAGS="$save_LDFLAGS" 9039 LIBS="$save_LIBS" 9040 ;; 9041 esac 9042 9043 case $lt_cv_dlopen_self in 9044 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9045 *) enable_dlopen_self=unknown ;; 9046 esac 9047 9048 case $lt_cv_dlopen_self_static in 9049 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9050 *) enable_dlopen_self_static=unknown ;; 9051 esac 9052fi 9053 9054 9055# Report which librarie types wil actually be built 9056echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9057echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9058echo "$as_me:$LINENO: result: $can_build_shared" >&5 9059echo "${ECHO_T}$can_build_shared" >&6 9060 9061echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9062echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9063test "$can_build_shared" = "no" && enable_shared=no 9064 9065# On AIX, shared libraries and static libraries use the same namespace, and 9066# are all built from PIC. 9067case "$host_os" in 9068aix3*) 9069 test "$enable_shared" = yes && enable_static=no 9070 if test -n "$RANLIB"; then 9071 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9072 postinstall_cmds='$RANLIB $lib' 9073 fi 9074 ;; 9075 9076aix4*) 9077 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9078 test "$enable_shared" = yes && enable_static=no 9079 fi 9080 ;; 9081 darwin* | rhapsody*) 9082 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 9083 archive_cmds_need_lc=no 9084 case "$host_os" in 9085 rhapsody* | darwin1.[012]) 9086 allow_undefined_flag='-undefined suppress' 9087 ;; 9088 *) # Darwin 1.3 on 9089 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 9090 ;; 9091 esac 9092 # FIXME: Relying on posixy $() will cause problems for 9093 # cross-compilation, but unfortunately the echo tests do not 9094 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 9095 # `"' quotes if we put them in here... so don't! 9096 output_verbose_link_cmd='echo' 9097 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 9098 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 9099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9100 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}' 9101 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9102 hardcode_direct=no 9103 hardcode_automatic=yes 9104 hardcode_shlibpath_var=unsupported 9105 whole_archive_flag_spec='-all_load $convenience' 9106 link_all_deplibs=yes 9107 fi 9108 ;; 9109esac 9110echo "$as_me:$LINENO: result: $enable_shared" >&5 9111echo "${ECHO_T}$enable_shared" >&6 9112 9113echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9114echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9115# Make sure either enable_shared or enable_static is yes. 9116test "$enable_shared" = yes || enable_static=yes 9117echo "$as_me:$LINENO: result: $enable_static" >&5 9118echo "${ECHO_T}$enable_static" >&6 9119 9120# The else clause should only fire when bootstrapping the 9121# libtool distribution, otherwise you forgot to ship ltmain.sh 9122# with your package, and you will get complaints that there are 9123# no rules to generate ltmain.sh. 9124if test -f "$ltmain"; then 9125 # See if we are running on zsh, and set the options which allow our commands through 9126 # without removal of \ escapes. 9127 if test -n "${ZSH_VERSION+set}" ; then 9128 setopt NO_GLOB_SUBST 9129 fi 9130 # Now quote all the things that may contain metacharacters while being 9131 # careful not to overquote the AC_SUBSTed values. We take copies of the 9132 # variables and quote the copies for generation of the libtool script. 9133 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 9134 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9135 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9136 deplibs_check_method reload_flag reload_cmds need_locks \ 9137 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9138 lt_cv_sys_global_symbol_to_c_name_address \ 9139 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9140 old_postinstall_cmds old_postuninstall_cmds \ 9141 compiler \ 9142 CC \ 9143 LD \ 9144 lt_prog_compiler_wl \ 9145 lt_prog_compiler_pic \ 9146 lt_prog_compiler_static \ 9147 lt_prog_compiler_no_builtin_flag \ 9148 export_dynamic_flag_spec \ 9149 thread_safe_flag_spec \ 9150 whole_archive_flag_spec \ 9151 enable_shared_with_static_runtimes \ 9152 old_archive_cmds \ 9153 old_archive_from_new_cmds \ 9154 predep_objects \ 9155 postdep_objects \ 9156 predeps \ 9157 postdeps \ 9158 compiler_lib_search_path \ 9159 archive_cmds \ 9160 archive_expsym_cmds \ 9161 postinstall_cmds \ 9162 postuninstall_cmds \ 9163 old_archive_from_expsyms_cmds \ 9164 allow_undefined_flag \ 9165 no_undefined_flag \ 9166 export_symbols_cmds \ 9167 hardcode_libdir_flag_spec \ 9168 hardcode_libdir_flag_spec_ld \ 9169 hardcode_libdir_separator \ 9170 hardcode_automatic \ 9171 module_cmds \ 9172 module_expsym_cmds \ 9173 lt_cv_prog_compiler_c_o \ 9174 exclude_expsyms \ 9175 include_expsyms; do 9176 9177 case $var in 9178 old_archive_cmds | \ 9179 old_archive_from_new_cmds | \ 9180 archive_cmds | \ 9181 archive_expsym_cmds | \ 9182 module_cmds | \ 9183 module_expsym_cmds | \ 9184 old_archive_from_expsyms_cmds | \ 9185 export_symbols_cmds | \ 9186 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9187 postinstall_cmds | postuninstall_cmds | \ 9188 old_postinstall_cmds | old_postuninstall_cmds | \ 9189 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9190 # Double-quote double-evaled strings. 9191 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9192 ;; 9193 *) 9194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9195 ;; 9196 esac 9197 done 9198 9199 case $lt_echo in 9200 *'\$0 --fallback-echo"') 9201 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9202 ;; 9203 esac 9204 9205cfgfile="${ofile}T" 9206 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9207 $rm -f "$cfgfile" 9208 { echo "$as_me:$LINENO: creating $ofile" >&5 9209echo "$as_me: creating $ofile" >&6;} 9210 9211 cat <<__EOF__ >> "$cfgfile" 9212#! $SHELL 9213 9214# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9215# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9216# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9217# 9218# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9219# Free Software Foundation, Inc. 9220# 9221# This file is part of GNU Libtool: 9222# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9223# 9224# This program is free software; you can redistribute it and/or modify 9225# it under the terms of the GNU General Public License as published by 9226# the Free Software Foundation; either version 2 of the License, or 9227# (at your option) any later version. 9228# 9229# This program is distributed in the hope that it will be useful, but 9230# WITHOUT ANY WARRANTY; without even the implied warranty of 9231# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9232# General Public License for more details. 9233# 9234# You should have received a copy of the GNU General Public License 9235# along with this program; if not, write to the Free Software 9236# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9237# 9238# As a special exception to the GNU General Public License, if you 9239# distribute this file as part of a program that contains a 9240# configuration script generated by Autoconf, you may include it under 9241# the same distribution terms that you use for the rest of that program. 9242 9243# A sed program that does not truncate output. 9244SED=$lt_SED 9245 9246# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9247Xsed="$SED -e s/^X//" 9248 9249# The HP-UX ksh and POSIX shell print the target directory to stdout 9250# if CDPATH is set. 9251if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 9252 9253# The names of the tagged configurations supported by this script. 9254available_tags= 9255 9256# ### BEGIN LIBTOOL CONFIG 9257 9258# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9259 9260# Shell to use when invoking shell scripts. 9261SHELL=$lt_SHELL 9262 9263# Whether or not to build shared libraries. 9264build_libtool_libs=$enable_shared 9265 9266# Whether or not to build static libraries. 9267build_old_libs=$enable_static 9268 9269# Whether or not to add -lc for building shared libraries. 9270build_libtool_need_lc=$archive_cmds_need_lc 9271 9272# Whether or not to disallow shared libs when runtime libs are static 9273allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9274 9275# Whether or not to optimize for fast installation. 9276fast_install=$enable_fast_install 9277 9278# The host system. 9279host_alias=$host_alias 9280host=$host 9281 9282# An echo program that does not interpret backslashes. 9283echo=$lt_echo 9284 9285# The archiver. 9286AR=$lt_AR 9287AR_FLAGS=$lt_AR_FLAGS 9288 9289# A C compiler. 9290LTCC=$lt_LTCC 9291 9292# A language-specific compiler. 9293CC=$lt_compiler 9294 9295# Is the compiler the GNU C compiler? 9296with_gcc=$GCC 9297 9298# An ERE matcher. 9299EGREP=$lt_EGREP 9300 9301# The linker used to build libraries. 9302LD=$lt_LD 9303 9304# Whether we need hard or soft links. 9305LN_S=$lt_LN_S 9306 9307# A BSD-compatible nm program. 9308NM=$lt_NM 9309 9310# A symbol stripping program 9311STRIP=$STRIP 9312 9313# Used to examine libraries when file_magic_cmd begins "file" 9314MAGIC_CMD=$MAGIC_CMD 9315 9316# Used on cygwin: DLL creation program. 9317DLLTOOL="$DLLTOOL" 9318 9319# Used on cygwin: object dumper. 9320OBJDUMP="$OBJDUMP" 9321 9322# Used on cygwin: assembler. 9323AS="$AS" 9324 9325# The name of the directory that contains temporary libtool files. 9326objdir=$objdir 9327 9328# How to create reloadable object files. 9329reload_flag=$lt_reload_flag 9330reload_cmds=$lt_reload_cmds 9331 9332# How to pass a linker flag through the compiler. 9333wl=$lt_lt_prog_compiler_wl 9334 9335# Object file suffix (normally "o"). 9336objext="$ac_objext" 9337 9338# Old archive suffix (normally "a"). 9339libext="$libext" 9340 9341# Shared library suffix (normally ".so"). 9342shrext='$shrext' 9343 9344# Executable file suffix (normally ""). 9345exeext="$exeext" 9346 9347# Additional compiler flags for building library objects. 9348pic_flag=$lt_lt_prog_compiler_pic 9349pic_mode=$pic_mode 9350 9351# What is the maximum length of a command? 9352max_cmd_len=$lt_cv_sys_max_cmd_len 9353 9354# Does compiler simultaneously support -c and -o options? 9355compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9356 9357# Must we lock files when doing compilation ? 9358need_locks=$lt_need_locks 9359 9360# Do we need the lib prefix for modules? 9361need_lib_prefix=$need_lib_prefix 9362 9363# Do we need a version for libraries? 9364need_version=$need_version 9365 9366# Whether dlopen is supported. 9367dlopen_support=$enable_dlopen 9368 9369# Whether dlopen of programs is supported. 9370dlopen_self=$enable_dlopen_self 9371 9372# Whether dlopen of statically linked programs is supported. 9373dlopen_self_static=$enable_dlopen_self_static 9374 9375# Compiler flag to prevent dynamic linking. 9376link_static_flag=$lt_lt_prog_compiler_static 9377 9378# Compiler flag to turn off builtin functions. 9379no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9380 9381# Compiler flag to allow reflexive dlopens. 9382export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9383 9384# Compiler flag to generate shared objects directly from archives. 9385whole_archive_flag_spec=$lt_whole_archive_flag_spec 9386 9387# Compiler flag to generate thread-safe objects. 9388thread_safe_flag_spec=$lt_thread_safe_flag_spec 9389 9390# Library versioning type. 9391version_type=$version_type 9392 9393# Format of library name prefix. 9394libname_spec=$lt_libname_spec 9395 9396# List of archive names. First name is the real one, the rest are links. 9397# The last name is the one that the linker finds with -lNAME. 9398library_names_spec=$lt_library_names_spec 9399 9400# The coded name of the library, if different from the real name. 9401soname_spec=$lt_soname_spec 9402 9403# Commands used to build and install an old-style archive. 9404RANLIB=$lt_RANLIB 9405old_archive_cmds=$lt_old_archive_cmds 9406old_postinstall_cmds=$lt_old_postinstall_cmds 9407old_postuninstall_cmds=$lt_old_postuninstall_cmds 9408 9409# Create an old-style archive from a shared archive. 9410old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9411 9412# Create a temporary old-style archive to link instead of a shared archive. 9413old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9414 9415# Commands used to build and install a shared archive. 9416archive_cmds=$lt_archive_cmds 9417archive_expsym_cmds=$lt_archive_expsym_cmds 9418postinstall_cmds=$lt_postinstall_cmds 9419postuninstall_cmds=$lt_postuninstall_cmds 9420 9421# Commands used to build a loadable module (assumed same as above if empty) 9422module_cmds=$lt_module_cmds 9423module_expsym_cmds=$lt_module_expsym_cmds 9424 9425# Commands to strip libraries. 9426old_striplib=$lt_old_striplib 9427striplib=$lt_striplib 9428 9429# Dependencies to place before the objects being linked to create a 9430# shared library. 9431predep_objects=$lt_predep_objects 9432 9433# Dependencies to place after the objects being linked to create a 9434# shared library. 9435postdep_objects=$lt_postdep_objects 9436 9437# Dependencies to place before the objects being linked to create a 9438# shared library. 9439predeps=$lt_predeps 9440 9441# Dependencies to place after the objects being linked to create a 9442# shared library. 9443postdeps=$lt_postdeps 9444 9445# The library search path used internally by the compiler when linking 9446# a shared library. 9447compiler_lib_search_path=$lt_compiler_lib_search_path 9448 9449# Method to check whether dependent libraries are shared objects. 9450deplibs_check_method=$lt_deplibs_check_method 9451 9452# Command to use when deplibs_check_method == file_magic. 9453file_magic_cmd=$lt_file_magic_cmd 9454 9455# Flag that allows shared libraries with undefined symbols to be built. 9456allow_undefined_flag=$lt_allow_undefined_flag 9457 9458# Flag that forces no undefined symbols. 9459no_undefined_flag=$lt_no_undefined_flag 9460 9461# Commands used to finish a libtool library installation in a directory. 9462finish_cmds=$lt_finish_cmds 9463 9464# Same as above, but a single script fragment to be evaled but not shown. 9465finish_eval=$lt_finish_eval 9466 9467# Take the output of nm and produce a listing of raw symbols and C names. 9468global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9469 9470# Transform the output of nm in a proper C declaration 9471global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9472 9473# Transform the output of nm in a C name address pair 9474global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9475 9476# This is the shared library runtime path variable. 9477runpath_var=$runpath_var 9478 9479# This is the shared library path variable. 9480shlibpath_var=$shlibpath_var 9481 9482# Is shlibpath searched before the hard-coded library search path? 9483shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9484 9485# How to hardcode a shared library path into an executable. 9486hardcode_action=$hardcode_action 9487 9488# Whether we should hardcode library paths into libraries. 9489hardcode_into_libs=$hardcode_into_libs 9490 9491# Flag to hardcode \$libdir into a binary during linking. 9492# This must work even if \$libdir does not exist. 9493hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9494 9495# If ld is used when linking, flag to hardcode \$libdir into 9496# a binary during linking. This must work even if \$libdir does 9497# not exist. 9498hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9499 9500# Whether we need a single -rpath flag with a separated argument. 9501hardcode_libdir_separator=$lt_hardcode_libdir_separator 9502 9503# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9504# resulting binary. 9505hardcode_direct=$hardcode_direct 9506 9507# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9508# resulting binary. 9509hardcode_minus_L=$hardcode_minus_L 9510 9511# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9512# the resulting binary. 9513hardcode_shlibpath_var=$hardcode_shlibpath_var 9514 9515# Set to yes if building a shared library automatically hardcodes DIR into the library 9516# and all subsequent libraries and executables linked against it. 9517hardcode_automatic=$hardcode_automatic 9518 9519# Variables whose values should be saved in libtool wrapper scripts and 9520# restored at relink time. 9521variables_saved_for_relink="$variables_saved_for_relink" 9522 9523# Whether libtool must link a program against all its dependency libraries. 9524link_all_deplibs=$link_all_deplibs 9525 9526# Compile-time system search path for libraries 9527sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9528 9529# Run-time system search path for libraries 9530sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9531 9532# Fix the shell variable \$srcfile for the compiler. 9533fix_srcfile_path="$fix_srcfile_path" 9534 9535# Set to yes if exported symbols are required. 9536always_export_symbols=$always_export_symbols 9537 9538# The commands to list exported symbols. 9539export_symbols_cmds=$lt_export_symbols_cmds 9540 9541# The commands to extract the exported symbol list from a shared archive. 9542extract_expsyms_cmds=$lt_extract_expsyms_cmds 9543 9544# Symbols that should not be listed in the preloaded symbols. 9545exclude_expsyms=$lt_exclude_expsyms 9546 9547# Symbols that must always be exported. 9548include_expsyms=$lt_include_expsyms 9549 9550# ### END LIBTOOL CONFIG 9551 9552__EOF__ 9553 9554 9555 case $host_os in 9556 aix3*) 9557 cat <<\EOF >> "$cfgfile" 9558 9559# AIX sometimes has problems with the GCC collect2 program. For some 9560# reason, if we set the COLLECT_NAMES environment variable, the problems 9561# vanish in a puff of smoke. 9562if test "X${COLLECT_NAMES+set}" != Xset; then 9563 COLLECT_NAMES= 9564 export COLLECT_NAMES 9565fi 9566EOF 9567 ;; 9568 esac 9569 9570 # We use sed instead of cat because bash on DJGPP gets confused if 9571 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9572 # text mode, it properly converts lines to CR/LF. This bash problem 9573 # is reportedly fixed, but why not run on old versions too? 9574 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9575 9576 mv -f "$cfgfile" "$ofile" || \ 9577 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9578 chmod +x "$ofile" 9579 9580else 9581 # If there is no Makefile yet, we rely on a make rule to execute 9582 # `config.status --recheck' to rerun these tests and create the 9583 # libtool script then. 9584 test -f Makefile && make "$ltmain" 9585fi 9586 9587 9588ac_ext=cc 9589ac_cpp='$CXXCPP $CPPFLAGS' 9590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9593 9594CC="$lt_save_CC" 9595 9596 9597# Check whether --with-tags or --without-tags was given. 9598if test "${with_tags+set}" = set; then 9599 withval="$with_tags" 9600 tagnames="$withval" 9601fi; 9602 9603if test -f "$ltmain" && test -n "$tagnames"; then 9604 if test ! -f "${ofile}"; then 9605 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9606echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9607 fi 9608 9609 if test -z "$LTCC"; then 9610 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9611 if test -z "$LTCC"; then 9612 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9613echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9614 else 9615 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9616echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9617 fi 9618 fi 9619 9620 # Extract list of available tagged configurations in $ofile. 9621 # Note that this assumes the entire list is on one line. 9622 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9623 9624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9625 for tagname in $tagnames; do 9626 IFS="$lt_save_ifs" 9627 # Check whether tagname contains only valid characters 9628 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9629 "") ;; 9630 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9631echo "$as_me: error: invalid tag name: $tagname" >&2;} 9632 { (exit 1); exit 1; }; } 9633 ;; 9634 esac 9635 9636 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9637 then 9638 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9639echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9640 { (exit 1); exit 1; }; } 9641 fi 9642 9643 # Update the list of available tags. 9644 if test -n "$tagname"; then 9645 echo appending configuration tag \"$tagname\" to $ofile 9646 9647 case $tagname in 9648 CXX) 9649 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9650 ac_ext=cc 9651ac_cpp='$CXXCPP $CPPFLAGS' 9652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9655 9656 9657 9658 9659archive_cmds_need_lc_CXX=no 9660allow_undefined_flag_CXX= 9661always_export_symbols_CXX=no 9662archive_expsym_cmds_CXX= 9663export_dynamic_flag_spec_CXX= 9664hardcode_direct_CXX=no 9665hardcode_libdir_flag_spec_CXX= 9666hardcode_libdir_flag_spec_ld_CXX= 9667hardcode_libdir_separator_CXX= 9668hardcode_minus_L_CXX=no 9669hardcode_automatic_CXX=no 9670module_cmds_CXX= 9671module_expsym_cmds_CXX= 9672link_all_deplibs_CXX=unknown 9673old_archive_cmds_CXX=$old_archive_cmds 9674no_undefined_flag_CXX= 9675whole_archive_flag_spec_CXX= 9676enable_shared_with_static_runtimes_CXX=no 9677 9678# Dependencies to place before and after the object being linked: 9679predep_objects_CXX= 9680postdep_objects_CXX= 9681predeps_CXX= 9682postdeps_CXX= 9683compiler_lib_search_path_CXX= 9684 9685# Source file extension for C++ test sources. 9686ac_ext=cc 9687 9688# Object file extension for compiled C++ test sources. 9689objext=o 9690objext_CXX=$objext 9691 9692# Code to be used in simple compile tests 9693lt_simple_compile_test_code="int some_variable = 0;\n" 9694 9695# Code to be used in simple link tests 9696lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9697 9698# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9699 9700# If no C compiler was specified, use CC. 9701LTCC=${LTCC-"$CC"} 9702 9703# Allow CC to be a program name with arguments. 9704compiler=$CC 9705 9706 9707# Allow CC to be a program name with arguments. 9708lt_save_CC=$CC 9709lt_save_LD=$LD 9710lt_save_GCC=$GCC 9711GCC=$GXX 9712lt_save_with_gnu_ld=$with_gnu_ld 9713lt_save_path_LD=$lt_cv_path_LD 9714if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9715 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9716else 9717 unset lt_cv_prog_gnu_ld 9718fi 9719if test -n "${lt_cv_path_LDCXX+set}"; then 9720 lt_cv_path_LD=$lt_cv_path_LDCXX 9721else 9722 unset lt_cv_path_LD 9723fi 9724test -z "${LDCXX+set}" || LD=$LDCXX 9725CC=${CXX-"c++"} 9726compiler=$CC 9727compiler_CXX=$CC 9728cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9729 9730# We don't want -fno-exception wen compiling C++ code, so set the 9731# no_builtin_flag separately 9732if test "$GXX" = yes; then 9733 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9734else 9735 lt_prog_compiler_no_builtin_flag_CXX= 9736fi 9737 9738if test "$GXX" = yes; then 9739 # Set up default GNU C++ configuration 9740 9741 9742# Check whether --with-gnu-ld or --without-gnu-ld was given. 9743if test "${with_gnu_ld+set}" = set; then 9744 withval="$with_gnu_ld" 9745 test "$withval" = no || with_gnu_ld=yes 9746else 9747 with_gnu_ld=no 9748fi; 9749ac_prog=ld 9750if test "$GCC" = yes; then 9751 # Check if gcc -print-prog-name=ld gives a path. 9752 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9753echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9754 case $host in 9755 *-*-mingw*) 9756 # gcc leaves a trailing carriage return which upsets mingw 9757 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9758 *) 9759 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9760 esac 9761 case $ac_prog in 9762 # Accept absolute paths. 9763 [\\/]* | ?:[\\/]*) 9764 re_direlt='/[^/][^/]*/\.\./' 9765 # Canonicalize the path of ld 9766 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9767 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9768 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9769 done 9770 test -z "$LD" && LD="$ac_prog" 9771 ;; 9772 "") 9773 # If it fails, then pretend we aren't using GCC. 9774 ac_prog=ld 9775 ;; 9776 *) 9777 # If it is relative, then search for the first ld in PATH. 9778 with_gnu_ld=unknown 9779 ;; 9780 esac 9781elif test "$with_gnu_ld" = yes; then 9782 echo "$as_me:$LINENO: checking for GNU ld" >&5 9783echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9784else 9785 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9786echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9787fi 9788if test "${lt_cv_path_LD+set}" = set; then 9789 echo $ECHO_N "(cached) $ECHO_C" >&6 9790else 9791 if test -z "$LD"; then 9792 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9793 for ac_dir in $PATH; do 9794 IFS="$lt_save_ifs" 9795 test -z "$ac_dir" && ac_dir=. 9796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9797 lt_cv_path_LD="$ac_dir/$ac_prog" 9798 # Check to see if the program is GNU ld. I'd rather use --version, 9799 # but apparently some GNU ld's only accept -v. 9800 # Break only if it was the GNU/non-GNU ld that we prefer. 9801 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9802 *GNU* | *'with BFD'*) 9803 test "$with_gnu_ld" != no && break 9804 ;; 9805 *) 9806 test "$with_gnu_ld" != yes && break 9807 ;; 9808 esac 9809 fi 9810 done 9811 IFS="$lt_save_ifs" 9812else 9813 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9814fi 9815fi 9816 9817LD="$lt_cv_path_LD" 9818if test -n "$LD"; then 9819 echo "$as_me:$LINENO: result: $LD" >&5 9820echo "${ECHO_T}$LD" >&6 9821else 9822 echo "$as_me:$LINENO: result: no" >&5 9823echo "${ECHO_T}no" >&6 9824fi 9825test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9826echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9827 { (exit 1); exit 1; }; } 9828echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9829echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9830if test "${lt_cv_prog_gnu_ld+set}" = set; then 9831 echo $ECHO_N "(cached) $ECHO_C" >&6 9832else 9833 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9834case `"$LD" -v 2>&1 </dev/null` in 9835*GNU* | *'with BFD'*) 9836 lt_cv_prog_gnu_ld=yes 9837 ;; 9838*) 9839 lt_cv_prog_gnu_ld=no 9840 ;; 9841esac 9842fi 9843echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9844echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9845with_gnu_ld=$lt_cv_prog_gnu_ld 9846 9847 9848 9849 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9850 # archiving commands below assume that GNU ld is being used. 9851 if test "$with_gnu_ld" = yes; then 9852 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9853 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' 9854 9855 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9857 9858 # If archive_cmds runs LD, not CC, wlarc should be empty 9859 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9860 # investigate it a little bit more. (MM) 9861 wlarc='${wl}' 9862 9863 # ancient GNU ld didn't support --whole-archive et. al. 9864 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9865 grep 'no-whole-archive' > /dev/null; then 9866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9867 else 9868 whole_archive_flag_spec_CXX= 9869 fi 9870 else 9871 with_gnu_ld=no 9872 wlarc= 9873 9874 # A generic and very simple default shared library creation 9875 # command for GNU C++ for the case where it uses the native 9876 # linker, instead of GNU ld. If possible, this setting should 9877 # overridden to take advantage of the native linker features on 9878 # the platform it is being used on. 9879 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9880 fi 9881 9882 # Commands to make compiler produce verbose output that lists 9883 # what "hidden" libraries, object files and flags are used when 9884 # linking a shared library. 9885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9886 9887else 9888 GXX=no 9889 with_gnu_ld=no 9890 wlarc= 9891fi 9892 9893# PORTME: fill in a description of your system's C++ link characteristics 9894echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9895echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9896ld_shlibs_CXX=yes 9897case $host_os in 9898 aix3*) 9899 # FIXME: insert proper C++ library support 9900 ld_shlibs_CXX=no 9901 ;; 9902 aix4* | aix5*) 9903 if test "$host_cpu" = ia64; then 9904 # On IA64, the linker does run time linking by default, so we don't 9905 # have to do anything special. 9906 aix_use_runtimelinking=no 9907 exp_sym_flag='-Bexport' 9908 no_entry_flag="" 9909 else 9910 aix_use_runtimelinking=no 9911 9912 # Test if we are trying to use run time linking or normal 9913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9914 # need to do runtime linking. 9915 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9916 for ld_flag in $LDFLAGS; do 9917 case $ld_flag in 9918 *-brtl*) 9919 aix_use_runtimelinking=yes 9920 break 9921 ;; 9922 esac 9923 done 9924 esac 9925 9926 exp_sym_flag='-bexport' 9927 no_entry_flag='-bnoentry' 9928 fi 9929 9930 # When large executables or shared objects are built, AIX ld can 9931 # have problems creating the table of contents. If linking a library 9932 # or program results in "error TOC overflow" add -mminimal-toc to 9933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9935 9936 archive_cmds_CXX='' 9937 hardcode_direct_CXX=yes 9938 hardcode_libdir_separator_CXX=':' 9939 link_all_deplibs_CXX=yes 9940 9941 if test "$GXX" = yes; then 9942 case $host_os in aix4.012|aix4.012.*) 9943 # We only want to do this on AIX 4.2 and lower, the check 9944 # below for broken collect2 doesn't work under 4.3+ 9945 collect2name=`${CC} -print-prog-name=collect2` 9946 if test -f "$collect2name" && \ 9947 strings "$collect2name" | grep resolve_lib_name >/dev/null 9948 then 9949 # We have reworked collect2 9950 hardcode_direct_CXX=yes 9951 else 9952 # We have old collect2 9953 hardcode_direct_CXX=unsupported 9954 # It fails to find uninstalled libraries when the uninstalled 9955 # path is not listed in the libpath. Setting hardcode_minus_L 9956 # to unsupported forces relinking 9957 hardcode_minus_L_CXX=yes 9958 hardcode_libdir_flag_spec_CXX='-L$libdir' 9959 hardcode_libdir_separator_CXX= 9960 fi 9961 esac 9962 shared_flag='-shared' 9963 else 9964 # not using gcc 9965 if test "$host_cpu" = ia64; then 9966 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9967 # chokes on -Wl,-G. The following line is correct: 9968 shared_flag='-G' 9969 else 9970 if test "$aix_use_runtimelinking" = yes; then 9971 shared_flag='${wl}-G' 9972 else 9973 shared_flag='${wl}-bM:SRE' 9974 fi 9975 fi 9976 fi 9977 9978 # It seems that -bexpall does not export symbols beginning with 9979 # underscore (_), so it is better to generate a list of symbols to export. 9980 always_export_symbols_CXX=yes 9981 if test "$aix_use_runtimelinking" = yes; then 9982 # Warning - without using the other runtime loading flags (-brtl), 9983 # -berok will link without error, but may produce a broken library. 9984 allow_undefined_flag_CXX='-berok' 9985 # Determine the default libpath from the value encoded in an empty executable. 9986 cat >conftest.$ac_ext <<_ACEOF 9987#line $LINENO "configure" 9988/* confdefs.h. */ 9989_ACEOF 9990cat confdefs.h >>conftest.$ac_ext 9991cat >>conftest.$ac_ext <<_ACEOF 9992/* end confdefs.h. */ 9993 9994int 9995main () 9996{ 9997 9998 ; 9999 return 0; 10000} 10001_ACEOF 10002rm -f conftest.$ac_objext conftest$ac_exeext 10003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10004 (eval $ac_link) 2>&5 10005 ac_status=$? 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 (exit $ac_status); } && 10008 { ac_try='test -s conftest$ac_exeext' 10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10010 (eval $ac_try) 2>&5 10011 ac_status=$? 10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10013 (exit $ac_status); }; }; then 10014 10015aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10016}'` 10017# Check for a 64-bit object if we didn't find anything. 10018if 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; } 10019}'`; fi 10020else 10021 echo "$as_me: failed program was:" >&5 10022sed 's/^/| /' conftest.$ac_ext >&5 10023 10024fi 10025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10026if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10027 10028 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10029 10030 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10031 else 10032 if test "$host_cpu" = ia64; then 10033 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10034 allow_undefined_flag_CXX="-z nodefs" 10035 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10036 else 10037 # Determine the default libpath from the value encoded in an empty executable. 10038 cat >conftest.$ac_ext <<_ACEOF 10039#line $LINENO "configure" 10040/* confdefs.h. */ 10041_ACEOF 10042cat confdefs.h >>conftest.$ac_ext 10043cat >>conftest.$ac_ext <<_ACEOF 10044/* end confdefs.h. */ 10045 10046int 10047main () 10048{ 10049 10050 ; 10051 return 0; 10052} 10053_ACEOF 10054rm -f conftest.$ac_objext conftest$ac_exeext 10055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10056 (eval $ac_link) 2>&5 10057 ac_status=$? 10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10059 (exit $ac_status); } && 10060 { ac_try='test -s conftest$ac_exeext' 10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10062 (eval $ac_try) 2>&5 10063 ac_status=$? 10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10065 (exit $ac_status); }; }; then 10066 10067aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10068}'` 10069# Check for a 64-bit object if we didn't find anything. 10070if 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; } 10071}'`; fi 10072else 10073 echo "$as_me: failed program was:" >&5 10074sed 's/^/| /' conftest.$ac_ext >&5 10075 10076fi 10077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10078if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10079 10080 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10081 # Warning - without using the other run time loading flags, 10082 # -berok will link without error, but may produce a broken library. 10083 no_undefined_flag_CXX=' ${wl}-bernotok' 10084 allow_undefined_flag_CXX=' ${wl}-berok' 10085 # -bexpall does not export symbols beginning with underscore (_) 10086 always_export_symbols_CXX=yes 10087 # Exported symbols can be pulled into shared objects from archives 10088 whole_archive_flag_spec_CXX=' ' 10089 archive_cmds_need_lc_CXX=yes 10090 # This is similar to how AIX traditionally builds it's shared libraries. 10091 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10092 fi 10093 fi 10094 ;; 10095 chorus*) 10096 case $cc_basename in 10097 *) 10098 # FIXME: insert proper C++ library support 10099 ld_shlibs_CXX=no 10100 ;; 10101 esac 10102 ;; 10103 10104 cygwin* | mingw* | pw32*) 10105 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10106 # as there is no search path for DLLs. 10107 hardcode_libdir_flag_spec_CXX='-L$libdir' 10108 allow_undefined_flag_CXX=unsupported 10109 always_export_symbols_CXX=no 10110 enable_shared_with_static_runtimes_CXX=yes 10111 10112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10113 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10114 # If the export-symbols file already is a .def file (1st line 10115 # is EXPORTS), use it as is; otherwise, prepend... 10116 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10117 cp $export_symbols $output_objdir/$soname.def; 10118 else 10119 echo EXPORTS > $output_objdir/$soname.def; 10120 cat $export_symbols >> $output_objdir/$soname.def; 10121 fi~ 10122 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10123 else 10124 ld_shlibs_CXX=no 10125 fi 10126 ;; 10127 10128 darwin* | rhapsody*) 10129 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 10130 archive_cmds_need_lc_CXX=no 10131 case "$host_os" in 10132 rhapsody* | darwin1.[012]) 10133 allow_undefined_flag_CXX='-undefined suppress' 10134 ;; 10135 *) # Darwin 1.3 on 10136 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10137 ;; 10138 esac 10139 lt_int_apple_cc_single_mod=no 10140 output_verbose_link_cmd='echo' 10141 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 10142 lt_int_apple_cc_single_mod=yes 10143 fi 10144 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10145 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10146 else 10147 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' 10148 fi 10149 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 10150 10151 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10152 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10153 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}' 10154 else 10155 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 10156 fi 10157 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10158 hardcode_direct_CXX=no 10159 hardcode_automatic_CXX=yes 10160 hardcode_shlibpath_var_CXX=unsupported 10161 whole_archive_flag_spec_CXX='-all_load $convenience' 10162 link_all_deplibs_CXX=yes 10163 fi 10164 ;; 10165 10166 dgux*) 10167 case $cc_basename in 10168 ec++) 10169 # FIXME: insert proper C++ library support 10170 ld_shlibs_CXX=no 10171 ;; 10172 ghcx) 10173 # Green Hills C++ Compiler 10174 # FIXME: insert proper C++ library support 10175 ld_shlibs_CXX=no 10176 ;; 10177 *) 10178 # FIXME: insert proper C++ library support 10179 ld_shlibs_CXX=no 10180 ;; 10181 esac 10182 ;; 10183 freebsd12*) 10184 # C++ shared libraries reported to be fairly broken before switch to ELF 10185 ld_shlibs_CXX=no 10186 ;; 10187 freebsd-elf*) 10188 archive_cmds_need_lc_CXX=no 10189 ;; 10190 freebsd*) 10191 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10192 # conventions 10193 ld_shlibs_CXX=yes 10194 ;; 10195 gnu*) 10196 ;; 10197 hpux9*) 10198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10199 hardcode_libdir_separator_CXX=: 10200 export_dynamic_flag_spec_CXX='${wl}-E' 10201 hardcode_direct_CXX=yes 10202 hardcode_minus_L_CXX=yes # Not in the search PATH, 10203 # but as the default 10204 # location of the library. 10205 10206 case $cc_basename in 10207 CC) 10208 # FIXME: insert proper C++ library support 10209 ld_shlibs_CXX=no 10210 ;; 10211 aCC) 10212 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' 10213 # Commands to make compiler produce verbose output that lists 10214 # what "hidden" libraries, object files and flags are used when 10215 # linking a shared library. 10216 # 10217 # There doesn't appear to be a way to prevent this compiler from 10218 # explicitly linking system object files so we need to strip them 10219 # from the output so that they don't get included in the library 10220 # dependencies. 10221 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10222 ;; 10223 *) 10224 if test "$GXX" = yes; then 10225 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' 10226 else 10227 # FIXME: insert proper C++ library support 10228 ld_shlibs_CXX=no 10229 fi 10230 ;; 10231 esac 10232 ;; 10233 hpux10*|hpux11*) 10234 if test $with_gnu_ld = no; then 10235 case "$host_cpu" in 10236 hppa*64*) 10237 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10238 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10239 hardcode_libdir_separator_CXX=: 10240 ;; 10241 ia64*) 10242 hardcode_libdir_flag_spec_CXX='-L$libdir' 10243 ;; 10244 *) 10245 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10246 hardcode_libdir_separator_CXX=: 10247 export_dynamic_flag_spec_CXX='${wl}-E' 10248 ;; 10249 esac 10250 fi 10251 case "$host_cpu" in 10252 hppa*64*) 10253 hardcode_direct_CXX=no 10254 hardcode_shlibpath_var_CXX=no 10255 ;; 10256 ia64*) 10257 hardcode_direct_CXX=no 10258 hardcode_shlibpath_var_CXX=no 10259 hardcode_minus_L_CXX=yes # Not in the search PATH, 10260 # but as the default 10261 # location of the library. 10262 ;; 10263 *) 10264 hardcode_direct_CXX=yes 10265 hardcode_minus_L_CXX=yes # Not in the search PATH, 10266 # but as the default 10267 # location of the library. 10268 ;; 10269 esac 10270 10271 case $cc_basename in 10272 CC) 10273 # FIXME: insert proper C++ library support 10274 ld_shlibs_CXX=no 10275 ;; 10276 aCC) 10277 case "$host_cpu" in 10278 hppa*64*|ia64*) 10279 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10280 ;; 10281 *) 10282 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10283 ;; 10284 esac 10285 # Commands to make compiler produce verbose output that lists 10286 # what "hidden" libraries, object files and flags are used when 10287 # linking a shared library. 10288 # 10289 # There doesn't appear to be a way to prevent this compiler from 10290 # explicitly linking system object files so we need to strip them 10291 # from the output so that they don't get included in the library 10292 # dependencies. 10293 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' 10294 ;; 10295 *) 10296 if test "$GXX" = yes; then 10297 if test $with_gnu_ld = no; then 10298 case "$host_cpu" in 10299 ia64*|hppa*64*) 10300 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10301 ;; 10302 *) 10303 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' 10304 ;; 10305 esac 10306 fi 10307 else 10308 # FIXME: insert proper C++ library support 10309 ld_shlibs_CXX=no 10310 fi 10311 ;; 10312 esac 10313 ;; 10314 irix5* | irix6*) 10315 case $cc_basename in 10316 CC) 10317 # SGI C++ 10318 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 ${objdir}/so_locations -o $lib' 10319 10320 # Archives containing C++ object files must be created using 10321 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10322 # necessary to make sure instantiated templates are included 10323 # in the archive. 10324 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10325 ;; 10326 *) 10327 if test "$GXX" = yes; then 10328 if test "$with_gnu_ld" = no; then 10329 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}${objdir}/so_locations -o $lib' 10330 else 10331 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' 10332 fi 10333 fi 10334 link_all_deplibs_CXX=yes 10335 ;; 10336 esac 10337 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10338 hardcode_libdir_separator_CXX=: 10339 ;; 10340 linux*) 10341 case $cc_basename in 10342 KCC) 10343 # Kuck and Associates, Inc. (KAI) C++ Compiler 10344 10345 # KCC will only create a shared library if the output file 10346 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10347 # to its proper name (with version) after linking. 10348 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' 10349 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' 10350 # Commands to make compiler produce verbose output that lists 10351 # what "hidden" libraries, object files and flags are used when 10352 # linking a shared library. 10353 # 10354 # There doesn't appear to be a way to prevent this compiler from 10355 # explicitly linking system object files so we need to strip them 10356 # from the output so that they don't get included in the library 10357 # dependencies. 10358 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' 10359 10360 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10362 10363 # Archives containing C++ object files must be created using 10364 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10365 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10366 ;; 10367 icpc) 10368 # Intel C++ 10369 with_gnu_ld=yes 10370 archive_cmds_need_lc_CXX=no 10371 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10372 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' 10373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10374 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10375 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10376 ;; 10377 cxx) 10378 # Compaq C++ 10379 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10380 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' 10381 10382 runpath_var=LD_RUN_PATH 10383 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10384 hardcode_libdir_separator_CXX=: 10385 10386 # Commands to make compiler produce verbose output that lists 10387 # what "hidden" libraries, object files and flags are used when 10388 # linking a shared library. 10389 # 10390 # There doesn't appear to be a way to prevent this compiler from 10391 # explicitly linking system object files so we need to strip them 10392 # from the output so that they don't get included in the library 10393 # dependencies. 10394 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' 10395 ;; 10396 esac 10397 ;; 10398 lynxos*) 10399 # FIXME: insert proper C++ library support 10400 ld_shlibs_CXX=no 10401 ;; 10402 m88k*) 10403 # FIXME: insert proper C++ library support 10404 ld_shlibs_CXX=no 10405 ;; 10406 mvs*) 10407 case $cc_basename in 10408 cxx) 10409 # FIXME: insert proper C++ library support 10410 ld_shlibs_CXX=no 10411 ;; 10412 *) 10413 # FIXME: insert proper C++ library support 10414 ld_shlibs_CXX=no 10415 ;; 10416 esac 10417 ;; 10418 netbsd*) 10419 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10420 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10421 wlarc= 10422 hardcode_libdir_flag_spec_CXX='-R$libdir' 10423 hardcode_direct_CXX=yes 10424 hardcode_shlibpath_var_CXX=no 10425 fi 10426 # Workaround some broken pre-1.5 toolchains 10427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10428 ;; 10429 osf3*) 10430 case $cc_basename in 10431 KCC) 10432 # Kuck and Associates, Inc. (KAI) C++ Compiler 10433 10434 # KCC will only create a shared library if the output file 10435 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10436 # to its proper name (with version) after linking. 10437 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' 10438 10439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10440 hardcode_libdir_separator_CXX=: 10441 10442 # Archives containing C++ object files must be created using 10443 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10444 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10445 10446 ;; 10447 RCC) 10448 # Rational C++ 2.4.1 10449 # FIXME: insert proper C++ library support 10450 ld_shlibs_CXX=no 10451 ;; 10452 cxx) 10453 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10454 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 ${objdir}/so_locations -o $lib' 10455 10456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10457 hardcode_libdir_separator_CXX=: 10458 10459 # Commands to make compiler produce verbose output that lists 10460 # what "hidden" libraries, object files and flags are used when 10461 # linking a shared library. 10462 # 10463 # There doesn't appear to be a way to prevent this compiler from 10464 # explicitly linking system object files so we need to strip them 10465 # from the output so that they don't get included in the library 10466 # dependencies. 10467 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' 10468 ;; 10469 *) 10470 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10471 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10472 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}${objdir}/so_locations -o $lib' 10473 10474 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10475 hardcode_libdir_separator_CXX=: 10476 10477 # Commands to make compiler produce verbose output that lists 10478 # what "hidden" libraries, object files and flags are used when 10479 # linking a shared library. 10480 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10481 10482 else 10483 # FIXME: insert proper C++ library support 10484 ld_shlibs_CXX=no 10485 fi 10486 ;; 10487 esac 10488 ;; 10489 osf4* | osf5*) 10490 case $cc_basename in 10491 KCC) 10492 # Kuck and Associates, Inc. (KAI) C++ Compiler 10493 10494 # KCC will only create a shared library if the output file 10495 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10496 # to its proper name (with version) after linking. 10497 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' 10498 10499 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10500 hardcode_libdir_separator_CXX=: 10501 10502 # Archives containing C++ object files must be created using 10503 # the KAI C++ compiler. 10504 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10505 ;; 10506 RCC) 10507 # Rational C++ 2.4.1 10508 # FIXME: insert proper C++ library support 10509 ld_shlibs_CXX=no 10510 ;; 10511 cxx) 10512 allow_undefined_flag_CXX=' -expect_unresolved \*' 10513 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 ${objdir}/so_locations -o $lib' 10514 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10515 echo "-hidden">> $lib.exp~ 10516 $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 $objdir/so_locations -o $lib~ 10517 $rm $lib.exp' 10518 10519 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10520 hardcode_libdir_separator_CXX=: 10521 10522 # Commands to make compiler produce verbose output that lists 10523 # what "hidden" libraries, object files and flags are used when 10524 # linking a shared library. 10525 # 10526 # There doesn't appear to be a way to prevent this compiler from 10527 # explicitly linking system object files so we need to strip them 10528 # from the output so that they don't get included in the library 10529 # dependencies. 10530 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' 10531 ;; 10532 *) 10533 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10535 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}${objdir}/so_locations -o $lib' 10536 10537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10538 hardcode_libdir_separator_CXX=: 10539 10540 # Commands to make compiler produce verbose output that lists 10541 # what "hidden" libraries, object files and flags are used when 10542 # linking a shared library. 10543 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10544 10545 else 10546 # FIXME: insert proper C++ library support 10547 ld_shlibs_CXX=no 10548 fi 10549 ;; 10550 esac 10551 ;; 10552 psos*) 10553 # FIXME: insert proper C++ library support 10554 ld_shlibs_CXX=no 10555 ;; 10556 sco*) 10557 archive_cmds_need_lc_CXX=no 10558 case $cc_basename in 10559 CC) 10560 # FIXME: insert proper C++ library support 10561 ld_shlibs_CXX=no 10562 ;; 10563 *) 10564 # FIXME: insert proper C++ library support 10565 ld_shlibs_CXX=no 10566 ;; 10567 esac 10568 ;; 10569 sunos4*) 10570 case $cc_basename in 10571 CC) 10572 # Sun C++ 4.x 10573 # FIXME: insert proper C++ library support 10574 ld_shlibs_CXX=no 10575 ;; 10576 lcc) 10577 # Lucid 10578 # FIXME: insert proper C++ library support 10579 ld_shlibs_CXX=no 10580 ;; 10581 *) 10582 # FIXME: insert proper C++ library support 10583 ld_shlibs_CXX=no 10584 ;; 10585 esac 10586 ;; 10587 solaris*) 10588 case $cc_basename in 10589 CC) 10590 # Sun C++ 4.2, 5.x and Centerline C++ 10591 no_undefined_flag_CXX=' -zdefs' 10592 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10593 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10594 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10595 10596 hardcode_libdir_flag_spec_CXX='-R$libdir' 10597 hardcode_shlibpath_var_CXX=no 10598 case $host_os in 10599 solaris2.0-5 | solaris2.0-5.*) ;; 10600 *) 10601 # The C++ compiler is used as linker so we must use $wl 10602 # flag to pass the commands to the underlying system 10603 # linker. 10604 # Supported since Solaris 2.6 (maybe 2.5.1?) 10605 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10606 ;; 10607 esac 10608 link_all_deplibs_CXX=yes 10609 10610 # Commands to make compiler produce verbose output that lists 10611 # what "hidden" libraries, object files and flags are used when 10612 # linking a shared library. 10613 # 10614 # There doesn't appear to be a way to prevent this compiler from 10615 # explicitly linking system object files so we need to strip them 10616 # from the output so that they don't get included in the library 10617 # dependencies. 10618 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10619 10620 # Archives containing C++ object files must be created using 10621 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10622 # necessary to make sure instantiated templates are included 10623 # in the archive. 10624 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10625 ;; 10626 gcx) 10627 # Green Hills C++ Compiler 10628 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10629 10630 # The C++ compiler must be used to create the archive. 10631 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10632 ;; 10633 *) 10634 # GNU C++ compiler with Solaris linker 10635 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10636 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10637 if $CC --version | grep -v '^2\.7' > /dev/null; then 10638 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10639 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10640 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10641 10642 # Commands to make compiler produce verbose output that lists 10643 # what "hidden" libraries, object files and flags are used when 10644 # linking a shared library. 10645 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10646 else 10647 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10648 # platform. 10649 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10650 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10651 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10652 10653 # Commands to make compiler produce verbose output that lists 10654 # what "hidden" libraries, object files and flags are used when 10655 # linking a shared library. 10656 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10657 fi 10658 10659 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10660 fi 10661 ;; 10662 esac 10663 ;; 10664 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10665 archive_cmds_need_lc_CXX=no 10666 ;; 10667 tandem*) 10668 case $cc_basename in 10669 NCC) 10670 # NonStop-UX NCC 3.20 10671 # FIXME: insert proper C++ library support 10672 ld_shlibs_CXX=no 10673 ;; 10674 *) 10675 # FIXME: insert proper C++ library support 10676 ld_shlibs_CXX=no 10677 ;; 10678 esac 10679 ;; 10680 vxworks*) 10681 # FIXME: insert proper C++ library support 10682 ld_shlibs_CXX=no 10683 ;; 10684 *) 10685 # FIXME: insert proper C++ library support 10686 ld_shlibs_CXX=no 10687 ;; 10688esac 10689echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10690echo "${ECHO_T}$ld_shlibs_CXX" >&6 10691test "$ld_shlibs_CXX" = no && can_build_shared=no 10692 10693GCC_CXX="$GXX" 10694LD_CXX="$LD" 10695 10696 10697cat > conftest.$ac_ext <<EOF 10698class Foo 10699{ 10700public: 10701 Foo (void) { a = 0; } 10702private: 10703 int a; 10704}; 10705EOF 10706 10707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10708 (eval $ac_compile) 2>&5 10709 ac_status=$? 10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10711 (exit $ac_status); }; then 10712 # Parse the compiler output and extract the necessary 10713 # objects, libraries and library flags. 10714 10715 # Sentinel used to keep track of whether or not we are before 10716 # the conftest object file. 10717 pre_test_object_deps_done=no 10718 10719 # The `*' in the case matches for architectures that use `case' in 10720 # $output_verbose_cmd can trigger glob expansion during the loop 10721 # eval without this substitution. 10722 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10723 10724 for p in `eval $output_verbose_link_cmd`; do 10725 case $p in 10726 10727 -L* | -R* | -l*) 10728 # Some compilers place space between "-{L,R}" and the path. 10729 # Remove the space. 10730 if test $p = "-L" \ 10731 || test $p = "-R"; then 10732 prev=$p 10733 continue 10734 else 10735 prev= 10736 fi 10737 10738 if test "$pre_test_object_deps_done" = no; then 10739 case $p in 10740 -L* | -R*) 10741 # Internal compiler library paths should come after those 10742 # provided the user. The postdeps already come after the 10743 # user supplied libs so there is no need to process them. 10744 if test -z "$compiler_lib_search_path_CXX"; then 10745 compiler_lib_search_path_CXX="${prev}${p}" 10746 else 10747 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10748 fi 10749 ;; 10750 # The "-l" case would never come before the object being 10751 # linked, so don't bother handling this case. 10752 esac 10753 else 10754 if test -z "$postdeps_CXX"; then 10755 postdeps_CXX="${prev}${p}" 10756 else 10757 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10758 fi 10759 fi 10760 ;; 10761 10762 *.$objext) 10763 # This assumes that the test object file only shows up 10764 # once in the compiler output. 10765 if test "$p" = "conftest.$objext"; then 10766 pre_test_object_deps_done=yes 10767 continue 10768 fi 10769 10770 if test "$pre_test_object_deps_done" = no; then 10771 if test -z "$predep_objects_CXX"; then 10772 predep_objects_CXX="$p" 10773 else 10774 predep_objects_CXX="$predep_objects_CXX $p" 10775 fi 10776 else 10777 if test -z "$postdep_objects_CXX"; then 10778 postdep_objects_CXX="$p" 10779 else 10780 postdep_objects_CXX="$postdep_objects_CXX $p" 10781 fi 10782 fi 10783 ;; 10784 10785 *) ;; # Ignore the rest. 10786 10787 esac 10788 done 10789 10790 # Clean up. 10791 rm -f a.out a.exe 10792else 10793 echo "libtool.m4: error: problem compiling CXX test program" 10794fi 10795 10796$rm -f confest.$objext 10797 10798case " $postdeps_CXX " in 10799*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10800esac 10801 10802lt_prog_compiler_wl_CXX= 10803lt_prog_compiler_pic_CXX= 10804lt_prog_compiler_static_CXX= 10805 10806echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10807echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10808 10809 # C++ specific cases for pic, static, wl, etc. 10810 if test "$GXX" = yes; then 10811 lt_prog_compiler_wl_CXX='-Wl,' 10812 lt_prog_compiler_static_CXX='-static' 10813 10814 case $host_os in 10815 aix*) 10816 # All AIX code is PIC. 10817 if test "$host_cpu" = ia64; then 10818 # AIX 5 now supports IA64 processor 10819 lt_prog_compiler_static_CXX='-Bstatic' 10820 fi 10821 ;; 10822 amigaos*) 10823 # FIXME: we need at least 68020 code to build shared libraries, but 10824 # adding the `-m68020' flag to GCC prevents building anything better, 10825 # like `-m68040'. 10826 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10827 ;; 10828 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10829 # PIC is the default for these OSes. 10830 ;; 10831 mingw* | os2* | pw32*) 10832 # This hack is so that the source file can tell whether it is being 10833 # built for inclusion in a dll (and should export symbols for example). 10834 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10835 ;; 10836 darwin* | rhapsody*) 10837 # PIC is the default on this platform 10838 # Common symbols not allowed in MH_DYLIB files 10839 lt_prog_compiler_pic_CXX='-fno-common' 10840 ;; 10841 *djgpp*) 10842 # DJGPP does not support shared libraries at all 10843 lt_prog_compiler_pic_CXX= 10844 ;; 10845 sysv4*MP*) 10846 if test -d /usr/nec; then 10847 lt_prog_compiler_pic_CXX=-Kconform_pic 10848 fi 10849 ;; 10850 hpux*) 10851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10852 # not for PA HP-UX. 10853 case "$host_cpu" in 10854 hppa*64*|ia64*) 10855 ;; 10856 *) 10857 lt_prog_compiler_pic_CXX='-fPIC' 10858 ;; 10859 esac 10860 ;; 10861 *) 10862 lt_prog_compiler_pic_CXX='-fPIC' 10863 ;; 10864 esac 10865 else 10866 case $host_os in 10867 aix4* | aix5*) 10868 # All AIX code is PIC. 10869 if test "$host_cpu" = ia64; then 10870 # AIX 5 now supports IA64 processor 10871 lt_prog_compiler_static_CXX='-Bstatic' 10872 else 10873 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10874 fi 10875 ;; 10876 chorus*) 10877 case $cc_basename in 10878 cxch68) 10879 # Green Hills C++ Compiler 10880 # _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" 10881 ;; 10882 esac 10883 ;; 10884 dgux*) 10885 case $cc_basename in 10886 ec++) 10887 lt_prog_compiler_pic_CXX='-KPIC' 10888 ;; 10889 ghcx) 10890 # Green Hills C++ Compiler 10891 lt_prog_compiler_pic_CXX='-pic' 10892 ;; 10893 *) 10894 ;; 10895 esac 10896 ;; 10897 freebsd*) 10898 # FreeBSD uses GNU C++ 10899 ;; 10900 hpux9* | hpux10* | hpux11*) 10901 case $cc_basename in 10902 CC) 10903 lt_prog_compiler_wl_CXX='-Wl,' 10904 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10905 if test "$host_cpu" != ia64; then 10906 lt_prog_compiler_pic_CXX='+Z' 10907 fi 10908 ;; 10909 aCC) 10910 lt_prog_compiler_wl_CXX='-Wl,' 10911 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10912 case "$host_cpu" in 10913 hppa*64*|ia64*) 10914 # +Z the default 10915 ;; 10916 *) 10917 lt_prog_compiler_pic_CXX='+Z' 10918 ;; 10919 esac 10920 ;; 10921 *) 10922 ;; 10923 esac 10924 ;; 10925 irix5* | irix6* | nonstopux*) 10926 case $cc_basename in 10927 CC) 10928 lt_prog_compiler_wl_CXX='-Wl,' 10929 lt_prog_compiler_static_CXX='-non_shared' 10930 # CC pic flag -KPIC is the default. 10931 ;; 10932 *) 10933 ;; 10934 esac 10935 ;; 10936 linux*) 10937 case $cc_basename in 10938 KCC) 10939 # KAI C++ Compiler 10940 lt_prog_compiler_wl_CXX='--backend -Wl,' 10941 lt_prog_compiler_pic_CXX='-fPIC' 10942 ;; 10943 icpc) 10944 # Intel C++ 10945 lt_prog_compiler_wl_CXX='-Wl,' 10946 lt_prog_compiler_pic_CXX='-KPIC' 10947 lt_prog_compiler_static_CXX='-static' 10948 ;; 10949 cxx) 10950 # Compaq C++ 10951 # Make sure the PIC flag is empty. It appears that all Alpha 10952 # Linux and Compaq Tru64 Unix objects are PIC. 10953 lt_prog_compiler_pic_CXX= 10954 lt_prog_compiler_static_CXX='-non_shared' 10955 ;; 10956 *) 10957 ;; 10958 esac 10959 ;; 10960 lynxos*) 10961 ;; 10962 m88k*) 10963 ;; 10964 mvs*) 10965 case $cc_basename in 10966 cxx) 10967 lt_prog_compiler_pic_CXX='-W c,exportall' 10968 ;; 10969 *) 10970 ;; 10971 esac 10972 ;; 10973 netbsd*) 10974 ;; 10975 osf3* | osf4* | osf5*) 10976 case $cc_basename in 10977 KCC) 10978 lt_prog_compiler_wl_CXX='--backend -Wl,' 10979 ;; 10980 RCC) 10981 # Rational C++ 2.4.1 10982 lt_prog_compiler_pic_CXX='-pic' 10983 ;; 10984 cxx) 10985 # Digital/Compaq C++ 10986 lt_prog_compiler_wl_CXX='-Wl,' 10987 # Make sure the PIC flag is empty. It appears that all Alpha 10988 # Linux and Compaq Tru64 Unix objects are PIC. 10989 lt_prog_compiler_pic_CXX= 10990 lt_prog_compiler_static_CXX='-non_shared' 10991 ;; 10992 *) 10993 ;; 10994 esac 10995 ;; 10996 psos*) 10997 ;; 10998 sco*) 10999 case $cc_basename in 11000 CC) 11001 lt_prog_compiler_pic_CXX='-fPIC' 11002 ;; 11003 *) 11004 ;; 11005 esac 11006 ;; 11007 solaris*) 11008 case $cc_basename in 11009 CC) 11010 # Sun C++ 4.2, 5.x and Centerline C++ 11011 lt_prog_compiler_pic_CXX='-KPIC' 11012 lt_prog_compiler_static_CXX='-Bstatic' 11013 lt_prog_compiler_wl_CXX='-Qoption ld ' 11014 ;; 11015 gcx) 11016 # Green Hills C++ Compiler 11017 lt_prog_compiler_pic_CXX='-PIC' 11018 ;; 11019 *) 11020 ;; 11021 esac 11022 ;; 11023 sunos4*) 11024 case $cc_basename in 11025 CC) 11026 # Sun C++ 4.x 11027 lt_prog_compiler_pic_CXX='-pic' 11028 lt_prog_compiler_static_CXX='-Bstatic' 11029 ;; 11030 lcc) 11031 # Lucid 11032 lt_prog_compiler_pic_CXX='-pic' 11033 ;; 11034 *) 11035 ;; 11036 esac 11037 ;; 11038 tandem*) 11039 case $cc_basename in 11040 NCC) 11041 # NonStop-UX NCC 3.20 11042 lt_prog_compiler_pic_CXX='-KPIC' 11043 ;; 11044 *) 11045 ;; 11046 esac 11047 ;; 11048 unixware*) 11049 ;; 11050 vxworks*) 11051 ;; 11052 *) 11053 lt_prog_compiler_can_build_shared_CXX=no 11054 ;; 11055 esac 11056 fi 11057 11058echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11059echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11060 11061# 11062# Check to make sure the PIC flag actually works. 11063# 11064if test -n "$lt_prog_compiler_pic_CXX"; then 11065 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11066echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11067if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11068 echo $ECHO_N "(cached) $ECHO_C" >&6 11069else 11070 lt_prog_compiler_pic_works_CXX=no 11071 ac_outfile=conftest.$ac_objext 11072 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11073 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11074 # Insert the option either (1) after the last *FLAGS variable, or 11075 # (2) before a word containing "conftest.", or (3) at the end. 11076 # Note that $ac_compile itself does not contain backslashes and begins 11077 # with a dollar sign (not a hyphen), so the echo should work correctly. 11078 # The option is referenced via a variable to avoid confusing sed. 11079 lt_compile=`echo "$ac_compile" | $SED \ 11080 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11082 -e 's:$: $lt_compiler_flag:'` 11083 (eval echo "\"\$as_me:11083: $lt_compile\"" >&5) 11084 (eval "$lt_compile" 2>conftest.err) 11085 ac_status=$? 11086 cat conftest.err >&5 11087 echo "$as_me:11087: \$? = $ac_status" >&5 11088 if (exit $ac_status) && test -s "$ac_outfile"; then 11089 # The compiler can only warn and ignore the option if not recognized 11090 # So say no if there are warnings 11091 if test ! -s conftest.err; then 11092 lt_prog_compiler_pic_works_CXX=yes 11093 fi 11094 fi 11095 $rm conftest* 11096 11097fi 11098echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11099echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11100 11101if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11102 case $lt_prog_compiler_pic_CXX in 11103 "" | " "*) ;; 11104 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11105 esac 11106else 11107 lt_prog_compiler_pic_CXX= 11108 lt_prog_compiler_can_build_shared_CXX=no 11109fi 11110 11111fi 11112case "$host_os" in 11113 # For platforms which do not support PIC, -DPIC is meaningless: 11114 *djgpp*) 11115 lt_prog_compiler_pic_CXX= 11116 ;; 11117 *) 11118 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11119 ;; 11120esac 11121 11122echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11123echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11124if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11125 echo $ECHO_N "(cached) $ECHO_C" >&6 11126else 11127 lt_cv_prog_compiler_c_o_CXX=no 11128 $rm -r conftest 2>/dev/null 11129 mkdir conftest 11130 cd conftest 11131 mkdir out 11132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11133 11134 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 11135 # that will create temporary files in the current directory regardless of 11136 # the output directory. Thus, making CWD read-only will cause this test 11137 # to fail, enabling locking or at least warning the user not to do parallel 11138 # builds. 11139 chmod -w . 11140 11141 lt_compiler_flag="-o out/conftest2.$ac_objext" 11142 # Insert the option either (1) after the last *FLAGS variable, or 11143 # (2) before a word containing "conftest.", or (3) at the end. 11144 # Note that $ac_compile itself does not contain backslashes and begins 11145 # with a dollar sign (not a hyphen), so the echo should work correctly. 11146 lt_compile=`echo "$ac_compile" | $SED \ 11147 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11149 -e 's:$: $lt_compiler_flag:'` 11150 (eval echo "\"\$as_me:11150: $lt_compile\"" >&5) 11151 (eval "$lt_compile" 2>out/conftest.err) 11152 ac_status=$? 11153 cat out/conftest.err >&5 11154 echo "$as_me:11154: \$? = $ac_status" >&5 11155 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11156 then 11157 # The compiler can only warn and ignore the option if not recognized 11158 # So say no if there are warnings 11159 if test ! -s out/conftest.err; then 11160 lt_cv_prog_compiler_c_o_CXX=yes 11161 fi 11162 fi 11163 chmod u+w . 11164 $rm conftest* out/* 11165 rmdir out 11166 cd .. 11167 rmdir conftest 11168 $rm conftest* 11169 11170fi 11171echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11172echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11173 11174 11175hard_links="nottested" 11176if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11177 # do not overwrite the value of need_locks provided by the user 11178 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11179echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11180 hard_links=yes 11181 $rm conftest* 11182 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11183 touch conftest.a 11184 ln conftest.a conftest.b 2>&5 || hard_links=no 11185 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11186 echo "$as_me:$LINENO: result: $hard_links" >&5 11187echo "${ECHO_T}$hard_links" >&6 11188 if test "$hard_links" = no; then 11189 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11190echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11191 need_locks=warn 11192 fi 11193else 11194 need_locks=no 11195fi 11196 11197echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11198echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11199 11200 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11201 case $host_os in 11202 aix4* | aix5*) 11203 # If we're using GNU nm, then we don't want the "-C" option. 11204 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11205 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11206 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' 11207 else 11208 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' 11209 fi 11210 ;; 11211 pw32*) 11212 export_symbols_cmds_CXX="$ltdll_cmds" 11213 ;; 11214 cygwin* | mingw*) 11215 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11216 ;; 11217 *) 11218 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11219 ;; 11220 esac 11221 11222echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11223echo "${ECHO_T}$ld_shlibs_CXX" >&6 11224test "$ld_shlibs_CXX" = no && can_build_shared=no 11225 11226variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11227if test "$GCC" = yes; then 11228 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11229fi 11230 11231# 11232# Do we need to explicitly link libc? 11233# 11234case "x$archive_cmds_need_lc_CXX" in 11235x|xyes) 11236 # Assume -lc should be added 11237 archive_cmds_need_lc_CXX=yes 11238 11239 if test "$enable_shared" = yes && test "$GCC" = yes; then 11240 case $archive_cmds_CXX in 11241 *'~'*) 11242 # FIXME: we may have to deal with multi-command sequences. 11243 ;; 11244 '$CC '*) 11245 # Test whether the compiler implicitly links with -lc since on some 11246 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11247 # to ld, don't add -lc before -lgcc. 11248 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11249echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11250 $rm conftest* 11251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11252 11253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11254 (eval $ac_compile) 2>&5 11255 ac_status=$? 11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11257 (exit $ac_status); } 2>conftest.err; then 11258 soname=conftest 11259 lib=conftest 11260 libobjs=conftest.$ac_objext 11261 deplibs= 11262 wl=$lt_prog_compiler_wl_CXX 11263 compiler_flags=-v 11264 linker_flags=-v 11265 verstring= 11266 output_objdir=. 11267 libname=conftest 11268 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11269 allow_undefined_flag_CXX= 11270 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11271 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11272 ac_status=$? 11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11274 (exit $ac_status); } 11275 then 11276 archive_cmds_need_lc_CXX=no 11277 else 11278 archive_cmds_need_lc_CXX=yes 11279 fi 11280 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11281 else 11282 cat conftest.err 1>&5 11283 fi 11284 $rm conftest* 11285 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11286echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11287 ;; 11288 esac 11289 fi 11290 ;; 11291esac 11292 11293echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11294echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11295hardcode_action_CXX= 11296if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11297 test -n "$runpath_var CXX" || \ 11298 test "X$hardcode_automatic_CXX"="Xyes" ; then 11299 11300 # We can hardcode non-existant directories. 11301 if test "$hardcode_direct_CXX" != no && 11302 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11303 # have to relink, otherwise we might link with an installed library 11304 # when we should be linking with a yet-to-be-installed one 11305 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11306 test "$hardcode_minus_L_CXX" != no; then 11307 # Linking always hardcodes the temporary library directory. 11308 hardcode_action_CXX=relink 11309 else 11310 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11311 hardcode_action_CXX=immediate 11312 fi 11313else 11314 # We cannot hardcode anything, or else we can only hardcode existing 11315 # directories. 11316 hardcode_action_CXX=unsupported 11317fi 11318echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11319echo "${ECHO_T}$hardcode_action_CXX" >&6 11320 11321if test "$hardcode_action_CXX" = relink; then 11322 # Fast installation is not supported 11323 enable_fast_install=no 11324elif test "$shlibpath_overrides_runpath" = yes || 11325 test "$enable_shared" = no; then 11326 # Fast installation is not necessary 11327 enable_fast_install=needless 11328fi 11329 11330striplib= 11331old_striplib= 11332echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11333echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11334if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11336 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11337 echo "$as_me:$LINENO: result: yes" >&5 11338echo "${ECHO_T}yes" >&6 11339else 11340# FIXME - insert some real tests, host_os isn't really good enough 11341 case $host_os in 11342 darwin*) 11343 if test -n "$STRIP" ; then 11344 striplib="$STRIP -x" 11345 echo "$as_me:$LINENO: result: yes" >&5 11346echo "${ECHO_T}yes" >&6 11347 else 11348 echo "$as_me:$LINENO: result: no" >&5 11349echo "${ECHO_T}no" >&6 11350fi 11351 ;; 11352 *) 11353 echo "$as_me:$LINENO: result: no" >&5 11354echo "${ECHO_T}no" >&6 11355 ;; 11356 esac 11357fi 11358 11359echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11360echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11361library_names_spec= 11362libname_spec='lib$name' 11363soname_spec= 11364shrext=".so" 11365postinstall_cmds= 11366postuninstall_cmds= 11367finish_cmds= 11368finish_eval= 11369shlibpath_var= 11370shlibpath_overrides_runpath=unknown 11371version_type=none 11372dynamic_linker="$host_os ld.so" 11373sys_lib_dlsearch_path_spec="/lib /usr/lib" 11374if test "$GCC" = yes; then 11375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11376 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11377 # if the path contains ";" then we assume it to be the separator 11378 # otherwise default to the standard path separator (i.e. ":") - it is 11379 # assumed that no part of a normal pathname contains ";" but that should 11380 # okay in the real world where ";" in dirpaths is itself problematic. 11381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11382 else 11383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11384 fi 11385else 11386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11387fi 11388need_lib_prefix=unknown 11389hardcode_into_libs=no 11390 11391# when you set need_version to no, make sure it does not cause -set_version 11392# flags to be left without arguments 11393need_version=unknown 11394 11395case $host_os in 11396aix3*) 11397 version_type=linux 11398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11399 shlibpath_var=LIBPATH 11400 11401 # AIX 3 has no versioning support, so we append a major version to the name. 11402 soname_spec='${libname}${release}${shared_ext}$major' 11403 ;; 11404 11405aix4* | aix5*) 11406 version_type=linux 11407 need_lib_prefix=no 11408 need_version=no 11409 hardcode_into_libs=yes 11410 if test "$host_cpu" = ia64; then 11411 # AIX 5 supports IA64 11412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11413 shlibpath_var=LD_LIBRARY_PATH 11414 else 11415 # With GCC up to 2.95.x, collect2 would create an import file 11416 # for dependence libraries. The import file would start with 11417 # the line `#! .'. This would cause the generated library to 11418 # depend on `.', always an invalid library. This was fixed in 11419 # development snapshots of GCC prior to 3.0. 11420 case $host_os in 11421 aix4 | aix4.[01] | aix4.[01].*) 11422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11423 echo ' yes ' 11424 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11425 : 11426 else 11427 can_build_shared=no 11428 fi 11429 ;; 11430 esac 11431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11432 # soname into executable. Probably we can add versioning support to 11433 # collect2, so additional links can be useful in future. 11434 if test "$aix_use_runtimelinking" = yes; then 11435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11436 # instead of lib<name>.a to let people know that these are not 11437 # typical AIX shared libraries. 11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11439 else 11440 # We preserve .a as extension for shared libraries through AIX4.2 11441 # and later when we are not doing run time linking. 11442 library_names_spec='${libname}${release}.a $libname.a' 11443 soname_spec='${libname}${release}${shared_ext}$major' 11444 fi 11445 shlibpath_var=LIBPATH 11446 fi 11447 ;; 11448 11449amigaos*) 11450 library_names_spec='$libname.ixlibrary $libname.a' 11451 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11452 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' 11453 ;; 11454 11455beos*) 11456 library_names_spec='${libname}${shared_ext}' 11457 dynamic_linker="$host_os ld.so" 11458 shlibpath_var=LIBRARY_PATH 11459 ;; 11460 11461bsdi4*) 11462 version_type=linux 11463 need_version=no 11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11465 soname_spec='${libname}${release}${shared_ext}$major' 11466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11467 shlibpath_var=LD_LIBRARY_PATH 11468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11470 # the default ld.so.conf also contains /usr/contrib/lib and 11471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11472 # libtool to hard-code these into programs 11473 ;; 11474 11475cygwin* | mingw* | pw32*) 11476 version_type=windows 11477 shrext=".dll" 11478 need_version=no 11479 need_lib_prefix=no 11480 11481 case $GCC,$host_os in 11482 yes,cygwin* | yes,mingw* | yes,pw32*) 11483 library_names_spec='$libname.dll.a' 11484 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11485 postinstall_cmds='base_file=`basename \${file}`~ 11486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11487 dldir=$destdir/`dirname \$dlpath`~ 11488 test -d \$dldir || mkdir -p \$dldir~ 11489 $install_prog $dir/$dlname \$dldir/$dlname' 11490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11491 dlpath=$dir/\$dldll~ 11492 $rm \$dlpath' 11493 shlibpath_overrides_runpath=yes 11494 11495 case $host_os in 11496 cygwin*) 11497 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11498 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11499 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 11500 ;; 11501 mingw*) 11502 # MinGW DLLs use traditional 'lib' prefix 11503 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11505 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11506 # It is most probably a Windows format PATH printed by 11507 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11508 # path with ; separators, and with drive letters. We can handle the 11509 # drive letters (cygwin fileutils understands them), so leave them, 11510 # especially as we might pass files found there to a mingw objdump, 11511 # which wouldn't understand a cygwinified path. Ahh. 11512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11513 else 11514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11515 fi 11516 ;; 11517 pw32*) 11518 # pw32 DLLs use 'pw' prefix rather than 'lib' 11519 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 11520 ;; 11521 esac 11522 ;; 11523 11524 *) 11525 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11526 ;; 11527 esac 11528 dynamic_linker='Win32 ld.exe' 11529 # FIXME: first we should search . and the directory the executable is in 11530 shlibpath_var=PATH 11531 ;; 11532 11533darwin* | rhapsody*) 11534 dynamic_linker="$host_os dyld" 11535 version_type=darwin 11536 need_lib_prefix=no 11537 need_version=no 11538 # FIXME: Relying on posixy $() will cause problems for 11539 # cross-compilation, but unfortunately the echo tests do not 11540 # yet detect zsh echo's removal of \ escapes. 11541 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11542 soname_spec='${libname}${release}${major}$shared_ext' 11543 shlibpath_overrides_runpath=yes 11544 shlibpath_var=DYLD_LIBRARY_PATH 11545 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 11546 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11547 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 11548 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"` 11549 fi 11550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11551 ;; 11552 11553dgux*) 11554 version_type=linux 11555 need_lib_prefix=no 11556 need_version=no 11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11558 soname_spec='${libname}${release}${shared_ext}$major' 11559 shlibpath_var=LD_LIBRARY_PATH 11560 ;; 11561 11562freebsd1*) 11563 dynamic_linker=no 11564 ;; 11565 11566freebsd*) 11567 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11568 version_type=freebsd-$objformat 11569 case $version_type in 11570 freebsd-elf*) 11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11572 need_version=no 11573 need_lib_prefix=no 11574 ;; 11575 freebsd-*) 11576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11577 need_version=yes 11578 ;; 11579 esac 11580 shlibpath_var=LD_LIBRARY_PATH 11581 case $host_os in 11582 freebsd2*) 11583 shlibpath_overrides_runpath=yes 11584 ;; 11585 freebsd3.01* | freebsdelf3.01*) 11586 shlibpath_overrides_runpath=yes 11587 hardcode_into_libs=yes 11588 ;; 11589 *) # from 3.2 on 11590 shlibpath_overrides_runpath=no 11591 hardcode_into_libs=yes 11592 ;; 11593 esac 11594 ;; 11595 11596gnu*) 11597 version_type=linux 11598 need_lib_prefix=no 11599 need_version=no 11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11601 soname_spec='${libname}${release}${shared_ext}$major' 11602 shlibpath_var=LD_LIBRARY_PATH 11603 hardcode_into_libs=yes 11604 ;; 11605 11606hpux9* | hpux10* | hpux11*) 11607 # Give a soname corresponding to the major version so that dld.sl refuses to 11608 # link against other versions. 11609 version_type=sunos 11610 need_lib_prefix=no 11611 need_version=no 11612 case "$host_cpu" in 11613 ia64*) 11614 shrext='.so' 11615 hardcode_into_libs=yes 11616 dynamic_linker="$host_os dld.so" 11617 shlibpath_var=LD_LIBRARY_PATH 11618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11620 soname_spec='${libname}${release}${shared_ext}$major' 11621 if test "X$HPUX_IA64_MODE" = X32; then 11622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11623 else 11624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11625 fi 11626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11627 ;; 11628 hppa*64*) 11629 shrext='.sl' 11630 hardcode_into_libs=yes 11631 dynamic_linker="$host_os dld.sl" 11632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11635 soname_spec='${libname}${release}${shared_ext}$major' 11636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11638 ;; 11639 *) 11640 shrext='.sl' 11641 dynamic_linker="$host_os dld.sl" 11642 shlibpath_var=SHLIB_PATH 11643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11645 soname_spec='${libname}${release}${shared_ext}$major' 11646 ;; 11647 esac 11648 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11649 postinstall_cmds='chmod 555 $lib' 11650 ;; 11651 11652irix5* | irix6* | nonstopux*) 11653 case $host_os in 11654 nonstopux*) version_type=nonstopux ;; 11655 *) 11656 if test "$lt_cv_prog_gnu_ld" = yes; then 11657 version_type=linux 11658 else 11659 version_type=irix 11660 fi ;; 11661 esac 11662 need_lib_prefix=no 11663 need_version=no 11664 soname_spec='${libname}${release}${shared_ext}$major' 11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11666 case $host_os in 11667 irix5* | nonstopux*) 11668 libsuff= shlibsuff= 11669 ;; 11670 *) 11671 case $LD in # libtool.m4 will add one of these switches to LD 11672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11673 libsuff= shlibsuff= libmagic=32-bit;; 11674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11675 libsuff=32 shlibsuff=N32 libmagic=N32;; 11676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11677 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11678 *) libsuff= shlibsuff= libmagic=never-match;; 11679 esac 11680 ;; 11681 esac 11682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11683 shlibpath_overrides_runpath=no 11684 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11685 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11686 hardcode_into_libs=yes 11687 ;; 11688 11689# No shared lib support for Linux oldld, aout, or coff. 11690linux*oldld* | linux*aout* | linux*coff*) 11691 dynamic_linker=no 11692 ;; 11693 11694# This must be Linux ELF. 11695linux*) 11696 version_type=linux 11697 need_lib_prefix=no 11698 need_version=no 11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11700 soname_spec='${libname}${release}${shared_ext}$major' 11701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11702 shlibpath_var=LD_LIBRARY_PATH 11703 shlibpath_overrides_runpath=no 11704 # This implies no fast_install, which is unacceptable. 11705 # Some rework will be needed to allow for fast_install 11706 # before this can be enabled. 11707 hardcode_into_libs=yes 11708 11709 # We used to test for /lib/ld.so.1 and disable shared libraries on 11710 # powerpc, because MkLinux only supported shared libraries with the 11711 # GNU dynamic linker. Since this was broken with cross compilers, 11712 # most powerpc-linux boxes support dynamic linking these days and 11713 # people can always --disable-shared, the test was removed, and we 11714 # assume the GNU/Linux dynamic linker is in use. 11715 dynamic_linker='GNU/Linux ld.so' 11716 ;; 11717 11718netbsd*) 11719 version_type=sunos 11720 need_lib_prefix=no 11721 need_version=no 11722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11725 dynamic_linker='NetBSD (a.out) ld.so' 11726 else 11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 11728 soname_spec='${libname}${release}${shared_ext}$major' 11729 dynamic_linker='NetBSD ld.elf_so' 11730 fi 11731 shlibpath_var=LD_LIBRARY_PATH 11732 shlibpath_overrides_runpath=yes 11733 hardcode_into_libs=yes 11734 ;; 11735 11736newsos6) 11737 version_type=linux 11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11739 shlibpath_var=LD_LIBRARY_PATH 11740 shlibpath_overrides_runpath=yes 11741 ;; 11742 11743nto-qnx) 11744 version_type=linux 11745 need_lib_prefix=no 11746 need_version=no 11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11748 soname_spec='${libname}${release}${shared_ext}$major' 11749 shlibpath_var=LD_LIBRARY_PATH 11750 shlibpath_overrides_runpath=yes 11751 ;; 11752 11753openbsd*) 11754 version_type=sunos 11755 need_lib_prefix=no 11756 need_version=no 11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11759 shlibpath_var=LD_LIBRARY_PATH 11760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11761 case $host_os in 11762 openbsd2.[89] | openbsd2.[89].*) 11763 shlibpath_overrides_runpath=no 11764 ;; 11765 *) 11766 shlibpath_overrides_runpath=yes 11767 ;; 11768 esac 11769 else 11770 shlibpath_overrides_runpath=yes 11771 fi 11772 ;; 11773 11774os2*) 11775 libname_spec='$name' 11776 shrext=".dll" 11777 need_lib_prefix=no 11778 library_names_spec='$libname${shared_ext} $libname.a' 11779 dynamic_linker='OS/2 ld.exe' 11780 shlibpath_var=LIBPATH 11781 ;; 11782 11783osf3* | osf4* | osf5*) 11784 version_type=osf 11785 need_lib_prefix=no 11786 need_version=no 11787 soname_spec='${libname}${release}${shared_ext}$major' 11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11789 shlibpath_var=LD_LIBRARY_PATH 11790 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11791 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11792 ;; 11793 11794sco3.2v5*) 11795 version_type=osf 11796 soname_spec='${libname}${release}${shared_ext}$major' 11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11798 shlibpath_var=LD_LIBRARY_PATH 11799 ;; 11800 11801solaris*) 11802 version_type=linux 11803 need_lib_prefix=no 11804 need_version=no 11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11806 soname_spec='${libname}${release}${shared_ext}$major' 11807 shlibpath_var=LD_LIBRARY_PATH 11808 shlibpath_overrides_runpath=yes 11809 hardcode_into_libs=yes 11810 # ldd complains unless libraries are executable 11811 postinstall_cmds='chmod +x $lib' 11812 ;; 11813 11814sunos4*) 11815 version_type=sunos 11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11817 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11818 shlibpath_var=LD_LIBRARY_PATH 11819 shlibpath_overrides_runpath=yes 11820 if test "$with_gnu_ld" = yes; then 11821 need_lib_prefix=no 11822 fi 11823 need_version=yes 11824 ;; 11825 11826sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11827 version_type=linux 11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11829 soname_spec='${libname}${release}${shared_ext}$major' 11830 shlibpath_var=LD_LIBRARY_PATH 11831 case $host_vendor in 11832 sni) 11833 shlibpath_overrides_runpath=no 11834 need_lib_prefix=no 11835 export_dynamic_flag_spec='${wl}-Blargedynsym' 11836 runpath_var=LD_RUN_PATH 11837 ;; 11838 siemens) 11839 need_lib_prefix=no 11840 ;; 11841 motorola) 11842 need_lib_prefix=no 11843 need_version=no 11844 shlibpath_overrides_runpath=no 11845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11846 ;; 11847 esac 11848 ;; 11849 11850sysv4*MP*) 11851 if test -d /usr/nec ;then 11852 version_type=linux 11853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11854 soname_spec='$libname${shared_ext}.$major' 11855 shlibpath_var=LD_LIBRARY_PATH 11856 fi 11857 ;; 11858 11859uts4*) 11860 version_type=linux 11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11862 soname_spec='${libname}${release}${shared_ext}$major' 11863 shlibpath_var=LD_LIBRARY_PATH 11864 ;; 11865 11866*) 11867 dynamic_linker=no 11868 ;; 11869esac 11870echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11871echo "${ECHO_T}$dynamic_linker" >&6 11872test "$dynamic_linker" = no && can_build_shared=no 11873 11874if test "x$enable_dlopen" != xyes; then 11875 enable_dlopen=unknown 11876 enable_dlopen_self=unknown 11877 enable_dlopen_self_static=unknown 11878else 11879 lt_cv_dlopen=no 11880 lt_cv_dlopen_libs= 11881 11882 case $host_os in 11883 beos*) 11884 lt_cv_dlopen="load_add_on" 11885 lt_cv_dlopen_libs= 11886 lt_cv_dlopen_self=yes 11887 ;; 11888 11889 mingw* | pw32*) 11890 lt_cv_dlopen="LoadLibrary" 11891 lt_cv_dlopen_libs= 11892 ;; 11893 11894 cygwin*) 11895 lt_cv_dlopen="dlopen" 11896 lt_cv_dlopen_libs= 11897 ;; 11898 11899 darwin*) 11900 # if libdl is installed we need to link against it 11901 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11902echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11903if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11904 echo $ECHO_N "(cached) $ECHO_C" >&6 11905else 11906 ac_check_lib_save_LIBS=$LIBS 11907LIBS="-ldl $LIBS" 11908cat >conftest.$ac_ext <<_ACEOF 11909#line $LINENO "configure" 11910/* confdefs.h. */ 11911_ACEOF 11912cat confdefs.h >>conftest.$ac_ext 11913cat >>conftest.$ac_ext <<_ACEOF 11914/* end confdefs.h. */ 11915 11916/* Override any gcc2 internal prototype to avoid an error. */ 11917#ifdef __cplusplus 11918extern "C" 11919#endif 11920/* We use char because int might match the return type of a gcc2 11921 builtin and then its argument prototype would still apply. */ 11922char dlopen (); 11923int 11924main () 11925{ 11926dlopen (); 11927 ; 11928 return 0; 11929} 11930_ACEOF 11931rm -f conftest.$ac_objext conftest$ac_exeext 11932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11933 (eval $ac_link) 2>&5 11934 ac_status=$? 11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11936 (exit $ac_status); } && 11937 { ac_try='test -s conftest$ac_exeext' 11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11939 (eval $ac_try) 2>&5 11940 ac_status=$? 11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11942 (exit $ac_status); }; }; then 11943 ac_cv_lib_dl_dlopen=yes 11944else 11945 echo "$as_me: failed program was:" >&5 11946sed 's/^/| /' conftest.$ac_ext >&5 11947 11948ac_cv_lib_dl_dlopen=no 11949fi 11950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11951LIBS=$ac_check_lib_save_LIBS 11952fi 11953echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11954echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11955if test $ac_cv_lib_dl_dlopen = yes; then 11956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11957else 11958 11959 lt_cv_dlopen="dyld" 11960 lt_cv_dlopen_libs= 11961 lt_cv_dlopen_self=yes 11962 11963fi 11964 11965 ;; 11966 11967 *) 11968 echo "$as_me:$LINENO: checking for shl_load" >&5 11969echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11970if test "${ac_cv_func_shl_load+set}" = set; then 11971 echo $ECHO_N "(cached) $ECHO_C" >&6 11972else 11973 cat >conftest.$ac_ext <<_ACEOF 11974#line $LINENO "configure" 11975/* confdefs.h. */ 11976_ACEOF 11977cat confdefs.h >>conftest.$ac_ext 11978cat >>conftest.$ac_ext <<_ACEOF 11979/* end confdefs.h. */ 11980/* System header to define __stub macros and hopefully few prototypes, 11981 which can conflict with char shl_load (); below. 11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11983 <limits.h> exists even on freestanding compilers. */ 11984#ifdef __STDC__ 11985# include <limits.h> 11986#else 11987# include <assert.h> 11988#endif 11989/* Override any gcc2 internal prototype to avoid an error. */ 11990#ifdef __cplusplus 11991extern "C" 11992{ 11993#endif 11994/* We use char because int might match the return type of a gcc2 11995 builtin and then its argument prototype would still apply. */ 11996char shl_load (); 11997/* The GNU C library defines this for functions which it implements 11998 to always fail with ENOSYS. Some functions are actually named 11999 something starting with __ and the normal name is an alias. */ 12000#if defined (__stub_shl_load) || defined (__stub___shl_load) 12001choke me 12002#else 12003char (*f) () = shl_load; 12004#endif 12005#ifdef __cplusplus 12006} 12007#endif 12008 12009int 12010main () 12011{ 12012return f != shl_load; 12013 ; 12014 return 0; 12015} 12016_ACEOF 12017rm -f conftest.$ac_objext conftest$ac_exeext 12018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12019 (eval $ac_link) 2>&5 12020 ac_status=$? 12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12022 (exit $ac_status); } && 12023 { ac_try='test -s conftest$ac_exeext' 12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12025 (eval $ac_try) 2>&5 12026 ac_status=$? 12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12028 (exit $ac_status); }; }; then 12029 ac_cv_func_shl_load=yes 12030else 12031 echo "$as_me: failed program was:" >&5 12032sed 's/^/| /' conftest.$ac_ext >&5 12033 12034ac_cv_func_shl_load=no 12035fi 12036rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12037fi 12038echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12039echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12040if test $ac_cv_func_shl_load = yes; then 12041 lt_cv_dlopen="shl_load" 12042else 12043 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12044echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12045if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12046 echo $ECHO_N "(cached) $ECHO_C" >&6 12047else 12048 ac_check_lib_save_LIBS=$LIBS 12049LIBS="-ldld $LIBS" 12050cat >conftest.$ac_ext <<_ACEOF 12051#line $LINENO "configure" 12052/* confdefs.h. */ 12053_ACEOF 12054cat confdefs.h >>conftest.$ac_ext 12055cat >>conftest.$ac_ext <<_ACEOF 12056/* end confdefs.h. */ 12057 12058/* Override any gcc2 internal prototype to avoid an error. */ 12059#ifdef __cplusplus 12060extern "C" 12061#endif 12062/* We use char because int might match the return type of a gcc2 12063 builtin and then its argument prototype would still apply. */ 12064char shl_load (); 12065int 12066main () 12067{ 12068shl_load (); 12069 ; 12070 return 0; 12071} 12072_ACEOF 12073rm -f conftest.$ac_objext conftest$ac_exeext 12074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12075 (eval $ac_link) 2>&5 12076 ac_status=$? 12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12078 (exit $ac_status); } && 12079 { ac_try='test -s conftest$ac_exeext' 12080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12081 (eval $ac_try) 2>&5 12082 ac_status=$? 12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12084 (exit $ac_status); }; }; then 12085 ac_cv_lib_dld_shl_load=yes 12086else 12087 echo "$as_me: failed program was:" >&5 12088sed 's/^/| /' conftest.$ac_ext >&5 12089 12090ac_cv_lib_dld_shl_load=no 12091fi 12092rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12093LIBS=$ac_check_lib_save_LIBS 12094fi 12095echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12096echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12097if test $ac_cv_lib_dld_shl_load = yes; then 12098 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12099else 12100 echo "$as_me:$LINENO: checking for dlopen" >&5 12101echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12102if test "${ac_cv_func_dlopen+set}" = set; then 12103 echo $ECHO_N "(cached) $ECHO_C" >&6 12104else 12105 cat >conftest.$ac_ext <<_ACEOF 12106#line $LINENO "configure" 12107/* confdefs.h. */ 12108_ACEOF 12109cat confdefs.h >>conftest.$ac_ext 12110cat >>conftest.$ac_ext <<_ACEOF 12111/* end confdefs.h. */ 12112/* System header to define __stub macros and hopefully few prototypes, 12113 which can conflict with char dlopen (); below. 12114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12115 <limits.h> exists even on freestanding compilers. */ 12116#ifdef __STDC__ 12117# include <limits.h> 12118#else 12119# include <assert.h> 12120#endif 12121/* Override any gcc2 internal prototype to avoid an error. */ 12122#ifdef __cplusplus 12123extern "C" 12124{ 12125#endif 12126/* We use char because int might match the return type of a gcc2 12127 builtin and then its argument prototype would still apply. */ 12128char dlopen (); 12129/* The GNU C library defines this for functions which it implements 12130 to always fail with ENOSYS. Some functions are actually named 12131 something starting with __ and the normal name is an alias. */ 12132#if defined (__stub_dlopen) || defined (__stub___dlopen) 12133choke me 12134#else 12135char (*f) () = dlopen; 12136#endif 12137#ifdef __cplusplus 12138} 12139#endif 12140 12141int 12142main () 12143{ 12144return f != dlopen; 12145 ; 12146 return 0; 12147} 12148_ACEOF 12149rm -f conftest.$ac_objext conftest$ac_exeext 12150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12151 (eval $ac_link) 2>&5 12152 ac_status=$? 12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12154 (exit $ac_status); } && 12155 { ac_try='test -s conftest$ac_exeext' 12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12157 (eval $ac_try) 2>&5 12158 ac_status=$? 12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12160 (exit $ac_status); }; }; then 12161 ac_cv_func_dlopen=yes 12162else 12163 echo "$as_me: failed program was:" >&5 12164sed 's/^/| /' conftest.$ac_ext >&5 12165 12166ac_cv_func_dlopen=no 12167fi 12168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12169fi 12170echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12171echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12172if test $ac_cv_func_dlopen = yes; then 12173 lt_cv_dlopen="dlopen" 12174else 12175 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12176echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12177if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12178 echo $ECHO_N "(cached) $ECHO_C" >&6 12179else 12180 ac_check_lib_save_LIBS=$LIBS 12181LIBS="-ldl $LIBS" 12182cat >conftest.$ac_ext <<_ACEOF 12183#line $LINENO "configure" 12184/* confdefs.h. */ 12185_ACEOF 12186cat confdefs.h >>conftest.$ac_ext 12187cat >>conftest.$ac_ext <<_ACEOF 12188/* end confdefs.h. */ 12189 12190/* Override any gcc2 internal prototype to avoid an error. */ 12191#ifdef __cplusplus 12192extern "C" 12193#endif 12194/* We use char because int might match the return type of a gcc2 12195 builtin and then its argument prototype would still apply. */ 12196char dlopen (); 12197int 12198main () 12199{ 12200dlopen (); 12201 ; 12202 return 0; 12203} 12204_ACEOF 12205rm -f conftest.$ac_objext conftest$ac_exeext 12206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12207 (eval $ac_link) 2>&5 12208 ac_status=$? 12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12210 (exit $ac_status); } && 12211 { ac_try='test -s conftest$ac_exeext' 12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12213 (eval $ac_try) 2>&5 12214 ac_status=$? 12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12216 (exit $ac_status); }; }; then 12217 ac_cv_lib_dl_dlopen=yes 12218else 12219 echo "$as_me: failed program was:" >&5 12220sed 's/^/| /' conftest.$ac_ext >&5 12221 12222ac_cv_lib_dl_dlopen=no 12223fi 12224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12225LIBS=$ac_check_lib_save_LIBS 12226fi 12227echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12228echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12229if test $ac_cv_lib_dl_dlopen = yes; then 12230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12231else 12232 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12233echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12234if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12235 echo $ECHO_N "(cached) $ECHO_C" >&6 12236else 12237 ac_check_lib_save_LIBS=$LIBS 12238LIBS="-lsvld $LIBS" 12239cat >conftest.$ac_ext <<_ACEOF 12240#line $LINENO "configure" 12241/* confdefs.h. */ 12242_ACEOF 12243cat confdefs.h >>conftest.$ac_ext 12244cat >>conftest.$ac_ext <<_ACEOF 12245/* end confdefs.h. */ 12246 12247/* Override any gcc2 internal prototype to avoid an error. */ 12248#ifdef __cplusplus 12249extern "C" 12250#endif 12251/* We use char because int might match the return type of a gcc2 12252 builtin and then its argument prototype would still apply. */ 12253char dlopen (); 12254int 12255main () 12256{ 12257dlopen (); 12258 ; 12259 return 0; 12260} 12261_ACEOF 12262rm -f conftest.$ac_objext conftest$ac_exeext 12263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12264 (eval $ac_link) 2>&5 12265 ac_status=$? 12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12267 (exit $ac_status); } && 12268 { ac_try='test -s conftest$ac_exeext' 12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12270 (eval $ac_try) 2>&5 12271 ac_status=$? 12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12273 (exit $ac_status); }; }; then 12274 ac_cv_lib_svld_dlopen=yes 12275else 12276 echo "$as_me: failed program was:" >&5 12277sed 's/^/| /' conftest.$ac_ext >&5 12278 12279ac_cv_lib_svld_dlopen=no 12280fi 12281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12282LIBS=$ac_check_lib_save_LIBS 12283fi 12284echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12285echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12286if test $ac_cv_lib_svld_dlopen = yes; then 12287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12288else 12289 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12290echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12291if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12292 echo $ECHO_N "(cached) $ECHO_C" >&6 12293else 12294 ac_check_lib_save_LIBS=$LIBS 12295LIBS="-ldld $LIBS" 12296cat >conftest.$ac_ext <<_ACEOF 12297#line $LINENO "configure" 12298/* confdefs.h. */ 12299_ACEOF 12300cat confdefs.h >>conftest.$ac_ext 12301cat >>conftest.$ac_ext <<_ACEOF 12302/* end confdefs.h. */ 12303 12304/* Override any gcc2 internal prototype to avoid an error. */ 12305#ifdef __cplusplus 12306extern "C" 12307#endif 12308/* We use char because int might match the return type of a gcc2 12309 builtin and then its argument prototype would still apply. */ 12310char dld_link (); 12311int 12312main () 12313{ 12314dld_link (); 12315 ; 12316 return 0; 12317} 12318_ACEOF 12319rm -f conftest.$ac_objext conftest$ac_exeext 12320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12321 (eval $ac_link) 2>&5 12322 ac_status=$? 12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12324 (exit $ac_status); } && 12325 { ac_try='test -s conftest$ac_exeext' 12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12327 (eval $ac_try) 2>&5 12328 ac_status=$? 12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12330 (exit $ac_status); }; }; then 12331 ac_cv_lib_dld_dld_link=yes 12332else 12333 echo "$as_me: failed program was:" >&5 12334sed 's/^/| /' conftest.$ac_ext >&5 12335 12336ac_cv_lib_dld_dld_link=no 12337fi 12338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12339LIBS=$ac_check_lib_save_LIBS 12340fi 12341echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12342echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12343if test $ac_cv_lib_dld_dld_link = yes; then 12344 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12345fi 12346 12347 12348fi 12349 12350 12351fi 12352 12353 12354fi 12355 12356 12357fi 12358 12359 12360fi 12361 12362 ;; 12363 esac 12364 12365 if test "x$lt_cv_dlopen" != xno; then 12366 enable_dlopen=yes 12367 else 12368 enable_dlopen=no 12369 fi 12370 12371 case $lt_cv_dlopen in 12372 dlopen) 12373 save_CPPFLAGS="$CPPFLAGS" 12374 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12375 12376 save_LDFLAGS="$LDFLAGS" 12377 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12378 12379 save_LIBS="$LIBS" 12380 LIBS="$lt_cv_dlopen_libs $LIBS" 12381 12382 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12383echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12384if test "${lt_cv_dlopen_self+set}" = set; then 12385 echo $ECHO_N "(cached) $ECHO_C" >&6 12386else 12387 if test "$cross_compiling" = yes; then : 12388 lt_cv_dlopen_self=cross 12389else 12390 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12391 lt_status=$lt_dlunknown 12392 cat > conftest.$ac_ext <<EOF 12393#line 12393 "configure" 12394#include "confdefs.h" 12395 12396#if HAVE_DLFCN_H 12397#include <dlfcn.h> 12398#endif 12399 12400#include <stdio.h> 12401 12402#ifdef RTLD_GLOBAL 12403# define LT_DLGLOBAL RTLD_GLOBAL 12404#else 12405# ifdef DL_GLOBAL 12406# define LT_DLGLOBAL DL_GLOBAL 12407# else 12408# define LT_DLGLOBAL 0 12409# endif 12410#endif 12411 12412/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12413 find out it does not work in some platform. */ 12414#ifndef LT_DLLAZY_OR_NOW 12415# ifdef RTLD_LAZY 12416# define LT_DLLAZY_OR_NOW RTLD_LAZY 12417# else 12418# ifdef DL_LAZY 12419# define LT_DLLAZY_OR_NOW DL_LAZY 12420# else 12421# ifdef RTLD_NOW 12422# define LT_DLLAZY_OR_NOW RTLD_NOW 12423# else 12424# ifdef DL_NOW 12425# define LT_DLLAZY_OR_NOW DL_NOW 12426# else 12427# define LT_DLLAZY_OR_NOW 0 12428# endif 12429# endif 12430# endif 12431# endif 12432#endif 12433 12434#ifdef __cplusplus 12435extern "C" void exit (int); 12436#endif 12437 12438void fnord() { int i=42;} 12439int main () 12440{ 12441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12442 int status = $lt_dlunknown; 12443 12444 if (self) 12445 { 12446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12447 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12448 /* dlclose (self); */ 12449 } 12450 12451 exit (status); 12452} 12453EOF 12454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12455 (eval $ac_link) 2>&5 12456 ac_status=$? 12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12458 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12459 (./conftest; exit; ) 2>/dev/null 12460 lt_status=$? 12461 case x$lt_status in 12462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12464 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12465 esac 12466 else : 12467 # compilation failed 12468 lt_cv_dlopen_self=no 12469 fi 12470fi 12471rm -fr conftest* 12472 12473 12474fi 12475echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12476echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12477 12478 if test "x$lt_cv_dlopen_self" = xyes; then 12479 LDFLAGS="$LDFLAGS $link_static_flag" 12480 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12481echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12482if test "${lt_cv_dlopen_self_static+set}" = set; then 12483 echo $ECHO_N "(cached) $ECHO_C" >&6 12484else 12485 if test "$cross_compiling" = yes; then : 12486 lt_cv_dlopen_self_static=cross 12487else 12488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12489 lt_status=$lt_dlunknown 12490 cat > conftest.$ac_ext <<EOF 12491#line 12491 "configure" 12492#include "confdefs.h" 12493 12494#if HAVE_DLFCN_H 12495#include <dlfcn.h> 12496#endif 12497 12498#include <stdio.h> 12499 12500#ifdef RTLD_GLOBAL 12501# define LT_DLGLOBAL RTLD_GLOBAL 12502#else 12503# ifdef DL_GLOBAL 12504# define LT_DLGLOBAL DL_GLOBAL 12505# else 12506# define LT_DLGLOBAL 0 12507# endif 12508#endif 12509 12510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12511 find out it does not work in some platform. */ 12512#ifndef LT_DLLAZY_OR_NOW 12513# ifdef RTLD_LAZY 12514# define LT_DLLAZY_OR_NOW RTLD_LAZY 12515# else 12516# ifdef DL_LAZY 12517# define LT_DLLAZY_OR_NOW DL_LAZY 12518# else 12519# ifdef RTLD_NOW 12520# define LT_DLLAZY_OR_NOW RTLD_NOW 12521# else 12522# ifdef DL_NOW 12523# define LT_DLLAZY_OR_NOW DL_NOW 12524# else 12525# define LT_DLLAZY_OR_NOW 0 12526# endif 12527# endif 12528# endif 12529# endif 12530#endif 12531 12532#ifdef __cplusplus 12533extern "C" void exit (int); 12534#endif 12535 12536void fnord() { int i=42;} 12537int main () 12538{ 12539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12540 int status = $lt_dlunknown; 12541 12542 if (self) 12543 { 12544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12546 /* dlclose (self); */ 12547 } 12548 12549 exit (status); 12550} 12551EOF 12552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12553 (eval $ac_link) 2>&5 12554 ac_status=$? 12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12556 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12557 (./conftest; exit; ) 2>/dev/null 12558 lt_status=$? 12559 case x$lt_status in 12560 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12561 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12562 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12563 esac 12564 else : 12565 # compilation failed 12566 lt_cv_dlopen_self_static=no 12567 fi 12568fi 12569rm -fr conftest* 12570 12571 12572fi 12573echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12574echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12575 fi 12576 12577 CPPFLAGS="$save_CPPFLAGS" 12578 LDFLAGS="$save_LDFLAGS" 12579 LIBS="$save_LIBS" 12580 ;; 12581 esac 12582 12583 case $lt_cv_dlopen_self in 12584 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12585 *) enable_dlopen_self=unknown ;; 12586 esac 12587 12588 case $lt_cv_dlopen_self_static in 12589 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12590 *) enable_dlopen_self_static=unknown ;; 12591 esac 12592fi 12593 12594 12595# The else clause should only fire when bootstrapping the 12596# libtool distribution, otherwise you forgot to ship ltmain.sh 12597# with your package, and you will get complaints that there are 12598# no rules to generate ltmain.sh. 12599if test -f "$ltmain"; then 12600 # See if we are running on zsh, and set the options which allow our commands through 12601 # without removal of \ escapes. 12602 if test -n "${ZSH_VERSION+set}" ; then 12603 setopt NO_GLOB_SUBST 12604 fi 12605 # Now quote all the things that may contain metacharacters while being 12606 # careful not to overquote the AC_SUBSTed values. We take copies of the 12607 # variables and quote the copies for generation of the libtool script. 12608 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 12609 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12610 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12611 deplibs_check_method reload_flag reload_cmds need_locks \ 12612 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12613 lt_cv_sys_global_symbol_to_c_name_address \ 12614 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12615 old_postinstall_cmds old_postuninstall_cmds \ 12616 compiler_CXX \ 12617 CC_CXX \ 12618 LD_CXX \ 12619 lt_prog_compiler_wl_CXX \ 12620 lt_prog_compiler_pic_CXX \ 12621 lt_prog_compiler_static_CXX \ 12622 lt_prog_compiler_no_builtin_flag_CXX \ 12623 export_dynamic_flag_spec_CXX \ 12624 thread_safe_flag_spec_CXX \ 12625 whole_archive_flag_spec_CXX \ 12626 enable_shared_with_static_runtimes_CXX \ 12627 old_archive_cmds_CXX \ 12628 old_archive_from_new_cmds_CXX \ 12629 predep_objects_CXX \ 12630 postdep_objects_CXX \ 12631 predeps_CXX \ 12632 postdeps_CXX \ 12633 compiler_lib_search_path_CXX \ 12634 archive_cmds_CXX \ 12635 archive_expsym_cmds_CXX \ 12636 postinstall_cmds_CXX \ 12637 postuninstall_cmds_CXX \ 12638 old_archive_from_expsyms_cmds_CXX \ 12639 allow_undefined_flag_CXX \ 12640 no_undefined_flag_CXX \ 12641 export_symbols_cmds_CXX \ 12642 hardcode_libdir_flag_spec_CXX \ 12643 hardcode_libdir_flag_spec_ld_CXX \ 12644 hardcode_libdir_separator_CXX \ 12645 hardcode_automatic_CXX \ 12646 module_cmds_CXX \ 12647 module_expsym_cmds_CXX \ 12648 lt_cv_prog_compiler_c_o_CXX \ 12649 exclude_expsyms_CXX \ 12650 include_expsyms_CXX; do 12651 12652 case $var in 12653 old_archive_cmds_CXX | \ 12654 old_archive_from_new_cmds_CXX | \ 12655 archive_cmds_CXX | \ 12656 archive_expsym_cmds_CXX | \ 12657 module_cmds_CXX | \ 12658 module_expsym_cmds_CXX | \ 12659 old_archive_from_expsyms_cmds_CXX | \ 12660 export_symbols_cmds_CXX | \ 12661 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12662 postinstall_cmds | postuninstall_cmds | \ 12663 old_postinstall_cmds | old_postuninstall_cmds | \ 12664 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12665 # Double-quote double-evaled strings. 12666 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12667 ;; 12668 *) 12669 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12670 ;; 12671 esac 12672 done 12673 12674 case $lt_echo in 12675 *'\$0 --fallback-echo"') 12676 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12677 ;; 12678 esac 12679 12680cfgfile="$ofile" 12681 12682 cat <<__EOF__ >> "$cfgfile" 12683# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12684 12685# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12686 12687# Shell to use when invoking shell scripts. 12688SHELL=$lt_SHELL 12689 12690# Whether or not to build shared libraries. 12691build_libtool_libs=$enable_shared 12692 12693# Whether or not to build static libraries. 12694build_old_libs=$enable_static 12695 12696# Whether or not to add -lc for building shared libraries. 12697build_libtool_need_lc=$archive_cmds_need_lc_CXX 12698 12699# Whether or not to disallow shared libs when runtime libs are static 12700allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12701 12702# Whether or not to optimize for fast installation. 12703fast_install=$enable_fast_install 12704 12705# The host system. 12706host_alias=$host_alias 12707host=$host 12708 12709# An echo program that does not interpret backslashes. 12710echo=$lt_echo 12711 12712# The archiver. 12713AR=$lt_AR 12714AR_FLAGS=$lt_AR_FLAGS 12715 12716# A C compiler. 12717LTCC=$lt_LTCC 12718 12719# A language-specific compiler. 12720CC=$lt_compiler_CXX 12721 12722# Is the compiler the GNU C compiler? 12723with_gcc=$GCC_CXX 12724 12725# An ERE matcher. 12726EGREP=$lt_EGREP 12727 12728# The linker used to build libraries. 12729LD=$lt_LD_CXX 12730 12731# Whether we need hard or soft links. 12732LN_S=$lt_LN_S 12733 12734# A BSD-compatible nm program. 12735NM=$lt_NM 12736 12737# A symbol stripping program 12738STRIP=$STRIP 12739 12740# Used to examine libraries when file_magic_cmd begins "file" 12741MAGIC_CMD=$MAGIC_CMD 12742 12743# Used on cygwin: DLL creation program. 12744DLLTOOL="$DLLTOOL" 12745 12746# Used on cygwin: object dumper. 12747OBJDUMP="$OBJDUMP" 12748 12749# Used on cygwin: assembler. 12750AS="$AS" 12751 12752# The name of the directory that contains temporary libtool files. 12753objdir=$objdir 12754 12755# How to create reloadable object files. 12756reload_flag=$lt_reload_flag 12757reload_cmds=$lt_reload_cmds 12758 12759# How to pass a linker flag through the compiler. 12760wl=$lt_lt_prog_compiler_wl_CXX 12761 12762# Object file suffix (normally "o"). 12763objext="$ac_objext" 12764 12765# Old archive suffix (normally "a"). 12766libext="$libext" 12767 12768# Shared library suffix (normally ".so"). 12769shrext='$shrext' 12770 12771# Executable file suffix (normally ""). 12772exeext="$exeext" 12773 12774# Additional compiler flags for building library objects. 12775pic_flag=$lt_lt_prog_compiler_pic_CXX 12776pic_mode=$pic_mode 12777 12778# What is the maximum length of a command? 12779max_cmd_len=$lt_cv_sys_max_cmd_len 12780 12781# Does compiler simultaneously support -c and -o options? 12782compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12783 12784# Must we lock files when doing compilation ? 12785need_locks=$lt_need_locks 12786 12787# Do we need the lib prefix for modules? 12788need_lib_prefix=$need_lib_prefix 12789 12790# Do we need a version for libraries? 12791need_version=$need_version 12792 12793# Whether dlopen is supported. 12794dlopen_support=$enable_dlopen 12795 12796# Whether dlopen of programs is supported. 12797dlopen_self=$enable_dlopen_self 12798 12799# Whether dlopen of statically linked programs is supported. 12800dlopen_self_static=$enable_dlopen_self_static 12801 12802# Compiler flag to prevent dynamic linking. 12803link_static_flag=$lt_lt_prog_compiler_static_CXX 12804 12805# Compiler flag to turn off builtin functions. 12806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12807 12808# Compiler flag to allow reflexive dlopens. 12809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12810 12811# Compiler flag to generate shared objects directly from archives. 12812whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12813 12814# Compiler flag to generate thread-safe objects. 12815thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12816 12817# Library versioning type. 12818version_type=$version_type 12819 12820# Format of library name prefix. 12821libname_spec=$lt_libname_spec 12822 12823# List of archive names. First name is the real one, the rest are links. 12824# The last name is the one that the linker finds with -lNAME. 12825library_names_spec=$lt_library_names_spec 12826 12827# The coded name of the library, if different from the real name. 12828soname_spec=$lt_soname_spec 12829 12830# Commands used to build and install an old-style archive. 12831RANLIB=$lt_RANLIB 12832old_archive_cmds=$lt_old_archive_cmds_CXX 12833old_postinstall_cmds=$lt_old_postinstall_cmds 12834old_postuninstall_cmds=$lt_old_postuninstall_cmds 12835 12836# Create an old-style archive from a shared archive. 12837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12838 12839# Create a temporary old-style archive to link instead of a shared archive. 12840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12841 12842# Commands used to build and install a shared archive. 12843archive_cmds=$lt_archive_cmds_CXX 12844archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12845postinstall_cmds=$lt_postinstall_cmds 12846postuninstall_cmds=$lt_postuninstall_cmds 12847 12848# Commands used to build a loadable module (assumed same as above if empty) 12849module_cmds=$lt_module_cmds_CXX 12850module_expsym_cmds=$lt_module_expsym_cmds_CXX 12851 12852# Commands to strip libraries. 12853old_striplib=$lt_old_striplib 12854striplib=$lt_striplib 12855 12856# Dependencies to place before the objects being linked to create a 12857# shared library. 12858predep_objects=$lt_predep_objects_CXX 12859 12860# Dependencies to place after the objects being linked to create a 12861# shared library. 12862postdep_objects=$lt_postdep_objects_CXX 12863 12864# Dependencies to place before the objects being linked to create a 12865# shared library. 12866predeps=$lt_predeps_CXX 12867 12868# Dependencies to place after the objects being linked to create a 12869# shared library. 12870postdeps=$lt_postdeps_CXX 12871 12872# The library search path used internally by the compiler when linking 12873# a shared library. 12874compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12875 12876# Method to check whether dependent libraries are shared objects. 12877deplibs_check_method=$lt_deplibs_check_method 12878 12879# Command to use when deplibs_check_method == file_magic. 12880file_magic_cmd=$lt_file_magic_cmd 12881 12882# Flag that allows shared libraries with undefined symbols to be built. 12883allow_undefined_flag=$lt_allow_undefined_flag_CXX 12884 12885# Flag that forces no undefined symbols. 12886no_undefined_flag=$lt_no_undefined_flag_CXX 12887 12888# Commands used to finish a libtool library installation in a directory. 12889finish_cmds=$lt_finish_cmds 12890 12891# Same as above, but a single script fragment to be evaled but not shown. 12892finish_eval=$lt_finish_eval 12893 12894# Take the output of nm and produce a listing of raw symbols and C names. 12895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12896 12897# Transform the output of nm in a proper C declaration 12898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12899 12900# Transform the output of nm in a C name address pair 12901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12902 12903# This is the shared library runtime path variable. 12904runpath_var=$runpath_var 12905 12906# This is the shared library path variable. 12907shlibpath_var=$shlibpath_var 12908 12909# Is shlibpath searched before the hard-coded library search path? 12910shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12911 12912# How to hardcode a shared library path into an executable. 12913hardcode_action=$hardcode_action_CXX 12914 12915# Whether we should hardcode library paths into libraries. 12916hardcode_into_libs=$hardcode_into_libs 12917 12918# Flag to hardcode \$libdir into a binary during linking. 12919# This must work even if \$libdir does not exist. 12920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12921 12922# If ld is used when linking, flag to hardcode \$libdir into 12923# a binary during linking. This must work even if \$libdir does 12924# not exist. 12925hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12926 12927# Whether we need a single -rpath flag with a separated argument. 12928hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12929 12930# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12931# resulting binary. 12932hardcode_direct=$hardcode_direct_CXX 12933 12934# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12935# resulting binary. 12936hardcode_minus_L=$hardcode_minus_L_CXX 12937 12938# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12939# the resulting binary. 12940hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12941 12942# Set to yes if building a shared library automatically hardcodes DIR into the library 12943# and all subsequent libraries and executables linked against it. 12944hardcode_automatic=$hardcode_automatic_CXX 12945 12946# Variables whose values should be saved in libtool wrapper scripts and 12947# restored at relink time. 12948variables_saved_for_relink="$variables_saved_for_relink" 12949 12950# Whether libtool must link a program against all its dependency libraries. 12951link_all_deplibs=$link_all_deplibs_CXX 12952 12953# Compile-time system search path for libraries 12954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12955 12956# Run-time system search path for libraries 12957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12958 12959# Fix the shell variable \$srcfile for the compiler. 12960fix_srcfile_path="$fix_srcfile_path_CXX" 12961 12962# Set to yes if exported symbols are required. 12963always_export_symbols=$always_export_symbols_CXX 12964 12965# The commands to list exported symbols. 12966export_symbols_cmds=$lt_export_symbols_cmds_CXX 12967 12968# The commands to extract the exported symbol list from a shared archive. 12969extract_expsyms_cmds=$lt_extract_expsyms_cmds 12970 12971# Symbols that should not be listed in the preloaded symbols. 12972exclude_expsyms=$lt_exclude_expsyms_CXX 12973 12974# Symbols that must always be exported. 12975include_expsyms=$lt_include_expsyms_CXX 12976 12977# ### END LIBTOOL TAG CONFIG: $tagname 12978 12979__EOF__ 12980 12981 12982else 12983 # If there is no Makefile yet, we rely on a make rule to execute 12984 # `config.status --recheck' to rerun these tests and create the 12985 # libtool script then. 12986 test -f Makefile && make "$ltmain" 12987fi 12988 12989 12990ac_ext=cc 12991ac_cpp='$CXXCPP $CPPFLAGS' 12992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12995 12996CC=$lt_save_CC 12997LDCXX=$LD 12998LD=$lt_save_LD 12999GCC=$lt_save_GCC 13000with_gnu_ldcxx=$with_gnu_ld 13001with_gnu_ld=$lt_save_with_gnu_ld 13002lt_cv_path_LDCXX=$lt_cv_path_LD 13003lt_cv_path_LD=$lt_save_path_LD 13004lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13005lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13006 13007 else 13008 tagname="" 13009 fi 13010 ;; 13011 13012 F77) 13013 if test -n "$F77" && test "X$F77" != "Xno"; then 13014 13015ac_ext=f 13016ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13017ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13018ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13019 13020 13021archive_cmds_need_lc_F77=no 13022allow_undefined_flag_F77= 13023always_export_symbols_F77=no 13024archive_expsym_cmds_F77= 13025export_dynamic_flag_spec_F77= 13026hardcode_direct_F77=no 13027hardcode_libdir_flag_spec_F77= 13028hardcode_libdir_flag_spec_ld_F77= 13029hardcode_libdir_separator_F77= 13030hardcode_minus_L_F77=no 13031hardcode_automatic_F77=no 13032module_cmds_F77= 13033module_expsym_cmds_F77= 13034link_all_deplibs_F77=unknown 13035old_archive_cmds_F77=$old_archive_cmds 13036no_undefined_flag_F77= 13037whole_archive_flag_spec_F77= 13038enable_shared_with_static_runtimes_F77=no 13039 13040# Source file extension for f77 test sources. 13041ac_ext=f 13042 13043# Object file extension for compiled f77 test sources. 13044objext=o 13045objext_F77=$objext 13046 13047# Code to be used in simple compile tests 13048lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13049 13050# Code to be used in simple link tests 13051lt_simple_link_test_code=" program t\n end\n" 13052 13053# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13054 13055# If no C compiler was specified, use CC. 13056LTCC=${LTCC-"$CC"} 13057 13058# Allow CC to be a program name with arguments. 13059compiler=$CC 13060 13061 13062# Allow CC to be a program name with arguments. 13063lt_save_CC="$CC" 13064CC=${F77-"f77"} 13065compiler=$CC 13066compiler_F77=$CC 13067cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13068 13069echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13070echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13071echo "$as_me:$LINENO: result: $can_build_shared" >&5 13072echo "${ECHO_T}$can_build_shared" >&6 13073 13074echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13075echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13076test "$can_build_shared" = "no" && enable_shared=no 13077 13078# On AIX, shared libraries and static libraries use the same namespace, and 13079# are all built from PIC. 13080case "$host_os" in 13081aix3*) 13082 test "$enable_shared" = yes && enable_static=no 13083 if test -n "$RANLIB"; then 13084 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13085 postinstall_cmds='$RANLIB $lib' 13086 fi 13087 ;; 13088aix4*) 13089 test "$enable_shared" = yes && enable_static=no 13090 ;; 13091esac 13092echo "$as_me:$LINENO: result: $enable_shared" >&5 13093echo "${ECHO_T}$enable_shared" >&6 13094 13095echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13096echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13097# Make sure either enable_shared or enable_static is yes. 13098test "$enable_shared" = yes || enable_static=yes 13099echo "$as_me:$LINENO: result: $enable_static" >&5 13100echo "${ECHO_T}$enable_static" >&6 13101 13102test "$ld_shlibs_F77" = no && can_build_shared=no 13103 13104GCC_F77="$G77" 13105LD_F77="$LD" 13106 13107lt_prog_compiler_wl_F77= 13108lt_prog_compiler_pic_F77= 13109lt_prog_compiler_static_F77= 13110 13111echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13112echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13113 13114 if test "$GCC" = yes; then 13115 lt_prog_compiler_wl_F77='-Wl,' 13116 lt_prog_compiler_static_F77='-static' 13117 13118 case $host_os in 13119 aix*) 13120 # All AIX code is PIC. 13121 if test "$host_cpu" = ia64; then 13122 # AIX 5 now supports IA64 processor 13123 lt_prog_compiler_static_F77='-Bstatic' 13124 fi 13125 ;; 13126 13127 amigaos*) 13128 # FIXME: we need at least 68020 code to build shared libraries, but 13129 # adding the `-m68020' flag to GCC prevents building anything better, 13130 # like `-m68040'. 13131 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13132 ;; 13133 13134 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13135 # PIC is the default for these OSes. 13136 ;; 13137 13138 mingw* | pw32* | os2*) 13139 # This hack is so that the source file can tell whether it is being 13140 # built for inclusion in a dll (and should export symbols for example). 13141 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13142 ;; 13143 13144 darwin* | rhapsody*) 13145 # PIC is the default on this platform 13146 # Common symbols not allowed in MH_DYLIB files 13147 lt_prog_compiler_pic_F77='-fno-common' 13148 ;; 13149 13150 msdosdjgpp*) 13151 # Just because we use GCC doesn't mean we suddenly get shared libraries 13152 # on systems that don't support them. 13153 lt_prog_compiler_can_build_shared_F77=no 13154 enable_shared=no 13155 ;; 13156 13157 sysv4*MP*) 13158 if test -d /usr/nec; then 13159 lt_prog_compiler_pic_F77=-Kconform_pic 13160 fi 13161 ;; 13162 13163 hpux*) 13164 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13165 # not for PA HP-UX. 13166 case "$host_cpu" in 13167 hppa*64*|ia64*) 13168 # +Z the default 13169 ;; 13170 *) 13171 lt_prog_compiler_pic_F77='-fPIC' 13172 ;; 13173 esac 13174 ;; 13175 13176 *) 13177 lt_prog_compiler_pic_F77='-fPIC' 13178 ;; 13179 esac 13180 else 13181 # PORTME Check for flag to pass linker flags through the system compiler. 13182 case $host_os in 13183 aix*) 13184 lt_prog_compiler_wl_F77='-Wl,' 13185 if test "$host_cpu" = ia64; then 13186 # AIX 5 now supports IA64 processor 13187 lt_prog_compiler_static_F77='-Bstatic' 13188 else 13189 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13190 fi 13191 ;; 13192 13193 mingw* | pw32* | os2*) 13194 # This hack is so that the source file can tell whether it is being 13195 # built for inclusion in a dll (and should export symbols for example). 13196 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13197 ;; 13198 13199 hpux9* | hpux10* | hpux11*) 13200 lt_prog_compiler_wl_F77='-Wl,' 13201 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13202 # not for PA HP-UX. 13203 case "$host_cpu" in 13204 hppa*64*|ia64*) 13205 # +Z the default 13206 ;; 13207 *) 13208 lt_prog_compiler_pic_F77='+Z' 13209 ;; 13210 esac 13211 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13212 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13213 ;; 13214 13215 irix5* | irix6* | nonstopux*) 13216 lt_prog_compiler_wl_F77='-Wl,' 13217 # PIC (with -KPIC) is the default. 13218 lt_prog_compiler_static_F77='-non_shared' 13219 ;; 13220 13221 newsos6) 13222 lt_prog_compiler_pic_F77='-KPIC' 13223 lt_prog_compiler_static_F77='-Bstatic' 13224 ;; 13225 13226 linux*) 13227 case $CC in 13228 icc|ecc) 13229 lt_prog_compiler_wl_F77='-Wl,' 13230 lt_prog_compiler_pic_F77='-KPIC' 13231 lt_prog_compiler_static_F77='-static' 13232 ;; 13233 ccc) 13234 lt_prog_compiler_wl_F77='-Wl,' 13235 # All Alpha code is PIC. 13236 lt_prog_compiler_static_F77='-non_shared' 13237 ;; 13238 esac 13239 ;; 13240 13241 osf3* | osf4* | osf5*) 13242 lt_prog_compiler_wl_F77='-Wl,' 13243 # All OSF/1 code is PIC. 13244 lt_prog_compiler_static_F77='-non_shared' 13245 ;; 13246 13247 sco3.2v5*) 13248 lt_prog_compiler_pic_F77='-Kpic' 13249 lt_prog_compiler_static_F77='-dn' 13250 ;; 13251 13252 solaris*) 13253 lt_prog_compiler_wl_F77='-Wl,' 13254 lt_prog_compiler_pic_F77='-KPIC' 13255 lt_prog_compiler_static_F77='-Bstatic' 13256 ;; 13257 13258 sunos4*) 13259 lt_prog_compiler_wl_F77='-Qoption ld ' 13260 lt_prog_compiler_pic_F77='-PIC' 13261 lt_prog_compiler_static_F77='-Bstatic' 13262 ;; 13263 13264 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13265 lt_prog_compiler_wl_F77='-Wl,' 13266 lt_prog_compiler_pic_F77='-KPIC' 13267 lt_prog_compiler_static_F77='-Bstatic' 13268 ;; 13269 13270 sysv4*MP*) 13271 if test -d /usr/nec ;then 13272 lt_prog_compiler_pic_F77='-Kconform_pic' 13273 lt_prog_compiler_static_F77='-Bstatic' 13274 fi 13275 ;; 13276 13277 uts4*) 13278 lt_prog_compiler_pic_F77='-pic' 13279 lt_prog_compiler_static_F77='-Bstatic' 13280 ;; 13281 13282 *) 13283 lt_prog_compiler_can_build_shared_F77=no 13284 ;; 13285 esac 13286 fi 13287 13288echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13289echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13290 13291# 13292# Check to make sure the PIC flag actually works. 13293# 13294if test -n "$lt_prog_compiler_pic_F77"; then 13295 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13296echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13297if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13298 echo $ECHO_N "(cached) $ECHO_C" >&6 13299else 13300 lt_prog_compiler_pic_works_F77=no 13301 ac_outfile=conftest.$ac_objext 13302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13303 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13304 # Insert the option either (1) after the last *FLAGS variable, or 13305 # (2) before a word containing "conftest.", or (3) at the end. 13306 # Note that $ac_compile itself does not contain backslashes and begins 13307 # with a dollar sign (not a hyphen), so the echo should work correctly. 13308 # The option is referenced via a variable to avoid confusing sed. 13309 lt_compile=`echo "$ac_compile" | $SED \ 13310 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13312 -e 's:$: $lt_compiler_flag:'` 13313 (eval echo "\"\$as_me:13313: $lt_compile\"" >&5) 13314 (eval "$lt_compile" 2>conftest.err) 13315 ac_status=$? 13316 cat conftest.err >&5 13317 echo "$as_me:13317: \$? = $ac_status" >&5 13318 if (exit $ac_status) && test -s "$ac_outfile"; then 13319 # The compiler can only warn and ignore the option if not recognized 13320 # So say no if there are warnings 13321 if test ! -s conftest.err; then 13322 lt_prog_compiler_pic_works_F77=yes 13323 fi 13324 fi 13325 $rm conftest* 13326 13327fi 13328echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13329echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13330 13331if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13332 case $lt_prog_compiler_pic_F77 in 13333 "" | " "*) ;; 13334 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13335 esac 13336else 13337 lt_prog_compiler_pic_F77= 13338 lt_prog_compiler_can_build_shared_F77=no 13339fi 13340 13341fi 13342case "$host_os" in 13343 # For platforms which do not support PIC, -DPIC is meaningless: 13344 *djgpp*) 13345 lt_prog_compiler_pic_F77= 13346 ;; 13347 *) 13348 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13349 ;; 13350esac 13351 13352echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13353echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13354if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13355 echo $ECHO_N "(cached) $ECHO_C" >&6 13356else 13357 lt_cv_prog_compiler_c_o_F77=no 13358 $rm -r conftest 2>/dev/null 13359 mkdir conftest 13360 cd conftest 13361 mkdir out 13362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13363 13364 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 13365 # that will create temporary files in the current directory regardless of 13366 # the output directory. Thus, making CWD read-only will cause this test 13367 # to fail, enabling locking or at least warning the user not to do parallel 13368 # builds. 13369 chmod -w . 13370 13371 lt_compiler_flag="-o out/conftest2.$ac_objext" 13372 # Insert the option either (1) after the last *FLAGS variable, or 13373 # (2) before a word containing "conftest.", or (3) at the end. 13374 # Note that $ac_compile itself does not contain backslashes and begins 13375 # with a dollar sign (not a hyphen), so the echo should work correctly. 13376 lt_compile=`echo "$ac_compile" | $SED \ 13377 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13379 -e 's:$: $lt_compiler_flag:'` 13380 (eval echo "\"\$as_me:13380: $lt_compile\"" >&5) 13381 (eval "$lt_compile" 2>out/conftest.err) 13382 ac_status=$? 13383 cat out/conftest.err >&5 13384 echo "$as_me:13384: \$? = $ac_status" >&5 13385 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13386 then 13387 # The compiler can only warn and ignore the option if not recognized 13388 # So say no if there are warnings 13389 if test ! -s out/conftest.err; then 13390 lt_cv_prog_compiler_c_o_F77=yes 13391 fi 13392 fi 13393 chmod u+w . 13394 $rm conftest* out/* 13395 rmdir out 13396 cd .. 13397 rmdir conftest 13398 $rm conftest* 13399 13400fi 13401echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13402echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13403 13404 13405hard_links="nottested" 13406if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13407 # do not overwrite the value of need_locks provided by the user 13408 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13409echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13410 hard_links=yes 13411 $rm conftest* 13412 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13413 touch conftest.a 13414 ln conftest.a conftest.b 2>&5 || hard_links=no 13415 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13416 echo "$as_me:$LINENO: result: $hard_links" >&5 13417echo "${ECHO_T}$hard_links" >&6 13418 if test "$hard_links" = no; then 13419 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13420echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13421 need_locks=warn 13422 fi 13423else 13424 need_locks=no 13425fi 13426 13427echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13428echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13429 13430 runpath_var= 13431 allow_undefined_flag_F77= 13432 enable_shared_with_static_runtimes_F77=no 13433 archive_cmds_F77= 13434 archive_expsym_cmds_F77= 13435 old_archive_From_new_cmds_F77= 13436 old_archive_from_expsyms_cmds_F77= 13437 export_dynamic_flag_spec_F77= 13438 whole_archive_flag_spec_F77= 13439 thread_safe_flag_spec_F77= 13440 hardcode_libdir_flag_spec_F77= 13441 hardcode_libdir_flag_spec_ld_F77= 13442 hardcode_libdir_separator_F77= 13443 hardcode_direct_F77=no 13444 hardcode_minus_L_F77=no 13445 hardcode_shlibpath_var_F77=unsupported 13446 link_all_deplibs_F77=unknown 13447 hardcode_automatic_F77=no 13448 module_cmds_F77= 13449 module_expsym_cmds_F77= 13450 always_export_symbols_F77=no 13451 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13452 # include_expsyms should be a list of space-separated symbols to be *always* 13453 # included in the symbol list 13454 include_expsyms_F77= 13455 # exclude_expsyms can be an extended regexp of symbols to exclude 13456 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13458 # as well as any symbol that contains `d'. 13459 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13461 # platforms (ab)use it in PIC code, but their linkers get confused if 13462 # the symbol is explicitly referenced. Since portable code cannot 13463 # rely on this symbol name, it's probably fine to never include it in 13464 # preloaded symbol tables. 13465 extract_expsyms_cmds= 13466 13467 case $host_os in 13468 cygwin* | mingw* | pw32*) 13469 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13470 # When not using gcc, we currently assume that we are using 13471 # Microsoft Visual C++. 13472 if test "$GCC" != yes; then 13473 with_gnu_ld=no 13474 fi 13475 ;; 13476 openbsd*) 13477 with_gnu_ld=no 13478 ;; 13479 esac 13480 13481 ld_shlibs_F77=yes 13482 if test "$with_gnu_ld" = yes; then 13483 # If archive_cmds runs LD, not CC, wlarc should be empty 13484 wlarc='${wl}' 13485 13486 # See if GNU ld supports shared libraries. 13487 case $host_os in 13488 aix3* | aix4* | aix5*) 13489 # On AIX/PPC, the GNU linker is very broken 13490 if test "$host_cpu" != ia64; then 13491 ld_shlibs_F77=no 13492 cat <<EOF 1>&2 13493 13494*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13495*** to be unable to reliably create shared libraries on AIX. 13496*** Therefore, libtool is disabling shared libraries support. If you 13497*** really care for shared libraries, you may want to modify your PATH 13498*** so that a non-GNU linker is found, and then restart. 13499 13500EOF 13501 fi 13502 ;; 13503 13504 amigaos*) 13505 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)' 13506 hardcode_libdir_flag_spec_F77='-L$libdir' 13507 hardcode_minus_L_F77=yes 13508 13509 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13510 # that the semantics of dynamic libraries on AmigaOS, at least up 13511 # to version 4, is to share data among multiple programs linked 13512 # with the same dynamic library. Since this doesn't match the 13513 # behavior of shared libraries on other platforms, we can't use 13514 # them. 13515 ld_shlibs_F77=no 13516 ;; 13517 13518 beos*) 13519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13520 allow_undefined_flag_F77=unsupported 13521 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13522 # support --undefined. This deserves some investigation. FIXME 13523 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13524 else 13525 ld_shlibs_F77=no 13526 fi 13527 ;; 13528 13529 cygwin* | mingw* | pw32*) 13530 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13531 # as there is no search path for DLLs. 13532 hardcode_libdir_flag_spec_F77='-L$libdir' 13533 allow_undefined_flag_F77=unsupported 13534 always_export_symbols_F77=no 13535 enable_shared_with_static_runtimes_F77=yes 13536 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13537 13538 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13539 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13540 # If the export-symbols file already is a .def file (1st line 13541 # is EXPORTS), use it as is; otherwise, prepend... 13542 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13543 cp $export_symbols $output_objdir/$soname.def; 13544 else 13545 echo EXPORTS > $output_objdir/$soname.def; 13546 cat $export_symbols >> $output_objdir/$soname.def; 13547 fi~ 13548 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13549 else 13550 ld_shlibs=no 13551 fi 13552 ;; 13553 13554 netbsd*) 13555 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13556 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13557 wlarc= 13558 else 13559 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13560 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13561 fi 13562 ;; 13563 13564 solaris* | sysv5*) 13565 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13566 ld_shlibs_F77=no 13567 cat <<EOF 1>&2 13568 13569*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13570*** create shared libraries on Solaris systems. Therefore, libtool 13571*** is disabling shared libraries support. We urge you to upgrade GNU 13572*** binutils to release 2.9.1 or newer. Another option is to modify 13573*** your PATH or compiler configuration so that the native linker is 13574*** used, and then restart. 13575 13576EOF 13577 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13580 else 13581 ld_shlibs_F77=no 13582 fi 13583 ;; 13584 13585 sunos4*) 13586 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13587 wlarc= 13588 hardcode_direct_F77=yes 13589 hardcode_shlibpath_var_F77=no 13590 ;; 13591 13592 *) 13593 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13594 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13595 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13596 else 13597 ld_shlibs_F77=no 13598 fi 13599 ;; 13600 esac 13601 13602 if test "$ld_shlibs_F77" = yes; then 13603 runpath_var=LD_RUN_PATH 13604 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13605 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13606 # ancient GNU ld didn't support --whole-archive et. al. 13607 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13608 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13609 else 13610 whole_archive_flag_spec_F77= 13611 fi 13612 fi 13613 else 13614 # PORTME fill in a description of your system's linker (not GNU ld) 13615 case $host_os in 13616 aix3*) 13617 allow_undefined_flag_F77=unsupported 13618 always_export_symbols_F77=yes 13619 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' 13620 # Note: this linker hardcodes the directories in LIBPATH if there 13621 # are no directories specified by -L. 13622 hardcode_minus_L_F77=yes 13623 if test "$GCC" = yes && test -z "$link_static_flag"; then 13624 # Neither direct hardcoding nor static linking is supported with a 13625 # broken collect2. 13626 hardcode_direct_F77=unsupported 13627 fi 13628 ;; 13629 13630 aix4* | aix5*) 13631 if test "$host_cpu" = ia64; then 13632 # On IA64, the linker does run time linking by default, so we don't 13633 # have to do anything special. 13634 aix_use_runtimelinking=no 13635 exp_sym_flag='-Bexport' 13636 no_entry_flag="" 13637 else 13638 # If we're using GNU nm, then we don't want the "-C" option. 13639 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13640 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13641 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' 13642 else 13643 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' 13644 fi 13645 aix_use_runtimelinking=no 13646 13647 # Test if we are trying to use run time linking or normal 13648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13649 # need to do runtime linking. 13650 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13651 for ld_flag in $LDFLAGS; do 13652 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13653 aix_use_runtimelinking=yes 13654 break 13655 fi 13656 done 13657 esac 13658 13659 exp_sym_flag='-bexport' 13660 no_entry_flag='-bnoentry' 13661 fi 13662 13663 # When large executables or shared objects are built, AIX ld can 13664 # have problems creating the table of contents. If linking a library 13665 # or program results in "error TOC overflow" add -mminimal-toc to 13666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13668 13669 archive_cmds_F77='' 13670 hardcode_direct_F77=yes 13671 hardcode_libdir_separator_F77=':' 13672 link_all_deplibs_F77=yes 13673 13674 if test "$GCC" = yes; then 13675 case $host_os in aix4.012|aix4.012.*) 13676 # We only want to do this on AIX 4.2 and lower, the check 13677 # below for broken collect2 doesn't work under 4.3+ 13678 collect2name=`${CC} -print-prog-name=collect2` 13679 if test -f "$collect2name" && \ 13680 strings "$collect2name" | grep resolve_lib_name >/dev/null 13681 then 13682 # We have reworked collect2 13683 hardcode_direct_F77=yes 13684 else 13685 # We have old collect2 13686 hardcode_direct_F77=unsupported 13687 # It fails to find uninstalled libraries when the uninstalled 13688 # path is not listed in the libpath. Setting hardcode_minus_L 13689 # to unsupported forces relinking 13690 hardcode_minus_L_F77=yes 13691 hardcode_libdir_flag_spec_F77='-L$libdir' 13692 hardcode_libdir_separator_F77= 13693 fi 13694 esac 13695 shared_flag='-shared' 13696 else 13697 # not using gcc 13698 if test "$host_cpu" = ia64; then 13699 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13700 # chokes on -Wl,-G. The following line is correct: 13701 shared_flag='-G' 13702 else 13703 if test "$aix_use_runtimelinking" = yes; then 13704 shared_flag='${wl}-G' 13705 else 13706 shared_flag='${wl}-bM:SRE' 13707 fi 13708 fi 13709 fi 13710 13711 # It seems that -bexpall does not export symbols beginning with 13712 # underscore (_), so it is better to generate a list of symbols to export. 13713 always_export_symbols_F77=yes 13714 if test "$aix_use_runtimelinking" = yes; then 13715 # Warning - without using the other runtime loading flags (-brtl), 13716 # -berok will link without error, but may produce a broken library. 13717 allow_undefined_flag_F77='-berok' 13718 # Determine the default libpath from the value encoded in an empty executable. 13719 cat >conftest.$ac_ext <<_ACEOF 13720 program main 13721 13722 end 13723_ACEOF 13724rm -f conftest.$ac_objext conftest$ac_exeext 13725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13726 (eval $ac_link) 2>&5 13727 ac_status=$? 13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13729 (exit $ac_status); } && 13730 { ac_try='test -s conftest$ac_exeext' 13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13732 (eval $ac_try) 2>&5 13733 ac_status=$? 13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13735 (exit $ac_status); }; }; then 13736 13737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13738}'` 13739# Check for a 64-bit object if we didn't find anything. 13740if 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; } 13741}'`; fi 13742else 13743 echo "$as_me: failed program was:" >&5 13744sed 's/^/| /' conftest.$ac_ext >&5 13745 13746fi 13747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13748if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13749 13750 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13751 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13752 else 13753 if test "$host_cpu" = ia64; then 13754 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13755 allow_undefined_flag_F77="-z nodefs" 13756 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 13757 else 13758 # Determine the default libpath from the value encoded in an empty executable. 13759 cat >conftest.$ac_ext <<_ACEOF 13760 program main 13761 13762 end 13763_ACEOF 13764rm -f conftest.$ac_objext conftest$ac_exeext 13765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13766 (eval $ac_link) 2>&5 13767 ac_status=$? 13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13769 (exit $ac_status); } && 13770 { ac_try='test -s conftest$ac_exeext' 13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13772 (eval $ac_try) 2>&5 13773 ac_status=$? 13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13775 (exit $ac_status); }; }; then 13776 13777aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13778}'` 13779# Check for a 64-bit object if we didn't find anything. 13780if 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; } 13781}'`; fi 13782else 13783 echo "$as_me: failed program was:" >&5 13784sed 's/^/| /' conftest.$ac_ext >&5 13785 13786fi 13787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13789 13790 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13791 # Warning - without using the other run time loading flags, 13792 # -berok will link without error, but may produce a broken library. 13793 no_undefined_flag_F77=' ${wl}-bernotok' 13794 allow_undefined_flag_F77=' ${wl}-berok' 13795 # -bexpall does not export symbols beginning with underscore (_) 13796 always_export_symbols_F77=yes 13797 # Exported symbols can be pulled into shared objects from archives 13798 whole_archive_flag_spec_F77=' ' 13799 archive_cmds_need_lc_F77=yes 13800 # This is similar to how AIX traditionally builds it's shared libraries. 13801 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13802 fi 13803 fi 13804 ;; 13805 13806 amigaos*) 13807 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)' 13808 hardcode_libdir_flag_spec_F77='-L$libdir' 13809 hardcode_minus_L_F77=yes 13810 # see comment about different semantics on the GNU ld section 13811 ld_shlibs_F77=no 13812 ;; 13813 13814 bsdi4*) 13815 export_dynamic_flag_spec_F77=-rdynamic 13816 ;; 13817 13818 cygwin* | mingw* | pw32*) 13819 # When not using gcc, we currently assume that we are using 13820 # Microsoft Visual C++. 13821 # hardcode_libdir_flag_spec is actually meaningless, as there is 13822 # no search path for DLLs. 13823 hardcode_libdir_flag_spec_F77=' ' 13824 allow_undefined_flag_F77=unsupported 13825 # Tell ltmain to make .lib files, not .a files. 13826 libext=lib 13827 # Tell ltmain to make .dll files, not .so files. 13828 shrext=".dll" 13829 # FIXME: Setting linknames here is a bad hack. 13830 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13831 # The linker will automatically build a .lib file if we build a DLL. 13832 old_archive_From_new_cmds_F77='true' 13833 # FIXME: Should let the user specify the lib program. 13834 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13835 fix_srcfile_path='`cygpath -w "$srcfile"`' 13836 enable_shared_with_static_runtimes_F77=yes 13837 ;; 13838 13839 darwin* | rhapsody*) 13840 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 13841 archive_cmds_need_lc_F77=no 13842 case "$host_os" in 13843 rhapsody* | darwin1.[012]) 13844 allow_undefined_flag_F77='-undefined suppress' 13845 ;; 13846 *) # Darwin 1.3 on 13847 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13848 ;; 13849 esac 13850 # FIXME: Relying on posixy $() will cause problems for 13851 # cross-compilation, but unfortunately the echo tests do not 13852 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 13853 # `"' quotes if we put them in here... so don't! 13854 lt_int_apple_cc_single_mod=no 13855 output_verbose_link_cmd='echo' 13856 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 13857 lt_int_apple_cc_single_mod=yes 13858 fi 13859 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13860 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13861 else 13862 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' 13863 fi 13864 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 13865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 13866 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13867 archive_expsym_cmds_F77='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}' 13868 else 13869 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 13870 fi 13871 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13872 hardcode_direct_F77=no 13873 hardcode_automatic_F77=yes 13874 hardcode_shlibpath_var_F77=unsupported 13875 whole_archive_flag_spec_F77='-all_load $convenience' 13876 link_all_deplibs_F77=yes 13877 fi 13878 ;; 13879 13880 dgux*) 13881 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13882 hardcode_libdir_flag_spec_F77='-L$libdir' 13883 hardcode_shlibpath_var_F77=no 13884 ;; 13885 13886 freebsd1*) 13887 ld_shlibs_F77=no 13888 ;; 13889 13890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13891 # support. Future versions do this automatically, but an explicit c++rt0.o 13892 # does not break anything, and helps significantly (at the cost of a little 13893 # extra space). 13894 freebsd2.2*) 13895 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13896 hardcode_libdir_flag_spec_F77='-R$libdir' 13897 hardcode_direct_F77=yes 13898 hardcode_shlibpath_var_F77=no 13899 ;; 13900 13901 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13902 freebsd2*) 13903 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13904 hardcode_direct_F77=yes 13905 hardcode_minus_L_F77=yes 13906 hardcode_shlibpath_var_F77=no 13907 ;; 13908 13909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13910 freebsd*) 13911 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13912 hardcode_libdir_flag_spec_F77='-R$libdir' 13913 hardcode_direct_F77=yes 13914 hardcode_shlibpath_var_F77=no 13915 ;; 13916 13917 hpux9*) 13918 if test "$GCC" = yes; then 13919 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' 13920 else 13921 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' 13922 fi 13923 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13924 hardcode_libdir_separator_F77=: 13925 hardcode_direct_F77=yes 13926 13927 # hardcode_minus_L: Not really in the search PATH, 13928 # but as the default location of the library. 13929 hardcode_minus_L_F77=yes 13930 export_dynamic_flag_spec_F77='${wl}-E' 13931 ;; 13932 13933 hpux10* | hpux11*) 13934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13935 case "$host_cpu" in 13936 hppa*64*|ia64*) 13937 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13938 ;; 13939 *) 13940 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13941 ;; 13942 esac 13943 else 13944 case "$host_cpu" in 13945 hppa*64*|ia64*) 13946 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 13947 ;; 13948 *) 13949 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13950 ;; 13951 esac 13952 fi 13953 if test "$with_gnu_ld" = no; then 13954 case "$host_cpu" in 13955 hppa*64*) 13956 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13957 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13958 hardcode_libdir_separator_F77=: 13959 hardcode_direct_F77=no 13960 hardcode_shlibpath_var_F77=no 13961 ;; 13962 ia64*) 13963 hardcode_libdir_flag_spec_F77='-L$libdir' 13964 hardcode_direct_F77=no 13965 hardcode_shlibpath_var_F77=no 13966 13967 # hardcode_minus_L: Not really in the search PATH, 13968 # but as the default location of the library. 13969 hardcode_minus_L_F77=yes 13970 ;; 13971 *) 13972 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13973 hardcode_libdir_separator_F77=: 13974 hardcode_direct_F77=yes 13975 export_dynamic_flag_spec_F77='${wl}-E' 13976 13977 # hardcode_minus_L: Not really in the search PATH, 13978 # but as the default location of the library. 13979 hardcode_minus_L_F77=yes 13980 ;; 13981 esac 13982 fi 13983 ;; 13984 13985 irix5* | irix6* | nonstopux*) 13986 if test "$GCC" = yes; then 13987 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' 13988 else 13989 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' 13990 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13991 fi 13992 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13993 hardcode_libdir_separator_F77=: 13994 link_all_deplibs_F77=yes 13995 ;; 13996 13997 netbsd*) 13998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13999 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14000 else 14001 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14002 fi 14003 hardcode_libdir_flag_spec_F77='-R$libdir' 14004 hardcode_direct_F77=yes 14005 hardcode_shlibpath_var_F77=no 14006 ;; 14007 14008 newsos6) 14009 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14010 hardcode_direct_F77=yes 14011 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14012 hardcode_libdir_separator_F77=: 14013 hardcode_shlibpath_var_F77=no 14014 ;; 14015 14016 openbsd*) 14017 hardcode_direct_F77=yes 14018 hardcode_shlibpath_var_F77=no 14019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14020 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14021 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14022 export_dynamic_flag_spec_F77='${wl}-E' 14023 else 14024 case $host_os in 14025 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14026 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14027 hardcode_libdir_flag_spec_F77='-R$libdir' 14028 ;; 14029 *) 14030 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14031 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14032 ;; 14033 esac 14034 fi 14035 ;; 14036 14037 os2*) 14038 hardcode_libdir_flag_spec_F77='-L$libdir' 14039 hardcode_minus_L_F77=yes 14040 allow_undefined_flag_F77=unsupported 14041 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' 14042 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14043 ;; 14044 14045 osf3*) 14046 if test "$GCC" = yes; then 14047 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14048 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' 14049 else 14050 allow_undefined_flag_F77=' -expect_unresolved \*' 14051 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' 14052 fi 14053 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14054 hardcode_libdir_separator_F77=: 14055 ;; 14056 14057 osf4* | osf5*) # as osf3* with the addition of -msym flag 14058 if test "$GCC" = yes; then 14059 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14060 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' 14061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14062 else 14063 allow_undefined_flag_F77=' -expect_unresolved \*' 14064 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' 14065 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~ 14066 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 14067 14068 # Both c and cxx compiler support -rpath directly 14069 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14070 fi 14071 hardcode_libdir_separator_F77=: 14072 ;; 14073 14074 sco3.2v5*) 14075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14076 hardcode_shlibpath_var_F77=no 14077 export_dynamic_flag_spec_F77='${wl}-Bexport' 14078 runpath_var=LD_RUN_PATH 14079 hardcode_runpath_var=yes 14080 ;; 14081 14082 solaris*) 14083 no_undefined_flag_F77=' -z text' 14084 if test "$GCC" = yes; then 14085 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14086 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14087 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14088 else 14089 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14090 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14091 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14092 fi 14093 hardcode_libdir_flag_spec_F77='-R$libdir' 14094 hardcode_shlibpath_var_F77=no 14095 case $host_os in 14096 solaris2.[0-5] | solaris2.[0-5].*) ;; 14097 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14098 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14099 esac 14100 link_all_deplibs_F77=yes 14101 ;; 14102 14103 sunos4*) 14104 if test "x$host_vendor" = xsequent; then 14105 # Use $CC to link under sequent, because it throws in some extra .o 14106 # files that make .init and .fini sections work. 14107 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14108 else 14109 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14110 fi 14111 hardcode_libdir_flag_spec_F77='-L$libdir' 14112 hardcode_direct_F77=yes 14113 hardcode_minus_L_F77=yes 14114 hardcode_shlibpath_var_F77=no 14115 ;; 14116 14117 sysv4) 14118 case $host_vendor in 14119 sni) 14120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14121 hardcode_direct_F77=yes # is this really true??? 14122 ;; 14123 siemens) 14124 ## LD is ld it makes a PLAMLIB 14125 ## CC just makes a GrossModule. 14126 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14127 reload_cmds_F77='$CC -r -o $output$reload_objs' 14128 hardcode_direct_F77=no 14129 ;; 14130 motorola) 14131 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14132 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14133 ;; 14134 esac 14135 runpath_var='LD_RUN_PATH' 14136 hardcode_shlibpath_var_F77=no 14137 ;; 14138 14139 sysv4.3*) 14140 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14141 hardcode_shlibpath_var_F77=no 14142 export_dynamic_flag_spec_F77='-Bexport' 14143 ;; 14144 14145 sysv4*MP*) 14146 if test -d /usr/nec; then 14147 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14148 hardcode_shlibpath_var_F77=no 14149 runpath_var=LD_RUN_PATH 14150 hardcode_runpath_var=yes 14151 ld_shlibs_F77=yes 14152 fi 14153 ;; 14154 14155 sysv4.2uw2*) 14156 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14157 hardcode_direct_F77=yes 14158 hardcode_minus_L_F77=no 14159 hardcode_shlibpath_var_F77=no 14160 hardcode_runpath_var=yes 14161 runpath_var=LD_RUN_PATH 14162 ;; 14163 14164 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14165 no_undefined_flag_F77='${wl}-z ${wl}text' 14166 if test "$GCC" = yes; then 14167 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14168 else 14169 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14170 fi 14171 runpath_var='LD_RUN_PATH' 14172 hardcode_shlibpath_var_F77=no 14173 ;; 14174 14175 sysv5*) 14176 no_undefined_flag_F77=' -z text' 14177 # $CC -shared without GNU ld will not create a library from C++ 14178 # object files and a static libstdc++, better avoid it by now 14179 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14180 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14181 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14182 hardcode_libdir_flag_spec_F77= 14183 hardcode_shlibpath_var_F77=no 14184 runpath_var='LD_RUN_PATH' 14185 ;; 14186 14187 uts4*) 14188 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14189 hardcode_libdir_flag_spec_F77='-L$libdir' 14190 hardcode_shlibpath_var_F77=no 14191 ;; 14192 14193 *) 14194 ld_shlibs_F77=no 14195 ;; 14196 esac 14197 fi 14198 14199echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14200echo "${ECHO_T}$ld_shlibs_F77" >&6 14201test "$ld_shlibs_F77" = no && can_build_shared=no 14202 14203variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14204if test "$GCC" = yes; then 14205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14206fi 14207 14208# 14209# Do we need to explicitly link libc? 14210# 14211case "x$archive_cmds_need_lc_F77" in 14212x|xyes) 14213 # Assume -lc should be added 14214 archive_cmds_need_lc_F77=yes 14215 14216 if test "$enable_shared" = yes && test "$GCC" = yes; then 14217 case $archive_cmds_F77 in 14218 *'~'*) 14219 # FIXME: we may have to deal with multi-command sequences. 14220 ;; 14221 '$CC '*) 14222 # Test whether the compiler implicitly links with -lc since on some 14223 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14224 # to ld, don't add -lc before -lgcc. 14225 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14226echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14227 $rm conftest* 14228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14229 14230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14231 (eval $ac_compile) 2>&5 14232 ac_status=$? 14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14234 (exit $ac_status); } 2>conftest.err; then 14235 soname=conftest 14236 lib=conftest 14237 libobjs=conftest.$ac_objext 14238 deplibs= 14239 wl=$lt_prog_compiler_wl_F77 14240 compiler_flags=-v 14241 linker_flags=-v 14242 verstring= 14243 output_objdir=. 14244 libname=conftest 14245 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14246 allow_undefined_flag_F77= 14247 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14248 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14249 ac_status=$? 14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14251 (exit $ac_status); } 14252 then 14253 archive_cmds_need_lc_F77=no 14254 else 14255 archive_cmds_need_lc_F77=yes 14256 fi 14257 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14258 else 14259 cat conftest.err 1>&5 14260 fi 14261 $rm conftest* 14262 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14263echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14264 ;; 14265 esac 14266 fi 14267 ;; 14268esac 14269 14270echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14271echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14272hardcode_action_F77= 14273if test -n "$hardcode_libdir_flag_spec_F77" || \ 14274 test -n "$runpath_var F77" || \ 14275 test "X$hardcode_automatic_F77"="Xyes" ; then 14276 14277 # We can hardcode non-existant directories. 14278 if test "$hardcode_direct_F77" != no && 14279 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14280 # have to relink, otherwise we might link with an installed library 14281 # when we should be linking with a yet-to-be-installed one 14282 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14283 test "$hardcode_minus_L_F77" != no; then 14284 # Linking always hardcodes the temporary library directory. 14285 hardcode_action_F77=relink 14286 else 14287 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14288 hardcode_action_F77=immediate 14289 fi 14290else 14291 # We cannot hardcode anything, or else we can only hardcode existing 14292 # directories. 14293 hardcode_action_F77=unsupported 14294fi 14295echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14296echo "${ECHO_T}$hardcode_action_F77" >&6 14297 14298if test "$hardcode_action_F77" = relink; then 14299 # Fast installation is not supported 14300 enable_fast_install=no 14301elif test "$shlibpath_overrides_runpath" = yes || 14302 test "$enable_shared" = no; then 14303 # Fast installation is not necessary 14304 enable_fast_install=needless 14305fi 14306 14307striplib= 14308old_striplib= 14309echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 14310echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 14311if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 14312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14313 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14314 echo "$as_me:$LINENO: result: yes" >&5 14315echo "${ECHO_T}yes" >&6 14316else 14317# FIXME - insert some real tests, host_os isn't really good enough 14318 case $host_os in 14319 darwin*) 14320 if test -n "$STRIP" ; then 14321 striplib="$STRIP -x" 14322 echo "$as_me:$LINENO: result: yes" >&5 14323echo "${ECHO_T}yes" >&6 14324 else 14325 echo "$as_me:$LINENO: result: no" >&5 14326echo "${ECHO_T}no" >&6 14327fi 14328 ;; 14329 *) 14330 echo "$as_me:$LINENO: result: no" >&5 14331echo "${ECHO_T}no" >&6 14332 ;; 14333 esac 14334fi 14335 14336echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14337echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14338library_names_spec= 14339libname_spec='lib$name' 14340soname_spec= 14341shrext=".so" 14342postinstall_cmds= 14343postuninstall_cmds= 14344finish_cmds= 14345finish_eval= 14346shlibpath_var= 14347shlibpath_overrides_runpath=unknown 14348version_type=none 14349dynamic_linker="$host_os ld.so" 14350sys_lib_dlsearch_path_spec="/lib /usr/lib" 14351if test "$GCC" = yes; then 14352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14354 # if the path contains ";" then we assume it to be the separator 14355 # otherwise default to the standard path separator (i.e. ":") - it is 14356 # assumed that no part of a normal pathname contains ";" but that should 14357 # okay in the real world where ";" in dirpaths is itself problematic. 14358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14359 else 14360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14361 fi 14362else 14363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14364fi 14365need_lib_prefix=unknown 14366hardcode_into_libs=no 14367 14368# when you set need_version to no, make sure it does not cause -set_version 14369# flags to be left without arguments 14370need_version=unknown 14371 14372case $host_os in 14373aix3*) 14374 version_type=linux 14375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14376 shlibpath_var=LIBPATH 14377 14378 # AIX 3 has no versioning support, so we append a major version to the name. 14379 soname_spec='${libname}${release}${shared_ext}$major' 14380 ;; 14381 14382aix4* | aix5*) 14383 version_type=linux 14384 need_lib_prefix=no 14385 need_version=no 14386 hardcode_into_libs=yes 14387 if test "$host_cpu" = ia64; then 14388 # AIX 5 supports IA64 14389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14390 shlibpath_var=LD_LIBRARY_PATH 14391 else 14392 # With GCC up to 2.95.x, collect2 would create an import file 14393 # for dependence libraries. The import file would start with 14394 # the line `#! .'. This would cause the generated library to 14395 # depend on `.', always an invalid library. This was fixed in 14396 # development snapshots of GCC prior to 3.0. 14397 case $host_os in 14398 aix4 | aix4.[01] | aix4.[01].*) 14399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14400 echo ' yes ' 14401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14402 : 14403 else 14404 can_build_shared=no 14405 fi 14406 ;; 14407 esac 14408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14409 # soname into executable. Probably we can add versioning support to 14410 # collect2, so additional links can be useful in future. 14411 if test "$aix_use_runtimelinking" = yes; then 14412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14413 # instead of lib<name>.a to let people know that these are not 14414 # typical AIX shared libraries. 14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14416 else 14417 # We preserve .a as extension for shared libraries through AIX4.2 14418 # and later when we are not doing run time linking. 14419 library_names_spec='${libname}${release}.a $libname.a' 14420 soname_spec='${libname}${release}${shared_ext}$major' 14421 fi 14422 shlibpath_var=LIBPATH 14423 fi 14424 ;; 14425 14426amigaos*) 14427 library_names_spec='$libname.ixlibrary $libname.a' 14428 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14429 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' 14430 ;; 14431 14432beos*) 14433 library_names_spec='${libname}${shared_ext}' 14434 dynamic_linker="$host_os ld.so" 14435 shlibpath_var=LIBRARY_PATH 14436 ;; 14437 14438bsdi4*) 14439 version_type=linux 14440 need_version=no 14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14442 soname_spec='${libname}${release}${shared_ext}$major' 14443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14444 shlibpath_var=LD_LIBRARY_PATH 14445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14447 # the default ld.so.conf also contains /usr/contrib/lib and 14448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14449 # libtool to hard-code these into programs 14450 ;; 14451 14452cygwin* | mingw* | pw32*) 14453 version_type=windows 14454 shrext=".dll" 14455 need_version=no 14456 need_lib_prefix=no 14457 14458 case $GCC,$host_os in 14459 yes,cygwin* | yes,mingw* | yes,pw32*) 14460 library_names_spec='$libname.dll.a' 14461 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14462 postinstall_cmds='base_file=`basename \${file}`~ 14463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14464 dldir=$destdir/`dirname \$dlpath`~ 14465 test -d \$dldir || mkdir -p \$dldir~ 14466 $install_prog $dir/$dlname \$dldir/$dlname' 14467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14468 dlpath=$dir/\$dldll~ 14469 $rm \$dlpath' 14470 shlibpath_overrides_runpath=yes 14471 14472 case $host_os in 14473 cygwin*) 14474 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14476 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 14477 ;; 14478 mingw*) 14479 # MinGW DLLs use traditional 'lib' prefix 14480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14483 # It is most probably a Windows format PATH printed by 14484 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14485 # path with ; separators, and with drive letters. We can handle the 14486 # drive letters (cygwin fileutils understands them), so leave them, 14487 # especially as we might pass files found there to a mingw objdump, 14488 # which wouldn't understand a cygwinified path. Ahh. 14489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14490 else 14491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14492 fi 14493 ;; 14494 pw32*) 14495 # pw32 DLLs use 'pw' prefix rather than 'lib' 14496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14497 ;; 14498 esac 14499 ;; 14500 14501 *) 14502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14503 ;; 14504 esac 14505 dynamic_linker='Win32 ld.exe' 14506 # FIXME: first we should search . and the directory the executable is in 14507 shlibpath_var=PATH 14508 ;; 14509 14510darwin* | rhapsody*) 14511 dynamic_linker="$host_os dyld" 14512 version_type=darwin 14513 need_lib_prefix=no 14514 need_version=no 14515 # FIXME: Relying on posixy $() will cause problems for 14516 # cross-compilation, but unfortunately the echo tests do not 14517 # yet detect zsh echo's removal of \ escapes. 14518 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14519 soname_spec='${libname}${release}${major}$shared_ext' 14520 shlibpath_overrides_runpath=yes 14521 shlibpath_var=DYLD_LIBRARY_PATH 14522 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 14523 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14524 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 14525 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"` 14526 fi 14527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14528 ;; 14529 14530dgux*) 14531 version_type=linux 14532 need_lib_prefix=no 14533 need_version=no 14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14535 soname_spec='${libname}${release}${shared_ext}$major' 14536 shlibpath_var=LD_LIBRARY_PATH 14537 ;; 14538 14539freebsd1*) 14540 dynamic_linker=no 14541 ;; 14542 14543freebsd*) 14544 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14545 version_type=freebsd-$objformat 14546 case $version_type in 14547 freebsd-elf*) 14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14549 need_version=no 14550 need_lib_prefix=no 14551 ;; 14552 freebsd-*) 14553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14554 need_version=yes 14555 ;; 14556 esac 14557 shlibpath_var=LD_LIBRARY_PATH 14558 case $host_os in 14559 freebsd2*) 14560 shlibpath_overrides_runpath=yes 14561 ;; 14562 freebsd3.01* | freebsdelf3.01*) 14563 shlibpath_overrides_runpath=yes 14564 hardcode_into_libs=yes 14565 ;; 14566 *) # from 3.2 on 14567 shlibpath_overrides_runpath=no 14568 hardcode_into_libs=yes 14569 ;; 14570 esac 14571 ;; 14572 14573gnu*) 14574 version_type=linux 14575 need_lib_prefix=no 14576 need_version=no 14577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14578 soname_spec='${libname}${release}${shared_ext}$major' 14579 shlibpath_var=LD_LIBRARY_PATH 14580 hardcode_into_libs=yes 14581 ;; 14582 14583hpux9* | hpux10* | hpux11*) 14584 # Give a soname corresponding to the major version so that dld.sl refuses to 14585 # link against other versions. 14586 version_type=sunos 14587 need_lib_prefix=no 14588 need_version=no 14589 case "$host_cpu" in 14590 ia64*) 14591 shrext='.so' 14592 hardcode_into_libs=yes 14593 dynamic_linker="$host_os dld.so" 14594 shlibpath_var=LD_LIBRARY_PATH 14595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14597 soname_spec='${libname}${release}${shared_ext}$major' 14598 if test "X$HPUX_IA64_MODE" = X32; then 14599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14600 else 14601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14602 fi 14603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14604 ;; 14605 hppa*64*) 14606 shrext='.sl' 14607 hardcode_into_libs=yes 14608 dynamic_linker="$host_os dld.sl" 14609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14612 soname_spec='${libname}${release}${shared_ext}$major' 14613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14615 ;; 14616 *) 14617 shrext='.sl' 14618 dynamic_linker="$host_os dld.sl" 14619 shlibpath_var=SHLIB_PATH 14620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14622 soname_spec='${libname}${release}${shared_ext}$major' 14623 ;; 14624 esac 14625 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14626 postinstall_cmds='chmod 555 $lib' 14627 ;; 14628 14629irix5* | irix6* | nonstopux*) 14630 case $host_os in 14631 nonstopux*) version_type=nonstopux ;; 14632 *) 14633 if test "$lt_cv_prog_gnu_ld" = yes; then 14634 version_type=linux 14635 else 14636 version_type=irix 14637 fi ;; 14638 esac 14639 need_lib_prefix=no 14640 need_version=no 14641 soname_spec='${libname}${release}${shared_ext}$major' 14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14643 case $host_os in 14644 irix5* | nonstopux*) 14645 libsuff= shlibsuff= 14646 ;; 14647 *) 14648 case $LD in # libtool.m4 will add one of these switches to LD 14649 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14650 libsuff= shlibsuff= libmagic=32-bit;; 14651 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14652 libsuff=32 shlibsuff=N32 libmagic=N32;; 14653 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14654 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14655 *) libsuff= shlibsuff= libmagic=never-match;; 14656 esac 14657 ;; 14658 esac 14659 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14660 shlibpath_overrides_runpath=no 14661 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14662 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14663 hardcode_into_libs=yes 14664 ;; 14665 14666# No shared lib support for Linux oldld, aout, or coff. 14667linux*oldld* | linux*aout* | linux*coff*) 14668 dynamic_linker=no 14669 ;; 14670 14671# This must be Linux ELF. 14672linux*) 14673 version_type=linux 14674 need_lib_prefix=no 14675 need_version=no 14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14677 soname_spec='${libname}${release}${shared_ext}$major' 14678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14679 shlibpath_var=LD_LIBRARY_PATH 14680 shlibpath_overrides_runpath=no 14681 # This implies no fast_install, which is unacceptable. 14682 # Some rework will be needed to allow for fast_install 14683 # before this can be enabled. 14684 hardcode_into_libs=yes 14685 14686 # We used to test for /lib/ld.so.1 and disable shared libraries on 14687 # powerpc, because MkLinux only supported shared libraries with the 14688 # GNU dynamic linker. Since this was broken with cross compilers, 14689 # most powerpc-linux boxes support dynamic linking these days and 14690 # people can always --disable-shared, the test was removed, and we 14691 # assume the GNU/Linux dynamic linker is in use. 14692 dynamic_linker='GNU/Linux ld.so' 14693 ;; 14694 14695netbsd*) 14696 version_type=sunos 14697 need_lib_prefix=no 14698 need_version=no 14699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14702 dynamic_linker='NetBSD (a.out) ld.so' 14703 else 14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 14705 soname_spec='${libname}${release}${shared_ext}$major' 14706 dynamic_linker='NetBSD ld.elf_so' 14707 fi 14708 shlibpath_var=LD_LIBRARY_PATH 14709 shlibpath_overrides_runpath=yes 14710 hardcode_into_libs=yes 14711 ;; 14712 14713newsos6) 14714 version_type=linux 14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14716 shlibpath_var=LD_LIBRARY_PATH 14717 shlibpath_overrides_runpath=yes 14718 ;; 14719 14720nto-qnx) 14721 version_type=linux 14722 need_lib_prefix=no 14723 need_version=no 14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14725 soname_spec='${libname}${release}${shared_ext}$major' 14726 shlibpath_var=LD_LIBRARY_PATH 14727 shlibpath_overrides_runpath=yes 14728 ;; 14729 14730openbsd*) 14731 version_type=sunos 14732 need_lib_prefix=no 14733 need_version=no 14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14736 shlibpath_var=LD_LIBRARY_PATH 14737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14738 case $host_os in 14739 openbsd2.[89] | openbsd2.[89].*) 14740 shlibpath_overrides_runpath=no 14741 ;; 14742 *) 14743 shlibpath_overrides_runpath=yes 14744 ;; 14745 esac 14746 else 14747 shlibpath_overrides_runpath=yes 14748 fi 14749 ;; 14750 14751os2*) 14752 libname_spec='$name' 14753 shrext=".dll" 14754 need_lib_prefix=no 14755 library_names_spec='$libname${shared_ext} $libname.a' 14756 dynamic_linker='OS/2 ld.exe' 14757 shlibpath_var=LIBPATH 14758 ;; 14759 14760osf3* | osf4* | osf5*) 14761 version_type=osf 14762 need_lib_prefix=no 14763 need_version=no 14764 soname_spec='${libname}${release}${shared_ext}$major' 14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14766 shlibpath_var=LD_LIBRARY_PATH 14767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14769 ;; 14770 14771sco3.2v5*) 14772 version_type=osf 14773 soname_spec='${libname}${release}${shared_ext}$major' 14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14775 shlibpath_var=LD_LIBRARY_PATH 14776 ;; 14777 14778solaris*) 14779 version_type=linux 14780 need_lib_prefix=no 14781 need_version=no 14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14783 soname_spec='${libname}${release}${shared_ext}$major' 14784 shlibpath_var=LD_LIBRARY_PATH 14785 shlibpath_overrides_runpath=yes 14786 hardcode_into_libs=yes 14787 # ldd complains unless libraries are executable 14788 postinstall_cmds='chmod +x $lib' 14789 ;; 14790 14791sunos4*) 14792 version_type=sunos 14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14794 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14795 shlibpath_var=LD_LIBRARY_PATH 14796 shlibpath_overrides_runpath=yes 14797 if test "$with_gnu_ld" = yes; then 14798 need_lib_prefix=no 14799 fi 14800 need_version=yes 14801 ;; 14802 14803sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14804 version_type=linux 14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14806 soname_spec='${libname}${release}${shared_ext}$major' 14807 shlibpath_var=LD_LIBRARY_PATH 14808 case $host_vendor in 14809 sni) 14810 shlibpath_overrides_runpath=no 14811 need_lib_prefix=no 14812 export_dynamic_flag_spec='${wl}-Blargedynsym' 14813 runpath_var=LD_RUN_PATH 14814 ;; 14815 siemens) 14816 need_lib_prefix=no 14817 ;; 14818 motorola) 14819 need_lib_prefix=no 14820 need_version=no 14821 shlibpath_overrides_runpath=no 14822 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14823 ;; 14824 esac 14825 ;; 14826 14827sysv4*MP*) 14828 if test -d /usr/nec ;then 14829 version_type=linux 14830 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14831 soname_spec='$libname${shared_ext}.$major' 14832 shlibpath_var=LD_LIBRARY_PATH 14833 fi 14834 ;; 14835 14836uts4*) 14837 version_type=linux 14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14839 soname_spec='${libname}${release}${shared_ext}$major' 14840 shlibpath_var=LD_LIBRARY_PATH 14841 ;; 14842 14843*) 14844 dynamic_linker=no 14845 ;; 14846esac 14847echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14848echo "${ECHO_T}$dynamic_linker" >&6 14849test "$dynamic_linker" = no && can_build_shared=no 14850 14851 14852# The else clause should only fire when bootstrapping the 14853# libtool distribution, otherwise you forgot to ship ltmain.sh 14854# with your package, and you will get complaints that there are 14855# no rules to generate ltmain.sh. 14856if test -f "$ltmain"; then 14857 # See if we are running on zsh, and set the options which allow our commands through 14858 # without removal of \ escapes. 14859 if test -n "${ZSH_VERSION+set}" ; then 14860 setopt NO_GLOB_SUBST 14861 fi 14862 # Now quote all the things that may contain metacharacters while being 14863 # careful not to overquote the AC_SUBSTed values. We take copies of the 14864 # variables and quote the copies for generation of the libtool script. 14865 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 14866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14868 deplibs_check_method reload_flag reload_cmds need_locks \ 14869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14870 lt_cv_sys_global_symbol_to_c_name_address \ 14871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14872 old_postinstall_cmds old_postuninstall_cmds \ 14873 compiler_F77 \ 14874 CC_F77 \ 14875 LD_F77 \ 14876 lt_prog_compiler_wl_F77 \ 14877 lt_prog_compiler_pic_F77 \ 14878 lt_prog_compiler_static_F77 \ 14879 lt_prog_compiler_no_builtin_flag_F77 \ 14880 export_dynamic_flag_spec_F77 \ 14881 thread_safe_flag_spec_F77 \ 14882 whole_archive_flag_spec_F77 \ 14883 enable_shared_with_static_runtimes_F77 \ 14884 old_archive_cmds_F77 \ 14885 old_archive_from_new_cmds_F77 \ 14886 predep_objects_F77 \ 14887 postdep_objects_F77 \ 14888 predeps_F77 \ 14889 postdeps_F77 \ 14890 compiler_lib_search_path_F77 \ 14891 archive_cmds_F77 \ 14892 archive_expsym_cmds_F77 \ 14893 postinstall_cmds_F77 \ 14894 postuninstall_cmds_F77 \ 14895 old_archive_from_expsyms_cmds_F77 \ 14896 allow_undefined_flag_F77 \ 14897 no_undefined_flag_F77 \ 14898 export_symbols_cmds_F77 \ 14899 hardcode_libdir_flag_spec_F77 \ 14900 hardcode_libdir_flag_spec_ld_F77 \ 14901 hardcode_libdir_separator_F77 \ 14902 hardcode_automatic_F77 \ 14903 module_cmds_F77 \ 14904 module_expsym_cmds_F77 \ 14905 lt_cv_prog_compiler_c_o_F77 \ 14906 exclude_expsyms_F77 \ 14907 include_expsyms_F77; do 14908 14909 case $var in 14910 old_archive_cmds_F77 | \ 14911 old_archive_from_new_cmds_F77 | \ 14912 archive_cmds_F77 | \ 14913 archive_expsym_cmds_F77 | \ 14914 module_cmds_F77 | \ 14915 module_expsym_cmds_F77 | \ 14916 old_archive_from_expsyms_cmds_F77 | \ 14917 export_symbols_cmds_F77 | \ 14918 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14919 postinstall_cmds | postuninstall_cmds | \ 14920 old_postinstall_cmds | old_postuninstall_cmds | \ 14921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14922 # Double-quote double-evaled strings. 14923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14924 ;; 14925 *) 14926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14927 ;; 14928 esac 14929 done 14930 14931 case $lt_echo in 14932 *'\$0 --fallback-echo"') 14933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14934 ;; 14935 esac 14936 14937cfgfile="$ofile" 14938 14939 cat <<__EOF__ >> "$cfgfile" 14940# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14941 14942# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14943 14944# Shell to use when invoking shell scripts. 14945SHELL=$lt_SHELL 14946 14947# Whether or not to build shared libraries. 14948build_libtool_libs=$enable_shared 14949 14950# Whether or not to build static libraries. 14951build_old_libs=$enable_static 14952 14953# Whether or not to add -lc for building shared libraries. 14954build_libtool_need_lc=$archive_cmds_need_lc_F77 14955 14956# Whether or not to disallow shared libs when runtime libs are static 14957allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14958 14959# Whether or not to optimize for fast installation. 14960fast_install=$enable_fast_install 14961 14962# The host system. 14963host_alias=$host_alias 14964host=$host 14965 14966# An echo program that does not interpret backslashes. 14967echo=$lt_echo 14968 14969# The archiver. 14970AR=$lt_AR 14971AR_FLAGS=$lt_AR_FLAGS 14972 14973# A C compiler. 14974LTCC=$lt_LTCC 14975 14976# A language-specific compiler. 14977CC=$lt_compiler_F77 14978 14979# Is the compiler the GNU C compiler? 14980with_gcc=$GCC_F77 14981 14982# An ERE matcher. 14983EGREP=$lt_EGREP 14984 14985# The linker used to build libraries. 14986LD=$lt_LD_F77 14987 14988# Whether we need hard or soft links. 14989LN_S=$lt_LN_S 14990 14991# A BSD-compatible nm program. 14992NM=$lt_NM 14993 14994# A symbol stripping program 14995STRIP=$STRIP 14996 14997# Used to examine libraries when file_magic_cmd begins "file" 14998MAGIC_CMD=$MAGIC_CMD 14999 15000# Used on cygwin: DLL creation program. 15001DLLTOOL="$DLLTOOL" 15002 15003# Used on cygwin: object dumper. 15004OBJDUMP="$OBJDUMP" 15005 15006# Used on cygwin: assembler. 15007AS="$AS" 15008 15009# The name of the directory that contains temporary libtool files. 15010objdir=$objdir 15011 15012# How to create reloadable object files. 15013reload_flag=$lt_reload_flag 15014reload_cmds=$lt_reload_cmds 15015 15016# How to pass a linker flag through the compiler. 15017wl=$lt_lt_prog_compiler_wl_F77 15018 15019# Object file suffix (normally "o"). 15020objext="$ac_objext" 15021 15022# Old archive suffix (normally "a"). 15023libext="$libext" 15024 15025# Shared library suffix (normally ".so"). 15026shrext='$shrext' 15027 15028# Executable file suffix (normally ""). 15029exeext="$exeext" 15030 15031# Additional compiler flags for building library objects. 15032pic_flag=$lt_lt_prog_compiler_pic_F77 15033pic_mode=$pic_mode 15034 15035# What is the maximum length of a command? 15036max_cmd_len=$lt_cv_sys_max_cmd_len 15037 15038# Does compiler simultaneously support -c and -o options? 15039compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15040 15041# Must we lock files when doing compilation ? 15042need_locks=$lt_need_locks 15043 15044# Do we need the lib prefix for modules? 15045need_lib_prefix=$need_lib_prefix 15046 15047# Do we need a version for libraries? 15048need_version=$need_version 15049 15050# Whether dlopen is supported. 15051dlopen_support=$enable_dlopen 15052 15053# Whether dlopen of programs is supported. 15054dlopen_self=$enable_dlopen_self 15055 15056# Whether dlopen of statically linked programs is supported. 15057dlopen_self_static=$enable_dlopen_self_static 15058 15059# Compiler flag to prevent dynamic linking. 15060link_static_flag=$lt_lt_prog_compiler_static_F77 15061 15062# Compiler flag to turn off builtin functions. 15063no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15064 15065# Compiler flag to allow reflexive dlopens. 15066export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15067 15068# Compiler flag to generate shared objects directly from archives. 15069whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15070 15071# Compiler flag to generate thread-safe objects. 15072thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15073 15074# Library versioning type. 15075version_type=$version_type 15076 15077# Format of library name prefix. 15078libname_spec=$lt_libname_spec 15079 15080# List of archive names. First name is the real one, the rest are links. 15081# The last name is the one that the linker finds with -lNAME. 15082library_names_spec=$lt_library_names_spec 15083 15084# The coded name of the library, if different from the real name. 15085soname_spec=$lt_soname_spec 15086 15087# Commands used to build and install an old-style archive. 15088RANLIB=$lt_RANLIB 15089old_archive_cmds=$lt_old_archive_cmds_F77 15090old_postinstall_cmds=$lt_old_postinstall_cmds 15091old_postuninstall_cmds=$lt_old_postuninstall_cmds 15092 15093# Create an old-style archive from a shared archive. 15094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15095 15096# Create a temporary old-style archive to link instead of a shared archive. 15097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15098 15099# Commands used to build and install a shared archive. 15100archive_cmds=$lt_archive_cmds_F77 15101archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15102postinstall_cmds=$lt_postinstall_cmds 15103postuninstall_cmds=$lt_postuninstall_cmds 15104 15105# Commands used to build a loadable module (assumed same as above if empty) 15106module_cmds=$lt_module_cmds_F77 15107module_expsym_cmds=$lt_module_expsym_cmds_F77 15108 15109# Commands to strip libraries. 15110old_striplib=$lt_old_striplib 15111striplib=$lt_striplib 15112 15113# Dependencies to place before the objects being linked to create a 15114# shared library. 15115predep_objects=$lt_predep_objects_F77 15116 15117# Dependencies to place after the objects being linked to create a 15118# shared library. 15119postdep_objects=$lt_postdep_objects_F77 15120 15121# Dependencies to place before the objects being linked to create a 15122# shared library. 15123predeps=$lt_predeps_F77 15124 15125# Dependencies to place after the objects being linked to create a 15126# shared library. 15127postdeps=$lt_postdeps_F77 15128 15129# The library search path used internally by the compiler when linking 15130# a shared library. 15131compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15132 15133# Method to check whether dependent libraries are shared objects. 15134deplibs_check_method=$lt_deplibs_check_method 15135 15136# Command to use when deplibs_check_method == file_magic. 15137file_magic_cmd=$lt_file_magic_cmd 15138 15139# Flag that allows shared libraries with undefined symbols to be built. 15140allow_undefined_flag=$lt_allow_undefined_flag_F77 15141 15142# Flag that forces no undefined symbols. 15143no_undefined_flag=$lt_no_undefined_flag_F77 15144 15145# Commands used to finish a libtool library installation in a directory. 15146finish_cmds=$lt_finish_cmds 15147 15148# Same as above, but a single script fragment to be evaled but not shown. 15149finish_eval=$lt_finish_eval 15150 15151# Take the output of nm and produce a listing of raw symbols and C names. 15152global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15153 15154# Transform the output of nm in a proper C declaration 15155global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15156 15157# Transform the output of nm in a C name address pair 15158global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15159 15160# This is the shared library runtime path variable. 15161runpath_var=$runpath_var 15162 15163# This is the shared library path variable. 15164shlibpath_var=$shlibpath_var 15165 15166# Is shlibpath searched before the hard-coded library search path? 15167shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15168 15169# How to hardcode a shared library path into an executable. 15170hardcode_action=$hardcode_action_F77 15171 15172# Whether we should hardcode library paths into libraries. 15173hardcode_into_libs=$hardcode_into_libs 15174 15175# Flag to hardcode \$libdir into a binary during linking. 15176# This must work even if \$libdir does not exist. 15177hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15178 15179# If ld is used when linking, flag to hardcode \$libdir into 15180# a binary during linking. This must work even if \$libdir does 15181# not exist. 15182hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15183 15184# Whether we need a single -rpath flag with a separated argument. 15185hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15186 15187# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15188# resulting binary. 15189hardcode_direct=$hardcode_direct_F77 15190 15191# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15192# resulting binary. 15193hardcode_minus_L=$hardcode_minus_L_F77 15194 15195# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15196# the resulting binary. 15197hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15198 15199# Set to yes if building a shared library automatically hardcodes DIR into the library 15200# and all subsequent libraries and executables linked against it. 15201hardcode_automatic=$hardcode_automatic_F77 15202 15203# Variables whose values should be saved in libtool wrapper scripts and 15204# restored at relink time. 15205variables_saved_for_relink="$variables_saved_for_relink" 15206 15207# Whether libtool must link a program against all its dependency libraries. 15208link_all_deplibs=$link_all_deplibs_F77 15209 15210# Compile-time system search path for libraries 15211sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15212 15213# Run-time system search path for libraries 15214sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15215 15216# Fix the shell variable \$srcfile for the compiler. 15217fix_srcfile_path="$fix_srcfile_path_F77" 15218 15219# Set to yes if exported symbols are required. 15220always_export_symbols=$always_export_symbols_F77 15221 15222# The commands to list exported symbols. 15223export_symbols_cmds=$lt_export_symbols_cmds_F77 15224 15225# The commands to extract the exported symbol list from a shared archive. 15226extract_expsyms_cmds=$lt_extract_expsyms_cmds 15227 15228# Symbols that should not be listed in the preloaded symbols. 15229exclude_expsyms=$lt_exclude_expsyms_F77 15230 15231# Symbols that must always be exported. 15232include_expsyms=$lt_include_expsyms_F77 15233 15234# ### END LIBTOOL TAG CONFIG: $tagname 15235 15236__EOF__ 15237 15238 15239else 15240 # If there is no Makefile yet, we rely on a make rule to execute 15241 # `config.status --recheck' to rerun these tests and create the 15242 # libtool script then. 15243 test -f Makefile && make "$ltmain" 15244fi 15245 15246 15247ac_ext=cc 15248ac_cpp='$CXXCPP $CPPFLAGS' 15249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15252 15253CC="$lt_save_CC" 15254 15255 else 15256 tagname="" 15257 fi 15258 ;; 15259 15260 GCJ) 15261 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15262 15263 15264 15265# Source file extension for Java test sources. 15266ac_ext=java 15267 15268# Object file extension for compiled Java test sources. 15269objext=o 15270objext_GCJ=$objext 15271 15272# Code to be used in simple compile tests 15273lt_simple_compile_test_code="class foo {}\n" 15274 15275# Code to be used in simple link tests 15276lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 15277 15278# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15279 15280# If no C compiler was specified, use CC. 15281LTCC=${LTCC-"$CC"} 15282 15283# Allow CC to be a program name with arguments. 15284compiler=$CC 15285 15286 15287# Allow CC to be a program name with arguments. 15288lt_save_CC="$CC" 15289CC=${GCJ-"gcj"} 15290compiler=$CC 15291compiler_GCJ=$CC 15292 15293# GCJ did not exist at the time GCC didn't implicitly link libc in. 15294archive_cmds_need_lc_GCJ=no 15295 15296 15297lt_prog_compiler_no_builtin_flag_GCJ= 15298 15299if test "$GCC" = yes; then 15300 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15301 15302 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15303echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15304if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15305 echo $ECHO_N "(cached) $ECHO_C" >&6 15306else 15307 lt_cv_prog_compiler_rtti_exceptions=no 15308 ac_outfile=conftest.$ac_objext 15309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15310 lt_compiler_flag="-fno-rtti -fno-exceptions" 15311 # Insert the option either (1) after the last *FLAGS variable, or 15312 # (2) before a word containing "conftest.", or (3) at the end. 15313 # Note that $ac_compile itself does not contain backslashes and begins 15314 # with a dollar sign (not a hyphen), so the echo should work correctly. 15315 # The option is referenced via a variable to avoid confusing sed. 15316 lt_compile=`echo "$ac_compile" | $SED \ 15317 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15319 -e 's:$: $lt_compiler_flag:'` 15320 (eval echo "\"\$as_me:15320: $lt_compile\"" >&5) 15321 (eval "$lt_compile" 2>conftest.err) 15322 ac_status=$? 15323 cat conftest.err >&5 15324 echo "$as_me:15324: \$? = $ac_status" >&5 15325 if (exit $ac_status) && test -s "$ac_outfile"; then 15326 # The compiler can only warn and ignore the option if not recognized 15327 # So say no if there are warnings 15328 if test ! -s conftest.err; then 15329 lt_cv_prog_compiler_rtti_exceptions=yes 15330 fi 15331 fi 15332 $rm conftest* 15333 15334fi 15335echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15336echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15337 15338if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15339 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15340else 15341 : 15342fi 15343 15344fi 15345 15346lt_prog_compiler_wl_GCJ= 15347lt_prog_compiler_pic_GCJ= 15348lt_prog_compiler_static_GCJ= 15349 15350echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15351echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15352 15353 if test "$GCC" = yes; then 15354 lt_prog_compiler_wl_GCJ='-Wl,' 15355 lt_prog_compiler_static_GCJ='-static' 15356 15357 case $host_os in 15358 aix*) 15359 # All AIX code is PIC. 15360 if test "$host_cpu" = ia64; then 15361 # AIX 5 now supports IA64 processor 15362 lt_prog_compiler_static_GCJ='-Bstatic' 15363 fi 15364 ;; 15365 15366 amigaos*) 15367 # FIXME: we need at least 68020 code to build shared libraries, but 15368 # adding the `-m68020' flag to GCC prevents building anything better, 15369 # like `-m68040'. 15370 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15371 ;; 15372 15373 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15374 # PIC is the default for these OSes. 15375 ;; 15376 15377 mingw* | pw32* | os2*) 15378 # This hack is so that the source file can tell whether it is being 15379 # built for inclusion in a dll (and should export symbols for example). 15380 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15381 ;; 15382 15383 darwin* | rhapsody*) 15384 # PIC is the default on this platform 15385 # Common symbols not allowed in MH_DYLIB files 15386 lt_prog_compiler_pic_GCJ='-fno-common' 15387 ;; 15388 15389 msdosdjgpp*) 15390 # Just because we use GCC doesn't mean we suddenly get shared libraries 15391 # on systems that don't support them. 15392 lt_prog_compiler_can_build_shared_GCJ=no 15393 enable_shared=no 15394 ;; 15395 15396 sysv4*MP*) 15397 if test -d /usr/nec; then 15398 lt_prog_compiler_pic_GCJ=-Kconform_pic 15399 fi 15400 ;; 15401 15402 hpux*) 15403 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15404 # not for PA HP-UX. 15405 case "$host_cpu" in 15406 hppa*64*|ia64*) 15407 # +Z the default 15408 ;; 15409 *) 15410 lt_prog_compiler_pic_GCJ='-fPIC' 15411 ;; 15412 esac 15413 ;; 15414 15415 *) 15416 lt_prog_compiler_pic_GCJ='-fPIC' 15417 ;; 15418 esac 15419 else 15420 # PORTME Check for flag to pass linker flags through the system compiler. 15421 case $host_os in 15422 aix*) 15423 lt_prog_compiler_wl_GCJ='-Wl,' 15424 if test "$host_cpu" = ia64; then 15425 # AIX 5 now supports IA64 processor 15426 lt_prog_compiler_static_GCJ='-Bstatic' 15427 else 15428 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15429 fi 15430 ;; 15431 15432 mingw* | pw32* | os2*) 15433 # This hack is so that the source file can tell whether it is being 15434 # built for inclusion in a dll (and should export symbols for example). 15435 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15436 ;; 15437 15438 hpux9* | hpux10* | hpux11*) 15439 lt_prog_compiler_wl_GCJ='-Wl,' 15440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15441 # not for PA HP-UX. 15442 case "$host_cpu" in 15443 hppa*64*|ia64*) 15444 # +Z the default 15445 ;; 15446 *) 15447 lt_prog_compiler_pic_GCJ='+Z' 15448 ;; 15449 esac 15450 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15451 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15452 ;; 15453 15454 irix5* | irix6* | nonstopux*) 15455 lt_prog_compiler_wl_GCJ='-Wl,' 15456 # PIC (with -KPIC) is the default. 15457 lt_prog_compiler_static_GCJ='-non_shared' 15458 ;; 15459 15460 newsos6) 15461 lt_prog_compiler_pic_GCJ='-KPIC' 15462 lt_prog_compiler_static_GCJ='-Bstatic' 15463 ;; 15464 15465 linux*) 15466 case $CC in 15467 icc|ecc) 15468 lt_prog_compiler_wl_GCJ='-Wl,' 15469 lt_prog_compiler_pic_GCJ='-KPIC' 15470 lt_prog_compiler_static_GCJ='-static' 15471 ;; 15472 ccc) 15473 lt_prog_compiler_wl_GCJ='-Wl,' 15474 # All Alpha code is PIC. 15475 lt_prog_compiler_static_GCJ='-non_shared' 15476 ;; 15477 esac 15478 ;; 15479 15480 osf3* | osf4* | osf5*) 15481 lt_prog_compiler_wl_GCJ='-Wl,' 15482 # All OSF/1 code is PIC. 15483 lt_prog_compiler_static_GCJ='-non_shared' 15484 ;; 15485 15486 sco3.2v5*) 15487 lt_prog_compiler_pic_GCJ='-Kpic' 15488 lt_prog_compiler_static_GCJ='-dn' 15489 ;; 15490 15491 solaris*) 15492 lt_prog_compiler_wl_GCJ='-Wl,' 15493 lt_prog_compiler_pic_GCJ='-KPIC' 15494 lt_prog_compiler_static_GCJ='-Bstatic' 15495 ;; 15496 15497 sunos4*) 15498 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15499 lt_prog_compiler_pic_GCJ='-PIC' 15500 lt_prog_compiler_static_GCJ='-Bstatic' 15501 ;; 15502 15503 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15504 lt_prog_compiler_wl_GCJ='-Wl,' 15505 lt_prog_compiler_pic_GCJ='-KPIC' 15506 lt_prog_compiler_static_GCJ='-Bstatic' 15507 ;; 15508 15509 sysv4*MP*) 15510 if test -d /usr/nec ;then 15511 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15512 lt_prog_compiler_static_GCJ='-Bstatic' 15513 fi 15514 ;; 15515 15516 uts4*) 15517 lt_prog_compiler_pic_GCJ='-pic' 15518 lt_prog_compiler_static_GCJ='-Bstatic' 15519 ;; 15520 15521 *) 15522 lt_prog_compiler_can_build_shared_GCJ=no 15523 ;; 15524 esac 15525 fi 15526 15527echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15528echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15529 15530# 15531# Check to make sure the PIC flag actually works. 15532# 15533if test -n "$lt_prog_compiler_pic_GCJ"; then 15534 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15535echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15536if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15537 echo $ECHO_N "(cached) $ECHO_C" >&6 15538else 15539 lt_prog_compiler_pic_works_GCJ=no 15540 ac_outfile=conftest.$ac_objext 15541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15542 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15543 # Insert the option either (1) after the last *FLAGS variable, or 15544 # (2) before a word containing "conftest.", or (3) at the end. 15545 # Note that $ac_compile itself does not contain backslashes and begins 15546 # with a dollar sign (not a hyphen), so the echo should work correctly. 15547 # The option is referenced via a variable to avoid confusing sed. 15548 lt_compile=`echo "$ac_compile" | $SED \ 15549 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15551 -e 's:$: $lt_compiler_flag:'` 15552 (eval echo "\"\$as_me:15552: $lt_compile\"" >&5) 15553 (eval "$lt_compile" 2>conftest.err) 15554 ac_status=$? 15555 cat conftest.err >&5 15556 echo "$as_me:15556: \$? = $ac_status" >&5 15557 if (exit $ac_status) && test -s "$ac_outfile"; then 15558 # The compiler can only warn and ignore the option if not recognized 15559 # So say no if there are warnings 15560 if test ! -s conftest.err; then 15561 lt_prog_compiler_pic_works_GCJ=yes 15562 fi 15563 fi 15564 $rm conftest* 15565 15566fi 15567echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15568echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15569 15570if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15571 case $lt_prog_compiler_pic_GCJ in 15572 "" | " "*) ;; 15573 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15574 esac 15575else 15576 lt_prog_compiler_pic_GCJ= 15577 lt_prog_compiler_can_build_shared_GCJ=no 15578fi 15579 15580fi 15581case "$host_os" in 15582 # For platforms which do not support PIC, -DPIC is meaningless: 15583 *djgpp*) 15584 lt_prog_compiler_pic_GCJ= 15585 ;; 15586 *) 15587 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15588 ;; 15589esac 15590 15591echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15592echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15593if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15594 echo $ECHO_N "(cached) $ECHO_C" >&6 15595else 15596 lt_cv_prog_compiler_c_o_GCJ=no 15597 $rm -r conftest 2>/dev/null 15598 mkdir conftest 15599 cd conftest 15600 mkdir out 15601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15602 15603 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 15604 # that will create temporary files in the current directory regardless of 15605 # the output directory. Thus, making CWD read-only will cause this test 15606 # to fail, enabling locking or at least warning the user not to do parallel 15607 # builds. 15608 chmod -w . 15609 15610 lt_compiler_flag="-o out/conftest2.$ac_objext" 15611 # Insert the option either (1) after the last *FLAGS variable, or 15612 # (2) before a word containing "conftest.", or (3) at the end. 15613 # Note that $ac_compile itself does not contain backslashes and begins 15614 # with a dollar sign (not a hyphen), so the echo should work correctly. 15615 lt_compile=`echo "$ac_compile" | $SED \ 15616 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15618 -e 's:$: $lt_compiler_flag:'` 15619 (eval echo "\"\$as_me:15619: $lt_compile\"" >&5) 15620 (eval "$lt_compile" 2>out/conftest.err) 15621 ac_status=$? 15622 cat out/conftest.err >&5 15623 echo "$as_me:15623: \$? = $ac_status" >&5 15624 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15625 then 15626 # The compiler can only warn and ignore the option if not recognized 15627 # So say no if there are warnings 15628 if test ! -s out/conftest.err; then 15629 lt_cv_prog_compiler_c_o_GCJ=yes 15630 fi 15631 fi 15632 chmod u+w . 15633 $rm conftest* out/* 15634 rmdir out 15635 cd .. 15636 rmdir conftest 15637 $rm conftest* 15638 15639fi 15640echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15641echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15642 15643 15644hard_links="nottested" 15645if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15646 # do not overwrite the value of need_locks provided by the user 15647 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15648echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15649 hard_links=yes 15650 $rm conftest* 15651 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15652 touch conftest.a 15653 ln conftest.a conftest.b 2>&5 || hard_links=no 15654 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15655 echo "$as_me:$LINENO: result: $hard_links" >&5 15656echo "${ECHO_T}$hard_links" >&6 15657 if test "$hard_links" = no; then 15658 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15659echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15660 need_locks=warn 15661 fi 15662else 15663 need_locks=no 15664fi 15665 15666echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15667echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15668 15669 runpath_var= 15670 allow_undefined_flag_GCJ= 15671 enable_shared_with_static_runtimes_GCJ=no 15672 archive_cmds_GCJ= 15673 archive_expsym_cmds_GCJ= 15674 old_archive_From_new_cmds_GCJ= 15675 old_archive_from_expsyms_cmds_GCJ= 15676 export_dynamic_flag_spec_GCJ= 15677 whole_archive_flag_spec_GCJ= 15678 thread_safe_flag_spec_GCJ= 15679 hardcode_libdir_flag_spec_GCJ= 15680 hardcode_libdir_flag_spec_ld_GCJ= 15681 hardcode_libdir_separator_GCJ= 15682 hardcode_direct_GCJ=no 15683 hardcode_minus_L_GCJ=no 15684 hardcode_shlibpath_var_GCJ=unsupported 15685 link_all_deplibs_GCJ=unknown 15686 hardcode_automatic_GCJ=no 15687 module_cmds_GCJ= 15688 module_expsym_cmds_GCJ= 15689 always_export_symbols_GCJ=no 15690 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15691 # include_expsyms should be a list of space-separated symbols to be *always* 15692 # included in the symbol list 15693 include_expsyms_GCJ= 15694 # exclude_expsyms can be an extended regexp of symbols to exclude 15695 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15696 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15697 # as well as any symbol that contains `d'. 15698 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15699 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15700 # platforms (ab)use it in PIC code, but their linkers get confused if 15701 # the symbol is explicitly referenced. Since portable code cannot 15702 # rely on this symbol name, it's probably fine to never include it in 15703 # preloaded symbol tables. 15704 extract_expsyms_cmds= 15705 15706 case $host_os in 15707 cygwin* | mingw* | pw32*) 15708 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15709 # When not using gcc, we currently assume that we are using 15710 # Microsoft Visual C++. 15711 if test "$GCC" != yes; then 15712 with_gnu_ld=no 15713 fi 15714 ;; 15715 openbsd*) 15716 with_gnu_ld=no 15717 ;; 15718 esac 15719 15720 ld_shlibs_GCJ=yes 15721 if test "$with_gnu_ld" = yes; then 15722 # If archive_cmds runs LD, not CC, wlarc should be empty 15723 wlarc='${wl}' 15724 15725 # See if GNU ld supports shared libraries. 15726 case $host_os in 15727 aix3* | aix4* | aix5*) 15728 # On AIX/PPC, the GNU linker is very broken 15729 if test "$host_cpu" != ia64; then 15730 ld_shlibs_GCJ=no 15731 cat <<EOF 1>&2 15732 15733*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15734*** to be unable to reliably create shared libraries on AIX. 15735*** Therefore, libtool is disabling shared libraries support. If you 15736*** really care for shared libraries, you may want to modify your PATH 15737*** so that a non-GNU linker is found, and then restart. 15738 15739EOF 15740 fi 15741 ;; 15742 15743 amigaos*) 15744 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)' 15745 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15746 hardcode_minus_L_GCJ=yes 15747 15748 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15749 # that the semantics of dynamic libraries on AmigaOS, at least up 15750 # to version 4, is to share data among multiple programs linked 15751 # with the same dynamic library. Since this doesn't match the 15752 # behavior of shared libraries on other platforms, we can't use 15753 # them. 15754 ld_shlibs_GCJ=no 15755 ;; 15756 15757 beos*) 15758 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15759 allow_undefined_flag_GCJ=unsupported 15760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15761 # support --undefined. This deserves some investigation. FIXME 15762 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15763 else 15764 ld_shlibs_GCJ=no 15765 fi 15766 ;; 15767 15768 cygwin* | mingw* | pw32*) 15769 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15770 # as there is no search path for DLLs. 15771 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15772 allow_undefined_flag_GCJ=unsupported 15773 always_export_symbols_GCJ=no 15774 enable_shared_with_static_runtimes_GCJ=yes 15775 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15776 15777 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15778 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15779 # If the export-symbols file already is a .def file (1st line 15780 # is EXPORTS), use it as is; otherwise, prepend... 15781 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15782 cp $export_symbols $output_objdir/$soname.def; 15783 else 15784 echo EXPORTS > $output_objdir/$soname.def; 15785 cat $export_symbols >> $output_objdir/$soname.def; 15786 fi~ 15787 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15788 else 15789 ld_shlibs=no 15790 fi 15791 ;; 15792 15793 netbsd*) 15794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15795 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15796 wlarc= 15797 else 15798 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15799 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15800 fi 15801 ;; 15802 15803 solaris* | sysv5*) 15804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15805 ld_shlibs_GCJ=no 15806 cat <<EOF 1>&2 15807 15808*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15809*** create shared libraries on Solaris systems. Therefore, libtool 15810*** is disabling shared libraries support. We urge you to upgrade GNU 15811*** binutils to release 2.9.1 or newer. Another option is to modify 15812*** your PATH or compiler configuration so that the native linker is 15813*** used, and then restart. 15814 15815EOF 15816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15817 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15818 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15819 else 15820 ld_shlibs_GCJ=no 15821 fi 15822 ;; 15823 15824 sunos4*) 15825 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15826 wlarc= 15827 hardcode_direct_GCJ=yes 15828 hardcode_shlibpath_var_GCJ=no 15829 ;; 15830 15831 *) 15832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15833 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15834 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15835 else 15836 ld_shlibs_GCJ=no 15837 fi 15838 ;; 15839 esac 15840 15841 if test "$ld_shlibs_GCJ" = yes; then 15842 runpath_var=LD_RUN_PATH 15843 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15844 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15845 # ancient GNU ld didn't support --whole-archive et. al. 15846 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15847 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15848 else 15849 whole_archive_flag_spec_GCJ= 15850 fi 15851 fi 15852 else 15853 # PORTME fill in a description of your system's linker (not GNU ld) 15854 case $host_os in 15855 aix3*) 15856 allow_undefined_flag_GCJ=unsupported 15857 always_export_symbols_GCJ=yes 15858 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' 15859 # Note: this linker hardcodes the directories in LIBPATH if there 15860 # are no directories specified by -L. 15861 hardcode_minus_L_GCJ=yes 15862 if test "$GCC" = yes && test -z "$link_static_flag"; then 15863 # Neither direct hardcoding nor static linking is supported with a 15864 # broken collect2. 15865 hardcode_direct_GCJ=unsupported 15866 fi 15867 ;; 15868 15869 aix4* | aix5*) 15870 if test "$host_cpu" = ia64; then 15871 # On IA64, the linker does run time linking by default, so we don't 15872 # have to do anything special. 15873 aix_use_runtimelinking=no 15874 exp_sym_flag='-Bexport' 15875 no_entry_flag="" 15876 else 15877 # If we're using GNU nm, then we don't want the "-C" option. 15878 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15879 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15880 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' 15881 else 15882 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' 15883 fi 15884 aix_use_runtimelinking=no 15885 15886 # Test if we are trying to use run time linking or normal 15887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15888 # need to do runtime linking. 15889 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15890 for ld_flag in $LDFLAGS; do 15891 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15892 aix_use_runtimelinking=yes 15893 break 15894 fi 15895 done 15896 esac 15897 15898 exp_sym_flag='-bexport' 15899 no_entry_flag='-bnoentry' 15900 fi 15901 15902 # When large executables or shared objects are built, AIX ld can 15903 # have problems creating the table of contents. If linking a library 15904 # or program results in "error TOC overflow" add -mminimal-toc to 15905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15907 15908 archive_cmds_GCJ='' 15909 hardcode_direct_GCJ=yes 15910 hardcode_libdir_separator_GCJ=':' 15911 link_all_deplibs_GCJ=yes 15912 15913 if test "$GCC" = yes; then 15914 case $host_os in aix4.012|aix4.012.*) 15915 # We only want to do this on AIX 4.2 and lower, the check 15916 # below for broken collect2 doesn't work under 4.3+ 15917 collect2name=`${CC} -print-prog-name=collect2` 15918 if test -f "$collect2name" && \ 15919 strings "$collect2name" | grep resolve_lib_name >/dev/null 15920 then 15921 # We have reworked collect2 15922 hardcode_direct_GCJ=yes 15923 else 15924 # We have old collect2 15925 hardcode_direct_GCJ=unsupported 15926 # It fails to find uninstalled libraries when the uninstalled 15927 # path is not listed in the libpath. Setting hardcode_minus_L 15928 # to unsupported forces relinking 15929 hardcode_minus_L_GCJ=yes 15930 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15931 hardcode_libdir_separator_GCJ= 15932 fi 15933 esac 15934 shared_flag='-shared' 15935 else 15936 # not using gcc 15937 if test "$host_cpu" = ia64; then 15938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15939 # chokes on -Wl,-G. The following line is correct: 15940 shared_flag='-G' 15941 else 15942 if test "$aix_use_runtimelinking" = yes; then 15943 shared_flag='${wl}-G' 15944 else 15945 shared_flag='${wl}-bM:SRE' 15946 fi 15947 fi 15948 fi 15949 15950 # It seems that -bexpall does not export symbols beginning with 15951 # underscore (_), so it is better to generate a list of symbols to export. 15952 always_export_symbols_GCJ=yes 15953 if test "$aix_use_runtimelinking" = yes; then 15954 # Warning - without using the other runtime loading flags (-brtl), 15955 # -berok will link without error, but may produce a broken library. 15956 allow_undefined_flag_GCJ='-berok' 15957 # Determine the default libpath from the value encoded in an empty executable. 15958 cat >conftest.$ac_ext <<_ACEOF 15959#line $LINENO "configure" 15960/* confdefs.h. */ 15961_ACEOF 15962cat confdefs.h >>conftest.$ac_ext 15963cat >>conftest.$ac_ext <<_ACEOF 15964/* end confdefs.h. */ 15965 15966int 15967main () 15968{ 15969 15970 ; 15971 return 0; 15972} 15973_ACEOF 15974rm -f conftest.$ac_objext conftest$ac_exeext 15975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15976 (eval $ac_link) 2>&5 15977 ac_status=$? 15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15979 (exit $ac_status); } && 15980 { ac_try='test -s conftest$ac_exeext' 15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15982 (eval $ac_try) 2>&5 15983 ac_status=$? 15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15985 (exit $ac_status); }; }; then 15986 15987aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15988}'` 15989# Check for a 64-bit object if we didn't find anything. 15990if 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; } 15991}'`; fi 15992else 15993 echo "$as_me: failed program was:" >&5 15994sed 's/^/| /' conftest.$ac_ext >&5 15995 15996fi 15997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15998if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15999 16000 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16001 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16002 else 16003 if test "$host_cpu" = ia64; then 16004 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16005 allow_undefined_flag_GCJ="-z nodefs" 16006 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 16007 else 16008 # Determine the default libpath from the value encoded in an empty executable. 16009 cat >conftest.$ac_ext <<_ACEOF 16010#line $LINENO "configure" 16011/* confdefs.h. */ 16012_ACEOF 16013cat confdefs.h >>conftest.$ac_ext 16014cat >>conftest.$ac_ext <<_ACEOF 16015/* end confdefs.h. */ 16016 16017int 16018main () 16019{ 16020 16021 ; 16022 return 0; 16023} 16024_ACEOF 16025rm -f conftest.$ac_objext conftest$ac_exeext 16026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16027 (eval $ac_link) 2>&5 16028 ac_status=$? 16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16030 (exit $ac_status); } && 16031 { ac_try='test -s conftest$ac_exeext' 16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16033 (eval $ac_try) 2>&5 16034 ac_status=$? 16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16036 (exit $ac_status); }; }; then 16037 16038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16039}'` 16040# Check for a 64-bit object if we didn't find anything. 16041if 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; } 16042}'`; fi 16043else 16044 echo "$as_me: failed program was:" >&5 16045sed 's/^/| /' conftest.$ac_ext >&5 16046 16047fi 16048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16049if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16050 16051 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16052 # Warning - without using the other run time loading flags, 16053 # -berok will link without error, but may produce a broken library. 16054 no_undefined_flag_GCJ=' ${wl}-bernotok' 16055 allow_undefined_flag_GCJ=' ${wl}-berok' 16056 # -bexpall does not export symbols beginning with underscore (_) 16057 always_export_symbols_GCJ=yes 16058 # Exported symbols can be pulled into shared objects from archives 16059 whole_archive_flag_spec_GCJ=' ' 16060 archive_cmds_need_lc_GCJ=yes 16061 # This is similar to how AIX traditionally builds it's shared libraries. 16062 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16063 fi 16064 fi 16065 ;; 16066 16067 amigaos*) 16068 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)' 16069 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16070 hardcode_minus_L_GCJ=yes 16071 # see comment about different semantics on the GNU ld section 16072 ld_shlibs_GCJ=no 16073 ;; 16074 16075 bsdi4*) 16076 export_dynamic_flag_spec_GCJ=-rdynamic 16077 ;; 16078 16079 cygwin* | mingw* | pw32*) 16080 # When not using gcc, we currently assume that we are using 16081 # Microsoft Visual C++. 16082 # hardcode_libdir_flag_spec is actually meaningless, as there is 16083 # no search path for DLLs. 16084 hardcode_libdir_flag_spec_GCJ=' ' 16085 allow_undefined_flag_GCJ=unsupported 16086 # Tell ltmain to make .lib files, not .a files. 16087 libext=lib 16088 # Tell ltmain to make .dll files, not .so files. 16089 shrext=".dll" 16090 # FIXME: Setting linknames here is a bad hack. 16091 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16092 # The linker will automatically build a .lib file if we build a DLL. 16093 old_archive_From_new_cmds_GCJ='true' 16094 # FIXME: Should let the user specify the lib program. 16095 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16096 fix_srcfile_path='`cygpath -w "$srcfile"`' 16097 enable_shared_with_static_runtimes_GCJ=yes 16098 ;; 16099 16100 darwin* | rhapsody*) 16101 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 16102 archive_cmds_need_lc_GCJ=no 16103 case "$host_os" in 16104 rhapsody* | darwin1.[012]) 16105 allow_undefined_flag_GCJ='-undefined suppress' 16106 ;; 16107 *) # Darwin 1.3 on 16108 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16109 ;; 16110 esac 16111 # FIXME: Relying on posixy $() will cause problems for 16112 # cross-compilation, but unfortunately the echo tests do not 16113 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 16114 # `"' quotes if we put them in here... so don't! 16115 lt_int_apple_cc_single_mod=no 16116 output_verbose_link_cmd='echo' 16117 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 16118 lt_int_apple_cc_single_mod=yes 16119 fi 16120 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16121 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16122 else 16123 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' 16124 fi 16125 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 16126 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16127 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16128 archive_expsym_cmds_GCJ='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}' 16129 else 16130 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 16131 fi 16132 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16133 hardcode_direct_GCJ=no 16134 hardcode_automatic_GCJ=yes 16135 hardcode_shlibpath_var_GCJ=unsupported 16136 whole_archive_flag_spec_GCJ='-all_load $convenience' 16137 link_all_deplibs_GCJ=yes 16138 fi 16139 ;; 16140 16141 dgux*) 16142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16143 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16144 hardcode_shlibpath_var_GCJ=no 16145 ;; 16146 16147 freebsd1*) 16148 ld_shlibs_GCJ=no 16149 ;; 16150 16151 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16152 # support. Future versions do this automatically, but an explicit c++rt0.o 16153 # does not break anything, and helps significantly (at the cost of a little 16154 # extra space). 16155 freebsd2.2*) 16156 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16157 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16158 hardcode_direct_GCJ=yes 16159 hardcode_shlibpath_var_GCJ=no 16160 ;; 16161 16162 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16163 freebsd2*) 16164 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16165 hardcode_direct_GCJ=yes 16166 hardcode_minus_L_GCJ=yes 16167 hardcode_shlibpath_var_GCJ=no 16168 ;; 16169 16170 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16171 freebsd*) 16172 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16173 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16174 hardcode_direct_GCJ=yes 16175 hardcode_shlibpath_var_GCJ=no 16176 ;; 16177 16178 hpux9*) 16179 if test "$GCC" = yes; then 16180 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' 16181 else 16182 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' 16183 fi 16184 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16185 hardcode_libdir_separator_GCJ=: 16186 hardcode_direct_GCJ=yes 16187 16188 # hardcode_minus_L: Not really in the search PATH, 16189 # but as the default location of the library. 16190 hardcode_minus_L_GCJ=yes 16191 export_dynamic_flag_spec_GCJ='${wl}-E' 16192 ;; 16193 16194 hpux10* | hpux11*) 16195 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16196 case "$host_cpu" in 16197 hppa*64*|ia64*) 16198 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16199 ;; 16200 *) 16201 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16202 ;; 16203 esac 16204 else 16205 case "$host_cpu" in 16206 hppa*64*|ia64*) 16207 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16208 ;; 16209 *) 16210 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16211 ;; 16212 esac 16213 fi 16214 if test "$with_gnu_ld" = no; then 16215 case "$host_cpu" in 16216 hppa*64*) 16217 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16218 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16219 hardcode_libdir_separator_GCJ=: 16220 hardcode_direct_GCJ=no 16221 hardcode_shlibpath_var_GCJ=no 16222 ;; 16223 ia64*) 16224 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16225 hardcode_direct_GCJ=no 16226 hardcode_shlibpath_var_GCJ=no 16227 16228 # hardcode_minus_L: Not really in the search PATH, 16229 # but as the default location of the library. 16230 hardcode_minus_L_GCJ=yes 16231 ;; 16232 *) 16233 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16234 hardcode_libdir_separator_GCJ=: 16235 hardcode_direct_GCJ=yes 16236 export_dynamic_flag_spec_GCJ='${wl}-E' 16237 16238 # hardcode_minus_L: Not really in the search PATH, 16239 # but as the default location of the library. 16240 hardcode_minus_L_GCJ=yes 16241 ;; 16242 esac 16243 fi 16244 ;; 16245 16246 irix5* | irix6* | nonstopux*) 16247 if test "$GCC" = yes; then 16248 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' 16249 else 16250 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' 16251 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16252 fi 16253 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16254 hardcode_libdir_separator_GCJ=: 16255 link_all_deplibs_GCJ=yes 16256 ;; 16257 16258 netbsd*) 16259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16260 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16261 else 16262 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16263 fi 16264 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16265 hardcode_direct_GCJ=yes 16266 hardcode_shlibpath_var_GCJ=no 16267 ;; 16268 16269 newsos6) 16270 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16271 hardcode_direct_GCJ=yes 16272 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16273 hardcode_libdir_separator_GCJ=: 16274 hardcode_shlibpath_var_GCJ=no 16275 ;; 16276 16277 openbsd*) 16278 hardcode_direct_GCJ=yes 16279 hardcode_shlibpath_var_GCJ=no 16280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16281 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16282 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16283 export_dynamic_flag_spec_GCJ='${wl}-E' 16284 else 16285 case $host_os in 16286 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16287 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16288 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16289 ;; 16290 *) 16291 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16292 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16293 ;; 16294 esac 16295 fi 16296 ;; 16297 16298 os2*) 16299 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16300 hardcode_minus_L_GCJ=yes 16301 allow_undefined_flag_GCJ=unsupported 16302 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' 16303 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16304 ;; 16305 16306 osf3*) 16307 if test "$GCC" = yes; then 16308 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16309 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' 16310 else 16311 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16312 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' 16313 fi 16314 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16315 hardcode_libdir_separator_GCJ=: 16316 ;; 16317 16318 osf4* | osf5*) # as osf3* with the addition of -msym flag 16319 if test "$GCC" = yes; then 16320 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16321 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' 16322 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16323 else 16324 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16325 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' 16326 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~ 16327 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 16328 16329 # Both c and cxx compiler support -rpath directly 16330 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16331 fi 16332 hardcode_libdir_separator_GCJ=: 16333 ;; 16334 16335 sco3.2v5*) 16336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16337 hardcode_shlibpath_var_GCJ=no 16338 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16339 runpath_var=LD_RUN_PATH 16340 hardcode_runpath_var=yes 16341 ;; 16342 16343 solaris*) 16344 no_undefined_flag_GCJ=' -z text' 16345 if test "$GCC" = yes; then 16346 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16347 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16348 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16349 else 16350 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16351 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16352 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16353 fi 16354 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16355 hardcode_shlibpath_var_GCJ=no 16356 case $host_os in 16357 solaris2.[0-5] | solaris2.[0-5].*) ;; 16358 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16359 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16360 esac 16361 link_all_deplibs_GCJ=yes 16362 ;; 16363 16364 sunos4*) 16365 if test "x$host_vendor" = xsequent; then 16366 # Use $CC to link under sequent, because it throws in some extra .o 16367 # files that make .init and .fini sections work. 16368 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16369 else 16370 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16371 fi 16372 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16373 hardcode_direct_GCJ=yes 16374 hardcode_minus_L_GCJ=yes 16375 hardcode_shlibpath_var_GCJ=no 16376 ;; 16377 16378 sysv4) 16379 case $host_vendor in 16380 sni) 16381 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16382 hardcode_direct_GCJ=yes # is this really true??? 16383 ;; 16384 siemens) 16385 ## LD is ld it makes a PLAMLIB 16386 ## CC just makes a GrossModule. 16387 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16388 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16389 hardcode_direct_GCJ=no 16390 ;; 16391 motorola) 16392 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16393 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16394 ;; 16395 esac 16396 runpath_var='LD_RUN_PATH' 16397 hardcode_shlibpath_var_GCJ=no 16398 ;; 16399 16400 sysv4.3*) 16401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16402 hardcode_shlibpath_var_GCJ=no 16403 export_dynamic_flag_spec_GCJ='-Bexport' 16404 ;; 16405 16406 sysv4*MP*) 16407 if test -d /usr/nec; then 16408 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16409 hardcode_shlibpath_var_GCJ=no 16410 runpath_var=LD_RUN_PATH 16411 hardcode_runpath_var=yes 16412 ld_shlibs_GCJ=yes 16413 fi 16414 ;; 16415 16416 sysv4.2uw2*) 16417 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16418 hardcode_direct_GCJ=yes 16419 hardcode_minus_L_GCJ=no 16420 hardcode_shlibpath_var_GCJ=no 16421 hardcode_runpath_var=yes 16422 runpath_var=LD_RUN_PATH 16423 ;; 16424 16425 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16426 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16427 if test "$GCC" = yes; then 16428 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16429 else 16430 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16431 fi 16432 runpath_var='LD_RUN_PATH' 16433 hardcode_shlibpath_var_GCJ=no 16434 ;; 16435 16436 sysv5*) 16437 no_undefined_flag_GCJ=' -z text' 16438 # $CC -shared without GNU ld will not create a library from C++ 16439 # object files and a static libstdc++, better avoid it by now 16440 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16441 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16442 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16443 hardcode_libdir_flag_spec_GCJ= 16444 hardcode_shlibpath_var_GCJ=no 16445 runpath_var='LD_RUN_PATH' 16446 ;; 16447 16448 uts4*) 16449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16450 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16451 hardcode_shlibpath_var_GCJ=no 16452 ;; 16453 16454 *) 16455 ld_shlibs_GCJ=no 16456 ;; 16457 esac 16458 fi 16459 16460echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16461echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16462test "$ld_shlibs_GCJ" = no && can_build_shared=no 16463 16464variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16465if test "$GCC" = yes; then 16466 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16467fi 16468 16469# 16470# Do we need to explicitly link libc? 16471# 16472case "x$archive_cmds_need_lc_GCJ" in 16473x|xyes) 16474 # Assume -lc should be added 16475 archive_cmds_need_lc_GCJ=yes 16476 16477 if test "$enable_shared" = yes && test "$GCC" = yes; then 16478 case $archive_cmds_GCJ in 16479 *'~'*) 16480 # FIXME: we may have to deal with multi-command sequences. 16481 ;; 16482 '$CC '*) 16483 # Test whether the compiler implicitly links with -lc since on some 16484 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16485 # to ld, don't add -lc before -lgcc. 16486 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16487echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16488 $rm conftest* 16489 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16490 16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16492 (eval $ac_compile) 2>&5 16493 ac_status=$? 16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16495 (exit $ac_status); } 2>conftest.err; then 16496 soname=conftest 16497 lib=conftest 16498 libobjs=conftest.$ac_objext 16499 deplibs= 16500 wl=$lt_prog_compiler_wl_GCJ 16501 compiler_flags=-v 16502 linker_flags=-v 16503 verstring= 16504 output_objdir=. 16505 libname=conftest 16506 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16507 allow_undefined_flag_GCJ= 16508 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16509 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16510 ac_status=$? 16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16512 (exit $ac_status); } 16513 then 16514 archive_cmds_need_lc_GCJ=no 16515 else 16516 archive_cmds_need_lc_GCJ=yes 16517 fi 16518 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16519 else 16520 cat conftest.err 1>&5 16521 fi 16522 $rm conftest* 16523 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16524echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16525 ;; 16526 esac 16527 fi 16528 ;; 16529esac 16530 16531echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16532echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16533hardcode_action_GCJ= 16534if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 16535 test -n "$runpath_var GCJ" || \ 16536 test "X$hardcode_automatic_GCJ"="Xyes" ; then 16537 16538 # We can hardcode non-existant directories. 16539 if test "$hardcode_direct_GCJ" != no && 16540 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16541 # have to relink, otherwise we might link with an installed library 16542 # when we should be linking with a yet-to-be-installed one 16543 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 16544 test "$hardcode_minus_L_GCJ" != no; then 16545 # Linking always hardcodes the temporary library directory. 16546 hardcode_action_GCJ=relink 16547 else 16548 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16549 hardcode_action_GCJ=immediate 16550 fi 16551else 16552 # We cannot hardcode anything, or else we can only hardcode existing 16553 # directories. 16554 hardcode_action_GCJ=unsupported 16555fi 16556echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 16557echo "${ECHO_T}$hardcode_action_GCJ" >&6 16558 16559if test "$hardcode_action_GCJ" = relink; then 16560 # Fast installation is not supported 16561 enable_fast_install=no 16562elif test "$shlibpath_overrides_runpath" = yes || 16563 test "$enable_shared" = no; then 16564 # Fast installation is not necessary 16565 enable_fast_install=needless 16566fi 16567 16568striplib= 16569old_striplib= 16570echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 16571echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 16572if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 16573 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16574 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16575 echo "$as_me:$LINENO: result: yes" >&5 16576echo "${ECHO_T}yes" >&6 16577else 16578# FIXME - insert some real tests, host_os isn't really good enough 16579 case $host_os in 16580 darwin*) 16581 if test -n "$STRIP" ; then 16582 striplib="$STRIP -x" 16583 echo "$as_me:$LINENO: result: yes" >&5 16584echo "${ECHO_T}yes" >&6 16585 else 16586 echo "$as_me:$LINENO: result: no" >&5 16587echo "${ECHO_T}no" >&6 16588fi 16589 ;; 16590 *) 16591 echo "$as_me:$LINENO: result: no" >&5 16592echo "${ECHO_T}no" >&6 16593 ;; 16594 esac 16595fi 16596 16597echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16598echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16599library_names_spec= 16600libname_spec='lib$name' 16601soname_spec= 16602shrext=".so" 16603postinstall_cmds= 16604postuninstall_cmds= 16605finish_cmds= 16606finish_eval= 16607shlibpath_var= 16608shlibpath_overrides_runpath=unknown 16609version_type=none 16610dynamic_linker="$host_os ld.so" 16611sys_lib_dlsearch_path_spec="/lib /usr/lib" 16612if test "$GCC" = yes; then 16613 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16614 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16615 # if the path contains ";" then we assume it to be the separator 16616 # otherwise default to the standard path separator (i.e. ":") - it is 16617 # assumed that no part of a normal pathname contains ";" but that should 16618 # okay in the real world where ";" in dirpaths is itself problematic. 16619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16620 else 16621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16622 fi 16623else 16624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16625fi 16626need_lib_prefix=unknown 16627hardcode_into_libs=no 16628 16629# when you set need_version to no, make sure it does not cause -set_version 16630# flags to be left without arguments 16631need_version=unknown 16632 16633case $host_os in 16634aix3*) 16635 version_type=linux 16636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16637 shlibpath_var=LIBPATH 16638 16639 # AIX 3 has no versioning support, so we append a major version to the name. 16640 soname_spec='${libname}${release}${shared_ext}$major' 16641 ;; 16642 16643aix4* | aix5*) 16644 version_type=linux 16645 need_lib_prefix=no 16646 need_version=no 16647 hardcode_into_libs=yes 16648 if test "$host_cpu" = ia64; then 16649 # AIX 5 supports IA64 16650 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16651 shlibpath_var=LD_LIBRARY_PATH 16652 else 16653 # With GCC up to 2.95.x, collect2 would create an import file 16654 # for dependence libraries. The import file would start with 16655 # the line `#! .'. This would cause the generated library to 16656 # depend on `.', always an invalid library. This was fixed in 16657 # development snapshots of GCC prior to 3.0. 16658 case $host_os in 16659 aix4 | aix4.[01] | aix4.[01].*) 16660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16661 echo ' yes ' 16662 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16663 : 16664 else 16665 can_build_shared=no 16666 fi 16667 ;; 16668 esac 16669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16670 # soname into executable. Probably we can add versioning support to 16671 # collect2, so additional links can be useful in future. 16672 if test "$aix_use_runtimelinking" = yes; then 16673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16674 # instead of lib<name>.a to let people know that these are not 16675 # typical AIX shared libraries. 16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16677 else 16678 # We preserve .a as extension for shared libraries through AIX4.2 16679 # and later when we are not doing run time linking. 16680 library_names_spec='${libname}${release}.a $libname.a' 16681 soname_spec='${libname}${release}${shared_ext}$major' 16682 fi 16683 shlibpath_var=LIBPATH 16684 fi 16685 ;; 16686 16687amigaos*) 16688 library_names_spec='$libname.ixlibrary $libname.a' 16689 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16690 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' 16691 ;; 16692 16693beos*) 16694 library_names_spec='${libname}${shared_ext}' 16695 dynamic_linker="$host_os ld.so" 16696 shlibpath_var=LIBRARY_PATH 16697 ;; 16698 16699bsdi4*) 16700 version_type=linux 16701 need_version=no 16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16703 soname_spec='${libname}${release}${shared_ext}$major' 16704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16705 shlibpath_var=LD_LIBRARY_PATH 16706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16708 # the default ld.so.conf also contains /usr/contrib/lib and 16709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16710 # libtool to hard-code these into programs 16711 ;; 16712 16713cygwin* | mingw* | pw32*) 16714 version_type=windows 16715 shrext=".dll" 16716 need_version=no 16717 need_lib_prefix=no 16718 16719 case $GCC,$host_os in 16720 yes,cygwin* | yes,mingw* | yes,pw32*) 16721 library_names_spec='$libname.dll.a' 16722 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16723 postinstall_cmds='base_file=`basename \${file}`~ 16724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16725 dldir=$destdir/`dirname \$dlpath`~ 16726 test -d \$dldir || mkdir -p \$dldir~ 16727 $install_prog $dir/$dlname \$dldir/$dlname' 16728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16729 dlpath=$dir/\$dldll~ 16730 $rm \$dlpath' 16731 shlibpath_overrides_runpath=yes 16732 16733 case $host_os in 16734 cygwin*) 16735 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16737 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 16738 ;; 16739 mingw*) 16740 # MinGW DLLs use traditional 'lib' prefix 16741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16742 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16743 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16744 # It is most probably a Windows format PATH printed by 16745 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16746 # path with ; separators, and with drive letters. We can handle the 16747 # drive letters (cygwin fileutils understands them), so leave them, 16748 # especially as we might pass files found there to a mingw objdump, 16749 # which wouldn't understand a cygwinified path. Ahh. 16750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16751 else 16752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16753 fi 16754 ;; 16755 pw32*) 16756 # pw32 DLLs use 'pw' prefix rather than 'lib' 16757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16758 ;; 16759 esac 16760 ;; 16761 16762 *) 16763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16764 ;; 16765 esac 16766 dynamic_linker='Win32 ld.exe' 16767 # FIXME: first we should search . and the directory the executable is in 16768 shlibpath_var=PATH 16769 ;; 16770 16771darwin* | rhapsody*) 16772 dynamic_linker="$host_os dyld" 16773 version_type=darwin 16774 need_lib_prefix=no 16775 need_version=no 16776 # FIXME: Relying on posixy $() will cause problems for 16777 # cross-compilation, but unfortunately the echo tests do not 16778 # yet detect zsh echo's removal of \ escapes. 16779 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16780 soname_spec='${libname}${release}${major}$shared_ext' 16781 shlibpath_overrides_runpath=yes 16782 shlibpath_var=DYLD_LIBRARY_PATH 16783 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 16784 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16785 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 16786 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"` 16787 fi 16788 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16789 ;; 16790 16791dgux*) 16792 version_type=linux 16793 need_lib_prefix=no 16794 need_version=no 16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16796 soname_spec='${libname}${release}${shared_ext}$major' 16797 shlibpath_var=LD_LIBRARY_PATH 16798 ;; 16799 16800freebsd1*) 16801 dynamic_linker=no 16802 ;; 16803 16804freebsd*) 16805 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16806 version_type=freebsd-$objformat 16807 case $version_type in 16808 freebsd-elf*) 16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16810 need_version=no 16811 need_lib_prefix=no 16812 ;; 16813 freebsd-*) 16814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16815 need_version=yes 16816 ;; 16817 esac 16818 shlibpath_var=LD_LIBRARY_PATH 16819 case $host_os in 16820 freebsd2*) 16821 shlibpath_overrides_runpath=yes 16822 ;; 16823 freebsd3.01* | freebsdelf3.01*) 16824 shlibpath_overrides_runpath=yes 16825 hardcode_into_libs=yes 16826 ;; 16827 *) # from 3.2 on 16828 shlibpath_overrides_runpath=no 16829 hardcode_into_libs=yes 16830 ;; 16831 esac 16832 ;; 16833 16834gnu*) 16835 version_type=linux 16836 need_lib_prefix=no 16837 need_version=no 16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16839 soname_spec='${libname}${release}${shared_ext}$major' 16840 shlibpath_var=LD_LIBRARY_PATH 16841 hardcode_into_libs=yes 16842 ;; 16843 16844hpux9* | hpux10* | hpux11*) 16845 # Give a soname corresponding to the major version so that dld.sl refuses to 16846 # link against other versions. 16847 version_type=sunos 16848 need_lib_prefix=no 16849 need_version=no 16850 case "$host_cpu" in 16851 ia64*) 16852 shrext='.so' 16853 hardcode_into_libs=yes 16854 dynamic_linker="$host_os dld.so" 16855 shlibpath_var=LD_LIBRARY_PATH 16856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16858 soname_spec='${libname}${release}${shared_ext}$major' 16859 if test "X$HPUX_IA64_MODE" = X32; then 16860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16861 else 16862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16863 fi 16864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16865 ;; 16866 hppa*64*) 16867 shrext='.sl' 16868 hardcode_into_libs=yes 16869 dynamic_linker="$host_os dld.sl" 16870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16873 soname_spec='${libname}${release}${shared_ext}$major' 16874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16876 ;; 16877 *) 16878 shrext='.sl' 16879 dynamic_linker="$host_os dld.sl" 16880 shlibpath_var=SHLIB_PATH 16881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16883 soname_spec='${libname}${release}${shared_ext}$major' 16884 ;; 16885 esac 16886 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16887 postinstall_cmds='chmod 555 $lib' 16888 ;; 16889 16890irix5* | irix6* | nonstopux*) 16891 case $host_os in 16892 nonstopux*) version_type=nonstopux ;; 16893 *) 16894 if test "$lt_cv_prog_gnu_ld" = yes; then 16895 version_type=linux 16896 else 16897 version_type=irix 16898 fi ;; 16899 esac 16900 need_lib_prefix=no 16901 need_version=no 16902 soname_spec='${libname}${release}${shared_ext}$major' 16903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16904 case $host_os in 16905 irix5* | nonstopux*) 16906 libsuff= shlibsuff= 16907 ;; 16908 *) 16909 case $LD in # libtool.m4 will add one of these switches to LD 16910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16911 libsuff= shlibsuff= libmagic=32-bit;; 16912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16913 libsuff=32 shlibsuff=N32 libmagic=N32;; 16914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16915 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16916 *) libsuff= shlibsuff= libmagic=never-match;; 16917 esac 16918 ;; 16919 esac 16920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16921 shlibpath_overrides_runpath=no 16922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16924 hardcode_into_libs=yes 16925 ;; 16926 16927# No shared lib support for Linux oldld, aout, or coff. 16928linux*oldld* | linux*aout* | linux*coff*) 16929 dynamic_linker=no 16930 ;; 16931 16932# This must be Linux ELF. 16933linux*) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16940 shlibpath_var=LD_LIBRARY_PATH 16941 shlibpath_overrides_runpath=no 16942 # This implies no fast_install, which is unacceptable. 16943 # Some rework will be needed to allow for fast_install 16944 # before this can be enabled. 16945 hardcode_into_libs=yes 16946 16947 # We used to test for /lib/ld.so.1 and disable shared libraries on 16948 # powerpc, because MkLinux only supported shared libraries with the 16949 # GNU dynamic linker. Since this was broken with cross compilers, 16950 # most powerpc-linux boxes support dynamic linking these days and 16951 # people can always --disable-shared, the test was removed, and we 16952 # assume the GNU/Linux dynamic linker is in use. 16953 dynamic_linker='GNU/Linux ld.so' 16954 ;; 16955 16956netbsd*) 16957 version_type=sunos 16958 need_lib_prefix=no 16959 need_version=no 16960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16963 dynamic_linker='NetBSD (a.out) ld.so' 16964 else 16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 16966 soname_spec='${libname}${release}${shared_ext}$major' 16967 dynamic_linker='NetBSD ld.elf_so' 16968 fi 16969 shlibpath_var=LD_LIBRARY_PATH 16970 shlibpath_overrides_runpath=yes 16971 hardcode_into_libs=yes 16972 ;; 16973 16974newsos6) 16975 version_type=linux 16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16977 shlibpath_var=LD_LIBRARY_PATH 16978 shlibpath_overrides_runpath=yes 16979 ;; 16980 16981nto-qnx) 16982 version_type=linux 16983 need_lib_prefix=no 16984 need_version=no 16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16986 soname_spec='${libname}${release}${shared_ext}$major' 16987 shlibpath_var=LD_LIBRARY_PATH 16988 shlibpath_overrides_runpath=yes 16989 ;; 16990 16991openbsd*) 16992 version_type=sunos 16993 need_lib_prefix=no 16994 need_version=no 16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16997 shlibpath_var=LD_LIBRARY_PATH 16998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16999 case $host_os in 17000 openbsd2.[89] | openbsd2.[89].*) 17001 shlibpath_overrides_runpath=no 17002 ;; 17003 *) 17004 shlibpath_overrides_runpath=yes 17005 ;; 17006 esac 17007 else 17008 shlibpath_overrides_runpath=yes 17009 fi 17010 ;; 17011 17012os2*) 17013 libname_spec='$name' 17014 shrext=".dll" 17015 need_lib_prefix=no 17016 library_names_spec='$libname${shared_ext} $libname.a' 17017 dynamic_linker='OS/2 ld.exe' 17018 shlibpath_var=LIBPATH 17019 ;; 17020 17021osf3* | osf4* | osf5*) 17022 version_type=osf 17023 need_lib_prefix=no 17024 need_version=no 17025 soname_spec='${libname}${release}${shared_ext}$major' 17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17027 shlibpath_var=LD_LIBRARY_PATH 17028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17029 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17030 ;; 17031 17032sco3.2v5*) 17033 version_type=osf 17034 soname_spec='${libname}${release}${shared_ext}$major' 17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17036 shlibpath_var=LD_LIBRARY_PATH 17037 ;; 17038 17039solaris*) 17040 version_type=linux 17041 need_lib_prefix=no 17042 need_version=no 17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17044 soname_spec='${libname}${release}${shared_ext}$major' 17045 shlibpath_var=LD_LIBRARY_PATH 17046 shlibpath_overrides_runpath=yes 17047 hardcode_into_libs=yes 17048 # ldd complains unless libraries are executable 17049 postinstall_cmds='chmod +x $lib' 17050 ;; 17051 17052sunos4*) 17053 version_type=sunos 17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17056 shlibpath_var=LD_LIBRARY_PATH 17057 shlibpath_overrides_runpath=yes 17058 if test "$with_gnu_ld" = yes; then 17059 need_lib_prefix=no 17060 fi 17061 need_version=yes 17062 ;; 17063 17064sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17065 version_type=linux 17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17067 soname_spec='${libname}${release}${shared_ext}$major' 17068 shlibpath_var=LD_LIBRARY_PATH 17069 case $host_vendor in 17070 sni) 17071 shlibpath_overrides_runpath=no 17072 need_lib_prefix=no 17073 export_dynamic_flag_spec='${wl}-Blargedynsym' 17074 runpath_var=LD_RUN_PATH 17075 ;; 17076 siemens) 17077 need_lib_prefix=no 17078 ;; 17079 motorola) 17080 need_lib_prefix=no 17081 need_version=no 17082 shlibpath_overrides_runpath=no 17083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17084 ;; 17085 esac 17086 ;; 17087 17088sysv4*MP*) 17089 if test -d /usr/nec ;then 17090 version_type=linux 17091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17092 soname_spec='$libname${shared_ext}.$major' 17093 shlibpath_var=LD_LIBRARY_PATH 17094 fi 17095 ;; 17096 17097uts4*) 17098 version_type=linux 17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17100 soname_spec='${libname}${release}${shared_ext}$major' 17101 shlibpath_var=LD_LIBRARY_PATH 17102 ;; 17103 17104*) 17105 dynamic_linker=no 17106 ;; 17107esac 17108echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17109echo "${ECHO_T}$dynamic_linker" >&6 17110test "$dynamic_linker" = no && can_build_shared=no 17111 17112if test "x$enable_dlopen" != xyes; then 17113 enable_dlopen=unknown 17114 enable_dlopen_self=unknown 17115 enable_dlopen_self_static=unknown 17116else 17117 lt_cv_dlopen=no 17118 lt_cv_dlopen_libs= 17119 17120 case $host_os in 17121 beos*) 17122 lt_cv_dlopen="load_add_on" 17123 lt_cv_dlopen_libs= 17124 lt_cv_dlopen_self=yes 17125 ;; 17126 17127 mingw* | pw32*) 17128 lt_cv_dlopen="LoadLibrary" 17129 lt_cv_dlopen_libs= 17130 ;; 17131 17132 cygwin*) 17133 lt_cv_dlopen="dlopen" 17134 lt_cv_dlopen_libs= 17135 ;; 17136 17137 darwin*) 17138 # if libdl is installed we need to link against it 17139 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17140echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17141if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17142 echo $ECHO_N "(cached) $ECHO_C" >&6 17143else 17144 ac_check_lib_save_LIBS=$LIBS 17145LIBS="-ldl $LIBS" 17146cat >conftest.$ac_ext <<_ACEOF 17147#line $LINENO "configure" 17148/* confdefs.h. */ 17149_ACEOF 17150cat confdefs.h >>conftest.$ac_ext 17151cat >>conftest.$ac_ext <<_ACEOF 17152/* end confdefs.h. */ 17153 17154/* Override any gcc2 internal prototype to avoid an error. */ 17155#ifdef __cplusplus 17156extern "C" 17157#endif 17158/* We use char because int might match the return type of a gcc2 17159 builtin and then its argument prototype would still apply. */ 17160char dlopen (); 17161int 17162main () 17163{ 17164dlopen (); 17165 ; 17166 return 0; 17167} 17168_ACEOF 17169rm -f conftest.$ac_objext conftest$ac_exeext 17170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17171 (eval $ac_link) 2>&5 17172 ac_status=$? 17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17174 (exit $ac_status); } && 17175 { ac_try='test -s conftest$ac_exeext' 17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17177 (eval $ac_try) 2>&5 17178 ac_status=$? 17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17180 (exit $ac_status); }; }; then 17181 ac_cv_lib_dl_dlopen=yes 17182else 17183 echo "$as_me: failed program was:" >&5 17184sed 's/^/| /' conftest.$ac_ext >&5 17185 17186ac_cv_lib_dl_dlopen=no 17187fi 17188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17189LIBS=$ac_check_lib_save_LIBS 17190fi 17191echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17192echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17193if test $ac_cv_lib_dl_dlopen = yes; then 17194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17195else 17196 17197 lt_cv_dlopen="dyld" 17198 lt_cv_dlopen_libs= 17199 lt_cv_dlopen_self=yes 17200 17201fi 17202 17203 ;; 17204 17205 *) 17206 echo "$as_me:$LINENO: checking for shl_load" >&5 17207echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17208if test "${ac_cv_func_shl_load+set}" = set; then 17209 echo $ECHO_N "(cached) $ECHO_C" >&6 17210else 17211 cat >conftest.$ac_ext <<_ACEOF 17212#line $LINENO "configure" 17213/* confdefs.h. */ 17214_ACEOF 17215cat confdefs.h >>conftest.$ac_ext 17216cat >>conftest.$ac_ext <<_ACEOF 17217/* end confdefs.h. */ 17218/* System header to define __stub macros and hopefully few prototypes, 17219 which can conflict with char shl_load (); below. 17220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17221 <limits.h> exists even on freestanding compilers. */ 17222#ifdef __STDC__ 17223# include <limits.h> 17224#else 17225# include <assert.h> 17226#endif 17227/* Override any gcc2 internal prototype to avoid an error. */ 17228#ifdef __cplusplus 17229extern "C" 17230{ 17231#endif 17232/* We use char because int might match the return type of a gcc2 17233 builtin and then its argument prototype would still apply. */ 17234char shl_load (); 17235/* The GNU C library defines this for functions which it implements 17236 to always fail with ENOSYS. Some functions are actually named 17237 something starting with __ and the normal name is an alias. */ 17238#if defined (__stub_shl_load) || defined (__stub___shl_load) 17239choke me 17240#else 17241char (*f) () = shl_load; 17242#endif 17243#ifdef __cplusplus 17244} 17245#endif 17246 17247int 17248main () 17249{ 17250return f != shl_load; 17251 ; 17252 return 0; 17253} 17254_ACEOF 17255rm -f conftest.$ac_objext conftest$ac_exeext 17256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17257 (eval $ac_link) 2>&5 17258 ac_status=$? 17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17260 (exit $ac_status); } && 17261 { ac_try='test -s conftest$ac_exeext' 17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17263 (eval $ac_try) 2>&5 17264 ac_status=$? 17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17266 (exit $ac_status); }; }; then 17267 ac_cv_func_shl_load=yes 17268else 17269 echo "$as_me: failed program was:" >&5 17270sed 's/^/| /' conftest.$ac_ext >&5 17271 17272ac_cv_func_shl_load=no 17273fi 17274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17275fi 17276echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17277echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17278if test $ac_cv_func_shl_load = yes; then 17279 lt_cv_dlopen="shl_load" 17280else 17281 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17282echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17283if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17284 echo $ECHO_N "(cached) $ECHO_C" >&6 17285else 17286 ac_check_lib_save_LIBS=$LIBS 17287LIBS="-ldld $LIBS" 17288cat >conftest.$ac_ext <<_ACEOF 17289#line $LINENO "configure" 17290/* confdefs.h. */ 17291_ACEOF 17292cat confdefs.h >>conftest.$ac_ext 17293cat >>conftest.$ac_ext <<_ACEOF 17294/* end confdefs.h. */ 17295 17296/* Override any gcc2 internal prototype to avoid an error. */ 17297#ifdef __cplusplus 17298extern "C" 17299#endif 17300/* We use char because int might match the return type of a gcc2 17301 builtin and then its argument prototype would still apply. */ 17302char shl_load (); 17303int 17304main () 17305{ 17306shl_load (); 17307 ; 17308 return 0; 17309} 17310_ACEOF 17311rm -f conftest.$ac_objext conftest$ac_exeext 17312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17313 (eval $ac_link) 2>&5 17314 ac_status=$? 17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17316 (exit $ac_status); } && 17317 { ac_try='test -s conftest$ac_exeext' 17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17319 (eval $ac_try) 2>&5 17320 ac_status=$? 17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17322 (exit $ac_status); }; }; then 17323 ac_cv_lib_dld_shl_load=yes 17324else 17325 echo "$as_me: failed program was:" >&5 17326sed 's/^/| /' conftest.$ac_ext >&5 17327 17328ac_cv_lib_dld_shl_load=no 17329fi 17330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17331LIBS=$ac_check_lib_save_LIBS 17332fi 17333echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17334echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17335if test $ac_cv_lib_dld_shl_load = yes; then 17336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17337else 17338 echo "$as_me:$LINENO: checking for dlopen" >&5 17339echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17340if test "${ac_cv_func_dlopen+set}" = set; then 17341 echo $ECHO_N "(cached) $ECHO_C" >&6 17342else 17343 cat >conftest.$ac_ext <<_ACEOF 17344#line $LINENO "configure" 17345/* confdefs.h. */ 17346_ACEOF 17347cat confdefs.h >>conftest.$ac_ext 17348cat >>conftest.$ac_ext <<_ACEOF 17349/* end confdefs.h. */ 17350/* System header to define __stub macros and hopefully few prototypes, 17351 which can conflict with char dlopen (); below. 17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17353 <limits.h> exists even on freestanding compilers. */ 17354#ifdef __STDC__ 17355# include <limits.h> 17356#else 17357# include <assert.h> 17358#endif 17359/* Override any gcc2 internal prototype to avoid an error. */ 17360#ifdef __cplusplus 17361extern "C" 17362{ 17363#endif 17364/* We use char because int might match the return type of a gcc2 17365 builtin and then its argument prototype would still apply. */ 17366char dlopen (); 17367/* The GNU C library defines this for functions which it implements 17368 to always fail with ENOSYS. Some functions are actually named 17369 something starting with __ and the normal name is an alias. */ 17370#if defined (__stub_dlopen) || defined (__stub___dlopen) 17371choke me 17372#else 17373char (*f) () = dlopen; 17374#endif 17375#ifdef __cplusplus 17376} 17377#endif 17378 17379int 17380main () 17381{ 17382return f != dlopen; 17383 ; 17384 return 0; 17385} 17386_ACEOF 17387rm -f conftest.$ac_objext conftest$ac_exeext 17388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17389 (eval $ac_link) 2>&5 17390 ac_status=$? 17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17392 (exit $ac_status); } && 17393 { ac_try='test -s conftest$ac_exeext' 17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17395 (eval $ac_try) 2>&5 17396 ac_status=$? 17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17398 (exit $ac_status); }; }; then 17399 ac_cv_func_dlopen=yes 17400else 17401 echo "$as_me: failed program was:" >&5 17402sed 's/^/| /' conftest.$ac_ext >&5 17403 17404ac_cv_func_dlopen=no 17405fi 17406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17407fi 17408echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17409echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17410if test $ac_cv_func_dlopen = yes; then 17411 lt_cv_dlopen="dlopen" 17412else 17413 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17414echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17415if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17416 echo $ECHO_N "(cached) $ECHO_C" >&6 17417else 17418 ac_check_lib_save_LIBS=$LIBS 17419LIBS="-ldl $LIBS" 17420cat >conftest.$ac_ext <<_ACEOF 17421#line $LINENO "configure" 17422/* confdefs.h. */ 17423_ACEOF 17424cat confdefs.h >>conftest.$ac_ext 17425cat >>conftest.$ac_ext <<_ACEOF 17426/* end confdefs.h. */ 17427 17428/* Override any gcc2 internal prototype to avoid an error. */ 17429#ifdef __cplusplus 17430extern "C" 17431#endif 17432/* We use char because int might match the return type of a gcc2 17433 builtin and then its argument prototype would still apply. */ 17434char dlopen (); 17435int 17436main () 17437{ 17438dlopen (); 17439 ; 17440 return 0; 17441} 17442_ACEOF 17443rm -f conftest.$ac_objext conftest$ac_exeext 17444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17445 (eval $ac_link) 2>&5 17446 ac_status=$? 17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17448 (exit $ac_status); } && 17449 { ac_try='test -s conftest$ac_exeext' 17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17451 (eval $ac_try) 2>&5 17452 ac_status=$? 17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17454 (exit $ac_status); }; }; then 17455 ac_cv_lib_dl_dlopen=yes 17456else 17457 echo "$as_me: failed program was:" >&5 17458sed 's/^/| /' conftest.$ac_ext >&5 17459 17460ac_cv_lib_dl_dlopen=no 17461fi 17462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17463LIBS=$ac_check_lib_save_LIBS 17464fi 17465echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17466echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17467if test $ac_cv_lib_dl_dlopen = yes; then 17468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17469else 17470 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17471echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17472if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17473 echo $ECHO_N "(cached) $ECHO_C" >&6 17474else 17475 ac_check_lib_save_LIBS=$LIBS 17476LIBS="-lsvld $LIBS" 17477cat >conftest.$ac_ext <<_ACEOF 17478#line $LINENO "configure" 17479/* confdefs.h. */ 17480_ACEOF 17481cat confdefs.h >>conftest.$ac_ext 17482cat >>conftest.$ac_ext <<_ACEOF 17483/* end confdefs.h. */ 17484 17485/* Override any gcc2 internal prototype to avoid an error. */ 17486#ifdef __cplusplus 17487extern "C" 17488#endif 17489/* We use char because int might match the return type of a gcc2 17490 builtin and then its argument prototype would still apply. */ 17491char dlopen (); 17492int 17493main () 17494{ 17495dlopen (); 17496 ; 17497 return 0; 17498} 17499_ACEOF 17500rm -f conftest.$ac_objext conftest$ac_exeext 17501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17502 (eval $ac_link) 2>&5 17503 ac_status=$? 17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17505 (exit $ac_status); } && 17506 { ac_try='test -s conftest$ac_exeext' 17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17508 (eval $ac_try) 2>&5 17509 ac_status=$? 17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17511 (exit $ac_status); }; }; then 17512 ac_cv_lib_svld_dlopen=yes 17513else 17514 echo "$as_me: failed program was:" >&5 17515sed 's/^/| /' conftest.$ac_ext >&5 17516 17517ac_cv_lib_svld_dlopen=no 17518fi 17519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17520LIBS=$ac_check_lib_save_LIBS 17521fi 17522echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17523echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 17524if test $ac_cv_lib_svld_dlopen = yes; then 17525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17526else 17527 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17528echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 17529if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17530 echo $ECHO_N "(cached) $ECHO_C" >&6 17531else 17532 ac_check_lib_save_LIBS=$LIBS 17533LIBS="-ldld $LIBS" 17534cat >conftest.$ac_ext <<_ACEOF 17535#line $LINENO "configure" 17536/* confdefs.h. */ 17537_ACEOF 17538cat confdefs.h >>conftest.$ac_ext 17539cat >>conftest.$ac_ext <<_ACEOF 17540/* end confdefs.h. */ 17541 17542/* Override any gcc2 internal prototype to avoid an error. */ 17543#ifdef __cplusplus 17544extern "C" 17545#endif 17546/* We use char because int might match the return type of a gcc2 17547 builtin and then its argument prototype would still apply. */ 17548char dld_link (); 17549int 17550main () 17551{ 17552dld_link (); 17553 ; 17554 return 0; 17555} 17556_ACEOF 17557rm -f conftest.$ac_objext conftest$ac_exeext 17558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17559 (eval $ac_link) 2>&5 17560 ac_status=$? 17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17562 (exit $ac_status); } && 17563 { ac_try='test -s conftest$ac_exeext' 17564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17565 (eval $ac_try) 2>&5 17566 ac_status=$? 17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17568 (exit $ac_status); }; }; then 17569 ac_cv_lib_dld_dld_link=yes 17570else 17571 echo "$as_me: failed program was:" >&5 17572sed 's/^/| /' conftest.$ac_ext >&5 17573 17574ac_cv_lib_dld_dld_link=no 17575fi 17576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17577LIBS=$ac_check_lib_save_LIBS 17578fi 17579echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 17580echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 17581if test $ac_cv_lib_dld_dld_link = yes; then 17582 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 17583fi 17584 17585 17586fi 17587 17588 17589fi 17590 17591 17592fi 17593 17594 17595fi 17596 17597 17598fi 17599 17600 ;; 17601 esac 17602 17603 if test "x$lt_cv_dlopen" != xno; then 17604 enable_dlopen=yes 17605 else 17606 enable_dlopen=no 17607 fi 17608 17609 case $lt_cv_dlopen in 17610 dlopen) 17611 save_CPPFLAGS="$CPPFLAGS" 17612 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17613 17614 save_LDFLAGS="$LDFLAGS" 17615 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17616 17617 save_LIBS="$LIBS" 17618 LIBS="$lt_cv_dlopen_libs $LIBS" 17619 17620 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 17621echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 17622if test "${lt_cv_dlopen_self+set}" = set; then 17623 echo $ECHO_N "(cached) $ECHO_C" >&6 17624else 17625 if test "$cross_compiling" = yes; then : 17626 lt_cv_dlopen_self=cross 17627else 17628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17629 lt_status=$lt_dlunknown 17630 cat > conftest.$ac_ext <<EOF 17631#line 17631 "configure" 17632#include "confdefs.h" 17633 17634#if HAVE_DLFCN_H 17635#include <dlfcn.h> 17636#endif 17637 17638#include <stdio.h> 17639 17640#ifdef RTLD_GLOBAL 17641# define LT_DLGLOBAL RTLD_GLOBAL 17642#else 17643# ifdef DL_GLOBAL 17644# define LT_DLGLOBAL DL_GLOBAL 17645# else 17646# define LT_DLGLOBAL 0 17647# endif 17648#endif 17649 17650/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17651 find out it does not work in some platform. */ 17652#ifndef LT_DLLAZY_OR_NOW 17653# ifdef RTLD_LAZY 17654# define LT_DLLAZY_OR_NOW RTLD_LAZY 17655# else 17656# ifdef DL_LAZY 17657# define LT_DLLAZY_OR_NOW DL_LAZY 17658# else 17659# ifdef RTLD_NOW 17660# define LT_DLLAZY_OR_NOW RTLD_NOW 17661# else 17662# ifdef DL_NOW 17663# define LT_DLLAZY_OR_NOW DL_NOW 17664# else 17665# define LT_DLLAZY_OR_NOW 0 17666# endif 17667# endif 17668# endif 17669# endif 17670#endif 17671 17672#ifdef __cplusplus 17673extern "C" void exit (int); 17674#endif 17675 17676void fnord() { int i=42;} 17677int main () 17678{ 17679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17680 int status = $lt_dlunknown; 17681 17682 if (self) 17683 { 17684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17685 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17686 /* dlclose (self); */ 17687 } 17688 17689 exit (status); 17690} 17691EOF 17692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17693 (eval $ac_link) 2>&5 17694 ac_status=$? 17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17696 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17697 (./conftest; exit; ) 2>/dev/null 17698 lt_status=$? 17699 case x$lt_status in 17700 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17701 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17702 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 17703 esac 17704 else : 17705 # compilation failed 17706 lt_cv_dlopen_self=no 17707 fi 17708fi 17709rm -fr conftest* 17710 17711 17712fi 17713echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17714echo "${ECHO_T}$lt_cv_dlopen_self" >&6 17715 17716 if test "x$lt_cv_dlopen_self" = xyes; then 17717 LDFLAGS="$LDFLAGS $link_static_flag" 17718 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17719echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 17720if test "${lt_cv_dlopen_self_static+set}" = set; then 17721 echo $ECHO_N "(cached) $ECHO_C" >&6 17722else 17723 if test "$cross_compiling" = yes; then : 17724 lt_cv_dlopen_self_static=cross 17725else 17726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17727 lt_status=$lt_dlunknown 17728 cat > conftest.$ac_ext <<EOF 17729#line 17729 "configure" 17730#include "confdefs.h" 17731 17732#if HAVE_DLFCN_H 17733#include <dlfcn.h> 17734#endif 17735 17736#include <stdio.h> 17737 17738#ifdef RTLD_GLOBAL 17739# define LT_DLGLOBAL RTLD_GLOBAL 17740#else 17741# ifdef DL_GLOBAL 17742# define LT_DLGLOBAL DL_GLOBAL 17743# else 17744# define LT_DLGLOBAL 0 17745# endif 17746#endif 17747 17748/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17749 find out it does not work in some platform. */ 17750#ifndef LT_DLLAZY_OR_NOW 17751# ifdef RTLD_LAZY 17752# define LT_DLLAZY_OR_NOW RTLD_LAZY 17753# else 17754# ifdef DL_LAZY 17755# define LT_DLLAZY_OR_NOW DL_LAZY 17756# else 17757# ifdef RTLD_NOW 17758# define LT_DLLAZY_OR_NOW RTLD_NOW 17759# else 17760# ifdef DL_NOW 17761# define LT_DLLAZY_OR_NOW DL_NOW 17762# else 17763# define LT_DLLAZY_OR_NOW 0 17764# endif 17765# endif 17766# endif 17767# endif 17768#endif 17769 17770#ifdef __cplusplus 17771extern "C" void exit (int); 17772#endif 17773 17774void fnord() { int i=42;} 17775int main () 17776{ 17777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17778 int status = $lt_dlunknown; 17779 17780 if (self) 17781 { 17782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17783 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17784 /* dlclose (self); */ 17785 } 17786 17787 exit (status); 17788} 17789EOF 17790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17791 (eval $ac_link) 2>&5 17792 ac_status=$? 17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17794 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17795 (./conftest; exit; ) 2>/dev/null 17796 lt_status=$? 17797 case x$lt_status in 17798 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17799 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17800 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 17801 esac 17802 else : 17803 # compilation failed 17804 lt_cv_dlopen_self_static=no 17805 fi 17806fi 17807rm -fr conftest* 17808 17809 17810fi 17811echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 17812echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 17813 fi 17814 17815 CPPFLAGS="$save_CPPFLAGS" 17816 LDFLAGS="$save_LDFLAGS" 17817 LIBS="$save_LIBS" 17818 ;; 17819 esac 17820 17821 case $lt_cv_dlopen_self in 17822 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17823 *) enable_dlopen_self=unknown ;; 17824 esac 17825 17826 case $lt_cv_dlopen_self_static in 17827 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17828 *) enable_dlopen_self_static=unknown ;; 17829 esac 17830fi 17831 17832 17833# The else clause should only fire when bootstrapping the 17834# libtool distribution, otherwise you forgot to ship ltmain.sh 17835# with your package, and you will get complaints that there are 17836# no rules to generate ltmain.sh. 17837if test -f "$ltmain"; then 17838 # See if we are running on zsh, and set the options which allow our commands through 17839 # without removal of \ escapes. 17840 if test -n "${ZSH_VERSION+set}" ; then 17841 setopt NO_GLOB_SUBST 17842 fi 17843 # Now quote all the things that may contain metacharacters while being 17844 # careful not to overquote the AC_SUBSTed values. We take copies of the 17845 # variables and quote the copies for generation of the libtool script. 17846 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 17847 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17848 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17849 deplibs_check_method reload_flag reload_cmds need_locks \ 17850 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17851 lt_cv_sys_global_symbol_to_c_name_address \ 17852 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17853 old_postinstall_cmds old_postuninstall_cmds \ 17854 compiler_GCJ \ 17855 CC_GCJ \ 17856 LD_GCJ \ 17857 lt_prog_compiler_wl_GCJ \ 17858 lt_prog_compiler_pic_GCJ \ 17859 lt_prog_compiler_static_GCJ \ 17860 lt_prog_compiler_no_builtin_flag_GCJ \ 17861 export_dynamic_flag_spec_GCJ \ 17862 thread_safe_flag_spec_GCJ \ 17863 whole_archive_flag_spec_GCJ \ 17864 enable_shared_with_static_runtimes_GCJ \ 17865 old_archive_cmds_GCJ \ 17866 old_archive_from_new_cmds_GCJ \ 17867 predep_objects_GCJ \ 17868 postdep_objects_GCJ \ 17869 predeps_GCJ \ 17870 postdeps_GCJ \ 17871 compiler_lib_search_path_GCJ \ 17872 archive_cmds_GCJ \ 17873 archive_expsym_cmds_GCJ \ 17874 postinstall_cmds_GCJ \ 17875 postuninstall_cmds_GCJ \ 17876 old_archive_from_expsyms_cmds_GCJ \ 17877 allow_undefined_flag_GCJ \ 17878 no_undefined_flag_GCJ \ 17879 export_symbols_cmds_GCJ \ 17880 hardcode_libdir_flag_spec_GCJ \ 17881 hardcode_libdir_flag_spec_ld_GCJ \ 17882 hardcode_libdir_separator_GCJ \ 17883 hardcode_automatic_GCJ \ 17884 module_cmds_GCJ \ 17885 module_expsym_cmds_GCJ \ 17886 lt_cv_prog_compiler_c_o_GCJ \ 17887 exclude_expsyms_GCJ \ 17888 include_expsyms_GCJ; do 17889 17890 case $var in 17891 old_archive_cmds_GCJ | \ 17892 old_archive_from_new_cmds_GCJ | \ 17893 archive_cmds_GCJ | \ 17894 archive_expsym_cmds_GCJ | \ 17895 module_cmds_GCJ | \ 17896 module_expsym_cmds_GCJ | \ 17897 old_archive_from_expsyms_cmds_GCJ | \ 17898 export_symbols_cmds_GCJ | \ 17899 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17900 postinstall_cmds | postuninstall_cmds | \ 17901 old_postinstall_cmds | old_postuninstall_cmds | \ 17902 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17903 # Double-quote double-evaled strings. 17904 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17905 ;; 17906 *) 17907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17908 ;; 17909 esac 17910 done 17911 17912 case $lt_echo in 17913 *'\$0 --fallback-echo"') 17914 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17915 ;; 17916 esac 17917 17918cfgfile="$ofile" 17919 17920 cat <<__EOF__ >> "$cfgfile" 17921# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17922 17923# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17924 17925# Shell to use when invoking shell scripts. 17926SHELL=$lt_SHELL 17927 17928# Whether or not to build shared libraries. 17929build_libtool_libs=$enable_shared 17930 17931# Whether or not to build static libraries. 17932build_old_libs=$enable_static 17933 17934# Whether or not to add -lc for building shared libraries. 17935build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17936 17937# Whether or not to disallow shared libs when runtime libs are static 17938allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17939 17940# Whether or not to optimize for fast installation. 17941fast_install=$enable_fast_install 17942 17943# The host system. 17944host_alias=$host_alias 17945host=$host 17946 17947# An echo program that does not interpret backslashes. 17948echo=$lt_echo 17949 17950# The archiver. 17951AR=$lt_AR 17952AR_FLAGS=$lt_AR_FLAGS 17953 17954# A C compiler. 17955LTCC=$lt_LTCC 17956 17957# A language-specific compiler. 17958CC=$lt_compiler_GCJ 17959 17960# Is the compiler the GNU C compiler? 17961with_gcc=$GCC_GCJ 17962 17963# An ERE matcher. 17964EGREP=$lt_EGREP 17965 17966# The linker used to build libraries. 17967LD=$lt_LD_GCJ 17968 17969# Whether we need hard or soft links. 17970LN_S=$lt_LN_S 17971 17972# A BSD-compatible nm program. 17973NM=$lt_NM 17974 17975# A symbol stripping program 17976STRIP=$STRIP 17977 17978# Used to examine libraries when file_magic_cmd begins "file" 17979MAGIC_CMD=$MAGIC_CMD 17980 17981# Used on cygwin: DLL creation program. 17982DLLTOOL="$DLLTOOL" 17983 17984# Used on cygwin: object dumper. 17985OBJDUMP="$OBJDUMP" 17986 17987# Used on cygwin: assembler. 17988AS="$AS" 17989 17990# The name of the directory that contains temporary libtool files. 17991objdir=$objdir 17992 17993# How to create reloadable object files. 17994reload_flag=$lt_reload_flag 17995reload_cmds=$lt_reload_cmds 17996 17997# How to pass a linker flag through the compiler. 17998wl=$lt_lt_prog_compiler_wl_GCJ 17999 18000# Object file suffix (normally "o"). 18001objext="$ac_objext" 18002 18003# Old archive suffix (normally "a"). 18004libext="$libext" 18005 18006# Shared library suffix (normally ".so"). 18007shrext='$shrext' 18008 18009# Executable file suffix (normally ""). 18010exeext="$exeext" 18011 18012# Additional compiler flags for building library objects. 18013pic_flag=$lt_lt_prog_compiler_pic_GCJ 18014pic_mode=$pic_mode 18015 18016# What is the maximum length of a command? 18017max_cmd_len=$lt_cv_sys_max_cmd_len 18018 18019# Does compiler simultaneously support -c and -o options? 18020compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18021 18022# Must we lock files when doing compilation ? 18023need_locks=$lt_need_locks 18024 18025# Do we need the lib prefix for modules? 18026need_lib_prefix=$need_lib_prefix 18027 18028# Do we need a version for libraries? 18029need_version=$need_version 18030 18031# Whether dlopen is supported. 18032dlopen_support=$enable_dlopen 18033 18034# Whether dlopen of programs is supported. 18035dlopen_self=$enable_dlopen_self 18036 18037# Whether dlopen of statically linked programs is supported. 18038dlopen_self_static=$enable_dlopen_self_static 18039 18040# Compiler flag to prevent dynamic linking. 18041link_static_flag=$lt_lt_prog_compiler_static_GCJ 18042 18043# Compiler flag to turn off builtin functions. 18044no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18045 18046# Compiler flag to allow reflexive dlopens. 18047export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18048 18049# Compiler flag to generate shared objects directly from archives. 18050whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18051 18052# Compiler flag to generate thread-safe objects. 18053thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18054 18055# Library versioning type. 18056version_type=$version_type 18057 18058# Format of library name prefix. 18059libname_spec=$lt_libname_spec 18060 18061# List of archive names. First name is the real one, the rest are links. 18062# The last name is the one that the linker finds with -lNAME. 18063library_names_spec=$lt_library_names_spec 18064 18065# The coded name of the library, if different from the real name. 18066soname_spec=$lt_soname_spec 18067 18068# Commands used to build and install an old-style archive. 18069RANLIB=$lt_RANLIB 18070old_archive_cmds=$lt_old_archive_cmds_GCJ 18071old_postinstall_cmds=$lt_old_postinstall_cmds 18072old_postuninstall_cmds=$lt_old_postuninstall_cmds 18073 18074# Create an old-style archive from a shared archive. 18075old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18076 18077# Create a temporary old-style archive to link instead of a shared archive. 18078old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18079 18080# Commands used to build and install a shared archive. 18081archive_cmds=$lt_archive_cmds_GCJ 18082archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18083postinstall_cmds=$lt_postinstall_cmds 18084postuninstall_cmds=$lt_postuninstall_cmds 18085 18086# Commands used to build a loadable module (assumed same as above if empty) 18087module_cmds=$lt_module_cmds_GCJ 18088module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18089 18090# Commands to strip libraries. 18091old_striplib=$lt_old_striplib 18092striplib=$lt_striplib 18093 18094# Dependencies to place before the objects being linked to create a 18095# shared library. 18096predep_objects=$lt_predep_objects_GCJ 18097 18098# Dependencies to place after the objects being linked to create a 18099# shared library. 18100postdep_objects=$lt_postdep_objects_GCJ 18101 18102# Dependencies to place before the objects being linked to create a 18103# shared library. 18104predeps=$lt_predeps_GCJ 18105 18106# Dependencies to place after the objects being linked to create a 18107# shared library. 18108postdeps=$lt_postdeps_GCJ 18109 18110# The library search path used internally by the compiler when linking 18111# a shared library. 18112compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18113 18114# Method to check whether dependent libraries are shared objects. 18115deplibs_check_method=$lt_deplibs_check_method 18116 18117# Command to use when deplibs_check_method == file_magic. 18118file_magic_cmd=$lt_file_magic_cmd 18119 18120# Flag that allows shared libraries with undefined symbols to be built. 18121allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18122 18123# Flag that forces no undefined symbols. 18124no_undefined_flag=$lt_no_undefined_flag_GCJ 18125 18126# Commands used to finish a libtool library installation in a directory. 18127finish_cmds=$lt_finish_cmds 18128 18129# Same as above, but a single script fragment to be evaled but not shown. 18130finish_eval=$lt_finish_eval 18131 18132# Take the output of nm and produce a listing of raw symbols and C names. 18133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18134 18135# Transform the output of nm in a proper C declaration 18136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18137 18138# Transform the output of nm in a C name address pair 18139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18140 18141# This is the shared library runtime path variable. 18142runpath_var=$runpath_var 18143 18144# This is the shared library path variable. 18145shlibpath_var=$shlibpath_var 18146 18147# Is shlibpath searched before the hard-coded library search path? 18148shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18149 18150# How to hardcode a shared library path into an executable. 18151hardcode_action=$hardcode_action_GCJ 18152 18153# Whether we should hardcode library paths into libraries. 18154hardcode_into_libs=$hardcode_into_libs 18155 18156# Flag to hardcode \$libdir into a binary during linking. 18157# This must work even if \$libdir does not exist. 18158hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18159 18160# If ld is used when linking, flag to hardcode \$libdir into 18161# a binary during linking. This must work even if \$libdir does 18162# not exist. 18163hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18164 18165# Whether we need a single -rpath flag with a separated argument. 18166hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18167 18168# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18169# resulting binary. 18170hardcode_direct=$hardcode_direct_GCJ 18171 18172# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18173# resulting binary. 18174hardcode_minus_L=$hardcode_minus_L_GCJ 18175 18176# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18177# the resulting binary. 18178hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18179 18180# Set to yes if building a shared library automatically hardcodes DIR into the library 18181# and all subsequent libraries and executables linked against it. 18182hardcode_automatic=$hardcode_automatic_GCJ 18183 18184# Variables whose values should be saved in libtool wrapper scripts and 18185# restored at relink time. 18186variables_saved_for_relink="$variables_saved_for_relink" 18187 18188# Whether libtool must link a program against all its dependency libraries. 18189link_all_deplibs=$link_all_deplibs_GCJ 18190 18191# Compile-time system search path for libraries 18192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18193 18194# Run-time system search path for libraries 18195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18196 18197# Fix the shell variable \$srcfile for the compiler. 18198fix_srcfile_path="$fix_srcfile_path_GCJ" 18199 18200# Set to yes if exported symbols are required. 18201always_export_symbols=$always_export_symbols_GCJ 18202 18203# The commands to list exported symbols. 18204export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18205 18206# The commands to extract the exported symbol list from a shared archive. 18207extract_expsyms_cmds=$lt_extract_expsyms_cmds 18208 18209# Symbols that should not be listed in the preloaded symbols. 18210exclude_expsyms=$lt_exclude_expsyms_GCJ 18211 18212# Symbols that must always be exported. 18213include_expsyms=$lt_include_expsyms_GCJ 18214 18215# ### END LIBTOOL TAG CONFIG: $tagname 18216 18217__EOF__ 18218 18219 18220else 18221 # If there is no Makefile yet, we rely on a make rule to execute 18222 # `config.status --recheck' to rerun these tests and create the 18223 # libtool script then. 18224 test -f Makefile && make "$ltmain" 18225fi 18226 18227 18228ac_ext=cc 18229ac_cpp='$CXXCPP $CPPFLAGS' 18230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18233 18234CC="$lt_save_CC" 18235 18236 else 18237 tagname="" 18238 fi 18239 ;; 18240 18241 RC) 18242 18243 18244 18245# Source file extension for RC test sources. 18246ac_ext=rc 18247 18248# Object file extension for compiled RC test sources. 18249objext=o 18250objext_RC=$objext 18251 18252# Code to be used in simple compile tests 18253lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18254 18255# Code to be used in simple link tests 18256lt_simple_link_test_code="$lt_simple_compile_test_code" 18257 18258# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18259 18260# If no C compiler was specified, use CC. 18261LTCC=${LTCC-"$CC"} 18262 18263# Allow CC to be a program name with arguments. 18264compiler=$CC 18265 18266 18267# Allow CC to be a program name with arguments. 18268lt_save_CC="$CC" 18269CC=${RC-"windres"} 18270compiler=$CC 18271compiler_RC=$CC 18272lt_cv_prog_compiler_c_o_RC=yes 18273 18274# The else clause should only fire when bootstrapping the 18275# libtool distribution, otherwise you forgot to ship ltmain.sh 18276# with your package, and you will get complaints that there are 18277# no rules to generate ltmain.sh. 18278if test -f "$ltmain"; then 18279 # See if we are running on zsh, and set the options which allow our commands through 18280 # without removal of \ escapes. 18281 if test -n "${ZSH_VERSION+set}" ; then 18282 setopt NO_GLOB_SUBST 18283 fi 18284 # Now quote all the things that may contain metacharacters while being 18285 # careful not to overquote the AC_SUBSTed values. We take copies of the 18286 # variables and quote the copies for generation of the libtool script. 18287 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 18288 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18289 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18290 deplibs_check_method reload_flag reload_cmds need_locks \ 18291 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18292 lt_cv_sys_global_symbol_to_c_name_address \ 18293 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18294 old_postinstall_cmds old_postuninstall_cmds \ 18295 compiler_RC \ 18296 CC_RC \ 18297 LD_RC \ 18298 lt_prog_compiler_wl_RC \ 18299 lt_prog_compiler_pic_RC \ 18300 lt_prog_compiler_static_RC \ 18301 lt_prog_compiler_no_builtin_flag_RC \ 18302 export_dynamic_flag_spec_RC \ 18303 thread_safe_flag_spec_RC \ 18304 whole_archive_flag_spec_RC \ 18305 enable_shared_with_static_runtimes_RC \ 18306 old_archive_cmds_RC \ 18307 old_archive_from_new_cmds_RC \ 18308 predep_objects_RC \ 18309 postdep_objects_RC \ 18310 predeps_RC \ 18311 postdeps_RC \ 18312 compiler_lib_search_path_RC \ 18313 archive_cmds_RC \ 18314 archive_expsym_cmds_RC \ 18315 postinstall_cmds_RC \ 18316 postuninstall_cmds_RC \ 18317 old_archive_from_expsyms_cmds_RC \ 18318 allow_undefined_flag_RC \ 18319 no_undefined_flag_RC \ 18320 export_symbols_cmds_RC \ 18321 hardcode_libdir_flag_spec_RC \ 18322 hardcode_libdir_flag_spec_ld_RC \ 18323 hardcode_libdir_separator_RC \ 18324 hardcode_automatic_RC \ 18325 module_cmds_RC \ 18326 module_expsym_cmds_RC \ 18327 lt_cv_prog_compiler_c_o_RC \ 18328 exclude_expsyms_RC \ 18329 include_expsyms_RC; do 18330 18331 case $var in 18332 old_archive_cmds_RC | \ 18333 old_archive_from_new_cmds_RC | \ 18334 archive_cmds_RC | \ 18335 archive_expsym_cmds_RC | \ 18336 module_cmds_RC | \ 18337 module_expsym_cmds_RC | \ 18338 old_archive_from_expsyms_cmds_RC | \ 18339 export_symbols_cmds_RC | \ 18340 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18341 postinstall_cmds | postuninstall_cmds | \ 18342 old_postinstall_cmds | old_postuninstall_cmds | \ 18343 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18344 # Double-quote double-evaled strings. 18345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18346 ;; 18347 *) 18348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18349 ;; 18350 esac 18351 done 18352 18353 case $lt_echo in 18354 *'\$0 --fallback-echo"') 18355 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18356 ;; 18357 esac 18358 18359cfgfile="$ofile" 18360 18361 cat <<__EOF__ >> "$cfgfile" 18362# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18363 18364# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18365 18366# Shell to use when invoking shell scripts. 18367SHELL=$lt_SHELL 18368 18369# Whether or not to build shared libraries. 18370build_libtool_libs=$enable_shared 18371 18372# Whether or not to build static libraries. 18373build_old_libs=$enable_static 18374 18375# Whether or not to add -lc for building shared libraries. 18376build_libtool_need_lc=$archive_cmds_need_lc_RC 18377 18378# Whether or not to disallow shared libs when runtime libs are static 18379allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18380 18381# Whether or not to optimize for fast installation. 18382fast_install=$enable_fast_install 18383 18384# The host system. 18385host_alias=$host_alias 18386host=$host 18387 18388# An echo program that does not interpret backslashes. 18389echo=$lt_echo 18390 18391# The archiver. 18392AR=$lt_AR 18393AR_FLAGS=$lt_AR_FLAGS 18394 18395# A C compiler. 18396LTCC=$lt_LTCC 18397 18398# A language-specific compiler. 18399CC=$lt_compiler_RC 18400 18401# Is the compiler the GNU C compiler? 18402with_gcc=$GCC_RC 18403 18404# An ERE matcher. 18405EGREP=$lt_EGREP 18406 18407# The linker used to build libraries. 18408LD=$lt_LD_RC 18409 18410# Whether we need hard or soft links. 18411LN_S=$lt_LN_S 18412 18413# A BSD-compatible nm program. 18414NM=$lt_NM 18415 18416# A symbol stripping program 18417STRIP=$STRIP 18418 18419# Used to examine libraries when file_magic_cmd begins "file" 18420MAGIC_CMD=$MAGIC_CMD 18421 18422# Used on cygwin: DLL creation program. 18423DLLTOOL="$DLLTOOL" 18424 18425# Used on cygwin: object dumper. 18426OBJDUMP="$OBJDUMP" 18427 18428# Used on cygwin: assembler. 18429AS="$AS" 18430 18431# The name of the directory that contains temporary libtool files. 18432objdir=$objdir 18433 18434# How to create reloadable object files. 18435reload_flag=$lt_reload_flag 18436reload_cmds=$lt_reload_cmds 18437 18438# How to pass a linker flag through the compiler. 18439wl=$lt_lt_prog_compiler_wl_RC 18440 18441# Object file suffix (normally "o"). 18442objext="$ac_objext" 18443 18444# Old archive suffix (normally "a"). 18445libext="$libext" 18446 18447# Shared library suffix (normally ".so"). 18448shrext='$shrext' 18449 18450# Executable file suffix (normally ""). 18451exeext="$exeext" 18452 18453# Additional compiler flags for building library objects. 18454pic_flag=$lt_lt_prog_compiler_pic_RC 18455pic_mode=$pic_mode 18456 18457# What is the maximum length of a command? 18458max_cmd_len=$lt_cv_sys_max_cmd_len 18459 18460# Does compiler simultaneously support -c and -o options? 18461compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18462 18463# Must we lock files when doing compilation ? 18464need_locks=$lt_need_locks 18465 18466# Do we need the lib prefix for modules? 18467need_lib_prefix=$need_lib_prefix 18468 18469# Do we need a version for libraries? 18470need_version=$need_version 18471 18472# Whether dlopen is supported. 18473dlopen_support=$enable_dlopen 18474 18475# Whether dlopen of programs is supported. 18476dlopen_self=$enable_dlopen_self 18477 18478# Whether dlopen of statically linked programs is supported. 18479dlopen_self_static=$enable_dlopen_self_static 18480 18481# Compiler flag to prevent dynamic linking. 18482link_static_flag=$lt_lt_prog_compiler_static_RC 18483 18484# Compiler flag to turn off builtin functions. 18485no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18486 18487# Compiler flag to allow reflexive dlopens. 18488export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18489 18490# Compiler flag to generate shared objects directly from archives. 18491whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18492 18493# Compiler flag to generate thread-safe objects. 18494thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18495 18496# Library versioning type. 18497version_type=$version_type 18498 18499# Format of library name prefix. 18500libname_spec=$lt_libname_spec 18501 18502# List of archive names. First name is the real one, the rest are links. 18503# The last name is the one that the linker finds with -lNAME. 18504library_names_spec=$lt_library_names_spec 18505 18506# The coded name of the library, if different from the real name. 18507soname_spec=$lt_soname_spec 18508 18509# Commands used to build and install an old-style archive. 18510RANLIB=$lt_RANLIB 18511old_archive_cmds=$lt_old_archive_cmds_RC 18512old_postinstall_cmds=$lt_old_postinstall_cmds 18513old_postuninstall_cmds=$lt_old_postuninstall_cmds 18514 18515# Create an old-style archive from a shared archive. 18516old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18517 18518# Create a temporary old-style archive to link instead of a shared archive. 18519old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18520 18521# Commands used to build and install a shared archive. 18522archive_cmds=$lt_archive_cmds_RC 18523archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18524postinstall_cmds=$lt_postinstall_cmds 18525postuninstall_cmds=$lt_postuninstall_cmds 18526 18527# Commands used to build a loadable module (assumed same as above if empty) 18528module_cmds=$lt_module_cmds_RC 18529module_expsym_cmds=$lt_module_expsym_cmds_RC 18530 18531# Commands to strip libraries. 18532old_striplib=$lt_old_striplib 18533striplib=$lt_striplib 18534 18535# Dependencies to place before the objects being linked to create a 18536# shared library. 18537predep_objects=$lt_predep_objects_RC 18538 18539# Dependencies to place after the objects being linked to create a 18540# shared library. 18541postdep_objects=$lt_postdep_objects_RC 18542 18543# Dependencies to place before the objects being linked to create a 18544# shared library. 18545predeps=$lt_predeps_RC 18546 18547# Dependencies to place after the objects being linked to create a 18548# shared library. 18549postdeps=$lt_postdeps_RC 18550 18551# The library search path used internally by the compiler when linking 18552# a shared library. 18553compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18554 18555# Method to check whether dependent libraries are shared objects. 18556deplibs_check_method=$lt_deplibs_check_method 18557 18558# Command to use when deplibs_check_method == file_magic. 18559file_magic_cmd=$lt_file_magic_cmd 18560 18561# Flag that allows shared libraries with undefined symbols to be built. 18562allow_undefined_flag=$lt_allow_undefined_flag_RC 18563 18564# Flag that forces no undefined symbols. 18565no_undefined_flag=$lt_no_undefined_flag_RC 18566 18567# Commands used to finish a libtool library installation in a directory. 18568finish_cmds=$lt_finish_cmds 18569 18570# Same as above, but a single script fragment to be evaled but not shown. 18571finish_eval=$lt_finish_eval 18572 18573# Take the output of nm and produce a listing of raw symbols and C names. 18574global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18575 18576# Transform the output of nm in a proper C declaration 18577global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18578 18579# Transform the output of nm in a C name address pair 18580global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18581 18582# This is the shared library runtime path variable. 18583runpath_var=$runpath_var 18584 18585# This is the shared library path variable. 18586shlibpath_var=$shlibpath_var 18587 18588# Is shlibpath searched before the hard-coded library search path? 18589shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18590 18591# How to hardcode a shared library path into an executable. 18592hardcode_action=$hardcode_action_RC 18593 18594# Whether we should hardcode library paths into libraries. 18595hardcode_into_libs=$hardcode_into_libs 18596 18597# Flag to hardcode \$libdir into a binary during linking. 18598# This must work even if \$libdir does not exist. 18599hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18600 18601# If ld is used when linking, flag to hardcode \$libdir into 18602# a binary during linking. This must work even if \$libdir does 18603# not exist. 18604hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18605 18606# Whether we need a single -rpath flag with a separated argument. 18607hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18608 18609# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18610# resulting binary. 18611hardcode_direct=$hardcode_direct_RC 18612 18613# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18614# resulting binary. 18615hardcode_minus_L=$hardcode_minus_L_RC 18616 18617# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18618# the resulting binary. 18619hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18620 18621# Set to yes if building a shared library automatically hardcodes DIR into the library 18622# and all subsequent libraries and executables linked against it. 18623hardcode_automatic=$hardcode_automatic_RC 18624 18625# Variables whose values should be saved in libtool wrapper scripts and 18626# restored at relink time. 18627variables_saved_for_relink="$variables_saved_for_relink" 18628 18629# Whether libtool must link a program against all its dependency libraries. 18630link_all_deplibs=$link_all_deplibs_RC 18631 18632# Compile-time system search path for libraries 18633sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18634 18635# Run-time system search path for libraries 18636sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18637 18638# Fix the shell variable \$srcfile for the compiler. 18639fix_srcfile_path="$fix_srcfile_path_RC" 18640 18641# Set to yes if exported symbols are required. 18642always_export_symbols=$always_export_symbols_RC 18643 18644# The commands to list exported symbols. 18645export_symbols_cmds=$lt_export_symbols_cmds_RC 18646 18647# The commands to extract the exported symbol list from a shared archive. 18648extract_expsyms_cmds=$lt_extract_expsyms_cmds 18649 18650# Symbols that should not be listed in the preloaded symbols. 18651exclude_expsyms=$lt_exclude_expsyms_RC 18652 18653# Symbols that must always be exported. 18654include_expsyms=$lt_include_expsyms_RC 18655 18656# ### END LIBTOOL TAG CONFIG: $tagname 18657 18658__EOF__ 18659 18660 18661else 18662 # If there is no Makefile yet, we rely on a make rule to execute 18663 # `config.status --recheck' to rerun these tests and create the 18664 # libtool script then. 18665 test -f Makefile && make "$ltmain" 18666fi 18667 18668 18669ac_ext=cc 18670ac_cpp='$CXXCPP $CPPFLAGS' 18671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18674 18675CC="$lt_save_CC" 18676 18677 ;; 18678 18679 *) 18680 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18681echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18682 { (exit 1); exit 1; }; } 18683 ;; 18684 esac 18685 18686 # Append the new tag name to the list of available tags. 18687 if test -n "$tagname" ; then 18688 available_tags="$available_tags $tagname" 18689 fi 18690 fi 18691 done 18692 IFS="$lt_save_ifs" 18693 18694 # Now substitute the updated list of available tags. 18695 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18696 mv "${ofile}T" "$ofile" 18697 chmod +x "$ofile" 18698 else 18699 rm -f "${ofile}T" 18700 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18701echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18702 { (exit 1); exit 1; }; } 18703 fi 18704fi 18705 18706 18707 18708# This can be used to rebuild libtool when needed 18709LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18710 18711# Always use our own libtool. 18712LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18713 18714# Prevent multiple expansion 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738RESID_NAMESPACE="" 18739 18740# Check whether --with-namespace or --without-namespace was given. 18741if test "${with_namespace+set}" = set; then 18742 withval="$with_namespace" 18743 RESID_NAMESPACE="$withval" 18744 18745fi; 18746 18747echo "$as_me:$LINENO: checking for ReSID namespace" >&5 18748echo $ECHO_N "checking for ReSID namespace... $ECHO_C" >&6 18749echo "$as_me:$LINENO: result: $RESID_NAMESPACE" >&5 18750echo "${ECHO_T}$RESID_NAMESPACE" >&6 18751if test "$RESID_NAMESPACE" != ""; then 18752 RESID_NAMESPACE="#define RESID_NAMESPACE $RESID_NAMESPACE" 18753fi 18754 18755 18756# Check whether --enable-resid-install or --disable-resid-install was given. 18757if test "${enable_resid_install+set}" = set; then 18758 enableval="$enable_resid_install" 18759 case "${enableval}" in 18760 yes) install=true ;; 18761 no) install=false ;; 18762 *) { { echo "$as_me:$LINENO: error: bad value ${disableval} for --disable-resid-install" >&5 18763echo "$as_me: error: bad value ${disableval} for --disable-resid-install" >&2;} 18764 { (exit 1); exit 1; }; } ;; 18765esac 18766else 18767 install=false 18768fi; 18769 18770 18771if test x$install = xtrue; then 18772 INSTALL_RESID_TRUE= 18773 INSTALL_RESID_FALSE='#' 18774else 18775 INSTALL_RESID_TRUE='#' 18776 INSTALL_RESID_FALSE= 18777fi 18778 18779 18780 ac_config_files="$ac_config_files Makefile siddefs.h" 18781cat >confcache <<\_ACEOF 18782# This file is a shell script that caches the results of configure 18783# tests run on this system so they can be shared between configure 18784# scripts and configure runs, see configure's option --config-cache. 18785# It is not useful on other systems. If it contains results you don't 18786# want to keep, you may remove or edit it. 18787# 18788# config.status only pays attention to the cache file if you give it 18789# the --recheck option to rerun configure. 18790# 18791# `ac_cv_env_foo' variables (set or unset) will be overridden when 18792# loading this file, other *unset* `ac_cv_foo' will be assigned the 18793# following values. 18794 18795_ACEOF 18796 18797# The following way of writing the cache mishandles newlines in values, 18798# but we know of no workaround that is simple, portable, and efficient. 18799# So, don't put newlines in cache variables' values. 18800# Ultrix sh set writes to stderr and can't be redirected directly, 18801# and sets the high bit in the cache file unless we assign to the vars. 18802{ 18803 (set) 2>&1 | 18804 case `(ac_space=' '; set | grep ac_space) 2>&1` in 18805 *ac_space=\ *) 18806 # `set' does not quote correctly, so add quotes (double-quote 18807 # substitution turns \\\\ into \\, and sed turns \\ into \). 18808 sed -n \ 18809 "s/'/'\\\\''/g; 18810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18811 ;; 18812 *) 18813 # `set' quotes correctly as required by POSIX, so do not add quotes. 18814 sed -n \ 18815 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 18816 ;; 18817 esac; 18818} | 18819 sed ' 18820 t clear 18821 : clear 18822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18823 t end 18824 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18825 : end' >>confcache 18826if diff $cache_file confcache >/dev/null 2>&1; then :; else 18827 if test -w $cache_file; then 18828 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 18829 cat confcache >$cache_file 18830 else 18831 echo "not updating unwritable cache $cache_file" 18832 fi 18833fi 18834rm -f confcache 18835 18836test "x$prefix" = xNONE && prefix=$ac_default_prefix 18837# Let make expand exec_prefix. 18838test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18839 18840# VPATH may cause trouble with some makes, so we remove $(srcdir), 18841# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 18842# trailing colons and then remove the whole line if VPATH becomes empty 18843# (actually we leave an empty line to preserve line numbers). 18844if test "x$srcdir" = x.; then 18845 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 18846s/:*\$(srcdir):*/:/; 18847s/:*\${srcdir}:*/:/; 18848s/:*@srcdir@:*/:/; 18849s/^\([^=]*=[ ]*\):*/\1/; 18850s/:*$//; 18851s/^[^=]*=[ ]*$//; 18852}' 18853fi 18854 18855# Transform confdefs.h into DEFS. 18856# Protect against shell expansion while executing Makefile rules. 18857# Protect against Makefile macro expansion. 18858# 18859# If the first sed substitution is executed (which looks for macros that 18860# take arguments), then we branch to the quote section. Otherwise, 18861# look for a macro that doesn't take arguments. 18862cat >confdef2opt.sed <<\_ACEOF 18863t clear 18864: clear 18865s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 18866t quote 18867s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 18868t quote 18869d 18870: quote 18871s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 18872s,\[,\\&,g 18873s,\],\\&,g 18874s,\$,$$,g 18875p 18876_ACEOF 18877# We use echo to avoid assuming a particular line-breaking character. 18878# The extra dot is to prevent the shell from consuming trailing 18879# line-breaks from the sub-command output. A line-break within 18880# single-quotes doesn't work because, if this script is created in a 18881# platform that uses two characters for line-breaks (e.g., DOS), tr 18882# would break. 18883ac_LF_and_DOT=`echo; echo .` 18884DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 18885rm -f confdef2opt.sed 18886 18887 18888ac_libobjs= 18889ac_ltlibobjs= 18890for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18891 # 1. Remove the extension, and $U if already installed. 18892 ac_i=`echo "$ac_i" | 18893 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 18894 # 2. Add them. 18895 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 18896 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 18897done 18898LIBOBJS=$ac_libobjs 18899 18900LTLIBOBJS=$ac_ltlibobjs 18901 18902 18903if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18904 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 18905Usually this means the macro was only invoked conditionally." >&5 18906echo "$as_me: error: conditional \"AMDEP\" was never defined. 18907Usually this means the macro was only invoked conditionally." >&2;} 18908 { (exit 1); exit 1; }; } 18909fi 18910if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18911 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 18912Usually this means the macro was only invoked conditionally." >&5 18913echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 18914Usually this means the macro was only invoked conditionally." >&2;} 18915 { (exit 1); exit 1; }; } 18916fi 18917if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18918 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 18919Usually this means the macro was only invoked conditionally." >&5 18920echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 18921Usually this means the macro was only invoked conditionally." >&2;} 18922 { (exit 1); exit 1; }; } 18923fi 18924if test -z "${INSTALL_RESID_TRUE}" && test -z "${INSTALL_RESID_FALSE}"; then 18925 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_RESID\" was never defined. 18926Usually this means the macro was only invoked conditionally." >&5 18927echo "$as_me: error: conditional \"INSTALL_RESID\" was never defined. 18928Usually this means the macro was only invoked conditionally." >&2;} 18929 { (exit 1); exit 1; }; } 18930fi 18931 18932: ${CONFIG_STATUS=./config.status} 18933ac_clean_files_save=$ac_clean_files 18934ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18935{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 18936echo "$as_me: creating $CONFIG_STATUS" >&6;} 18937cat >$CONFIG_STATUS <<_ACEOF 18938#! $SHELL 18939# Generated by $as_me. 18940# Run this file to recreate the current configuration. 18941# Compiler output produced by configure, useful for debugging 18942# configure, is in config.log if it exists. 18943 18944debug=false 18945ac_cs_recheck=false 18946ac_cs_silent=false 18947SHELL=\${CONFIG_SHELL-$SHELL} 18948_ACEOF 18949 18950cat >>$CONFIG_STATUS <<\_ACEOF 18951## --------------------- ## 18952## M4sh Initialization. ## 18953## --------------------- ## 18954 18955# Be Bourne compatible 18956if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18957 emulate sh 18958 NULLCMD=: 18959 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18960 # is contrary to our usage. Disable this feature. 18961 alias -g '${1+"$@"}'='"$@"' 18962elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 18963 set -o posix 18964fi 18965 18966# Support unset when possible. 18967if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 18968 as_unset=unset 18969else 18970 as_unset=false 18971fi 18972 18973 18974# Work around bugs in pre-3.0 UWIN ksh. 18975$as_unset ENV MAIL MAILPATH 18976PS1='$ ' 18977PS2='> ' 18978PS4='+ ' 18979 18980# NLS nuisances. 18981for as_var in \ 18982 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 18983 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 18984 LC_TELEPHONE LC_TIME 18985do 18986 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 18987 eval $as_var=C; export $as_var 18988 else 18989 $as_unset $as_var 18990 fi 18991done 18992 18993# Required to use basename. 18994if expr a : '\(a\)' >/dev/null 2>&1; then 18995 as_expr=expr 18996else 18997 as_expr=false 18998fi 18999 19000if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 19001 as_basename=basename 19002else 19003 as_basename=false 19004fi 19005 19006 19007# Name of the executable. 19008as_me=`$as_basename "$0" || 19009$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19010 X"$0" : 'X\(//\)$' \| \ 19011 X"$0" : 'X\(/\)$' \| \ 19012 . : '\(.\)' 2>/dev/null || 19013echo X/"$0" | 19014 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19015 /^X\/\(\/\/\)$/{ s//\1/; q; } 19016 /^X\/\(\/\).*/{ s//\1/; q; } 19017 s/.*/./; q'` 19018 19019 19020# PATH needs CR, and LINENO needs CR and PATH. 19021# Avoid depending upon Character Ranges. 19022as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19023as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19024as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19025as_cr_digits='0123456789' 19026as_cr_alnum=$as_cr_Letters$as_cr_digits 19027 19028# The user is always right. 19029if test "${PATH_SEPARATOR+set}" != set; then 19030 echo "#! /bin/sh" >conf$$.sh 19031 echo "exit 0" >>conf$$.sh 19032 chmod +x conf$$.sh 19033 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19034 PATH_SEPARATOR=';' 19035 else 19036 PATH_SEPARATOR=: 19037 fi 19038 rm -f conf$$.sh 19039fi 19040 19041 19042 as_lineno_1=$LINENO 19043 as_lineno_2=$LINENO 19044 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19045 test "x$as_lineno_1" != "x$as_lineno_2" && 19046 test "x$as_lineno_3" = "x$as_lineno_2" || { 19047 # Find who we are. Look in the path if we contain no path at all 19048 # relative or not. 19049 case $0 in 19050 *[\\/]* ) as_myself=$0 ;; 19051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19052for as_dir in $PATH 19053do 19054 IFS=$as_save_IFS 19055 test -z "$as_dir" && as_dir=. 19056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19057done 19058 19059 ;; 19060 esac 19061 # We did not find ourselves, most probably we were run as `sh COMMAND' 19062 # in which case we are not to be found in the path. 19063 if test "x$as_myself" = x; then 19064 as_myself=$0 19065 fi 19066 if test ! -f "$as_myself"; then 19067 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19068echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19069 { (exit 1); exit 1; }; } 19070 fi 19071 case $CONFIG_SHELL in 19072 '') 19073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19074for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19075do 19076 IFS=$as_save_IFS 19077 test -z "$as_dir" && as_dir=. 19078 for as_base in sh bash ksh sh5; do 19079 case $as_dir in 19080 /*) 19081 if ("$as_dir/$as_base" -c ' 19082 as_lineno_1=$LINENO 19083 as_lineno_2=$LINENO 19084 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19085 test "x$as_lineno_1" != "x$as_lineno_2" && 19086 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19087 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 19088 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 19089 CONFIG_SHELL=$as_dir/$as_base 19090 export CONFIG_SHELL 19091 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 19092 fi;; 19093 esac 19094 done 19095done 19096;; 19097 esac 19098 19099 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19100 # uniformly replaced by the line number. The first 'sed' inserts a 19101 # line-number line before each line; the second 'sed' does the real 19102 # work. The second script uses 'N' to pair each line-number line 19103 # with the numbered line, and appends trailing '-' during 19104 # substitution so that $LINENO is not a special case at line end. 19105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19106 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 19107 sed '=' <$as_myself | 19108 sed ' 19109 N 19110 s,$,-, 19111 : loop 19112 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 19113 t loop 19114 s,-$,, 19115 s,^['$as_cr_digits']*\n,, 19116 ' >$as_me.lineno && 19117 chmod +x $as_me.lineno || 19118 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 19119echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 19120 { (exit 1); exit 1; }; } 19121 19122 # Don't try to exec as it changes $[0], causing all sort of problems 19123 # (the dirname of $[0] is not the place where we might find the 19124 # original and so on. Autoconf is especially sensible to this). 19125 . ./$as_me.lineno 19126 # Exit status is that of the last command. 19127 exit 19128} 19129 19130 19131case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 19132 *c*,-n*) ECHO_N= ECHO_C=' 19133' ECHO_T=' ' ;; 19134 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 19135 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 19136esac 19137 19138if expr a : '\(a\)' >/dev/null 2>&1; then 19139 as_expr=expr 19140else 19141 as_expr=false 19142fi 19143 19144rm -f conf$$ conf$$.exe conf$$.file 19145echo >conf$$.file 19146if ln -s conf$$.file conf$$ 2>/dev/null; then 19147 # We could just check for DJGPP; but this test a) works b) is more generic 19148 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19149 if test -f conf$$.exe; then 19150 # Don't use ln at all; we don't have any links 19151 as_ln_s='cp -p' 19152 else 19153 as_ln_s='ln -s' 19154 fi 19155elif ln conf$$.file conf$$ 2>/dev/null; then 19156 as_ln_s=ln 19157else 19158 as_ln_s='cp -p' 19159fi 19160rm -f conf$$ conf$$.exe conf$$.file 19161 19162if mkdir -p . 2>/dev/null; then 19163 as_mkdir_p=: 19164else 19165 as_mkdir_p=false 19166fi 19167 19168as_executable_p="test -f" 19169 19170# Sed expression to map a string onto a valid CPP name. 19171as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 19172 19173# Sed expression to map a string onto a valid variable name. 19174as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19175 19176 19177# IFS 19178# We need space, tab and new line, in precisely that order. 19179as_nl=' 19180' 19181IFS=" $as_nl" 19182 19183# CDPATH. 19184$as_unset CDPATH 19185 19186exec 6>&1 19187 19188# Open the log real soon, to keep \$[0] and so on meaningful, and to 19189# report actual input values of CONFIG_FILES etc. instead of their 19190# values after options handling. Logging --version etc. is OK. 19191exec 5>>config.log 19192{ 19193 echo 19194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19195## Running $as_me. ## 19196_ASBOX 19197} >&5 19198cat >&5 <<_CSEOF 19199 19200This file was extended by $as_me, which was 19201generated by GNU Autoconf 2.57. Invocation command line was 19202 19203 CONFIG_FILES = $CONFIG_FILES 19204 CONFIG_HEADERS = $CONFIG_HEADERS 19205 CONFIG_LINKS = $CONFIG_LINKS 19206 CONFIG_COMMANDS = $CONFIG_COMMANDS 19207 $ $0 $@ 19208 19209_CSEOF 19210echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 19211echo >&5 19212_ACEOF 19213 19214# Files that config.status was made for. 19215if test -n "$ac_config_files"; then 19216 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19217fi 19218 19219if test -n "$ac_config_headers"; then 19220 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19221fi 19222 19223if test -n "$ac_config_links"; then 19224 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19225fi 19226 19227if test -n "$ac_config_commands"; then 19228 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19229fi 19230 19231cat >>$CONFIG_STATUS <<\_ACEOF 19232 19233ac_cs_usage="\ 19234\`$as_me' instantiates files from templates according to the 19235current configuration. 19236 19237Usage: $0 [OPTIONS] [FILE]... 19238 19239 -h, --help print this help, then exit 19240 -V, --version print version number, then exit 19241 -q, --quiet do not print progress messages 19242 -d, --debug don't remove temporary files 19243 --recheck update $as_me by reconfiguring in the same conditions 19244 --file=FILE[:TEMPLATE] 19245 instantiate the configuration file FILE 19246 19247Configuration files: 19248$config_files 19249 19250Configuration commands: 19251$config_commands 19252 19253Report bugs to <bug-autoconf@gnu.org>." 19254_ACEOF 19255 19256cat >>$CONFIG_STATUS <<_ACEOF 19257ac_cs_version="\\ 19258config.status 19259configured by $0, generated by GNU Autoconf 2.57, 19260 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19261 19262Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 19263Free Software Foundation, Inc. 19264This config.status script is free software; the Free Software Foundation 19265gives unlimited permission to copy, distribute and modify it." 19266srcdir=$srcdir 19267INSTALL="$INSTALL" 19268_ACEOF 19269 19270cat >>$CONFIG_STATUS <<\_ACEOF 19271# If no file are specified by the user, then we need to provide default 19272# value. By we need to know if files were specified by the user. 19273ac_need_defaults=: 19274while test $# != 0 19275do 19276 case $1 in 19277 --*=*) 19278 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19279 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19280 ac_shift=: 19281 ;; 19282 -*) 19283 ac_option=$1 19284 ac_optarg=$2 19285 ac_shift=shift 19286 ;; 19287 *) # This is not an option, so the user has probably given explicit 19288 # arguments. 19289 ac_option=$1 19290 ac_need_defaults=false;; 19291 esac 19292 19293 case $ac_option in 19294 # Handling of the options. 19295_ACEOF 19296cat >>$CONFIG_STATUS <<\_ACEOF 19297 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19298 ac_cs_recheck=: ;; 19299 --version | --vers* | -V ) 19300 echo "$ac_cs_version"; exit 0 ;; 19301 --he | --h) 19302 # Conflict between --help and --header 19303 { { echo "$as_me:$LINENO: error: ambiguous option: $1 19304Try \`$0 --help' for more information." >&5 19305echo "$as_me: error: ambiguous option: $1 19306Try \`$0 --help' for more information." >&2;} 19307 { (exit 1); exit 1; }; };; 19308 --help | --hel | -h ) 19309 echo "$ac_cs_usage"; exit 0 ;; 19310 --debug | --d* | -d ) 19311 debug=: ;; 19312 --file | --fil | --fi | --f ) 19313 $ac_shift 19314 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 19315 ac_need_defaults=false;; 19316 --header | --heade | --head | --hea ) 19317 $ac_shift 19318 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 19319 ac_need_defaults=false;; 19320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19321 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19322 ac_cs_silent=: ;; 19323 19324 # This is an error. 19325 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 19326Try \`$0 --help' for more information." >&5 19327echo "$as_me: error: unrecognized option: $1 19328Try \`$0 --help' for more information." >&2;} 19329 { (exit 1); exit 1; }; } ;; 19330 19331 *) ac_config_targets="$ac_config_targets $1" ;; 19332 19333 esac 19334 shift 19335done 19336 19337ac_configure_extra_args= 19338 19339if $ac_cs_silent; then 19340 exec 6>/dev/null 19341 ac_configure_extra_args="$ac_configure_extra_args --silent" 19342fi 19343 19344_ACEOF 19345cat >>$CONFIG_STATUS <<_ACEOF 19346if \$ac_cs_recheck; then 19347 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 19348 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19349fi 19350 19351_ACEOF 19352 19353cat >>$CONFIG_STATUS <<_ACEOF 19354# 19355# INIT-COMMANDS section. 19356# 19357 19358AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19359 19360_ACEOF 19361 19362 19363 19364cat >>$CONFIG_STATUS <<\_ACEOF 19365for ac_config_target in $ac_config_targets 19366do 19367 case "$ac_config_target" in 19368 # Handling of arguments. 19369 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19370 "siddefs.h" ) CONFIG_FILES="$CONFIG_FILES siddefs.h" ;; 19371 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19372 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 19373echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19374 { (exit 1); exit 1; }; };; 19375 esac 19376done 19377 19378# If the user did not use the arguments to specify the items to instantiate, 19379# then the envvar interface is used. Set only those that are not. 19380# We use the long form for the default assignment because of an extremely 19381# bizarre bug on SunOS 4.1.3. 19382if $ac_need_defaults; then 19383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19384 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19385fi 19386 19387# Have a temporary directory for convenience. Make it in the build tree 19388# simply because there is no reason to put it here, and in addition, 19389# creating and moving files from /tmp can sometimes cause problems. 19390# Create a temporary directory, and hook for its removal unless debugging. 19391$debug || 19392{ 19393 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 19394 trap '{ (exit 1); exit 1; }' 1 2 13 15 19395} 19396 19397# Create a (secure) tmp directory for tmp files. 19398 19399{ 19400 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 19401 test -n "$tmp" && test -d "$tmp" 19402} || 19403{ 19404 tmp=./confstat$$-$RANDOM 19405 (umask 077 && mkdir $tmp) 19406} || 19407{ 19408 echo "$me: cannot create a temporary directory in ." >&2 19409 { (exit 1); exit 1; } 19410} 19411 19412_ACEOF 19413 19414cat >>$CONFIG_STATUS <<_ACEOF 19415 19416# 19417# CONFIG_FILES section. 19418# 19419 19420# No need to generate the scripts if there are no CONFIG_FILES. 19421# This happens for instance when ./config.status config.h 19422if test -n "\$CONFIG_FILES"; then 19423 # Protect against being on the right side of a sed subst in config.status. 19424 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 19425 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 19426s,@SHELL@,$SHELL,;t t 19427s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 19428s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 19429s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 19430s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 19431s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 19432s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 19433s,@exec_prefix@,$exec_prefix,;t t 19434s,@prefix@,$prefix,;t t 19435s,@program_transform_name@,$program_transform_name,;t t 19436s,@bindir@,$bindir,;t t 19437s,@sbindir@,$sbindir,;t t 19438s,@libexecdir@,$libexecdir,;t t 19439s,@datadir@,$datadir,;t t 19440s,@sysconfdir@,$sysconfdir,;t t 19441s,@sharedstatedir@,$sharedstatedir,;t t 19442s,@localstatedir@,$localstatedir,;t t 19443s,@libdir@,$libdir,;t t 19444s,@includedir@,$includedir,;t t 19445s,@oldincludedir@,$oldincludedir,;t t 19446s,@infodir@,$infodir,;t t 19447s,@mandir@,$mandir,;t t 19448s,@build_alias@,$build_alias,;t t 19449s,@host_alias@,$host_alias,;t t 19450s,@target_alias@,$target_alias,;t t 19451s,@DEFS@,$DEFS,;t t 19452s,@ECHO_C@,$ECHO_C,;t t 19453s,@ECHO_N@,$ECHO_N,;t t 19454s,@ECHO_T@,$ECHO_T,;t t 19455s,@LIBS@,$LIBS,;t t 19456s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 19457s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 19458s,@INSTALL_DATA@,$INSTALL_DATA,;t t 19459s,@CYGPATH_W@,$CYGPATH_W,;t t 19460s,@PACKAGE@,$PACKAGE,;t t 19461s,@VERSION@,$VERSION,;t t 19462s,@ACLOCAL@,$ACLOCAL,;t t 19463s,@AUTOCONF@,$AUTOCONF,;t t 19464s,@AUTOMAKE@,$AUTOMAKE,;t t 19465s,@AUTOHEADER@,$AUTOHEADER,;t t 19466s,@MAKEINFO@,$MAKEINFO,;t t 19467s,@AMTAR@,$AMTAR,;t t 19468s,@install_sh@,$install_sh,;t t 19469s,@STRIP@,$STRIP,;t t 19470s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 19471s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 19472s,@AWK@,$AWK,;t t 19473s,@SET_MAKE@,$SET_MAKE,;t t 19474s,@am__leading_dot@,$am__leading_dot,;t t 19475s,@RESID_INLINING@,$RESID_INLINING,;t t 19476s,@RESID_INLINE@,$RESID_INLINE,;t t 19477s,@CXX@,$CXX,;t t 19478s,@CXXFLAGS@,$CXXFLAGS,;t t 19479s,@LDFLAGS@,$LDFLAGS,;t t 19480s,@CPPFLAGS@,$CPPFLAGS,;t t 19481s,@ac_ct_CXX@,$ac_ct_CXX,;t t 19482s,@EXEEXT@,$EXEEXT,;t t 19483s,@OBJEXT@,$OBJEXT,;t t 19484s,@DEPDIR@,$DEPDIR,;t t 19485s,@am__include@,$am__include,;t t 19486s,@am__quote@,$am__quote,;t t 19487s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 19488s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 19489s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 19490s,@CXXDEPMODE@,$CXXDEPMODE,;t t 19491s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 19492s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 19493s,@PERL@,$PERL,;t t 19494s,@CXXCPP@,$CXXCPP,;t t 19495s,@EGREP@,$EGREP,;t t 19496s,@RESID_HAVE_BOOL@,$RESID_HAVE_BOOL,;t t 19497s,@build@,$build,;t t 19498s,@build_cpu@,$build_cpu,;t t 19499s,@build_vendor@,$build_vendor,;t t 19500s,@build_os@,$build_os,;t t 19501s,@host@,$host,;t t 19502s,@host_cpu@,$host_cpu,;t t 19503s,@host_vendor@,$host_vendor,;t t 19504s,@host_os@,$host_os,;t t 19505s,@CC@,$CC,;t t 19506s,@CFLAGS@,$CFLAGS,;t t 19507s,@ac_ct_CC@,$ac_ct_CC,;t t 19508s,@CCDEPMODE@,$CCDEPMODE,;t t 19509s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 19510s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 19511s,@LN_S@,$LN_S,;t t 19512s,@ECHO@,$ECHO,;t t 19513s,@AR@,$AR,;t t 19514s,@ac_ct_AR@,$ac_ct_AR,;t t 19515s,@RANLIB@,$RANLIB,;t t 19516s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 19517s,@CPP@,$CPP,;t t 19518s,@F77@,$F77,;t t 19519s,@FFLAGS@,$FFLAGS,;t t 19520s,@ac_ct_F77@,$ac_ct_F77,;t t 19521s,@LIBTOOL@,$LIBTOOL,;t t 19522s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t 19523s,@LTVERSION@,$LTVERSION,;t t 19524s,@RESID_NAMESPACE@,$RESID_NAMESPACE,;t t 19525s,@INSTALL_RESID_TRUE@,$INSTALL_RESID_TRUE,;t t 19526s,@INSTALL_RESID_FALSE@,$INSTALL_RESID_FALSE,;t t 19527s,@LIBOBJS@,$LIBOBJS,;t t 19528s,@LTLIBOBJS@,$LTLIBOBJS,;t t 19529CEOF 19530 19531_ACEOF 19532 19533 cat >>$CONFIG_STATUS <<\_ACEOF 19534 # Split the substitutions into bite-sized pieces for seds with 19535 # small command number limits, like on Digital OSF/1 and HP-UX. 19536 ac_max_sed_lines=48 19537 ac_sed_frag=1 # Number of current file. 19538 ac_beg=1 # First line for current file. 19539 ac_end=$ac_max_sed_lines # Line after last line for current file. 19540 ac_more_lines=: 19541 ac_sed_cmds= 19542 while $ac_more_lines; do 19543 if test $ac_beg -gt 1; then 19544 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19545 else 19546 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19547 fi 19548 if test ! -s $tmp/subs.frag; then 19549 ac_more_lines=false 19550 else 19551 # The purpose of the label and of the branching condition is to 19552 # speed up the sed processing (if there are no `@' at all, there 19553 # is no need to browse any of the substitutions). 19554 # These are the two extra sed commands mentioned above. 19555 (echo ':t 19556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 19557 if test -z "$ac_sed_cmds"; then 19558 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 19559 else 19560 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 19561 fi 19562 ac_sed_frag=`expr $ac_sed_frag + 1` 19563 ac_beg=$ac_end 19564 ac_end=`expr $ac_end + $ac_max_sed_lines` 19565 fi 19566 done 19567 if test -z "$ac_sed_cmds"; then 19568 ac_sed_cmds=cat 19569 fi 19570fi # test -n "$CONFIG_FILES" 19571 19572_ACEOF 19573cat >>$CONFIG_STATUS <<\_ACEOF 19574for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 19575 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19576 case $ac_file in 19577 - | *:- | *:-:* ) # input from stdin 19578 cat >$tmp/stdin 19579 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19580 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19581 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19582 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19583 * ) ac_file_in=$ac_file.in ;; 19584 esac 19585 19586 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 19587 ac_dir=`(dirname "$ac_file") 2>/dev/null || 19588$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19589 X"$ac_file" : 'X\(//\)[^/]' \| \ 19590 X"$ac_file" : 'X\(//\)$' \| \ 19591 X"$ac_file" : 'X\(/\)' \| \ 19592 . : '\(.\)' 2>/dev/null || 19593echo X"$ac_file" | 19594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19595 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19596 /^X\(\/\/\)$/{ s//\1/; q; } 19597 /^X\(\/\).*/{ s//\1/; q; } 19598 s/.*/./; q'` 19599 { if $as_mkdir_p; then 19600 mkdir -p "$ac_dir" 19601 else 19602 as_dir="$ac_dir" 19603 as_dirs= 19604 while test ! -d "$as_dir"; do 19605 as_dirs="$as_dir $as_dirs" 19606 as_dir=`(dirname "$as_dir") 2>/dev/null || 19607$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19608 X"$as_dir" : 'X\(//\)[^/]' \| \ 19609 X"$as_dir" : 'X\(//\)$' \| \ 19610 X"$as_dir" : 'X\(/\)' \| \ 19611 . : '\(.\)' 2>/dev/null || 19612echo X"$as_dir" | 19613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19614 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19615 /^X\(\/\/\)$/{ s//\1/; q; } 19616 /^X\(\/\).*/{ s//\1/; q; } 19617 s/.*/./; q'` 19618 done 19619 test ! -n "$as_dirs" || mkdir $as_dirs 19620 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 19621echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 19622 { (exit 1); exit 1; }; }; } 19623 19624 ac_builddir=. 19625 19626if test "$ac_dir" != .; then 19627 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19628 # A "../" for each directory in $ac_dir_suffix. 19629 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 19630else 19631 ac_dir_suffix= ac_top_builddir= 19632fi 19633 19634case $srcdir in 19635 .) # No --srcdir option. We are building in place. 19636 ac_srcdir=. 19637 if test -z "$ac_top_builddir"; then 19638 ac_top_srcdir=. 19639 else 19640 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 19641 fi ;; 19642 [\\/]* | ?:[\\/]* ) # Absolute path. 19643 ac_srcdir=$srcdir$ac_dir_suffix; 19644 ac_top_srcdir=$srcdir ;; 19645 *) # Relative path. 19646 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 19647 ac_top_srcdir=$ac_top_builddir$srcdir ;; 19648esac 19649# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 19650# absolute. 19651ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 19652ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 19653ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 19654ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 19655 19656 19657 case $INSTALL in 19658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19659 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 19660 esac 19661 19662 if test x"$ac_file" != x-; then 19663 { echo "$as_me:$LINENO: creating $ac_file" >&5 19664echo "$as_me: creating $ac_file" >&6;} 19665 rm -f "$ac_file" 19666 fi 19667 # Let's still pretend it is `configure' which instantiates (i.e., don't 19668 # use $as_me), people would be surprised to read: 19669 # /* config.h. Generated by config.status. */ 19670 if test x"$ac_file" = x-; then 19671 configure_input= 19672 else 19673 configure_input="$ac_file. " 19674 fi 19675 configure_input=$configure_input"Generated from `echo $ac_file_in | 19676 sed 's,.*/,,'` by configure." 19677 19678 # First look for the input files in the build tree, otherwise in the 19679 # src tree. 19680 ac_file_inputs=`IFS=: 19681 for f in $ac_file_in; do 19682 case $f in 19683 -) echo $tmp/stdin ;; 19684 [\\/$]*) 19685 # Absolute (can't be DOS-style, as IFS=:) 19686 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19687echo "$as_me: error: cannot find input file: $f" >&2;} 19688 { (exit 1); exit 1; }; } 19689 echo $f;; 19690 *) # Relative 19691 if test -f "$f"; then 19692 # Build tree 19693 echo $f 19694 elif test -f "$srcdir/$f"; then 19695 # Source tree 19696 echo $srcdir/$f 19697 else 19698 # /dev/null tree 19699 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19700echo "$as_me: error: cannot find input file: $f" >&2;} 19701 { (exit 1); exit 1; }; } 19702 fi;; 19703 esac 19704 done` || { (exit 1); exit 1; } 19705_ACEOF 19706cat >>$CONFIG_STATUS <<_ACEOF 19707 sed "$ac_vpsub 19708$extrasub 19709_ACEOF 19710cat >>$CONFIG_STATUS <<\_ACEOF 19711:t 19712/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19713s,@configure_input@,$configure_input,;t t 19714s,@srcdir@,$ac_srcdir,;t t 19715s,@abs_srcdir@,$ac_abs_srcdir,;t t 19716s,@top_srcdir@,$ac_top_srcdir,;t t 19717s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 19718s,@builddir@,$ac_builddir,;t t 19719s,@abs_builddir@,$ac_abs_builddir,;t t 19720s,@top_builddir@,$ac_top_builddir,;t t 19721s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 19722s,@INSTALL@,$ac_INSTALL,;t t 19723" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 19724 rm -f $tmp/stdin 19725 if test x"$ac_file" != x-; then 19726 mv $tmp/out $ac_file 19727 else 19728 cat $tmp/out 19729 rm -f $tmp/out 19730 fi 19731 19732done 19733_ACEOF 19734cat >>$CONFIG_STATUS <<\_ACEOF 19735 19736# 19737# CONFIG_COMMANDS section. 19738# 19739for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 19740 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 19741 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 19742 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 19743$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19744 X"$ac_dest" : 'X\(//\)[^/]' \| \ 19745 X"$ac_dest" : 'X\(//\)$' \| \ 19746 X"$ac_dest" : 'X\(/\)' \| \ 19747 . : '\(.\)' 2>/dev/null || 19748echo X"$ac_dest" | 19749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19750 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19751 /^X\(\/\/\)$/{ s//\1/; q; } 19752 /^X\(\/\).*/{ s//\1/; q; } 19753 s/.*/./; q'` 19754 ac_builddir=. 19755 19756if test "$ac_dir" != .; then 19757 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19758 # A "../" for each directory in $ac_dir_suffix. 19759 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 19760else 19761 ac_dir_suffix= ac_top_builddir= 19762fi 19763 19764case $srcdir in 19765 .) # No --srcdir option. We are building in place. 19766 ac_srcdir=. 19767 if test -z "$ac_top_builddir"; then 19768 ac_top_srcdir=. 19769 else 19770 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 19771 fi ;; 19772 [\\/]* | ?:[\\/]* ) # Absolute path. 19773 ac_srcdir=$srcdir$ac_dir_suffix; 19774 ac_top_srcdir=$srcdir ;; 19775 *) # Relative path. 19776 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 19777 ac_top_srcdir=$ac_top_builddir$srcdir ;; 19778esac 19779# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 19780# absolute. 19781ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 19782ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 19783ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 19784ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 19785 19786 19787 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 19788echo "$as_me: executing $ac_dest commands" >&6;} 19789 case $ac_dest in 19790 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 19791 # Strip MF so we end up with the name of the file. 19792 mf=`echo "$mf" | sed -e 's/:.*$//'` 19793 # Check whether this is an Automake generated Makefile or not. 19794 # We used to match only the files named `Makefile.in', but 19795 # some people rename them; so instead we look at the file content. 19796 # Grep'ing the first line is not enough: some people post-process 19797 # each Makefile.in and add a new line on top of each file to say so. 19798 # So let's grep whole file. 19799 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 19800 dirpart=`(dirname "$mf") 2>/dev/null || 19801$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19802 X"$mf" : 'X\(//\)[^/]' \| \ 19803 X"$mf" : 'X\(//\)$' \| \ 19804 X"$mf" : 'X\(/\)' \| \ 19805 . : '\(.\)' 2>/dev/null || 19806echo X"$mf" | 19807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19808 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19809 /^X\(\/\/\)$/{ s//\1/; q; } 19810 /^X\(\/\).*/{ s//\1/; q; } 19811 s/.*/./; q'` 19812 else 19813 continue 19814 fi 19815 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 19816 # Extract the definition of DEP_FILES from the Makefile without 19817 # running `make'. 19818 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 19819 test -z "$DEPDIR" && continue 19820 # When using ansi2knr, U may be empty or an underscore; expand it 19821 U=`sed -n -e '/^U = / s///p' < "$mf"` 19822 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 19823 # We invoke sed twice because it is the simplest approach to 19824 # changing $(DEPDIR) to its actual value in the expansion. 19825 for file in `sed -n -e ' 19826 /^DEP_FILES = .*\\\\$/ { 19827 s/^DEP_FILES = // 19828 :loop 19829 s/\\\\$// 19830 p 19831 n 19832 /\\\\$/ b loop 19833 p 19834 } 19835 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 19836 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19837 # Make sure the directory exists. 19838 test -f "$dirpart/$file" && continue 19839 fdir=`(dirname "$file") 2>/dev/null || 19840$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19841 X"$file" : 'X\(//\)[^/]' \| \ 19842 X"$file" : 'X\(//\)$' \| \ 19843 X"$file" : 'X\(/\)' \| \ 19844 . : '\(.\)' 2>/dev/null || 19845echo X"$file" | 19846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19847 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19848 /^X\(\/\/\)$/{ s//\1/; q; } 19849 /^X\(\/\).*/{ s//\1/; q; } 19850 s/.*/./; q'` 19851 { if $as_mkdir_p; then 19852 mkdir -p $dirpart/$fdir 19853 else 19854 as_dir=$dirpart/$fdir 19855 as_dirs= 19856 while test ! -d "$as_dir"; do 19857 as_dirs="$as_dir $as_dirs" 19858 as_dir=`(dirname "$as_dir") 2>/dev/null || 19859$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19860 X"$as_dir" : 'X\(//\)[^/]' \| \ 19861 X"$as_dir" : 'X\(//\)$' \| \ 19862 X"$as_dir" : 'X\(/\)' \| \ 19863 . : '\(.\)' 2>/dev/null || 19864echo X"$as_dir" | 19865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19866 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19867 /^X\(\/\/\)$/{ s//\1/; q; } 19868 /^X\(\/\).*/{ s//\1/; q; } 19869 s/.*/./; q'` 19870 done 19871 test ! -n "$as_dirs" || mkdir $as_dirs 19872 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 19873echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 19874 { (exit 1); exit 1; }; }; } 19875 19876 # echo "creating $dirpart/$file" 19877 echo '# dummy' > "$dirpart/$file" 19878 done 19879done 19880 ;; 19881 esac 19882done 19883_ACEOF 19884 19885cat >>$CONFIG_STATUS <<\_ACEOF 19886 19887{ (exit 0); exit 0; } 19888_ACEOF 19889chmod +x $CONFIG_STATUS 19890ac_clean_files=$ac_clean_files_save 19891 19892 19893# configure is writing to config.log, and then calls config.status. 19894# config.status does its own redirection, appending to config.log. 19895# Unfortunately, on DOS this fails, as config.log is still kept open 19896# by configure, so config.status won't be able to write to it; its 19897# output is simply discarded. So we exec the FD to /dev/null, 19898# effectively closing config.log, so it can be properly (re)opened and 19899# appended to by config.status. When coming back to configure, we 19900# need to make the FD available again. 19901if test "$no_create" != yes; then 19902 ac_cs_success=: 19903 ac_config_status_args= 19904 test "$silent" = yes && 19905 ac_config_status_args="$ac_config_status_args --quiet" 19906 exec 5>/dev/null 19907 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19908 exec 5>>config.log 19909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19910 # would make configure fail if this is the last instruction. 19911 $ac_cs_success || { (exit 1); exit 1; } 19912fi 19913 19914