1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for depdemo 0.1. 4# 5# Report bugs to <bug-libtool@gnu.org>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string=`eval $cmd`) 2>/dev/null && 291 echo_test_string=`eval $cmd` && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='depdemo' 425PACKAGE_TARNAME='depdemo' 426PACKAGE_VERSION='0.1' 427PACKAGE_STRING='depdemo 0.1' 428PACKAGE_BUGREPORT='bug-libtool@gnu.org' 429 430ac_unique_file="main.c" 431# Factoring default headers for most tests. 432ac_includes_default="\ 433#include <stdio.h> 434#if HAVE_SYS_TYPES_H 435# include <sys/types.h> 436#endif 437#if HAVE_SYS_STAT_H 438# include <sys/stat.h> 439#endif 440#if STDC_HEADERS 441# include <stdlib.h> 442# include <stddef.h> 443#else 444# if HAVE_STDLIB_H 445# include <stdlib.h> 446# endif 447#endif 448#if HAVE_STRING_H 449# if !STDC_HEADERS && HAVE_MEMORY_H 450# include <memory.h> 451# endif 452# include <string.h> 453#endif 454#if HAVE_STRINGS_H 455# include <strings.h> 456#endif 457#if HAVE_INTTYPES_H 458# include <inttypes.h> 459#else 460# if HAVE_STDINT_H 461# include <stdint.h> 462# endif 463#endif 464#if HAVE_UNISTD_H 465# include <unistd.h> 466#endif" 467 468ac_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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS STATIC LIBM LIBOBJS LTLIBOBJS' 469ac_subst_files='' 470 471# Initialize some variables set by options. 472ac_init_help= 473ac_init_version=false 474# The variables have the same names as the options, with 475# dashes changed to underlines. 476cache_file=/dev/null 477exec_prefix=NONE 478no_create= 479no_recursion= 480prefix=NONE 481program_prefix=NONE 482program_suffix=NONE 483program_transform_name=s,x,x, 484silent= 485site= 486srcdir= 487verbose= 488x_includes=NONE 489x_libraries=NONE 490 491# Installation directory options. 492# These are left unexpanded so users can "make install exec_prefix=/foo" 493# and all the variables that are supposed to be based on exec_prefix 494# by default will actually change. 495# Use braces instead of parens because sh, perl, etc. also accept them. 496bindir='${exec_prefix}/bin' 497sbindir='${exec_prefix}/sbin' 498libexecdir='${exec_prefix}/libexec' 499datadir='${prefix}/share' 500sysconfdir='${prefix}/etc' 501sharedstatedir='${prefix}/com' 502localstatedir='${prefix}/var' 503libdir='${exec_prefix}/lib' 504includedir='${prefix}/include' 505oldincludedir='/usr/include' 506infodir='${prefix}/info' 507mandir='${prefix}/man' 508 509ac_prev= 510for ac_option 511do 512 # If the previous option needs an argument, assign it. 513 if test -n "$ac_prev"; then 514 eval "$ac_prev=\$ac_option" 515 ac_prev= 516 continue 517 fi 518 519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 520 521 # Accept the important Cygnus configure options, so we can diagnose typos. 522 523 case $ac_option in 524 525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 526 ac_prev=bindir ;; 527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 528 bindir=$ac_optarg ;; 529 530 -build | --build | --buil | --bui | --bu) 531 ac_prev=build_alias ;; 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 533 build_alias=$ac_optarg ;; 534 535 -cache-file | --cache-file | --cache-fil | --cache-fi \ 536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 537 ac_prev=cache_file ;; 538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 540 cache_file=$ac_optarg ;; 541 542 --config-cache | -C) 543 cache_file=config.cache ;; 544 545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 546 ac_prev=datadir ;; 547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 548 | --da=*) 549 datadir=$ac_optarg ;; 550 551 -disable-* | --disable-*) 552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 556 { (exit 1); exit 1; }; } 557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 558 eval "enable_$ac_feature=no" ;; 559 560 -enable-* | --enable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 case $ac_option in 568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 569 *) ac_optarg=yes ;; 570 esac 571 eval "enable_$ac_feature='$ac_optarg'" ;; 572 573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 575 | --exec | --exe | --ex) 576 ac_prev=exec_prefix ;; 577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 579 | --exec=* | --exe=* | --ex=*) 580 exec_prefix=$ac_optarg ;; 581 582 -gas | --gas | --ga | --g) 583 # Obsolete; use --with-gas. 584 with_gas=yes ;; 585 586 -help | --help | --hel | --he | -h) 587 ac_init_help=long ;; 588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 589 ac_init_help=recursive ;; 590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 591 ac_init_help=short ;; 592 593 -host | --host | --hos | --ho) 594 ac_prev=host_alias ;; 595 -host=* | --host=* | --hos=* | --ho=*) 596 host_alias=$ac_optarg ;; 597 598 -includedir | --includedir | --includedi | --included | --include \ 599 | --includ | --inclu | --incl | --inc) 600 ac_prev=includedir ;; 601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 602 | --includ=* | --inclu=* | --incl=* | --inc=*) 603 includedir=$ac_optarg ;; 604 605 -infodir | --infodir | --infodi | --infod | --info | --inf) 606 ac_prev=infodir ;; 607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 608 infodir=$ac_optarg ;; 609 610 -libdir | --libdir | --libdi | --libd) 611 ac_prev=libdir ;; 612 -libdir=* | --libdir=* | --libdi=* | --libd=*) 613 libdir=$ac_optarg ;; 614 615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 616 | --libexe | --libex | --libe) 617 ac_prev=libexecdir ;; 618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 619 | --libexe=* | --libex=* | --libe=*) 620 libexecdir=$ac_optarg ;; 621 622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 623 | --localstate | --localstat | --localsta | --localst \ 624 | --locals | --local | --loca | --loc | --lo) 625 ac_prev=localstatedir ;; 626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 629 localstatedir=$ac_optarg ;; 630 631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 632 ac_prev=mandir ;; 633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 634 mandir=$ac_optarg ;; 635 636 -nfp | --nfp | --nf) 637 # Obsolete; use --without-fp. 638 with_fp=no ;; 639 640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 641 | --no-cr | --no-c | -n) 642 no_create=yes ;; 643 644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 646 no_recursion=yes ;; 647 648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 650 | --oldin | --oldi | --old | --ol | --o) 651 ac_prev=oldincludedir ;; 652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 655 oldincludedir=$ac_optarg ;; 656 657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 658 ac_prev=prefix ;; 659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 660 prefix=$ac_optarg ;; 661 662 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 663 | --program-pre | --program-pr | --program-p) 664 ac_prev=program_prefix ;; 665 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 667 program_prefix=$ac_optarg ;; 668 669 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 670 | --program-suf | --program-su | --program-s) 671 ac_prev=program_suffix ;; 672 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 674 program_suffix=$ac_optarg ;; 675 676 -program-transform-name | --program-transform-name \ 677 | --program-transform-nam | --program-transform-na \ 678 | --program-transform-n | --program-transform- \ 679 | --program-transform | --program-transfor \ 680 | --program-transfo | --program-transf \ 681 | --program-trans | --program-tran \ 682 | --progr-tra | --program-tr | --program-t) 683 ac_prev=program_transform_name ;; 684 -program-transform-name=* | --program-transform-name=* \ 685 | --program-transform-nam=* | --program-transform-na=* \ 686 | --program-transform-n=* | --program-transform-=* \ 687 | --program-transform=* | --program-transfor=* \ 688 | --program-transfo=* | --program-transf=* \ 689 | --program-trans=* | --program-tran=* \ 690 | --progr-tra=* | --program-tr=* | --program-t=*) 691 program_transform_name=$ac_optarg ;; 692 693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 694 | -silent | --silent | --silen | --sile | --sil) 695 silent=yes ;; 696 697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 698 ac_prev=sbindir ;; 699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 700 | --sbi=* | --sb=*) 701 sbindir=$ac_optarg ;; 702 703 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 705 | --sharedst | --shareds | --shared | --share | --shar \ 706 | --sha | --sh) 707 ac_prev=sharedstatedir ;; 708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 711 | --sha=* | --sh=*) 712 sharedstatedir=$ac_optarg ;; 713 714 -site | --site | --sit) 715 ac_prev=site ;; 716 -site=* | --site=* | --sit=*) 717 site=$ac_optarg ;; 718 719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 720 ac_prev=srcdir ;; 721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 722 srcdir=$ac_optarg ;; 723 724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 725 | --syscon | --sysco | --sysc | --sys | --sy) 726 ac_prev=sysconfdir ;; 727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 729 sysconfdir=$ac_optarg ;; 730 731 -target | --target | --targe | --targ | --tar | --ta | --t) 732 ac_prev=target_alias ;; 733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 734 target_alias=$ac_optarg ;; 735 736 -v | -verbose | --verbose | --verbos | --verbo | --verb) 737 verbose=yes ;; 738 739 -version | --version | --versio | --versi | --vers | -V) 740 ac_init_version=: ;; 741 742 -with-* | --with-*) 743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 744 # Reject names that are not valid shell variable names. 745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 746 { echo "$as_me: error: invalid package name: $ac_package" >&2 747 { (exit 1); exit 1; }; } 748 ac_package=`echo $ac_package| sed 's/-/_/g'` 749 case $ac_option in 750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 751 *) ac_optarg=yes ;; 752 esac 753 eval "with_$ac_package='$ac_optarg'" ;; 754 755 -without-* | --without-*) 756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package | sed 's/-/_/g'` 762 eval "with_$ac_package=no" ;; 763 764 --x) 765 # Obsolete; use --with-x. 766 with_x=yes ;; 767 768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 769 | --x-incl | --x-inc | --x-in | --x-i) 770 ac_prev=x_includes ;; 771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 773 x_includes=$ac_optarg ;; 774 775 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 777 ac_prev=x_libraries ;; 778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 780 x_libraries=$ac_optarg ;; 781 782 -*) { echo "$as_me: error: unrecognized option: $ac_option 783Try \`$0 --help' for more information." >&2 784 { (exit 1); exit 1; }; } 785 ;; 786 787 *=*) 788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 792 { (exit 1); exit 1; }; } 793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 794 eval "$ac_envvar='$ac_optarg'" 795 export $ac_envvar ;; 796 797 *) 798 # FIXME: should be removed in autoconf 3.0. 799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 803 ;; 804 805 esac 806done 807 808if test -n "$ac_prev"; then 809 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 810 { echo "$as_me: error: missing argument to $ac_option" >&2 811 { (exit 1); exit 1; }; } 812fi 813 814# Be sure to have absolute paths. 815for ac_var in exec_prefix prefix 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# Be sure to have absolute paths. 826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828do 829 eval ac_val=$`echo $ac_var` 830 case $ac_val in 831 [\\/$]* | ?:[\\/]* ) ;; 832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 833 { (exit 1); exit 1; }; };; 834 esac 835done 836 837# There might be people who depend on the old broken behavior: `$host' 838# used to hold the argument of --host etc. 839# FIXME: To remove some day. 840build=$build_alias 841host=$host_alias 842target=$target_alias 843 844# FIXME: To remove some day. 845if test "x$host_alias" != x; then 846 if test "x$build_alias" = x; then 847 cross_compiling=maybe 848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 849 If a cross compiler is detected then cross compile mode will be used." >&2 850 elif test "x$build_alias" != "x$host_alias"; then 851 cross_compiling=yes 852 fi 853fi 854 855ac_tool_prefix= 856test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858test "$silent" = yes && exec 6>/dev/null 859 860 861# Find the source files, if location was not specified. 862if test -z "$srcdir"; then 863 ac_srcdir_defaulted=yes 864 # Try the directory containing this script, then its parent. 865 ac_confdir=`(dirname "$0") 2>/dev/null || 866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 867 X"$0" : 'X\(//\)[^/]' \| \ 868 X"$0" : 'X\(//\)$' \| \ 869 X"$0" : 'X\(/\)' \| \ 870 . : '\(.\)' 2>/dev/null || 871echo X"$0" | 872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 874 /^X\(\/\/\)$/{ s//\1/; q; } 875 /^X\(\/\).*/{ s//\1/; q; } 876 s/.*/./; q'` 877 srcdir=$ac_confdir 878 if test ! -r $srcdir/$ac_unique_file; then 879 srcdir=.. 880 fi 881else 882 ac_srcdir_defaulted=no 883fi 884if test ! -r $srcdir/$ac_unique_file; then 885 if test "$ac_srcdir_defaulted" = yes; then 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 887 { (exit 1); exit 1; }; } 888 else 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 890 { (exit 1); exit 1; }; } 891 fi 892fi 893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 895 { (exit 1); exit 1; }; } 896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897ac_env_build_alias_set=${build_alias+set} 898ac_env_build_alias_value=$build_alias 899ac_cv_env_build_alias_set=${build_alias+set} 900ac_cv_env_build_alias_value=$build_alias 901ac_env_host_alias_set=${host_alias+set} 902ac_env_host_alias_value=$host_alias 903ac_cv_env_host_alias_set=${host_alias+set} 904ac_cv_env_host_alias_value=$host_alias 905ac_env_target_alias_set=${target_alias+set} 906ac_env_target_alias_value=$target_alias 907ac_cv_env_target_alias_set=${target_alias+set} 908ac_cv_env_target_alias_value=$target_alias 909ac_env_CC_set=${CC+set} 910ac_env_CC_value=$CC 911ac_cv_env_CC_set=${CC+set} 912ac_cv_env_CC_value=$CC 913ac_env_CFLAGS_set=${CFLAGS+set} 914ac_env_CFLAGS_value=$CFLAGS 915ac_cv_env_CFLAGS_set=${CFLAGS+set} 916ac_cv_env_CFLAGS_value=$CFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_env_CPPFLAGS_value=$CPPFLAGS 923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925ac_env_CPP_set=${CPP+set} 926ac_env_CPP_value=$CPP 927ac_cv_env_CPP_set=${CPP+set} 928ac_cv_env_CPP_value=$CPP 929ac_env_CXX_set=${CXX+set} 930ac_env_CXX_value=$CXX 931ac_cv_env_CXX_set=${CXX+set} 932ac_cv_env_CXX_value=$CXX 933ac_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_env_CXXFLAGS_value=$CXXFLAGS 935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 936ac_cv_env_CXXFLAGS_value=$CXXFLAGS 937ac_env_CXXCPP_set=${CXXCPP+set} 938ac_env_CXXCPP_value=$CXXCPP 939ac_cv_env_CXXCPP_set=${CXXCPP+set} 940ac_cv_env_CXXCPP_value=$CXXCPP 941ac_env_F77_set=${F77+set} 942ac_env_F77_value=$F77 943ac_cv_env_F77_set=${F77+set} 944ac_cv_env_F77_value=$F77 945ac_env_FFLAGS_set=${FFLAGS+set} 946ac_env_FFLAGS_value=$FFLAGS 947ac_cv_env_FFLAGS_set=${FFLAGS+set} 948ac_cv_env_FFLAGS_value=$FFLAGS 949 950# 951# Report the --help message. 952# 953if test "$ac_init_help" = "long"; then 954 # Omit some internal or obsolete options to make the list less imposing. 955 # This message is too long to be a string in the A/UX 3.1 sh. 956 cat <<_ACEOF 957\`configure' configures depdemo 0.1 to adapt to many kinds of systems. 958 959Usage: $0 [OPTION]... [VAR=VALUE]... 960 961To assign environment variables (e.g., CC, CFLAGS...), specify them as 962VAR=VALUE. See below for descriptions of some of the useful variables. 963 964Defaults for the options are specified in brackets. 965 966Configuration: 967 -h, --help display this help and exit 968 --help=short display options specific to this package 969 --help=recursive display the short help of all the included packages 970 -V, --version display version information and exit 971 -q, --quiet, --silent do not print \`checking...' messages 972 --cache-file=FILE cache test results in FILE [disabled] 973 -C, --config-cache alias for \`--cache-file=config.cache' 974 -n, --no-create do not create output files 975 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 976 977_ACEOF 978 979 cat <<_ACEOF 980Installation directories: 981 --prefix=PREFIX install architecture-independent files in PREFIX 982 [$ac_default_prefix] 983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 984 [PREFIX] 985 986By default, \`make install' will install all the files in 987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 988an installation prefix other than \`$ac_default_prefix' using \`--prefix', 989for instance \`--prefix=\$HOME'. 990 991For better control, use the options below. 992 993Fine tuning of the installation directories: 994 --bindir=DIR user executables [EPREFIX/bin] 995 --sbindir=DIR system admin executables [EPREFIX/sbin] 996 --libexecdir=DIR program executables [EPREFIX/libexec] 997 --datadir=DIR read-only architecture-independent data [PREFIX/share] 998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1001 --libdir=DIR object code libraries [EPREFIX/lib] 1002 --includedir=DIR C header files [PREFIX/include] 1003 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1004 --infodir=DIR info documentation [PREFIX/info] 1005 --mandir=DIR man documentation [PREFIX/man] 1006_ACEOF 1007 1008 cat <<\_ACEOF 1009 1010Program names: 1011 --program-prefix=PREFIX prepend PREFIX to installed program names 1012 --program-suffix=SUFFIX append SUFFIX to installed program names 1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1014 1015System types: 1016 --build=BUILD configure for building on BUILD [guessed] 1017 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1018_ACEOF 1019fi 1020 1021if test -n "$ac_init_help"; then 1022 case $ac_init_help in 1023 short | recursive ) echo "Configuration of depdemo 0.1:";; 1024 esac 1025 cat <<\_ACEOF 1026 1027Optional Features: 1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1030 --disable-dependency-tracking speeds up one-time build 1031 --enable-dependency-tracking do not reject slow dependency extractors 1032 --enable-shared[=PKGS] 1033 build shared libraries [default=yes] 1034 --enable-static[=PKGS] 1035 build static libraries [default=yes] 1036 --enable-fast-install[=PKGS] 1037 optimize for fast installation [default=yes] 1038 --disable-libtool-lock avoid locking (might break parallel builds) 1039 1040Optional Packages: 1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1044 --with-pic try to use only PIC/non-PIC objects [default=use 1045 both] 1046 --with-tags[=TAGS] 1047 include additional configurations [automatic] 1048 1049Some influential environment variables: 1050 CC C compiler command 1051 CFLAGS C compiler flags 1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1053 nonstandard directory <lib dir> 1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1055 headers in a nonstandard directory <include dir> 1056 CPP C preprocessor 1057 CXX C++ compiler command 1058 CXXFLAGS C++ compiler flags 1059 CXXCPP C++ preprocessor 1060 F77 Fortran 77 compiler command 1061 FFLAGS Fortran 77 compiler flags 1062 1063Use these variables to override the choices made by `configure' or to help 1064it to find libraries and programs with nonstandard names/locations. 1065 1066Report bugs to <bug-libtool@gnu.org>. 1067_ACEOF 1068fi 1069 1070if test "$ac_init_help" = "recursive"; then 1071 # If there are subdirs, report their specific --help. 1072 ac_popdir=`pwd` 1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1074 test -d $ac_dir || continue 1075 ac_builddir=. 1076 1077if test "$ac_dir" != .; then 1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1079 # A "../" for each directory in $ac_dir_suffix. 1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1081else 1082 ac_dir_suffix= ac_top_builddir= 1083fi 1084 1085case $srcdir in 1086 .) # No --srcdir option. We are building in place. 1087 ac_srcdir=. 1088 if test -z "$ac_top_builddir"; then 1089 ac_top_srcdir=. 1090 else 1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1092 fi ;; 1093 [\\/]* | ?:[\\/]* ) # Absolute path. 1094 ac_srcdir=$srcdir$ac_dir_suffix; 1095 ac_top_srcdir=$srcdir ;; 1096 *) # Relative path. 1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1098 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1099esac 1100 1101# Do not use `cd foo && pwd` to compute absolute paths, because 1102# the directories may not exist. 1103case `pwd` in 1104.) ac_abs_builddir="$ac_dir";; 1105*) 1106 case "$ac_dir" in 1107 .) ac_abs_builddir=`pwd`;; 1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1109 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1110 esac;; 1111esac 1112case $ac_abs_builddir in 1113.) ac_abs_top_builddir=${ac_top_builddir}.;; 1114*) 1115 case ${ac_top_builddir}. in 1116 .) ac_abs_top_builddir=$ac_abs_builddir;; 1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1119 esac;; 1120esac 1121case $ac_abs_builddir in 1122.) ac_abs_srcdir=$ac_srcdir;; 1123*) 1124 case $ac_srcdir in 1125 .) ac_abs_srcdir=$ac_abs_builddir;; 1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1128 esac;; 1129esac 1130case $ac_abs_builddir in 1131.) ac_abs_top_srcdir=$ac_top_srcdir;; 1132*) 1133 case $ac_top_srcdir in 1134 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1137 esac;; 1138esac 1139 1140 cd $ac_dir 1141 # Check for guested configure; otherwise get Cygnus style configure. 1142 if test -f $ac_srcdir/configure.gnu; then 1143 echo 1144 $SHELL $ac_srcdir/configure.gnu --help=recursive 1145 elif test -f $ac_srcdir/configure; then 1146 echo 1147 $SHELL $ac_srcdir/configure --help=recursive 1148 elif test -f $ac_srcdir/configure.ac || 1149 test -f $ac_srcdir/configure.in; then 1150 echo 1151 $ac_configure --help 1152 else 1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1154 fi 1155 cd $ac_popdir 1156 done 1157fi 1158 1159test -n "$ac_init_help" && exit 0 1160if $ac_init_version; then 1161 cat <<\_ACEOF 1162depdemo configure 0.1 1163generated by GNU Autoconf 2.59 1164 1165Copyright (C) 2003 Free Software Foundation, Inc. 1166This configure script is free software; the Free Software Foundation 1167gives unlimited permission to copy, distribute and modify it. 1168_ACEOF 1169 exit 0 1170fi 1171exec 5>config.log 1172cat >&5 <<_ACEOF 1173This file contains any messages produced by compilers while 1174running configure, to aid debugging if configure makes a mistake. 1175 1176It was created by depdemo $as_me 0.1, which was 1177generated by GNU Autoconf 2.59. Invocation command line was 1178 1179 $ $0 $@ 1180 1181_ACEOF 1182{ 1183cat <<_ASUNAME 1184## --------- ## 1185## Platform. ## 1186## --------- ## 1187 1188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1189uname -m = `(uname -m) 2>/dev/null || echo unknown` 1190uname -r = `(uname -r) 2>/dev/null || echo unknown` 1191uname -s = `(uname -s) 2>/dev/null || echo unknown` 1192uname -v = `(uname -v) 2>/dev/null || echo unknown` 1193 1194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1196 1197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1200hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1204 1205_ASUNAME 1206 1207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1208for as_dir in $PATH 1209do 1210 IFS=$as_save_IFS 1211 test -z "$as_dir" && as_dir=. 1212 echo "PATH: $as_dir" 1213done 1214 1215} >&5 1216 1217cat >&5 <<_ACEOF 1218 1219 1220## ----------- ## 1221## Core tests. ## 1222## ----------- ## 1223 1224_ACEOF 1225 1226 1227# Keep a trace of the command line. 1228# Strip out --no-create and --no-recursion so they do not pile up. 1229# Strip out --silent because we don't want to record it for future runs. 1230# Also quote any args containing shell meta-characters. 1231# Make two passes to allow for proper duplicate-argument suppression. 1232ac_configure_args= 1233ac_configure_args0= 1234ac_configure_args1= 1235ac_sep= 1236ac_must_keep_next=false 1237for ac_pass in 1 2 1238do 1239 for ac_arg 1240 do 1241 case $ac_arg in 1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1244 | -silent | --silent | --silen | --sile | --sil) 1245 continue ;; 1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1248 esac 1249 case $ac_pass in 1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1251 2) 1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1253 if test $ac_must_keep_next = true; then 1254 ac_must_keep_next=false # Got value, back to normal. 1255 else 1256 case $ac_arg in 1257 *=* | --config-cache | -C | -disable-* | --disable-* \ 1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1260 | -with-* | --with-* | -without-* | --without-* | --x) 1261 case "$ac_configure_args0 " in 1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1263 esac 1264 ;; 1265 -* ) ac_must_keep_next=true ;; 1266 esac 1267 fi 1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1269 # Get rid of the leading space. 1270 ac_sep=" " 1271 ;; 1272 esac 1273 done 1274done 1275$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1276$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1277 1278# When interrupted or exit'd, cleanup temporary files, and complete 1279# config.log. We remove comments because anyway the quotes in there 1280# would cause problems or look ugly. 1281# WARNING: Be sure not to use single quotes in there, as some shells, 1282# such as our DU 5.0 friend, will then `close' the trap. 1283trap 'exit_status=$? 1284 # Save into config.log some information that might help in debugging. 1285 { 1286 echo 1287 1288 cat <<\_ASBOX 1289## ---------------- ## 1290## Cache variables. ## 1291## ---------------- ## 1292_ASBOX 1293 echo 1294 # The following way of writing the cache mishandles newlines in values, 1295{ 1296 (set) 2>&1 | 1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1298 *ac_space=\ *) 1299 sed -n \ 1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1302 ;; 1303 *) 1304 sed -n \ 1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1306 ;; 1307 esac; 1308} 1309 echo 1310 1311 cat <<\_ASBOX 1312## ----------------- ## 1313## Output variables. ## 1314## ----------------- ## 1315_ASBOX 1316 echo 1317 for ac_var in $ac_subst_vars 1318 do 1319 eval ac_val=$`echo $ac_var` 1320 echo "$ac_var='"'"'$ac_val'"'"'" 1321 done | sort 1322 echo 1323 1324 if test -n "$ac_subst_files"; then 1325 cat <<\_ASBOX 1326## ------------- ## 1327## Output files. ## 1328## ------------- ## 1329_ASBOX 1330 echo 1331 for ac_var in $ac_subst_files 1332 do 1333 eval ac_val=$`echo $ac_var` 1334 echo "$ac_var='"'"'$ac_val'"'"'" 1335 done | sort 1336 echo 1337 fi 1338 1339 if test -s confdefs.h; then 1340 cat <<\_ASBOX 1341## ----------- ## 1342## confdefs.h. ## 1343## ----------- ## 1344_ASBOX 1345 echo 1346 sed "/^$/d" confdefs.h | sort 1347 echo 1348 fi 1349 test "$ac_signal" != 0 && 1350 echo "$as_me: caught signal $ac_signal" 1351 echo "$as_me: exit $exit_status" 1352 } >&5 1353 rm -f core *.core && 1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1355 exit $exit_status 1356 ' 0 1357for ac_signal in 1 2 13 15; do 1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1359done 1360ac_signal=0 1361 1362# confdefs.h avoids OS command line length limits that DEFS can exceed. 1363rm -rf conftest* confdefs.h 1364# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1365echo >confdefs.h 1366 1367# Predefined preprocessor variables. 1368 1369cat >>confdefs.h <<_ACEOF 1370#define PACKAGE_NAME "$PACKAGE_NAME" 1371_ACEOF 1372 1373 1374cat >>confdefs.h <<_ACEOF 1375#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1376_ACEOF 1377 1378 1379cat >>confdefs.h <<_ACEOF 1380#define PACKAGE_VERSION "$PACKAGE_VERSION" 1381_ACEOF 1382 1383 1384cat >>confdefs.h <<_ACEOF 1385#define PACKAGE_STRING "$PACKAGE_STRING" 1386_ACEOF 1387 1388 1389cat >>confdefs.h <<_ACEOF 1390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1391_ACEOF 1392 1393 1394# Let the site file select an alternate cache file if it wants to. 1395# Prefer explicitly selected file to automatically selected ones. 1396if test -z "$CONFIG_SITE"; then 1397 if test "x$prefix" != xNONE; then 1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1399 else 1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1401 fi 1402fi 1403for ac_site_file in $CONFIG_SITE; do 1404 if test -r "$ac_site_file"; then 1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1406echo "$as_me: loading site script $ac_site_file" >&6;} 1407 sed 's/^/| /' "$ac_site_file" >&5 1408 . "$ac_site_file" 1409 fi 1410done 1411 1412if test -r "$cache_file"; then 1413 # Some versions of bash will fail to source /dev/null (special 1414 # files actually), so we avoid doing that. 1415 if test -f "$cache_file"; then 1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1417echo "$as_me: loading cache $cache_file" >&6;} 1418 case $cache_file in 1419 [\\/]* | ?:[\\/]* ) . $cache_file;; 1420 *) . ./$cache_file;; 1421 esac 1422 fi 1423else 1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1425echo "$as_me: creating cache $cache_file" >&6;} 1426 >$cache_file 1427fi 1428 1429# Check that the precious variables saved in the cache have kept the same 1430# value. 1431ac_cache_corrupted=false 1432for ac_var in `(set) 2>&1 | 1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1435 eval ac_new_set=\$ac_env_${ac_var}_set 1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1437 eval ac_new_val="\$ac_env_${ac_var}_value" 1438 case $ac_old_set,$ac_new_set in 1439 set,) 1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1441echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1442 ac_cache_corrupted=: ;; 1443 ,set) 1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1445echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1446 ac_cache_corrupted=: ;; 1447 ,);; 1448 *) 1449 if test "x$ac_old_val" != "x$ac_new_val"; then 1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1451echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1453echo "$as_me: former value: $ac_old_val" >&2;} 1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1455echo "$as_me: current value: $ac_new_val" >&2;} 1456 ac_cache_corrupted=: 1457 fi;; 1458 esac 1459 # Pass precious variables to config.status. 1460 if test "$ac_new_set" = set; then 1461 case $ac_new_val in 1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1464 *) ac_arg=$ac_var=$ac_new_val ;; 1465 esac 1466 case " $ac_configure_args " in 1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1469 esac 1470 fi 1471done 1472if $ac_cache_corrupted; then 1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1474echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1477 { (exit 1); exit 1; }; } 1478fi 1479 1480ac_ext=c 1481ac_cpp='$CPP $CPPFLAGS' 1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1484ac_compiler_gnu=$ac_cv_c_compiler_gnu 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515## ------------------------ ## 1516## Automake Initialisation. ## 1517## ------------------------ ## 1518am__api_version="1.9" 1519ac_aux_dir= 1520for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1521 if test -f $ac_dir/install-sh; then 1522 ac_aux_dir=$ac_dir 1523 ac_install_sh="$ac_aux_dir/install-sh -c" 1524 break 1525 elif test -f $ac_dir/install.sh; then 1526 ac_aux_dir=$ac_dir 1527 ac_install_sh="$ac_aux_dir/install.sh -c" 1528 break 1529 elif test -f $ac_dir/shtool; then 1530 ac_aux_dir=$ac_dir 1531 ac_install_sh="$ac_aux_dir/shtool install -c" 1532 break 1533 fi 1534done 1535if test -z "$ac_aux_dir"; then 1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1537echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1538 { (exit 1); exit 1; }; } 1539fi 1540ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1541ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1543 1544# Find a good install program. We prefer a C program (faster), 1545# so one script is as good as another. But avoid the broken or 1546# incompatible versions: 1547# SysV /etc/install, /usr/sbin/install 1548# SunOS /usr/etc/install 1549# IRIX /sbin/install 1550# AIX /bin/install 1551# AmigaOS /C/install, which installs bootblocks on floppy discs 1552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1553# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1555# OS/2's system install, which has a completely different semantic 1556# ./install, which can be erroneously created by make from ./install.sh. 1557echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1558echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1559if test -z "$INSTALL"; then 1560if test "${ac_cv_path_install+set}" = set; then 1561 echo $ECHO_N "(cached) $ECHO_C" >&6 1562else 1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1564for as_dir in $PATH 1565do 1566 IFS=$as_save_IFS 1567 test -z "$as_dir" && as_dir=. 1568 # Account for people who put trailing slashes in PATH elements. 1569case $as_dir/ in 1570 ./ | .// | /cC/* | \ 1571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1572 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1573 /usr/ucb/* ) ;; 1574 *) 1575 # OSF1 and SCO ODT 3.0 have their own names for install. 1576 # Don't use installbsd from OSF since it installs stuff as root 1577 # by default. 1578 for ac_prog in ginstall scoinst install; do 1579 for ac_exec_ext in '' $ac_executable_extensions; do 1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1581 if test $ac_prog = install && 1582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1583 # AIX install. It has an incompatible calling convention. 1584 : 1585 elif test $ac_prog = install && 1586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1587 # program-specific install script used by HP pwplus--don't use. 1588 : 1589 else 1590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1591 break 3 1592 fi 1593 fi 1594 done 1595 done 1596 ;; 1597esac 1598done 1599 1600 1601fi 1602 if test "${ac_cv_path_install+set}" = set; then 1603 INSTALL=$ac_cv_path_install 1604 else 1605 # As a last resort, use the slow shell script. We don't cache a 1606 # path for INSTALL within a source directory, because that will 1607 # break other packages using the cache if that directory is 1608 # removed, or if the path is relative. 1609 INSTALL=$ac_install_sh 1610 fi 1611fi 1612echo "$as_me:$LINENO: result: $INSTALL" >&5 1613echo "${ECHO_T}$INSTALL" >&6 1614 1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1616# It thinks the first close brace ends the variable substitution. 1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1618 1619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1620 1621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1622 1623echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1624echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1625# Just in case 1626sleep 1 1627echo timestamp > conftest.file 1628# Do `set' in a subshell so we don't clobber the current shell's 1629# arguments. Must try -L first in case configure is actually a 1630# symlink; some systems play weird games with the mod time of symlinks 1631# (eg FreeBSD returns the mod time of the symlink's containing 1632# directory). 1633if ( 1634 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1635 if test "$*" = "X"; then 1636 # -L didn't work. 1637 set X `ls -t $srcdir/configure conftest.file` 1638 fi 1639 rm -f conftest.file 1640 if test "$*" != "X $srcdir/configure conftest.file" \ 1641 && test "$*" != "X conftest.file $srcdir/configure"; then 1642 1643 # If neither matched, then we have a broken ls. This can happen 1644 # if, for instance, CONFIG_SHELL is bash and it inherits a 1645 # broken ls alias from the environment. This has actually 1646 # happened. Such a system could not be considered "sane". 1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1648alias in your environment" >&5 1649echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1650alias in your environment" >&2;} 1651 { (exit 1); exit 1; }; } 1652 fi 1653 1654 test "$2" = conftest.file 1655 ) 1656then 1657 # Ok. 1658 : 1659else 1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1661Check your system clock" >&5 1662echo "$as_me: error: newly created file is older than distributed files! 1663Check your system clock" >&2;} 1664 { (exit 1); exit 1; }; } 1665fi 1666echo "$as_me:$LINENO: result: yes" >&5 1667echo "${ECHO_T}yes" >&6 1668test "$program_prefix" != NONE && 1669 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1670# Use a double $ so make ignores it. 1671test "$program_suffix" != NONE && 1672 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1673# Double any \ or $. echo might interpret backslashes. 1674# By default was `s,x,x', remove it if useless. 1675cat <<\_ACEOF >conftest.sed 1676s/[\\$]/&&/g;s/;s,x,x,$// 1677_ACEOF 1678program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1679rm conftest.sed 1680 1681# expand $ac_aux_dir to an absolute path 1682am_aux_dir=`cd $ac_aux_dir && pwd` 1683 1684test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1685# Use eval to expand $SHELL 1686if eval "$MISSING --run true"; then 1687 am_missing_run="$MISSING --run " 1688else 1689 am_missing_run= 1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1691echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1692fi 1693 1694if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1695 # We used to keeping the `.' as first argument, in order to 1696 # allow $(mkdir_p) to be used without argument. As in 1697 # $(mkdir_p) $(somedir) 1698 # where $(somedir) is conditionally defined. However this is wrong 1699 # for two reasons: 1700 # 1. if the package is installed by a user who cannot write `.' 1701 # make install will fail, 1702 # 2. the above comment should most certainly read 1703 # $(mkdir_p) $(DESTDIR)$(somedir) 1704 # so it does not work when $(somedir) is undefined and 1705 # $(DESTDIR) is not. 1706 # To support the latter case, we have to write 1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1708 # so the `.' trick is pointless. 1709 mkdir_p='mkdir -p --' 1710else 1711 # On NextStep and OpenStep, the `mkdir' command does not 1712 # recognize any option. It will interpret all options as 1713 # directories to create, and then abort because `.' already 1714 # exists. 1715 for d in ./-p ./--version; 1716 do 1717 test -d $d && rmdir $d 1718 done 1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1720 if test -f "$ac_aux_dir/mkinstalldirs"; then 1721 mkdir_p='$(mkinstalldirs)' 1722 else 1723 mkdir_p='$(install_sh) -d' 1724 fi 1725fi 1726 1727for ac_prog in gawk mawk nawk awk 1728do 1729 # Extract the first word of "$ac_prog", so it can be a program name with args. 1730set dummy $ac_prog; ac_word=$2 1731echo "$as_me:$LINENO: checking for $ac_word" >&5 1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1733if test "${ac_cv_prog_AWK+set}" = set; then 1734 echo $ECHO_N "(cached) $ECHO_C" >&6 1735else 1736 if test -n "$AWK"; then 1737 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1738else 1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1740for as_dir in $PATH 1741do 1742 IFS=$as_save_IFS 1743 test -z "$as_dir" && as_dir=. 1744 for ac_exec_ext in '' $ac_executable_extensions; do 1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1746 ac_cv_prog_AWK="$ac_prog" 1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1748 break 2 1749 fi 1750done 1751done 1752 1753fi 1754fi 1755AWK=$ac_cv_prog_AWK 1756if test -n "$AWK"; then 1757 echo "$as_me:$LINENO: result: $AWK" >&5 1758echo "${ECHO_T}$AWK" >&6 1759else 1760 echo "$as_me:$LINENO: result: no" >&5 1761echo "${ECHO_T}no" >&6 1762fi 1763 1764 test -n "$AWK" && break 1765done 1766 1767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1771 echo $ECHO_N "(cached) $ECHO_C" >&6 1772else 1773 cat >conftest.make <<\_ACEOF 1774all: 1775 @echo 'ac_maketemp="$(MAKE)"' 1776_ACEOF 1777# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1779if test -n "$ac_maketemp"; then 1780 eval ac_cv_prog_make_${ac_make}_set=yes 1781else 1782 eval ac_cv_prog_make_${ac_make}_set=no 1783fi 1784rm -f conftest.make 1785fi 1786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1787 echo "$as_me:$LINENO: result: yes" >&5 1788echo "${ECHO_T}yes" >&6 1789 SET_MAKE= 1790else 1791 echo "$as_me:$LINENO: result: no" >&5 1792echo "${ECHO_T}no" >&6 1793 SET_MAKE="MAKE=${MAKE-make}" 1794fi 1795 1796rm -rf .tst 2>/dev/null 1797mkdir .tst 2>/dev/null 1798if test -d .tst; then 1799 am__leading_dot=. 1800else 1801 am__leading_dot=_ 1802fi 1803rmdir .tst 2>/dev/null 1804 1805# test to see if srcdir already configured 1806if test "`cd $srcdir && pwd`" != "`pwd`" && 1807 test -f $srcdir/config.status; then 1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1810 { (exit 1); exit 1; }; } 1811fi 1812 1813# test whether we have cygpath 1814if test -z "$CYGPATH_W"; then 1815 if (cygpath --version) >/dev/null 2>/dev/null; then 1816 CYGPATH_W='cygpath -w' 1817 else 1818 CYGPATH_W=echo 1819 fi 1820fi 1821 1822 1823# Define the identity of the package. 1824 PACKAGE=depdemo 1825 VERSION=0.1 1826 1827 1828cat >>confdefs.h <<_ACEOF 1829#define PACKAGE "$PACKAGE" 1830_ACEOF 1831 1832 1833cat >>confdefs.h <<_ACEOF 1834#define VERSION "$VERSION" 1835_ACEOF 1836 1837# Some tools Automake needs. 1838 1839ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1840 1841 1842AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1843 1844 1845AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1846 1847 1848AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1849 1850 1851MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1852 1853install_sh=${install_sh-"$am_aux_dir/install-sh"} 1854 1855# Installed binaries are usually stripped using `strip' when the user 1856# run `make install-strip'. However `strip' might not be the right 1857# tool to use in cross-compilation environments, therefore Automake 1858# will honor the `STRIP' environment variable to overrule this program. 1859if test "$cross_compiling" != no; then 1860 if test -n "$ac_tool_prefix"; then 1861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1862set dummy ${ac_tool_prefix}strip; ac_word=$2 1863echo "$as_me:$LINENO: checking for $ac_word" >&5 1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1865if test "${ac_cv_prog_STRIP+set}" = set; then 1866 echo $ECHO_N "(cached) $ECHO_C" >&6 1867else 1868 if test -n "$STRIP"; then 1869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1870else 1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1872for as_dir in $PATH 1873do 1874 IFS=$as_save_IFS 1875 test -z "$as_dir" && as_dir=. 1876 for ac_exec_ext in '' $ac_executable_extensions; do 1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1878 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1880 break 2 1881 fi 1882done 1883done 1884 1885fi 1886fi 1887STRIP=$ac_cv_prog_STRIP 1888if test -n "$STRIP"; then 1889 echo "$as_me:$LINENO: result: $STRIP" >&5 1890echo "${ECHO_T}$STRIP" >&6 1891else 1892 echo "$as_me:$LINENO: result: no" >&5 1893echo "${ECHO_T}no" >&6 1894fi 1895 1896fi 1897if test -z "$ac_cv_prog_STRIP"; then 1898 ac_ct_STRIP=$STRIP 1899 # Extract the first word of "strip", so it can be a program name with args. 1900set dummy strip; ac_word=$2 1901echo "$as_me:$LINENO: checking for $ac_word" >&5 1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1904 echo $ECHO_N "(cached) $ECHO_C" >&6 1905else 1906 if test -n "$ac_ct_STRIP"; then 1907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1908else 1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910for as_dir in $PATH 1911do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1916 ac_cv_prog_ac_ct_STRIP="strip" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920done 1921done 1922 1923 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1924fi 1925fi 1926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1927if test -n "$ac_ct_STRIP"; then 1928 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1929echo "${ECHO_T}$ac_ct_STRIP" >&6 1930else 1931 echo "$as_me:$LINENO: result: no" >&5 1932echo "${ECHO_T}no" >&6 1933fi 1934 1935 STRIP=$ac_ct_STRIP 1936else 1937 STRIP="$ac_cv_prog_STRIP" 1938fi 1939 1940fi 1941INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1942 1943# We need awk for the "check" target. The system "awk" is bad on 1944# some platforms. 1945# Always define AMTAR for backward compatibility. 1946 1947AMTAR=${AMTAR-"${am_missing_run}tar"} 1948 1949am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1950 1951 1952 1953 1954 1955 1956 1957## ---------------- ## 1958## compiler checks. ## 1959## ---------------- ## 1960ac_ext=c 1961ac_cpp='$CPP $CPPFLAGS' 1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1964ac_compiler_gnu=$ac_cv_c_compiler_gnu 1965if test -n "$ac_tool_prefix"; then 1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1967set dummy ${ac_tool_prefix}gcc; ac_word=$2 1968echo "$as_me:$LINENO: checking for $ac_word" >&5 1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1970if test "${ac_cv_prog_CC+set}" = set; then 1971 echo $ECHO_N "(cached) $ECHO_C" >&6 1972else 1973 if test -n "$CC"; then 1974 ac_cv_prog_CC="$CC" # Let the user override the test. 1975else 1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1977for as_dir in $PATH 1978do 1979 IFS=$as_save_IFS 1980 test -z "$as_dir" && as_dir=. 1981 for ac_exec_ext in '' $ac_executable_extensions; do 1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1983 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1985 break 2 1986 fi 1987done 1988done 1989 1990fi 1991fi 1992CC=$ac_cv_prog_CC 1993if test -n "$CC"; then 1994 echo "$as_me:$LINENO: result: $CC" >&5 1995echo "${ECHO_T}$CC" >&6 1996else 1997 echo "$as_me:$LINENO: result: no" >&5 1998echo "${ECHO_T}no" >&6 1999fi 2000 2001fi 2002if test -z "$ac_cv_prog_CC"; then 2003 ac_ct_CC=$CC 2004 # Extract the first word of "gcc", so it can be a program name with args. 2005set dummy gcc; ac_word=$2 2006echo "$as_me:$LINENO: checking for $ac_word" >&5 2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2009 echo $ECHO_N "(cached) $ECHO_C" >&6 2010else 2011 if test -n "$ac_ct_CC"; then 2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2013else 2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2015for as_dir in $PATH 2016do 2017 IFS=$as_save_IFS 2018 test -z "$as_dir" && as_dir=. 2019 for ac_exec_ext in '' $ac_executable_extensions; do 2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2021 ac_cv_prog_ac_ct_CC="gcc" 2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2023 break 2 2024 fi 2025done 2026done 2027 2028fi 2029fi 2030ac_ct_CC=$ac_cv_prog_ac_ct_CC 2031if test -n "$ac_ct_CC"; then 2032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2033echo "${ECHO_T}$ac_ct_CC" >&6 2034else 2035 echo "$as_me:$LINENO: result: no" >&5 2036echo "${ECHO_T}no" >&6 2037fi 2038 2039 CC=$ac_ct_CC 2040else 2041 CC="$ac_cv_prog_CC" 2042fi 2043 2044if test -z "$CC"; then 2045 if test -n "$ac_tool_prefix"; then 2046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2047set dummy ${ac_tool_prefix}cc; ac_word=$2 2048echo "$as_me:$LINENO: checking for $ac_word" >&5 2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2050if test "${ac_cv_prog_CC+set}" = set; then 2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2052else 2053 if test -n "$CC"; then 2054 ac_cv_prog_CC="$CC" # Let the user override the test. 2055else 2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2057for as_dir in $PATH 2058do 2059 IFS=$as_save_IFS 2060 test -z "$as_dir" && as_dir=. 2061 for ac_exec_ext in '' $ac_executable_extensions; do 2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2063 ac_cv_prog_CC="${ac_tool_prefix}cc" 2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2065 break 2 2066 fi 2067done 2068done 2069 2070fi 2071fi 2072CC=$ac_cv_prog_CC 2073if test -n "$CC"; then 2074 echo "$as_me:$LINENO: result: $CC" >&5 2075echo "${ECHO_T}$CC" >&6 2076else 2077 echo "$as_me:$LINENO: result: no" >&5 2078echo "${ECHO_T}no" >&6 2079fi 2080 2081fi 2082if test -z "$ac_cv_prog_CC"; then 2083 ac_ct_CC=$CC 2084 # Extract the first word of "cc", so it can be a program name with args. 2085set dummy cc; ac_word=$2 2086echo "$as_me:$LINENO: checking for $ac_word" >&5 2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2089 echo $ECHO_N "(cached) $ECHO_C" >&6 2090else 2091 if test -n "$ac_ct_CC"; then 2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2093else 2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2095for as_dir in $PATH 2096do 2097 IFS=$as_save_IFS 2098 test -z "$as_dir" && as_dir=. 2099 for ac_exec_ext in '' $ac_executable_extensions; do 2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2101 ac_cv_prog_ac_ct_CC="cc" 2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2103 break 2 2104 fi 2105done 2106done 2107 2108fi 2109fi 2110ac_ct_CC=$ac_cv_prog_ac_ct_CC 2111if test -n "$ac_ct_CC"; then 2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2113echo "${ECHO_T}$ac_ct_CC" >&6 2114else 2115 echo "$as_me:$LINENO: result: no" >&5 2116echo "${ECHO_T}no" >&6 2117fi 2118 2119 CC=$ac_ct_CC 2120else 2121 CC="$ac_cv_prog_CC" 2122fi 2123 2124fi 2125if test -z "$CC"; then 2126 # Extract the first word of "cc", so it can be a program name with args. 2127set dummy cc; ac_word=$2 2128echo "$as_me:$LINENO: checking for $ac_word" >&5 2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2130if test "${ac_cv_prog_CC+set}" = set; then 2131 echo $ECHO_N "(cached) $ECHO_C" >&6 2132else 2133 if test -n "$CC"; then 2134 ac_cv_prog_CC="$CC" # Let the user override the test. 2135else 2136 ac_prog_rejected=no 2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2138for as_dir in $PATH 2139do 2140 IFS=$as_save_IFS 2141 test -z "$as_dir" && as_dir=. 2142 for ac_exec_ext in '' $ac_executable_extensions; do 2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2145 ac_prog_rejected=yes 2146 continue 2147 fi 2148 ac_cv_prog_CC="cc" 2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2150 break 2 2151 fi 2152done 2153done 2154 2155if test $ac_prog_rejected = yes; then 2156 # We found a bogon in the path, so make sure we never use it. 2157 set dummy $ac_cv_prog_CC 2158 shift 2159 if test $# != 0; then 2160 # We chose a different compiler from the bogus one. 2161 # However, it has the same basename, so the bogon will be chosen 2162 # first if we set CC to just the basename; use the full file name. 2163 shift 2164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2165 fi 2166fi 2167fi 2168fi 2169CC=$ac_cv_prog_CC 2170if test -n "$CC"; then 2171 echo "$as_me:$LINENO: result: $CC" >&5 2172echo "${ECHO_T}$CC" >&6 2173else 2174 echo "$as_me:$LINENO: result: no" >&5 2175echo "${ECHO_T}no" >&6 2176fi 2177 2178fi 2179if test -z "$CC"; then 2180 if test -n "$ac_tool_prefix"; then 2181 for ac_prog in cl 2182 do 2183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2184set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2185echo "$as_me:$LINENO: checking for $ac_word" >&5 2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2187if test "${ac_cv_prog_CC+set}" = set; then 2188 echo $ECHO_N "(cached) $ECHO_C" >&6 2189else 2190 if test -n "$CC"; then 2191 ac_cv_prog_CC="$CC" # Let the user override the test. 2192else 2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2194for as_dir in $PATH 2195do 2196 IFS=$as_save_IFS 2197 test -z "$as_dir" && as_dir=. 2198 for ac_exec_ext in '' $ac_executable_extensions; do 2199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2202 break 2 2203 fi 2204done 2205done 2206 2207fi 2208fi 2209CC=$ac_cv_prog_CC 2210if test -n "$CC"; then 2211 echo "$as_me:$LINENO: result: $CC" >&5 2212echo "${ECHO_T}$CC" >&6 2213else 2214 echo "$as_me:$LINENO: result: no" >&5 2215echo "${ECHO_T}no" >&6 2216fi 2217 2218 test -n "$CC" && break 2219 done 2220fi 2221if test -z "$CC"; then 2222 ac_ct_CC=$CC 2223 for ac_prog in cl 2224do 2225 # Extract the first word of "$ac_prog", so it can be a program name with args. 2226set dummy $ac_prog; ac_word=$2 2227echo "$as_me:$LINENO: checking for $ac_word" >&5 2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2230 echo $ECHO_N "(cached) $ECHO_C" >&6 2231else 2232 if test -n "$ac_ct_CC"; then 2233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2234else 2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2236for as_dir in $PATH 2237do 2238 IFS=$as_save_IFS 2239 test -z "$as_dir" && as_dir=. 2240 for ac_exec_ext in '' $ac_executable_extensions; do 2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2242 ac_cv_prog_ac_ct_CC="$ac_prog" 2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2244 break 2 2245 fi 2246done 2247done 2248 2249fi 2250fi 2251ac_ct_CC=$ac_cv_prog_ac_ct_CC 2252if test -n "$ac_ct_CC"; then 2253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2254echo "${ECHO_T}$ac_ct_CC" >&6 2255else 2256 echo "$as_me:$LINENO: result: no" >&5 2257echo "${ECHO_T}no" >&6 2258fi 2259 2260 test -n "$ac_ct_CC" && break 2261done 2262 2263 CC=$ac_ct_CC 2264fi 2265 2266fi 2267 2268 2269test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2270See \`config.log' for more details." >&5 2271echo "$as_me: error: no acceptable C compiler found in \$PATH 2272See \`config.log' for more details." >&2;} 2273 { (exit 1); exit 1; }; } 2274 2275# Provide some information about the compiler. 2276echo "$as_me:$LINENO:" \ 2277 "checking for C compiler version" >&5 2278ac_compiler=`set X $ac_compile; echo $2` 2279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2280 (eval $ac_compiler --version </dev/null >&5) 2>&5 2281 ac_status=$? 2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2283 (exit $ac_status); } 2284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2285 (eval $ac_compiler -v </dev/null >&5) 2>&5 2286 ac_status=$? 2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2288 (exit $ac_status); } 2289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2290 (eval $ac_compiler -V </dev/null >&5) 2>&5 2291 ac_status=$? 2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2293 (exit $ac_status); } 2294 2295cat >conftest.$ac_ext <<_ACEOF 2296/* confdefs.h. */ 2297_ACEOF 2298cat confdefs.h >>conftest.$ac_ext 2299cat >>conftest.$ac_ext <<_ACEOF 2300/* end confdefs.h. */ 2301 2302int 2303main () 2304{ 2305 2306 ; 2307 return 0; 2308} 2309_ACEOF 2310ac_clean_files_save=$ac_clean_files 2311ac_clean_files="$ac_clean_files a.out a.exe b.out" 2312# Try to create an executable without -o first, disregard a.out. 2313# It will help us diagnose broken compilers, and finding out an intuition 2314# of exeext. 2315echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2316echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2317ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2318if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2319 (eval $ac_link_default) 2>&5 2320 ac_status=$? 2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2322 (exit $ac_status); }; then 2323 # Find the output, starting from the most likely. This scheme is 2324# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2325# resort. 2326 2327# Be careful to initialize this variable, since it used to be cached. 2328# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2329ac_cv_exeext= 2330# b.out is created by i960 compilers. 2331for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2332do 2333 test -f "$ac_file" || continue 2334 case $ac_file in 2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2336 ;; 2337 conftest.$ac_ext ) 2338 # This is the source file. 2339 ;; 2340 [ab].out ) 2341 # We found the default executable, but exeext='' is most 2342 # certainly right. 2343 break;; 2344 *.* ) 2345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2346 # FIXME: I believe we export ac_cv_exeext for Libtool, 2347 # but it would be cool to find out if it's true. Does anybody 2348 # maintain Libtool? --akim. 2349 export ac_cv_exeext 2350 break;; 2351 * ) 2352 break;; 2353 esac 2354done 2355else 2356 echo "$as_me: failed program was:" >&5 2357sed 's/^/| /' conftest.$ac_ext >&5 2358 2359{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2360See \`config.log' for more details." >&5 2361echo "$as_me: error: C compiler cannot create executables 2362See \`config.log' for more details." >&2;} 2363 { (exit 77); exit 77; }; } 2364fi 2365 2366ac_exeext=$ac_cv_exeext 2367echo "$as_me:$LINENO: result: $ac_file" >&5 2368echo "${ECHO_T}$ac_file" >&6 2369 2370# Check the compiler produces executables we can run. If not, either 2371# the compiler is broken, or we cross compile. 2372echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2373echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2374# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2375# If not cross compiling, check that we can run a simple program. 2376if test "$cross_compiling" != yes; then 2377 if { ac_try='./$ac_file' 2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2379 (eval $ac_try) 2>&5 2380 ac_status=$? 2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2382 (exit $ac_status); }; }; then 2383 cross_compiling=no 2384 else 2385 if test "$cross_compiling" = maybe; then 2386 cross_compiling=yes 2387 else 2388 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2389If you meant to cross compile, use \`--host'. 2390See \`config.log' for more details." >&5 2391echo "$as_me: error: cannot run C compiled programs. 2392If you meant to cross compile, use \`--host'. 2393See \`config.log' for more details." >&2;} 2394 { (exit 1); exit 1; }; } 2395 fi 2396 fi 2397fi 2398echo "$as_me:$LINENO: result: yes" >&5 2399echo "${ECHO_T}yes" >&6 2400 2401rm -f a.out a.exe conftest$ac_cv_exeext b.out 2402ac_clean_files=$ac_clean_files_save 2403# Check the compiler produces executables we can run. If not, either 2404# the compiler is broken, or we cross compile. 2405echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2406echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2407echo "$as_me:$LINENO: result: $cross_compiling" >&5 2408echo "${ECHO_T}$cross_compiling" >&6 2409 2410echo "$as_me:$LINENO: checking for suffix of executables" >&5 2411echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2413 (eval $ac_link) 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2416 (exit $ac_status); }; then 2417 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2418# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2419# work properly (i.e., refer to `conftest.exe'), while it won't with 2420# `rm'. 2421for ac_file in conftest.exe conftest conftest.*; do 2422 test -f "$ac_file" || continue 2423 case $ac_file in 2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2426 export ac_cv_exeext 2427 break;; 2428 * ) break;; 2429 esac 2430done 2431else 2432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2433See \`config.log' for more details." >&5 2434echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2435See \`config.log' for more details." >&2;} 2436 { (exit 1); exit 1; }; } 2437fi 2438 2439rm -f conftest$ac_cv_exeext 2440echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2441echo "${ECHO_T}$ac_cv_exeext" >&6 2442 2443rm -f conftest.$ac_ext 2444EXEEXT=$ac_cv_exeext 2445ac_exeext=$EXEEXT 2446echo "$as_me:$LINENO: checking for suffix of object files" >&5 2447echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2448if test "${ac_cv_objext+set}" = set; then 2449 echo $ECHO_N "(cached) $ECHO_C" >&6 2450else 2451 cat >conftest.$ac_ext <<_ACEOF 2452/* confdefs.h. */ 2453_ACEOF 2454cat confdefs.h >>conftest.$ac_ext 2455cat >>conftest.$ac_ext <<_ACEOF 2456/* end confdefs.h. */ 2457 2458int 2459main () 2460{ 2461 2462 ; 2463 return 0; 2464} 2465_ACEOF 2466rm -f conftest.o conftest.obj 2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2468 (eval $ac_compile) 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); }; then 2472 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2473 case $ac_file in 2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2476 break;; 2477 esac 2478done 2479else 2480 echo "$as_me: failed program was:" >&5 2481sed 's/^/| /' conftest.$ac_ext >&5 2482 2483{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2484See \`config.log' for more details." >&5 2485echo "$as_me: error: cannot compute suffix of object files: cannot compile 2486See \`config.log' for more details." >&2;} 2487 { (exit 1); exit 1; }; } 2488fi 2489 2490rm -f conftest.$ac_cv_objext conftest.$ac_ext 2491fi 2492echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2493echo "${ECHO_T}$ac_cv_objext" >&6 2494OBJEXT=$ac_cv_objext 2495ac_objext=$OBJEXT 2496echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2498if test "${ac_cv_c_compiler_gnu+set}" = set; then 2499 echo $ECHO_N "(cached) $ECHO_C" >&6 2500else 2501 cat >conftest.$ac_ext <<_ACEOF 2502/* confdefs.h. */ 2503_ACEOF 2504cat confdefs.h >>conftest.$ac_ext 2505cat >>conftest.$ac_ext <<_ACEOF 2506/* end confdefs.h. */ 2507 2508int 2509main () 2510{ 2511#ifndef __GNUC__ 2512 choke me 2513#endif 2514 2515 ; 2516 return 0; 2517} 2518_ACEOF 2519rm -f conftest.$ac_objext 2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2521 (eval $ac_compile) 2>conftest.er1 2522 ac_status=$? 2523 grep -v '^ *+' conftest.er1 >conftest.err 2524 rm -f conftest.er1 2525 cat conftest.err >&5 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2527 (exit $ac_status); } && 2528 { ac_try='test -z "$ac_c_werror_flag" 2529 || test ! -s conftest.err' 2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2531 (eval $ac_try) 2>&5 2532 ac_status=$? 2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2534 (exit $ac_status); }; } && 2535 { ac_try='test -s conftest.$ac_objext' 2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2537 (eval $ac_try) 2>&5 2538 ac_status=$? 2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2540 (exit $ac_status); }; }; then 2541 ac_compiler_gnu=yes 2542else 2543 echo "$as_me: failed program was:" >&5 2544sed 's/^/| /' conftest.$ac_ext >&5 2545 2546ac_compiler_gnu=no 2547fi 2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2549ac_cv_c_compiler_gnu=$ac_compiler_gnu 2550 2551fi 2552echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2554GCC=`test $ac_compiler_gnu = yes && echo yes` 2555ac_test_CFLAGS=${CFLAGS+set} 2556ac_save_CFLAGS=$CFLAGS 2557CFLAGS="-g" 2558echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2560if test "${ac_cv_prog_cc_g+set}" = set; then 2561 echo $ECHO_N "(cached) $ECHO_C" >&6 2562else 2563 cat >conftest.$ac_ext <<_ACEOF 2564/* confdefs.h. */ 2565_ACEOF 2566cat confdefs.h >>conftest.$ac_ext 2567cat >>conftest.$ac_ext <<_ACEOF 2568/* end confdefs.h. */ 2569 2570int 2571main () 2572{ 2573 2574 ; 2575 return 0; 2576} 2577_ACEOF 2578rm -f conftest.$ac_objext 2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2580 (eval $ac_compile) 2>conftest.er1 2581 ac_status=$? 2582 grep -v '^ *+' conftest.er1 >conftest.err 2583 rm -f conftest.er1 2584 cat conftest.err >&5 2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586 (exit $ac_status); } && 2587 { ac_try='test -z "$ac_c_werror_flag" 2588 || test ! -s conftest.err' 2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2590 (eval $ac_try) 2>&5 2591 ac_status=$? 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593 (exit $ac_status); }; } && 2594 { ac_try='test -s conftest.$ac_objext' 2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2596 (eval $ac_try) 2>&5 2597 ac_status=$? 2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2599 (exit $ac_status); }; }; then 2600 ac_cv_prog_cc_g=yes 2601else 2602 echo "$as_me: failed program was:" >&5 2603sed 's/^/| /' conftest.$ac_ext >&5 2604 2605ac_cv_prog_cc_g=no 2606fi 2607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2608fi 2609echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2611if test "$ac_test_CFLAGS" = set; then 2612 CFLAGS=$ac_save_CFLAGS 2613elif test $ac_cv_prog_cc_g = yes; then 2614 if test "$GCC" = yes; then 2615 CFLAGS="-g -O2" 2616 else 2617 CFLAGS="-g" 2618 fi 2619else 2620 if test "$GCC" = yes; then 2621 CFLAGS="-O2" 2622 else 2623 CFLAGS= 2624 fi 2625fi 2626echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2627echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2628if test "${ac_cv_prog_cc_stdc+set}" = set; then 2629 echo $ECHO_N "(cached) $ECHO_C" >&6 2630else 2631 ac_cv_prog_cc_stdc=no 2632ac_save_CC=$CC 2633cat >conftest.$ac_ext <<_ACEOF 2634/* confdefs.h. */ 2635_ACEOF 2636cat confdefs.h >>conftest.$ac_ext 2637cat >>conftest.$ac_ext <<_ACEOF 2638/* end confdefs.h. */ 2639#include <stdarg.h> 2640#include <stdio.h> 2641#include <sys/types.h> 2642#include <sys/stat.h> 2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2644struct buf { int x; }; 2645FILE * (*rcsopen) (struct buf *, struct stat *, int); 2646static char *e (p, i) 2647 char **p; 2648 int i; 2649{ 2650 return p[i]; 2651} 2652static char *f (char * (*g) (char **, int), char **p, ...) 2653{ 2654 char *s; 2655 va_list v; 2656 va_start (v,p); 2657 s = g (p, va_arg (v,int)); 2658 va_end (v); 2659 return s; 2660} 2661 2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2663 function prototypes and stuff, but not '\xHH' hex character constants. 2664 These don't provoke an error unfortunately, instead are silently treated 2665 as 'x'. The following induces an error, until -std1 is added to get 2666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2667 array size at least. It's necessary to write '\x00'==0 to get something 2668 that's true only with -std1. */ 2669int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2670 2671int test (int i, double x); 2672struct s1 {int (*f) (int a);}; 2673struct s2 {int (*f) (double a);}; 2674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2675int argc; 2676char **argv; 2677int 2678main () 2679{ 2680return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2681 ; 2682 return 0; 2683} 2684_ACEOF 2685# Don't try gcc -ansi; that turns off useful extensions and 2686# breaks some systems' header files. 2687# AIX -qlanglvl=ansi 2688# Ultrix and OSF/1 -std1 2689# HP-UX 10.20 and later -Ae 2690# HP-UX older versions -Aa -D_HPUX_SOURCE 2691# SVR4 -Xc -D__EXTENSIONS__ 2692for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2693do 2694 CC="$ac_save_CC $ac_arg" 2695 rm -f conftest.$ac_objext 2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2697 (eval $ac_compile) 2>conftest.er1 2698 ac_status=$? 2699 grep -v '^ *+' conftest.er1 >conftest.err 2700 rm -f conftest.er1 2701 cat conftest.err >&5 2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2703 (exit $ac_status); } && 2704 { ac_try='test -z "$ac_c_werror_flag" 2705 || test ! -s conftest.err' 2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2707 (eval $ac_try) 2>&5 2708 ac_status=$? 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2710 (exit $ac_status); }; } && 2711 { ac_try='test -s conftest.$ac_objext' 2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2713 (eval $ac_try) 2>&5 2714 ac_status=$? 2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2716 (exit $ac_status); }; }; then 2717 ac_cv_prog_cc_stdc=$ac_arg 2718break 2719else 2720 echo "$as_me: failed program was:" >&5 2721sed 's/^/| /' conftest.$ac_ext >&5 2722 2723fi 2724rm -f conftest.err conftest.$ac_objext 2725done 2726rm -f conftest.$ac_ext conftest.$ac_objext 2727CC=$ac_save_CC 2728 2729fi 2730 2731case "x$ac_cv_prog_cc_stdc" in 2732 x|xno) 2733 echo "$as_me:$LINENO: result: none needed" >&5 2734echo "${ECHO_T}none needed" >&6 ;; 2735 *) 2736 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2737echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2738 CC="$CC $ac_cv_prog_cc_stdc" ;; 2739esac 2740 2741# Some people use a C++ compiler to compile C. Since we use `exit', 2742# in C++ we need to declare it. In case someone uses the same compiler 2743# for both compiling C and C++ we need to have the C++ compiler decide 2744# the declaration of exit, since it's the most demanding environment. 2745cat >conftest.$ac_ext <<_ACEOF 2746#ifndef __cplusplus 2747 choke me 2748#endif 2749_ACEOF 2750rm -f conftest.$ac_objext 2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2752 (eval $ac_compile) 2>conftest.er1 2753 ac_status=$? 2754 grep -v '^ *+' conftest.er1 >conftest.err 2755 rm -f conftest.er1 2756 cat conftest.err >&5 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); } && 2759 { ac_try='test -z "$ac_c_werror_flag" 2760 || test ! -s conftest.err' 2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2762 (eval $ac_try) 2>&5 2763 ac_status=$? 2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2765 (exit $ac_status); }; } && 2766 { ac_try='test -s conftest.$ac_objext' 2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2768 (eval $ac_try) 2>&5 2769 ac_status=$? 2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2771 (exit $ac_status); }; }; then 2772 for ac_declaration in \ 2773 '' \ 2774 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2775 'extern "C" void std::exit (int); using std::exit;' \ 2776 'extern "C" void exit (int) throw ();' \ 2777 'extern "C" void exit (int);' \ 2778 'void exit (int);' 2779do 2780 cat >conftest.$ac_ext <<_ACEOF 2781/* confdefs.h. */ 2782_ACEOF 2783cat confdefs.h >>conftest.$ac_ext 2784cat >>conftest.$ac_ext <<_ACEOF 2785/* end confdefs.h. */ 2786$ac_declaration 2787#include <stdlib.h> 2788int 2789main () 2790{ 2791exit (42); 2792 ; 2793 return 0; 2794} 2795_ACEOF 2796rm -f conftest.$ac_objext 2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2798 (eval $ac_compile) 2>conftest.er1 2799 ac_status=$? 2800 grep -v '^ *+' conftest.er1 >conftest.err 2801 rm -f conftest.er1 2802 cat conftest.err >&5 2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2804 (exit $ac_status); } && 2805 { ac_try='test -z "$ac_c_werror_flag" 2806 || test ! -s conftest.err' 2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2808 (eval $ac_try) 2>&5 2809 ac_status=$? 2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2811 (exit $ac_status); }; } && 2812 { ac_try='test -s conftest.$ac_objext' 2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2814 (eval $ac_try) 2>&5 2815 ac_status=$? 2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2817 (exit $ac_status); }; }; then 2818 : 2819else 2820 echo "$as_me: failed program was:" >&5 2821sed 's/^/| /' conftest.$ac_ext >&5 2822 2823continue 2824fi 2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2826 cat >conftest.$ac_ext <<_ACEOF 2827/* confdefs.h. */ 2828_ACEOF 2829cat confdefs.h >>conftest.$ac_ext 2830cat >>conftest.$ac_ext <<_ACEOF 2831/* end confdefs.h. */ 2832$ac_declaration 2833int 2834main () 2835{ 2836exit (42); 2837 ; 2838 return 0; 2839} 2840_ACEOF 2841rm -f conftest.$ac_objext 2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2843 (eval $ac_compile) 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); } && 2850 { ac_try='test -z "$ac_c_werror_flag" 2851 || test ! -s conftest.err' 2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2853 (eval $ac_try) 2>&5 2854 ac_status=$? 2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2856 (exit $ac_status); }; } && 2857 { ac_try='test -s conftest.$ac_objext' 2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2859 (eval $ac_try) 2>&5 2860 ac_status=$? 2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2862 (exit $ac_status); }; }; then 2863 break 2864else 2865 echo "$as_me: failed program was:" >&5 2866sed 's/^/| /' conftest.$ac_ext >&5 2867 2868fi 2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2870done 2871rm -f conftest* 2872if test -n "$ac_declaration"; then 2873 echo '#ifdef __cplusplus' >>confdefs.h 2874 echo $ac_declaration >>confdefs.h 2875 echo '#endif' >>confdefs.h 2876fi 2877 2878else 2879 echo "$as_me: failed program was:" >&5 2880sed 's/^/| /' conftest.$ac_ext >&5 2881 2882fi 2883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2884ac_ext=c 2885ac_cpp='$CPP $CPPFLAGS' 2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2888ac_compiler_gnu=$ac_cv_c_compiler_gnu 2889DEPDIR="${am__leading_dot}deps" 2890 2891 ac_config_commands="$ac_config_commands depfiles" 2892 2893 2894am_make=${MAKE-make} 2895cat > confinc << 'END' 2896am__doit: 2897 @echo done 2898.PHONY: am__doit 2899END 2900# If we don't find an include directive, just comment out the code. 2901echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2902echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2903am__include="#" 2904am__quote= 2905_am_result=none 2906# First try GNU make style include. 2907echo "include confinc" > confmf 2908# We grep out `Entering directory' and `Leaving directory' 2909# messages which can occur if `w' ends up in MAKEFLAGS. 2910# In particular we don't look at `^make:' because GNU make might 2911# be invoked under some other name (usually "gmake"), in which 2912# case it prints its new name instead of `make'. 2913if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2914 am__include=include 2915 am__quote= 2916 _am_result=GNU 2917fi 2918# Now try BSD make style include. 2919if test "$am__include" = "#"; then 2920 echo '.include "confinc"' > confmf 2921 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2922 am__include=.include 2923 am__quote="\"" 2924 _am_result=BSD 2925 fi 2926fi 2927 2928 2929echo "$as_me:$LINENO: result: $_am_result" >&5 2930echo "${ECHO_T}$_am_result" >&6 2931rm -f confinc confmf 2932 2933# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2934if test "${enable_dependency_tracking+set}" = set; then 2935 enableval="$enable_dependency_tracking" 2936 2937fi; 2938if test "x$enable_dependency_tracking" != xno; then 2939 am_depcomp="$ac_aux_dir/depcomp" 2940 AMDEPBACKSLASH='\' 2941fi 2942 2943 2944if test "x$enable_dependency_tracking" != xno; then 2945 AMDEP_TRUE= 2946 AMDEP_FALSE='#' 2947else 2948 AMDEP_TRUE='#' 2949 AMDEP_FALSE= 2950fi 2951 2952 2953 2954 2955depcc="$CC" am_compiler_list= 2956 2957echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2958echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2959if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2960 echo $ECHO_N "(cached) $ECHO_C" >&6 2961else 2962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2963 # We make a subdir and do the tests there. Otherwise we can end up 2964 # making bogus files that we don't know about and never remove. For 2965 # instance it was reported that on HP-UX the gcc test will end up 2966 # making a dummy file named `D' -- because `-MD' means `put the output 2967 # in D'. 2968 mkdir conftest.dir 2969 # Copy depcomp to subdir because otherwise we won't find it if we're 2970 # using a relative directory. 2971 cp "$am_depcomp" conftest.dir 2972 cd conftest.dir 2973 # We will build objects and dependencies in a subdirectory because 2974 # it helps to detect inapplicable dependency modes. For instance 2975 # both Tru64's cc and ICC support -MD to output dependencies as a 2976 # side effect of compilation, but ICC will put the dependencies in 2977 # the current directory while Tru64 will put them in the object 2978 # directory. 2979 mkdir sub 2980 2981 am_cv_CC_dependencies_compiler_type=none 2982 if test "$am_compiler_list" = ""; then 2983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2984 fi 2985 for depmode in $am_compiler_list; do 2986 # Setup a source with many dependencies, because some compilers 2987 # like to wrap large dependency lists on column 80 (with \), and 2988 # we should not choose a depcomp mode which is confused by this. 2989 # 2990 # We need to recreate these files for each test, as the compiler may 2991 # overwrite some of them when testing with obscure command lines. 2992 # This happens at least with the AIX C compiler. 2993 : > sub/conftest.c 2994 for i in 1 2 3 4 5 6; do 2995 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2996 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2997 # Solaris 8's {/usr,}/bin/sh. 2998 touch sub/conftst$i.h 2999 done 3000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3001 3002 case $depmode in 3003 nosideeffect) 3004 # after this tag, mechanisms are not by side-effect, so they'll 3005 # only be used when explicitly requested 3006 if test "x$enable_dependency_tracking" = xyes; then 3007 continue 3008 else 3009 break 3010 fi 3011 ;; 3012 none) break ;; 3013 esac 3014 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3015 # mode. It turns out that the SunPro C++ compiler does not properly 3016 # handle `-M -o', and we need to detect this. 3017 if depmode=$depmode \ 3018 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3020 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3021 >/dev/null 2>conftest.err && 3022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3023 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3025 # icc doesn't choke on unknown options, it will just issue warnings 3026 # or remarks (even with -Werror). So we grep stderr for any message 3027 # that says an option was ignored or not supported. 3028 # When given -MP, icc 7.0 and 7.1 complain thusly: 3029 # icc: Command line warning: ignoring option '-M'; no argument required 3030 # The diagnosis changed in icc 8.0: 3031 # icc: Command line remark: option '-MP' not supported 3032 if (grep 'ignoring option' conftest.err || 3033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3034 am_cv_CC_dependencies_compiler_type=$depmode 3035 break 3036 fi 3037 fi 3038 done 3039 3040 cd .. 3041 rm -rf conftest.dir 3042else 3043 am_cv_CC_dependencies_compiler_type=none 3044fi 3045 3046fi 3047echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3048echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3050 3051 3052 3053if 3054 test "x$enable_dependency_tracking" != xno \ 3055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3056 am__fastdepCC_TRUE= 3057 am__fastdepCC_FALSE='#' 3058else 3059 am__fastdepCC_TRUE='#' 3060 am__fastdepCC_FALSE= 3061fi 3062 3063 3064 3065 3066## ----------------------- ## 3067## Libtool initialisation. ## 3068## ----------------------- ## 3069 3070 3071# Check whether --enable-shared or --disable-shared was given. 3072if test "${enable_shared+set}" = set; then 3073 enableval="$enable_shared" 3074 p=${PACKAGE-default} 3075 case $enableval in 3076 yes) enable_shared=yes ;; 3077 no) enable_shared=no ;; 3078 *) 3079 enable_shared=no 3080 # Look at the argument we got. We use all the common list separators. 3081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3082 for pkg in $enableval; do 3083 IFS="$lt_save_ifs" 3084 if test "X$pkg" = "X$p"; then 3085 enable_shared=yes 3086 fi 3087 done 3088 IFS="$lt_save_ifs" 3089 ;; 3090 esac 3091else 3092 enable_shared=yes 3093fi; 3094 3095# Check whether --enable-static or --disable-static was given. 3096if test "${enable_static+set}" = set; then 3097 enableval="$enable_static" 3098 p=${PACKAGE-default} 3099 case $enableval in 3100 yes) enable_static=yes ;; 3101 no) enable_static=no ;; 3102 *) 3103 enable_static=no 3104 # Look at the argument we got. We use all the common list separators. 3105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3106 for pkg in $enableval; do 3107 IFS="$lt_save_ifs" 3108 if test "X$pkg" = "X$p"; then 3109 enable_static=yes 3110 fi 3111 done 3112 IFS="$lt_save_ifs" 3113 ;; 3114 esac 3115else 3116 enable_static=yes 3117fi; 3118 3119# Check whether --enable-fast-install or --disable-fast-install was given. 3120if test "${enable_fast_install+set}" = set; then 3121 enableval="$enable_fast_install" 3122 p=${PACKAGE-default} 3123 case $enableval in 3124 yes) enable_fast_install=yes ;; 3125 no) enable_fast_install=no ;; 3126 *) 3127 enable_fast_install=no 3128 # Look at the argument we got. We use all the common list separators. 3129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3130 for pkg in $enableval; do 3131 IFS="$lt_save_ifs" 3132 if test "X$pkg" = "X$p"; then 3133 enable_fast_install=yes 3134 fi 3135 done 3136 IFS="$lt_save_ifs" 3137 ;; 3138 esac 3139else 3140 enable_fast_install=yes 3141fi; 3142 3143# Make sure we can run config.sub. 3144$ac_config_sub sun4 >/dev/null 2>&1 || 3145 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3146echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3147 { (exit 1); exit 1; }; } 3148 3149echo "$as_me:$LINENO: checking build system type" >&5 3150echo $ECHO_N "checking build system type... $ECHO_C" >&6 3151if test "${ac_cv_build+set}" = set; then 3152 echo $ECHO_N "(cached) $ECHO_C" >&6 3153else 3154 ac_cv_build_alias=$build_alias 3155test -z "$ac_cv_build_alias" && 3156 ac_cv_build_alias=`$ac_config_guess` 3157test -z "$ac_cv_build_alias" && 3158 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3159echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3160 { (exit 1); exit 1; }; } 3161ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3162 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3163echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3164 { (exit 1); exit 1; }; } 3165 3166fi 3167echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3168echo "${ECHO_T}$ac_cv_build" >&6 3169build=$ac_cv_build 3170build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3171build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3172build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3173 3174 3175echo "$as_me:$LINENO: checking host system type" >&5 3176echo $ECHO_N "checking host system type... $ECHO_C" >&6 3177if test "${ac_cv_host+set}" = set; then 3178 echo $ECHO_N "(cached) $ECHO_C" >&6 3179else 3180 ac_cv_host_alias=$host_alias 3181test -z "$ac_cv_host_alias" && 3182 ac_cv_host_alias=$ac_cv_build_alias 3183ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3184 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3185echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3186 { (exit 1); exit 1; }; } 3187 3188fi 3189echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3190echo "${ECHO_T}$ac_cv_host" >&6 3191host=$ac_cv_host 3192host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3193host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3194host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3195 3196 3197echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3198echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3199if test "${lt_cv_path_SED+set}" = set; then 3200 echo $ECHO_N "(cached) $ECHO_C" >&6 3201else 3202 # Loop through the user's path and test for sed and gsed. 3203# Then use that list of sed's as ones to test for truncation. 3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3205for as_dir in $PATH 3206do 3207 IFS=$as_save_IFS 3208 test -z "$as_dir" && as_dir=. 3209 for lt_ac_prog in sed gsed; do 3210 for ac_exec_ext in '' $ac_executable_extensions; do 3211 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3212 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3213 fi 3214 done 3215 done 3216done 3217lt_ac_max=0 3218lt_ac_count=0 3219# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3220# along with /bin/sed that truncates output. 3221for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3222 test ! -f $lt_ac_sed && continue 3223 cat /dev/null > conftest.in 3224 lt_ac_count=0 3225 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3226 # Check for GNU sed and select it if it is found. 3227 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3228 lt_cv_path_SED=$lt_ac_sed 3229 break 3230 fi 3231 while true; do 3232 cat conftest.in conftest.in >conftest.tmp 3233 mv conftest.tmp conftest.in 3234 cp conftest.in conftest.nl 3235 echo >>conftest.nl 3236 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3237 cmp -s conftest.out conftest.nl || break 3238 # 10000 chars as input seems more than enough 3239 test $lt_ac_count -gt 10 && break 3240 lt_ac_count=`expr $lt_ac_count + 1` 3241 if test $lt_ac_count -gt $lt_ac_max; then 3242 lt_ac_max=$lt_ac_count 3243 lt_cv_path_SED=$lt_ac_sed 3244 fi 3245 done 3246done 3247 3248fi 3249 3250SED=$lt_cv_path_SED 3251echo "$as_me:$LINENO: result: $SED" >&5 3252echo "${ECHO_T}$SED" >&6 3253 3254echo "$as_me:$LINENO: checking for egrep" >&5 3255echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3256if test "${ac_cv_prog_egrep+set}" = set; then 3257 echo $ECHO_N "(cached) $ECHO_C" >&6 3258else 3259 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3260 then ac_cv_prog_egrep='grep -E' 3261 else ac_cv_prog_egrep='egrep' 3262 fi 3263fi 3264echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3265echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3266 EGREP=$ac_cv_prog_egrep 3267 3268 3269 3270# Check whether --with-gnu-ld or --without-gnu-ld was given. 3271if test "${with_gnu_ld+set}" = set; then 3272 withval="$with_gnu_ld" 3273 test "$withval" = no || with_gnu_ld=yes 3274else 3275 with_gnu_ld=no 3276fi; 3277ac_prog=ld 3278if test "$GCC" = yes; then 3279 # Check if gcc -print-prog-name=ld gives a path. 3280 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3281echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3282 case $host in 3283 *-*-mingw*) 3284 # gcc leaves a trailing carriage return which upsets mingw 3285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3286 *) 3287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3288 esac 3289 case $ac_prog in 3290 # Accept absolute paths. 3291 [\\/]* | ?:[\\/]*) 3292 re_direlt='/[^/][^/]*/\.\./' 3293 # Canonicalize the pathname of ld 3294 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3295 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3296 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3297 done 3298 test -z "$LD" && LD="$ac_prog" 3299 ;; 3300 "") 3301 # If it fails, then pretend we aren't using GCC. 3302 ac_prog=ld 3303 ;; 3304 *) 3305 # If it is relative, then search for the first ld in PATH. 3306 with_gnu_ld=unknown 3307 ;; 3308 esac 3309elif test "$with_gnu_ld" = yes; then 3310 echo "$as_me:$LINENO: checking for GNU ld" >&5 3311echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3312else 3313 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3314echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3315fi 3316if test "${lt_cv_path_LD+set}" = set; then 3317 echo $ECHO_N "(cached) $ECHO_C" >&6 3318else 3319 if test -z "$LD"; then 3320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3321 for ac_dir in $PATH; do 3322 IFS="$lt_save_ifs" 3323 test -z "$ac_dir" && ac_dir=. 3324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3325 lt_cv_path_LD="$ac_dir/$ac_prog" 3326 # Check to see if the program is GNU ld. I'd rather use --version, 3327 # but apparently some variants of GNU ld only accept -v. 3328 # Break only if it was the GNU/non-GNU ld that we prefer. 3329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3330 *GNU* | *'with BFD'*) 3331 test "$with_gnu_ld" != no && break 3332 ;; 3333 *) 3334 test "$with_gnu_ld" != yes && break 3335 ;; 3336 esac 3337 fi 3338 done 3339 IFS="$lt_save_ifs" 3340else 3341 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3342fi 3343fi 3344 3345LD="$lt_cv_path_LD" 3346if test -n "$LD"; then 3347 echo "$as_me:$LINENO: result: $LD" >&5 3348echo "${ECHO_T}$LD" >&6 3349else 3350 echo "$as_me:$LINENO: result: no" >&5 3351echo "${ECHO_T}no" >&6 3352fi 3353test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3354echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3355 { (exit 1); exit 1; }; } 3356echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3357echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3358if test "${lt_cv_prog_gnu_ld+set}" = set; then 3359 echo $ECHO_N "(cached) $ECHO_C" >&6 3360else 3361 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3362case `$LD -v 2>&1 </dev/null` in 3363*GNU* | *'with BFD'*) 3364 lt_cv_prog_gnu_ld=yes 3365 ;; 3366*) 3367 lt_cv_prog_gnu_ld=no 3368 ;; 3369esac 3370fi 3371echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3372echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3373with_gnu_ld=$lt_cv_prog_gnu_ld 3374 3375 3376echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3377echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3378if test "${lt_cv_ld_reload_flag+set}" = set; then 3379 echo $ECHO_N "(cached) $ECHO_C" >&6 3380else 3381 lt_cv_ld_reload_flag='-r' 3382fi 3383echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3384echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3385reload_flag=$lt_cv_ld_reload_flag 3386case $reload_flag in 3387"" | " "*) ;; 3388*) reload_flag=" $reload_flag" ;; 3389esac 3390reload_cmds='$LD$reload_flag -o $output$reload_objs' 3391case $host_os in 3392 darwin*) 3393 if test "$GCC" = yes; then 3394 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3395 else 3396 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3397 fi 3398 ;; 3399esac 3400 3401echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3402echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3403if test "${lt_cv_path_NM+set}" = set; then 3404 echo $ECHO_N "(cached) $ECHO_C" >&6 3405else 3406 if test -n "$NM"; then 3407 # Let the user override the test. 3408 lt_cv_path_NM="$NM" 3409else 3410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3411 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3412 IFS="$lt_save_ifs" 3413 test -z "$ac_dir" && ac_dir=. 3414 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3415 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3416 # Check to see if the nm accepts a BSD-compat flag. 3417 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3418 # nm: unknown option "B" ignored 3419 # Tru64's nm complains that /dev/null is an invalid object file 3420 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3421 */dev/null* | *'Invalid file or object type'*) 3422 lt_cv_path_NM="$tmp_nm -B" 3423 break 3424 ;; 3425 *) 3426 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3427 */dev/null*) 3428 lt_cv_path_NM="$tmp_nm -p" 3429 break 3430 ;; 3431 *) 3432 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3433 continue # so that we can try to find one that supports BSD flags 3434 ;; 3435 esac 3436 esac 3437 fi 3438 done 3439 IFS="$lt_save_ifs" 3440 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3441fi 3442fi 3443echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3444echo "${ECHO_T}$lt_cv_path_NM" >&6 3445NM="$lt_cv_path_NM" 3446 3447echo "$as_me:$LINENO: checking whether ln -s works" >&5 3448echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3449LN_S=$as_ln_s 3450if test "$LN_S" = "ln -s"; then 3451 echo "$as_me:$LINENO: result: yes" >&5 3452echo "${ECHO_T}yes" >&6 3453else 3454 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3455echo "${ECHO_T}no, using $LN_S" >&6 3456fi 3457 3458echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3459echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3460if test "${lt_cv_deplibs_check_method+set}" = set; then 3461 echo $ECHO_N "(cached) $ECHO_C" >&6 3462else 3463 lt_cv_file_magic_cmd='$MAGIC_CMD' 3464lt_cv_file_magic_test_file= 3465lt_cv_deplibs_check_method='unknown' 3466# Need to set the preceding variable on all platforms that support 3467# interlibrary dependencies. 3468# 'none' -- dependencies not supported. 3469# `unknown' -- same as none, but documents that we really don't know. 3470# 'pass_all' -- all dependencies passed with no checks. 3471# 'test_compile' -- check by making test program. 3472# 'file_magic [[regex]]' -- check by looking for files in library path 3473# which responds to the $file_magic_cmd with a given extended regex. 3474# If you have `file' or equivalent on your system and you're not sure 3475# whether `pass_all' will *always* work, you probably want this one. 3476 3477case $host_os in 3478aix4* | aix5*) 3479 lt_cv_deplibs_check_method=pass_all 3480 ;; 3481 3482beos*) 3483 lt_cv_deplibs_check_method=pass_all 3484 ;; 3485 3486bsdi[45]*) 3487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3488 lt_cv_file_magic_cmd='/usr/bin/file -L' 3489 lt_cv_file_magic_test_file=/shlib/libc.so 3490 ;; 3491 3492cygwin*) 3493 # func_win32_libid is a shell function defined in ltmain.sh 3494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3495 lt_cv_file_magic_cmd='func_win32_libid' 3496 ;; 3497 3498mingw* | pw32*) 3499 # Base MSYS/MinGW do not provide the 'file' command needed by 3500 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3501 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3502 lt_cv_file_magic_cmd='$OBJDUMP -f' 3503 ;; 3504 3505darwin* | rhapsody*) 3506 lt_cv_deplibs_check_method=pass_all 3507 ;; 3508 3509freebsd* | kfreebsd*-gnu | dragonfly*) 3510 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3511 case $host_cpu in 3512 i*86 ) 3513 # Not sure whether the presence of OpenBSD here was a mistake. 3514 # Let's accept both of them until this is cleared up. 3515 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3516 lt_cv_file_magic_cmd=/usr/bin/file 3517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3518 ;; 3519 esac 3520 else 3521 lt_cv_deplibs_check_method=pass_all 3522 fi 3523 ;; 3524 3525gnu*) 3526 lt_cv_deplibs_check_method=pass_all 3527 ;; 3528 3529haiku*) 3530 lt_cv_deplibs_check_method=pass_all 3531 ;; 3532 3533hpux10.20* | hpux11*) 3534 lt_cv_file_magic_cmd=/usr/bin/file 3535 case $host_cpu in 3536 ia64*) 3537 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3538 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3539 ;; 3540 hppa*64*) 3541 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]' 3542 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3543 ;; 3544 *) 3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3546 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3547 ;; 3548 esac 3549 ;; 3550 3551irix5* | irix6* | nonstopux*) 3552 case $LD in 3553 *-32|*"-32 ") libmagic=32-bit;; 3554 *-n32|*"-n32 ") libmagic=N32;; 3555 *-64|*"-64 ") libmagic=64-bit;; 3556 *) libmagic=never-match;; 3557 esac 3558 lt_cv_deplibs_check_method=pass_all 3559 ;; 3560 3561# This must be Linux ELF. 3562linux*) 3563 lt_cv_deplibs_check_method=pass_all 3564 ;; 3565 3566netbsd*) 3567 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3569 else 3570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3571 fi 3572 ;; 3573 3574newos6*) 3575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3576 lt_cv_file_magic_cmd=/usr/bin/file 3577 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3578 ;; 3579 3580nto-qnx*) 3581 lt_cv_deplibs_check_method=unknown 3582 ;; 3583 3584openbsd*) 3585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3587 else 3588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3589 fi 3590 ;; 3591 3592osf3* | osf4* | osf5*) 3593 lt_cv_deplibs_check_method=pass_all 3594 ;; 3595 3596sco3.2v5*) 3597 lt_cv_deplibs_check_method=pass_all 3598 ;; 3599 3600solaris*) 3601 lt_cv_deplibs_check_method=pass_all 3602 ;; 3603 3604sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3605 case $host_vendor in 3606 motorola) 3607 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]' 3608 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3609 ;; 3610 ncr) 3611 lt_cv_deplibs_check_method=pass_all 3612 ;; 3613 sequent) 3614 lt_cv_file_magic_cmd='/bin/file' 3615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3616 ;; 3617 sni) 3618 lt_cv_file_magic_cmd='/bin/file' 3619 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3620 lt_cv_file_magic_test_file=/lib/libc.so 3621 ;; 3622 siemens) 3623 lt_cv_deplibs_check_method=pass_all 3624 ;; 3625 esac 3626 ;; 3627 3628sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3629 lt_cv_deplibs_check_method=pass_all 3630 ;; 3631esac 3632 3633fi 3634echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3635echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3636file_magic_cmd=$lt_cv_file_magic_cmd 3637deplibs_check_method=$lt_cv_deplibs_check_method 3638test -z "$deplibs_check_method" && deplibs_check_method=unknown 3639 3640 3641 3642# If no C compiler was specified, use CC. 3643LTCC=${LTCC-"$CC"} 3644 3645# Allow CC to be a program name with arguments. 3646compiler=$CC 3647 3648 3649# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3650if test "${enable_libtool_lock+set}" = set; then 3651 enableval="$enable_libtool_lock" 3652 3653fi; 3654test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3655 3656# Some flags need to be propagated to the compiler or linker for good 3657# libtool support. 3658case $host in 3659ia64-*-hpux*) 3660 # Find out which ABI we are using. 3661 echo 'int i;' > conftest.$ac_ext 3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3663 (eval $ac_compile) 2>&5 3664 ac_status=$? 3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3666 (exit $ac_status); }; then 3667 case `/usr/bin/file conftest.$ac_objext` in 3668 *ELF-32*) 3669 HPUX_IA64_MODE="32" 3670 ;; 3671 *ELF-64*) 3672 HPUX_IA64_MODE="64" 3673 ;; 3674 esac 3675 fi 3676 rm -rf conftest* 3677 ;; 3678*-*-irix6*) 3679 # Find out which ABI we are using. 3680 echo '#line 3680 "configure"' > conftest.$ac_ext 3681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3682 (eval $ac_compile) 2>&5 3683 ac_status=$? 3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3685 (exit $ac_status); }; then 3686 if test "$lt_cv_prog_gnu_ld" = yes; then 3687 case `/usr/bin/file conftest.$ac_objext` in 3688 *32-bit*) 3689 LD="${LD-ld} -melf32bsmip" 3690 ;; 3691 *N32*) 3692 LD="${LD-ld} -melf32bmipn32" 3693 ;; 3694 *64-bit*) 3695 LD="${LD-ld} -melf64bmip" 3696 ;; 3697 esac 3698 else 3699 case `/usr/bin/file conftest.$ac_objext` in 3700 *32-bit*) 3701 LD="${LD-ld} -32" 3702 ;; 3703 *N32*) 3704 LD="${LD-ld} -n32" 3705 ;; 3706 *64-bit*) 3707 LD="${LD-ld} -64" 3708 ;; 3709 esac 3710 fi 3711 fi 3712 rm -rf conftest* 3713 ;; 3714 3715x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3716 # Find out which ABI we are using. 3717 echo 'int i;' > conftest.$ac_ext 3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3719 (eval $ac_compile) 2>&5 3720 ac_status=$? 3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3722 (exit $ac_status); }; then 3723 case `/usr/bin/file conftest.o` in 3724 *32-bit*) 3725 case $host in 3726 x86_64-*linux*) 3727 LD="${LD-ld} -m elf_i386" 3728 ;; 3729 ppc64-*linux*|powerpc64-*linux*) 3730 LD="${LD-ld} -m elf32ppclinux" 3731 ;; 3732 s390x-*linux*) 3733 LD="${LD-ld} -m elf_s390" 3734 ;; 3735 sparc64-*linux*) 3736 LD="${LD-ld} -m elf32_sparc" 3737 ;; 3738 esac 3739 ;; 3740 *64-bit*) 3741 case $host in 3742 x86_64-*linux*) 3743 LD="${LD-ld} -m elf_x86_64" 3744 ;; 3745 ppc*-*linux*|powerpc*-*linux*) 3746 LD="${LD-ld} -m elf64ppc" 3747 ;; 3748 s390*-*linux*) 3749 LD="${LD-ld} -m elf64_s390" 3750 ;; 3751 sparc*-*linux*) 3752 LD="${LD-ld} -m elf64_sparc" 3753 ;; 3754 esac 3755 ;; 3756 esac 3757 fi 3758 rm -rf conftest* 3759 ;; 3760 3761*-*-sco3.2v5*) 3762 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3763 SAVE_CFLAGS="$CFLAGS" 3764 CFLAGS="$CFLAGS -belf" 3765 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3766echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3767if test "${lt_cv_cc_needs_belf+set}" = set; then 3768 echo $ECHO_N "(cached) $ECHO_C" >&6 3769else 3770 ac_ext=c 3771ac_cpp='$CPP $CPPFLAGS' 3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3774ac_compiler_gnu=$ac_cv_c_compiler_gnu 3775 3776 cat >conftest.$ac_ext <<_ACEOF 3777/* confdefs.h. */ 3778_ACEOF 3779cat confdefs.h >>conftest.$ac_ext 3780cat >>conftest.$ac_ext <<_ACEOF 3781/* end confdefs.h. */ 3782 3783int 3784main () 3785{ 3786 3787 ; 3788 return 0; 3789} 3790_ACEOF 3791rm -f conftest.$ac_objext conftest$ac_exeext 3792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3793 (eval $ac_link) 2>conftest.er1 3794 ac_status=$? 3795 grep -v '^ *+' conftest.er1 >conftest.err 3796 rm -f conftest.er1 3797 cat conftest.err >&5 3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3799 (exit $ac_status); } && 3800 { ac_try='test -z "$ac_c_werror_flag" 3801 || test ! -s conftest.err' 3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3803 (eval $ac_try) 2>&5 3804 ac_status=$? 3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3806 (exit $ac_status); }; } && 3807 { ac_try='test -s conftest$ac_exeext' 3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3809 (eval $ac_try) 2>&5 3810 ac_status=$? 3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3812 (exit $ac_status); }; }; then 3813 lt_cv_cc_needs_belf=yes 3814else 3815 echo "$as_me: failed program was:" >&5 3816sed 's/^/| /' conftest.$ac_ext >&5 3817 3818lt_cv_cc_needs_belf=no 3819fi 3820rm -f conftest.err conftest.$ac_objext \ 3821 conftest$ac_exeext conftest.$ac_ext 3822 ac_ext=c 3823ac_cpp='$CPP $CPPFLAGS' 3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3826ac_compiler_gnu=$ac_cv_c_compiler_gnu 3827 3828fi 3829echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3830echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3831 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3832 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3833 CFLAGS="$SAVE_CFLAGS" 3834 fi 3835 ;; 3836*-*-cygwin* | *-*-mingw* | *-*-pw32*) 3837 if test -n "$ac_tool_prefix"; then 3838 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3839set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3840echo "$as_me:$LINENO: checking for $ac_word" >&5 3841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3842if test "${ac_cv_prog_DLLTOOL+set}" = set; then 3843 echo $ECHO_N "(cached) $ECHO_C" >&6 3844else 3845 if test -n "$DLLTOOL"; then 3846 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3847else 3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3849for as_dir in $PATH 3850do 3851 IFS=$as_save_IFS 3852 test -z "$as_dir" && as_dir=. 3853 for ac_exec_ext in '' $ac_executable_extensions; do 3854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3855 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3857 break 2 3858 fi 3859done 3860done 3861 3862fi 3863fi 3864DLLTOOL=$ac_cv_prog_DLLTOOL 3865if test -n "$DLLTOOL"; then 3866 echo "$as_me:$LINENO: result: $DLLTOOL" >&5 3867echo "${ECHO_T}$DLLTOOL" >&6 3868else 3869 echo "$as_me:$LINENO: result: no" >&5 3870echo "${ECHO_T}no" >&6 3871fi 3872 3873fi 3874if test -z "$ac_cv_prog_DLLTOOL"; then 3875 ac_ct_DLLTOOL=$DLLTOOL 3876 # Extract the first word of "dlltool", so it can be a program name with args. 3877set dummy dlltool; ac_word=$2 3878echo "$as_me:$LINENO: checking for $ac_word" >&5 3879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3880if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 3881 echo $ECHO_N "(cached) $ECHO_C" >&6 3882else 3883 if test -n "$ac_ct_DLLTOOL"; then 3884 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 3885else 3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3887for as_dir in $PATH 3888do 3889 IFS=$as_save_IFS 3890 test -z "$as_dir" && as_dir=. 3891 for ac_exec_ext in '' $ac_executable_extensions; do 3892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3893 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 3894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3895 break 2 3896 fi 3897done 3898done 3899 3900 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" 3901fi 3902fi 3903ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 3904if test -n "$ac_ct_DLLTOOL"; then 3905 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 3906echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 3907else 3908 echo "$as_me:$LINENO: result: no" >&5 3909echo "${ECHO_T}no" >&6 3910fi 3911 3912 DLLTOOL=$ac_ct_DLLTOOL 3913else 3914 DLLTOOL="$ac_cv_prog_DLLTOOL" 3915fi 3916 3917 if test -n "$ac_tool_prefix"; then 3918 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3919set dummy ${ac_tool_prefix}as; ac_word=$2 3920echo "$as_me:$LINENO: checking for $ac_word" >&5 3921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3922if test "${ac_cv_prog_AS+set}" = set; then 3923 echo $ECHO_N "(cached) $ECHO_C" >&6 3924else 3925 if test -n "$AS"; then 3926 ac_cv_prog_AS="$AS" # Let the user override the test. 3927else 3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3929for as_dir in $PATH 3930do 3931 IFS=$as_save_IFS 3932 test -z "$as_dir" && as_dir=. 3933 for ac_exec_ext in '' $ac_executable_extensions; do 3934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3935 ac_cv_prog_AS="${ac_tool_prefix}as" 3936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3937 break 2 3938 fi 3939done 3940done 3941 3942fi 3943fi 3944AS=$ac_cv_prog_AS 3945if test -n "$AS"; then 3946 echo "$as_me:$LINENO: result: $AS" >&5 3947echo "${ECHO_T}$AS" >&6 3948else 3949 echo "$as_me:$LINENO: result: no" >&5 3950echo "${ECHO_T}no" >&6 3951fi 3952 3953fi 3954if test -z "$ac_cv_prog_AS"; then 3955 ac_ct_AS=$AS 3956 # Extract the first word of "as", so it can be a program name with args. 3957set dummy as; ac_word=$2 3958echo "$as_me:$LINENO: checking for $ac_word" >&5 3959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3960if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 3961 echo $ECHO_N "(cached) $ECHO_C" >&6 3962else 3963 if test -n "$ac_ct_AS"; then 3964 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3965else 3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3967for as_dir in $PATH 3968do 3969 IFS=$as_save_IFS 3970 test -z "$as_dir" && as_dir=. 3971 for ac_exec_ext in '' $ac_executable_extensions; do 3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3973 ac_cv_prog_ac_ct_AS="as" 3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3975 break 2 3976 fi 3977done 3978done 3979 3980 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" 3981fi 3982fi 3983ac_ct_AS=$ac_cv_prog_ac_ct_AS 3984if test -n "$ac_ct_AS"; then 3985 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 3986echo "${ECHO_T}$ac_ct_AS" >&6 3987else 3988 echo "$as_me:$LINENO: result: no" >&5 3989echo "${ECHO_T}no" >&6 3990fi 3991 3992 AS=$ac_ct_AS 3993else 3994 AS="$ac_cv_prog_AS" 3995fi 3996 3997 if test -n "$ac_tool_prefix"; then 3998 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3999set dummy ${ac_tool_prefix}objdump; ac_word=$2 4000echo "$as_me:$LINENO: checking for $ac_word" >&5 4001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4002if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4003 echo $ECHO_N "(cached) $ECHO_C" >&6 4004else 4005 if test -n "$OBJDUMP"; then 4006 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4007else 4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4009for as_dir in $PATH 4010do 4011 IFS=$as_save_IFS 4012 test -z "$as_dir" && as_dir=. 4013 for ac_exec_ext in '' $ac_executable_extensions; do 4014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4015 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4017 break 2 4018 fi 4019done 4020done 4021 4022fi 4023fi 4024OBJDUMP=$ac_cv_prog_OBJDUMP 4025if test -n "$OBJDUMP"; then 4026 echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4027echo "${ECHO_T}$OBJDUMP" >&6 4028else 4029 echo "$as_me:$LINENO: result: no" >&5 4030echo "${ECHO_T}no" >&6 4031fi 4032 4033fi 4034if test -z "$ac_cv_prog_OBJDUMP"; then 4035 ac_ct_OBJDUMP=$OBJDUMP 4036 # Extract the first word of "objdump", so it can be a program name with args. 4037set dummy objdump; ac_word=$2 4038echo "$as_me:$LINENO: checking for $ac_word" >&5 4039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4040if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4041 echo $ECHO_N "(cached) $ECHO_C" >&6 4042else 4043 if test -n "$ac_ct_OBJDUMP"; then 4044 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4045else 4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4047for as_dir in $PATH 4048do 4049 IFS=$as_save_IFS 4050 test -z "$as_dir" && as_dir=. 4051 for ac_exec_ext in '' $ac_executable_extensions; do 4052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4053 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4055 break 2 4056 fi 4057done 4058done 4059 4060 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" 4061fi 4062fi 4063ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4064if test -n "$ac_ct_OBJDUMP"; then 4065 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4066echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 4067else 4068 echo "$as_me:$LINENO: result: no" >&5 4069echo "${ECHO_T}no" >&6 4070fi 4071 4072 OBJDUMP=$ac_ct_OBJDUMP 4073else 4074 OBJDUMP="$ac_cv_prog_OBJDUMP" 4075fi 4076 4077 ;; 4078 4079esac 4080 4081need_locks="$enable_libtool_lock" 4082 4083 4084ac_ext=c 4085ac_cpp='$CPP $CPPFLAGS' 4086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4088ac_compiler_gnu=$ac_cv_c_compiler_gnu 4089echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4090echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4091# On Suns, sometimes $CPP names a directory. 4092if test -n "$CPP" && test -d "$CPP"; then 4093 CPP= 4094fi 4095if test -z "$CPP"; then 4096 if test "${ac_cv_prog_CPP+set}" = set; then 4097 echo $ECHO_N "(cached) $ECHO_C" >&6 4098else 4099 # Double quotes because CPP needs to be expanded 4100 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4101 do 4102 ac_preproc_ok=false 4103for ac_c_preproc_warn_flag in '' yes 4104do 4105 # Use a header file that comes with gcc, so configuring glibc 4106 # with a fresh cross-compiler works. 4107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4108 # <limits.h> exists even on freestanding compilers. 4109 # On the NeXT, cc -E runs the code through the compiler's parser, 4110 # not just through cpp. "Syntax error" is here to catch this case. 4111 cat >conftest.$ac_ext <<_ACEOF 4112/* confdefs.h. */ 4113_ACEOF 4114cat confdefs.h >>conftest.$ac_ext 4115cat >>conftest.$ac_ext <<_ACEOF 4116/* end confdefs.h. */ 4117#ifdef __STDC__ 4118# include <limits.h> 4119#else 4120# include <assert.h> 4121#endif 4122 Syntax error 4123_ACEOF 4124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4126 ac_status=$? 4127 grep -v '^ *+' conftest.er1 >conftest.err 4128 rm -f conftest.er1 4129 cat conftest.err >&5 4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4131 (exit $ac_status); } >/dev/null; then 4132 if test -s conftest.err; then 4133 ac_cpp_err=$ac_c_preproc_warn_flag 4134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4135 else 4136 ac_cpp_err= 4137 fi 4138else 4139 ac_cpp_err=yes 4140fi 4141if test -z "$ac_cpp_err"; then 4142 : 4143else 4144 echo "$as_me: failed program was:" >&5 4145sed 's/^/| /' conftest.$ac_ext >&5 4146 4147 # Broken: fails on valid input. 4148continue 4149fi 4150rm -f conftest.err conftest.$ac_ext 4151 4152 # OK, works on sane cases. Now check whether non-existent headers 4153 # can be detected and how. 4154 cat >conftest.$ac_ext <<_ACEOF 4155/* confdefs.h. */ 4156_ACEOF 4157cat confdefs.h >>conftest.$ac_ext 4158cat >>conftest.$ac_ext <<_ACEOF 4159/* end confdefs.h. */ 4160#include <ac_nonexistent.h> 4161_ACEOF 4162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4164 ac_status=$? 4165 grep -v '^ *+' conftest.er1 >conftest.err 4166 rm -f conftest.er1 4167 cat conftest.err >&5 4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4169 (exit $ac_status); } >/dev/null; then 4170 if test -s conftest.err; then 4171 ac_cpp_err=$ac_c_preproc_warn_flag 4172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4173 else 4174 ac_cpp_err= 4175 fi 4176else 4177 ac_cpp_err=yes 4178fi 4179if test -z "$ac_cpp_err"; then 4180 # Broken: success on invalid input. 4181continue 4182else 4183 echo "$as_me: failed program was:" >&5 4184sed 's/^/| /' conftest.$ac_ext >&5 4185 4186 # Passes both tests. 4187ac_preproc_ok=: 4188break 4189fi 4190rm -f conftest.err conftest.$ac_ext 4191 4192done 4193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4194rm -f conftest.err conftest.$ac_ext 4195if $ac_preproc_ok; then 4196 break 4197fi 4198 4199 done 4200 ac_cv_prog_CPP=$CPP 4201 4202fi 4203 CPP=$ac_cv_prog_CPP 4204else 4205 ac_cv_prog_CPP=$CPP 4206fi 4207echo "$as_me:$LINENO: result: $CPP" >&5 4208echo "${ECHO_T}$CPP" >&6 4209ac_preproc_ok=false 4210for ac_c_preproc_warn_flag in '' yes 4211do 4212 # Use a header file that comes with gcc, so configuring glibc 4213 # with a fresh cross-compiler works. 4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4215 # <limits.h> exists even on freestanding compilers. 4216 # On the NeXT, cc -E runs the code through the compiler's parser, 4217 # not just through cpp. "Syntax error" is here to catch this case. 4218 cat >conftest.$ac_ext <<_ACEOF 4219/* confdefs.h. */ 4220_ACEOF 4221cat confdefs.h >>conftest.$ac_ext 4222cat >>conftest.$ac_ext <<_ACEOF 4223/* end confdefs.h. */ 4224#ifdef __STDC__ 4225# include <limits.h> 4226#else 4227# include <assert.h> 4228#endif 4229 Syntax error 4230_ACEOF 4231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4233 ac_status=$? 4234 grep -v '^ *+' conftest.er1 >conftest.err 4235 rm -f conftest.er1 4236 cat conftest.err >&5 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4238 (exit $ac_status); } >/dev/null; then 4239 if test -s conftest.err; then 4240 ac_cpp_err=$ac_c_preproc_warn_flag 4241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4242 else 4243 ac_cpp_err= 4244 fi 4245else 4246 ac_cpp_err=yes 4247fi 4248if test -z "$ac_cpp_err"; then 4249 : 4250else 4251 echo "$as_me: failed program was:" >&5 4252sed 's/^/| /' conftest.$ac_ext >&5 4253 4254 # Broken: fails on valid input. 4255continue 4256fi 4257rm -f conftest.err conftest.$ac_ext 4258 4259 # OK, works on sane cases. Now check whether non-existent headers 4260 # can be detected and how. 4261 cat >conftest.$ac_ext <<_ACEOF 4262/* confdefs.h. */ 4263_ACEOF 4264cat confdefs.h >>conftest.$ac_ext 4265cat >>conftest.$ac_ext <<_ACEOF 4266/* end confdefs.h. */ 4267#include <ac_nonexistent.h> 4268_ACEOF 4269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4271 ac_status=$? 4272 grep -v '^ *+' conftest.er1 >conftest.err 4273 rm -f conftest.er1 4274 cat conftest.err >&5 4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4276 (exit $ac_status); } >/dev/null; then 4277 if test -s conftest.err; then 4278 ac_cpp_err=$ac_c_preproc_warn_flag 4279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4280 else 4281 ac_cpp_err= 4282 fi 4283else 4284 ac_cpp_err=yes 4285fi 4286if test -z "$ac_cpp_err"; then 4287 # Broken: success on invalid input. 4288continue 4289else 4290 echo "$as_me: failed program was:" >&5 4291sed 's/^/| /' conftest.$ac_ext >&5 4292 4293 # Passes both tests. 4294ac_preproc_ok=: 4295break 4296fi 4297rm -f conftest.err conftest.$ac_ext 4298 4299done 4300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4301rm -f conftest.err conftest.$ac_ext 4302if $ac_preproc_ok; then 4303 : 4304else 4305 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4306See \`config.log' for more details." >&5 4307echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4308See \`config.log' for more details." >&2;} 4309 { (exit 1); exit 1; }; } 4310fi 4311 4312ac_ext=c 4313ac_cpp='$CPP $CPPFLAGS' 4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4316ac_compiler_gnu=$ac_cv_c_compiler_gnu 4317 4318 4319echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4320echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4321if test "${ac_cv_header_stdc+set}" = set; then 4322 echo $ECHO_N "(cached) $ECHO_C" >&6 4323else 4324 cat >conftest.$ac_ext <<_ACEOF 4325/* confdefs.h. */ 4326_ACEOF 4327cat confdefs.h >>conftest.$ac_ext 4328cat >>conftest.$ac_ext <<_ACEOF 4329/* end confdefs.h. */ 4330#include <stdlib.h> 4331#include <stdarg.h> 4332#include <string.h> 4333#include <float.h> 4334 4335int 4336main () 4337{ 4338 4339 ; 4340 return 0; 4341} 4342_ACEOF 4343rm -f conftest.$ac_objext 4344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4345 (eval $ac_compile) 2>conftest.er1 4346 ac_status=$? 4347 grep -v '^ *+' conftest.er1 >conftest.err 4348 rm -f conftest.er1 4349 cat conftest.err >&5 4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4351 (exit $ac_status); } && 4352 { ac_try='test -z "$ac_c_werror_flag" 4353 || test ! -s conftest.err' 4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4355 (eval $ac_try) 2>&5 4356 ac_status=$? 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); }; } && 4359 { ac_try='test -s conftest.$ac_objext' 4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4361 (eval $ac_try) 2>&5 4362 ac_status=$? 4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4364 (exit $ac_status); }; }; then 4365 ac_cv_header_stdc=yes 4366else 4367 echo "$as_me: failed program was:" >&5 4368sed 's/^/| /' conftest.$ac_ext >&5 4369 4370ac_cv_header_stdc=no 4371fi 4372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4373 4374if test $ac_cv_header_stdc = yes; then 4375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4376 cat >conftest.$ac_ext <<_ACEOF 4377/* confdefs.h. */ 4378_ACEOF 4379cat confdefs.h >>conftest.$ac_ext 4380cat >>conftest.$ac_ext <<_ACEOF 4381/* end confdefs.h. */ 4382#include <string.h> 4383 4384_ACEOF 4385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4386 $EGREP "memchr" >/dev/null 2>&1; then 4387 : 4388else 4389 ac_cv_header_stdc=no 4390fi 4391rm -f conftest* 4392 4393fi 4394 4395if test $ac_cv_header_stdc = yes; then 4396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4397 cat >conftest.$ac_ext <<_ACEOF 4398/* confdefs.h. */ 4399_ACEOF 4400cat confdefs.h >>conftest.$ac_ext 4401cat >>conftest.$ac_ext <<_ACEOF 4402/* end confdefs.h. */ 4403#include <stdlib.h> 4404 4405_ACEOF 4406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4407 $EGREP "free" >/dev/null 2>&1; then 4408 : 4409else 4410 ac_cv_header_stdc=no 4411fi 4412rm -f conftest* 4413 4414fi 4415 4416if test $ac_cv_header_stdc = yes; then 4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4418 if test "$cross_compiling" = yes; then 4419 : 4420else 4421 cat >conftest.$ac_ext <<_ACEOF 4422/* confdefs.h. */ 4423_ACEOF 4424cat confdefs.h >>conftest.$ac_ext 4425cat >>conftest.$ac_ext <<_ACEOF 4426/* end confdefs.h. */ 4427#include <ctype.h> 4428#if ((' ' & 0x0FF) == 0x020) 4429# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4430# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4431#else 4432# define ISLOWER(c) \ 4433 (('a' <= (c) && (c) <= 'i') \ 4434 || ('j' <= (c) && (c) <= 'r') \ 4435 || ('s' <= (c) && (c) <= 'z')) 4436# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4437#endif 4438 4439#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4440int 4441main () 4442{ 4443 int i; 4444 for (i = 0; i < 256; i++) 4445 if (XOR (islower (i), ISLOWER (i)) 4446 || toupper (i) != TOUPPER (i)) 4447 exit(2); 4448 exit (0); 4449} 4450_ACEOF 4451rm -f conftest$ac_exeext 4452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4453 (eval $ac_link) 2>&5 4454 ac_status=$? 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4458 (eval $ac_try) 2>&5 4459 ac_status=$? 4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4461 (exit $ac_status); }; }; then 4462 : 4463else 4464 echo "$as_me: program exited with status $ac_status" >&5 4465echo "$as_me: failed program was:" >&5 4466sed 's/^/| /' conftest.$ac_ext >&5 4467 4468( exit $ac_status ) 4469ac_cv_header_stdc=no 4470fi 4471rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4472fi 4473fi 4474fi 4475echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4476echo "${ECHO_T}$ac_cv_header_stdc" >&6 4477if test $ac_cv_header_stdc = yes; then 4478 4479cat >>confdefs.h <<\_ACEOF 4480#define STDC_HEADERS 1 4481_ACEOF 4482 4483fi 4484 4485# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4496 inttypes.h stdint.h unistd.h 4497do 4498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4499echo "$as_me:$LINENO: checking for $ac_header" >&5 4500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4501if eval "test \"\${$as_ac_Header+set}\" = set"; then 4502 echo $ECHO_N "(cached) $ECHO_C" >&6 4503else 4504 cat >conftest.$ac_ext <<_ACEOF 4505/* confdefs.h. */ 4506_ACEOF 4507cat confdefs.h >>conftest.$ac_ext 4508cat >>conftest.$ac_ext <<_ACEOF 4509/* end confdefs.h. */ 4510$ac_includes_default 4511 4512#include <$ac_header> 4513_ACEOF 4514rm -f conftest.$ac_objext 4515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4516 (eval $ac_compile) 2>conftest.er1 4517 ac_status=$? 4518 grep -v '^ *+' conftest.er1 >conftest.err 4519 rm -f conftest.er1 4520 cat conftest.err >&5 4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4522 (exit $ac_status); } && 4523 { ac_try='test -z "$ac_c_werror_flag" 4524 || test ! -s conftest.err' 4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4526 (eval $ac_try) 2>&5 4527 ac_status=$? 4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4529 (exit $ac_status); }; } && 4530 { ac_try='test -s conftest.$ac_objext' 4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4532 (eval $ac_try) 2>&5 4533 ac_status=$? 4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4535 (exit $ac_status); }; }; then 4536 eval "$as_ac_Header=yes" 4537else 4538 echo "$as_me: failed program was:" >&5 4539sed 's/^/| /' conftest.$ac_ext >&5 4540 4541eval "$as_ac_Header=no" 4542fi 4543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4544fi 4545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4547if test `eval echo '${'$as_ac_Header'}'` = yes; then 4548 cat >>confdefs.h <<_ACEOF 4549#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4550_ACEOF 4551 4552fi 4553 4554done 4555 4556 4557 4558for ac_header in dlfcn.h 4559do 4560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4561if eval "test \"\${$as_ac_Header+set}\" = set"; then 4562 echo "$as_me:$LINENO: checking for $ac_header" >&5 4563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4564if eval "test \"\${$as_ac_Header+set}\" = set"; then 4565 echo $ECHO_N "(cached) $ECHO_C" >&6 4566fi 4567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4569else 4570 # Is the header compilable? 4571echo "$as_me:$LINENO: checking $ac_header usability" >&5 4572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4573cat >conftest.$ac_ext <<_ACEOF 4574/* confdefs.h. */ 4575_ACEOF 4576cat confdefs.h >>conftest.$ac_ext 4577cat >>conftest.$ac_ext <<_ACEOF 4578/* end confdefs.h. */ 4579$ac_includes_default 4580#include <$ac_header> 4581_ACEOF 4582rm -f conftest.$ac_objext 4583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4584 (eval $ac_compile) 2>conftest.er1 4585 ac_status=$? 4586 grep -v '^ *+' conftest.er1 >conftest.err 4587 rm -f conftest.er1 4588 cat conftest.err >&5 4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4590 (exit $ac_status); } && 4591 { ac_try='test -z "$ac_c_werror_flag" 4592 || test ! -s conftest.err' 4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4594 (eval $ac_try) 2>&5 4595 ac_status=$? 4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4597 (exit $ac_status); }; } && 4598 { ac_try='test -s conftest.$ac_objext' 4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4600 (eval $ac_try) 2>&5 4601 ac_status=$? 4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4603 (exit $ac_status); }; }; then 4604 ac_header_compiler=yes 4605else 4606 echo "$as_me: failed program was:" >&5 4607sed 's/^/| /' conftest.$ac_ext >&5 4608 4609ac_header_compiler=no 4610fi 4611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4613echo "${ECHO_T}$ac_header_compiler" >&6 4614 4615# Is the header present? 4616echo "$as_me:$LINENO: checking $ac_header presence" >&5 4617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4618cat >conftest.$ac_ext <<_ACEOF 4619/* confdefs.h. */ 4620_ACEOF 4621cat confdefs.h >>conftest.$ac_ext 4622cat >>conftest.$ac_ext <<_ACEOF 4623/* end confdefs.h. */ 4624#include <$ac_header> 4625_ACEOF 4626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4628 ac_status=$? 4629 grep -v '^ *+' conftest.er1 >conftest.err 4630 rm -f conftest.er1 4631 cat conftest.err >&5 4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4633 (exit $ac_status); } >/dev/null; then 4634 if test -s conftest.err; then 4635 ac_cpp_err=$ac_c_preproc_warn_flag 4636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4637 else 4638 ac_cpp_err= 4639 fi 4640else 4641 ac_cpp_err=yes 4642fi 4643if test -z "$ac_cpp_err"; then 4644 ac_header_preproc=yes 4645else 4646 echo "$as_me: failed program was:" >&5 4647sed 's/^/| /' conftest.$ac_ext >&5 4648 4649 ac_header_preproc=no 4650fi 4651rm -f conftest.err conftest.$ac_ext 4652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4653echo "${ECHO_T}$ac_header_preproc" >&6 4654 4655# So? What about this header? 4656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4657 yes:no: ) 4658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4662 ac_header_preproc=yes 4663 ;; 4664 no:yes:* ) 4665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4677 ( 4678 cat <<\_ASBOX 4679## ---------------------------------- ## 4680## Report this to bug-libtool@gnu.org ## 4681## ---------------------------------- ## 4682_ASBOX 4683 ) | 4684 sed "s/^/$as_me: WARNING: /" >&2 4685 ;; 4686esac 4687echo "$as_me:$LINENO: checking for $ac_header" >&5 4688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4689if eval "test \"\${$as_ac_Header+set}\" = set"; then 4690 echo $ECHO_N "(cached) $ECHO_C" >&6 4691else 4692 eval "$as_ac_Header=\$ac_header_preproc" 4693fi 4694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4696 4697fi 4698if test `eval echo '${'$as_ac_Header'}'` = yes; then 4699 cat >>confdefs.h <<_ACEOF 4700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4701_ACEOF 4702 4703fi 4704 4705done 4706 4707ac_ext=cc 4708ac_cpp='$CXXCPP $CPPFLAGS' 4709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4712if test -n "$ac_tool_prefix"; then 4713 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4714 do 4715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4716set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4717echo "$as_me:$LINENO: checking for $ac_word" >&5 4718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4719if test "${ac_cv_prog_CXX+set}" = set; then 4720 echo $ECHO_N "(cached) $ECHO_C" >&6 4721else 4722 if test -n "$CXX"; then 4723 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4724else 4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4726for as_dir in $PATH 4727do 4728 IFS=$as_save_IFS 4729 test -z "$as_dir" && as_dir=. 4730 for ac_exec_ext in '' $ac_executable_extensions; do 4731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4732 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4734 break 2 4735 fi 4736done 4737done 4738 4739fi 4740fi 4741CXX=$ac_cv_prog_CXX 4742if test -n "$CXX"; then 4743 echo "$as_me:$LINENO: result: $CXX" >&5 4744echo "${ECHO_T}$CXX" >&6 4745else 4746 echo "$as_me:$LINENO: result: no" >&5 4747echo "${ECHO_T}no" >&6 4748fi 4749 4750 test -n "$CXX" && break 4751 done 4752fi 4753if test -z "$CXX"; then 4754 ac_ct_CXX=$CXX 4755 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4756do 4757 # Extract the first word of "$ac_prog", so it can be a program name with args. 4758set dummy $ac_prog; ac_word=$2 4759echo "$as_me:$LINENO: checking for $ac_word" >&5 4760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4761if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4762 echo $ECHO_N "(cached) $ECHO_C" >&6 4763else 4764 if test -n "$ac_ct_CXX"; then 4765 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4766else 4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4768for as_dir in $PATH 4769do 4770 IFS=$as_save_IFS 4771 test -z "$as_dir" && as_dir=. 4772 for ac_exec_ext in '' $ac_executable_extensions; do 4773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4774 ac_cv_prog_ac_ct_CXX="$ac_prog" 4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4776 break 2 4777 fi 4778done 4779done 4780 4781fi 4782fi 4783ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4784if test -n "$ac_ct_CXX"; then 4785 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4786echo "${ECHO_T}$ac_ct_CXX" >&6 4787else 4788 echo "$as_me:$LINENO: result: no" >&5 4789echo "${ECHO_T}no" >&6 4790fi 4791 4792 test -n "$ac_ct_CXX" && break 4793done 4794test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4795 4796 CXX=$ac_ct_CXX 4797fi 4798 4799 4800# Provide some information about the compiler. 4801echo "$as_me:$LINENO:" \ 4802 "checking for C++ compiler version" >&5 4803ac_compiler=`set X $ac_compile; echo $2` 4804{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4805 (eval $ac_compiler --version </dev/null >&5) 2>&5 4806 ac_status=$? 4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4808 (exit $ac_status); } 4809{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4810 (eval $ac_compiler -v </dev/null >&5) 2>&5 4811 ac_status=$? 4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4813 (exit $ac_status); } 4814{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4815 (eval $ac_compiler -V </dev/null >&5) 2>&5 4816 ac_status=$? 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); } 4819 4820echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4821echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4822if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4823 echo $ECHO_N "(cached) $ECHO_C" >&6 4824else 4825 cat >conftest.$ac_ext <<_ACEOF 4826/* confdefs.h. */ 4827_ACEOF 4828cat confdefs.h >>conftest.$ac_ext 4829cat >>conftest.$ac_ext <<_ACEOF 4830/* end confdefs.h. */ 4831 4832int 4833main () 4834{ 4835#ifndef __GNUC__ 4836 choke me 4837#endif 4838 4839 ; 4840 return 0; 4841} 4842_ACEOF 4843rm -f conftest.$ac_objext 4844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4845 (eval $ac_compile) 2>conftest.er1 4846 ac_status=$? 4847 grep -v '^ *+' conftest.er1 >conftest.err 4848 rm -f conftest.er1 4849 cat conftest.err >&5 4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4851 (exit $ac_status); } && 4852 { ac_try='test -z "$ac_cxx_werror_flag" 4853 || test ! -s conftest.err' 4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4855 (eval $ac_try) 2>&5 4856 ac_status=$? 4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4858 (exit $ac_status); }; } && 4859 { ac_try='test -s conftest.$ac_objext' 4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4861 (eval $ac_try) 2>&5 4862 ac_status=$? 4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4864 (exit $ac_status); }; }; then 4865 ac_compiler_gnu=yes 4866else 4867 echo "$as_me: failed program was:" >&5 4868sed 's/^/| /' conftest.$ac_ext >&5 4869 4870ac_compiler_gnu=no 4871fi 4872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4873ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4874 4875fi 4876echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4877echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4878GXX=`test $ac_compiler_gnu = yes && echo yes` 4879ac_test_CXXFLAGS=${CXXFLAGS+set} 4880ac_save_CXXFLAGS=$CXXFLAGS 4881CXXFLAGS="-g" 4882echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4883echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4884if test "${ac_cv_prog_cxx_g+set}" = set; then 4885 echo $ECHO_N "(cached) $ECHO_C" >&6 4886else 4887 cat >conftest.$ac_ext <<_ACEOF 4888/* confdefs.h. */ 4889_ACEOF 4890cat confdefs.h >>conftest.$ac_ext 4891cat >>conftest.$ac_ext <<_ACEOF 4892/* end confdefs.h. */ 4893 4894int 4895main () 4896{ 4897 4898 ; 4899 return 0; 4900} 4901_ACEOF 4902rm -f conftest.$ac_objext 4903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4904 (eval $ac_compile) 2>conftest.er1 4905 ac_status=$? 4906 grep -v '^ *+' conftest.er1 >conftest.err 4907 rm -f conftest.er1 4908 cat conftest.err >&5 4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4910 (exit $ac_status); } && 4911 { ac_try='test -z "$ac_cxx_werror_flag" 4912 || test ! -s conftest.err' 4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4914 (eval $ac_try) 2>&5 4915 ac_status=$? 4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4917 (exit $ac_status); }; } && 4918 { ac_try='test -s conftest.$ac_objext' 4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4920 (eval $ac_try) 2>&5 4921 ac_status=$? 4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4923 (exit $ac_status); }; }; then 4924 ac_cv_prog_cxx_g=yes 4925else 4926 echo "$as_me: failed program was:" >&5 4927sed 's/^/| /' conftest.$ac_ext >&5 4928 4929ac_cv_prog_cxx_g=no 4930fi 4931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4932fi 4933echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4934echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4935if test "$ac_test_CXXFLAGS" = set; then 4936 CXXFLAGS=$ac_save_CXXFLAGS 4937elif test $ac_cv_prog_cxx_g = yes; then 4938 if test "$GXX" = yes; then 4939 CXXFLAGS="-g -O2" 4940 else 4941 CXXFLAGS="-g" 4942 fi 4943else 4944 if test "$GXX" = yes; then 4945 CXXFLAGS="-O2" 4946 else 4947 CXXFLAGS= 4948 fi 4949fi 4950for ac_declaration in \ 4951 '' \ 4952 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4953 'extern "C" void std::exit (int); using std::exit;' \ 4954 'extern "C" void exit (int) throw ();' \ 4955 'extern "C" void exit (int);' \ 4956 'void exit (int);' 4957do 4958 cat >conftest.$ac_ext <<_ACEOF 4959/* confdefs.h. */ 4960_ACEOF 4961cat confdefs.h >>conftest.$ac_ext 4962cat >>conftest.$ac_ext <<_ACEOF 4963/* end confdefs.h. */ 4964$ac_declaration 4965#include <stdlib.h> 4966int 4967main () 4968{ 4969exit (42); 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974rm -f conftest.$ac_objext 4975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4976 (eval $ac_compile) 2>conftest.er1 4977 ac_status=$? 4978 grep -v '^ *+' conftest.er1 >conftest.err 4979 rm -f conftest.er1 4980 cat conftest.err >&5 4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4982 (exit $ac_status); } && 4983 { ac_try='test -z "$ac_cxx_werror_flag" 4984 || test ! -s conftest.err' 4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4986 (eval $ac_try) 2>&5 4987 ac_status=$? 4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4989 (exit $ac_status); }; } && 4990 { ac_try='test -s conftest.$ac_objext' 4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4992 (eval $ac_try) 2>&5 4993 ac_status=$? 4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4995 (exit $ac_status); }; }; then 4996 : 4997else 4998 echo "$as_me: failed program was:" >&5 4999sed 's/^/| /' conftest.$ac_ext >&5 5000 5001continue 5002fi 5003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5004 cat >conftest.$ac_ext <<_ACEOF 5005/* confdefs.h. */ 5006_ACEOF 5007cat confdefs.h >>conftest.$ac_ext 5008cat >>conftest.$ac_ext <<_ACEOF 5009/* end confdefs.h. */ 5010$ac_declaration 5011int 5012main () 5013{ 5014exit (42); 5015 ; 5016 return 0; 5017} 5018_ACEOF 5019rm -f conftest.$ac_objext 5020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5021 (eval $ac_compile) 2>conftest.er1 5022 ac_status=$? 5023 grep -v '^ *+' conftest.er1 >conftest.err 5024 rm -f conftest.er1 5025 cat conftest.err >&5 5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027 (exit $ac_status); } && 5028 { ac_try='test -z "$ac_cxx_werror_flag" 5029 || test ! -s conftest.err' 5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5031 (eval $ac_try) 2>&5 5032 ac_status=$? 5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5034 (exit $ac_status); }; } && 5035 { ac_try='test -s conftest.$ac_objext' 5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5037 (eval $ac_try) 2>&5 5038 ac_status=$? 5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5040 (exit $ac_status); }; }; then 5041 break 5042else 5043 echo "$as_me: failed program was:" >&5 5044sed 's/^/| /' conftest.$ac_ext >&5 5045 5046fi 5047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5048done 5049rm -f conftest* 5050if test -n "$ac_declaration"; then 5051 echo '#ifdef __cplusplus' >>confdefs.h 5052 echo $ac_declaration >>confdefs.h 5053 echo '#endif' >>confdefs.h 5054fi 5055 5056ac_ext=cc 5057ac_cpp='$CXXCPP $CPPFLAGS' 5058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5061 5062depcc="$CXX" am_compiler_list= 5063 5064echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5065echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5066if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5067 echo $ECHO_N "(cached) $ECHO_C" >&6 5068else 5069 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5070 # We make a subdir and do the tests there. Otherwise we can end up 5071 # making bogus files that we don't know about and never remove. For 5072 # instance it was reported that on HP-UX the gcc test will end up 5073 # making a dummy file named `D' -- because `-MD' means `put the output 5074 # in D'. 5075 mkdir conftest.dir 5076 # Copy depcomp to subdir because otherwise we won't find it if we're 5077 # using a relative directory. 5078 cp "$am_depcomp" conftest.dir 5079 cd conftest.dir 5080 # We will build objects and dependencies in a subdirectory because 5081 # it helps to detect inapplicable dependency modes. For instance 5082 # both Tru64's cc and ICC support -MD to output dependencies as a 5083 # side effect of compilation, but ICC will put the dependencies in 5084 # the current directory while Tru64 will put them in the object 5085 # directory. 5086 mkdir sub 5087 5088 am_cv_CXX_dependencies_compiler_type=none 5089 if test "$am_compiler_list" = ""; then 5090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5091 fi 5092 for depmode in $am_compiler_list; do 5093 # Setup a source with many dependencies, because some compilers 5094 # like to wrap large dependency lists on column 80 (with \), and 5095 # we should not choose a depcomp mode which is confused by this. 5096 # 5097 # We need to recreate these files for each test, as the compiler may 5098 # overwrite some of them when testing with obscure command lines. 5099 # This happens at least with the AIX C compiler. 5100 : > sub/conftest.c 5101 for i in 1 2 3 4 5 6; do 5102 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5103 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5104 # Solaris 8's {/usr,}/bin/sh. 5105 touch sub/conftst$i.h 5106 done 5107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5108 5109 case $depmode in 5110 nosideeffect) 5111 # after this tag, mechanisms are not by side-effect, so they'll 5112 # only be used when explicitly requested 5113 if test "x$enable_dependency_tracking" = xyes; then 5114 continue 5115 else 5116 break 5117 fi 5118 ;; 5119 none) break ;; 5120 esac 5121 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5122 # mode. It turns out that the SunPro C++ compiler does not properly 5123 # handle `-M -o', and we need to detect this. 5124 if depmode=$depmode \ 5125 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5126 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5127 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5128 >/dev/null 2>conftest.err && 5129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5130 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5132 # icc doesn't choke on unknown options, it will just issue warnings 5133 # or remarks (even with -Werror). So we grep stderr for any message 5134 # that says an option was ignored or not supported. 5135 # When given -MP, icc 7.0 and 7.1 complain thusly: 5136 # icc: Command line warning: ignoring option '-M'; no argument required 5137 # The diagnosis changed in icc 8.0: 5138 # icc: Command line remark: option '-MP' not supported 5139 if (grep 'ignoring option' conftest.err || 5140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5141 am_cv_CXX_dependencies_compiler_type=$depmode 5142 break 5143 fi 5144 fi 5145 done 5146 5147 cd .. 5148 rm -rf conftest.dir 5149else 5150 am_cv_CXX_dependencies_compiler_type=none 5151fi 5152 5153fi 5154echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5155echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5156CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5157 5158 5159 5160if 5161 test "x$enable_dependency_tracking" != xno \ 5162 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5163 am__fastdepCXX_TRUE= 5164 am__fastdepCXX_FALSE='#' 5165else 5166 am__fastdepCXX_TRUE='#' 5167 am__fastdepCXX_FALSE= 5168fi 5169 5170 5171 5172 5173if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5174 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5175 (test "X$CXX" != "Xg++"))) ; then 5176 ac_ext=cc 5177ac_cpp='$CXXCPP $CPPFLAGS' 5178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5181echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5182echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5183if test -z "$CXXCPP"; then 5184 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5185 echo $ECHO_N "(cached) $ECHO_C" >&6 5186else 5187 # Double quotes because CXXCPP needs to be expanded 5188 for CXXCPP in "$CXX -E" "/lib/cpp" 5189 do 5190 ac_preproc_ok=false 5191for ac_cxx_preproc_warn_flag in '' yes 5192do 5193 # Use a header file that comes with gcc, so configuring glibc 5194 # with a fresh cross-compiler works. 5195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5196 # <limits.h> exists even on freestanding compilers. 5197 # On the NeXT, cc -E runs the code through the compiler's parser, 5198 # not just through cpp. "Syntax error" is here to catch this case. 5199 cat >conftest.$ac_ext <<_ACEOF 5200/* confdefs.h. */ 5201_ACEOF 5202cat confdefs.h >>conftest.$ac_ext 5203cat >>conftest.$ac_ext <<_ACEOF 5204/* end confdefs.h. */ 5205#ifdef __STDC__ 5206# include <limits.h> 5207#else 5208# include <assert.h> 5209#endif 5210 Syntax error 5211_ACEOF 5212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5214 ac_status=$? 5215 grep -v '^ *+' conftest.er1 >conftest.err 5216 rm -f conftest.er1 5217 cat conftest.err >&5 5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5219 (exit $ac_status); } >/dev/null; then 5220 if test -s conftest.err; then 5221 ac_cpp_err=$ac_cxx_preproc_warn_flag 5222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5223 else 5224 ac_cpp_err= 5225 fi 5226else 5227 ac_cpp_err=yes 5228fi 5229if test -z "$ac_cpp_err"; then 5230 : 5231else 5232 echo "$as_me: failed program was:" >&5 5233sed 's/^/| /' conftest.$ac_ext >&5 5234 5235 # Broken: fails on valid input. 5236continue 5237fi 5238rm -f conftest.err conftest.$ac_ext 5239 5240 # OK, works on sane cases. Now check whether non-existent headers 5241 # can be detected and how. 5242 cat >conftest.$ac_ext <<_ACEOF 5243/* confdefs.h. */ 5244_ACEOF 5245cat confdefs.h >>conftest.$ac_ext 5246cat >>conftest.$ac_ext <<_ACEOF 5247/* end confdefs.h. */ 5248#include <ac_nonexistent.h> 5249_ACEOF 5250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5252 ac_status=$? 5253 grep -v '^ *+' conftest.er1 >conftest.err 5254 rm -f conftest.er1 5255 cat conftest.err >&5 5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5257 (exit $ac_status); } >/dev/null; then 5258 if test -s conftest.err; then 5259 ac_cpp_err=$ac_cxx_preproc_warn_flag 5260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5261 else 5262 ac_cpp_err= 5263 fi 5264else 5265 ac_cpp_err=yes 5266fi 5267if test -z "$ac_cpp_err"; then 5268 # Broken: success on invalid input. 5269continue 5270else 5271 echo "$as_me: failed program was:" >&5 5272sed 's/^/| /' conftest.$ac_ext >&5 5273 5274 # Passes both tests. 5275ac_preproc_ok=: 5276break 5277fi 5278rm -f conftest.err conftest.$ac_ext 5279 5280done 5281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5282rm -f conftest.err conftest.$ac_ext 5283if $ac_preproc_ok; then 5284 break 5285fi 5286 5287 done 5288 ac_cv_prog_CXXCPP=$CXXCPP 5289 5290fi 5291 CXXCPP=$ac_cv_prog_CXXCPP 5292else 5293 ac_cv_prog_CXXCPP=$CXXCPP 5294fi 5295echo "$as_me:$LINENO: result: $CXXCPP" >&5 5296echo "${ECHO_T}$CXXCPP" >&6 5297ac_preproc_ok=false 5298for ac_cxx_preproc_warn_flag in '' yes 5299do 5300 # Use a header file that comes with gcc, so configuring glibc 5301 # with a fresh cross-compiler works. 5302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5303 # <limits.h> exists even on freestanding compilers. 5304 # On the NeXT, cc -E runs the code through the compiler's parser, 5305 # not just through cpp. "Syntax error" is here to catch this case. 5306 cat >conftest.$ac_ext <<_ACEOF 5307/* confdefs.h. */ 5308_ACEOF 5309cat confdefs.h >>conftest.$ac_ext 5310cat >>conftest.$ac_ext <<_ACEOF 5311/* end confdefs.h. */ 5312#ifdef __STDC__ 5313# include <limits.h> 5314#else 5315# include <assert.h> 5316#endif 5317 Syntax error 5318_ACEOF 5319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5321 ac_status=$? 5322 grep -v '^ *+' conftest.er1 >conftest.err 5323 rm -f conftest.er1 5324 cat conftest.err >&5 5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5326 (exit $ac_status); } >/dev/null; then 5327 if test -s conftest.err; then 5328 ac_cpp_err=$ac_cxx_preproc_warn_flag 5329 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5330 else 5331 ac_cpp_err= 5332 fi 5333else 5334 ac_cpp_err=yes 5335fi 5336if test -z "$ac_cpp_err"; then 5337 : 5338else 5339 echo "$as_me: failed program was:" >&5 5340sed 's/^/| /' conftest.$ac_ext >&5 5341 5342 # Broken: fails on valid input. 5343continue 5344fi 5345rm -f conftest.err conftest.$ac_ext 5346 5347 # OK, works on sane cases. Now check whether non-existent headers 5348 # can be detected and how. 5349 cat >conftest.$ac_ext <<_ACEOF 5350/* confdefs.h. */ 5351_ACEOF 5352cat confdefs.h >>conftest.$ac_ext 5353cat >>conftest.$ac_ext <<_ACEOF 5354/* end confdefs.h. */ 5355#include <ac_nonexistent.h> 5356_ACEOF 5357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5359 ac_status=$? 5360 grep -v '^ *+' conftest.er1 >conftest.err 5361 rm -f conftest.er1 5362 cat conftest.err >&5 5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5364 (exit $ac_status); } >/dev/null; then 5365 if test -s conftest.err; then 5366 ac_cpp_err=$ac_cxx_preproc_warn_flag 5367 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5368 else 5369 ac_cpp_err= 5370 fi 5371else 5372 ac_cpp_err=yes 5373fi 5374if test -z "$ac_cpp_err"; then 5375 # Broken: success on invalid input. 5376continue 5377else 5378 echo "$as_me: failed program was:" >&5 5379sed 's/^/| /' conftest.$ac_ext >&5 5380 5381 # Passes both tests. 5382ac_preproc_ok=: 5383break 5384fi 5385rm -f conftest.err conftest.$ac_ext 5386 5387done 5388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5389rm -f conftest.err conftest.$ac_ext 5390if $ac_preproc_ok; then 5391 : 5392else 5393 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5394See \`config.log' for more details." >&5 5395echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5396See \`config.log' for more details." >&2;} 5397 { (exit 1); exit 1; }; } 5398fi 5399 5400ac_ext=cc 5401ac_cpp='$CXXCPP $CPPFLAGS' 5402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5405 5406fi 5407 5408 5409ac_ext=f 5410ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5411ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5412ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5413if test -n "$ac_tool_prefix"; then 5414 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5415 do 5416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5417set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5418echo "$as_me:$LINENO: checking for $ac_word" >&5 5419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5420if test "${ac_cv_prog_F77+set}" = set; then 5421 echo $ECHO_N "(cached) $ECHO_C" >&6 5422else 5423 if test -n "$F77"; then 5424 ac_cv_prog_F77="$F77" # Let the user override the test. 5425else 5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5427for as_dir in $PATH 5428do 5429 IFS=$as_save_IFS 5430 test -z "$as_dir" && as_dir=. 5431 for ac_exec_ext in '' $ac_executable_extensions; do 5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5433 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5435 break 2 5436 fi 5437done 5438done 5439 5440fi 5441fi 5442F77=$ac_cv_prog_F77 5443if test -n "$F77"; then 5444 echo "$as_me:$LINENO: result: $F77" >&5 5445echo "${ECHO_T}$F77" >&6 5446else 5447 echo "$as_me:$LINENO: result: no" >&5 5448echo "${ECHO_T}no" >&6 5449fi 5450 5451 test -n "$F77" && break 5452 done 5453fi 5454if test -z "$F77"; then 5455 ac_ct_F77=$F77 5456 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5457do 5458 # Extract the first word of "$ac_prog", so it can be a program name with args. 5459set dummy $ac_prog; ac_word=$2 5460echo "$as_me:$LINENO: checking for $ac_word" >&5 5461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5462if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5463 echo $ECHO_N "(cached) $ECHO_C" >&6 5464else 5465 if test -n "$ac_ct_F77"; then 5466 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5467else 5468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5469for as_dir in $PATH 5470do 5471 IFS=$as_save_IFS 5472 test -z "$as_dir" && as_dir=. 5473 for ac_exec_ext in '' $ac_executable_extensions; do 5474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5475 ac_cv_prog_ac_ct_F77="$ac_prog" 5476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5477 break 2 5478 fi 5479done 5480done 5481 5482fi 5483fi 5484ac_ct_F77=$ac_cv_prog_ac_ct_F77 5485if test -n "$ac_ct_F77"; then 5486 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5487echo "${ECHO_T}$ac_ct_F77" >&6 5488else 5489 echo "$as_me:$LINENO: result: no" >&5 5490echo "${ECHO_T}no" >&6 5491fi 5492 5493 test -n "$ac_ct_F77" && break 5494done 5495 5496 F77=$ac_ct_F77 5497fi 5498 5499 5500# Provide some information about the compiler. 5501echo "$as_me:5501:" \ 5502 "checking for Fortran 77 compiler version" >&5 5503ac_compiler=`set X $ac_compile; echo $2` 5504{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5505 (eval $ac_compiler --version </dev/null >&5) 2>&5 5506 ac_status=$? 5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5508 (exit $ac_status); } 5509{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5510 (eval $ac_compiler -v </dev/null >&5) 2>&5 5511 ac_status=$? 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5513 (exit $ac_status); } 5514{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5515 (eval $ac_compiler -V </dev/null >&5) 2>&5 5516 ac_status=$? 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); } 5519rm -f a.out 5520 5521# If we don't use `.F' as extension, the preprocessor is not run on the 5522# input file. (Note that this only needs to work for GNU compilers.) 5523ac_save_ext=$ac_ext 5524ac_ext=F 5525echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5526echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5527if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5528 echo $ECHO_N "(cached) $ECHO_C" >&6 5529else 5530 cat >conftest.$ac_ext <<_ACEOF 5531 program main 5532#ifndef __GNUC__ 5533 choke me 5534#endif 5535 5536 end 5537_ACEOF 5538rm -f conftest.$ac_objext 5539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5540 (eval $ac_compile) 2>conftest.er1 5541 ac_status=$? 5542 grep -v '^ *+' conftest.er1 >conftest.err 5543 rm -f conftest.er1 5544 cat conftest.err >&5 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5546 (exit $ac_status); } && 5547 { ac_try='test -z "$ac_f77_werror_flag" 5548 || test ! -s conftest.err' 5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5550 (eval $ac_try) 2>&5 5551 ac_status=$? 5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5553 (exit $ac_status); }; } && 5554 { ac_try='test -s conftest.$ac_objext' 5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5556 (eval $ac_try) 2>&5 5557 ac_status=$? 5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5559 (exit $ac_status); }; }; then 5560 ac_compiler_gnu=yes 5561else 5562 echo "$as_me: failed program was:" >&5 5563sed 's/^/| /' conftest.$ac_ext >&5 5564 5565ac_compiler_gnu=no 5566fi 5567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5568ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5569 5570fi 5571echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5572echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5573ac_ext=$ac_save_ext 5574ac_test_FFLAGS=${FFLAGS+set} 5575ac_save_FFLAGS=$FFLAGS 5576FFLAGS= 5577echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5578echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5579if test "${ac_cv_prog_f77_g+set}" = set; then 5580 echo $ECHO_N "(cached) $ECHO_C" >&6 5581else 5582 FFLAGS=-g 5583cat >conftest.$ac_ext <<_ACEOF 5584 program main 5585 5586 end 5587_ACEOF 5588rm -f conftest.$ac_objext 5589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5590 (eval $ac_compile) 2>conftest.er1 5591 ac_status=$? 5592 grep -v '^ *+' conftest.er1 >conftest.err 5593 rm -f conftest.er1 5594 cat conftest.err >&5 5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5596 (exit $ac_status); } && 5597 { ac_try='test -z "$ac_f77_werror_flag" 5598 || test ! -s conftest.err' 5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5600 (eval $ac_try) 2>&5 5601 ac_status=$? 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); }; } && 5604 { ac_try='test -s conftest.$ac_objext' 5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5606 (eval $ac_try) 2>&5 5607 ac_status=$? 5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5609 (exit $ac_status); }; }; then 5610 ac_cv_prog_f77_g=yes 5611else 5612 echo "$as_me: failed program was:" >&5 5613sed 's/^/| /' conftest.$ac_ext >&5 5614 5615ac_cv_prog_f77_g=no 5616fi 5617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5618 5619fi 5620echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5621echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5622if test "$ac_test_FFLAGS" = set; then 5623 FFLAGS=$ac_save_FFLAGS 5624elif test $ac_cv_prog_f77_g = yes; then 5625 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5626 FFLAGS="-g -O2" 5627 else 5628 FFLAGS="-g" 5629 fi 5630else 5631 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5632 FFLAGS="-O2" 5633 else 5634 FFLAGS= 5635 fi 5636fi 5637 5638G77=`test $ac_compiler_gnu = yes && echo yes` 5639ac_ext=c 5640ac_cpp='$CPP $CPPFLAGS' 5641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5643ac_compiler_gnu=$ac_cv_c_compiler_gnu 5644 5645 5646 5647# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5648 5649# find the maximum length of command line arguments 5650echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5651echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5652if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5653 echo $ECHO_N "(cached) $ECHO_C" >&6 5654else 5655 i=0 5656 teststring="ABCD" 5657 5658 case $build_os in 5659 msdosdjgpp*) 5660 # On DJGPP, this test can blow up pretty badly due to problems in libc 5661 # (any single argument exceeding 2000 bytes causes a buffer overrun 5662 # during glob expansion). Even if it were fixed, the result of this 5663 # check would be larger than it should be. 5664 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5665 ;; 5666 5667 gnu*) 5668 # Under GNU Hurd, this test is not required because there is 5669 # no limit to the length of command line arguments. 5670 # Libtool will interpret -1 as no limit whatsoever 5671 lt_cv_sys_max_cmd_len=-1; 5672 ;; 5673 5674 cygwin* | mingw*) 5675 # On Win9x/ME, this test blows up -- it succeeds, but takes 5676 # about 5 minutes as the teststring grows exponentially. 5677 # Worse, since 9x/ME are not pre-emptively multitasking, 5678 # you end up with a "frozen" computer, even though with patience 5679 # the test eventually succeeds (with a max line length of 256k). 5680 # Instead, let's just punt: use the minimum linelength reported by 5681 # all of the supported platforms: 8192 (on NT/2K/XP). 5682 lt_cv_sys_max_cmd_len=8192; 5683 ;; 5684 5685 amigaos*) 5686 # On AmigaOS with pdksh, this test takes hours, literally. 5687 # So we just punt and use a minimum line length of 8192. 5688 lt_cv_sys_max_cmd_len=8192; 5689 ;; 5690 5691 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5692 # This has been around since 386BSD, at least. Likely further. 5693 if test -x /sbin/sysctl; then 5694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5695 elif test -x /usr/sbin/sysctl; then 5696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5697 else 5698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5699 fi 5700 # And add a safety zone 5701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5703 ;; 5704 osf*) 5705 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5706 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5707 # nice to cause kernel panics so lets avoid the loop below. 5708 # First set a reasonable default. 5709 lt_cv_sys_max_cmd_len=16384 5710 # 5711 if test -x /sbin/sysconfig; then 5712 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5713 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5714 esac 5715 fi 5716 ;; 5717 *) 5718 # If test is not a shell built-in, we'll probably end up computing a 5719 # maximum length that is only half of the actual maximum length, but 5720 # we can't tell. 5721 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5722 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5723 = "XX$teststring") >/dev/null 2>&1 && 5724 new_result=`expr "X$teststring" : ".*" 2>&1` && 5725 lt_cv_sys_max_cmd_len=$new_result && 5726 test $i != 17 # 1/2 MB should be enough 5727 do 5728 i=`expr $i + 1` 5729 teststring=$teststring$teststring 5730 done 5731 teststring= 5732 # Add a significant safety factor because C++ compilers can tack on massive 5733 # amounts of additional arguments before passing them to the linker. 5734 # It appears as though 1/2 is a usable value. 5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5736 ;; 5737 esac 5738 5739fi 5740 5741if test -n $lt_cv_sys_max_cmd_len ; then 5742 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5743echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5744else 5745 echo "$as_me:$LINENO: result: none" >&5 5746echo "${ECHO_T}none" >&6 5747fi 5748 5749 5750 5751 5752# Check for command to grab the raw symbol name followed by C symbol from nm. 5753echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5754echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5755if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5756 echo $ECHO_N "(cached) $ECHO_C" >&6 5757else 5758 5759# These are sane defaults that work on at least a few old systems. 5760# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5761 5762# Character class describing NM global symbol codes. 5763symcode='[BCDEGRST]' 5764 5765# Regexp to match symbols that can be accessed directly from C. 5766sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5767 5768# Transform an extracted symbol line into a proper C declaration 5769lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5770 5771# Transform an extracted symbol line into symbol name and symbol address 5772lt_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'" 5773 5774# Define system-specific variables. 5775case $host_os in 5776aix*) 5777 symcode='[BCDT]' 5778 ;; 5779cygwin* | mingw* | pw32*) 5780 symcode='[ABCDGISTW]' 5781 ;; 5782hpux*) # Its linker distinguishes data from code symbols 5783 if test "$host_cpu" = ia64; then 5784 symcode='[ABCDEGRST]' 5785 fi 5786 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5787 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'" 5788 ;; 5789linux*) 5790 if test "$host_cpu" = ia64; then 5791 symcode='[ABCDGIRSTW]' 5792 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5793 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'" 5794 fi 5795 ;; 5796irix* | nonstopux*) 5797 symcode='[BCDEGRST]' 5798 ;; 5799osf*) 5800 symcode='[BCDEGQRST]' 5801 ;; 5802solaris* | sysv5*) 5803 symcode='[BDRT]' 5804 ;; 5805sysv4) 5806 symcode='[DFNSTU]' 5807 ;; 5808esac 5809 5810# Handle CRLF in mingw tool chain 5811opt_cr= 5812case $build_os in 5813mingw*) 5814 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5815 ;; 5816esac 5817 5818# If we're using GNU nm, then use its standard symbol codes. 5819case `$NM -V 2>&1` in 5820*GNU* | *'with BFD'*) 5821 symcode='[ABCDGIRSTW]' ;; 5822esac 5823 5824# Try without a prefix undercore, then with it. 5825for ac_symprfx in "" "_"; do 5826 5827 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5828 symxfrm="\\1 $ac_symprfx\\2 \\2" 5829 5830 # Write the raw and C identifiers. 5831 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5832 5833 # Check to see that the pipe works correctly. 5834 pipe_works=no 5835 5836 rm -f conftest* 5837 cat > conftest.$ac_ext <<EOF 5838#ifdef __cplusplus 5839extern "C" { 5840#endif 5841char nm_test_var; 5842void nm_test_func(){} 5843#ifdef __cplusplus 5844} 5845#endif 5846int main(){nm_test_var='a';nm_test_func();return(0);} 5847EOF 5848 5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5850 (eval $ac_compile) 2>&5 5851 ac_status=$? 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5853 (exit $ac_status); }; then 5854 # Now try to grab the symbols. 5855 nlist=conftest.nm 5856 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5857 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5858 ac_status=$? 5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5860 (exit $ac_status); } && test -s "$nlist"; then 5861 # Try sorting and uniquifying the output. 5862 if sort "$nlist" | uniq > "$nlist"T; then 5863 mv -f "$nlist"T "$nlist" 5864 else 5865 rm -f "$nlist"T 5866 fi 5867 5868 # Make sure that we snagged all the symbols we need. 5869 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5870 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5871 cat <<EOF > conftest.$ac_ext 5872#ifdef __cplusplus 5873extern "C" { 5874#endif 5875 5876EOF 5877 # Now generate the symbol file. 5878 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5879 5880 cat <<EOF >> conftest.$ac_ext 5881#if defined (__STDC__) && __STDC__ 5882# define lt_ptr_t void * 5883#else 5884# define lt_ptr_t char * 5885# define const 5886#endif 5887 5888/* The mapping between symbol names and symbols. */ 5889const struct { 5890 const char *name; 5891 lt_ptr_t address; 5892} 5893lt_preloaded_symbols[] = 5894{ 5895EOF 5896 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5897 cat <<\EOF >> conftest.$ac_ext 5898 {0, (lt_ptr_t) 0} 5899}; 5900 5901#ifdef __cplusplus 5902} 5903#endif 5904EOF 5905 # Now try linking the two files. 5906 mv conftest.$ac_objext conftstm.$ac_objext 5907 lt_save_LIBS="$LIBS" 5908 lt_save_CFLAGS="$CFLAGS" 5909 LIBS="conftstm.$ac_objext" 5910 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5912 (eval $ac_link) 2>&5 5913 ac_status=$? 5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5915 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5916 pipe_works=yes 5917 fi 5918 LIBS="$lt_save_LIBS" 5919 CFLAGS="$lt_save_CFLAGS" 5920 else 5921 echo "cannot find nm_test_func in $nlist" >&5 5922 fi 5923 else 5924 echo "cannot find nm_test_var in $nlist" >&5 5925 fi 5926 else 5927 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5928 fi 5929 else 5930 echo "$progname: failed program was:" >&5 5931 cat conftest.$ac_ext >&5 5932 fi 5933 rm -f conftest* conftst* 5934 5935 # Do not use the global_symbol_pipe unless it works. 5936 if test "$pipe_works" = yes; then 5937 break 5938 else 5939 lt_cv_sys_global_symbol_pipe= 5940 fi 5941done 5942 5943fi 5944 5945if test -z "$lt_cv_sys_global_symbol_pipe"; then 5946 lt_cv_sys_global_symbol_to_cdecl= 5947fi 5948if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5949 echo "$as_me:$LINENO: result: failed" >&5 5950echo "${ECHO_T}failed" >&6 5951else 5952 echo "$as_me:$LINENO: result: ok" >&5 5953echo "${ECHO_T}ok" >&6 5954fi 5955 5956echo "$as_me:$LINENO: checking for objdir" >&5 5957echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5958if test "${lt_cv_objdir+set}" = set; then 5959 echo $ECHO_N "(cached) $ECHO_C" >&6 5960else 5961 rm -f .libs 2>/dev/null 5962mkdir .libs 2>/dev/null 5963if test -d .libs; then 5964 lt_cv_objdir=.libs 5965else 5966 # MS-DOS does not allow filenames that begin with a dot. 5967 lt_cv_objdir=_libs 5968fi 5969rmdir .libs 2>/dev/null 5970fi 5971echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5972echo "${ECHO_T}$lt_cv_objdir" >&6 5973objdir=$lt_cv_objdir 5974 5975 5976 5977 5978 5979case $host_os in 5980aix3*) 5981 # AIX sometimes has problems with the GCC collect2 program. For some 5982 # reason, if we set the COLLECT_NAMES environment variable, the problems 5983 # vanish in a puff of smoke. 5984 if test "X${COLLECT_NAMES+set}" != Xset; then 5985 COLLECT_NAMES= 5986 export COLLECT_NAMES 5987 fi 5988 ;; 5989esac 5990 5991# Sed substitution that helps us do robust quoting. It backslashifies 5992# metacharacters that are still active within double-quoted strings. 5993Xsed='sed -e 1s/^X//' 5994sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5995 5996# Same as above, but do not quote variable references. 5997double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5998 5999# Sed substitution to delay expansion of an escaped shell variable in a 6000# double_quote_subst'ed string. 6001delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6002 6003# Sed substitution to avoid accidental globbing in evaled expressions 6004no_glob_subst='s/\*/\\\*/g' 6005 6006# Constants: 6007rm="rm -f" 6008 6009# Global variables: 6010default_ofile=libtool 6011can_build_shared=yes 6012 6013# All known linkers require a `.a' archive for static linking (except MSVC, 6014# which needs '.lib'). 6015libext=a 6016ltmain="$ac_aux_dir/ltmain.sh" 6017ofile="$default_ofile" 6018with_gnu_ld="$lt_cv_prog_gnu_ld" 6019 6020if test -n "$ac_tool_prefix"; then 6021 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6022set dummy ${ac_tool_prefix}ar; ac_word=$2 6023echo "$as_me:$LINENO: checking for $ac_word" >&5 6024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6025if test "${ac_cv_prog_AR+set}" = set; then 6026 echo $ECHO_N "(cached) $ECHO_C" >&6 6027else 6028 if test -n "$AR"; then 6029 ac_cv_prog_AR="$AR" # Let the user override the test. 6030else 6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6032for as_dir in $PATH 6033do 6034 IFS=$as_save_IFS 6035 test -z "$as_dir" && as_dir=. 6036 for ac_exec_ext in '' $ac_executable_extensions; do 6037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6038 ac_cv_prog_AR="${ac_tool_prefix}ar" 6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6040 break 2 6041 fi 6042done 6043done 6044 6045fi 6046fi 6047AR=$ac_cv_prog_AR 6048if test -n "$AR"; then 6049 echo "$as_me:$LINENO: result: $AR" >&5 6050echo "${ECHO_T}$AR" >&6 6051else 6052 echo "$as_me:$LINENO: result: no" >&5 6053echo "${ECHO_T}no" >&6 6054fi 6055 6056fi 6057if test -z "$ac_cv_prog_AR"; then 6058 ac_ct_AR=$AR 6059 # Extract the first word of "ar", so it can be a program name with args. 6060set dummy ar; ac_word=$2 6061echo "$as_me:$LINENO: checking for $ac_word" >&5 6062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6063if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6064 echo $ECHO_N "(cached) $ECHO_C" >&6 6065else 6066 if test -n "$ac_ct_AR"; then 6067 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6068else 6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6070for as_dir in $PATH 6071do 6072 IFS=$as_save_IFS 6073 test -z "$as_dir" && as_dir=. 6074 for ac_exec_ext in '' $ac_executable_extensions; do 6075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6076 ac_cv_prog_ac_ct_AR="ar" 6077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6078 break 2 6079 fi 6080done 6081done 6082 6083 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6084fi 6085fi 6086ac_ct_AR=$ac_cv_prog_ac_ct_AR 6087if test -n "$ac_ct_AR"; then 6088 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6089echo "${ECHO_T}$ac_ct_AR" >&6 6090else 6091 echo "$as_me:$LINENO: result: no" >&5 6092echo "${ECHO_T}no" >&6 6093fi 6094 6095 AR=$ac_ct_AR 6096else 6097 AR="$ac_cv_prog_AR" 6098fi 6099 6100if test -n "$ac_tool_prefix"; then 6101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6102set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6103echo "$as_me:$LINENO: checking for $ac_word" >&5 6104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6105if test "${ac_cv_prog_RANLIB+set}" = set; then 6106 echo $ECHO_N "(cached) $ECHO_C" >&6 6107else 6108 if test -n "$RANLIB"; then 6109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6110else 6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6112for as_dir in $PATH 6113do 6114 IFS=$as_save_IFS 6115 test -z "$as_dir" && as_dir=. 6116 for ac_exec_ext in '' $ac_executable_extensions; do 6117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6120 break 2 6121 fi 6122done 6123done 6124 6125fi 6126fi 6127RANLIB=$ac_cv_prog_RANLIB 6128if test -n "$RANLIB"; then 6129 echo "$as_me:$LINENO: result: $RANLIB" >&5 6130echo "${ECHO_T}$RANLIB" >&6 6131else 6132 echo "$as_me:$LINENO: result: no" >&5 6133echo "${ECHO_T}no" >&6 6134fi 6135 6136fi 6137if test -z "$ac_cv_prog_RANLIB"; then 6138 ac_ct_RANLIB=$RANLIB 6139 # Extract the first word of "ranlib", so it can be a program name with args. 6140set dummy ranlib; ac_word=$2 6141echo "$as_me:$LINENO: checking for $ac_word" >&5 6142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6143if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6144 echo $ECHO_N "(cached) $ECHO_C" >&6 6145else 6146 if test -n "$ac_ct_RANLIB"; then 6147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6148else 6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150for as_dir in $PATH 6151do 6152 IFS=$as_save_IFS 6153 test -z "$as_dir" && as_dir=. 6154 for ac_exec_ext in '' $ac_executable_extensions; do 6155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6156 ac_cv_prog_ac_ct_RANLIB="ranlib" 6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6158 break 2 6159 fi 6160done 6161done 6162 6163 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6164fi 6165fi 6166ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6167if test -n "$ac_ct_RANLIB"; then 6168 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6169echo "${ECHO_T}$ac_ct_RANLIB" >&6 6170else 6171 echo "$as_me:$LINENO: result: no" >&5 6172echo "${ECHO_T}no" >&6 6173fi 6174 6175 RANLIB=$ac_ct_RANLIB 6176else 6177 RANLIB="$ac_cv_prog_RANLIB" 6178fi 6179 6180if test -n "$ac_tool_prefix"; then 6181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6182set dummy ${ac_tool_prefix}strip; ac_word=$2 6183echo "$as_me:$LINENO: checking for $ac_word" >&5 6184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6185if test "${ac_cv_prog_STRIP+set}" = set; then 6186 echo $ECHO_N "(cached) $ECHO_C" >&6 6187else 6188 if test -n "$STRIP"; then 6189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6190else 6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6192for as_dir in $PATH 6193do 6194 IFS=$as_save_IFS 6195 test -z "$as_dir" && as_dir=. 6196 for ac_exec_ext in '' $ac_executable_extensions; do 6197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6198 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6200 break 2 6201 fi 6202done 6203done 6204 6205fi 6206fi 6207STRIP=$ac_cv_prog_STRIP 6208if test -n "$STRIP"; then 6209 echo "$as_me:$LINENO: result: $STRIP" >&5 6210echo "${ECHO_T}$STRIP" >&6 6211else 6212 echo "$as_me:$LINENO: result: no" >&5 6213echo "${ECHO_T}no" >&6 6214fi 6215 6216fi 6217if test -z "$ac_cv_prog_STRIP"; then 6218 ac_ct_STRIP=$STRIP 6219 # Extract the first word of "strip", so it can be a program name with args. 6220set dummy strip; ac_word=$2 6221echo "$as_me:$LINENO: checking for $ac_word" >&5 6222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6223if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6224 echo $ECHO_N "(cached) $ECHO_C" >&6 6225else 6226 if test -n "$ac_ct_STRIP"; then 6227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6228else 6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230for as_dir in $PATH 6231do 6232 IFS=$as_save_IFS 6233 test -z "$as_dir" && as_dir=. 6234 for ac_exec_ext in '' $ac_executable_extensions; do 6235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6236 ac_cv_prog_ac_ct_STRIP="strip" 6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6238 break 2 6239 fi 6240done 6241done 6242 6243 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6244fi 6245fi 6246ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6247if test -n "$ac_ct_STRIP"; then 6248 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6249echo "${ECHO_T}$ac_ct_STRIP" >&6 6250else 6251 echo "$as_me:$LINENO: result: no" >&5 6252echo "${ECHO_T}no" >&6 6253fi 6254 6255 STRIP=$ac_ct_STRIP 6256else 6257 STRIP="$ac_cv_prog_STRIP" 6258fi 6259 6260 6261old_CC="$CC" 6262old_CFLAGS="$CFLAGS" 6263 6264# Set sane defaults for various variables 6265test -z "$AR" && AR=ar 6266test -z "$AR_FLAGS" && AR_FLAGS=cru 6267test -z "$AS" && AS=as 6268test -z "$CC" && CC=cc 6269test -z "$LTCC" && LTCC=$CC 6270test -z "$DLLTOOL" && DLLTOOL=dlltool 6271test -z "$LD" && LD=ld 6272test -z "$LN_S" && LN_S="ln -s" 6273test -z "$MAGIC_CMD" && MAGIC_CMD=file 6274test -z "$NM" && NM=nm 6275test -z "$SED" && SED=sed 6276test -z "$OBJDUMP" && OBJDUMP=objdump 6277test -z "$RANLIB" && RANLIB=: 6278test -z "$STRIP" && STRIP=: 6279test -z "$ac_objext" && ac_objext=o 6280 6281# Determine commands to create old-style static archives. 6282old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6283old_postinstall_cmds='chmod 644 $oldlib' 6284old_postuninstall_cmds= 6285 6286if test -n "$RANLIB"; then 6287 case $host_os in 6288 openbsd*) 6289 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6290 ;; 6291 *) 6292 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6293 ;; 6294 esac 6295 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6296fi 6297 6298for cc_temp in $compiler""; do 6299 case $cc_temp in 6300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6302 \-*) ;; 6303 *) break;; 6304 esac 6305done 6306cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6307 6308 6309# Only perform the check for file, if the check method requires it 6310case $deplibs_check_method in 6311file_magic*) 6312 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6313 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6314echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6315if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6316 echo $ECHO_N "(cached) $ECHO_C" >&6 6317else 6318 case $MAGIC_CMD in 6319[\\/*] | ?:[\\/]*) 6320 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6321 ;; 6322*) 6323 lt_save_MAGIC_CMD="$MAGIC_CMD" 6324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6325 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6326 for ac_dir in $ac_dummy; do 6327 IFS="$lt_save_ifs" 6328 test -z "$ac_dir" && ac_dir=. 6329 if test -f $ac_dir/${ac_tool_prefix}file; then 6330 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6331 if test -n "$file_magic_test_file"; then 6332 case $deplibs_check_method in 6333 "file_magic "*) 6334 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6336 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6337 $EGREP "$file_magic_regex" > /dev/null; then 6338 : 6339 else 6340 cat <<EOF 1>&2 6341 6342*** Warning: the command libtool uses to detect shared libraries, 6343*** $file_magic_cmd, produces output that libtool cannot recognize. 6344*** The result is that libtool may fail to recognize shared libraries 6345*** as such. This will affect the creation of libtool libraries that 6346*** depend on shared libraries, but programs linked with such libtool 6347*** libraries will work regardless of this problem. Nevertheless, you 6348*** may want to report the problem to your system manager and/or to 6349*** bug-libtool@gnu.org 6350 6351EOF 6352 fi ;; 6353 esac 6354 fi 6355 break 6356 fi 6357 done 6358 IFS="$lt_save_ifs" 6359 MAGIC_CMD="$lt_save_MAGIC_CMD" 6360 ;; 6361esac 6362fi 6363 6364MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6365if test -n "$MAGIC_CMD"; then 6366 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6367echo "${ECHO_T}$MAGIC_CMD" >&6 6368else 6369 echo "$as_me:$LINENO: result: no" >&5 6370echo "${ECHO_T}no" >&6 6371fi 6372 6373if test -z "$lt_cv_path_MAGIC_CMD"; then 6374 if test -n "$ac_tool_prefix"; then 6375 echo "$as_me:$LINENO: checking for file" >&5 6376echo $ECHO_N "checking for file... $ECHO_C" >&6 6377if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6378 echo $ECHO_N "(cached) $ECHO_C" >&6 6379else 6380 case $MAGIC_CMD in 6381[\\/*] | ?:[\\/]*) 6382 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6383 ;; 6384*) 6385 lt_save_MAGIC_CMD="$MAGIC_CMD" 6386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6387 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6388 for ac_dir in $ac_dummy; do 6389 IFS="$lt_save_ifs" 6390 test -z "$ac_dir" && ac_dir=. 6391 if test -f $ac_dir/file; then 6392 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6393 if test -n "$file_magic_test_file"; then 6394 case $deplibs_check_method in 6395 "file_magic "*) 6396 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6398 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6399 $EGREP "$file_magic_regex" > /dev/null; then 6400 : 6401 else 6402 cat <<EOF 1>&2 6403 6404*** Warning: the command libtool uses to detect shared libraries, 6405*** $file_magic_cmd, produces output that libtool cannot recognize. 6406*** The result is that libtool may fail to recognize shared libraries 6407*** as such. This will affect the creation of libtool libraries that 6408*** depend on shared libraries, but programs linked with such libtool 6409*** libraries will work regardless of this problem. Nevertheless, you 6410*** may want to report the problem to your system manager and/or to 6411*** bug-libtool@gnu.org 6412 6413EOF 6414 fi ;; 6415 esac 6416 fi 6417 break 6418 fi 6419 done 6420 IFS="$lt_save_ifs" 6421 MAGIC_CMD="$lt_save_MAGIC_CMD" 6422 ;; 6423esac 6424fi 6425 6426MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6427if test -n "$MAGIC_CMD"; then 6428 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6429echo "${ECHO_T}$MAGIC_CMD" >&6 6430else 6431 echo "$as_me:$LINENO: result: no" >&5 6432echo "${ECHO_T}no" >&6 6433fi 6434 6435 else 6436 MAGIC_CMD=: 6437 fi 6438fi 6439 6440 fi 6441 ;; 6442esac 6443 6444enable_dlopen=no 6445enable_win32_dll=yes 6446 6447# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6448if test "${enable_libtool_lock+set}" = set; then 6449 enableval="$enable_libtool_lock" 6450 6451fi; 6452test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6453 6454 6455# Check whether --with-pic or --without-pic was given. 6456if test "${with_pic+set}" = set; then 6457 withval="$with_pic" 6458 pic_mode="$withval" 6459else 6460 pic_mode=default 6461fi; 6462test -z "$pic_mode" && pic_mode=default 6463 6464# Use C for the default configuration in the libtool script 6465tagname= 6466lt_save_CC="$CC" 6467ac_ext=c 6468ac_cpp='$CPP $CPPFLAGS' 6469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6471ac_compiler_gnu=$ac_cv_c_compiler_gnu 6472 6473 6474# Source file extension for C test sources. 6475ac_ext=c 6476 6477# Object file extension for compiled C test sources. 6478objext=o 6479objext=$objext 6480 6481# Code to be used in simple compile tests 6482lt_simple_compile_test_code="int some_variable = 0;\n" 6483 6484# Code to be used in simple link tests 6485lt_simple_link_test_code='int main(){return(0);}\n' 6486 6487 6488# If no C compiler was specified, use CC. 6489LTCC=${LTCC-"$CC"} 6490 6491# Allow CC to be a program name with arguments. 6492compiler=$CC 6493 6494 6495# save warnings/boilerplate of simple test code 6496ac_outfile=conftest.$ac_objext 6497printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6498eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6499_lt_compiler_boilerplate=`cat conftest.err` 6500$rm conftest* 6501 6502ac_outfile=conftest.$ac_objext 6503printf "$lt_simple_link_test_code" >conftest.$ac_ext 6504eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6505_lt_linker_boilerplate=`cat conftest.err` 6506$rm conftest* 6507 6508 6509# 6510# Check for any special shared library compilation flags. 6511# 6512lt_prog_cc_shlib= 6513if test "$GCC" = no; then 6514 case $host_os in 6515 sco3.2v5*) 6516 lt_prog_cc_shlib='-belf' 6517 ;; 6518 esac 6519fi 6520if test -n "$lt_prog_cc_shlib"; then 6521 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6522echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6523 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6524 else 6525 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6526echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6527 lt_cv_prog_cc_can_build_shared=no 6528 fi 6529fi 6530 6531 6532# 6533# Check to make sure the static flag actually works. 6534# 6535echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6536echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6537if test "${lt_prog_compiler_static_works+set}" = set; then 6538 echo $ECHO_N "(cached) $ECHO_C" >&6 6539else 6540 lt_prog_compiler_static_works=no 6541 save_LDFLAGS="$LDFLAGS" 6542 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6543 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6545 # The linker can only warn and ignore the option if not recognized 6546 # So say no if there are warnings 6547 if test -s conftest.err; then 6548 # Append any errors to the config.log. 6549 cat conftest.err 1>&5 6550 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6551 $SED '/^$/d' conftest.err >conftest.er2 6552 if diff conftest.exp conftest.er2 >/dev/null; then 6553 lt_prog_compiler_static_works=yes 6554 fi 6555 else 6556 lt_prog_compiler_static_works=yes 6557 fi 6558 fi 6559 $rm conftest* 6560 LDFLAGS="$save_LDFLAGS" 6561 6562fi 6563echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6564echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6565 6566if test x"$lt_prog_compiler_static_works" = xyes; then 6567 : 6568else 6569 lt_prog_compiler_static= 6570fi 6571 6572 6573 6574## CAVEAT EMPTOR: 6575## There is no encapsulation within the following macros, do not change 6576## the running order or otherwise move them around unless you know exactly 6577## what you are doing... 6578 6579lt_prog_compiler_no_builtin_flag= 6580 6581if test "$GCC" = yes; then 6582 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6583 6584 6585echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6586echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6587if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6588 echo $ECHO_N "(cached) $ECHO_C" >&6 6589else 6590 lt_cv_prog_compiler_rtti_exceptions=no 6591 ac_outfile=conftest.$ac_objext 6592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6593 lt_compiler_flag="-fno-rtti -fno-exceptions" 6594 # Insert the option either (1) after the last *FLAGS variable, or 6595 # (2) before a word containing "conftest.", or (3) at the end. 6596 # Note that $ac_compile itself does not contain backslashes and begins 6597 # with a dollar sign (not a hyphen), so the echo should work correctly. 6598 # The option is referenced via a variable to avoid confusing sed. 6599 lt_compile=`echo "$ac_compile" | $SED \ 6600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6602 -e 's:$: $lt_compiler_flag:'` 6603 (eval echo "\"\$as_me:6603: $lt_compile\"" >&5) 6604 (eval "$lt_compile" 2>conftest.err) 6605 ac_status=$? 6606 cat conftest.err >&5 6607 echo "$as_me:6607: \$? = $ac_status" >&5 6608 if (exit $ac_status) && test -s "$ac_outfile"; then 6609 # The compiler can only warn and ignore the option if not recognized 6610 # So say no if there are warnings other than the usual output. 6611 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6612 $SED '/^$/d' conftest.err >conftest.er2 6613 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6614 lt_cv_prog_compiler_rtti_exceptions=yes 6615 fi 6616 fi 6617 $rm conftest* 6618 6619fi 6620echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6621echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6622 6623if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6624 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6625else 6626 : 6627fi 6628 6629fi 6630 6631lt_prog_compiler_wl= 6632lt_prog_compiler_pic= 6633lt_prog_compiler_static= 6634 6635echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6636echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6637 6638 if test "$GCC" = yes; then 6639 lt_prog_compiler_wl='-Wl,' 6640 lt_prog_compiler_static='-static' 6641 6642 case $host_os in 6643 aix*) 6644 # All AIX code is PIC. 6645 if test "$host_cpu" = ia64; then 6646 # AIX 5 now supports IA64 processor 6647 lt_prog_compiler_static='-Bstatic' 6648 fi 6649 ;; 6650 6651 amigaos*) 6652 # FIXME: we need at least 68020 code to build shared libraries, but 6653 # adding the `-m68020' flag to GCC prevents building anything better, 6654 # like `-m68040'. 6655 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6656 ;; 6657 6658 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 6659 | osf5*) 6660 # PIC is the default for these OSes. 6661 ;; 6662 6663 mingw* | pw32* | os2*) 6664 # This hack is so that the source file can tell whether it is being 6665 # built for inclusion in a dll (and should export symbols for example). 6666 lt_prog_compiler_pic='-DDLL_EXPORT' 6667 ;; 6668 6669 darwin* | rhapsody*) 6670 # PIC is the default on this platform 6671 # Common symbols not allowed in MH_DYLIB files 6672 lt_prog_compiler_pic='-fno-common' 6673 ;; 6674 6675 msdosdjgpp*) 6676 # Just because we use GCC doesn't mean we suddenly get shared libraries 6677 # on systems that don't support them. 6678 lt_prog_compiler_can_build_shared=no 6679 enable_shared=no 6680 ;; 6681 6682 sysv4*MP*) 6683 if test -d /usr/nec; then 6684 lt_prog_compiler_pic=-Kconform_pic 6685 fi 6686 ;; 6687 6688 hpux*) 6689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6690 # not for PA HP-UX. 6691 case $host_cpu in 6692 hppa*64*|ia64*) 6693 # +Z the default 6694 ;; 6695 *) 6696 lt_prog_compiler_pic='-fPIC' 6697 ;; 6698 esac 6699 ;; 6700 6701 *) 6702 lt_prog_compiler_pic='-fPIC' 6703 ;; 6704 esac 6705 else 6706 # PORTME Check for flag to pass linker flags through the system compiler. 6707 case $host_os in 6708 aix*) 6709 lt_prog_compiler_wl='-Wl,' 6710 if test "$host_cpu" = ia64; then 6711 # AIX 5 now supports IA64 processor 6712 lt_prog_compiler_static='-Bstatic' 6713 else 6714 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6715 fi 6716 ;; 6717 darwin*) 6718 # PIC is the default on this platform 6719 # Common symbols not allowed in MH_DYLIB files 6720 case $cc_basename in 6721 xlc*) 6722 lt_prog_compiler_pic='-qnocommon' 6723 lt_prog_compiler_wl='-Wl,' 6724 ;; 6725 esac 6726 ;; 6727 6728 mingw* | pw32* | os2*) 6729 # This hack is so that the source file can tell whether it is being 6730 # built for inclusion in a dll (and should export symbols for example). 6731 lt_prog_compiler_pic='-DDLL_EXPORT' 6732 ;; 6733 6734 hpux9* | hpux10* | hpux11*) 6735 lt_prog_compiler_wl='-Wl,' 6736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6737 # not for PA HP-UX. 6738 case $host_cpu in 6739 hppa*64*|ia64*) 6740 # +Z the default 6741 ;; 6742 *) 6743 lt_prog_compiler_pic='+Z' 6744 ;; 6745 esac 6746 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6747 lt_prog_compiler_static='${wl}-a ${wl}archive' 6748 ;; 6749 6750 irix5* | irix6* | nonstopux*) 6751 lt_prog_compiler_wl='-Wl,' 6752 # PIC (with -KPIC) is the default. 6753 lt_prog_compiler_static='-non_shared' 6754 ;; 6755 6756 newsos6) 6757 lt_prog_compiler_pic='-KPIC' 6758 lt_prog_compiler_static='-Bstatic' 6759 ;; 6760 6761 linux*) 6762 case $cc_basename in 6763 icc* | ecc*) 6764 lt_prog_compiler_wl='-Wl,' 6765 lt_prog_compiler_pic='-KPIC' 6766 lt_prog_compiler_static='-static' 6767 ;; 6768 pgcc* | pgf77* | pgf90* | pgf95*) 6769 # Portland Group compilers (*not* the Pentium gcc compiler, 6770 # which looks to be a dead project) 6771 lt_prog_compiler_wl='-Wl,' 6772 lt_prog_compiler_pic='-fpic' 6773 lt_prog_compiler_static='-Bstatic' 6774 ;; 6775 ccc*) 6776 lt_prog_compiler_wl='-Wl,' 6777 # All Alpha code is PIC. 6778 lt_prog_compiler_static='-non_shared' 6779 ;; 6780 esac 6781 ;; 6782 6783 osf3* | osf4* | osf5*) 6784 lt_prog_compiler_wl='-Wl,' 6785 # All OSF/1 code is PIC. 6786 lt_prog_compiler_static='-non_shared' 6787 ;; 6788 6789 sco3.2v5*) 6790 lt_prog_compiler_pic='-Kpic' 6791 lt_prog_compiler_static='-dn' 6792 ;; 6793 6794 solaris*) 6795 lt_prog_compiler_pic='-KPIC' 6796 lt_prog_compiler_static='-Bstatic' 6797 case $cc_basename in 6798 f77* | f90* | f95*) 6799 lt_prog_compiler_wl='-Qoption ld ';; 6800 *) 6801 lt_prog_compiler_wl='-Wl,';; 6802 esac 6803 ;; 6804 6805 sunos4*) 6806 lt_prog_compiler_wl='-Qoption ld ' 6807 lt_prog_compiler_pic='-PIC' 6808 lt_prog_compiler_static='-Bstatic' 6809 ;; 6810 6811 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6812 lt_prog_compiler_wl='-Wl,' 6813 lt_prog_compiler_pic='-KPIC' 6814 lt_prog_compiler_static='-Bstatic' 6815 ;; 6816 6817 sysv4*MP*) 6818 if test -d /usr/nec ;then 6819 lt_prog_compiler_pic='-Kconform_pic' 6820 lt_prog_compiler_static='-Bstatic' 6821 fi 6822 ;; 6823 6824 unicos*) 6825 lt_prog_compiler_wl='-Wl,' 6826 lt_prog_compiler_can_build_shared=no 6827 ;; 6828 6829 uts4*) 6830 lt_prog_compiler_pic='-pic' 6831 lt_prog_compiler_static='-Bstatic' 6832 ;; 6833 6834 *) 6835 lt_prog_compiler_can_build_shared=no 6836 ;; 6837 esac 6838 fi 6839 6840echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6841echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6842 6843# 6844# Check to make sure the PIC flag actually works. 6845# 6846if test -n "$lt_prog_compiler_pic"; then 6847 6848echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6849echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6850if test "${lt_prog_compiler_pic_works+set}" = set; then 6851 echo $ECHO_N "(cached) $ECHO_C" >&6 6852else 6853 lt_prog_compiler_pic_works=no 6854 ac_outfile=conftest.$ac_objext 6855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6856 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6857 # Insert the option either (1) after the last *FLAGS variable, or 6858 # (2) before a word containing "conftest.", or (3) at the end. 6859 # Note that $ac_compile itself does not contain backslashes and begins 6860 # with a dollar sign (not a hyphen), so the echo should work correctly. 6861 # The option is referenced via a variable to avoid confusing sed. 6862 lt_compile=`echo "$ac_compile" | $SED \ 6863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6865 -e 's:$: $lt_compiler_flag:'` 6866 (eval echo "\"\$as_me:6866: $lt_compile\"" >&5) 6867 (eval "$lt_compile" 2>conftest.err) 6868 ac_status=$? 6869 cat conftest.err >&5 6870 echo "$as_me:6870: \$? = $ac_status" >&5 6871 if (exit $ac_status) && test -s "$ac_outfile"; then 6872 # The compiler can only warn and ignore the option if not recognized 6873 # So say no if there are warnings other than the usual output. 6874 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6875 $SED '/^$/d' conftest.err >conftest.er2 6876 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6877 lt_prog_compiler_pic_works=yes 6878 fi 6879 fi 6880 $rm conftest* 6881 6882fi 6883echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6884echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6885 6886if test x"$lt_prog_compiler_pic_works" = xyes; then 6887 case $lt_prog_compiler_pic in 6888 "" | " "*) ;; 6889 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6890 esac 6891else 6892 lt_prog_compiler_pic= 6893 lt_prog_compiler_can_build_shared=no 6894fi 6895 6896fi 6897case $host_os in 6898 # For platforms which do not support PIC, -DPIC is meaningless: 6899 *djgpp*) 6900 lt_prog_compiler_pic= 6901 ;; 6902 *) 6903 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6904 ;; 6905esac 6906 6907echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6908echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6909if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6910 echo $ECHO_N "(cached) $ECHO_C" >&6 6911else 6912 lt_cv_prog_compiler_c_o=no 6913 $rm -r conftest 2>/dev/null 6914 mkdir conftest 6915 cd conftest 6916 mkdir out 6917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6918 6919 lt_compiler_flag="-o out/conftest2.$ac_objext" 6920 # Insert the option either (1) after the last *FLAGS variable, or 6921 # (2) before a word containing "conftest.", or (3) at the end. 6922 # Note that $ac_compile itself does not contain backslashes and begins 6923 # with a dollar sign (not a hyphen), so the echo should work correctly. 6924 lt_compile=`echo "$ac_compile" | $SED \ 6925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6927 -e 's:$: $lt_compiler_flag:'` 6928 (eval echo "\"\$as_me:6928: $lt_compile\"" >&5) 6929 (eval "$lt_compile" 2>out/conftest.err) 6930 ac_status=$? 6931 cat out/conftest.err >&5 6932 echo "$as_me:6932: \$? = $ac_status" >&5 6933 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6934 then 6935 # The compiler can only warn and ignore the option if not recognized 6936 # So say no if there are warnings 6937 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 6938 $SED '/^$/d' out/conftest.err >out/conftest.er2 6939 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6940 lt_cv_prog_compiler_c_o=yes 6941 fi 6942 fi 6943 chmod u+w . 2>&5 6944 $rm conftest* 6945 # SGI C++ compiler will create directory out/ii_files/ for 6946 # template instantiation 6947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6948 $rm out/* && rmdir out 6949 cd .. 6950 rmdir conftest 6951 $rm conftest* 6952 6953fi 6954echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6955echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6956 6957 6958hard_links="nottested" 6959if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6960 # do not overwrite the value of need_locks provided by the user 6961 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6962echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6963 hard_links=yes 6964 $rm conftest* 6965 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6966 touch conftest.a 6967 ln conftest.a conftest.b 2>&5 || hard_links=no 6968 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6969 echo "$as_me:$LINENO: result: $hard_links" >&5 6970echo "${ECHO_T}$hard_links" >&6 6971 if test "$hard_links" = no; then 6972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6973echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6974 need_locks=warn 6975 fi 6976else 6977 need_locks=no 6978fi 6979 6980echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6981echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6982 6983 runpath_var= 6984 allow_undefined_flag= 6985 enable_shared_with_static_runtimes=no 6986 archive_cmds= 6987 archive_expsym_cmds= 6988 old_archive_From_new_cmds= 6989 old_archive_from_expsyms_cmds= 6990 export_dynamic_flag_spec= 6991 whole_archive_flag_spec= 6992 thread_safe_flag_spec= 6993 hardcode_libdir_flag_spec= 6994 hardcode_libdir_flag_spec_ld= 6995 hardcode_libdir_separator= 6996 hardcode_direct=no 6997 hardcode_minus_L=no 6998 hardcode_shlibpath_var=unsupported 6999 link_all_deplibs=unknown 7000 hardcode_automatic=no 7001 module_cmds= 7002 module_expsym_cmds= 7003 always_export_symbols=no 7004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7005 # include_expsyms should be a list of space-separated symbols to be *always* 7006 # included in the symbol list 7007 include_expsyms= 7008 # exclude_expsyms can be an extended regexp of symbols to exclude 7009 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7011 # as well as any symbol that contains `d'. 7012 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7014 # platforms (ab)use it in PIC code, but their linkers get confused if 7015 # the symbol is explicitly referenced. Since portable code cannot 7016 # rely on this symbol name, it's probably fine to never include it in 7017 # preloaded symbol tables. 7018 extract_expsyms_cmds= 7019 # Just being paranoid about ensuring that cc_basename is set. 7020 for cc_temp in $compiler""; do 7021 case $cc_temp in 7022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7024 \-*) ;; 7025 *) break;; 7026 esac 7027done 7028cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7029 7030 case $host_os in 7031 cygwin* | mingw* | pw32*) 7032 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7033 # When not using gcc, we currently assume that we are using 7034 # Microsoft Visual C++. 7035 if test "$GCC" != yes; then 7036 with_gnu_ld=no 7037 fi 7038 ;; 7039 openbsd*) 7040 with_gnu_ld=no 7041 ;; 7042 esac 7043 7044 ld_shlibs=yes 7045 if test "$with_gnu_ld" = yes; then 7046 # If archive_cmds runs LD, not CC, wlarc should be empty 7047 wlarc='${wl}' 7048 7049 # Set some defaults for GNU ld with shared library support. These 7050 # are reset later if shared libraries are not supported. Putting them 7051 # here allows them to be overridden if necessary. 7052 runpath_var=LD_RUN_PATH 7053 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7054 export_dynamic_flag_spec='${wl}--export-dynamic' 7055 # ancient GNU ld didn't support --whole-archive et. al. 7056 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7057 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7058 else 7059 whole_archive_flag_spec= 7060 fi 7061 supports_anon_versioning=no 7062 case `$LD -v 2>/dev/null` in 7063 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7066 *\ 2.11.*) ;; # other 2.11 versions 7067 *) supports_anon_versioning=yes ;; 7068 esac 7069 7070 # See if GNU ld supports shared libraries. 7071 case $host_os in 7072 aix3* | aix4* | aix5*) 7073 # On AIX/PPC, the GNU linker is very broken 7074 if test "$host_cpu" != ia64; then 7075 ld_shlibs=no 7076 cat <<EOF 1>&2 7077 7078*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7079*** to be unable to reliably create shared libraries on AIX. 7080*** Therefore, libtool is disabling shared libraries support. If you 7081*** really care for shared libraries, you may want to modify your PATH 7082*** so that a non-GNU linker is found, and then restart. 7083 7084EOF 7085 fi 7086 ;; 7087 7088 amigaos*) 7089 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)' 7090 hardcode_libdir_flag_spec='-L$libdir' 7091 hardcode_minus_L=yes 7092 7093 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7094 # that the semantics of dynamic libraries on AmigaOS, at least up 7095 # to version 4, is to share data among multiple programs linked 7096 # with the same dynamic library. Since this doesn't match the 7097 # behavior of shared libraries on other platforms, we can't use 7098 # them. 7099 ld_shlibs=no 7100 ;; 7101 7102 beos*) 7103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7104 allow_undefined_flag=unsupported 7105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7106 # support --undefined. This deserves some investigation. FIXME 7107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7108 else 7109 ld_shlibs=no 7110 fi 7111 ;; 7112 7113 cygwin* | mingw* | pw32*) 7114 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7115 # as there is no search path for DLLs. 7116 hardcode_libdir_flag_spec='-L$libdir' 7117 allow_undefined_flag=unsupported 7118 always_export_symbols=no 7119 enable_shared_with_static_runtimes=yes 7120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7121 7122 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7124 # If the export-symbols file already is a .def file (1st line 7125 # is EXPORTS), use it as is; otherwise, prepend... 7126 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7127 cp $export_symbols $output_objdir/$soname.def; 7128 else 7129 echo EXPORTS > $output_objdir/$soname.def; 7130 cat $export_symbols >> $output_objdir/$soname.def; 7131 fi~ 7132 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7133 else 7134 ld_shlibs=no 7135 fi 7136 ;; 7137 7138 haiku*) 7139 allow_undefined_flag=unsupported 7140 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7141 ;; 7142 7143 linux*) 7144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7145 tmp_addflag= 7146 case $cc_basename,$host_cpu in 7147 pgcc*) # Portland Group C compiler 7148 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7149 tmp_addflag=' $pic_flag' 7150 ;; 7151 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7152 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7153 tmp_addflag=' $pic_flag -Mnomain' ;; 7154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7155 tmp_addflag=' -i_dynamic' ;; 7156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7157 tmp_addflag=' -i_dynamic -nofor_main' ;; 7158 ifc* | ifort*) # Intel Fortran compiler 7159 tmp_addflag=' -nofor_main' ;; 7160 esac 7161 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7162 7163 if test $supports_anon_versioning = yes; then 7164 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7166 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7167 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7168 fi 7169 else 7170 ld_shlibs=no 7171 fi 7172 ;; 7173 7174 netbsd*) 7175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7176 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7177 wlarc= 7178 else 7179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7181 fi 7182 ;; 7183 7184 solaris* | sysv5*) 7185 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7186 ld_shlibs=no 7187 cat <<EOF 1>&2 7188 7189*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7190*** create shared libraries on Solaris systems. Therefore, libtool 7191*** is disabling shared libraries support. We urge you to upgrade GNU 7192*** binutils to release 2.9.1 or newer. Another option is to modify 7193*** your PATH or compiler configuration so that the native linker is 7194*** used, and then restart. 7195 7196EOF 7197 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7200 else 7201 ld_shlibs=no 7202 fi 7203 ;; 7204 7205 sunos4*) 7206 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7207 wlarc= 7208 hardcode_direct=yes 7209 hardcode_shlibpath_var=no 7210 ;; 7211 7212 *) 7213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7216 else 7217 ld_shlibs=no 7218 fi 7219 ;; 7220 esac 7221 7222 if test "$ld_shlibs" = no; then 7223 runpath_var= 7224 hardcode_libdir_flag_spec= 7225 export_dynamic_flag_spec= 7226 whole_archive_flag_spec= 7227 fi 7228 else 7229 # PORTME fill in a description of your system's linker (not GNU ld) 7230 case $host_os in 7231 aix3*) 7232 allow_undefined_flag=unsupported 7233 always_export_symbols=yes 7234 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' 7235 # Note: this linker hardcodes the directories in LIBPATH if there 7236 # are no directories specified by -L. 7237 hardcode_minus_L=yes 7238 if test "$GCC" = yes && test -z "$link_static_flag"; then 7239 # Neither direct hardcoding nor static linking is supported with a 7240 # broken collect2. 7241 hardcode_direct=unsupported 7242 fi 7243 ;; 7244 7245 aix4* | aix5*) 7246 if test "$host_cpu" = ia64; then 7247 # On IA64, the linker does run time linking by default, so we don't 7248 # have to do anything special. 7249 aix_use_runtimelinking=no 7250 exp_sym_flag='-Bexport' 7251 no_entry_flag="" 7252 else 7253 # If we're using GNU nm, then we don't want the "-C" option. 7254 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7255 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7256 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' 7257 else 7258 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' 7259 fi 7260 aix_use_runtimelinking=no 7261 7262 # Test if we are trying to use run time linking or normal 7263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7264 # need to do runtime linking. 7265 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7266 for ld_flag in $LDFLAGS; do 7267 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7268 aix_use_runtimelinking=yes 7269 break 7270 fi 7271 done 7272 esac 7273 7274 exp_sym_flag='-bexport' 7275 no_entry_flag='-bnoentry' 7276 fi 7277 7278 # When large executables or shared objects are built, AIX ld can 7279 # have problems creating the table of contents. If linking a library 7280 # or program results in "error TOC overflow" add -mminimal-toc to 7281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7283 7284 archive_cmds='' 7285 hardcode_direct=yes 7286 hardcode_libdir_separator=':' 7287 link_all_deplibs=yes 7288 7289 if test "$GCC" = yes; then 7290 case $host_os in aix4.[012]|aix4.[012].*) 7291 # We only want to do this on AIX 4.2 and lower, the check 7292 # below for broken collect2 doesn't work under 4.3+ 7293 collect2name=`${CC} -print-prog-name=collect2` 7294 if test -f "$collect2name" && \ 7295 strings "$collect2name" | grep resolve_lib_name >/dev/null 7296 then 7297 # We have reworked collect2 7298 hardcode_direct=yes 7299 else 7300 # We have old collect2 7301 hardcode_direct=unsupported 7302 # It fails to find uninstalled libraries when the uninstalled 7303 # path is not listed in the libpath. Setting hardcode_minus_L 7304 # to unsupported forces relinking 7305 hardcode_minus_L=yes 7306 hardcode_libdir_flag_spec='-L$libdir' 7307 hardcode_libdir_separator= 7308 fi 7309 esac 7310 shared_flag='-shared' 7311 if test "$aix_use_runtimelinking" = yes; then 7312 shared_flag="$shared_flag "'${wl}-G' 7313 fi 7314 else 7315 # not using gcc 7316 if test "$host_cpu" = ia64; then 7317 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7318 # chokes on -Wl,-G. The following line is correct: 7319 shared_flag='-G' 7320 else 7321 if test "$aix_use_runtimelinking" = yes; then 7322 shared_flag='${wl}-G' 7323 else 7324 shared_flag='${wl}-bM:SRE' 7325 fi 7326 fi 7327 fi 7328 7329 # It seems that -bexpall does not export symbols beginning with 7330 # underscore (_), so it is better to generate a list of symbols to export. 7331 always_export_symbols=yes 7332 if test "$aix_use_runtimelinking" = yes; then 7333 # Warning - without using the other runtime loading flags (-brtl), 7334 # -berok will link without error, but may produce a broken library. 7335 allow_undefined_flag='-berok' 7336 # Determine the default libpath from the value encoded in an empty executable. 7337 cat >conftest.$ac_ext <<_ACEOF 7338/* confdefs.h. */ 7339_ACEOF 7340cat confdefs.h >>conftest.$ac_ext 7341cat >>conftest.$ac_ext <<_ACEOF 7342/* end confdefs.h. */ 7343 7344int 7345main () 7346{ 7347 7348 ; 7349 return 0; 7350} 7351_ACEOF 7352rm -f conftest.$ac_objext conftest$ac_exeext 7353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7354 (eval $ac_link) 2>conftest.er1 7355 ac_status=$? 7356 grep -v '^ *+' conftest.er1 >conftest.err 7357 rm -f conftest.er1 7358 cat conftest.err >&5 7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7360 (exit $ac_status); } && 7361 { ac_try='test -z "$ac_c_werror_flag" 7362 || test ! -s conftest.err' 7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7364 (eval $ac_try) 2>&5 7365 ac_status=$? 7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7367 (exit $ac_status); }; } && 7368 { ac_try='test -s conftest$ac_exeext' 7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7370 (eval $ac_try) 2>&5 7371 ac_status=$? 7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7373 (exit $ac_status); }; }; then 7374 7375aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7376}'` 7377# Check for a 64-bit object if we didn't find anything. 7378if 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; } 7379}'`; fi 7380else 7381 echo "$as_me: failed program was:" >&5 7382sed 's/^/| /' conftest.$ac_ext >&5 7383 7384fi 7385rm -f conftest.err conftest.$ac_objext \ 7386 conftest$ac_exeext conftest.$ac_ext 7387if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7388 7389 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7390 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" 7391 else 7392 if test "$host_cpu" = ia64; then 7393 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7394 allow_undefined_flag="-z nodefs" 7395 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" 7396 else 7397 # Determine the default libpath from the value encoded in an empty executable. 7398 cat >conftest.$ac_ext <<_ACEOF 7399/* confdefs.h. */ 7400_ACEOF 7401cat confdefs.h >>conftest.$ac_ext 7402cat >>conftest.$ac_ext <<_ACEOF 7403/* end confdefs.h. */ 7404 7405int 7406main () 7407{ 7408 7409 ; 7410 return 0; 7411} 7412_ACEOF 7413rm -f conftest.$ac_objext conftest$ac_exeext 7414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7415 (eval $ac_link) 2>conftest.er1 7416 ac_status=$? 7417 grep -v '^ *+' conftest.er1 >conftest.err 7418 rm -f conftest.er1 7419 cat conftest.err >&5 7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7421 (exit $ac_status); } && 7422 { ac_try='test -z "$ac_c_werror_flag" 7423 || test ! -s conftest.err' 7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7425 (eval $ac_try) 2>&5 7426 ac_status=$? 7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7428 (exit $ac_status); }; } && 7429 { ac_try='test -s conftest$ac_exeext' 7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7431 (eval $ac_try) 2>&5 7432 ac_status=$? 7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7434 (exit $ac_status); }; }; then 7435 7436aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7437}'` 7438# Check for a 64-bit object if we didn't find anything. 7439if 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; } 7440}'`; fi 7441else 7442 echo "$as_me: failed program was:" >&5 7443sed 's/^/| /' conftest.$ac_ext >&5 7444 7445fi 7446rm -f conftest.err conftest.$ac_objext \ 7447 conftest$ac_exeext conftest.$ac_ext 7448if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7449 7450 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7451 # Warning - without using the other run time loading flags, 7452 # -berok will link without error, but may produce a broken library. 7453 no_undefined_flag=' ${wl}-bernotok' 7454 allow_undefined_flag=' ${wl}-berok' 7455 # -bexpall does not export symbols beginning with underscore (_) 7456 always_export_symbols=yes 7457 # Exported symbols can be pulled into shared objects from archives 7458 whole_archive_flag_spec=' ' 7459 archive_cmds_need_lc=yes 7460 # This is similar to how AIX traditionally builds its shared libraries. 7461 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' 7462 fi 7463 fi 7464 ;; 7465 7466 amigaos*) 7467 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)' 7468 hardcode_libdir_flag_spec='-L$libdir' 7469 hardcode_minus_L=yes 7470 # see comment about different semantics on the GNU ld section 7471 ld_shlibs=no 7472 ;; 7473 7474 bsdi[45]*) 7475 export_dynamic_flag_spec=-rdynamic 7476 ;; 7477 7478 cygwin* | mingw* | pw32*) 7479 # When not using gcc, we currently assume that we are using 7480 # Microsoft Visual C++. 7481 # hardcode_libdir_flag_spec is actually meaningless, as there is 7482 # no search path for DLLs. 7483 hardcode_libdir_flag_spec=' ' 7484 allow_undefined_flag=unsupported 7485 # Tell ltmain to make .lib files, not .a files. 7486 libext=lib 7487 # Tell ltmain to make .dll files, not .so files. 7488 shrext_cmds=".dll" 7489 # FIXME: Setting linknames here is a bad hack. 7490 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7491 # The linker will automatically build a .lib file if we build a DLL. 7492 old_archive_From_new_cmds='true' 7493 # FIXME: Should let the user specify the lib program. 7494 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7495 fix_srcfile_path='`cygpath -w "$srcfile"`' 7496 enable_shared_with_static_runtimes=yes 7497 ;; 7498 7499 darwin* | rhapsody*) 7500 case $host_os in 7501 rhapsody* | darwin1.[012]) 7502 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7503 ;; 7504 *) # Darwin 1.3 on 7505 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7506 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7507 else 7508 case ${MACOSX_DEPLOYMENT_TARGET} in 7509 10.[012]) 7510 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7511 ;; 7512 10.*) 7513 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7514 ;; 7515 esac 7516 fi 7517 ;; 7518 esac 7519 archive_cmds_need_lc=no 7520 hardcode_direct=no 7521 hardcode_automatic=yes 7522 hardcode_shlibpath_var=unsupported 7523 whole_archive_flag_spec='' 7524 link_all_deplibs=yes 7525 if test "$GCC" = yes ; then 7526 output_verbose_link_cmd='echo' 7527 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7528 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7529 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7530 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}' 7531 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7532 else 7533 case $cc_basename in 7534 xlc*) 7535 output_verbose_link_cmd='echo' 7536 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7537 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7539 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7540 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7541 ;; 7542 *) 7543 ld_shlibs=no 7544 ;; 7545 esac 7546 fi 7547 ;; 7548 7549 dgux*) 7550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7551 hardcode_libdir_flag_spec='-L$libdir' 7552 hardcode_shlibpath_var=no 7553 ;; 7554 7555 freebsd1*) 7556 ld_shlibs=no 7557 ;; 7558 7559 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7560 # support. Future versions do this automatically, but an explicit c++rt0.o 7561 # does not break anything, and helps significantly (at the cost of a little 7562 # extra space). 7563 freebsd2.2*) 7564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7565 hardcode_libdir_flag_spec='-R$libdir' 7566 hardcode_direct=yes 7567 hardcode_shlibpath_var=no 7568 ;; 7569 7570 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7571 freebsd2*) 7572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7573 hardcode_direct=yes 7574 hardcode_minus_L=yes 7575 hardcode_shlibpath_var=no 7576 ;; 7577 7578 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7579 freebsd* | kfreebsd*-gnu | dragonfly*) 7580 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7581 hardcode_libdir_flag_spec='-R$libdir' 7582 hardcode_direct=yes 7583 hardcode_shlibpath_var=no 7584 ;; 7585 7586 hpux9*) 7587 if test "$GCC" = yes; then 7588 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' 7589 else 7590 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' 7591 fi 7592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7593 hardcode_libdir_separator=: 7594 hardcode_direct=yes 7595 7596 # hardcode_minus_L: Not really in the search PATH, 7597 # but as the default location of the library. 7598 hardcode_minus_L=yes 7599 export_dynamic_flag_spec='${wl}-E' 7600 ;; 7601 7602 hpux10* | hpux11*) 7603 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7604 case $host_cpu in 7605 hppa*64*|ia64*) 7606 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7607 ;; 7608 *) 7609 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7610 ;; 7611 esac 7612 else 7613 case $host_cpu in 7614 hppa*64*|ia64*) 7615 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7616 ;; 7617 *) 7618 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7619 ;; 7620 esac 7621 fi 7622 if test "$with_gnu_ld" = no; then 7623 case $host_cpu in 7624 hppa*64*) 7625 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7626 hardcode_libdir_flag_spec_ld='+b $libdir' 7627 hardcode_libdir_separator=: 7628 hardcode_direct=no 7629 hardcode_shlibpath_var=no 7630 ;; 7631 ia64*) 7632 hardcode_libdir_flag_spec='-L$libdir' 7633 hardcode_direct=no 7634 hardcode_shlibpath_var=no 7635 7636 # hardcode_minus_L: Not really in the search PATH, 7637 # but as the default location of the library. 7638 hardcode_minus_L=yes 7639 ;; 7640 *) 7641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7642 hardcode_libdir_separator=: 7643 hardcode_direct=yes 7644 export_dynamic_flag_spec='${wl}-E' 7645 7646 # hardcode_minus_L: Not really in the search PATH, 7647 # but as the default location of the library. 7648 hardcode_minus_L=yes 7649 ;; 7650 esac 7651 fi 7652 ;; 7653 7654 irix5* | irix6* | nonstopux*) 7655 if test "$GCC" = yes; then 7656 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' 7657 else 7658 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' 7659 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7660 fi 7661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7662 hardcode_libdir_separator=: 7663 link_all_deplibs=yes 7664 ;; 7665 7666 netbsd*) 7667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7669 else 7670 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7671 fi 7672 hardcode_libdir_flag_spec='-R$libdir' 7673 hardcode_direct=yes 7674 hardcode_shlibpath_var=no 7675 ;; 7676 7677 newsos6) 7678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7679 hardcode_direct=yes 7680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7681 hardcode_libdir_separator=: 7682 hardcode_shlibpath_var=no 7683 ;; 7684 7685 openbsd*) 7686 hardcode_direct=yes 7687 hardcode_shlibpath_var=no 7688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7690 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7692 export_dynamic_flag_spec='${wl}-E' 7693 else 7694 case $host_os in 7695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7697 hardcode_libdir_flag_spec='-R$libdir' 7698 ;; 7699 *) 7700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7702 ;; 7703 esac 7704 fi 7705 ;; 7706 7707 os2*) 7708 hardcode_libdir_flag_spec='-L$libdir' 7709 hardcode_minus_L=yes 7710 allow_undefined_flag=unsupported 7711 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' 7712 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7713 ;; 7714 7715 osf3*) 7716 if test "$GCC" = yes; then 7717 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7718 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' 7719 else 7720 allow_undefined_flag=' -expect_unresolved \*' 7721 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' 7722 fi 7723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7724 hardcode_libdir_separator=: 7725 ;; 7726 7727 osf4* | osf5*) # as osf3* with the addition of -msym flag 7728 if test "$GCC" = yes; then 7729 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7730 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' 7731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7732 else 7733 allow_undefined_flag=' -expect_unresolved \*' 7734 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' 7735 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7736 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7737 7738 # Both c and cxx compiler support -rpath directly 7739 hardcode_libdir_flag_spec='-rpath $libdir' 7740 fi 7741 hardcode_libdir_separator=: 7742 ;; 7743 7744 sco3.2v5*) 7745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7746 hardcode_shlibpath_var=no 7747 export_dynamic_flag_spec='${wl}-Bexport' 7748 runpath_var=LD_RUN_PATH 7749 hardcode_runpath_var=yes 7750 ;; 7751 7752 solaris*) 7753 no_undefined_flag=' -z text' 7754 if test "$GCC" = yes; then 7755 wlarc='${wl}' 7756 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7757 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7758 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7759 else 7760 wlarc='' 7761 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7762 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7764 fi 7765 hardcode_libdir_flag_spec='-R$libdir' 7766 hardcode_shlibpath_var=no 7767 case $host_os in 7768 solaris2.[0-5] | solaris2.[0-5].*) ;; 7769 *) 7770 # The compiler driver will combine linker options so we 7771 # cannot just pass the convience library names through 7772 # without $wl, iff we do not link with $LD. 7773 # Luckily, gcc supports the same syntax we need for Sun Studio. 7774 # Supported since Solaris 2.6 (maybe 2.5.1?) 7775 case $wlarc in 7776 '') 7777 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7778 *) 7779 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 7780 esac ;; 7781 esac 7782 link_all_deplibs=yes 7783 ;; 7784 7785 sunos4*) 7786 if test "x$host_vendor" = xsequent; then 7787 # Use $CC to link under sequent, because it throws in some extra .o 7788 # files that make .init and .fini sections work. 7789 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7790 else 7791 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7792 fi 7793 hardcode_libdir_flag_spec='-L$libdir' 7794 hardcode_direct=yes 7795 hardcode_minus_L=yes 7796 hardcode_shlibpath_var=no 7797 ;; 7798 7799 sysv4) 7800 case $host_vendor in 7801 sni) 7802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7803 hardcode_direct=yes # is this really true??? 7804 ;; 7805 siemens) 7806 ## LD is ld it makes a PLAMLIB 7807 ## CC just makes a GrossModule. 7808 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7809 reload_cmds='$CC -r -o $output$reload_objs' 7810 hardcode_direct=no 7811 ;; 7812 motorola) 7813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7814 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7815 ;; 7816 esac 7817 runpath_var='LD_RUN_PATH' 7818 hardcode_shlibpath_var=no 7819 ;; 7820 7821 sysv4.3*) 7822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7823 hardcode_shlibpath_var=no 7824 export_dynamic_flag_spec='-Bexport' 7825 ;; 7826 7827 sysv4*MP*) 7828 if test -d /usr/nec; then 7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7830 hardcode_shlibpath_var=no 7831 runpath_var=LD_RUN_PATH 7832 hardcode_runpath_var=yes 7833 ld_shlibs=yes 7834 fi 7835 ;; 7836 7837 sysv4.2uw2*) 7838 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7839 hardcode_direct=yes 7840 hardcode_minus_L=no 7841 hardcode_shlibpath_var=no 7842 hardcode_runpath_var=yes 7843 runpath_var=LD_RUN_PATH 7844 ;; 7845 7846 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7847 no_undefined_flag='${wl}-z ${wl}text' 7848 if test "$GCC" = yes; then 7849 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7850 else 7851 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7852 fi 7853 runpath_var='LD_RUN_PATH' 7854 hardcode_shlibpath_var=no 7855 ;; 7856 7857 sysv5*) 7858 no_undefined_flag=' -z text' 7859 # $CC -shared without GNU ld will not create a library from C++ 7860 # object files and a static libstdc++, better avoid it by now 7861 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7862 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7864 hardcode_libdir_flag_spec= 7865 hardcode_shlibpath_var=no 7866 runpath_var='LD_RUN_PATH' 7867 ;; 7868 7869 uts4*) 7870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7871 hardcode_libdir_flag_spec='-L$libdir' 7872 hardcode_shlibpath_var=no 7873 ;; 7874 7875 *) 7876 ld_shlibs=no 7877 ;; 7878 esac 7879 fi 7880 7881echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7882echo "${ECHO_T}$ld_shlibs" >&6 7883test "$ld_shlibs" = no && can_build_shared=no 7884 7885variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7886if test "$GCC" = yes; then 7887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7888fi 7889 7890# 7891# Do we need to explicitly link libc? 7892# 7893case "x$archive_cmds_need_lc" in 7894x|xyes) 7895 # Assume -lc should be added 7896 archive_cmds_need_lc=yes 7897 7898 if test "$enable_shared" = yes && test "$GCC" = yes; then 7899 case $archive_cmds in 7900 *'~'*) 7901 # FIXME: we may have to deal with multi-command sequences. 7902 ;; 7903 '$CC '*) 7904 # Test whether the compiler implicitly links with -lc since on some 7905 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7906 # to ld, don't add -lc before -lgcc. 7907 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7908echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7909 $rm conftest* 7910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7911 7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7913 (eval $ac_compile) 2>&5 7914 ac_status=$? 7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7916 (exit $ac_status); } 2>conftest.err; then 7917 soname=conftest 7918 lib=conftest 7919 libobjs=conftest.$ac_objext 7920 deplibs= 7921 wl=$lt_prog_compiler_wl 7922 compiler_flags=-v 7923 linker_flags=-v 7924 verstring= 7925 output_objdir=. 7926 libname=conftest 7927 lt_save_allow_undefined_flag=$allow_undefined_flag 7928 allow_undefined_flag= 7929 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7930 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7931 ac_status=$? 7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7933 (exit $ac_status); } 7934 then 7935 archive_cmds_need_lc=no 7936 else 7937 archive_cmds_need_lc=yes 7938 fi 7939 allow_undefined_flag=$lt_save_allow_undefined_flag 7940 else 7941 cat conftest.err 1>&5 7942 fi 7943 $rm conftest* 7944 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7945echo "${ECHO_T}$archive_cmds_need_lc" >&6 7946 ;; 7947 esac 7948 fi 7949 ;; 7950esac 7951 7952echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7953echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7954library_names_spec= 7955libname_spec='lib$name' 7956soname_spec= 7957shrext_cmds=".so" 7958postinstall_cmds= 7959postuninstall_cmds= 7960finish_cmds= 7961finish_eval= 7962shlibpath_var= 7963shlibpath_overrides_runpath=unknown 7964version_type=none 7965dynamic_linker="$host_os ld.so" 7966sys_lib_dlsearch_path_spec="/lib /usr/lib" 7967if test "$GCC" = yes; then 7968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7969 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7970 # if the path contains ";" then we assume it to be the separator 7971 # otherwise default to the standard path separator (i.e. ":") - it is 7972 # assumed that no part of a normal pathname contains ";" but that should 7973 # okay in the real world where ";" in dirpaths is itself problematic. 7974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7975 else 7976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7977 fi 7978else 7979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7980fi 7981need_lib_prefix=unknown 7982hardcode_into_libs=no 7983 7984# when you set need_version to no, make sure it does not cause -set_version 7985# flags to be left without arguments 7986need_version=unknown 7987 7988case $host_os in 7989aix3*) 7990 version_type=linux 7991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7992 shlibpath_var=LIBPATH 7993 7994 # AIX 3 has no versioning support, so we append a major version to the name. 7995 soname_spec='${libname}${release}${shared_ext}$major' 7996 ;; 7997 7998aix4* | aix5*) 7999 version_type=linux 8000 need_lib_prefix=no 8001 need_version=no 8002 hardcode_into_libs=yes 8003 if test "$host_cpu" = ia64; then 8004 # AIX 5 supports IA64 8005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8006 shlibpath_var=LD_LIBRARY_PATH 8007 else 8008 # With GCC up to 2.95.x, collect2 would create an import file 8009 # for dependence libraries. The import file would start with 8010 # the line `#! .'. This would cause the generated library to 8011 # depend on `.', always an invalid library. This was fixed in 8012 # development snapshots of GCC prior to 3.0. 8013 case $host_os in 8014 aix4 | aix4.[01] | aix4.[01].*) 8015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8016 echo ' yes ' 8017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8018 : 8019 else 8020 can_build_shared=no 8021 fi 8022 ;; 8023 esac 8024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8025 # soname into executable. Probably we can add versioning support to 8026 # collect2, so additional links can be useful in future. 8027 if test "$aix_use_runtimelinking" = yes; then 8028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8029 # instead of lib<name>.a to let people know that these are not 8030 # typical AIX shared libraries. 8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8032 else 8033 # We preserve .a as extension for shared libraries through AIX4.2 8034 # and later when we are not doing run time linking. 8035 library_names_spec='${libname}${release}.a $libname.a' 8036 soname_spec='${libname}${release}${shared_ext}$major' 8037 fi 8038 shlibpath_var=LIBPATH 8039 fi 8040 ;; 8041 8042amigaos*) 8043 library_names_spec='$libname.ixlibrary $libname.a' 8044 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8045 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' 8046 ;; 8047 8048beos*) 8049 library_names_spec='${libname}${shared_ext}' 8050 dynamic_linker="$host_os ld.so" 8051 shlibpath_var=LIBRARY_PATH 8052 ;; 8053 8054bsdi[45]*) 8055 version_type=linux 8056 need_version=no 8057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8058 soname_spec='${libname}${release}${shared_ext}$major' 8059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8060 shlibpath_var=LD_LIBRARY_PATH 8061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8063 # the default ld.so.conf also contains /usr/contrib/lib and 8064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8065 # libtool to hard-code these into programs 8066 ;; 8067 8068cygwin* | mingw* | pw32*) 8069 version_type=windows 8070 shrext_cmds=".dll" 8071 need_version=no 8072 need_lib_prefix=no 8073 8074 case $GCC,$host_os in 8075 yes,cygwin* | yes,mingw* | yes,pw32*) 8076 library_names_spec='$libname.dll.a' 8077 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8078 postinstall_cmds='base_file=`basename \${file}`~ 8079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8080 dldir=$destdir/`dirname \$dlpath`~ 8081 test -d \$dldir || mkdir -p \$dldir~ 8082 $install_prog $dir/$dlname \$dldir/$dlname~ 8083 chmod a+x \$dldir/$dlname' 8084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8085 dlpath=$dir/\$dldll~ 8086 $rm \$dlpath' 8087 shlibpath_overrides_runpath=yes 8088 8089 case $host_os in 8090 cygwin*) 8091 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8093 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8094 ;; 8095 mingw*) 8096 # MinGW DLLs use traditional 'lib' prefix 8097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8100 # It is most probably a Windows format PATH printed by 8101 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8102 # path with ; separators, and with drive letters. We can handle the 8103 # drive letters (cygwin fileutils understands them), so leave them, 8104 # especially as we might pass files found there to a mingw objdump, 8105 # which wouldn't understand a cygwinified path. Ahh. 8106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8107 else 8108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8109 fi 8110 ;; 8111 pw32*) 8112 # pw32 DLLs use 'pw' prefix rather than 'lib' 8113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8114 ;; 8115 esac 8116 ;; 8117 8118 *) 8119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8120 ;; 8121 esac 8122 dynamic_linker='Win32 ld.exe' 8123 # FIXME: first we should search . and the directory the executable is in 8124 shlibpath_var=PATH 8125 ;; 8126 8127darwin* | rhapsody*) 8128 dynamic_linker="$host_os dyld" 8129 version_type=darwin 8130 need_lib_prefix=no 8131 need_version=no 8132 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8133 soname_spec='${libname}${release}${major}$shared_ext' 8134 shlibpath_overrides_runpath=yes 8135 shlibpath_var=DYLD_LIBRARY_PATH 8136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8137 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8138 if test "$GCC" = yes; then 8139 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"` 8140 else 8141 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8142 fi 8143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8144 ;; 8145 8146dgux*) 8147 version_type=linux 8148 need_lib_prefix=no 8149 need_version=no 8150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8151 soname_spec='${libname}${release}${shared_ext}$major' 8152 shlibpath_var=LD_LIBRARY_PATH 8153 ;; 8154 8155freebsd1*) 8156 dynamic_linker=no 8157 ;; 8158 8159haiku*) 8160 library_names_spec='${libname}${shared_ext}' 8161 dynamic_linker="$host_os ld.so" 8162 shlibpath_var=LIBRARY_PATH 8163 ;; 8164 8165kfreebsd*-gnu) 8166 version_type=linux 8167 need_lib_prefix=no 8168 need_version=no 8169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8170 soname_spec='${libname}${release}${shared_ext}$major' 8171 shlibpath_var=LD_LIBRARY_PATH 8172 shlibpath_overrides_runpath=no 8173 hardcode_into_libs=yes 8174 dynamic_linker='GNU ld.so' 8175 ;; 8176 8177freebsd* | dragonfly*) 8178 # DragonFly does not have aout. When/if they implement a new 8179 # versioning mechanism, adjust this. 8180 if test -x /usr/bin/objformat; then 8181 objformat=`/usr/bin/objformat` 8182 else 8183 case $host_os in 8184 freebsd[123]*) objformat=aout ;; 8185 *) objformat=elf ;; 8186 esac 8187 fi 8188 version_type=freebsd-$objformat 8189 case $version_type in 8190 freebsd-elf*) 8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8192 need_version=no 8193 need_lib_prefix=no 8194 ;; 8195 freebsd-*) 8196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8197 need_version=yes 8198 ;; 8199 esac 8200 shlibpath_var=LD_LIBRARY_PATH 8201 case $host_os in 8202 freebsd2*) 8203 shlibpath_overrides_runpath=yes 8204 ;; 8205 freebsd3.[01]* | freebsdelf3.[01]*) 8206 shlibpath_overrides_runpath=yes 8207 hardcode_into_libs=yes 8208 ;; 8209 *) # from 3.2 on 8210 shlibpath_overrides_runpath=no 8211 hardcode_into_libs=yes 8212 ;; 8213 esac 8214 ;; 8215 8216gnu*) 8217 version_type=linux 8218 need_lib_prefix=no 8219 need_version=no 8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8221 soname_spec='${libname}${release}${shared_ext}$major' 8222 shlibpath_var=LD_LIBRARY_PATH 8223 hardcode_into_libs=yes 8224 ;; 8225 8226hpux9* | hpux10* | hpux11*) 8227 # Give a soname corresponding to the major version so that dld.sl refuses to 8228 # link against other versions. 8229 version_type=sunos 8230 need_lib_prefix=no 8231 need_version=no 8232 case $host_cpu in 8233 ia64*) 8234 shrext_cmds='.so' 8235 hardcode_into_libs=yes 8236 dynamic_linker="$host_os dld.so" 8237 shlibpath_var=LD_LIBRARY_PATH 8238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8240 soname_spec='${libname}${release}${shared_ext}$major' 8241 if test "X$HPUX_IA64_MODE" = X32; then 8242 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8243 else 8244 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8245 fi 8246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8247 ;; 8248 hppa*64*) 8249 shrext_cmds='.sl' 8250 hardcode_into_libs=yes 8251 dynamic_linker="$host_os dld.sl" 8252 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8255 soname_spec='${libname}${release}${shared_ext}$major' 8256 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8258 ;; 8259 *) 8260 shrext_cmds='.sl' 8261 dynamic_linker="$host_os dld.sl" 8262 shlibpath_var=SHLIB_PATH 8263 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8265 soname_spec='${libname}${release}${shared_ext}$major' 8266 ;; 8267 esac 8268 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8269 postinstall_cmds='chmod 555 $lib' 8270 ;; 8271 8272irix5* | irix6* | nonstopux*) 8273 case $host_os in 8274 nonstopux*) version_type=nonstopux ;; 8275 *) 8276 if test "$lt_cv_prog_gnu_ld" = yes; then 8277 version_type=linux 8278 else 8279 version_type=irix 8280 fi ;; 8281 esac 8282 need_lib_prefix=no 8283 need_version=no 8284 soname_spec='${libname}${release}${shared_ext}$major' 8285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8286 case $host_os in 8287 irix5* | nonstopux*) 8288 libsuff= shlibsuff= 8289 ;; 8290 *) 8291 case $LD in # libtool.m4 will add one of these switches to LD 8292 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8293 libsuff= shlibsuff= libmagic=32-bit;; 8294 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8295 libsuff=32 shlibsuff=N32 libmagic=N32;; 8296 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8297 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8298 *) libsuff= shlibsuff= libmagic=never-match;; 8299 esac 8300 ;; 8301 esac 8302 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8303 shlibpath_overrides_runpath=no 8304 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8305 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8306 hardcode_into_libs=yes 8307 ;; 8308 8309# No shared lib support for Linux oldld, aout, or coff. 8310linux*oldld* | linux*aout* | linux*coff*) 8311 dynamic_linker=no 8312 ;; 8313 8314# This must be Linux ELF. 8315linux*) 8316 version_type=linux 8317 need_lib_prefix=no 8318 need_version=no 8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8320 soname_spec='${libname}${release}${shared_ext}$major' 8321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8322 shlibpath_var=LD_LIBRARY_PATH 8323 shlibpath_overrides_runpath=no 8324 # This implies no fast_install, which is unacceptable. 8325 # Some rework will be needed to allow for fast_install 8326 # before this can be enabled. 8327 hardcode_into_libs=yes 8328 8329 # Append ld.so.conf contents to the search path 8330 if test -f /etc/ld.so.conf; then 8331 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8332 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8333 fi 8334 8335 # We used to test for /lib/ld.so.1 and disable shared libraries on 8336 # powerpc, because MkLinux only supported shared libraries with the 8337 # GNU dynamic linker. Since this was broken with cross compilers, 8338 # most powerpc-linux boxes support dynamic linking these days and 8339 # people can always --disable-shared, the test was removed, and we 8340 # assume the GNU/Linux dynamic linker is in use. 8341 dynamic_linker='GNU/Linux ld.so' 8342 ;; 8343 8344knetbsd*-gnu) 8345 version_type=linux 8346 need_lib_prefix=no 8347 need_version=no 8348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8349 soname_spec='${libname}${release}${shared_ext}$major' 8350 shlibpath_var=LD_LIBRARY_PATH 8351 shlibpath_overrides_runpath=no 8352 hardcode_into_libs=yes 8353 dynamic_linker='GNU ld.so' 8354 ;; 8355 8356netbsd*) 8357 version_type=sunos 8358 need_lib_prefix=no 8359 need_version=no 8360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8363 dynamic_linker='NetBSD (a.out) ld.so' 8364 else 8365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8366 soname_spec='${libname}${release}${shared_ext}$major' 8367 dynamic_linker='NetBSD ld.elf_so' 8368 fi 8369 shlibpath_var=LD_LIBRARY_PATH 8370 shlibpath_overrides_runpath=yes 8371 hardcode_into_libs=yes 8372 ;; 8373 8374newsos6) 8375 version_type=linux 8376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8377 shlibpath_var=LD_LIBRARY_PATH 8378 shlibpath_overrides_runpath=yes 8379 ;; 8380 8381nto-qnx*) 8382 version_type=linux 8383 need_lib_prefix=no 8384 need_version=no 8385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8386 soname_spec='${libname}${release}${shared_ext}$major' 8387 shlibpath_var=LD_LIBRARY_PATH 8388 shlibpath_overrides_runpath=yes 8389 ;; 8390 8391openbsd*) 8392 version_type=sunos 8393 need_lib_prefix=no 8394 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8395 case $host_os in 8396 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8397 *) need_version=no ;; 8398 esac 8399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8401 shlibpath_var=LD_LIBRARY_PATH 8402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8403 case $host_os in 8404 openbsd2.[89] | openbsd2.[89].*) 8405 shlibpath_overrides_runpath=no 8406 ;; 8407 *) 8408 shlibpath_overrides_runpath=yes 8409 ;; 8410 esac 8411 else 8412 shlibpath_overrides_runpath=yes 8413 fi 8414 ;; 8415 8416os2*) 8417 libname_spec='$name' 8418 shrext_cmds=".dll" 8419 need_lib_prefix=no 8420 library_names_spec='$libname${shared_ext} $libname.a' 8421 dynamic_linker='OS/2 ld.exe' 8422 shlibpath_var=LIBPATH 8423 ;; 8424 8425osf3* | osf4* | osf5*) 8426 version_type=osf 8427 need_lib_prefix=no 8428 need_version=no 8429 soname_spec='${libname}${release}${shared_ext}$major' 8430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8431 shlibpath_var=LD_LIBRARY_PATH 8432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8434 ;; 8435 8436sco3.2v5*) 8437 version_type=osf 8438 soname_spec='${libname}${release}${shared_ext}$major' 8439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8440 shlibpath_var=LD_LIBRARY_PATH 8441 ;; 8442 8443solaris*) 8444 version_type=linux 8445 need_lib_prefix=no 8446 need_version=no 8447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8448 soname_spec='${libname}${release}${shared_ext}$major' 8449 shlibpath_var=LD_LIBRARY_PATH 8450 shlibpath_overrides_runpath=yes 8451 hardcode_into_libs=yes 8452 # ldd complains unless libraries are executable 8453 postinstall_cmds='chmod +x $lib' 8454 ;; 8455 8456sunos4*) 8457 version_type=sunos 8458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8460 shlibpath_var=LD_LIBRARY_PATH 8461 shlibpath_overrides_runpath=yes 8462 if test "$with_gnu_ld" = yes; then 8463 need_lib_prefix=no 8464 fi 8465 need_version=yes 8466 ;; 8467 8468sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8469 version_type=linux 8470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8471 soname_spec='${libname}${release}${shared_ext}$major' 8472 shlibpath_var=LD_LIBRARY_PATH 8473 case $host_vendor in 8474 sni) 8475 shlibpath_overrides_runpath=no 8476 need_lib_prefix=no 8477 export_dynamic_flag_spec='${wl}-Blargedynsym' 8478 runpath_var=LD_RUN_PATH 8479 ;; 8480 siemens) 8481 need_lib_prefix=no 8482 ;; 8483 motorola) 8484 need_lib_prefix=no 8485 need_version=no 8486 shlibpath_overrides_runpath=no 8487 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8488 ;; 8489 esac 8490 ;; 8491 8492sysv4*MP*) 8493 if test -d /usr/nec ;then 8494 version_type=linux 8495 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8496 soname_spec='$libname${shared_ext}.$major' 8497 shlibpath_var=LD_LIBRARY_PATH 8498 fi 8499 ;; 8500 8501uts4*) 8502 version_type=linux 8503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8504 soname_spec='${libname}${release}${shared_ext}$major' 8505 shlibpath_var=LD_LIBRARY_PATH 8506 ;; 8507 8508*) 8509 dynamic_linker=no 8510 ;; 8511esac 8512echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8513echo "${ECHO_T}$dynamic_linker" >&6 8514test "$dynamic_linker" = no && can_build_shared=no 8515 8516echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8517echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8518hardcode_action= 8519if test -n "$hardcode_libdir_flag_spec" || \ 8520 test -n "$runpath_var" || \ 8521 test "X$hardcode_automatic" = "Xyes" ; then 8522 8523 # We can hardcode non-existant directories. 8524 if test "$hardcode_direct" != no && 8525 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8526 # have to relink, otherwise we might link with an installed library 8527 # when we should be linking with a yet-to-be-installed one 8528 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8529 test "$hardcode_minus_L" != no; then 8530 # Linking always hardcodes the temporary library directory. 8531 hardcode_action=relink 8532 else 8533 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8534 hardcode_action=immediate 8535 fi 8536else 8537 # We cannot hardcode anything, or else we can only hardcode existing 8538 # directories. 8539 hardcode_action=unsupported 8540fi 8541echo "$as_me:$LINENO: result: $hardcode_action" >&5 8542echo "${ECHO_T}$hardcode_action" >&6 8543 8544if test "$hardcode_action" = relink; then 8545 # Fast installation is not supported 8546 enable_fast_install=no 8547elif test "$shlibpath_overrides_runpath" = yes || 8548 test "$enable_shared" = no; then 8549 # Fast installation is not necessary 8550 enable_fast_install=needless 8551fi 8552 8553striplib= 8554old_striplib= 8555echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8556echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8557if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8558 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8559 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8560 echo "$as_me:$LINENO: result: yes" >&5 8561echo "${ECHO_T}yes" >&6 8562else 8563# FIXME - insert some real tests, host_os isn't really good enough 8564 case $host_os in 8565 darwin*) 8566 if test -n "$STRIP" ; then 8567 striplib="$STRIP -x" 8568 echo "$as_me:$LINENO: result: yes" >&5 8569echo "${ECHO_T}yes" >&6 8570 else 8571 echo "$as_me:$LINENO: result: no" >&5 8572echo "${ECHO_T}no" >&6 8573fi 8574 ;; 8575 *) 8576 echo "$as_me:$LINENO: result: no" >&5 8577echo "${ECHO_T}no" >&6 8578 ;; 8579 esac 8580fi 8581 8582if test "x$enable_dlopen" != xyes; then 8583 enable_dlopen=unknown 8584 enable_dlopen_self=unknown 8585 enable_dlopen_self_static=unknown 8586else 8587 lt_cv_dlopen=no 8588 lt_cv_dlopen_libs= 8589 8590 case $host_os in 8591 beos*) 8592 lt_cv_dlopen="load_add_on" 8593 lt_cv_dlopen_libs= 8594 lt_cv_dlopen_self=yes 8595 ;; 8596 8597 mingw* | pw32*) 8598 lt_cv_dlopen="LoadLibrary" 8599 lt_cv_dlopen_libs= 8600 ;; 8601 8602 cygwin*) 8603 lt_cv_dlopen="dlopen" 8604 lt_cv_dlopen_libs= 8605 ;; 8606 8607 darwin*) 8608 # if libdl is installed we need to link against it 8609 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8610echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8611if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8612 echo $ECHO_N "(cached) $ECHO_C" >&6 8613else 8614 ac_check_lib_save_LIBS=$LIBS 8615LIBS="-ldl $LIBS" 8616cat >conftest.$ac_ext <<_ACEOF 8617/* confdefs.h. */ 8618_ACEOF 8619cat confdefs.h >>conftest.$ac_ext 8620cat >>conftest.$ac_ext <<_ACEOF 8621/* end confdefs.h. */ 8622 8623/* Override any gcc2 internal prototype to avoid an error. */ 8624#ifdef __cplusplus 8625extern "C" 8626#endif 8627/* We use char because int might match the return type of a gcc2 8628 builtin and then its argument prototype would still apply. */ 8629char dlopen (); 8630int 8631main () 8632{ 8633dlopen (); 8634 ; 8635 return 0; 8636} 8637_ACEOF 8638rm -f conftest.$ac_objext conftest$ac_exeext 8639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8640 (eval $ac_link) 2>conftest.er1 8641 ac_status=$? 8642 grep -v '^ *+' conftest.er1 >conftest.err 8643 rm -f conftest.er1 8644 cat conftest.err >&5 8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8646 (exit $ac_status); } && 8647 { ac_try='test -z "$ac_c_werror_flag" 8648 || test ! -s conftest.err' 8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8650 (eval $ac_try) 2>&5 8651 ac_status=$? 8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8653 (exit $ac_status); }; } && 8654 { ac_try='test -s conftest$ac_exeext' 8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8656 (eval $ac_try) 2>&5 8657 ac_status=$? 8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8659 (exit $ac_status); }; }; then 8660 ac_cv_lib_dl_dlopen=yes 8661else 8662 echo "$as_me: failed program was:" >&5 8663sed 's/^/| /' conftest.$ac_ext >&5 8664 8665ac_cv_lib_dl_dlopen=no 8666fi 8667rm -f conftest.err conftest.$ac_objext \ 8668 conftest$ac_exeext conftest.$ac_ext 8669LIBS=$ac_check_lib_save_LIBS 8670fi 8671echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8672echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8673if test $ac_cv_lib_dl_dlopen = yes; then 8674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8675else 8676 8677 lt_cv_dlopen="dyld" 8678 lt_cv_dlopen_libs= 8679 lt_cv_dlopen_self=yes 8680 8681fi 8682 8683 ;; 8684 8685 haiku*) 8686 lt_cv_dlopen="load_add_on" 8687 lt_cv_dlopen_libs= 8688 lt_cv_dlopen_self=yes 8689 ;; 8690 8691 *) 8692 echo "$as_me:$LINENO: checking for shl_load" >&5 8693echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8694if test "${ac_cv_func_shl_load+set}" = set; then 8695 echo $ECHO_N "(cached) $ECHO_C" >&6 8696else 8697 cat >conftest.$ac_ext <<_ACEOF 8698/* confdefs.h. */ 8699_ACEOF 8700cat confdefs.h >>conftest.$ac_ext 8701cat >>conftest.$ac_ext <<_ACEOF 8702/* end confdefs.h. */ 8703/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8704 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8705#define shl_load innocuous_shl_load 8706 8707/* System header to define __stub macros and hopefully few prototypes, 8708 which can conflict with char shl_load (); below. 8709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8710 <limits.h> exists even on freestanding compilers. */ 8711 8712#ifdef __STDC__ 8713# include <limits.h> 8714#else 8715# include <assert.h> 8716#endif 8717 8718#undef shl_load 8719 8720/* Override any gcc2 internal prototype to avoid an error. */ 8721#ifdef __cplusplus 8722extern "C" 8723{ 8724#endif 8725/* We use char because int might match the return type of a gcc2 8726 builtin and then its argument prototype would still apply. */ 8727char shl_load (); 8728/* The GNU C library defines this for functions which it implements 8729 to always fail with ENOSYS. Some functions are actually named 8730 something starting with __ and the normal name is an alias. */ 8731#if defined (__stub_shl_load) || defined (__stub___shl_load) 8732choke me 8733#else 8734char (*f) () = shl_load; 8735#endif 8736#ifdef __cplusplus 8737} 8738#endif 8739 8740int 8741main () 8742{ 8743return f != shl_load; 8744 ; 8745 return 0; 8746} 8747_ACEOF 8748rm -f conftest.$ac_objext conftest$ac_exeext 8749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8750 (eval $ac_link) 2>conftest.er1 8751 ac_status=$? 8752 grep -v '^ *+' conftest.er1 >conftest.err 8753 rm -f conftest.er1 8754 cat conftest.err >&5 8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8756 (exit $ac_status); } && 8757 { ac_try='test -z "$ac_c_werror_flag" 8758 || test ! -s conftest.err' 8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8760 (eval $ac_try) 2>&5 8761 ac_status=$? 8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8763 (exit $ac_status); }; } && 8764 { ac_try='test -s conftest$ac_exeext' 8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8766 (eval $ac_try) 2>&5 8767 ac_status=$? 8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8769 (exit $ac_status); }; }; then 8770 ac_cv_func_shl_load=yes 8771else 8772 echo "$as_me: failed program was:" >&5 8773sed 's/^/| /' conftest.$ac_ext >&5 8774 8775ac_cv_func_shl_load=no 8776fi 8777rm -f conftest.err conftest.$ac_objext \ 8778 conftest$ac_exeext conftest.$ac_ext 8779fi 8780echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8781echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8782if test $ac_cv_func_shl_load = yes; then 8783 lt_cv_dlopen="shl_load" 8784else 8785 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8786echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8787if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8788 echo $ECHO_N "(cached) $ECHO_C" >&6 8789else 8790 ac_check_lib_save_LIBS=$LIBS 8791LIBS="-ldld $LIBS" 8792cat >conftest.$ac_ext <<_ACEOF 8793/* confdefs.h. */ 8794_ACEOF 8795cat confdefs.h >>conftest.$ac_ext 8796cat >>conftest.$ac_ext <<_ACEOF 8797/* end confdefs.h. */ 8798 8799/* Override any gcc2 internal prototype to avoid an error. */ 8800#ifdef __cplusplus 8801extern "C" 8802#endif 8803/* We use char because int might match the return type of a gcc2 8804 builtin and then its argument prototype would still apply. */ 8805char shl_load (); 8806int 8807main () 8808{ 8809shl_load (); 8810 ; 8811 return 0; 8812} 8813_ACEOF 8814rm -f conftest.$ac_objext conftest$ac_exeext 8815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8816 (eval $ac_link) 2>conftest.er1 8817 ac_status=$? 8818 grep -v '^ *+' conftest.er1 >conftest.err 8819 rm -f conftest.er1 8820 cat conftest.err >&5 8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8822 (exit $ac_status); } && 8823 { ac_try='test -z "$ac_c_werror_flag" 8824 || test ! -s conftest.err' 8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8826 (eval $ac_try) 2>&5 8827 ac_status=$? 8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8829 (exit $ac_status); }; } && 8830 { ac_try='test -s conftest$ac_exeext' 8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8832 (eval $ac_try) 2>&5 8833 ac_status=$? 8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8835 (exit $ac_status); }; }; then 8836 ac_cv_lib_dld_shl_load=yes 8837else 8838 echo "$as_me: failed program was:" >&5 8839sed 's/^/| /' conftest.$ac_ext >&5 8840 8841ac_cv_lib_dld_shl_load=no 8842fi 8843rm -f conftest.err conftest.$ac_objext \ 8844 conftest$ac_exeext conftest.$ac_ext 8845LIBS=$ac_check_lib_save_LIBS 8846fi 8847echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8848echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8849if test $ac_cv_lib_dld_shl_load = yes; then 8850 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8851else 8852 echo "$as_me:$LINENO: checking for dlopen" >&5 8853echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8854if test "${ac_cv_func_dlopen+set}" = set; then 8855 echo $ECHO_N "(cached) $ECHO_C" >&6 8856else 8857 cat >conftest.$ac_ext <<_ACEOF 8858/* confdefs.h. */ 8859_ACEOF 8860cat confdefs.h >>conftest.$ac_ext 8861cat >>conftest.$ac_ext <<_ACEOF 8862/* end confdefs.h. */ 8863/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8864 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8865#define dlopen innocuous_dlopen 8866 8867/* System header to define __stub macros and hopefully few prototypes, 8868 which can conflict with char dlopen (); below. 8869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8870 <limits.h> exists even on freestanding compilers. */ 8871 8872#ifdef __STDC__ 8873# include <limits.h> 8874#else 8875# include <assert.h> 8876#endif 8877 8878#undef dlopen 8879 8880/* Override any gcc2 internal prototype to avoid an error. */ 8881#ifdef __cplusplus 8882extern "C" 8883{ 8884#endif 8885/* We use char because int might match the return type of a gcc2 8886 builtin and then its argument prototype would still apply. */ 8887char dlopen (); 8888/* The GNU C library defines this for functions which it implements 8889 to always fail with ENOSYS. Some functions are actually named 8890 something starting with __ and the normal name is an alias. */ 8891#if defined (__stub_dlopen) || defined (__stub___dlopen) 8892choke me 8893#else 8894char (*f) () = dlopen; 8895#endif 8896#ifdef __cplusplus 8897} 8898#endif 8899 8900int 8901main () 8902{ 8903return f != dlopen; 8904 ; 8905 return 0; 8906} 8907_ACEOF 8908rm -f conftest.$ac_objext conftest$ac_exeext 8909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8910 (eval $ac_link) 2>conftest.er1 8911 ac_status=$? 8912 grep -v '^ *+' conftest.er1 >conftest.err 8913 rm -f conftest.er1 8914 cat conftest.err >&5 8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8916 (exit $ac_status); } && 8917 { ac_try='test -z "$ac_c_werror_flag" 8918 || test ! -s conftest.err' 8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8920 (eval $ac_try) 2>&5 8921 ac_status=$? 8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8923 (exit $ac_status); }; } && 8924 { ac_try='test -s conftest$ac_exeext' 8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8926 (eval $ac_try) 2>&5 8927 ac_status=$? 8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8929 (exit $ac_status); }; }; then 8930 ac_cv_func_dlopen=yes 8931else 8932 echo "$as_me: failed program was:" >&5 8933sed 's/^/| /' conftest.$ac_ext >&5 8934 8935ac_cv_func_dlopen=no 8936fi 8937rm -f conftest.err conftest.$ac_objext \ 8938 conftest$ac_exeext conftest.$ac_ext 8939fi 8940echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8941echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8942if test $ac_cv_func_dlopen = yes; then 8943 lt_cv_dlopen="dlopen" 8944else 8945 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8946echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8947if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8948 echo $ECHO_N "(cached) $ECHO_C" >&6 8949else 8950 ac_check_lib_save_LIBS=$LIBS 8951LIBS="-ldl $LIBS" 8952cat >conftest.$ac_ext <<_ACEOF 8953/* confdefs.h. */ 8954_ACEOF 8955cat confdefs.h >>conftest.$ac_ext 8956cat >>conftest.$ac_ext <<_ACEOF 8957/* end confdefs.h. */ 8958 8959/* Override any gcc2 internal prototype to avoid an error. */ 8960#ifdef __cplusplus 8961extern "C" 8962#endif 8963/* We use char because int might match the return type of a gcc2 8964 builtin and then its argument prototype would still apply. */ 8965char dlopen (); 8966int 8967main () 8968{ 8969dlopen (); 8970 ; 8971 return 0; 8972} 8973_ACEOF 8974rm -f conftest.$ac_objext conftest$ac_exeext 8975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8976 (eval $ac_link) 2>conftest.er1 8977 ac_status=$? 8978 grep -v '^ *+' conftest.er1 >conftest.err 8979 rm -f conftest.er1 8980 cat conftest.err >&5 8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8982 (exit $ac_status); } && 8983 { ac_try='test -z "$ac_c_werror_flag" 8984 || test ! -s conftest.err' 8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8986 (eval $ac_try) 2>&5 8987 ac_status=$? 8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8989 (exit $ac_status); }; } && 8990 { ac_try='test -s conftest$ac_exeext' 8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8992 (eval $ac_try) 2>&5 8993 ac_status=$? 8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8995 (exit $ac_status); }; }; then 8996 ac_cv_lib_dl_dlopen=yes 8997else 8998 echo "$as_me: failed program was:" >&5 8999sed 's/^/| /' conftest.$ac_ext >&5 9000 9001ac_cv_lib_dl_dlopen=no 9002fi 9003rm -f conftest.err conftest.$ac_objext \ 9004 conftest$ac_exeext conftest.$ac_ext 9005LIBS=$ac_check_lib_save_LIBS 9006fi 9007echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9008echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9009if test $ac_cv_lib_dl_dlopen = yes; then 9010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9011else 9012 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9013echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9014if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9015 echo $ECHO_N "(cached) $ECHO_C" >&6 9016else 9017 ac_check_lib_save_LIBS=$LIBS 9018LIBS="-lsvld $LIBS" 9019cat >conftest.$ac_ext <<_ACEOF 9020/* confdefs.h. */ 9021_ACEOF 9022cat confdefs.h >>conftest.$ac_ext 9023cat >>conftest.$ac_ext <<_ACEOF 9024/* end confdefs.h. */ 9025 9026/* Override any gcc2 internal prototype to avoid an error. */ 9027#ifdef __cplusplus 9028extern "C" 9029#endif 9030/* We use char because int might match the return type of a gcc2 9031 builtin and then its argument prototype would still apply. */ 9032char dlopen (); 9033int 9034main () 9035{ 9036dlopen (); 9037 ; 9038 return 0; 9039} 9040_ACEOF 9041rm -f conftest.$ac_objext conftest$ac_exeext 9042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9043 (eval $ac_link) 2>conftest.er1 9044 ac_status=$? 9045 grep -v '^ *+' conftest.er1 >conftest.err 9046 rm -f conftest.er1 9047 cat conftest.err >&5 9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9049 (exit $ac_status); } && 9050 { ac_try='test -z "$ac_c_werror_flag" 9051 || test ! -s conftest.err' 9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9053 (eval $ac_try) 2>&5 9054 ac_status=$? 9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9056 (exit $ac_status); }; } && 9057 { ac_try='test -s conftest$ac_exeext' 9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9059 (eval $ac_try) 2>&5 9060 ac_status=$? 9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062 (exit $ac_status); }; }; then 9063 ac_cv_lib_svld_dlopen=yes 9064else 9065 echo "$as_me: failed program was:" >&5 9066sed 's/^/| /' conftest.$ac_ext >&5 9067 9068ac_cv_lib_svld_dlopen=no 9069fi 9070rm -f conftest.err conftest.$ac_objext \ 9071 conftest$ac_exeext conftest.$ac_ext 9072LIBS=$ac_check_lib_save_LIBS 9073fi 9074echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9075echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9076if test $ac_cv_lib_svld_dlopen = yes; then 9077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9078else 9079 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9080echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9081if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9082 echo $ECHO_N "(cached) $ECHO_C" >&6 9083else 9084 ac_check_lib_save_LIBS=$LIBS 9085LIBS="-ldld $LIBS" 9086cat >conftest.$ac_ext <<_ACEOF 9087/* confdefs.h. */ 9088_ACEOF 9089cat confdefs.h >>conftest.$ac_ext 9090cat >>conftest.$ac_ext <<_ACEOF 9091/* end confdefs.h. */ 9092 9093/* Override any gcc2 internal prototype to avoid an error. */ 9094#ifdef __cplusplus 9095extern "C" 9096#endif 9097/* We use char because int might match the return type of a gcc2 9098 builtin and then its argument prototype would still apply. */ 9099char dld_link (); 9100int 9101main () 9102{ 9103dld_link (); 9104 ; 9105 return 0; 9106} 9107_ACEOF 9108rm -f conftest.$ac_objext conftest$ac_exeext 9109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9110 (eval $ac_link) 2>conftest.er1 9111 ac_status=$? 9112 grep -v '^ *+' conftest.er1 >conftest.err 9113 rm -f conftest.er1 9114 cat conftest.err >&5 9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9116 (exit $ac_status); } && 9117 { ac_try='test -z "$ac_c_werror_flag" 9118 || test ! -s conftest.err' 9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9120 (eval $ac_try) 2>&5 9121 ac_status=$? 9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9123 (exit $ac_status); }; } && 9124 { ac_try='test -s conftest$ac_exeext' 9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9126 (eval $ac_try) 2>&5 9127 ac_status=$? 9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9129 (exit $ac_status); }; }; then 9130 ac_cv_lib_dld_dld_link=yes 9131else 9132 echo "$as_me: failed program was:" >&5 9133sed 's/^/| /' conftest.$ac_ext >&5 9134 9135ac_cv_lib_dld_dld_link=no 9136fi 9137rm -f conftest.err conftest.$ac_objext \ 9138 conftest$ac_exeext conftest.$ac_ext 9139LIBS=$ac_check_lib_save_LIBS 9140fi 9141echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9142echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9143if test $ac_cv_lib_dld_dld_link = yes; then 9144 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9145fi 9146 9147 9148fi 9149 9150 9151fi 9152 9153 9154fi 9155 9156 9157fi 9158 9159 9160fi 9161 9162 ;; 9163 esac 9164 9165 if test "x$lt_cv_dlopen" != xno; then 9166 enable_dlopen=yes 9167 else 9168 enable_dlopen=no 9169 fi 9170 9171 case $lt_cv_dlopen in 9172 dlopen) 9173 save_CPPFLAGS="$CPPFLAGS" 9174 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9175 9176 save_LDFLAGS="$LDFLAGS" 9177 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9178 9179 save_LIBS="$LIBS" 9180 LIBS="$lt_cv_dlopen_libs $LIBS" 9181 9182 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9183echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9184if test "${lt_cv_dlopen_self+set}" = set; then 9185 echo $ECHO_N "(cached) $ECHO_C" >&6 9186else 9187 if test "$cross_compiling" = yes; then : 9188 lt_cv_dlopen_self=cross 9189else 9190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9191 lt_status=$lt_dlunknown 9192 cat > conftest.$ac_ext <<EOF 9193#line 9193 "configure" 9194#include "confdefs.h" 9195 9196#if HAVE_DLFCN_H 9197#include <dlfcn.h> 9198#endif 9199 9200#include <stdio.h> 9201 9202#ifdef RTLD_GLOBAL 9203# define LT_DLGLOBAL RTLD_GLOBAL 9204#else 9205# ifdef DL_GLOBAL 9206# define LT_DLGLOBAL DL_GLOBAL 9207# else 9208# define LT_DLGLOBAL 0 9209# endif 9210#endif 9211 9212/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9213 find out it does not work in some platform. */ 9214#ifndef LT_DLLAZY_OR_NOW 9215# ifdef RTLD_LAZY 9216# define LT_DLLAZY_OR_NOW RTLD_LAZY 9217# else 9218# ifdef DL_LAZY 9219# define LT_DLLAZY_OR_NOW DL_LAZY 9220# else 9221# ifdef RTLD_NOW 9222# define LT_DLLAZY_OR_NOW RTLD_NOW 9223# else 9224# ifdef DL_NOW 9225# define LT_DLLAZY_OR_NOW DL_NOW 9226# else 9227# define LT_DLLAZY_OR_NOW 0 9228# endif 9229# endif 9230# endif 9231# endif 9232#endif 9233 9234#ifdef __cplusplus 9235extern "C" void exit (int); 9236#endif 9237 9238void fnord() { int i=42;} 9239int main () 9240{ 9241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9242 int status = $lt_dlunknown; 9243 9244 if (self) 9245 { 9246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9247 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9248 /* dlclose (self); */ 9249 } 9250 9251 exit (status); 9252} 9253EOF 9254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9255 (eval $ac_link) 2>&5 9256 ac_status=$? 9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9258 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9259 (./conftest; exit; ) >&5 2>/dev/null 9260 lt_status=$? 9261 case x$lt_status in 9262 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9263 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9264 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9265 esac 9266 else : 9267 # compilation failed 9268 lt_cv_dlopen_self=no 9269 fi 9270fi 9271rm -fr conftest* 9272 9273 9274fi 9275echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9276echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9277 9278 if test "x$lt_cv_dlopen_self" = xyes; then 9279 LDFLAGS="$LDFLAGS $link_static_flag" 9280 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9281echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9282if test "${lt_cv_dlopen_self_static+set}" = set; then 9283 echo $ECHO_N "(cached) $ECHO_C" >&6 9284else 9285 if test "$cross_compiling" = yes; then : 9286 lt_cv_dlopen_self_static=cross 9287else 9288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9289 lt_status=$lt_dlunknown 9290 cat > conftest.$ac_ext <<EOF 9291#line 9291 "configure" 9292#include "confdefs.h" 9293 9294#if HAVE_DLFCN_H 9295#include <dlfcn.h> 9296#endif 9297 9298#include <stdio.h> 9299 9300#ifdef RTLD_GLOBAL 9301# define LT_DLGLOBAL RTLD_GLOBAL 9302#else 9303# ifdef DL_GLOBAL 9304# define LT_DLGLOBAL DL_GLOBAL 9305# else 9306# define LT_DLGLOBAL 0 9307# endif 9308#endif 9309 9310/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9311 find out it does not work in some platform. */ 9312#ifndef LT_DLLAZY_OR_NOW 9313# ifdef RTLD_LAZY 9314# define LT_DLLAZY_OR_NOW RTLD_LAZY 9315# else 9316# ifdef DL_LAZY 9317# define LT_DLLAZY_OR_NOW DL_LAZY 9318# else 9319# ifdef RTLD_NOW 9320# define LT_DLLAZY_OR_NOW RTLD_NOW 9321# else 9322# ifdef DL_NOW 9323# define LT_DLLAZY_OR_NOW DL_NOW 9324# else 9325# define LT_DLLAZY_OR_NOW 0 9326# endif 9327# endif 9328# endif 9329# endif 9330#endif 9331 9332#ifdef __cplusplus 9333extern "C" void exit (int); 9334#endif 9335 9336void fnord() { int i=42;} 9337int main () 9338{ 9339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9340 int status = $lt_dlunknown; 9341 9342 if (self) 9343 { 9344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9345 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9346 /* dlclose (self); */ 9347 } 9348 9349 exit (status); 9350} 9351EOF 9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9353 (eval $ac_link) 2>&5 9354 ac_status=$? 9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9357 (./conftest; exit; ) >&5 2>/dev/null 9358 lt_status=$? 9359 case x$lt_status in 9360 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9361 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9362 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9363 esac 9364 else : 9365 # compilation failed 9366 lt_cv_dlopen_self_static=no 9367 fi 9368fi 9369rm -fr conftest* 9370 9371 9372fi 9373echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9374echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9375 fi 9376 9377 CPPFLAGS="$save_CPPFLAGS" 9378 LDFLAGS="$save_LDFLAGS" 9379 LIBS="$save_LIBS" 9380 ;; 9381 esac 9382 9383 case $lt_cv_dlopen_self in 9384 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9385 *) enable_dlopen_self=unknown ;; 9386 esac 9387 9388 case $lt_cv_dlopen_self_static in 9389 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9390 *) enable_dlopen_self_static=unknown ;; 9391 esac 9392fi 9393 9394 9395# Report which librarie types wil actually be built 9396echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9397echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9398echo "$as_me:$LINENO: result: $can_build_shared" >&5 9399echo "${ECHO_T}$can_build_shared" >&6 9400 9401echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9402echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9403test "$can_build_shared" = "no" && enable_shared=no 9404 9405# On AIX, shared libraries and static libraries use the same namespace, and 9406# are all built from PIC. 9407case $host_os in 9408aix3*) 9409 test "$enable_shared" = yes && enable_static=no 9410 if test -n "$RANLIB"; then 9411 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9412 postinstall_cmds='$RANLIB $lib' 9413 fi 9414 ;; 9415 9416aix4* | aix5*) 9417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9418 test "$enable_shared" = yes && enable_static=no 9419 fi 9420 ;; 9421esac 9422echo "$as_me:$LINENO: result: $enable_shared" >&5 9423echo "${ECHO_T}$enable_shared" >&6 9424 9425echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9426echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9427# Make sure either enable_shared or enable_static is yes. 9428test "$enable_shared" = yes || enable_static=yes 9429echo "$as_me:$LINENO: result: $enable_static" >&5 9430echo "${ECHO_T}$enable_static" >&6 9431 9432# The else clause should only fire when bootstrapping the 9433# libtool distribution, otherwise you forgot to ship ltmain.sh 9434# with your package, and you will get complaints that there are 9435# no rules to generate ltmain.sh. 9436if test -f "$ltmain"; then 9437 # See if we are running on zsh, and set the options which allow our commands through 9438 # without removal of \ escapes. 9439 if test -n "${ZSH_VERSION+set}" ; then 9440 setopt NO_GLOB_SUBST 9441 fi 9442 # Now quote all the things that may contain metacharacters while being 9443 # careful not to overquote the AC_SUBSTed values. We take copies of the 9444 # variables and quote the copies for generation of the libtool script. 9445 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9446 SED SHELL STRIP \ 9447 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9448 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9449 deplibs_check_method reload_flag reload_cmds need_locks \ 9450 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9451 lt_cv_sys_global_symbol_to_c_name_address \ 9452 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9453 old_postinstall_cmds old_postuninstall_cmds \ 9454 compiler \ 9455 CC \ 9456 LD \ 9457 lt_prog_compiler_wl \ 9458 lt_prog_compiler_pic \ 9459 lt_prog_compiler_static \ 9460 lt_prog_compiler_no_builtin_flag \ 9461 export_dynamic_flag_spec \ 9462 thread_safe_flag_spec \ 9463 whole_archive_flag_spec \ 9464 enable_shared_with_static_runtimes \ 9465 old_archive_cmds \ 9466 old_archive_from_new_cmds \ 9467 predep_objects \ 9468 postdep_objects \ 9469 predeps \ 9470 postdeps \ 9471 compiler_lib_search_path \ 9472 archive_cmds \ 9473 archive_expsym_cmds \ 9474 postinstall_cmds \ 9475 postuninstall_cmds \ 9476 old_archive_from_expsyms_cmds \ 9477 allow_undefined_flag \ 9478 no_undefined_flag \ 9479 export_symbols_cmds \ 9480 hardcode_libdir_flag_spec \ 9481 hardcode_libdir_flag_spec_ld \ 9482 hardcode_libdir_separator \ 9483 hardcode_automatic \ 9484 module_cmds \ 9485 module_expsym_cmds \ 9486 lt_cv_prog_compiler_c_o \ 9487 exclude_expsyms \ 9488 include_expsyms; do 9489 9490 case $var in 9491 old_archive_cmds | \ 9492 old_archive_from_new_cmds | \ 9493 archive_cmds | \ 9494 archive_expsym_cmds | \ 9495 module_cmds | \ 9496 module_expsym_cmds | \ 9497 old_archive_from_expsyms_cmds | \ 9498 export_symbols_cmds | \ 9499 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9500 postinstall_cmds | postuninstall_cmds | \ 9501 old_postinstall_cmds | old_postuninstall_cmds | \ 9502 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9503 # Double-quote double-evaled strings. 9504 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9505 ;; 9506 *) 9507 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9508 ;; 9509 esac 9510 done 9511 9512 case $lt_echo in 9513 *'\$0 --fallback-echo"') 9514 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9515 ;; 9516 esac 9517 9518cfgfile="${ofile}T" 9519 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9520 $rm -f "$cfgfile" 9521 { echo "$as_me:$LINENO: creating $ofile" >&5 9522echo "$as_me: creating $ofile" >&6;} 9523 9524 cat <<__EOF__ >> "$cfgfile" 9525#! $SHELL 9526 9527# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9528# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9529# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9530# 9531# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9532# Free Software Foundation, Inc. 9533# 9534# This file is part of GNU Libtool: 9535# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9536# 9537# This program is free software; you can redistribute it and/or modify 9538# it under the terms of the GNU General Public License as published by 9539# the Free Software Foundation; either version 2 of the License, or 9540# (at your option) any later version. 9541# 9542# This program is distributed in the hope that it will be useful, but 9543# WITHOUT ANY WARRANTY; without even the implied warranty of 9544# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9545# General Public License for more details. 9546# 9547# You should have received a copy of the GNU General Public License 9548# along with this program; if not, write to the Free Software 9549# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9550# 9551# As a special exception to the GNU General Public License, if you 9552# distribute this file as part of a program that contains a 9553# configuration script generated by Autoconf, you may include it under 9554# the same distribution terms that you use for the rest of that program. 9555 9556# A sed program that does not truncate output. 9557SED=$lt_SED 9558 9559# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9560Xsed="$SED -e 1s/^X//" 9561 9562# The HP-UX ksh and POSIX shell print the target directory to stdout 9563# if CDPATH is set. 9564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9565 9566# The names of the tagged configurations supported by this script. 9567available_tags= 9568 9569# ### BEGIN LIBTOOL CONFIG 9570 9571# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9572 9573# Shell to use when invoking shell scripts. 9574SHELL=$lt_SHELL 9575 9576# Whether or not to build shared libraries. 9577build_libtool_libs=$enable_shared 9578 9579# Whether or not to build static libraries. 9580build_old_libs=$enable_static 9581 9582# Whether or not to add -lc for building shared libraries. 9583build_libtool_need_lc=$archive_cmds_need_lc 9584 9585# Whether or not to disallow shared libs when runtime libs are static 9586allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9587 9588# Whether or not to optimize for fast installation. 9589fast_install=$enable_fast_install 9590 9591# The host system. 9592host_alias=$host_alias 9593host=$host 9594host_os=$host_os 9595 9596# The build system. 9597build_alias=$build_alias 9598build=$build 9599build_os=$build_os 9600 9601# An echo program that does not interpret backslashes. 9602echo=$lt_echo 9603 9604# The archiver. 9605AR=$lt_AR 9606AR_FLAGS=$lt_AR_FLAGS 9607 9608# A C compiler. 9609LTCC=$lt_LTCC 9610 9611# A language-specific compiler. 9612CC=$lt_compiler 9613 9614# Is the compiler the GNU C compiler? 9615with_gcc=$GCC 9616 9617# An ERE matcher. 9618EGREP=$lt_EGREP 9619 9620# The linker used to build libraries. 9621LD=$lt_LD 9622 9623# Whether we need hard or soft links. 9624LN_S=$lt_LN_S 9625 9626# A BSD-compatible nm program. 9627NM=$lt_NM 9628 9629# A symbol stripping program 9630STRIP=$lt_STRIP 9631 9632# Used to examine libraries when file_magic_cmd begins "file" 9633MAGIC_CMD=$MAGIC_CMD 9634 9635# Used on cygwin: DLL creation program. 9636DLLTOOL="$DLLTOOL" 9637 9638# Used on cygwin: object dumper. 9639OBJDUMP="$OBJDUMP" 9640 9641# Used on cygwin: assembler. 9642AS="$AS" 9643 9644# The name of the directory that contains temporary libtool files. 9645objdir=$objdir 9646 9647# How to create reloadable object files. 9648reload_flag=$lt_reload_flag 9649reload_cmds=$lt_reload_cmds 9650 9651# How to pass a linker flag through the compiler. 9652wl=$lt_lt_prog_compiler_wl 9653 9654# Object file suffix (normally "o"). 9655objext="$ac_objext" 9656 9657# Old archive suffix (normally "a"). 9658libext="$libext" 9659 9660# Shared library suffix (normally ".so"). 9661shrext_cmds='$shrext_cmds' 9662 9663# Executable file suffix (normally ""). 9664exeext="$exeext" 9665 9666# Additional compiler flags for building library objects. 9667pic_flag=$lt_lt_prog_compiler_pic 9668pic_mode=$pic_mode 9669 9670# What is the maximum length of a command? 9671max_cmd_len=$lt_cv_sys_max_cmd_len 9672 9673# Does compiler simultaneously support -c and -o options? 9674compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9675 9676# Must we lock files when doing compilation? 9677need_locks=$lt_need_locks 9678 9679# Do we need the lib prefix for modules? 9680need_lib_prefix=$need_lib_prefix 9681 9682# Do we need a version for libraries? 9683need_version=$need_version 9684 9685# Whether dlopen is supported. 9686dlopen_support=$enable_dlopen 9687 9688# Whether dlopen of programs is supported. 9689dlopen_self=$enable_dlopen_self 9690 9691# Whether dlopen of statically linked programs is supported. 9692dlopen_self_static=$enable_dlopen_self_static 9693 9694# Compiler flag to prevent dynamic linking. 9695link_static_flag=$lt_lt_prog_compiler_static 9696 9697# Compiler flag to turn off builtin functions. 9698no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9699 9700# Compiler flag to allow reflexive dlopens. 9701export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9702 9703# Compiler flag to generate shared objects directly from archives. 9704whole_archive_flag_spec=$lt_whole_archive_flag_spec 9705 9706# Compiler flag to generate thread-safe objects. 9707thread_safe_flag_spec=$lt_thread_safe_flag_spec 9708 9709# Library versioning type. 9710version_type=$version_type 9711 9712# Format of library name prefix. 9713libname_spec=$lt_libname_spec 9714 9715# List of archive names. First name is the real one, the rest are links. 9716# The last name is the one that the linker finds with -lNAME. 9717library_names_spec=$lt_library_names_spec 9718 9719# The coded name of the library, if different from the real name. 9720soname_spec=$lt_soname_spec 9721 9722# Commands used to build and install an old-style archive. 9723RANLIB=$lt_RANLIB 9724old_archive_cmds=$lt_old_archive_cmds 9725old_postinstall_cmds=$lt_old_postinstall_cmds 9726old_postuninstall_cmds=$lt_old_postuninstall_cmds 9727 9728# Create an old-style archive from a shared archive. 9729old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9730 9731# Create a temporary old-style archive to link instead of a shared archive. 9732old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9733 9734# Commands used to build and install a shared archive. 9735archive_cmds=$lt_archive_cmds 9736archive_expsym_cmds=$lt_archive_expsym_cmds 9737postinstall_cmds=$lt_postinstall_cmds 9738postuninstall_cmds=$lt_postuninstall_cmds 9739 9740# Commands used to build a loadable module (assumed same as above if empty) 9741module_cmds=$lt_module_cmds 9742module_expsym_cmds=$lt_module_expsym_cmds 9743 9744# Commands to strip libraries. 9745old_striplib=$lt_old_striplib 9746striplib=$lt_striplib 9747 9748# Dependencies to place before the objects being linked to create a 9749# shared library. 9750predep_objects=$lt_predep_objects 9751 9752# Dependencies to place after the objects being linked to create a 9753# shared library. 9754postdep_objects=$lt_postdep_objects 9755 9756# Dependencies to place before the objects being linked to create a 9757# shared library. 9758predeps=$lt_predeps 9759 9760# Dependencies to place after the objects being linked to create a 9761# shared library. 9762postdeps=$lt_postdeps 9763 9764# The library search path used internally by the compiler when linking 9765# a shared library. 9766compiler_lib_search_path=$lt_compiler_lib_search_path 9767 9768# Method to check whether dependent libraries are shared objects. 9769deplibs_check_method=$lt_deplibs_check_method 9770 9771# Command to use when deplibs_check_method == file_magic. 9772file_magic_cmd=$lt_file_magic_cmd 9773 9774# Flag that allows shared libraries with undefined symbols to be built. 9775allow_undefined_flag=$lt_allow_undefined_flag 9776 9777# Flag that forces no undefined symbols. 9778no_undefined_flag=$lt_no_undefined_flag 9779 9780# Commands used to finish a libtool library installation in a directory. 9781finish_cmds=$lt_finish_cmds 9782 9783# Same as above, but a single script fragment to be evaled but not shown. 9784finish_eval=$lt_finish_eval 9785 9786# Take the output of nm and produce a listing of raw symbols and C names. 9787global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9788 9789# Transform the output of nm in a proper C declaration 9790global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9791 9792# Transform the output of nm in a C name address pair 9793global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9794 9795# This is the shared library runtime path variable. 9796runpath_var=$runpath_var 9797 9798# This is the shared library path variable. 9799shlibpath_var=$shlibpath_var 9800 9801# Is shlibpath searched before the hard-coded library search path? 9802shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9803 9804# How to hardcode a shared library path into an executable. 9805hardcode_action=$hardcode_action 9806 9807# Whether we should hardcode library paths into libraries. 9808hardcode_into_libs=$hardcode_into_libs 9809 9810# Flag to hardcode \$libdir into a binary during linking. 9811# This must work even if \$libdir does not exist. 9812hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9813 9814# If ld is used when linking, flag to hardcode \$libdir into 9815# a binary during linking. This must work even if \$libdir does 9816# not exist. 9817hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9818 9819# Whether we need a single -rpath flag with a separated argument. 9820hardcode_libdir_separator=$lt_hardcode_libdir_separator 9821 9822# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9823# resulting binary. 9824hardcode_direct=$hardcode_direct 9825 9826# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9827# resulting binary. 9828hardcode_minus_L=$hardcode_minus_L 9829 9830# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9831# the resulting binary. 9832hardcode_shlibpath_var=$hardcode_shlibpath_var 9833 9834# Set to yes if building a shared library automatically hardcodes DIR into the library 9835# and all subsequent libraries and executables linked against it. 9836hardcode_automatic=$hardcode_automatic 9837 9838# Variables whose values should be saved in libtool wrapper scripts and 9839# restored at relink time. 9840variables_saved_for_relink="$variables_saved_for_relink" 9841 9842# Whether libtool must link a program against all its dependency libraries. 9843link_all_deplibs=$link_all_deplibs 9844 9845# Compile-time system search path for libraries 9846sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9847 9848# Run-time system search path for libraries 9849sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9850 9851# Fix the shell variable \$srcfile for the compiler. 9852fix_srcfile_path="$fix_srcfile_path" 9853 9854# Set to yes if exported symbols are required. 9855always_export_symbols=$always_export_symbols 9856 9857# The commands to list exported symbols. 9858export_symbols_cmds=$lt_export_symbols_cmds 9859 9860# The commands to extract the exported symbol list from a shared archive. 9861extract_expsyms_cmds=$lt_extract_expsyms_cmds 9862 9863# Symbols that should not be listed in the preloaded symbols. 9864exclude_expsyms=$lt_exclude_expsyms 9865 9866# Symbols that must always be exported. 9867include_expsyms=$lt_include_expsyms 9868 9869# ### END LIBTOOL CONFIG 9870 9871__EOF__ 9872 9873 9874 case $host_os in 9875 aix3*) 9876 cat <<\EOF >> "$cfgfile" 9877 9878# AIX sometimes has problems with the GCC collect2 program. For some 9879# reason, if we set the COLLECT_NAMES environment variable, the problems 9880# vanish in a puff of smoke. 9881if test "X${COLLECT_NAMES+set}" != Xset; then 9882 COLLECT_NAMES= 9883 export COLLECT_NAMES 9884fi 9885EOF 9886 ;; 9887 esac 9888 9889 # We use sed instead of cat because bash on DJGPP gets confused if 9890 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9891 # text mode, it properly converts lines to CR/LF. This bash problem 9892 # is reportedly fixed, but why not run on old versions too? 9893 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9894 9895 mv -f "$cfgfile" "$ofile" || \ 9896 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9897 chmod +x "$ofile" 9898 9899else 9900 # If there is no Makefile yet, we rely on a make rule to execute 9901 # `config.status --recheck' to rerun these tests and create the 9902 # libtool script then. 9903 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9904 if test -f "$ltmain_in"; then 9905 test -f Makefile && make "$ltmain" 9906 fi 9907fi 9908 9909 9910ac_ext=c 9911ac_cpp='$CPP $CPPFLAGS' 9912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9914ac_compiler_gnu=$ac_cv_c_compiler_gnu 9915 9916CC="$lt_save_CC" 9917 9918 9919# Check whether --with-tags or --without-tags was given. 9920if test "${with_tags+set}" = set; then 9921 withval="$with_tags" 9922 tagnames="$withval" 9923fi; 9924 9925if test -f "$ltmain" && test -n "$tagnames"; then 9926 if test ! -f "${ofile}"; then 9927 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9928echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9929 fi 9930 9931 if test -z "$LTCC"; then 9932 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9933 if test -z "$LTCC"; then 9934 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9935echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9936 else 9937 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9938echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9939 fi 9940 fi 9941 9942 # Extract list of available tagged configurations in $ofile. 9943 # Note that this assumes the entire list is on one line. 9944 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9945 9946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9947 for tagname in $tagnames; do 9948 IFS="$lt_save_ifs" 9949 # Check whether tagname contains only valid characters 9950 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9951 "") ;; 9952 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9953echo "$as_me: error: invalid tag name: $tagname" >&2;} 9954 { (exit 1); exit 1; }; } 9955 ;; 9956 esac 9957 9958 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9959 then 9960 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9961echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9962 { (exit 1); exit 1; }; } 9963 fi 9964 9965 # Update the list of available tags. 9966 if test -n "$tagname"; then 9967 echo appending configuration tag \"$tagname\" to $ofile 9968 9969 case $tagname in 9970 CXX) 9971 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9972 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9973 (test "X$CXX" != "Xg++"))) ; then 9974 ac_ext=cc 9975ac_cpp='$CXXCPP $CPPFLAGS' 9976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9979 9980 9981 9982 9983archive_cmds_need_lc_CXX=no 9984allow_undefined_flag_CXX= 9985always_export_symbols_CXX=no 9986archive_expsym_cmds_CXX= 9987export_dynamic_flag_spec_CXX= 9988hardcode_direct_CXX=no 9989hardcode_libdir_flag_spec_CXX= 9990hardcode_libdir_flag_spec_ld_CXX= 9991hardcode_libdir_separator_CXX= 9992hardcode_minus_L_CXX=no 9993hardcode_automatic_CXX=no 9994module_cmds_CXX= 9995module_expsym_cmds_CXX= 9996link_all_deplibs_CXX=unknown 9997old_archive_cmds_CXX=$old_archive_cmds 9998no_undefined_flag_CXX= 9999whole_archive_flag_spec_CXX= 10000enable_shared_with_static_runtimes_CXX=no 10001 10002# Dependencies to place before and after the object being linked: 10003predep_objects_CXX= 10004postdep_objects_CXX= 10005predeps_CXX= 10006postdeps_CXX= 10007compiler_lib_search_path_CXX= 10008 10009# Source file extension for C++ test sources. 10010ac_ext=cpp 10011 10012# Object file extension for compiled C++ test sources. 10013objext=o 10014objext_CXX=$objext 10015 10016# Code to be used in simple compile tests 10017lt_simple_compile_test_code="int some_variable = 0;\n" 10018 10019# Code to be used in simple link tests 10020lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 10021 10022# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10023 10024# If no C compiler was specified, use CC. 10025LTCC=${LTCC-"$CC"} 10026 10027# Allow CC to be a program name with arguments. 10028compiler=$CC 10029 10030 10031# save warnings/boilerplate of simple test code 10032ac_outfile=conftest.$ac_objext 10033printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10035_lt_compiler_boilerplate=`cat conftest.err` 10036$rm conftest* 10037 10038ac_outfile=conftest.$ac_objext 10039printf "$lt_simple_link_test_code" >conftest.$ac_ext 10040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10041_lt_linker_boilerplate=`cat conftest.err` 10042$rm conftest* 10043 10044 10045# Allow CC to be a program name with arguments. 10046lt_save_CC=$CC 10047lt_save_LD=$LD 10048lt_save_GCC=$GCC 10049GCC=$GXX 10050lt_save_with_gnu_ld=$with_gnu_ld 10051lt_save_path_LD=$lt_cv_path_LD 10052if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10053 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10054else 10055 unset lt_cv_prog_gnu_ld 10056fi 10057if test -n "${lt_cv_path_LDCXX+set}"; then 10058 lt_cv_path_LD=$lt_cv_path_LDCXX 10059else 10060 unset lt_cv_path_LD 10061fi 10062test -z "${LDCXX+set}" || LD=$LDCXX 10063CC=${CXX-"c++"} 10064compiler=$CC 10065compiler_CXX=$CC 10066for cc_temp in $compiler""; do 10067 case $cc_temp in 10068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10070 \-*) ;; 10071 *) break;; 10072 esac 10073done 10074cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10075 10076 10077# We don't want -fno-exception wen compiling C++ code, so set the 10078# no_builtin_flag separately 10079if test "$GXX" = yes; then 10080 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10081else 10082 lt_prog_compiler_no_builtin_flag_CXX= 10083fi 10084 10085if test "$GXX" = yes; then 10086 # Set up default GNU C++ configuration 10087 10088 10089# Check whether --with-gnu-ld or --without-gnu-ld was given. 10090if test "${with_gnu_ld+set}" = set; then 10091 withval="$with_gnu_ld" 10092 test "$withval" = no || with_gnu_ld=yes 10093else 10094 with_gnu_ld=no 10095fi; 10096ac_prog=ld 10097if test "$GCC" = yes; then 10098 # Check if gcc -print-prog-name=ld gives a path. 10099 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10100echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10101 case $host in 10102 *-*-mingw*) 10103 # gcc leaves a trailing carriage return which upsets mingw 10104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10105 *) 10106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10107 esac 10108 case $ac_prog in 10109 # Accept absolute paths. 10110 [\\/]* | ?:[\\/]*) 10111 re_direlt='/[^/][^/]*/\.\./' 10112 # Canonicalize the pathname of ld 10113 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10114 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10115 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10116 done 10117 test -z "$LD" && LD="$ac_prog" 10118 ;; 10119 "") 10120 # If it fails, then pretend we aren't using GCC. 10121 ac_prog=ld 10122 ;; 10123 *) 10124 # If it is relative, then search for the first ld in PATH. 10125 with_gnu_ld=unknown 10126 ;; 10127 esac 10128elif test "$with_gnu_ld" = yes; then 10129 echo "$as_me:$LINENO: checking for GNU ld" >&5 10130echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10131else 10132 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10133echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10134fi 10135if test "${lt_cv_path_LD+set}" = set; then 10136 echo $ECHO_N "(cached) $ECHO_C" >&6 10137else 10138 if test -z "$LD"; then 10139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10140 for ac_dir in $PATH; do 10141 IFS="$lt_save_ifs" 10142 test -z "$ac_dir" && ac_dir=. 10143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10144 lt_cv_path_LD="$ac_dir/$ac_prog" 10145 # Check to see if the program is GNU ld. I'd rather use --version, 10146 # but apparently some variants of GNU ld only accept -v. 10147 # Break only if it was the GNU/non-GNU ld that we prefer. 10148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10149 *GNU* | *'with BFD'*) 10150 test "$with_gnu_ld" != no && break 10151 ;; 10152 *) 10153 test "$with_gnu_ld" != yes && break 10154 ;; 10155 esac 10156 fi 10157 done 10158 IFS="$lt_save_ifs" 10159else 10160 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10161fi 10162fi 10163 10164LD="$lt_cv_path_LD" 10165if test -n "$LD"; then 10166 echo "$as_me:$LINENO: result: $LD" >&5 10167echo "${ECHO_T}$LD" >&6 10168else 10169 echo "$as_me:$LINENO: result: no" >&5 10170echo "${ECHO_T}no" >&6 10171fi 10172test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10173echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10174 { (exit 1); exit 1; }; } 10175echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10176echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10177if test "${lt_cv_prog_gnu_ld+set}" = set; then 10178 echo $ECHO_N "(cached) $ECHO_C" >&6 10179else 10180 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10181case `$LD -v 2>&1 </dev/null` in 10182*GNU* | *'with BFD'*) 10183 lt_cv_prog_gnu_ld=yes 10184 ;; 10185*) 10186 lt_cv_prog_gnu_ld=no 10187 ;; 10188esac 10189fi 10190echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10191echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10192with_gnu_ld=$lt_cv_prog_gnu_ld 10193 10194 10195 10196 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10197 # archiving commands below assume that GNU ld is being used. 10198 if test "$with_gnu_ld" = yes; then 10199 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10200 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' 10201 10202 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10204 10205 # If archive_cmds runs LD, not CC, wlarc should be empty 10206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10207 # investigate it a little bit more. (MM) 10208 wlarc='${wl}' 10209 10210 # ancient GNU ld didn't support --whole-archive et. al. 10211 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10212 grep 'no-whole-archive' > /dev/null; then 10213 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10214 else 10215 whole_archive_flag_spec_CXX= 10216 fi 10217 else 10218 with_gnu_ld=no 10219 wlarc= 10220 10221 # A generic and very simple default shared library creation 10222 # command for GNU C++ for the case where it uses the native 10223 # linker, instead of GNU ld. If possible, this setting should 10224 # overridden to take advantage of the native linker features on 10225 # the platform it is being used on. 10226 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10227 fi 10228 10229 # Commands to make compiler produce verbose output that lists 10230 # what "hidden" libraries, object files and flags are used when 10231 # linking a shared library. 10232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10233 10234else 10235 GXX=no 10236 with_gnu_ld=no 10237 wlarc= 10238fi 10239 10240# PORTME: fill in a description of your system's C++ link characteristics 10241echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10242echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10243ld_shlibs_CXX=yes 10244case $host_os in 10245 aix3*) 10246 # FIXME: insert proper C++ library support 10247 ld_shlibs_CXX=no 10248 ;; 10249 aix4* | aix5*) 10250 if test "$host_cpu" = ia64; then 10251 # On IA64, the linker does run time linking by default, so we don't 10252 # have to do anything special. 10253 aix_use_runtimelinking=no 10254 exp_sym_flag='-Bexport' 10255 no_entry_flag="" 10256 else 10257 aix_use_runtimelinking=no 10258 10259 # Test if we are trying to use run time linking or normal 10260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10261 # need to do runtime linking. 10262 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10263 for ld_flag in $LDFLAGS; do 10264 case $ld_flag in 10265 *-brtl*) 10266 aix_use_runtimelinking=yes 10267 break 10268 ;; 10269 esac 10270 done 10271 esac 10272 10273 exp_sym_flag='-bexport' 10274 no_entry_flag='-bnoentry' 10275 fi 10276 10277 # When large executables or shared objects are built, AIX ld can 10278 # have problems creating the table of contents. If linking a library 10279 # or program results in "error TOC overflow" add -mminimal-toc to 10280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10282 10283 archive_cmds_CXX='' 10284 hardcode_direct_CXX=yes 10285 hardcode_libdir_separator_CXX=':' 10286 link_all_deplibs_CXX=yes 10287 10288 if test "$GXX" = yes; then 10289 case $host_os in aix4.[012]|aix4.[012].*) 10290 # We only want to do this on AIX 4.2 and lower, the check 10291 # below for broken collect2 doesn't work under 4.3+ 10292 collect2name=`${CC} -print-prog-name=collect2` 10293 if test -f "$collect2name" && \ 10294 strings "$collect2name" | grep resolve_lib_name >/dev/null 10295 then 10296 # We have reworked collect2 10297 hardcode_direct_CXX=yes 10298 else 10299 # We have old collect2 10300 hardcode_direct_CXX=unsupported 10301 # It fails to find uninstalled libraries when the uninstalled 10302 # path is not listed in the libpath. Setting hardcode_minus_L 10303 # to unsupported forces relinking 10304 hardcode_minus_L_CXX=yes 10305 hardcode_libdir_flag_spec_CXX='-L$libdir' 10306 hardcode_libdir_separator_CXX= 10307 fi 10308 esac 10309 shared_flag='-shared' 10310 if test "$aix_use_runtimelinking" = yes; then 10311 shared_flag="$shared_flag "'${wl}-G' 10312 fi 10313 else 10314 # not using gcc 10315 if test "$host_cpu" = ia64; then 10316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10317 # chokes on -Wl,-G. The following line is correct: 10318 shared_flag='-G' 10319 else 10320 if test "$aix_use_runtimelinking" = yes; then 10321 shared_flag='${wl}-G' 10322 else 10323 shared_flag='${wl}-bM:SRE' 10324 fi 10325 fi 10326 fi 10327 10328 # It seems that -bexpall does not export symbols beginning with 10329 # underscore (_), so it is better to generate a list of symbols to export. 10330 always_export_symbols_CXX=yes 10331 if test "$aix_use_runtimelinking" = yes; then 10332 # Warning - without using the other runtime loading flags (-brtl), 10333 # -berok will link without error, but may produce a broken library. 10334 allow_undefined_flag_CXX='-berok' 10335 # Determine the default libpath from the value encoded in an empty executable. 10336 cat >conftest.$ac_ext <<_ACEOF 10337/* confdefs.h. */ 10338_ACEOF 10339cat confdefs.h >>conftest.$ac_ext 10340cat >>conftest.$ac_ext <<_ACEOF 10341/* end confdefs.h. */ 10342 10343int 10344main () 10345{ 10346 10347 ; 10348 return 0; 10349} 10350_ACEOF 10351rm -f conftest.$ac_objext conftest$ac_exeext 10352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10353 (eval $ac_link) 2>conftest.er1 10354 ac_status=$? 10355 grep -v '^ *+' conftest.er1 >conftest.err 10356 rm -f conftest.er1 10357 cat conftest.err >&5 10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10359 (exit $ac_status); } && 10360 { ac_try='test -z "$ac_cxx_werror_flag" 10361 || test ! -s conftest.err' 10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10363 (eval $ac_try) 2>&5 10364 ac_status=$? 10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10366 (exit $ac_status); }; } && 10367 { ac_try='test -s conftest$ac_exeext' 10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10369 (eval $ac_try) 2>&5 10370 ac_status=$? 10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10372 (exit $ac_status); }; }; then 10373 10374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10375}'` 10376# Check for a 64-bit object if we didn't find anything. 10377if 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; } 10378}'`; fi 10379else 10380 echo "$as_me: failed program was:" >&5 10381sed 's/^/| /' conftest.$ac_ext >&5 10382 10383fi 10384rm -f conftest.err conftest.$ac_objext \ 10385 conftest$ac_exeext conftest.$ac_ext 10386if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10387 10388 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10389 10390 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" 10391 else 10392 if test "$host_cpu" = ia64; then 10393 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10394 allow_undefined_flag_CXX="-z nodefs" 10395 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" 10396 else 10397 # Determine the default libpath from the value encoded in an empty executable. 10398 cat >conftest.$ac_ext <<_ACEOF 10399/* confdefs.h. */ 10400_ACEOF 10401cat confdefs.h >>conftest.$ac_ext 10402cat >>conftest.$ac_ext <<_ACEOF 10403/* end confdefs.h. */ 10404 10405int 10406main () 10407{ 10408 10409 ; 10410 return 0; 10411} 10412_ACEOF 10413rm -f conftest.$ac_objext conftest$ac_exeext 10414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10415 (eval $ac_link) 2>conftest.er1 10416 ac_status=$? 10417 grep -v '^ *+' conftest.er1 >conftest.err 10418 rm -f conftest.er1 10419 cat conftest.err >&5 10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10421 (exit $ac_status); } && 10422 { ac_try='test -z "$ac_cxx_werror_flag" 10423 || test ! -s conftest.err' 10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10425 (eval $ac_try) 2>&5 10426 ac_status=$? 10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10428 (exit $ac_status); }; } && 10429 { ac_try='test -s conftest$ac_exeext' 10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10431 (eval $ac_try) 2>&5 10432 ac_status=$? 10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10434 (exit $ac_status); }; }; then 10435 10436aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10437}'` 10438# Check for a 64-bit object if we didn't find anything. 10439if 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; } 10440}'`; fi 10441else 10442 echo "$as_me: failed program was:" >&5 10443sed 's/^/| /' conftest.$ac_ext >&5 10444 10445fi 10446rm -f conftest.err conftest.$ac_objext \ 10447 conftest$ac_exeext conftest.$ac_ext 10448if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10449 10450 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10451 # Warning - without using the other run time loading flags, 10452 # -berok will link without error, but may produce a broken library. 10453 no_undefined_flag_CXX=' ${wl}-bernotok' 10454 allow_undefined_flag_CXX=' ${wl}-berok' 10455 # -bexpall does not export symbols beginning with underscore (_) 10456 always_export_symbols_CXX=yes 10457 # Exported symbols can be pulled into shared objects from archives 10458 whole_archive_flag_spec_CXX=' ' 10459 archive_cmds_need_lc_CXX=yes 10460 # This is similar to how AIX traditionally builds its shared libraries. 10461 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' 10462 fi 10463 fi 10464 ;; 10465 chorus*) 10466 case $cc_basename in 10467 *) 10468 # FIXME: insert proper C++ library support 10469 ld_shlibs_CXX=no 10470 ;; 10471 esac 10472 ;; 10473 10474 10475 cygwin* | mingw* | pw32*) 10476 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10477 # as there is no search path for DLLs. 10478 hardcode_libdir_flag_spec_CXX='-L$libdir' 10479 allow_undefined_flag_CXX=unsupported 10480 always_export_symbols_CXX=no 10481 enable_shared_with_static_runtimes_CXX=yes 10482 10483 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10484 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' 10485 # If the export-symbols file already is a .def file (1st line 10486 # is EXPORTS), use it as is; otherwise, prepend... 10487 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10488 cp $export_symbols $output_objdir/$soname.def; 10489 else 10490 echo EXPORTS > $output_objdir/$soname.def; 10491 cat $export_symbols >> $output_objdir/$soname.def; 10492 fi~ 10493 $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' 10494 else 10495 ld_shlibs_CXX=no 10496 fi 10497 ;; 10498 darwin* | rhapsody*) 10499 case $host_os in 10500 rhapsody* | darwin1.[012]) 10501 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10502 ;; 10503 *) # Darwin 1.3 on 10504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10505 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10506 else 10507 case ${MACOSX_DEPLOYMENT_TARGET} in 10508 10.[012]) 10509 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10510 ;; 10511 10.*) 10512 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10513 ;; 10514 esac 10515 fi 10516 ;; 10517 esac 10518 archive_cmds_need_lc_CXX=no 10519 hardcode_direct_CXX=no 10520 hardcode_automatic_CXX=yes 10521 hardcode_shlibpath_var_CXX=unsupported 10522 whole_archive_flag_spec_CXX='' 10523 link_all_deplibs_CXX=yes 10524 10525 if test "$GXX" = yes ; then 10526 lt_int_apple_cc_single_mod=no 10527 output_verbose_link_cmd='echo' 10528 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10529 lt_int_apple_cc_single_mod=yes 10530 fi 10531 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10532 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10533 else 10534 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10535 fi 10536 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10538 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10539 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}' 10540 else 10541 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10542 fi 10543 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10544 else 10545 case $cc_basename in 10546 xlc*) 10547 output_verbose_link_cmd='echo' 10548 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10549 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10550 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10551 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10552 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10553 ;; 10554 *) 10555 ld_shlibs_CXX=no 10556 ;; 10557 esac 10558 fi 10559 ;; 10560 10561 dgux*) 10562 case $cc_basename in 10563 ec++*) 10564 # FIXME: insert proper C++ library support 10565 ld_shlibs_CXX=no 10566 ;; 10567 ghcx*) 10568 # Green Hills C++ Compiler 10569 # FIXME: insert proper C++ library support 10570 ld_shlibs_CXX=no 10571 ;; 10572 *) 10573 # FIXME: insert proper C++ library support 10574 ld_shlibs_CXX=no 10575 ;; 10576 esac 10577 ;; 10578 freebsd[12]*) 10579 # C++ shared libraries reported to be fairly broken before switch to ELF 10580 ld_shlibs_CXX=no 10581 ;; 10582 freebsd-elf*) 10583 archive_cmds_need_lc_CXX=no 10584 ;; 10585 freebsd* | kfreebsd*-gnu | dragonfly*) 10586 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10587 # conventions 10588 ld_shlibs_CXX=yes 10589 ;; 10590 gnu*) 10591 ;; 10592 hpux9*) 10593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10594 hardcode_libdir_separator_CXX=: 10595 export_dynamic_flag_spec_CXX='${wl}-E' 10596 hardcode_direct_CXX=yes 10597 hardcode_minus_L_CXX=yes # Not in the search PATH, 10598 # but as the default 10599 # location of the library. 10600 10601 case $cc_basename in 10602 CC*) 10603 # FIXME: insert proper C++ library support 10604 ld_shlibs_CXX=no 10605 ;; 10606 aCC*) 10607 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' 10608 # Commands to make compiler produce verbose output that lists 10609 # what "hidden" libraries, object files and flags are used when 10610 # linking a shared library. 10611 # 10612 # There doesn't appear to be a way to prevent this compiler from 10613 # explicitly linking system object files so we need to strip them 10614 # from the output so that they don't get included in the library 10615 # dependencies. 10616 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' 10617 ;; 10618 *) 10619 if test "$GXX" = yes; then 10620 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' 10621 else 10622 # FIXME: insert proper C++ library support 10623 ld_shlibs_CXX=no 10624 fi 10625 ;; 10626 esac 10627 ;; 10628 hpux10*|hpux11*) 10629 if test $with_gnu_ld = no; then 10630 case $host_cpu in 10631 hppa*64*) 10632 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10633 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10634 hardcode_libdir_separator_CXX=: 10635 ;; 10636 ia64*) 10637 hardcode_libdir_flag_spec_CXX='-L$libdir' 10638 ;; 10639 *) 10640 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10641 hardcode_libdir_separator_CXX=: 10642 export_dynamic_flag_spec_CXX='${wl}-E' 10643 ;; 10644 esac 10645 fi 10646 case $host_cpu in 10647 hppa*64*) 10648 hardcode_direct_CXX=no 10649 hardcode_shlibpath_var_CXX=no 10650 ;; 10651 ia64*) 10652 hardcode_direct_CXX=no 10653 hardcode_shlibpath_var_CXX=no 10654 hardcode_minus_L_CXX=yes # Not in the search PATH, 10655 # but as the default 10656 # location of the library. 10657 ;; 10658 *) 10659 hardcode_direct_CXX=yes 10660 hardcode_minus_L_CXX=yes # Not in the search PATH, 10661 # but as the default 10662 # location of the library. 10663 ;; 10664 esac 10665 10666 case $cc_basename in 10667 CC*) 10668 # FIXME: insert proper C++ library support 10669 ld_shlibs_CXX=no 10670 ;; 10671 aCC*) 10672 case $host_cpu in 10673 hppa*64*|ia64*) 10674 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10675 ;; 10676 *) 10677 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10678 ;; 10679 esac 10680 # Commands to make compiler produce verbose output that lists 10681 # what "hidden" libraries, object files and flags are used when 10682 # linking a shared library. 10683 # 10684 # There doesn't appear to be a way to prevent this compiler from 10685 # explicitly linking system object files so we need to strip them 10686 # from the output so that they don't get included in the library 10687 # dependencies. 10688 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' 10689 ;; 10690 *) 10691 if test "$GXX" = yes; then 10692 if test $with_gnu_ld = no; then 10693 case $host_cpu in 10694 ia64*|hppa*64*) 10695 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10696 ;; 10697 *) 10698 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' 10699 ;; 10700 esac 10701 fi 10702 else 10703 # FIXME: insert proper C++ library support 10704 ld_shlibs_CXX=no 10705 fi 10706 ;; 10707 esac 10708 ;; 10709 irix5* | irix6*) 10710 case $cc_basename in 10711 CC*) 10712 # SGI C++ 10713 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10714 10715 # Archives containing C++ object files must be created using 10716 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10717 # necessary to make sure instantiated templates are included 10718 # in the archive. 10719 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10720 ;; 10721 *) 10722 if test "$GXX" = yes; then 10723 if test "$with_gnu_ld" = no; then 10724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10725 else 10726 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' 10727 fi 10728 fi 10729 link_all_deplibs_CXX=yes 10730 ;; 10731 esac 10732 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10733 hardcode_libdir_separator_CXX=: 10734 ;; 10735 linux*) 10736 case $cc_basename in 10737 KCC*) 10738 # Kuck and Associates, Inc. (KAI) C++ Compiler 10739 10740 # KCC will only create a shared library if the output file 10741 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10742 # to its proper name (with version) after linking. 10743 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' 10744 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' 10745 # Commands to make compiler produce verbose output that lists 10746 # what "hidden" libraries, object files and flags are used when 10747 # linking a shared library. 10748 # 10749 # There doesn't appear to be a way to prevent this compiler from 10750 # explicitly linking system object files so we need to strip them 10751 # from the output so that they don't get included in the library 10752 # dependencies. 10753 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' 10754 10755 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10757 10758 # Archives containing C++ object files must be created using 10759 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10760 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10761 ;; 10762 icpc*) 10763 # Intel C++ 10764 with_gnu_ld=yes 10765 # version 8.0 and above of icpc choke on multiply defined symbols 10766 # if we add $predep_objects and $postdep_objects, however 7.1 and 10767 # earlier do not add the objects themselves. 10768 case `$CC -V 2>&1` in 10769 *"Version 7."*) 10770 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10771 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' 10772 ;; 10773 *) # Version 8.0 or newer 10774 tmp_idyn= 10775 case $host_cpu in 10776 ia64*) tmp_idyn=' -i_dynamic';; 10777 esac 10778 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10779 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10780 ;; 10781 esac 10782 archive_cmds_need_lc_CXX=no 10783 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10785 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10786 ;; 10787 pgCC*) 10788 # Portland Group C++ compiler 10789 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10790 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 10791 10792 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10794 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10795 ;; 10796 cxx*) 10797 # Compaq C++ 10798 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10799 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' 10800 10801 runpath_var=LD_RUN_PATH 10802 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10803 hardcode_libdir_separator_CXX=: 10804 10805 # Commands to make compiler produce verbose output that lists 10806 # what "hidden" libraries, object files and flags are used when 10807 # linking a shared library. 10808 # 10809 # There doesn't appear to be a way to prevent this compiler from 10810 # explicitly linking system object files so we need to strip them 10811 # from the output so that they don't get included in the library 10812 # dependencies. 10813 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' 10814 ;; 10815 esac 10816 ;; 10817 lynxos*) 10818 # FIXME: insert proper C++ library support 10819 ld_shlibs_CXX=no 10820 ;; 10821 m88k*) 10822 # FIXME: insert proper C++ library support 10823 ld_shlibs_CXX=no 10824 ;; 10825 mvs*) 10826 case $cc_basename in 10827 cxx*) 10828 # FIXME: insert proper C++ library support 10829 ld_shlibs_CXX=no 10830 ;; 10831 *) 10832 # FIXME: insert proper C++ library support 10833 ld_shlibs_CXX=no 10834 ;; 10835 esac 10836 ;; 10837 netbsd*) 10838 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10839 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10840 wlarc= 10841 hardcode_libdir_flag_spec_CXX='-R$libdir' 10842 hardcode_direct_CXX=yes 10843 hardcode_shlibpath_var_CXX=no 10844 fi 10845 # Workaround some broken pre-1.5 toolchains 10846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10847 ;; 10848 openbsd2*) 10849 # C++ shared libraries are fairly broken 10850 ld_shlibs_CXX=no 10851 ;; 10852 openbsd*) 10853 hardcode_direct_CXX=yes 10854 hardcode_shlibpath_var_CXX=no 10855 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10856 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10858 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10859 export_dynamic_flag_spec_CXX='${wl}-E' 10860 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10861 fi 10862 output_verbose_link_cmd='echo' 10863 ;; 10864 osf3*) 10865 case $cc_basename in 10866 KCC*) 10867 # Kuck and Associates, Inc. (KAI) C++ Compiler 10868 10869 # KCC will only create a shared library if the output file 10870 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10871 # to its proper name (with version) after linking. 10872 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' 10873 10874 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10875 hardcode_libdir_separator_CXX=: 10876 10877 # Archives containing C++ object files must be created using 10878 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10879 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10880 10881 ;; 10882 RCC*) 10883 # Rational C++ 2.4.1 10884 # FIXME: insert proper C++ library support 10885 ld_shlibs_CXX=no 10886 ;; 10887 cxx*) 10888 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10889 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10890 10891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10892 hardcode_libdir_separator_CXX=: 10893 10894 # Commands to make compiler produce verbose output that lists 10895 # what "hidden" libraries, object files and flags are used when 10896 # linking a shared library. 10897 # 10898 # There doesn't appear to be a way to prevent this compiler from 10899 # explicitly linking system object files so we need to strip them 10900 # from the output so that they don't get included in the library 10901 # dependencies. 10902 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' 10903 ;; 10904 *) 10905 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10907 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10908 10909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10910 hardcode_libdir_separator_CXX=: 10911 10912 # Commands to make compiler produce verbose output that lists 10913 # what "hidden" libraries, object files and flags are used when 10914 # linking a shared library. 10915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10916 10917 else 10918 # FIXME: insert proper C++ library support 10919 ld_shlibs_CXX=no 10920 fi 10921 ;; 10922 esac 10923 ;; 10924 osf4* | osf5*) 10925 case $cc_basename in 10926 KCC*) 10927 # Kuck and Associates, Inc. (KAI) C++ Compiler 10928 10929 # KCC will only create a shared library if the output file 10930 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10931 # to its proper name (with version) after linking. 10932 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' 10933 10934 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10935 hardcode_libdir_separator_CXX=: 10936 10937 # Archives containing C++ object files must be created using 10938 # the KAI C++ compiler. 10939 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10940 ;; 10941 RCC*) 10942 # Rational C++ 2.4.1 10943 # FIXME: insert proper C++ library support 10944 ld_shlibs_CXX=no 10945 ;; 10946 cxx*) 10947 allow_undefined_flag_CXX=' -expect_unresolved \*' 10948 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10949 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10950 echo "-hidden">> $lib.exp~ 10951 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 10952 $rm $lib.exp' 10953 10954 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10955 hardcode_libdir_separator_CXX=: 10956 10957 # Commands to make compiler produce verbose output that lists 10958 # what "hidden" libraries, object files and flags are used when 10959 # linking a shared library. 10960 # 10961 # There doesn't appear to be a way to prevent this compiler from 10962 # explicitly linking system object files so we need to strip them 10963 # from the output so that they don't get included in the library 10964 # dependencies. 10965 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' 10966 ;; 10967 *) 10968 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10969 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10970 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10971 10972 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10973 hardcode_libdir_separator_CXX=: 10974 10975 # Commands to make compiler produce verbose output that lists 10976 # what "hidden" libraries, object files and flags are used when 10977 # linking a shared library. 10978 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10979 10980 else 10981 # FIXME: insert proper C++ library support 10982 ld_shlibs_CXX=no 10983 fi 10984 ;; 10985 esac 10986 ;; 10987 psos*) 10988 # FIXME: insert proper C++ library support 10989 ld_shlibs_CXX=no 10990 ;; 10991 sco*) 10992 archive_cmds_need_lc_CXX=no 10993 case $cc_basename in 10994 CC*) 10995 # FIXME: insert proper C++ library support 10996 ld_shlibs_CXX=no 10997 ;; 10998 *) 10999 # FIXME: insert proper C++ library support 11000 ld_shlibs_CXX=no 11001 ;; 11002 esac 11003 ;; 11004 sunos4*) 11005 case $cc_basename in 11006 CC*) 11007 # Sun C++ 4.x 11008 # FIXME: insert proper C++ library support 11009 ld_shlibs_CXX=no 11010 ;; 11011 lcc*) 11012 # Lucid 11013 # FIXME: insert proper C++ library support 11014 ld_shlibs_CXX=no 11015 ;; 11016 *) 11017 # FIXME: insert proper C++ library support 11018 ld_shlibs_CXX=no 11019 ;; 11020 esac 11021 ;; 11022 solaris*) 11023 case $cc_basename in 11024 CC*) 11025 # Sun C++ 4.2, 5.x and Centerline C++ 11026 archive_cmds_need_lc_CXX=yes 11027 no_undefined_flag_CXX=' -zdefs' 11028 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11029 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11030 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11031 11032 hardcode_libdir_flag_spec_CXX='-R$libdir' 11033 hardcode_shlibpath_var_CXX=no 11034 case $host_os in 11035 solaris2.[0-5] | solaris2.[0-5].*) ;; 11036 *) 11037 # The C++ compiler is used as linker so we must use $wl 11038 # flag to pass the commands to the underlying system 11039 # linker. We must also pass each convience library through 11040 # to the system linker between allextract/defaultextract. 11041 # The C++ compiler will combine linker options so we 11042 # cannot just pass the convience library names through 11043 # without $wl. 11044 # Supported since Solaris 2.6 (maybe 2.5.1?) 11045 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11046 ;; 11047 esac 11048 link_all_deplibs_CXX=yes 11049 11050 output_verbose_link_cmd='echo' 11051 11052 # Archives containing C++ object files must be created using 11053 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11054 # necessary to make sure instantiated templates are included 11055 # in the archive. 11056 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11057 ;; 11058 gcx*) 11059 # Green Hills C++ Compiler 11060 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11061 11062 # The C++ compiler must be used to create the archive. 11063 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11064 ;; 11065 *) 11066 # GNU C++ compiler with Solaris linker 11067 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11068 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11069 if $CC --version | grep -v '^2\.7' > /dev/null; then 11070 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11071 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11072 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11073 11074 # Commands to make compiler produce verbose output that lists 11075 # what "hidden" libraries, object files and flags are used when 11076 # linking a shared library. 11077 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11078 else 11079 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11080 # platform. 11081 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11082 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11083 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11084 11085 # Commands to make compiler produce verbose output that lists 11086 # what "hidden" libraries, object files and flags are used when 11087 # linking a shared library. 11088 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11089 fi 11090 11091 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11092 fi 11093 ;; 11094 esac 11095 ;; 11096 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11097 archive_cmds_need_lc_CXX=no 11098 ;; 11099 tandem*) 11100 case $cc_basename in 11101 NCC*) 11102 # NonStop-UX NCC 3.20 11103 # FIXME: insert proper C++ library support 11104 ld_shlibs_CXX=no 11105 ;; 11106 *) 11107 # FIXME: insert proper C++ library support 11108 ld_shlibs_CXX=no 11109 ;; 11110 esac 11111 ;; 11112 vxworks*) 11113 # FIXME: insert proper C++ library support 11114 ld_shlibs_CXX=no 11115 ;; 11116 *) 11117 # FIXME: insert proper C++ library support 11118 ld_shlibs_CXX=no 11119 ;; 11120esac 11121echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11122echo "${ECHO_T}$ld_shlibs_CXX" >&6 11123test "$ld_shlibs_CXX" = no && can_build_shared=no 11124 11125GCC_CXX="$GXX" 11126LD_CXX="$LD" 11127 11128## CAVEAT EMPTOR: 11129## There is no encapsulation within the following macros, do not change 11130## the running order or otherwise move them around unless you know exactly 11131## what you are doing... 11132 11133cat > conftest.$ac_ext <<EOF 11134class Foo 11135{ 11136public: 11137 Foo (void) { a = 0; } 11138private: 11139 int a; 11140}; 11141EOF 11142 11143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11144 (eval $ac_compile) 2>&5 11145 ac_status=$? 11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11147 (exit $ac_status); }; then 11148 # Parse the compiler output and extract the necessary 11149 # objects, libraries and library flags. 11150 11151 # Sentinel used to keep track of whether or not we are before 11152 # the conftest object file. 11153 pre_test_object_deps_done=no 11154 11155 # The `*' in the case matches for architectures that use `case' in 11156 # $output_verbose_cmd can trigger glob expansion during the loop 11157 # eval without this substitution. 11158 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11159 11160 for p in `eval $output_verbose_link_cmd`; do 11161 case $p in 11162 11163 -L* | -R* | -l*) 11164 # Some compilers place space between "-{L,R}" and the path. 11165 # Remove the space. 11166 if test $p = "-L" \ 11167 || test $p = "-R"; then 11168 prev=$p 11169 continue 11170 else 11171 prev= 11172 fi 11173 11174 if test "$pre_test_object_deps_done" = no; then 11175 case $p in 11176 -L* | -R*) 11177 # Internal compiler library paths should come after those 11178 # provided the user. The postdeps already come after the 11179 # user supplied libs so there is no need to process them. 11180 if test -z "$compiler_lib_search_path_CXX"; then 11181 compiler_lib_search_path_CXX="${prev}${p}" 11182 else 11183 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11184 fi 11185 ;; 11186 # The "-l" case would never come before the object being 11187 # linked, so don't bother handling this case. 11188 esac 11189 else 11190 if test -z "$postdeps_CXX"; then 11191 postdeps_CXX="${prev}${p}" 11192 else 11193 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11194 fi 11195 fi 11196 ;; 11197 11198 *.$objext) 11199 # This assumes that the test object file only shows up 11200 # once in the compiler output. 11201 if test "$p" = "conftest.$objext"; then 11202 pre_test_object_deps_done=yes 11203 continue 11204 fi 11205 11206 if test "$pre_test_object_deps_done" = no; then 11207 if test -z "$predep_objects_CXX"; then 11208 predep_objects_CXX="$p" 11209 else 11210 predep_objects_CXX="$predep_objects_CXX $p" 11211 fi 11212 else 11213 if test -z "$postdep_objects_CXX"; then 11214 postdep_objects_CXX="$p" 11215 else 11216 postdep_objects_CXX="$postdep_objects_CXX $p" 11217 fi 11218 fi 11219 ;; 11220 11221 *) ;; # Ignore the rest. 11222 11223 esac 11224 done 11225 11226 # Clean up. 11227 rm -f a.out a.exe 11228else 11229 echo "libtool.m4: error: problem compiling CXX test program" 11230fi 11231 11232$rm -f confest.$objext 11233 11234# PORTME: override above test on systems where it is broken 11235case $host_os in 11236solaris*) 11237 case $cc_basename in 11238 CC*) 11239 # Adding this requires a known-good setup of shared libraries for 11240 # Sun compiler versions before 5.6, else PIC objects from an old 11241 # archive will be linked into the output, leading to subtle bugs. 11242 postdeps_CXX='-lCstd -lCrun' 11243 ;; 11244 esac 11245esac 11246 11247 11248case " $postdeps_CXX " in 11249*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11250esac 11251 11252lt_prog_compiler_wl_CXX= 11253lt_prog_compiler_pic_CXX= 11254lt_prog_compiler_static_CXX= 11255 11256echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11257echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11258 11259 # C++ specific cases for pic, static, wl, etc. 11260 if test "$GXX" = yes; then 11261 lt_prog_compiler_wl_CXX='-Wl,' 11262 lt_prog_compiler_static_CXX='-static' 11263 11264 case $host_os in 11265 aix*) 11266 # All AIX code is PIC. 11267 if test "$host_cpu" = ia64; then 11268 # AIX 5 now supports IA64 processor 11269 lt_prog_compiler_static_CXX='-Bstatic' 11270 fi 11271 ;; 11272 amigaos*) 11273 # FIXME: we need at least 68020 code to build shared libraries, but 11274 # adding the `-m68020' flag to GCC prevents building anything better, 11275 # like `-m68040'. 11276 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11277 ;; 11278 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 11279 | osf5*) 11280 # PIC is the default for these OSes. 11281 ;; 11282 mingw* | os2* | pw32*) 11283 # This hack is so that the source file can tell whether it is being 11284 # built for inclusion in a dll (and should export symbols for example). 11285 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11286 ;; 11287 darwin* | rhapsody*) 11288 # PIC is the default on this platform 11289 # Common symbols not allowed in MH_DYLIB files 11290 lt_prog_compiler_pic_CXX='-fno-common' 11291 ;; 11292 *djgpp*) 11293 # DJGPP does not support shared libraries at all 11294 lt_prog_compiler_pic_CXX= 11295 ;; 11296 sysv4*MP*) 11297 if test -d /usr/nec; then 11298 lt_prog_compiler_pic_CXX=-Kconform_pic 11299 fi 11300 ;; 11301 hpux*) 11302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11303 # not for PA HP-UX. 11304 case $host_cpu in 11305 hppa*64*|ia64*) 11306 ;; 11307 *) 11308 lt_prog_compiler_pic_CXX='-fPIC' 11309 ;; 11310 esac 11311 ;; 11312 *) 11313 lt_prog_compiler_pic_CXX='-fPIC' 11314 ;; 11315 esac 11316 else 11317 case $host_os in 11318 aix4* | aix5*) 11319 # All AIX code is PIC. 11320 if test "$host_cpu" = ia64; then 11321 # AIX 5 now supports IA64 processor 11322 lt_prog_compiler_static_CXX='-Bstatic' 11323 else 11324 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11325 fi 11326 ;; 11327 chorus*) 11328 case $cc_basename in 11329 cxch68*) 11330 # Green Hills C++ Compiler 11331 # _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" 11332 ;; 11333 esac 11334 ;; 11335 darwin*) 11336 # PIC is the default on this platform 11337 # Common symbols not allowed in MH_DYLIB files 11338 case $cc_basename in 11339 xlc*) 11340 lt_prog_compiler_pic_CXX='-qnocommon' 11341 lt_prog_compiler_wl_CXX='-Wl,' 11342 ;; 11343 esac 11344 ;; 11345 dgux*) 11346 case $cc_basename in 11347 ec++*) 11348 lt_prog_compiler_pic_CXX='-KPIC' 11349 ;; 11350 ghcx*) 11351 # Green Hills C++ Compiler 11352 lt_prog_compiler_pic_CXX='-pic' 11353 ;; 11354 *) 11355 ;; 11356 esac 11357 ;; 11358 freebsd* | kfreebsd*-gnu | dragonfly*) 11359 # FreeBSD uses GNU C++ 11360 ;; 11361 hpux9* | hpux10* | hpux11*) 11362 case $cc_basename in 11363 CC*) 11364 lt_prog_compiler_wl_CXX='-Wl,' 11365 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11366 if test "$host_cpu" != ia64; then 11367 lt_prog_compiler_pic_CXX='+Z' 11368 fi 11369 ;; 11370 aCC*) 11371 lt_prog_compiler_wl_CXX='-Wl,' 11372 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11373 case $host_cpu in 11374 hppa*64*|ia64*) 11375 # +Z the default 11376 ;; 11377 *) 11378 lt_prog_compiler_pic_CXX='+Z' 11379 ;; 11380 esac 11381 ;; 11382 *) 11383 ;; 11384 esac 11385 ;; 11386 irix5* | irix6* | nonstopux*) 11387 case $cc_basename in 11388 CC*) 11389 lt_prog_compiler_wl_CXX='-Wl,' 11390 lt_prog_compiler_static_CXX='-non_shared' 11391 # CC pic flag -KPIC is the default. 11392 ;; 11393 *) 11394 ;; 11395 esac 11396 ;; 11397 linux*) 11398 case $cc_basename in 11399 KCC*) 11400 # KAI C++ Compiler 11401 lt_prog_compiler_wl_CXX='--backend -Wl,' 11402 lt_prog_compiler_pic_CXX='-fPIC' 11403 ;; 11404 icpc* | ecpc*) 11405 # Intel C++ 11406 lt_prog_compiler_wl_CXX='-Wl,' 11407 lt_prog_compiler_pic_CXX='-KPIC' 11408 lt_prog_compiler_static_CXX='-static' 11409 ;; 11410 pgCC*) 11411 # Portland Group C++ compiler. 11412 lt_prog_compiler_wl_CXX='-Wl,' 11413 lt_prog_compiler_pic_CXX='-fpic' 11414 lt_prog_compiler_static_CXX='-Bstatic' 11415 ;; 11416 cxx*) 11417 # Compaq C++ 11418 # Make sure the PIC flag is empty. It appears that all Alpha 11419 # Linux and Compaq Tru64 Unix objects are PIC. 11420 lt_prog_compiler_pic_CXX= 11421 lt_prog_compiler_static_CXX='-non_shared' 11422 ;; 11423 *) 11424 ;; 11425 esac 11426 ;; 11427 lynxos*) 11428 ;; 11429 m88k*) 11430 ;; 11431 mvs*) 11432 case $cc_basename in 11433 cxx*) 11434 lt_prog_compiler_pic_CXX='-W c,exportall' 11435 ;; 11436 *) 11437 ;; 11438 esac 11439 ;; 11440 netbsd*) 11441 ;; 11442 osf3* | osf4* | osf5*) 11443 case $cc_basename in 11444 KCC*) 11445 lt_prog_compiler_wl_CXX='--backend -Wl,' 11446 ;; 11447 RCC*) 11448 # Rational C++ 2.4.1 11449 lt_prog_compiler_pic_CXX='-pic' 11450 ;; 11451 cxx*) 11452 # Digital/Compaq C++ 11453 lt_prog_compiler_wl_CXX='-Wl,' 11454 # Make sure the PIC flag is empty. It appears that all Alpha 11455 # Linux and Compaq Tru64 Unix objects are PIC. 11456 lt_prog_compiler_pic_CXX= 11457 lt_prog_compiler_static_CXX='-non_shared' 11458 ;; 11459 *) 11460 ;; 11461 esac 11462 ;; 11463 psos*) 11464 ;; 11465 sco*) 11466 case $cc_basename in 11467 CC*) 11468 lt_prog_compiler_pic_CXX='-fPIC' 11469 ;; 11470 *) 11471 ;; 11472 esac 11473 ;; 11474 solaris*) 11475 case $cc_basename in 11476 CC*) 11477 # Sun C++ 4.2, 5.x and Centerline C++ 11478 lt_prog_compiler_pic_CXX='-KPIC' 11479 lt_prog_compiler_static_CXX='-Bstatic' 11480 lt_prog_compiler_wl_CXX='-Qoption ld ' 11481 ;; 11482 gcx*) 11483 # Green Hills C++ Compiler 11484 lt_prog_compiler_pic_CXX='-PIC' 11485 ;; 11486 *) 11487 ;; 11488 esac 11489 ;; 11490 sunos4*) 11491 case $cc_basename in 11492 CC*) 11493 # Sun C++ 4.x 11494 lt_prog_compiler_pic_CXX='-pic' 11495 lt_prog_compiler_static_CXX='-Bstatic' 11496 ;; 11497 lcc*) 11498 # Lucid 11499 lt_prog_compiler_pic_CXX='-pic' 11500 ;; 11501 *) 11502 ;; 11503 esac 11504 ;; 11505 tandem*) 11506 case $cc_basename in 11507 NCC*) 11508 # NonStop-UX NCC 3.20 11509 lt_prog_compiler_pic_CXX='-KPIC' 11510 ;; 11511 *) 11512 ;; 11513 esac 11514 ;; 11515 unixware*) 11516 ;; 11517 vxworks*) 11518 ;; 11519 *) 11520 lt_prog_compiler_can_build_shared_CXX=no 11521 ;; 11522 esac 11523 fi 11524 11525echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11526echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11527 11528# 11529# Check to make sure the PIC flag actually works. 11530# 11531if test -n "$lt_prog_compiler_pic_CXX"; then 11532 11533echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11534echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11535if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11536 echo $ECHO_N "(cached) $ECHO_C" >&6 11537else 11538 lt_prog_compiler_pic_works_CXX=no 11539 ac_outfile=conftest.$ac_objext 11540 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11541 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11542 # Insert the option either (1) after the last *FLAGS variable, or 11543 # (2) before a word containing "conftest.", or (3) at the end. 11544 # Note that $ac_compile itself does not contain backslashes and begins 11545 # with a dollar sign (not a hyphen), so the echo should work correctly. 11546 # The option is referenced via a variable to avoid confusing sed. 11547 lt_compile=`echo "$ac_compile" | $SED \ 11548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11550 -e 's:$: $lt_compiler_flag:'` 11551 (eval echo "\"\$as_me:11551: $lt_compile\"" >&5) 11552 (eval "$lt_compile" 2>conftest.err) 11553 ac_status=$? 11554 cat conftest.err >&5 11555 echo "$as_me:11555: \$? = $ac_status" >&5 11556 if (exit $ac_status) && test -s "$ac_outfile"; then 11557 # The compiler can only warn and ignore the option if not recognized 11558 # So say no if there are warnings other than the usual output. 11559 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11560 $SED '/^$/d' conftest.err >conftest.er2 11561 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11562 lt_prog_compiler_pic_works_CXX=yes 11563 fi 11564 fi 11565 $rm conftest* 11566 11567fi 11568echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11569echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11570 11571if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11572 case $lt_prog_compiler_pic_CXX in 11573 "" | " "*) ;; 11574 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11575 esac 11576else 11577 lt_prog_compiler_pic_CXX= 11578 lt_prog_compiler_can_build_shared_CXX=no 11579fi 11580 11581fi 11582case $host_os in 11583 # For platforms which do not support PIC, -DPIC is meaningless: 11584 *djgpp*) 11585 lt_prog_compiler_pic_CXX= 11586 ;; 11587 *) 11588 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11589 ;; 11590esac 11591 11592echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11593echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11594if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11595 echo $ECHO_N "(cached) $ECHO_C" >&6 11596else 11597 lt_cv_prog_compiler_c_o_CXX=no 11598 $rm -r conftest 2>/dev/null 11599 mkdir conftest 11600 cd conftest 11601 mkdir out 11602 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11603 11604 lt_compiler_flag="-o out/conftest2.$ac_objext" 11605 # Insert the option either (1) after the last *FLAGS variable, or 11606 # (2) before a word containing "conftest.", or (3) at the end. 11607 # Note that $ac_compile itself does not contain backslashes and begins 11608 # with a dollar sign (not a hyphen), so the echo should work correctly. 11609 lt_compile=`echo "$ac_compile" | $SED \ 11610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11612 -e 's:$: $lt_compiler_flag:'` 11613 (eval echo "\"\$as_me:11613: $lt_compile\"" >&5) 11614 (eval "$lt_compile" 2>out/conftest.err) 11615 ac_status=$? 11616 cat out/conftest.err >&5 11617 echo "$as_me:11617: \$? = $ac_status" >&5 11618 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11619 then 11620 # The compiler can only warn and ignore the option if not recognized 11621 # So say no if there are warnings 11622 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11623 $SED '/^$/d' out/conftest.err >out/conftest.er2 11624 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11625 lt_cv_prog_compiler_c_o_CXX=yes 11626 fi 11627 fi 11628 chmod u+w . 2>&5 11629 $rm conftest* 11630 # SGI C++ compiler will create directory out/ii_files/ for 11631 # template instantiation 11632 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11633 $rm out/* && rmdir out 11634 cd .. 11635 rmdir conftest 11636 $rm conftest* 11637 11638fi 11639echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11640echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11641 11642 11643hard_links="nottested" 11644if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11645 # do not overwrite the value of need_locks provided by the user 11646 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11647echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11648 hard_links=yes 11649 $rm conftest* 11650 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11651 touch conftest.a 11652 ln conftest.a conftest.b 2>&5 || hard_links=no 11653 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11654 echo "$as_me:$LINENO: result: $hard_links" >&5 11655echo "${ECHO_T}$hard_links" >&6 11656 if test "$hard_links" = no; then 11657 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11658echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11659 need_locks=warn 11660 fi 11661else 11662 need_locks=no 11663fi 11664 11665echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11666echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11667 11668 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11669 case $host_os in 11670 aix4* | aix5*) 11671 # If we're using GNU nm, then we don't want the "-C" option. 11672 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11673 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11674 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' 11675 else 11676 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' 11677 fi 11678 ;; 11679 pw32*) 11680 export_symbols_cmds_CXX="$ltdll_cmds" 11681 ;; 11682 cygwin* | mingw*) 11683 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11684 ;; 11685 *) 11686 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11687 ;; 11688 esac 11689 11690echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11691echo "${ECHO_T}$ld_shlibs_CXX" >&6 11692test "$ld_shlibs_CXX" = no && can_build_shared=no 11693 11694variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11695if test "$GCC" = yes; then 11696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11697fi 11698 11699# 11700# Do we need to explicitly link libc? 11701# 11702case "x$archive_cmds_need_lc_CXX" in 11703x|xyes) 11704 # Assume -lc should be added 11705 archive_cmds_need_lc_CXX=yes 11706 11707 if test "$enable_shared" = yes && test "$GCC" = yes; then 11708 case $archive_cmds_CXX in 11709 *'~'*) 11710 # FIXME: we may have to deal with multi-command sequences. 11711 ;; 11712 '$CC '*) 11713 # Test whether the compiler implicitly links with -lc since on some 11714 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11715 # to ld, don't add -lc before -lgcc. 11716 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11717echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11718 $rm conftest* 11719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11720 11721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11722 (eval $ac_compile) 2>&5 11723 ac_status=$? 11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11725 (exit $ac_status); } 2>conftest.err; then 11726 soname=conftest 11727 lib=conftest 11728 libobjs=conftest.$ac_objext 11729 deplibs= 11730 wl=$lt_prog_compiler_wl_CXX 11731 compiler_flags=-v 11732 linker_flags=-v 11733 verstring= 11734 output_objdir=. 11735 libname=conftest 11736 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11737 allow_undefined_flag_CXX= 11738 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11739 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11740 ac_status=$? 11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11742 (exit $ac_status); } 11743 then 11744 archive_cmds_need_lc_CXX=no 11745 else 11746 archive_cmds_need_lc_CXX=yes 11747 fi 11748 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11749 else 11750 cat conftest.err 1>&5 11751 fi 11752 $rm conftest* 11753 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11754echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11755 ;; 11756 esac 11757 fi 11758 ;; 11759esac 11760 11761echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11762echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11763library_names_spec= 11764libname_spec='lib$name' 11765soname_spec= 11766shrext_cmds=".so" 11767postinstall_cmds= 11768postuninstall_cmds= 11769finish_cmds= 11770finish_eval= 11771shlibpath_var= 11772shlibpath_overrides_runpath=unknown 11773version_type=none 11774dynamic_linker="$host_os ld.so" 11775sys_lib_dlsearch_path_spec="/lib /usr/lib" 11776if test "$GCC" = yes; then 11777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11778 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11779 # if the path contains ";" then we assume it to be the separator 11780 # otherwise default to the standard path separator (i.e. ":") - it is 11781 # assumed that no part of a normal pathname contains ";" but that should 11782 # okay in the real world where ";" in dirpaths is itself problematic. 11783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11784 else 11785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11786 fi 11787else 11788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11789fi 11790need_lib_prefix=unknown 11791hardcode_into_libs=no 11792 11793# when you set need_version to no, make sure it does not cause -set_version 11794# flags to be left without arguments 11795need_version=unknown 11796 11797case $host_os in 11798aix3*) 11799 version_type=linux 11800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11801 shlibpath_var=LIBPATH 11802 11803 # AIX 3 has no versioning support, so we append a major version to the name. 11804 soname_spec='${libname}${release}${shared_ext}$major' 11805 ;; 11806 11807aix4* | aix5*) 11808 version_type=linux 11809 need_lib_prefix=no 11810 need_version=no 11811 hardcode_into_libs=yes 11812 if test "$host_cpu" = ia64; then 11813 # AIX 5 supports IA64 11814 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11815 shlibpath_var=LD_LIBRARY_PATH 11816 else 11817 # With GCC up to 2.95.x, collect2 would create an import file 11818 # for dependence libraries. The import file would start with 11819 # the line `#! .'. This would cause the generated library to 11820 # depend on `.', always an invalid library. This was fixed in 11821 # development snapshots of GCC prior to 3.0. 11822 case $host_os in 11823 aix4 | aix4.[01] | aix4.[01].*) 11824 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11825 echo ' yes ' 11826 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11827 : 11828 else 11829 can_build_shared=no 11830 fi 11831 ;; 11832 esac 11833 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11834 # soname into executable. Probably we can add versioning support to 11835 # collect2, so additional links can be useful in future. 11836 if test "$aix_use_runtimelinking" = yes; then 11837 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11838 # instead of lib<name>.a to let people know that these are not 11839 # typical AIX shared libraries. 11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11841 else 11842 # We preserve .a as extension for shared libraries through AIX4.2 11843 # and later when we are not doing run time linking. 11844 library_names_spec='${libname}${release}.a $libname.a' 11845 soname_spec='${libname}${release}${shared_ext}$major' 11846 fi 11847 shlibpath_var=LIBPATH 11848 fi 11849 ;; 11850 11851amigaos*) 11852 library_names_spec='$libname.ixlibrary $libname.a' 11853 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11854 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' 11855 ;; 11856 11857beos*) 11858 library_names_spec='${libname}${shared_ext}' 11859 dynamic_linker="$host_os ld.so" 11860 shlibpath_var=LIBRARY_PATH 11861 ;; 11862 11863bsdi[45]*) 11864 version_type=linux 11865 need_version=no 11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11867 soname_spec='${libname}${release}${shared_ext}$major' 11868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11869 shlibpath_var=LD_LIBRARY_PATH 11870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11872 # the default ld.so.conf also contains /usr/contrib/lib and 11873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11874 # libtool to hard-code these into programs 11875 ;; 11876 11877cygwin* | mingw* | pw32*) 11878 version_type=windows 11879 shrext_cmds=".dll" 11880 need_version=no 11881 need_lib_prefix=no 11882 11883 case $GCC,$host_os in 11884 yes,cygwin* | yes,mingw* | yes,pw32*) 11885 library_names_spec='$libname.dll.a' 11886 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11887 postinstall_cmds='base_file=`basename \${file}`~ 11888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11889 dldir=$destdir/`dirname \$dlpath`~ 11890 test -d \$dldir || mkdir -p \$dldir~ 11891 $install_prog $dir/$dlname \$dldir/$dlname~ 11892 chmod a+x \$dldir/$dlname' 11893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11894 dlpath=$dir/\$dldll~ 11895 $rm \$dlpath' 11896 shlibpath_overrides_runpath=yes 11897 11898 case $host_os in 11899 cygwin*) 11900 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11901 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11902 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11903 ;; 11904 mingw*) 11905 # MinGW DLLs use traditional 'lib' prefix 11906 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11908 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11909 # It is most probably a Windows format PATH printed by 11910 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11911 # path with ; separators, and with drive letters. We can handle the 11912 # drive letters (cygwin fileutils understands them), so leave them, 11913 # especially as we might pass files found there to a mingw objdump, 11914 # which wouldn't understand a cygwinified path. Ahh. 11915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11916 else 11917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11918 fi 11919 ;; 11920 pw32*) 11921 # pw32 DLLs use 'pw' prefix rather than 'lib' 11922 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11923 ;; 11924 esac 11925 ;; 11926 11927 *) 11928 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11929 ;; 11930 esac 11931 dynamic_linker='Win32 ld.exe' 11932 # FIXME: first we should search . and the directory the executable is in 11933 shlibpath_var=PATH 11934 ;; 11935 11936darwin* | rhapsody*) 11937 dynamic_linker="$host_os dyld" 11938 version_type=darwin 11939 need_lib_prefix=no 11940 need_version=no 11941 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11942 soname_spec='${libname}${release}${major}$shared_ext' 11943 shlibpath_overrides_runpath=yes 11944 shlibpath_var=DYLD_LIBRARY_PATH 11945 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11946 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11947 if test "$GCC" = yes; then 11948 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"` 11949 else 11950 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11951 fi 11952 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11953 ;; 11954 11955dgux*) 11956 version_type=linux 11957 need_lib_prefix=no 11958 need_version=no 11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11960 soname_spec='${libname}${release}${shared_ext}$major' 11961 shlibpath_var=LD_LIBRARY_PATH 11962 ;; 11963 11964freebsd1*) 11965 dynamic_linker=no 11966 ;; 11967 11968haiku*) 11969 library_names_spec='${libname}${shared_ext}' 11970 dynamic_linker="$host_os ld.so" 11971 shlibpath_var=LIBRARY_PATH 11972 ;; 11973 11974kfreebsd*-gnu) 11975 version_type=linux 11976 need_lib_prefix=no 11977 need_version=no 11978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11979 soname_spec='${libname}${release}${shared_ext}$major' 11980 shlibpath_var=LD_LIBRARY_PATH 11981 shlibpath_overrides_runpath=no 11982 hardcode_into_libs=yes 11983 dynamic_linker='GNU ld.so' 11984 ;; 11985 11986freebsd* | dragonfly*) 11987 # DragonFly does not have aout. When/if they implement a new 11988 # versioning mechanism, adjust this. 11989 if test -x /usr/bin/objformat; then 11990 objformat=`/usr/bin/objformat` 11991 else 11992 case $host_os in 11993 freebsd[123]*) objformat=aout ;; 11994 *) objformat=elf ;; 11995 esac 11996 fi 11997 version_type=freebsd-$objformat 11998 case $version_type in 11999 freebsd-elf*) 12000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12001 need_version=no 12002 need_lib_prefix=no 12003 ;; 12004 freebsd-*) 12005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12006 need_version=yes 12007 ;; 12008 esac 12009 shlibpath_var=LD_LIBRARY_PATH 12010 case $host_os in 12011 freebsd2*) 12012 shlibpath_overrides_runpath=yes 12013 ;; 12014 freebsd3.[01]* | freebsdelf3.[01]*) 12015 shlibpath_overrides_runpath=yes 12016 hardcode_into_libs=yes 12017 ;; 12018 *) # from 3.2 on 12019 shlibpath_overrides_runpath=no 12020 hardcode_into_libs=yes 12021 ;; 12022 esac 12023 ;; 12024 12025gnu*) 12026 version_type=linux 12027 need_lib_prefix=no 12028 need_version=no 12029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12030 soname_spec='${libname}${release}${shared_ext}$major' 12031 shlibpath_var=LD_LIBRARY_PATH 12032 hardcode_into_libs=yes 12033 ;; 12034 12035hpux9* | hpux10* | hpux11*) 12036 # Give a soname corresponding to the major version so that dld.sl refuses to 12037 # link against other versions. 12038 version_type=sunos 12039 need_lib_prefix=no 12040 need_version=no 12041 case $host_cpu in 12042 ia64*) 12043 shrext_cmds='.so' 12044 hardcode_into_libs=yes 12045 dynamic_linker="$host_os dld.so" 12046 shlibpath_var=LD_LIBRARY_PATH 12047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12049 soname_spec='${libname}${release}${shared_ext}$major' 12050 if test "X$HPUX_IA64_MODE" = X32; then 12051 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12052 else 12053 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12054 fi 12055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12056 ;; 12057 hppa*64*) 12058 shrext_cmds='.sl' 12059 hardcode_into_libs=yes 12060 dynamic_linker="$host_os dld.sl" 12061 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12064 soname_spec='${libname}${release}${shared_ext}$major' 12065 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12067 ;; 12068 *) 12069 shrext_cmds='.sl' 12070 dynamic_linker="$host_os dld.sl" 12071 shlibpath_var=SHLIB_PATH 12072 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12074 soname_spec='${libname}${release}${shared_ext}$major' 12075 ;; 12076 esac 12077 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12078 postinstall_cmds='chmod 555 $lib' 12079 ;; 12080 12081irix5* | irix6* | nonstopux*) 12082 case $host_os in 12083 nonstopux*) version_type=nonstopux ;; 12084 *) 12085 if test "$lt_cv_prog_gnu_ld" = yes; then 12086 version_type=linux 12087 else 12088 version_type=irix 12089 fi ;; 12090 esac 12091 need_lib_prefix=no 12092 need_version=no 12093 soname_spec='${libname}${release}${shared_ext}$major' 12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12095 case $host_os in 12096 irix5* | nonstopux*) 12097 libsuff= shlibsuff= 12098 ;; 12099 *) 12100 case $LD in # libtool.m4 will add one of these switches to LD 12101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12102 libsuff= shlibsuff= libmagic=32-bit;; 12103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12104 libsuff=32 shlibsuff=N32 libmagic=N32;; 12105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12106 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12107 *) libsuff= shlibsuff= libmagic=never-match;; 12108 esac 12109 ;; 12110 esac 12111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12112 shlibpath_overrides_runpath=no 12113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12115 hardcode_into_libs=yes 12116 ;; 12117 12118# No shared lib support for Linux oldld, aout, or coff. 12119linux*oldld* | linux*aout* | linux*coff*) 12120 dynamic_linker=no 12121 ;; 12122 12123# This must be Linux ELF. 12124linux*) 12125 version_type=linux 12126 need_lib_prefix=no 12127 need_version=no 12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12129 soname_spec='${libname}${release}${shared_ext}$major' 12130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12131 shlibpath_var=LD_LIBRARY_PATH 12132 shlibpath_overrides_runpath=no 12133 # This implies no fast_install, which is unacceptable. 12134 # Some rework will be needed to allow for fast_install 12135 # before this can be enabled. 12136 hardcode_into_libs=yes 12137 12138 # Append ld.so.conf contents to the search path 12139 if test -f /etc/ld.so.conf; then 12140 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12141 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12142 fi 12143 12144 # We used to test for /lib/ld.so.1 and disable shared libraries on 12145 # powerpc, because MkLinux only supported shared libraries with the 12146 # GNU dynamic linker. Since this was broken with cross compilers, 12147 # most powerpc-linux boxes support dynamic linking these days and 12148 # people can always --disable-shared, the test was removed, and we 12149 # assume the GNU/Linux dynamic linker is in use. 12150 dynamic_linker='GNU/Linux ld.so' 12151 ;; 12152 12153knetbsd*-gnu) 12154 version_type=linux 12155 need_lib_prefix=no 12156 need_version=no 12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12158 soname_spec='${libname}${release}${shared_ext}$major' 12159 shlibpath_var=LD_LIBRARY_PATH 12160 shlibpath_overrides_runpath=no 12161 hardcode_into_libs=yes 12162 dynamic_linker='GNU ld.so' 12163 ;; 12164 12165netbsd*) 12166 version_type=sunos 12167 need_lib_prefix=no 12168 need_version=no 12169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12172 dynamic_linker='NetBSD (a.out) ld.so' 12173 else 12174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12175 soname_spec='${libname}${release}${shared_ext}$major' 12176 dynamic_linker='NetBSD ld.elf_so' 12177 fi 12178 shlibpath_var=LD_LIBRARY_PATH 12179 shlibpath_overrides_runpath=yes 12180 hardcode_into_libs=yes 12181 ;; 12182 12183newsos6) 12184 version_type=linux 12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12186 shlibpath_var=LD_LIBRARY_PATH 12187 shlibpath_overrides_runpath=yes 12188 ;; 12189 12190nto-qnx*) 12191 version_type=linux 12192 need_lib_prefix=no 12193 need_version=no 12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12195 soname_spec='${libname}${release}${shared_ext}$major' 12196 shlibpath_var=LD_LIBRARY_PATH 12197 shlibpath_overrides_runpath=yes 12198 ;; 12199 12200openbsd*) 12201 version_type=sunos 12202 need_lib_prefix=no 12203 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12204 case $host_os in 12205 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12206 *) need_version=no ;; 12207 esac 12208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12210 shlibpath_var=LD_LIBRARY_PATH 12211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12212 case $host_os in 12213 openbsd2.[89] | openbsd2.[89].*) 12214 shlibpath_overrides_runpath=no 12215 ;; 12216 *) 12217 shlibpath_overrides_runpath=yes 12218 ;; 12219 esac 12220 else 12221 shlibpath_overrides_runpath=yes 12222 fi 12223 ;; 12224 12225os2*) 12226 libname_spec='$name' 12227 shrext_cmds=".dll" 12228 need_lib_prefix=no 12229 library_names_spec='$libname${shared_ext} $libname.a' 12230 dynamic_linker='OS/2 ld.exe' 12231 shlibpath_var=LIBPATH 12232 ;; 12233 12234osf3* | osf4* | osf5*) 12235 version_type=osf 12236 need_lib_prefix=no 12237 need_version=no 12238 soname_spec='${libname}${release}${shared_ext}$major' 12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12240 shlibpath_var=LD_LIBRARY_PATH 12241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12243 ;; 12244 12245sco3.2v5*) 12246 version_type=osf 12247 soname_spec='${libname}${release}${shared_ext}$major' 12248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12249 shlibpath_var=LD_LIBRARY_PATH 12250 ;; 12251 12252solaris*) 12253 version_type=linux 12254 need_lib_prefix=no 12255 need_version=no 12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12257 soname_spec='${libname}${release}${shared_ext}$major' 12258 shlibpath_var=LD_LIBRARY_PATH 12259 shlibpath_overrides_runpath=yes 12260 hardcode_into_libs=yes 12261 # ldd complains unless libraries are executable 12262 postinstall_cmds='chmod +x $lib' 12263 ;; 12264 12265sunos4*) 12266 version_type=sunos 12267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12268 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12269 shlibpath_var=LD_LIBRARY_PATH 12270 shlibpath_overrides_runpath=yes 12271 if test "$with_gnu_ld" = yes; then 12272 need_lib_prefix=no 12273 fi 12274 need_version=yes 12275 ;; 12276 12277sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12278 version_type=linux 12279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12280 soname_spec='${libname}${release}${shared_ext}$major' 12281 shlibpath_var=LD_LIBRARY_PATH 12282 case $host_vendor in 12283 sni) 12284 shlibpath_overrides_runpath=no 12285 need_lib_prefix=no 12286 export_dynamic_flag_spec='${wl}-Blargedynsym' 12287 runpath_var=LD_RUN_PATH 12288 ;; 12289 siemens) 12290 need_lib_prefix=no 12291 ;; 12292 motorola) 12293 need_lib_prefix=no 12294 need_version=no 12295 shlibpath_overrides_runpath=no 12296 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12297 ;; 12298 esac 12299 ;; 12300 12301sysv4*MP*) 12302 if test -d /usr/nec ;then 12303 version_type=linux 12304 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12305 soname_spec='$libname${shared_ext}.$major' 12306 shlibpath_var=LD_LIBRARY_PATH 12307 fi 12308 ;; 12309 12310uts4*) 12311 version_type=linux 12312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12313 soname_spec='${libname}${release}${shared_ext}$major' 12314 shlibpath_var=LD_LIBRARY_PATH 12315 ;; 12316 12317*) 12318 dynamic_linker=no 12319 ;; 12320esac 12321echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12322echo "${ECHO_T}$dynamic_linker" >&6 12323test "$dynamic_linker" = no && can_build_shared=no 12324 12325echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12326echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12327hardcode_action_CXX= 12328if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12329 test -n "$runpath_var_CXX" || \ 12330 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12331 12332 # We can hardcode non-existant directories. 12333 if test "$hardcode_direct_CXX" != no && 12334 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12335 # have to relink, otherwise we might link with an installed library 12336 # when we should be linking with a yet-to-be-installed one 12337 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12338 test "$hardcode_minus_L_CXX" != no; then 12339 # Linking always hardcodes the temporary library directory. 12340 hardcode_action_CXX=relink 12341 else 12342 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12343 hardcode_action_CXX=immediate 12344 fi 12345else 12346 # We cannot hardcode anything, or else we can only hardcode existing 12347 # directories. 12348 hardcode_action_CXX=unsupported 12349fi 12350echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12351echo "${ECHO_T}$hardcode_action_CXX" >&6 12352 12353if test "$hardcode_action_CXX" = relink; then 12354 # Fast installation is not supported 12355 enable_fast_install=no 12356elif test "$shlibpath_overrides_runpath" = yes || 12357 test "$enable_shared" = no; then 12358 # Fast installation is not necessary 12359 enable_fast_install=needless 12360fi 12361 12362striplib= 12363old_striplib= 12364echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12365echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12366if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12368 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12369 echo "$as_me:$LINENO: result: yes" >&5 12370echo "${ECHO_T}yes" >&6 12371else 12372# FIXME - insert some real tests, host_os isn't really good enough 12373 case $host_os in 12374 darwin*) 12375 if test -n "$STRIP" ; then 12376 striplib="$STRIP -x" 12377 echo "$as_me:$LINENO: result: yes" >&5 12378echo "${ECHO_T}yes" >&6 12379 else 12380 echo "$as_me:$LINENO: result: no" >&5 12381echo "${ECHO_T}no" >&6 12382fi 12383 ;; 12384 *) 12385 echo "$as_me:$LINENO: result: no" >&5 12386echo "${ECHO_T}no" >&6 12387 ;; 12388 esac 12389fi 12390 12391if test "x$enable_dlopen" != xyes; then 12392 enable_dlopen=unknown 12393 enable_dlopen_self=unknown 12394 enable_dlopen_self_static=unknown 12395else 12396 lt_cv_dlopen=no 12397 lt_cv_dlopen_libs= 12398 12399 case $host_os in 12400 beos*) 12401 lt_cv_dlopen="load_add_on" 12402 lt_cv_dlopen_libs= 12403 lt_cv_dlopen_self=yes 12404 ;; 12405 12406 mingw* | pw32*) 12407 lt_cv_dlopen="LoadLibrary" 12408 lt_cv_dlopen_libs= 12409 ;; 12410 12411 cygwin*) 12412 lt_cv_dlopen="dlopen" 12413 lt_cv_dlopen_libs= 12414 ;; 12415 12416 darwin*) 12417 # if libdl is installed we need to link against it 12418 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12419echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12420if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12421 echo $ECHO_N "(cached) $ECHO_C" >&6 12422else 12423 ac_check_lib_save_LIBS=$LIBS 12424LIBS="-ldl $LIBS" 12425cat >conftest.$ac_ext <<_ACEOF 12426/* confdefs.h. */ 12427_ACEOF 12428cat confdefs.h >>conftest.$ac_ext 12429cat >>conftest.$ac_ext <<_ACEOF 12430/* end confdefs.h. */ 12431 12432/* Override any gcc2 internal prototype to avoid an error. */ 12433#ifdef __cplusplus 12434extern "C" 12435#endif 12436/* We use char because int might match the return type of a gcc2 12437 builtin and then its argument prototype would still apply. */ 12438char dlopen (); 12439int 12440main () 12441{ 12442dlopen (); 12443 ; 12444 return 0; 12445} 12446_ACEOF 12447rm -f conftest.$ac_objext conftest$ac_exeext 12448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12449 (eval $ac_link) 2>conftest.er1 12450 ac_status=$? 12451 grep -v '^ *+' conftest.er1 >conftest.err 12452 rm -f conftest.er1 12453 cat conftest.err >&5 12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12455 (exit $ac_status); } && 12456 { ac_try='test -z "$ac_cxx_werror_flag" 12457 || test ! -s conftest.err' 12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12459 (eval $ac_try) 2>&5 12460 ac_status=$? 12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12462 (exit $ac_status); }; } && 12463 { ac_try='test -s conftest$ac_exeext' 12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12465 (eval $ac_try) 2>&5 12466 ac_status=$? 12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12468 (exit $ac_status); }; }; then 12469 ac_cv_lib_dl_dlopen=yes 12470else 12471 echo "$as_me: failed program was:" >&5 12472sed 's/^/| /' conftest.$ac_ext >&5 12473 12474ac_cv_lib_dl_dlopen=no 12475fi 12476rm -f conftest.err conftest.$ac_objext \ 12477 conftest$ac_exeext conftest.$ac_ext 12478LIBS=$ac_check_lib_save_LIBS 12479fi 12480echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12481echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12482if test $ac_cv_lib_dl_dlopen = yes; then 12483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12484else 12485 12486 lt_cv_dlopen="dyld" 12487 lt_cv_dlopen_libs= 12488 lt_cv_dlopen_self=yes 12489 12490fi 12491 12492 ;; 12493 12494 haiku*) 12495 lt_cv_dlopen="load_add_on" 12496 lt_cv_dlopen_libs= 12497 lt_cv_dlopen_self=yes 12498 ;; 12499 12500 *) 12501 echo "$as_me:$LINENO: checking for shl_load" >&5 12502echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12503if test "${ac_cv_func_shl_load+set}" = set; then 12504 echo $ECHO_N "(cached) $ECHO_C" >&6 12505else 12506 cat >conftest.$ac_ext <<_ACEOF 12507/* confdefs.h. */ 12508_ACEOF 12509cat confdefs.h >>conftest.$ac_ext 12510cat >>conftest.$ac_ext <<_ACEOF 12511/* end confdefs.h. */ 12512/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12513 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12514#define shl_load innocuous_shl_load 12515 12516/* System header to define __stub macros and hopefully few prototypes, 12517 which can conflict with char shl_load (); below. 12518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12519 <limits.h> exists even on freestanding compilers. */ 12520 12521#ifdef __STDC__ 12522# include <limits.h> 12523#else 12524# include <assert.h> 12525#endif 12526 12527#undef shl_load 12528 12529/* Override any gcc2 internal prototype to avoid an error. */ 12530#ifdef __cplusplus 12531extern "C" 12532{ 12533#endif 12534/* We use char because int might match the return type of a gcc2 12535 builtin and then its argument prototype would still apply. */ 12536char shl_load (); 12537/* The GNU C library defines this for functions which it implements 12538 to always fail with ENOSYS. Some functions are actually named 12539 something starting with __ and the normal name is an alias. */ 12540#if defined (__stub_shl_load) || defined (__stub___shl_load) 12541choke me 12542#else 12543char (*f) () = shl_load; 12544#endif 12545#ifdef __cplusplus 12546} 12547#endif 12548 12549int 12550main () 12551{ 12552return f != shl_load; 12553 ; 12554 return 0; 12555} 12556_ACEOF 12557rm -f conftest.$ac_objext conftest$ac_exeext 12558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12559 (eval $ac_link) 2>conftest.er1 12560 ac_status=$? 12561 grep -v '^ *+' conftest.er1 >conftest.err 12562 rm -f conftest.er1 12563 cat conftest.err >&5 12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12565 (exit $ac_status); } && 12566 { ac_try='test -z "$ac_cxx_werror_flag" 12567 || test ! -s conftest.err' 12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12569 (eval $ac_try) 2>&5 12570 ac_status=$? 12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12572 (exit $ac_status); }; } && 12573 { ac_try='test -s conftest$ac_exeext' 12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12575 (eval $ac_try) 2>&5 12576 ac_status=$? 12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12578 (exit $ac_status); }; }; then 12579 ac_cv_func_shl_load=yes 12580else 12581 echo "$as_me: failed program was:" >&5 12582sed 's/^/| /' conftest.$ac_ext >&5 12583 12584ac_cv_func_shl_load=no 12585fi 12586rm -f conftest.err conftest.$ac_objext \ 12587 conftest$ac_exeext conftest.$ac_ext 12588fi 12589echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12590echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12591if test $ac_cv_func_shl_load = yes; then 12592 lt_cv_dlopen="shl_load" 12593else 12594 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12595echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12596if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12597 echo $ECHO_N "(cached) $ECHO_C" >&6 12598else 12599 ac_check_lib_save_LIBS=$LIBS 12600LIBS="-ldld $LIBS" 12601cat >conftest.$ac_ext <<_ACEOF 12602/* confdefs.h. */ 12603_ACEOF 12604cat confdefs.h >>conftest.$ac_ext 12605cat >>conftest.$ac_ext <<_ACEOF 12606/* end confdefs.h. */ 12607 12608/* Override any gcc2 internal prototype to avoid an error. */ 12609#ifdef __cplusplus 12610extern "C" 12611#endif 12612/* We use char because int might match the return type of a gcc2 12613 builtin and then its argument prototype would still apply. */ 12614char shl_load (); 12615int 12616main () 12617{ 12618shl_load (); 12619 ; 12620 return 0; 12621} 12622_ACEOF 12623rm -f conftest.$ac_objext conftest$ac_exeext 12624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12625 (eval $ac_link) 2>conftest.er1 12626 ac_status=$? 12627 grep -v '^ *+' conftest.er1 >conftest.err 12628 rm -f conftest.er1 12629 cat conftest.err >&5 12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12631 (exit $ac_status); } && 12632 { ac_try='test -z "$ac_cxx_werror_flag" 12633 || test ! -s conftest.err' 12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12635 (eval $ac_try) 2>&5 12636 ac_status=$? 12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12638 (exit $ac_status); }; } && 12639 { ac_try='test -s conftest$ac_exeext' 12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12641 (eval $ac_try) 2>&5 12642 ac_status=$? 12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12644 (exit $ac_status); }; }; then 12645 ac_cv_lib_dld_shl_load=yes 12646else 12647 echo "$as_me: failed program was:" >&5 12648sed 's/^/| /' conftest.$ac_ext >&5 12649 12650ac_cv_lib_dld_shl_load=no 12651fi 12652rm -f conftest.err conftest.$ac_objext \ 12653 conftest$ac_exeext conftest.$ac_ext 12654LIBS=$ac_check_lib_save_LIBS 12655fi 12656echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12657echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12658if test $ac_cv_lib_dld_shl_load = yes; then 12659 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12660else 12661 echo "$as_me:$LINENO: checking for dlopen" >&5 12662echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12663if test "${ac_cv_func_dlopen+set}" = set; then 12664 echo $ECHO_N "(cached) $ECHO_C" >&6 12665else 12666 cat >conftest.$ac_ext <<_ACEOF 12667/* confdefs.h. */ 12668_ACEOF 12669cat confdefs.h >>conftest.$ac_ext 12670cat >>conftest.$ac_ext <<_ACEOF 12671/* end confdefs.h. */ 12672/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12673 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12674#define dlopen innocuous_dlopen 12675 12676/* System header to define __stub macros and hopefully few prototypes, 12677 which can conflict with char dlopen (); below. 12678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12679 <limits.h> exists even on freestanding compilers. */ 12680 12681#ifdef __STDC__ 12682# include <limits.h> 12683#else 12684# include <assert.h> 12685#endif 12686 12687#undef dlopen 12688 12689/* Override any gcc2 internal prototype to avoid an error. */ 12690#ifdef __cplusplus 12691extern "C" 12692{ 12693#endif 12694/* We use char because int might match the return type of a gcc2 12695 builtin and then its argument prototype would still apply. */ 12696char dlopen (); 12697/* The GNU C library defines this for functions which it implements 12698 to always fail with ENOSYS. Some functions are actually named 12699 something starting with __ and the normal name is an alias. */ 12700#if defined (__stub_dlopen) || defined (__stub___dlopen) 12701choke me 12702#else 12703char (*f) () = dlopen; 12704#endif 12705#ifdef __cplusplus 12706} 12707#endif 12708 12709int 12710main () 12711{ 12712return f != dlopen; 12713 ; 12714 return 0; 12715} 12716_ACEOF 12717rm -f conftest.$ac_objext conftest$ac_exeext 12718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12719 (eval $ac_link) 2>conftest.er1 12720 ac_status=$? 12721 grep -v '^ *+' conftest.er1 >conftest.err 12722 rm -f conftest.er1 12723 cat conftest.err >&5 12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12725 (exit $ac_status); } && 12726 { ac_try='test -z "$ac_cxx_werror_flag" 12727 || test ! -s conftest.err' 12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12729 (eval $ac_try) 2>&5 12730 ac_status=$? 12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12732 (exit $ac_status); }; } && 12733 { ac_try='test -s conftest$ac_exeext' 12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12735 (eval $ac_try) 2>&5 12736 ac_status=$? 12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12738 (exit $ac_status); }; }; then 12739 ac_cv_func_dlopen=yes 12740else 12741 echo "$as_me: failed program was:" >&5 12742sed 's/^/| /' conftest.$ac_ext >&5 12743 12744ac_cv_func_dlopen=no 12745fi 12746rm -f conftest.err conftest.$ac_objext \ 12747 conftest$ac_exeext conftest.$ac_ext 12748fi 12749echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12750echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12751if test $ac_cv_func_dlopen = yes; then 12752 lt_cv_dlopen="dlopen" 12753else 12754 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12755echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12756if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12757 echo $ECHO_N "(cached) $ECHO_C" >&6 12758else 12759 ac_check_lib_save_LIBS=$LIBS 12760LIBS="-ldl $LIBS" 12761cat >conftest.$ac_ext <<_ACEOF 12762/* confdefs.h. */ 12763_ACEOF 12764cat confdefs.h >>conftest.$ac_ext 12765cat >>conftest.$ac_ext <<_ACEOF 12766/* end confdefs.h. */ 12767 12768/* Override any gcc2 internal prototype to avoid an error. */ 12769#ifdef __cplusplus 12770extern "C" 12771#endif 12772/* We use char because int might match the return type of a gcc2 12773 builtin and then its argument prototype would still apply. */ 12774char dlopen (); 12775int 12776main () 12777{ 12778dlopen (); 12779 ; 12780 return 0; 12781} 12782_ACEOF 12783rm -f conftest.$ac_objext conftest$ac_exeext 12784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12785 (eval $ac_link) 2>conftest.er1 12786 ac_status=$? 12787 grep -v '^ *+' conftest.er1 >conftest.err 12788 rm -f conftest.er1 12789 cat conftest.err >&5 12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12791 (exit $ac_status); } && 12792 { ac_try='test -z "$ac_cxx_werror_flag" 12793 || test ! -s conftest.err' 12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12795 (eval $ac_try) 2>&5 12796 ac_status=$? 12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12798 (exit $ac_status); }; } && 12799 { ac_try='test -s conftest$ac_exeext' 12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12801 (eval $ac_try) 2>&5 12802 ac_status=$? 12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12804 (exit $ac_status); }; }; then 12805 ac_cv_lib_dl_dlopen=yes 12806else 12807 echo "$as_me: failed program was:" >&5 12808sed 's/^/| /' conftest.$ac_ext >&5 12809 12810ac_cv_lib_dl_dlopen=no 12811fi 12812rm -f conftest.err conftest.$ac_objext \ 12813 conftest$ac_exeext conftest.$ac_ext 12814LIBS=$ac_check_lib_save_LIBS 12815fi 12816echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12817echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12818if test $ac_cv_lib_dl_dlopen = yes; then 12819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12820else 12821 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12822echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12823if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12824 echo $ECHO_N "(cached) $ECHO_C" >&6 12825else 12826 ac_check_lib_save_LIBS=$LIBS 12827LIBS="-lsvld $LIBS" 12828cat >conftest.$ac_ext <<_ACEOF 12829/* confdefs.h. */ 12830_ACEOF 12831cat confdefs.h >>conftest.$ac_ext 12832cat >>conftest.$ac_ext <<_ACEOF 12833/* end confdefs.h. */ 12834 12835/* Override any gcc2 internal prototype to avoid an error. */ 12836#ifdef __cplusplus 12837extern "C" 12838#endif 12839/* We use char because int might match the return type of a gcc2 12840 builtin and then its argument prototype would still apply. */ 12841char dlopen (); 12842int 12843main () 12844{ 12845dlopen (); 12846 ; 12847 return 0; 12848} 12849_ACEOF 12850rm -f conftest.$ac_objext conftest$ac_exeext 12851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12852 (eval $ac_link) 2>conftest.er1 12853 ac_status=$? 12854 grep -v '^ *+' conftest.er1 >conftest.err 12855 rm -f conftest.er1 12856 cat conftest.err >&5 12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12858 (exit $ac_status); } && 12859 { ac_try='test -z "$ac_cxx_werror_flag" 12860 || test ! -s conftest.err' 12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12862 (eval $ac_try) 2>&5 12863 ac_status=$? 12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12865 (exit $ac_status); }; } && 12866 { ac_try='test -s conftest$ac_exeext' 12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12868 (eval $ac_try) 2>&5 12869 ac_status=$? 12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12871 (exit $ac_status); }; }; then 12872 ac_cv_lib_svld_dlopen=yes 12873else 12874 echo "$as_me: failed program was:" >&5 12875sed 's/^/| /' conftest.$ac_ext >&5 12876 12877ac_cv_lib_svld_dlopen=no 12878fi 12879rm -f conftest.err conftest.$ac_objext \ 12880 conftest$ac_exeext conftest.$ac_ext 12881LIBS=$ac_check_lib_save_LIBS 12882fi 12883echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12884echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12885if test $ac_cv_lib_svld_dlopen = yes; then 12886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12887else 12888 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12889echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12890if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12891 echo $ECHO_N "(cached) $ECHO_C" >&6 12892else 12893 ac_check_lib_save_LIBS=$LIBS 12894LIBS="-ldld $LIBS" 12895cat >conftest.$ac_ext <<_ACEOF 12896/* confdefs.h. */ 12897_ACEOF 12898cat confdefs.h >>conftest.$ac_ext 12899cat >>conftest.$ac_ext <<_ACEOF 12900/* end confdefs.h. */ 12901 12902/* Override any gcc2 internal prototype to avoid an error. */ 12903#ifdef __cplusplus 12904extern "C" 12905#endif 12906/* We use char because int might match the return type of a gcc2 12907 builtin and then its argument prototype would still apply. */ 12908char dld_link (); 12909int 12910main () 12911{ 12912dld_link (); 12913 ; 12914 return 0; 12915} 12916_ACEOF 12917rm -f conftest.$ac_objext conftest$ac_exeext 12918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12919 (eval $ac_link) 2>conftest.er1 12920 ac_status=$? 12921 grep -v '^ *+' conftest.er1 >conftest.err 12922 rm -f conftest.er1 12923 cat conftest.err >&5 12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12925 (exit $ac_status); } && 12926 { ac_try='test -z "$ac_cxx_werror_flag" 12927 || test ! -s conftest.err' 12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12929 (eval $ac_try) 2>&5 12930 ac_status=$? 12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12932 (exit $ac_status); }; } && 12933 { ac_try='test -s conftest$ac_exeext' 12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12935 (eval $ac_try) 2>&5 12936 ac_status=$? 12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12938 (exit $ac_status); }; }; then 12939 ac_cv_lib_dld_dld_link=yes 12940else 12941 echo "$as_me: failed program was:" >&5 12942sed 's/^/| /' conftest.$ac_ext >&5 12943 12944ac_cv_lib_dld_dld_link=no 12945fi 12946rm -f conftest.err conftest.$ac_objext \ 12947 conftest$ac_exeext conftest.$ac_ext 12948LIBS=$ac_check_lib_save_LIBS 12949fi 12950echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12951echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12952if test $ac_cv_lib_dld_dld_link = yes; then 12953 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12954fi 12955 12956 12957fi 12958 12959 12960fi 12961 12962 12963fi 12964 12965 12966fi 12967 12968 12969fi 12970 12971 ;; 12972 esac 12973 12974 if test "x$lt_cv_dlopen" != xno; then 12975 enable_dlopen=yes 12976 else 12977 enable_dlopen=no 12978 fi 12979 12980 case $lt_cv_dlopen in 12981 dlopen) 12982 save_CPPFLAGS="$CPPFLAGS" 12983 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12984 12985 save_LDFLAGS="$LDFLAGS" 12986 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12987 12988 save_LIBS="$LIBS" 12989 LIBS="$lt_cv_dlopen_libs $LIBS" 12990 12991 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12992echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12993if test "${lt_cv_dlopen_self+set}" = set; then 12994 echo $ECHO_N "(cached) $ECHO_C" >&6 12995else 12996 if test "$cross_compiling" = yes; then : 12997 lt_cv_dlopen_self=cross 12998else 12999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13000 lt_status=$lt_dlunknown 13001 cat > conftest.$ac_ext <<EOF 13002#line 13002 "configure" 13003#include "confdefs.h" 13004 13005#if HAVE_DLFCN_H 13006#include <dlfcn.h> 13007#endif 13008 13009#include <stdio.h> 13010 13011#ifdef RTLD_GLOBAL 13012# define LT_DLGLOBAL RTLD_GLOBAL 13013#else 13014# ifdef DL_GLOBAL 13015# define LT_DLGLOBAL DL_GLOBAL 13016# else 13017# define LT_DLGLOBAL 0 13018# endif 13019#endif 13020 13021/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13022 find out it does not work in some platform. */ 13023#ifndef LT_DLLAZY_OR_NOW 13024# ifdef RTLD_LAZY 13025# define LT_DLLAZY_OR_NOW RTLD_LAZY 13026# else 13027# ifdef DL_LAZY 13028# define LT_DLLAZY_OR_NOW DL_LAZY 13029# else 13030# ifdef RTLD_NOW 13031# define LT_DLLAZY_OR_NOW RTLD_NOW 13032# else 13033# ifdef DL_NOW 13034# define LT_DLLAZY_OR_NOW DL_NOW 13035# else 13036# define LT_DLLAZY_OR_NOW 0 13037# endif 13038# endif 13039# endif 13040# endif 13041#endif 13042 13043#ifdef __cplusplus 13044extern "C" void exit (int); 13045#endif 13046 13047void fnord() { int i=42;} 13048int main () 13049{ 13050 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13051 int status = $lt_dlunknown; 13052 13053 if (self) 13054 { 13055 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13056 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13057 /* dlclose (self); */ 13058 } 13059 13060 exit (status); 13061} 13062EOF 13063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13064 (eval $ac_link) 2>&5 13065 ac_status=$? 13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13067 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13068 (./conftest; exit; ) >&5 2>/dev/null 13069 lt_status=$? 13070 case x$lt_status in 13071 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13072 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13073 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 13074 esac 13075 else : 13076 # compilation failed 13077 lt_cv_dlopen_self=no 13078 fi 13079fi 13080rm -fr conftest* 13081 13082 13083fi 13084echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 13085echo "${ECHO_T}$lt_cv_dlopen_self" >&6 13086 13087 if test "x$lt_cv_dlopen_self" = xyes; then 13088 LDFLAGS="$LDFLAGS $link_static_flag" 13089 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 13090echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 13091if test "${lt_cv_dlopen_self_static+set}" = set; then 13092 echo $ECHO_N "(cached) $ECHO_C" >&6 13093else 13094 if test "$cross_compiling" = yes; then : 13095 lt_cv_dlopen_self_static=cross 13096else 13097 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13098 lt_status=$lt_dlunknown 13099 cat > conftest.$ac_ext <<EOF 13100#line 13100 "configure" 13101#include "confdefs.h" 13102 13103#if HAVE_DLFCN_H 13104#include <dlfcn.h> 13105#endif 13106 13107#include <stdio.h> 13108 13109#ifdef RTLD_GLOBAL 13110# define LT_DLGLOBAL RTLD_GLOBAL 13111#else 13112# ifdef DL_GLOBAL 13113# define LT_DLGLOBAL DL_GLOBAL 13114# else 13115# define LT_DLGLOBAL 0 13116# endif 13117#endif 13118 13119/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13120 find out it does not work in some platform. */ 13121#ifndef LT_DLLAZY_OR_NOW 13122# ifdef RTLD_LAZY 13123# define LT_DLLAZY_OR_NOW RTLD_LAZY 13124# else 13125# ifdef DL_LAZY 13126# define LT_DLLAZY_OR_NOW DL_LAZY 13127# else 13128# ifdef RTLD_NOW 13129# define LT_DLLAZY_OR_NOW RTLD_NOW 13130# else 13131# ifdef DL_NOW 13132# define LT_DLLAZY_OR_NOW DL_NOW 13133# else 13134# define LT_DLLAZY_OR_NOW 0 13135# endif 13136# endif 13137# endif 13138# endif 13139#endif 13140 13141#ifdef __cplusplus 13142extern "C" void exit (int); 13143#endif 13144 13145void fnord() { int i=42;} 13146int main () 13147{ 13148 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13149 int status = $lt_dlunknown; 13150 13151 if (self) 13152 { 13153 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13154 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13155 /* dlclose (self); */ 13156 } 13157 13158 exit (status); 13159} 13160EOF 13161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13162 (eval $ac_link) 2>&5 13163 ac_status=$? 13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13165 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13166 (./conftest; exit; ) >&5 2>/dev/null 13167 lt_status=$? 13168 case x$lt_status in 13169 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13170 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13171 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13172 esac 13173 else : 13174 # compilation failed 13175 lt_cv_dlopen_self_static=no 13176 fi 13177fi 13178rm -fr conftest* 13179 13180 13181fi 13182echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13183echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13184 fi 13185 13186 CPPFLAGS="$save_CPPFLAGS" 13187 LDFLAGS="$save_LDFLAGS" 13188 LIBS="$save_LIBS" 13189 ;; 13190 esac 13191 13192 case $lt_cv_dlopen_self in 13193 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13194 *) enable_dlopen_self=unknown ;; 13195 esac 13196 13197 case $lt_cv_dlopen_self_static in 13198 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13199 *) enable_dlopen_self_static=unknown ;; 13200 esac 13201fi 13202 13203 13204# The else clause should only fire when bootstrapping the 13205# libtool distribution, otherwise you forgot to ship ltmain.sh 13206# with your package, and you will get complaints that there are 13207# no rules to generate ltmain.sh. 13208if test -f "$ltmain"; then 13209 # See if we are running on zsh, and set the options which allow our commands through 13210 # without removal of \ escapes. 13211 if test -n "${ZSH_VERSION+set}" ; then 13212 setopt NO_GLOB_SUBST 13213 fi 13214 # Now quote all the things that may contain metacharacters while being 13215 # careful not to overquote the AC_SUBSTed values. We take copies of the 13216 # variables and quote the copies for generation of the libtool script. 13217 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13218 SED SHELL STRIP \ 13219 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13220 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13221 deplibs_check_method reload_flag reload_cmds need_locks \ 13222 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13223 lt_cv_sys_global_symbol_to_c_name_address \ 13224 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13225 old_postinstall_cmds old_postuninstall_cmds \ 13226 compiler_CXX \ 13227 CC_CXX \ 13228 LD_CXX \ 13229 lt_prog_compiler_wl_CXX \ 13230 lt_prog_compiler_pic_CXX \ 13231 lt_prog_compiler_static_CXX \ 13232 lt_prog_compiler_no_builtin_flag_CXX \ 13233 export_dynamic_flag_spec_CXX \ 13234 thread_safe_flag_spec_CXX \ 13235 whole_archive_flag_spec_CXX \ 13236 enable_shared_with_static_runtimes_CXX \ 13237 old_archive_cmds_CXX \ 13238 old_archive_from_new_cmds_CXX \ 13239 predep_objects_CXX \ 13240 postdep_objects_CXX \ 13241 predeps_CXX \ 13242 postdeps_CXX \ 13243 compiler_lib_search_path_CXX \ 13244 archive_cmds_CXX \ 13245 archive_expsym_cmds_CXX \ 13246 postinstall_cmds_CXX \ 13247 postuninstall_cmds_CXX \ 13248 old_archive_from_expsyms_cmds_CXX \ 13249 allow_undefined_flag_CXX \ 13250 no_undefined_flag_CXX \ 13251 export_symbols_cmds_CXX \ 13252 hardcode_libdir_flag_spec_CXX \ 13253 hardcode_libdir_flag_spec_ld_CXX \ 13254 hardcode_libdir_separator_CXX \ 13255 hardcode_automatic_CXX \ 13256 module_cmds_CXX \ 13257 module_expsym_cmds_CXX \ 13258 lt_cv_prog_compiler_c_o_CXX \ 13259 exclude_expsyms_CXX \ 13260 include_expsyms_CXX; do 13261 13262 case $var in 13263 old_archive_cmds_CXX | \ 13264 old_archive_from_new_cmds_CXX | \ 13265 archive_cmds_CXX | \ 13266 archive_expsym_cmds_CXX | \ 13267 module_cmds_CXX | \ 13268 module_expsym_cmds_CXX | \ 13269 old_archive_from_expsyms_cmds_CXX | \ 13270 export_symbols_cmds_CXX | \ 13271 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13272 postinstall_cmds | postuninstall_cmds | \ 13273 old_postinstall_cmds | old_postuninstall_cmds | \ 13274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13275 # Double-quote double-evaled strings. 13276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13277 ;; 13278 *) 13279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13280 ;; 13281 esac 13282 done 13283 13284 case $lt_echo in 13285 *'\$0 --fallback-echo"') 13286 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13287 ;; 13288 esac 13289 13290cfgfile="$ofile" 13291 13292 cat <<__EOF__ >> "$cfgfile" 13293# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13294 13295# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13296 13297# Shell to use when invoking shell scripts. 13298SHELL=$lt_SHELL 13299 13300# Whether or not to build shared libraries. 13301build_libtool_libs=$enable_shared 13302 13303# Whether or not to build static libraries. 13304build_old_libs=$enable_static 13305 13306# Whether or not to add -lc for building shared libraries. 13307build_libtool_need_lc=$archive_cmds_need_lc_CXX 13308 13309# Whether or not to disallow shared libs when runtime libs are static 13310allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13311 13312# Whether or not to optimize for fast installation. 13313fast_install=$enable_fast_install 13314 13315# The host system. 13316host_alias=$host_alias 13317host=$host 13318host_os=$host_os 13319 13320# The build system. 13321build_alias=$build_alias 13322build=$build 13323build_os=$build_os 13324 13325# An echo program that does not interpret backslashes. 13326echo=$lt_echo 13327 13328# The archiver. 13329AR=$lt_AR 13330AR_FLAGS=$lt_AR_FLAGS 13331 13332# A C compiler. 13333LTCC=$lt_LTCC 13334 13335# A language-specific compiler. 13336CC=$lt_compiler_CXX 13337 13338# Is the compiler the GNU C compiler? 13339with_gcc=$GCC_CXX 13340 13341# An ERE matcher. 13342EGREP=$lt_EGREP 13343 13344# The linker used to build libraries. 13345LD=$lt_LD_CXX 13346 13347# Whether we need hard or soft links. 13348LN_S=$lt_LN_S 13349 13350# A BSD-compatible nm program. 13351NM=$lt_NM 13352 13353# A symbol stripping program 13354STRIP=$lt_STRIP 13355 13356# Used to examine libraries when file_magic_cmd begins "file" 13357MAGIC_CMD=$MAGIC_CMD 13358 13359# Used on cygwin: DLL creation program. 13360DLLTOOL="$DLLTOOL" 13361 13362# Used on cygwin: object dumper. 13363OBJDUMP="$OBJDUMP" 13364 13365# Used on cygwin: assembler. 13366AS="$AS" 13367 13368# The name of the directory that contains temporary libtool files. 13369objdir=$objdir 13370 13371# How to create reloadable object files. 13372reload_flag=$lt_reload_flag 13373reload_cmds=$lt_reload_cmds 13374 13375# How to pass a linker flag through the compiler. 13376wl=$lt_lt_prog_compiler_wl_CXX 13377 13378# Object file suffix (normally "o"). 13379objext="$ac_objext" 13380 13381# Old archive suffix (normally "a"). 13382libext="$libext" 13383 13384# Shared library suffix (normally ".so"). 13385shrext_cmds='$shrext_cmds' 13386 13387# Executable file suffix (normally ""). 13388exeext="$exeext" 13389 13390# Additional compiler flags for building library objects. 13391pic_flag=$lt_lt_prog_compiler_pic_CXX 13392pic_mode=$pic_mode 13393 13394# What is the maximum length of a command? 13395max_cmd_len=$lt_cv_sys_max_cmd_len 13396 13397# Does compiler simultaneously support -c and -o options? 13398compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13399 13400# Must we lock files when doing compilation? 13401need_locks=$lt_need_locks 13402 13403# Do we need the lib prefix for modules? 13404need_lib_prefix=$need_lib_prefix 13405 13406# Do we need a version for libraries? 13407need_version=$need_version 13408 13409# Whether dlopen is supported. 13410dlopen_support=$enable_dlopen 13411 13412# Whether dlopen of programs is supported. 13413dlopen_self=$enable_dlopen_self 13414 13415# Whether dlopen of statically linked programs is supported. 13416dlopen_self_static=$enable_dlopen_self_static 13417 13418# Compiler flag to prevent dynamic linking. 13419link_static_flag=$lt_lt_prog_compiler_static_CXX 13420 13421# Compiler flag to turn off builtin functions. 13422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13423 13424# Compiler flag to allow reflexive dlopens. 13425export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13426 13427# Compiler flag to generate shared objects directly from archives. 13428whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13429 13430# Compiler flag to generate thread-safe objects. 13431thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13432 13433# Library versioning type. 13434version_type=$version_type 13435 13436# Format of library name prefix. 13437libname_spec=$lt_libname_spec 13438 13439# List of archive names. First name is the real one, the rest are links. 13440# The last name is the one that the linker finds with -lNAME. 13441library_names_spec=$lt_library_names_spec 13442 13443# The coded name of the library, if different from the real name. 13444soname_spec=$lt_soname_spec 13445 13446# Commands used to build and install an old-style archive. 13447RANLIB=$lt_RANLIB 13448old_archive_cmds=$lt_old_archive_cmds_CXX 13449old_postinstall_cmds=$lt_old_postinstall_cmds 13450old_postuninstall_cmds=$lt_old_postuninstall_cmds 13451 13452# Create an old-style archive from a shared archive. 13453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13454 13455# Create a temporary old-style archive to link instead of a shared archive. 13456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13457 13458# Commands used to build and install a shared archive. 13459archive_cmds=$lt_archive_cmds_CXX 13460archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13461postinstall_cmds=$lt_postinstall_cmds 13462postuninstall_cmds=$lt_postuninstall_cmds 13463 13464# Commands used to build a loadable module (assumed same as above if empty) 13465module_cmds=$lt_module_cmds_CXX 13466module_expsym_cmds=$lt_module_expsym_cmds_CXX 13467 13468# Commands to strip libraries. 13469old_striplib=$lt_old_striplib 13470striplib=$lt_striplib 13471 13472# Dependencies to place before the objects being linked to create a 13473# shared library. 13474predep_objects=$lt_predep_objects_CXX 13475 13476# Dependencies to place after the objects being linked to create a 13477# shared library. 13478postdep_objects=$lt_postdep_objects_CXX 13479 13480# Dependencies to place before the objects being linked to create a 13481# shared library. 13482predeps=$lt_predeps_CXX 13483 13484# Dependencies to place after the objects being linked to create a 13485# shared library. 13486postdeps=$lt_postdeps_CXX 13487 13488# The library search path used internally by the compiler when linking 13489# a shared library. 13490compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13491 13492# Method to check whether dependent libraries are shared objects. 13493deplibs_check_method=$lt_deplibs_check_method 13494 13495# Command to use when deplibs_check_method == file_magic. 13496file_magic_cmd=$lt_file_magic_cmd 13497 13498# Flag that allows shared libraries with undefined symbols to be built. 13499allow_undefined_flag=$lt_allow_undefined_flag_CXX 13500 13501# Flag that forces no undefined symbols. 13502no_undefined_flag=$lt_no_undefined_flag_CXX 13503 13504# Commands used to finish a libtool library installation in a directory. 13505finish_cmds=$lt_finish_cmds 13506 13507# Same as above, but a single script fragment to be evaled but not shown. 13508finish_eval=$lt_finish_eval 13509 13510# Take the output of nm and produce a listing of raw symbols and C names. 13511global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13512 13513# Transform the output of nm in a proper C declaration 13514global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13515 13516# Transform the output of nm in a C name address pair 13517global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13518 13519# This is the shared library runtime path variable. 13520runpath_var=$runpath_var 13521 13522# This is the shared library path variable. 13523shlibpath_var=$shlibpath_var 13524 13525# Is shlibpath searched before the hard-coded library search path? 13526shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13527 13528# How to hardcode a shared library path into an executable. 13529hardcode_action=$hardcode_action_CXX 13530 13531# Whether we should hardcode library paths into libraries. 13532hardcode_into_libs=$hardcode_into_libs 13533 13534# Flag to hardcode \$libdir into a binary during linking. 13535# This must work even if \$libdir does not exist. 13536hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13537 13538# If ld is used when linking, flag to hardcode \$libdir into 13539# a binary during linking. This must work even if \$libdir does 13540# not exist. 13541hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13542 13543# Whether we need a single -rpath flag with a separated argument. 13544hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13545 13546# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13547# resulting binary. 13548hardcode_direct=$hardcode_direct_CXX 13549 13550# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13551# resulting binary. 13552hardcode_minus_L=$hardcode_minus_L_CXX 13553 13554# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13555# the resulting binary. 13556hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13557 13558# Set to yes if building a shared library automatically hardcodes DIR into the library 13559# and all subsequent libraries and executables linked against it. 13560hardcode_automatic=$hardcode_automatic_CXX 13561 13562# Variables whose values should be saved in libtool wrapper scripts and 13563# restored at relink time. 13564variables_saved_for_relink="$variables_saved_for_relink" 13565 13566# Whether libtool must link a program against all its dependency libraries. 13567link_all_deplibs=$link_all_deplibs_CXX 13568 13569# Compile-time system search path for libraries 13570sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13571 13572# Run-time system search path for libraries 13573sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13574 13575# Fix the shell variable \$srcfile for the compiler. 13576fix_srcfile_path="$fix_srcfile_path_CXX" 13577 13578# Set to yes if exported symbols are required. 13579always_export_symbols=$always_export_symbols_CXX 13580 13581# The commands to list exported symbols. 13582export_symbols_cmds=$lt_export_symbols_cmds_CXX 13583 13584# The commands to extract the exported symbol list from a shared archive. 13585extract_expsyms_cmds=$lt_extract_expsyms_cmds 13586 13587# Symbols that should not be listed in the preloaded symbols. 13588exclude_expsyms=$lt_exclude_expsyms_CXX 13589 13590# Symbols that must always be exported. 13591include_expsyms=$lt_include_expsyms_CXX 13592 13593# ### END LIBTOOL TAG CONFIG: $tagname 13594 13595__EOF__ 13596 13597 13598else 13599 # If there is no Makefile yet, we rely on a make rule to execute 13600 # `config.status --recheck' to rerun these tests and create the 13601 # libtool script then. 13602 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13603 if test -f "$ltmain_in"; then 13604 test -f Makefile && make "$ltmain" 13605 fi 13606fi 13607 13608 13609ac_ext=c 13610ac_cpp='$CPP $CPPFLAGS' 13611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13613ac_compiler_gnu=$ac_cv_c_compiler_gnu 13614 13615CC=$lt_save_CC 13616LDCXX=$LD 13617LD=$lt_save_LD 13618GCC=$lt_save_GCC 13619with_gnu_ldcxx=$with_gnu_ld 13620with_gnu_ld=$lt_save_with_gnu_ld 13621lt_cv_path_LDCXX=$lt_cv_path_LD 13622lt_cv_path_LD=$lt_save_path_LD 13623lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13624lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13625 13626 else 13627 tagname="" 13628 fi 13629 ;; 13630 13631 F77) 13632 if test -n "$F77" && test "X$F77" != "Xno"; then 13633 13634ac_ext=f 13635ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13636ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13637ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13638 13639 13640archive_cmds_need_lc_F77=no 13641allow_undefined_flag_F77= 13642always_export_symbols_F77=no 13643archive_expsym_cmds_F77= 13644export_dynamic_flag_spec_F77= 13645hardcode_direct_F77=no 13646hardcode_libdir_flag_spec_F77= 13647hardcode_libdir_flag_spec_ld_F77= 13648hardcode_libdir_separator_F77= 13649hardcode_minus_L_F77=no 13650hardcode_automatic_F77=no 13651module_cmds_F77= 13652module_expsym_cmds_F77= 13653link_all_deplibs_F77=unknown 13654old_archive_cmds_F77=$old_archive_cmds 13655no_undefined_flag_F77= 13656whole_archive_flag_spec_F77= 13657enable_shared_with_static_runtimes_F77=no 13658 13659# Source file extension for f77 test sources. 13660ac_ext=f 13661 13662# Object file extension for compiled f77 test sources. 13663objext=o 13664objext_F77=$objext 13665 13666# Code to be used in simple compile tests 13667lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13668 13669# Code to be used in simple link tests 13670lt_simple_link_test_code=" program t\n end\n" 13671 13672# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13673 13674# If no C compiler was specified, use CC. 13675LTCC=${LTCC-"$CC"} 13676 13677# Allow CC to be a program name with arguments. 13678compiler=$CC 13679 13680 13681# save warnings/boilerplate of simple test code 13682ac_outfile=conftest.$ac_objext 13683printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13685_lt_compiler_boilerplate=`cat conftest.err` 13686$rm conftest* 13687 13688ac_outfile=conftest.$ac_objext 13689printf "$lt_simple_link_test_code" >conftest.$ac_ext 13690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13691_lt_linker_boilerplate=`cat conftest.err` 13692$rm conftest* 13693 13694 13695# Allow CC to be a program name with arguments. 13696lt_save_CC="$CC" 13697CC=${F77-"f77"} 13698compiler=$CC 13699compiler_F77=$CC 13700for cc_temp in $compiler""; do 13701 case $cc_temp in 13702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13704 \-*) ;; 13705 *) break;; 13706 esac 13707done 13708cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13709 13710 13711echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13712echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13713echo "$as_me:$LINENO: result: $can_build_shared" >&5 13714echo "${ECHO_T}$can_build_shared" >&6 13715 13716echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13717echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13718test "$can_build_shared" = "no" && enable_shared=no 13719 13720# On AIX, shared libraries and static libraries use the same namespace, and 13721# are all built from PIC. 13722case $host_os in 13723aix3*) 13724 test "$enable_shared" = yes && enable_static=no 13725 if test -n "$RANLIB"; then 13726 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13727 postinstall_cmds='$RANLIB $lib' 13728 fi 13729 ;; 13730aix4* | aix5*) 13731 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13732 test "$enable_shared" = yes && enable_static=no 13733 fi 13734 ;; 13735esac 13736echo "$as_me:$LINENO: result: $enable_shared" >&5 13737echo "${ECHO_T}$enable_shared" >&6 13738 13739echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13740echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13741# Make sure either enable_shared or enable_static is yes. 13742test "$enable_shared" = yes || enable_static=yes 13743echo "$as_me:$LINENO: result: $enable_static" >&5 13744echo "${ECHO_T}$enable_static" >&6 13745 13746test "$ld_shlibs_F77" = no && can_build_shared=no 13747 13748GCC_F77="$G77" 13749LD_F77="$LD" 13750 13751lt_prog_compiler_wl_F77= 13752lt_prog_compiler_pic_F77= 13753lt_prog_compiler_static_F77= 13754 13755echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13756echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13757 13758 if test "$GCC" = yes; then 13759 lt_prog_compiler_wl_F77='-Wl,' 13760 lt_prog_compiler_static_F77='-static' 13761 13762 case $host_os in 13763 aix*) 13764 # All AIX code is PIC. 13765 if test "$host_cpu" = ia64; then 13766 # AIX 5 now supports IA64 processor 13767 lt_prog_compiler_static_F77='-Bstatic' 13768 fi 13769 ;; 13770 13771 amigaos*) 13772 # FIXME: we need at least 68020 code to build shared libraries, but 13773 # adding the `-m68020' flag to GCC prevents building anything better, 13774 # like `-m68040'. 13775 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13776 ;; 13777 13778 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 13779 | osf5*) 13780 # PIC is the default for these OSes. 13781 ;; 13782 13783 mingw* | pw32* | os2*) 13784 # This hack is so that the source file can tell whether it is being 13785 # built for inclusion in a dll (and should export symbols for example). 13786 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13787 ;; 13788 13789 darwin* | rhapsody*) 13790 # PIC is the default on this platform 13791 # Common symbols not allowed in MH_DYLIB files 13792 lt_prog_compiler_pic_F77='-fno-common' 13793 ;; 13794 13795 msdosdjgpp*) 13796 # Just because we use GCC doesn't mean we suddenly get shared libraries 13797 # on systems that don't support them. 13798 lt_prog_compiler_can_build_shared_F77=no 13799 enable_shared=no 13800 ;; 13801 13802 sysv4*MP*) 13803 if test -d /usr/nec; then 13804 lt_prog_compiler_pic_F77=-Kconform_pic 13805 fi 13806 ;; 13807 13808 hpux*) 13809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13810 # not for PA HP-UX. 13811 case $host_cpu in 13812 hppa*64*|ia64*) 13813 # +Z the default 13814 ;; 13815 *) 13816 lt_prog_compiler_pic_F77='-fPIC' 13817 ;; 13818 esac 13819 ;; 13820 13821 *) 13822 lt_prog_compiler_pic_F77='-fPIC' 13823 ;; 13824 esac 13825 else 13826 # PORTME Check for flag to pass linker flags through the system compiler. 13827 case $host_os in 13828 aix*) 13829 lt_prog_compiler_wl_F77='-Wl,' 13830 if test "$host_cpu" = ia64; then 13831 # AIX 5 now supports IA64 processor 13832 lt_prog_compiler_static_F77='-Bstatic' 13833 else 13834 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13835 fi 13836 ;; 13837 darwin*) 13838 # PIC is the default on this platform 13839 # Common symbols not allowed in MH_DYLIB files 13840 case $cc_basename in 13841 xlc*) 13842 lt_prog_compiler_pic_F77='-qnocommon' 13843 lt_prog_compiler_wl_F77='-Wl,' 13844 ;; 13845 esac 13846 ;; 13847 13848 mingw* | pw32* | os2*) 13849 # This hack is so that the source file can tell whether it is being 13850 # built for inclusion in a dll (and should export symbols for example). 13851 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13852 ;; 13853 13854 hpux9* | hpux10* | hpux11*) 13855 lt_prog_compiler_wl_F77='-Wl,' 13856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13857 # not for PA HP-UX. 13858 case $host_cpu in 13859 hppa*64*|ia64*) 13860 # +Z the default 13861 ;; 13862 *) 13863 lt_prog_compiler_pic_F77='+Z' 13864 ;; 13865 esac 13866 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13867 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13868 ;; 13869 13870 irix5* | irix6* | nonstopux*) 13871 lt_prog_compiler_wl_F77='-Wl,' 13872 # PIC (with -KPIC) is the default. 13873 lt_prog_compiler_static_F77='-non_shared' 13874 ;; 13875 13876 newsos6) 13877 lt_prog_compiler_pic_F77='-KPIC' 13878 lt_prog_compiler_static_F77='-Bstatic' 13879 ;; 13880 13881 linux*) 13882 case $cc_basename in 13883 icc* | ecc*) 13884 lt_prog_compiler_wl_F77='-Wl,' 13885 lt_prog_compiler_pic_F77='-KPIC' 13886 lt_prog_compiler_static_F77='-static' 13887 ;; 13888 pgcc* | pgf77* | pgf90* | pgf95*) 13889 # Portland Group compilers (*not* the Pentium gcc compiler, 13890 # which looks to be a dead project) 13891 lt_prog_compiler_wl_F77='-Wl,' 13892 lt_prog_compiler_pic_F77='-fpic' 13893 lt_prog_compiler_static_F77='-Bstatic' 13894 ;; 13895 ccc*) 13896 lt_prog_compiler_wl_F77='-Wl,' 13897 # All Alpha code is PIC. 13898 lt_prog_compiler_static_F77='-non_shared' 13899 ;; 13900 esac 13901 ;; 13902 13903 osf3* | osf4* | osf5*) 13904 lt_prog_compiler_wl_F77='-Wl,' 13905 # All OSF/1 code is PIC. 13906 lt_prog_compiler_static_F77='-non_shared' 13907 ;; 13908 13909 sco3.2v5*) 13910 lt_prog_compiler_pic_F77='-Kpic' 13911 lt_prog_compiler_static_F77='-dn' 13912 ;; 13913 13914 solaris*) 13915 lt_prog_compiler_pic_F77='-KPIC' 13916 lt_prog_compiler_static_F77='-Bstatic' 13917 case $cc_basename in 13918 f77* | f90* | f95*) 13919 lt_prog_compiler_wl_F77='-Qoption ld ';; 13920 *) 13921 lt_prog_compiler_wl_F77='-Wl,';; 13922 esac 13923 ;; 13924 13925 sunos4*) 13926 lt_prog_compiler_wl_F77='-Qoption ld ' 13927 lt_prog_compiler_pic_F77='-PIC' 13928 lt_prog_compiler_static_F77='-Bstatic' 13929 ;; 13930 13931 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13932 lt_prog_compiler_wl_F77='-Wl,' 13933 lt_prog_compiler_pic_F77='-KPIC' 13934 lt_prog_compiler_static_F77='-Bstatic' 13935 ;; 13936 13937 sysv4*MP*) 13938 if test -d /usr/nec ;then 13939 lt_prog_compiler_pic_F77='-Kconform_pic' 13940 lt_prog_compiler_static_F77='-Bstatic' 13941 fi 13942 ;; 13943 13944 unicos*) 13945 lt_prog_compiler_wl_F77='-Wl,' 13946 lt_prog_compiler_can_build_shared_F77=no 13947 ;; 13948 13949 uts4*) 13950 lt_prog_compiler_pic_F77='-pic' 13951 lt_prog_compiler_static_F77='-Bstatic' 13952 ;; 13953 13954 *) 13955 lt_prog_compiler_can_build_shared_F77=no 13956 ;; 13957 esac 13958 fi 13959 13960echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13961echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13962 13963# 13964# Check to make sure the PIC flag actually works. 13965# 13966if test -n "$lt_prog_compiler_pic_F77"; then 13967 13968echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13969echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13970if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13971 echo $ECHO_N "(cached) $ECHO_C" >&6 13972else 13973 lt_prog_compiler_pic_works_F77=no 13974 ac_outfile=conftest.$ac_objext 13975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13976 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13977 # Insert the option either (1) after the last *FLAGS variable, or 13978 # (2) before a word containing "conftest.", or (3) at the end. 13979 # Note that $ac_compile itself does not contain backslashes and begins 13980 # with a dollar sign (not a hyphen), so the echo should work correctly. 13981 # The option is referenced via a variable to avoid confusing sed. 13982 lt_compile=`echo "$ac_compile" | $SED \ 13983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13985 -e 's:$: $lt_compiler_flag:'` 13986 (eval echo "\"\$as_me:13986: $lt_compile\"" >&5) 13987 (eval "$lt_compile" 2>conftest.err) 13988 ac_status=$? 13989 cat conftest.err >&5 13990 echo "$as_me:13990: \$? = $ac_status" >&5 13991 if (exit $ac_status) && test -s "$ac_outfile"; then 13992 # The compiler can only warn and ignore the option if not recognized 13993 # So say no if there are warnings other than the usual output. 13994 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13995 $SED '/^$/d' conftest.err >conftest.er2 13996 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13997 lt_prog_compiler_pic_works_F77=yes 13998 fi 13999 fi 14000 $rm conftest* 14001 14002fi 14003echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14004echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14005 14006if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14007 case $lt_prog_compiler_pic_F77 in 14008 "" | " "*) ;; 14009 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14010 esac 14011else 14012 lt_prog_compiler_pic_F77= 14013 lt_prog_compiler_can_build_shared_F77=no 14014fi 14015 14016fi 14017case $host_os in 14018 # For platforms which do not support PIC, -DPIC is meaningless: 14019 *djgpp*) 14020 lt_prog_compiler_pic_F77= 14021 ;; 14022 *) 14023 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14024 ;; 14025esac 14026 14027echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14028echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14029if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14030 echo $ECHO_N "(cached) $ECHO_C" >&6 14031else 14032 lt_cv_prog_compiler_c_o_F77=no 14033 $rm -r conftest 2>/dev/null 14034 mkdir conftest 14035 cd conftest 14036 mkdir out 14037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14038 14039 lt_compiler_flag="-o out/conftest2.$ac_objext" 14040 # Insert the option either (1) after the last *FLAGS variable, or 14041 # (2) before a word containing "conftest.", or (3) at the end. 14042 # Note that $ac_compile itself does not contain backslashes and begins 14043 # with a dollar sign (not a hyphen), so the echo should work correctly. 14044 lt_compile=`echo "$ac_compile" | $SED \ 14045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14047 -e 's:$: $lt_compiler_flag:'` 14048 (eval echo "\"\$as_me:14048: $lt_compile\"" >&5) 14049 (eval "$lt_compile" 2>out/conftest.err) 14050 ac_status=$? 14051 cat out/conftest.err >&5 14052 echo "$as_me:14052: \$? = $ac_status" >&5 14053 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14054 then 14055 # The compiler can only warn and ignore the option if not recognized 14056 # So say no if there are warnings 14057 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 14058 $SED '/^$/d' out/conftest.err >out/conftest.er2 14059 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14060 lt_cv_prog_compiler_c_o_F77=yes 14061 fi 14062 fi 14063 chmod u+w . 2>&5 14064 $rm conftest* 14065 # SGI C++ compiler will create directory out/ii_files/ for 14066 # template instantiation 14067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14068 $rm out/* && rmdir out 14069 cd .. 14070 rmdir conftest 14071 $rm conftest* 14072 14073fi 14074echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14075echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14076 14077 14078hard_links="nottested" 14079if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14080 # do not overwrite the value of need_locks provided by the user 14081 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14082echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14083 hard_links=yes 14084 $rm conftest* 14085 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14086 touch conftest.a 14087 ln conftest.a conftest.b 2>&5 || hard_links=no 14088 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14089 echo "$as_me:$LINENO: result: $hard_links" >&5 14090echo "${ECHO_T}$hard_links" >&6 14091 if test "$hard_links" = no; then 14092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14093echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14094 need_locks=warn 14095 fi 14096else 14097 need_locks=no 14098fi 14099 14100echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14101echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14102 14103 runpath_var= 14104 allow_undefined_flag_F77= 14105 enable_shared_with_static_runtimes_F77=no 14106 archive_cmds_F77= 14107 archive_expsym_cmds_F77= 14108 old_archive_From_new_cmds_F77= 14109 old_archive_from_expsyms_cmds_F77= 14110 export_dynamic_flag_spec_F77= 14111 whole_archive_flag_spec_F77= 14112 thread_safe_flag_spec_F77= 14113 hardcode_libdir_flag_spec_F77= 14114 hardcode_libdir_flag_spec_ld_F77= 14115 hardcode_libdir_separator_F77= 14116 hardcode_direct_F77=no 14117 hardcode_minus_L_F77=no 14118 hardcode_shlibpath_var_F77=unsupported 14119 link_all_deplibs_F77=unknown 14120 hardcode_automatic_F77=no 14121 module_cmds_F77= 14122 module_expsym_cmds_F77= 14123 always_export_symbols_F77=no 14124 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14125 # include_expsyms should be a list of space-separated symbols to be *always* 14126 # included in the symbol list 14127 include_expsyms_F77= 14128 # exclude_expsyms can be an extended regexp of symbols to exclude 14129 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14131 # as well as any symbol that contains `d'. 14132 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14134 # platforms (ab)use it in PIC code, but their linkers get confused if 14135 # the symbol is explicitly referenced. Since portable code cannot 14136 # rely on this symbol name, it's probably fine to never include it in 14137 # preloaded symbol tables. 14138 extract_expsyms_cmds= 14139 # Just being paranoid about ensuring that cc_basename is set. 14140 for cc_temp in $compiler""; do 14141 case $cc_temp in 14142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14144 \-*) ;; 14145 *) break;; 14146 esac 14147done 14148cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14149 14150 case $host_os in 14151 cygwin* | mingw* | pw32*) 14152 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14153 # When not using gcc, we currently assume that we are using 14154 # Microsoft Visual C++. 14155 if test "$GCC" != yes; then 14156 with_gnu_ld=no 14157 fi 14158 ;; 14159 openbsd*) 14160 with_gnu_ld=no 14161 ;; 14162 esac 14163 14164 ld_shlibs_F77=yes 14165 if test "$with_gnu_ld" = yes; then 14166 # If archive_cmds runs LD, not CC, wlarc should be empty 14167 wlarc='${wl}' 14168 14169 # Set some defaults for GNU ld with shared library support. These 14170 # are reset later if shared libraries are not supported. Putting them 14171 # here allows them to be overridden if necessary. 14172 runpath_var=LD_RUN_PATH 14173 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14174 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14175 # ancient GNU ld didn't support --whole-archive et. al. 14176 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14177 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14178 else 14179 whole_archive_flag_spec_F77= 14180 fi 14181 supports_anon_versioning=no 14182 case `$LD -v 2>/dev/null` in 14183 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14184 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14185 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14186 *\ 2.11.*) ;; # other 2.11 versions 14187 *) supports_anon_versioning=yes ;; 14188 esac 14189 14190 # See if GNU ld supports shared libraries. 14191 case $host_os in 14192 aix3* | aix4* | aix5*) 14193 # On AIX/PPC, the GNU linker is very broken 14194 if test "$host_cpu" != ia64; then 14195 ld_shlibs_F77=no 14196 cat <<EOF 1>&2 14197 14198*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14199*** to be unable to reliably create shared libraries on AIX. 14200*** Therefore, libtool is disabling shared libraries support. If you 14201*** really care for shared libraries, you may want to modify your PATH 14202*** so that a non-GNU linker is found, and then restart. 14203 14204EOF 14205 fi 14206 ;; 14207 14208 amigaos*) 14209 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)' 14210 hardcode_libdir_flag_spec_F77='-L$libdir' 14211 hardcode_minus_L_F77=yes 14212 14213 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14214 # that the semantics of dynamic libraries on AmigaOS, at least up 14215 # to version 4, is to share data among multiple programs linked 14216 # with the same dynamic library. Since this doesn't match the 14217 # behavior of shared libraries on other platforms, we can't use 14218 # them. 14219 ld_shlibs_F77=no 14220 ;; 14221 14222 beos*) 14223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14224 allow_undefined_flag_F77=unsupported 14225 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14226 # support --undefined. This deserves some investigation. FIXME 14227 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14228 else 14229 ld_shlibs_F77=no 14230 fi 14231 ;; 14232 14233 cygwin* | mingw* | pw32*) 14234 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14235 # as there is no search path for DLLs. 14236 hardcode_libdir_flag_spec_F77='-L$libdir' 14237 allow_undefined_flag_F77=unsupported 14238 always_export_symbols_F77=no 14239 enable_shared_with_static_runtimes_F77=yes 14240 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14241 14242 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14243 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14244 # If the export-symbols file already is a .def file (1st line 14245 # is EXPORTS), use it as is; otherwise, prepend... 14246 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14247 cp $export_symbols $output_objdir/$soname.def; 14248 else 14249 echo EXPORTS > $output_objdir/$soname.def; 14250 cat $export_symbols >> $output_objdir/$soname.def; 14251 fi~ 14252 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14253 else 14254 ld_shlibs_F77=no 14255 fi 14256 ;; 14257 14258 haiku*) 14259 allow_undefined_flag_F77=unsupported 14260 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14261 ;; 14262 14263 linux*) 14264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14265 tmp_addflag= 14266 case $cc_basename,$host_cpu in 14267 pgcc*) # Portland Group C compiler 14268 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14269 tmp_addflag=' $pic_flag' 14270 ;; 14271 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14272 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14273 tmp_addflag=' $pic_flag -Mnomain' ;; 14274 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14275 tmp_addflag=' -i_dynamic' ;; 14276 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14277 tmp_addflag=' -i_dynamic -nofor_main' ;; 14278 ifc* | ifort*) # Intel Fortran compiler 14279 tmp_addflag=' -nofor_main' ;; 14280 esac 14281 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14282 14283 if test $supports_anon_versioning = yes; then 14284 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14285 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14286 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14287 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14288 fi 14289 else 14290 ld_shlibs_F77=no 14291 fi 14292 ;; 14293 14294 netbsd*) 14295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14296 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14297 wlarc= 14298 else 14299 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14300 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14301 fi 14302 ;; 14303 14304 solaris* | sysv5*) 14305 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14306 ld_shlibs_F77=no 14307 cat <<EOF 1>&2 14308 14309*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14310*** create shared libraries on Solaris systems. Therefore, libtool 14311*** is disabling shared libraries support. We urge you to upgrade GNU 14312*** binutils to release 2.9.1 or newer. Another option is to modify 14313*** your PATH or compiler configuration so that the native linker is 14314*** used, and then restart. 14315 14316EOF 14317 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14318 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14319 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14320 else 14321 ld_shlibs_F77=no 14322 fi 14323 ;; 14324 14325 sunos4*) 14326 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14327 wlarc= 14328 hardcode_direct_F77=yes 14329 hardcode_shlibpath_var_F77=no 14330 ;; 14331 14332 *) 14333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14334 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14335 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14336 else 14337 ld_shlibs_F77=no 14338 fi 14339 ;; 14340 esac 14341 14342 if test "$ld_shlibs_F77" = no; then 14343 runpath_var= 14344 hardcode_libdir_flag_spec_F77= 14345 export_dynamic_flag_spec_F77= 14346 whole_archive_flag_spec_F77= 14347 fi 14348 else 14349 # PORTME fill in a description of your system's linker (not GNU ld) 14350 case $host_os in 14351 aix3*) 14352 allow_undefined_flag_F77=unsupported 14353 always_export_symbols_F77=yes 14354 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' 14355 # Note: this linker hardcodes the directories in LIBPATH if there 14356 # are no directories specified by -L. 14357 hardcode_minus_L_F77=yes 14358 if test "$GCC" = yes && test -z "$link_static_flag"; then 14359 # Neither direct hardcoding nor static linking is supported with a 14360 # broken collect2. 14361 hardcode_direct_F77=unsupported 14362 fi 14363 ;; 14364 14365 aix4* | aix5*) 14366 if test "$host_cpu" = ia64; then 14367 # On IA64, the linker does run time linking by default, so we don't 14368 # have to do anything special. 14369 aix_use_runtimelinking=no 14370 exp_sym_flag='-Bexport' 14371 no_entry_flag="" 14372 else 14373 # If we're using GNU nm, then we don't want the "-C" option. 14374 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14375 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14376 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' 14377 else 14378 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' 14379 fi 14380 aix_use_runtimelinking=no 14381 14382 # Test if we are trying to use run time linking or normal 14383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14384 # need to do runtime linking. 14385 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14386 for ld_flag in $LDFLAGS; do 14387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14388 aix_use_runtimelinking=yes 14389 break 14390 fi 14391 done 14392 esac 14393 14394 exp_sym_flag='-bexport' 14395 no_entry_flag='-bnoentry' 14396 fi 14397 14398 # When large executables or shared objects are built, AIX ld can 14399 # have problems creating the table of contents. If linking a library 14400 # or program results in "error TOC overflow" add -mminimal-toc to 14401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14403 14404 archive_cmds_F77='' 14405 hardcode_direct_F77=yes 14406 hardcode_libdir_separator_F77=':' 14407 link_all_deplibs_F77=yes 14408 14409 if test "$GCC" = yes; then 14410 case $host_os in aix4.[012]|aix4.[012].*) 14411 # We only want to do this on AIX 4.2 and lower, the check 14412 # below for broken collect2 doesn't work under 4.3+ 14413 collect2name=`${CC} -print-prog-name=collect2` 14414 if test -f "$collect2name" && \ 14415 strings "$collect2name" | grep resolve_lib_name >/dev/null 14416 then 14417 # We have reworked collect2 14418 hardcode_direct_F77=yes 14419 else 14420 # We have old collect2 14421 hardcode_direct_F77=unsupported 14422 # It fails to find uninstalled libraries when the uninstalled 14423 # path is not listed in the libpath. Setting hardcode_minus_L 14424 # to unsupported forces relinking 14425 hardcode_minus_L_F77=yes 14426 hardcode_libdir_flag_spec_F77='-L$libdir' 14427 hardcode_libdir_separator_F77= 14428 fi 14429 esac 14430 shared_flag='-shared' 14431 if test "$aix_use_runtimelinking" = yes; then 14432 shared_flag="$shared_flag "'${wl}-G' 14433 fi 14434 else 14435 # not using gcc 14436 if test "$host_cpu" = ia64; then 14437 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14438 # chokes on -Wl,-G. The following line is correct: 14439 shared_flag='-G' 14440 else 14441 if test "$aix_use_runtimelinking" = yes; then 14442 shared_flag='${wl}-G' 14443 else 14444 shared_flag='${wl}-bM:SRE' 14445 fi 14446 fi 14447 fi 14448 14449 # It seems that -bexpall does not export symbols beginning with 14450 # underscore (_), so it is better to generate a list of symbols to export. 14451 always_export_symbols_F77=yes 14452 if test "$aix_use_runtimelinking" = yes; then 14453 # Warning - without using the other runtime loading flags (-brtl), 14454 # -berok will link without error, but may produce a broken library. 14455 allow_undefined_flag_F77='-berok' 14456 # Determine the default libpath from the value encoded in an empty executable. 14457 cat >conftest.$ac_ext <<_ACEOF 14458 program main 14459 14460 end 14461_ACEOF 14462rm -f conftest.$ac_objext conftest$ac_exeext 14463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14464 (eval $ac_link) 2>conftest.er1 14465 ac_status=$? 14466 grep -v '^ *+' conftest.er1 >conftest.err 14467 rm -f conftest.er1 14468 cat conftest.err >&5 14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14470 (exit $ac_status); } && 14471 { ac_try='test -z "$ac_f77_werror_flag" 14472 || test ! -s conftest.err' 14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14474 (eval $ac_try) 2>&5 14475 ac_status=$? 14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14477 (exit $ac_status); }; } && 14478 { ac_try='test -s conftest$ac_exeext' 14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14480 (eval $ac_try) 2>&5 14481 ac_status=$? 14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14483 (exit $ac_status); }; }; then 14484 14485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14486}'` 14487# Check for a 64-bit object if we didn't find anything. 14488if 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; } 14489}'`; fi 14490else 14491 echo "$as_me: failed program was:" >&5 14492sed 's/^/| /' conftest.$ac_ext >&5 14493 14494fi 14495rm -f conftest.err conftest.$ac_objext \ 14496 conftest$ac_exeext conftest.$ac_ext 14497if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14498 14499 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14500 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" 14501 else 14502 if test "$host_cpu" = ia64; then 14503 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14504 allow_undefined_flag_F77="-z nodefs" 14505 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" 14506 else 14507 # Determine the default libpath from the value encoded in an empty executable. 14508 cat >conftest.$ac_ext <<_ACEOF 14509 program main 14510 14511 end 14512_ACEOF 14513rm -f conftest.$ac_objext conftest$ac_exeext 14514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14515 (eval $ac_link) 2>conftest.er1 14516 ac_status=$? 14517 grep -v '^ *+' conftest.er1 >conftest.err 14518 rm -f conftest.er1 14519 cat conftest.err >&5 14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14521 (exit $ac_status); } && 14522 { ac_try='test -z "$ac_f77_werror_flag" 14523 || test ! -s conftest.err' 14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14525 (eval $ac_try) 2>&5 14526 ac_status=$? 14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14528 (exit $ac_status); }; } && 14529 { ac_try='test -s conftest$ac_exeext' 14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14531 (eval $ac_try) 2>&5 14532 ac_status=$? 14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14534 (exit $ac_status); }; }; then 14535 14536aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14537}'` 14538# Check for a 64-bit object if we didn't find anything. 14539if 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; } 14540}'`; fi 14541else 14542 echo "$as_me: failed program was:" >&5 14543sed 's/^/| /' conftest.$ac_ext >&5 14544 14545fi 14546rm -f conftest.err conftest.$ac_objext \ 14547 conftest$ac_exeext conftest.$ac_ext 14548if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14549 14550 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14551 # Warning - without using the other run time loading flags, 14552 # -berok will link without error, but may produce a broken library. 14553 no_undefined_flag_F77=' ${wl}-bernotok' 14554 allow_undefined_flag_F77=' ${wl}-berok' 14555 # -bexpall does not export symbols beginning with underscore (_) 14556 always_export_symbols_F77=yes 14557 # Exported symbols can be pulled into shared objects from archives 14558 whole_archive_flag_spec_F77=' ' 14559 archive_cmds_need_lc_F77=yes 14560 # This is similar to how AIX traditionally builds its shared libraries. 14561 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' 14562 fi 14563 fi 14564 ;; 14565 14566 amigaos*) 14567 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)' 14568 hardcode_libdir_flag_spec_F77='-L$libdir' 14569 hardcode_minus_L_F77=yes 14570 # see comment about different semantics on the GNU ld section 14571 ld_shlibs_F77=no 14572 ;; 14573 14574 bsdi[45]*) 14575 export_dynamic_flag_spec_F77=-rdynamic 14576 ;; 14577 14578 cygwin* | mingw* | pw32*) 14579 # When not using gcc, we currently assume that we are using 14580 # Microsoft Visual C++. 14581 # hardcode_libdir_flag_spec is actually meaningless, as there is 14582 # no search path for DLLs. 14583 hardcode_libdir_flag_spec_F77=' ' 14584 allow_undefined_flag_F77=unsupported 14585 # Tell ltmain to make .lib files, not .a files. 14586 libext=lib 14587 # Tell ltmain to make .dll files, not .so files. 14588 shrext_cmds=".dll" 14589 # FIXME: Setting linknames here is a bad hack. 14590 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14591 # The linker will automatically build a .lib file if we build a DLL. 14592 old_archive_From_new_cmds_F77='true' 14593 # FIXME: Should let the user specify the lib program. 14594 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14595 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14596 enable_shared_with_static_runtimes_F77=yes 14597 ;; 14598 14599 darwin* | rhapsody*) 14600 case $host_os in 14601 rhapsody* | darwin1.[012]) 14602 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14603 ;; 14604 *) # Darwin 1.3 on 14605 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14606 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14607 else 14608 case ${MACOSX_DEPLOYMENT_TARGET} in 14609 10.[012]) 14610 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14611 ;; 14612 10.*) 14613 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14614 ;; 14615 esac 14616 fi 14617 ;; 14618 esac 14619 archive_cmds_need_lc_F77=no 14620 hardcode_direct_F77=no 14621 hardcode_automatic_F77=yes 14622 hardcode_shlibpath_var_F77=unsupported 14623 whole_archive_flag_spec_F77='' 14624 link_all_deplibs_F77=yes 14625 if test "$GCC" = yes ; then 14626 output_verbose_link_cmd='echo' 14627 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14628 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14629 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14630 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14631 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14632 else 14633 case $cc_basename in 14634 xlc*) 14635 output_verbose_link_cmd='echo' 14636 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14637 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14638 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14639 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14640 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14641 ;; 14642 *) 14643 ld_shlibs_F77=no 14644 ;; 14645 esac 14646 fi 14647 ;; 14648 14649 dgux*) 14650 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14651 hardcode_libdir_flag_spec_F77='-L$libdir' 14652 hardcode_shlibpath_var_F77=no 14653 ;; 14654 14655 freebsd1*) 14656 ld_shlibs_F77=no 14657 ;; 14658 14659 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14660 # support. Future versions do this automatically, but an explicit c++rt0.o 14661 # does not break anything, and helps significantly (at the cost of a little 14662 # extra space). 14663 freebsd2.2*) 14664 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14665 hardcode_libdir_flag_spec_F77='-R$libdir' 14666 hardcode_direct_F77=yes 14667 hardcode_shlibpath_var_F77=no 14668 ;; 14669 14670 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14671 freebsd2*) 14672 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14673 hardcode_direct_F77=yes 14674 hardcode_minus_L_F77=yes 14675 hardcode_shlibpath_var_F77=no 14676 ;; 14677 14678 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14679 freebsd* | kfreebsd*-gnu | dragonfly*) 14680 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14681 hardcode_libdir_flag_spec_F77='-R$libdir' 14682 hardcode_direct_F77=yes 14683 hardcode_shlibpath_var_F77=no 14684 ;; 14685 14686 hpux9*) 14687 if test "$GCC" = yes; then 14688 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' 14689 else 14690 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' 14691 fi 14692 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14693 hardcode_libdir_separator_F77=: 14694 hardcode_direct_F77=yes 14695 14696 # hardcode_minus_L: Not really in the search PATH, 14697 # but as the default location of the library. 14698 hardcode_minus_L_F77=yes 14699 export_dynamic_flag_spec_F77='${wl}-E' 14700 ;; 14701 14702 hpux10* | hpux11*) 14703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14704 case $host_cpu in 14705 hppa*64*|ia64*) 14706 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14707 ;; 14708 *) 14709 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14710 ;; 14711 esac 14712 else 14713 case $host_cpu in 14714 hppa*64*|ia64*) 14715 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14716 ;; 14717 *) 14718 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14719 ;; 14720 esac 14721 fi 14722 if test "$with_gnu_ld" = no; then 14723 case $host_cpu in 14724 hppa*64*) 14725 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14726 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14727 hardcode_libdir_separator_F77=: 14728 hardcode_direct_F77=no 14729 hardcode_shlibpath_var_F77=no 14730 ;; 14731 ia64*) 14732 hardcode_libdir_flag_spec_F77='-L$libdir' 14733 hardcode_direct_F77=no 14734 hardcode_shlibpath_var_F77=no 14735 14736 # hardcode_minus_L: Not really in the search PATH, 14737 # but as the default location of the library. 14738 hardcode_minus_L_F77=yes 14739 ;; 14740 *) 14741 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14742 hardcode_libdir_separator_F77=: 14743 hardcode_direct_F77=yes 14744 export_dynamic_flag_spec_F77='${wl}-E' 14745 14746 # hardcode_minus_L: Not really in the search PATH, 14747 # but as the default location of the library. 14748 hardcode_minus_L_F77=yes 14749 ;; 14750 esac 14751 fi 14752 ;; 14753 14754 irix5* | irix6* | nonstopux*) 14755 if test "$GCC" = yes; then 14756 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' 14757 else 14758 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' 14759 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14760 fi 14761 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14762 hardcode_libdir_separator_F77=: 14763 link_all_deplibs_F77=yes 14764 ;; 14765 14766 netbsd*) 14767 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14768 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14769 else 14770 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14771 fi 14772 hardcode_libdir_flag_spec_F77='-R$libdir' 14773 hardcode_direct_F77=yes 14774 hardcode_shlibpath_var_F77=no 14775 ;; 14776 14777 newsos6) 14778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14779 hardcode_direct_F77=yes 14780 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14781 hardcode_libdir_separator_F77=: 14782 hardcode_shlibpath_var_F77=no 14783 ;; 14784 14785 openbsd*) 14786 hardcode_direct_F77=yes 14787 hardcode_shlibpath_var_F77=no 14788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14789 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14790 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14791 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14792 export_dynamic_flag_spec_F77='${wl}-E' 14793 else 14794 case $host_os in 14795 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14796 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14797 hardcode_libdir_flag_spec_F77='-R$libdir' 14798 ;; 14799 *) 14800 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14801 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14802 ;; 14803 esac 14804 fi 14805 ;; 14806 14807 os2*) 14808 hardcode_libdir_flag_spec_F77='-L$libdir' 14809 hardcode_minus_L_F77=yes 14810 allow_undefined_flag_F77=unsupported 14811 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' 14812 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14813 ;; 14814 14815 osf3*) 14816 if test "$GCC" = yes; then 14817 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14818 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' 14819 else 14820 allow_undefined_flag_F77=' -expect_unresolved \*' 14821 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' 14822 fi 14823 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14824 hardcode_libdir_separator_F77=: 14825 ;; 14826 14827 osf4* | osf5*) # as osf3* with the addition of -msym flag 14828 if test "$GCC" = yes; then 14829 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14830 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' 14831 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14832 else 14833 allow_undefined_flag_F77=' -expect_unresolved \*' 14834 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' 14835 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~ 14836 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14837 14838 # Both c and cxx compiler support -rpath directly 14839 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14840 fi 14841 hardcode_libdir_separator_F77=: 14842 ;; 14843 14844 sco3.2v5*) 14845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14846 hardcode_shlibpath_var_F77=no 14847 export_dynamic_flag_spec_F77='${wl}-Bexport' 14848 runpath_var=LD_RUN_PATH 14849 hardcode_runpath_var=yes 14850 ;; 14851 14852 solaris*) 14853 no_undefined_flag_F77=' -z text' 14854 if test "$GCC" = yes; then 14855 wlarc='${wl}' 14856 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14857 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14858 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14859 else 14860 wlarc='' 14861 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14862 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14864 fi 14865 hardcode_libdir_flag_spec_F77='-R$libdir' 14866 hardcode_shlibpath_var_F77=no 14867 case $host_os in 14868 solaris2.[0-5] | solaris2.[0-5].*) ;; 14869 *) 14870 # The compiler driver will combine linker options so we 14871 # cannot just pass the convience library names through 14872 # without $wl, iff we do not link with $LD. 14873 # Luckily, gcc supports the same syntax we need for Sun Studio. 14874 # Supported since Solaris 2.6 (maybe 2.5.1?) 14875 case $wlarc in 14876 '') 14877 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14878 *) 14879 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14880 esac ;; 14881 esac 14882 link_all_deplibs_F77=yes 14883 ;; 14884 14885 sunos4*) 14886 if test "x$host_vendor" = xsequent; then 14887 # Use $CC to link under sequent, because it throws in some extra .o 14888 # files that make .init and .fini sections work. 14889 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14890 else 14891 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14892 fi 14893 hardcode_libdir_flag_spec_F77='-L$libdir' 14894 hardcode_direct_F77=yes 14895 hardcode_minus_L_F77=yes 14896 hardcode_shlibpath_var_F77=no 14897 ;; 14898 14899 sysv4) 14900 case $host_vendor in 14901 sni) 14902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14903 hardcode_direct_F77=yes # is this really true??? 14904 ;; 14905 siemens) 14906 ## LD is ld it makes a PLAMLIB 14907 ## CC just makes a GrossModule. 14908 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14909 reload_cmds_F77='$CC -r -o $output$reload_objs' 14910 hardcode_direct_F77=no 14911 ;; 14912 motorola) 14913 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14914 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14915 ;; 14916 esac 14917 runpath_var='LD_RUN_PATH' 14918 hardcode_shlibpath_var_F77=no 14919 ;; 14920 14921 sysv4.3*) 14922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14923 hardcode_shlibpath_var_F77=no 14924 export_dynamic_flag_spec_F77='-Bexport' 14925 ;; 14926 14927 sysv4*MP*) 14928 if test -d /usr/nec; then 14929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14930 hardcode_shlibpath_var_F77=no 14931 runpath_var=LD_RUN_PATH 14932 hardcode_runpath_var=yes 14933 ld_shlibs_F77=yes 14934 fi 14935 ;; 14936 14937 sysv4.2uw2*) 14938 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14939 hardcode_direct_F77=yes 14940 hardcode_minus_L_F77=no 14941 hardcode_shlibpath_var_F77=no 14942 hardcode_runpath_var=yes 14943 runpath_var=LD_RUN_PATH 14944 ;; 14945 14946 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14947 no_undefined_flag_F77='${wl}-z ${wl}text' 14948 if test "$GCC" = yes; then 14949 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14950 else 14951 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14952 fi 14953 runpath_var='LD_RUN_PATH' 14954 hardcode_shlibpath_var_F77=no 14955 ;; 14956 14957 sysv5*) 14958 no_undefined_flag_F77=' -z text' 14959 # $CC -shared without GNU ld will not create a library from C++ 14960 # object files and a static libstdc++, better avoid it by now 14961 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14962 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14964 hardcode_libdir_flag_spec_F77= 14965 hardcode_shlibpath_var_F77=no 14966 runpath_var='LD_RUN_PATH' 14967 ;; 14968 14969 uts4*) 14970 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14971 hardcode_libdir_flag_spec_F77='-L$libdir' 14972 hardcode_shlibpath_var_F77=no 14973 ;; 14974 14975 *) 14976 ld_shlibs_F77=no 14977 ;; 14978 esac 14979 fi 14980 14981echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14982echo "${ECHO_T}$ld_shlibs_F77" >&6 14983test "$ld_shlibs_F77" = no && can_build_shared=no 14984 14985variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14986if test "$GCC" = yes; then 14987 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14988fi 14989 14990# 14991# Do we need to explicitly link libc? 14992# 14993case "x$archive_cmds_need_lc_F77" in 14994x|xyes) 14995 # Assume -lc should be added 14996 archive_cmds_need_lc_F77=yes 14997 14998 if test "$enable_shared" = yes && test "$GCC" = yes; then 14999 case $archive_cmds_F77 in 15000 *'~'*) 15001 # FIXME: we may have to deal with multi-command sequences. 15002 ;; 15003 '$CC '*) 15004 # Test whether the compiler implicitly links with -lc since on some 15005 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15006 # to ld, don't add -lc before -lgcc. 15007 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15008echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15009 $rm conftest* 15010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15011 15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15013 (eval $ac_compile) 2>&5 15014 ac_status=$? 15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15016 (exit $ac_status); } 2>conftest.err; then 15017 soname=conftest 15018 lib=conftest 15019 libobjs=conftest.$ac_objext 15020 deplibs= 15021 wl=$lt_prog_compiler_wl_F77 15022 compiler_flags=-v 15023 linker_flags=-v 15024 verstring= 15025 output_objdir=. 15026 libname=conftest 15027 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15028 allow_undefined_flag_F77= 15029 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15030 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15031 ac_status=$? 15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15033 (exit $ac_status); } 15034 then 15035 archive_cmds_need_lc_F77=no 15036 else 15037 archive_cmds_need_lc_F77=yes 15038 fi 15039 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15040 else 15041 cat conftest.err 1>&5 15042 fi 15043 $rm conftest* 15044 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15045echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15046 ;; 15047 esac 15048 fi 15049 ;; 15050esac 15051 15052echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15053echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15054library_names_spec= 15055libname_spec='lib$name' 15056soname_spec= 15057shrext_cmds=".so" 15058postinstall_cmds= 15059postuninstall_cmds= 15060finish_cmds= 15061finish_eval= 15062shlibpath_var= 15063shlibpath_overrides_runpath=unknown 15064version_type=none 15065dynamic_linker="$host_os ld.so" 15066sys_lib_dlsearch_path_spec="/lib /usr/lib" 15067if test "$GCC" = yes; then 15068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15069 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15070 # if the path contains ";" then we assume it to be the separator 15071 # otherwise default to the standard path separator (i.e. ":") - it is 15072 # assumed that no part of a normal pathname contains ";" but that should 15073 # okay in the real world where ";" in dirpaths is itself problematic. 15074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15075 else 15076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15077 fi 15078else 15079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15080fi 15081need_lib_prefix=unknown 15082hardcode_into_libs=no 15083 15084# when you set need_version to no, make sure it does not cause -set_version 15085# flags to be left without arguments 15086need_version=unknown 15087 15088case $host_os in 15089aix3*) 15090 version_type=linux 15091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15092 shlibpath_var=LIBPATH 15093 15094 # AIX 3 has no versioning support, so we append a major version to the name. 15095 soname_spec='${libname}${release}${shared_ext}$major' 15096 ;; 15097 15098aix4* | aix5*) 15099 version_type=linux 15100 need_lib_prefix=no 15101 need_version=no 15102 hardcode_into_libs=yes 15103 if test "$host_cpu" = ia64; then 15104 # AIX 5 supports IA64 15105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15106 shlibpath_var=LD_LIBRARY_PATH 15107 else 15108 # With GCC up to 2.95.x, collect2 would create an import file 15109 # for dependence libraries. The import file would start with 15110 # the line `#! .'. This would cause the generated library to 15111 # depend on `.', always an invalid library. This was fixed in 15112 # development snapshots of GCC prior to 3.0. 15113 case $host_os in 15114 aix4 | aix4.[01] | aix4.[01].*) 15115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15116 echo ' yes ' 15117 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15118 : 15119 else 15120 can_build_shared=no 15121 fi 15122 ;; 15123 esac 15124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15125 # soname into executable. Probably we can add versioning support to 15126 # collect2, so additional links can be useful in future. 15127 if test "$aix_use_runtimelinking" = yes; then 15128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15129 # instead of lib<name>.a to let people know that these are not 15130 # typical AIX shared libraries. 15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15132 else 15133 # We preserve .a as extension for shared libraries through AIX4.2 15134 # and later when we are not doing run time linking. 15135 library_names_spec='${libname}${release}.a $libname.a' 15136 soname_spec='${libname}${release}${shared_ext}$major' 15137 fi 15138 shlibpath_var=LIBPATH 15139 fi 15140 ;; 15141 15142amigaos*) 15143 library_names_spec='$libname.ixlibrary $libname.a' 15144 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15145 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' 15146 ;; 15147 15148beos*) 15149 library_names_spec='${libname}${shared_ext}' 15150 dynamic_linker="$host_os ld.so" 15151 shlibpath_var=LIBRARY_PATH 15152 ;; 15153 15154bsdi[45]*) 15155 version_type=linux 15156 need_version=no 15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15158 soname_spec='${libname}${release}${shared_ext}$major' 15159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15160 shlibpath_var=LD_LIBRARY_PATH 15161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15163 # the default ld.so.conf also contains /usr/contrib/lib and 15164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15165 # libtool to hard-code these into programs 15166 ;; 15167 15168cygwin* | mingw* | pw32*) 15169 version_type=windows 15170 shrext_cmds=".dll" 15171 need_version=no 15172 need_lib_prefix=no 15173 15174 case $GCC,$host_os in 15175 yes,cygwin* | yes,mingw* | yes,pw32*) 15176 library_names_spec='$libname.dll.a' 15177 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15178 postinstall_cmds='base_file=`basename \${file}`~ 15179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15180 dldir=$destdir/`dirname \$dlpath`~ 15181 test -d \$dldir || mkdir -p \$dldir~ 15182 $install_prog $dir/$dlname \$dldir/$dlname~ 15183 chmod a+x \$dldir/$dlname' 15184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15185 dlpath=$dir/\$dldll~ 15186 $rm \$dlpath' 15187 shlibpath_overrides_runpath=yes 15188 15189 case $host_os in 15190 cygwin*) 15191 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15193 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15194 ;; 15195 mingw*) 15196 # MinGW DLLs use traditional 'lib' prefix 15197 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15199 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15200 # It is most probably a Windows format PATH printed by 15201 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15202 # path with ; separators, and with drive letters. We can handle the 15203 # drive letters (cygwin fileutils understands them), so leave them, 15204 # especially as we might pass files found there to a mingw objdump, 15205 # which wouldn't understand a cygwinified path. Ahh. 15206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15207 else 15208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15209 fi 15210 ;; 15211 pw32*) 15212 # pw32 DLLs use 'pw' prefix rather than 'lib' 15213 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15214 ;; 15215 esac 15216 ;; 15217 15218 *) 15219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15220 ;; 15221 esac 15222 dynamic_linker='Win32 ld.exe' 15223 # FIXME: first we should search . and the directory the executable is in 15224 shlibpath_var=PATH 15225 ;; 15226 15227darwin* | rhapsody*) 15228 dynamic_linker="$host_os dyld" 15229 version_type=darwin 15230 need_lib_prefix=no 15231 need_version=no 15232 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15233 soname_spec='${libname}${release}${major}$shared_ext' 15234 shlibpath_overrides_runpath=yes 15235 shlibpath_var=DYLD_LIBRARY_PATH 15236 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15237 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15238 if test "$GCC" = yes; then 15239 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"` 15240 else 15241 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15242 fi 15243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15244 ;; 15245 15246dgux*) 15247 version_type=linux 15248 need_lib_prefix=no 15249 need_version=no 15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15251 soname_spec='${libname}${release}${shared_ext}$major' 15252 shlibpath_var=LD_LIBRARY_PATH 15253 ;; 15254 15255freebsd1*) 15256 dynamic_linker=no 15257 ;; 15258 15259haiku*) 15260 library_names_spec='${libname}${shared_ext}' 15261 dynamic_linker="$host_os ld.so" 15262 shlibpath_var=LIBRARY_PATH 15263 ;; 15264 15265kfreebsd*-gnu) 15266 version_type=linux 15267 need_lib_prefix=no 15268 need_version=no 15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15270 soname_spec='${libname}${release}${shared_ext}$major' 15271 shlibpath_var=LD_LIBRARY_PATH 15272 shlibpath_overrides_runpath=no 15273 hardcode_into_libs=yes 15274 dynamic_linker='GNU ld.so' 15275 ;; 15276 15277freebsd* | dragonfly*) 15278 # DragonFly does not have aout. When/if they implement a new 15279 # versioning mechanism, adjust this. 15280 if test -x /usr/bin/objformat; then 15281 objformat=`/usr/bin/objformat` 15282 else 15283 case $host_os in 15284 freebsd[123]*) objformat=aout ;; 15285 *) objformat=elf ;; 15286 esac 15287 fi 15288 version_type=freebsd-$objformat 15289 case $version_type in 15290 freebsd-elf*) 15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15292 need_version=no 15293 need_lib_prefix=no 15294 ;; 15295 freebsd-*) 15296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15297 need_version=yes 15298 ;; 15299 esac 15300 shlibpath_var=LD_LIBRARY_PATH 15301 case $host_os in 15302 freebsd2*) 15303 shlibpath_overrides_runpath=yes 15304 ;; 15305 freebsd3.[01]* | freebsdelf3.[01]*) 15306 shlibpath_overrides_runpath=yes 15307 hardcode_into_libs=yes 15308 ;; 15309 *) # from 3.2 on 15310 shlibpath_overrides_runpath=no 15311 hardcode_into_libs=yes 15312 ;; 15313 esac 15314 ;; 15315 15316gnu*) 15317 version_type=linux 15318 need_lib_prefix=no 15319 need_version=no 15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15321 soname_spec='${libname}${release}${shared_ext}$major' 15322 shlibpath_var=LD_LIBRARY_PATH 15323 hardcode_into_libs=yes 15324 ;; 15325 15326hpux9* | hpux10* | hpux11*) 15327 # Give a soname corresponding to the major version so that dld.sl refuses to 15328 # link against other versions. 15329 version_type=sunos 15330 need_lib_prefix=no 15331 need_version=no 15332 case $host_cpu in 15333 ia64*) 15334 shrext_cmds='.so' 15335 hardcode_into_libs=yes 15336 dynamic_linker="$host_os dld.so" 15337 shlibpath_var=LD_LIBRARY_PATH 15338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15340 soname_spec='${libname}${release}${shared_ext}$major' 15341 if test "X$HPUX_IA64_MODE" = X32; then 15342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15343 else 15344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15345 fi 15346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15347 ;; 15348 hppa*64*) 15349 shrext_cmds='.sl' 15350 hardcode_into_libs=yes 15351 dynamic_linker="$host_os dld.sl" 15352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15355 soname_spec='${libname}${release}${shared_ext}$major' 15356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15358 ;; 15359 *) 15360 shrext_cmds='.sl' 15361 dynamic_linker="$host_os dld.sl" 15362 shlibpath_var=SHLIB_PATH 15363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15365 soname_spec='${libname}${release}${shared_ext}$major' 15366 ;; 15367 esac 15368 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15369 postinstall_cmds='chmod 555 $lib' 15370 ;; 15371 15372irix5* | irix6* | nonstopux*) 15373 case $host_os in 15374 nonstopux*) version_type=nonstopux ;; 15375 *) 15376 if test "$lt_cv_prog_gnu_ld" = yes; then 15377 version_type=linux 15378 else 15379 version_type=irix 15380 fi ;; 15381 esac 15382 need_lib_prefix=no 15383 need_version=no 15384 soname_spec='${libname}${release}${shared_ext}$major' 15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15386 case $host_os in 15387 irix5* | nonstopux*) 15388 libsuff= shlibsuff= 15389 ;; 15390 *) 15391 case $LD in # libtool.m4 will add one of these switches to LD 15392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15393 libsuff= shlibsuff= libmagic=32-bit;; 15394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15395 libsuff=32 shlibsuff=N32 libmagic=N32;; 15396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15397 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15398 *) libsuff= shlibsuff= libmagic=never-match;; 15399 esac 15400 ;; 15401 esac 15402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15403 shlibpath_overrides_runpath=no 15404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15406 hardcode_into_libs=yes 15407 ;; 15408 15409# No shared lib support for Linux oldld, aout, or coff. 15410linux*oldld* | linux*aout* | linux*coff*) 15411 dynamic_linker=no 15412 ;; 15413 15414# This must be Linux ELF. 15415linux*) 15416 version_type=linux 15417 need_lib_prefix=no 15418 need_version=no 15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15420 soname_spec='${libname}${release}${shared_ext}$major' 15421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15422 shlibpath_var=LD_LIBRARY_PATH 15423 shlibpath_overrides_runpath=no 15424 # This implies no fast_install, which is unacceptable. 15425 # Some rework will be needed to allow for fast_install 15426 # before this can be enabled. 15427 hardcode_into_libs=yes 15428 15429 # Append ld.so.conf contents to the search path 15430 if test -f /etc/ld.so.conf; then 15431 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15433 fi 15434 15435 # We used to test for /lib/ld.so.1 and disable shared libraries on 15436 # powerpc, because MkLinux only supported shared libraries with the 15437 # GNU dynamic linker. Since this was broken with cross compilers, 15438 # most powerpc-linux boxes support dynamic linking these days and 15439 # people can always --disable-shared, the test was removed, and we 15440 # assume the GNU/Linux dynamic linker is in use. 15441 dynamic_linker='GNU/Linux ld.so' 15442 ;; 15443 15444knetbsd*-gnu) 15445 version_type=linux 15446 need_lib_prefix=no 15447 need_version=no 15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15449 soname_spec='${libname}${release}${shared_ext}$major' 15450 shlibpath_var=LD_LIBRARY_PATH 15451 shlibpath_overrides_runpath=no 15452 hardcode_into_libs=yes 15453 dynamic_linker='GNU ld.so' 15454 ;; 15455 15456netbsd*) 15457 version_type=sunos 15458 need_lib_prefix=no 15459 need_version=no 15460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15463 dynamic_linker='NetBSD (a.out) ld.so' 15464 else 15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15466 soname_spec='${libname}${release}${shared_ext}$major' 15467 dynamic_linker='NetBSD ld.elf_so' 15468 fi 15469 shlibpath_var=LD_LIBRARY_PATH 15470 shlibpath_overrides_runpath=yes 15471 hardcode_into_libs=yes 15472 ;; 15473 15474newsos6) 15475 version_type=linux 15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15477 shlibpath_var=LD_LIBRARY_PATH 15478 shlibpath_overrides_runpath=yes 15479 ;; 15480 15481nto-qnx*) 15482 version_type=linux 15483 need_lib_prefix=no 15484 need_version=no 15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15486 soname_spec='${libname}${release}${shared_ext}$major' 15487 shlibpath_var=LD_LIBRARY_PATH 15488 shlibpath_overrides_runpath=yes 15489 ;; 15490 15491openbsd*) 15492 version_type=sunos 15493 need_lib_prefix=no 15494 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15495 case $host_os in 15496 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15497 *) need_version=no ;; 15498 esac 15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15501 shlibpath_var=LD_LIBRARY_PATH 15502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15503 case $host_os in 15504 openbsd2.[89] | openbsd2.[89].*) 15505 shlibpath_overrides_runpath=no 15506 ;; 15507 *) 15508 shlibpath_overrides_runpath=yes 15509 ;; 15510 esac 15511 else 15512 shlibpath_overrides_runpath=yes 15513 fi 15514 ;; 15515 15516os2*) 15517 libname_spec='$name' 15518 shrext_cmds=".dll" 15519 need_lib_prefix=no 15520 library_names_spec='$libname${shared_ext} $libname.a' 15521 dynamic_linker='OS/2 ld.exe' 15522 shlibpath_var=LIBPATH 15523 ;; 15524 15525osf3* | osf4* | osf5*) 15526 version_type=osf 15527 need_lib_prefix=no 15528 need_version=no 15529 soname_spec='${libname}${release}${shared_ext}$major' 15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15531 shlibpath_var=LD_LIBRARY_PATH 15532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15533 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15534 ;; 15535 15536sco3.2v5*) 15537 version_type=osf 15538 soname_spec='${libname}${release}${shared_ext}$major' 15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15540 shlibpath_var=LD_LIBRARY_PATH 15541 ;; 15542 15543solaris*) 15544 version_type=linux 15545 need_lib_prefix=no 15546 need_version=no 15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15548 soname_spec='${libname}${release}${shared_ext}$major' 15549 shlibpath_var=LD_LIBRARY_PATH 15550 shlibpath_overrides_runpath=yes 15551 hardcode_into_libs=yes 15552 # ldd complains unless libraries are executable 15553 postinstall_cmds='chmod +x $lib' 15554 ;; 15555 15556sunos4*) 15557 version_type=sunos 15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15559 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15560 shlibpath_var=LD_LIBRARY_PATH 15561 shlibpath_overrides_runpath=yes 15562 if test "$with_gnu_ld" = yes; then 15563 need_lib_prefix=no 15564 fi 15565 need_version=yes 15566 ;; 15567 15568sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15569 version_type=linux 15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15571 soname_spec='${libname}${release}${shared_ext}$major' 15572 shlibpath_var=LD_LIBRARY_PATH 15573 case $host_vendor in 15574 sni) 15575 shlibpath_overrides_runpath=no 15576 need_lib_prefix=no 15577 export_dynamic_flag_spec='${wl}-Blargedynsym' 15578 runpath_var=LD_RUN_PATH 15579 ;; 15580 siemens) 15581 need_lib_prefix=no 15582 ;; 15583 motorola) 15584 need_lib_prefix=no 15585 need_version=no 15586 shlibpath_overrides_runpath=no 15587 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15588 ;; 15589 esac 15590 ;; 15591 15592sysv4*MP*) 15593 if test -d /usr/nec ;then 15594 version_type=linux 15595 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15596 soname_spec='$libname${shared_ext}.$major' 15597 shlibpath_var=LD_LIBRARY_PATH 15598 fi 15599 ;; 15600 15601uts4*) 15602 version_type=linux 15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15604 soname_spec='${libname}${release}${shared_ext}$major' 15605 shlibpath_var=LD_LIBRARY_PATH 15606 ;; 15607 15608*) 15609 dynamic_linker=no 15610 ;; 15611esac 15612echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15613echo "${ECHO_T}$dynamic_linker" >&6 15614test "$dynamic_linker" = no && can_build_shared=no 15615 15616echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15617echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15618hardcode_action_F77= 15619if test -n "$hardcode_libdir_flag_spec_F77" || \ 15620 test -n "$runpath_var_F77" || \ 15621 test "X$hardcode_automatic_F77" = "Xyes" ; then 15622 15623 # We can hardcode non-existant directories. 15624 if test "$hardcode_direct_F77" != no && 15625 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15626 # have to relink, otherwise we might link with an installed library 15627 # when we should be linking with a yet-to-be-installed one 15628 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15629 test "$hardcode_minus_L_F77" != no; then 15630 # Linking always hardcodes the temporary library directory. 15631 hardcode_action_F77=relink 15632 else 15633 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15634 hardcode_action_F77=immediate 15635 fi 15636else 15637 # We cannot hardcode anything, or else we can only hardcode existing 15638 # directories. 15639 hardcode_action_F77=unsupported 15640fi 15641echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15642echo "${ECHO_T}$hardcode_action_F77" >&6 15643 15644if test "$hardcode_action_F77" = relink; then 15645 # Fast installation is not supported 15646 enable_fast_install=no 15647elif test "$shlibpath_overrides_runpath" = yes || 15648 test "$enable_shared" = no; then 15649 # Fast installation is not necessary 15650 enable_fast_install=needless 15651fi 15652 15653striplib= 15654old_striplib= 15655echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15656echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15657if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15658 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15659 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15660 echo "$as_me:$LINENO: result: yes" >&5 15661echo "${ECHO_T}yes" >&6 15662else 15663# FIXME - insert some real tests, host_os isn't really good enough 15664 case $host_os in 15665 darwin*) 15666 if test -n "$STRIP" ; then 15667 striplib="$STRIP -x" 15668 echo "$as_me:$LINENO: result: yes" >&5 15669echo "${ECHO_T}yes" >&6 15670 else 15671 echo "$as_me:$LINENO: result: no" >&5 15672echo "${ECHO_T}no" >&6 15673fi 15674 ;; 15675 *) 15676 echo "$as_me:$LINENO: result: no" >&5 15677echo "${ECHO_T}no" >&6 15678 ;; 15679 esac 15680fi 15681 15682 15683 15684# The else clause should only fire when bootstrapping the 15685# libtool distribution, otherwise you forgot to ship ltmain.sh 15686# with your package, and you will get complaints that there are 15687# no rules to generate ltmain.sh. 15688if test -f "$ltmain"; then 15689 # See if we are running on zsh, and set the options which allow our commands through 15690 # without removal of \ escapes. 15691 if test -n "${ZSH_VERSION+set}" ; then 15692 setopt NO_GLOB_SUBST 15693 fi 15694 # Now quote all the things that may contain metacharacters while being 15695 # careful not to overquote the AC_SUBSTed values. We take copies of the 15696 # variables and quote the copies for generation of the libtool script. 15697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15698 SED SHELL STRIP \ 15699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15701 deplibs_check_method reload_flag reload_cmds need_locks \ 15702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15703 lt_cv_sys_global_symbol_to_c_name_address \ 15704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15705 old_postinstall_cmds old_postuninstall_cmds \ 15706 compiler_F77 \ 15707 CC_F77 \ 15708 LD_F77 \ 15709 lt_prog_compiler_wl_F77 \ 15710 lt_prog_compiler_pic_F77 \ 15711 lt_prog_compiler_static_F77 \ 15712 lt_prog_compiler_no_builtin_flag_F77 \ 15713 export_dynamic_flag_spec_F77 \ 15714 thread_safe_flag_spec_F77 \ 15715 whole_archive_flag_spec_F77 \ 15716 enable_shared_with_static_runtimes_F77 \ 15717 old_archive_cmds_F77 \ 15718 old_archive_from_new_cmds_F77 \ 15719 predep_objects_F77 \ 15720 postdep_objects_F77 \ 15721 predeps_F77 \ 15722 postdeps_F77 \ 15723 compiler_lib_search_path_F77 \ 15724 archive_cmds_F77 \ 15725 archive_expsym_cmds_F77 \ 15726 postinstall_cmds_F77 \ 15727 postuninstall_cmds_F77 \ 15728 old_archive_from_expsyms_cmds_F77 \ 15729 allow_undefined_flag_F77 \ 15730 no_undefined_flag_F77 \ 15731 export_symbols_cmds_F77 \ 15732 hardcode_libdir_flag_spec_F77 \ 15733 hardcode_libdir_flag_spec_ld_F77 \ 15734 hardcode_libdir_separator_F77 \ 15735 hardcode_automatic_F77 \ 15736 module_cmds_F77 \ 15737 module_expsym_cmds_F77 \ 15738 lt_cv_prog_compiler_c_o_F77 \ 15739 exclude_expsyms_F77 \ 15740 include_expsyms_F77; do 15741 15742 case $var in 15743 old_archive_cmds_F77 | \ 15744 old_archive_from_new_cmds_F77 | \ 15745 archive_cmds_F77 | \ 15746 archive_expsym_cmds_F77 | \ 15747 module_cmds_F77 | \ 15748 module_expsym_cmds_F77 | \ 15749 old_archive_from_expsyms_cmds_F77 | \ 15750 export_symbols_cmds_F77 | \ 15751 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15752 postinstall_cmds | postuninstall_cmds | \ 15753 old_postinstall_cmds | old_postuninstall_cmds | \ 15754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15755 # Double-quote double-evaled strings. 15756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15757 ;; 15758 *) 15759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15760 ;; 15761 esac 15762 done 15763 15764 case $lt_echo in 15765 *'\$0 --fallback-echo"') 15766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15767 ;; 15768 esac 15769 15770cfgfile="$ofile" 15771 15772 cat <<__EOF__ >> "$cfgfile" 15773# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15774 15775# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15776 15777# Shell to use when invoking shell scripts. 15778SHELL=$lt_SHELL 15779 15780# Whether or not to build shared libraries. 15781build_libtool_libs=$enable_shared 15782 15783# Whether or not to build static libraries. 15784build_old_libs=$enable_static 15785 15786# Whether or not to add -lc for building shared libraries. 15787build_libtool_need_lc=$archive_cmds_need_lc_F77 15788 15789# Whether or not to disallow shared libs when runtime libs are static 15790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15791 15792# Whether or not to optimize for fast installation. 15793fast_install=$enable_fast_install 15794 15795# The host system. 15796host_alias=$host_alias 15797host=$host 15798host_os=$host_os 15799 15800# The build system. 15801build_alias=$build_alias 15802build=$build 15803build_os=$build_os 15804 15805# An echo program that does not interpret backslashes. 15806echo=$lt_echo 15807 15808# The archiver. 15809AR=$lt_AR 15810AR_FLAGS=$lt_AR_FLAGS 15811 15812# A C compiler. 15813LTCC=$lt_LTCC 15814 15815# A language-specific compiler. 15816CC=$lt_compiler_F77 15817 15818# Is the compiler the GNU C compiler? 15819with_gcc=$GCC_F77 15820 15821# An ERE matcher. 15822EGREP=$lt_EGREP 15823 15824# The linker used to build libraries. 15825LD=$lt_LD_F77 15826 15827# Whether we need hard or soft links. 15828LN_S=$lt_LN_S 15829 15830# A BSD-compatible nm program. 15831NM=$lt_NM 15832 15833# A symbol stripping program 15834STRIP=$lt_STRIP 15835 15836# Used to examine libraries when file_magic_cmd begins "file" 15837MAGIC_CMD=$MAGIC_CMD 15838 15839# Used on cygwin: DLL creation program. 15840DLLTOOL="$DLLTOOL" 15841 15842# Used on cygwin: object dumper. 15843OBJDUMP="$OBJDUMP" 15844 15845# Used on cygwin: assembler. 15846AS="$AS" 15847 15848# The name of the directory that contains temporary libtool files. 15849objdir=$objdir 15850 15851# How to create reloadable object files. 15852reload_flag=$lt_reload_flag 15853reload_cmds=$lt_reload_cmds 15854 15855# How to pass a linker flag through the compiler. 15856wl=$lt_lt_prog_compiler_wl_F77 15857 15858# Object file suffix (normally "o"). 15859objext="$ac_objext" 15860 15861# Old archive suffix (normally "a"). 15862libext="$libext" 15863 15864# Shared library suffix (normally ".so"). 15865shrext_cmds='$shrext_cmds' 15866 15867# Executable file suffix (normally ""). 15868exeext="$exeext" 15869 15870# Additional compiler flags for building library objects. 15871pic_flag=$lt_lt_prog_compiler_pic_F77 15872pic_mode=$pic_mode 15873 15874# What is the maximum length of a command? 15875max_cmd_len=$lt_cv_sys_max_cmd_len 15876 15877# Does compiler simultaneously support -c and -o options? 15878compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15879 15880# Must we lock files when doing compilation? 15881need_locks=$lt_need_locks 15882 15883# Do we need the lib prefix for modules? 15884need_lib_prefix=$need_lib_prefix 15885 15886# Do we need a version for libraries? 15887need_version=$need_version 15888 15889# Whether dlopen is supported. 15890dlopen_support=$enable_dlopen 15891 15892# Whether dlopen of programs is supported. 15893dlopen_self=$enable_dlopen_self 15894 15895# Whether dlopen of statically linked programs is supported. 15896dlopen_self_static=$enable_dlopen_self_static 15897 15898# Compiler flag to prevent dynamic linking. 15899link_static_flag=$lt_lt_prog_compiler_static_F77 15900 15901# Compiler flag to turn off builtin functions. 15902no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15903 15904# Compiler flag to allow reflexive dlopens. 15905export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15906 15907# Compiler flag to generate shared objects directly from archives. 15908whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15909 15910# Compiler flag to generate thread-safe objects. 15911thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15912 15913# Library versioning type. 15914version_type=$version_type 15915 15916# Format of library name prefix. 15917libname_spec=$lt_libname_spec 15918 15919# List of archive names. First name is the real one, the rest are links. 15920# The last name is the one that the linker finds with -lNAME. 15921library_names_spec=$lt_library_names_spec 15922 15923# The coded name of the library, if different from the real name. 15924soname_spec=$lt_soname_spec 15925 15926# Commands used to build and install an old-style archive. 15927RANLIB=$lt_RANLIB 15928old_archive_cmds=$lt_old_archive_cmds_F77 15929old_postinstall_cmds=$lt_old_postinstall_cmds 15930old_postuninstall_cmds=$lt_old_postuninstall_cmds 15931 15932# Create an old-style archive from a shared archive. 15933old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15934 15935# Create a temporary old-style archive to link instead of a shared archive. 15936old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15937 15938# Commands used to build and install a shared archive. 15939archive_cmds=$lt_archive_cmds_F77 15940archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15941postinstall_cmds=$lt_postinstall_cmds 15942postuninstall_cmds=$lt_postuninstall_cmds 15943 15944# Commands used to build a loadable module (assumed same as above if empty) 15945module_cmds=$lt_module_cmds_F77 15946module_expsym_cmds=$lt_module_expsym_cmds_F77 15947 15948# Commands to strip libraries. 15949old_striplib=$lt_old_striplib 15950striplib=$lt_striplib 15951 15952# Dependencies to place before the objects being linked to create a 15953# shared library. 15954predep_objects=$lt_predep_objects_F77 15955 15956# Dependencies to place after the objects being linked to create a 15957# shared library. 15958postdep_objects=$lt_postdep_objects_F77 15959 15960# Dependencies to place before the objects being linked to create a 15961# shared library. 15962predeps=$lt_predeps_F77 15963 15964# Dependencies to place after the objects being linked to create a 15965# shared library. 15966postdeps=$lt_postdeps_F77 15967 15968# The library search path used internally by the compiler when linking 15969# a shared library. 15970compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15971 15972# Method to check whether dependent libraries are shared objects. 15973deplibs_check_method=$lt_deplibs_check_method 15974 15975# Command to use when deplibs_check_method == file_magic. 15976file_magic_cmd=$lt_file_magic_cmd 15977 15978# Flag that allows shared libraries with undefined symbols to be built. 15979allow_undefined_flag=$lt_allow_undefined_flag_F77 15980 15981# Flag that forces no undefined symbols. 15982no_undefined_flag=$lt_no_undefined_flag_F77 15983 15984# Commands used to finish a libtool library installation in a directory. 15985finish_cmds=$lt_finish_cmds 15986 15987# Same as above, but a single script fragment to be evaled but not shown. 15988finish_eval=$lt_finish_eval 15989 15990# Take the output of nm and produce a listing of raw symbols and C names. 15991global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15992 15993# Transform the output of nm in a proper C declaration 15994global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15995 15996# Transform the output of nm in a C name address pair 15997global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15998 15999# This is the shared library runtime path variable. 16000runpath_var=$runpath_var 16001 16002# This is the shared library path variable. 16003shlibpath_var=$shlibpath_var 16004 16005# Is shlibpath searched before the hard-coded library search path? 16006shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16007 16008# How to hardcode a shared library path into an executable. 16009hardcode_action=$hardcode_action_F77 16010 16011# Whether we should hardcode library paths into libraries. 16012hardcode_into_libs=$hardcode_into_libs 16013 16014# Flag to hardcode \$libdir into a binary during linking. 16015# This must work even if \$libdir does not exist. 16016hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16017 16018# If ld is used when linking, flag to hardcode \$libdir into 16019# a binary during linking. This must work even if \$libdir does 16020# not exist. 16021hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16022 16023# Whether we need a single -rpath flag with a separated argument. 16024hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16025 16026# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16027# resulting binary. 16028hardcode_direct=$hardcode_direct_F77 16029 16030# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16031# resulting binary. 16032hardcode_minus_L=$hardcode_minus_L_F77 16033 16034# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16035# the resulting binary. 16036hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16037 16038# Set to yes if building a shared library automatically hardcodes DIR into the library 16039# and all subsequent libraries and executables linked against it. 16040hardcode_automatic=$hardcode_automatic_F77 16041 16042# Variables whose values should be saved in libtool wrapper scripts and 16043# restored at relink time. 16044variables_saved_for_relink="$variables_saved_for_relink" 16045 16046# Whether libtool must link a program against all its dependency libraries. 16047link_all_deplibs=$link_all_deplibs_F77 16048 16049# Compile-time system search path for libraries 16050sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16051 16052# Run-time system search path for libraries 16053sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16054 16055# Fix the shell variable \$srcfile for the compiler. 16056fix_srcfile_path="$fix_srcfile_path_F77" 16057 16058# Set to yes if exported symbols are required. 16059always_export_symbols=$always_export_symbols_F77 16060 16061# The commands to list exported symbols. 16062export_symbols_cmds=$lt_export_symbols_cmds_F77 16063 16064# The commands to extract the exported symbol list from a shared archive. 16065extract_expsyms_cmds=$lt_extract_expsyms_cmds 16066 16067# Symbols that should not be listed in the preloaded symbols. 16068exclude_expsyms=$lt_exclude_expsyms_F77 16069 16070# Symbols that must always be exported. 16071include_expsyms=$lt_include_expsyms_F77 16072 16073# ### END LIBTOOL TAG CONFIG: $tagname 16074 16075__EOF__ 16076 16077 16078else 16079 # If there is no Makefile yet, we rely on a make rule to execute 16080 # `config.status --recheck' to rerun these tests and create the 16081 # libtool script then. 16082 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16083 if test -f "$ltmain_in"; then 16084 test -f Makefile && make "$ltmain" 16085 fi 16086fi 16087 16088 16089ac_ext=c 16090ac_cpp='$CPP $CPPFLAGS' 16091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16093ac_compiler_gnu=$ac_cv_c_compiler_gnu 16094 16095CC="$lt_save_CC" 16096 16097 else 16098 tagname="" 16099 fi 16100 ;; 16101 16102 GCJ) 16103 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16104 16105 16106 16107# Source file extension for Java test sources. 16108ac_ext=java 16109 16110# Object file extension for compiled Java test sources. 16111objext=o 16112objext_GCJ=$objext 16113 16114# Code to be used in simple compile tests 16115lt_simple_compile_test_code="class foo {}\n" 16116 16117# Code to be used in simple link tests 16118lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16119 16120# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16121 16122# If no C compiler was specified, use CC. 16123LTCC=${LTCC-"$CC"} 16124 16125# Allow CC to be a program name with arguments. 16126compiler=$CC 16127 16128 16129# save warnings/boilerplate of simple test code 16130ac_outfile=conftest.$ac_objext 16131printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16132eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16133_lt_compiler_boilerplate=`cat conftest.err` 16134$rm conftest* 16135 16136ac_outfile=conftest.$ac_objext 16137printf "$lt_simple_link_test_code" >conftest.$ac_ext 16138eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16139_lt_linker_boilerplate=`cat conftest.err` 16140$rm conftest* 16141 16142 16143# Allow CC to be a program name with arguments. 16144lt_save_CC="$CC" 16145CC=${GCJ-"gcj"} 16146compiler=$CC 16147compiler_GCJ=$CC 16148for cc_temp in $compiler""; do 16149 case $cc_temp in 16150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16152 \-*) ;; 16153 *) break;; 16154 esac 16155done 16156cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16157 16158 16159# GCJ did not exist at the time GCC didn't implicitly link libc in. 16160archive_cmds_need_lc_GCJ=no 16161 16162old_archive_cmds_GCJ=$old_archive_cmds 16163 16164## CAVEAT EMPTOR: 16165## There is no encapsulation within the following macros, do not change 16166## the running order or otherwise move them around unless you know exactly 16167## what you are doing... 16168 16169lt_prog_compiler_no_builtin_flag_GCJ= 16170 16171if test "$GCC" = yes; then 16172 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16173 16174 16175echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16176echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16177if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16178 echo $ECHO_N "(cached) $ECHO_C" >&6 16179else 16180 lt_cv_prog_compiler_rtti_exceptions=no 16181 ac_outfile=conftest.$ac_objext 16182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16183 lt_compiler_flag="-fno-rtti -fno-exceptions" 16184 # Insert the option either (1) after the last *FLAGS variable, or 16185 # (2) before a word containing "conftest.", or (3) at the end. 16186 # Note that $ac_compile itself does not contain backslashes and begins 16187 # with a dollar sign (not a hyphen), so the echo should work correctly. 16188 # The option is referenced via a variable to avoid confusing sed. 16189 lt_compile=`echo "$ac_compile" | $SED \ 16190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16192 -e 's:$: $lt_compiler_flag:'` 16193 (eval echo "\"\$as_me:16193: $lt_compile\"" >&5) 16194 (eval "$lt_compile" 2>conftest.err) 16195 ac_status=$? 16196 cat conftest.err >&5 16197 echo "$as_me:16197: \$? = $ac_status" >&5 16198 if (exit $ac_status) && test -s "$ac_outfile"; then 16199 # The compiler can only warn and ignore the option if not recognized 16200 # So say no if there are warnings other than the usual output. 16201 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16202 $SED '/^$/d' conftest.err >conftest.er2 16203 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16204 lt_cv_prog_compiler_rtti_exceptions=yes 16205 fi 16206 fi 16207 $rm conftest* 16208 16209fi 16210echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16211echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16212 16213if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16214 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16215else 16216 : 16217fi 16218 16219fi 16220 16221lt_prog_compiler_wl_GCJ= 16222lt_prog_compiler_pic_GCJ= 16223lt_prog_compiler_static_GCJ= 16224 16225echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16226echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16227 16228 if test "$GCC" = yes; then 16229 lt_prog_compiler_wl_GCJ='-Wl,' 16230 lt_prog_compiler_static_GCJ='-static' 16231 16232 case $host_os in 16233 aix*) 16234 # All AIX code is PIC. 16235 if test "$host_cpu" = ia64; then 16236 # AIX 5 now supports IA64 processor 16237 lt_prog_compiler_static_GCJ='-Bstatic' 16238 fi 16239 ;; 16240 16241 amigaos*) 16242 # FIXME: we need at least 68020 code to build shared libraries, but 16243 # adding the `-m68020' flag to GCC prevents building anything better, 16244 # like `-m68040'. 16245 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16246 ;; 16247 16248 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 16249 | osf5*) 16250 # PIC is the default for these OSes. 16251 ;; 16252 16253 mingw* | pw32* | os2*) 16254 # This hack is so that the source file can tell whether it is being 16255 # built for inclusion in a dll (and should export symbols for example). 16256 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16257 ;; 16258 16259 darwin* | rhapsody*) 16260 # PIC is the default on this platform 16261 # Common symbols not allowed in MH_DYLIB files 16262 lt_prog_compiler_pic_GCJ='-fno-common' 16263 ;; 16264 16265 msdosdjgpp*) 16266 # Just because we use GCC doesn't mean we suddenly get shared libraries 16267 # on systems that don't support them. 16268 lt_prog_compiler_can_build_shared_GCJ=no 16269 enable_shared=no 16270 ;; 16271 16272 sysv4*MP*) 16273 if test -d /usr/nec; then 16274 lt_prog_compiler_pic_GCJ=-Kconform_pic 16275 fi 16276 ;; 16277 16278 hpux*) 16279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16280 # not for PA HP-UX. 16281 case $host_cpu in 16282 hppa*64*|ia64*) 16283 # +Z the default 16284 ;; 16285 *) 16286 lt_prog_compiler_pic_GCJ='-fPIC' 16287 ;; 16288 esac 16289 ;; 16290 16291 *) 16292 lt_prog_compiler_pic_GCJ='-fPIC' 16293 ;; 16294 esac 16295 else 16296 # PORTME Check for flag to pass linker flags through the system compiler. 16297 case $host_os in 16298 aix*) 16299 lt_prog_compiler_wl_GCJ='-Wl,' 16300 if test "$host_cpu" = ia64; then 16301 # AIX 5 now supports IA64 processor 16302 lt_prog_compiler_static_GCJ='-Bstatic' 16303 else 16304 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16305 fi 16306 ;; 16307 darwin*) 16308 # PIC is the default on this platform 16309 # Common symbols not allowed in MH_DYLIB files 16310 case $cc_basename in 16311 xlc*) 16312 lt_prog_compiler_pic_GCJ='-qnocommon' 16313 lt_prog_compiler_wl_GCJ='-Wl,' 16314 ;; 16315 esac 16316 ;; 16317 16318 mingw* | pw32* | os2*) 16319 # This hack is so that the source file can tell whether it is being 16320 # built for inclusion in a dll (and should export symbols for example). 16321 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16322 ;; 16323 16324 hpux9* | hpux10* | hpux11*) 16325 lt_prog_compiler_wl_GCJ='-Wl,' 16326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16327 # not for PA HP-UX. 16328 case $host_cpu in 16329 hppa*64*|ia64*) 16330 # +Z the default 16331 ;; 16332 *) 16333 lt_prog_compiler_pic_GCJ='+Z' 16334 ;; 16335 esac 16336 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16337 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16338 ;; 16339 16340 irix5* | irix6* | nonstopux*) 16341 lt_prog_compiler_wl_GCJ='-Wl,' 16342 # PIC (with -KPIC) is the default. 16343 lt_prog_compiler_static_GCJ='-non_shared' 16344 ;; 16345 16346 newsos6) 16347 lt_prog_compiler_pic_GCJ='-KPIC' 16348 lt_prog_compiler_static_GCJ='-Bstatic' 16349 ;; 16350 16351 linux*) 16352 case $cc_basename in 16353 icc* | ecc*) 16354 lt_prog_compiler_wl_GCJ='-Wl,' 16355 lt_prog_compiler_pic_GCJ='-KPIC' 16356 lt_prog_compiler_static_GCJ='-static' 16357 ;; 16358 pgcc* | pgf77* | pgf90* | pgf95*) 16359 # Portland Group compilers (*not* the Pentium gcc compiler, 16360 # which looks to be a dead project) 16361 lt_prog_compiler_wl_GCJ='-Wl,' 16362 lt_prog_compiler_pic_GCJ='-fpic' 16363 lt_prog_compiler_static_GCJ='-Bstatic' 16364 ;; 16365 ccc*) 16366 lt_prog_compiler_wl_GCJ='-Wl,' 16367 # All Alpha code is PIC. 16368 lt_prog_compiler_static_GCJ='-non_shared' 16369 ;; 16370 esac 16371 ;; 16372 16373 osf3* | osf4* | osf5*) 16374 lt_prog_compiler_wl_GCJ='-Wl,' 16375 # All OSF/1 code is PIC. 16376 lt_prog_compiler_static_GCJ='-non_shared' 16377 ;; 16378 16379 sco3.2v5*) 16380 lt_prog_compiler_pic_GCJ='-Kpic' 16381 lt_prog_compiler_static_GCJ='-dn' 16382 ;; 16383 16384 solaris*) 16385 lt_prog_compiler_pic_GCJ='-KPIC' 16386 lt_prog_compiler_static_GCJ='-Bstatic' 16387 case $cc_basename in 16388 f77* | f90* | f95*) 16389 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16390 *) 16391 lt_prog_compiler_wl_GCJ='-Wl,';; 16392 esac 16393 ;; 16394 16395 sunos4*) 16396 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16397 lt_prog_compiler_pic_GCJ='-PIC' 16398 lt_prog_compiler_static_GCJ='-Bstatic' 16399 ;; 16400 16401 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16402 lt_prog_compiler_wl_GCJ='-Wl,' 16403 lt_prog_compiler_pic_GCJ='-KPIC' 16404 lt_prog_compiler_static_GCJ='-Bstatic' 16405 ;; 16406 16407 sysv4*MP*) 16408 if test -d /usr/nec ;then 16409 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16410 lt_prog_compiler_static_GCJ='-Bstatic' 16411 fi 16412 ;; 16413 16414 unicos*) 16415 lt_prog_compiler_wl_GCJ='-Wl,' 16416 lt_prog_compiler_can_build_shared_GCJ=no 16417 ;; 16418 16419 uts4*) 16420 lt_prog_compiler_pic_GCJ='-pic' 16421 lt_prog_compiler_static_GCJ='-Bstatic' 16422 ;; 16423 16424 *) 16425 lt_prog_compiler_can_build_shared_GCJ=no 16426 ;; 16427 esac 16428 fi 16429 16430echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16431echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16432 16433# 16434# Check to make sure the PIC flag actually works. 16435# 16436if test -n "$lt_prog_compiler_pic_GCJ"; then 16437 16438echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16439echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16440if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16441 echo $ECHO_N "(cached) $ECHO_C" >&6 16442else 16443 lt_prog_compiler_pic_works_GCJ=no 16444 ac_outfile=conftest.$ac_objext 16445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16446 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16447 # Insert the option either (1) after the last *FLAGS variable, or 16448 # (2) before a word containing "conftest.", or (3) at the end. 16449 # Note that $ac_compile itself does not contain backslashes and begins 16450 # with a dollar sign (not a hyphen), so the echo should work correctly. 16451 # The option is referenced via a variable to avoid confusing sed. 16452 lt_compile=`echo "$ac_compile" | $SED \ 16453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16455 -e 's:$: $lt_compiler_flag:'` 16456 (eval echo "\"\$as_me:16456: $lt_compile\"" >&5) 16457 (eval "$lt_compile" 2>conftest.err) 16458 ac_status=$? 16459 cat conftest.err >&5 16460 echo "$as_me:16460: \$? = $ac_status" >&5 16461 if (exit $ac_status) && test -s "$ac_outfile"; then 16462 # The compiler can only warn and ignore the option if not recognized 16463 # So say no if there are warnings other than the usual output. 16464 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16465 $SED '/^$/d' conftest.err >conftest.er2 16466 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16467 lt_prog_compiler_pic_works_GCJ=yes 16468 fi 16469 fi 16470 $rm conftest* 16471 16472fi 16473echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16474echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16475 16476if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16477 case $lt_prog_compiler_pic_GCJ in 16478 "" | " "*) ;; 16479 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16480 esac 16481else 16482 lt_prog_compiler_pic_GCJ= 16483 lt_prog_compiler_can_build_shared_GCJ=no 16484fi 16485 16486fi 16487case $host_os in 16488 # For platforms which do not support PIC, -DPIC is meaningless: 16489 *djgpp*) 16490 lt_prog_compiler_pic_GCJ= 16491 ;; 16492 *) 16493 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16494 ;; 16495esac 16496 16497echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16498echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16499if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16500 echo $ECHO_N "(cached) $ECHO_C" >&6 16501else 16502 lt_cv_prog_compiler_c_o_GCJ=no 16503 $rm -r conftest 2>/dev/null 16504 mkdir conftest 16505 cd conftest 16506 mkdir out 16507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16508 16509 lt_compiler_flag="-o out/conftest2.$ac_objext" 16510 # Insert the option either (1) after the last *FLAGS variable, or 16511 # (2) before a word containing "conftest.", or (3) at the end. 16512 # Note that $ac_compile itself does not contain backslashes and begins 16513 # with a dollar sign (not a hyphen), so the echo should work correctly. 16514 lt_compile=`echo "$ac_compile" | $SED \ 16515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16517 -e 's:$: $lt_compiler_flag:'` 16518 (eval echo "\"\$as_me:16518: $lt_compile\"" >&5) 16519 (eval "$lt_compile" 2>out/conftest.err) 16520 ac_status=$? 16521 cat out/conftest.err >&5 16522 echo "$as_me:16522: \$? = $ac_status" >&5 16523 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16524 then 16525 # The compiler can only warn and ignore the option if not recognized 16526 # So say no if there are warnings 16527 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16528 $SED '/^$/d' out/conftest.err >out/conftest.er2 16529 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16530 lt_cv_prog_compiler_c_o_GCJ=yes 16531 fi 16532 fi 16533 chmod u+w . 2>&5 16534 $rm conftest* 16535 # SGI C++ compiler will create directory out/ii_files/ for 16536 # template instantiation 16537 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16538 $rm out/* && rmdir out 16539 cd .. 16540 rmdir conftest 16541 $rm conftest* 16542 16543fi 16544echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16545echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16546 16547 16548hard_links="nottested" 16549if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16550 # do not overwrite the value of need_locks provided by the user 16551 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16552echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16553 hard_links=yes 16554 $rm conftest* 16555 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16556 touch conftest.a 16557 ln conftest.a conftest.b 2>&5 || hard_links=no 16558 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16559 echo "$as_me:$LINENO: result: $hard_links" >&5 16560echo "${ECHO_T}$hard_links" >&6 16561 if test "$hard_links" = no; then 16562 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16563echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16564 need_locks=warn 16565 fi 16566else 16567 need_locks=no 16568fi 16569 16570echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16571echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16572 16573 runpath_var= 16574 allow_undefined_flag_GCJ= 16575 enable_shared_with_static_runtimes_GCJ=no 16576 archive_cmds_GCJ= 16577 archive_expsym_cmds_GCJ= 16578 old_archive_From_new_cmds_GCJ= 16579 old_archive_from_expsyms_cmds_GCJ= 16580 export_dynamic_flag_spec_GCJ= 16581 whole_archive_flag_spec_GCJ= 16582 thread_safe_flag_spec_GCJ= 16583 hardcode_libdir_flag_spec_GCJ= 16584 hardcode_libdir_flag_spec_ld_GCJ= 16585 hardcode_libdir_separator_GCJ= 16586 hardcode_direct_GCJ=no 16587 hardcode_minus_L_GCJ=no 16588 hardcode_shlibpath_var_GCJ=unsupported 16589 link_all_deplibs_GCJ=unknown 16590 hardcode_automatic_GCJ=no 16591 module_cmds_GCJ= 16592 module_expsym_cmds_GCJ= 16593 always_export_symbols_GCJ=no 16594 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16595 # include_expsyms should be a list of space-separated symbols to be *always* 16596 # included in the symbol list 16597 include_expsyms_GCJ= 16598 # exclude_expsyms can be an extended regexp of symbols to exclude 16599 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16601 # as well as any symbol that contains `d'. 16602 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16604 # platforms (ab)use it in PIC code, but their linkers get confused if 16605 # the symbol is explicitly referenced. Since portable code cannot 16606 # rely on this symbol name, it's probably fine to never include it in 16607 # preloaded symbol tables. 16608 extract_expsyms_cmds= 16609 # Just being paranoid about ensuring that cc_basename is set. 16610 for cc_temp in $compiler""; do 16611 case $cc_temp in 16612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16614 \-*) ;; 16615 *) break;; 16616 esac 16617done 16618cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16619 16620 case $host_os in 16621 cygwin* | mingw* | pw32*) 16622 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16623 # When not using gcc, we currently assume that we are using 16624 # Microsoft Visual C++. 16625 if test "$GCC" != yes; then 16626 with_gnu_ld=no 16627 fi 16628 ;; 16629 openbsd*) 16630 with_gnu_ld=no 16631 ;; 16632 esac 16633 16634 ld_shlibs_GCJ=yes 16635 if test "$with_gnu_ld" = yes; then 16636 # If archive_cmds runs LD, not CC, wlarc should be empty 16637 wlarc='${wl}' 16638 16639 # Set some defaults for GNU ld with shared library support. These 16640 # are reset later if shared libraries are not supported. Putting them 16641 # here allows them to be overridden if necessary. 16642 runpath_var=LD_RUN_PATH 16643 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16644 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16645 # ancient GNU ld didn't support --whole-archive et. al. 16646 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16647 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16648 else 16649 whole_archive_flag_spec_GCJ= 16650 fi 16651 supports_anon_versioning=no 16652 case `$LD -v 2>/dev/null` in 16653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16656 *\ 2.11.*) ;; # other 2.11 versions 16657 *) supports_anon_versioning=yes ;; 16658 esac 16659 16660 # See if GNU ld supports shared libraries. 16661 case $host_os in 16662 aix3* | aix4* | aix5*) 16663 # On AIX/PPC, the GNU linker is very broken 16664 if test "$host_cpu" != ia64; then 16665 ld_shlibs_GCJ=no 16666 cat <<EOF 1>&2 16667 16668*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16669*** to be unable to reliably create shared libraries on AIX. 16670*** Therefore, libtool is disabling shared libraries support. If you 16671*** really care for shared libraries, you may want to modify your PATH 16672*** so that a non-GNU linker is found, and then restart. 16673 16674EOF 16675 fi 16676 ;; 16677 16678 amigaos*) 16679 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)' 16680 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16681 hardcode_minus_L_GCJ=yes 16682 16683 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16684 # that the semantics of dynamic libraries on AmigaOS, at least up 16685 # to version 4, is to share data among multiple programs linked 16686 # with the same dynamic library. Since this doesn't match the 16687 # behavior of shared libraries on other platforms, we can't use 16688 # them. 16689 ld_shlibs_GCJ=no 16690 ;; 16691 16692 beos*) 16693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16694 allow_undefined_flag_GCJ=unsupported 16695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16696 # support --undefined. This deserves some investigation. FIXME 16697 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16698 else 16699 ld_shlibs_GCJ=no 16700 fi 16701 ;; 16702 16703 cygwin* | mingw* | pw32*) 16704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16705 # as there is no search path for DLLs. 16706 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16707 allow_undefined_flag_GCJ=unsupported 16708 always_export_symbols_GCJ=no 16709 enable_shared_with_static_runtimes_GCJ=yes 16710 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16711 16712 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16714 # If the export-symbols file already is a .def file (1st line 16715 # is EXPORTS), use it as is; otherwise, prepend... 16716 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16717 cp $export_symbols $output_objdir/$soname.def; 16718 else 16719 echo EXPORTS > $output_objdir/$soname.def; 16720 cat $export_symbols >> $output_objdir/$soname.def; 16721 fi~ 16722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16723 else 16724 ld_shlibs_GCJ=no 16725 fi 16726 ;; 16727 16728 haiku*) 16729 allow_undefined_flag_GCJ=unsupported 16730 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16731 ;; 16732 16733 linux*) 16734 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16735 tmp_addflag= 16736 case $cc_basename,$host_cpu in 16737 pgcc*) # Portland Group C compiler 16738 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16739 tmp_addflag=' $pic_flag' 16740 ;; 16741 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16742 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16743 tmp_addflag=' $pic_flag -Mnomain' ;; 16744 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16745 tmp_addflag=' -i_dynamic' ;; 16746 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16747 tmp_addflag=' -i_dynamic -nofor_main' ;; 16748 ifc* | ifort*) # Intel Fortran compiler 16749 tmp_addflag=' -nofor_main' ;; 16750 esac 16751 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16752 16753 if test $supports_anon_versioning = yes; then 16754 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16756 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16757 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16758 fi 16759 else 16760 ld_shlibs_GCJ=no 16761 fi 16762 ;; 16763 16764 netbsd*) 16765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16766 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16767 wlarc= 16768 else 16769 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16770 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16771 fi 16772 ;; 16773 16774 solaris* | sysv5*) 16775 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16776 ld_shlibs_GCJ=no 16777 cat <<EOF 1>&2 16778 16779*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16780*** create shared libraries on Solaris systems. Therefore, libtool 16781*** is disabling shared libraries support. We urge you to upgrade GNU 16782*** binutils to release 2.9.1 or newer. Another option is to modify 16783*** your PATH or compiler configuration so that the native linker is 16784*** used, and then restart. 16785 16786EOF 16787 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16788 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16789 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16790 else 16791 ld_shlibs_GCJ=no 16792 fi 16793 ;; 16794 16795 sunos4*) 16796 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16797 wlarc= 16798 hardcode_direct_GCJ=yes 16799 hardcode_shlibpath_var_GCJ=no 16800 ;; 16801 16802 *) 16803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16804 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16805 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16806 else 16807 ld_shlibs_GCJ=no 16808 fi 16809 ;; 16810 esac 16811 16812 if test "$ld_shlibs_GCJ" = no; then 16813 runpath_var= 16814 hardcode_libdir_flag_spec_GCJ= 16815 export_dynamic_flag_spec_GCJ= 16816 whole_archive_flag_spec_GCJ= 16817 fi 16818 else 16819 # PORTME fill in a description of your system's linker (not GNU ld) 16820 case $host_os in 16821 aix3*) 16822 allow_undefined_flag_GCJ=unsupported 16823 always_export_symbols_GCJ=yes 16824 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' 16825 # Note: this linker hardcodes the directories in LIBPATH if there 16826 # are no directories specified by -L. 16827 hardcode_minus_L_GCJ=yes 16828 if test "$GCC" = yes && test -z "$link_static_flag"; then 16829 # Neither direct hardcoding nor static linking is supported with a 16830 # broken collect2. 16831 hardcode_direct_GCJ=unsupported 16832 fi 16833 ;; 16834 16835 aix4* | aix5*) 16836 if test "$host_cpu" = ia64; then 16837 # On IA64, the linker does run time linking by default, so we don't 16838 # have to do anything special. 16839 aix_use_runtimelinking=no 16840 exp_sym_flag='-Bexport' 16841 no_entry_flag="" 16842 else 16843 # If we're using GNU nm, then we don't want the "-C" option. 16844 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16845 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16846 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' 16847 else 16848 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' 16849 fi 16850 aix_use_runtimelinking=no 16851 16852 # Test if we are trying to use run time linking or normal 16853 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16854 # need to do runtime linking. 16855 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16856 for ld_flag in $LDFLAGS; do 16857 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16858 aix_use_runtimelinking=yes 16859 break 16860 fi 16861 done 16862 esac 16863 16864 exp_sym_flag='-bexport' 16865 no_entry_flag='-bnoentry' 16866 fi 16867 16868 # When large executables or shared objects are built, AIX ld can 16869 # have problems creating the table of contents. If linking a library 16870 # or program results in "error TOC overflow" add -mminimal-toc to 16871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16873 16874 archive_cmds_GCJ='' 16875 hardcode_direct_GCJ=yes 16876 hardcode_libdir_separator_GCJ=':' 16877 link_all_deplibs_GCJ=yes 16878 16879 if test "$GCC" = yes; then 16880 case $host_os in aix4.[012]|aix4.[012].*) 16881 # We only want to do this on AIX 4.2 and lower, the check 16882 # below for broken collect2 doesn't work under 4.3+ 16883 collect2name=`${CC} -print-prog-name=collect2` 16884 if test -f "$collect2name" && \ 16885 strings "$collect2name" | grep resolve_lib_name >/dev/null 16886 then 16887 # We have reworked collect2 16888 hardcode_direct_GCJ=yes 16889 else 16890 # We have old collect2 16891 hardcode_direct_GCJ=unsupported 16892 # It fails to find uninstalled libraries when the uninstalled 16893 # path is not listed in the libpath. Setting hardcode_minus_L 16894 # to unsupported forces relinking 16895 hardcode_minus_L_GCJ=yes 16896 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16897 hardcode_libdir_separator_GCJ= 16898 fi 16899 esac 16900 shared_flag='-shared' 16901 if test "$aix_use_runtimelinking" = yes; then 16902 shared_flag="$shared_flag "'${wl}-G' 16903 fi 16904 else 16905 # not using gcc 16906 if test "$host_cpu" = ia64; then 16907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16908 # chokes on -Wl,-G. The following line is correct: 16909 shared_flag='-G' 16910 else 16911 if test "$aix_use_runtimelinking" = yes; then 16912 shared_flag='${wl}-G' 16913 else 16914 shared_flag='${wl}-bM:SRE' 16915 fi 16916 fi 16917 fi 16918 16919 # It seems that -bexpall does not export symbols beginning with 16920 # underscore (_), so it is better to generate a list of symbols to export. 16921 always_export_symbols_GCJ=yes 16922 if test "$aix_use_runtimelinking" = yes; then 16923 # Warning - without using the other runtime loading flags (-brtl), 16924 # -berok will link without error, but may produce a broken library. 16925 allow_undefined_flag_GCJ='-berok' 16926 # Determine the default libpath from the value encoded in an empty executable. 16927 cat >conftest.$ac_ext <<_ACEOF 16928/* confdefs.h. */ 16929_ACEOF 16930cat confdefs.h >>conftest.$ac_ext 16931cat >>conftest.$ac_ext <<_ACEOF 16932/* end confdefs.h. */ 16933 16934int 16935main () 16936{ 16937 16938 ; 16939 return 0; 16940} 16941_ACEOF 16942rm -f conftest.$ac_objext conftest$ac_exeext 16943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16944 (eval $ac_link) 2>conftest.er1 16945 ac_status=$? 16946 grep -v '^ *+' conftest.er1 >conftest.err 16947 rm -f conftest.er1 16948 cat conftest.err >&5 16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16950 (exit $ac_status); } && 16951 { ac_try='test -z "$ac_c_werror_flag" 16952 || test ! -s conftest.err' 16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16954 (eval $ac_try) 2>&5 16955 ac_status=$? 16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16957 (exit $ac_status); }; } && 16958 { ac_try='test -s conftest$ac_exeext' 16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16960 (eval $ac_try) 2>&5 16961 ac_status=$? 16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16963 (exit $ac_status); }; }; then 16964 16965aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16966}'` 16967# Check for a 64-bit object if we didn't find anything. 16968if 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; } 16969}'`; fi 16970else 16971 echo "$as_me: failed program was:" >&5 16972sed 's/^/| /' conftest.$ac_ext >&5 16973 16974fi 16975rm -f conftest.err conftest.$ac_objext \ 16976 conftest$ac_exeext conftest.$ac_ext 16977if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16978 16979 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16980 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" 16981 else 16982 if test "$host_cpu" = ia64; then 16983 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16984 allow_undefined_flag_GCJ="-z nodefs" 16985 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" 16986 else 16987 # Determine the default libpath from the value encoded in an empty executable. 16988 cat >conftest.$ac_ext <<_ACEOF 16989/* confdefs.h. */ 16990_ACEOF 16991cat confdefs.h >>conftest.$ac_ext 16992cat >>conftest.$ac_ext <<_ACEOF 16993/* end confdefs.h. */ 16994 16995int 16996main () 16997{ 16998 16999 ; 17000 return 0; 17001} 17002_ACEOF 17003rm -f conftest.$ac_objext conftest$ac_exeext 17004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17005 (eval $ac_link) 2>conftest.er1 17006 ac_status=$? 17007 grep -v '^ *+' conftest.er1 >conftest.err 17008 rm -f conftest.er1 17009 cat conftest.err >&5 17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17011 (exit $ac_status); } && 17012 { ac_try='test -z "$ac_c_werror_flag" 17013 || test ! -s conftest.err' 17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17015 (eval $ac_try) 2>&5 17016 ac_status=$? 17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17018 (exit $ac_status); }; } && 17019 { ac_try='test -s conftest$ac_exeext' 17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17021 (eval $ac_try) 2>&5 17022 ac_status=$? 17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17024 (exit $ac_status); }; }; then 17025 17026aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17027}'` 17028# Check for a 64-bit object if we didn't find anything. 17029if 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; } 17030}'`; fi 17031else 17032 echo "$as_me: failed program was:" >&5 17033sed 's/^/| /' conftest.$ac_ext >&5 17034 17035fi 17036rm -f conftest.err conftest.$ac_objext \ 17037 conftest$ac_exeext conftest.$ac_ext 17038if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17039 17040 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17041 # Warning - without using the other run time loading flags, 17042 # -berok will link without error, but may produce a broken library. 17043 no_undefined_flag_GCJ=' ${wl}-bernotok' 17044 allow_undefined_flag_GCJ=' ${wl}-berok' 17045 # -bexpall does not export symbols beginning with underscore (_) 17046 always_export_symbols_GCJ=yes 17047 # Exported symbols can be pulled into shared objects from archives 17048 whole_archive_flag_spec_GCJ=' ' 17049 archive_cmds_need_lc_GCJ=yes 17050 # This is similar to how AIX traditionally builds its shared libraries. 17051 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' 17052 fi 17053 fi 17054 ;; 17055 17056 amigaos*) 17057 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)' 17058 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17059 hardcode_minus_L_GCJ=yes 17060 # see comment about different semantics on the GNU ld section 17061 ld_shlibs_GCJ=no 17062 ;; 17063 17064 bsdi[45]*) 17065 export_dynamic_flag_spec_GCJ=-rdynamic 17066 ;; 17067 17068 cygwin* | mingw* | pw32*) 17069 # When not using gcc, we currently assume that we are using 17070 # Microsoft Visual C++. 17071 # hardcode_libdir_flag_spec is actually meaningless, as there is 17072 # no search path for DLLs. 17073 hardcode_libdir_flag_spec_GCJ=' ' 17074 allow_undefined_flag_GCJ=unsupported 17075 # Tell ltmain to make .lib files, not .a files. 17076 libext=lib 17077 # Tell ltmain to make .dll files, not .so files. 17078 shrext_cmds=".dll" 17079 # FIXME: Setting linknames here is a bad hack. 17080 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17081 # The linker will automatically build a .lib file if we build a DLL. 17082 old_archive_From_new_cmds_GCJ='true' 17083 # FIXME: Should let the user specify the lib program. 17084 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17085 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17086 enable_shared_with_static_runtimes_GCJ=yes 17087 ;; 17088 17089 darwin* | rhapsody*) 17090 case $host_os in 17091 rhapsody* | darwin1.[012]) 17092 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17093 ;; 17094 *) # Darwin 1.3 on 17095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17096 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17097 else 17098 case ${MACOSX_DEPLOYMENT_TARGET} in 17099 10.[012]) 17100 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17101 ;; 17102 10.*) 17103 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17104 ;; 17105 esac 17106 fi 17107 ;; 17108 esac 17109 archive_cmds_need_lc_GCJ=no 17110 hardcode_direct_GCJ=no 17111 hardcode_automatic_GCJ=yes 17112 hardcode_shlibpath_var_GCJ=unsupported 17113 whole_archive_flag_spec_GCJ='' 17114 link_all_deplibs_GCJ=yes 17115 if test "$GCC" = yes ; then 17116 output_verbose_link_cmd='echo' 17117 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17118 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17120 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17121 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17122 else 17123 case $cc_basename in 17124 xlc*) 17125 output_verbose_link_cmd='echo' 17126 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17127 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17129 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17130 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17131 ;; 17132 *) 17133 ld_shlibs_GCJ=no 17134 ;; 17135 esac 17136 fi 17137 ;; 17138 17139 dgux*) 17140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17141 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17142 hardcode_shlibpath_var_GCJ=no 17143 ;; 17144 17145 freebsd1*) 17146 ld_shlibs_GCJ=no 17147 ;; 17148 17149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17150 # support. Future versions do this automatically, but an explicit c++rt0.o 17151 # does not break anything, and helps significantly (at the cost of a little 17152 # extra space). 17153 freebsd2.2*) 17154 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17155 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17156 hardcode_direct_GCJ=yes 17157 hardcode_shlibpath_var_GCJ=no 17158 ;; 17159 17160 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17161 freebsd2*) 17162 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17163 hardcode_direct_GCJ=yes 17164 hardcode_minus_L_GCJ=yes 17165 hardcode_shlibpath_var_GCJ=no 17166 ;; 17167 17168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17169 freebsd* | kfreebsd*-gnu | dragonfly*) 17170 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17171 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17172 hardcode_direct_GCJ=yes 17173 hardcode_shlibpath_var_GCJ=no 17174 ;; 17175 17176 hpux9*) 17177 if test "$GCC" = yes; then 17178 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' 17179 else 17180 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' 17181 fi 17182 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17183 hardcode_libdir_separator_GCJ=: 17184 hardcode_direct_GCJ=yes 17185 17186 # hardcode_minus_L: Not really in the search PATH, 17187 # but as the default location of the library. 17188 hardcode_minus_L_GCJ=yes 17189 export_dynamic_flag_spec_GCJ='${wl}-E' 17190 ;; 17191 17192 hpux10* | hpux11*) 17193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17194 case $host_cpu in 17195 hppa*64*|ia64*) 17196 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17197 ;; 17198 *) 17199 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17200 ;; 17201 esac 17202 else 17203 case $host_cpu in 17204 hppa*64*|ia64*) 17205 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17206 ;; 17207 *) 17208 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17209 ;; 17210 esac 17211 fi 17212 if test "$with_gnu_ld" = no; then 17213 case $host_cpu in 17214 hppa*64*) 17215 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17216 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17217 hardcode_libdir_separator_GCJ=: 17218 hardcode_direct_GCJ=no 17219 hardcode_shlibpath_var_GCJ=no 17220 ;; 17221 ia64*) 17222 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17223 hardcode_direct_GCJ=no 17224 hardcode_shlibpath_var_GCJ=no 17225 17226 # hardcode_minus_L: Not really in the search PATH, 17227 # but as the default location of the library. 17228 hardcode_minus_L_GCJ=yes 17229 ;; 17230 *) 17231 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17232 hardcode_libdir_separator_GCJ=: 17233 hardcode_direct_GCJ=yes 17234 export_dynamic_flag_spec_GCJ='${wl}-E' 17235 17236 # hardcode_minus_L: Not really in the search PATH, 17237 # but as the default location of the library. 17238 hardcode_minus_L_GCJ=yes 17239 ;; 17240 esac 17241 fi 17242 ;; 17243 17244 irix5* | irix6* | nonstopux*) 17245 if test "$GCC" = yes; then 17246 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' 17247 else 17248 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' 17249 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17250 fi 17251 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17252 hardcode_libdir_separator_GCJ=: 17253 link_all_deplibs_GCJ=yes 17254 ;; 17255 17256 netbsd*) 17257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17258 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17259 else 17260 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17261 fi 17262 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17263 hardcode_direct_GCJ=yes 17264 hardcode_shlibpath_var_GCJ=no 17265 ;; 17266 17267 newsos6) 17268 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17269 hardcode_direct_GCJ=yes 17270 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17271 hardcode_libdir_separator_GCJ=: 17272 hardcode_shlibpath_var_GCJ=no 17273 ;; 17274 17275 openbsd*) 17276 hardcode_direct_GCJ=yes 17277 hardcode_shlibpath_var_GCJ=no 17278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17279 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17280 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17281 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17282 export_dynamic_flag_spec_GCJ='${wl}-E' 17283 else 17284 case $host_os in 17285 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17286 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17287 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17288 ;; 17289 *) 17290 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17292 ;; 17293 esac 17294 fi 17295 ;; 17296 17297 os2*) 17298 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17299 hardcode_minus_L_GCJ=yes 17300 allow_undefined_flag_GCJ=unsupported 17301 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' 17302 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17303 ;; 17304 17305 osf3*) 17306 if test "$GCC" = yes; then 17307 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17308 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' 17309 else 17310 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17311 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' 17312 fi 17313 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17314 hardcode_libdir_separator_GCJ=: 17315 ;; 17316 17317 osf4* | osf5*) # as osf3* with the addition of -msym flag 17318 if test "$GCC" = yes; then 17319 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17320 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' 17321 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17322 else 17323 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17324 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' 17325 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~ 17326 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17327 17328 # Both c and cxx compiler support -rpath directly 17329 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17330 fi 17331 hardcode_libdir_separator_GCJ=: 17332 ;; 17333 17334 sco3.2v5*) 17335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17336 hardcode_shlibpath_var_GCJ=no 17337 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17338 runpath_var=LD_RUN_PATH 17339 hardcode_runpath_var=yes 17340 ;; 17341 17342 solaris*) 17343 no_undefined_flag_GCJ=' -z text' 17344 if test "$GCC" = yes; then 17345 wlarc='${wl}' 17346 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17347 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17348 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17349 else 17350 wlarc='' 17351 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17352 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17353 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17354 fi 17355 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17356 hardcode_shlibpath_var_GCJ=no 17357 case $host_os in 17358 solaris2.[0-5] | solaris2.[0-5].*) ;; 17359 *) 17360 # The compiler driver will combine linker options so we 17361 # cannot just pass the convience library names through 17362 # without $wl, iff we do not link with $LD. 17363 # Luckily, gcc supports the same syntax we need for Sun Studio. 17364 # Supported since Solaris 2.6 (maybe 2.5.1?) 17365 case $wlarc in 17366 '') 17367 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17368 *) 17369 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17370 esac ;; 17371 esac 17372 link_all_deplibs_GCJ=yes 17373 ;; 17374 17375 sunos4*) 17376 if test "x$host_vendor" = xsequent; then 17377 # Use $CC to link under sequent, because it throws in some extra .o 17378 # files that make .init and .fini sections work. 17379 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17380 else 17381 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17382 fi 17383 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17384 hardcode_direct_GCJ=yes 17385 hardcode_minus_L_GCJ=yes 17386 hardcode_shlibpath_var_GCJ=no 17387 ;; 17388 17389 sysv4) 17390 case $host_vendor in 17391 sni) 17392 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17393 hardcode_direct_GCJ=yes # is this really true??? 17394 ;; 17395 siemens) 17396 ## LD is ld it makes a PLAMLIB 17397 ## CC just makes a GrossModule. 17398 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17399 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17400 hardcode_direct_GCJ=no 17401 ;; 17402 motorola) 17403 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17404 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17405 ;; 17406 esac 17407 runpath_var='LD_RUN_PATH' 17408 hardcode_shlibpath_var_GCJ=no 17409 ;; 17410 17411 sysv4.3*) 17412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17413 hardcode_shlibpath_var_GCJ=no 17414 export_dynamic_flag_spec_GCJ='-Bexport' 17415 ;; 17416 17417 sysv4*MP*) 17418 if test -d /usr/nec; then 17419 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17420 hardcode_shlibpath_var_GCJ=no 17421 runpath_var=LD_RUN_PATH 17422 hardcode_runpath_var=yes 17423 ld_shlibs_GCJ=yes 17424 fi 17425 ;; 17426 17427 sysv4.2uw2*) 17428 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17429 hardcode_direct_GCJ=yes 17430 hardcode_minus_L_GCJ=no 17431 hardcode_shlibpath_var_GCJ=no 17432 hardcode_runpath_var=yes 17433 runpath_var=LD_RUN_PATH 17434 ;; 17435 17436 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17437 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17438 if test "$GCC" = yes; then 17439 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17440 else 17441 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17442 fi 17443 runpath_var='LD_RUN_PATH' 17444 hardcode_shlibpath_var_GCJ=no 17445 ;; 17446 17447 sysv5*) 17448 no_undefined_flag_GCJ=' -z text' 17449 # $CC -shared without GNU ld will not create a library from C++ 17450 # object files and a static libstdc++, better avoid it by now 17451 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17452 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17453 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17454 hardcode_libdir_flag_spec_GCJ= 17455 hardcode_shlibpath_var_GCJ=no 17456 runpath_var='LD_RUN_PATH' 17457 ;; 17458 17459 uts4*) 17460 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17461 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17462 hardcode_shlibpath_var_GCJ=no 17463 ;; 17464 17465 *) 17466 ld_shlibs_GCJ=no 17467 ;; 17468 esac 17469 fi 17470 17471echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17472echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17473test "$ld_shlibs_GCJ" = no && can_build_shared=no 17474 17475variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17476if test "$GCC" = yes; then 17477 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17478fi 17479 17480# 17481# Do we need to explicitly link libc? 17482# 17483case "x$archive_cmds_need_lc_GCJ" in 17484x|xyes) 17485 # Assume -lc should be added 17486 archive_cmds_need_lc_GCJ=yes 17487 17488 if test "$enable_shared" = yes && test "$GCC" = yes; then 17489 case $archive_cmds_GCJ in 17490 *'~'*) 17491 # FIXME: we may have to deal with multi-command sequences. 17492 ;; 17493 '$CC '*) 17494 # Test whether the compiler implicitly links with -lc since on some 17495 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17496 # to ld, don't add -lc before -lgcc. 17497 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17498echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17499 $rm conftest* 17500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17501 17502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17503 (eval $ac_compile) 2>&5 17504 ac_status=$? 17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17506 (exit $ac_status); } 2>conftest.err; then 17507 soname=conftest 17508 lib=conftest 17509 libobjs=conftest.$ac_objext 17510 deplibs= 17511 wl=$lt_prog_compiler_wl_GCJ 17512 compiler_flags=-v 17513 linker_flags=-v 17514 verstring= 17515 output_objdir=. 17516 libname=conftest 17517 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17518 allow_undefined_flag_GCJ= 17519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17520 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17521 ac_status=$? 17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17523 (exit $ac_status); } 17524 then 17525 archive_cmds_need_lc_GCJ=no 17526 else 17527 archive_cmds_need_lc_GCJ=yes 17528 fi 17529 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17530 else 17531 cat conftest.err 1>&5 17532 fi 17533 $rm conftest* 17534 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17535echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17536 ;; 17537 esac 17538 fi 17539 ;; 17540esac 17541 17542echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17543echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17544library_names_spec= 17545libname_spec='lib$name' 17546soname_spec= 17547shrext_cmds=".so" 17548postinstall_cmds= 17549postuninstall_cmds= 17550finish_cmds= 17551finish_eval= 17552shlibpath_var= 17553shlibpath_overrides_runpath=unknown 17554version_type=none 17555dynamic_linker="$host_os ld.so" 17556sys_lib_dlsearch_path_spec="/lib /usr/lib" 17557if test "$GCC" = yes; then 17558 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17559 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17560 # if the path contains ";" then we assume it to be the separator 17561 # otherwise default to the standard path separator (i.e. ":") - it is 17562 # assumed that no part of a normal pathname contains ";" but that should 17563 # okay in the real world where ";" in dirpaths is itself problematic. 17564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17565 else 17566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17567 fi 17568else 17569 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17570fi 17571need_lib_prefix=unknown 17572hardcode_into_libs=no 17573 17574# when you set need_version to no, make sure it does not cause -set_version 17575# flags to be left without arguments 17576need_version=unknown 17577 17578case $host_os in 17579aix3*) 17580 version_type=linux 17581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17582 shlibpath_var=LIBPATH 17583 17584 # AIX 3 has no versioning support, so we append a major version to the name. 17585 soname_spec='${libname}${release}${shared_ext}$major' 17586 ;; 17587 17588aix4* | aix5*) 17589 version_type=linux 17590 need_lib_prefix=no 17591 need_version=no 17592 hardcode_into_libs=yes 17593 if test "$host_cpu" = ia64; then 17594 # AIX 5 supports IA64 17595 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17596 shlibpath_var=LD_LIBRARY_PATH 17597 else 17598 # With GCC up to 2.95.x, collect2 would create an import file 17599 # for dependence libraries. The import file would start with 17600 # the line `#! .'. This would cause the generated library to 17601 # depend on `.', always an invalid library. This was fixed in 17602 # development snapshots of GCC prior to 3.0. 17603 case $host_os in 17604 aix4 | aix4.[01] | aix4.[01].*) 17605 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17606 echo ' yes ' 17607 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17608 : 17609 else 17610 can_build_shared=no 17611 fi 17612 ;; 17613 esac 17614 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17615 # soname into executable. Probably we can add versioning support to 17616 # collect2, so additional links can be useful in future. 17617 if test "$aix_use_runtimelinking" = yes; then 17618 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17619 # instead of lib<name>.a to let people know that these are not 17620 # typical AIX shared libraries. 17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17622 else 17623 # We preserve .a as extension for shared libraries through AIX4.2 17624 # and later when we are not doing run time linking. 17625 library_names_spec='${libname}${release}.a $libname.a' 17626 soname_spec='${libname}${release}${shared_ext}$major' 17627 fi 17628 shlibpath_var=LIBPATH 17629 fi 17630 ;; 17631 17632amigaos*) 17633 library_names_spec='$libname.ixlibrary $libname.a' 17634 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17635 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' 17636 ;; 17637 17638beos*) 17639 library_names_spec='${libname}${shared_ext}' 17640 dynamic_linker="$host_os ld.so" 17641 shlibpath_var=LIBRARY_PATH 17642 ;; 17643 17644bsdi[45]*) 17645 version_type=linux 17646 need_version=no 17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17648 soname_spec='${libname}${release}${shared_ext}$major' 17649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17650 shlibpath_var=LD_LIBRARY_PATH 17651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17653 # the default ld.so.conf also contains /usr/contrib/lib and 17654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17655 # libtool to hard-code these into programs 17656 ;; 17657 17658cygwin* | mingw* | pw32*) 17659 version_type=windows 17660 shrext_cmds=".dll" 17661 need_version=no 17662 need_lib_prefix=no 17663 17664 case $GCC,$host_os in 17665 yes,cygwin* | yes,mingw* | yes,pw32*) 17666 library_names_spec='$libname.dll.a' 17667 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17668 postinstall_cmds='base_file=`basename \${file}`~ 17669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17670 dldir=$destdir/`dirname \$dlpath`~ 17671 test -d \$dldir || mkdir -p \$dldir~ 17672 $install_prog $dir/$dlname \$dldir/$dlname~ 17673 chmod a+x \$dldir/$dlname' 17674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17675 dlpath=$dir/\$dldll~ 17676 $rm \$dlpath' 17677 shlibpath_overrides_runpath=yes 17678 17679 case $host_os in 17680 cygwin*) 17681 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17682 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17683 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17684 ;; 17685 mingw*) 17686 # MinGW DLLs use traditional 'lib' prefix 17687 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17689 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17690 # It is most probably a Windows format PATH printed by 17691 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17692 # path with ; separators, and with drive letters. We can handle the 17693 # drive letters (cygwin fileutils understands them), so leave them, 17694 # especially as we might pass files found there to a mingw objdump, 17695 # which wouldn't understand a cygwinified path. Ahh. 17696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17697 else 17698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17699 fi 17700 ;; 17701 pw32*) 17702 # pw32 DLLs use 'pw' prefix rather than 'lib' 17703 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17704 ;; 17705 esac 17706 ;; 17707 17708 *) 17709 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17710 ;; 17711 esac 17712 dynamic_linker='Win32 ld.exe' 17713 # FIXME: first we should search . and the directory the executable is in 17714 shlibpath_var=PATH 17715 ;; 17716 17717darwin* | rhapsody*) 17718 dynamic_linker="$host_os dyld" 17719 version_type=darwin 17720 need_lib_prefix=no 17721 need_version=no 17722 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17723 soname_spec='${libname}${release}${major}$shared_ext' 17724 shlibpath_overrides_runpath=yes 17725 shlibpath_var=DYLD_LIBRARY_PATH 17726 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17727 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17728 if test "$GCC" = yes; then 17729 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"` 17730 else 17731 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17732 fi 17733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17734 ;; 17735 17736dgux*) 17737 version_type=linux 17738 need_lib_prefix=no 17739 need_version=no 17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17741 soname_spec='${libname}${release}${shared_ext}$major' 17742 shlibpath_var=LD_LIBRARY_PATH 17743 ;; 17744 17745freebsd1*) 17746 dynamic_linker=no 17747 ;; 17748 17749haiku*) 17750 library_names_spec='${libname}${shared_ext}' 17751 dynamic_linker="$host_os ld.so" 17752 shlibpath_var=LIBRARY_PATH 17753 ;; 17754 17755kfreebsd*-gnu) 17756 version_type=linux 17757 need_lib_prefix=no 17758 need_version=no 17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17760 soname_spec='${libname}${release}${shared_ext}$major' 17761 shlibpath_var=LD_LIBRARY_PATH 17762 shlibpath_overrides_runpath=no 17763 hardcode_into_libs=yes 17764 dynamic_linker='GNU ld.so' 17765 ;; 17766 17767freebsd* | dragonfly*) 17768 # DragonFly does not have aout. When/if they implement a new 17769 # versioning mechanism, adjust this. 17770 if test -x /usr/bin/objformat; then 17771 objformat=`/usr/bin/objformat` 17772 else 17773 case $host_os in 17774 freebsd[123]*) objformat=aout ;; 17775 *) objformat=elf ;; 17776 esac 17777 fi 17778 version_type=freebsd-$objformat 17779 case $version_type in 17780 freebsd-elf*) 17781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17782 need_version=no 17783 need_lib_prefix=no 17784 ;; 17785 freebsd-*) 17786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17787 need_version=yes 17788 ;; 17789 esac 17790 shlibpath_var=LD_LIBRARY_PATH 17791 case $host_os in 17792 freebsd2*) 17793 shlibpath_overrides_runpath=yes 17794 ;; 17795 freebsd3.[01]* | freebsdelf3.[01]*) 17796 shlibpath_overrides_runpath=yes 17797 hardcode_into_libs=yes 17798 ;; 17799 *) # from 3.2 on 17800 shlibpath_overrides_runpath=no 17801 hardcode_into_libs=yes 17802 ;; 17803 esac 17804 ;; 17805 17806gnu*) 17807 version_type=linux 17808 need_lib_prefix=no 17809 need_version=no 17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17811 soname_spec='${libname}${release}${shared_ext}$major' 17812 shlibpath_var=LD_LIBRARY_PATH 17813 hardcode_into_libs=yes 17814 ;; 17815 17816hpux9* | hpux10* | hpux11*) 17817 # Give a soname corresponding to the major version so that dld.sl refuses to 17818 # link against other versions. 17819 version_type=sunos 17820 need_lib_prefix=no 17821 need_version=no 17822 case $host_cpu in 17823 ia64*) 17824 shrext_cmds='.so' 17825 hardcode_into_libs=yes 17826 dynamic_linker="$host_os dld.so" 17827 shlibpath_var=LD_LIBRARY_PATH 17828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17830 soname_spec='${libname}${release}${shared_ext}$major' 17831 if test "X$HPUX_IA64_MODE" = X32; then 17832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17833 else 17834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17835 fi 17836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17837 ;; 17838 hppa*64*) 17839 shrext_cmds='.sl' 17840 hardcode_into_libs=yes 17841 dynamic_linker="$host_os dld.sl" 17842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17845 soname_spec='${libname}${release}${shared_ext}$major' 17846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17848 ;; 17849 *) 17850 shrext_cmds='.sl' 17851 dynamic_linker="$host_os dld.sl" 17852 shlibpath_var=SHLIB_PATH 17853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17855 soname_spec='${libname}${release}${shared_ext}$major' 17856 ;; 17857 esac 17858 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17859 postinstall_cmds='chmod 555 $lib' 17860 ;; 17861 17862irix5* | irix6* | nonstopux*) 17863 case $host_os in 17864 nonstopux*) version_type=nonstopux ;; 17865 *) 17866 if test "$lt_cv_prog_gnu_ld" = yes; then 17867 version_type=linux 17868 else 17869 version_type=irix 17870 fi ;; 17871 esac 17872 need_lib_prefix=no 17873 need_version=no 17874 soname_spec='${libname}${release}${shared_ext}$major' 17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17876 case $host_os in 17877 irix5* | nonstopux*) 17878 libsuff= shlibsuff= 17879 ;; 17880 *) 17881 case $LD in # libtool.m4 will add one of these switches to LD 17882 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17883 libsuff= shlibsuff= libmagic=32-bit;; 17884 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17885 libsuff=32 shlibsuff=N32 libmagic=N32;; 17886 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17887 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17888 *) libsuff= shlibsuff= libmagic=never-match;; 17889 esac 17890 ;; 17891 esac 17892 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17893 shlibpath_overrides_runpath=no 17894 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17895 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17896 hardcode_into_libs=yes 17897 ;; 17898 17899# No shared lib support for Linux oldld, aout, or coff. 17900linux*oldld* | linux*aout* | linux*coff*) 17901 dynamic_linker=no 17902 ;; 17903 17904# This must be Linux ELF. 17905linux*) 17906 version_type=linux 17907 need_lib_prefix=no 17908 need_version=no 17909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17910 soname_spec='${libname}${release}${shared_ext}$major' 17911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17912 shlibpath_var=LD_LIBRARY_PATH 17913 shlibpath_overrides_runpath=no 17914 # This implies no fast_install, which is unacceptable. 17915 # Some rework will be needed to allow for fast_install 17916 # before this can be enabled. 17917 hardcode_into_libs=yes 17918 17919 # Append ld.so.conf contents to the search path 17920 if test -f /etc/ld.so.conf; then 17921 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17923 fi 17924 17925 # We used to test for /lib/ld.so.1 and disable shared libraries on 17926 # powerpc, because MkLinux only supported shared libraries with the 17927 # GNU dynamic linker. Since this was broken with cross compilers, 17928 # most powerpc-linux boxes support dynamic linking these days and 17929 # people can always --disable-shared, the test was removed, and we 17930 # assume the GNU/Linux dynamic linker is in use. 17931 dynamic_linker='GNU/Linux ld.so' 17932 ;; 17933 17934knetbsd*-gnu) 17935 version_type=linux 17936 need_lib_prefix=no 17937 need_version=no 17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17939 soname_spec='${libname}${release}${shared_ext}$major' 17940 shlibpath_var=LD_LIBRARY_PATH 17941 shlibpath_overrides_runpath=no 17942 hardcode_into_libs=yes 17943 dynamic_linker='GNU ld.so' 17944 ;; 17945 17946netbsd*) 17947 version_type=sunos 17948 need_lib_prefix=no 17949 need_version=no 17950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17953 dynamic_linker='NetBSD (a.out) ld.so' 17954 else 17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17956 soname_spec='${libname}${release}${shared_ext}$major' 17957 dynamic_linker='NetBSD ld.elf_so' 17958 fi 17959 shlibpath_var=LD_LIBRARY_PATH 17960 shlibpath_overrides_runpath=yes 17961 hardcode_into_libs=yes 17962 ;; 17963 17964newsos6) 17965 version_type=linux 17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17967 shlibpath_var=LD_LIBRARY_PATH 17968 shlibpath_overrides_runpath=yes 17969 ;; 17970 17971nto-qnx*) 17972 version_type=linux 17973 need_lib_prefix=no 17974 need_version=no 17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17976 soname_spec='${libname}${release}${shared_ext}$major' 17977 shlibpath_var=LD_LIBRARY_PATH 17978 shlibpath_overrides_runpath=yes 17979 ;; 17980 17981openbsd*) 17982 version_type=sunos 17983 need_lib_prefix=no 17984 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17985 case $host_os in 17986 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17987 *) need_version=no ;; 17988 esac 17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17991 shlibpath_var=LD_LIBRARY_PATH 17992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17993 case $host_os in 17994 openbsd2.[89] | openbsd2.[89].*) 17995 shlibpath_overrides_runpath=no 17996 ;; 17997 *) 17998 shlibpath_overrides_runpath=yes 17999 ;; 18000 esac 18001 else 18002 shlibpath_overrides_runpath=yes 18003 fi 18004 ;; 18005 18006os2*) 18007 libname_spec='$name' 18008 shrext_cmds=".dll" 18009 need_lib_prefix=no 18010 library_names_spec='$libname${shared_ext} $libname.a' 18011 dynamic_linker='OS/2 ld.exe' 18012 shlibpath_var=LIBPATH 18013 ;; 18014 18015osf3* | osf4* | osf5*) 18016 version_type=osf 18017 need_lib_prefix=no 18018 need_version=no 18019 soname_spec='${libname}${release}${shared_ext}$major' 18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18021 shlibpath_var=LD_LIBRARY_PATH 18022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18023 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18024 ;; 18025 18026sco3.2v5*) 18027 version_type=osf 18028 soname_spec='${libname}${release}${shared_ext}$major' 18029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18030 shlibpath_var=LD_LIBRARY_PATH 18031 ;; 18032 18033solaris*) 18034 version_type=linux 18035 need_lib_prefix=no 18036 need_version=no 18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18038 soname_spec='${libname}${release}${shared_ext}$major' 18039 shlibpath_var=LD_LIBRARY_PATH 18040 shlibpath_overrides_runpath=yes 18041 hardcode_into_libs=yes 18042 # ldd complains unless libraries are executable 18043 postinstall_cmds='chmod +x $lib' 18044 ;; 18045 18046sunos4*) 18047 version_type=sunos 18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18050 shlibpath_var=LD_LIBRARY_PATH 18051 shlibpath_overrides_runpath=yes 18052 if test "$with_gnu_ld" = yes; then 18053 need_lib_prefix=no 18054 fi 18055 need_version=yes 18056 ;; 18057 18058sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18059 version_type=linux 18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18061 soname_spec='${libname}${release}${shared_ext}$major' 18062 shlibpath_var=LD_LIBRARY_PATH 18063 case $host_vendor in 18064 sni) 18065 shlibpath_overrides_runpath=no 18066 need_lib_prefix=no 18067 export_dynamic_flag_spec='${wl}-Blargedynsym' 18068 runpath_var=LD_RUN_PATH 18069 ;; 18070 siemens) 18071 need_lib_prefix=no 18072 ;; 18073 motorola) 18074 need_lib_prefix=no 18075 need_version=no 18076 shlibpath_overrides_runpath=no 18077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18078 ;; 18079 esac 18080 ;; 18081 18082sysv4*MP*) 18083 if test -d /usr/nec ;then 18084 version_type=linux 18085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18086 soname_spec='$libname${shared_ext}.$major' 18087 shlibpath_var=LD_LIBRARY_PATH 18088 fi 18089 ;; 18090 18091uts4*) 18092 version_type=linux 18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18094 soname_spec='${libname}${release}${shared_ext}$major' 18095 shlibpath_var=LD_LIBRARY_PATH 18096 ;; 18097 18098*) 18099 dynamic_linker=no 18100 ;; 18101esac 18102echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18103echo "${ECHO_T}$dynamic_linker" >&6 18104test "$dynamic_linker" = no && can_build_shared=no 18105 18106echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18107echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18108hardcode_action_GCJ= 18109if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18110 test -n "$runpath_var_GCJ" || \ 18111 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18112 18113 # We can hardcode non-existant directories. 18114 if test "$hardcode_direct_GCJ" != no && 18115 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18116 # have to relink, otherwise we might link with an installed library 18117 # when we should be linking with a yet-to-be-installed one 18118 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18119 test "$hardcode_minus_L_GCJ" != no; then 18120 # Linking always hardcodes the temporary library directory. 18121 hardcode_action_GCJ=relink 18122 else 18123 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18124 hardcode_action_GCJ=immediate 18125 fi 18126else 18127 # We cannot hardcode anything, or else we can only hardcode existing 18128 # directories. 18129 hardcode_action_GCJ=unsupported 18130fi 18131echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18132echo "${ECHO_T}$hardcode_action_GCJ" >&6 18133 18134if test "$hardcode_action_GCJ" = relink; then 18135 # Fast installation is not supported 18136 enable_fast_install=no 18137elif test "$shlibpath_overrides_runpath" = yes || 18138 test "$enable_shared" = no; then 18139 # Fast installation is not necessary 18140 enable_fast_install=needless 18141fi 18142 18143striplib= 18144old_striplib= 18145echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18146echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18147if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18148 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18149 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18150 echo "$as_me:$LINENO: result: yes" >&5 18151echo "${ECHO_T}yes" >&6 18152else 18153# FIXME - insert some real tests, host_os isn't really good enough 18154 case $host_os in 18155 darwin*) 18156 if test -n "$STRIP" ; then 18157 striplib="$STRIP -x" 18158 echo "$as_me:$LINENO: result: yes" >&5 18159echo "${ECHO_T}yes" >&6 18160 else 18161 echo "$as_me:$LINENO: result: no" >&5 18162echo "${ECHO_T}no" >&6 18163fi 18164 ;; 18165 *) 18166 echo "$as_me:$LINENO: result: no" >&5 18167echo "${ECHO_T}no" >&6 18168 ;; 18169 esac 18170fi 18171 18172if test "x$enable_dlopen" != xyes; then 18173 enable_dlopen=unknown 18174 enable_dlopen_self=unknown 18175 enable_dlopen_self_static=unknown 18176else 18177 lt_cv_dlopen=no 18178 lt_cv_dlopen_libs= 18179 18180 case $host_os in 18181 beos*) 18182 lt_cv_dlopen="load_add_on" 18183 lt_cv_dlopen_libs= 18184 lt_cv_dlopen_self=yes 18185 ;; 18186 18187 mingw* | pw32*) 18188 lt_cv_dlopen="LoadLibrary" 18189 lt_cv_dlopen_libs= 18190 ;; 18191 18192 cygwin*) 18193 lt_cv_dlopen="dlopen" 18194 lt_cv_dlopen_libs= 18195 ;; 18196 18197 darwin*) 18198 # if libdl is installed we need to link against it 18199 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18200echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18201if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18202 echo $ECHO_N "(cached) $ECHO_C" >&6 18203else 18204 ac_check_lib_save_LIBS=$LIBS 18205LIBS="-ldl $LIBS" 18206cat >conftest.$ac_ext <<_ACEOF 18207/* confdefs.h. */ 18208_ACEOF 18209cat confdefs.h >>conftest.$ac_ext 18210cat >>conftest.$ac_ext <<_ACEOF 18211/* end confdefs.h. */ 18212 18213/* Override any gcc2 internal prototype to avoid an error. */ 18214#ifdef __cplusplus 18215extern "C" 18216#endif 18217/* We use char because int might match the return type of a gcc2 18218 builtin and then its argument prototype would still apply. */ 18219char dlopen (); 18220int 18221main () 18222{ 18223dlopen (); 18224 ; 18225 return 0; 18226} 18227_ACEOF 18228rm -f conftest.$ac_objext conftest$ac_exeext 18229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18230 (eval $ac_link) 2>conftest.er1 18231 ac_status=$? 18232 grep -v '^ *+' conftest.er1 >conftest.err 18233 rm -f conftest.er1 18234 cat conftest.err >&5 18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18236 (exit $ac_status); } && 18237 { ac_try='test -z "$ac_c_werror_flag" 18238 || test ! -s conftest.err' 18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18240 (eval $ac_try) 2>&5 18241 ac_status=$? 18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18243 (exit $ac_status); }; } && 18244 { ac_try='test -s conftest$ac_exeext' 18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18246 (eval $ac_try) 2>&5 18247 ac_status=$? 18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18249 (exit $ac_status); }; }; then 18250 ac_cv_lib_dl_dlopen=yes 18251else 18252 echo "$as_me: failed program was:" >&5 18253sed 's/^/| /' conftest.$ac_ext >&5 18254 18255ac_cv_lib_dl_dlopen=no 18256fi 18257rm -f conftest.err conftest.$ac_objext \ 18258 conftest$ac_exeext conftest.$ac_ext 18259LIBS=$ac_check_lib_save_LIBS 18260fi 18261echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18262echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18263if test $ac_cv_lib_dl_dlopen = yes; then 18264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18265else 18266 18267 lt_cv_dlopen="dyld" 18268 lt_cv_dlopen_libs= 18269 lt_cv_dlopen_self=yes 18270 18271fi 18272 18273 ;; 18274 18275 haiku*) 18276 lt_cv_dlopen="load_add_on" 18277 lt_cv_dlopen_libs= 18278 lt_cv_dlopen_self=yes 18279 ;; 18280 18281 *) 18282 echo "$as_me:$LINENO: checking for shl_load" >&5 18283echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18284if test "${ac_cv_func_shl_load+set}" = set; then 18285 echo $ECHO_N "(cached) $ECHO_C" >&6 18286else 18287 cat >conftest.$ac_ext <<_ACEOF 18288/* confdefs.h. */ 18289_ACEOF 18290cat confdefs.h >>conftest.$ac_ext 18291cat >>conftest.$ac_ext <<_ACEOF 18292/* end confdefs.h. */ 18293/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18294 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18295#define shl_load innocuous_shl_load 18296 18297/* System header to define __stub macros and hopefully few prototypes, 18298 which can conflict with char shl_load (); below. 18299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18300 <limits.h> exists even on freestanding compilers. */ 18301 18302#ifdef __STDC__ 18303# include <limits.h> 18304#else 18305# include <assert.h> 18306#endif 18307 18308#undef shl_load 18309 18310/* Override any gcc2 internal prototype to avoid an error. */ 18311#ifdef __cplusplus 18312extern "C" 18313{ 18314#endif 18315/* We use char because int might match the return type of a gcc2 18316 builtin and then its argument prototype would still apply. */ 18317char shl_load (); 18318/* The GNU C library defines this for functions which it implements 18319 to always fail with ENOSYS. Some functions are actually named 18320 something starting with __ and the normal name is an alias. */ 18321#if defined (__stub_shl_load) || defined (__stub___shl_load) 18322choke me 18323#else 18324char (*f) () = shl_load; 18325#endif 18326#ifdef __cplusplus 18327} 18328#endif 18329 18330int 18331main () 18332{ 18333return f != shl_load; 18334 ; 18335 return 0; 18336} 18337_ACEOF 18338rm -f conftest.$ac_objext conftest$ac_exeext 18339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18340 (eval $ac_link) 2>conftest.er1 18341 ac_status=$? 18342 grep -v '^ *+' conftest.er1 >conftest.err 18343 rm -f conftest.er1 18344 cat conftest.err >&5 18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18346 (exit $ac_status); } && 18347 { ac_try='test -z "$ac_c_werror_flag" 18348 || test ! -s conftest.err' 18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18350 (eval $ac_try) 2>&5 18351 ac_status=$? 18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18353 (exit $ac_status); }; } && 18354 { ac_try='test -s conftest$ac_exeext' 18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18356 (eval $ac_try) 2>&5 18357 ac_status=$? 18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18359 (exit $ac_status); }; }; then 18360 ac_cv_func_shl_load=yes 18361else 18362 echo "$as_me: failed program was:" >&5 18363sed 's/^/| /' conftest.$ac_ext >&5 18364 18365ac_cv_func_shl_load=no 18366fi 18367rm -f conftest.err conftest.$ac_objext \ 18368 conftest$ac_exeext conftest.$ac_ext 18369fi 18370echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18371echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18372if test $ac_cv_func_shl_load = yes; then 18373 lt_cv_dlopen="shl_load" 18374else 18375 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18376echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18377if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18378 echo $ECHO_N "(cached) $ECHO_C" >&6 18379else 18380 ac_check_lib_save_LIBS=$LIBS 18381LIBS="-ldld $LIBS" 18382cat >conftest.$ac_ext <<_ACEOF 18383/* confdefs.h. */ 18384_ACEOF 18385cat confdefs.h >>conftest.$ac_ext 18386cat >>conftest.$ac_ext <<_ACEOF 18387/* end confdefs.h. */ 18388 18389/* Override any gcc2 internal prototype to avoid an error. */ 18390#ifdef __cplusplus 18391extern "C" 18392#endif 18393/* We use char because int might match the return type of a gcc2 18394 builtin and then its argument prototype would still apply. */ 18395char shl_load (); 18396int 18397main () 18398{ 18399shl_load (); 18400 ; 18401 return 0; 18402} 18403_ACEOF 18404rm -f conftest.$ac_objext conftest$ac_exeext 18405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18406 (eval $ac_link) 2>conftest.er1 18407 ac_status=$? 18408 grep -v '^ *+' conftest.er1 >conftest.err 18409 rm -f conftest.er1 18410 cat conftest.err >&5 18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18412 (exit $ac_status); } && 18413 { ac_try='test -z "$ac_c_werror_flag" 18414 || test ! -s conftest.err' 18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18416 (eval $ac_try) 2>&5 18417 ac_status=$? 18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18419 (exit $ac_status); }; } && 18420 { ac_try='test -s conftest$ac_exeext' 18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18422 (eval $ac_try) 2>&5 18423 ac_status=$? 18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18425 (exit $ac_status); }; }; then 18426 ac_cv_lib_dld_shl_load=yes 18427else 18428 echo "$as_me: failed program was:" >&5 18429sed 's/^/| /' conftest.$ac_ext >&5 18430 18431ac_cv_lib_dld_shl_load=no 18432fi 18433rm -f conftest.err conftest.$ac_objext \ 18434 conftest$ac_exeext conftest.$ac_ext 18435LIBS=$ac_check_lib_save_LIBS 18436fi 18437echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18438echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18439if test $ac_cv_lib_dld_shl_load = yes; then 18440 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18441else 18442 echo "$as_me:$LINENO: checking for dlopen" >&5 18443echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18444if test "${ac_cv_func_dlopen+set}" = set; then 18445 echo $ECHO_N "(cached) $ECHO_C" >&6 18446else 18447 cat >conftest.$ac_ext <<_ACEOF 18448/* confdefs.h. */ 18449_ACEOF 18450cat confdefs.h >>conftest.$ac_ext 18451cat >>conftest.$ac_ext <<_ACEOF 18452/* end confdefs.h. */ 18453/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18454 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18455#define dlopen innocuous_dlopen 18456 18457/* System header to define __stub macros and hopefully few prototypes, 18458 which can conflict with char dlopen (); below. 18459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18460 <limits.h> exists even on freestanding compilers. */ 18461 18462#ifdef __STDC__ 18463# include <limits.h> 18464#else 18465# include <assert.h> 18466#endif 18467 18468#undef dlopen 18469 18470/* Override any gcc2 internal prototype to avoid an error. */ 18471#ifdef __cplusplus 18472extern "C" 18473{ 18474#endif 18475/* We use char because int might match the return type of a gcc2 18476 builtin and then its argument prototype would still apply. */ 18477char dlopen (); 18478/* The GNU C library defines this for functions which it implements 18479 to always fail with ENOSYS. Some functions are actually named 18480 something starting with __ and the normal name is an alias. */ 18481#if defined (__stub_dlopen) || defined (__stub___dlopen) 18482choke me 18483#else 18484char (*f) () = dlopen; 18485#endif 18486#ifdef __cplusplus 18487} 18488#endif 18489 18490int 18491main () 18492{ 18493return f != dlopen; 18494 ; 18495 return 0; 18496} 18497_ACEOF 18498rm -f conftest.$ac_objext conftest$ac_exeext 18499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18500 (eval $ac_link) 2>conftest.er1 18501 ac_status=$? 18502 grep -v '^ *+' conftest.er1 >conftest.err 18503 rm -f conftest.er1 18504 cat conftest.err >&5 18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18506 (exit $ac_status); } && 18507 { ac_try='test -z "$ac_c_werror_flag" 18508 || test ! -s conftest.err' 18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18510 (eval $ac_try) 2>&5 18511 ac_status=$? 18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18513 (exit $ac_status); }; } && 18514 { ac_try='test -s conftest$ac_exeext' 18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18516 (eval $ac_try) 2>&5 18517 ac_status=$? 18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18519 (exit $ac_status); }; }; then 18520 ac_cv_func_dlopen=yes 18521else 18522 echo "$as_me: failed program was:" >&5 18523sed 's/^/| /' conftest.$ac_ext >&5 18524 18525ac_cv_func_dlopen=no 18526fi 18527rm -f conftest.err conftest.$ac_objext \ 18528 conftest$ac_exeext conftest.$ac_ext 18529fi 18530echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18531echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18532if test $ac_cv_func_dlopen = yes; then 18533 lt_cv_dlopen="dlopen" 18534else 18535 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18536echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18537if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18538 echo $ECHO_N "(cached) $ECHO_C" >&6 18539else 18540 ac_check_lib_save_LIBS=$LIBS 18541LIBS="-ldl $LIBS" 18542cat >conftest.$ac_ext <<_ACEOF 18543/* confdefs.h. */ 18544_ACEOF 18545cat confdefs.h >>conftest.$ac_ext 18546cat >>conftest.$ac_ext <<_ACEOF 18547/* end confdefs.h. */ 18548 18549/* Override any gcc2 internal prototype to avoid an error. */ 18550#ifdef __cplusplus 18551extern "C" 18552#endif 18553/* We use char because int might match the return type of a gcc2 18554 builtin and then its argument prototype would still apply. */ 18555char dlopen (); 18556int 18557main () 18558{ 18559dlopen (); 18560 ; 18561 return 0; 18562} 18563_ACEOF 18564rm -f conftest.$ac_objext conftest$ac_exeext 18565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18566 (eval $ac_link) 2>conftest.er1 18567 ac_status=$? 18568 grep -v '^ *+' conftest.er1 >conftest.err 18569 rm -f conftest.er1 18570 cat conftest.err >&5 18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18572 (exit $ac_status); } && 18573 { ac_try='test -z "$ac_c_werror_flag" 18574 || test ! -s conftest.err' 18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18576 (eval $ac_try) 2>&5 18577 ac_status=$? 18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18579 (exit $ac_status); }; } && 18580 { ac_try='test -s conftest$ac_exeext' 18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18582 (eval $ac_try) 2>&5 18583 ac_status=$? 18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18585 (exit $ac_status); }; }; then 18586 ac_cv_lib_dl_dlopen=yes 18587else 18588 echo "$as_me: failed program was:" >&5 18589sed 's/^/| /' conftest.$ac_ext >&5 18590 18591ac_cv_lib_dl_dlopen=no 18592fi 18593rm -f conftest.err conftest.$ac_objext \ 18594 conftest$ac_exeext conftest.$ac_ext 18595LIBS=$ac_check_lib_save_LIBS 18596fi 18597echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18598echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18599if test $ac_cv_lib_dl_dlopen = yes; then 18600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18601else 18602 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18603echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18604if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18605 echo $ECHO_N "(cached) $ECHO_C" >&6 18606else 18607 ac_check_lib_save_LIBS=$LIBS 18608LIBS="-lsvld $LIBS" 18609cat >conftest.$ac_ext <<_ACEOF 18610/* confdefs.h. */ 18611_ACEOF 18612cat confdefs.h >>conftest.$ac_ext 18613cat >>conftest.$ac_ext <<_ACEOF 18614/* end confdefs.h. */ 18615 18616/* Override any gcc2 internal prototype to avoid an error. */ 18617#ifdef __cplusplus 18618extern "C" 18619#endif 18620/* We use char because int might match the return type of a gcc2 18621 builtin and then its argument prototype would still apply. */ 18622char dlopen (); 18623int 18624main () 18625{ 18626dlopen (); 18627 ; 18628 return 0; 18629} 18630_ACEOF 18631rm -f conftest.$ac_objext conftest$ac_exeext 18632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18633 (eval $ac_link) 2>conftest.er1 18634 ac_status=$? 18635 grep -v '^ *+' conftest.er1 >conftest.err 18636 rm -f conftest.er1 18637 cat conftest.err >&5 18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18639 (exit $ac_status); } && 18640 { ac_try='test -z "$ac_c_werror_flag" 18641 || test ! -s conftest.err' 18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18643 (eval $ac_try) 2>&5 18644 ac_status=$? 18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18646 (exit $ac_status); }; } && 18647 { ac_try='test -s conftest$ac_exeext' 18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18649 (eval $ac_try) 2>&5 18650 ac_status=$? 18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18652 (exit $ac_status); }; }; then 18653 ac_cv_lib_svld_dlopen=yes 18654else 18655 echo "$as_me: failed program was:" >&5 18656sed 's/^/| /' conftest.$ac_ext >&5 18657 18658ac_cv_lib_svld_dlopen=no 18659fi 18660rm -f conftest.err conftest.$ac_objext \ 18661 conftest$ac_exeext conftest.$ac_ext 18662LIBS=$ac_check_lib_save_LIBS 18663fi 18664echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18665echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18666if test $ac_cv_lib_svld_dlopen = yes; then 18667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18668else 18669 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18670echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18671if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18672 echo $ECHO_N "(cached) $ECHO_C" >&6 18673else 18674 ac_check_lib_save_LIBS=$LIBS 18675LIBS="-ldld $LIBS" 18676cat >conftest.$ac_ext <<_ACEOF 18677/* confdefs.h. */ 18678_ACEOF 18679cat confdefs.h >>conftest.$ac_ext 18680cat >>conftest.$ac_ext <<_ACEOF 18681/* end confdefs.h. */ 18682 18683/* Override any gcc2 internal prototype to avoid an error. */ 18684#ifdef __cplusplus 18685extern "C" 18686#endif 18687/* We use char because int might match the return type of a gcc2 18688 builtin and then its argument prototype would still apply. */ 18689char dld_link (); 18690int 18691main () 18692{ 18693dld_link (); 18694 ; 18695 return 0; 18696} 18697_ACEOF 18698rm -f conftest.$ac_objext conftest$ac_exeext 18699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18700 (eval $ac_link) 2>conftest.er1 18701 ac_status=$? 18702 grep -v '^ *+' conftest.er1 >conftest.err 18703 rm -f conftest.er1 18704 cat conftest.err >&5 18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18706 (exit $ac_status); } && 18707 { ac_try='test -z "$ac_c_werror_flag" 18708 || test ! -s conftest.err' 18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18710 (eval $ac_try) 2>&5 18711 ac_status=$? 18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18713 (exit $ac_status); }; } && 18714 { ac_try='test -s conftest$ac_exeext' 18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18716 (eval $ac_try) 2>&5 18717 ac_status=$? 18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18719 (exit $ac_status); }; }; then 18720 ac_cv_lib_dld_dld_link=yes 18721else 18722 echo "$as_me: failed program was:" >&5 18723sed 's/^/| /' conftest.$ac_ext >&5 18724 18725ac_cv_lib_dld_dld_link=no 18726fi 18727rm -f conftest.err conftest.$ac_objext \ 18728 conftest$ac_exeext conftest.$ac_ext 18729LIBS=$ac_check_lib_save_LIBS 18730fi 18731echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18732echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18733if test $ac_cv_lib_dld_dld_link = yes; then 18734 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18735fi 18736 18737 18738fi 18739 18740 18741fi 18742 18743 18744fi 18745 18746 18747fi 18748 18749 18750fi 18751 18752 ;; 18753 esac 18754 18755 if test "x$lt_cv_dlopen" != xno; then 18756 enable_dlopen=yes 18757 else 18758 enable_dlopen=no 18759 fi 18760 18761 case $lt_cv_dlopen in 18762 dlopen) 18763 save_CPPFLAGS="$CPPFLAGS" 18764 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18765 18766 save_LDFLAGS="$LDFLAGS" 18767 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18768 18769 save_LIBS="$LIBS" 18770 LIBS="$lt_cv_dlopen_libs $LIBS" 18771 18772 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18773echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18774if test "${lt_cv_dlopen_self+set}" = set; then 18775 echo $ECHO_N "(cached) $ECHO_C" >&6 18776else 18777 if test "$cross_compiling" = yes; then : 18778 lt_cv_dlopen_self=cross 18779else 18780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18781 lt_status=$lt_dlunknown 18782 cat > conftest.$ac_ext <<EOF 18783#line 18783 "configure" 18784#include "confdefs.h" 18785 18786#if HAVE_DLFCN_H 18787#include <dlfcn.h> 18788#endif 18789 18790#include <stdio.h> 18791 18792#ifdef RTLD_GLOBAL 18793# define LT_DLGLOBAL RTLD_GLOBAL 18794#else 18795# ifdef DL_GLOBAL 18796# define LT_DLGLOBAL DL_GLOBAL 18797# else 18798# define LT_DLGLOBAL 0 18799# endif 18800#endif 18801 18802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18803 find out it does not work in some platform. */ 18804#ifndef LT_DLLAZY_OR_NOW 18805# ifdef RTLD_LAZY 18806# define LT_DLLAZY_OR_NOW RTLD_LAZY 18807# else 18808# ifdef DL_LAZY 18809# define LT_DLLAZY_OR_NOW DL_LAZY 18810# else 18811# ifdef RTLD_NOW 18812# define LT_DLLAZY_OR_NOW RTLD_NOW 18813# else 18814# ifdef DL_NOW 18815# define LT_DLLAZY_OR_NOW DL_NOW 18816# else 18817# define LT_DLLAZY_OR_NOW 0 18818# endif 18819# endif 18820# endif 18821# endif 18822#endif 18823 18824#ifdef __cplusplus 18825extern "C" void exit (int); 18826#endif 18827 18828void fnord() { int i=42;} 18829int main () 18830{ 18831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18832 int status = $lt_dlunknown; 18833 18834 if (self) 18835 { 18836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18838 /* dlclose (self); */ 18839 } 18840 18841 exit (status); 18842} 18843EOF 18844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18845 (eval $ac_link) 2>&5 18846 ac_status=$? 18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18848 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18849 (./conftest; exit; ) >&5 2>/dev/null 18850 lt_status=$? 18851 case x$lt_status in 18852 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18853 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18854 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18855 esac 18856 else : 18857 # compilation failed 18858 lt_cv_dlopen_self=no 18859 fi 18860fi 18861rm -fr conftest* 18862 18863 18864fi 18865echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18866echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18867 18868 if test "x$lt_cv_dlopen_self" = xyes; then 18869 LDFLAGS="$LDFLAGS $link_static_flag" 18870 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18871echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18872if test "${lt_cv_dlopen_self_static+set}" = set; then 18873 echo $ECHO_N "(cached) $ECHO_C" >&6 18874else 18875 if test "$cross_compiling" = yes; then : 18876 lt_cv_dlopen_self_static=cross 18877else 18878 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18879 lt_status=$lt_dlunknown 18880 cat > conftest.$ac_ext <<EOF 18881#line 18881 "configure" 18882#include "confdefs.h" 18883 18884#if HAVE_DLFCN_H 18885#include <dlfcn.h> 18886#endif 18887 18888#include <stdio.h> 18889 18890#ifdef RTLD_GLOBAL 18891# define LT_DLGLOBAL RTLD_GLOBAL 18892#else 18893# ifdef DL_GLOBAL 18894# define LT_DLGLOBAL DL_GLOBAL 18895# else 18896# define LT_DLGLOBAL 0 18897# endif 18898#endif 18899 18900/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18901 find out it does not work in some platform. */ 18902#ifndef LT_DLLAZY_OR_NOW 18903# ifdef RTLD_LAZY 18904# define LT_DLLAZY_OR_NOW RTLD_LAZY 18905# else 18906# ifdef DL_LAZY 18907# define LT_DLLAZY_OR_NOW DL_LAZY 18908# else 18909# ifdef RTLD_NOW 18910# define LT_DLLAZY_OR_NOW RTLD_NOW 18911# else 18912# ifdef DL_NOW 18913# define LT_DLLAZY_OR_NOW DL_NOW 18914# else 18915# define LT_DLLAZY_OR_NOW 0 18916# endif 18917# endif 18918# endif 18919# endif 18920#endif 18921 18922#ifdef __cplusplus 18923extern "C" void exit (int); 18924#endif 18925 18926void fnord() { int i=42;} 18927int main () 18928{ 18929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18930 int status = $lt_dlunknown; 18931 18932 if (self) 18933 { 18934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18935 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18936 /* dlclose (self); */ 18937 } 18938 18939 exit (status); 18940} 18941EOF 18942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18943 (eval $ac_link) 2>&5 18944 ac_status=$? 18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18946 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18947 (./conftest; exit; ) >&5 2>/dev/null 18948 lt_status=$? 18949 case x$lt_status in 18950 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18951 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18952 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18953 esac 18954 else : 18955 # compilation failed 18956 lt_cv_dlopen_self_static=no 18957 fi 18958fi 18959rm -fr conftest* 18960 18961 18962fi 18963echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18964echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18965 fi 18966 18967 CPPFLAGS="$save_CPPFLAGS" 18968 LDFLAGS="$save_LDFLAGS" 18969 LIBS="$save_LIBS" 18970 ;; 18971 esac 18972 18973 case $lt_cv_dlopen_self in 18974 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18975 *) enable_dlopen_self=unknown ;; 18976 esac 18977 18978 case $lt_cv_dlopen_self_static in 18979 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18980 *) enable_dlopen_self_static=unknown ;; 18981 esac 18982fi 18983 18984 18985# The else clause should only fire when bootstrapping the 18986# libtool distribution, otherwise you forgot to ship ltmain.sh 18987# with your package, and you will get complaints that there are 18988# no rules to generate ltmain.sh. 18989if test -f "$ltmain"; then 18990 # See if we are running on zsh, and set the options which allow our commands through 18991 # without removal of \ escapes. 18992 if test -n "${ZSH_VERSION+set}" ; then 18993 setopt NO_GLOB_SUBST 18994 fi 18995 # Now quote all the things that may contain metacharacters while being 18996 # careful not to overquote the AC_SUBSTed values. We take copies of the 18997 # variables and quote the copies for generation of the libtool script. 18998 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18999 SED SHELL STRIP \ 19000 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19001 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19002 deplibs_check_method reload_flag reload_cmds need_locks \ 19003 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19004 lt_cv_sys_global_symbol_to_c_name_address \ 19005 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19006 old_postinstall_cmds old_postuninstall_cmds \ 19007 compiler_GCJ \ 19008 CC_GCJ \ 19009 LD_GCJ \ 19010 lt_prog_compiler_wl_GCJ \ 19011 lt_prog_compiler_pic_GCJ \ 19012 lt_prog_compiler_static_GCJ \ 19013 lt_prog_compiler_no_builtin_flag_GCJ \ 19014 export_dynamic_flag_spec_GCJ \ 19015 thread_safe_flag_spec_GCJ \ 19016 whole_archive_flag_spec_GCJ \ 19017 enable_shared_with_static_runtimes_GCJ \ 19018 old_archive_cmds_GCJ \ 19019 old_archive_from_new_cmds_GCJ \ 19020 predep_objects_GCJ \ 19021 postdep_objects_GCJ \ 19022 predeps_GCJ \ 19023 postdeps_GCJ \ 19024 compiler_lib_search_path_GCJ \ 19025 archive_cmds_GCJ \ 19026 archive_expsym_cmds_GCJ \ 19027 postinstall_cmds_GCJ \ 19028 postuninstall_cmds_GCJ \ 19029 old_archive_from_expsyms_cmds_GCJ \ 19030 allow_undefined_flag_GCJ \ 19031 no_undefined_flag_GCJ \ 19032 export_symbols_cmds_GCJ \ 19033 hardcode_libdir_flag_spec_GCJ \ 19034 hardcode_libdir_flag_spec_ld_GCJ \ 19035 hardcode_libdir_separator_GCJ \ 19036 hardcode_automatic_GCJ \ 19037 module_cmds_GCJ \ 19038 module_expsym_cmds_GCJ \ 19039 lt_cv_prog_compiler_c_o_GCJ \ 19040 exclude_expsyms_GCJ \ 19041 include_expsyms_GCJ; do 19042 19043 case $var in 19044 old_archive_cmds_GCJ | \ 19045 old_archive_from_new_cmds_GCJ | \ 19046 archive_cmds_GCJ | \ 19047 archive_expsym_cmds_GCJ | \ 19048 module_cmds_GCJ | \ 19049 module_expsym_cmds_GCJ | \ 19050 old_archive_from_expsyms_cmds_GCJ | \ 19051 export_symbols_cmds_GCJ | \ 19052 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19053 postinstall_cmds | postuninstall_cmds | \ 19054 old_postinstall_cmds | old_postuninstall_cmds | \ 19055 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19056 # Double-quote double-evaled strings. 19057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19058 ;; 19059 *) 19060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19061 ;; 19062 esac 19063 done 19064 19065 case $lt_echo in 19066 *'\$0 --fallback-echo"') 19067 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19068 ;; 19069 esac 19070 19071cfgfile="$ofile" 19072 19073 cat <<__EOF__ >> "$cfgfile" 19074# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19075 19076# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19077 19078# Shell to use when invoking shell scripts. 19079SHELL=$lt_SHELL 19080 19081# Whether or not to build shared libraries. 19082build_libtool_libs=$enable_shared 19083 19084# Whether or not to build static libraries. 19085build_old_libs=$enable_static 19086 19087# Whether or not to add -lc for building shared libraries. 19088build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19089 19090# Whether or not to disallow shared libs when runtime libs are static 19091allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19092 19093# Whether or not to optimize for fast installation. 19094fast_install=$enable_fast_install 19095 19096# The host system. 19097host_alias=$host_alias 19098host=$host 19099host_os=$host_os 19100 19101# The build system. 19102build_alias=$build_alias 19103build=$build 19104build_os=$build_os 19105 19106# An echo program that does not interpret backslashes. 19107echo=$lt_echo 19108 19109# The archiver. 19110AR=$lt_AR 19111AR_FLAGS=$lt_AR_FLAGS 19112 19113# A C compiler. 19114LTCC=$lt_LTCC 19115 19116# A language-specific compiler. 19117CC=$lt_compiler_GCJ 19118 19119# Is the compiler the GNU C compiler? 19120with_gcc=$GCC_GCJ 19121 19122# An ERE matcher. 19123EGREP=$lt_EGREP 19124 19125# The linker used to build libraries. 19126LD=$lt_LD_GCJ 19127 19128# Whether we need hard or soft links. 19129LN_S=$lt_LN_S 19130 19131# A BSD-compatible nm program. 19132NM=$lt_NM 19133 19134# A symbol stripping program 19135STRIP=$lt_STRIP 19136 19137# Used to examine libraries when file_magic_cmd begins "file" 19138MAGIC_CMD=$MAGIC_CMD 19139 19140# Used on cygwin: DLL creation program. 19141DLLTOOL="$DLLTOOL" 19142 19143# Used on cygwin: object dumper. 19144OBJDUMP="$OBJDUMP" 19145 19146# Used on cygwin: assembler. 19147AS="$AS" 19148 19149# The name of the directory that contains temporary libtool files. 19150objdir=$objdir 19151 19152# How to create reloadable object files. 19153reload_flag=$lt_reload_flag 19154reload_cmds=$lt_reload_cmds 19155 19156# How to pass a linker flag through the compiler. 19157wl=$lt_lt_prog_compiler_wl_GCJ 19158 19159# Object file suffix (normally "o"). 19160objext="$ac_objext" 19161 19162# Old archive suffix (normally "a"). 19163libext="$libext" 19164 19165# Shared library suffix (normally ".so"). 19166shrext_cmds='$shrext_cmds' 19167 19168# Executable file suffix (normally ""). 19169exeext="$exeext" 19170 19171# Additional compiler flags for building library objects. 19172pic_flag=$lt_lt_prog_compiler_pic_GCJ 19173pic_mode=$pic_mode 19174 19175# What is the maximum length of a command? 19176max_cmd_len=$lt_cv_sys_max_cmd_len 19177 19178# Does compiler simultaneously support -c and -o options? 19179compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19180 19181# Must we lock files when doing compilation? 19182need_locks=$lt_need_locks 19183 19184# Do we need the lib prefix for modules? 19185need_lib_prefix=$need_lib_prefix 19186 19187# Do we need a version for libraries? 19188need_version=$need_version 19189 19190# Whether dlopen is supported. 19191dlopen_support=$enable_dlopen 19192 19193# Whether dlopen of programs is supported. 19194dlopen_self=$enable_dlopen_self 19195 19196# Whether dlopen of statically linked programs is supported. 19197dlopen_self_static=$enable_dlopen_self_static 19198 19199# Compiler flag to prevent dynamic linking. 19200link_static_flag=$lt_lt_prog_compiler_static_GCJ 19201 19202# Compiler flag to turn off builtin functions. 19203no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19204 19205# Compiler flag to allow reflexive dlopens. 19206export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19207 19208# Compiler flag to generate shared objects directly from archives. 19209whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19210 19211# Compiler flag to generate thread-safe objects. 19212thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19213 19214# Library versioning type. 19215version_type=$version_type 19216 19217# Format of library name prefix. 19218libname_spec=$lt_libname_spec 19219 19220# List of archive names. First name is the real one, the rest are links. 19221# The last name is the one that the linker finds with -lNAME. 19222library_names_spec=$lt_library_names_spec 19223 19224# The coded name of the library, if different from the real name. 19225soname_spec=$lt_soname_spec 19226 19227# Commands used to build and install an old-style archive. 19228RANLIB=$lt_RANLIB 19229old_archive_cmds=$lt_old_archive_cmds_GCJ 19230old_postinstall_cmds=$lt_old_postinstall_cmds 19231old_postuninstall_cmds=$lt_old_postuninstall_cmds 19232 19233# Create an old-style archive from a shared archive. 19234old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19235 19236# Create a temporary old-style archive to link instead of a shared archive. 19237old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19238 19239# Commands used to build and install a shared archive. 19240archive_cmds=$lt_archive_cmds_GCJ 19241archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19242postinstall_cmds=$lt_postinstall_cmds 19243postuninstall_cmds=$lt_postuninstall_cmds 19244 19245# Commands used to build a loadable module (assumed same as above if empty) 19246module_cmds=$lt_module_cmds_GCJ 19247module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19248 19249# Commands to strip libraries. 19250old_striplib=$lt_old_striplib 19251striplib=$lt_striplib 19252 19253# Dependencies to place before the objects being linked to create a 19254# shared library. 19255predep_objects=$lt_predep_objects_GCJ 19256 19257# Dependencies to place after the objects being linked to create a 19258# shared library. 19259postdep_objects=$lt_postdep_objects_GCJ 19260 19261# Dependencies to place before the objects being linked to create a 19262# shared library. 19263predeps=$lt_predeps_GCJ 19264 19265# Dependencies to place after the objects being linked to create a 19266# shared library. 19267postdeps=$lt_postdeps_GCJ 19268 19269# The library search path used internally by the compiler when linking 19270# a shared library. 19271compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19272 19273# Method to check whether dependent libraries are shared objects. 19274deplibs_check_method=$lt_deplibs_check_method 19275 19276# Command to use when deplibs_check_method == file_magic. 19277file_magic_cmd=$lt_file_magic_cmd 19278 19279# Flag that allows shared libraries with undefined symbols to be built. 19280allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19281 19282# Flag that forces no undefined symbols. 19283no_undefined_flag=$lt_no_undefined_flag_GCJ 19284 19285# Commands used to finish a libtool library installation in a directory. 19286finish_cmds=$lt_finish_cmds 19287 19288# Same as above, but a single script fragment to be evaled but not shown. 19289finish_eval=$lt_finish_eval 19290 19291# Take the output of nm and produce a listing of raw symbols and C names. 19292global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19293 19294# Transform the output of nm in a proper C declaration 19295global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19296 19297# Transform the output of nm in a C name address pair 19298global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19299 19300# This is the shared library runtime path variable. 19301runpath_var=$runpath_var 19302 19303# This is the shared library path variable. 19304shlibpath_var=$shlibpath_var 19305 19306# Is shlibpath searched before the hard-coded library search path? 19307shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19308 19309# How to hardcode a shared library path into an executable. 19310hardcode_action=$hardcode_action_GCJ 19311 19312# Whether we should hardcode library paths into libraries. 19313hardcode_into_libs=$hardcode_into_libs 19314 19315# Flag to hardcode \$libdir into a binary during linking. 19316# This must work even if \$libdir does not exist. 19317hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19318 19319# If ld is used when linking, flag to hardcode \$libdir into 19320# a binary during linking. This must work even if \$libdir does 19321# not exist. 19322hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19323 19324# Whether we need a single -rpath flag with a separated argument. 19325hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19326 19327# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19328# resulting binary. 19329hardcode_direct=$hardcode_direct_GCJ 19330 19331# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19332# resulting binary. 19333hardcode_minus_L=$hardcode_minus_L_GCJ 19334 19335# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19336# the resulting binary. 19337hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19338 19339# Set to yes if building a shared library automatically hardcodes DIR into the library 19340# and all subsequent libraries and executables linked against it. 19341hardcode_automatic=$hardcode_automatic_GCJ 19342 19343# Variables whose values should be saved in libtool wrapper scripts and 19344# restored at relink time. 19345variables_saved_for_relink="$variables_saved_for_relink" 19346 19347# Whether libtool must link a program against all its dependency libraries. 19348link_all_deplibs=$link_all_deplibs_GCJ 19349 19350# Compile-time system search path for libraries 19351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19352 19353# Run-time system search path for libraries 19354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19355 19356# Fix the shell variable \$srcfile for the compiler. 19357fix_srcfile_path="$fix_srcfile_path_GCJ" 19358 19359# Set to yes if exported symbols are required. 19360always_export_symbols=$always_export_symbols_GCJ 19361 19362# The commands to list exported symbols. 19363export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19364 19365# The commands to extract the exported symbol list from a shared archive. 19366extract_expsyms_cmds=$lt_extract_expsyms_cmds 19367 19368# Symbols that should not be listed in the preloaded symbols. 19369exclude_expsyms=$lt_exclude_expsyms_GCJ 19370 19371# Symbols that must always be exported. 19372include_expsyms=$lt_include_expsyms_GCJ 19373 19374# ### END LIBTOOL TAG CONFIG: $tagname 19375 19376__EOF__ 19377 19378 19379else 19380 # If there is no Makefile yet, we rely on a make rule to execute 19381 # `config.status --recheck' to rerun these tests and create the 19382 # libtool script then. 19383 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19384 if test -f "$ltmain_in"; then 19385 test -f Makefile && make "$ltmain" 19386 fi 19387fi 19388 19389 19390ac_ext=c 19391ac_cpp='$CPP $CPPFLAGS' 19392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19394ac_compiler_gnu=$ac_cv_c_compiler_gnu 19395 19396CC="$lt_save_CC" 19397 19398 else 19399 tagname="" 19400 fi 19401 ;; 19402 19403 RC) 19404 19405 19406 19407# Source file extension for RC test sources. 19408ac_ext=rc 19409 19410# Object file extension for compiled RC test sources. 19411objext=o 19412objext_RC=$objext 19413 19414# Code to be used in simple compile tests 19415lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19416 19417# Code to be used in simple link tests 19418lt_simple_link_test_code="$lt_simple_compile_test_code" 19419 19420# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19421 19422# If no C compiler was specified, use CC. 19423LTCC=${LTCC-"$CC"} 19424 19425# Allow CC to be a program name with arguments. 19426compiler=$CC 19427 19428 19429# save warnings/boilerplate of simple test code 19430ac_outfile=conftest.$ac_objext 19431printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19432eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19433_lt_compiler_boilerplate=`cat conftest.err` 19434$rm conftest* 19435 19436ac_outfile=conftest.$ac_objext 19437printf "$lt_simple_link_test_code" >conftest.$ac_ext 19438eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19439_lt_linker_boilerplate=`cat conftest.err` 19440$rm conftest* 19441 19442 19443# Allow CC to be a program name with arguments. 19444lt_save_CC="$CC" 19445CC=${RC-"windres"} 19446compiler=$CC 19447compiler_RC=$CC 19448for cc_temp in $compiler""; do 19449 case $cc_temp in 19450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19452 \-*) ;; 19453 *) break;; 19454 esac 19455done 19456cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19457 19458lt_cv_prog_compiler_c_o_RC=yes 19459 19460# The else clause should only fire when bootstrapping the 19461# libtool distribution, otherwise you forgot to ship ltmain.sh 19462# with your package, and you will get complaints that there are 19463# no rules to generate ltmain.sh. 19464if test -f "$ltmain"; then 19465 # See if we are running on zsh, and set the options which allow our commands through 19466 # without removal of \ escapes. 19467 if test -n "${ZSH_VERSION+set}" ; then 19468 setopt NO_GLOB_SUBST 19469 fi 19470 # Now quote all the things that may contain metacharacters while being 19471 # careful not to overquote the AC_SUBSTed values. We take copies of the 19472 # variables and quote the copies for generation of the libtool script. 19473 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19474 SED SHELL STRIP \ 19475 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19476 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19477 deplibs_check_method reload_flag reload_cmds need_locks \ 19478 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19479 lt_cv_sys_global_symbol_to_c_name_address \ 19480 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19481 old_postinstall_cmds old_postuninstall_cmds \ 19482 compiler_RC \ 19483 CC_RC \ 19484 LD_RC \ 19485 lt_prog_compiler_wl_RC \ 19486 lt_prog_compiler_pic_RC \ 19487 lt_prog_compiler_static_RC \ 19488 lt_prog_compiler_no_builtin_flag_RC \ 19489 export_dynamic_flag_spec_RC \ 19490 thread_safe_flag_spec_RC \ 19491 whole_archive_flag_spec_RC \ 19492 enable_shared_with_static_runtimes_RC \ 19493 old_archive_cmds_RC \ 19494 old_archive_from_new_cmds_RC \ 19495 predep_objects_RC \ 19496 postdep_objects_RC \ 19497 predeps_RC \ 19498 postdeps_RC \ 19499 compiler_lib_search_path_RC \ 19500 archive_cmds_RC \ 19501 archive_expsym_cmds_RC \ 19502 postinstall_cmds_RC \ 19503 postuninstall_cmds_RC \ 19504 old_archive_from_expsyms_cmds_RC \ 19505 allow_undefined_flag_RC \ 19506 no_undefined_flag_RC \ 19507 export_symbols_cmds_RC \ 19508 hardcode_libdir_flag_spec_RC \ 19509 hardcode_libdir_flag_spec_ld_RC \ 19510 hardcode_libdir_separator_RC \ 19511 hardcode_automatic_RC \ 19512 module_cmds_RC \ 19513 module_expsym_cmds_RC \ 19514 lt_cv_prog_compiler_c_o_RC \ 19515 exclude_expsyms_RC \ 19516 include_expsyms_RC; do 19517 19518 case $var in 19519 old_archive_cmds_RC | \ 19520 old_archive_from_new_cmds_RC | \ 19521 archive_cmds_RC | \ 19522 archive_expsym_cmds_RC | \ 19523 module_cmds_RC | \ 19524 module_expsym_cmds_RC | \ 19525 old_archive_from_expsyms_cmds_RC | \ 19526 export_symbols_cmds_RC | \ 19527 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19528 postinstall_cmds | postuninstall_cmds | \ 19529 old_postinstall_cmds | old_postuninstall_cmds | \ 19530 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19531 # Double-quote double-evaled strings. 19532 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19533 ;; 19534 *) 19535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19536 ;; 19537 esac 19538 done 19539 19540 case $lt_echo in 19541 *'\$0 --fallback-echo"') 19542 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19543 ;; 19544 esac 19545 19546cfgfile="$ofile" 19547 19548 cat <<__EOF__ >> "$cfgfile" 19549# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19550 19551# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19552 19553# Shell to use when invoking shell scripts. 19554SHELL=$lt_SHELL 19555 19556# Whether or not to build shared libraries. 19557build_libtool_libs=$enable_shared 19558 19559# Whether or not to build static libraries. 19560build_old_libs=$enable_static 19561 19562# Whether or not to add -lc for building shared libraries. 19563build_libtool_need_lc=$archive_cmds_need_lc_RC 19564 19565# Whether or not to disallow shared libs when runtime libs are static 19566allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19567 19568# Whether or not to optimize for fast installation. 19569fast_install=$enable_fast_install 19570 19571# The host system. 19572host_alias=$host_alias 19573host=$host 19574host_os=$host_os 19575 19576# The build system. 19577build_alias=$build_alias 19578build=$build 19579build_os=$build_os 19580 19581# An echo program that does not interpret backslashes. 19582echo=$lt_echo 19583 19584# The archiver. 19585AR=$lt_AR 19586AR_FLAGS=$lt_AR_FLAGS 19587 19588# A C compiler. 19589LTCC=$lt_LTCC 19590 19591# A language-specific compiler. 19592CC=$lt_compiler_RC 19593 19594# Is the compiler the GNU C compiler? 19595with_gcc=$GCC_RC 19596 19597# An ERE matcher. 19598EGREP=$lt_EGREP 19599 19600# The linker used to build libraries. 19601LD=$lt_LD_RC 19602 19603# Whether we need hard or soft links. 19604LN_S=$lt_LN_S 19605 19606# A BSD-compatible nm program. 19607NM=$lt_NM 19608 19609# A symbol stripping program 19610STRIP=$lt_STRIP 19611 19612# Used to examine libraries when file_magic_cmd begins "file" 19613MAGIC_CMD=$MAGIC_CMD 19614 19615# Used on cygwin: DLL creation program. 19616DLLTOOL="$DLLTOOL" 19617 19618# Used on cygwin: object dumper. 19619OBJDUMP="$OBJDUMP" 19620 19621# Used on cygwin: assembler. 19622AS="$AS" 19623 19624# The name of the directory that contains temporary libtool files. 19625objdir=$objdir 19626 19627# How to create reloadable object files. 19628reload_flag=$lt_reload_flag 19629reload_cmds=$lt_reload_cmds 19630 19631# How to pass a linker flag through the compiler. 19632wl=$lt_lt_prog_compiler_wl_RC 19633 19634# Object file suffix (normally "o"). 19635objext="$ac_objext" 19636 19637# Old archive suffix (normally "a"). 19638libext="$libext" 19639 19640# Shared library suffix (normally ".so"). 19641shrext_cmds='$shrext_cmds' 19642 19643# Executable file suffix (normally ""). 19644exeext="$exeext" 19645 19646# Additional compiler flags for building library objects. 19647pic_flag=$lt_lt_prog_compiler_pic_RC 19648pic_mode=$pic_mode 19649 19650# What is the maximum length of a command? 19651max_cmd_len=$lt_cv_sys_max_cmd_len 19652 19653# Does compiler simultaneously support -c and -o options? 19654compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19655 19656# Must we lock files when doing compilation? 19657need_locks=$lt_need_locks 19658 19659# Do we need the lib prefix for modules? 19660need_lib_prefix=$need_lib_prefix 19661 19662# Do we need a version for libraries? 19663need_version=$need_version 19664 19665# Whether dlopen is supported. 19666dlopen_support=$enable_dlopen 19667 19668# Whether dlopen of programs is supported. 19669dlopen_self=$enable_dlopen_self 19670 19671# Whether dlopen of statically linked programs is supported. 19672dlopen_self_static=$enable_dlopen_self_static 19673 19674# Compiler flag to prevent dynamic linking. 19675link_static_flag=$lt_lt_prog_compiler_static_RC 19676 19677# Compiler flag to turn off builtin functions. 19678no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19679 19680# Compiler flag to allow reflexive dlopens. 19681export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19682 19683# Compiler flag to generate shared objects directly from archives. 19684whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19685 19686# Compiler flag to generate thread-safe objects. 19687thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19688 19689# Library versioning type. 19690version_type=$version_type 19691 19692# Format of library name prefix. 19693libname_spec=$lt_libname_spec 19694 19695# List of archive names. First name is the real one, the rest are links. 19696# The last name is the one that the linker finds with -lNAME. 19697library_names_spec=$lt_library_names_spec 19698 19699# The coded name of the library, if different from the real name. 19700soname_spec=$lt_soname_spec 19701 19702# Commands used to build and install an old-style archive. 19703RANLIB=$lt_RANLIB 19704old_archive_cmds=$lt_old_archive_cmds_RC 19705old_postinstall_cmds=$lt_old_postinstall_cmds 19706old_postuninstall_cmds=$lt_old_postuninstall_cmds 19707 19708# Create an old-style archive from a shared archive. 19709old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19710 19711# Create a temporary old-style archive to link instead of a shared archive. 19712old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19713 19714# Commands used to build and install a shared archive. 19715archive_cmds=$lt_archive_cmds_RC 19716archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19717postinstall_cmds=$lt_postinstall_cmds 19718postuninstall_cmds=$lt_postuninstall_cmds 19719 19720# Commands used to build a loadable module (assumed same as above if empty) 19721module_cmds=$lt_module_cmds_RC 19722module_expsym_cmds=$lt_module_expsym_cmds_RC 19723 19724# Commands to strip libraries. 19725old_striplib=$lt_old_striplib 19726striplib=$lt_striplib 19727 19728# Dependencies to place before the objects being linked to create a 19729# shared library. 19730predep_objects=$lt_predep_objects_RC 19731 19732# Dependencies to place after the objects being linked to create a 19733# shared library. 19734postdep_objects=$lt_postdep_objects_RC 19735 19736# Dependencies to place before the objects being linked to create a 19737# shared library. 19738predeps=$lt_predeps_RC 19739 19740# Dependencies to place after the objects being linked to create a 19741# shared library. 19742postdeps=$lt_postdeps_RC 19743 19744# The library search path used internally by the compiler when linking 19745# a shared library. 19746compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19747 19748# Method to check whether dependent libraries are shared objects. 19749deplibs_check_method=$lt_deplibs_check_method 19750 19751# Command to use when deplibs_check_method == file_magic. 19752file_magic_cmd=$lt_file_magic_cmd 19753 19754# Flag that allows shared libraries with undefined symbols to be built. 19755allow_undefined_flag=$lt_allow_undefined_flag_RC 19756 19757# Flag that forces no undefined symbols. 19758no_undefined_flag=$lt_no_undefined_flag_RC 19759 19760# Commands used to finish a libtool library installation in a directory. 19761finish_cmds=$lt_finish_cmds 19762 19763# Same as above, but a single script fragment to be evaled but not shown. 19764finish_eval=$lt_finish_eval 19765 19766# Take the output of nm and produce a listing of raw symbols and C names. 19767global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19768 19769# Transform the output of nm in a proper C declaration 19770global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19771 19772# Transform the output of nm in a C name address pair 19773global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19774 19775# This is the shared library runtime path variable. 19776runpath_var=$runpath_var 19777 19778# This is the shared library path variable. 19779shlibpath_var=$shlibpath_var 19780 19781# Is shlibpath searched before the hard-coded library search path? 19782shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19783 19784# How to hardcode a shared library path into an executable. 19785hardcode_action=$hardcode_action_RC 19786 19787# Whether we should hardcode library paths into libraries. 19788hardcode_into_libs=$hardcode_into_libs 19789 19790# Flag to hardcode \$libdir into a binary during linking. 19791# This must work even if \$libdir does not exist. 19792hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19793 19794# If ld is used when linking, flag to hardcode \$libdir into 19795# a binary during linking. This must work even if \$libdir does 19796# not exist. 19797hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19798 19799# Whether we need a single -rpath flag with a separated argument. 19800hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19801 19802# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19803# resulting binary. 19804hardcode_direct=$hardcode_direct_RC 19805 19806# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19807# resulting binary. 19808hardcode_minus_L=$hardcode_minus_L_RC 19809 19810# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19811# the resulting binary. 19812hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19813 19814# Set to yes if building a shared library automatically hardcodes DIR into the library 19815# and all subsequent libraries and executables linked against it. 19816hardcode_automatic=$hardcode_automatic_RC 19817 19818# Variables whose values should be saved in libtool wrapper scripts and 19819# restored at relink time. 19820variables_saved_for_relink="$variables_saved_for_relink" 19821 19822# Whether libtool must link a program against all its dependency libraries. 19823link_all_deplibs=$link_all_deplibs_RC 19824 19825# Compile-time system search path for libraries 19826sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19827 19828# Run-time system search path for libraries 19829sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19830 19831# Fix the shell variable \$srcfile for the compiler. 19832fix_srcfile_path="$fix_srcfile_path_RC" 19833 19834# Set to yes if exported symbols are required. 19835always_export_symbols=$always_export_symbols_RC 19836 19837# The commands to list exported symbols. 19838export_symbols_cmds=$lt_export_symbols_cmds_RC 19839 19840# The commands to extract the exported symbol list from a shared archive. 19841extract_expsyms_cmds=$lt_extract_expsyms_cmds 19842 19843# Symbols that should not be listed in the preloaded symbols. 19844exclude_expsyms=$lt_exclude_expsyms_RC 19845 19846# Symbols that must always be exported. 19847include_expsyms=$lt_include_expsyms_RC 19848 19849# ### END LIBTOOL TAG CONFIG: $tagname 19850 19851__EOF__ 19852 19853 19854else 19855 # If there is no Makefile yet, we rely on a make rule to execute 19856 # `config.status --recheck' to rerun these tests and create the 19857 # libtool script then. 19858 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19859 if test -f "$ltmain_in"; then 19860 test -f Makefile && make "$ltmain" 19861 fi 19862fi 19863 19864 19865ac_ext=c 19866ac_cpp='$CPP $CPPFLAGS' 19867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19869ac_compiler_gnu=$ac_cv_c_compiler_gnu 19870 19871CC="$lt_save_CC" 19872 19873 ;; 19874 19875 *) 19876 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19877echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19878 { (exit 1); exit 1; }; } 19879 ;; 19880 esac 19881 19882 # Append the new tag name to the list of available tags. 19883 if test -n "$tagname" ; then 19884 available_tags="$available_tags $tagname" 19885 fi 19886 fi 19887 done 19888 IFS="$lt_save_ifs" 19889 19890 # Now substitute the updated list of available tags. 19891 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19892 mv "${ofile}T" "$ofile" 19893 chmod +x "$ofile" 19894 else 19895 rm -f "${ofile}T" 19896 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19897echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19898 { (exit 1); exit 1; }; } 19899 fi 19900fi 19901 19902 19903 19904# This can be used to rebuild libtool when needed 19905LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19906 19907# Always use our own libtool. 19908LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19909 19910# Prevent multiple expansion 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933## ------------------------------- ## 19934## depdemo specific configuration. ## 19935## ------------------------------- ## 19936if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then 19937 STATIC=-static 19938else 19939 STATIC= 19940fi 19941 19942 19943## ---------------------------- ## 19944## C headers required by cdemo. ## 19945## ---------------------------- ## 19946 19947for ac_header in math.h 19948do 19949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19950if eval "test \"\${$as_ac_Header+set}\" = set"; then 19951 echo "$as_me:$LINENO: checking for $ac_header" >&5 19952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19953if eval "test \"\${$as_ac_Header+set}\" = set"; then 19954 echo $ECHO_N "(cached) $ECHO_C" >&6 19955fi 19956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19958else 19959 # Is the header compilable? 19960echo "$as_me:$LINENO: checking $ac_header usability" >&5 19961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19962cat >conftest.$ac_ext <<_ACEOF 19963/* confdefs.h. */ 19964_ACEOF 19965cat confdefs.h >>conftest.$ac_ext 19966cat >>conftest.$ac_ext <<_ACEOF 19967/* end confdefs.h. */ 19968$ac_includes_default 19969#include <$ac_header> 19970_ACEOF 19971rm -f conftest.$ac_objext 19972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19973 (eval $ac_compile) 2>conftest.er1 19974 ac_status=$? 19975 grep -v '^ *+' conftest.er1 >conftest.err 19976 rm -f conftest.er1 19977 cat conftest.err >&5 19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19979 (exit $ac_status); } && 19980 { ac_try='test -z "$ac_c_werror_flag" 19981 || test ! -s conftest.err' 19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19983 (eval $ac_try) 2>&5 19984 ac_status=$? 19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19986 (exit $ac_status); }; } && 19987 { ac_try='test -s conftest.$ac_objext' 19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19989 (eval $ac_try) 2>&5 19990 ac_status=$? 19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19992 (exit $ac_status); }; }; then 19993 ac_header_compiler=yes 19994else 19995 echo "$as_me: failed program was:" >&5 19996sed 's/^/| /' conftest.$ac_ext >&5 19997 19998ac_header_compiler=no 19999fi 20000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20002echo "${ECHO_T}$ac_header_compiler" >&6 20003 20004# Is the header present? 20005echo "$as_me:$LINENO: checking $ac_header presence" >&5 20006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20007cat >conftest.$ac_ext <<_ACEOF 20008/* confdefs.h. */ 20009_ACEOF 20010cat confdefs.h >>conftest.$ac_ext 20011cat >>conftest.$ac_ext <<_ACEOF 20012/* end confdefs.h. */ 20013#include <$ac_header> 20014_ACEOF 20015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20017 ac_status=$? 20018 grep -v '^ *+' conftest.er1 >conftest.err 20019 rm -f conftest.er1 20020 cat conftest.err >&5 20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20022 (exit $ac_status); } >/dev/null; then 20023 if test -s conftest.err; then 20024 ac_cpp_err=$ac_c_preproc_warn_flag 20025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20026 else 20027 ac_cpp_err= 20028 fi 20029else 20030 ac_cpp_err=yes 20031fi 20032if test -z "$ac_cpp_err"; then 20033 ac_header_preproc=yes 20034else 20035 echo "$as_me: failed program was:" >&5 20036sed 's/^/| /' conftest.$ac_ext >&5 20037 20038 ac_header_preproc=no 20039fi 20040rm -f conftest.err conftest.$ac_ext 20041echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20042echo "${ECHO_T}$ac_header_preproc" >&6 20043 20044# So? What about this header? 20045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20046 yes:no: ) 20047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20051 ac_header_preproc=yes 20052 ;; 20053 no:yes:* ) 20054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20057echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20061echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20066 ( 20067 cat <<\_ASBOX 20068## ---------------------------------- ## 20069## Report this to bug-libtool@gnu.org ## 20070## ---------------------------------- ## 20071_ASBOX 20072 ) | 20073 sed "s/^/$as_me: WARNING: /" >&2 20074 ;; 20075esac 20076echo "$as_me:$LINENO: checking for $ac_header" >&5 20077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20078if eval "test \"\${$as_ac_Header+set}\" = set"; then 20079 echo $ECHO_N "(cached) $ECHO_C" >&6 20080else 20081 eval "$as_ac_Header=\$ac_header_preproc" 20082fi 20083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20085 20086fi 20087if test `eval echo '${'$as_ac_Header'}'` = yes; then 20088 cat >>confdefs.h <<_ACEOF 20089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20090_ACEOF 20091 20092fi 20093 20094done 20095 20096 20097 20098## ---------------------------- ## 20099## Libraries required by cdemo. ## 20100## ---------------------------- ## 20101LIBM= 20102case $host in 20103*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin* | *-*-haiku*) 20104 # These system don't have libm, or don't need it 20105 ;; 20106*-ncr-sysv4.3*) 20107 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5 20108echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6 20109if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then 20110 echo $ECHO_N "(cached) $ECHO_C" >&6 20111else 20112 ac_check_lib_save_LIBS=$LIBS 20113LIBS="-lmw $LIBS" 20114cat >conftest.$ac_ext <<_ACEOF 20115/* confdefs.h. */ 20116_ACEOF 20117cat confdefs.h >>conftest.$ac_ext 20118cat >>conftest.$ac_ext <<_ACEOF 20119/* end confdefs.h. */ 20120 20121/* Override any gcc2 internal prototype to avoid an error. */ 20122#ifdef __cplusplus 20123extern "C" 20124#endif 20125/* We use char because int might match the return type of a gcc2 20126 builtin and then its argument prototype would still apply. */ 20127char _mwvalidcheckl (); 20128int 20129main () 20130{ 20131_mwvalidcheckl (); 20132 ; 20133 return 0; 20134} 20135_ACEOF 20136rm -f conftest.$ac_objext conftest$ac_exeext 20137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20138 (eval $ac_link) 2>conftest.er1 20139 ac_status=$? 20140 grep -v '^ *+' conftest.er1 >conftest.err 20141 rm -f conftest.er1 20142 cat conftest.err >&5 20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20144 (exit $ac_status); } && 20145 { ac_try='test -z "$ac_c_werror_flag" 20146 || test ! -s conftest.err' 20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20148 (eval $ac_try) 2>&5 20149 ac_status=$? 20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20151 (exit $ac_status); }; } && 20152 { ac_try='test -s conftest$ac_exeext' 20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20154 (eval $ac_try) 2>&5 20155 ac_status=$? 20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20157 (exit $ac_status); }; }; then 20158 ac_cv_lib_mw__mwvalidcheckl=yes 20159else 20160 echo "$as_me: failed program was:" >&5 20161sed 's/^/| /' conftest.$ac_ext >&5 20162 20163ac_cv_lib_mw__mwvalidcheckl=no 20164fi 20165rm -f conftest.err conftest.$ac_objext \ 20166 conftest$ac_exeext conftest.$ac_ext 20167LIBS=$ac_check_lib_save_LIBS 20168fi 20169echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 20170echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6 20171if test $ac_cv_lib_mw__mwvalidcheckl = yes; then 20172 LIBM="-lmw" 20173fi 20174 20175 echo "$as_me:$LINENO: checking for cos in -lm" >&5 20176echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 20177if test "${ac_cv_lib_m_cos+set}" = set; then 20178 echo $ECHO_N "(cached) $ECHO_C" >&6 20179else 20180 ac_check_lib_save_LIBS=$LIBS 20181LIBS="-lm $LIBS" 20182cat >conftest.$ac_ext <<_ACEOF 20183/* confdefs.h. */ 20184_ACEOF 20185cat confdefs.h >>conftest.$ac_ext 20186cat >>conftest.$ac_ext <<_ACEOF 20187/* end confdefs.h. */ 20188 20189/* Override any gcc2 internal prototype to avoid an error. */ 20190#ifdef __cplusplus 20191extern "C" 20192#endif 20193/* We use char because int might match the return type of a gcc2 20194 builtin and then its argument prototype would still apply. */ 20195char cos (); 20196int 20197main () 20198{ 20199cos (); 20200 ; 20201 return 0; 20202} 20203_ACEOF 20204rm -f conftest.$ac_objext conftest$ac_exeext 20205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20206 (eval $ac_link) 2>conftest.er1 20207 ac_status=$? 20208 grep -v '^ *+' conftest.er1 >conftest.err 20209 rm -f conftest.er1 20210 cat conftest.err >&5 20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20212 (exit $ac_status); } && 20213 { ac_try='test -z "$ac_c_werror_flag" 20214 || test ! -s conftest.err' 20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20216 (eval $ac_try) 2>&5 20217 ac_status=$? 20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20219 (exit $ac_status); }; } && 20220 { ac_try='test -s conftest$ac_exeext' 20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20222 (eval $ac_try) 2>&5 20223 ac_status=$? 20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20225 (exit $ac_status); }; }; then 20226 ac_cv_lib_m_cos=yes 20227else 20228 echo "$as_me: failed program was:" >&5 20229sed 's/^/| /' conftest.$ac_ext >&5 20230 20231ac_cv_lib_m_cos=no 20232fi 20233rm -f conftest.err conftest.$ac_objext \ 20234 conftest$ac_exeext conftest.$ac_ext 20235LIBS=$ac_check_lib_save_LIBS 20236fi 20237echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 20238echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 20239if test $ac_cv_lib_m_cos = yes; then 20240 LIBM="$LIBM -lm" 20241fi 20242 20243 ;; 20244*) 20245 echo "$as_me:$LINENO: checking for cos in -lm" >&5 20246echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 20247if test "${ac_cv_lib_m_cos+set}" = set; then 20248 echo $ECHO_N "(cached) $ECHO_C" >&6 20249else 20250 ac_check_lib_save_LIBS=$LIBS 20251LIBS="-lm $LIBS" 20252cat >conftest.$ac_ext <<_ACEOF 20253/* confdefs.h. */ 20254_ACEOF 20255cat confdefs.h >>conftest.$ac_ext 20256cat >>conftest.$ac_ext <<_ACEOF 20257/* end confdefs.h. */ 20258 20259/* Override any gcc2 internal prototype to avoid an error. */ 20260#ifdef __cplusplus 20261extern "C" 20262#endif 20263/* We use char because int might match the return type of a gcc2 20264 builtin and then its argument prototype would still apply. */ 20265char cos (); 20266int 20267main () 20268{ 20269cos (); 20270 ; 20271 return 0; 20272} 20273_ACEOF 20274rm -f conftest.$ac_objext conftest$ac_exeext 20275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20276 (eval $ac_link) 2>conftest.er1 20277 ac_status=$? 20278 grep -v '^ *+' conftest.er1 >conftest.err 20279 rm -f conftest.er1 20280 cat conftest.err >&5 20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20282 (exit $ac_status); } && 20283 { ac_try='test -z "$ac_c_werror_flag" 20284 || test ! -s conftest.err' 20285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20286 (eval $ac_try) 2>&5 20287 ac_status=$? 20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20289 (exit $ac_status); }; } && 20290 { ac_try='test -s conftest$ac_exeext' 20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20292 (eval $ac_try) 2>&5 20293 ac_status=$? 20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20295 (exit $ac_status); }; }; then 20296 ac_cv_lib_m_cos=yes 20297else 20298 echo "$as_me: failed program was:" >&5 20299sed 's/^/| /' conftest.$ac_ext >&5 20300 20301ac_cv_lib_m_cos=no 20302fi 20303rm -f conftest.err conftest.$ac_objext \ 20304 conftest$ac_exeext conftest.$ac_ext 20305LIBS=$ac_check_lib_save_LIBS 20306fi 20307echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 20308echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 20309if test $ac_cv_lib_m_cos = yes; then 20310 LIBM="-lm" 20311fi 20312 20313 ;; 20314esac 20315 20316 20317 20318 20319## -------- ## 20320## Outputs. ## 20321## -------- ## 20322 ac_config_files="$ac_config_files Makefile l1/Makefile l2/Makefile l3/Makefile l4/Makefile" 20323 20324cat >confcache <<\_ACEOF 20325# This file is a shell script that caches the results of configure 20326# tests run on this system so they can be shared between configure 20327# scripts and configure runs, see configure's option --config-cache. 20328# It is not useful on other systems. If it contains results you don't 20329# want to keep, you may remove or edit it. 20330# 20331# config.status only pays attention to the cache file if you give it 20332# the --recheck option to rerun configure. 20333# 20334# `ac_cv_env_foo' variables (set or unset) will be overridden when 20335# loading this file, other *unset* `ac_cv_foo' will be assigned the 20336# following values. 20337 20338_ACEOF 20339 20340# The following way of writing the cache mishandles newlines in values, 20341# but we know of no workaround that is simple, portable, and efficient. 20342# So, don't put newlines in cache variables' values. 20343# Ultrix sh set writes to stderr and can't be redirected directly, 20344# and sets the high bit in the cache file unless we assign to the vars. 20345{ 20346 (set) 2>&1 | 20347 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20348 *ac_space=\ *) 20349 # `set' does not quote correctly, so add quotes (double-quote 20350 # substitution turns \\\\ into \\, and sed turns \\ into \). 20351 sed -n \ 20352 "s/'/'\\\\''/g; 20353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20354 ;; 20355 *) 20356 # `set' quotes correctly as required by POSIX, so do not add quotes. 20357 sed -n \ 20358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20359 ;; 20360 esac; 20361} | 20362 sed ' 20363 t clear 20364 : clear 20365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20366 t end 20367 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20368 : end' >>confcache 20369if diff $cache_file confcache >/dev/null 2>&1; then :; else 20370 if test -w $cache_file; then 20371 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20372 cat confcache >$cache_file 20373 else 20374 echo "not updating unwritable cache $cache_file" 20375 fi 20376fi 20377rm -f confcache 20378 20379test "x$prefix" = xNONE && prefix=$ac_default_prefix 20380# Let make expand exec_prefix. 20381test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20382 20383# VPATH may cause trouble with some makes, so we remove $(srcdir), 20384# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20385# trailing colons and then remove the whole line if VPATH becomes empty 20386# (actually we leave an empty line to preserve line numbers). 20387if test "x$srcdir" = x.; then 20388 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20389s/:*\$(srcdir):*/:/; 20390s/:*\${srcdir}:*/:/; 20391s/:*@srcdir@:*/:/; 20392s/^\([^=]*=[ ]*\):*/\1/; 20393s/:*$//; 20394s/^[^=]*=[ ]*$//; 20395}' 20396fi 20397 20398# Transform confdefs.h into DEFS. 20399# Protect against shell expansion while executing Makefile rules. 20400# Protect against Makefile macro expansion. 20401# 20402# If the first sed substitution is executed (which looks for macros that 20403# take arguments), then we branch to the quote section. Otherwise, 20404# look for a macro that doesn't take arguments. 20405cat >confdef2opt.sed <<\_ACEOF 20406t clear 20407: clear 20408s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 20409t quote 20410s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 20411t quote 20412d 20413: quote 20414s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 20415s,\[,\\&,g 20416s,\],\\&,g 20417s,\$,$$,g 20418p 20419_ACEOF 20420# We use echo to avoid assuming a particular line-breaking character. 20421# The extra dot is to prevent the shell from consuming trailing 20422# line-breaks from the sub-command output. A line-break within 20423# single-quotes doesn't work because, if this script is created in a 20424# platform that uses two characters for line-breaks (e.g., DOS), tr 20425# would break. 20426ac_LF_and_DOT=`echo; echo .` 20427DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 20428rm -f confdef2opt.sed 20429 20430 20431ac_libobjs= 20432ac_ltlibobjs= 20433for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20434 # 1. Remove the extension, and $U if already installed. 20435 ac_i=`echo "$ac_i" | 20436 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20437 # 2. Add them. 20438 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20439 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20440done 20441LIBOBJS=$ac_libobjs 20442 20443LTLIBOBJS=$ac_ltlibobjs 20444 20445 20446if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20447 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20448Usually this means the macro was only invoked conditionally." >&5 20449echo "$as_me: error: conditional \"AMDEP\" was never defined. 20450Usually this means the macro was only invoked conditionally." >&2;} 20451 { (exit 1); exit 1; }; } 20452fi 20453if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20454 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20455Usually this means the macro was only invoked conditionally." >&5 20456echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20457Usually this means the macro was only invoked conditionally." >&2;} 20458 { (exit 1); exit 1; }; } 20459fi 20460if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20461 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20462Usually this means the macro was only invoked conditionally." >&5 20463echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20464Usually this means the macro was only invoked conditionally." >&2;} 20465 { (exit 1); exit 1; }; } 20466fi 20467 20468: ${CONFIG_STATUS=./config.status} 20469ac_clean_files_save=$ac_clean_files 20470ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20471{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20472echo "$as_me: creating $CONFIG_STATUS" >&6;} 20473cat >$CONFIG_STATUS <<_ACEOF 20474#! $SHELL 20475# Generated by $as_me. 20476# Run this file to recreate the current configuration. 20477# Compiler output produced by configure, useful for debugging 20478# configure, is in config.log if it exists. 20479 20480debug=false 20481ac_cs_recheck=false 20482ac_cs_silent=false 20483SHELL=\${CONFIG_SHELL-$SHELL} 20484_ACEOF 20485 20486cat >>$CONFIG_STATUS <<\_ACEOF 20487## --------------------- ## 20488## M4sh Initialization. ## 20489## --------------------- ## 20490 20491# Be Bourne compatible 20492if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20493 emulate sh 20494 NULLCMD=: 20495 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20496 # is contrary to our usage. Disable this feature. 20497 alias -g '${1+"$@"}'='"$@"' 20498elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20499 set -o posix 20500fi 20501DUALCASE=1; export DUALCASE # for MKS sh 20502 20503# Support unset when possible. 20504if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20505 as_unset=unset 20506else 20507 as_unset=false 20508fi 20509 20510 20511# Work around bugs in pre-3.0 UWIN ksh. 20512$as_unset ENV MAIL MAILPATH 20513PS1='$ ' 20514PS2='> ' 20515PS4='+ ' 20516 20517# NLS nuisances. 20518for as_var in \ 20519 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20520 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20521 LC_TELEPHONE LC_TIME 20522do 20523 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20524 eval $as_var=C; export $as_var 20525 else 20526 $as_unset $as_var 20527 fi 20528done 20529 20530# Required to use basename. 20531if expr a : '\(a\)' >/dev/null 2>&1; then 20532 as_expr=expr 20533else 20534 as_expr=false 20535fi 20536 20537if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20538 as_basename=basename 20539else 20540 as_basename=false 20541fi 20542 20543 20544# Name of the executable. 20545as_me=`$as_basename "$0" || 20546$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20547 X"$0" : 'X\(//\)$' \| \ 20548 X"$0" : 'X\(/\)$' \| \ 20549 . : '\(.\)' 2>/dev/null || 20550echo X/"$0" | 20551 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20552 /^X\/\(\/\/\)$/{ s//\1/; q; } 20553 /^X\/\(\/\).*/{ s//\1/; q; } 20554 s/.*/./; q'` 20555 20556 20557# PATH needs CR, and LINENO needs CR and PATH. 20558# Avoid depending upon Character Ranges. 20559as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20560as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20561as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20562as_cr_digits='0123456789' 20563as_cr_alnum=$as_cr_Letters$as_cr_digits 20564 20565# The user is always right. 20566if test "${PATH_SEPARATOR+set}" != set; then 20567 echo "#! /bin/sh" >conf$$.sh 20568 echo "exit 0" >>conf$$.sh 20569 chmod +x conf$$.sh 20570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20571 PATH_SEPARATOR=';' 20572 else 20573 PATH_SEPARATOR=: 20574 fi 20575 rm -f conf$$.sh 20576fi 20577 20578 20579 as_lineno_1=$LINENO 20580 as_lineno_2=$LINENO 20581 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20582 test "x$as_lineno_1" != "x$as_lineno_2" && 20583 test "x$as_lineno_3" = "x$as_lineno_2" || { 20584 # Find who we are. Look in the path if we contain no path at all 20585 # relative or not. 20586 case $0 in 20587 *[\\/]* ) as_myself=$0 ;; 20588 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20589for as_dir in $PATH 20590do 20591 IFS=$as_save_IFS 20592 test -z "$as_dir" && as_dir=. 20593 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20594done 20595 20596 ;; 20597 esac 20598 # We did not find ourselves, most probably we were run as `sh COMMAND' 20599 # in which case we are not to be found in the path. 20600 if test "x$as_myself" = x; then 20601 as_myself=$0 20602 fi 20603 if test ! -f "$as_myself"; then 20604 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20605echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20606 { (exit 1); exit 1; }; } 20607 fi 20608 case $CONFIG_SHELL in 20609 '') 20610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20611for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20612do 20613 IFS=$as_save_IFS 20614 test -z "$as_dir" && as_dir=. 20615 for as_base in sh bash ksh sh5; do 20616 case $as_dir in 20617 /*) 20618 if ("$as_dir/$as_base" -c ' 20619 as_lineno_1=$LINENO 20620 as_lineno_2=$LINENO 20621 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20622 test "x$as_lineno_1" != "x$as_lineno_2" && 20623 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20624 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20625 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20626 CONFIG_SHELL=$as_dir/$as_base 20627 export CONFIG_SHELL 20628 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20629 fi;; 20630 esac 20631 done 20632done 20633;; 20634 esac 20635 20636 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20637 # uniformly replaced by the line number. The first 'sed' inserts a 20638 # line-number line before each line; the second 'sed' does the real 20639 # work. The second script uses 'N' to pair each line-number line 20640 # with the numbered line, and appends trailing '-' during 20641 # substitution so that $LINENO is not a special case at line end. 20642 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20643 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20644 sed '=' <$as_myself | 20645 sed ' 20646 N 20647 s,$,-, 20648 : loop 20649 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20650 t loop 20651 s,-$,, 20652 s,^['$as_cr_digits']*\n,, 20653 ' >$as_me.lineno && 20654 chmod +x $as_me.lineno || 20655 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20656echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20657 { (exit 1); exit 1; }; } 20658 20659 # Don't try to exec as it changes $[0], causing all sort of problems 20660 # (the dirname of $[0] is not the place where we might find the 20661 # original and so on. Autoconf is especially sensible to this). 20662 . ./$as_me.lineno 20663 # Exit status is that of the last command. 20664 exit 20665} 20666 20667 20668case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20669 *c*,-n*) ECHO_N= ECHO_C=' 20670' ECHO_T=' ' ;; 20671 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20672 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20673esac 20674 20675if expr a : '\(a\)' >/dev/null 2>&1; then 20676 as_expr=expr 20677else 20678 as_expr=false 20679fi 20680 20681rm -f conf$$ conf$$.exe conf$$.file 20682echo >conf$$.file 20683if ln -s conf$$.file conf$$ 2>/dev/null; then 20684 # We could just check for DJGPP; but this test a) works b) is more generic 20685 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20686 if test -f conf$$.exe; then 20687 # Don't use ln at all; we don't have any links 20688 as_ln_s='cp -p' 20689 else 20690 as_ln_s='ln -s' 20691 fi 20692elif ln conf$$.file conf$$ 2>/dev/null; then 20693 as_ln_s=ln 20694else 20695 as_ln_s='cp -p' 20696fi 20697rm -f conf$$ conf$$.exe conf$$.file 20698 20699if mkdir -p . 2>/dev/null; then 20700 as_mkdir_p=: 20701else 20702 test -d ./-p && rmdir ./-p 20703 as_mkdir_p=false 20704fi 20705 20706as_executable_p="test -f" 20707 20708# Sed expression to map a string onto a valid CPP name. 20709as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20710 20711# Sed expression to map a string onto a valid variable name. 20712as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20713 20714 20715# IFS 20716# We need space, tab and new line, in precisely that order. 20717as_nl=' 20718' 20719IFS=" $as_nl" 20720 20721# CDPATH. 20722$as_unset CDPATH 20723 20724exec 6>&1 20725 20726# Open the log real soon, to keep \$[0] and so on meaningful, and to 20727# report actual input values of CONFIG_FILES etc. instead of their 20728# values after options handling. Logging --version etc. is OK. 20729exec 5>>config.log 20730{ 20731 echo 20732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20733## Running $as_me. ## 20734_ASBOX 20735} >&5 20736cat >&5 <<_CSEOF 20737 20738This file was extended by depdemo $as_me 0.1, which was 20739generated by GNU Autoconf 2.59. Invocation command line was 20740 20741 CONFIG_FILES = $CONFIG_FILES 20742 CONFIG_HEADERS = $CONFIG_HEADERS 20743 CONFIG_LINKS = $CONFIG_LINKS 20744 CONFIG_COMMANDS = $CONFIG_COMMANDS 20745 $ $0 $@ 20746 20747_CSEOF 20748echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20749echo >&5 20750_ACEOF 20751 20752# Files that config.status was made for. 20753if test -n "$ac_config_files"; then 20754 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20755fi 20756 20757if test -n "$ac_config_headers"; then 20758 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20759fi 20760 20761if test -n "$ac_config_links"; then 20762 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20763fi 20764 20765if test -n "$ac_config_commands"; then 20766 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20767fi 20768 20769cat >>$CONFIG_STATUS <<\_ACEOF 20770 20771ac_cs_usage="\ 20772\`$as_me' instantiates files from templates according to the 20773current configuration. 20774 20775Usage: $0 [OPTIONS] [FILE]... 20776 20777 -h, --help print this help, then exit 20778 -V, --version print version number, then exit 20779 -q, --quiet do not print progress messages 20780 -d, --debug don't remove temporary files 20781 --recheck update $as_me by reconfiguring in the same conditions 20782 --file=FILE[:TEMPLATE] 20783 instantiate the configuration file FILE 20784 20785Configuration files: 20786$config_files 20787 20788Configuration commands: 20789$config_commands 20790 20791Report bugs to <bug-autoconf@gnu.org>." 20792_ACEOF 20793 20794cat >>$CONFIG_STATUS <<_ACEOF 20795ac_cs_version="\\ 20796depdemo config.status 0.1 20797configured by $0, generated by GNU Autoconf 2.59, 20798 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20799 20800Copyright (C) 2003 Free Software Foundation, Inc. 20801This config.status script is free software; the Free Software Foundation 20802gives unlimited permission to copy, distribute and modify it." 20803srcdir=$srcdir 20804INSTALL="$INSTALL" 20805_ACEOF 20806 20807cat >>$CONFIG_STATUS <<\_ACEOF 20808# If no file are specified by the user, then we need to provide default 20809# value. By we need to know if files were specified by the user. 20810ac_need_defaults=: 20811while test $# != 0 20812do 20813 case $1 in 20814 --*=*) 20815 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20816 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20817 ac_shift=: 20818 ;; 20819 -*) 20820 ac_option=$1 20821 ac_optarg=$2 20822 ac_shift=shift 20823 ;; 20824 *) # This is not an option, so the user has probably given explicit 20825 # arguments. 20826 ac_option=$1 20827 ac_need_defaults=false;; 20828 esac 20829 20830 case $ac_option in 20831 # Handling of the options. 20832_ACEOF 20833cat >>$CONFIG_STATUS <<\_ACEOF 20834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20835 ac_cs_recheck=: ;; 20836 --version | --vers* | -V ) 20837 echo "$ac_cs_version"; exit 0 ;; 20838 --he | --h) 20839 # Conflict between --help and --header 20840 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20841Try \`$0 --help' for more information." >&5 20842echo "$as_me: error: ambiguous option: $1 20843Try \`$0 --help' for more information." >&2;} 20844 { (exit 1); exit 1; }; };; 20845 --help | --hel | -h ) 20846 echo "$ac_cs_usage"; exit 0 ;; 20847 --debug | --d* | -d ) 20848 debug=: ;; 20849 --file | --fil | --fi | --f ) 20850 $ac_shift 20851 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20852 ac_need_defaults=false;; 20853 --header | --heade | --head | --hea ) 20854 $ac_shift 20855 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20856 ac_need_defaults=false;; 20857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20858 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20859 ac_cs_silent=: ;; 20860 20861 # This is an error. 20862 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20863Try \`$0 --help' for more information." >&5 20864echo "$as_me: error: unrecognized option: $1 20865Try \`$0 --help' for more information." >&2;} 20866 { (exit 1); exit 1; }; } ;; 20867 20868 *) ac_config_targets="$ac_config_targets $1" ;; 20869 20870 esac 20871 shift 20872done 20873 20874ac_configure_extra_args= 20875 20876if $ac_cs_silent; then 20877 exec 6>/dev/null 20878 ac_configure_extra_args="$ac_configure_extra_args --silent" 20879fi 20880 20881_ACEOF 20882cat >>$CONFIG_STATUS <<_ACEOF 20883if \$ac_cs_recheck; then 20884 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20885 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20886fi 20887 20888_ACEOF 20889 20890cat >>$CONFIG_STATUS <<_ACEOF 20891# 20892# INIT-COMMANDS section. 20893# 20894 20895AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20896 20897_ACEOF 20898 20899 20900 20901cat >>$CONFIG_STATUS <<\_ACEOF 20902for ac_config_target in $ac_config_targets 20903do 20904 case "$ac_config_target" in 20905 # Handling of arguments. 20906 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20907 "l1/Makefile" ) CONFIG_FILES="$CONFIG_FILES l1/Makefile" ;; 20908 "l2/Makefile" ) CONFIG_FILES="$CONFIG_FILES l2/Makefile" ;; 20909 "l3/Makefile" ) CONFIG_FILES="$CONFIG_FILES l3/Makefile" ;; 20910 "l4/Makefile" ) CONFIG_FILES="$CONFIG_FILES l4/Makefile" ;; 20911 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20912 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20913echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20914 { (exit 1); exit 1; }; };; 20915 esac 20916done 20917 20918# If the user did not use the arguments to specify the items to instantiate, 20919# then the envvar interface is used. Set only those that are not. 20920# We use the long form for the default assignment because of an extremely 20921# bizarre bug on SunOS 4.1.3. 20922if $ac_need_defaults; then 20923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20924 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20925fi 20926 20927# Have a temporary directory for convenience. Make it in the build tree 20928# simply because there is no reason to put it here, and in addition, 20929# creating and moving files from /tmp can sometimes cause problems. 20930# Create a temporary directory, and hook for its removal unless debugging. 20931$debug || 20932{ 20933 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20934 trap '{ (exit 1); exit 1; }' 1 2 13 15 20935} 20936 20937# Create a (secure) tmp directory for tmp files. 20938 20939{ 20940 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20941 test -n "$tmp" && test -d "$tmp" 20942} || 20943{ 20944 tmp=./confstat$$-$RANDOM 20945 (umask 077 && mkdir $tmp) 20946} || 20947{ 20948 echo "$me: cannot create a temporary directory in ." >&2 20949 { (exit 1); exit 1; } 20950} 20951 20952_ACEOF 20953 20954cat >>$CONFIG_STATUS <<_ACEOF 20955 20956# 20957# CONFIG_FILES section. 20958# 20959 20960# No need to generate the scripts if there are no CONFIG_FILES. 20961# This happens for instance when ./config.status config.h 20962if test -n "\$CONFIG_FILES"; then 20963 # Protect against being on the right side of a sed subst in config.status. 20964 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20965 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20966s,@SHELL@,$SHELL,;t t 20967s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20968s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20969s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20970s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20971s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20972s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20973s,@exec_prefix@,$exec_prefix,;t t 20974s,@prefix@,$prefix,;t t 20975s,@program_transform_name@,$program_transform_name,;t t 20976s,@bindir@,$bindir,;t t 20977s,@sbindir@,$sbindir,;t t 20978s,@libexecdir@,$libexecdir,;t t 20979s,@datadir@,$datadir,;t t 20980s,@sysconfdir@,$sysconfdir,;t t 20981s,@sharedstatedir@,$sharedstatedir,;t t 20982s,@localstatedir@,$localstatedir,;t t 20983s,@libdir@,$libdir,;t t 20984s,@includedir@,$includedir,;t t 20985s,@oldincludedir@,$oldincludedir,;t t 20986s,@infodir@,$infodir,;t t 20987s,@mandir@,$mandir,;t t 20988s,@build_alias@,$build_alias,;t t 20989s,@host_alias@,$host_alias,;t t 20990s,@target_alias@,$target_alias,;t t 20991s,@DEFS@,$DEFS,;t t 20992s,@ECHO_C@,$ECHO_C,;t t 20993s,@ECHO_N@,$ECHO_N,;t t 20994s,@ECHO_T@,$ECHO_T,;t t 20995s,@LIBS@,$LIBS,;t t 20996s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20997s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20998s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20999s,@CYGPATH_W@,$CYGPATH_W,;t t 21000s,@PACKAGE@,$PACKAGE,;t t 21001s,@VERSION@,$VERSION,;t t 21002s,@ACLOCAL@,$ACLOCAL,;t t 21003s,@AUTOCONF@,$AUTOCONF,;t t 21004s,@AUTOMAKE@,$AUTOMAKE,;t t 21005s,@AUTOHEADER@,$AUTOHEADER,;t t 21006s,@MAKEINFO@,$MAKEINFO,;t t 21007s,@install_sh@,$install_sh,;t t 21008s,@STRIP@,$STRIP,;t t 21009s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 21010s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 21011s,@mkdir_p@,$mkdir_p,;t t 21012s,@AWK@,$AWK,;t t 21013s,@SET_MAKE@,$SET_MAKE,;t t 21014s,@am__leading_dot@,$am__leading_dot,;t t 21015s,@AMTAR@,$AMTAR,;t t 21016s,@am__tar@,$am__tar,;t t 21017s,@am__untar@,$am__untar,;t t 21018s,@CC@,$CC,;t t 21019s,@CFLAGS@,$CFLAGS,;t t 21020s,@LDFLAGS@,$LDFLAGS,;t t 21021s,@CPPFLAGS@,$CPPFLAGS,;t t 21022s,@ac_ct_CC@,$ac_ct_CC,;t t 21023s,@EXEEXT@,$EXEEXT,;t t 21024s,@OBJEXT@,$OBJEXT,;t t 21025s,@DEPDIR@,$DEPDIR,;t t 21026s,@am__include@,$am__include,;t t 21027s,@am__quote@,$am__quote,;t t 21028s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 21029s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 21030s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 21031s,@CCDEPMODE@,$CCDEPMODE,;t t 21032s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 21033s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 21034s,@build@,$build,;t t 21035s,@build_cpu@,$build_cpu,;t t 21036s,@build_vendor@,$build_vendor,;t t 21037s,@build_os@,$build_os,;t t 21038s,@host@,$host,;t t 21039s,@host_cpu@,$host_cpu,;t t 21040s,@host_vendor@,$host_vendor,;t t 21041s,@host_os@,$host_os,;t t 21042s,@EGREP@,$EGREP,;t t 21043s,@LN_S@,$LN_S,;t t 21044s,@ECHO@,$ECHO,;t t 21045s,@AR@,$AR,;t t 21046s,@ac_ct_AR@,$ac_ct_AR,;t t 21047s,@RANLIB@,$RANLIB,;t t 21048s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21049s,@DLLTOOL@,$DLLTOOL,;t t 21050s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t 21051s,@AS@,$AS,;t t 21052s,@ac_ct_AS@,$ac_ct_AS,;t t 21053s,@OBJDUMP@,$OBJDUMP,;t t 21054s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t 21055s,@CPP@,$CPP,;t t 21056s,@CXX@,$CXX,;t t 21057s,@CXXFLAGS@,$CXXFLAGS,;t t 21058s,@ac_ct_CXX@,$ac_ct_CXX,;t t 21059s,@CXXDEPMODE@,$CXXDEPMODE,;t t 21060s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 21061s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 21062s,@CXXCPP@,$CXXCPP,;t t 21063s,@F77@,$F77,;t t 21064s,@FFLAGS@,$FFLAGS,;t t 21065s,@ac_ct_F77@,$ac_ct_F77,;t t 21066s,@LIBTOOL@,$LIBTOOL,;t t 21067s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t 21068s,@STATIC@,$STATIC,;t t 21069s,@LIBM@,$LIBM,;t t 21070s,@LIBOBJS@,$LIBOBJS,;t t 21071s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21072CEOF 21073 21074_ACEOF 21075 21076 cat >>$CONFIG_STATUS <<\_ACEOF 21077 # Split the substitutions into bite-sized pieces for seds with 21078 # small command number limits, like on Digital OSF/1 and HP-UX. 21079 ac_max_sed_lines=48 21080 ac_sed_frag=1 # Number of current file. 21081 ac_beg=1 # First line for current file. 21082 ac_end=$ac_max_sed_lines # Line after last line for current file. 21083 ac_more_lines=: 21084 ac_sed_cmds= 21085 while $ac_more_lines; do 21086 if test $ac_beg -gt 1; then 21087 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21088 else 21089 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21090 fi 21091 if test ! -s $tmp/subs.frag; then 21092 ac_more_lines=false 21093 else 21094 # The purpose of the label and of the branching condition is to 21095 # speed up the sed processing (if there are no `@' at all, there 21096 # is no need to browse any of the substitutions). 21097 # These are the two extra sed commands mentioned above. 21098 (echo ':t 21099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21100 if test -z "$ac_sed_cmds"; then 21101 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21102 else 21103 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21104 fi 21105 ac_sed_frag=`expr $ac_sed_frag + 1` 21106 ac_beg=$ac_end 21107 ac_end=`expr $ac_end + $ac_max_sed_lines` 21108 fi 21109 done 21110 if test -z "$ac_sed_cmds"; then 21111 ac_sed_cmds=cat 21112 fi 21113fi # test -n "$CONFIG_FILES" 21114 21115_ACEOF 21116cat >>$CONFIG_STATUS <<\_ACEOF 21117for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21118 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21119 case $ac_file in 21120 - | *:- | *:-:* ) # input from stdin 21121 cat >$tmp/stdin 21122 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21124 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21125 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21126 * ) ac_file_in=$ac_file.in ;; 21127 esac 21128 21129 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21130 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21131$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21132 X"$ac_file" : 'X\(//\)[^/]' \| \ 21133 X"$ac_file" : 'X\(//\)$' \| \ 21134 X"$ac_file" : 'X\(/\)' \| \ 21135 . : '\(.\)' 2>/dev/null || 21136echo X"$ac_file" | 21137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21138 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21139 /^X\(\/\/\)$/{ s//\1/; q; } 21140 /^X\(\/\).*/{ s//\1/; q; } 21141 s/.*/./; q'` 21142 { if $as_mkdir_p; then 21143 mkdir -p "$ac_dir" 21144 else 21145 as_dir="$ac_dir" 21146 as_dirs= 21147 while test ! -d "$as_dir"; do 21148 as_dirs="$as_dir $as_dirs" 21149 as_dir=`(dirname "$as_dir") 2>/dev/null || 21150$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21151 X"$as_dir" : 'X\(//\)[^/]' \| \ 21152 X"$as_dir" : 'X\(//\)$' \| \ 21153 X"$as_dir" : 'X\(/\)' \| \ 21154 . : '\(.\)' 2>/dev/null || 21155echo X"$as_dir" | 21156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21157 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21158 /^X\(\/\/\)$/{ s//\1/; q; } 21159 /^X\(\/\).*/{ s//\1/; q; } 21160 s/.*/./; q'` 21161 done 21162 test ! -n "$as_dirs" || mkdir $as_dirs 21163 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21164echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21165 { (exit 1); exit 1; }; }; } 21166 21167 ac_builddir=. 21168 21169if test "$ac_dir" != .; then 21170 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21171 # A "../" for each directory in $ac_dir_suffix. 21172 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21173else 21174 ac_dir_suffix= ac_top_builddir= 21175fi 21176 21177case $srcdir in 21178 .) # No --srcdir option. We are building in place. 21179 ac_srcdir=. 21180 if test -z "$ac_top_builddir"; then 21181 ac_top_srcdir=. 21182 else 21183 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21184 fi ;; 21185 [\\/]* | ?:[\\/]* ) # Absolute path. 21186 ac_srcdir=$srcdir$ac_dir_suffix; 21187 ac_top_srcdir=$srcdir ;; 21188 *) # Relative path. 21189 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21190 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21191esac 21192 21193# Do not use `cd foo && pwd` to compute absolute paths, because 21194# the directories may not exist. 21195case `pwd` in 21196.) ac_abs_builddir="$ac_dir";; 21197*) 21198 case "$ac_dir" in 21199 .) ac_abs_builddir=`pwd`;; 21200 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21201 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21202 esac;; 21203esac 21204case $ac_abs_builddir in 21205.) ac_abs_top_builddir=${ac_top_builddir}.;; 21206*) 21207 case ${ac_top_builddir}. in 21208 .) ac_abs_top_builddir=$ac_abs_builddir;; 21209 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21210 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21211 esac;; 21212esac 21213case $ac_abs_builddir in 21214.) ac_abs_srcdir=$ac_srcdir;; 21215*) 21216 case $ac_srcdir in 21217 .) ac_abs_srcdir=$ac_abs_builddir;; 21218 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21219 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21220 esac;; 21221esac 21222case $ac_abs_builddir in 21223.) ac_abs_top_srcdir=$ac_top_srcdir;; 21224*) 21225 case $ac_top_srcdir in 21226 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21227 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21228 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21229 esac;; 21230esac 21231 21232 21233 case $INSTALL in 21234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21235 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21236 esac 21237 21238 if test x"$ac_file" != x-; then 21239 { echo "$as_me:$LINENO: creating $ac_file" >&5 21240echo "$as_me: creating $ac_file" >&6;} 21241 rm -f "$ac_file" 21242 fi 21243 # Let's still pretend it is `configure' which instantiates (i.e., don't 21244 # use $as_me), people would be surprised to read: 21245 # /* config.h. Generated by config.status. */ 21246 if test x"$ac_file" = x-; then 21247 configure_input= 21248 else 21249 configure_input="$ac_file. " 21250 fi 21251 configure_input=$configure_input"Generated from `echo $ac_file_in | 21252 sed 's,.*/,,'` by configure." 21253 21254 # First look for the input files in the build tree, otherwise in the 21255 # src tree. 21256 ac_file_inputs=`IFS=: 21257 for f in $ac_file_in; do 21258 case $f in 21259 -) echo $tmp/stdin ;; 21260 [\\/$]*) 21261 # Absolute (can't be DOS-style, as IFS=:) 21262 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21263echo "$as_me: error: cannot find input file: $f" >&2;} 21264 { (exit 1); exit 1; }; } 21265 echo "$f";; 21266 *) # Relative 21267 if test -f "$f"; then 21268 # Build tree 21269 echo "$f" 21270 elif test -f "$srcdir/$f"; then 21271 # Source tree 21272 echo "$srcdir/$f" 21273 else 21274 # /dev/null tree 21275 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21276echo "$as_me: error: cannot find input file: $f" >&2;} 21277 { (exit 1); exit 1; }; } 21278 fi;; 21279 esac 21280 done` || { (exit 1); exit 1; } 21281_ACEOF 21282cat >>$CONFIG_STATUS <<_ACEOF 21283 sed "$ac_vpsub 21284$extrasub 21285_ACEOF 21286cat >>$CONFIG_STATUS <<\_ACEOF 21287:t 21288/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21289s,@configure_input@,$configure_input,;t t 21290s,@srcdir@,$ac_srcdir,;t t 21291s,@abs_srcdir@,$ac_abs_srcdir,;t t 21292s,@top_srcdir@,$ac_top_srcdir,;t t 21293s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21294s,@builddir@,$ac_builddir,;t t 21295s,@abs_builddir@,$ac_abs_builddir,;t t 21296s,@top_builddir@,$ac_top_builddir,;t t 21297s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21298s,@INSTALL@,$ac_INSTALL,;t t 21299" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21300 rm -f $tmp/stdin 21301 if test x"$ac_file" != x-; then 21302 mv $tmp/out $ac_file 21303 else 21304 cat $tmp/out 21305 rm -f $tmp/out 21306 fi 21307 21308done 21309_ACEOF 21310cat >>$CONFIG_STATUS <<\_ACEOF 21311 21312# 21313# CONFIG_COMMANDS section. 21314# 21315for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21316 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21317 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21318 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21319$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21320 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21321 X"$ac_dest" : 'X\(//\)$' \| \ 21322 X"$ac_dest" : 'X\(/\)' \| \ 21323 . : '\(.\)' 2>/dev/null || 21324echo X"$ac_dest" | 21325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21326 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21327 /^X\(\/\/\)$/{ s//\1/; q; } 21328 /^X\(\/\).*/{ s//\1/; q; } 21329 s/.*/./; q'` 21330 { if $as_mkdir_p; then 21331 mkdir -p "$ac_dir" 21332 else 21333 as_dir="$ac_dir" 21334 as_dirs= 21335 while test ! -d "$as_dir"; do 21336 as_dirs="$as_dir $as_dirs" 21337 as_dir=`(dirname "$as_dir") 2>/dev/null || 21338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21339 X"$as_dir" : 'X\(//\)[^/]' \| \ 21340 X"$as_dir" : 'X\(//\)$' \| \ 21341 X"$as_dir" : 'X\(/\)' \| \ 21342 . : '\(.\)' 2>/dev/null || 21343echo X"$as_dir" | 21344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21345 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21346 /^X\(\/\/\)$/{ s//\1/; q; } 21347 /^X\(\/\).*/{ s//\1/; q; } 21348 s/.*/./; q'` 21349 done 21350 test ! -n "$as_dirs" || mkdir $as_dirs 21351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21352echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21353 { (exit 1); exit 1; }; }; } 21354 21355 ac_builddir=. 21356 21357if test "$ac_dir" != .; then 21358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21359 # A "../" for each directory in $ac_dir_suffix. 21360 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21361else 21362 ac_dir_suffix= ac_top_builddir= 21363fi 21364 21365case $srcdir in 21366 .) # No --srcdir option. We are building in place. 21367 ac_srcdir=. 21368 if test -z "$ac_top_builddir"; then 21369 ac_top_srcdir=. 21370 else 21371 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21372 fi ;; 21373 [\\/]* | ?:[\\/]* ) # Absolute path. 21374 ac_srcdir=$srcdir$ac_dir_suffix; 21375 ac_top_srcdir=$srcdir ;; 21376 *) # Relative path. 21377 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21378 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21379esac 21380 21381# Do not use `cd foo && pwd` to compute absolute paths, because 21382# the directories may not exist. 21383case `pwd` in 21384.) ac_abs_builddir="$ac_dir";; 21385*) 21386 case "$ac_dir" in 21387 .) ac_abs_builddir=`pwd`;; 21388 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21389 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21390 esac;; 21391esac 21392case $ac_abs_builddir in 21393.) ac_abs_top_builddir=${ac_top_builddir}.;; 21394*) 21395 case ${ac_top_builddir}. in 21396 .) ac_abs_top_builddir=$ac_abs_builddir;; 21397 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21398 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21399 esac;; 21400esac 21401case $ac_abs_builddir in 21402.) ac_abs_srcdir=$ac_srcdir;; 21403*) 21404 case $ac_srcdir in 21405 .) ac_abs_srcdir=$ac_abs_builddir;; 21406 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21407 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21408 esac;; 21409esac 21410case $ac_abs_builddir in 21411.) ac_abs_top_srcdir=$ac_top_srcdir;; 21412*) 21413 case $ac_top_srcdir in 21414 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21415 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21416 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21417 esac;; 21418esac 21419 21420 21421 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21422echo "$as_me: executing $ac_dest commands" >&6;} 21423 case $ac_dest in 21424 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21425 # Strip MF so we end up with the name of the file. 21426 mf=`echo "$mf" | sed -e 's/:.*$//'` 21427 # Check whether this is an Automake generated Makefile or not. 21428 # We used to match only the files named `Makefile.in', but 21429 # some people rename them; so instead we look at the file content. 21430 # Grep'ing the first line is not enough: some people post-process 21431 # each Makefile.in and add a new line on top of each file to say so. 21432 # So let's grep whole file. 21433 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21434 dirpart=`(dirname "$mf") 2>/dev/null || 21435$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21436 X"$mf" : 'X\(//\)[^/]' \| \ 21437 X"$mf" : 'X\(//\)$' \| \ 21438 X"$mf" : 'X\(/\)' \| \ 21439 . : '\(.\)' 2>/dev/null || 21440echo X"$mf" | 21441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21442 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21443 /^X\(\/\/\)$/{ s//\1/; q; } 21444 /^X\(\/\).*/{ s//\1/; q; } 21445 s/.*/./; q'` 21446 else 21447 continue 21448 fi 21449 # Extract the definition of DEPDIR, am__include, and am__quote 21450 # from the Makefile without running `make'. 21451 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21452 test -z "$DEPDIR" && continue 21453 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21454 test -z "am__include" && continue 21455 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21456 # When using ansi2knr, U may be empty or an underscore; expand it 21457 U=`sed -n 's/^U = //p' < "$mf"` 21458 # Find all dependency output files, they are included files with 21459 # $(DEPDIR) in their names. We invoke sed twice because it is the 21460 # simplest approach to changing $(DEPDIR) to its actual value in the 21461 # expansion. 21462 for file in `sed -n " 21463 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21464 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21465 # Make sure the directory exists. 21466 test -f "$dirpart/$file" && continue 21467 fdir=`(dirname "$file") 2>/dev/null || 21468$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21469 X"$file" : 'X\(//\)[^/]' \| \ 21470 X"$file" : 'X\(//\)$' \| \ 21471 X"$file" : 'X\(/\)' \| \ 21472 . : '\(.\)' 2>/dev/null || 21473echo X"$file" | 21474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21475 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21476 /^X\(\/\/\)$/{ s//\1/; q; } 21477 /^X\(\/\).*/{ s//\1/; q; } 21478 s/.*/./; q'` 21479 { if $as_mkdir_p; then 21480 mkdir -p $dirpart/$fdir 21481 else 21482 as_dir=$dirpart/$fdir 21483 as_dirs= 21484 while test ! -d "$as_dir"; do 21485 as_dirs="$as_dir $as_dirs" 21486 as_dir=`(dirname "$as_dir") 2>/dev/null || 21487$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21488 X"$as_dir" : 'X\(//\)[^/]' \| \ 21489 X"$as_dir" : 'X\(//\)$' \| \ 21490 X"$as_dir" : 'X\(/\)' \| \ 21491 . : '\(.\)' 2>/dev/null || 21492echo X"$as_dir" | 21493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21494 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21495 /^X\(\/\/\)$/{ s//\1/; q; } 21496 /^X\(\/\).*/{ s//\1/; q; } 21497 s/.*/./; q'` 21498 done 21499 test ! -n "$as_dirs" || mkdir $as_dirs 21500 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21501echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21502 { (exit 1); exit 1; }; }; } 21503 21504 # echo "creating $dirpart/$file" 21505 echo '# dummy' > "$dirpart/$file" 21506 done 21507done 21508 ;; 21509 esac 21510done 21511_ACEOF 21512 21513cat >>$CONFIG_STATUS <<\_ACEOF 21514 21515{ (exit 0); exit 0; } 21516_ACEOF 21517chmod +x $CONFIG_STATUS 21518ac_clean_files=$ac_clean_files_save 21519 21520 21521# configure is writing to config.log, and then calls config.status. 21522# config.status does its own redirection, appending to config.log. 21523# Unfortunately, on DOS this fails, as config.log is still kept open 21524# by configure, so config.status won't be able to write to it; its 21525# output is simply discarded. So we exec the FD to /dev/null, 21526# effectively closing config.log, so it can be properly (re)opened and 21527# appended to by config.status. When coming back to configure, we 21528# need to make the FD available again. 21529if test "$no_create" != yes; then 21530 ac_cs_success=: 21531 ac_config_status_args= 21532 test "$silent" = yes && 21533 ac_config_status_args="$ac_config_status_args --quiet" 21534 exec 5>/dev/null 21535 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21536 exec 5>>config.log 21537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21538 # would make configure fail if this is the last instruction. 21539 $ac_cs_success || { (exit 1); exit 1; } 21540fi 21541 21542