1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for src/Residue.cc 1.0.3. 4# 5# Report bugs to <drussel@graphics.stanford.edu>. 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='src/Residue.cc' 425PACKAGE_TARNAME='src-residue-cc' 426PACKAGE_VERSION='1.0.3' 427PACKAGE_STRING='src/Residue.cc 1.0.3' 428PACKAGE_BUGREPORT='drussel@graphics.stanford.edu' 429 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LIBOBJS LTLIBOBJS' 468ac_subst_files='' 469 470# Initialize some variables set by options. 471ac_init_help= 472ac_init_version=false 473# The variables have the same names as the options, with 474# dashes changed to underlines. 475cache_file=/dev/null 476exec_prefix=NONE 477no_create= 478no_recursion= 479prefix=NONE 480program_prefix=NONE 481program_suffix=NONE 482program_transform_name=s,x,x, 483silent= 484site= 485srcdir= 486verbose= 487x_includes=NONE 488x_libraries=NONE 489 490# Installation directory options. 491# These are left unexpanded so users can "make install exec_prefix=/foo" 492# and all the variables that are supposed to be based on exec_prefix 493# by default will actually change. 494# Use braces instead of parens because sh, perl, etc. also accept them. 495bindir='${exec_prefix}/bin' 496sbindir='${exec_prefix}/sbin' 497libexecdir='${exec_prefix}/libexec' 498datadir='${prefix}/share' 499sysconfdir='${prefix}/etc' 500sharedstatedir='${prefix}/com' 501localstatedir='${prefix}/var' 502libdir='${exec_prefix}/lib' 503includedir='${prefix}/include' 504oldincludedir='/usr/include' 505infodir='${prefix}/info' 506mandir='${prefix}/man' 507 508ac_prev= 509for ac_option 510do 511 # If the previous option needs an argument, assign it. 512 if test -n "$ac_prev"; then 513 eval "$ac_prev=\$ac_option" 514 ac_prev= 515 continue 516 fi 517 518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 519 520 # Accept the important Cygnus configure options, so we can diagnose typos. 521 522 case $ac_option in 523 524 -bindir | --bindir | --bindi | --bind | --bin | --bi) 525 ac_prev=bindir ;; 526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 527 bindir=$ac_optarg ;; 528 529 -build | --build | --buil | --bui | --bu) 530 ac_prev=build_alias ;; 531 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 532 build_alias=$ac_optarg ;; 533 534 -cache-file | --cache-file | --cache-fil | --cache-fi \ 535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 536 ac_prev=cache_file ;; 537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 539 cache_file=$ac_optarg ;; 540 541 --config-cache | -C) 542 cache_file=config.cache ;; 543 544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 545 ac_prev=datadir ;; 546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 547 | --da=*) 548 datadir=$ac_optarg ;; 549 550 -disable-* | --disable-*) 551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 552 # Reject names that are not valid shell variable names. 553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 555 { (exit 1); exit 1; }; } 556 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 557 eval "enable_$ac_feature=no" ;; 558 559 -enable-* | --enable-*) 560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 561 # Reject names that are not valid shell variable names. 562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 564 { (exit 1); exit 1; }; } 565 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 566 case $ac_option in 567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 568 *) ac_optarg=yes ;; 569 esac 570 eval "enable_$ac_feature='$ac_optarg'" ;; 571 572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 574 | --exec | --exe | --ex) 575 ac_prev=exec_prefix ;; 576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 578 | --exec=* | --exe=* | --ex=*) 579 exec_prefix=$ac_optarg ;; 580 581 -gas | --gas | --ga | --g) 582 # Obsolete; use --with-gas. 583 with_gas=yes ;; 584 585 -help | --help | --hel | --he | -h) 586 ac_init_help=long ;; 587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 588 ac_init_help=recursive ;; 589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 590 ac_init_help=short ;; 591 592 -host | --host | --hos | --ho) 593 ac_prev=host_alias ;; 594 -host=* | --host=* | --hos=* | --ho=*) 595 host_alias=$ac_optarg ;; 596 597 -includedir | --includedir | --includedi | --included | --include \ 598 | --includ | --inclu | --incl | --inc) 599 ac_prev=includedir ;; 600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 601 | --includ=* | --inclu=* | --incl=* | --inc=*) 602 includedir=$ac_optarg ;; 603 604 -infodir | --infodir | --infodi | --infod | --info | --inf) 605 ac_prev=infodir ;; 606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 607 infodir=$ac_optarg ;; 608 609 -libdir | --libdir | --libdi | --libd) 610 ac_prev=libdir ;; 611 -libdir=* | --libdir=* | --libdi=* | --libd=*) 612 libdir=$ac_optarg ;; 613 614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 615 | --libexe | --libex | --libe) 616 ac_prev=libexecdir ;; 617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 618 | --libexe=* | --libex=* | --libe=*) 619 libexecdir=$ac_optarg ;; 620 621 -localstatedir | --localstatedir | --localstatedi | --localstated \ 622 | --localstate | --localstat | --localsta | --localst \ 623 | --locals | --local | --loca | --loc | --lo) 624 ac_prev=localstatedir ;; 625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 628 localstatedir=$ac_optarg ;; 629 630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 631 ac_prev=mandir ;; 632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 633 mandir=$ac_optarg ;; 634 635 -nfp | --nfp | --nf) 636 # Obsolete; use --without-fp. 637 with_fp=no ;; 638 639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 640 | --no-cr | --no-c | -n) 641 no_create=yes ;; 642 643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 645 no_recursion=yes ;; 646 647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 649 | --oldin | --oldi | --old | --ol | --o) 650 ac_prev=oldincludedir ;; 651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 654 oldincludedir=$ac_optarg ;; 655 656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 657 ac_prev=prefix ;; 658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 659 prefix=$ac_optarg ;; 660 661 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 662 | --program-pre | --program-pr | --program-p) 663 ac_prev=program_prefix ;; 664 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 666 program_prefix=$ac_optarg ;; 667 668 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 669 | --program-suf | --program-su | --program-s) 670 ac_prev=program_suffix ;; 671 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 673 program_suffix=$ac_optarg ;; 674 675 -program-transform-name | --program-transform-name \ 676 | --program-transform-nam | --program-transform-na \ 677 | --program-transform-n | --program-transform- \ 678 | --program-transform | --program-transfor \ 679 | --program-transfo | --program-transf \ 680 | --program-trans | --program-tran \ 681 | --progr-tra | --program-tr | --program-t) 682 ac_prev=program_transform_name ;; 683 -program-transform-name=* | --program-transform-name=* \ 684 | --program-transform-nam=* | --program-transform-na=* \ 685 | --program-transform-n=* | --program-transform-=* \ 686 | --program-transform=* | --program-transfor=* \ 687 | --program-transfo=* | --program-transf=* \ 688 | --program-trans=* | --program-tran=* \ 689 | --progr-tra=* | --program-tr=* | --program-t=*) 690 program_transform_name=$ac_optarg ;; 691 692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 693 | -silent | --silent | --silen | --sile | --sil) 694 silent=yes ;; 695 696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 697 ac_prev=sbindir ;; 698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 699 | --sbi=* | --sb=*) 700 sbindir=$ac_optarg ;; 701 702 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 704 | --sharedst | --shareds | --shared | --share | --shar \ 705 | --sha | --sh) 706 ac_prev=sharedstatedir ;; 707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 710 | --sha=* | --sh=*) 711 sharedstatedir=$ac_optarg ;; 712 713 -site | --site | --sit) 714 ac_prev=site ;; 715 -site=* | --site=* | --sit=*) 716 site=$ac_optarg ;; 717 718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 719 ac_prev=srcdir ;; 720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 721 srcdir=$ac_optarg ;; 722 723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 724 | --syscon | --sysco | --sysc | --sys | --sy) 725 ac_prev=sysconfdir ;; 726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 728 sysconfdir=$ac_optarg ;; 729 730 -target | --target | --targe | --targ | --tar | --ta | --t) 731 ac_prev=target_alias ;; 732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 733 target_alias=$ac_optarg ;; 734 735 -v | -verbose | --verbose | --verbos | --verbo | --verb) 736 verbose=yes ;; 737 738 -version | --version | --versio | --versi | --vers | -V) 739 ac_init_version=: ;; 740 741 -with-* | --with-*) 742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 743 # Reject names that are not valid shell variable names. 744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 745 { echo "$as_me: error: invalid package name: $ac_package" >&2 746 { (exit 1); exit 1; }; } 747 ac_package=`echo $ac_package| sed 's/-/_/g'` 748 case $ac_option in 749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 750 *) ac_optarg=yes ;; 751 esac 752 eval "with_$ac_package='$ac_optarg'" ;; 753 754 -without-* | --without-*) 755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 756 # Reject names that are not valid shell variable names. 757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 758 { echo "$as_me: error: invalid package name: $ac_package" >&2 759 { (exit 1); exit 1; }; } 760 ac_package=`echo $ac_package | sed 's/-/_/g'` 761 eval "with_$ac_package=no" ;; 762 763 --x) 764 # Obsolete; use --with-x. 765 with_x=yes ;; 766 767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 768 | --x-incl | --x-inc | --x-in | --x-i) 769 ac_prev=x_includes ;; 770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 772 x_includes=$ac_optarg ;; 773 774 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 776 ac_prev=x_libraries ;; 777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 779 x_libraries=$ac_optarg ;; 780 781 -*) { echo "$as_me: error: unrecognized option: $ac_option 782Try \`$0 --help' for more information." >&2 783 { (exit 1); exit 1; }; } 784 ;; 785 786 *=*) 787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 788 # Reject names that are not valid shell variable names. 789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 791 { (exit 1); exit 1; }; } 792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 793 eval "$ac_envvar='$ac_optarg'" 794 export $ac_envvar ;; 795 796 *) 797 # FIXME: should be removed in autoconf 3.0. 798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 802 ;; 803 804 esac 805done 806 807if test -n "$ac_prev"; then 808 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 809 { echo "$as_me: error: missing argument to $ac_option" >&2 810 { (exit 1); exit 1; }; } 811fi 812 813# Be sure to have absolute paths. 814for ac_var in exec_prefix prefix 815do 816 eval ac_val=$`echo $ac_var` 817 case $ac_val in 818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 820 { (exit 1); exit 1; }; };; 821 esac 822done 823 824# Be sure to have absolute paths. 825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 826 localstatedir libdir includedir oldincludedir infodir mandir 827do 828 eval ac_val=$`echo $ac_var` 829 case $ac_val in 830 [\\/$]* | ?:[\\/]* ) ;; 831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 832 { (exit 1); exit 1; }; };; 833 esac 834done 835 836# There might be people who depend on the old broken behavior: `$host' 837# used to hold the argument of --host etc. 838# FIXME: To remove some day. 839build=$build_alias 840host=$host_alias 841target=$target_alias 842 843# FIXME: To remove some day. 844if test "x$host_alias" != x; then 845 if test "x$build_alias" = x; then 846 cross_compiling=maybe 847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 848 If a cross compiler is detected then cross compile mode will be used." >&2 849 elif test "x$build_alias" != "x$host_alias"; then 850 cross_compiling=yes 851 fi 852fi 853 854ac_tool_prefix= 855test -n "$host_alias" && ac_tool_prefix=$host_alias- 856 857test "$silent" = yes && exec 6>/dev/null 858 859 860# Find the source files, if location was not specified. 861if test -z "$srcdir"; then 862 ac_srcdir_defaulted=yes 863 # Try the directory containing this script, then its parent. 864 ac_confdir=`(dirname "$0") 2>/dev/null || 865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 866 X"$0" : 'X\(//\)[^/]' \| \ 867 X"$0" : 'X\(//\)$' \| \ 868 X"$0" : 'X\(/\)' \| \ 869 . : '\(.\)' 2>/dev/null || 870echo X"$0" | 871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 872 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 873 /^X\(\/\/\)$/{ s//\1/; q; } 874 /^X\(\/\).*/{ s//\1/; q; } 875 s/.*/./; q'` 876 srcdir=$ac_confdir 877 if test ! -r $srcdir/$ac_unique_file; then 878 srcdir=.. 879 fi 880else 881 ac_srcdir_defaulted=no 882fi 883if test ! -r $srcdir/$ac_unique_file; then 884 if test "$ac_srcdir_defaulted" = yes; then 885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 886 { (exit 1); exit 1; }; } 887 else 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 889 { (exit 1); exit 1; }; } 890 fi 891fi 892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 894 { (exit 1); exit 1; }; } 895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 896ac_env_build_alias_set=${build_alias+set} 897ac_env_build_alias_value=$build_alias 898ac_cv_env_build_alias_set=${build_alias+set} 899ac_cv_env_build_alias_value=$build_alias 900ac_env_host_alias_set=${host_alias+set} 901ac_env_host_alias_value=$host_alias 902ac_cv_env_host_alias_set=${host_alias+set} 903ac_cv_env_host_alias_value=$host_alias 904ac_env_target_alias_set=${target_alias+set} 905ac_env_target_alias_value=$target_alias 906ac_cv_env_target_alias_set=${target_alias+set} 907ac_cv_env_target_alias_value=$target_alias 908ac_env_CXX_set=${CXX+set} 909ac_env_CXX_value=$CXX 910ac_cv_env_CXX_set=${CXX+set} 911ac_cv_env_CXX_value=$CXX 912ac_env_CXXFLAGS_set=${CXXFLAGS+set} 913ac_env_CXXFLAGS_value=$CXXFLAGS 914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 915ac_cv_env_CXXFLAGS_value=$CXXFLAGS 916ac_env_LDFLAGS_set=${LDFLAGS+set} 917ac_env_LDFLAGS_value=$LDFLAGS 918ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 919ac_cv_env_LDFLAGS_value=$LDFLAGS 920ac_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_env_CPPFLAGS_value=$CPPFLAGS 922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 923ac_cv_env_CPPFLAGS_value=$CPPFLAGS 924ac_env_CC_set=${CC+set} 925ac_env_CC_value=$CC 926ac_cv_env_CC_set=${CC+set} 927ac_cv_env_CC_value=$CC 928ac_env_CFLAGS_set=${CFLAGS+set} 929ac_env_CFLAGS_value=$CFLAGS 930ac_cv_env_CFLAGS_set=${CFLAGS+set} 931ac_cv_env_CFLAGS_value=$CFLAGS 932ac_env_CPP_set=${CPP+set} 933ac_env_CPP_value=$CPP 934ac_cv_env_CPP_set=${CPP+set} 935ac_cv_env_CPP_value=$CPP 936ac_env_CXXCPP_set=${CXXCPP+set} 937ac_env_CXXCPP_value=$CXXCPP 938ac_cv_env_CXXCPP_set=${CXXCPP+set} 939ac_cv_env_CXXCPP_value=$CXXCPP 940ac_env_F77_set=${F77+set} 941ac_env_F77_value=$F77 942ac_cv_env_F77_set=${F77+set} 943ac_cv_env_F77_value=$F77 944ac_env_FFLAGS_set=${FFLAGS+set} 945ac_env_FFLAGS_value=$FFLAGS 946ac_cv_env_FFLAGS_set=${FFLAGS+set} 947ac_cv_env_FFLAGS_value=$FFLAGS 948 949# 950# Report the --help message. 951# 952if test "$ac_init_help" = "long"; then 953 # Omit some internal or obsolete options to make the list less imposing. 954 # This message is too long to be a string in the A/UX 3.1 sh. 955 cat <<_ACEOF 956\`configure' configures src/Residue.cc 1.0.3 to adapt to many kinds of systems. 957 958Usage: $0 [OPTION]... [VAR=VALUE]... 959 960To assign environment variables (e.g., CC, CFLAGS...), specify them as 961VAR=VALUE. See below for descriptions of some of the useful variables. 962 963Defaults for the options are specified in brackets. 964 965Configuration: 966 -h, --help display this help and exit 967 --help=short display options specific to this package 968 --help=recursive display the short help of all the included packages 969 -V, --version display version information and exit 970 -q, --quiet, --silent do not print \`checking...' messages 971 --cache-file=FILE cache test results in FILE [disabled] 972 -C, --config-cache alias for \`--cache-file=config.cache' 973 -n, --no-create do not create output files 974 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 975 976_ACEOF 977 978 cat <<_ACEOF 979Installation directories: 980 --prefix=PREFIX install architecture-independent files in PREFIX 981 [$ac_default_prefix] 982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 983 [PREFIX] 984 985By default, \`make install' will install all the files in 986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 987an installation prefix other than \`$ac_default_prefix' using \`--prefix', 988for instance \`--prefix=\$HOME'. 989 990For better control, use the options below. 991 992Fine tuning of the installation directories: 993 --bindir=DIR user executables [EPREFIX/bin] 994 --sbindir=DIR system admin executables [EPREFIX/sbin] 995 --libexecdir=DIR program executables [EPREFIX/libexec] 996 --datadir=DIR read-only architecture-independent data [PREFIX/share] 997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 999 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1000 --libdir=DIR object code libraries [EPREFIX/lib] 1001 --includedir=DIR C header files [PREFIX/include] 1002 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1003 --infodir=DIR info documentation [PREFIX/info] 1004 --mandir=DIR man documentation [PREFIX/man] 1005_ACEOF 1006 1007 cat <<\_ACEOF 1008 1009Program names: 1010 --program-prefix=PREFIX prepend PREFIX to installed program names 1011 --program-suffix=SUFFIX append SUFFIX to installed program names 1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1013 1014System types: 1015 --build=BUILD configure for building on BUILD [guessed] 1016 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1017_ACEOF 1018fi 1019 1020if test -n "$ac_init_help"; then 1021 case $ac_init_help in 1022 short | recursive ) echo "Configuration of src/Residue.cc 1.0.3:";; 1023 esac 1024 cat <<\_ACEOF 1025 1026Optional Features: 1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1029 --disable-dependency-tracking speeds up one-time build 1030 --enable-dependency-tracking do not reject slow dependency extractors 1031 --enable-shared[=PKGS] 1032 build shared libraries [default=yes] 1033 --enable-static[=PKGS] 1034 build static libraries [default=yes] 1035 --enable-fast-install[=PKGS] 1036 optimize for fast installation [default=yes] 1037 --disable-libtool-lock avoid locking (might break parallel builds) 1038 1039Optional Packages: 1040 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1041 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1042 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1043 --with-pic try to use only PIC/non-PIC objects [default=use 1044 both] 1045 --with-tags[=TAGS] 1046 include additional configurations [automatic] 1047 1048Some influential environment variables: 1049 CXX C++ compiler command 1050 CXXFLAGS C++ compiler flags 1051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1052 nonstandard directory <lib dir> 1053 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1054 headers in a nonstandard directory <include dir> 1055 CC C compiler command 1056 CFLAGS C compiler flags 1057 CPP C preprocessor 1058 CXXCPP C++ preprocessor 1059 F77 Fortran 77 compiler command 1060 FFLAGS Fortran 77 compiler flags 1061 1062Use these variables to override the choices made by `configure' or to help 1063it to find libraries and programs with nonstandard names/locations. 1064 1065Report bugs to <drussel@graphics.stanford.edu>. 1066_ACEOF 1067fi 1068 1069if test "$ac_init_help" = "recursive"; then 1070 # If there are subdirs, report their specific --help. 1071 ac_popdir=`pwd` 1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1073 test -d $ac_dir || continue 1074 ac_builddir=. 1075 1076if test "$ac_dir" != .; then 1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1078 # A "../" for each directory in $ac_dir_suffix. 1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1080else 1081 ac_dir_suffix= ac_top_builddir= 1082fi 1083 1084case $srcdir in 1085 .) # No --srcdir option. We are building in place. 1086 ac_srcdir=. 1087 if test -z "$ac_top_builddir"; then 1088 ac_top_srcdir=. 1089 else 1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1091 fi ;; 1092 [\\/]* | ?:[\\/]* ) # Absolute path. 1093 ac_srcdir=$srcdir$ac_dir_suffix; 1094 ac_top_srcdir=$srcdir ;; 1095 *) # Relative path. 1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1097 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1098esac 1099 1100# Do not use `cd foo && pwd` to compute absolute paths, because 1101# the directories may not exist. 1102case `pwd` in 1103.) ac_abs_builddir="$ac_dir";; 1104*) 1105 case "$ac_dir" in 1106 .) ac_abs_builddir=`pwd`;; 1107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1108 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1109 esac;; 1110esac 1111case $ac_abs_builddir in 1112.) ac_abs_top_builddir=${ac_top_builddir}.;; 1113*) 1114 case ${ac_top_builddir}. in 1115 .) ac_abs_top_builddir=$ac_abs_builddir;; 1116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1118 esac;; 1119esac 1120case $ac_abs_builddir in 1121.) ac_abs_srcdir=$ac_srcdir;; 1122*) 1123 case $ac_srcdir in 1124 .) ac_abs_srcdir=$ac_abs_builddir;; 1125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1127 esac;; 1128esac 1129case $ac_abs_builddir in 1130.) ac_abs_top_srcdir=$ac_top_srcdir;; 1131*) 1132 case $ac_top_srcdir in 1133 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1136 esac;; 1137esac 1138 1139 cd $ac_dir 1140 # Check for guested configure; otherwise get Cygnus style configure. 1141 if test -f $ac_srcdir/configure.gnu; then 1142 echo 1143 $SHELL $ac_srcdir/configure.gnu --help=recursive 1144 elif test -f $ac_srcdir/configure; then 1145 echo 1146 $SHELL $ac_srcdir/configure --help=recursive 1147 elif test -f $ac_srcdir/configure.ac || 1148 test -f $ac_srcdir/configure.in; then 1149 echo 1150 $ac_configure --help 1151 else 1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1153 fi 1154 cd $ac_popdir 1155 done 1156fi 1157 1158test -n "$ac_init_help" && exit 0 1159if $ac_init_version; then 1160 cat <<\_ACEOF 1161src/Residue.cc configure 1.0.3 1162generated by GNU Autoconf 2.59 1163 1164Copyright (C) 2003 Free Software Foundation, Inc. 1165This configure script is free software; the Free Software Foundation 1166gives unlimited permission to copy, distribute and modify it. 1167_ACEOF 1168 exit 0 1169fi 1170exec 5>config.log 1171cat >&5 <<_ACEOF 1172This file contains any messages produced by compilers while 1173running configure, to aid debugging if configure makes a mistake. 1174 1175It was created by src/Residue.cc $as_me 1.0.3, which was 1176generated by GNU Autoconf 2.59. Invocation command line was 1177 1178 $ $0 $@ 1179 1180_ACEOF 1181{ 1182cat <<_ASUNAME 1183## --------- ## 1184## Platform. ## 1185## --------- ## 1186 1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1188uname -m = `(uname -m) 2>/dev/null || echo unknown` 1189uname -r = `(uname -r) 2>/dev/null || echo unknown` 1190uname -s = `(uname -s) 2>/dev/null || echo unknown` 1191uname -v = `(uname -v) 2>/dev/null || echo unknown` 1192 1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1194/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1195 1196/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1197/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1199hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1200/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1201/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1202/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1203 1204_ASUNAME 1205 1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1207for as_dir in $PATH 1208do 1209 IFS=$as_save_IFS 1210 test -z "$as_dir" && as_dir=. 1211 echo "PATH: $as_dir" 1212done 1213 1214} >&5 1215 1216cat >&5 <<_ACEOF 1217 1218 1219## ----------- ## 1220## Core tests. ## 1221## ----------- ## 1222 1223_ACEOF 1224 1225 1226# Keep a trace of the command line. 1227# Strip out --no-create and --no-recursion so they do not pile up. 1228# Strip out --silent because we don't want to record it for future runs. 1229# Also quote any args containing shell meta-characters. 1230# Make two passes to allow for proper duplicate-argument suppression. 1231ac_configure_args= 1232ac_configure_args0= 1233ac_configure_args1= 1234ac_sep= 1235ac_must_keep_next=false 1236for ac_pass in 1 2 1237do 1238 for ac_arg 1239 do 1240 case $ac_arg in 1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1243 | -silent | --silent | --silen | --sile | --sil) 1244 continue ;; 1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1247 esac 1248 case $ac_pass in 1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1250 2) 1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1252 if test $ac_must_keep_next = true; then 1253 ac_must_keep_next=false # Got value, back to normal. 1254 else 1255 case $ac_arg in 1256 *=* | --config-cache | -C | -disable-* | --disable-* \ 1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1259 | -with-* | --with-* | -without-* | --without-* | --x) 1260 case "$ac_configure_args0 " in 1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1262 esac 1263 ;; 1264 -* ) ac_must_keep_next=true ;; 1265 esac 1266 fi 1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1268 # Get rid of the leading space. 1269 ac_sep=" " 1270 ;; 1271 esac 1272 done 1273done 1274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1276 1277# When interrupted or exit'd, cleanup temporary files, and complete 1278# config.log. We remove comments because anyway the quotes in there 1279# would cause problems or look ugly. 1280# WARNING: Be sure not to use single quotes in there, as some shells, 1281# such as our DU 5.0 friend, will then `close' the trap. 1282trap 'exit_status=$? 1283 # Save into config.log some information that might help in debugging. 1284 { 1285 echo 1286 1287 cat <<\_ASBOX 1288## ---------------- ## 1289## Cache variables. ## 1290## ---------------- ## 1291_ASBOX 1292 echo 1293 # The following way of writing the cache mishandles newlines in values, 1294{ 1295 (set) 2>&1 | 1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1297 *ac_space=\ *) 1298 sed -n \ 1299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1301 ;; 1302 *) 1303 sed -n \ 1304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1305 ;; 1306 esac; 1307} 1308 echo 1309 1310 cat <<\_ASBOX 1311## ----------------- ## 1312## Output variables. ## 1313## ----------------- ## 1314_ASBOX 1315 echo 1316 for ac_var in $ac_subst_vars 1317 do 1318 eval ac_val=$`echo $ac_var` 1319 echo "$ac_var='"'"'$ac_val'"'"'" 1320 done | sort 1321 echo 1322 1323 if test -n "$ac_subst_files"; then 1324 cat <<\_ASBOX 1325## ------------- ## 1326## Output files. ## 1327## ------------- ## 1328_ASBOX 1329 echo 1330 for ac_var in $ac_subst_files 1331 do 1332 eval ac_val=$`echo $ac_var` 1333 echo "$ac_var='"'"'$ac_val'"'"'" 1334 done | sort 1335 echo 1336 fi 1337 1338 if test -s confdefs.h; then 1339 cat <<\_ASBOX 1340## ----------- ## 1341## confdefs.h. ## 1342## ----------- ## 1343_ASBOX 1344 echo 1345 sed "/^$/d" confdefs.h | sort 1346 echo 1347 fi 1348 test "$ac_signal" != 0 && 1349 echo "$as_me: caught signal $ac_signal" 1350 echo "$as_me: exit $exit_status" 1351 } >&5 1352 rm -f core *.core && 1353 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1354 exit $exit_status 1355 ' 0 1356for ac_signal in 1 2 13 15; do 1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1358done 1359ac_signal=0 1360 1361# confdefs.h avoids OS command line length limits that DEFS can exceed. 1362rm -rf conftest* confdefs.h 1363# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1364echo >confdefs.h 1365 1366# Predefined preprocessor variables. 1367 1368cat >>confdefs.h <<_ACEOF 1369#define PACKAGE_NAME "$PACKAGE_NAME" 1370_ACEOF 1371 1372 1373cat >>confdefs.h <<_ACEOF 1374#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1375_ACEOF 1376 1377 1378cat >>confdefs.h <<_ACEOF 1379#define PACKAGE_VERSION "$PACKAGE_VERSION" 1380_ACEOF 1381 1382 1383cat >>confdefs.h <<_ACEOF 1384#define PACKAGE_STRING "$PACKAGE_STRING" 1385_ACEOF 1386 1387 1388cat >>confdefs.h <<_ACEOF 1389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1390_ACEOF 1391 1392 1393# Let the site file select an alternate cache file if it wants to. 1394# Prefer explicitly selected file to automatically selected ones. 1395if test -z "$CONFIG_SITE"; then 1396 if test "x$prefix" != xNONE; then 1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1398 else 1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1400 fi 1401fi 1402for ac_site_file in $CONFIG_SITE; do 1403 if test -r "$ac_site_file"; then 1404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1405echo "$as_me: loading site script $ac_site_file" >&6;} 1406 sed 's/^/| /' "$ac_site_file" >&5 1407 . "$ac_site_file" 1408 fi 1409done 1410 1411if test -r "$cache_file"; then 1412 # Some versions of bash will fail to source /dev/null (special 1413 # files actually), so we avoid doing that. 1414 if test -f "$cache_file"; then 1415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1416echo "$as_me: loading cache $cache_file" >&6;} 1417 case $cache_file in 1418 [\\/]* | ?:[\\/]* ) . $cache_file;; 1419 *) . ./$cache_file;; 1420 esac 1421 fi 1422else 1423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1424echo "$as_me: creating cache $cache_file" >&6;} 1425 >$cache_file 1426fi 1427 1428# Check that the precious variables saved in the cache have kept the same 1429# value. 1430ac_cache_corrupted=false 1431for ac_var in `(set) 2>&1 | 1432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1433 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1434 eval ac_new_set=\$ac_env_${ac_var}_set 1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1436 eval ac_new_val="\$ac_env_${ac_var}_value" 1437 case $ac_old_set,$ac_new_set in 1438 set,) 1439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1441 ac_cache_corrupted=: ;; 1442 ,set) 1443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1445 ac_cache_corrupted=: ;; 1446 ,);; 1447 *) 1448 if test "x$ac_old_val" != "x$ac_new_val"; then 1449 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1450echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1451 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1452echo "$as_me: former value: $ac_old_val" >&2;} 1453 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1454echo "$as_me: current value: $ac_new_val" >&2;} 1455 ac_cache_corrupted=: 1456 fi;; 1457 esac 1458 # Pass precious variables to config.status. 1459 if test "$ac_new_set" = set; then 1460 case $ac_new_val in 1461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1462 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1463 *) ac_arg=$ac_var=$ac_new_val ;; 1464 esac 1465 case " $ac_configure_args " in 1466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1467 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1468 esac 1469 fi 1470done 1471if $ac_cache_corrupted; then 1472 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1473echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1474 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1475echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1476 { (exit 1); exit 1; }; } 1477fi 1478 1479ac_ext=c 1480ac_cpp='$CPP $CPPFLAGS' 1481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1483ac_compiler_gnu=$ac_cv_c_compiler_gnu 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511ac_aux_dir= 1512for ac_dir in config $srcdir/config; do 1513 if test -f $ac_dir/install-sh; then 1514 ac_aux_dir=$ac_dir 1515 ac_install_sh="$ac_aux_dir/install-sh -c" 1516 break 1517 elif test -f $ac_dir/install.sh; then 1518 ac_aux_dir=$ac_dir 1519 ac_install_sh="$ac_aux_dir/install.sh -c" 1520 break 1521 elif test -f $ac_dir/shtool; then 1522 ac_aux_dir=$ac_dir 1523 ac_install_sh="$ac_aux_dir/shtool install -c" 1524 break 1525 fi 1526done 1527if test -z "$ac_aux_dir"; then 1528 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 1529echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} 1530 { (exit 1); exit 1; }; } 1531fi 1532ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1533ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1534ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1535 1536 ac_config_headers="$ac_config_headers config.h" 1537 1538am__api_version="1.9" 1539# Find a good install program. We prefer a C program (faster), 1540# so one script is as good as another. But avoid the broken or 1541# incompatible versions: 1542# SysV /etc/install, /usr/sbin/install 1543# SunOS /usr/etc/install 1544# IRIX /sbin/install 1545# AIX /bin/install 1546# AmigaOS /C/install, which installs bootblocks on floppy discs 1547# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1548# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1549# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1550# OS/2's system install, which has a completely different semantic 1551# ./install, which can be erroneously created by make from ./install.sh. 1552echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1553echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1554if test -z "$INSTALL"; then 1555if test "${ac_cv_path_install+set}" = set; then 1556 echo $ECHO_N "(cached) $ECHO_C" >&6 1557else 1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1559for as_dir in $PATH 1560do 1561 IFS=$as_save_IFS 1562 test -z "$as_dir" && as_dir=. 1563 # Account for people who put trailing slashes in PATH elements. 1564case $as_dir/ in 1565 ./ | .// | /cC/* | \ 1566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1567 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1568 /usr/ucb/* ) ;; 1569 *) 1570 # OSF1 and SCO ODT 3.0 have their own names for install. 1571 # Don't use installbsd from OSF since it installs stuff as root 1572 # by default. 1573 for ac_prog in ginstall scoinst install; do 1574 for ac_exec_ext in '' $ac_executable_extensions; do 1575 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1576 if test $ac_prog = install && 1577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1578 # AIX install. It has an incompatible calling convention. 1579 : 1580 elif test $ac_prog = install && 1581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1582 # program-specific install script used by HP pwplus--don't use. 1583 : 1584 else 1585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1586 break 3 1587 fi 1588 fi 1589 done 1590 done 1591 ;; 1592esac 1593done 1594 1595 1596fi 1597 if test "${ac_cv_path_install+set}" = set; then 1598 INSTALL=$ac_cv_path_install 1599 else 1600 # As a last resort, use the slow shell script. We don't cache a 1601 # path for INSTALL within a source directory, because that will 1602 # break other packages using the cache if that directory is 1603 # removed, or if the path is relative. 1604 INSTALL=$ac_install_sh 1605 fi 1606fi 1607echo "$as_me:$LINENO: result: $INSTALL" >&5 1608echo "${ECHO_T}$INSTALL" >&6 1609 1610# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1611# It thinks the first close brace ends the variable substitution. 1612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1613 1614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1615 1616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1617 1618echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1619echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1620# Just in case 1621sleep 1 1622echo timestamp > conftest.file 1623# Do `set' in a subshell so we don't clobber the current shell's 1624# arguments. Must try -L first in case configure is actually a 1625# symlink; some systems play weird games with the mod time of symlinks 1626# (eg FreeBSD returns the mod time of the symlink's containing 1627# directory). 1628if ( 1629 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1630 if test "$*" = "X"; then 1631 # -L didn't work. 1632 set X `ls -t $srcdir/configure conftest.file` 1633 fi 1634 rm -f conftest.file 1635 if test "$*" != "X $srcdir/configure conftest.file" \ 1636 && test "$*" != "X conftest.file $srcdir/configure"; then 1637 1638 # If neither matched, then we have a broken ls. This can happen 1639 # if, for instance, CONFIG_SHELL is bash and it inherits a 1640 # broken ls alias from the environment. This has actually 1641 # happened. Such a system could not be considered "sane". 1642 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1643alias in your environment" >&5 1644echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1645alias in your environment" >&2;} 1646 { (exit 1); exit 1; }; } 1647 fi 1648 1649 test "$2" = conftest.file 1650 ) 1651then 1652 # Ok. 1653 : 1654else 1655 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1656Check your system clock" >&5 1657echo "$as_me: error: newly created file is older than distributed files! 1658Check your system clock" >&2;} 1659 { (exit 1); exit 1; }; } 1660fi 1661echo "$as_me:$LINENO: result: yes" >&5 1662echo "${ECHO_T}yes" >&6 1663test "$program_prefix" != NONE && 1664 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1665# Use a double $ so make ignores it. 1666test "$program_suffix" != NONE && 1667 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1668# Double any \ or $. echo might interpret backslashes. 1669# By default was `s,x,x', remove it if useless. 1670cat <<\_ACEOF >conftest.sed 1671s/[\\$]/&&/g;s/;s,x,x,$// 1672_ACEOF 1673program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1674rm conftest.sed 1675 1676# expand $ac_aux_dir to an absolute path 1677am_aux_dir=`cd $ac_aux_dir && pwd` 1678 1679test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1680# Use eval to expand $SHELL 1681if eval "$MISSING --run true"; then 1682 am_missing_run="$MISSING --run " 1683else 1684 am_missing_run= 1685 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1686echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1687fi 1688 1689if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1690 # We used to keeping the `.' as first argument, in order to 1691 # allow $(mkdir_p) to be used without argument. As in 1692 # $(mkdir_p) $(somedir) 1693 # where $(somedir) is conditionally defined. However this is wrong 1694 # for two reasons: 1695 # 1. if the package is installed by a user who cannot write `.' 1696 # make install will fail, 1697 # 2. the above comment should most certainly read 1698 # $(mkdir_p) $(DESTDIR)$(somedir) 1699 # so it does not work when $(somedir) is undefined and 1700 # $(DESTDIR) is not. 1701 # To support the latter case, we have to write 1702 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1703 # so the `.' trick is pointless. 1704 mkdir_p='mkdir -p --' 1705else 1706 # On NextStep and OpenStep, the `mkdir' command does not 1707 # recognize any option. It will interpret all options as 1708 # directories to create, and then abort because `.' already 1709 # exists. 1710 for d in ./-p ./--version; 1711 do 1712 test -d $d && rmdir $d 1713 done 1714 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1715 if test -f "$ac_aux_dir/mkinstalldirs"; then 1716 mkdir_p='$(mkinstalldirs)' 1717 else 1718 mkdir_p='$(install_sh) -d' 1719 fi 1720fi 1721 1722for ac_prog in gawk mawk nawk awk 1723do 1724 # Extract the first word of "$ac_prog", so it can be a program name with args. 1725set dummy $ac_prog; ac_word=$2 1726echo "$as_me:$LINENO: checking for $ac_word" >&5 1727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1728if test "${ac_cv_prog_AWK+set}" = set; then 1729 echo $ECHO_N "(cached) $ECHO_C" >&6 1730else 1731 if test -n "$AWK"; then 1732 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1733else 1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1735for as_dir in $PATH 1736do 1737 IFS=$as_save_IFS 1738 test -z "$as_dir" && as_dir=. 1739 for ac_exec_ext in '' $ac_executable_extensions; do 1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1741 ac_cv_prog_AWK="$ac_prog" 1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1743 break 2 1744 fi 1745done 1746done 1747 1748fi 1749fi 1750AWK=$ac_cv_prog_AWK 1751if test -n "$AWK"; then 1752 echo "$as_me:$LINENO: result: $AWK" >&5 1753echo "${ECHO_T}$AWK" >&6 1754else 1755 echo "$as_me:$LINENO: result: no" >&5 1756echo "${ECHO_T}no" >&6 1757fi 1758 1759 test -n "$AWK" && break 1760done 1761 1762echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1763echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1764set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1765if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1766 echo $ECHO_N "(cached) $ECHO_C" >&6 1767else 1768 cat >conftest.make <<\_ACEOF 1769all: 1770 @echo 'ac_maketemp="$(MAKE)"' 1771_ACEOF 1772# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1773eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1774if test -n "$ac_maketemp"; then 1775 eval ac_cv_prog_make_${ac_make}_set=yes 1776else 1777 eval ac_cv_prog_make_${ac_make}_set=no 1778fi 1779rm -f conftest.make 1780fi 1781if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1782 echo "$as_me:$LINENO: result: yes" >&5 1783echo "${ECHO_T}yes" >&6 1784 SET_MAKE= 1785else 1786 echo "$as_me:$LINENO: result: no" >&5 1787echo "${ECHO_T}no" >&6 1788 SET_MAKE="MAKE=${MAKE-make}" 1789fi 1790 1791rm -rf .tst 2>/dev/null 1792mkdir .tst 2>/dev/null 1793if test -d .tst; then 1794 am__leading_dot=. 1795else 1796 am__leading_dot=_ 1797fi 1798rmdir .tst 2>/dev/null 1799 1800# test to see if srcdir already configured 1801if test "`cd $srcdir && pwd`" != "`pwd`" && 1802 test -f $srcdir/config.status; then 1803 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1804echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1805 { (exit 1); exit 1; }; } 1806fi 1807 1808# test whether we have cygpath 1809if test -z "$CYGPATH_W"; then 1810 if (cygpath --version) >/dev/null 2>/dev/null; then 1811 CYGPATH_W='cygpath -w' 1812 else 1813 CYGPATH_W=echo 1814 fi 1815fi 1816 1817 1818# Define the identity of the package. 1819 PACKAGE=dsr-pdb 1820 VERSION=1.0.3 1821 1822 1823cat >>confdefs.h <<_ACEOF 1824#define PACKAGE "$PACKAGE" 1825_ACEOF 1826 1827 1828cat >>confdefs.h <<_ACEOF 1829#define VERSION "$VERSION" 1830_ACEOF 1831 1832# Some tools Automake needs. 1833 1834ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1835 1836 1837AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1838 1839 1840AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1841 1842 1843AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1844 1845 1846MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1847 1848install_sh=${install_sh-"$am_aux_dir/install-sh"} 1849 1850# Installed binaries are usually stripped using `strip' when the user 1851# run `make install-strip'. However `strip' might not be the right 1852# tool to use in cross-compilation environments, therefore Automake 1853# will honor the `STRIP' environment variable to overrule this program. 1854if test "$cross_compiling" != no; then 1855 if test -n "$ac_tool_prefix"; then 1856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1857set dummy ${ac_tool_prefix}strip; ac_word=$2 1858echo "$as_me:$LINENO: checking for $ac_word" >&5 1859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1860if test "${ac_cv_prog_STRIP+set}" = set; then 1861 echo $ECHO_N "(cached) $ECHO_C" >&6 1862else 1863 if test -n "$STRIP"; then 1864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1865else 1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1867for as_dir in $PATH 1868do 1869 IFS=$as_save_IFS 1870 test -z "$as_dir" && as_dir=. 1871 for ac_exec_ext in '' $ac_executable_extensions; do 1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1873 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1875 break 2 1876 fi 1877done 1878done 1879 1880fi 1881fi 1882STRIP=$ac_cv_prog_STRIP 1883if test -n "$STRIP"; then 1884 echo "$as_me:$LINENO: result: $STRIP" >&5 1885echo "${ECHO_T}$STRIP" >&6 1886else 1887 echo "$as_me:$LINENO: result: no" >&5 1888echo "${ECHO_T}no" >&6 1889fi 1890 1891fi 1892if test -z "$ac_cv_prog_STRIP"; then 1893 ac_ct_STRIP=$STRIP 1894 # Extract the first word of "strip", so it can be a program name with args. 1895set dummy strip; ac_word=$2 1896echo "$as_me:$LINENO: checking for $ac_word" >&5 1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1898if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1899 echo $ECHO_N "(cached) $ECHO_C" >&6 1900else 1901 if test -n "$ac_ct_STRIP"; then 1902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1903else 1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1905for as_dir in $PATH 1906do 1907 IFS=$as_save_IFS 1908 test -z "$as_dir" && as_dir=. 1909 for ac_exec_ext in '' $ac_executable_extensions; do 1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1911 ac_cv_prog_ac_ct_STRIP="strip" 1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1913 break 2 1914 fi 1915done 1916done 1917 1918 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1919fi 1920fi 1921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1922if test -n "$ac_ct_STRIP"; then 1923 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1924echo "${ECHO_T}$ac_ct_STRIP" >&6 1925else 1926 echo "$as_me:$LINENO: result: no" >&5 1927echo "${ECHO_T}no" >&6 1928fi 1929 1930 STRIP=$ac_ct_STRIP 1931else 1932 STRIP="$ac_cv_prog_STRIP" 1933fi 1934 1935fi 1936INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1937 1938# We need awk for the "check" target. The system "awk" is bad on 1939# some platforms. 1940# Always define AMTAR for backward compatibility. 1941 1942AMTAR=${AMTAR-"${am_missing_run}tar"} 1943 1944am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1945 1946 1947 1948 1949 1950 1951 1952#AM_CONDITIONAL(WANT_CGAL, test $want_cgal = yes) 1953 1954 1955ac_ext=cc 1956ac_cpp='$CXXCPP $CPPFLAGS' 1957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1960if test -n "$ac_tool_prefix"; then 1961 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1962 do 1963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1964set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1965echo "$as_me:$LINENO: checking for $ac_word" >&5 1966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1967if test "${ac_cv_prog_CXX+set}" = set; then 1968 echo $ECHO_N "(cached) $ECHO_C" >&6 1969else 1970 if test -n "$CXX"; then 1971 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1972else 1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 for ac_exec_ext in '' $ac_executable_extensions; do 1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1980 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1982 break 2 1983 fi 1984done 1985done 1986 1987fi 1988fi 1989CXX=$ac_cv_prog_CXX 1990if test -n "$CXX"; then 1991 echo "$as_me:$LINENO: result: $CXX" >&5 1992echo "${ECHO_T}$CXX" >&6 1993else 1994 echo "$as_me:$LINENO: result: no" >&5 1995echo "${ECHO_T}no" >&6 1996fi 1997 1998 test -n "$CXX" && break 1999 done 2000fi 2001if test -z "$CXX"; then 2002 ac_ct_CXX=$CXX 2003 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2004do 2005 # Extract the first word of "$ac_prog", so it can be a program name with args. 2006set dummy $ac_prog; ac_word=$2 2007echo "$as_me:$LINENO: checking for $ac_word" >&5 2008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2009if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2010 echo $ECHO_N "(cached) $ECHO_C" >&6 2011else 2012 if test -n "$ac_ct_CXX"; then 2013 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2014else 2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2016for as_dir in $PATH 2017do 2018 IFS=$as_save_IFS 2019 test -z "$as_dir" && as_dir=. 2020 for ac_exec_ext in '' $ac_executable_extensions; do 2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2022 ac_cv_prog_ac_ct_CXX="$ac_prog" 2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2024 break 2 2025 fi 2026done 2027done 2028 2029fi 2030fi 2031ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2032if test -n "$ac_ct_CXX"; then 2033 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2034echo "${ECHO_T}$ac_ct_CXX" >&6 2035else 2036 echo "$as_me:$LINENO: result: no" >&5 2037echo "${ECHO_T}no" >&6 2038fi 2039 2040 test -n "$ac_ct_CXX" && break 2041done 2042test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2043 2044 CXX=$ac_ct_CXX 2045fi 2046 2047 2048# Provide some information about the compiler. 2049echo "$as_me:$LINENO:" \ 2050 "checking for C++ compiler version" >&5 2051ac_compiler=`set X $ac_compile; echo $2` 2052{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2053 (eval $ac_compiler --version </dev/null >&5) 2>&5 2054 ac_status=$? 2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2056 (exit $ac_status); } 2057{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2058 (eval $ac_compiler -v </dev/null >&5) 2>&5 2059 ac_status=$? 2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2061 (exit $ac_status); } 2062{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2063 (eval $ac_compiler -V </dev/null >&5) 2>&5 2064 ac_status=$? 2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2066 (exit $ac_status); } 2067 2068cat >conftest.$ac_ext <<_ACEOF 2069/* confdefs.h. */ 2070_ACEOF 2071cat confdefs.h >>conftest.$ac_ext 2072cat >>conftest.$ac_ext <<_ACEOF 2073/* end confdefs.h. */ 2074 2075int 2076main () 2077{ 2078 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083ac_clean_files_save=$ac_clean_files 2084ac_clean_files="$ac_clean_files a.out a.exe b.out" 2085# Try to create an executable without -o first, disregard a.out. 2086# It will help us diagnose broken compilers, and finding out an intuition 2087# of exeext. 2088echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2089echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 2090ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2091if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2092 (eval $ac_link_default) 2>&5 2093 ac_status=$? 2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2095 (exit $ac_status); }; then 2096 # Find the output, starting from the most likely. This scheme is 2097# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2098# resort. 2099 2100# Be careful to initialize this variable, since it used to be cached. 2101# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2102ac_cv_exeext= 2103# b.out is created by i960 compilers. 2104for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2105do 2106 test -f "$ac_file" || continue 2107 case $ac_file in 2108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2109 ;; 2110 conftest.$ac_ext ) 2111 # This is the source file. 2112 ;; 2113 [ab].out ) 2114 # We found the default executable, but exeext='' is most 2115 # certainly right. 2116 break;; 2117 *.* ) 2118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2119 # FIXME: I believe we export ac_cv_exeext for Libtool, 2120 # but it would be cool to find out if it's true. Does anybody 2121 # maintain Libtool? --akim. 2122 export ac_cv_exeext 2123 break;; 2124 * ) 2125 break;; 2126 esac 2127done 2128else 2129 echo "$as_me: failed program was:" >&5 2130sed 's/^/| /' conftest.$ac_ext >&5 2131 2132{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2133See \`config.log' for more details." >&5 2134echo "$as_me: error: C++ compiler cannot create executables 2135See \`config.log' for more details." >&2;} 2136 { (exit 77); exit 77; }; } 2137fi 2138 2139ac_exeext=$ac_cv_exeext 2140echo "$as_me:$LINENO: result: $ac_file" >&5 2141echo "${ECHO_T}$ac_file" >&6 2142 2143# Check the compiler produces executables we can run. If not, either 2144# the compiler is broken, or we cross compile. 2145echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2146echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 2147# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2148# If not cross compiling, check that we can run a simple program. 2149if test "$cross_compiling" != yes; then 2150 if { ac_try='./$ac_file' 2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2152 (eval $ac_try) 2>&5 2153 ac_status=$? 2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2155 (exit $ac_status); }; }; then 2156 cross_compiling=no 2157 else 2158 if test "$cross_compiling" = maybe; then 2159 cross_compiling=yes 2160 else 2161 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2162If you meant to cross compile, use \`--host'. 2163See \`config.log' for more details." >&5 2164echo "$as_me: error: cannot run C++ compiled programs. 2165If you meant to cross compile, use \`--host'. 2166See \`config.log' for more details." >&2;} 2167 { (exit 1); exit 1; }; } 2168 fi 2169 fi 2170fi 2171echo "$as_me:$LINENO: result: yes" >&5 2172echo "${ECHO_T}yes" >&6 2173 2174rm -f a.out a.exe conftest$ac_cv_exeext b.out 2175ac_clean_files=$ac_clean_files_save 2176# Check the compiler produces executables we can run. If not, either 2177# the compiler is broken, or we cross compile. 2178echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2179echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2180echo "$as_me:$LINENO: result: $cross_compiling" >&5 2181echo "${ECHO_T}$cross_compiling" >&6 2182 2183echo "$as_me:$LINENO: checking for suffix of executables" >&5 2184echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2186 (eval $ac_link) 2>&5 2187 ac_status=$? 2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2189 (exit $ac_status); }; then 2190 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2191# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2192# work properly (i.e., refer to `conftest.exe'), while it won't with 2193# `rm'. 2194for ac_file in conftest.exe conftest conftest.*; do 2195 test -f "$ac_file" || continue 2196 case $ac_file in 2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2199 export ac_cv_exeext 2200 break;; 2201 * ) break;; 2202 esac 2203done 2204else 2205 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2206See \`config.log' for more details." >&5 2207echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2208See \`config.log' for more details." >&2;} 2209 { (exit 1); exit 1; }; } 2210fi 2211 2212rm -f conftest$ac_cv_exeext 2213echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2214echo "${ECHO_T}$ac_cv_exeext" >&6 2215 2216rm -f conftest.$ac_ext 2217EXEEXT=$ac_cv_exeext 2218ac_exeext=$EXEEXT 2219echo "$as_me:$LINENO: checking for suffix of object files" >&5 2220echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2221if test "${ac_cv_objext+set}" = set; then 2222 echo $ECHO_N "(cached) $ECHO_C" >&6 2223else 2224 cat >conftest.$ac_ext <<_ACEOF 2225/* confdefs.h. */ 2226_ACEOF 2227cat confdefs.h >>conftest.$ac_ext 2228cat >>conftest.$ac_ext <<_ACEOF 2229/* end confdefs.h. */ 2230 2231int 2232main () 2233{ 2234 2235 ; 2236 return 0; 2237} 2238_ACEOF 2239rm -f conftest.o conftest.obj 2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2241 (eval $ac_compile) 2>&5 2242 ac_status=$? 2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2244 (exit $ac_status); }; then 2245 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2246 case $ac_file in 2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2249 break;; 2250 esac 2251done 2252else 2253 echo "$as_me: failed program was:" >&5 2254sed 's/^/| /' conftest.$ac_ext >&5 2255 2256{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2257See \`config.log' for more details." >&5 2258echo "$as_me: error: cannot compute suffix of object files: cannot compile 2259See \`config.log' for more details." >&2;} 2260 { (exit 1); exit 1; }; } 2261fi 2262 2263rm -f conftest.$ac_cv_objext conftest.$ac_ext 2264fi 2265echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2266echo "${ECHO_T}$ac_cv_objext" >&6 2267OBJEXT=$ac_cv_objext 2268ac_objext=$OBJEXT 2269echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2270echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2271if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2272 echo $ECHO_N "(cached) $ECHO_C" >&6 2273else 2274 cat >conftest.$ac_ext <<_ACEOF 2275/* confdefs.h. */ 2276_ACEOF 2277cat confdefs.h >>conftest.$ac_ext 2278cat >>conftest.$ac_ext <<_ACEOF 2279/* end confdefs.h. */ 2280 2281int 2282main () 2283{ 2284#ifndef __GNUC__ 2285 choke me 2286#endif 2287 2288 ; 2289 return 0; 2290} 2291_ACEOF 2292rm -f conftest.$ac_objext 2293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2294 (eval $ac_compile) 2>conftest.er1 2295 ac_status=$? 2296 grep -v '^ *+' conftest.er1 >conftest.err 2297 rm -f conftest.er1 2298 cat conftest.err >&5 2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2300 (exit $ac_status); } && 2301 { ac_try='test -z "$ac_cxx_werror_flag" 2302 || test ! -s conftest.err' 2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2304 (eval $ac_try) 2>&5 2305 ac_status=$? 2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2307 (exit $ac_status); }; } && 2308 { ac_try='test -s conftest.$ac_objext' 2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2310 (eval $ac_try) 2>&5 2311 ac_status=$? 2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2313 (exit $ac_status); }; }; then 2314 ac_compiler_gnu=yes 2315else 2316 echo "$as_me: failed program was:" >&5 2317sed 's/^/| /' conftest.$ac_ext >&5 2318 2319ac_compiler_gnu=no 2320fi 2321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2322ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2323 2324fi 2325echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2326echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2327GXX=`test $ac_compiler_gnu = yes && echo yes` 2328ac_test_CXXFLAGS=${CXXFLAGS+set} 2329ac_save_CXXFLAGS=$CXXFLAGS 2330CXXFLAGS="-g" 2331echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2332echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2333if test "${ac_cv_prog_cxx_g+set}" = set; then 2334 echo $ECHO_N "(cached) $ECHO_C" >&6 2335else 2336 cat >conftest.$ac_ext <<_ACEOF 2337/* confdefs.h. */ 2338_ACEOF 2339cat confdefs.h >>conftest.$ac_ext 2340cat >>conftest.$ac_ext <<_ACEOF 2341/* end confdefs.h. */ 2342 2343int 2344main () 2345{ 2346 2347 ; 2348 return 0; 2349} 2350_ACEOF 2351rm -f conftest.$ac_objext 2352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2353 (eval $ac_compile) 2>conftest.er1 2354 ac_status=$? 2355 grep -v '^ *+' conftest.er1 >conftest.err 2356 rm -f conftest.er1 2357 cat conftest.err >&5 2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2359 (exit $ac_status); } && 2360 { ac_try='test -z "$ac_cxx_werror_flag" 2361 || test ! -s conftest.err' 2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2363 (eval $ac_try) 2>&5 2364 ac_status=$? 2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2366 (exit $ac_status); }; } && 2367 { ac_try='test -s conftest.$ac_objext' 2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2369 (eval $ac_try) 2>&5 2370 ac_status=$? 2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2372 (exit $ac_status); }; }; then 2373 ac_cv_prog_cxx_g=yes 2374else 2375 echo "$as_me: failed program was:" >&5 2376sed 's/^/| /' conftest.$ac_ext >&5 2377 2378ac_cv_prog_cxx_g=no 2379fi 2380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2381fi 2382echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2383echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2384if test "$ac_test_CXXFLAGS" = set; then 2385 CXXFLAGS=$ac_save_CXXFLAGS 2386elif test $ac_cv_prog_cxx_g = yes; then 2387 if test "$GXX" = yes; then 2388 CXXFLAGS="-g -O2" 2389 else 2390 CXXFLAGS="-g" 2391 fi 2392else 2393 if test "$GXX" = yes; then 2394 CXXFLAGS="-O2" 2395 else 2396 CXXFLAGS= 2397 fi 2398fi 2399for ac_declaration in \ 2400 '' \ 2401 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2402 'extern "C" void std::exit (int); using std::exit;' \ 2403 'extern "C" void exit (int) throw ();' \ 2404 'extern "C" void exit (int);' \ 2405 'void exit (int);' 2406do 2407 cat >conftest.$ac_ext <<_ACEOF 2408/* confdefs.h. */ 2409_ACEOF 2410cat confdefs.h >>conftest.$ac_ext 2411cat >>conftest.$ac_ext <<_ACEOF 2412/* end confdefs.h. */ 2413$ac_declaration 2414#include <stdlib.h> 2415int 2416main () 2417{ 2418exit (42); 2419 ; 2420 return 0; 2421} 2422_ACEOF 2423rm -f conftest.$ac_objext 2424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2425 (eval $ac_compile) 2>conftest.er1 2426 ac_status=$? 2427 grep -v '^ *+' conftest.er1 >conftest.err 2428 rm -f conftest.er1 2429 cat conftest.err >&5 2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2431 (exit $ac_status); } && 2432 { ac_try='test -z "$ac_cxx_werror_flag" 2433 || test ! -s conftest.err' 2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2435 (eval $ac_try) 2>&5 2436 ac_status=$? 2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2438 (exit $ac_status); }; } && 2439 { ac_try='test -s conftest.$ac_objext' 2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2441 (eval $ac_try) 2>&5 2442 ac_status=$? 2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2444 (exit $ac_status); }; }; then 2445 : 2446else 2447 echo "$as_me: failed program was:" >&5 2448sed 's/^/| /' conftest.$ac_ext >&5 2449 2450continue 2451fi 2452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2453 cat >conftest.$ac_ext <<_ACEOF 2454/* confdefs.h. */ 2455_ACEOF 2456cat confdefs.h >>conftest.$ac_ext 2457cat >>conftest.$ac_ext <<_ACEOF 2458/* end confdefs.h. */ 2459$ac_declaration 2460int 2461main () 2462{ 2463exit (42); 2464 ; 2465 return 0; 2466} 2467_ACEOF 2468rm -f conftest.$ac_objext 2469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2470 (eval $ac_compile) 2>conftest.er1 2471 ac_status=$? 2472 grep -v '^ *+' conftest.er1 >conftest.err 2473 rm -f conftest.er1 2474 cat conftest.err >&5 2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2476 (exit $ac_status); } && 2477 { ac_try='test -z "$ac_cxx_werror_flag" 2478 || test ! -s conftest.err' 2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2480 (eval $ac_try) 2>&5 2481 ac_status=$? 2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2483 (exit $ac_status); }; } && 2484 { ac_try='test -s conftest.$ac_objext' 2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2486 (eval $ac_try) 2>&5 2487 ac_status=$? 2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2489 (exit $ac_status); }; }; then 2490 break 2491else 2492 echo "$as_me: failed program was:" >&5 2493sed 's/^/| /' conftest.$ac_ext >&5 2494 2495fi 2496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2497done 2498rm -f conftest* 2499if test -n "$ac_declaration"; then 2500 echo '#ifdef __cplusplus' >>confdefs.h 2501 echo $ac_declaration >>confdefs.h 2502 echo '#endif' >>confdefs.h 2503fi 2504 2505ac_ext=c 2506ac_cpp='$CPP $CPPFLAGS' 2507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2509ac_compiler_gnu=$ac_cv_c_compiler_gnu 2510DEPDIR="${am__leading_dot}deps" 2511 2512 ac_config_commands="$ac_config_commands depfiles" 2513 2514 2515am_make=${MAKE-make} 2516cat > confinc << 'END' 2517am__doit: 2518 @echo done 2519.PHONY: am__doit 2520END 2521# If we don't find an include directive, just comment out the code. 2522echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2523echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2524am__include="#" 2525am__quote= 2526_am_result=none 2527# First try GNU make style include. 2528echo "include confinc" > confmf 2529# We grep out `Entering directory' and `Leaving directory' 2530# messages which can occur if `w' ends up in MAKEFLAGS. 2531# In particular we don't look at `^make:' because GNU make might 2532# be invoked under some other name (usually "gmake"), in which 2533# case it prints its new name instead of `make'. 2534if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2535 am__include=include 2536 am__quote= 2537 _am_result=GNU 2538fi 2539# Now try BSD make style include. 2540if test "$am__include" = "#"; then 2541 echo '.include "confinc"' > confmf 2542 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2543 am__include=.include 2544 am__quote="\"" 2545 _am_result=BSD 2546 fi 2547fi 2548 2549 2550echo "$as_me:$LINENO: result: $_am_result" >&5 2551echo "${ECHO_T}$_am_result" >&6 2552rm -f confinc confmf 2553 2554# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2555if test "${enable_dependency_tracking+set}" = set; then 2556 enableval="$enable_dependency_tracking" 2557 2558fi; 2559if test "x$enable_dependency_tracking" != xno; then 2560 am_depcomp="$ac_aux_dir/depcomp" 2561 AMDEPBACKSLASH='\' 2562fi 2563 2564 2565if test "x$enable_dependency_tracking" != xno; then 2566 AMDEP_TRUE= 2567 AMDEP_FALSE='#' 2568else 2569 AMDEP_TRUE='#' 2570 AMDEP_FALSE= 2571fi 2572 2573 2574 2575 2576depcc="$CXX" am_compiler_list= 2577 2578echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2579echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2580if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 2581 echo $ECHO_N "(cached) $ECHO_C" >&6 2582else 2583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2584 # We make a subdir and do the tests there. Otherwise we can end up 2585 # making bogus files that we don't know about and never remove. For 2586 # instance it was reported that on HP-UX the gcc test will end up 2587 # making a dummy file named `D' -- because `-MD' means `put the output 2588 # in D'. 2589 mkdir conftest.dir 2590 # Copy depcomp to subdir because otherwise we won't find it if we're 2591 # using a relative directory. 2592 cp "$am_depcomp" conftest.dir 2593 cd conftest.dir 2594 # We will build objects and dependencies in a subdirectory because 2595 # it helps to detect inapplicable dependency modes. For instance 2596 # both Tru64's cc and ICC support -MD to output dependencies as a 2597 # side effect of compilation, but ICC will put the dependencies in 2598 # the current directory while Tru64 will put them in the object 2599 # directory. 2600 mkdir sub 2601 2602 am_cv_CXX_dependencies_compiler_type=none 2603 if test "$am_compiler_list" = ""; then 2604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2605 fi 2606 for depmode in $am_compiler_list; do 2607 # Setup a source with many dependencies, because some compilers 2608 # like to wrap large dependency lists on column 80 (with \), and 2609 # we should not choose a depcomp mode which is confused by this. 2610 # 2611 # We need to recreate these files for each test, as the compiler may 2612 # overwrite some of them when testing with obscure command lines. 2613 # This happens at least with the AIX C compiler. 2614 : > sub/conftest.c 2615 for i in 1 2 3 4 5 6; do 2616 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2617 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2618 # Solaris 8's {/usr,}/bin/sh. 2619 touch sub/conftst$i.h 2620 done 2621 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2622 2623 case $depmode in 2624 nosideeffect) 2625 # after this tag, mechanisms are not by side-effect, so they'll 2626 # only be used when explicitly requested 2627 if test "x$enable_dependency_tracking" = xyes; then 2628 continue 2629 else 2630 break 2631 fi 2632 ;; 2633 none) break ;; 2634 esac 2635 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2636 # mode. It turns out that the SunPro C++ compiler does not properly 2637 # handle `-M -o', and we need to detect this. 2638 if depmode=$depmode \ 2639 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2640 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2641 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2642 >/dev/null 2>conftest.err && 2643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2644 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2646 # icc doesn't choke on unknown options, it will just issue warnings 2647 # or remarks (even with -Werror). So we grep stderr for any message 2648 # that says an option was ignored or not supported. 2649 # When given -MP, icc 7.0 and 7.1 complain thusly: 2650 # icc: Command line warning: ignoring option '-M'; no argument required 2651 # The diagnosis changed in icc 8.0: 2652 # icc: Command line remark: option '-MP' not supported 2653 if (grep 'ignoring option' conftest.err || 2654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2655 am_cv_CXX_dependencies_compiler_type=$depmode 2656 break 2657 fi 2658 fi 2659 done 2660 2661 cd .. 2662 rm -rf conftest.dir 2663else 2664 am_cv_CXX_dependencies_compiler_type=none 2665fi 2666 2667fi 2668echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 2669echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 2670CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 2671 2672 2673 2674if 2675 test "x$enable_dependency_tracking" != xno \ 2676 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 2677 am__fastdepCXX_TRUE= 2678 am__fastdepCXX_FALSE='#' 2679else 2680 am__fastdepCXX_TRUE='#' 2681 am__fastdepCXX_FALSE= 2682fi 2683 2684 2685ac_ext=c 2686ac_cpp='$CPP $CPPFLAGS' 2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2689ac_compiler_gnu=$ac_cv_c_compiler_gnu 2690if test -n "$ac_tool_prefix"; then 2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2692set dummy ${ac_tool_prefix}gcc; ac_word=$2 2693echo "$as_me:$LINENO: checking for $ac_word" >&5 2694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2695if test "${ac_cv_prog_CC+set}" = set; then 2696 echo $ECHO_N "(cached) $ECHO_C" >&6 2697else 2698 if test -n "$CC"; then 2699 ac_cv_prog_CC="$CC" # Let the user override the test. 2700else 2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2708 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2710 break 2 2711 fi 2712done 2713done 2714 2715fi 2716fi 2717CC=$ac_cv_prog_CC 2718if test -n "$CC"; then 2719 echo "$as_me:$LINENO: result: $CC" >&5 2720echo "${ECHO_T}$CC" >&6 2721else 2722 echo "$as_me:$LINENO: result: no" >&5 2723echo "${ECHO_T}no" >&6 2724fi 2725 2726fi 2727if test -z "$ac_cv_prog_CC"; then 2728 ac_ct_CC=$CC 2729 # Extract the first word of "gcc", so it can be a program name with args. 2730set dummy gcc; ac_word=$2 2731echo "$as_me:$LINENO: checking for $ac_word" >&5 2732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2733if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2734 echo $ECHO_N "(cached) $ECHO_C" >&6 2735else 2736 if test -n "$ac_ct_CC"; then 2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2738else 2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2740for as_dir in $PATH 2741do 2742 IFS=$as_save_IFS 2743 test -z "$as_dir" && as_dir=. 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2746 ac_cv_prog_ac_ct_CC="gcc" 2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2748 break 2 2749 fi 2750done 2751done 2752 2753fi 2754fi 2755ac_ct_CC=$ac_cv_prog_ac_ct_CC 2756if test -n "$ac_ct_CC"; then 2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2758echo "${ECHO_T}$ac_ct_CC" >&6 2759else 2760 echo "$as_me:$LINENO: result: no" >&5 2761echo "${ECHO_T}no" >&6 2762fi 2763 2764 CC=$ac_ct_CC 2765else 2766 CC="$ac_cv_prog_CC" 2767fi 2768 2769if test -z "$CC"; then 2770 if test -n "$ac_tool_prefix"; then 2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2772set dummy ${ac_tool_prefix}cc; ac_word=$2 2773echo "$as_me:$LINENO: checking for $ac_word" >&5 2774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2775if test "${ac_cv_prog_CC+set}" = set; then 2776 echo $ECHO_N "(cached) $ECHO_C" >&6 2777else 2778 if test -n "$CC"; then 2779 ac_cv_prog_CC="$CC" # Let the user override the test. 2780else 2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2782for as_dir in $PATH 2783do 2784 IFS=$as_save_IFS 2785 test -z "$as_dir" && as_dir=. 2786 for ac_exec_ext in '' $ac_executable_extensions; do 2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2788 ac_cv_prog_CC="${ac_tool_prefix}cc" 2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2790 break 2 2791 fi 2792done 2793done 2794 2795fi 2796fi 2797CC=$ac_cv_prog_CC 2798if test -n "$CC"; then 2799 echo "$as_me:$LINENO: result: $CC" >&5 2800echo "${ECHO_T}$CC" >&6 2801else 2802 echo "$as_me:$LINENO: result: no" >&5 2803echo "${ECHO_T}no" >&6 2804fi 2805 2806fi 2807if test -z "$ac_cv_prog_CC"; then 2808 ac_ct_CC=$CC 2809 # Extract the first word of "cc", so it can be a program name with args. 2810set dummy cc; ac_word=$2 2811echo "$as_me:$LINENO: checking for $ac_word" >&5 2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2813if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2814 echo $ECHO_N "(cached) $ECHO_C" >&6 2815else 2816 if test -n "$ac_ct_CC"; then 2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2818else 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 test -z "$as_dir" && as_dir=. 2824 for ac_exec_ext in '' $ac_executable_extensions; do 2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2826 ac_cv_prog_ac_ct_CC="cc" 2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2828 break 2 2829 fi 2830done 2831done 2832 2833fi 2834fi 2835ac_ct_CC=$ac_cv_prog_ac_ct_CC 2836if test -n "$ac_ct_CC"; then 2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2838echo "${ECHO_T}$ac_ct_CC" >&6 2839else 2840 echo "$as_me:$LINENO: result: no" >&5 2841echo "${ECHO_T}no" >&6 2842fi 2843 2844 CC=$ac_ct_CC 2845else 2846 CC="$ac_cv_prog_CC" 2847fi 2848 2849fi 2850if test -z "$CC"; then 2851 # Extract the first word of "cc", so it can be a program name with args. 2852set dummy cc; ac_word=$2 2853echo "$as_me:$LINENO: checking for $ac_word" >&5 2854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2855if test "${ac_cv_prog_CC+set}" = set; then 2856 echo $ECHO_N "(cached) $ECHO_C" >&6 2857else 2858 if test -n "$CC"; then 2859 ac_cv_prog_CC="$CC" # Let the user override the test. 2860else 2861 ac_prog_rejected=no 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2870 ac_prog_rejected=yes 2871 continue 2872 fi 2873 ac_cv_prog_CC="cc" 2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2875 break 2 2876 fi 2877done 2878done 2879 2880if test $ac_prog_rejected = yes; then 2881 # We found a bogon in the path, so make sure we never use it. 2882 set dummy $ac_cv_prog_CC 2883 shift 2884 if test $# != 0; then 2885 # We chose a different compiler from the bogus one. 2886 # However, it has the same basename, so the bogon will be chosen 2887 # first if we set CC to just the basename; use the full file name. 2888 shift 2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2890 fi 2891fi 2892fi 2893fi 2894CC=$ac_cv_prog_CC 2895if test -n "$CC"; then 2896 echo "$as_me:$LINENO: result: $CC" >&5 2897echo "${ECHO_T}$CC" >&6 2898else 2899 echo "$as_me:$LINENO: result: no" >&5 2900echo "${ECHO_T}no" >&6 2901fi 2902 2903fi 2904if test -z "$CC"; then 2905 if test -n "$ac_tool_prefix"; then 2906 for ac_prog in cl 2907 do 2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2909set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2910echo "$as_me:$LINENO: checking for $ac_word" >&5 2911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2912if test "${ac_cv_prog_CC+set}" = set; then 2913 echo $ECHO_N "(cached) $ECHO_C" >&6 2914else 2915 if test -n "$CC"; then 2916 ac_cv_prog_CC="$CC" # Let the user override the test. 2917else 2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2919for as_dir in $PATH 2920do 2921 IFS=$as_save_IFS 2922 test -z "$as_dir" && as_dir=. 2923 for ac_exec_ext in '' $ac_executable_extensions; do 2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2927 break 2 2928 fi 2929done 2930done 2931 2932fi 2933fi 2934CC=$ac_cv_prog_CC 2935if test -n "$CC"; then 2936 echo "$as_me:$LINENO: result: $CC" >&5 2937echo "${ECHO_T}$CC" >&6 2938else 2939 echo "$as_me:$LINENO: result: no" >&5 2940echo "${ECHO_T}no" >&6 2941fi 2942 2943 test -n "$CC" && break 2944 done 2945fi 2946if test -z "$CC"; then 2947 ac_ct_CC=$CC 2948 for ac_prog in cl 2949do 2950 # Extract the first word of "$ac_prog", so it can be a program name with args. 2951set dummy $ac_prog; ac_word=$2 2952echo "$as_me:$LINENO: checking for $ac_word" >&5 2953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2954if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2955 echo $ECHO_N "(cached) $ECHO_C" >&6 2956else 2957 if test -n "$ac_ct_CC"; then 2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2967 ac_cv_prog_ac_ct_CC="$ac_prog" 2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972done 2973 2974fi 2975fi 2976ac_ct_CC=$ac_cv_prog_ac_ct_CC 2977if test -n "$ac_ct_CC"; then 2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2979echo "${ECHO_T}$ac_ct_CC" >&6 2980else 2981 echo "$as_me:$LINENO: result: no" >&5 2982echo "${ECHO_T}no" >&6 2983fi 2984 2985 test -n "$ac_ct_CC" && break 2986done 2987 2988 CC=$ac_ct_CC 2989fi 2990 2991fi 2992 2993 2994test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2995See \`config.log' for more details." >&5 2996echo "$as_me: error: no acceptable C compiler found in \$PATH 2997See \`config.log' for more details." >&2;} 2998 { (exit 1); exit 1; }; } 2999 3000# Provide some information about the compiler. 3001echo "$as_me:$LINENO:" \ 3002 "checking for C compiler version" >&5 3003ac_compiler=`set X $ac_compile; echo $2` 3004{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3005 (eval $ac_compiler --version </dev/null >&5) 2>&5 3006 ac_status=$? 3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3008 (exit $ac_status); } 3009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3010 (eval $ac_compiler -v </dev/null >&5) 2>&5 3011 ac_status=$? 3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3013 (exit $ac_status); } 3014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3015 (eval $ac_compiler -V </dev/null >&5) 2>&5 3016 ac_status=$? 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } 3019 3020echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3021echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3022if test "${ac_cv_c_compiler_gnu+set}" = set; then 3023 echo $ECHO_N "(cached) $ECHO_C" >&6 3024else 3025 cat >conftest.$ac_ext <<_ACEOF 3026/* confdefs.h. */ 3027_ACEOF 3028cat confdefs.h >>conftest.$ac_ext 3029cat >>conftest.$ac_ext <<_ACEOF 3030/* end confdefs.h. */ 3031 3032int 3033main () 3034{ 3035#ifndef __GNUC__ 3036 choke me 3037#endif 3038 3039 ; 3040 return 0; 3041} 3042_ACEOF 3043rm -f conftest.$ac_objext 3044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3045 (eval $ac_compile) 2>conftest.er1 3046 ac_status=$? 3047 grep -v '^ *+' conftest.er1 >conftest.err 3048 rm -f conftest.er1 3049 cat conftest.err >&5 3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3051 (exit $ac_status); } && 3052 { ac_try='test -z "$ac_c_werror_flag" 3053 || test ! -s conftest.err' 3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3055 (eval $ac_try) 2>&5 3056 ac_status=$? 3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3058 (exit $ac_status); }; } && 3059 { ac_try='test -s conftest.$ac_objext' 3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3061 (eval $ac_try) 2>&5 3062 ac_status=$? 3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3064 (exit $ac_status); }; }; then 3065 ac_compiler_gnu=yes 3066else 3067 echo "$as_me: failed program was:" >&5 3068sed 's/^/| /' conftest.$ac_ext >&5 3069 3070ac_compiler_gnu=no 3071fi 3072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3073ac_cv_c_compiler_gnu=$ac_compiler_gnu 3074 3075fi 3076echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3077echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3078GCC=`test $ac_compiler_gnu = yes && echo yes` 3079ac_test_CFLAGS=${CFLAGS+set} 3080ac_save_CFLAGS=$CFLAGS 3081CFLAGS="-g" 3082echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3083echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3084if test "${ac_cv_prog_cc_g+set}" = set; then 3085 echo $ECHO_N "(cached) $ECHO_C" >&6 3086else 3087 cat >conftest.$ac_ext <<_ACEOF 3088/* confdefs.h. */ 3089_ACEOF 3090cat confdefs.h >>conftest.$ac_ext 3091cat >>conftest.$ac_ext <<_ACEOF 3092/* end confdefs.h. */ 3093 3094int 3095main () 3096{ 3097 3098 ; 3099 return 0; 3100} 3101_ACEOF 3102rm -f conftest.$ac_objext 3103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3104 (eval $ac_compile) 2>conftest.er1 3105 ac_status=$? 3106 grep -v '^ *+' conftest.er1 >conftest.err 3107 rm -f conftest.er1 3108 cat conftest.err >&5 3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3110 (exit $ac_status); } && 3111 { ac_try='test -z "$ac_c_werror_flag" 3112 || test ! -s conftest.err' 3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3114 (eval $ac_try) 2>&5 3115 ac_status=$? 3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3117 (exit $ac_status); }; } && 3118 { ac_try='test -s conftest.$ac_objext' 3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3120 (eval $ac_try) 2>&5 3121 ac_status=$? 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); }; }; then 3124 ac_cv_prog_cc_g=yes 3125else 3126 echo "$as_me: failed program was:" >&5 3127sed 's/^/| /' conftest.$ac_ext >&5 3128 3129ac_cv_prog_cc_g=no 3130fi 3131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3132fi 3133echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3134echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3135if test "$ac_test_CFLAGS" = set; then 3136 CFLAGS=$ac_save_CFLAGS 3137elif test $ac_cv_prog_cc_g = yes; then 3138 if test "$GCC" = yes; then 3139 CFLAGS="-g -O2" 3140 else 3141 CFLAGS="-g" 3142 fi 3143else 3144 if test "$GCC" = yes; then 3145 CFLAGS="-O2" 3146 else 3147 CFLAGS= 3148 fi 3149fi 3150echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3151echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3152if test "${ac_cv_prog_cc_stdc+set}" = set; then 3153 echo $ECHO_N "(cached) $ECHO_C" >&6 3154else 3155 ac_cv_prog_cc_stdc=no 3156ac_save_CC=$CC 3157cat >conftest.$ac_ext <<_ACEOF 3158/* confdefs.h. */ 3159_ACEOF 3160cat confdefs.h >>conftest.$ac_ext 3161cat >>conftest.$ac_ext <<_ACEOF 3162/* end confdefs.h. */ 3163#include <stdarg.h> 3164#include <stdio.h> 3165#include <sys/types.h> 3166#include <sys/stat.h> 3167/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3168struct buf { int x; }; 3169FILE * (*rcsopen) (struct buf *, struct stat *, int); 3170static char *e (p, i) 3171 char **p; 3172 int i; 3173{ 3174 return p[i]; 3175} 3176static char *f (char * (*g) (char **, int), char **p, ...) 3177{ 3178 char *s; 3179 va_list v; 3180 va_start (v,p); 3181 s = g (p, va_arg (v,int)); 3182 va_end (v); 3183 return s; 3184} 3185 3186/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3187 function prototypes and stuff, but not '\xHH' hex character constants. 3188 These don't provoke an error unfortunately, instead are silently treated 3189 as 'x'. The following induces an error, until -std1 is added to get 3190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3191 array size at least. It's necessary to write '\x00'==0 to get something 3192 that's true only with -std1. */ 3193int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3194 3195int test (int i, double x); 3196struct s1 {int (*f) (int a);}; 3197struct s2 {int (*f) (double a);}; 3198int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3199int argc; 3200char **argv; 3201int 3202main () 3203{ 3204return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3205 ; 3206 return 0; 3207} 3208_ACEOF 3209# Don't try gcc -ansi; that turns off useful extensions and 3210# breaks some systems' header files. 3211# AIX -qlanglvl=ansi 3212# Ultrix and OSF/1 -std1 3213# HP-UX 10.20 and later -Ae 3214# HP-UX older versions -Aa -D_HPUX_SOURCE 3215# SVR4 -Xc -D__EXTENSIONS__ 3216for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3217do 3218 CC="$ac_save_CC $ac_arg" 3219 rm -f conftest.$ac_objext 3220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3221 (eval $ac_compile) 2>conftest.er1 3222 ac_status=$? 3223 grep -v '^ *+' conftest.er1 >conftest.err 3224 rm -f conftest.er1 3225 cat conftest.err >&5 3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3227 (exit $ac_status); } && 3228 { ac_try='test -z "$ac_c_werror_flag" 3229 || test ! -s conftest.err' 3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3231 (eval $ac_try) 2>&5 3232 ac_status=$? 3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 (exit $ac_status); }; } && 3235 { ac_try='test -s conftest.$ac_objext' 3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3237 (eval $ac_try) 2>&5 3238 ac_status=$? 3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3240 (exit $ac_status); }; }; then 3241 ac_cv_prog_cc_stdc=$ac_arg 3242break 3243else 3244 echo "$as_me: failed program was:" >&5 3245sed 's/^/| /' conftest.$ac_ext >&5 3246 3247fi 3248rm -f conftest.err conftest.$ac_objext 3249done 3250rm -f conftest.$ac_ext conftest.$ac_objext 3251CC=$ac_save_CC 3252 3253fi 3254 3255case "x$ac_cv_prog_cc_stdc" in 3256 x|xno) 3257 echo "$as_me:$LINENO: result: none needed" >&5 3258echo "${ECHO_T}none needed" >&6 ;; 3259 *) 3260 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3261echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3262 CC="$CC $ac_cv_prog_cc_stdc" ;; 3263esac 3264 3265# Some people use a C++ compiler to compile C. Since we use `exit', 3266# in C++ we need to declare it. In case someone uses the same compiler 3267# for both compiling C and C++ we need to have the C++ compiler decide 3268# the declaration of exit, since it's the most demanding environment. 3269cat >conftest.$ac_ext <<_ACEOF 3270#ifndef __cplusplus 3271 choke me 3272#endif 3273_ACEOF 3274rm -f conftest.$ac_objext 3275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3276 (eval $ac_compile) 2>conftest.er1 3277 ac_status=$? 3278 grep -v '^ *+' conftest.er1 >conftest.err 3279 rm -f conftest.er1 3280 cat conftest.err >&5 3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3282 (exit $ac_status); } && 3283 { ac_try='test -z "$ac_c_werror_flag" 3284 || test ! -s conftest.err' 3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3286 (eval $ac_try) 2>&5 3287 ac_status=$? 3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3289 (exit $ac_status); }; } && 3290 { ac_try='test -s conftest.$ac_objext' 3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3292 (eval $ac_try) 2>&5 3293 ac_status=$? 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); }; }; then 3296 for ac_declaration in \ 3297 '' \ 3298 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3299 'extern "C" void std::exit (int); using std::exit;' \ 3300 'extern "C" void exit (int) throw ();' \ 3301 'extern "C" void exit (int);' \ 3302 'void exit (int);' 3303do 3304 cat >conftest.$ac_ext <<_ACEOF 3305/* confdefs.h. */ 3306_ACEOF 3307cat confdefs.h >>conftest.$ac_ext 3308cat >>conftest.$ac_ext <<_ACEOF 3309/* end confdefs.h. */ 3310$ac_declaration 3311#include <stdlib.h> 3312int 3313main () 3314{ 3315exit (42); 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320rm -f conftest.$ac_objext 3321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3322 (eval $ac_compile) 2>conftest.er1 3323 ac_status=$? 3324 grep -v '^ *+' conftest.er1 >conftest.err 3325 rm -f conftest.er1 3326 cat conftest.err >&5 3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3328 (exit $ac_status); } && 3329 { ac_try='test -z "$ac_c_werror_flag" 3330 || test ! -s conftest.err' 3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3332 (eval $ac_try) 2>&5 3333 ac_status=$? 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); }; } && 3336 { ac_try='test -s conftest.$ac_objext' 3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3338 (eval $ac_try) 2>&5 3339 ac_status=$? 3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3341 (exit $ac_status); }; }; then 3342 : 3343else 3344 echo "$as_me: failed program was:" >&5 3345sed 's/^/| /' conftest.$ac_ext >&5 3346 3347continue 3348fi 3349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3350 cat >conftest.$ac_ext <<_ACEOF 3351/* confdefs.h. */ 3352_ACEOF 3353cat confdefs.h >>conftest.$ac_ext 3354cat >>conftest.$ac_ext <<_ACEOF 3355/* end confdefs.h. */ 3356$ac_declaration 3357int 3358main () 3359{ 3360exit (42); 3361 ; 3362 return 0; 3363} 3364_ACEOF 3365rm -f conftest.$ac_objext 3366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3367 (eval $ac_compile) 2>conftest.er1 3368 ac_status=$? 3369 grep -v '^ *+' conftest.er1 >conftest.err 3370 rm -f conftest.er1 3371 cat conftest.err >&5 3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3373 (exit $ac_status); } && 3374 { ac_try='test -z "$ac_c_werror_flag" 3375 || test ! -s conftest.err' 3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3377 (eval $ac_try) 2>&5 3378 ac_status=$? 3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3380 (exit $ac_status); }; } && 3381 { ac_try='test -s conftest.$ac_objext' 3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3383 (eval $ac_try) 2>&5 3384 ac_status=$? 3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3386 (exit $ac_status); }; }; then 3387 break 3388else 3389 echo "$as_me: failed program was:" >&5 3390sed 's/^/| /' conftest.$ac_ext >&5 3391 3392fi 3393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3394done 3395rm -f conftest* 3396if test -n "$ac_declaration"; then 3397 echo '#ifdef __cplusplus' >>confdefs.h 3398 echo $ac_declaration >>confdefs.h 3399 echo '#endif' >>confdefs.h 3400fi 3401 3402else 3403 echo "$as_me: failed program was:" >&5 3404sed 's/^/| /' conftest.$ac_ext >&5 3405 3406fi 3407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3408ac_ext=c 3409ac_cpp='$CPP $CPPFLAGS' 3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3412ac_compiler_gnu=$ac_cv_c_compiler_gnu 3413 3414depcc="$CC" am_compiler_list= 3415 3416echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3417echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3418if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3419 echo $ECHO_N "(cached) $ECHO_C" >&6 3420else 3421 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3422 # We make a subdir and do the tests there. Otherwise we can end up 3423 # making bogus files that we don't know about and never remove. For 3424 # instance it was reported that on HP-UX the gcc test will end up 3425 # making a dummy file named `D' -- because `-MD' means `put the output 3426 # in D'. 3427 mkdir conftest.dir 3428 # Copy depcomp to subdir because otherwise we won't find it if we're 3429 # using a relative directory. 3430 cp "$am_depcomp" conftest.dir 3431 cd conftest.dir 3432 # We will build objects and dependencies in a subdirectory because 3433 # it helps to detect inapplicable dependency modes. For instance 3434 # both Tru64's cc and ICC support -MD to output dependencies as a 3435 # side effect of compilation, but ICC will put the dependencies in 3436 # the current directory while Tru64 will put them in the object 3437 # directory. 3438 mkdir sub 3439 3440 am_cv_CC_dependencies_compiler_type=none 3441 if test "$am_compiler_list" = ""; then 3442 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3443 fi 3444 for depmode in $am_compiler_list; do 3445 # Setup a source with many dependencies, because some compilers 3446 # like to wrap large dependency lists on column 80 (with \), and 3447 # we should not choose a depcomp mode which is confused by this. 3448 # 3449 # We need to recreate these files for each test, as the compiler may 3450 # overwrite some of them when testing with obscure command lines. 3451 # This happens at least with the AIX C compiler. 3452 : > sub/conftest.c 3453 for i in 1 2 3 4 5 6; do 3454 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3455 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3456 # Solaris 8's {/usr,}/bin/sh. 3457 touch sub/conftst$i.h 3458 done 3459 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3460 3461 case $depmode in 3462 nosideeffect) 3463 # after this tag, mechanisms are not by side-effect, so they'll 3464 # only be used when explicitly requested 3465 if test "x$enable_dependency_tracking" = xyes; then 3466 continue 3467 else 3468 break 3469 fi 3470 ;; 3471 none) break ;; 3472 esac 3473 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3474 # mode. It turns out that the SunPro C++ compiler does not properly 3475 # handle `-M -o', and we need to detect this. 3476 if depmode=$depmode \ 3477 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3479 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3480 >/dev/null 2>conftest.err && 3481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3482 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3484 # icc doesn't choke on unknown options, it will just issue warnings 3485 # or remarks (even with -Werror). So we grep stderr for any message 3486 # that says an option was ignored or not supported. 3487 # When given -MP, icc 7.0 and 7.1 complain thusly: 3488 # icc: Command line warning: ignoring option '-M'; no argument required 3489 # The diagnosis changed in icc 8.0: 3490 # icc: Command line remark: option '-MP' not supported 3491 if (grep 'ignoring option' conftest.err || 3492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3493 am_cv_CC_dependencies_compiler_type=$depmode 3494 break 3495 fi 3496 fi 3497 done 3498 3499 cd .. 3500 rm -rf conftest.dir 3501else 3502 am_cv_CC_dependencies_compiler_type=none 3503fi 3504 3505fi 3506echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3507echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3508CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3509 3510 3511 3512if 3513 test "x$enable_dependency_tracking" != xno \ 3514 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3515 am__fastdepCC_TRUE= 3516 am__fastdepCC_FALSE='#' 3517else 3518 am__fastdepCC_TRUE='#' 3519 am__fastdepCC_FALSE= 3520fi 3521 3522 3523ac_ext=c 3524ac_cpp='$CPP $CPPFLAGS' 3525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3527ac_compiler_gnu=$ac_cv_c_compiler_gnu 3528echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3529echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3530# On Suns, sometimes $CPP names a directory. 3531if test -n "$CPP" && test -d "$CPP"; then 3532 CPP= 3533fi 3534if test -z "$CPP"; then 3535 if test "${ac_cv_prog_CPP+set}" = set; then 3536 echo $ECHO_N "(cached) $ECHO_C" >&6 3537else 3538 # Double quotes because CPP needs to be expanded 3539 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3540 do 3541 ac_preproc_ok=false 3542for ac_c_preproc_warn_flag in '' yes 3543do 3544 # Use a header file that comes with gcc, so configuring glibc 3545 # with a fresh cross-compiler works. 3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3547 # <limits.h> exists even on freestanding compilers. 3548 # On the NeXT, cc -E runs the code through the compiler's parser, 3549 # not just through cpp. "Syntax error" is here to catch this case. 3550 cat >conftest.$ac_ext <<_ACEOF 3551/* confdefs.h. */ 3552_ACEOF 3553cat confdefs.h >>conftest.$ac_ext 3554cat >>conftest.$ac_ext <<_ACEOF 3555/* end confdefs.h. */ 3556#ifdef __STDC__ 3557# include <limits.h> 3558#else 3559# include <assert.h> 3560#endif 3561 Syntax error 3562_ACEOF 3563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3565 ac_status=$? 3566 grep -v '^ *+' conftest.er1 >conftest.err 3567 rm -f conftest.er1 3568 cat conftest.err >&5 3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3570 (exit $ac_status); } >/dev/null; then 3571 if test -s conftest.err; then 3572 ac_cpp_err=$ac_c_preproc_warn_flag 3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3574 else 3575 ac_cpp_err= 3576 fi 3577else 3578 ac_cpp_err=yes 3579fi 3580if test -z "$ac_cpp_err"; then 3581 : 3582else 3583 echo "$as_me: failed program was:" >&5 3584sed 's/^/| /' conftest.$ac_ext >&5 3585 3586 # Broken: fails on valid input. 3587continue 3588fi 3589rm -f conftest.err conftest.$ac_ext 3590 3591 # OK, works on sane cases. Now check whether non-existent headers 3592 # can be detected and how. 3593 cat >conftest.$ac_ext <<_ACEOF 3594/* confdefs.h. */ 3595_ACEOF 3596cat confdefs.h >>conftest.$ac_ext 3597cat >>conftest.$ac_ext <<_ACEOF 3598/* end confdefs.h. */ 3599#include <ac_nonexistent.h> 3600_ACEOF 3601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3603 ac_status=$? 3604 grep -v '^ *+' conftest.er1 >conftest.err 3605 rm -f conftest.er1 3606 cat conftest.err >&5 3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 (exit $ac_status); } >/dev/null; then 3609 if test -s conftest.err; then 3610 ac_cpp_err=$ac_c_preproc_warn_flag 3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3612 else 3613 ac_cpp_err= 3614 fi 3615else 3616 ac_cpp_err=yes 3617fi 3618if test -z "$ac_cpp_err"; then 3619 # Broken: success on invalid input. 3620continue 3621else 3622 echo "$as_me: failed program was:" >&5 3623sed 's/^/| /' conftest.$ac_ext >&5 3624 3625 # Passes both tests. 3626ac_preproc_ok=: 3627break 3628fi 3629rm -f conftest.err conftest.$ac_ext 3630 3631done 3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3633rm -f conftest.err conftest.$ac_ext 3634if $ac_preproc_ok; then 3635 break 3636fi 3637 3638 done 3639 ac_cv_prog_CPP=$CPP 3640 3641fi 3642 CPP=$ac_cv_prog_CPP 3643else 3644 ac_cv_prog_CPP=$CPP 3645fi 3646echo "$as_me:$LINENO: result: $CPP" >&5 3647echo "${ECHO_T}$CPP" >&6 3648ac_preproc_ok=false 3649for ac_c_preproc_warn_flag in '' yes 3650do 3651 # Use a header file that comes with gcc, so configuring glibc 3652 # with a fresh cross-compiler works. 3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3654 # <limits.h> exists even on freestanding compilers. 3655 # On the NeXT, cc -E runs the code through the compiler's parser, 3656 # not just through cpp. "Syntax error" is here to catch this case. 3657 cat >conftest.$ac_ext <<_ACEOF 3658/* confdefs.h. */ 3659_ACEOF 3660cat confdefs.h >>conftest.$ac_ext 3661cat >>conftest.$ac_ext <<_ACEOF 3662/* end confdefs.h. */ 3663#ifdef __STDC__ 3664# include <limits.h> 3665#else 3666# include <assert.h> 3667#endif 3668 Syntax error 3669_ACEOF 3670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3672 ac_status=$? 3673 grep -v '^ *+' conftest.er1 >conftest.err 3674 rm -f conftest.er1 3675 cat conftest.err >&5 3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3677 (exit $ac_status); } >/dev/null; then 3678 if test -s conftest.err; then 3679 ac_cpp_err=$ac_c_preproc_warn_flag 3680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3681 else 3682 ac_cpp_err= 3683 fi 3684else 3685 ac_cpp_err=yes 3686fi 3687if test -z "$ac_cpp_err"; then 3688 : 3689else 3690 echo "$as_me: failed program was:" >&5 3691sed 's/^/| /' conftest.$ac_ext >&5 3692 3693 # Broken: fails on valid input. 3694continue 3695fi 3696rm -f conftest.err conftest.$ac_ext 3697 3698 # OK, works on sane cases. Now check whether non-existent headers 3699 # can be detected and how. 3700 cat >conftest.$ac_ext <<_ACEOF 3701/* confdefs.h. */ 3702_ACEOF 3703cat confdefs.h >>conftest.$ac_ext 3704cat >>conftest.$ac_ext <<_ACEOF 3705/* end confdefs.h. */ 3706#include <ac_nonexistent.h> 3707_ACEOF 3708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3710 ac_status=$? 3711 grep -v '^ *+' conftest.er1 >conftest.err 3712 rm -f conftest.er1 3713 cat conftest.err >&5 3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3715 (exit $ac_status); } >/dev/null; then 3716 if test -s conftest.err; then 3717 ac_cpp_err=$ac_c_preproc_warn_flag 3718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3719 else 3720 ac_cpp_err= 3721 fi 3722else 3723 ac_cpp_err=yes 3724fi 3725if test -z "$ac_cpp_err"; then 3726 # Broken: success on invalid input. 3727continue 3728else 3729 echo "$as_me: failed program was:" >&5 3730sed 's/^/| /' conftest.$ac_ext >&5 3731 3732 # Passes both tests. 3733ac_preproc_ok=: 3734break 3735fi 3736rm -f conftest.err conftest.$ac_ext 3737 3738done 3739# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3740rm -f conftest.err conftest.$ac_ext 3741if $ac_preproc_ok; then 3742 : 3743else 3744 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3745See \`config.log' for more details." >&5 3746echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3747See \`config.log' for more details." >&2;} 3748 { (exit 1); exit 1; }; } 3749fi 3750 3751ac_ext=c 3752ac_cpp='$CPP $CPPFLAGS' 3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3755ac_compiler_gnu=$ac_cv_c_compiler_gnu 3756 3757# Find a good install program. We prefer a C program (faster), 3758# so one script is as good as another. But avoid the broken or 3759# incompatible versions: 3760# SysV /etc/install, /usr/sbin/install 3761# SunOS /usr/etc/install 3762# IRIX /sbin/install 3763# AIX /bin/install 3764# AmigaOS /C/install, which installs bootblocks on floppy discs 3765# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3766# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3767# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3768# OS/2's system install, which has a completely different semantic 3769# ./install, which can be erroneously created by make from ./install.sh. 3770echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3771echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3772if test -z "$INSTALL"; then 3773if test "${ac_cv_path_install+set}" = set; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775else 3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777for as_dir in $PATH 3778do 3779 IFS=$as_save_IFS 3780 test -z "$as_dir" && as_dir=. 3781 # Account for people who put trailing slashes in PATH elements. 3782case $as_dir/ in 3783 ./ | .// | /cC/* | \ 3784 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3785 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3786 /usr/ucb/* ) ;; 3787 *) 3788 # OSF1 and SCO ODT 3.0 have their own names for install. 3789 # Don't use installbsd from OSF since it installs stuff as root 3790 # by default. 3791 for ac_prog in ginstall scoinst install; do 3792 for ac_exec_ext in '' $ac_executable_extensions; do 3793 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3794 if test $ac_prog = install && 3795 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3796 # AIX install. It has an incompatible calling convention. 3797 : 3798 elif test $ac_prog = install && 3799 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3800 # program-specific install script used by HP pwplus--don't use. 3801 : 3802 else 3803 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3804 break 3 3805 fi 3806 fi 3807 done 3808 done 3809 ;; 3810esac 3811done 3812 3813 3814fi 3815 if test "${ac_cv_path_install+set}" = set; then 3816 INSTALL=$ac_cv_path_install 3817 else 3818 # As a last resort, use the slow shell script. We don't cache a 3819 # path for INSTALL within a source directory, because that will 3820 # break other packages using the cache if that directory is 3821 # removed, or if the path is relative. 3822 INSTALL=$ac_install_sh 3823 fi 3824fi 3825echo "$as_me:$LINENO: result: $INSTALL" >&5 3826echo "${ECHO_T}$INSTALL" >&6 3827 3828# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3829# It thinks the first close brace ends the variable substitution. 3830test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3831 3832test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3833 3834test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3835 3836echo "$as_me:$LINENO: checking whether ln -s works" >&5 3837echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3838LN_S=$as_ln_s 3839if test "$LN_S" = "ln -s"; then 3840 echo "$as_me:$LINENO: result: yes" >&5 3841echo "${ECHO_T}yes" >&6 3842else 3843 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3844echo "${ECHO_T}no, using $LN_S" >&6 3845fi 3846 3847echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3848echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3849set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3850if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3851 echo $ECHO_N "(cached) $ECHO_C" >&6 3852else 3853 cat >conftest.make <<\_ACEOF 3854all: 3855 @echo 'ac_maketemp="$(MAKE)"' 3856_ACEOF 3857# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3858eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3859if test -n "$ac_maketemp"; then 3860 eval ac_cv_prog_make_${ac_make}_set=yes 3861else 3862 eval ac_cv_prog_make_${ac_make}_set=no 3863fi 3864rm -f conftest.make 3865fi 3866if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3867 echo "$as_me:$LINENO: result: yes" >&5 3868echo "${ECHO_T}yes" >&6 3869 SET_MAKE= 3870else 3871 echo "$as_me:$LINENO: result: no" >&5 3872echo "${ECHO_T}no" >&6 3873 SET_MAKE="MAKE=${MAKE-make}" 3874fi 3875 3876# Check whether --enable-shared or --disable-shared was given. 3877if test "${enable_shared+set}" = set; then 3878 enableval="$enable_shared" 3879 p=${PACKAGE-default} 3880 case $enableval in 3881 yes) enable_shared=yes ;; 3882 no) enable_shared=no ;; 3883 *) 3884 enable_shared=no 3885 # Look at the argument we got. We use all the common list separators. 3886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3887 for pkg in $enableval; do 3888 IFS="$lt_save_ifs" 3889 if test "X$pkg" = "X$p"; then 3890 enable_shared=yes 3891 fi 3892 done 3893 IFS="$lt_save_ifs" 3894 ;; 3895 esac 3896else 3897 enable_shared=yes 3898fi; 3899 3900# Check whether --enable-static or --disable-static was given. 3901if test "${enable_static+set}" = set; then 3902 enableval="$enable_static" 3903 p=${PACKAGE-default} 3904 case $enableval in 3905 yes) enable_static=yes ;; 3906 no) enable_static=no ;; 3907 *) 3908 enable_static=no 3909 # Look at the argument we got. We use all the common list separators. 3910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3911 for pkg in $enableval; do 3912 IFS="$lt_save_ifs" 3913 if test "X$pkg" = "X$p"; then 3914 enable_static=yes 3915 fi 3916 done 3917 IFS="$lt_save_ifs" 3918 ;; 3919 esac 3920else 3921 enable_static=yes 3922fi; 3923 3924# Check whether --enable-fast-install or --disable-fast-install was given. 3925if test "${enable_fast_install+set}" = set; then 3926 enableval="$enable_fast_install" 3927 p=${PACKAGE-default} 3928 case $enableval in 3929 yes) enable_fast_install=yes ;; 3930 no) enable_fast_install=no ;; 3931 *) 3932 enable_fast_install=no 3933 # Look at the argument we got. We use all the common list separators. 3934 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3935 for pkg in $enableval; do 3936 IFS="$lt_save_ifs" 3937 if test "X$pkg" = "X$p"; then 3938 enable_fast_install=yes 3939 fi 3940 done 3941 IFS="$lt_save_ifs" 3942 ;; 3943 esac 3944else 3945 enable_fast_install=yes 3946fi; 3947 3948# Make sure we can run config.sub. 3949$ac_config_sub sun4 >/dev/null 2>&1 || 3950 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3951echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3952 { (exit 1); exit 1; }; } 3953 3954echo "$as_me:$LINENO: checking build system type" >&5 3955echo $ECHO_N "checking build system type... $ECHO_C" >&6 3956if test "${ac_cv_build+set}" = set; then 3957 echo $ECHO_N "(cached) $ECHO_C" >&6 3958else 3959 ac_cv_build_alias=$build_alias 3960test -z "$ac_cv_build_alias" && 3961 ac_cv_build_alias=`$ac_config_guess` 3962test -z "$ac_cv_build_alias" && 3963 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3964echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3965 { (exit 1); exit 1; }; } 3966ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3967 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3968echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3969 { (exit 1); exit 1; }; } 3970 3971fi 3972echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3973echo "${ECHO_T}$ac_cv_build" >&6 3974build=$ac_cv_build 3975build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3976build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3977build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3978 3979 3980echo "$as_me:$LINENO: checking host system type" >&5 3981echo $ECHO_N "checking host system type... $ECHO_C" >&6 3982if test "${ac_cv_host+set}" = set; then 3983 echo $ECHO_N "(cached) $ECHO_C" >&6 3984else 3985 ac_cv_host_alias=$host_alias 3986test -z "$ac_cv_host_alias" && 3987 ac_cv_host_alias=$ac_cv_build_alias 3988ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3989 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3990echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3991 { (exit 1); exit 1; }; } 3992 3993fi 3994echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3995echo "${ECHO_T}$ac_cv_host" >&6 3996host=$ac_cv_host 3997host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3998host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3999host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4000 4001 4002echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4003echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4004if test "${lt_cv_path_SED+set}" = set; then 4005 echo $ECHO_N "(cached) $ECHO_C" >&6 4006else 4007 # Loop through the user's path and test for sed and gsed. 4008# Then use that list of sed's as ones to test for truncation. 4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4010for as_dir in $PATH 4011do 4012 IFS=$as_save_IFS 4013 test -z "$as_dir" && as_dir=. 4014 for lt_ac_prog in sed gsed; do 4015 for ac_exec_ext in '' $ac_executable_extensions; do 4016 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4017 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4018 fi 4019 done 4020 done 4021done 4022lt_ac_max=0 4023lt_ac_count=0 4024# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4025# along with /bin/sed that truncates output. 4026for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4027 test ! -f $lt_ac_sed && continue 4028 cat /dev/null > conftest.in 4029 lt_ac_count=0 4030 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4031 # Check for GNU sed and select it if it is found. 4032 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4033 lt_cv_path_SED=$lt_ac_sed 4034 break 4035 fi 4036 while true; do 4037 cat conftest.in conftest.in >conftest.tmp 4038 mv conftest.tmp conftest.in 4039 cp conftest.in conftest.nl 4040 echo >>conftest.nl 4041 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4042 cmp -s conftest.out conftest.nl || break 4043 # 10000 chars as input seems more than enough 4044 test $lt_ac_count -gt 10 && break 4045 lt_ac_count=`expr $lt_ac_count + 1` 4046 if test $lt_ac_count -gt $lt_ac_max; then 4047 lt_ac_max=$lt_ac_count 4048 lt_cv_path_SED=$lt_ac_sed 4049 fi 4050 done 4051done 4052 4053fi 4054 4055SED=$lt_cv_path_SED 4056echo "$as_me:$LINENO: result: $SED" >&5 4057echo "${ECHO_T}$SED" >&6 4058 4059echo "$as_me:$LINENO: checking for egrep" >&5 4060echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4061if test "${ac_cv_prog_egrep+set}" = set; then 4062 echo $ECHO_N "(cached) $ECHO_C" >&6 4063else 4064 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4065 then ac_cv_prog_egrep='grep -E' 4066 else ac_cv_prog_egrep='egrep' 4067 fi 4068fi 4069echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4070echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4071 EGREP=$ac_cv_prog_egrep 4072 4073 4074 4075# Check whether --with-gnu-ld or --without-gnu-ld was given. 4076if test "${with_gnu_ld+set}" = set; then 4077 withval="$with_gnu_ld" 4078 test "$withval" = no || with_gnu_ld=yes 4079else 4080 with_gnu_ld=no 4081fi; 4082ac_prog=ld 4083if test "$GCC" = yes; then 4084 # Check if gcc -print-prog-name=ld gives a path. 4085 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4086echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4087 case $host in 4088 *-*-mingw*) 4089 # gcc leaves a trailing carriage return which upsets mingw 4090 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4091 *) 4092 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4093 esac 4094 case $ac_prog in 4095 # Accept absolute paths. 4096 [\\/]* | ?:[\\/]*) 4097 re_direlt='/[^/][^/]*/\.\./' 4098 # Canonicalize the pathname of ld 4099 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4100 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4101 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4102 done 4103 test -z "$LD" && LD="$ac_prog" 4104 ;; 4105 "") 4106 # If it fails, then pretend we aren't using GCC. 4107 ac_prog=ld 4108 ;; 4109 *) 4110 # If it is relative, then search for the first ld in PATH. 4111 with_gnu_ld=unknown 4112 ;; 4113 esac 4114elif test "$with_gnu_ld" = yes; then 4115 echo "$as_me:$LINENO: checking for GNU ld" >&5 4116echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4117else 4118 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4119echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4120fi 4121if test "${lt_cv_path_LD+set}" = set; then 4122 echo $ECHO_N "(cached) $ECHO_C" >&6 4123else 4124 if test -z "$LD"; then 4125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4126 for ac_dir in $PATH; do 4127 IFS="$lt_save_ifs" 4128 test -z "$ac_dir" && ac_dir=. 4129 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4130 lt_cv_path_LD="$ac_dir/$ac_prog" 4131 # Check to see if the program is GNU ld. I'd rather use --version, 4132 # but apparently some GNU ld's only accept -v. 4133 # Break only if it was the GNU/non-GNU ld that we prefer. 4134 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4135 *GNU* | *'with BFD'*) 4136 test "$with_gnu_ld" != no && break 4137 ;; 4138 *) 4139 test "$with_gnu_ld" != yes && break 4140 ;; 4141 esac 4142 fi 4143 done 4144 IFS="$lt_save_ifs" 4145else 4146 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4147fi 4148fi 4149 4150LD="$lt_cv_path_LD" 4151if test -n "$LD"; then 4152 echo "$as_me:$LINENO: result: $LD" >&5 4153echo "${ECHO_T}$LD" >&6 4154else 4155 echo "$as_me:$LINENO: result: no" >&5 4156echo "${ECHO_T}no" >&6 4157fi 4158test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4159echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4160 { (exit 1); exit 1; }; } 4161echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4162echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4163if test "${lt_cv_prog_gnu_ld+set}" = set; then 4164 echo $ECHO_N "(cached) $ECHO_C" >&6 4165else 4166 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4167case `$LD -v 2>&1 </dev/null` in 4168*GNU* | *'with BFD'*) 4169 lt_cv_prog_gnu_ld=yes 4170 ;; 4171*) 4172 lt_cv_prog_gnu_ld=no 4173 ;; 4174esac 4175fi 4176echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4177echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4178with_gnu_ld=$lt_cv_prog_gnu_ld 4179 4180 4181echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4182echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4183if test "${lt_cv_ld_reload_flag+set}" = set; then 4184 echo $ECHO_N "(cached) $ECHO_C" >&6 4185else 4186 lt_cv_ld_reload_flag='-r' 4187fi 4188echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4189echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4190reload_flag=$lt_cv_ld_reload_flag 4191case $reload_flag in 4192"" | " "*) ;; 4193*) reload_flag=" $reload_flag" ;; 4194esac 4195reload_cmds='$LD$reload_flag -o $output$reload_objs' 4196case $host_os in 4197 darwin*) 4198 if test "$GCC" = yes; then 4199 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 4200 else 4201 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4202 fi 4203 ;; 4204esac 4205 4206echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4207echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4208if test "${lt_cv_path_NM+set}" = set; then 4209 echo $ECHO_N "(cached) $ECHO_C" >&6 4210else 4211 if test -n "$NM"; then 4212 # Let the user override the test. 4213 lt_cv_path_NM="$NM" 4214else 4215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4216 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4217 IFS="$lt_save_ifs" 4218 test -z "$ac_dir" && ac_dir=. 4219 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 4220 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4221 # Check to see if the nm accepts a BSD-compat flag. 4222 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4223 # nm: unknown option "B" ignored 4224 # Tru64's nm complains that /dev/null is an invalid object file 4225 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4226 */dev/null* | *'Invalid file or object type'*) 4227 lt_cv_path_NM="$tmp_nm -B" 4228 break 4229 ;; 4230 *) 4231 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4232 */dev/null*) 4233 lt_cv_path_NM="$tmp_nm -p" 4234 break 4235 ;; 4236 *) 4237 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4238 continue # so that we can try to find one that supports BSD flags 4239 ;; 4240 esac 4241 esac 4242 fi 4243 done 4244 IFS="$lt_save_ifs" 4245 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4246fi 4247fi 4248echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4249echo "${ECHO_T}$lt_cv_path_NM" >&6 4250NM="$lt_cv_path_NM" 4251 4252echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4253echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4254if test "${lt_cv_deplibs_check_method+set}" = set; then 4255 echo $ECHO_N "(cached) $ECHO_C" >&6 4256else 4257 lt_cv_file_magic_cmd='$MAGIC_CMD' 4258lt_cv_file_magic_test_file= 4259lt_cv_deplibs_check_method='unknown' 4260# Need to set the preceding variable on all platforms that support 4261# interlibrary dependencies. 4262# 'none' -- dependencies not supported. 4263# `unknown' -- same as none, but documents that we really don't know. 4264# 'pass_all' -- all dependencies passed with no checks. 4265# 'test_compile' -- check by making test program. 4266# 'file_magic [[regex]]' -- check by looking for files in library path 4267# which responds to the $file_magic_cmd with a given extended regex. 4268# If you have `file' or equivalent on your system and you're not sure 4269# whether `pass_all' will *always* work, you probably want this one. 4270 4271case $host_os in 4272aix4* | aix5*) 4273 lt_cv_deplibs_check_method=pass_all 4274 ;; 4275 4276beos*) 4277 lt_cv_deplibs_check_method=pass_all 4278 ;; 4279 4280bsdi[45]*) 4281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4282 lt_cv_file_magic_cmd='/usr/bin/file -L' 4283 lt_cv_file_magic_test_file=/shlib/libc.so 4284 ;; 4285 4286cygwin*) 4287 # func_win32_libid is a shell function defined in ltmain.sh 4288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4289 lt_cv_file_magic_cmd='func_win32_libid' 4290 ;; 4291 4292mingw* | pw32*) 4293 # Base MSYS/MinGW do not provide the 'file' command needed by 4294 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4295 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4296 lt_cv_file_magic_cmd='$OBJDUMP -f' 4297 ;; 4298 4299darwin* | rhapsody*) 4300 lt_cv_deplibs_check_method=pass_all 4301 ;; 4302 4303freebsd* | kfreebsd*-gnu | dragonfly*) 4304 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4305 case $host_cpu in 4306 i*86 ) 4307 # Not sure whether the presence of OpenBSD here was a mistake. 4308 # Let's accept both of them until this is cleared up. 4309 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4310 lt_cv_file_magic_cmd=/usr/bin/file 4311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4312 ;; 4313 esac 4314 else 4315 lt_cv_deplibs_check_method=pass_all 4316 fi 4317 ;; 4318 4319gnu*) 4320 lt_cv_deplibs_check_method=pass_all 4321 ;; 4322 4323hpux10.20* | hpux11*) 4324 lt_cv_file_magic_cmd=/usr/bin/file 4325 case "$host_cpu" in 4326 ia64*) 4327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4329 ;; 4330 hppa*64*) 4331 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]' 4332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4333 ;; 4334 *) 4335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4336 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4337 ;; 4338 esac 4339 ;; 4340 4341irix5* | irix6* | nonstopux*) 4342 case $LD in 4343 *-32|*"-32 ") libmagic=32-bit;; 4344 *-n32|*"-n32 ") libmagic=N32;; 4345 *-64|*"-64 ") libmagic=64-bit;; 4346 *) libmagic=never-match;; 4347 esac 4348 lt_cv_deplibs_check_method=pass_all 4349 ;; 4350 4351# This must be Linux ELF. 4352linux*) 4353 lt_cv_deplibs_check_method=pass_all 4354 ;; 4355 4356netbsd*) 4357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4359 else 4360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4361 fi 4362 ;; 4363 4364newos6*) 4365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4366 lt_cv_file_magic_cmd=/usr/bin/file 4367 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4368 ;; 4369 4370nto-qnx*) 4371 lt_cv_deplibs_check_method=unknown 4372 ;; 4373 4374openbsd*) 4375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4377 else 4378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4379 fi 4380 ;; 4381 4382osf3* | osf4* | osf5*) 4383 lt_cv_deplibs_check_method=pass_all 4384 ;; 4385 4386sco3.2v5*) 4387 lt_cv_deplibs_check_method=pass_all 4388 ;; 4389 4390solaris*) 4391 lt_cv_deplibs_check_method=pass_all 4392 ;; 4393 4394sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4395 case $host_vendor in 4396 motorola) 4397 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]' 4398 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4399 ;; 4400 ncr) 4401 lt_cv_deplibs_check_method=pass_all 4402 ;; 4403 sequent) 4404 lt_cv_file_magic_cmd='/bin/file' 4405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4406 ;; 4407 sni) 4408 lt_cv_file_magic_cmd='/bin/file' 4409 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4410 lt_cv_file_magic_test_file=/lib/libc.so 4411 ;; 4412 siemens) 4413 lt_cv_deplibs_check_method=pass_all 4414 ;; 4415 esac 4416 ;; 4417 4418sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4419 lt_cv_deplibs_check_method=pass_all 4420 ;; 4421esac 4422 4423fi 4424echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4425echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4426file_magic_cmd=$lt_cv_file_magic_cmd 4427deplibs_check_method=$lt_cv_deplibs_check_method 4428test -z "$deplibs_check_method" && deplibs_check_method=unknown 4429 4430 4431 4432 4433# If no C compiler was specified, use CC. 4434LTCC=${LTCC-"$CC"} 4435 4436# Allow CC to be a program name with arguments. 4437compiler=$CC 4438 4439 4440# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4441if test "${enable_libtool_lock+set}" = set; then 4442 enableval="$enable_libtool_lock" 4443 4444fi; 4445test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4446 4447# Some flags need to be propagated to the compiler or linker for good 4448# libtool support. 4449case $host in 4450ia64-*-hpux*) 4451 # Find out which ABI we are using. 4452 echo 'int i;' > conftest.$ac_ext 4453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4454 (eval $ac_compile) 2>&5 4455 ac_status=$? 4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4457 (exit $ac_status); }; then 4458 case `/usr/bin/file conftest.$ac_objext` in 4459 *ELF-32*) 4460 HPUX_IA64_MODE="32" 4461 ;; 4462 *ELF-64*) 4463 HPUX_IA64_MODE="64" 4464 ;; 4465 esac 4466 fi 4467 rm -rf conftest* 4468 ;; 4469*-*-irix6*) 4470 # Find out which ABI we are using. 4471 echo '#line 4471 "configure"' > conftest.$ac_ext 4472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4473 (eval $ac_compile) 2>&5 4474 ac_status=$? 4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4476 (exit $ac_status); }; then 4477 if test "$lt_cv_prog_gnu_ld" = yes; then 4478 case `/usr/bin/file conftest.$ac_objext` in 4479 *32-bit*) 4480 LD="${LD-ld} -melf32bsmip" 4481 ;; 4482 *N32*) 4483 LD="${LD-ld} -melf32bmipn32" 4484 ;; 4485 *64-bit*) 4486 LD="${LD-ld} -melf64bmip" 4487 ;; 4488 esac 4489 else 4490 case `/usr/bin/file conftest.$ac_objext` in 4491 *32-bit*) 4492 LD="${LD-ld} -32" 4493 ;; 4494 *N32*) 4495 LD="${LD-ld} -n32" 4496 ;; 4497 *64-bit*) 4498 LD="${LD-ld} -64" 4499 ;; 4500 esac 4501 fi 4502 fi 4503 rm -rf conftest* 4504 ;; 4505 4506x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4507 # Find out which ABI we are using. 4508 echo 'int i;' > conftest.$ac_ext 4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4510 (eval $ac_compile) 2>&5 4511 ac_status=$? 4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4513 (exit $ac_status); }; then 4514 case "`/usr/bin/file conftest.o`" in 4515 *32-bit*) 4516 case $host in 4517 x86_64-*linux*) 4518 LD="${LD-ld} -m elf_i386" 4519 ;; 4520 ppc64-*linux*|powerpc64-*linux*) 4521 LD="${LD-ld} -m elf32ppclinux" 4522 ;; 4523 s390x-*linux*) 4524 LD="${LD-ld} -m elf_s390" 4525 ;; 4526 sparc64-*linux*) 4527 LD="${LD-ld} -m elf32_sparc" 4528 ;; 4529 esac 4530 ;; 4531 *64-bit*) 4532 case $host in 4533 x86_64-*linux*) 4534 LD="${LD-ld} -m elf_x86_64" 4535 ;; 4536 ppc*-*linux*|powerpc*-*linux*) 4537 LD="${LD-ld} -m elf64ppc" 4538 ;; 4539 s390*-*linux*) 4540 LD="${LD-ld} -m elf64_s390" 4541 ;; 4542 sparc*-*linux*) 4543 LD="${LD-ld} -m elf64_sparc" 4544 ;; 4545 esac 4546 ;; 4547 esac 4548 fi 4549 rm -rf conftest* 4550 ;; 4551 4552*-*-sco3.2v5*) 4553 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4554 SAVE_CFLAGS="$CFLAGS" 4555 CFLAGS="$CFLAGS -belf" 4556 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4557echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4558if test "${lt_cv_cc_needs_belf+set}" = set; then 4559 echo $ECHO_N "(cached) $ECHO_C" >&6 4560else 4561 ac_ext=c 4562ac_cpp='$CPP $CPPFLAGS' 4563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4565ac_compiler_gnu=$ac_cv_c_compiler_gnu 4566 4567 cat >conftest.$ac_ext <<_ACEOF 4568/* confdefs.h. */ 4569_ACEOF 4570cat confdefs.h >>conftest.$ac_ext 4571cat >>conftest.$ac_ext <<_ACEOF 4572/* end confdefs.h. */ 4573 4574int 4575main () 4576{ 4577 4578 ; 4579 return 0; 4580} 4581_ACEOF 4582rm -f conftest.$ac_objext conftest$ac_exeext 4583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4584 (eval $ac_link) 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_exeext' 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 lt_cv_cc_needs_belf=yes 4605else 4606 echo "$as_me: failed program was:" >&5 4607sed 's/^/| /' conftest.$ac_ext >&5 4608 4609lt_cv_cc_needs_belf=no 4610fi 4611rm -f conftest.err conftest.$ac_objext \ 4612 conftest$ac_exeext conftest.$ac_ext 4613 ac_ext=c 4614ac_cpp='$CPP $CPPFLAGS' 4615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4617ac_compiler_gnu=$ac_cv_c_compiler_gnu 4618 4619fi 4620echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4621echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4622 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4623 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4624 CFLAGS="$SAVE_CFLAGS" 4625 fi 4626 ;; 4627 4628esac 4629 4630need_locks="$enable_libtool_lock" 4631 4632 4633 4634echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4635echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4636if test "${ac_cv_header_stdc+set}" = set; then 4637 echo $ECHO_N "(cached) $ECHO_C" >&6 4638else 4639 cat >conftest.$ac_ext <<_ACEOF 4640/* confdefs.h. */ 4641_ACEOF 4642cat confdefs.h >>conftest.$ac_ext 4643cat >>conftest.$ac_ext <<_ACEOF 4644/* end confdefs.h. */ 4645#include <stdlib.h> 4646#include <stdarg.h> 4647#include <string.h> 4648#include <float.h> 4649 4650int 4651main () 4652{ 4653 4654 ; 4655 return 0; 4656} 4657_ACEOF 4658rm -f conftest.$ac_objext 4659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4660 (eval $ac_compile) 2>conftest.er1 4661 ac_status=$? 4662 grep -v '^ *+' conftest.er1 >conftest.err 4663 rm -f conftest.er1 4664 cat conftest.err >&5 4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4666 (exit $ac_status); } && 4667 { ac_try='test -z "$ac_c_werror_flag" 4668 || test ! -s conftest.err' 4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4670 (eval $ac_try) 2>&5 4671 ac_status=$? 4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4673 (exit $ac_status); }; } && 4674 { ac_try='test -s conftest.$ac_objext' 4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4676 (eval $ac_try) 2>&5 4677 ac_status=$? 4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4679 (exit $ac_status); }; }; then 4680 ac_cv_header_stdc=yes 4681else 4682 echo "$as_me: failed program was:" >&5 4683sed 's/^/| /' conftest.$ac_ext >&5 4684 4685ac_cv_header_stdc=no 4686fi 4687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4688 4689if test $ac_cv_header_stdc = yes; then 4690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4691 cat >conftest.$ac_ext <<_ACEOF 4692/* confdefs.h. */ 4693_ACEOF 4694cat confdefs.h >>conftest.$ac_ext 4695cat >>conftest.$ac_ext <<_ACEOF 4696/* end confdefs.h. */ 4697#include <string.h> 4698 4699_ACEOF 4700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4701 $EGREP "memchr" >/dev/null 2>&1; then 4702 : 4703else 4704 ac_cv_header_stdc=no 4705fi 4706rm -f conftest* 4707 4708fi 4709 4710if test $ac_cv_header_stdc = yes; then 4711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4712 cat >conftest.$ac_ext <<_ACEOF 4713/* confdefs.h. */ 4714_ACEOF 4715cat confdefs.h >>conftest.$ac_ext 4716cat >>conftest.$ac_ext <<_ACEOF 4717/* end confdefs.h. */ 4718#include <stdlib.h> 4719 4720_ACEOF 4721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4722 $EGREP "free" >/dev/null 2>&1; then 4723 : 4724else 4725 ac_cv_header_stdc=no 4726fi 4727rm -f conftest* 4728 4729fi 4730 4731if test $ac_cv_header_stdc = yes; then 4732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4733 if test "$cross_compiling" = yes; then 4734 : 4735else 4736 cat >conftest.$ac_ext <<_ACEOF 4737/* confdefs.h. */ 4738_ACEOF 4739cat confdefs.h >>conftest.$ac_ext 4740cat >>conftest.$ac_ext <<_ACEOF 4741/* end confdefs.h. */ 4742#include <ctype.h> 4743#if ((' ' & 0x0FF) == 0x020) 4744# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4745# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4746#else 4747# define ISLOWER(c) \ 4748 (('a' <= (c) && (c) <= 'i') \ 4749 || ('j' <= (c) && (c) <= 'r') \ 4750 || ('s' <= (c) && (c) <= 'z')) 4751# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4752#endif 4753 4754#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4755int 4756main () 4757{ 4758 int i; 4759 for (i = 0; i < 256; i++) 4760 if (XOR (islower (i), ISLOWER (i)) 4761 || toupper (i) != TOUPPER (i)) 4762 exit(2); 4763 exit (0); 4764} 4765_ACEOF 4766rm -f conftest$ac_exeext 4767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4768 (eval $ac_link) 2>&5 4769 ac_status=$? 4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4773 (eval $ac_try) 2>&5 4774 ac_status=$? 4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4776 (exit $ac_status); }; }; then 4777 : 4778else 4779 echo "$as_me: program exited with status $ac_status" >&5 4780echo "$as_me: failed program was:" >&5 4781sed 's/^/| /' conftest.$ac_ext >&5 4782 4783( exit $ac_status ) 4784ac_cv_header_stdc=no 4785fi 4786rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4787fi 4788fi 4789fi 4790echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4791echo "${ECHO_T}$ac_cv_header_stdc" >&6 4792if test $ac_cv_header_stdc = yes; then 4793 4794cat >>confdefs.h <<\_ACEOF 4795#define STDC_HEADERS 1 4796_ACEOF 4797 4798fi 4799 4800# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4811 inttypes.h stdint.h unistd.h 4812do 4813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4814echo "$as_me:$LINENO: checking for $ac_header" >&5 4815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4816if eval "test \"\${$as_ac_Header+set}\" = set"; then 4817 echo $ECHO_N "(cached) $ECHO_C" >&6 4818else 4819 cat >conftest.$ac_ext <<_ACEOF 4820/* confdefs.h. */ 4821_ACEOF 4822cat confdefs.h >>conftest.$ac_ext 4823cat >>conftest.$ac_ext <<_ACEOF 4824/* end confdefs.h. */ 4825$ac_includes_default 4826 4827#include <$ac_header> 4828_ACEOF 4829rm -f conftest.$ac_objext 4830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4831 (eval $ac_compile) 2>conftest.er1 4832 ac_status=$? 4833 grep -v '^ *+' conftest.er1 >conftest.err 4834 rm -f conftest.er1 4835 cat conftest.err >&5 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4837 (exit $ac_status); } && 4838 { ac_try='test -z "$ac_c_werror_flag" 4839 || test ! -s conftest.err' 4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4841 (eval $ac_try) 2>&5 4842 ac_status=$? 4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4844 (exit $ac_status); }; } && 4845 { ac_try='test -s conftest.$ac_objext' 4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4847 (eval $ac_try) 2>&5 4848 ac_status=$? 4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4850 (exit $ac_status); }; }; then 4851 eval "$as_ac_Header=yes" 4852else 4853 echo "$as_me: failed program was:" >&5 4854sed 's/^/| /' conftest.$ac_ext >&5 4855 4856eval "$as_ac_Header=no" 4857fi 4858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4859fi 4860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4862if test `eval echo '${'$as_ac_Header'}'` = yes; then 4863 cat >>confdefs.h <<_ACEOF 4864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4865_ACEOF 4866 4867fi 4868 4869done 4870 4871 4872 4873for ac_header in dlfcn.h 4874do 4875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4876if eval "test \"\${$as_ac_Header+set}\" = set"; then 4877 echo "$as_me:$LINENO: checking for $ac_header" >&5 4878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4879if eval "test \"\${$as_ac_Header+set}\" = set"; then 4880 echo $ECHO_N "(cached) $ECHO_C" >&6 4881fi 4882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4884else 4885 # Is the header compilable? 4886echo "$as_me:$LINENO: checking $ac_header usability" >&5 4887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4888cat >conftest.$ac_ext <<_ACEOF 4889/* confdefs.h. */ 4890_ACEOF 4891cat confdefs.h >>conftest.$ac_ext 4892cat >>conftest.$ac_ext <<_ACEOF 4893/* end confdefs.h. */ 4894$ac_includes_default 4895#include <$ac_header> 4896_ACEOF 4897rm -f conftest.$ac_objext 4898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4899 (eval $ac_compile) 2>conftest.er1 4900 ac_status=$? 4901 grep -v '^ *+' conftest.er1 >conftest.err 4902 rm -f conftest.er1 4903 cat conftest.err >&5 4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); } && 4906 { ac_try='test -z "$ac_c_werror_flag" 4907 || test ! -s conftest.err' 4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4909 (eval $ac_try) 2>&5 4910 ac_status=$? 4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4912 (exit $ac_status); }; } && 4913 { ac_try='test -s conftest.$ac_objext' 4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4915 (eval $ac_try) 2>&5 4916 ac_status=$? 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4918 (exit $ac_status); }; }; then 4919 ac_header_compiler=yes 4920else 4921 echo "$as_me: failed program was:" >&5 4922sed 's/^/| /' conftest.$ac_ext >&5 4923 4924ac_header_compiler=no 4925fi 4926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4928echo "${ECHO_T}$ac_header_compiler" >&6 4929 4930# Is the header present? 4931echo "$as_me:$LINENO: checking $ac_header presence" >&5 4932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4933cat >conftest.$ac_ext <<_ACEOF 4934/* confdefs.h. */ 4935_ACEOF 4936cat confdefs.h >>conftest.$ac_ext 4937cat >>conftest.$ac_ext <<_ACEOF 4938/* end confdefs.h. */ 4939#include <$ac_header> 4940_ACEOF 4941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4943 ac_status=$? 4944 grep -v '^ *+' conftest.er1 >conftest.err 4945 rm -f conftest.er1 4946 cat conftest.err >&5 4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4948 (exit $ac_status); } >/dev/null; then 4949 if test -s conftest.err; then 4950 ac_cpp_err=$ac_c_preproc_warn_flag 4951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4952 else 4953 ac_cpp_err= 4954 fi 4955else 4956 ac_cpp_err=yes 4957fi 4958if test -z "$ac_cpp_err"; then 4959 ac_header_preproc=yes 4960else 4961 echo "$as_me: failed program was:" >&5 4962sed 's/^/| /' conftest.$ac_ext >&5 4963 4964 ac_header_preproc=no 4965fi 4966rm -f conftest.err conftest.$ac_ext 4967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4968echo "${ECHO_T}$ac_header_preproc" >&6 4969 4970# So? What about this header? 4971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4972 yes:no: ) 4973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4977 ac_header_preproc=yes 4978 ;; 4979 no:yes:* ) 4980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4992 ( 4993 cat <<\_ASBOX 4994## -------------------------------------------- ## 4995## Report this to drussel@graphics.stanford.edu ## 4996## -------------------------------------------- ## 4997_ASBOX 4998 ) | 4999 sed "s/^/$as_me: WARNING: /" >&2 5000 ;; 5001esac 5002echo "$as_me:$LINENO: checking for $ac_header" >&5 5003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5004if eval "test \"\${$as_ac_Header+set}\" = set"; then 5005 echo $ECHO_N "(cached) $ECHO_C" >&6 5006else 5007 eval "$as_ac_Header=\$ac_header_preproc" 5008fi 5009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5011 5012fi 5013if test `eval echo '${'$as_ac_Header'}'` = yes; then 5014 cat >>confdefs.h <<_ACEOF 5015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5016_ACEOF 5017 5018fi 5019 5020done 5021 5022 5023 5024if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5025 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5026 (test "X$CXX" != "Xg++"))) ; then 5027 ac_ext=cc 5028ac_cpp='$CXXCPP $CPPFLAGS' 5029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5032echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5033echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5034if test -z "$CXXCPP"; then 5035 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5036 echo $ECHO_N "(cached) $ECHO_C" >&6 5037else 5038 # Double quotes because CXXCPP needs to be expanded 5039 for CXXCPP in "$CXX -E" "/lib/cpp" 5040 do 5041 ac_preproc_ok=false 5042for ac_cxx_preproc_warn_flag in '' yes 5043do 5044 # Use a header file that comes with gcc, so configuring glibc 5045 # with a fresh cross-compiler works. 5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5047 # <limits.h> exists even on freestanding compilers. 5048 # On the NeXT, cc -E runs the code through the compiler's parser, 5049 # not just through cpp. "Syntax error" is here to catch this case. 5050 cat >conftest.$ac_ext <<_ACEOF 5051/* confdefs.h. */ 5052_ACEOF 5053cat confdefs.h >>conftest.$ac_ext 5054cat >>conftest.$ac_ext <<_ACEOF 5055/* end confdefs.h. */ 5056#ifdef __STDC__ 5057# include <limits.h> 5058#else 5059# include <assert.h> 5060#endif 5061 Syntax error 5062_ACEOF 5063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5065 ac_status=$? 5066 grep -v '^ *+' conftest.er1 >conftest.err 5067 rm -f conftest.er1 5068 cat conftest.err >&5 5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5070 (exit $ac_status); } >/dev/null; then 5071 if test -s conftest.err; then 5072 ac_cpp_err=$ac_cxx_preproc_warn_flag 5073 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5074 else 5075 ac_cpp_err= 5076 fi 5077else 5078 ac_cpp_err=yes 5079fi 5080if test -z "$ac_cpp_err"; then 5081 : 5082else 5083 echo "$as_me: failed program was:" >&5 5084sed 's/^/| /' conftest.$ac_ext >&5 5085 5086 # Broken: fails on valid input. 5087continue 5088fi 5089rm -f conftest.err conftest.$ac_ext 5090 5091 # OK, works on sane cases. Now check whether non-existent headers 5092 # can be detected and how. 5093 cat >conftest.$ac_ext <<_ACEOF 5094/* confdefs.h. */ 5095_ACEOF 5096cat confdefs.h >>conftest.$ac_ext 5097cat >>conftest.$ac_ext <<_ACEOF 5098/* end confdefs.h. */ 5099#include <ac_nonexistent.h> 5100_ACEOF 5101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5103 ac_status=$? 5104 grep -v '^ *+' conftest.er1 >conftest.err 5105 rm -f conftest.er1 5106 cat conftest.err >&5 5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5108 (exit $ac_status); } >/dev/null; then 5109 if test -s conftest.err; then 5110 ac_cpp_err=$ac_cxx_preproc_warn_flag 5111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5112 else 5113 ac_cpp_err= 5114 fi 5115else 5116 ac_cpp_err=yes 5117fi 5118if test -z "$ac_cpp_err"; then 5119 # Broken: success on invalid input. 5120continue 5121else 5122 echo "$as_me: failed program was:" >&5 5123sed 's/^/| /' conftest.$ac_ext >&5 5124 5125 # Passes both tests. 5126ac_preproc_ok=: 5127break 5128fi 5129rm -f conftest.err conftest.$ac_ext 5130 5131done 5132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5133rm -f conftest.err conftest.$ac_ext 5134if $ac_preproc_ok; then 5135 break 5136fi 5137 5138 done 5139 ac_cv_prog_CXXCPP=$CXXCPP 5140 5141fi 5142 CXXCPP=$ac_cv_prog_CXXCPP 5143else 5144 ac_cv_prog_CXXCPP=$CXXCPP 5145fi 5146echo "$as_me:$LINENO: result: $CXXCPP" >&5 5147echo "${ECHO_T}$CXXCPP" >&6 5148ac_preproc_ok=false 5149for ac_cxx_preproc_warn_flag in '' yes 5150do 5151 # Use a header file that comes with gcc, so configuring glibc 5152 # with a fresh cross-compiler works. 5153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5154 # <limits.h> exists even on freestanding compilers. 5155 # On the NeXT, cc -E runs the code through the compiler's parser, 5156 # not just through cpp. "Syntax error" is here to catch this case. 5157 cat >conftest.$ac_ext <<_ACEOF 5158/* confdefs.h. */ 5159_ACEOF 5160cat confdefs.h >>conftest.$ac_ext 5161cat >>conftest.$ac_ext <<_ACEOF 5162/* end confdefs.h. */ 5163#ifdef __STDC__ 5164# include <limits.h> 5165#else 5166# include <assert.h> 5167#endif 5168 Syntax error 5169_ACEOF 5170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5172 ac_status=$? 5173 grep -v '^ *+' conftest.er1 >conftest.err 5174 rm -f conftest.er1 5175 cat conftest.err >&5 5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5177 (exit $ac_status); } >/dev/null; then 5178 if test -s conftest.err; then 5179 ac_cpp_err=$ac_cxx_preproc_warn_flag 5180 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5181 else 5182 ac_cpp_err= 5183 fi 5184else 5185 ac_cpp_err=yes 5186fi 5187if test -z "$ac_cpp_err"; then 5188 : 5189else 5190 echo "$as_me: failed program was:" >&5 5191sed 's/^/| /' conftest.$ac_ext >&5 5192 5193 # Broken: fails on valid input. 5194continue 5195fi 5196rm -f conftest.err conftest.$ac_ext 5197 5198 # OK, works on sane cases. Now check whether non-existent headers 5199 # can be detected and how. 5200 cat >conftest.$ac_ext <<_ACEOF 5201/* confdefs.h. */ 5202_ACEOF 5203cat confdefs.h >>conftest.$ac_ext 5204cat >>conftest.$ac_ext <<_ACEOF 5205/* end confdefs.h. */ 5206#include <ac_nonexistent.h> 5207_ACEOF 5208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5210 ac_status=$? 5211 grep -v '^ *+' conftest.er1 >conftest.err 5212 rm -f conftest.er1 5213 cat conftest.err >&5 5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5215 (exit $ac_status); } >/dev/null; then 5216 if test -s conftest.err; then 5217 ac_cpp_err=$ac_cxx_preproc_warn_flag 5218 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5219 else 5220 ac_cpp_err= 5221 fi 5222else 5223 ac_cpp_err=yes 5224fi 5225if test -z "$ac_cpp_err"; then 5226 # Broken: success on invalid input. 5227continue 5228else 5229 echo "$as_me: failed program was:" >&5 5230sed 's/^/| /' conftest.$ac_ext >&5 5231 5232 # Passes both tests. 5233ac_preproc_ok=: 5234break 5235fi 5236rm -f conftest.err conftest.$ac_ext 5237 5238done 5239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5240rm -f conftest.err conftest.$ac_ext 5241if $ac_preproc_ok; then 5242 : 5243else 5244 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5245See \`config.log' for more details." >&5 5246echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5247See \`config.log' for more details." >&2;} 5248 { (exit 1); exit 1; }; } 5249fi 5250 5251ac_ext=cc 5252ac_cpp='$CXXCPP $CPPFLAGS' 5253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5256 5257fi 5258 5259 5260ac_ext=f 5261ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5262ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5263ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5264if test -n "$ac_tool_prefix"; then 5265 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5266 do 5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5268set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5269echo "$as_me:$LINENO: checking for $ac_word" >&5 5270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5271if test "${ac_cv_prog_F77+set}" = set; then 5272 echo $ECHO_N "(cached) $ECHO_C" >&6 5273else 5274 if test -n "$F77"; then 5275 ac_cv_prog_F77="$F77" # Let the user override the test. 5276else 5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278for as_dir in $PATH 5279do 5280 IFS=$as_save_IFS 5281 test -z "$as_dir" && as_dir=. 5282 for ac_exec_ext in '' $ac_executable_extensions; do 5283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5284 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5286 break 2 5287 fi 5288done 5289done 5290 5291fi 5292fi 5293F77=$ac_cv_prog_F77 5294if test -n "$F77"; then 5295 echo "$as_me:$LINENO: result: $F77" >&5 5296echo "${ECHO_T}$F77" >&6 5297else 5298 echo "$as_me:$LINENO: result: no" >&5 5299echo "${ECHO_T}no" >&6 5300fi 5301 5302 test -n "$F77" && break 5303 done 5304fi 5305if test -z "$F77"; then 5306 ac_ct_F77=$F77 5307 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5308do 5309 # Extract the first word of "$ac_prog", so it can be a program name with args. 5310set dummy $ac_prog; ac_word=$2 5311echo "$as_me:$LINENO: checking for $ac_word" >&5 5312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5313if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5314 echo $ECHO_N "(cached) $ECHO_C" >&6 5315else 5316 if test -n "$ac_ct_F77"; then 5317 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5318else 5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5320for as_dir in $PATH 5321do 5322 IFS=$as_save_IFS 5323 test -z "$as_dir" && as_dir=. 5324 for ac_exec_ext in '' $ac_executable_extensions; do 5325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5326 ac_cv_prog_ac_ct_F77="$ac_prog" 5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5328 break 2 5329 fi 5330done 5331done 5332 5333fi 5334fi 5335ac_ct_F77=$ac_cv_prog_ac_ct_F77 5336if test -n "$ac_ct_F77"; then 5337 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5338echo "${ECHO_T}$ac_ct_F77" >&6 5339else 5340 echo "$as_me:$LINENO: result: no" >&5 5341echo "${ECHO_T}no" >&6 5342fi 5343 5344 test -n "$ac_ct_F77" && break 5345done 5346 5347 F77=$ac_ct_F77 5348fi 5349 5350 5351# Provide some information about the compiler. 5352echo "$as_me:5352:" \ 5353 "checking for Fortran 77 compiler version" >&5 5354ac_compiler=`set X $ac_compile; echo $2` 5355{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5356 (eval $ac_compiler --version </dev/null >&5) 2>&5 5357 ac_status=$? 5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5359 (exit $ac_status); } 5360{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5361 (eval $ac_compiler -v </dev/null >&5) 2>&5 5362 ac_status=$? 5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5364 (exit $ac_status); } 5365{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5366 (eval $ac_compiler -V </dev/null >&5) 2>&5 5367 ac_status=$? 5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5369 (exit $ac_status); } 5370rm -f a.out 5371 5372# If we don't use `.F' as extension, the preprocessor is not run on the 5373# input file. (Note that this only needs to work for GNU compilers.) 5374ac_save_ext=$ac_ext 5375ac_ext=F 5376echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5377echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5378if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5379 echo $ECHO_N "(cached) $ECHO_C" >&6 5380else 5381 cat >conftest.$ac_ext <<_ACEOF 5382 program main 5383#ifndef __GNUC__ 5384 choke me 5385#endif 5386 5387 end 5388_ACEOF 5389rm -f conftest.$ac_objext 5390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5391 (eval $ac_compile) 2>conftest.er1 5392 ac_status=$? 5393 grep -v '^ *+' conftest.er1 >conftest.err 5394 rm -f conftest.er1 5395 cat conftest.err >&5 5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5397 (exit $ac_status); } && 5398 { ac_try='test -z "$ac_f77_werror_flag" 5399 || test ! -s conftest.err' 5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5401 (eval $ac_try) 2>&5 5402 ac_status=$? 5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5404 (exit $ac_status); }; } && 5405 { ac_try='test -s conftest.$ac_objext' 5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5407 (eval $ac_try) 2>&5 5408 ac_status=$? 5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5410 (exit $ac_status); }; }; then 5411 ac_compiler_gnu=yes 5412else 5413 echo "$as_me: failed program was:" >&5 5414sed 's/^/| /' conftest.$ac_ext >&5 5415 5416ac_compiler_gnu=no 5417fi 5418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5419ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5420 5421fi 5422echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5423echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5424ac_ext=$ac_save_ext 5425ac_test_FFLAGS=${FFLAGS+set} 5426ac_save_FFLAGS=$FFLAGS 5427FFLAGS= 5428echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5429echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5430if test "${ac_cv_prog_f77_g+set}" = set; then 5431 echo $ECHO_N "(cached) $ECHO_C" >&6 5432else 5433 FFLAGS=-g 5434cat >conftest.$ac_ext <<_ACEOF 5435 program main 5436 5437 end 5438_ACEOF 5439rm -f conftest.$ac_objext 5440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5441 (eval $ac_compile) 2>conftest.er1 5442 ac_status=$? 5443 grep -v '^ *+' conftest.er1 >conftest.err 5444 rm -f conftest.er1 5445 cat conftest.err >&5 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); } && 5448 { ac_try='test -z "$ac_f77_werror_flag" 5449 || test ! -s conftest.err' 5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5451 (eval $ac_try) 2>&5 5452 ac_status=$? 5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5454 (exit $ac_status); }; } && 5455 { ac_try='test -s conftest.$ac_objext' 5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5457 (eval $ac_try) 2>&5 5458 ac_status=$? 5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); }; }; then 5461 ac_cv_prog_f77_g=yes 5462else 5463 echo "$as_me: failed program was:" >&5 5464sed 's/^/| /' conftest.$ac_ext >&5 5465 5466ac_cv_prog_f77_g=no 5467fi 5468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5469 5470fi 5471echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5472echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5473if test "$ac_test_FFLAGS" = set; then 5474 FFLAGS=$ac_save_FFLAGS 5475elif test $ac_cv_prog_f77_g = yes; then 5476 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5477 FFLAGS="-g -O2" 5478 else 5479 FFLAGS="-g" 5480 fi 5481else 5482 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5483 FFLAGS="-O2" 5484 else 5485 FFLAGS= 5486 fi 5487fi 5488 5489G77=`test $ac_compiler_gnu = yes && echo yes` 5490ac_ext=c 5491ac_cpp='$CPP $CPPFLAGS' 5492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5494ac_compiler_gnu=$ac_cv_c_compiler_gnu 5495 5496 5497 5498# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5499 5500# find the maximum length of command line arguments 5501echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5502echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5503if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5504 echo $ECHO_N "(cached) $ECHO_C" >&6 5505else 5506 i=0 5507 teststring="ABCD" 5508 5509 case $build_os in 5510 msdosdjgpp*) 5511 # On DJGPP, this test can blow up pretty badly due to problems in libc 5512 # (any single argument exceeding 2000 bytes causes a buffer overrun 5513 # during glob expansion). Even if it were fixed, the result of this 5514 # check would be larger than it should be. 5515 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5516 ;; 5517 5518 gnu*) 5519 # Under GNU Hurd, this test is not required because there is 5520 # no limit to the length of command line arguments. 5521 # Libtool will interpret -1 as no limit whatsoever 5522 lt_cv_sys_max_cmd_len=-1; 5523 ;; 5524 5525 cygwin* | mingw*) 5526 # On Win9x/ME, this test blows up -- it succeeds, but takes 5527 # about 5 minutes as the teststring grows exponentially. 5528 # Worse, since 9x/ME are not pre-emptively multitasking, 5529 # you end up with a "frozen" computer, even though with patience 5530 # the test eventually succeeds (with a max line length of 256k). 5531 # Instead, let's just punt: use the minimum linelength reported by 5532 # all of the supported platforms: 8192 (on NT/2K/XP). 5533 lt_cv_sys_max_cmd_len=8192; 5534 ;; 5535 5536 amigaos*) 5537 # On AmigaOS with pdksh, this test takes hours, literally. 5538 # So we just punt and use a minimum line length of 8192. 5539 lt_cv_sys_max_cmd_len=8192; 5540 ;; 5541 5542 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5543 # This has been around since 386BSD, at least. Likely further. 5544 if test -x /sbin/sysctl; then 5545 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5546 elif test -x /usr/sbin/sysctl; then 5547 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5548 else 5549 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 5550 fi 5551 # And add a safety zone 5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5554 ;; 5555 osf*) 5556 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5557 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5558 # nice to cause kernel panics so lets avoid the loop below. 5559 # First set a reasonable default. 5560 lt_cv_sys_max_cmd_len=16384 5561 # 5562 if test -x /sbin/sysconfig; then 5563 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5564 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5565 esac 5566 fi 5567 ;; 5568 *) 5569 # If test is not a shell built-in, we'll probably end up computing a 5570 # maximum length that is only half of the actual maximum length, but 5571 # we can't tell. 5572 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5573 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5574 = "XX$teststring") >/dev/null 2>&1 && 5575 new_result=`expr "X$teststring" : ".*" 2>&1` && 5576 lt_cv_sys_max_cmd_len=$new_result && 5577 test $i != 17 # 1/2 MB should be enough 5578 do 5579 i=`expr $i + 1` 5580 teststring=$teststring$teststring 5581 done 5582 teststring= 5583 # Add a significant safety factor because C++ compilers can tack on massive 5584 # amounts of additional arguments before passing them to the linker. 5585 # It appears as though 1/2 is a usable value. 5586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5587 ;; 5588 esac 5589 5590fi 5591 5592if test -n $lt_cv_sys_max_cmd_len ; then 5593 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5594echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5595else 5596 echo "$as_me:$LINENO: result: none" >&5 5597echo "${ECHO_T}none" >&6 5598fi 5599 5600 5601 5602 5603# Check for command to grab the raw symbol name followed by C symbol from nm. 5604echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5605echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5606if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5607 echo $ECHO_N "(cached) $ECHO_C" >&6 5608else 5609 5610# These are sane defaults that work on at least a few old systems. 5611# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5612 5613# Character class describing NM global symbol codes. 5614symcode='[BCDEGRST]' 5615 5616# Regexp to match symbols that can be accessed directly from C. 5617sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5618 5619# Transform an extracted symbol line into a proper C declaration 5620lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5621 5622# Transform an extracted symbol line into symbol name and symbol address 5623lt_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'" 5624 5625# Define system-specific variables. 5626case $host_os in 5627aix*) 5628 symcode='[BCDT]' 5629 ;; 5630cygwin* | mingw* | pw32*) 5631 symcode='[ABCDGISTW]' 5632 ;; 5633hpux*) # Its linker distinguishes data from code symbols 5634 if test "$host_cpu" = ia64; then 5635 symcode='[ABCDEGRST]' 5636 fi 5637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5638 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'" 5639 ;; 5640linux*) 5641 if test "$host_cpu" = ia64; then 5642 symcode='[ABCDGIRSTW]' 5643 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5644 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'" 5645 fi 5646 ;; 5647irix* | nonstopux*) 5648 symcode='[BCDEGRST]' 5649 ;; 5650osf*) 5651 symcode='[BCDEGQRST]' 5652 ;; 5653solaris* | sysv5*) 5654 symcode='[BDRT]' 5655 ;; 5656sysv4) 5657 symcode='[DFNSTU]' 5658 ;; 5659esac 5660 5661# Handle CRLF in mingw tool chain 5662opt_cr= 5663case $build_os in 5664mingw*) 5665 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5666 ;; 5667esac 5668 5669# If we're using GNU nm, then use its standard symbol codes. 5670case `$NM -V 2>&1` in 5671*GNU* | *'with BFD'*) 5672 symcode='[ABCDGIRSTW]' ;; 5673esac 5674 5675# Try without a prefix undercore, then with it. 5676for ac_symprfx in "" "_"; do 5677 5678 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5679 symxfrm="\\1 $ac_symprfx\\2 \\2" 5680 5681 # Write the raw and C identifiers. 5682 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5683 5684 # Check to see that the pipe works correctly. 5685 pipe_works=no 5686 5687 rm -f conftest* 5688 cat > conftest.$ac_ext <<EOF 5689#ifdef __cplusplus 5690extern "C" { 5691#endif 5692char nm_test_var; 5693void nm_test_func(){} 5694#ifdef __cplusplus 5695} 5696#endif 5697int main(){nm_test_var='a';nm_test_func();return(0);} 5698EOF 5699 5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5701 (eval $ac_compile) 2>&5 5702 ac_status=$? 5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5704 (exit $ac_status); }; then 5705 # Now try to grab the symbols. 5706 nlist=conftest.nm 5707 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5708 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5709 ac_status=$? 5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5711 (exit $ac_status); } && test -s "$nlist"; then 5712 # Try sorting and uniquifying the output. 5713 if sort "$nlist" | uniq > "$nlist"T; then 5714 mv -f "$nlist"T "$nlist" 5715 else 5716 rm -f "$nlist"T 5717 fi 5718 5719 # Make sure that we snagged all the symbols we need. 5720 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5721 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5722 cat <<EOF > conftest.$ac_ext 5723#ifdef __cplusplus 5724extern "C" { 5725#endif 5726 5727EOF 5728 # Now generate the symbol file. 5729 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5730 5731 cat <<EOF >> conftest.$ac_ext 5732#if defined (__STDC__) && __STDC__ 5733# define lt_ptr_t void * 5734#else 5735# define lt_ptr_t char * 5736# define const 5737#endif 5738 5739/* The mapping between symbol names and symbols. */ 5740const struct { 5741 const char *name; 5742 lt_ptr_t address; 5743} 5744lt_preloaded_symbols[] = 5745{ 5746EOF 5747 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5748 cat <<\EOF >> conftest.$ac_ext 5749 {0, (lt_ptr_t) 0} 5750}; 5751 5752#ifdef __cplusplus 5753} 5754#endif 5755EOF 5756 # Now try linking the two files. 5757 mv conftest.$ac_objext conftstm.$ac_objext 5758 lt_save_LIBS="$LIBS" 5759 lt_save_CFLAGS="$CFLAGS" 5760 LIBS="conftstm.$ac_objext" 5761 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5763 (eval $ac_link) 2>&5 5764 ac_status=$? 5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5766 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5767 pipe_works=yes 5768 fi 5769 LIBS="$lt_save_LIBS" 5770 CFLAGS="$lt_save_CFLAGS" 5771 else 5772 echo "cannot find nm_test_func in $nlist" >&5 5773 fi 5774 else 5775 echo "cannot find nm_test_var in $nlist" >&5 5776 fi 5777 else 5778 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5779 fi 5780 else 5781 echo "$progname: failed program was:" >&5 5782 cat conftest.$ac_ext >&5 5783 fi 5784 rm -f conftest* conftst* 5785 5786 # Do not use the global_symbol_pipe unless it works. 5787 if test "$pipe_works" = yes; then 5788 break 5789 else 5790 lt_cv_sys_global_symbol_pipe= 5791 fi 5792done 5793 5794fi 5795 5796if test -z "$lt_cv_sys_global_symbol_pipe"; then 5797 lt_cv_sys_global_symbol_to_cdecl= 5798fi 5799if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5800 echo "$as_me:$LINENO: result: failed" >&5 5801echo "${ECHO_T}failed" >&6 5802else 5803 echo "$as_me:$LINENO: result: ok" >&5 5804echo "${ECHO_T}ok" >&6 5805fi 5806 5807echo "$as_me:$LINENO: checking for objdir" >&5 5808echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5809if test "${lt_cv_objdir+set}" = set; then 5810 echo $ECHO_N "(cached) $ECHO_C" >&6 5811else 5812 rm -f .libs 2>/dev/null 5813mkdir .libs 2>/dev/null 5814if test -d .libs; then 5815 lt_cv_objdir=.libs 5816else 5817 # MS-DOS does not allow filenames that begin with a dot. 5818 lt_cv_objdir=_libs 5819fi 5820rmdir .libs 2>/dev/null 5821fi 5822echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5823echo "${ECHO_T}$lt_cv_objdir" >&6 5824objdir=$lt_cv_objdir 5825 5826 5827 5828 5829 5830case $host_os in 5831aix3*) 5832 # AIX sometimes has problems with the GCC collect2 program. For some 5833 # reason, if we set the COLLECT_NAMES environment variable, the problems 5834 # vanish in a puff of smoke. 5835 if test "X${COLLECT_NAMES+set}" != Xset; then 5836 COLLECT_NAMES= 5837 export COLLECT_NAMES 5838 fi 5839 ;; 5840esac 5841 5842# Sed substitution that helps us do robust quoting. It backslashifies 5843# metacharacters that are still active within double-quoted strings. 5844Xsed='sed -e 1s/^X//' 5845sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5846 5847# Same as above, but do not quote variable references. 5848double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5849 5850# Sed substitution to delay expansion of an escaped shell variable in a 5851# double_quote_subst'ed string. 5852delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5853 5854# Sed substitution to avoid accidental globbing in evaled expressions 5855no_glob_subst='s/\*/\\\*/g' 5856 5857# Constants: 5858rm="rm -f" 5859 5860# Global variables: 5861default_ofile=libtool 5862can_build_shared=yes 5863 5864# All known linkers require a `.a' archive for static linking (except M$VC, 5865# which needs '.lib'). 5866libext=a 5867ltmain="$ac_aux_dir/ltmain.sh" 5868ofile="$default_ofile" 5869with_gnu_ld="$lt_cv_prog_gnu_ld" 5870 5871if test -n "$ac_tool_prefix"; then 5872 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5873set dummy ${ac_tool_prefix}ar; ac_word=$2 5874echo "$as_me:$LINENO: checking for $ac_word" >&5 5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5876if test "${ac_cv_prog_AR+set}" = set; then 5877 echo $ECHO_N "(cached) $ECHO_C" >&6 5878else 5879 if test -n "$AR"; then 5880 ac_cv_prog_AR="$AR" # Let the user override the test. 5881else 5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5883for as_dir in $PATH 5884do 5885 IFS=$as_save_IFS 5886 test -z "$as_dir" && as_dir=. 5887 for ac_exec_ext in '' $ac_executable_extensions; do 5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5889 ac_cv_prog_AR="${ac_tool_prefix}ar" 5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5891 break 2 5892 fi 5893done 5894done 5895 5896fi 5897fi 5898AR=$ac_cv_prog_AR 5899if test -n "$AR"; then 5900 echo "$as_me:$LINENO: result: $AR" >&5 5901echo "${ECHO_T}$AR" >&6 5902else 5903 echo "$as_me:$LINENO: result: no" >&5 5904echo "${ECHO_T}no" >&6 5905fi 5906 5907fi 5908if test -z "$ac_cv_prog_AR"; then 5909 ac_ct_AR=$AR 5910 # Extract the first word of "ar", so it can be a program name with args. 5911set dummy ar; ac_word=$2 5912echo "$as_me:$LINENO: checking for $ac_word" >&5 5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5914if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5915 echo $ECHO_N "(cached) $ECHO_C" >&6 5916else 5917 if test -n "$ac_ct_AR"; then 5918 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5919else 5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921for as_dir in $PATH 5922do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_exec_ext in '' $ac_executable_extensions; do 5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5927 ac_cv_prog_ac_ct_AR="ar" 5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5929 break 2 5930 fi 5931done 5932done 5933 5934 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5935fi 5936fi 5937ac_ct_AR=$ac_cv_prog_ac_ct_AR 5938if test -n "$ac_ct_AR"; then 5939 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5940echo "${ECHO_T}$ac_ct_AR" >&6 5941else 5942 echo "$as_me:$LINENO: result: no" >&5 5943echo "${ECHO_T}no" >&6 5944fi 5945 5946 AR=$ac_ct_AR 5947else 5948 AR="$ac_cv_prog_AR" 5949fi 5950 5951if test -n "$ac_tool_prefix"; then 5952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5953set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5954echo "$as_me:$LINENO: checking for $ac_word" >&5 5955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5956if test "${ac_cv_prog_RANLIB+set}" = set; then 5957 echo $ECHO_N "(cached) $ECHO_C" >&6 5958else 5959 if test -n "$RANLIB"; then 5960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5961else 5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5963for as_dir in $PATH 5964do 5965 IFS=$as_save_IFS 5966 test -z "$as_dir" && as_dir=. 5967 for ac_exec_ext in '' $ac_executable_extensions; do 5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5971 break 2 5972 fi 5973done 5974done 5975 5976fi 5977fi 5978RANLIB=$ac_cv_prog_RANLIB 5979if test -n "$RANLIB"; then 5980 echo "$as_me:$LINENO: result: $RANLIB" >&5 5981echo "${ECHO_T}$RANLIB" >&6 5982else 5983 echo "$as_me:$LINENO: result: no" >&5 5984echo "${ECHO_T}no" >&6 5985fi 5986 5987fi 5988if test -z "$ac_cv_prog_RANLIB"; then 5989 ac_ct_RANLIB=$RANLIB 5990 # Extract the first word of "ranlib", so it can be a program name with args. 5991set dummy ranlib; ac_word=$2 5992echo "$as_me:$LINENO: checking for $ac_word" >&5 5993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5994if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5995 echo $ECHO_N "(cached) $ECHO_C" >&6 5996else 5997 if test -n "$ac_ct_RANLIB"; then 5998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5999else 6000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6001for as_dir in $PATH 6002do 6003 IFS=$as_save_IFS 6004 test -z "$as_dir" && as_dir=. 6005 for ac_exec_ext in '' $ac_executable_extensions; do 6006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6007 ac_cv_prog_ac_ct_RANLIB="ranlib" 6008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6009 break 2 6010 fi 6011done 6012done 6013 6014 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6015fi 6016fi 6017ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6018if test -n "$ac_ct_RANLIB"; then 6019 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6020echo "${ECHO_T}$ac_ct_RANLIB" >&6 6021else 6022 echo "$as_me:$LINENO: result: no" >&5 6023echo "${ECHO_T}no" >&6 6024fi 6025 6026 RANLIB=$ac_ct_RANLIB 6027else 6028 RANLIB="$ac_cv_prog_RANLIB" 6029fi 6030 6031if test -n "$ac_tool_prefix"; then 6032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6033set dummy ${ac_tool_prefix}strip; ac_word=$2 6034echo "$as_me:$LINENO: checking for $ac_word" >&5 6035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6036if test "${ac_cv_prog_STRIP+set}" = set; then 6037 echo $ECHO_N "(cached) $ECHO_C" >&6 6038else 6039 if test -n "$STRIP"; then 6040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6041else 6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6043for as_dir in $PATH 6044do 6045 IFS=$as_save_IFS 6046 test -z "$as_dir" && as_dir=. 6047 for ac_exec_ext in '' $ac_executable_extensions; do 6048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6049 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6051 break 2 6052 fi 6053done 6054done 6055 6056fi 6057fi 6058STRIP=$ac_cv_prog_STRIP 6059if test -n "$STRIP"; then 6060 echo "$as_me:$LINENO: result: $STRIP" >&5 6061echo "${ECHO_T}$STRIP" >&6 6062else 6063 echo "$as_me:$LINENO: result: no" >&5 6064echo "${ECHO_T}no" >&6 6065fi 6066 6067fi 6068if test -z "$ac_cv_prog_STRIP"; then 6069 ac_ct_STRIP=$STRIP 6070 # Extract the first word of "strip", so it can be a program name with args. 6071set dummy strip; ac_word=$2 6072echo "$as_me:$LINENO: checking for $ac_word" >&5 6073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6074if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6075 echo $ECHO_N "(cached) $ECHO_C" >&6 6076else 6077 if test -n "$ac_ct_STRIP"; then 6078 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6079else 6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6081for as_dir in $PATH 6082do 6083 IFS=$as_save_IFS 6084 test -z "$as_dir" && as_dir=. 6085 for ac_exec_ext in '' $ac_executable_extensions; do 6086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6087 ac_cv_prog_ac_ct_STRIP="strip" 6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6089 break 2 6090 fi 6091done 6092done 6093 6094 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6095fi 6096fi 6097ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6098if test -n "$ac_ct_STRIP"; then 6099 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6100echo "${ECHO_T}$ac_ct_STRIP" >&6 6101else 6102 echo "$as_me:$LINENO: result: no" >&5 6103echo "${ECHO_T}no" >&6 6104fi 6105 6106 STRIP=$ac_ct_STRIP 6107else 6108 STRIP="$ac_cv_prog_STRIP" 6109fi 6110 6111 6112old_CC="$CC" 6113old_CFLAGS="$CFLAGS" 6114 6115# Set sane defaults for various variables 6116test -z "$AR" && AR=ar 6117test -z "$AR_FLAGS" && AR_FLAGS=cru 6118test -z "$AS" && AS=as 6119test -z "$CC" && CC=cc 6120test -z "$LTCC" && LTCC=$CC 6121test -z "$DLLTOOL" && DLLTOOL=dlltool 6122test -z "$LD" && LD=ld 6123test -z "$LN_S" && LN_S="ln -s" 6124test -z "$MAGIC_CMD" && MAGIC_CMD=file 6125test -z "$NM" && NM=nm 6126test -z "$SED" && SED=sed 6127test -z "$OBJDUMP" && OBJDUMP=objdump 6128test -z "$RANLIB" && RANLIB=: 6129test -z "$STRIP" && STRIP=: 6130test -z "$ac_objext" && ac_objext=o 6131 6132# Determine commands to create old-style static archives. 6133old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6134old_postinstall_cmds='chmod 644 $oldlib' 6135old_postuninstall_cmds= 6136 6137if test -n "$RANLIB"; then 6138 case $host_os in 6139 openbsd*) 6140 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6141 ;; 6142 *) 6143 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6144 ;; 6145 esac 6146 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6147fi 6148 6149for cc_temp in $compiler""; do 6150 case $cc_temp in 6151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6153 \-*) ;; 6154 *) break;; 6155 esac 6156done 6157cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6158 6159 6160# Only perform the check for file, if the check method requires it 6161case $deplibs_check_method in 6162file_magic*) 6163 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6164 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6165echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6166if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6167 echo $ECHO_N "(cached) $ECHO_C" >&6 6168else 6169 case $MAGIC_CMD in 6170[\\/*] | ?:[\\/]*) 6171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6172 ;; 6173*) 6174 lt_save_MAGIC_CMD="$MAGIC_CMD" 6175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6177 for ac_dir in $ac_dummy; do 6178 IFS="$lt_save_ifs" 6179 test -z "$ac_dir" && ac_dir=. 6180 if test -f $ac_dir/${ac_tool_prefix}file; then 6181 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6182 if test -n "$file_magic_test_file"; then 6183 case $deplibs_check_method in 6184 "file_magic "*) 6185 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6188 $EGREP "$file_magic_regex" > /dev/null; then 6189 : 6190 else 6191 cat <<EOF 1>&2 6192 6193*** Warning: the command libtool uses to detect shared libraries, 6194*** $file_magic_cmd, produces output that libtool cannot recognize. 6195*** The result is that libtool may fail to recognize shared libraries 6196*** as such. This will affect the creation of libtool libraries that 6197*** depend on shared libraries, but programs linked with such libtool 6198*** libraries will work regardless of this problem. Nevertheless, you 6199*** may want to report the problem to your system manager and/or to 6200*** bug-libtool@gnu.org 6201 6202EOF 6203 fi ;; 6204 esac 6205 fi 6206 break 6207 fi 6208 done 6209 IFS="$lt_save_ifs" 6210 MAGIC_CMD="$lt_save_MAGIC_CMD" 6211 ;; 6212esac 6213fi 6214 6215MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6216if test -n "$MAGIC_CMD"; then 6217 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6218echo "${ECHO_T}$MAGIC_CMD" >&6 6219else 6220 echo "$as_me:$LINENO: result: no" >&5 6221echo "${ECHO_T}no" >&6 6222fi 6223 6224if test -z "$lt_cv_path_MAGIC_CMD"; then 6225 if test -n "$ac_tool_prefix"; then 6226 echo "$as_me:$LINENO: checking for file" >&5 6227echo $ECHO_N "checking for file... $ECHO_C" >&6 6228if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6229 echo $ECHO_N "(cached) $ECHO_C" >&6 6230else 6231 case $MAGIC_CMD in 6232[\\/*] | ?:[\\/]*) 6233 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6234 ;; 6235*) 6236 lt_save_MAGIC_CMD="$MAGIC_CMD" 6237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6238 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6239 for ac_dir in $ac_dummy; do 6240 IFS="$lt_save_ifs" 6241 test -z "$ac_dir" && ac_dir=. 6242 if test -f $ac_dir/file; then 6243 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6244 if test -n "$file_magic_test_file"; then 6245 case $deplibs_check_method in 6246 "file_magic "*) 6247 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6249 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6250 $EGREP "$file_magic_regex" > /dev/null; then 6251 : 6252 else 6253 cat <<EOF 1>&2 6254 6255*** Warning: the command libtool uses to detect shared libraries, 6256*** $file_magic_cmd, produces output that libtool cannot recognize. 6257*** The result is that libtool may fail to recognize shared libraries 6258*** as such. This will affect the creation of libtool libraries that 6259*** depend on shared libraries, but programs linked with such libtool 6260*** libraries will work regardless of this problem. Nevertheless, you 6261*** may want to report the problem to your system manager and/or to 6262*** bug-libtool@gnu.org 6263 6264EOF 6265 fi ;; 6266 esac 6267 fi 6268 break 6269 fi 6270 done 6271 IFS="$lt_save_ifs" 6272 MAGIC_CMD="$lt_save_MAGIC_CMD" 6273 ;; 6274esac 6275fi 6276 6277MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6278if test -n "$MAGIC_CMD"; then 6279 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6280echo "${ECHO_T}$MAGIC_CMD" >&6 6281else 6282 echo "$as_me:$LINENO: result: no" >&5 6283echo "${ECHO_T}no" >&6 6284fi 6285 6286 else 6287 MAGIC_CMD=: 6288 fi 6289fi 6290 6291 fi 6292 ;; 6293esac 6294 6295enable_dlopen=no 6296enable_win32_dll=no 6297 6298# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6299if test "${enable_libtool_lock+set}" = set; then 6300 enableval="$enable_libtool_lock" 6301 6302fi; 6303test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6304 6305 6306# Check whether --with-pic or --without-pic was given. 6307if test "${with_pic+set}" = set; then 6308 withval="$with_pic" 6309 pic_mode="$withval" 6310else 6311 pic_mode=default 6312fi; 6313test -z "$pic_mode" && pic_mode=default 6314 6315# Use C for the default configuration in the libtool script 6316tagname= 6317lt_save_CC="$CC" 6318ac_ext=c 6319ac_cpp='$CPP $CPPFLAGS' 6320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6322ac_compiler_gnu=$ac_cv_c_compiler_gnu 6323 6324 6325# Source file extension for C test sources. 6326ac_ext=c 6327 6328# Object file extension for compiled C test sources. 6329objext=o 6330objext=$objext 6331 6332# Code to be used in simple compile tests 6333lt_simple_compile_test_code="int some_variable = 0;\n" 6334 6335# Code to be used in simple link tests 6336lt_simple_link_test_code='int main(){return(0);}\n' 6337 6338 6339# If no C compiler was specified, use CC. 6340LTCC=${LTCC-"$CC"} 6341 6342# Allow CC to be a program name with arguments. 6343compiler=$CC 6344 6345 6346# save warnings/boilerplate of simple test code 6347ac_outfile=conftest.$ac_objext 6348printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6349eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6350_lt_compiler_boilerplate=`cat conftest.err` 6351$rm conftest* 6352 6353ac_outfile=conftest.$ac_objext 6354printf "$lt_simple_link_test_code" >conftest.$ac_ext 6355eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6356_lt_linker_boilerplate=`cat conftest.err` 6357$rm conftest* 6358 6359 6360# 6361# Check for any special shared library compilation flags. 6362# 6363lt_prog_cc_shlib= 6364if test "$GCC" = no; then 6365 case $host_os in 6366 sco3.2v5*) 6367 lt_prog_cc_shlib='-belf' 6368 ;; 6369 esac 6370fi 6371if test -n "$lt_prog_cc_shlib"; then 6372 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6373echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6374 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6375 else 6376 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6377echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6378 lt_cv_prog_cc_can_build_shared=no 6379 fi 6380fi 6381 6382 6383# 6384# Check to make sure the static flag actually works. 6385# 6386echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6387echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6388if test "${lt_prog_compiler_static_works+set}" = set; then 6389 echo $ECHO_N "(cached) $ECHO_C" >&6 6390else 6391 lt_prog_compiler_static_works=no 6392 save_LDFLAGS="$LDFLAGS" 6393 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6394 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6396 # The compiler can only warn and ignore the option if not recognized 6397 # So say no if there are warnings 6398 if test -s conftest.err; then 6399 # Append any errors to the config.log. 6400 cat conftest.err 1>&5 6401 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6402 $SED '/^$/d' conftest.err >conftest.er2 6403 if diff conftest.exp conftest.er2 >/dev/null; then 6404 lt_prog_compiler_static_works=yes 6405 fi 6406 else 6407 lt_prog_compiler_static_works=yes 6408 fi 6409 fi 6410 $rm conftest* 6411 LDFLAGS="$save_LDFLAGS" 6412 6413fi 6414echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6415echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6416 6417if test x"$lt_prog_compiler_static_works" = xyes; then 6418 : 6419else 6420 lt_prog_compiler_static= 6421fi 6422 6423 6424 6425 6426lt_prog_compiler_no_builtin_flag= 6427 6428if test "$GCC" = yes; then 6429 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6430 6431 6432echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6433echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6434if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6435 echo $ECHO_N "(cached) $ECHO_C" >&6 6436else 6437 lt_cv_prog_compiler_rtti_exceptions=no 6438 ac_outfile=conftest.$ac_objext 6439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6440 lt_compiler_flag="-fno-rtti -fno-exceptions" 6441 # Insert the option either (1) after the last *FLAGS variable, or 6442 # (2) before a word containing "conftest.", or (3) at the end. 6443 # Note that $ac_compile itself does not contain backslashes and begins 6444 # with a dollar sign (not a hyphen), so the echo should work correctly. 6445 # The option is referenced via a variable to avoid confusing sed. 6446 lt_compile=`echo "$ac_compile" | $SED \ 6447 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6449 -e 's:$: $lt_compiler_flag:'` 6450 (eval echo "\"\$as_me:6450: $lt_compile\"" >&5) 6451 (eval "$lt_compile" 2>conftest.err) 6452 ac_status=$? 6453 cat conftest.err >&5 6454 echo "$as_me:6454: \$? = $ac_status" >&5 6455 if (exit $ac_status) && test -s "$ac_outfile"; then 6456 # The compiler can only warn and ignore the option if not recognized 6457 # So say no if there are warnings other than the usual output. 6458 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6459 $SED '/^$/d' conftest.err >conftest.er2 6460 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6461 lt_cv_prog_compiler_rtti_exceptions=yes 6462 fi 6463 fi 6464 $rm conftest* 6465 6466fi 6467echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6468echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6469 6470if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6471 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6472else 6473 : 6474fi 6475 6476fi 6477 6478lt_prog_compiler_wl= 6479lt_prog_compiler_pic= 6480lt_prog_compiler_static= 6481 6482echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6483echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6484 6485 if test "$GCC" = yes; then 6486 lt_prog_compiler_wl='-Wl,' 6487 lt_prog_compiler_static='-static' 6488 6489 case $host_os in 6490 aix*) 6491 # All AIX code is PIC. 6492 if test "$host_cpu" = ia64; then 6493 # AIX 5 now supports IA64 processor 6494 lt_prog_compiler_static='-Bstatic' 6495 fi 6496 ;; 6497 6498 amigaos*) 6499 # FIXME: we need at least 68020 code to build shared libraries, but 6500 # adding the `-m68020' flag to GCC prevents building anything better, 6501 # like `-m68040'. 6502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6503 ;; 6504 6505 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6506 # PIC is the default for these OSes. 6507 ;; 6508 6509 mingw* | pw32* | os2*) 6510 # This hack is so that the source file can tell whether it is being 6511 # built for inclusion in a dll (and should export symbols for example). 6512 lt_prog_compiler_pic='-DDLL_EXPORT' 6513 ;; 6514 6515 darwin* | rhapsody*) 6516 # PIC is the default on this platform 6517 # Common symbols not allowed in MH_DYLIB files 6518 lt_prog_compiler_pic='-fno-common' 6519 ;; 6520 6521 msdosdjgpp*) 6522 # Just because we use GCC doesn't mean we suddenly get shared libraries 6523 # on systems that don't support them. 6524 lt_prog_compiler_can_build_shared=no 6525 enable_shared=no 6526 ;; 6527 6528 sysv4*MP*) 6529 if test -d /usr/nec; then 6530 lt_prog_compiler_pic=-Kconform_pic 6531 fi 6532 ;; 6533 6534 hpux*) 6535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6536 # not for PA HP-UX. 6537 case "$host_cpu" in 6538 hppa*64*|ia64*) 6539 # +Z the default 6540 ;; 6541 *) 6542 lt_prog_compiler_pic='-fPIC' 6543 ;; 6544 esac 6545 ;; 6546 6547 *) 6548 lt_prog_compiler_pic='-fPIC' 6549 ;; 6550 esac 6551 else 6552 # PORTME Check for flag to pass linker flags through the system compiler. 6553 case $host_os in 6554 aix*) 6555 lt_prog_compiler_wl='-Wl,' 6556 if test "$host_cpu" = ia64; then 6557 # AIX 5 now supports IA64 processor 6558 lt_prog_compiler_static='-Bstatic' 6559 else 6560 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6561 fi 6562 ;; 6563 darwin*) 6564 # PIC is the default on this platform 6565 # Common symbols not allowed in MH_DYLIB files 6566 case $cc_basename in 6567 xlc*) 6568 lt_prog_compiler_pic='-qnocommon' 6569 lt_prog_compiler_wl='-Wl,' 6570 ;; 6571 esac 6572 ;; 6573 6574 mingw* | pw32* | os2*) 6575 # This hack is so that the source file can tell whether it is being 6576 # built for inclusion in a dll (and should export symbols for example). 6577 lt_prog_compiler_pic='-DDLL_EXPORT' 6578 ;; 6579 6580 hpux9* | hpux10* | hpux11*) 6581 lt_prog_compiler_wl='-Wl,' 6582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6583 # not for PA HP-UX. 6584 case "$host_cpu" in 6585 hppa*64*|ia64*) 6586 # +Z the default 6587 ;; 6588 *) 6589 lt_prog_compiler_pic='+Z' 6590 ;; 6591 esac 6592 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6593 lt_prog_compiler_static='${wl}-a ${wl}archive' 6594 ;; 6595 6596 irix5* | irix6* | nonstopux*) 6597 lt_prog_compiler_wl='-Wl,' 6598 # PIC (with -KPIC) is the default. 6599 lt_prog_compiler_static='-non_shared' 6600 ;; 6601 6602 newsos6) 6603 lt_prog_compiler_pic='-KPIC' 6604 lt_prog_compiler_static='-Bstatic' 6605 ;; 6606 6607 linux*) 6608 case $cc_basename in 6609 icc* | ecc*) 6610 lt_prog_compiler_wl='-Wl,' 6611 lt_prog_compiler_pic='-KPIC' 6612 lt_prog_compiler_static='-static' 6613 ;; 6614 pgcc* | pgf77* | pgf90*) 6615 # Portland Group compilers (*not* the Pentium gcc compiler, 6616 # which looks to be a dead project) 6617 lt_prog_compiler_wl='-Wl,' 6618 lt_prog_compiler_pic='-fpic' 6619 lt_prog_compiler_static='-static' 6620 ;; 6621 ccc*) 6622 lt_prog_compiler_wl='-Wl,' 6623 # All Alpha code is PIC. 6624 lt_prog_compiler_static='-non_shared' 6625 ;; 6626 esac 6627 ;; 6628 6629 osf3* | osf4* | osf5*) 6630 lt_prog_compiler_wl='-Wl,' 6631 # All OSF/1 code is PIC. 6632 lt_prog_compiler_static='-non_shared' 6633 ;; 6634 6635 sco3.2v5*) 6636 lt_prog_compiler_pic='-Kpic' 6637 lt_prog_compiler_static='-dn' 6638 ;; 6639 6640 solaris*) 6641 lt_prog_compiler_pic='-KPIC' 6642 lt_prog_compiler_static='-Bstatic' 6643 case $cc_basename in 6644 f77* | f90* | f95*) 6645 lt_prog_compiler_wl='-Qoption ld ';; 6646 *) 6647 lt_prog_compiler_wl='-Wl,';; 6648 esac 6649 ;; 6650 6651 sunos4*) 6652 lt_prog_compiler_wl='-Qoption ld ' 6653 lt_prog_compiler_pic='-PIC' 6654 lt_prog_compiler_static='-Bstatic' 6655 ;; 6656 6657 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6658 lt_prog_compiler_wl='-Wl,' 6659 lt_prog_compiler_pic='-KPIC' 6660 lt_prog_compiler_static='-Bstatic' 6661 ;; 6662 6663 sysv4*MP*) 6664 if test -d /usr/nec ;then 6665 lt_prog_compiler_pic='-Kconform_pic' 6666 lt_prog_compiler_static='-Bstatic' 6667 fi 6668 ;; 6669 6670 unicos*) 6671 lt_prog_compiler_wl='-Wl,' 6672 lt_prog_compiler_can_build_shared=no 6673 ;; 6674 6675 uts4*) 6676 lt_prog_compiler_pic='-pic' 6677 lt_prog_compiler_static='-Bstatic' 6678 ;; 6679 6680 *) 6681 lt_prog_compiler_can_build_shared=no 6682 ;; 6683 esac 6684 fi 6685 6686echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6687echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6688 6689# 6690# Check to make sure the PIC flag actually works. 6691# 6692if test -n "$lt_prog_compiler_pic"; then 6693 6694echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6695echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6696if test "${lt_prog_compiler_pic_works+set}" = set; then 6697 echo $ECHO_N "(cached) $ECHO_C" >&6 6698else 6699 lt_prog_compiler_pic_works=no 6700 ac_outfile=conftest.$ac_objext 6701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6702 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6703 # Insert the option either (1) after the last *FLAGS variable, or 6704 # (2) before a word containing "conftest.", or (3) at the end. 6705 # Note that $ac_compile itself does not contain backslashes and begins 6706 # with a dollar sign (not a hyphen), so the echo should work correctly. 6707 # The option is referenced via a variable to avoid confusing sed. 6708 lt_compile=`echo "$ac_compile" | $SED \ 6709 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6711 -e 's:$: $lt_compiler_flag:'` 6712 (eval echo "\"\$as_me:6712: $lt_compile\"" >&5) 6713 (eval "$lt_compile" 2>conftest.err) 6714 ac_status=$? 6715 cat conftest.err >&5 6716 echo "$as_me:6716: \$? = $ac_status" >&5 6717 if (exit $ac_status) && test -s "$ac_outfile"; then 6718 # The compiler can only warn and ignore the option if not recognized 6719 # So say no if there are warnings other than the usual output. 6720 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6721 $SED '/^$/d' conftest.err >conftest.er2 6722 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6723 lt_prog_compiler_pic_works=yes 6724 fi 6725 fi 6726 $rm conftest* 6727 6728fi 6729echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6730echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6731 6732if test x"$lt_prog_compiler_pic_works" = xyes; then 6733 case $lt_prog_compiler_pic in 6734 "" | " "*) ;; 6735 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6736 esac 6737else 6738 lt_prog_compiler_pic= 6739 lt_prog_compiler_can_build_shared=no 6740fi 6741 6742fi 6743case "$host_os" in 6744 # For platforms which do not support PIC, -DPIC is meaningless: 6745 *djgpp*) 6746 lt_prog_compiler_pic= 6747 ;; 6748 *) 6749 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6750 ;; 6751esac 6752 6753echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6754echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6755if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6756 echo $ECHO_N "(cached) $ECHO_C" >&6 6757else 6758 lt_cv_prog_compiler_c_o=no 6759 $rm -r conftest 2>/dev/null 6760 mkdir conftest 6761 cd conftest 6762 mkdir out 6763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6764 6765 lt_compiler_flag="-o out/conftest2.$ac_objext" 6766 # Insert the option either (1) after the last *FLAGS variable, or 6767 # (2) before a word containing "conftest.", or (3) at the end. 6768 # Note that $ac_compile itself does not contain backslashes and begins 6769 # with a dollar sign (not a hyphen), so the echo should work correctly. 6770 lt_compile=`echo "$ac_compile" | $SED \ 6771 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6773 -e 's:$: $lt_compiler_flag:'` 6774 (eval echo "\"\$as_me:6774: $lt_compile\"" >&5) 6775 (eval "$lt_compile" 2>out/conftest.err) 6776 ac_status=$? 6777 cat out/conftest.err >&5 6778 echo "$as_me:6778: \$? = $ac_status" >&5 6779 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6780 then 6781 # The compiler can only warn and ignore the option if not recognized 6782 # So say no if there are warnings 6783 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 6784 $SED '/^$/d' out/conftest.err >out/conftest.er2 6785 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6786 lt_cv_prog_compiler_c_o=yes 6787 fi 6788 fi 6789 chmod u+w . 6790 $rm conftest* 6791 # SGI C++ compiler will create directory out/ii_files/ for 6792 # template instantiation 6793 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6794 $rm out/* && rmdir out 6795 cd .. 6796 rmdir conftest 6797 $rm conftest* 6798 6799fi 6800echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6801echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6802 6803 6804hard_links="nottested" 6805if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6806 # do not overwrite the value of need_locks provided by the user 6807 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6808echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6809 hard_links=yes 6810 $rm conftest* 6811 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6812 touch conftest.a 6813 ln conftest.a conftest.b 2>&5 || hard_links=no 6814 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6815 echo "$as_me:$LINENO: result: $hard_links" >&5 6816echo "${ECHO_T}$hard_links" >&6 6817 if test "$hard_links" = no; then 6818 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6819echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6820 need_locks=warn 6821 fi 6822else 6823 need_locks=no 6824fi 6825 6826echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6827echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6828 6829 runpath_var= 6830 allow_undefined_flag= 6831 enable_shared_with_static_runtimes=no 6832 archive_cmds= 6833 archive_expsym_cmds= 6834 old_archive_From_new_cmds= 6835 old_archive_from_expsyms_cmds= 6836 export_dynamic_flag_spec= 6837 whole_archive_flag_spec= 6838 thread_safe_flag_spec= 6839 hardcode_libdir_flag_spec= 6840 hardcode_libdir_flag_spec_ld= 6841 hardcode_libdir_separator= 6842 hardcode_direct=no 6843 hardcode_minus_L=no 6844 hardcode_shlibpath_var=unsupported 6845 link_all_deplibs=unknown 6846 hardcode_automatic=no 6847 module_cmds= 6848 module_expsym_cmds= 6849 always_export_symbols=no 6850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6851 # include_expsyms should be a list of space-separated symbols to be *always* 6852 # included in the symbol list 6853 include_expsyms= 6854 # exclude_expsyms can be an extended regexp of symbols to exclude 6855 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6856 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6857 # as well as any symbol that contains `d'. 6858 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6859 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6860 # platforms (ab)use it in PIC code, but their linkers get confused if 6861 # the symbol is explicitly referenced. Since portable code cannot 6862 # rely on this symbol name, it's probably fine to never include it in 6863 # preloaded symbol tables. 6864 extract_expsyms_cmds= 6865 # Just being paranoid about ensuring that cc_basename is set. 6866 for cc_temp in $compiler""; do 6867 case $cc_temp in 6868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6870 \-*) ;; 6871 *) break;; 6872 esac 6873done 6874cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6875 6876 case $host_os in 6877 cygwin* | mingw* | pw32*) 6878 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6879 # When not using gcc, we currently assume that we are using 6880 # Microsoft Visual C++. 6881 if test "$GCC" != yes; then 6882 with_gnu_ld=no 6883 fi 6884 ;; 6885 openbsd*) 6886 with_gnu_ld=no 6887 ;; 6888 esac 6889 6890 ld_shlibs=yes 6891 if test "$with_gnu_ld" = yes; then 6892 # If archive_cmds runs LD, not CC, wlarc should be empty 6893 wlarc='${wl}' 6894 6895 # Set some defaults for GNU ld with shared library support. These 6896 # are reset later if shared libraries are not supported. Putting them 6897 # here allows them to be overridden if necessary. 6898 runpath_var=LD_RUN_PATH 6899 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6900 export_dynamic_flag_spec='${wl}--export-dynamic' 6901 # ancient GNU ld didn't support --whole-archive et. al. 6902 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6903 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6904 else 6905 whole_archive_flag_spec= 6906 fi 6907 supports_anon_versioning=no 6908 case `$LD -v 2>/dev/null` in 6909 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6910 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6911 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6912 *\ 2.11.*) ;; # other 2.11 versions 6913 *) supports_anon_versioning=yes ;; 6914 esac 6915 6916 # See if GNU ld supports shared libraries. 6917 case $host_os in 6918 aix3* | aix4* | aix5*) 6919 # On AIX/PPC, the GNU linker is very broken 6920 if test "$host_cpu" != ia64; then 6921 ld_shlibs=no 6922 cat <<EOF 1>&2 6923 6924*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6925*** to be unable to reliably create shared libraries on AIX. 6926*** Therefore, libtool is disabling shared libraries support. If you 6927*** really care for shared libraries, you may want to modify your PATH 6928*** so that a non-GNU linker is found, and then restart. 6929 6930EOF 6931 fi 6932 ;; 6933 6934 amigaos*) 6935 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)' 6936 hardcode_libdir_flag_spec='-L$libdir' 6937 hardcode_minus_L=yes 6938 6939 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6940 # that the semantics of dynamic libraries on AmigaOS, at least up 6941 # to version 4, is to share data among multiple programs linked 6942 # with the same dynamic library. Since this doesn't match the 6943 # behavior of shared libraries on other platforms, we can't use 6944 # them. 6945 ld_shlibs=no 6946 ;; 6947 6948 beos*) 6949 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6950 allow_undefined_flag=unsupported 6951 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6952 # support --undefined. This deserves some investigation. FIXME 6953 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6954 else 6955 ld_shlibs=no 6956 fi 6957 ;; 6958 6959 cygwin* | mingw* | pw32*) 6960 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6961 # as there is no search path for DLLs. 6962 hardcode_libdir_flag_spec='-L$libdir' 6963 allow_undefined_flag=unsupported 6964 always_export_symbols=no 6965 enable_shared_with_static_runtimes=yes 6966 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6967 6968 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6970 # If the export-symbols file already is a .def file (1st line 6971 # is EXPORTS), use it as is; otherwise, prepend... 6972 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6973 cp $export_symbols $output_objdir/$soname.def; 6974 else 6975 echo EXPORTS > $output_objdir/$soname.def; 6976 cat $export_symbols >> $output_objdir/$soname.def; 6977 fi~ 6978 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6979 else 6980 ld_shlibs=no 6981 fi 6982 ;; 6983 6984 linux*) 6985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6986 tmp_addflag= 6987 case $cc_basename,$host_cpu in 6988 pgcc*) # Portland Group C compiler 6989 whole_archive_flag_spec= 6990 ;; 6991 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 6992 whole_archive_flag_spec= 6993 tmp_addflag=' -fpic -Mnomain' ;; 6994 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6995 tmp_addflag=' -i_dynamic' ;; 6996 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6997 tmp_addflag=' -i_dynamic -nofor_main' ;; 6998 ifc* | ifort*) # Intel Fortran compiler 6999 tmp_addflag=' -nofor_main' ;; 7000 esac 7001 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7002 7003 if test $supports_anon_versioning = yes; then 7004 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7006 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7007 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7008 fi 7009 else 7010 ld_shlibs=no 7011 fi 7012 ;; 7013 7014 netbsd*) 7015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7016 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7017 wlarc= 7018 else 7019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7021 fi 7022 ;; 7023 7024 solaris* | sysv5*) 7025 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7026 ld_shlibs=no 7027 cat <<EOF 1>&2 7028 7029*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7030*** create shared libraries on Solaris systems. Therefore, libtool 7031*** is disabling shared libraries support. We urge you to upgrade GNU 7032*** binutils to release 2.9.1 or newer. Another option is to modify 7033*** your PATH or compiler configuration so that the native linker is 7034*** used, and then restart. 7035 7036EOF 7037 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7040 else 7041 ld_shlibs=no 7042 fi 7043 ;; 7044 7045 sunos4*) 7046 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7047 wlarc= 7048 hardcode_direct=yes 7049 hardcode_shlibpath_var=no 7050 ;; 7051 7052 *) 7053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7056 else 7057 ld_shlibs=no 7058 fi 7059 ;; 7060 esac 7061 7062 if test "$ld_shlibs" = no; then 7063 runpath_var= 7064 hardcode_libdir_flag_spec= 7065 export_dynamic_flag_spec= 7066 whole_archive_flag_spec= 7067 fi 7068 else 7069 # PORTME fill in a description of your system's linker (not GNU ld) 7070 case $host_os in 7071 aix3*) 7072 allow_undefined_flag=unsupported 7073 always_export_symbols=yes 7074 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' 7075 # Note: this linker hardcodes the directories in LIBPATH if there 7076 # are no directories specified by -L. 7077 hardcode_minus_L=yes 7078 if test "$GCC" = yes && test -z "$link_static_flag"; then 7079 # Neither direct hardcoding nor static linking is supported with a 7080 # broken collect2. 7081 hardcode_direct=unsupported 7082 fi 7083 ;; 7084 7085 aix4* | aix5*) 7086 if test "$host_cpu" = ia64; then 7087 # On IA64, the linker does run time linking by default, so we don't 7088 # have to do anything special. 7089 aix_use_runtimelinking=no 7090 exp_sym_flag='-Bexport' 7091 no_entry_flag="" 7092 else 7093 # If we're using GNU nm, then we don't want the "-C" option. 7094 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7095 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7096 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' 7097 else 7098 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' 7099 fi 7100 aix_use_runtimelinking=no 7101 7102 # Test if we are trying to use run time linking or normal 7103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7104 # need to do runtime linking. 7105 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7106 for ld_flag in $LDFLAGS; do 7107 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7108 aix_use_runtimelinking=yes 7109 break 7110 fi 7111 done 7112 esac 7113 7114 exp_sym_flag='-bexport' 7115 no_entry_flag='-bnoentry' 7116 fi 7117 7118 # When large executables or shared objects are built, AIX ld can 7119 # have problems creating the table of contents. If linking a library 7120 # or program results in "error TOC overflow" add -mminimal-toc to 7121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7123 7124 archive_cmds='' 7125 hardcode_direct=yes 7126 hardcode_libdir_separator=':' 7127 link_all_deplibs=yes 7128 7129 if test "$GCC" = yes; then 7130 case $host_os in aix4.[012]|aix4.[012].*) 7131 # We only want to do this on AIX 4.2 and lower, the check 7132 # below for broken collect2 doesn't work under 4.3+ 7133 collect2name=`${CC} -print-prog-name=collect2` 7134 if test -f "$collect2name" && \ 7135 strings "$collect2name" | grep resolve_lib_name >/dev/null 7136 then 7137 # We have reworked collect2 7138 hardcode_direct=yes 7139 else 7140 # We have old collect2 7141 hardcode_direct=unsupported 7142 # It fails to find uninstalled libraries when the uninstalled 7143 # path is not listed in the libpath. Setting hardcode_minus_L 7144 # to unsupported forces relinking 7145 hardcode_minus_L=yes 7146 hardcode_libdir_flag_spec='-L$libdir' 7147 hardcode_libdir_separator= 7148 fi 7149 esac 7150 shared_flag='-shared' 7151 if test "$aix_use_runtimelinking" = yes; then 7152 shared_flag="$shared_flag "'${wl}-G' 7153 fi 7154 else 7155 # not using gcc 7156 if test "$host_cpu" = ia64; then 7157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7158 # chokes on -Wl,-G. The following line is correct: 7159 shared_flag='-G' 7160 else 7161 if test "$aix_use_runtimelinking" = yes; then 7162 shared_flag='${wl}-G' 7163 else 7164 shared_flag='${wl}-bM:SRE' 7165 fi 7166 fi 7167 fi 7168 7169 # It seems that -bexpall does not export symbols beginning with 7170 # underscore (_), so it is better to generate a list of symbols to export. 7171 always_export_symbols=yes 7172 if test "$aix_use_runtimelinking" = yes; then 7173 # Warning - without using the other runtime loading flags (-brtl), 7174 # -berok will link without error, but may produce a broken library. 7175 allow_undefined_flag='-berok' 7176 # Determine the default libpath from the value encoded in an empty executable. 7177 cat >conftest.$ac_ext <<_ACEOF 7178/* confdefs.h. */ 7179_ACEOF 7180cat confdefs.h >>conftest.$ac_ext 7181cat >>conftest.$ac_ext <<_ACEOF 7182/* end confdefs.h. */ 7183 7184int 7185main () 7186{ 7187 7188 ; 7189 return 0; 7190} 7191_ACEOF 7192rm -f conftest.$ac_objext conftest$ac_exeext 7193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7194 (eval $ac_link) 2>conftest.er1 7195 ac_status=$? 7196 grep -v '^ *+' conftest.er1 >conftest.err 7197 rm -f conftest.er1 7198 cat conftest.err >&5 7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7200 (exit $ac_status); } && 7201 { ac_try='test -z "$ac_c_werror_flag" 7202 || test ! -s conftest.err' 7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7204 (eval $ac_try) 2>&5 7205 ac_status=$? 7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7207 (exit $ac_status); }; } && 7208 { ac_try='test -s conftest$ac_exeext' 7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7210 (eval $ac_try) 2>&5 7211 ac_status=$? 7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7213 (exit $ac_status); }; }; then 7214 7215aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7216}'` 7217# Check for a 64-bit object if we didn't find anything. 7218if 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; } 7219}'`; fi 7220else 7221 echo "$as_me: failed program was:" >&5 7222sed 's/^/| /' conftest.$ac_ext >&5 7223 7224fi 7225rm -f conftest.err conftest.$ac_objext \ 7226 conftest$ac_exeext conftest.$ac_ext 7227if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7228 7229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7230 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" 7231 else 7232 if test "$host_cpu" = ia64; then 7233 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7234 allow_undefined_flag="-z nodefs" 7235 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" 7236 else 7237 # Determine the default libpath from the value encoded in an empty executable. 7238 cat >conftest.$ac_ext <<_ACEOF 7239/* confdefs.h. */ 7240_ACEOF 7241cat confdefs.h >>conftest.$ac_ext 7242cat >>conftest.$ac_ext <<_ACEOF 7243/* end confdefs.h. */ 7244 7245int 7246main () 7247{ 7248 7249 ; 7250 return 0; 7251} 7252_ACEOF 7253rm -f conftest.$ac_objext conftest$ac_exeext 7254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7255 (eval $ac_link) 2>conftest.er1 7256 ac_status=$? 7257 grep -v '^ *+' conftest.er1 >conftest.err 7258 rm -f conftest.er1 7259 cat conftest.err >&5 7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7261 (exit $ac_status); } && 7262 { ac_try='test -z "$ac_c_werror_flag" 7263 || test ! -s conftest.err' 7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7265 (eval $ac_try) 2>&5 7266 ac_status=$? 7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7268 (exit $ac_status); }; } && 7269 { ac_try='test -s conftest$ac_exeext' 7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7271 (eval $ac_try) 2>&5 7272 ac_status=$? 7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7274 (exit $ac_status); }; }; then 7275 7276aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7277}'` 7278# Check for a 64-bit object if we didn't find anything. 7279if 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; } 7280}'`; fi 7281else 7282 echo "$as_me: failed program was:" >&5 7283sed 's/^/| /' conftest.$ac_ext >&5 7284 7285fi 7286rm -f conftest.err conftest.$ac_objext \ 7287 conftest$ac_exeext conftest.$ac_ext 7288if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7289 7290 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7291 # Warning - without using the other run time loading flags, 7292 # -berok will link without error, but may produce a broken library. 7293 no_undefined_flag=' ${wl}-bernotok' 7294 allow_undefined_flag=' ${wl}-berok' 7295 # -bexpall does not export symbols beginning with underscore (_) 7296 always_export_symbols=yes 7297 # Exported symbols can be pulled into shared objects from archives 7298 whole_archive_flag_spec=' ' 7299 archive_cmds_need_lc=yes 7300 # This is similar to how AIX traditionally builds it's shared libraries. 7301 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' 7302 fi 7303 fi 7304 ;; 7305 7306 amigaos*) 7307 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)' 7308 hardcode_libdir_flag_spec='-L$libdir' 7309 hardcode_minus_L=yes 7310 # see comment about different semantics on the GNU ld section 7311 ld_shlibs=no 7312 ;; 7313 7314 bsdi[45]*) 7315 export_dynamic_flag_spec=-rdynamic 7316 ;; 7317 7318 cygwin* | mingw* | pw32*) 7319 # When not using gcc, we currently assume that we are using 7320 # Microsoft Visual C++. 7321 # hardcode_libdir_flag_spec is actually meaningless, as there is 7322 # no search path for DLLs. 7323 hardcode_libdir_flag_spec=' ' 7324 allow_undefined_flag=unsupported 7325 # Tell ltmain to make .lib files, not .a files. 7326 libext=lib 7327 # Tell ltmain to make .dll files, not .so files. 7328 shrext_cmds=".dll" 7329 # FIXME: Setting linknames here is a bad hack. 7330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7331 # The linker will automatically build a .lib file if we build a DLL. 7332 old_archive_From_new_cmds='true' 7333 # FIXME: Should let the user specify the lib program. 7334 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7335 fix_srcfile_path='`cygpath -w "$srcfile"`' 7336 enable_shared_with_static_runtimes=yes 7337 ;; 7338 7339 darwin* | rhapsody*) 7340 case "$host_os" in 7341 rhapsody* | darwin1.[012]) 7342 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7343 ;; 7344 *) # Darwin 1.3 on 7345 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7346 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7347 else 7348 case ${MACOSX_DEPLOYMENT_TARGET} in 7349 10.[012]) 7350 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7351 ;; 7352 10.*) 7353 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7354 ;; 7355 esac 7356 fi 7357 ;; 7358 esac 7359 archive_cmds_need_lc=no 7360 hardcode_direct=no 7361 hardcode_automatic=yes 7362 hardcode_shlibpath_var=unsupported 7363 whole_archive_flag_spec='' 7364 link_all_deplibs=yes 7365 if test "$GCC" = yes ; then 7366 output_verbose_link_cmd='echo' 7367 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7368 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7370 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}' 7371 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}' 7372 else 7373 case $cc_basename in 7374 xlc*) 7375 output_verbose_link_cmd='echo' 7376 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7377 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7379 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}' 7380 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}' 7381 ;; 7382 *) 7383 ld_shlibs=no 7384 ;; 7385 esac 7386 fi 7387 ;; 7388 7389 dgux*) 7390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7391 hardcode_libdir_flag_spec='-L$libdir' 7392 hardcode_shlibpath_var=no 7393 ;; 7394 7395 freebsd1*) 7396 ld_shlibs=no 7397 ;; 7398 7399 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7400 # support. Future versions do this automatically, but an explicit c++rt0.o 7401 # does not break anything, and helps significantly (at the cost of a little 7402 # extra space). 7403 freebsd2.2*) 7404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7405 hardcode_libdir_flag_spec='-R$libdir' 7406 hardcode_direct=yes 7407 hardcode_shlibpath_var=no 7408 ;; 7409 7410 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7411 freebsd2*) 7412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7413 hardcode_direct=yes 7414 hardcode_minus_L=yes 7415 hardcode_shlibpath_var=no 7416 ;; 7417 7418 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7419 freebsd* | kfreebsd*-gnu | dragonfly*) 7420 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7421 hardcode_libdir_flag_spec='-R$libdir' 7422 hardcode_direct=yes 7423 hardcode_shlibpath_var=no 7424 ;; 7425 7426 hpux9*) 7427 if test "$GCC" = yes; then 7428 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' 7429 else 7430 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' 7431 fi 7432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7433 hardcode_libdir_separator=: 7434 hardcode_direct=yes 7435 7436 # hardcode_minus_L: Not really in the search PATH, 7437 # but as the default location of the library. 7438 hardcode_minus_L=yes 7439 export_dynamic_flag_spec='${wl}-E' 7440 ;; 7441 7442 hpux10* | hpux11*) 7443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7444 case "$host_cpu" in 7445 hppa*64*|ia64*) 7446 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7447 ;; 7448 *) 7449 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7450 ;; 7451 esac 7452 else 7453 case "$host_cpu" in 7454 hppa*64*|ia64*) 7455 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7456 ;; 7457 *) 7458 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7459 ;; 7460 esac 7461 fi 7462 if test "$with_gnu_ld" = no; then 7463 case "$host_cpu" in 7464 hppa*64*) 7465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7466 hardcode_libdir_flag_spec_ld='+b $libdir' 7467 hardcode_libdir_separator=: 7468 hardcode_direct=no 7469 hardcode_shlibpath_var=no 7470 ;; 7471 ia64*) 7472 hardcode_libdir_flag_spec='-L$libdir' 7473 hardcode_direct=no 7474 hardcode_shlibpath_var=no 7475 7476 # hardcode_minus_L: Not really in the search PATH, 7477 # but as the default location of the library. 7478 hardcode_minus_L=yes 7479 ;; 7480 *) 7481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7482 hardcode_libdir_separator=: 7483 hardcode_direct=yes 7484 export_dynamic_flag_spec='${wl}-E' 7485 7486 # hardcode_minus_L: Not really in the search PATH, 7487 # but as the default location of the library. 7488 hardcode_minus_L=yes 7489 ;; 7490 esac 7491 fi 7492 ;; 7493 7494 irix5* | irix6* | nonstopux*) 7495 if test "$GCC" = yes; then 7496 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' 7497 else 7498 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' 7499 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7500 fi 7501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7502 hardcode_libdir_separator=: 7503 link_all_deplibs=yes 7504 ;; 7505 7506 netbsd*) 7507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7509 else 7510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7511 fi 7512 hardcode_libdir_flag_spec='-R$libdir' 7513 hardcode_direct=yes 7514 hardcode_shlibpath_var=no 7515 ;; 7516 7517 newsos6) 7518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7519 hardcode_direct=yes 7520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7521 hardcode_libdir_separator=: 7522 hardcode_shlibpath_var=no 7523 ;; 7524 7525 openbsd*) 7526 hardcode_direct=yes 7527 hardcode_shlibpath_var=no 7528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7530 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7532 export_dynamic_flag_spec='${wl}-E' 7533 else 7534 case $host_os in 7535 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7537 hardcode_libdir_flag_spec='-R$libdir' 7538 ;; 7539 *) 7540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7542 ;; 7543 esac 7544 fi 7545 ;; 7546 7547 os2*) 7548 hardcode_libdir_flag_spec='-L$libdir' 7549 hardcode_minus_L=yes 7550 allow_undefined_flag=unsupported 7551 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' 7552 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7553 ;; 7554 7555 osf3*) 7556 if test "$GCC" = yes; then 7557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7558 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' 7559 else 7560 allow_undefined_flag=' -expect_unresolved \*' 7561 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' 7562 fi 7563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7564 hardcode_libdir_separator=: 7565 ;; 7566 7567 osf4* | osf5*) # as osf3* with the addition of -msym flag 7568 if test "$GCC" = yes; then 7569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7570 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' 7571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7572 else 7573 allow_undefined_flag=' -expect_unresolved \*' 7574 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' 7575 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7576 $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' 7577 7578 # Both c and cxx compiler support -rpath directly 7579 hardcode_libdir_flag_spec='-rpath $libdir' 7580 fi 7581 hardcode_libdir_separator=: 7582 ;; 7583 7584 sco3.2v5*) 7585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7586 hardcode_shlibpath_var=no 7587 export_dynamic_flag_spec='${wl}-Bexport' 7588 runpath_var=LD_RUN_PATH 7589 hardcode_runpath_var=yes 7590 ;; 7591 7592 solaris*) 7593 no_undefined_flag=' -z text' 7594 if test "$GCC" = yes; then 7595 wlarc='${wl}' 7596 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7597 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7599 else 7600 wlarc='' 7601 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7602 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7604 fi 7605 hardcode_libdir_flag_spec='-R$libdir' 7606 hardcode_shlibpath_var=no 7607 case $host_os in 7608 solaris2.[0-5] | solaris2.[0-5].*) ;; 7609 *) 7610 # The compiler driver will combine linker options so we 7611 # cannot just pass the convience library names through 7612 # without $wl, iff we do not link with $LD. 7613 # Luckily, gcc supports the same syntax we need for Sun Studio. 7614 # Supported since Solaris 2.6 (maybe 2.5.1?) 7615 case $wlarc in 7616 '') 7617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7618 *) 7619 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' ;; 7620 esac ;; 7621 esac 7622 link_all_deplibs=yes 7623 ;; 7624 7625 sunos4*) 7626 if test "x$host_vendor" = xsequent; then 7627 # Use $CC to link under sequent, because it throws in some extra .o 7628 # files that make .init and .fini sections work. 7629 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7630 else 7631 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7632 fi 7633 hardcode_libdir_flag_spec='-L$libdir' 7634 hardcode_direct=yes 7635 hardcode_minus_L=yes 7636 hardcode_shlibpath_var=no 7637 ;; 7638 7639 sysv4) 7640 case $host_vendor in 7641 sni) 7642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7643 hardcode_direct=yes # is this really true??? 7644 ;; 7645 siemens) 7646 ## LD is ld it makes a PLAMLIB 7647 ## CC just makes a GrossModule. 7648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7649 reload_cmds='$CC -r -o $output$reload_objs' 7650 hardcode_direct=no 7651 ;; 7652 motorola) 7653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7654 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7655 ;; 7656 esac 7657 runpath_var='LD_RUN_PATH' 7658 hardcode_shlibpath_var=no 7659 ;; 7660 7661 sysv4.3*) 7662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7663 hardcode_shlibpath_var=no 7664 export_dynamic_flag_spec='-Bexport' 7665 ;; 7666 7667 sysv4*MP*) 7668 if test -d /usr/nec; then 7669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7670 hardcode_shlibpath_var=no 7671 runpath_var=LD_RUN_PATH 7672 hardcode_runpath_var=yes 7673 ld_shlibs=yes 7674 fi 7675 ;; 7676 7677 sysv4.2uw2*) 7678 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7679 hardcode_direct=yes 7680 hardcode_minus_L=no 7681 hardcode_shlibpath_var=no 7682 hardcode_runpath_var=yes 7683 runpath_var=LD_RUN_PATH 7684 ;; 7685 7686 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7687 no_undefined_flag='${wl}-z ${wl}text' 7688 if test "$GCC" = yes; then 7689 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7690 else 7691 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7692 fi 7693 runpath_var='LD_RUN_PATH' 7694 hardcode_shlibpath_var=no 7695 ;; 7696 7697 sysv5*) 7698 no_undefined_flag=' -z text' 7699 # $CC -shared without GNU ld will not create a library from C++ 7700 # object files and a static libstdc++, better avoid it by now 7701 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7702 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7703 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7704 hardcode_libdir_flag_spec= 7705 hardcode_shlibpath_var=no 7706 runpath_var='LD_RUN_PATH' 7707 ;; 7708 7709 uts4*) 7710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7711 hardcode_libdir_flag_spec='-L$libdir' 7712 hardcode_shlibpath_var=no 7713 ;; 7714 7715 *) 7716 ld_shlibs=no 7717 ;; 7718 esac 7719 fi 7720 7721echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7722echo "${ECHO_T}$ld_shlibs" >&6 7723test "$ld_shlibs" = no && can_build_shared=no 7724 7725variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7726if test "$GCC" = yes; then 7727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7728fi 7729 7730# 7731# Do we need to explicitly link libc? 7732# 7733case "x$archive_cmds_need_lc" in 7734x|xyes) 7735 # Assume -lc should be added 7736 archive_cmds_need_lc=yes 7737 7738 if test "$enable_shared" = yes && test "$GCC" = yes; then 7739 case $archive_cmds in 7740 *'~'*) 7741 # FIXME: we may have to deal with multi-command sequences. 7742 ;; 7743 '$CC '*) 7744 # Test whether the compiler implicitly links with -lc since on some 7745 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7746 # to ld, don't add -lc before -lgcc. 7747 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7748echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7749 $rm conftest* 7750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7751 7752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7753 (eval $ac_compile) 2>&5 7754 ac_status=$? 7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7756 (exit $ac_status); } 2>conftest.err; then 7757 soname=conftest 7758 lib=conftest 7759 libobjs=conftest.$ac_objext 7760 deplibs= 7761 wl=$lt_prog_compiler_wl 7762 compiler_flags=-v 7763 linker_flags=-v 7764 verstring= 7765 output_objdir=. 7766 libname=conftest 7767 lt_save_allow_undefined_flag=$allow_undefined_flag 7768 allow_undefined_flag= 7769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7770 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7771 ac_status=$? 7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7773 (exit $ac_status); } 7774 then 7775 archive_cmds_need_lc=no 7776 else 7777 archive_cmds_need_lc=yes 7778 fi 7779 allow_undefined_flag=$lt_save_allow_undefined_flag 7780 else 7781 cat conftest.err 1>&5 7782 fi 7783 $rm conftest* 7784 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7785echo "${ECHO_T}$archive_cmds_need_lc" >&6 7786 ;; 7787 esac 7788 fi 7789 ;; 7790esac 7791 7792echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7793echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7794library_names_spec= 7795libname_spec='lib$name' 7796soname_spec= 7797shrext_cmds=".so" 7798postinstall_cmds= 7799postuninstall_cmds= 7800finish_cmds= 7801finish_eval= 7802shlibpath_var= 7803shlibpath_overrides_runpath=unknown 7804version_type=none 7805dynamic_linker="$host_os ld.so" 7806sys_lib_dlsearch_path_spec="/lib /usr/lib" 7807if test "$GCC" = yes; then 7808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7810 # if the path contains ";" then we assume it to be the separator 7811 # otherwise default to the standard path separator (i.e. ":") - it is 7812 # assumed that no part of a normal pathname contains ";" but that should 7813 # okay in the real world where ";" in dirpaths is itself problematic. 7814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7815 else 7816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7817 fi 7818else 7819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7820fi 7821need_lib_prefix=unknown 7822hardcode_into_libs=no 7823 7824# when you set need_version to no, make sure it does not cause -set_version 7825# flags to be left without arguments 7826need_version=unknown 7827 7828case $host_os in 7829aix3*) 7830 version_type=linux 7831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7832 shlibpath_var=LIBPATH 7833 7834 # AIX 3 has no versioning support, so we append a major version to the name. 7835 soname_spec='${libname}${release}${shared_ext}$major' 7836 ;; 7837 7838aix4* | aix5*) 7839 version_type=linux 7840 need_lib_prefix=no 7841 need_version=no 7842 hardcode_into_libs=yes 7843 if test "$host_cpu" = ia64; then 7844 # AIX 5 supports IA64 7845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7846 shlibpath_var=LD_LIBRARY_PATH 7847 else 7848 # With GCC up to 2.95.x, collect2 would create an import file 7849 # for dependence libraries. The import file would start with 7850 # the line `#! .'. This would cause the generated library to 7851 # depend on `.', always an invalid library. This was fixed in 7852 # development snapshots of GCC prior to 3.0. 7853 case $host_os in 7854 aix4 | aix4.[01] | aix4.[01].*) 7855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7856 echo ' yes ' 7857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7858 : 7859 else 7860 can_build_shared=no 7861 fi 7862 ;; 7863 esac 7864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7865 # soname into executable. Probably we can add versioning support to 7866 # collect2, so additional links can be useful in future. 7867 if test "$aix_use_runtimelinking" = yes; then 7868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7869 # instead of lib<name>.a to let people know that these are not 7870 # typical AIX shared libraries. 7871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7872 else 7873 # We preserve .a as extension for shared libraries through AIX4.2 7874 # and later when we are not doing run time linking. 7875 library_names_spec='${libname}${release}.a $libname.a' 7876 soname_spec='${libname}${release}${shared_ext}$major' 7877 fi 7878 shlibpath_var=LIBPATH 7879 fi 7880 ;; 7881 7882amigaos*) 7883 library_names_spec='$libname.ixlibrary $libname.a' 7884 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7885 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' 7886 ;; 7887 7888beos*) 7889 library_names_spec='${libname}${shared_ext}' 7890 dynamic_linker="$host_os ld.so" 7891 shlibpath_var=LIBRARY_PATH 7892 ;; 7893 7894bsdi[45]*) 7895 version_type=linux 7896 need_version=no 7897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7898 soname_spec='${libname}${release}${shared_ext}$major' 7899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7900 shlibpath_var=LD_LIBRARY_PATH 7901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7903 # the default ld.so.conf also contains /usr/contrib/lib and 7904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7905 # libtool to hard-code these into programs 7906 ;; 7907 7908cygwin* | mingw* | pw32*) 7909 version_type=windows 7910 shrext_cmds=".dll" 7911 need_version=no 7912 need_lib_prefix=no 7913 7914 case $GCC,$host_os in 7915 yes,cygwin* | yes,mingw* | yes,pw32*) 7916 library_names_spec='$libname.dll.a' 7917 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7918 postinstall_cmds='base_file=`basename \${file}`~ 7919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7920 dldir=$destdir/`dirname \$dlpath`~ 7921 test -d \$dldir || mkdir -p \$dldir~ 7922 $install_prog $dir/$dlname \$dldir/$dlname' 7923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7924 dlpath=$dir/\$dldll~ 7925 $rm \$dlpath' 7926 shlibpath_overrides_runpath=yes 7927 7928 case $host_os in 7929 cygwin*) 7930 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7933 ;; 7934 mingw*) 7935 # MinGW DLLs use traditional 'lib' prefix 7936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7939 # It is most probably a Windows format PATH printed by 7940 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7941 # path with ; separators, and with drive letters. We can handle the 7942 # drive letters (cygwin fileutils understands them), so leave them, 7943 # especially as we might pass files found there to a mingw objdump, 7944 # which wouldn't understand a cygwinified path. Ahh. 7945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7946 else 7947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7948 fi 7949 ;; 7950 pw32*) 7951 # pw32 DLLs use 'pw' prefix rather than 'lib' 7952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7953 ;; 7954 esac 7955 ;; 7956 7957 *) 7958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7959 ;; 7960 esac 7961 dynamic_linker='Win32 ld.exe' 7962 # FIXME: first we should search . and the directory the executable is in 7963 shlibpath_var=PATH 7964 ;; 7965 7966darwin* | rhapsody*) 7967 dynamic_linker="$host_os dyld" 7968 version_type=darwin 7969 need_lib_prefix=no 7970 need_version=no 7971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7972 soname_spec='${libname}${release}${major}$shared_ext' 7973 shlibpath_overrides_runpath=yes 7974 shlibpath_var=DYLD_LIBRARY_PATH 7975 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7976 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7977 if test "$GCC" = yes; then 7978 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"` 7979 else 7980 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7981 fi 7982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7983 ;; 7984 7985dgux*) 7986 version_type=linux 7987 need_lib_prefix=no 7988 need_version=no 7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7990 soname_spec='${libname}${release}${shared_ext}$major' 7991 shlibpath_var=LD_LIBRARY_PATH 7992 ;; 7993 7994freebsd1*) 7995 dynamic_linker=no 7996 ;; 7997 7998kfreebsd*-gnu) 7999 version_type=linux 8000 need_lib_prefix=no 8001 need_version=no 8002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8003 soname_spec='${libname}${release}${shared_ext}$major' 8004 shlibpath_var=LD_LIBRARY_PATH 8005 shlibpath_overrides_runpath=no 8006 hardcode_into_libs=yes 8007 dynamic_linker='GNU ld.so' 8008 ;; 8009 8010freebsd* | dragonfly*) 8011 # DragonFly does not have aout. When/if they implement a new 8012 # versioning mechanism, adjust this. 8013 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 8014 version_type=freebsd-$objformat 8015 case $version_type in 8016 freebsd-elf*) 8017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8018 need_version=no 8019 need_lib_prefix=no 8020 ;; 8021 freebsd-*) 8022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8023 need_version=yes 8024 ;; 8025 esac 8026 shlibpath_var=LD_LIBRARY_PATH 8027 case $host_os in 8028 freebsd2*) 8029 shlibpath_overrides_runpath=yes 8030 ;; 8031 freebsd3.[01]* | freebsdelf3.[01]*) 8032 shlibpath_overrides_runpath=yes 8033 hardcode_into_libs=yes 8034 ;; 8035 *) # from 3.2 on 8036 shlibpath_overrides_runpath=no 8037 hardcode_into_libs=yes 8038 ;; 8039 esac 8040 ;; 8041 8042gnu*) 8043 version_type=linux 8044 need_lib_prefix=no 8045 need_version=no 8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8047 soname_spec='${libname}${release}${shared_ext}$major' 8048 shlibpath_var=LD_LIBRARY_PATH 8049 hardcode_into_libs=yes 8050 ;; 8051 8052hpux9* | hpux10* | hpux11*) 8053 # Give a soname corresponding to the major version so that dld.sl refuses to 8054 # link against other versions. 8055 version_type=sunos 8056 need_lib_prefix=no 8057 need_version=no 8058 case "$host_cpu" in 8059 ia64*) 8060 shrext_cmds='.so' 8061 hardcode_into_libs=yes 8062 dynamic_linker="$host_os dld.so" 8063 shlibpath_var=LD_LIBRARY_PATH 8064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8066 soname_spec='${libname}${release}${shared_ext}$major' 8067 if test "X$HPUX_IA64_MODE" = X32; then 8068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8069 else 8070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8071 fi 8072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8073 ;; 8074 hppa*64*) 8075 shrext_cmds='.sl' 8076 hardcode_into_libs=yes 8077 dynamic_linker="$host_os dld.sl" 8078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8081 soname_spec='${libname}${release}${shared_ext}$major' 8082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8084 ;; 8085 *) 8086 shrext_cmds='.sl' 8087 dynamic_linker="$host_os dld.sl" 8088 shlibpath_var=SHLIB_PATH 8089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8091 soname_spec='${libname}${release}${shared_ext}$major' 8092 ;; 8093 esac 8094 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8095 postinstall_cmds='chmod 555 $lib' 8096 ;; 8097 8098irix5* | irix6* | nonstopux*) 8099 case $host_os in 8100 nonstopux*) version_type=nonstopux ;; 8101 *) 8102 if test "$lt_cv_prog_gnu_ld" = yes; then 8103 version_type=linux 8104 else 8105 version_type=irix 8106 fi ;; 8107 esac 8108 need_lib_prefix=no 8109 need_version=no 8110 soname_spec='${libname}${release}${shared_ext}$major' 8111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8112 case $host_os in 8113 irix5* | nonstopux*) 8114 libsuff= shlibsuff= 8115 ;; 8116 *) 8117 case $LD in # libtool.m4 will add one of these switches to LD 8118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8119 libsuff= shlibsuff= libmagic=32-bit;; 8120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8121 libsuff=32 shlibsuff=N32 libmagic=N32;; 8122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8123 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8124 *) libsuff= shlibsuff= libmagic=never-match;; 8125 esac 8126 ;; 8127 esac 8128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8129 shlibpath_overrides_runpath=no 8130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8132 hardcode_into_libs=yes 8133 ;; 8134 8135# No shared lib support for Linux oldld, aout, or coff. 8136linux*oldld* | linux*aout* | linux*coff*) 8137 dynamic_linker=no 8138 ;; 8139 8140# This must be Linux ELF. 8141linux*) 8142 version_type=linux 8143 need_lib_prefix=no 8144 need_version=no 8145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8146 soname_spec='${libname}${release}${shared_ext}$major' 8147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8148 shlibpath_var=LD_LIBRARY_PATH 8149 shlibpath_overrides_runpath=no 8150 # This implies no fast_install, which is unacceptable. 8151 # Some rework will be needed to allow for fast_install 8152 # before this can be enabled. 8153 hardcode_into_libs=yes 8154 8155 # find out which ABI we are using 8156 libsuff= 8157 case "$host_cpu" in 8158 x86_64*|s390x*|powerpc64*) 8159 echo '#line 8159 "configure"' > conftest.$ac_ext 8160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8161 (eval $ac_compile) 2>&5 8162 ac_status=$? 8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8164 (exit $ac_status); }; then 8165 case `/usr/bin/file conftest.$ac_objext` in 8166 *64-bit*) 8167 libsuff=64 8168 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8169 ;; 8170 esac 8171 fi 8172 rm -rf conftest* 8173 ;; 8174 esac 8175 8176 # Append ld.so.conf contents to the search path 8177 if test -f /etc/ld.so.conf; then 8178 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8179 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8180 fi 8181 8182 # We used to test for /lib/ld.so.1 and disable shared libraries on 8183 # powerpc, because MkLinux only supported shared libraries with the 8184 # GNU dynamic linker. Since this was broken with cross compilers, 8185 # most powerpc-linux boxes support dynamic linking these days and 8186 # people can always --disable-shared, the test was removed, and we 8187 # assume the GNU/Linux dynamic linker is in use. 8188 dynamic_linker='GNU/Linux ld.so' 8189 ;; 8190 8191knetbsd*-gnu) 8192 version_type=linux 8193 need_lib_prefix=no 8194 need_version=no 8195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8196 soname_spec='${libname}${release}${shared_ext}$major' 8197 shlibpath_var=LD_LIBRARY_PATH 8198 shlibpath_overrides_runpath=no 8199 hardcode_into_libs=yes 8200 dynamic_linker='GNU ld.so' 8201 ;; 8202 8203netbsd*) 8204 version_type=sunos 8205 need_lib_prefix=no 8206 need_version=no 8207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8210 dynamic_linker='NetBSD (a.out) ld.so' 8211 else 8212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8213 soname_spec='${libname}${release}${shared_ext}$major' 8214 dynamic_linker='NetBSD ld.elf_so' 8215 fi 8216 shlibpath_var=LD_LIBRARY_PATH 8217 shlibpath_overrides_runpath=yes 8218 hardcode_into_libs=yes 8219 ;; 8220 8221newsos6) 8222 version_type=linux 8223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8224 shlibpath_var=LD_LIBRARY_PATH 8225 shlibpath_overrides_runpath=yes 8226 ;; 8227 8228nto-qnx*) 8229 version_type=linux 8230 need_lib_prefix=no 8231 need_version=no 8232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8233 soname_spec='${libname}${release}${shared_ext}$major' 8234 shlibpath_var=LD_LIBRARY_PATH 8235 shlibpath_overrides_runpath=yes 8236 ;; 8237 8238openbsd*) 8239 version_type=sunos 8240 need_lib_prefix=no 8241 need_version=no 8242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8244 shlibpath_var=LD_LIBRARY_PATH 8245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8246 case $host_os in 8247 openbsd2.[89] | openbsd2.[89].*) 8248 shlibpath_overrides_runpath=no 8249 ;; 8250 *) 8251 shlibpath_overrides_runpath=yes 8252 ;; 8253 esac 8254 else 8255 shlibpath_overrides_runpath=yes 8256 fi 8257 ;; 8258 8259os2*) 8260 libname_spec='$name' 8261 shrext_cmds=".dll" 8262 need_lib_prefix=no 8263 library_names_spec='$libname${shared_ext} $libname.a' 8264 dynamic_linker='OS/2 ld.exe' 8265 shlibpath_var=LIBPATH 8266 ;; 8267 8268osf3* | osf4* | osf5*) 8269 version_type=osf 8270 need_lib_prefix=no 8271 need_version=no 8272 soname_spec='${libname}${release}${shared_ext}$major' 8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8274 shlibpath_var=LD_LIBRARY_PATH 8275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8277 ;; 8278 8279sco3.2v5*) 8280 version_type=osf 8281 soname_spec='${libname}${release}${shared_ext}$major' 8282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8283 shlibpath_var=LD_LIBRARY_PATH 8284 ;; 8285 8286solaris*) 8287 version_type=linux 8288 need_lib_prefix=no 8289 need_version=no 8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8291 soname_spec='${libname}${release}${shared_ext}$major' 8292 shlibpath_var=LD_LIBRARY_PATH 8293 shlibpath_overrides_runpath=yes 8294 hardcode_into_libs=yes 8295 # ldd complains unless libraries are executable 8296 postinstall_cmds='chmod +x $lib' 8297 ;; 8298 8299sunos4*) 8300 version_type=sunos 8301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8303 shlibpath_var=LD_LIBRARY_PATH 8304 shlibpath_overrides_runpath=yes 8305 if test "$with_gnu_ld" = yes; then 8306 need_lib_prefix=no 8307 fi 8308 need_version=yes 8309 ;; 8310 8311sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8312 version_type=linux 8313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8314 soname_spec='${libname}${release}${shared_ext}$major' 8315 shlibpath_var=LD_LIBRARY_PATH 8316 case $host_vendor in 8317 sni) 8318 shlibpath_overrides_runpath=no 8319 need_lib_prefix=no 8320 export_dynamic_flag_spec='${wl}-Blargedynsym' 8321 runpath_var=LD_RUN_PATH 8322 ;; 8323 siemens) 8324 need_lib_prefix=no 8325 ;; 8326 motorola) 8327 need_lib_prefix=no 8328 need_version=no 8329 shlibpath_overrides_runpath=no 8330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8331 ;; 8332 esac 8333 ;; 8334 8335sysv4*MP*) 8336 if test -d /usr/nec ;then 8337 version_type=linux 8338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8339 soname_spec='$libname${shared_ext}.$major' 8340 shlibpath_var=LD_LIBRARY_PATH 8341 fi 8342 ;; 8343 8344uts4*) 8345 version_type=linux 8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8347 soname_spec='${libname}${release}${shared_ext}$major' 8348 shlibpath_var=LD_LIBRARY_PATH 8349 ;; 8350 8351*) 8352 dynamic_linker=no 8353 ;; 8354esac 8355echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8356echo "${ECHO_T}$dynamic_linker" >&6 8357test "$dynamic_linker" = no && can_build_shared=no 8358 8359echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8360echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8361hardcode_action= 8362if test -n "$hardcode_libdir_flag_spec" || \ 8363 test -n "$runpath_var" || \ 8364 test "X$hardcode_automatic" = "Xyes" ; then 8365 8366 # We can hardcode non-existant directories. 8367 if test "$hardcode_direct" != no && 8368 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8369 # have to relink, otherwise we might link with an installed library 8370 # when we should be linking with a yet-to-be-installed one 8371 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8372 test "$hardcode_minus_L" != no; then 8373 # Linking always hardcodes the temporary library directory. 8374 hardcode_action=relink 8375 else 8376 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8377 hardcode_action=immediate 8378 fi 8379else 8380 # We cannot hardcode anything, or else we can only hardcode existing 8381 # directories. 8382 hardcode_action=unsupported 8383fi 8384echo "$as_me:$LINENO: result: $hardcode_action" >&5 8385echo "${ECHO_T}$hardcode_action" >&6 8386 8387if test "$hardcode_action" = relink; then 8388 # Fast installation is not supported 8389 enable_fast_install=no 8390elif test "$shlibpath_overrides_runpath" = yes || 8391 test "$enable_shared" = no; then 8392 # Fast installation is not necessary 8393 enable_fast_install=needless 8394fi 8395 8396striplib= 8397old_striplib= 8398echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8399echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8400if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8401 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8402 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8403 echo "$as_me:$LINENO: result: yes" >&5 8404echo "${ECHO_T}yes" >&6 8405else 8406# FIXME - insert some real tests, host_os isn't really good enough 8407 case $host_os in 8408 darwin*) 8409 if test -n "$STRIP" ; then 8410 striplib="$STRIP -x" 8411 echo "$as_me:$LINENO: result: yes" >&5 8412echo "${ECHO_T}yes" >&6 8413 else 8414 echo "$as_me:$LINENO: result: no" >&5 8415echo "${ECHO_T}no" >&6 8416fi 8417 ;; 8418 *) 8419 echo "$as_me:$LINENO: result: no" >&5 8420echo "${ECHO_T}no" >&6 8421 ;; 8422 esac 8423fi 8424 8425if test "x$enable_dlopen" != xyes; then 8426 enable_dlopen=unknown 8427 enable_dlopen_self=unknown 8428 enable_dlopen_self_static=unknown 8429else 8430 lt_cv_dlopen=no 8431 lt_cv_dlopen_libs= 8432 8433 case $host_os in 8434 beos*) 8435 lt_cv_dlopen="load_add_on" 8436 lt_cv_dlopen_libs= 8437 lt_cv_dlopen_self=yes 8438 ;; 8439 8440 mingw* | pw32*) 8441 lt_cv_dlopen="LoadLibrary" 8442 lt_cv_dlopen_libs= 8443 ;; 8444 8445 cygwin*) 8446 lt_cv_dlopen="dlopen" 8447 lt_cv_dlopen_libs= 8448 ;; 8449 8450 darwin*) 8451 # if libdl is installed we need to link against it 8452 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8453echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8454if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8455 echo $ECHO_N "(cached) $ECHO_C" >&6 8456else 8457 ac_check_lib_save_LIBS=$LIBS 8458LIBS="-ldl $LIBS" 8459cat >conftest.$ac_ext <<_ACEOF 8460/* confdefs.h. */ 8461_ACEOF 8462cat confdefs.h >>conftest.$ac_ext 8463cat >>conftest.$ac_ext <<_ACEOF 8464/* end confdefs.h. */ 8465 8466/* Override any gcc2 internal prototype to avoid an error. */ 8467#ifdef __cplusplus 8468extern "C" 8469#endif 8470/* We use char because int might match the return type of a gcc2 8471 builtin and then its argument prototype would still apply. */ 8472char dlopen (); 8473int 8474main () 8475{ 8476dlopen (); 8477 ; 8478 return 0; 8479} 8480_ACEOF 8481rm -f conftest.$ac_objext conftest$ac_exeext 8482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8483 (eval $ac_link) 2>conftest.er1 8484 ac_status=$? 8485 grep -v '^ *+' conftest.er1 >conftest.err 8486 rm -f conftest.er1 8487 cat conftest.err >&5 8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8489 (exit $ac_status); } && 8490 { ac_try='test -z "$ac_c_werror_flag" 8491 || test ! -s conftest.err' 8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8493 (eval $ac_try) 2>&5 8494 ac_status=$? 8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8496 (exit $ac_status); }; } && 8497 { ac_try='test -s conftest$ac_exeext' 8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8499 (eval $ac_try) 2>&5 8500 ac_status=$? 8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8502 (exit $ac_status); }; }; then 8503 ac_cv_lib_dl_dlopen=yes 8504else 8505 echo "$as_me: failed program was:" >&5 8506sed 's/^/| /' conftest.$ac_ext >&5 8507 8508ac_cv_lib_dl_dlopen=no 8509fi 8510rm -f conftest.err conftest.$ac_objext \ 8511 conftest$ac_exeext conftest.$ac_ext 8512LIBS=$ac_check_lib_save_LIBS 8513fi 8514echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8515echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8516if test $ac_cv_lib_dl_dlopen = yes; then 8517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8518else 8519 8520 lt_cv_dlopen="dyld" 8521 lt_cv_dlopen_libs= 8522 lt_cv_dlopen_self=yes 8523 8524fi 8525 8526 ;; 8527 8528 *) 8529 echo "$as_me:$LINENO: checking for shl_load" >&5 8530echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8531if test "${ac_cv_func_shl_load+set}" = set; then 8532 echo $ECHO_N "(cached) $ECHO_C" >&6 8533else 8534 cat >conftest.$ac_ext <<_ACEOF 8535/* confdefs.h. */ 8536_ACEOF 8537cat confdefs.h >>conftest.$ac_ext 8538cat >>conftest.$ac_ext <<_ACEOF 8539/* end confdefs.h. */ 8540/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8541 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8542#define shl_load innocuous_shl_load 8543 8544/* System header to define __stub macros and hopefully few prototypes, 8545 which can conflict with char shl_load (); below. 8546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8547 <limits.h> exists even on freestanding compilers. */ 8548 8549#ifdef __STDC__ 8550# include <limits.h> 8551#else 8552# include <assert.h> 8553#endif 8554 8555#undef shl_load 8556 8557/* Override any gcc2 internal prototype to avoid an error. */ 8558#ifdef __cplusplus 8559extern "C" 8560{ 8561#endif 8562/* We use char because int might match the return type of a gcc2 8563 builtin and then its argument prototype would still apply. */ 8564char shl_load (); 8565/* The GNU C library defines this for functions which it implements 8566 to always fail with ENOSYS. Some functions are actually named 8567 something starting with __ and the normal name is an alias. */ 8568#if defined (__stub_shl_load) || defined (__stub___shl_load) 8569choke me 8570#else 8571char (*f) () = shl_load; 8572#endif 8573#ifdef __cplusplus 8574} 8575#endif 8576 8577int 8578main () 8579{ 8580return f != shl_load; 8581 ; 8582 return 0; 8583} 8584_ACEOF 8585rm -f conftest.$ac_objext conftest$ac_exeext 8586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8587 (eval $ac_link) 2>conftest.er1 8588 ac_status=$? 8589 grep -v '^ *+' conftest.er1 >conftest.err 8590 rm -f conftest.er1 8591 cat conftest.err >&5 8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8593 (exit $ac_status); } && 8594 { ac_try='test -z "$ac_c_werror_flag" 8595 || test ! -s conftest.err' 8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8597 (eval $ac_try) 2>&5 8598 ac_status=$? 8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 (exit $ac_status); }; } && 8601 { ac_try='test -s conftest$ac_exeext' 8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8603 (eval $ac_try) 2>&5 8604 ac_status=$? 8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8606 (exit $ac_status); }; }; then 8607 ac_cv_func_shl_load=yes 8608else 8609 echo "$as_me: failed program was:" >&5 8610sed 's/^/| /' conftest.$ac_ext >&5 8611 8612ac_cv_func_shl_load=no 8613fi 8614rm -f conftest.err conftest.$ac_objext \ 8615 conftest$ac_exeext conftest.$ac_ext 8616fi 8617echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8618echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8619if test $ac_cv_func_shl_load = yes; then 8620 lt_cv_dlopen="shl_load" 8621else 8622 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8623echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8624if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8625 echo $ECHO_N "(cached) $ECHO_C" >&6 8626else 8627 ac_check_lib_save_LIBS=$LIBS 8628LIBS="-ldld $LIBS" 8629cat >conftest.$ac_ext <<_ACEOF 8630/* confdefs.h. */ 8631_ACEOF 8632cat confdefs.h >>conftest.$ac_ext 8633cat >>conftest.$ac_ext <<_ACEOF 8634/* end confdefs.h. */ 8635 8636/* Override any gcc2 internal prototype to avoid an error. */ 8637#ifdef __cplusplus 8638extern "C" 8639#endif 8640/* We use char because int might match the return type of a gcc2 8641 builtin and then its argument prototype would still apply. */ 8642char shl_load (); 8643int 8644main () 8645{ 8646shl_load (); 8647 ; 8648 return 0; 8649} 8650_ACEOF 8651rm -f conftest.$ac_objext conftest$ac_exeext 8652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8653 (eval $ac_link) 2>conftest.er1 8654 ac_status=$? 8655 grep -v '^ *+' conftest.er1 >conftest.err 8656 rm -f conftest.er1 8657 cat conftest.err >&5 8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8659 (exit $ac_status); } && 8660 { ac_try='test -z "$ac_c_werror_flag" 8661 || test ! -s conftest.err' 8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8663 (eval $ac_try) 2>&5 8664 ac_status=$? 8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8666 (exit $ac_status); }; } && 8667 { ac_try='test -s conftest$ac_exeext' 8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8669 (eval $ac_try) 2>&5 8670 ac_status=$? 8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8672 (exit $ac_status); }; }; then 8673 ac_cv_lib_dld_shl_load=yes 8674else 8675 echo "$as_me: failed program was:" >&5 8676sed 's/^/| /' conftest.$ac_ext >&5 8677 8678ac_cv_lib_dld_shl_load=no 8679fi 8680rm -f conftest.err conftest.$ac_objext \ 8681 conftest$ac_exeext conftest.$ac_ext 8682LIBS=$ac_check_lib_save_LIBS 8683fi 8684echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8685echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8686if test $ac_cv_lib_dld_shl_load = yes; then 8687 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8688else 8689 echo "$as_me:$LINENO: checking for dlopen" >&5 8690echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8691if test "${ac_cv_func_dlopen+set}" = set; then 8692 echo $ECHO_N "(cached) $ECHO_C" >&6 8693else 8694 cat >conftest.$ac_ext <<_ACEOF 8695/* confdefs.h. */ 8696_ACEOF 8697cat confdefs.h >>conftest.$ac_ext 8698cat >>conftest.$ac_ext <<_ACEOF 8699/* end confdefs.h. */ 8700/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8701 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8702#define dlopen innocuous_dlopen 8703 8704/* System header to define __stub macros and hopefully few prototypes, 8705 which can conflict with char dlopen (); below. 8706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8707 <limits.h> exists even on freestanding compilers. */ 8708 8709#ifdef __STDC__ 8710# include <limits.h> 8711#else 8712# include <assert.h> 8713#endif 8714 8715#undef dlopen 8716 8717/* Override any gcc2 internal prototype to avoid an error. */ 8718#ifdef __cplusplus 8719extern "C" 8720{ 8721#endif 8722/* We use char because int might match the return type of a gcc2 8723 builtin and then its argument prototype would still apply. */ 8724char dlopen (); 8725/* The GNU C library defines this for functions which it implements 8726 to always fail with ENOSYS. Some functions are actually named 8727 something starting with __ and the normal name is an alias. */ 8728#if defined (__stub_dlopen) || defined (__stub___dlopen) 8729choke me 8730#else 8731char (*f) () = dlopen; 8732#endif 8733#ifdef __cplusplus 8734} 8735#endif 8736 8737int 8738main () 8739{ 8740return f != dlopen; 8741 ; 8742 return 0; 8743} 8744_ACEOF 8745rm -f conftest.$ac_objext conftest$ac_exeext 8746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8747 (eval $ac_link) 2>conftest.er1 8748 ac_status=$? 8749 grep -v '^ *+' conftest.er1 >conftest.err 8750 rm -f conftest.er1 8751 cat conftest.err >&5 8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8753 (exit $ac_status); } && 8754 { ac_try='test -z "$ac_c_werror_flag" 8755 || test ! -s conftest.err' 8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8757 (eval $ac_try) 2>&5 8758 ac_status=$? 8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8760 (exit $ac_status); }; } && 8761 { ac_try='test -s conftest$ac_exeext' 8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8763 (eval $ac_try) 2>&5 8764 ac_status=$? 8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8766 (exit $ac_status); }; }; then 8767 ac_cv_func_dlopen=yes 8768else 8769 echo "$as_me: failed program was:" >&5 8770sed 's/^/| /' conftest.$ac_ext >&5 8771 8772ac_cv_func_dlopen=no 8773fi 8774rm -f conftest.err conftest.$ac_objext \ 8775 conftest$ac_exeext conftest.$ac_ext 8776fi 8777echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8778echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8779if test $ac_cv_func_dlopen = yes; then 8780 lt_cv_dlopen="dlopen" 8781else 8782 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8783echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8784if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8785 echo $ECHO_N "(cached) $ECHO_C" >&6 8786else 8787 ac_check_lib_save_LIBS=$LIBS 8788LIBS="-ldl $LIBS" 8789cat >conftest.$ac_ext <<_ACEOF 8790/* confdefs.h. */ 8791_ACEOF 8792cat confdefs.h >>conftest.$ac_ext 8793cat >>conftest.$ac_ext <<_ACEOF 8794/* end confdefs.h. */ 8795 8796/* Override any gcc2 internal prototype to avoid an error. */ 8797#ifdef __cplusplus 8798extern "C" 8799#endif 8800/* We use char because int might match the return type of a gcc2 8801 builtin and then its argument prototype would still apply. */ 8802char dlopen (); 8803int 8804main () 8805{ 8806dlopen (); 8807 ; 8808 return 0; 8809} 8810_ACEOF 8811rm -f conftest.$ac_objext conftest$ac_exeext 8812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8813 (eval $ac_link) 2>conftest.er1 8814 ac_status=$? 8815 grep -v '^ *+' conftest.er1 >conftest.err 8816 rm -f conftest.er1 8817 cat conftest.err >&5 8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8819 (exit $ac_status); } && 8820 { ac_try='test -z "$ac_c_werror_flag" 8821 || test ! -s conftest.err' 8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8823 (eval $ac_try) 2>&5 8824 ac_status=$? 8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8826 (exit $ac_status); }; } && 8827 { ac_try='test -s conftest$ac_exeext' 8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8829 (eval $ac_try) 2>&5 8830 ac_status=$? 8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8832 (exit $ac_status); }; }; then 8833 ac_cv_lib_dl_dlopen=yes 8834else 8835 echo "$as_me: failed program was:" >&5 8836sed 's/^/| /' conftest.$ac_ext >&5 8837 8838ac_cv_lib_dl_dlopen=no 8839fi 8840rm -f conftest.err conftest.$ac_objext \ 8841 conftest$ac_exeext conftest.$ac_ext 8842LIBS=$ac_check_lib_save_LIBS 8843fi 8844echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8845echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8846if test $ac_cv_lib_dl_dlopen = yes; then 8847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8848else 8849 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8850echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8851if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8852 echo $ECHO_N "(cached) $ECHO_C" >&6 8853else 8854 ac_check_lib_save_LIBS=$LIBS 8855LIBS="-lsvld $LIBS" 8856cat >conftest.$ac_ext <<_ACEOF 8857/* confdefs.h. */ 8858_ACEOF 8859cat confdefs.h >>conftest.$ac_ext 8860cat >>conftest.$ac_ext <<_ACEOF 8861/* end confdefs.h. */ 8862 8863/* Override any gcc2 internal prototype to avoid an error. */ 8864#ifdef __cplusplus 8865extern "C" 8866#endif 8867/* We use char because int might match the return type of a gcc2 8868 builtin and then its argument prototype would still apply. */ 8869char dlopen (); 8870int 8871main () 8872{ 8873dlopen (); 8874 ; 8875 return 0; 8876} 8877_ACEOF 8878rm -f conftest.$ac_objext conftest$ac_exeext 8879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8880 (eval $ac_link) 2>conftest.er1 8881 ac_status=$? 8882 grep -v '^ *+' conftest.er1 >conftest.err 8883 rm -f conftest.er1 8884 cat conftest.err >&5 8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8886 (exit $ac_status); } && 8887 { ac_try='test -z "$ac_c_werror_flag" 8888 || test ! -s conftest.err' 8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8890 (eval $ac_try) 2>&5 8891 ac_status=$? 8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8893 (exit $ac_status); }; } && 8894 { ac_try='test -s conftest$ac_exeext' 8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8896 (eval $ac_try) 2>&5 8897 ac_status=$? 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 (exit $ac_status); }; }; then 8900 ac_cv_lib_svld_dlopen=yes 8901else 8902 echo "$as_me: failed program was:" >&5 8903sed 's/^/| /' conftest.$ac_ext >&5 8904 8905ac_cv_lib_svld_dlopen=no 8906fi 8907rm -f conftest.err conftest.$ac_objext \ 8908 conftest$ac_exeext conftest.$ac_ext 8909LIBS=$ac_check_lib_save_LIBS 8910fi 8911echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8912echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8913if test $ac_cv_lib_svld_dlopen = yes; then 8914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8915else 8916 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8917echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8918if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8919 echo $ECHO_N "(cached) $ECHO_C" >&6 8920else 8921 ac_check_lib_save_LIBS=$LIBS 8922LIBS="-ldld $LIBS" 8923cat >conftest.$ac_ext <<_ACEOF 8924/* confdefs.h. */ 8925_ACEOF 8926cat confdefs.h >>conftest.$ac_ext 8927cat >>conftest.$ac_ext <<_ACEOF 8928/* end confdefs.h. */ 8929 8930/* Override any gcc2 internal prototype to avoid an error. */ 8931#ifdef __cplusplus 8932extern "C" 8933#endif 8934/* We use char because int might match the return type of a gcc2 8935 builtin and then its argument prototype would still apply. */ 8936char dld_link (); 8937int 8938main () 8939{ 8940dld_link (); 8941 ; 8942 return 0; 8943} 8944_ACEOF 8945rm -f conftest.$ac_objext conftest$ac_exeext 8946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8947 (eval $ac_link) 2>conftest.er1 8948 ac_status=$? 8949 grep -v '^ *+' conftest.er1 >conftest.err 8950 rm -f conftest.er1 8951 cat conftest.err >&5 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 (exit $ac_status); } && 8954 { ac_try='test -z "$ac_c_werror_flag" 8955 || test ! -s conftest.err' 8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8957 (eval $ac_try) 2>&5 8958 ac_status=$? 8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8960 (exit $ac_status); }; } && 8961 { ac_try='test -s conftest$ac_exeext' 8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8963 (eval $ac_try) 2>&5 8964 ac_status=$? 8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8966 (exit $ac_status); }; }; then 8967 ac_cv_lib_dld_dld_link=yes 8968else 8969 echo "$as_me: failed program was:" >&5 8970sed 's/^/| /' conftest.$ac_ext >&5 8971 8972ac_cv_lib_dld_dld_link=no 8973fi 8974rm -f conftest.err conftest.$ac_objext \ 8975 conftest$ac_exeext conftest.$ac_ext 8976LIBS=$ac_check_lib_save_LIBS 8977fi 8978echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8979echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8980if test $ac_cv_lib_dld_dld_link = yes; then 8981 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8982fi 8983 8984 8985fi 8986 8987 8988fi 8989 8990 8991fi 8992 8993 8994fi 8995 8996 8997fi 8998 8999 ;; 9000 esac 9001 9002 if test "x$lt_cv_dlopen" != xno; then 9003 enable_dlopen=yes 9004 else 9005 enable_dlopen=no 9006 fi 9007 9008 case $lt_cv_dlopen in 9009 dlopen) 9010 save_CPPFLAGS="$CPPFLAGS" 9011 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9012 9013 save_LDFLAGS="$LDFLAGS" 9014 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9015 9016 save_LIBS="$LIBS" 9017 LIBS="$lt_cv_dlopen_libs $LIBS" 9018 9019 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9020echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9021if test "${lt_cv_dlopen_self+set}" = set; then 9022 echo $ECHO_N "(cached) $ECHO_C" >&6 9023else 9024 if test "$cross_compiling" = yes; then : 9025 lt_cv_dlopen_self=cross 9026else 9027 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9028 lt_status=$lt_dlunknown 9029 cat > conftest.$ac_ext <<EOF 9030#line 9030 "configure" 9031#include "confdefs.h" 9032 9033#if HAVE_DLFCN_H 9034#include <dlfcn.h> 9035#endif 9036 9037#include <stdio.h> 9038 9039#ifdef RTLD_GLOBAL 9040# define LT_DLGLOBAL RTLD_GLOBAL 9041#else 9042# ifdef DL_GLOBAL 9043# define LT_DLGLOBAL DL_GLOBAL 9044# else 9045# define LT_DLGLOBAL 0 9046# endif 9047#endif 9048 9049/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9050 find out it does not work in some platform. */ 9051#ifndef LT_DLLAZY_OR_NOW 9052# ifdef RTLD_LAZY 9053# define LT_DLLAZY_OR_NOW RTLD_LAZY 9054# else 9055# ifdef DL_LAZY 9056# define LT_DLLAZY_OR_NOW DL_LAZY 9057# else 9058# ifdef RTLD_NOW 9059# define LT_DLLAZY_OR_NOW RTLD_NOW 9060# else 9061# ifdef DL_NOW 9062# define LT_DLLAZY_OR_NOW DL_NOW 9063# else 9064# define LT_DLLAZY_OR_NOW 0 9065# endif 9066# endif 9067# endif 9068# endif 9069#endif 9070 9071#ifdef __cplusplus 9072extern "C" void exit (int); 9073#endif 9074 9075void fnord() { int i=42;} 9076int main () 9077{ 9078 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9079 int status = $lt_dlunknown; 9080 9081 if (self) 9082 { 9083 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9084 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9085 /* dlclose (self); */ 9086 } 9087 9088 exit (status); 9089} 9090EOF 9091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9092 (eval $ac_link) 2>&5 9093 ac_status=$? 9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9095 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9096 (./conftest; exit; ) 2>/dev/null 9097 lt_status=$? 9098 case x$lt_status in 9099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9101 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9102 esac 9103 else : 9104 # compilation failed 9105 lt_cv_dlopen_self=no 9106 fi 9107fi 9108rm -fr conftest* 9109 9110 9111fi 9112echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9113echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9114 9115 if test "x$lt_cv_dlopen_self" = xyes; then 9116 LDFLAGS="$LDFLAGS $link_static_flag" 9117 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9118echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9119if test "${lt_cv_dlopen_self_static+set}" = set; then 9120 echo $ECHO_N "(cached) $ECHO_C" >&6 9121else 9122 if test "$cross_compiling" = yes; then : 9123 lt_cv_dlopen_self_static=cross 9124else 9125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9126 lt_status=$lt_dlunknown 9127 cat > conftest.$ac_ext <<EOF 9128#line 9128 "configure" 9129#include "confdefs.h" 9130 9131#if HAVE_DLFCN_H 9132#include <dlfcn.h> 9133#endif 9134 9135#include <stdio.h> 9136 9137#ifdef RTLD_GLOBAL 9138# define LT_DLGLOBAL RTLD_GLOBAL 9139#else 9140# ifdef DL_GLOBAL 9141# define LT_DLGLOBAL DL_GLOBAL 9142# else 9143# define LT_DLGLOBAL 0 9144# endif 9145#endif 9146 9147/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9148 find out it does not work in some platform. */ 9149#ifndef LT_DLLAZY_OR_NOW 9150# ifdef RTLD_LAZY 9151# define LT_DLLAZY_OR_NOW RTLD_LAZY 9152# else 9153# ifdef DL_LAZY 9154# define LT_DLLAZY_OR_NOW DL_LAZY 9155# else 9156# ifdef RTLD_NOW 9157# define LT_DLLAZY_OR_NOW RTLD_NOW 9158# else 9159# ifdef DL_NOW 9160# define LT_DLLAZY_OR_NOW DL_NOW 9161# else 9162# define LT_DLLAZY_OR_NOW 0 9163# endif 9164# endif 9165# endif 9166# endif 9167#endif 9168 9169#ifdef __cplusplus 9170extern "C" void exit (int); 9171#endif 9172 9173void fnord() { int i=42;} 9174int main () 9175{ 9176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9177 int status = $lt_dlunknown; 9178 9179 if (self) 9180 { 9181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9183 /* dlclose (self); */ 9184 } 9185 9186 exit (status); 9187} 9188EOF 9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9190 (eval $ac_link) 2>&5 9191 ac_status=$? 9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9193 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9194 (./conftest; exit; ) 2>/dev/null 9195 lt_status=$? 9196 case x$lt_status in 9197 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9198 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9199 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9200 esac 9201 else : 9202 # compilation failed 9203 lt_cv_dlopen_self_static=no 9204 fi 9205fi 9206rm -fr conftest* 9207 9208 9209fi 9210echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9211echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9212 fi 9213 9214 CPPFLAGS="$save_CPPFLAGS" 9215 LDFLAGS="$save_LDFLAGS" 9216 LIBS="$save_LIBS" 9217 ;; 9218 esac 9219 9220 case $lt_cv_dlopen_self in 9221 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9222 *) enable_dlopen_self=unknown ;; 9223 esac 9224 9225 case $lt_cv_dlopen_self_static in 9226 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9227 *) enable_dlopen_self_static=unknown ;; 9228 esac 9229fi 9230 9231 9232# Report which librarie types wil actually be built 9233echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9234echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9235echo "$as_me:$LINENO: result: $can_build_shared" >&5 9236echo "${ECHO_T}$can_build_shared" >&6 9237 9238echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9239echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9240test "$can_build_shared" = "no" && enable_shared=no 9241 9242# On AIX, shared libraries and static libraries use the same namespace, and 9243# are all built from PIC. 9244case "$host_os" in 9245aix3*) 9246 test "$enable_shared" = yes && enable_static=no 9247 if test -n "$RANLIB"; then 9248 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9249 postinstall_cmds='$RANLIB $lib' 9250 fi 9251 ;; 9252 9253aix4* | aix5*) 9254 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9255 test "$enable_shared" = yes && enable_static=no 9256 fi 9257 ;; 9258esac 9259echo "$as_me:$LINENO: result: $enable_shared" >&5 9260echo "${ECHO_T}$enable_shared" >&6 9261 9262echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9263echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9264# Make sure either enable_shared or enable_static is yes. 9265test "$enable_shared" = yes || enable_static=yes 9266echo "$as_me:$LINENO: result: $enable_static" >&5 9267echo "${ECHO_T}$enable_static" >&6 9268 9269# The else clause should only fire when bootstrapping the 9270# libtool distribution, otherwise you forgot to ship ltmain.sh 9271# with your package, and you will get complaints that there are 9272# no rules to generate ltmain.sh. 9273if test -f "$ltmain"; then 9274 # See if we are running on zsh, and set the options which allow our commands through 9275 # without removal of \ escapes. 9276 if test -n "${ZSH_VERSION+set}" ; then 9277 setopt NO_GLOB_SUBST 9278 fi 9279 # Now quote all the things that may contain metacharacters while being 9280 # careful not to overquote the AC_SUBSTed values. We take copies of the 9281 # variables and quote the copies for generation of the libtool script. 9282 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9283 SED SHELL STRIP \ 9284 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9285 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9286 deplibs_check_method reload_flag reload_cmds need_locks \ 9287 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9288 lt_cv_sys_global_symbol_to_c_name_address \ 9289 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9290 old_postinstall_cmds old_postuninstall_cmds \ 9291 compiler \ 9292 CC \ 9293 LD \ 9294 lt_prog_compiler_wl \ 9295 lt_prog_compiler_pic \ 9296 lt_prog_compiler_static \ 9297 lt_prog_compiler_no_builtin_flag \ 9298 export_dynamic_flag_spec \ 9299 thread_safe_flag_spec \ 9300 whole_archive_flag_spec \ 9301 enable_shared_with_static_runtimes \ 9302 old_archive_cmds \ 9303 old_archive_from_new_cmds \ 9304 predep_objects \ 9305 postdep_objects \ 9306 predeps \ 9307 postdeps \ 9308 compiler_lib_search_path \ 9309 archive_cmds \ 9310 archive_expsym_cmds \ 9311 postinstall_cmds \ 9312 postuninstall_cmds \ 9313 old_archive_from_expsyms_cmds \ 9314 allow_undefined_flag \ 9315 no_undefined_flag \ 9316 export_symbols_cmds \ 9317 hardcode_libdir_flag_spec \ 9318 hardcode_libdir_flag_spec_ld \ 9319 hardcode_libdir_separator \ 9320 hardcode_automatic \ 9321 module_cmds \ 9322 module_expsym_cmds \ 9323 lt_cv_prog_compiler_c_o \ 9324 exclude_expsyms \ 9325 include_expsyms; do 9326 9327 case $var in 9328 old_archive_cmds | \ 9329 old_archive_from_new_cmds | \ 9330 archive_cmds | \ 9331 archive_expsym_cmds | \ 9332 module_cmds | \ 9333 module_expsym_cmds | \ 9334 old_archive_from_expsyms_cmds | \ 9335 export_symbols_cmds | \ 9336 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9337 postinstall_cmds | postuninstall_cmds | \ 9338 old_postinstall_cmds | old_postuninstall_cmds | \ 9339 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9340 # Double-quote double-evaled strings. 9341 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9342 ;; 9343 *) 9344 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9345 ;; 9346 esac 9347 done 9348 9349 case $lt_echo in 9350 *'\$0 --fallback-echo"') 9351 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9352 ;; 9353 esac 9354 9355cfgfile="${ofile}T" 9356 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9357 $rm -f "$cfgfile" 9358 { echo "$as_me:$LINENO: creating $ofile" >&5 9359echo "$as_me: creating $ofile" >&6;} 9360 9361 cat <<__EOF__ >> "$cfgfile" 9362#! $SHELL 9363 9364# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9365# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9366# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9367# 9368# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9369# Free Software Foundation, Inc. 9370# 9371# This file is part of GNU Libtool: 9372# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9373# 9374# This program is free software; you can redistribute it and/or modify 9375# it under the terms of the GNU General Public License as published by 9376# the Free Software Foundation; either version 2 of the License, or 9377# (at your option) any later version. 9378# 9379# This program is distributed in the hope that it will be useful, but 9380# WITHOUT ANY WARRANTY; without even the implied warranty of 9381# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9382# General Public License for more details. 9383# 9384# You should have received a copy of the GNU General Public License 9385# along with this program; if not, write to the Free Software 9386# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9387# 9388# As a special exception to the GNU General Public License, if you 9389# distribute this file as part of a program that contains a 9390# configuration script generated by Autoconf, you may include it under 9391# the same distribution terms that you use for the rest of that program. 9392 9393# A sed program that does not truncate output. 9394SED=$lt_SED 9395 9396# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9397Xsed="$SED -e 1s/^X//" 9398 9399# The HP-UX ksh and POSIX shell print the target directory to stdout 9400# if CDPATH is set. 9401(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9402 9403# The names of the tagged configurations supported by this script. 9404available_tags= 9405 9406# ### BEGIN LIBTOOL CONFIG 9407 9408# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9409 9410# Shell to use when invoking shell scripts. 9411SHELL=$lt_SHELL 9412 9413# Whether or not to build shared libraries. 9414build_libtool_libs=$enable_shared 9415 9416# Whether or not to build static libraries. 9417build_old_libs=$enable_static 9418 9419# Whether or not to add -lc for building shared libraries. 9420build_libtool_need_lc=$archive_cmds_need_lc 9421 9422# Whether or not to disallow shared libs when runtime libs are static 9423allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9424 9425# Whether or not to optimize for fast installation. 9426fast_install=$enable_fast_install 9427 9428# The host system. 9429host_alias=$host_alias 9430host=$host 9431host_os=$host_os 9432 9433# The build system. 9434build_alias=$build_alias 9435build=$build 9436build_os=$build_os 9437 9438# An echo program that does not interpret backslashes. 9439echo=$lt_echo 9440 9441# The archiver. 9442AR=$lt_AR 9443AR_FLAGS=$lt_AR_FLAGS 9444 9445# A C compiler. 9446LTCC=$lt_LTCC 9447 9448# A language-specific compiler. 9449CC=$lt_compiler 9450 9451# Is the compiler the GNU C compiler? 9452with_gcc=$GCC 9453 9454# An ERE matcher. 9455EGREP=$lt_EGREP 9456 9457# The linker used to build libraries. 9458LD=$lt_LD 9459 9460# Whether we need hard or soft links. 9461LN_S=$lt_LN_S 9462 9463# A BSD-compatible nm program. 9464NM=$lt_NM 9465 9466# A symbol stripping program 9467STRIP=$lt_STRIP 9468 9469# Used to examine libraries when file_magic_cmd begins "file" 9470MAGIC_CMD=$MAGIC_CMD 9471 9472# Used on cygwin: DLL creation program. 9473DLLTOOL="$DLLTOOL" 9474 9475# Used on cygwin: object dumper. 9476OBJDUMP="$OBJDUMP" 9477 9478# Used on cygwin: assembler. 9479AS="$AS" 9480 9481# The name of the directory that contains temporary libtool files. 9482objdir=$objdir 9483 9484# How to create reloadable object files. 9485reload_flag=$lt_reload_flag 9486reload_cmds=$lt_reload_cmds 9487 9488# How to pass a linker flag through the compiler. 9489wl=$lt_lt_prog_compiler_wl 9490 9491# Object file suffix (normally "o"). 9492objext="$ac_objext" 9493 9494# Old archive suffix (normally "a"). 9495libext="$libext" 9496 9497# Shared library suffix (normally ".so"). 9498shrext_cmds='$shrext_cmds' 9499 9500# Executable file suffix (normally ""). 9501exeext="$exeext" 9502 9503# Additional compiler flags for building library objects. 9504pic_flag=$lt_lt_prog_compiler_pic 9505pic_mode=$pic_mode 9506 9507# What is the maximum length of a command? 9508max_cmd_len=$lt_cv_sys_max_cmd_len 9509 9510# Does compiler simultaneously support -c and -o options? 9511compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9512 9513# Must we lock files when doing compilation? 9514need_locks=$lt_need_locks 9515 9516# Do we need the lib prefix for modules? 9517need_lib_prefix=$need_lib_prefix 9518 9519# Do we need a version for libraries? 9520need_version=$need_version 9521 9522# Whether dlopen is supported. 9523dlopen_support=$enable_dlopen 9524 9525# Whether dlopen of programs is supported. 9526dlopen_self=$enable_dlopen_self 9527 9528# Whether dlopen of statically linked programs is supported. 9529dlopen_self_static=$enable_dlopen_self_static 9530 9531# Compiler flag to prevent dynamic linking. 9532link_static_flag=$lt_lt_prog_compiler_static 9533 9534# Compiler flag to turn off builtin functions. 9535no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9536 9537# Compiler flag to allow reflexive dlopens. 9538export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9539 9540# Compiler flag to generate shared objects directly from archives. 9541whole_archive_flag_spec=$lt_whole_archive_flag_spec 9542 9543# Compiler flag to generate thread-safe objects. 9544thread_safe_flag_spec=$lt_thread_safe_flag_spec 9545 9546# Library versioning type. 9547version_type=$version_type 9548 9549# Format of library name prefix. 9550libname_spec=$lt_libname_spec 9551 9552# List of archive names. First name is the real one, the rest are links. 9553# The last name is the one that the linker finds with -lNAME. 9554library_names_spec=$lt_library_names_spec 9555 9556# The coded name of the library, if different from the real name. 9557soname_spec=$lt_soname_spec 9558 9559# Commands used to build and install an old-style archive. 9560RANLIB=$lt_RANLIB 9561old_archive_cmds=$lt_old_archive_cmds 9562old_postinstall_cmds=$lt_old_postinstall_cmds 9563old_postuninstall_cmds=$lt_old_postuninstall_cmds 9564 9565# Create an old-style archive from a shared archive. 9566old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9567 9568# Create a temporary old-style archive to link instead of a shared archive. 9569old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9570 9571# Commands used to build and install a shared archive. 9572archive_cmds=$lt_archive_cmds 9573archive_expsym_cmds=$lt_archive_expsym_cmds 9574postinstall_cmds=$lt_postinstall_cmds 9575postuninstall_cmds=$lt_postuninstall_cmds 9576 9577# Commands used to build a loadable module (assumed same as above if empty) 9578module_cmds=$lt_module_cmds 9579module_expsym_cmds=$lt_module_expsym_cmds 9580 9581# Commands to strip libraries. 9582old_striplib=$lt_old_striplib 9583striplib=$lt_striplib 9584 9585# Dependencies to place before the objects being linked to create a 9586# shared library. 9587predep_objects=$lt_predep_objects 9588 9589# Dependencies to place after the objects being linked to create a 9590# shared library. 9591postdep_objects=$lt_postdep_objects 9592 9593# Dependencies to place before the objects being linked to create a 9594# shared library. 9595predeps=$lt_predeps 9596 9597# Dependencies to place after the objects being linked to create a 9598# shared library. 9599postdeps=$lt_postdeps 9600 9601# The library search path used internally by the compiler when linking 9602# a shared library. 9603compiler_lib_search_path=$lt_compiler_lib_search_path 9604 9605# Method to check whether dependent libraries are shared objects. 9606deplibs_check_method=$lt_deplibs_check_method 9607 9608# Command to use when deplibs_check_method == file_magic. 9609file_magic_cmd=$lt_file_magic_cmd 9610 9611# Flag that allows shared libraries with undefined symbols to be built. 9612allow_undefined_flag=$lt_allow_undefined_flag 9613 9614# Flag that forces no undefined symbols. 9615no_undefined_flag=$lt_no_undefined_flag 9616 9617# Commands used to finish a libtool library installation in a directory. 9618finish_cmds=$lt_finish_cmds 9619 9620# Same as above, but a single script fragment to be evaled but not shown. 9621finish_eval=$lt_finish_eval 9622 9623# Take the output of nm and produce a listing of raw symbols and C names. 9624global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9625 9626# Transform the output of nm in a proper C declaration 9627global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9628 9629# Transform the output of nm in a C name address pair 9630global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9631 9632# This is the shared library runtime path variable. 9633runpath_var=$runpath_var 9634 9635# This is the shared library path variable. 9636shlibpath_var=$shlibpath_var 9637 9638# Is shlibpath searched before the hard-coded library search path? 9639shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9640 9641# How to hardcode a shared library path into an executable. 9642hardcode_action=$hardcode_action 9643 9644# Whether we should hardcode library paths into libraries. 9645hardcode_into_libs=$hardcode_into_libs 9646 9647# Flag to hardcode \$libdir into a binary during linking. 9648# This must work even if \$libdir does not exist. 9649hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9650 9651# If ld is used when linking, flag to hardcode \$libdir into 9652# a binary during linking. This must work even if \$libdir does 9653# not exist. 9654hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9655 9656# Whether we need a single -rpath flag with a separated argument. 9657hardcode_libdir_separator=$lt_hardcode_libdir_separator 9658 9659# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9660# resulting binary. 9661hardcode_direct=$hardcode_direct 9662 9663# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9664# resulting binary. 9665hardcode_minus_L=$hardcode_minus_L 9666 9667# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9668# the resulting binary. 9669hardcode_shlibpath_var=$hardcode_shlibpath_var 9670 9671# Set to yes if building a shared library automatically hardcodes DIR into the library 9672# and all subsequent libraries and executables linked against it. 9673hardcode_automatic=$hardcode_automatic 9674 9675# Variables whose values should be saved in libtool wrapper scripts and 9676# restored at relink time. 9677variables_saved_for_relink="$variables_saved_for_relink" 9678 9679# Whether libtool must link a program against all its dependency libraries. 9680link_all_deplibs=$link_all_deplibs 9681 9682# Compile-time system search path for libraries 9683sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9684 9685# Run-time system search path for libraries 9686sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9687 9688# Fix the shell variable \$srcfile for the compiler. 9689fix_srcfile_path="$fix_srcfile_path" 9690 9691# Set to yes if exported symbols are required. 9692always_export_symbols=$always_export_symbols 9693 9694# The commands to list exported symbols. 9695export_symbols_cmds=$lt_export_symbols_cmds 9696 9697# The commands to extract the exported symbol list from a shared archive. 9698extract_expsyms_cmds=$lt_extract_expsyms_cmds 9699 9700# Symbols that should not be listed in the preloaded symbols. 9701exclude_expsyms=$lt_exclude_expsyms 9702 9703# Symbols that must always be exported. 9704include_expsyms=$lt_include_expsyms 9705 9706# ### END LIBTOOL CONFIG 9707 9708__EOF__ 9709 9710 9711 case $host_os in 9712 aix3*) 9713 cat <<\EOF >> "$cfgfile" 9714 9715# AIX sometimes has problems with the GCC collect2 program. For some 9716# reason, if we set the COLLECT_NAMES environment variable, the problems 9717# vanish in a puff of smoke. 9718if test "X${COLLECT_NAMES+set}" != Xset; then 9719 COLLECT_NAMES= 9720 export COLLECT_NAMES 9721fi 9722EOF 9723 ;; 9724 esac 9725 9726 # We use sed instead of cat because bash on DJGPP gets confused if 9727 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9728 # text mode, it properly converts lines to CR/LF. This bash problem 9729 # is reportedly fixed, but why not run on old versions too? 9730 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9731 9732 mv -f "$cfgfile" "$ofile" || \ 9733 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9734 chmod +x "$ofile" 9735 9736else 9737 # If there is no Makefile yet, we rely on a make rule to execute 9738 # `config.status --recheck' to rerun these tests and create the 9739 # libtool script then. 9740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9741 if test -f "$ltmain_in"; then 9742 test -f Makefile && make "$ltmain" 9743 fi 9744fi 9745 9746 9747ac_ext=c 9748ac_cpp='$CPP $CPPFLAGS' 9749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9751ac_compiler_gnu=$ac_cv_c_compiler_gnu 9752 9753CC="$lt_save_CC" 9754 9755 9756# Check whether --with-tags or --without-tags was given. 9757if test "${with_tags+set}" = set; then 9758 withval="$with_tags" 9759 tagnames="$withval" 9760fi; 9761 9762if test -f "$ltmain" && test -n "$tagnames"; then 9763 if test ! -f "${ofile}"; then 9764 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9765echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9766 fi 9767 9768 if test -z "$LTCC"; then 9769 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9770 if test -z "$LTCC"; then 9771 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9772echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9773 else 9774 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9775echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9776 fi 9777 fi 9778 9779 # Extract list of available tagged configurations in $ofile. 9780 # Note that this assumes the entire list is on one line. 9781 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9782 9783 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9784 for tagname in $tagnames; do 9785 IFS="$lt_save_ifs" 9786 # Check whether tagname contains only valid characters 9787 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9788 "") ;; 9789 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9790echo "$as_me: error: invalid tag name: $tagname" >&2;} 9791 { (exit 1); exit 1; }; } 9792 ;; 9793 esac 9794 9795 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9796 then 9797 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9798echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9799 { (exit 1); exit 1; }; } 9800 fi 9801 9802 # Update the list of available tags. 9803 if test -n "$tagname"; then 9804 echo appending configuration tag \"$tagname\" to $ofile 9805 9806 case $tagname in 9807 CXX) 9808 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9809 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9810 (test "X$CXX" != "Xg++"))) ; then 9811 ac_ext=cc 9812ac_cpp='$CXXCPP $CPPFLAGS' 9813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9816 9817 9818 9819 9820archive_cmds_need_lc_CXX=no 9821allow_undefined_flag_CXX= 9822always_export_symbols_CXX=no 9823archive_expsym_cmds_CXX= 9824export_dynamic_flag_spec_CXX= 9825hardcode_direct_CXX=no 9826hardcode_libdir_flag_spec_CXX= 9827hardcode_libdir_flag_spec_ld_CXX= 9828hardcode_libdir_separator_CXX= 9829hardcode_minus_L_CXX=no 9830hardcode_automatic_CXX=no 9831module_cmds_CXX= 9832module_expsym_cmds_CXX= 9833link_all_deplibs_CXX=unknown 9834old_archive_cmds_CXX=$old_archive_cmds 9835no_undefined_flag_CXX= 9836whole_archive_flag_spec_CXX= 9837enable_shared_with_static_runtimes_CXX=no 9838 9839# Dependencies to place before and after the object being linked: 9840predep_objects_CXX= 9841postdep_objects_CXX= 9842predeps_CXX= 9843postdeps_CXX= 9844compiler_lib_search_path_CXX= 9845 9846# Source file extension for C++ test sources. 9847ac_ext=cc 9848 9849# Object file extension for compiled C++ test sources. 9850objext=o 9851objext_CXX=$objext 9852 9853# Code to be used in simple compile tests 9854lt_simple_compile_test_code="int some_variable = 0;\n" 9855 9856# Code to be used in simple link tests 9857lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9858 9859# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9860 9861# If no C compiler was specified, use CC. 9862LTCC=${LTCC-"$CC"} 9863 9864# Allow CC to be a program name with arguments. 9865compiler=$CC 9866 9867 9868# save warnings/boilerplate of simple test code 9869ac_outfile=conftest.$ac_objext 9870printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9871eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9872_lt_compiler_boilerplate=`cat conftest.err` 9873$rm conftest* 9874 9875ac_outfile=conftest.$ac_objext 9876printf "$lt_simple_link_test_code" >conftest.$ac_ext 9877eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9878_lt_linker_boilerplate=`cat conftest.err` 9879$rm conftest* 9880 9881 9882# Allow CC to be a program name with arguments. 9883lt_save_CC=$CC 9884lt_save_LD=$LD 9885lt_save_GCC=$GCC 9886GCC=$GXX 9887lt_save_with_gnu_ld=$with_gnu_ld 9888lt_save_path_LD=$lt_cv_path_LD 9889if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9890 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9891else 9892 unset lt_cv_prog_gnu_ld 9893fi 9894if test -n "${lt_cv_path_LDCXX+set}"; then 9895 lt_cv_path_LD=$lt_cv_path_LDCXX 9896else 9897 unset lt_cv_path_LD 9898fi 9899test -z "${LDCXX+set}" || LD=$LDCXX 9900CC=${CXX-"c++"} 9901compiler=$CC 9902compiler_CXX=$CC 9903for cc_temp in $compiler""; do 9904 case $cc_temp in 9905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9907 \-*) ;; 9908 *) break;; 9909 esac 9910done 9911cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9912 9913 9914# We don't want -fno-exception wen compiling C++ code, so set the 9915# no_builtin_flag separately 9916if test "$GXX" = yes; then 9917 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9918else 9919 lt_prog_compiler_no_builtin_flag_CXX= 9920fi 9921 9922if test "$GXX" = yes; then 9923 # Set up default GNU C++ configuration 9924 9925 9926# Check whether --with-gnu-ld or --without-gnu-ld was given. 9927if test "${with_gnu_ld+set}" = set; then 9928 withval="$with_gnu_ld" 9929 test "$withval" = no || with_gnu_ld=yes 9930else 9931 with_gnu_ld=no 9932fi; 9933ac_prog=ld 9934if test "$GCC" = yes; then 9935 # Check if gcc -print-prog-name=ld gives a path. 9936 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9937echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9938 case $host in 9939 *-*-mingw*) 9940 # gcc leaves a trailing carriage return which upsets mingw 9941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9942 *) 9943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9944 esac 9945 case $ac_prog in 9946 # Accept absolute paths. 9947 [\\/]* | ?:[\\/]*) 9948 re_direlt='/[^/][^/]*/\.\./' 9949 # Canonicalize the pathname of ld 9950 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9951 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9952 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9953 done 9954 test -z "$LD" && LD="$ac_prog" 9955 ;; 9956 "") 9957 # If it fails, then pretend we aren't using GCC. 9958 ac_prog=ld 9959 ;; 9960 *) 9961 # If it is relative, then search for the first ld in PATH. 9962 with_gnu_ld=unknown 9963 ;; 9964 esac 9965elif test "$with_gnu_ld" = yes; then 9966 echo "$as_me:$LINENO: checking for GNU ld" >&5 9967echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9968else 9969 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9970echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9971fi 9972if test "${lt_cv_path_LD+set}" = set; then 9973 echo $ECHO_N "(cached) $ECHO_C" >&6 9974else 9975 if test -z "$LD"; then 9976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9977 for ac_dir in $PATH; do 9978 IFS="$lt_save_ifs" 9979 test -z "$ac_dir" && ac_dir=. 9980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9981 lt_cv_path_LD="$ac_dir/$ac_prog" 9982 # Check to see if the program is GNU ld. I'd rather use --version, 9983 # but apparently some GNU ld's only accept -v. 9984 # Break only if it was the GNU/non-GNU ld that we prefer. 9985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9986 *GNU* | *'with BFD'*) 9987 test "$with_gnu_ld" != no && break 9988 ;; 9989 *) 9990 test "$with_gnu_ld" != yes && break 9991 ;; 9992 esac 9993 fi 9994 done 9995 IFS="$lt_save_ifs" 9996else 9997 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9998fi 9999fi 10000 10001LD="$lt_cv_path_LD" 10002if test -n "$LD"; then 10003 echo "$as_me:$LINENO: result: $LD" >&5 10004echo "${ECHO_T}$LD" >&6 10005else 10006 echo "$as_me:$LINENO: result: no" >&5 10007echo "${ECHO_T}no" >&6 10008fi 10009test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10010echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10011 { (exit 1); exit 1; }; } 10012echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10013echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10014if test "${lt_cv_prog_gnu_ld+set}" = set; then 10015 echo $ECHO_N "(cached) $ECHO_C" >&6 10016else 10017 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10018case `$LD -v 2>&1 </dev/null` in 10019*GNU* | *'with BFD'*) 10020 lt_cv_prog_gnu_ld=yes 10021 ;; 10022*) 10023 lt_cv_prog_gnu_ld=no 10024 ;; 10025esac 10026fi 10027echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10028echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10029with_gnu_ld=$lt_cv_prog_gnu_ld 10030 10031 10032 10033 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10034 # archiving commands below assume that GNU ld is being used. 10035 if test "$with_gnu_ld" = yes; then 10036 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10037 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' 10038 10039 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10041 10042 # If archive_cmds runs LD, not CC, wlarc should be empty 10043 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10044 # investigate it a little bit more. (MM) 10045 wlarc='${wl}' 10046 10047 # ancient GNU ld didn't support --whole-archive et. al. 10048 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10049 grep 'no-whole-archive' > /dev/null; then 10050 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10051 else 10052 whole_archive_flag_spec_CXX= 10053 fi 10054 else 10055 with_gnu_ld=no 10056 wlarc= 10057 10058 # A generic and very simple default shared library creation 10059 # command for GNU C++ for the case where it uses the native 10060 # linker, instead of GNU ld. If possible, this setting should 10061 # overridden to take advantage of the native linker features on 10062 # the platform it is being used on. 10063 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10064 fi 10065 10066 # Commands to make compiler produce verbose output that lists 10067 # what "hidden" libraries, object files and flags are used when 10068 # linking a shared library. 10069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10070 10071else 10072 GXX=no 10073 with_gnu_ld=no 10074 wlarc= 10075fi 10076 10077# PORTME: fill in a description of your system's C++ link characteristics 10078echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10079echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10080ld_shlibs_CXX=yes 10081case $host_os in 10082 aix3*) 10083 # FIXME: insert proper C++ library support 10084 ld_shlibs_CXX=no 10085 ;; 10086 aix4* | aix5*) 10087 if test "$host_cpu" = ia64; then 10088 # On IA64, the linker does run time linking by default, so we don't 10089 # have to do anything special. 10090 aix_use_runtimelinking=no 10091 exp_sym_flag='-Bexport' 10092 no_entry_flag="" 10093 else 10094 aix_use_runtimelinking=no 10095 10096 # Test if we are trying to use run time linking or normal 10097 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10098 # need to do runtime linking. 10099 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10100 for ld_flag in $LDFLAGS; do 10101 case $ld_flag in 10102 *-brtl*) 10103 aix_use_runtimelinking=yes 10104 break 10105 ;; 10106 esac 10107 done 10108 esac 10109 10110 exp_sym_flag='-bexport' 10111 no_entry_flag='-bnoentry' 10112 fi 10113 10114 # When large executables or shared objects are built, AIX ld can 10115 # have problems creating the table of contents. If linking a library 10116 # or program results in "error TOC overflow" add -mminimal-toc to 10117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10119 10120 archive_cmds_CXX='' 10121 hardcode_direct_CXX=yes 10122 hardcode_libdir_separator_CXX=':' 10123 link_all_deplibs_CXX=yes 10124 10125 if test "$GXX" = yes; then 10126 case $host_os in aix4.[012]|aix4.[012].*) 10127 # We only want to do this on AIX 4.2 and lower, the check 10128 # below for broken collect2 doesn't work under 4.3+ 10129 collect2name=`${CC} -print-prog-name=collect2` 10130 if test -f "$collect2name" && \ 10131 strings "$collect2name" | grep resolve_lib_name >/dev/null 10132 then 10133 # We have reworked collect2 10134 hardcode_direct_CXX=yes 10135 else 10136 # We have old collect2 10137 hardcode_direct_CXX=unsupported 10138 # It fails to find uninstalled libraries when the uninstalled 10139 # path is not listed in the libpath. Setting hardcode_minus_L 10140 # to unsupported forces relinking 10141 hardcode_minus_L_CXX=yes 10142 hardcode_libdir_flag_spec_CXX='-L$libdir' 10143 hardcode_libdir_separator_CXX= 10144 fi 10145 esac 10146 shared_flag='-shared' 10147 if test "$aix_use_runtimelinking" = yes; then 10148 shared_flag="$shared_flag "'${wl}-G' 10149 fi 10150 else 10151 # not using gcc 10152 if test "$host_cpu" = ia64; then 10153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10154 # chokes on -Wl,-G. The following line is correct: 10155 shared_flag='-G' 10156 else 10157 if test "$aix_use_runtimelinking" = yes; then 10158 shared_flag='${wl}-G' 10159 else 10160 shared_flag='${wl}-bM:SRE' 10161 fi 10162 fi 10163 fi 10164 10165 # It seems that -bexpall does not export symbols beginning with 10166 # underscore (_), so it is better to generate a list of symbols to export. 10167 always_export_symbols_CXX=yes 10168 if test "$aix_use_runtimelinking" = yes; then 10169 # Warning - without using the other runtime loading flags (-brtl), 10170 # -berok will link without error, but may produce a broken library. 10171 allow_undefined_flag_CXX='-berok' 10172 # Determine the default libpath from the value encoded in an empty executable. 10173 cat >conftest.$ac_ext <<_ACEOF 10174/* confdefs.h. */ 10175_ACEOF 10176cat confdefs.h >>conftest.$ac_ext 10177cat >>conftest.$ac_ext <<_ACEOF 10178/* end confdefs.h. */ 10179 10180int 10181main () 10182{ 10183 10184 ; 10185 return 0; 10186} 10187_ACEOF 10188rm -f conftest.$ac_objext conftest$ac_exeext 10189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10190 (eval $ac_link) 2>conftest.er1 10191 ac_status=$? 10192 grep -v '^ *+' conftest.er1 >conftest.err 10193 rm -f conftest.er1 10194 cat conftest.err >&5 10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10196 (exit $ac_status); } && 10197 { ac_try='test -z "$ac_cxx_werror_flag" 10198 || test ! -s conftest.err' 10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10200 (eval $ac_try) 2>&5 10201 ac_status=$? 10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 (exit $ac_status); }; } && 10204 { ac_try='test -s conftest$ac_exeext' 10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10206 (eval $ac_try) 2>&5 10207 ac_status=$? 10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10209 (exit $ac_status); }; }; then 10210 10211aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10212}'` 10213# Check for a 64-bit object if we didn't find anything. 10214if 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; } 10215}'`; fi 10216else 10217 echo "$as_me: failed program was:" >&5 10218sed 's/^/| /' conftest.$ac_ext >&5 10219 10220fi 10221rm -f conftest.err conftest.$ac_objext \ 10222 conftest$ac_exeext conftest.$ac_ext 10223if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10224 10225 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10226 10227 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" 10228 else 10229 if test "$host_cpu" = ia64; then 10230 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10231 allow_undefined_flag_CXX="-z nodefs" 10232 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" 10233 else 10234 # Determine the default libpath from the value encoded in an empty executable. 10235 cat >conftest.$ac_ext <<_ACEOF 10236/* confdefs.h. */ 10237_ACEOF 10238cat confdefs.h >>conftest.$ac_ext 10239cat >>conftest.$ac_ext <<_ACEOF 10240/* end confdefs.h. */ 10241 10242int 10243main () 10244{ 10245 10246 ; 10247 return 0; 10248} 10249_ACEOF 10250rm -f conftest.$ac_objext conftest$ac_exeext 10251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10252 (eval $ac_link) 2>conftest.er1 10253 ac_status=$? 10254 grep -v '^ *+' conftest.er1 >conftest.err 10255 rm -f conftest.er1 10256 cat conftest.err >&5 10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10258 (exit $ac_status); } && 10259 { ac_try='test -z "$ac_cxx_werror_flag" 10260 || test ! -s conftest.err' 10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10262 (eval $ac_try) 2>&5 10263 ac_status=$? 10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10265 (exit $ac_status); }; } && 10266 { ac_try='test -s conftest$ac_exeext' 10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10268 (eval $ac_try) 2>&5 10269 ac_status=$? 10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10271 (exit $ac_status); }; }; then 10272 10273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10274}'` 10275# Check for a 64-bit object if we didn't find anything. 10276if 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; } 10277}'`; fi 10278else 10279 echo "$as_me: failed program was:" >&5 10280sed 's/^/| /' conftest.$ac_ext >&5 10281 10282fi 10283rm -f conftest.err conftest.$ac_objext \ 10284 conftest$ac_exeext conftest.$ac_ext 10285if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10286 10287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10288 # Warning - without using the other run time loading flags, 10289 # -berok will link without error, but may produce a broken library. 10290 no_undefined_flag_CXX=' ${wl}-bernotok' 10291 allow_undefined_flag_CXX=' ${wl}-berok' 10292 # -bexpall does not export symbols beginning with underscore (_) 10293 always_export_symbols_CXX=yes 10294 # Exported symbols can be pulled into shared objects from archives 10295 whole_archive_flag_spec_CXX=' ' 10296 archive_cmds_need_lc_CXX=yes 10297 # This is similar to how AIX traditionally builds it's shared libraries. 10298 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' 10299 fi 10300 fi 10301 ;; 10302 chorus*) 10303 case $cc_basename in 10304 *) 10305 # FIXME: insert proper C++ library support 10306 ld_shlibs_CXX=no 10307 ;; 10308 esac 10309 ;; 10310 10311 10312 cygwin* | mingw* | pw32*) 10313 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10314 # as there is no search path for DLLs. 10315 hardcode_libdir_flag_spec_CXX='-L$libdir' 10316 allow_undefined_flag_CXX=unsupported 10317 always_export_symbols_CXX=no 10318 enable_shared_with_static_runtimes_CXX=yes 10319 10320 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10321 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' 10322 # If the export-symbols file already is a .def file (1st line 10323 # is EXPORTS), use it as is; otherwise, prepend... 10324 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10325 cp $export_symbols $output_objdir/$soname.def; 10326 else 10327 echo EXPORTS > $output_objdir/$soname.def; 10328 cat $export_symbols >> $output_objdir/$soname.def; 10329 fi~ 10330 $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' 10331 else 10332 ld_shlibs_CXX=no 10333 fi 10334 ;; 10335 darwin* | rhapsody*) 10336 case "$host_os" in 10337 rhapsody* | darwin1.[012]) 10338 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10339 ;; 10340 *) # Darwin 1.3 on 10341 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10342 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10343 else 10344 case ${MACOSX_DEPLOYMENT_TARGET} in 10345 10.[012]) 10346 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10347 ;; 10348 10.*) 10349 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10350 ;; 10351 esac 10352 fi 10353 ;; 10354 esac 10355 archive_cmds_need_lc_CXX=no 10356 hardcode_direct_CXX=no 10357 hardcode_automatic_CXX=yes 10358 hardcode_shlibpath_var_CXX=unsupported 10359 whole_archive_flag_spec_CXX='' 10360 link_all_deplibs_CXX=yes 10361 10362 if test "$GXX" = yes ; then 10363 lt_int_apple_cc_single_mod=no 10364 output_verbose_link_cmd='echo' 10365 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10366 lt_int_apple_cc_single_mod=yes 10367 fi 10368 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10369 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10370 else 10371 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' 10372 fi 10373 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10374 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10375 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10376 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}' 10377 else 10378 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}' 10379 fi 10380 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}' 10381 else 10382 case $cc_basename in 10383 xlc*) 10384 output_verbose_link_cmd='echo' 10385 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' 10386 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10387 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10388 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}' 10389 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}' 10390 ;; 10391 *) 10392 ld_shlibs_CXX=no 10393 ;; 10394 esac 10395 fi 10396 ;; 10397 10398 dgux*) 10399 case $cc_basename in 10400 ec++*) 10401 # FIXME: insert proper C++ library support 10402 ld_shlibs_CXX=no 10403 ;; 10404 ghcx*) 10405 # Green Hills C++ Compiler 10406 # FIXME: insert proper C++ library support 10407 ld_shlibs_CXX=no 10408 ;; 10409 *) 10410 # FIXME: insert proper C++ library support 10411 ld_shlibs_CXX=no 10412 ;; 10413 esac 10414 ;; 10415 freebsd[12]*) 10416 # C++ shared libraries reported to be fairly broken before switch to ELF 10417 ld_shlibs_CXX=no 10418 ;; 10419 freebsd-elf*) 10420 archive_cmds_need_lc_CXX=no 10421 ;; 10422 freebsd* | kfreebsd*-gnu | dragonfly*) 10423 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10424 # conventions 10425 ld_shlibs_CXX=yes 10426 ;; 10427 gnu*) 10428 ;; 10429 hpux9*) 10430 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10431 hardcode_libdir_separator_CXX=: 10432 export_dynamic_flag_spec_CXX='${wl}-E' 10433 hardcode_direct_CXX=yes 10434 hardcode_minus_L_CXX=yes # Not in the search PATH, 10435 # but as the default 10436 # location of the library. 10437 10438 case $cc_basename in 10439 CC*) 10440 # FIXME: insert proper C++ library support 10441 ld_shlibs_CXX=no 10442 ;; 10443 aCC*) 10444 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' 10445 # Commands to make compiler produce verbose output that lists 10446 # what "hidden" libraries, object files and flags are used when 10447 # linking a shared library. 10448 # 10449 # There doesn't appear to be a way to prevent this compiler from 10450 # explicitly linking system object files so we need to strip them 10451 # from the output so that they don't get included in the library 10452 # dependencies. 10453 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' 10454 ;; 10455 *) 10456 if test "$GXX" = yes; then 10457 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' 10458 else 10459 # FIXME: insert proper C++ library support 10460 ld_shlibs_CXX=no 10461 fi 10462 ;; 10463 esac 10464 ;; 10465 hpux10*|hpux11*) 10466 if test $with_gnu_ld = no; then 10467 case "$host_cpu" in 10468 hppa*64*) 10469 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10470 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10471 hardcode_libdir_separator_CXX=: 10472 ;; 10473 ia64*) 10474 hardcode_libdir_flag_spec_CXX='-L$libdir' 10475 ;; 10476 *) 10477 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10478 hardcode_libdir_separator_CXX=: 10479 export_dynamic_flag_spec_CXX='${wl}-E' 10480 ;; 10481 esac 10482 fi 10483 case "$host_cpu" in 10484 hppa*64*) 10485 hardcode_direct_CXX=no 10486 hardcode_shlibpath_var_CXX=no 10487 ;; 10488 ia64*) 10489 hardcode_direct_CXX=no 10490 hardcode_shlibpath_var_CXX=no 10491 hardcode_minus_L_CXX=yes # Not in the search PATH, 10492 # but as the default 10493 # location of the library. 10494 ;; 10495 *) 10496 hardcode_direct_CXX=yes 10497 hardcode_minus_L_CXX=yes # Not in the search PATH, 10498 # but as the default 10499 # location of the library. 10500 ;; 10501 esac 10502 10503 case $cc_basename in 10504 CC*) 10505 # FIXME: insert proper C++ library support 10506 ld_shlibs_CXX=no 10507 ;; 10508 aCC*) 10509 case "$host_cpu" in 10510 hppa*64*|ia64*) 10511 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10512 ;; 10513 *) 10514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10515 ;; 10516 esac 10517 # Commands to make compiler produce verbose output that lists 10518 # what "hidden" libraries, object files and flags are used when 10519 # linking a shared library. 10520 # 10521 # There doesn't appear to be a way to prevent this compiler from 10522 # explicitly linking system object files so we need to strip them 10523 # from the output so that they don't get included in the library 10524 # dependencies. 10525 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' 10526 ;; 10527 *) 10528 if test "$GXX" = yes; then 10529 if test $with_gnu_ld = no; then 10530 case "$host_cpu" in 10531 ia64*|hppa*64*) 10532 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10533 ;; 10534 *) 10535 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' 10536 ;; 10537 esac 10538 fi 10539 else 10540 # FIXME: insert proper C++ library support 10541 ld_shlibs_CXX=no 10542 fi 10543 ;; 10544 esac 10545 ;; 10546 irix5* | irix6*) 10547 case $cc_basename in 10548 CC*) 10549 # SGI C++ 10550 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' 10551 10552 # Archives containing C++ object files must be created using 10553 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10554 # necessary to make sure instantiated templates are included 10555 # in the archive. 10556 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10557 ;; 10558 *) 10559 if test "$GXX" = yes; then 10560 if test "$with_gnu_ld" = no; then 10561 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' 10562 else 10563 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' 10564 fi 10565 fi 10566 link_all_deplibs_CXX=yes 10567 ;; 10568 esac 10569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10570 hardcode_libdir_separator_CXX=: 10571 ;; 10572 linux*) 10573 case $cc_basename in 10574 KCC*) 10575 # Kuck and Associates, Inc. (KAI) C++ Compiler 10576 10577 # KCC will only create a shared library if the output file 10578 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10579 # to its proper name (with version) after linking. 10580 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' 10581 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' 10582 # Commands to make compiler produce verbose output that lists 10583 # what "hidden" libraries, object files and flags are used when 10584 # linking a shared library. 10585 # 10586 # There doesn't appear to be a way to prevent this compiler from 10587 # explicitly linking system object files so we need to strip them 10588 # from the output so that they don't get included in the library 10589 # dependencies. 10590 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' 10591 10592 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10594 10595 # Archives containing C++ object files must be created using 10596 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10597 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10598 ;; 10599 icpc*) 10600 # Intel C++ 10601 with_gnu_ld=yes 10602 # version 8.0 and above of icpc choke on multiply defined symbols 10603 # if we add $predep_objects and $postdep_objects, however 7.1 and 10604 # earlier do not add the objects themselves. 10605 case `$CC -V 2>&1` in 10606 *"Version 7."*) 10607 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10608 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' 10609 ;; 10610 *) # Version 8.0 or newer 10611 tmp_idyn= 10612 case $host_cpu in 10613 ia64*) tmp_idyn=' -i_dynamic';; 10614 esac 10615 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10616 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' 10617 ;; 10618 esac 10619 archive_cmds_need_lc_CXX=no 10620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10622 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10623 ;; 10624 pgCC*) 10625 # Portland Group C++ compiler 10626 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10627 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' 10628 10629 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10631 whole_archive_flag_spec_CXX='' 10632 ;; 10633 cxx*) 10634 # Compaq C++ 10635 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10636 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' 10637 10638 runpath_var=LD_RUN_PATH 10639 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10640 hardcode_libdir_separator_CXX=: 10641 10642 # Commands to make compiler produce verbose output that lists 10643 # what "hidden" libraries, object files and flags are used when 10644 # linking a shared library. 10645 # 10646 # There doesn't appear to be a way to prevent this compiler from 10647 # explicitly linking system object files so we need to strip them 10648 # from the output so that they don't get included in the library 10649 # dependencies. 10650 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' 10651 ;; 10652 esac 10653 ;; 10654 lynxos*) 10655 # FIXME: insert proper C++ library support 10656 ld_shlibs_CXX=no 10657 ;; 10658 m88k*) 10659 # FIXME: insert proper C++ library support 10660 ld_shlibs_CXX=no 10661 ;; 10662 mvs*) 10663 case $cc_basename in 10664 cxx*) 10665 # FIXME: insert proper C++ library support 10666 ld_shlibs_CXX=no 10667 ;; 10668 *) 10669 # FIXME: insert proper C++ library support 10670 ld_shlibs_CXX=no 10671 ;; 10672 esac 10673 ;; 10674 netbsd*) 10675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10676 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10677 wlarc= 10678 hardcode_libdir_flag_spec_CXX='-R$libdir' 10679 hardcode_direct_CXX=yes 10680 hardcode_shlibpath_var_CXX=no 10681 fi 10682 # Workaround some broken pre-1.5 toolchains 10683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10684 ;; 10685 openbsd2*) 10686 # C++ shared libraries are fairly broken 10687 ld_shlibs_CXX=no 10688 ;; 10689 openbsd*) 10690 hardcode_direct_CXX=yes 10691 hardcode_shlibpath_var_CXX=no 10692 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10695 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10696 export_dynamic_flag_spec_CXX='${wl}-E' 10697 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10698 fi 10699 output_verbose_link_cmd='echo' 10700 ;; 10701 osf3*) 10702 case $cc_basename in 10703 KCC*) 10704 # Kuck and Associates, Inc. (KAI) C++ Compiler 10705 10706 # KCC will only create a shared library if the output file 10707 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10708 # to its proper name (with version) after linking. 10709 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' 10710 10711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10712 hardcode_libdir_separator_CXX=: 10713 10714 # Archives containing C++ object files must be created using 10715 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10716 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10717 10718 ;; 10719 RCC*) 10720 # Rational C++ 2.4.1 10721 # FIXME: insert proper C++ library support 10722 ld_shlibs_CXX=no 10723 ;; 10724 cxx*) 10725 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10726 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' 10727 10728 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10729 hardcode_libdir_separator_CXX=: 10730 10731 # Commands to make compiler produce verbose output that lists 10732 # what "hidden" libraries, object files and flags are used when 10733 # linking a shared library. 10734 # 10735 # There doesn't appear to be a way to prevent this compiler from 10736 # explicitly linking system object files so we need to strip them 10737 # from the output so that they don't get included in the library 10738 # dependencies. 10739 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' 10740 ;; 10741 *) 10742 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10743 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10744 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' 10745 10746 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10747 hardcode_libdir_separator_CXX=: 10748 10749 # Commands to make compiler produce verbose output that lists 10750 # what "hidden" libraries, object files and flags are used when 10751 # linking a shared library. 10752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10753 10754 else 10755 # FIXME: insert proper C++ library support 10756 ld_shlibs_CXX=no 10757 fi 10758 ;; 10759 esac 10760 ;; 10761 osf4* | osf5*) 10762 case $cc_basename in 10763 KCC*) 10764 # Kuck and Associates, Inc. (KAI) C++ Compiler 10765 10766 # KCC will only create a shared library if the output file 10767 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10768 # to its proper name (with version) after linking. 10769 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' 10770 10771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10772 hardcode_libdir_separator_CXX=: 10773 10774 # Archives containing C++ object files must be created using 10775 # the KAI C++ compiler. 10776 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10777 ;; 10778 RCC*) 10779 # Rational C++ 2.4.1 10780 # FIXME: insert proper C++ library support 10781 ld_shlibs_CXX=no 10782 ;; 10783 cxx*) 10784 allow_undefined_flag_CXX=' -expect_unresolved \*' 10785 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' 10786 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10787 echo "-hidden">> $lib.exp~ 10788 $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~ 10789 $rm $lib.exp' 10790 10791 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10792 hardcode_libdir_separator_CXX=: 10793 10794 # Commands to make compiler produce verbose output that lists 10795 # what "hidden" libraries, object files and flags are used when 10796 # linking a shared library. 10797 # 10798 # There doesn't appear to be a way to prevent this compiler from 10799 # explicitly linking system object files so we need to strip them 10800 # from the output so that they don't get included in the library 10801 # dependencies. 10802 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' 10803 ;; 10804 *) 10805 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10806 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10807 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' 10808 10809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10810 hardcode_libdir_separator_CXX=: 10811 10812 # Commands to make compiler produce verbose output that lists 10813 # what "hidden" libraries, object files and flags are used when 10814 # linking a shared library. 10815 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10816 10817 else 10818 # FIXME: insert proper C++ library support 10819 ld_shlibs_CXX=no 10820 fi 10821 ;; 10822 esac 10823 ;; 10824 psos*) 10825 # FIXME: insert proper C++ library support 10826 ld_shlibs_CXX=no 10827 ;; 10828 sco*) 10829 archive_cmds_need_lc_CXX=no 10830 case $cc_basename in 10831 CC*) 10832 # FIXME: insert proper C++ library support 10833 ld_shlibs_CXX=no 10834 ;; 10835 *) 10836 # FIXME: insert proper C++ library support 10837 ld_shlibs_CXX=no 10838 ;; 10839 esac 10840 ;; 10841 sunos4*) 10842 case $cc_basename in 10843 CC*) 10844 # Sun C++ 4.x 10845 # FIXME: insert proper C++ library support 10846 ld_shlibs_CXX=no 10847 ;; 10848 lcc*) 10849 # Lucid 10850 # FIXME: insert proper C++ library support 10851 ld_shlibs_CXX=no 10852 ;; 10853 *) 10854 # FIXME: insert proper C++ library support 10855 ld_shlibs_CXX=no 10856 ;; 10857 esac 10858 ;; 10859 solaris*) 10860 case $cc_basename in 10861 CC*) 10862 # Sun C++ 4.2, 5.x and Centerline C++ 10863 no_undefined_flag_CXX=' -zdefs' 10864 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10865 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10866 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10867 10868 hardcode_libdir_flag_spec_CXX='-R$libdir' 10869 hardcode_shlibpath_var_CXX=no 10870 case $host_os in 10871 solaris2.[0-5] | solaris2.[0-5].*) ;; 10872 *) 10873 # The C++ compiler is used as linker so we must use $wl 10874 # flag to pass the commands to the underlying system 10875 # linker. We must also pass each convience library through 10876 # to the system linker between allextract/defaultextract. 10877 # The C++ compiler will combine linker options so we 10878 # cannot just pass the convience library names through 10879 # without $wl. 10880 # Supported since Solaris 2.6 (maybe 2.5.1?) 10881 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' 10882 ;; 10883 esac 10884 link_all_deplibs_CXX=yes 10885 10886 # Commands to make compiler produce verbose output that lists 10887 # what "hidden" libraries, object files and flags are used when 10888 # linking a shared library. 10889 # 10890 # There doesn't appear to be a way to prevent this compiler from 10891 # explicitly linking system object files so we need to strip them 10892 # from the output so that they don't get included in the library 10893 # dependencies. 10894 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10895 10896 # Archives containing C++ object files must be created using 10897 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10898 # necessary to make sure instantiated templates are included 10899 # in the archive. 10900 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10901 ;; 10902 gcx*) 10903 # Green Hills C++ Compiler 10904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10905 10906 # The C++ compiler must be used to create the archive. 10907 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10908 ;; 10909 *) 10910 # GNU C++ compiler with Solaris linker 10911 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10912 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10913 if $CC --version | grep -v '^2\.7' > /dev/null; then 10914 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10915 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10916 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10917 10918 # Commands to make compiler produce verbose output that lists 10919 # what "hidden" libraries, object files and flags are used when 10920 # linking a shared library. 10921 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10922 else 10923 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10924 # platform. 10925 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10926 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10927 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10928 10929 # Commands to make compiler produce verbose output that lists 10930 # what "hidden" libraries, object files and flags are used when 10931 # linking a shared library. 10932 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10933 fi 10934 10935 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10936 fi 10937 ;; 10938 esac 10939 ;; 10940 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10941 archive_cmds_need_lc_CXX=no 10942 ;; 10943 tandem*) 10944 case $cc_basename in 10945 NCC*) 10946 # NonStop-UX NCC 3.20 10947 # FIXME: insert proper C++ library support 10948 ld_shlibs_CXX=no 10949 ;; 10950 *) 10951 # FIXME: insert proper C++ library support 10952 ld_shlibs_CXX=no 10953 ;; 10954 esac 10955 ;; 10956 vxworks*) 10957 # FIXME: insert proper C++ library support 10958 ld_shlibs_CXX=no 10959 ;; 10960 *) 10961 # FIXME: insert proper C++ library support 10962 ld_shlibs_CXX=no 10963 ;; 10964esac 10965echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10966echo "${ECHO_T}$ld_shlibs_CXX" >&6 10967test "$ld_shlibs_CXX" = no && can_build_shared=no 10968 10969GCC_CXX="$GXX" 10970LD_CXX="$LD" 10971 10972 10973cat > conftest.$ac_ext <<EOF 10974class Foo 10975{ 10976public: 10977 Foo (void) { a = 0; } 10978private: 10979 int a; 10980}; 10981EOF 10982 10983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10984 (eval $ac_compile) 2>&5 10985 ac_status=$? 10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10987 (exit $ac_status); }; then 10988 # Parse the compiler output and extract the necessary 10989 # objects, libraries and library flags. 10990 10991 # Sentinel used to keep track of whether or not we are before 10992 # the conftest object file. 10993 pre_test_object_deps_done=no 10994 10995 # The `*' in the case matches for architectures that use `case' in 10996 # $output_verbose_cmd can trigger glob expansion during the loop 10997 # eval without this substitution. 10998 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10999 11000 for p in `eval $output_verbose_link_cmd`; do 11001 case $p in 11002 11003 -L* | -R* | -l*) 11004 # Some compilers place space between "-{L,R}" and the path. 11005 # Remove the space. 11006 if test $p = "-L" \ 11007 || test $p = "-R"; then 11008 prev=$p 11009 continue 11010 else 11011 prev= 11012 fi 11013 11014 if test "$pre_test_object_deps_done" = no; then 11015 case $p in 11016 -L* | -R*) 11017 # Internal compiler library paths should come after those 11018 # provided the user. The postdeps already come after the 11019 # user supplied libs so there is no need to process them. 11020 if test -z "$compiler_lib_search_path_CXX"; then 11021 compiler_lib_search_path_CXX="${prev}${p}" 11022 else 11023 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11024 fi 11025 ;; 11026 # The "-l" case would never come before the object being 11027 # linked, so don't bother handling this case. 11028 esac 11029 else 11030 if test -z "$postdeps_CXX"; then 11031 postdeps_CXX="${prev}${p}" 11032 else 11033 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11034 fi 11035 fi 11036 ;; 11037 11038 *.$objext) 11039 # This assumes that the test object file only shows up 11040 # once in the compiler output. 11041 if test "$p" = "conftest.$objext"; then 11042 pre_test_object_deps_done=yes 11043 continue 11044 fi 11045 11046 if test "$pre_test_object_deps_done" = no; then 11047 if test -z "$predep_objects_CXX"; then 11048 predep_objects_CXX="$p" 11049 else 11050 predep_objects_CXX="$predep_objects_CXX $p" 11051 fi 11052 else 11053 if test -z "$postdep_objects_CXX"; then 11054 postdep_objects_CXX="$p" 11055 else 11056 postdep_objects_CXX="$postdep_objects_CXX $p" 11057 fi 11058 fi 11059 ;; 11060 11061 *) ;; # Ignore the rest. 11062 11063 esac 11064 done 11065 11066 # Clean up. 11067 rm -f a.out a.exe 11068else 11069 echo "libtool.m4: error: problem compiling CXX test program" 11070fi 11071 11072$rm -f confest.$objext 11073 11074case " $postdeps_CXX " in 11075*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11076esac 11077 11078lt_prog_compiler_wl_CXX= 11079lt_prog_compiler_pic_CXX= 11080lt_prog_compiler_static_CXX= 11081 11082echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11083echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11084 11085 # C++ specific cases for pic, static, wl, etc. 11086 if test "$GXX" = yes; then 11087 lt_prog_compiler_wl_CXX='-Wl,' 11088 lt_prog_compiler_static_CXX='-static' 11089 11090 case $host_os in 11091 aix*) 11092 # All AIX code is PIC. 11093 if test "$host_cpu" = ia64; then 11094 # AIX 5 now supports IA64 processor 11095 lt_prog_compiler_static_CXX='-Bstatic' 11096 fi 11097 ;; 11098 amigaos*) 11099 # FIXME: we need at least 68020 code to build shared libraries, but 11100 # adding the `-m68020' flag to GCC prevents building anything better, 11101 # like `-m68040'. 11102 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11103 ;; 11104 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11105 # PIC is the default for these OSes. 11106 ;; 11107 mingw* | os2* | pw32*) 11108 # This hack is so that the source file can tell whether it is being 11109 # built for inclusion in a dll (and should export symbols for example). 11110 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11111 ;; 11112 darwin* | rhapsody*) 11113 # PIC is the default on this platform 11114 # Common symbols not allowed in MH_DYLIB files 11115 lt_prog_compiler_pic_CXX='-fno-common' 11116 ;; 11117 *djgpp*) 11118 # DJGPP does not support shared libraries at all 11119 lt_prog_compiler_pic_CXX= 11120 ;; 11121 sysv4*MP*) 11122 if test -d /usr/nec; then 11123 lt_prog_compiler_pic_CXX=-Kconform_pic 11124 fi 11125 ;; 11126 hpux*) 11127 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11128 # not for PA HP-UX. 11129 case "$host_cpu" in 11130 hppa*64*|ia64*) 11131 ;; 11132 *) 11133 lt_prog_compiler_pic_CXX='-fPIC' 11134 ;; 11135 esac 11136 ;; 11137 *) 11138 lt_prog_compiler_pic_CXX='-fPIC' 11139 ;; 11140 esac 11141 else 11142 case $host_os in 11143 aix4* | aix5*) 11144 # All AIX code is PIC. 11145 if test "$host_cpu" = ia64; then 11146 # AIX 5 now supports IA64 processor 11147 lt_prog_compiler_static_CXX='-Bstatic' 11148 else 11149 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11150 fi 11151 ;; 11152 chorus*) 11153 case $cc_basename in 11154 cxch68*) 11155 # Green Hills C++ Compiler 11156 # _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" 11157 ;; 11158 esac 11159 ;; 11160 darwin*) 11161 # PIC is the default on this platform 11162 # Common symbols not allowed in MH_DYLIB files 11163 case $cc_basename in 11164 xlc*) 11165 lt_prog_compiler_pic_CXX='-qnocommon' 11166 lt_prog_compiler_wl_CXX='-Wl,' 11167 ;; 11168 esac 11169 ;; 11170 dgux*) 11171 case $cc_basename in 11172 ec++*) 11173 lt_prog_compiler_pic_CXX='-KPIC' 11174 ;; 11175 ghcx*) 11176 # Green Hills C++ Compiler 11177 lt_prog_compiler_pic_CXX='-pic' 11178 ;; 11179 *) 11180 ;; 11181 esac 11182 ;; 11183 freebsd* | kfreebsd*-gnu | dragonfly*) 11184 # FreeBSD uses GNU C++ 11185 ;; 11186 hpux9* | hpux10* | hpux11*) 11187 case $cc_basename in 11188 CC*) 11189 lt_prog_compiler_wl_CXX='-Wl,' 11190 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11191 if test "$host_cpu" != ia64; then 11192 lt_prog_compiler_pic_CXX='+Z' 11193 fi 11194 ;; 11195 aCC*) 11196 lt_prog_compiler_wl_CXX='-Wl,' 11197 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11198 case "$host_cpu" in 11199 hppa*64*|ia64*) 11200 # +Z the default 11201 ;; 11202 *) 11203 lt_prog_compiler_pic_CXX='+Z' 11204 ;; 11205 esac 11206 ;; 11207 *) 11208 ;; 11209 esac 11210 ;; 11211 irix5* | irix6* | nonstopux*) 11212 case $cc_basename in 11213 CC*) 11214 lt_prog_compiler_wl_CXX='-Wl,' 11215 lt_prog_compiler_static_CXX='-non_shared' 11216 # CC pic flag -KPIC is the default. 11217 ;; 11218 *) 11219 ;; 11220 esac 11221 ;; 11222 linux*) 11223 case $cc_basename in 11224 KCC*) 11225 # KAI C++ Compiler 11226 lt_prog_compiler_wl_CXX='--backend -Wl,' 11227 lt_prog_compiler_pic_CXX='-fPIC' 11228 ;; 11229 icpc* | ecpc*) 11230 # Intel C++ 11231 lt_prog_compiler_wl_CXX='-Wl,' 11232 lt_prog_compiler_pic_CXX='-KPIC' 11233 lt_prog_compiler_static_CXX='-static' 11234 ;; 11235 pgCC*) 11236 # Portland Group C++ compiler. 11237 lt_prog_compiler_wl_CXX='-Wl,' 11238 lt_prog_compiler_pic_CXX='-fpic' 11239 lt_prog_compiler_static_CXX='-static' 11240 ;; 11241 cxx*) 11242 # Compaq C++ 11243 # Make sure the PIC flag is empty. It appears that all Alpha 11244 # Linux and Compaq Tru64 Unix objects are PIC. 11245 lt_prog_compiler_pic_CXX= 11246 lt_prog_compiler_static_CXX='-non_shared' 11247 ;; 11248 *) 11249 ;; 11250 esac 11251 ;; 11252 lynxos*) 11253 ;; 11254 m88k*) 11255 ;; 11256 mvs*) 11257 case $cc_basename in 11258 cxx*) 11259 lt_prog_compiler_pic_CXX='-W c,exportall' 11260 ;; 11261 *) 11262 ;; 11263 esac 11264 ;; 11265 netbsd*) 11266 ;; 11267 osf3* | osf4* | osf5*) 11268 case $cc_basename in 11269 KCC*) 11270 lt_prog_compiler_wl_CXX='--backend -Wl,' 11271 ;; 11272 RCC*) 11273 # Rational C++ 2.4.1 11274 lt_prog_compiler_pic_CXX='-pic' 11275 ;; 11276 cxx*) 11277 # Digital/Compaq C++ 11278 lt_prog_compiler_wl_CXX='-Wl,' 11279 # Make sure the PIC flag is empty. It appears that all Alpha 11280 # Linux and Compaq Tru64 Unix objects are PIC. 11281 lt_prog_compiler_pic_CXX= 11282 lt_prog_compiler_static_CXX='-non_shared' 11283 ;; 11284 *) 11285 ;; 11286 esac 11287 ;; 11288 psos*) 11289 ;; 11290 sco*) 11291 case $cc_basename in 11292 CC*) 11293 lt_prog_compiler_pic_CXX='-fPIC' 11294 ;; 11295 *) 11296 ;; 11297 esac 11298 ;; 11299 solaris*) 11300 case $cc_basename in 11301 CC*) 11302 # Sun C++ 4.2, 5.x and Centerline C++ 11303 lt_prog_compiler_pic_CXX='-KPIC' 11304 lt_prog_compiler_static_CXX='-Bstatic' 11305 lt_prog_compiler_wl_CXX='-Qoption ld ' 11306 ;; 11307 gcx*) 11308 # Green Hills C++ Compiler 11309 lt_prog_compiler_pic_CXX='-PIC' 11310 ;; 11311 *) 11312 ;; 11313 esac 11314 ;; 11315 sunos4*) 11316 case $cc_basename in 11317 CC*) 11318 # Sun C++ 4.x 11319 lt_prog_compiler_pic_CXX='-pic' 11320 lt_prog_compiler_static_CXX='-Bstatic' 11321 ;; 11322 lcc*) 11323 # Lucid 11324 lt_prog_compiler_pic_CXX='-pic' 11325 ;; 11326 *) 11327 ;; 11328 esac 11329 ;; 11330 tandem*) 11331 case $cc_basename in 11332 NCC*) 11333 # NonStop-UX NCC 3.20 11334 lt_prog_compiler_pic_CXX='-KPIC' 11335 ;; 11336 *) 11337 ;; 11338 esac 11339 ;; 11340 unixware*) 11341 ;; 11342 vxworks*) 11343 ;; 11344 *) 11345 lt_prog_compiler_can_build_shared_CXX=no 11346 ;; 11347 esac 11348 fi 11349 11350echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11351echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11352 11353# 11354# Check to make sure the PIC flag actually works. 11355# 11356if test -n "$lt_prog_compiler_pic_CXX"; then 11357 11358echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11359echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11360if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11361 echo $ECHO_N "(cached) $ECHO_C" >&6 11362else 11363 lt_prog_compiler_pic_works_CXX=no 11364 ac_outfile=conftest.$ac_objext 11365 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11366 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11367 # Insert the option either (1) after the last *FLAGS variable, or 11368 # (2) before a word containing "conftest.", or (3) at the end. 11369 # Note that $ac_compile itself does not contain backslashes and begins 11370 # with a dollar sign (not a hyphen), so the echo should work correctly. 11371 # The option is referenced via a variable to avoid confusing sed. 11372 lt_compile=`echo "$ac_compile" | $SED \ 11373 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11375 -e 's:$: $lt_compiler_flag:'` 11376 (eval echo "\"\$as_me:11376: $lt_compile\"" >&5) 11377 (eval "$lt_compile" 2>conftest.err) 11378 ac_status=$? 11379 cat conftest.err >&5 11380 echo "$as_me:11380: \$? = $ac_status" >&5 11381 if (exit $ac_status) && test -s "$ac_outfile"; then 11382 # The compiler can only warn and ignore the option if not recognized 11383 # So say no if there are warnings other than the usual output. 11384 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11385 $SED '/^$/d' conftest.err >conftest.er2 11386 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11387 lt_prog_compiler_pic_works_CXX=yes 11388 fi 11389 fi 11390 $rm conftest* 11391 11392fi 11393echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11394echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11395 11396if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11397 case $lt_prog_compiler_pic_CXX in 11398 "" | " "*) ;; 11399 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11400 esac 11401else 11402 lt_prog_compiler_pic_CXX= 11403 lt_prog_compiler_can_build_shared_CXX=no 11404fi 11405 11406fi 11407case "$host_os" in 11408 # For platforms which do not support PIC, -DPIC is meaningless: 11409 *djgpp*) 11410 lt_prog_compiler_pic_CXX= 11411 ;; 11412 *) 11413 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11414 ;; 11415esac 11416 11417echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11418echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11419if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11420 echo $ECHO_N "(cached) $ECHO_C" >&6 11421else 11422 lt_cv_prog_compiler_c_o_CXX=no 11423 $rm -r conftest 2>/dev/null 11424 mkdir conftest 11425 cd conftest 11426 mkdir out 11427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11428 11429 lt_compiler_flag="-o out/conftest2.$ac_objext" 11430 # Insert the option either (1) after the last *FLAGS variable, or 11431 # (2) before a word containing "conftest.", or (3) at the end. 11432 # Note that $ac_compile itself does not contain backslashes and begins 11433 # with a dollar sign (not a hyphen), so the echo should work correctly. 11434 lt_compile=`echo "$ac_compile" | $SED \ 11435 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11437 -e 's:$: $lt_compiler_flag:'` 11438 (eval echo "\"\$as_me:11438: $lt_compile\"" >&5) 11439 (eval "$lt_compile" 2>out/conftest.err) 11440 ac_status=$? 11441 cat out/conftest.err >&5 11442 echo "$as_me:11442: \$? = $ac_status" >&5 11443 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11444 then 11445 # The compiler can only warn and ignore the option if not recognized 11446 # So say no if there are warnings 11447 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11448 $SED '/^$/d' out/conftest.err >out/conftest.er2 11449 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11450 lt_cv_prog_compiler_c_o_CXX=yes 11451 fi 11452 fi 11453 chmod u+w . 11454 $rm conftest* 11455 # SGI C++ compiler will create directory out/ii_files/ for 11456 # template instantiation 11457 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11458 $rm out/* && rmdir out 11459 cd .. 11460 rmdir conftest 11461 $rm conftest* 11462 11463fi 11464echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11465echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11466 11467 11468hard_links="nottested" 11469if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11470 # do not overwrite the value of need_locks provided by the user 11471 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11472echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11473 hard_links=yes 11474 $rm conftest* 11475 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11476 touch conftest.a 11477 ln conftest.a conftest.b 2>&5 || hard_links=no 11478 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11479 echo "$as_me:$LINENO: result: $hard_links" >&5 11480echo "${ECHO_T}$hard_links" >&6 11481 if test "$hard_links" = no; then 11482 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11483echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11484 need_locks=warn 11485 fi 11486else 11487 need_locks=no 11488fi 11489 11490echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11491echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11492 11493 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11494 case $host_os in 11495 aix4* | aix5*) 11496 # If we're using GNU nm, then we don't want the "-C" option. 11497 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11498 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11499 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' 11500 else 11501 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' 11502 fi 11503 ;; 11504 pw32*) 11505 export_symbols_cmds_CXX="$ltdll_cmds" 11506 ;; 11507 cygwin* | mingw*) 11508 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' 11509 ;; 11510 *) 11511 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11512 ;; 11513 esac 11514 11515echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11516echo "${ECHO_T}$ld_shlibs_CXX" >&6 11517test "$ld_shlibs_CXX" = no && can_build_shared=no 11518 11519variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11520if test "$GCC" = yes; then 11521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11522fi 11523 11524# 11525# Do we need to explicitly link libc? 11526# 11527case "x$archive_cmds_need_lc_CXX" in 11528x|xyes) 11529 # Assume -lc should be added 11530 archive_cmds_need_lc_CXX=yes 11531 11532 if test "$enable_shared" = yes && test "$GCC" = yes; then 11533 case $archive_cmds_CXX in 11534 *'~'*) 11535 # FIXME: we may have to deal with multi-command sequences. 11536 ;; 11537 '$CC '*) 11538 # Test whether the compiler implicitly links with -lc since on some 11539 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11540 # to ld, don't add -lc before -lgcc. 11541 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11542echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11543 $rm conftest* 11544 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11545 11546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11547 (eval $ac_compile) 2>&5 11548 ac_status=$? 11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11550 (exit $ac_status); } 2>conftest.err; then 11551 soname=conftest 11552 lib=conftest 11553 libobjs=conftest.$ac_objext 11554 deplibs= 11555 wl=$lt_prog_compiler_wl_CXX 11556 compiler_flags=-v 11557 linker_flags=-v 11558 verstring= 11559 output_objdir=. 11560 libname=conftest 11561 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11562 allow_undefined_flag_CXX= 11563 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11564 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11565 ac_status=$? 11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11567 (exit $ac_status); } 11568 then 11569 archive_cmds_need_lc_CXX=no 11570 else 11571 archive_cmds_need_lc_CXX=yes 11572 fi 11573 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11574 else 11575 cat conftest.err 1>&5 11576 fi 11577 $rm conftest* 11578 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11579echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11580 ;; 11581 esac 11582 fi 11583 ;; 11584esac 11585 11586echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11587echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11588library_names_spec= 11589libname_spec='lib$name' 11590soname_spec= 11591shrext_cmds=".so" 11592postinstall_cmds= 11593postuninstall_cmds= 11594finish_cmds= 11595finish_eval= 11596shlibpath_var= 11597shlibpath_overrides_runpath=unknown 11598version_type=none 11599dynamic_linker="$host_os ld.so" 11600sys_lib_dlsearch_path_spec="/lib /usr/lib" 11601if test "$GCC" = yes; then 11602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11603 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11604 # if the path contains ";" then we assume it to be the separator 11605 # otherwise default to the standard path separator (i.e. ":") - it is 11606 # assumed that no part of a normal pathname contains ";" but that should 11607 # okay in the real world where ";" in dirpaths is itself problematic. 11608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11609 else 11610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11611 fi 11612else 11613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11614fi 11615need_lib_prefix=unknown 11616hardcode_into_libs=no 11617 11618# when you set need_version to no, make sure it does not cause -set_version 11619# flags to be left without arguments 11620need_version=unknown 11621 11622case $host_os in 11623aix3*) 11624 version_type=linux 11625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11626 shlibpath_var=LIBPATH 11627 11628 # AIX 3 has no versioning support, so we append a major version to the name. 11629 soname_spec='${libname}${release}${shared_ext}$major' 11630 ;; 11631 11632aix4* | aix5*) 11633 version_type=linux 11634 need_lib_prefix=no 11635 need_version=no 11636 hardcode_into_libs=yes 11637 if test "$host_cpu" = ia64; then 11638 # AIX 5 supports IA64 11639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11640 shlibpath_var=LD_LIBRARY_PATH 11641 else 11642 # With GCC up to 2.95.x, collect2 would create an import file 11643 # for dependence libraries. The import file would start with 11644 # the line `#! .'. This would cause the generated library to 11645 # depend on `.', always an invalid library. This was fixed in 11646 # development snapshots of GCC prior to 3.0. 11647 case $host_os in 11648 aix4 | aix4.[01] | aix4.[01].*) 11649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11650 echo ' yes ' 11651 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11652 : 11653 else 11654 can_build_shared=no 11655 fi 11656 ;; 11657 esac 11658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11659 # soname into executable. Probably we can add versioning support to 11660 # collect2, so additional links can be useful in future. 11661 if test "$aix_use_runtimelinking" = yes; then 11662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11663 # instead of lib<name>.a to let people know that these are not 11664 # typical AIX shared libraries. 11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11666 else 11667 # We preserve .a as extension for shared libraries through AIX4.2 11668 # and later when we are not doing run time linking. 11669 library_names_spec='${libname}${release}.a $libname.a' 11670 soname_spec='${libname}${release}${shared_ext}$major' 11671 fi 11672 shlibpath_var=LIBPATH 11673 fi 11674 ;; 11675 11676amigaos*) 11677 library_names_spec='$libname.ixlibrary $libname.a' 11678 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11679 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' 11680 ;; 11681 11682beos*) 11683 library_names_spec='${libname}${shared_ext}' 11684 dynamic_linker="$host_os ld.so" 11685 shlibpath_var=LIBRARY_PATH 11686 ;; 11687 11688bsdi[45]*) 11689 version_type=linux 11690 need_version=no 11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11692 soname_spec='${libname}${release}${shared_ext}$major' 11693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11694 shlibpath_var=LD_LIBRARY_PATH 11695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11697 # the default ld.so.conf also contains /usr/contrib/lib and 11698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11699 # libtool to hard-code these into programs 11700 ;; 11701 11702cygwin* | mingw* | pw32*) 11703 version_type=windows 11704 shrext_cmds=".dll" 11705 need_version=no 11706 need_lib_prefix=no 11707 11708 case $GCC,$host_os in 11709 yes,cygwin* | yes,mingw* | yes,pw32*) 11710 library_names_spec='$libname.dll.a' 11711 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11712 postinstall_cmds='base_file=`basename \${file}`~ 11713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11714 dldir=$destdir/`dirname \$dlpath`~ 11715 test -d \$dldir || mkdir -p \$dldir~ 11716 $install_prog $dir/$dlname \$dldir/$dlname' 11717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11718 dlpath=$dir/\$dldll~ 11719 $rm \$dlpath' 11720 shlibpath_overrides_runpath=yes 11721 11722 case $host_os in 11723 cygwin*) 11724 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11727 ;; 11728 mingw*) 11729 # MinGW DLLs use traditional 'lib' prefix 11730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11732 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11733 # It is most probably a Windows format PATH printed by 11734 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11735 # path with ; separators, and with drive letters. We can handle the 11736 # drive letters (cygwin fileutils understands them), so leave them, 11737 # especially as we might pass files found there to a mingw objdump, 11738 # which wouldn't understand a cygwinified path. Ahh. 11739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11740 else 11741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11742 fi 11743 ;; 11744 pw32*) 11745 # pw32 DLLs use 'pw' prefix rather than 'lib' 11746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11747 ;; 11748 esac 11749 ;; 11750 11751 *) 11752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11753 ;; 11754 esac 11755 dynamic_linker='Win32 ld.exe' 11756 # FIXME: first we should search . and the directory the executable is in 11757 shlibpath_var=PATH 11758 ;; 11759 11760darwin* | rhapsody*) 11761 dynamic_linker="$host_os dyld" 11762 version_type=darwin 11763 need_lib_prefix=no 11764 need_version=no 11765 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11766 soname_spec='${libname}${release}${major}$shared_ext' 11767 shlibpath_overrides_runpath=yes 11768 shlibpath_var=DYLD_LIBRARY_PATH 11769 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11770 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11771 if test "$GCC" = yes; then 11772 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"` 11773 else 11774 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11775 fi 11776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11777 ;; 11778 11779dgux*) 11780 version_type=linux 11781 need_lib_prefix=no 11782 need_version=no 11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11784 soname_spec='${libname}${release}${shared_ext}$major' 11785 shlibpath_var=LD_LIBRARY_PATH 11786 ;; 11787 11788freebsd1*) 11789 dynamic_linker=no 11790 ;; 11791 11792kfreebsd*-gnu) 11793 version_type=linux 11794 need_lib_prefix=no 11795 need_version=no 11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11797 soname_spec='${libname}${release}${shared_ext}$major' 11798 shlibpath_var=LD_LIBRARY_PATH 11799 shlibpath_overrides_runpath=no 11800 hardcode_into_libs=yes 11801 dynamic_linker='GNU ld.so' 11802 ;; 11803 11804freebsd* | dragonfly*) 11805 # DragonFly does not have aout. When/if they implement a new 11806 # versioning mechanism, adjust this. 11807 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11808 version_type=freebsd-$objformat 11809 case $version_type in 11810 freebsd-elf*) 11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11812 need_version=no 11813 need_lib_prefix=no 11814 ;; 11815 freebsd-*) 11816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11817 need_version=yes 11818 ;; 11819 esac 11820 shlibpath_var=LD_LIBRARY_PATH 11821 case $host_os in 11822 freebsd2*) 11823 shlibpath_overrides_runpath=yes 11824 ;; 11825 freebsd3.[01]* | freebsdelf3.[01]*) 11826 shlibpath_overrides_runpath=yes 11827 hardcode_into_libs=yes 11828 ;; 11829 *) # from 3.2 on 11830 shlibpath_overrides_runpath=no 11831 hardcode_into_libs=yes 11832 ;; 11833 esac 11834 ;; 11835 11836gnu*) 11837 version_type=linux 11838 need_lib_prefix=no 11839 need_version=no 11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11841 soname_spec='${libname}${release}${shared_ext}$major' 11842 shlibpath_var=LD_LIBRARY_PATH 11843 hardcode_into_libs=yes 11844 ;; 11845 11846hpux9* | hpux10* | hpux11*) 11847 # Give a soname corresponding to the major version so that dld.sl refuses to 11848 # link against other versions. 11849 version_type=sunos 11850 need_lib_prefix=no 11851 need_version=no 11852 case "$host_cpu" in 11853 ia64*) 11854 shrext_cmds='.so' 11855 hardcode_into_libs=yes 11856 dynamic_linker="$host_os dld.so" 11857 shlibpath_var=LD_LIBRARY_PATH 11858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11860 soname_spec='${libname}${release}${shared_ext}$major' 11861 if test "X$HPUX_IA64_MODE" = X32; then 11862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11863 else 11864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11865 fi 11866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11867 ;; 11868 hppa*64*) 11869 shrext_cmds='.sl' 11870 hardcode_into_libs=yes 11871 dynamic_linker="$host_os dld.sl" 11872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11875 soname_spec='${libname}${release}${shared_ext}$major' 11876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11878 ;; 11879 *) 11880 shrext_cmds='.sl' 11881 dynamic_linker="$host_os dld.sl" 11882 shlibpath_var=SHLIB_PATH 11883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11885 soname_spec='${libname}${release}${shared_ext}$major' 11886 ;; 11887 esac 11888 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11889 postinstall_cmds='chmod 555 $lib' 11890 ;; 11891 11892irix5* | irix6* | nonstopux*) 11893 case $host_os in 11894 nonstopux*) version_type=nonstopux ;; 11895 *) 11896 if test "$lt_cv_prog_gnu_ld" = yes; then 11897 version_type=linux 11898 else 11899 version_type=irix 11900 fi ;; 11901 esac 11902 need_lib_prefix=no 11903 need_version=no 11904 soname_spec='${libname}${release}${shared_ext}$major' 11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11906 case $host_os in 11907 irix5* | nonstopux*) 11908 libsuff= shlibsuff= 11909 ;; 11910 *) 11911 case $LD in # libtool.m4 will add one of these switches to LD 11912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11913 libsuff= shlibsuff= libmagic=32-bit;; 11914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11915 libsuff=32 shlibsuff=N32 libmagic=N32;; 11916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11917 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11918 *) libsuff= shlibsuff= libmagic=never-match;; 11919 esac 11920 ;; 11921 esac 11922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11923 shlibpath_overrides_runpath=no 11924 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11925 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11926 hardcode_into_libs=yes 11927 ;; 11928 11929# No shared lib support for Linux oldld, aout, or coff. 11930linux*oldld* | linux*aout* | linux*coff*) 11931 dynamic_linker=no 11932 ;; 11933 11934# This must be Linux ELF. 11935linux*) 11936 version_type=linux 11937 need_lib_prefix=no 11938 need_version=no 11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11940 soname_spec='${libname}${release}${shared_ext}$major' 11941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11942 shlibpath_var=LD_LIBRARY_PATH 11943 shlibpath_overrides_runpath=no 11944 # This implies no fast_install, which is unacceptable. 11945 # Some rework will be needed to allow for fast_install 11946 # before this can be enabled. 11947 hardcode_into_libs=yes 11948 11949 # find out which ABI we are using 11950 libsuff= 11951 case "$host_cpu" in 11952 x86_64*|s390x*|powerpc64*) 11953 echo '#line 11953 "configure"' > conftest.$ac_ext 11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11955 (eval $ac_compile) 2>&5 11956 ac_status=$? 11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11958 (exit $ac_status); }; then 11959 case `/usr/bin/file conftest.$ac_objext` in 11960 *64-bit*) 11961 libsuff=64 11962 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11963 ;; 11964 esac 11965 fi 11966 rm -rf conftest* 11967 ;; 11968 esac 11969 11970 # Append ld.so.conf contents to the search path 11971 if test -f /etc/ld.so.conf; then 11972 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11973 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 11974 fi 11975 11976 # We used to test for /lib/ld.so.1 and disable shared libraries on 11977 # powerpc, because MkLinux only supported shared libraries with the 11978 # GNU dynamic linker. Since this was broken with cross compilers, 11979 # most powerpc-linux boxes support dynamic linking these days and 11980 # people can always --disable-shared, the test was removed, and we 11981 # assume the GNU/Linux dynamic linker is in use. 11982 dynamic_linker='GNU/Linux ld.so' 11983 ;; 11984 11985knetbsd*-gnu) 11986 version_type=linux 11987 need_lib_prefix=no 11988 need_version=no 11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11990 soname_spec='${libname}${release}${shared_ext}$major' 11991 shlibpath_var=LD_LIBRARY_PATH 11992 shlibpath_overrides_runpath=no 11993 hardcode_into_libs=yes 11994 dynamic_linker='GNU ld.so' 11995 ;; 11996 11997netbsd*) 11998 version_type=sunos 11999 need_lib_prefix=no 12000 need_version=no 12001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12004 dynamic_linker='NetBSD (a.out) ld.so' 12005 else 12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12007 soname_spec='${libname}${release}${shared_ext}$major' 12008 dynamic_linker='NetBSD ld.elf_so' 12009 fi 12010 shlibpath_var=LD_LIBRARY_PATH 12011 shlibpath_overrides_runpath=yes 12012 hardcode_into_libs=yes 12013 ;; 12014 12015newsos6) 12016 version_type=linux 12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12018 shlibpath_var=LD_LIBRARY_PATH 12019 shlibpath_overrides_runpath=yes 12020 ;; 12021 12022nto-qnx*) 12023 version_type=linux 12024 need_lib_prefix=no 12025 need_version=no 12026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12027 soname_spec='${libname}${release}${shared_ext}$major' 12028 shlibpath_var=LD_LIBRARY_PATH 12029 shlibpath_overrides_runpath=yes 12030 ;; 12031 12032openbsd*) 12033 version_type=sunos 12034 need_lib_prefix=no 12035 need_version=no 12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12038 shlibpath_var=LD_LIBRARY_PATH 12039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12040 case $host_os in 12041 openbsd2.[89] | openbsd2.[89].*) 12042 shlibpath_overrides_runpath=no 12043 ;; 12044 *) 12045 shlibpath_overrides_runpath=yes 12046 ;; 12047 esac 12048 else 12049 shlibpath_overrides_runpath=yes 12050 fi 12051 ;; 12052 12053os2*) 12054 libname_spec='$name' 12055 shrext_cmds=".dll" 12056 need_lib_prefix=no 12057 library_names_spec='$libname${shared_ext} $libname.a' 12058 dynamic_linker='OS/2 ld.exe' 12059 shlibpath_var=LIBPATH 12060 ;; 12061 12062osf3* | osf4* | osf5*) 12063 version_type=osf 12064 need_lib_prefix=no 12065 need_version=no 12066 soname_spec='${libname}${release}${shared_ext}$major' 12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12068 shlibpath_var=LD_LIBRARY_PATH 12069 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12070 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12071 ;; 12072 12073sco3.2v5*) 12074 version_type=osf 12075 soname_spec='${libname}${release}${shared_ext}$major' 12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12077 shlibpath_var=LD_LIBRARY_PATH 12078 ;; 12079 12080solaris*) 12081 version_type=linux 12082 need_lib_prefix=no 12083 need_version=no 12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12085 soname_spec='${libname}${release}${shared_ext}$major' 12086 shlibpath_var=LD_LIBRARY_PATH 12087 shlibpath_overrides_runpath=yes 12088 hardcode_into_libs=yes 12089 # ldd complains unless libraries are executable 12090 postinstall_cmds='chmod +x $lib' 12091 ;; 12092 12093sunos4*) 12094 version_type=sunos 12095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12097 shlibpath_var=LD_LIBRARY_PATH 12098 shlibpath_overrides_runpath=yes 12099 if test "$with_gnu_ld" = yes; then 12100 need_lib_prefix=no 12101 fi 12102 need_version=yes 12103 ;; 12104 12105sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12106 version_type=linux 12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12108 soname_spec='${libname}${release}${shared_ext}$major' 12109 shlibpath_var=LD_LIBRARY_PATH 12110 case $host_vendor in 12111 sni) 12112 shlibpath_overrides_runpath=no 12113 need_lib_prefix=no 12114 export_dynamic_flag_spec='${wl}-Blargedynsym' 12115 runpath_var=LD_RUN_PATH 12116 ;; 12117 siemens) 12118 need_lib_prefix=no 12119 ;; 12120 motorola) 12121 need_lib_prefix=no 12122 need_version=no 12123 shlibpath_overrides_runpath=no 12124 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12125 ;; 12126 esac 12127 ;; 12128 12129sysv4*MP*) 12130 if test -d /usr/nec ;then 12131 version_type=linux 12132 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12133 soname_spec='$libname${shared_ext}.$major' 12134 shlibpath_var=LD_LIBRARY_PATH 12135 fi 12136 ;; 12137 12138uts4*) 12139 version_type=linux 12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12141 soname_spec='${libname}${release}${shared_ext}$major' 12142 shlibpath_var=LD_LIBRARY_PATH 12143 ;; 12144 12145*) 12146 dynamic_linker=no 12147 ;; 12148esac 12149echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12150echo "${ECHO_T}$dynamic_linker" >&6 12151test "$dynamic_linker" = no && can_build_shared=no 12152 12153echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12154echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12155hardcode_action_CXX= 12156if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12157 test -n "$runpath_var_CXX" || \ 12158 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12159 12160 # We can hardcode non-existant directories. 12161 if test "$hardcode_direct_CXX" != no && 12162 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12163 # have to relink, otherwise we might link with an installed library 12164 # when we should be linking with a yet-to-be-installed one 12165 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12166 test "$hardcode_minus_L_CXX" != no; then 12167 # Linking always hardcodes the temporary library directory. 12168 hardcode_action_CXX=relink 12169 else 12170 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12171 hardcode_action_CXX=immediate 12172 fi 12173else 12174 # We cannot hardcode anything, or else we can only hardcode existing 12175 # directories. 12176 hardcode_action_CXX=unsupported 12177fi 12178echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12179echo "${ECHO_T}$hardcode_action_CXX" >&6 12180 12181if test "$hardcode_action_CXX" = relink; then 12182 # Fast installation is not supported 12183 enable_fast_install=no 12184elif test "$shlibpath_overrides_runpath" = yes || 12185 test "$enable_shared" = no; then 12186 # Fast installation is not necessary 12187 enable_fast_install=needless 12188fi 12189 12190striplib= 12191old_striplib= 12192echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12193echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12194if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12195 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12196 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12197 echo "$as_me:$LINENO: result: yes" >&5 12198echo "${ECHO_T}yes" >&6 12199else 12200# FIXME - insert some real tests, host_os isn't really good enough 12201 case $host_os in 12202 darwin*) 12203 if test -n "$STRIP" ; then 12204 striplib="$STRIP -x" 12205 echo "$as_me:$LINENO: result: yes" >&5 12206echo "${ECHO_T}yes" >&6 12207 else 12208 echo "$as_me:$LINENO: result: no" >&5 12209echo "${ECHO_T}no" >&6 12210fi 12211 ;; 12212 *) 12213 echo "$as_me:$LINENO: result: no" >&5 12214echo "${ECHO_T}no" >&6 12215 ;; 12216 esac 12217fi 12218 12219if test "x$enable_dlopen" != xyes; then 12220 enable_dlopen=unknown 12221 enable_dlopen_self=unknown 12222 enable_dlopen_self_static=unknown 12223else 12224 lt_cv_dlopen=no 12225 lt_cv_dlopen_libs= 12226 12227 case $host_os in 12228 beos*) 12229 lt_cv_dlopen="load_add_on" 12230 lt_cv_dlopen_libs= 12231 lt_cv_dlopen_self=yes 12232 ;; 12233 12234 mingw* | pw32*) 12235 lt_cv_dlopen="LoadLibrary" 12236 lt_cv_dlopen_libs= 12237 ;; 12238 12239 cygwin*) 12240 lt_cv_dlopen="dlopen" 12241 lt_cv_dlopen_libs= 12242 ;; 12243 12244 darwin*) 12245 # if libdl is installed we need to link against it 12246 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12247echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12248if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12249 echo $ECHO_N "(cached) $ECHO_C" >&6 12250else 12251 ac_check_lib_save_LIBS=$LIBS 12252LIBS="-ldl $LIBS" 12253cat >conftest.$ac_ext <<_ACEOF 12254/* confdefs.h. */ 12255_ACEOF 12256cat confdefs.h >>conftest.$ac_ext 12257cat >>conftest.$ac_ext <<_ACEOF 12258/* end confdefs.h. */ 12259 12260/* Override any gcc2 internal prototype to avoid an error. */ 12261#ifdef __cplusplus 12262extern "C" 12263#endif 12264/* We use char because int might match the return type of a gcc2 12265 builtin and then its argument prototype would still apply. */ 12266char dlopen (); 12267int 12268main () 12269{ 12270dlopen (); 12271 ; 12272 return 0; 12273} 12274_ACEOF 12275rm -f conftest.$ac_objext conftest$ac_exeext 12276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12277 (eval $ac_link) 2>conftest.er1 12278 ac_status=$? 12279 grep -v '^ *+' conftest.er1 >conftest.err 12280 rm -f conftest.er1 12281 cat conftest.err >&5 12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12283 (exit $ac_status); } && 12284 { ac_try='test -z "$ac_cxx_werror_flag" 12285 || test ! -s conftest.err' 12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12287 (eval $ac_try) 2>&5 12288 ac_status=$? 12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12290 (exit $ac_status); }; } && 12291 { ac_try='test -s conftest$ac_exeext' 12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12293 (eval $ac_try) 2>&5 12294 ac_status=$? 12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12296 (exit $ac_status); }; }; then 12297 ac_cv_lib_dl_dlopen=yes 12298else 12299 echo "$as_me: failed program was:" >&5 12300sed 's/^/| /' conftest.$ac_ext >&5 12301 12302ac_cv_lib_dl_dlopen=no 12303fi 12304rm -f conftest.err conftest.$ac_objext \ 12305 conftest$ac_exeext conftest.$ac_ext 12306LIBS=$ac_check_lib_save_LIBS 12307fi 12308echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12309echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12310if test $ac_cv_lib_dl_dlopen = yes; then 12311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12312else 12313 12314 lt_cv_dlopen="dyld" 12315 lt_cv_dlopen_libs= 12316 lt_cv_dlopen_self=yes 12317 12318fi 12319 12320 ;; 12321 12322 *) 12323 echo "$as_me:$LINENO: checking for shl_load" >&5 12324echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12325if test "${ac_cv_func_shl_load+set}" = set; then 12326 echo $ECHO_N "(cached) $ECHO_C" >&6 12327else 12328 cat >conftest.$ac_ext <<_ACEOF 12329/* confdefs.h. */ 12330_ACEOF 12331cat confdefs.h >>conftest.$ac_ext 12332cat >>conftest.$ac_ext <<_ACEOF 12333/* end confdefs.h. */ 12334/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12335 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12336#define shl_load innocuous_shl_load 12337 12338/* System header to define __stub macros and hopefully few prototypes, 12339 which can conflict with char shl_load (); below. 12340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12341 <limits.h> exists even on freestanding compilers. */ 12342 12343#ifdef __STDC__ 12344# include <limits.h> 12345#else 12346# include <assert.h> 12347#endif 12348 12349#undef shl_load 12350 12351/* Override any gcc2 internal prototype to avoid an error. */ 12352#ifdef __cplusplus 12353extern "C" 12354{ 12355#endif 12356/* We use char because int might match the return type of a gcc2 12357 builtin and then its argument prototype would still apply. */ 12358char shl_load (); 12359/* The GNU C library defines this for functions which it implements 12360 to always fail with ENOSYS. Some functions are actually named 12361 something starting with __ and the normal name is an alias. */ 12362#if defined (__stub_shl_load) || defined (__stub___shl_load) 12363choke me 12364#else 12365char (*f) () = shl_load; 12366#endif 12367#ifdef __cplusplus 12368} 12369#endif 12370 12371int 12372main () 12373{ 12374return f != shl_load; 12375 ; 12376 return 0; 12377} 12378_ACEOF 12379rm -f conftest.$ac_objext conftest$ac_exeext 12380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12381 (eval $ac_link) 2>conftest.er1 12382 ac_status=$? 12383 grep -v '^ *+' conftest.er1 >conftest.err 12384 rm -f conftest.er1 12385 cat conftest.err >&5 12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12387 (exit $ac_status); } && 12388 { ac_try='test -z "$ac_cxx_werror_flag" 12389 || test ! -s conftest.err' 12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12391 (eval $ac_try) 2>&5 12392 ac_status=$? 12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12394 (exit $ac_status); }; } && 12395 { ac_try='test -s conftest$ac_exeext' 12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12397 (eval $ac_try) 2>&5 12398 ac_status=$? 12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12400 (exit $ac_status); }; }; then 12401 ac_cv_func_shl_load=yes 12402else 12403 echo "$as_me: failed program was:" >&5 12404sed 's/^/| /' conftest.$ac_ext >&5 12405 12406ac_cv_func_shl_load=no 12407fi 12408rm -f conftest.err conftest.$ac_objext \ 12409 conftest$ac_exeext conftest.$ac_ext 12410fi 12411echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12412echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12413if test $ac_cv_func_shl_load = yes; then 12414 lt_cv_dlopen="shl_load" 12415else 12416 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12417echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12418if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12419 echo $ECHO_N "(cached) $ECHO_C" >&6 12420else 12421 ac_check_lib_save_LIBS=$LIBS 12422LIBS="-ldld $LIBS" 12423cat >conftest.$ac_ext <<_ACEOF 12424/* confdefs.h. */ 12425_ACEOF 12426cat confdefs.h >>conftest.$ac_ext 12427cat >>conftest.$ac_ext <<_ACEOF 12428/* end confdefs.h. */ 12429 12430/* Override any gcc2 internal prototype to avoid an error. */ 12431#ifdef __cplusplus 12432extern "C" 12433#endif 12434/* We use char because int might match the return type of a gcc2 12435 builtin and then its argument prototype would still apply. */ 12436char shl_load (); 12437int 12438main () 12439{ 12440shl_load (); 12441 ; 12442 return 0; 12443} 12444_ACEOF 12445rm -f conftest.$ac_objext conftest$ac_exeext 12446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12447 (eval $ac_link) 2>conftest.er1 12448 ac_status=$? 12449 grep -v '^ *+' conftest.er1 >conftest.err 12450 rm -f conftest.er1 12451 cat conftest.err >&5 12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12453 (exit $ac_status); } && 12454 { ac_try='test -z "$ac_cxx_werror_flag" 12455 || test ! -s conftest.err' 12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12457 (eval $ac_try) 2>&5 12458 ac_status=$? 12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12460 (exit $ac_status); }; } && 12461 { ac_try='test -s conftest$ac_exeext' 12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12463 (eval $ac_try) 2>&5 12464 ac_status=$? 12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12466 (exit $ac_status); }; }; then 12467 ac_cv_lib_dld_shl_load=yes 12468else 12469 echo "$as_me: failed program was:" >&5 12470sed 's/^/| /' conftest.$ac_ext >&5 12471 12472ac_cv_lib_dld_shl_load=no 12473fi 12474rm -f conftest.err conftest.$ac_objext \ 12475 conftest$ac_exeext conftest.$ac_ext 12476LIBS=$ac_check_lib_save_LIBS 12477fi 12478echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12479echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12480if test $ac_cv_lib_dld_shl_load = yes; then 12481 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12482else 12483 echo "$as_me:$LINENO: checking for dlopen" >&5 12484echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12485if test "${ac_cv_func_dlopen+set}" = set; then 12486 echo $ECHO_N "(cached) $ECHO_C" >&6 12487else 12488 cat >conftest.$ac_ext <<_ACEOF 12489/* confdefs.h. */ 12490_ACEOF 12491cat confdefs.h >>conftest.$ac_ext 12492cat >>conftest.$ac_ext <<_ACEOF 12493/* end confdefs.h. */ 12494/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12495 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12496#define dlopen innocuous_dlopen 12497 12498/* System header to define __stub macros and hopefully few prototypes, 12499 which can conflict with char dlopen (); below. 12500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12501 <limits.h> exists even on freestanding compilers. */ 12502 12503#ifdef __STDC__ 12504# include <limits.h> 12505#else 12506# include <assert.h> 12507#endif 12508 12509#undef dlopen 12510 12511/* Override any gcc2 internal prototype to avoid an error. */ 12512#ifdef __cplusplus 12513extern "C" 12514{ 12515#endif 12516/* We use char because int might match the return type of a gcc2 12517 builtin and then its argument prototype would still apply. */ 12518char dlopen (); 12519/* The GNU C library defines this for functions which it implements 12520 to always fail with ENOSYS. Some functions are actually named 12521 something starting with __ and the normal name is an alias. */ 12522#if defined (__stub_dlopen) || defined (__stub___dlopen) 12523choke me 12524#else 12525char (*f) () = dlopen; 12526#endif 12527#ifdef __cplusplus 12528} 12529#endif 12530 12531int 12532main () 12533{ 12534return f != dlopen; 12535 ; 12536 return 0; 12537} 12538_ACEOF 12539rm -f conftest.$ac_objext conftest$ac_exeext 12540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12541 (eval $ac_link) 2>conftest.er1 12542 ac_status=$? 12543 grep -v '^ *+' conftest.er1 >conftest.err 12544 rm -f conftest.er1 12545 cat conftest.err >&5 12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12547 (exit $ac_status); } && 12548 { ac_try='test -z "$ac_cxx_werror_flag" 12549 || test ! -s conftest.err' 12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12551 (eval $ac_try) 2>&5 12552 ac_status=$? 12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12554 (exit $ac_status); }; } && 12555 { ac_try='test -s conftest$ac_exeext' 12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12557 (eval $ac_try) 2>&5 12558 ac_status=$? 12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12560 (exit $ac_status); }; }; then 12561 ac_cv_func_dlopen=yes 12562else 12563 echo "$as_me: failed program was:" >&5 12564sed 's/^/| /' conftest.$ac_ext >&5 12565 12566ac_cv_func_dlopen=no 12567fi 12568rm -f conftest.err conftest.$ac_objext \ 12569 conftest$ac_exeext conftest.$ac_ext 12570fi 12571echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12572echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12573if test $ac_cv_func_dlopen = yes; then 12574 lt_cv_dlopen="dlopen" 12575else 12576 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12577echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12578if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12579 echo $ECHO_N "(cached) $ECHO_C" >&6 12580else 12581 ac_check_lib_save_LIBS=$LIBS 12582LIBS="-ldl $LIBS" 12583cat >conftest.$ac_ext <<_ACEOF 12584/* confdefs.h. */ 12585_ACEOF 12586cat confdefs.h >>conftest.$ac_ext 12587cat >>conftest.$ac_ext <<_ACEOF 12588/* end confdefs.h. */ 12589 12590/* Override any gcc2 internal prototype to avoid an error. */ 12591#ifdef __cplusplus 12592extern "C" 12593#endif 12594/* We use char because int might match the return type of a gcc2 12595 builtin and then its argument prototype would still apply. */ 12596char dlopen (); 12597int 12598main () 12599{ 12600dlopen (); 12601 ; 12602 return 0; 12603} 12604_ACEOF 12605rm -f conftest.$ac_objext conftest$ac_exeext 12606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12607 (eval $ac_link) 2>conftest.er1 12608 ac_status=$? 12609 grep -v '^ *+' conftest.er1 >conftest.err 12610 rm -f conftest.er1 12611 cat conftest.err >&5 12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12613 (exit $ac_status); } && 12614 { ac_try='test -z "$ac_cxx_werror_flag" 12615 || test ! -s conftest.err' 12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12617 (eval $ac_try) 2>&5 12618 ac_status=$? 12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12620 (exit $ac_status); }; } && 12621 { ac_try='test -s conftest$ac_exeext' 12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12623 (eval $ac_try) 2>&5 12624 ac_status=$? 12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12626 (exit $ac_status); }; }; then 12627 ac_cv_lib_dl_dlopen=yes 12628else 12629 echo "$as_me: failed program was:" >&5 12630sed 's/^/| /' conftest.$ac_ext >&5 12631 12632ac_cv_lib_dl_dlopen=no 12633fi 12634rm -f conftest.err conftest.$ac_objext \ 12635 conftest$ac_exeext conftest.$ac_ext 12636LIBS=$ac_check_lib_save_LIBS 12637fi 12638echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12639echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12640if test $ac_cv_lib_dl_dlopen = yes; then 12641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12642else 12643 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12644echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12645if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12646 echo $ECHO_N "(cached) $ECHO_C" >&6 12647else 12648 ac_check_lib_save_LIBS=$LIBS 12649LIBS="-lsvld $LIBS" 12650cat >conftest.$ac_ext <<_ACEOF 12651/* confdefs.h. */ 12652_ACEOF 12653cat confdefs.h >>conftest.$ac_ext 12654cat >>conftest.$ac_ext <<_ACEOF 12655/* end confdefs.h. */ 12656 12657/* Override any gcc2 internal prototype to avoid an error. */ 12658#ifdef __cplusplus 12659extern "C" 12660#endif 12661/* We use char because int might match the return type of a gcc2 12662 builtin and then its argument prototype would still apply. */ 12663char dlopen (); 12664int 12665main () 12666{ 12667dlopen (); 12668 ; 12669 return 0; 12670} 12671_ACEOF 12672rm -f conftest.$ac_objext conftest$ac_exeext 12673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12674 (eval $ac_link) 2>conftest.er1 12675 ac_status=$? 12676 grep -v '^ *+' conftest.er1 >conftest.err 12677 rm -f conftest.er1 12678 cat conftest.err >&5 12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12680 (exit $ac_status); } && 12681 { ac_try='test -z "$ac_cxx_werror_flag" 12682 || test ! -s conftest.err' 12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12684 (eval $ac_try) 2>&5 12685 ac_status=$? 12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12687 (exit $ac_status); }; } && 12688 { ac_try='test -s conftest$ac_exeext' 12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12690 (eval $ac_try) 2>&5 12691 ac_status=$? 12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12693 (exit $ac_status); }; }; then 12694 ac_cv_lib_svld_dlopen=yes 12695else 12696 echo "$as_me: failed program was:" >&5 12697sed 's/^/| /' conftest.$ac_ext >&5 12698 12699ac_cv_lib_svld_dlopen=no 12700fi 12701rm -f conftest.err conftest.$ac_objext \ 12702 conftest$ac_exeext conftest.$ac_ext 12703LIBS=$ac_check_lib_save_LIBS 12704fi 12705echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12706echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12707if test $ac_cv_lib_svld_dlopen = yes; then 12708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12709else 12710 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12711echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12712if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12713 echo $ECHO_N "(cached) $ECHO_C" >&6 12714else 12715 ac_check_lib_save_LIBS=$LIBS 12716LIBS="-ldld $LIBS" 12717cat >conftest.$ac_ext <<_ACEOF 12718/* confdefs.h. */ 12719_ACEOF 12720cat confdefs.h >>conftest.$ac_ext 12721cat >>conftest.$ac_ext <<_ACEOF 12722/* end confdefs.h. */ 12723 12724/* Override any gcc2 internal prototype to avoid an error. */ 12725#ifdef __cplusplus 12726extern "C" 12727#endif 12728/* We use char because int might match the return type of a gcc2 12729 builtin and then its argument prototype would still apply. */ 12730char dld_link (); 12731int 12732main () 12733{ 12734dld_link (); 12735 ; 12736 return 0; 12737} 12738_ACEOF 12739rm -f conftest.$ac_objext conftest$ac_exeext 12740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12741 (eval $ac_link) 2>conftest.er1 12742 ac_status=$? 12743 grep -v '^ *+' conftest.er1 >conftest.err 12744 rm -f conftest.er1 12745 cat conftest.err >&5 12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12747 (exit $ac_status); } && 12748 { ac_try='test -z "$ac_cxx_werror_flag" 12749 || test ! -s conftest.err' 12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12751 (eval $ac_try) 2>&5 12752 ac_status=$? 12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12754 (exit $ac_status); }; } && 12755 { ac_try='test -s conftest$ac_exeext' 12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12757 (eval $ac_try) 2>&5 12758 ac_status=$? 12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12760 (exit $ac_status); }; }; then 12761 ac_cv_lib_dld_dld_link=yes 12762else 12763 echo "$as_me: failed program was:" >&5 12764sed 's/^/| /' conftest.$ac_ext >&5 12765 12766ac_cv_lib_dld_dld_link=no 12767fi 12768rm -f conftest.err conftest.$ac_objext \ 12769 conftest$ac_exeext conftest.$ac_ext 12770LIBS=$ac_check_lib_save_LIBS 12771fi 12772echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12773echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12774if test $ac_cv_lib_dld_dld_link = yes; then 12775 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12776fi 12777 12778 12779fi 12780 12781 12782fi 12783 12784 12785fi 12786 12787 12788fi 12789 12790 12791fi 12792 12793 ;; 12794 esac 12795 12796 if test "x$lt_cv_dlopen" != xno; then 12797 enable_dlopen=yes 12798 else 12799 enable_dlopen=no 12800 fi 12801 12802 case $lt_cv_dlopen in 12803 dlopen) 12804 save_CPPFLAGS="$CPPFLAGS" 12805 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12806 12807 save_LDFLAGS="$LDFLAGS" 12808 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12809 12810 save_LIBS="$LIBS" 12811 LIBS="$lt_cv_dlopen_libs $LIBS" 12812 12813 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12814echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12815if test "${lt_cv_dlopen_self+set}" = set; then 12816 echo $ECHO_N "(cached) $ECHO_C" >&6 12817else 12818 if test "$cross_compiling" = yes; then : 12819 lt_cv_dlopen_self=cross 12820else 12821 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12822 lt_status=$lt_dlunknown 12823 cat > conftest.$ac_ext <<EOF 12824#line 12824 "configure" 12825#include "confdefs.h" 12826 12827#if HAVE_DLFCN_H 12828#include <dlfcn.h> 12829#endif 12830 12831#include <stdio.h> 12832 12833#ifdef RTLD_GLOBAL 12834# define LT_DLGLOBAL RTLD_GLOBAL 12835#else 12836# ifdef DL_GLOBAL 12837# define LT_DLGLOBAL DL_GLOBAL 12838# else 12839# define LT_DLGLOBAL 0 12840# endif 12841#endif 12842 12843/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12844 find out it does not work in some platform. */ 12845#ifndef LT_DLLAZY_OR_NOW 12846# ifdef RTLD_LAZY 12847# define LT_DLLAZY_OR_NOW RTLD_LAZY 12848# else 12849# ifdef DL_LAZY 12850# define LT_DLLAZY_OR_NOW DL_LAZY 12851# else 12852# ifdef RTLD_NOW 12853# define LT_DLLAZY_OR_NOW RTLD_NOW 12854# else 12855# ifdef DL_NOW 12856# define LT_DLLAZY_OR_NOW DL_NOW 12857# else 12858# define LT_DLLAZY_OR_NOW 0 12859# endif 12860# endif 12861# endif 12862# endif 12863#endif 12864 12865#ifdef __cplusplus 12866extern "C" void exit (int); 12867#endif 12868 12869void fnord() { int i=42;} 12870int main () 12871{ 12872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12873 int status = $lt_dlunknown; 12874 12875 if (self) 12876 { 12877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12878 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12879 /* dlclose (self); */ 12880 } 12881 12882 exit (status); 12883} 12884EOF 12885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12886 (eval $ac_link) 2>&5 12887 ac_status=$? 12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12889 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12890 (./conftest; exit; ) 2>/dev/null 12891 lt_status=$? 12892 case x$lt_status in 12893 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12894 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12895 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12896 esac 12897 else : 12898 # compilation failed 12899 lt_cv_dlopen_self=no 12900 fi 12901fi 12902rm -fr conftest* 12903 12904 12905fi 12906echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12907echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12908 12909 if test "x$lt_cv_dlopen_self" = xyes; then 12910 LDFLAGS="$LDFLAGS $link_static_flag" 12911 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12912echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12913if test "${lt_cv_dlopen_self_static+set}" = set; then 12914 echo $ECHO_N "(cached) $ECHO_C" >&6 12915else 12916 if test "$cross_compiling" = yes; then : 12917 lt_cv_dlopen_self_static=cross 12918else 12919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12920 lt_status=$lt_dlunknown 12921 cat > conftest.$ac_ext <<EOF 12922#line 12922 "configure" 12923#include "confdefs.h" 12924 12925#if HAVE_DLFCN_H 12926#include <dlfcn.h> 12927#endif 12928 12929#include <stdio.h> 12930 12931#ifdef RTLD_GLOBAL 12932# define LT_DLGLOBAL RTLD_GLOBAL 12933#else 12934# ifdef DL_GLOBAL 12935# define LT_DLGLOBAL DL_GLOBAL 12936# else 12937# define LT_DLGLOBAL 0 12938# endif 12939#endif 12940 12941/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12942 find out it does not work in some platform. */ 12943#ifndef LT_DLLAZY_OR_NOW 12944# ifdef RTLD_LAZY 12945# define LT_DLLAZY_OR_NOW RTLD_LAZY 12946# else 12947# ifdef DL_LAZY 12948# define LT_DLLAZY_OR_NOW DL_LAZY 12949# else 12950# ifdef RTLD_NOW 12951# define LT_DLLAZY_OR_NOW RTLD_NOW 12952# else 12953# ifdef DL_NOW 12954# define LT_DLLAZY_OR_NOW DL_NOW 12955# else 12956# define LT_DLLAZY_OR_NOW 0 12957# endif 12958# endif 12959# endif 12960# endif 12961#endif 12962 12963#ifdef __cplusplus 12964extern "C" void exit (int); 12965#endif 12966 12967void fnord() { int i=42;} 12968int main () 12969{ 12970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12971 int status = $lt_dlunknown; 12972 12973 if (self) 12974 { 12975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12976 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12977 /* dlclose (self); */ 12978 } 12979 12980 exit (status); 12981} 12982EOF 12983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12984 (eval $ac_link) 2>&5 12985 ac_status=$? 12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12987 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12988 (./conftest; exit; ) 2>/dev/null 12989 lt_status=$? 12990 case x$lt_status in 12991 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12992 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12993 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12994 esac 12995 else : 12996 # compilation failed 12997 lt_cv_dlopen_self_static=no 12998 fi 12999fi 13000rm -fr conftest* 13001 13002 13003fi 13004echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13005echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13006 fi 13007 13008 CPPFLAGS="$save_CPPFLAGS" 13009 LDFLAGS="$save_LDFLAGS" 13010 LIBS="$save_LIBS" 13011 ;; 13012 esac 13013 13014 case $lt_cv_dlopen_self in 13015 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13016 *) enable_dlopen_self=unknown ;; 13017 esac 13018 13019 case $lt_cv_dlopen_self_static in 13020 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13021 *) enable_dlopen_self_static=unknown ;; 13022 esac 13023fi 13024 13025 13026# The else clause should only fire when bootstrapping the 13027# libtool distribution, otherwise you forgot to ship ltmain.sh 13028# with your package, and you will get complaints that there are 13029# no rules to generate ltmain.sh. 13030if test -f "$ltmain"; then 13031 # See if we are running on zsh, and set the options which allow our commands through 13032 # without removal of \ escapes. 13033 if test -n "${ZSH_VERSION+set}" ; then 13034 setopt NO_GLOB_SUBST 13035 fi 13036 # Now quote all the things that may contain metacharacters while being 13037 # careful not to overquote the AC_SUBSTed values. We take copies of the 13038 # variables and quote the copies for generation of the libtool script. 13039 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13040 SED SHELL STRIP \ 13041 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13042 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13043 deplibs_check_method reload_flag reload_cmds need_locks \ 13044 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13045 lt_cv_sys_global_symbol_to_c_name_address \ 13046 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13047 old_postinstall_cmds old_postuninstall_cmds \ 13048 compiler_CXX \ 13049 CC_CXX \ 13050 LD_CXX \ 13051 lt_prog_compiler_wl_CXX \ 13052 lt_prog_compiler_pic_CXX \ 13053 lt_prog_compiler_static_CXX \ 13054 lt_prog_compiler_no_builtin_flag_CXX \ 13055 export_dynamic_flag_spec_CXX \ 13056 thread_safe_flag_spec_CXX \ 13057 whole_archive_flag_spec_CXX \ 13058 enable_shared_with_static_runtimes_CXX \ 13059 old_archive_cmds_CXX \ 13060 old_archive_from_new_cmds_CXX \ 13061 predep_objects_CXX \ 13062 postdep_objects_CXX \ 13063 predeps_CXX \ 13064 postdeps_CXX \ 13065 compiler_lib_search_path_CXX \ 13066 archive_cmds_CXX \ 13067 archive_expsym_cmds_CXX \ 13068 postinstall_cmds_CXX \ 13069 postuninstall_cmds_CXX \ 13070 old_archive_from_expsyms_cmds_CXX \ 13071 allow_undefined_flag_CXX \ 13072 no_undefined_flag_CXX \ 13073 export_symbols_cmds_CXX \ 13074 hardcode_libdir_flag_spec_CXX \ 13075 hardcode_libdir_flag_spec_ld_CXX \ 13076 hardcode_libdir_separator_CXX \ 13077 hardcode_automatic_CXX \ 13078 module_cmds_CXX \ 13079 module_expsym_cmds_CXX \ 13080 lt_cv_prog_compiler_c_o_CXX \ 13081 exclude_expsyms_CXX \ 13082 include_expsyms_CXX; do 13083 13084 case $var in 13085 old_archive_cmds_CXX | \ 13086 old_archive_from_new_cmds_CXX | \ 13087 archive_cmds_CXX | \ 13088 archive_expsym_cmds_CXX | \ 13089 module_cmds_CXX | \ 13090 module_expsym_cmds_CXX | \ 13091 old_archive_from_expsyms_cmds_CXX | \ 13092 export_symbols_cmds_CXX | \ 13093 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13094 postinstall_cmds | postuninstall_cmds | \ 13095 old_postinstall_cmds | old_postuninstall_cmds | \ 13096 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13097 # Double-quote double-evaled strings. 13098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13099 ;; 13100 *) 13101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13102 ;; 13103 esac 13104 done 13105 13106 case $lt_echo in 13107 *'\$0 --fallback-echo"') 13108 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13109 ;; 13110 esac 13111 13112cfgfile="$ofile" 13113 13114 cat <<__EOF__ >> "$cfgfile" 13115# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13116 13117# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13118 13119# Shell to use when invoking shell scripts. 13120SHELL=$lt_SHELL 13121 13122# Whether or not to build shared libraries. 13123build_libtool_libs=$enable_shared 13124 13125# Whether or not to build static libraries. 13126build_old_libs=$enable_static 13127 13128# Whether or not to add -lc for building shared libraries. 13129build_libtool_need_lc=$archive_cmds_need_lc_CXX 13130 13131# Whether or not to disallow shared libs when runtime libs are static 13132allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13133 13134# Whether or not to optimize for fast installation. 13135fast_install=$enable_fast_install 13136 13137# The host system. 13138host_alias=$host_alias 13139host=$host 13140host_os=$host_os 13141 13142# The build system. 13143build_alias=$build_alias 13144build=$build 13145build_os=$build_os 13146 13147# An echo program that does not interpret backslashes. 13148echo=$lt_echo 13149 13150# The archiver. 13151AR=$lt_AR 13152AR_FLAGS=$lt_AR_FLAGS 13153 13154# A C compiler. 13155LTCC=$lt_LTCC 13156 13157# A language-specific compiler. 13158CC=$lt_compiler_CXX 13159 13160# Is the compiler the GNU C compiler? 13161with_gcc=$GCC_CXX 13162 13163# An ERE matcher. 13164EGREP=$lt_EGREP 13165 13166# The linker used to build libraries. 13167LD=$lt_LD_CXX 13168 13169# Whether we need hard or soft links. 13170LN_S=$lt_LN_S 13171 13172# A BSD-compatible nm program. 13173NM=$lt_NM 13174 13175# A symbol stripping program 13176STRIP=$lt_STRIP 13177 13178# Used to examine libraries when file_magic_cmd begins "file" 13179MAGIC_CMD=$MAGIC_CMD 13180 13181# Used on cygwin: DLL creation program. 13182DLLTOOL="$DLLTOOL" 13183 13184# Used on cygwin: object dumper. 13185OBJDUMP="$OBJDUMP" 13186 13187# Used on cygwin: assembler. 13188AS="$AS" 13189 13190# The name of the directory that contains temporary libtool files. 13191objdir=$objdir 13192 13193# How to create reloadable object files. 13194reload_flag=$lt_reload_flag 13195reload_cmds=$lt_reload_cmds 13196 13197# How to pass a linker flag through the compiler. 13198wl=$lt_lt_prog_compiler_wl_CXX 13199 13200# Object file suffix (normally "o"). 13201objext="$ac_objext" 13202 13203# Old archive suffix (normally "a"). 13204libext="$libext" 13205 13206# Shared library suffix (normally ".so"). 13207shrext_cmds='$shrext_cmds' 13208 13209# Executable file suffix (normally ""). 13210exeext="$exeext" 13211 13212# Additional compiler flags for building library objects. 13213pic_flag=$lt_lt_prog_compiler_pic_CXX 13214pic_mode=$pic_mode 13215 13216# What is the maximum length of a command? 13217max_cmd_len=$lt_cv_sys_max_cmd_len 13218 13219# Does compiler simultaneously support -c and -o options? 13220compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13221 13222# Must we lock files when doing compilation? 13223need_locks=$lt_need_locks 13224 13225# Do we need the lib prefix for modules? 13226need_lib_prefix=$need_lib_prefix 13227 13228# Do we need a version for libraries? 13229need_version=$need_version 13230 13231# Whether dlopen is supported. 13232dlopen_support=$enable_dlopen 13233 13234# Whether dlopen of programs is supported. 13235dlopen_self=$enable_dlopen_self 13236 13237# Whether dlopen of statically linked programs is supported. 13238dlopen_self_static=$enable_dlopen_self_static 13239 13240# Compiler flag to prevent dynamic linking. 13241link_static_flag=$lt_lt_prog_compiler_static_CXX 13242 13243# Compiler flag to turn off builtin functions. 13244no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13245 13246# Compiler flag to allow reflexive dlopens. 13247export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13248 13249# Compiler flag to generate shared objects directly from archives. 13250whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13251 13252# Compiler flag to generate thread-safe objects. 13253thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13254 13255# Library versioning type. 13256version_type=$version_type 13257 13258# Format of library name prefix. 13259libname_spec=$lt_libname_spec 13260 13261# List of archive names. First name is the real one, the rest are links. 13262# The last name is the one that the linker finds with -lNAME. 13263library_names_spec=$lt_library_names_spec 13264 13265# The coded name of the library, if different from the real name. 13266soname_spec=$lt_soname_spec 13267 13268# Commands used to build and install an old-style archive. 13269RANLIB=$lt_RANLIB 13270old_archive_cmds=$lt_old_archive_cmds_CXX 13271old_postinstall_cmds=$lt_old_postinstall_cmds 13272old_postuninstall_cmds=$lt_old_postuninstall_cmds 13273 13274# Create an old-style archive from a shared archive. 13275old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13276 13277# Create a temporary old-style archive to link instead of a shared archive. 13278old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13279 13280# Commands used to build and install a shared archive. 13281archive_cmds=$lt_archive_cmds_CXX 13282archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13283postinstall_cmds=$lt_postinstall_cmds 13284postuninstall_cmds=$lt_postuninstall_cmds 13285 13286# Commands used to build a loadable module (assumed same as above if empty) 13287module_cmds=$lt_module_cmds_CXX 13288module_expsym_cmds=$lt_module_expsym_cmds_CXX 13289 13290# Commands to strip libraries. 13291old_striplib=$lt_old_striplib 13292striplib=$lt_striplib 13293 13294# Dependencies to place before the objects being linked to create a 13295# shared library. 13296predep_objects=$lt_predep_objects_CXX 13297 13298# Dependencies to place after the objects being linked to create a 13299# shared library. 13300postdep_objects=$lt_postdep_objects_CXX 13301 13302# Dependencies to place before the objects being linked to create a 13303# shared library. 13304predeps=$lt_predeps_CXX 13305 13306# Dependencies to place after the objects being linked to create a 13307# shared library. 13308postdeps=$lt_postdeps_CXX 13309 13310# The library search path used internally by the compiler when linking 13311# a shared library. 13312compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13313 13314# Method to check whether dependent libraries are shared objects. 13315deplibs_check_method=$lt_deplibs_check_method 13316 13317# Command to use when deplibs_check_method == file_magic. 13318file_magic_cmd=$lt_file_magic_cmd 13319 13320# Flag that allows shared libraries with undefined symbols to be built. 13321allow_undefined_flag=$lt_allow_undefined_flag_CXX 13322 13323# Flag that forces no undefined symbols. 13324no_undefined_flag=$lt_no_undefined_flag_CXX 13325 13326# Commands used to finish a libtool library installation in a directory. 13327finish_cmds=$lt_finish_cmds 13328 13329# Same as above, but a single script fragment to be evaled but not shown. 13330finish_eval=$lt_finish_eval 13331 13332# Take the output of nm and produce a listing of raw symbols and C names. 13333global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13334 13335# Transform the output of nm in a proper C declaration 13336global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13337 13338# Transform the output of nm in a C name address pair 13339global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13340 13341# This is the shared library runtime path variable. 13342runpath_var=$runpath_var 13343 13344# This is the shared library path variable. 13345shlibpath_var=$shlibpath_var 13346 13347# Is shlibpath searched before the hard-coded library search path? 13348shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13349 13350# How to hardcode a shared library path into an executable. 13351hardcode_action=$hardcode_action_CXX 13352 13353# Whether we should hardcode library paths into libraries. 13354hardcode_into_libs=$hardcode_into_libs 13355 13356# Flag to hardcode \$libdir into a binary during linking. 13357# This must work even if \$libdir does not exist. 13358hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13359 13360# If ld is used when linking, flag to hardcode \$libdir into 13361# a binary during linking. This must work even if \$libdir does 13362# not exist. 13363hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13364 13365# Whether we need a single -rpath flag with a separated argument. 13366hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13367 13368# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13369# resulting binary. 13370hardcode_direct=$hardcode_direct_CXX 13371 13372# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13373# resulting binary. 13374hardcode_minus_L=$hardcode_minus_L_CXX 13375 13376# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13377# the resulting binary. 13378hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13379 13380# Set to yes if building a shared library automatically hardcodes DIR into the library 13381# and all subsequent libraries and executables linked against it. 13382hardcode_automatic=$hardcode_automatic_CXX 13383 13384# Variables whose values should be saved in libtool wrapper scripts and 13385# restored at relink time. 13386variables_saved_for_relink="$variables_saved_for_relink" 13387 13388# Whether libtool must link a program against all its dependency libraries. 13389link_all_deplibs=$link_all_deplibs_CXX 13390 13391# Compile-time system search path for libraries 13392sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13393 13394# Run-time system search path for libraries 13395sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13396 13397# Fix the shell variable \$srcfile for the compiler. 13398fix_srcfile_path="$fix_srcfile_path_CXX" 13399 13400# Set to yes if exported symbols are required. 13401always_export_symbols=$always_export_symbols_CXX 13402 13403# The commands to list exported symbols. 13404export_symbols_cmds=$lt_export_symbols_cmds_CXX 13405 13406# The commands to extract the exported symbol list from a shared archive. 13407extract_expsyms_cmds=$lt_extract_expsyms_cmds 13408 13409# Symbols that should not be listed in the preloaded symbols. 13410exclude_expsyms=$lt_exclude_expsyms_CXX 13411 13412# Symbols that must always be exported. 13413include_expsyms=$lt_include_expsyms_CXX 13414 13415# ### END LIBTOOL TAG CONFIG: $tagname 13416 13417__EOF__ 13418 13419 13420else 13421 # If there is no Makefile yet, we rely on a make rule to execute 13422 # `config.status --recheck' to rerun these tests and create the 13423 # libtool script then. 13424 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13425 if test -f "$ltmain_in"; then 13426 test -f Makefile && make "$ltmain" 13427 fi 13428fi 13429 13430 13431ac_ext=c 13432ac_cpp='$CPP $CPPFLAGS' 13433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13435ac_compiler_gnu=$ac_cv_c_compiler_gnu 13436 13437CC=$lt_save_CC 13438LDCXX=$LD 13439LD=$lt_save_LD 13440GCC=$lt_save_GCC 13441with_gnu_ldcxx=$with_gnu_ld 13442with_gnu_ld=$lt_save_with_gnu_ld 13443lt_cv_path_LDCXX=$lt_cv_path_LD 13444lt_cv_path_LD=$lt_save_path_LD 13445lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13446lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13447 13448 else 13449 tagname="" 13450 fi 13451 ;; 13452 13453 F77) 13454 if test -n "$F77" && test "X$F77" != "Xno"; then 13455 13456ac_ext=f 13457ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13458ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13459ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13460 13461 13462archive_cmds_need_lc_F77=no 13463allow_undefined_flag_F77= 13464always_export_symbols_F77=no 13465archive_expsym_cmds_F77= 13466export_dynamic_flag_spec_F77= 13467hardcode_direct_F77=no 13468hardcode_libdir_flag_spec_F77= 13469hardcode_libdir_flag_spec_ld_F77= 13470hardcode_libdir_separator_F77= 13471hardcode_minus_L_F77=no 13472hardcode_automatic_F77=no 13473module_cmds_F77= 13474module_expsym_cmds_F77= 13475link_all_deplibs_F77=unknown 13476old_archive_cmds_F77=$old_archive_cmds 13477no_undefined_flag_F77= 13478whole_archive_flag_spec_F77= 13479enable_shared_with_static_runtimes_F77=no 13480 13481# Source file extension for f77 test sources. 13482ac_ext=f 13483 13484# Object file extension for compiled f77 test sources. 13485objext=o 13486objext_F77=$objext 13487 13488# Code to be used in simple compile tests 13489lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13490 13491# Code to be used in simple link tests 13492lt_simple_link_test_code=" program t\n end\n" 13493 13494# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13495 13496# If no C compiler was specified, use CC. 13497LTCC=${LTCC-"$CC"} 13498 13499# Allow CC to be a program name with arguments. 13500compiler=$CC 13501 13502 13503# save warnings/boilerplate of simple test code 13504ac_outfile=conftest.$ac_objext 13505printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13506eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13507_lt_compiler_boilerplate=`cat conftest.err` 13508$rm conftest* 13509 13510ac_outfile=conftest.$ac_objext 13511printf "$lt_simple_link_test_code" >conftest.$ac_ext 13512eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13513_lt_linker_boilerplate=`cat conftest.err` 13514$rm conftest* 13515 13516 13517# Allow CC to be a program name with arguments. 13518lt_save_CC="$CC" 13519CC=${F77-"f77"} 13520compiler=$CC 13521compiler_F77=$CC 13522for cc_temp in $compiler""; do 13523 case $cc_temp in 13524 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13525 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13526 \-*) ;; 13527 *) break;; 13528 esac 13529done 13530cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13531 13532 13533echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13534echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13535echo "$as_me:$LINENO: result: $can_build_shared" >&5 13536echo "${ECHO_T}$can_build_shared" >&6 13537 13538echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13539echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13540test "$can_build_shared" = "no" && enable_shared=no 13541 13542# On AIX, shared libraries and static libraries use the same namespace, and 13543# are all built from PIC. 13544case "$host_os" in 13545aix3*) 13546 test "$enable_shared" = yes && enable_static=no 13547 if test -n "$RANLIB"; then 13548 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13549 postinstall_cmds='$RANLIB $lib' 13550 fi 13551 ;; 13552aix4* | aix5*) 13553 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13554 test "$enable_shared" = yes && enable_static=no 13555 fi 13556 ;; 13557esac 13558echo "$as_me:$LINENO: result: $enable_shared" >&5 13559echo "${ECHO_T}$enable_shared" >&6 13560 13561echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13562echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13563# Make sure either enable_shared or enable_static is yes. 13564test "$enable_shared" = yes || enable_static=yes 13565echo "$as_me:$LINENO: result: $enable_static" >&5 13566echo "${ECHO_T}$enable_static" >&6 13567 13568test "$ld_shlibs_F77" = no && can_build_shared=no 13569 13570GCC_F77="$G77" 13571LD_F77="$LD" 13572 13573lt_prog_compiler_wl_F77= 13574lt_prog_compiler_pic_F77= 13575lt_prog_compiler_static_F77= 13576 13577echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13578echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13579 13580 if test "$GCC" = yes; then 13581 lt_prog_compiler_wl_F77='-Wl,' 13582 lt_prog_compiler_static_F77='-static' 13583 13584 case $host_os in 13585 aix*) 13586 # All AIX code is PIC. 13587 if test "$host_cpu" = ia64; then 13588 # AIX 5 now supports IA64 processor 13589 lt_prog_compiler_static_F77='-Bstatic' 13590 fi 13591 ;; 13592 13593 amigaos*) 13594 # FIXME: we need at least 68020 code to build shared libraries, but 13595 # adding the `-m68020' flag to GCC prevents building anything better, 13596 # like `-m68040'. 13597 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13598 ;; 13599 13600 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13601 # PIC is the default for these OSes. 13602 ;; 13603 13604 mingw* | pw32* | os2*) 13605 # This hack is so that the source file can tell whether it is being 13606 # built for inclusion in a dll (and should export symbols for example). 13607 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13608 ;; 13609 13610 darwin* | rhapsody*) 13611 # PIC is the default on this platform 13612 # Common symbols not allowed in MH_DYLIB files 13613 lt_prog_compiler_pic_F77='-fno-common' 13614 ;; 13615 13616 msdosdjgpp*) 13617 # Just because we use GCC doesn't mean we suddenly get shared libraries 13618 # on systems that don't support them. 13619 lt_prog_compiler_can_build_shared_F77=no 13620 enable_shared=no 13621 ;; 13622 13623 sysv4*MP*) 13624 if test -d /usr/nec; then 13625 lt_prog_compiler_pic_F77=-Kconform_pic 13626 fi 13627 ;; 13628 13629 hpux*) 13630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13631 # not for PA HP-UX. 13632 case "$host_cpu" in 13633 hppa*64*|ia64*) 13634 # +Z the default 13635 ;; 13636 *) 13637 lt_prog_compiler_pic_F77='-fPIC' 13638 ;; 13639 esac 13640 ;; 13641 13642 *) 13643 lt_prog_compiler_pic_F77='-fPIC' 13644 ;; 13645 esac 13646 else 13647 # PORTME Check for flag to pass linker flags through the system compiler. 13648 case $host_os in 13649 aix*) 13650 lt_prog_compiler_wl_F77='-Wl,' 13651 if test "$host_cpu" = ia64; then 13652 # AIX 5 now supports IA64 processor 13653 lt_prog_compiler_static_F77='-Bstatic' 13654 else 13655 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13656 fi 13657 ;; 13658 darwin*) 13659 # PIC is the default on this platform 13660 # Common symbols not allowed in MH_DYLIB files 13661 case $cc_basename in 13662 xlc*) 13663 lt_prog_compiler_pic_F77='-qnocommon' 13664 lt_prog_compiler_wl_F77='-Wl,' 13665 ;; 13666 esac 13667 ;; 13668 13669 mingw* | pw32* | os2*) 13670 # This hack is so that the source file can tell whether it is being 13671 # built for inclusion in a dll (and should export symbols for example). 13672 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13673 ;; 13674 13675 hpux9* | hpux10* | hpux11*) 13676 lt_prog_compiler_wl_F77='-Wl,' 13677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13678 # not for PA HP-UX. 13679 case "$host_cpu" in 13680 hppa*64*|ia64*) 13681 # +Z the default 13682 ;; 13683 *) 13684 lt_prog_compiler_pic_F77='+Z' 13685 ;; 13686 esac 13687 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13688 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13689 ;; 13690 13691 irix5* | irix6* | nonstopux*) 13692 lt_prog_compiler_wl_F77='-Wl,' 13693 # PIC (with -KPIC) is the default. 13694 lt_prog_compiler_static_F77='-non_shared' 13695 ;; 13696 13697 newsos6) 13698 lt_prog_compiler_pic_F77='-KPIC' 13699 lt_prog_compiler_static_F77='-Bstatic' 13700 ;; 13701 13702 linux*) 13703 case $cc_basename in 13704 icc* | ecc*) 13705 lt_prog_compiler_wl_F77='-Wl,' 13706 lt_prog_compiler_pic_F77='-KPIC' 13707 lt_prog_compiler_static_F77='-static' 13708 ;; 13709 pgcc* | pgf77* | pgf90*) 13710 # Portland Group compilers (*not* the Pentium gcc compiler, 13711 # which looks to be a dead project) 13712 lt_prog_compiler_wl_F77='-Wl,' 13713 lt_prog_compiler_pic_F77='-fpic' 13714 lt_prog_compiler_static_F77='-static' 13715 ;; 13716 ccc*) 13717 lt_prog_compiler_wl_F77='-Wl,' 13718 # All Alpha code is PIC. 13719 lt_prog_compiler_static_F77='-non_shared' 13720 ;; 13721 esac 13722 ;; 13723 13724 osf3* | osf4* | osf5*) 13725 lt_prog_compiler_wl_F77='-Wl,' 13726 # All OSF/1 code is PIC. 13727 lt_prog_compiler_static_F77='-non_shared' 13728 ;; 13729 13730 sco3.2v5*) 13731 lt_prog_compiler_pic_F77='-Kpic' 13732 lt_prog_compiler_static_F77='-dn' 13733 ;; 13734 13735 solaris*) 13736 lt_prog_compiler_pic_F77='-KPIC' 13737 lt_prog_compiler_static_F77='-Bstatic' 13738 case $cc_basename in 13739 f77* | f90* | f95*) 13740 lt_prog_compiler_wl_F77='-Qoption ld ';; 13741 *) 13742 lt_prog_compiler_wl_F77='-Wl,';; 13743 esac 13744 ;; 13745 13746 sunos4*) 13747 lt_prog_compiler_wl_F77='-Qoption ld ' 13748 lt_prog_compiler_pic_F77='-PIC' 13749 lt_prog_compiler_static_F77='-Bstatic' 13750 ;; 13751 13752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13753 lt_prog_compiler_wl_F77='-Wl,' 13754 lt_prog_compiler_pic_F77='-KPIC' 13755 lt_prog_compiler_static_F77='-Bstatic' 13756 ;; 13757 13758 sysv4*MP*) 13759 if test -d /usr/nec ;then 13760 lt_prog_compiler_pic_F77='-Kconform_pic' 13761 lt_prog_compiler_static_F77='-Bstatic' 13762 fi 13763 ;; 13764 13765 unicos*) 13766 lt_prog_compiler_wl_F77='-Wl,' 13767 lt_prog_compiler_can_build_shared_F77=no 13768 ;; 13769 13770 uts4*) 13771 lt_prog_compiler_pic_F77='-pic' 13772 lt_prog_compiler_static_F77='-Bstatic' 13773 ;; 13774 13775 *) 13776 lt_prog_compiler_can_build_shared_F77=no 13777 ;; 13778 esac 13779 fi 13780 13781echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13782echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13783 13784# 13785# Check to make sure the PIC flag actually works. 13786# 13787if test -n "$lt_prog_compiler_pic_F77"; then 13788 13789echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13790echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13791if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13792 echo $ECHO_N "(cached) $ECHO_C" >&6 13793else 13794 lt_prog_compiler_pic_works_F77=no 13795 ac_outfile=conftest.$ac_objext 13796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13797 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13798 # Insert the option either (1) after the last *FLAGS variable, or 13799 # (2) before a word containing "conftest.", or (3) at the end. 13800 # Note that $ac_compile itself does not contain backslashes and begins 13801 # with a dollar sign (not a hyphen), so the echo should work correctly. 13802 # The option is referenced via a variable to avoid confusing sed. 13803 lt_compile=`echo "$ac_compile" | $SED \ 13804 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13806 -e 's:$: $lt_compiler_flag:'` 13807 (eval echo "\"\$as_me:13807: $lt_compile\"" >&5) 13808 (eval "$lt_compile" 2>conftest.err) 13809 ac_status=$? 13810 cat conftest.err >&5 13811 echo "$as_me:13811: \$? = $ac_status" >&5 13812 if (exit $ac_status) && test -s "$ac_outfile"; then 13813 # The compiler can only warn and ignore the option if not recognized 13814 # So say no if there are warnings other than the usual output. 13815 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13816 $SED '/^$/d' conftest.err >conftest.er2 13817 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13818 lt_prog_compiler_pic_works_F77=yes 13819 fi 13820 fi 13821 $rm conftest* 13822 13823fi 13824echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13825echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13826 13827if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13828 case $lt_prog_compiler_pic_F77 in 13829 "" | " "*) ;; 13830 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13831 esac 13832else 13833 lt_prog_compiler_pic_F77= 13834 lt_prog_compiler_can_build_shared_F77=no 13835fi 13836 13837fi 13838case "$host_os" in 13839 # For platforms which do not support PIC, -DPIC is meaningless: 13840 *djgpp*) 13841 lt_prog_compiler_pic_F77= 13842 ;; 13843 *) 13844 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13845 ;; 13846esac 13847 13848echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13849echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13850if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13851 echo $ECHO_N "(cached) $ECHO_C" >&6 13852else 13853 lt_cv_prog_compiler_c_o_F77=no 13854 $rm -r conftest 2>/dev/null 13855 mkdir conftest 13856 cd conftest 13857 mkdir out 13858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13859 13860 lt_compiler_flag="-o out/conftest2.$ac_objext" 13861 # Insert the option either (1) after the last *FLAGS variable, or 13862 # (2) before a word containing "conftest.", or (3) at the end. 13863 # Note that $ac_compile itself does not contain backslashes and begins 13864 # with a dollar sign (not a hyphen), so the echo should work correctly. 13865 lt_compile=`echo "$ac_compile" | $SED \ 13866 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13868 -e 's:$: $lt_compiler_flag:'` 13869 (eval echo "\"\$as_me:13869: $lt_compile\"" >&5) 13870 (eval "$lt_compile" 2>out/conftest.err) 13871 ac_status=$? 13872 cat out/conftest.err >&5 13873 echo "$as_me:13873: \$? = $ac_status" >&5 13874 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13875 then 13876 # The compiler can only warn and ignore the option if not recognized 13877 # So say no if there are warnings 13878 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13879 $SED '/^$/d' out/conftest.err >out/conftest.er2 13880 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13881 lt_cv_prog_compiler_c_o_F77=yes 13882 fi 13883 fi 13884 chmod u+w . 13885 $rm conftest* 13886 # SGI C++ compiler will create directory out/ii_files/ for 13887 # template instantiation 13888 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13889 $rm out/* && rmdir out 13890 cd .. 13891 rmdir conftest 13892 $rm conftest* 13893 13894fi 13895echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13896echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13897 13898 13899hard_links="nottested" 13900if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13901 # do not overwrite the value of need_locks provided by the user 13902 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13903echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13904 hard_links=yes 13905 $rm conftest* 13906 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13907 touch conftest.a 13908 ln conftest.a conftest.b 2>&5 || hard_links=no 13909 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13910 echo "$as_me:$LINENO: result: $hard_links" >&5 13911echo "${ECHO_T}$hard_links" >&6 13912 if test "$hard_links" = no; then 13913 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13914echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13915 need_locks=warn 13916 fi 13917else 13918 need_locks=no 13919fi 13920 13921echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13922echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13923 13924 runpath_var= 13925 allow_undefined_flag_F77= 13926 enable_shared_with_static_runtimes_F77=no 13927 archive_cmds_F77= 13928 archive_expsym_cmds_F77= 13929 old_archive_From_new_cmds_F77= 13930 old_archive_from_expsyms_cmds_F77= 13931 export_dynamic_flag_spec_F77= 13932 whole_archive_flag_spec_F77= 13933 thread_safe_flag_spec_F77= 13934 hardcode_libdir_flag_spec_F77= 13935 hardcode_libdir_flag_spec_ld_F77= 13936 hardcode_libdir_separator_F77= 13937 hardcode_direct_F77=no 13938 hardcode_minus_L_F77=no 13939 hardcode_shlibpath_var_F77=unsupported 13940 link_all_deplibs_F77=unknown 13941 hardcode_automatic_F77=no 13942 module_cmds_F77= 13943 module_expsym_cmds_F77= 13944 always_export_symbols_F77=no 13945 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13946 # include_expsyms should be a list of space-separated symbols to be *always* 13947 # included in the symbol list 13948 include_expsyms_F77= 13949 # exclude_expsyms can be an extended regexp of symbols to exclude 13950 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13952 # as well as any symbol that contains `d'. 13953 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13955 # platforms (ab)use it in PIC code, but their linkers get confused if 13956 # the symbol is explicitly referenced. Since portable code cannot 13957 # rely on this symbol name, it's probably fine to never include it in 13958 # preloaded symbol tables. 13959 extract_expsyms_cmds= 13960 # Just being paranoid about ensuring that cc_basename is set. 13961 for cc_temp in $compiler""; do 13962 case $cc_temp in 13963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13965 \-*) ;; 13966 *) break;; 13967 esac 13968done 13969cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13970 13971 case $host_os in 13972 cygwin* | mingw* | pw32*) 13973 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13974 # When not using gcc, we currently assume that we are using 13975 # Microsoft Visual C++. 13976 if test "$GCC" != yes; then 13977 with_gnu_ld=no 13978 fi 13979 ;; 13980 openbsd*) 13981 with_gnu_ld=no 13982 ;; 13983 esac 13984 13985 ld_shlibs_F77=yes 13986 if test "$with_gnu_ld" = yes; then 13987 # If archive_cmds runs LD, not CC, wlarc should be empty 13988 wlarc='${wl}' 13989 13990 # Set some defaults for GNU ld with shared library support. These 13991 # are reset later if shared libraries are not supported. Putting them 13992 # here allows them to be overridden if necessary. 13993 runpath_var=LD_RUN_PATH 13994 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13995 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13996 # ancient GNU ld didn't support --whole-archive et. al. 13997 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13998 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13999 else 14000 whole_archive_flag_spec_F77= 14001 fi 14002 supports_anon_versioning=no 14003 case `$LD -v 2>/dev/null` in 14004 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14007 *\ 2.11.*) ;; # other 2.11 versions 14008 *) supports_anon_versioning=yes ;; 14009 esac 14010 14011 # See if GNU ld supports shared libraries. 14012 case $host_os in 14013 aix3* | aix4* | aix5*) 14014 # On AIX/PPC, the GNU linker is very broken 14015 if test "$host_cpu" != ia64; then 14016 ld_shlibs_F77=no 14017 cat <<EOF 1>&2 14018 14019*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14020*** to be unable to reliably create shared libraries on AIX. 14021*** Therefore, libtool is disabling shared libraries support. If you 14022*** really care for shared libraries, you may want to modify your PATH 14023*** so that a non-GNU linker is found, and then restart. 14024 14025EOF 14026 fi 14027 ;; 14028 14029 amigaos*) 14030 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)' 14031 hardcode_libdir_flag_spec_F77='-L$libdir' 14032 hardcode_minus_L_F77=yes 14033 14034 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14035 # that the semantics of dynamic libraries on AmigaOS, at least up 14036 # to version 4, is to share data among multiple programs linked 14037 # with the same dynamic library. Since this doesn't match the 14038 # behavior of shared libraries on other platforms, we can't use 14039 # them. 14040 ld_shlibs_F77=no 14041 ;; 14042 14043 beos*) 14044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14045 allow_undefined_flag_F77=unsupported 14046 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14047 # support --undefined. This deserves some investigation. FIXME 14048 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14049 else 14050 ld_shlibs_F77=no 14051 fi 14052 ;; 14053 14054 cygwin* | mingw* | pw32*) 14055 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14056 # as there is no search path for DLLs. 14057 hardcode_libdir_flag_spec_F77='-L$libdir' 14058 allow_undefined_flag_F77=unsupported 14059 always_export_symbols_F77=no 14060 enable_shared_with_static_runtimes_F77=yes 14061 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14062 14063 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14064 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14065 # If the export-symbols file already is a .def file (1st line 14066 # is EXPORTS), use it as is; otherwise, prepend... 14067 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14068 cp $export_symbols $output_objdir/$soname.def; 14069 else 14070 echo EXPORTS > $output_objdir/$soname.def; 14071 cat $export_symbols >> $output_objdir/$soname.def; 14072 fi~ 14073 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14074 else 14075 ld_shlibs_F77=no 14076 fi 14077 ;; 14078 14079 linux*) 14080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14081 tmp_addflag= 14082 case $cc_basename,$host_cpu in 14083 pgcc*) # Portland Group C compiler 14084 whole_archive_flag_spec_F77= 14085 ;; 14086 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 14087 whole_archive_flag_spec_F77= 14088 tmp_addflag=' -fpic -Mnomain' ;; 14089 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14090 tmp_addflag=' -i_dynamic' ;; 14091 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14092 tmp_addflag=' -i_dynamic -nofor_main' ;; 14093 ifc* | ifort*) # Intel Fortran compiler 14094 tmp_addflag=' -nofor_main' ;; 14095 esac 14096 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14097 14098 if test $supports_anon_versioning = yes; then 14099 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14101 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14102 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14103 fi 14104 else 14105 ld_shlibs_F77=no 14106 fi 14107 ;; 14108 14109 netbsd*) 14110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14111 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14112 wlarc= 14113 else 14114 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14115 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14116 fi 14117 ;; 14118 14119 solaris* | sysv5*) 14120 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14121 ld_shlibs_F77=no 14122 cat <<EOF 1>&2 14123 14124*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14125*** create shared libraries on Solaris systems. Therefore, libtool 14126*** is disabling shared libraries support. We urge you to upgrade GNU 14127*** binutils to release 2.9.1 or newer. Another option is to modify 14128*** your PATH or compiler configuration so that the native linker is 14129*** used, and then restart. 14130 14131EOF 14132 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14133 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14134 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14135 else 14136 ld_shlibs_F77=no 14137 fi 14138 ;; 14139 14140 sunos4*) 14141 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14142 wlarc= 14143 hardcode_direct_F77=yes 14144 hardcode_shlibpath_var_F77=no 14145 ;; 14146 14147 *) 14148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14149 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14150 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14151 else 14152 ld_shlibs_F77=no 14153 fi 14154 ;; 14155 esac 14156 14157 if test "$ld_shlibs_F77" = no; then 14158 runpath_var= 14159 hardcode_libdir_flag_spec_F77= 14160 export_dynamic_flag_spec_F77= 14161 whole_archive_flag_spec_F77= 14162 fi 14163 else 14164 # PORTME fill in a description of your system's linker (not GNU ld) 14165 case $host_os in 14166 aix3*) 14167 allow_undefined_flag_F77=unsupported 14168 always_export_symbols_F77=yes 14169 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' 14170 # Note: this linker hardcodes the directories in LIBPATH if there 14171 # are no directories specified by -L. 14172 hardcode_minus_L_F77=yes 14173 if test "$GCC" = yes && test -z "$link_static_flag"; then 14174 # Neither direct hardcoding nor static linking is supported with a 14175 # broken collect2. 14176 hardcode_direct_F77=unsupported 14177 fi 14178 ;; 14179 14180 aix4* | aix5*) 14181 if test "$host_cpu" = ia64; then 14182 # On IA64, the linker does run time linking by default, so we don't 14183 # have to do anything special. 14184 aix_use_runtimelinking=no 14185 exp_sym_flag='-Bexport' 14186 no_entry_flag="" 14187 else 14188 # If we're using GNU nm, then we don't want the "-C" option. 14189 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14190 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14191 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' 14192 else 14193 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' 14194 fi 14195 aix_use_runtimelinking=no 14196 14197 # Test if we are trying to use run time linking or normal 14198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14199 # need to do runtime linking. 14200 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14201 for ld_flag in $LDFLAGS; do 14202 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14203 aix_use_runtimelinking=yes 14204 break 14205 fi 14206 done 14207 esac 14208 14209 exp_sym_flag='-bexport' 14210 no_entry_flag='-bnoentry' 14211 fi 14212 14213 # When large executables or shared objects are built, AIX ld can 14214 # have problems creating the table of contents. If linking a library 14215 # or program results in "error TOC overflow" add -mminimal-toc to 14216 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14217 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14218 14219 archive_cmds_F77='' 14220 hardcode_direct_F77=yes 14221 hardcode_libdir_separator_F77=':' 14222 link_all_deplibs_F77=yes 14223 14224 if test "$GCC" = yes; then 14225 case $host_os in aix4.[012]|aix4.[012].*) 14226 # We only want to do this on AIX 4.2 and lower, the check 14227 # below for broken collect2 doesn't work under 4.3+ 14228 collect2name=`${CC} -print-prog-name=collect2` 14229 if test -f "$collect2name" && \ 14230 strings "$collect2name" | grep resolve_lib_name >/dev/null 14231 then 14232 # We have reworked collect2 14233 hardcode_direct_F77=yes 14234 else 14235 # We have old collect2 14236 hardcode_direct_F77=unsupported 14237 # It fails to find uninstalled libraries when the uninstalled 14238 # path is not listed in the libpath. Setting hardcode_minus_L 14239 # to unsupported forces relinking 14240 hardcode_minus_L_F77=yes 14241 hardcode_libdir_flag_spec_F77='-L$libdir' 14242 hardcode_libdir_separator_F77= 14243 fi 14244 esac 14245 shared_flag='-shared' 14246 if test "$aix_use_runtimelinking" = yes; then 14247 shared_flag="$shared_flag "'${wl}-G' 14248 fi 14249 else 14250 # not using gcc 14251 if test "$host_cpu" = ia64; then 14252 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14253 # chokes on -Wl,-G. The following line is correct: 14254 shared_flag='-G' 14255 else 14256 if test "$aix_use_runtimelinking" = yes; then 14257 shared_flag='${wl}-G' 14258 else 14259 shared_flag='${wl}-bM:SRE' 14260 fi 14261 fi 14262 fi 14263 14264 # It seems that -bexpall does not export symbols beginning with 14265 # underscore (_), so it is better to generate a list of symbols to export. 14266 always_export_symbols_F77=yes 14267 if test "$aix_use_runtimelinking" = yes; then 14268 # Warning - without using the other runtime loading flags (-brtl), 14269 # -berok will link without error, but may produce a broken library. 14270 allow_undefined_flag_F77='-berok' 14271 # Determine the default libpath from the value encoded in an empty executable. 14272 cat >conftest.$ac_ext <<_ACEOF 14273 program main 14274 14275 end 14276_ACEOF 14277rm -f conftest.$ac_objext conftest$ac_exeext 14278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14279 (eval $ac_link) 2>conftest.er1 14280 ac_status=$? 14281 grep -v '^ *+' conftest.er1 >conftest.err 14282 rm -f conftest.er1 14283 cat conftest.err >&5 14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14285 (exit $ac_status); } && 14286 { ac_try='test -z "$ac_f77_werror_flag" 14287 || test ! -s conftest.err' 14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14289 (eval $ac_try) 2>&5 14290 ac_status=$? 14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14292 (exit $ac_status); }; } && 14293 { ac_try='test -s conftest$ac_exeext' 14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14295 (eval $ac_try) 2>&5 14296 ac_status=$? 14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14298 (exit $ac_status); }; }; then 14299 14300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14301}'` 14302# Check for a 64-bit object if we didn't find anything. 14303if 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; } 14304}'`; fi 14305else 14306 echo "$as_me: failed program was:" >&5 14307sed 's/^/| /' conftest.$ac_ext >&5 14308 14309fi 14310rm -f conftest.err conftest.$ac_objext \ 14311 conftest$ac_exeext conftest.$ac_ext 14312if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14313 14314 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14315 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" 14316 else 14317 if test "$host_cpu" = ia64; then 14318 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14319 allow_undefined_flag_F77="-z nodefs" 14320 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" 14321 else 14322 # Determine the default libpath from the value encoded in an empty executable. 14323 cat >conftest.$ac_ext <<_ACEOF 14324 program main 14325 14326 end 14327_ACEOF 14328rm -f conftest.$ac_objext conftest$ac_exeext 14329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14330 (eval $ac_link) 2>conftest.er1 14331 ac_status=$? 14332 grep -v '^ *+' conftest.er1 >conftest.err 14333 rm -f conftest.er1 14334 cat conftest.err >&5 14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14336 (exit $ac_status); } && 14337 { ac_try='test -z "$ac_f77_werror_flag" 14338 || test ! -s conftest.err' 14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14340 (eval $ac_try) 2>&5 14341 ac_status=$? 14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14343 (exit $ac_status); }; } && 14344 { ac_try='test -s conftest$ac_exeext' 14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14346 (eval $ac_try) 2>&5 14347 ac_status=$? 14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14349 (exit $ac_status); }; }; then 14350 14351aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14352}'` 14353# Check for a 64-bit object if we didn't find anything. 14354if 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; } 14355}'`; fi 14356else 14357 echo "$as_me: failed program was:" >&5 14358sed 's/^/| /' conftest.$ac_ext >&5 14359 14360fi 14361rm -f conftest.err conftest.$ac_objext \ 14362 conftest$ac_exeext conftest.$ac_ext 14363if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14364 14365 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14366 # Warning - without using the other run time loading flags, 14367 # -berok will link without error, but may produce a broken library. 14368 no_undefined_flag_F77=' ${wl}-bernotok' 14369 allow_undefined_flag_F77=' ${wl}-berok' 14370 # -bexpall does not export symbols beginning with underscore (_) 14371 always_export_symbols_F77=yes 14372 # Exported symbols can be pulled into shared objects from archives 14373 whole_archive_flag_spec_F77=' ' 14374 archive_cmds_need_lc_F77=yes 14375 # This is similar to how AIX traditionally builds it's shared libraries. 14376 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' 14377 fi 14378 fi 14379 ;; 14380 14381 amigaos*) 14382 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)' 14383 hardcode_libdir_flag_spec_F77='-L$libdir' 14384 hardcode_minus_L_F77=yes 14385 # see comment about different semantics on the GNU ld section 14386 ld_shlibs_F77=no 14387 ;; 14388 14389 bsdi[45]*) 14390 export_dynamic_flag_spec_F77=-rdynamic 14391 ;; 14392 14393 cygwin* | mingw* | pw32*) 14394 # When not using gcc, we currently assume that we are using 14395 # Microsoft Visual C++. 14396 # hardcode_libdir_flag_spec is actually meaningless, as there is 14397 # no search path for DLLs. 14398 hardcode_libdir_flag_spec_F77=' ' 14399 allow_undefined_flag_F77=unsupported 14400 # Tell ltmain to make .lib files, not .a files. 14401 libext=lib 14402 # Tell ltmain to make .dll files, not .so files. 14403 shrext_cmds=".dll" 14404 # FIXME: Setting linknames here is a bad hack. 14405 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14406 # The linker will automatically build a .lib file if we build a DLL. 14407 old_archive_From_new_cmds_F77='true' 14408 # FIXME: Should let the user specify the lib program. 14409 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14410 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14411 enable_shared_with_static_runtimes_F77=yes 14412 ;; 14413 14414 darwin* | rhapsody*) 14415 case "$host_os" in 14416 rhapsody* | darwin1.[012]) 14417 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14418 ;; 14419 *) # Darwin 1.3 on 14420 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14421 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14422 else 14423 case ${MACOSX_DEPLOYMENT_TARGET} in 14424 10.[012]) 14425 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14426 ;; 14427 10.*) 14428 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14429 ;; 14430 esac 14431 fi 14432 ;; 14433 esac 14434 archive_cmds_need_lc_F77=no 14435 hardcode_direct_F77=no 14436 hardcode_automatic_F77=yes 14437 hardcode_shlibpath_var_F77=unsupported 14438 whole_archive_flag_spec_F77='' 14439 link_all_deplibs_F77=yes 14440 if test "$GCC" = yes ; then 14441 output_verbose_link_cmd='echo' 14442 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14443 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14444 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14445 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}' 14446 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}' 14447 else 14448 case $cc_basename in 14449 xlc*) 14450 output_verbose_link_cmd='echo' 14451 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14452 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14453 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14454 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}' 14455 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}' 14456 ;; 14457 *) 14458 ld_shlibs_F77=no 14459 ;; 14460 esac 14461 fi 14462 ;; 14463 14464 dgux*) 14465 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14466 hardcode_libdir_flag_spec_F77='-L$libdir' 14467 hardcode_shlibpath_var_F77=no 14468 ;; 14469 14470 freebsd1*) 14471 ld_shlibs_F77=no 14472 ;; 14473 14474 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14475 # support. Future versions do this automatically, but an explicit c++rt0.o 14476 # does not break anything, and helps significantly (at the cost of a little 14477 # extra space). 14478 freebsd2.2*) 14479 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14480 hardcode_libdir_flag_spec_F77='-R$libdir' 14481 hardcode_direct_F77=yes 14482 hardcode_shlibpath_var_F77=no 14483 ;; 14484 14485 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14486 freebsd2*) 14487 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14488 hardcode_direct_F77=yes 14489 hardcode_minus_L_F77=yes 14490 hardcode_shlibpath_var_F77=no 14491 ;; 14492 14493 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14494 freebsd* | kfreebsd*-gnu | dragonfly*) 14495 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14496 hardcode_libdir_flag_spec_F77='-R$libdir' 14497 hardcode_direct_F77=yes 14498 hardcode_shlibpath_var_F77=no 14499 ;; 14500 14501 hpux9*) 14502 if test "$GCC" = yes; then 14503 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' 14504 else 14505 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' 14506 fi 14507 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14508 hardcode_libdir_separator_F77=: 14509 hardcode_direct_F77=yes 14510 14511 # hardcode_minus_L: Not really in the search PATH, 14512 # but as the default location of the library. 14513 hardcode_minus_L_F77=yes 14514 export_dynamic_flag_spec_F77='${wl}-E' 14515 ;; 14516 14517 hpux10* | hpux11*) 14518 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14519 case "$host_cpu" in 14520 hppa*64*|ia64*) 14521 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14522 ;; 14523 *) 14524 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14525 ;; 14526 esac 14527 else 14528 case "$host_cpu" in 14529 hppa*64*|ia64*) 14530 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14531 ;; 14532 *) 14533 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14534 ;; 14535 esac 14536 fi 14537 if test "$with_gnu_ld" = no; then 14538 case "$host_cpu" in 14539 hppa*64*) 14540 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14541 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14542 hardcode_libdir_separator_F77=: 14543 hardcode_direct_F77=no 14544 hardcode_shlibpath_var_F77=no 14545 ;; 14546 ia64*) 14547 hardcode_libdir_flag_spec_F77='-L$libdir' 14548 hardcode_direct_F77=no 14549 hardcode_shlibpath_var_F77=no 14550 14551 # hardcode_minus_L: Not really in the search PATH, 14552 # but as the default location of the library. 14553 hardcode_minus_L_F77=yes 14554 ;; 14555 *) 14556 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14557 hardcode_libdir_separator_F77=: 14558 hardcode_direct_F77=yes 14559 export_dynamic_flag_spec_F77='${wl}-E' 14560 14561 # hardcode_minus_L: Not really in the search PATH, 14562 # but as the default location of the library. 14563 hardcode_minus_L_F77=yes 14564 ;; 14565 esac 14566 fi 14567 ;; 14568 14569 irix5* | irix6* | nonstopux*) 14570 if test "$GCC" = yes; then 14571 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' 14572 else 14573 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' 14574 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14575 fi 14576 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14577 hardcode_libdir_separator_F77=: 14578 link_all_deplibs_F77=yes 14579 ;; 14580 14581 netbsd*) 14582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14583 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14584 else 14585 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14586 fi 14587 hardcode_libdir_flag_spec_F77='-R$libdir' 14588 hardcode_direct_F77=yes 14589 hardcode_shlibpath_var_F77=no 14590 ;; 14591 14592 newsos6) 14593 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14594 hardcode_direct_F77=yes 14595 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14596 hardcode_libdir_separator_F77=: 14597 hardcode_shlibpath_var_F77=no 14598 ;; 14599 14600 openbsd*) 14601 hardcode_direct_F77=yes 14602 hardcode_shlibpath_var_F77=no 14603 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14604 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14605 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14606 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14607 export_dynamic_flag_spec_F77='${wl}-E' 14608 else 14609 case $host_os in 14610 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14611 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14612 hardcode_libdir_flag_spec_F77='-R$libdir' 14613 ;; 14614 *) 14615 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14616 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14617 ;; 14618 esac 14619 fi 14620 ;; 14621 14622 os2*) 14623 hardcode_libdir_flag_spec_F77='-L$libdir' 14624 hardcode_minus_L_F77=yes 14625 allow_undefined_flag_F77=unsupported 14626 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' 14627 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14628 ;; 14629 14630 osf3*) 14631 if test "$GCC" = yes; then 14632 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14633 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' 14634 else 14635 allow_undefined_flag_F77=' -expect_unresolved \*' 14636 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' 14637 fi 14638 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14639 hardcode_libdir_separator_F77=: 14640 ;; 14641 14642 osf4* | osf5*) # as osf3* with the addition of -msym flag 14643 if test "$GCC" = yes; then 14644 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14645 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' 14646 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14647 else 14648 allow_undefined_flag_F77=' -expect_unresolved \*' 14649 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' 14650 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~ 14651 $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' 14652 14653 # Both c and cxx compiler support -rpath directly 14654 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14655 fi 14656 hardcode_libdir_separator_F77=: 14657 ;; 14658 14659 sco3.2v5*) 14660 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14661 hardcode_shlibpath_var_F77=no 14662 export_dynamic_flag_spec_F77='${wl}-Bexport' 14663 runpath_var=LD_RUN_PATH 14664 hardcode_runpath_var=yes 14665 ;; 14666 14667 solaris*) 14668 no_undefined_flag_F77=' -z text' 14669 if test "$GCC" = yes; then 14670 wlarc='${wl}' 14671 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14672 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14673 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14674 else 14675 wlarc='' 14676 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14677 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14678 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14679 fi 14680 hardcode_libdir_flag_spec_F77='-R$libdir' 14681 hardcode_shlibpath_var_F77=no 14682 case $host_os in 14683 solaris2.[0-5] | solaris2.[0-5].*) ;; 14684 *) 14685 # The compiler driver will combine linker options so we 14686 # cannot just pass the convience library names through 14687 # without $wl, iff we do not link with $LD. 14688 # Luckily, gcc supports the same syntax we need for Sun Studio. 14689 # Supported since Solaris 2.6 (maybe 2.5.1?) 14690 case $wlarc in 14691 '') 14692 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14693 *) 14694 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' ;; 14695 esac ;; 14696 esac 14697 link_all_deplibs_F77=yes 14698 ;; 14699 14700 sunos4*) 14701 if test "x$host_vendor" = xsequent; then 14702 # Use $CC to link under sequent, because it throws in some extra .o 14703 # files that make .init and .fini sections work. 14704 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14705 else 14706 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14707 fi 14708 hardcode_libdir_flag_spec_F77='-L$libdir' 14709 hardcode_direct_F77=yes 14710 hardcode_minus_L_F77=yes 14711 hardcode_shlibpath_var_F77=no 14712 ;; 14713 14714 sysv4) 14715 case $host_vendor in 14716 sni) 14717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14718 hardcode_direct_F77=yes # is this really true??? 14719 ;; 14720 siemens) 14721 ## LD is ld it makes a PLAMLIB 14722 ## CC just makes a GrossModule. 14723 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14724 reload_cmds_F77='$CC -r -o $output$reload_objs' 14725 hardcode_direct_F77=no 14726 ;; 14727 motorola) 14728 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14729 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14730 ;; 14731 esac 14732 runpath_var='LD_RUN_PATH' 14733 hardcode_shlibpath_var_F77=no 14734 ;; 14735 14736 sysv4.3*) 14737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14738 hardcode_shlibpath_var_F77=no 14739 export_dynamic_flag_spec_F77='-Bexport' 14740 ;; 14741 14742 sysv4*MP*) 14743 if test -d /usr/nec; then 14744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14745 hardcode_shlibpath_var_F77=no 14746 runpath_var=LD_RUN_PATH 14747 hardcode_runpath_var=yes 14748 ld_shlibs_F77=yes 14749 fi 14750 ;; 14751 14752 sysv4.2uw2*) 14753 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14754 hardcode_direct_F77=yes 14755 hardcode_minus_L_F77=no 14756 hardcode_shlibpath_var_F77=no 14757 hardcode_runpath_var=yes 14758 runpath_var=LD_RUN_PATH 14759 ;; 14760 14761 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14762 no_undefined_flag_F77='${wl}-z ${wl}text' 14763 if test "$GCC" = yes; then 14764 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14765 else 14766 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14767 fi 14768 runpath_var='LD_RUN_PATH' 14769 hardcode_shlibpath_var_F77=no 14770 ;; 14771 14772 sysv5*) 14773 no_undefined_flag_F77=' -z text' 14774 # $CC -shared without GNU ld will not create a library from C++ 14775 # object files and a static libstdc++, better avoid it by now 14776 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14777 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14779 hardcode_libdir_flag_spec_F77= 14780 hardcode_shlibpath_var_F77=no 14781 runpath_var='LD_RUN_PATH' 14782 ;; 14783 14784 uts4*) 14785 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14786 hardcode_libdir_flag_spec_F77='-L$libdir' 14787 hardcode_shlibpath_var_F77=no 14788 ;; 14789 14790 *) 14791 ld_shlibs_F77=no 14792 ;; 14793 esac 14794 fi 14795 14796echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14797echo "${ECHO_T}$ld_shlibs_F77" >&6 14798test "$ld_shlibs_F77" = no && can_build_shared=no 14799 14800variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14801if test "$GCC" = yes; then 14802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14803fi 14804 14805# 14806# Do we need to explicitly link libc? 14807# 14808case "x$archive_cmds_need_lc_F77" in 14809x|xyes) 14810 # Assume -lc should be added 14811 archive_cmds_need_lc_F77=yes 14812 14813 if test "$enable_shared" = yes && test "$GCC" = yes; then 14814 case $archive_cmds_F77 in 14815 *'~'*) 14816 # FIXME: we may have to deal with multi-command sequences. 14817 ;; 14818 '$CC '*) 14819 # Test whether the compiler implicitly links with -lc since on some 14820 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14821 # to ld, don't add -lc before -lgcc. 14822 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14823echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14824 $rm conftest* 14825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14826 14827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14828 (eval $ac_compile) 2>&5 14829 ac_status=$? 14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14831 (exit $ac_status); } 2>conftest.err; then 14832 soname=conftest 14833 lib=conftest 14834 libobjs=conftest.$ac_objext 14835 deplibs= 14836 wl=$lt_prog_compiler_wl_F77 14837 compiler_flags=-v 14838 linker_flags=-v 14839 verstring= 14840 output_objdir=. 14841 libname=conftest 14842 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14843 allow_undefined_flag_F77= 14844 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14845 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14846 ac_status=$? 14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14848 (exit $ac_status); } 14849 then 14850 archive_cmds_need_lc_F77=no 14851 else 14852 archive_cmds_need_lc_F77=yes 14853 fi 14854 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14855 else 14856 cat conftest.err 1>&5 14857 fi 14858 $rm conftest* 14859 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14860echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14861 ;; 14862 esac 14863 fi 14864 ;; 14865esac 14866 14867echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14868echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14869library_names_spec= 14870libname_spec='lib$name' 14871soname_spec= 14872shrext_cmds=".so" 14873postinstall_cmds= 14874postuninstall_cmds= 14875finish_cmds= 14876finish_eval= 14877shlibpath_var= 14878shlibpath_overrides_runpath=unknown 14879version_type=none 14880dynamic_linker="$host_os ld.so" 14881sys_lib_dlsearch_path_spec="/lib /usr/lib" 14882if test "$GCC" = yes; then 14883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14884 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14885 # if the path contains ";" then we assume it to be the separator 14886 # otherwise default to the standard path separator (i.e. ":") - it is 14887 # assumed that no part of a normal pathname contains ";" but that should 14888 # okay in the real world where ";" in dirpaths is itself problematic. 14889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14890 else 14891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14892 fi 14893else 14894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14895fi 14896need_lib_prefix=unknown 14897hardcode_into_libs=no 14898 14899# when you set need_version to no, make sure it does not cause -set_version 14900# flags to be left without arguments 14901need_version=unknown 14902 14903case $host_os in 14904aix3*) 14905 version_type=linux 14906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14907 shlibpath_var=LIBPATH 14908 14909 # AIX 3 has no versioning support, so we append a major version to the name. 14910 soname_spec='${libname}${release}${shared_ext}$major' 14911 ;; 14912 14913aix4* | aix5*) 14914 version_type=linux 14915 need_lib_prefix=no 14916 need_version=no 14917 hardcode_into_libs=yes 14918 if test "$host_cpu" = ia64; then 14919 # AIX 5 supports IA64 14920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14921 shlibpath_var=LD_LIBRARY_PATH 14922 else 14923 # With GCC up to 2.95.x, collect2 would create an import file 14924 # for dependence libraries. The import file would start with 14925 # the line `#! .'. This would cause the generated library to 14926 # depend on `.', always an invalid library. This was fixed in 14927 # development snapshots of GCC prior to 3.0. 14928 case $host_os in 14929 aix4 | aix4.[01] | aix4.[01].*) 14930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14931 echo ' yes ' 14932 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14933 : 14934 else 14935 can_build_shared=no 14936 fi 14937 ;; 14938 esac 14939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14940 # soname into executable. Probably we can add versioning support to 14941 # collect2, so additional links can be useful in future. 14942 if test "$aix_use_runtimelinking" = yes; then 14943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14944 # instead of lib<name>.a to let people know that these are not 14945 # typical AIX shared libraries. 14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14947 else 14948 # We preserve .a as extension for shared libraries through AIX4.2 14949 # and later when we are not doing run time linking. 14950 library_names_spec='${libname}${release}.a $libname.a' 14951 soname_spec='${libname}${release}${shared_ext}$major' 14952 fi 14953 shlibpath_var=LIBPATH 14954 fi 14955 ;; 14956 14957amigaos*) 14958 library_names_spec='$libname.ixlibrary $libname.a' 14959 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14960 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' 14961 ;; 14962 14963beos*) 14964 library_names_spec='${libname}${shared_ext}' 14965 dynamic_linker="$host_os ld.so" 14966 shlibpath_var=LIBRARY_PATH 14967 ;; 14968 14969bsdi[45]*) 14970 version_type=linux 14971 need_version=no 14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14973 soname_spec='${libname}${release}${shared_ext}$major' 14974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14975 shlibpath_var=LD_LIBRARY_PATH 14976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14978 # the default ld.so.conf also contains /usr/contrib/lib and 14979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14980 # libtool to hard-code these into programs 14981 ;; 14982 14983cygwin* | mingw* | pw32*) 14984 version_type=windows 14985 shrext_cmds=".dll" 14986 need_version=no 14987 need_lib_prefix=no 14988 14989 case $GCC,$host_os in 14990 yes,cygwin* | yes,mingw* | yes,pw32*) 14991 library_names_spec='$libname.dll.a' 14992 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14993 postinstall_cmds='base_file=`basename \${file}`~ 14994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14995 dldir=$destdir/`dirname \$dlpath`~ 14996 test -d \$dldir || mkdir -p \$dldir~ 14997 $install_prog $dir/$dlname \$dldir/$dlname' 14998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14999 dlpath=$dir/\$dldll~ 15000 $rm \$dlpath' 15001 shlibpath_overrides_runpath=yes 15002 15003 case $host_os in 15004 cygwin*) 15005 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15008 ;; 15009 mingw*) 15010 # MinGW DLLs use traditional 'lib' prefix 15011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15013 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15014 # It is most probably a Windows format PATH printed by 15015 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15016 # path with ; separators, and with drive letters. We can handle the 15017 # drive letters (cygwin fileutils understands them), so leave them, 15018 # especially as we might pass files found there to a mingw objdump, 15019 # which wouldn't understand a cygwinified path. Ahh. 15020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15021 else 15022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15023 fi 15024 ;; 15025 pw32*) 15026 # pw32 DLLs use 'pw' prefix rather than 'lib' 15027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15028 ;; 15029 esac 15030 ;; 15031 15032 *) 15033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15034 ;; 15035 esac 15036 dynamic_linker='Win32 ld.exe' 15037 # FIXME: first we should search . and the directory the executable is in 15038 shlibpath_var=PATH 15039 ;; 15040 15041darwin* | rhapsody*) 15042 dynamic_linker="$host_os dyld" 15043 version_type=darwin 15044 need_lib_prefix=no 15045 need_version=no 15046 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15047 soname_spec='${libname}${release}${major}$shared_ext' 15048 shlibpath_overrides_runpath=yes 15049 shlibpath_var=DYLD_LIBRARY_PATH 15050 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 15051 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15052 if test "$GCC" = yes; then 15053 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"` 15054 else 15055 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15056 fi 15057 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15058 ;; 15059 15060dgux*) 15061 version_type=linux 15062 need_lib_prefix=no 15063 need_version=no 15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15065 soname_spec='${libname}${release}${shared_ext}$major' 15066 shlibpath_var=LD_LIBRARY_PATH 15067 ;; 15068 15069freebsd1*) 15070 dynamic_linker=no 15071 ;; 15072 15073kfreebsd*-gnu) 15074 version_type=linux 15075 need_lib_prefix=no 15076 need_version=no 15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15078 soname_spec='${libname}${release}${shared_ext}$major' 15079 shlibpath_var=LD_LIBRARY_PATH 15080 shlibpath_overrides_runpath=no 15081 hardcode_into_libs=yes 15082 dynamic_linker='GNU ld.so' 15083 ;; 15084 15085freebsd* | dragonfly*) 15086 # DragonFly does not have aout. When/if they implement a new 15087 # versioning mechanism, adjust this. 15088 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 15089 version_type=freebsd-$objformat 15090 case $version_type in 15091 freebsd-elf*) 15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15093 need_version=no 15094 need_lib_prefix=no 15095 ;; 15096 freebsd-*) 15097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15098 need_version=yes 15099 ;; 15100 esac 15101 shlibpath_var=LD_LIBRARY_PATH 15102 case $host_os in 15103 freebsd2*) 15104 shlibpath_overrides_runpath=yes 15105 ;; 15106 freebsd3.[01]* | freebsdelf3.[01]*) 15107 shlibpath_overrides_runpath=yes 15108 hardcode_into_libs=yes 15109 ;; 15110 *) # from 3.2 on 15111 shlibpath_overrides_runpath=no 15112 hardcode_into_libs=yes 15113 ;; 15114 esac 15115 ;; 15116 15117gnu*) 15118 version_type=linux 15119 need_lib_prefix=no 15120 need_version=no 15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15122 soname_spec='${libname}${release}${shared_ext}$major' 15123 shlibpath_var=LD_LIBRARY_PATH 15124 hardcode_into_libs=yes 15125 ;; 15126 15127hpux9* | hpux10* | hpux11*) 15128 # Give a soname corresponding to the major version so that dld.sl refuses to 15129 # link against other versions. 15130 version_type=sunos 15131 need_lib_prefix=no 15132 need_version=no 15133 case "$host_cpu" in 15134 ia64*) 15135 shrext_cmds='.so' 15136 hardcode_into_libs=yes 15137 dynamic_linker="$host_os dld.so" 15138 shlibpath_var=LD_LIBRARY_PATH 15139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15141 soname_spec='${libname}${release}${shared_ext}$major' 15142 if test "X$HPUX_IA64_MODE" = X32; then 15143 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15144 else 15145 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15146 fi 15147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15148 ;; 15149 hppa*64*) 15150 shrext_cmds='.sl' 15151 hardcode_into_libs=yes 15152 dynamic_linker="$host_os dld.sl" 15153 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15156 soname_spec='${libname}${release}${shared_ext}$major' 15157 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15159 ;; 15160 *) 15161 shrext_cmds='.sl' 15162 dynamic_linker="$host_os dld.sl" 15163 shlibpath_var=SHLIB_PATH 15164 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15166 soname_spec='${libname}${release}${shared_ext}$major' 15167 ;; 15168 esac 15169 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15170 postinstall_cmds='chmod 555 $lib' 15171 ;; 15172 15173irix5* | irix6* | nonstopux*) 15174 case $host_os in 15175 nonstopux*) version_type=nonstopux ;; 15176 *) 15177 if test "$lt_cv_prog_gnu_ld" = yes; then 15178 version_type=linux 15179 else 15180 version_type=irix 15181 fi ;; 15182 esac 15183 need_lib_prefix=no 15184 need_version=no 15185 soname_spec='${libname}${release}${shared_ext}$major' 15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15187 case $host_os in 15188 irix5* | nonstopux*) 15189 libsuff= shlibsuff= 15190 ;; 15191 *) 15192 case $LD in # libtool.m4 will add one of these switches to LD 15193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15194 libsuff= shlibsuff= libmagic=32-bit;; 15195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15196 libsuff=32 shlibsuff=N32 libmagic=N32;; 15197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15198 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15199 *) libsuff= shlibsuff= libmagic=never-match;; 15200 esac 15201 ;; 15202 esac 15203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15204 shlibpath_overrides_runpath=no 15205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15207 hardcode_into_libs=yes 15208 ;; 15209 15210# No shared lib support for Linux oldld, aout, or coff. 15211linux*oldld* | linux*aout* | linux*coff*) 15212 dynamic_linker=no 15213 ;; 15214 15215# This must be Linux ELF. 15216linux*) 15217 version_type=linux 15218 need_lib_prefix=no 15219 need_version=no 15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15221 soname_spec='${libname}${release}${shared_ext}$major' 15222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15223 shlibpath_var=LD_LIBRARY_PATH 15224 shlibpath_overrides_runpath=no 15225 # This implies no fast_install, which is unacceptable. 15226 # Some rework will be needed to allow for fast_install 15227 # before this can be enabled. 15228 hardcode_into_libs=yes 15229 15230 # find out which ABI we are using 15231 libsuff= 15232 case "$host_cpu" in 15233 x86_64*|s390x*|powerpc64*) 15234 echo '#line 15234 "configure"' > conftest.$ac_ext 15235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15236 (eval $ac_compile) 2>&5 15237 ac_status=$? 15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15239 (exit $ac_status); }; then 15240 case `/usr/bin/file conftest.$ac_objext` in 15241 *64-bit*) 15242 libsuff=64 15243 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 15244 ;; 15245 esac 15246 fi 15247 rm -rf conftest* 15248 ;; 15249 esac 15250 15251 # Append ld.so.conf contents to the search path 15252 if test -f /etc/ld.so.conf; then 15253 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15254 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 15255 fi 15256 15257 # We used to test for /lib/ld.so.1 and disable shared libraries on 15258 # powerpc, because MkLinux only supported shared libraries with the 15259 # GNU dynamic linker. Since this was broken with cross compilers, 15260 # most powerpc-linux boxes support dynamic linking these days and 15261 # people can always --disable-shared, the test was removed, and we 15262 # assume the GNU/Linux dynamic linker is in use. 15263 dynamic_linker='GNU/Linux ld.so' 15264 ;; 15265 15266knetbsd*-gnu) 15267 version_type=linux 15268 need_lib_prefix=no 15269 need_version=no 15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15271 soname_spec='${libname}${release}${shared_ext}$major' 15272 shlibpath_var=LD_LIBRARY_PATH 15273 shlibpath_overrides_runpath=no 15274 hardcode_into_libs=yes 15275 dynamic_linker='GNU ld.so' 15276 ;; 15277 15278netbsd*) 15279 version_type=sunos 15280 need_lib_prefix=no 15281 need_version=no 15282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15285 dynamic_linker='NetBSD (a.out) ld.so' 15286 else 15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15288 soname_spec='${libname}${release}${shared_ext}$major' 15289 dynamic_linker='NetBSD ld.elf_so' 15290 fi 15291 shlibpath_var=LD_LIBRARY_PATH 15292 shlibpath_overrides_runpath=yes 15293 hardcode_into_libs=yes 15294 ;; 15295 15296newsos6) 15297 version_type=linux 15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15299 shlibpath_var=LD_LIBRARY_PATH 15300 shlibpath_overrides_runpath=yes 15301 ;; 15302 15303nto-qnx*) 15304 version_type=linux 15305 need_lib_prefix=no 15306 need_version=no 15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15308 soname_spec='${libname}${release}${shared_ext}$major' 15309 shlibpath_var=LD_LIBRARY_PATH 15310 shlibpath_overrides_runpath=yes 15311 ;; 15312 15313openbsd*) 15314 version_type=sunos 15315 need_lib_prefix=no 15316 need_version=no 15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15319 shlibpath_var=LD_LIBRARY_PATH 15320 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15321 case $host_os in 15322 openbsd2.[89] | openbsd2.[89].*) 15323 shlibpath_overrides_runpath=no 15324 ;; 15325 *) 15326 shlibpath_overrides_runpath=yes 15327 ;; 15328 esac 15329 else 15330 shlibpath_overrides_runpath=yes 15331 fi 15332 ;; 15333 15334os2*) 15335 libname_spec='$name' 15336 shrext_cmds=".dll" 15337 need_lib_prefix=no 15338 library_names_spec='$libname${shared_ext} $libname.a' 15339 dynamic_linker='OS/2 ld.exe' 15340 shlibpath_var=LIBPATH 15341 ;; 15342 15343osf3* | osf4* | osf5*) 15344 version_type=osf 15345 need_lib_prefix=no 15346 need_version=no 15347 soname_spec='${libname}${release}${shared_ext}$major' 15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15349 shlibpath_var=LD_LIBRARY_PATH 15350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15352 ;; 15353 15354sco3.2v5*) 15355 version_type=osf 15356 soname_spec='${libname}${release}${shared_ext}$major' 15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15358 shlibpath_var=LD_LIBRARY_PATH 15359 ;; 15360 15361solaris*) 15362 version_type=linux 15363 need_lib_prefix=no 15364 need_version=no 15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15366 soname_spec='${libname}${release}${shared_ext}$major' 15367 shlibpath_var=LD_LIBRARY_PATH 15368 shlibpath_overrides_runpath=yes 15369 hardcode_into_libs=yes 15370 # ldd complains unless libraries are executable 15371 postinstall_cmds='chmod +x $lib' 15372 ;; 15373 15374sunos4*) 15375 version_type=sunos 15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15377 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15378 shlibpath_var=LD_LIBRARY_PATH 15379 shlibpath_overrides_runpath=yes 15380 if test "$with_gnu_ld" = yes; then 15381 need_lib_prefix=no 15382 fi 15383 need_version=yes 15384 ;; 15385 15386sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15387 version_type=linux 15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15389 soname_spec='${libname}${release}${shared_ext}$major' 15390 shlibpath_var=LD_LIBRARY_PATH 15391 case $host_vendor in 15392 sni) 15393 shlibpath_overrides_runpath=no 15394 need_lib_prefix=no 15395 export_dynamic_flag_spec='${wl}-Blargedynsym' 15396 runpath_var=LD_RUN_PATH 15397 ;; 15398 siemens) 15399 need_lib_prefix=no 15400 ;; 15401 motorola) 15402 need_lib_prefix=no 15403 need_version=no 15404 shlibpath_overrides_runpath=no 15405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15406 ;; 15407 esac 15408 ;; 15409 15410sysv4*MP*) 15411 if test -d /usr/nec ;then 15412 version_type=linux 15413 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15414 soname_spec='$libname${shared_ext}.$major' 15415 shlibpath_var=LD_LIBRARY_PATH 15416 fi 15417 ;; 15418 15419uts4*) 15420 version_type=linux 15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15422 soname_spec='${libname}${release}${shared_ext}$major' 15423 shlibpath_var=LD_LIBRARY_PATH 15424 ;; 15425 15426*) 15427 dynamic_linker=no 15428 ;; 15429esac 15430echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15431echo "${ECHO_T}$dynamic_linker" >&6 15432test "$dynamic_linker" = no && can_build_shared=no 15433 15434echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15435echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15436hardcode_action_F77= 15437if test -n "$hardcode_libdir_flag_spec_F77" || \ 15438 test -n "$runpath_var_F77" || \ 15439 test "X$hardcode_automatic_F77" = "Xyes" ; then 15440 15441 # We can hardcode non-existant directories. 15442 if test "$hardcode_direct_F77" != no && 15443 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15444 # have to relink, otherwise we might link with an installed library 15445 # when we should be linking with a yet-to-be-installed one 15446 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15447 test "$hardcode_minus_L_F77" != no; then 15448 # Linking always hardcodes the temporary library directory. 15449 hardcode_action_F77=relink 15450 else 15451 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15452 hardcode_action_F77=immediate 15453 fi 15454else 15455 # We cannot hardcode anything, or else we can only hardcode existing 15456 # directories. 15457 hardcode_action_F77=unsupported 15458fi 15459echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15460echo "${ECHO_T}$hardcode_action_F77" >&6 15461 15462if test "$hardcode_action_F77" = relink; then 15463 # Fast installation is not supported 15464 enable_fast_install=no 15465elif test "$shlibpath_overrides_runpath" = yes || 15466 test "$enable_shared" = no; then 15467 # Fast installation is not necessary 15468 enable_fast_install=needless 15469fi 15470 15471striplib= 15472old_striplib= 15473echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15474echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15475if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15476 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15477 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15478 echo "$as_me:$LINENO: result: yes" >&5 15479echo "${ECHO_T}yes" >&6 15480else 15481# FIXME - insert some real tests, host_os isn't really good enough 15482 case $host_os in 15483 darwin*) 15484 if test -n "$STRIP" ; then 15485 striplib="$STRIP -x" 15486 echo "$as_me:$LINENO: result: yes" >&5 15487echo "${ECHO_T}yes" >&6 15488 else 15489 echo "$as_me:$LINENO: result: no" >&5 15490echo "${ECHO_T}no" >&6 15491fi 15492 ;; 15493 *) 15494 echo "$as_me:$LINENO: result: no" >&5 15495echo "${ECHO_T}no" >&6 15496 ;; 15497 esac 15498fi 15499 15500 15501 15502# The else clause should only fire when bootstrapping the 15503# libtool distribution, otherwise you forgot to ship ltmain.sh 15504# with your package, and you will get complaints that there are 15505# no rules to generate ltmain.sh. 15506if test -f "$ltmain"; then 15507 # See if we are running on zsh, and set the options which allow our commands through 15508 # without removal of \ escapes. 15509 if test -n "${ZSH_VERSION+set}" ; then 15510 setopt NO_GLOB_SUBST 15511 fi 15512 # Now quote all the things that may contain metacharacters while being 15513 # careful not to overquote the AC_SUBSTed values. We take copies of the 15514 # variables and quote the copies for generation of the libtool script. 15515 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15516 SED SHELL STRIP \ 15517 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15518 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15519 deplibs_check_method reload_flag reload_cmds need_locks \ 15520 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15521 lt_cv_sys_global_symbol_to_c_name_address \ 15522 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15523 old_postinstall_cmds old_postuninstall_cmds \ 15524 compiler_F77 \ 15525 CC_F77 \ 15526 LD_F77 \ 15527 lt_prog_compiler_wl_F77 \ 15528 lt_prog_compiler_pic_F77 \ 15529 lt_prog_compiler_static_F77 \ 15530 lt_prog_compiler_no_builtin_flag_F77 \ 15531 export_dynamic_flag_spec_F77 \ 15532 thread_safe_flag_spec_F77 \ 15533 whole_archive_flag_spec_F77 \ 15534 enable_shared_with_static_runtimes_F77 \ 15535 old_archive_cmds_F77 \ 15536 old_archive_from_new_cmds_F77 \ 15537 predep_objects_F77 \ 15538 postdep_objects_F77 \ 15539 predeps_F77 \ 15540 postdeps_F77 \ 15541 compiler_lib_search_path_F77 \ 15542 archive_cmds_F77 \ 15543 archive_expsym_cmds_F77 \ 15544 postinstall_cmds_F77 \ 15545 postuninstall_cmds_F77 \ 15546 old_archive_from_expsyms_cmds_F77 \ 15547 allow_undefined_flag_F77 \ 15548 no_undefined_flag_F77 \ 15549 export_symbols_cmds_F77 \ 15550 hardcode_libdir_flag_spec_F77 \ 15551 hardcode_libdir_flag_spec_ld_F77 \ 15552 hardcode_libdir_separator_F77 \ 15553 hardcode_automatic_F77 \ 15554 module_cmds_F77 \ 15555 module_expsym_cmds_F77 \ 15556 lt_cv_prog_compiler_c_o_F77 \ 15557 exclude_expsyms_F77 \ 15558 include_expsyms_F77; do 15559 15560 case $var in 15561 old_archive_cmds_F77 | \ 15562 old_archive_from_new_cmds_F77 | \ 15563 archive_cmds_F77 | \ 15564 archive_expsym_cmds_F77 | \ 15565 module_cmds_F77 | \ 15566 module_expsym_cmds_F77 | \ 15567 old_archive_from_expsyms_cmds_F77 | \ 15568 export_symbols_cmds_F77 | \ 15569 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15570 postinstall_cmds | postuninstall_cmds | \ 15571 old_postinstall_cmds | old_postuninstall_cmds | \ 15572 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15573 # Double-quote double-evaled strings. 15574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15575 ;; 15576 *) 15577 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15578 ;; 15579 esac 15580 done 15581 15582 case $lt_echo in 15583 *'\$0 --fallback-echo"') 15584 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15585 ;; 15586 esac 15587 15588cfgfile="$ofile" 15589 15590 cat <<__EOF__ >> "$cfgfile" 15591# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15592 15593# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15594 15595# Shell to use when invoking shell scripts. 15596SHELL=$lt_SHELL 15597 15598# Whether or not to build shared libraries. 15599build_libtool_libs=$enable_shared 15600 15601# Whether or not to build static libraries. 15602build_old_libs=$enable_static 15603 15604# Whether or not to add -lc for building shared libraries. 15605build_libtool_need_lc=$archive_cmds_need_lc_F77 15606 15607# Whether or not to disallow shared libs when runtime libs are static 15608allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15609 15610# Whether or not to optimize for fast installation. 15611fast_install=$enable_fast_install 15612 15613# The host system. 15614host_alias=$host_alias 15615host=$host 15616host_os=$host_os 15617 15618# The build system. 15619build_alias=$build_alias 15620build=$build 15621build_os=$build_os 15622 15623# An echo program that does not interpret backslashes. 15624echo=$lt_echo 15625 15626# The archiver. 15627AR=$lt_AR 15628AR_FLAGS=$lt_AR_FLAGS 15629 15630# A C compiler. 15631LTCC=$lt_LTCC 15632 15633# A language-specific compiler. 15634CC=$lt_compiler_F77 15635 15636# Is the compiler the GNU C compiler? 15637with_gcc=$GCC_F77 15638 15639# An ERE matcher. 15640EGREP=$lt_EGREP 15641 15642# The linker used to build libraries. 15643LD=$lt_LD_F77 15644 15645# Whether we need hard or soft links. 15646LN_S=$lt_LN_S 15647 15648# A BSD-compatible nm program. 15649NM=$lt_NM 15650 15651# A symbol stripping program 15652STRIP=$lt_STRIP 15653 15654# Used to examine libraries when file_magic_cmd begins "file" 15655MAGIC_CMD=$MAGIC_CMD 15656 15657# Used on cygwin: DLL creation program. 15658DLLTOOL="$DLLTOOL" 15659 15660# Used on cygwin: object dumper. 15661OBJDUMP="$OBJDUMP" 15662 15663# Used on cygwin: assembler. 15664AS="$AS" 15665 15666# The name of the directory that contains temporary libtool files. 15667objdir=$objdir 15668 15669# How to create reloadable object files. 15670reload_flag=$lt_reload_flag 15671reload_cmds=$lt_reload_cmds 15672 15673# How to pass a linker flag through the compiler. 15674wl=$lt_lt_prog_compiler_wl_F77 15675 15676# Object file suffix (normally "o"). 15677objext="$ac_objext" 15678 15679# Old archive suffix (normally "a"). 15680libext="$libext" 15681 15682# Shared library suffix (normally ".so"). 15683shrext_cmds='$shrext_cmds' 15684 15685# Executable file suffix (normally ""). 15686exeext="$exeext" 15687 15688# Additional compiler flags for building library objects. 15689pic_flag=$lt_lt_prog_compiler_pic_F77 15690pic_mode=$pic_mode 15691 15692# What is the maximum length of a command? 15693max_cmd_len=$lt_cv_sys_max_cmd_len 15694 15695# Does compiler simultaneously support -c and -o options? 15696compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15697 15698# Must we lock files when doing compilation? 15699need_locks=$lt_need_locks 15700 15701# Do we need the lib prefix for modules? 15702need_lib_prefix=$need_lib_prefix 15703 15704# Do we need a version for libraries? 15705need_version=$need_version 15706 15707# Whether dlopen is supported. 15708dlopen_support=$enable_dlopen 15709 15710# Whether dlopen of programs is supported. 15711dlopen_self=$enable_dlopen_self 15712 15713# Whether dlopen of statically linked programs is supported. 15714dlopen_self_static=$enable_dlopen_self_static 15715 15716# Compiler flag to prevent dynamic linking. 15717link_static_flag=$lt_lt_prog_compiler_static_F77 15718 15719# Compiler flag to turn off builtin functions. 15720no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15721 15722# Compiler flag to allow reflexive dlopens. 15723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15724 15725# Compiler flag to generate shared objects directly from archives. 15726whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15727 15728# Compiler flag to generate thread-safe objects. 15729thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15730 15731# Library versioning type. 15732version_type=$version_type 15733 15734# Format of library name prefix. 15735libname_spec=$lt_libname_spec 15736 15737# List of archive names. First name is the real one, the rest are links. 15738# The last name is the one that the linker finds with -lNAME. 15739library_names_spec=$lt_library_names_spec 15740 15741# The coded name of the library, if different from the real name. 15742soname_spec=$lt_soname_spec 15743 15744# Commands used to build and install an old-style archive. 15745RANLIB=$lt_RANLIB 15746old_archive_cmds=$lt_old_archive_cmds_F77 15747old_postinstall_cmds=$lt_old_postinstall_cmds 15748old_postuninstall_cmds=$lt_old_postuninstall_cmds 15749 15750# Create an old-style archive from a shared archive. 15751old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15752 15753# Create a temporary old-style archive to link instead of a shared archive. 15754old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15755 15756# Commands used to build and install a shared archive. 15757archive_cmds=$lt_archive_cmds_F77 15758archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15759postinstall_cmds=$lt_postinstall_cmds 15760postuninstall_cmds=$lt_postuninstall_cmds 15761 15762# Commands used to build a loadable module (assumed same as above if empty) 15763module_cmds=$lt_module_cmds_F77 15764module_expsym_cmds=$lt_module_expsym_cmds_F77 15765 15766# Commands to strip libraries. 15767old_striplib=$lt_old_striplib 15768striplib=$lt_striplib 15769 15770# Dependencies to place before the objects being linked to create a 15771# shared library. 15772predep_objects=$lt_predep_objects_F77 15773 15774# Dependencies to place after the objects being linked to create a 15775# shared library. 15776postdep_objects=$lt_postdep_objects_F77 15777 15778# Dependencies to place before the objects being linked to create a 15779# shared library. 15780predeps=$lt_predeps_F77 15781 15782# Dependencies to place after the objects being linked to create a 15783# shared library. 15784postdeps=$lt_postdeps_F77 15785 15786# The library search path used internally by the compiler when linking 15787# a shared library. 15788compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15789 15790# Method to check whether dependent libraries are shared objects. 15791deplibs_check_method=$lt_deplibs_check_method 15792 15793# Command to use when deplibs_check_method == file_magic. 15794file_magic_cmd=$lt_file_magic_cmd 15795 15796# Flag that allows shared libraries with undefined symbols to be built. 15797allow_undefined_flag=$lt_allow_undefined_flag_F77 15798 15799# Flag that forces no undefined symbols. 15800no_undefined_flag=$lt_no_undefined_flag_F77 15801 15802# Commands used to finish a libtool library installation in a directory. 15803finish_cmds=$lt_finish_cmds 15804 15805# Same as above, but a single script fragment to be evaled but not shown. 15806finish_eval=$lt_finish_eval 15807 15808# Take the output of nm and produce a listing of raw symbols and C names. 15809global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15810 15811# Transform the output of nm in a proper C declaration 15812global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15813 15814# Transform the output of nm in a C name address pair 15815global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15816 15817# This is the shared library runtime path variable. 15818runpath_var=$runpath_var 15819 15820# This is the shared library path variable. 15821shlibpath_var=$shlibpath_var 15822 15823# Is shlibpath searched before the hard-coded library search path? 15824shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15825 15826# How to hardcode a shared library path into an executable. 15827hardcode_action=$hardcode_action_F77 15828 15829# Whether we should hardcode library paths into libraries. 15830hardcode_into_libs=$hardcode_into_libs 15831 15832# Flag to hardcode \$libdir into a binary during linking. 15833# This must work even if \$libdir does not exist. 15834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15835 15836# If ld is used when linking, flag to hardcode \$libdir into 15837# a binary during linking. This must work even if \$libdir does 15838# not exist. 15839hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15840 15841# Whether we need a single -rpath flag with a separated argument. 15842hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15843 15844# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15845# resulting binary. 15846hardcode_direct=$hardcode_direct_F77 15847 15848# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15849# resulting binary. 15850hardcode_minus_L=$hardcode_minus_L_F77 15851 15852# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15853# the resulting binary. 15854hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15855 15856# Set to yes if building a shared library automatically hardcodes DIR into the library 15857# and all subsequent libraries and executables linked against it. 15858hardcode_automatic=$hardcode_automatic_F77 15859 15860# Variables whose values should be saved in libtool wrapper scripts and 15861# restored at relink time. 15862variables_saved_for_relink="$variables_saved_for_relink" 15863 15864# Whether libtool must link a program against all its dependency libraries. 15865link_all_deplibs=$link_all_deplibs_F77 15866 15867# Compile-time system search path for libraries 15868sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15869 15870# Run-time system search path for libraries 15871sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15872 15873# Fix the shell variable \$srcfile for the compiler. 15874fix_srcfile_path="$fix_srcfile_path_F77" 15875 15876# Set to yes if exported symbols are required. 15877always_export_symbols=$always_export_symbols_F77 15878 15879# The commands to list exported symbols. 15880export_symbols_cmds=$lt_export_symbols_cmds_F77 15881 15882# The commands to extract the exported symbol list from a shared archive. 15883extract_expsyms_cmds=$lt_extract_expsyms_cmds 15884 15885# Symbols that should not be listed in the preloaded symbols. 15886exclude_expsyms=$lt_exclude_expsyms_F77 15887 15888# Symbols that must always be exported. 15889include_expsyms=$lt_include_expsyms_F77 15890 15891# ### END LIBTOOL TAG CONFIG: $tagname 15892 15893__EOF__ 15894 15895 15896else 15897 # If there is no Makefile yet, we rely on a make rule to execute 15898 # `config.status --recheck' to rerun these tests and create the 15899 # libtool script then. 15900 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15901 if test -f "$ltmain_in"; then 15902 test -f Makefile && make "$ltmain" 15903 fi 15904fi 15905 15906 15907ac_ext=c 15908ac_cpp='$CPP $CPPFLAGS' 15909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15911ac_compiler_gnu=$ac_cv_c_compiler_gnu 15912 15913CC="$lt_save_CC" 15914 15915 else 15916 tagname="" 15917 fi 15918 ;; 15919 15920 GCJ) 15921 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15922 15923 15924 15925# Source file extension for Java test sources. 15926ac_ext=java 15927 15928# Object file extension for compiled Java test sources. 15929objext=o 15930objext_GCJ=$objext 15931 15932# Code to be used in simple compile tests 15933lt_simple_compile_test_code="class foo {}\n" 15934 15935# Code to be used in simple link tests 15936lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15937 15938# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15939 15940# If no C compiler was specified, use CC. 15941LTCC=${LTCC-"$CC"} 15942 15943# Allow CC to be a program name with arguments. 15944compiler=$CC 15945 15946 15947# save warnings/boilerplate of simple test code 15948ac_outfile=conftest.$ac_objext 15949printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15950eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15951_lt_compiler_boilerplate=`cat conftest.err` 15952$rm conftest* 15953 15954ac_outfile=conftest.$ac_objext 15955printf "$lt_simple_link_test_code" >conftest.$ac_ext 15956eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15957_lt_linker_boilerplate=`cat conftest.err` 15958$rm conftest* 15959 15960 15961# Allow CC to be a program name with arguments. 15962lt_save_CC="$CC" 15963CC=${GCJ-"gcj"} 15964compiler=$CC 15965compiler_GCJ=$CC 15966for cc_temp in $compiler""; do 15967 case $cc_temp in 15968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15970 \-*) ;; 15971 *) break;; 15972 esac 15973done 15974cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15975 15976 15977# GCJ did not exist at the time GCC didn't implicitly link libc in. 15978archive_cmds_need_lc_GCJ=no 15979 15980old_archive_cmds_GCJ=$old_archive_cmds 15981 15982 15983lt_prog_compiler_no_builtin_flag_GCJ= 15984 15985if test "$GCC" = yes; then 15986 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15987 15988 15989echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15990echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15991if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15992 echo $ECHO_N "(cached) $ECHO_C" >&6 15993else 15994 lt_cv_prog_compiler_rtti_exceptions=no 15995 ac_outfile=conftest.$ac_objext 15996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15997 lt_compiler_flag="-fno-rtti -fno-exceptions" 15998 # Insert the option either (1) after the last *FLAGS variable, or 15999 # (2) before a word containing "conftest.", or (3) at the end. 16000 # Note that $ac_compile itself does not contain backslashes and begins 16001 # with a dollar sign (not a hyphen), so the echo should work correctly. 16002 # The option is referenced via a variable to avoid confusing sed. 16003 lt_compile=`echo "$ac_compile" | $SED \ 16004 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16006 -e 's:$: $lt_compiler_flag:'` 16007 (eval echo "\"\$as_me:16007: $lt_compile\"" >&5) 16008 (eval "$lt_compile" 2>conftest.err) 16009 ac_status=$? 16010 cat conftest.err >&5 16011 echo "$as_me:16011: \$? = $ac_status" >&5 16012 if (exit $ac_status) && test -s "$ac_outfile"; then 16013 # The compiler can only warn and ignore the option if not recognized 16014 # So say no if there are warnings other than the usual output. 16015 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16016 $SED '/^$/d' conftest.err >conftest.er2 16017 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16018 lt_cv_prog_compiler_rtti_exceptions=yes 16019 fi 16020 fi 16021 $rm conftest* 16022 16023fi 16024echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16025echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16026 16027if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16028 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16029else 16030 : 16031fi 16032 16033fi 16034 16035lt_prog_compiler_wl_GCJ= 16036lt_prog_compiler_pic_GCJ= 16037lt_prog_compiler_static_GCJ= 16038 16039echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16040echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16041 16042 if test "$GCC" = yes; then 16043 lt_prog_compiler_wl_GCJ='-Wl,' 16044 lt_prog_compiler_static_GCJ='-static' 16045 16046 case $host_os in 16047 aix*) 16048 # All AIX code is PIC. 16049 if test "$host_cpu" = ia64; then 16050 # AIX 5 now supports IA64 processor 16051 lt_prog_compiler_static_GCJ='-Bstatic' 16052 fi 16053 ;; 16054 16055 amigaos*) 16056 # FIXME: we need at least 68020 code to build shared libraries, but 16057 # adding the `-m68020' flag to GCC prevents building anything better, 16058 # like `-m68040'. 16059 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16060 ;; 16061 16062 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16063 # PIC is the default for these OSes. 16064 ;; 16065 16066 mingw* | pw32* | os2*) 16067 # This hack is so that the source file can tell whether it is being 16068 # built for inclusion in a dll (and should export symbols for example). 16069 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16070 ;; 16071 16072 darwin* | rhapsody*) 16073 # PIC is the default on this platform 16074 # Common symbols not allowed in MH_DYLIB files 16075 lt_prog_compiler_pic_GCJ='-fno-common' 16076 ;; 16077 16078 msdosdjgpp*) 16079 # Just because we use GCC doesn't mean we suddenly get shared libraries 16080 # on systems that don't support them. 16081 lt_prog_compiler_can_build_shared_GCJ=no 16082 enable_shared=no 16083 ;; 16084 16085 sysv4*MP*) 16086 if test -d /usr/nec; then 16087 lt_prog_compiler_pic_GCJ=-Kconform_pic 16088 fi 16089 ;; 16090 16091 hpux*) 16092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16093 # not for PA HP-UX. 16094 case "$host_cpu" in 16095 hppa*64*|ia64*) 16096 # +Z the default 16097 ;; 16098 *) 16099 lt_prog_compiler_pic_GCJ='-fPIC' 16100 ;; 16101 esac 16102 ;; 16103 16104 *) 16105 lt_prog_compiler_pic_GCJ='-fPIC' 16106 ;; 16107 esac 16108 else 16109 # PORTME Check for flag to pass linker flags through the system compiler. 16110 case $host_os in 16111 aix*) 16112 lt_prog_compiler_wl_GCJ='-Wl,' 16113 if test "$host_cpu" = ia64; then 16114 # AIX 5 now supports IA64 processor 16115 lt_prog_compiler_static_GCJ='-Bstatic' 16116 else 16117 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16118 fi 16119 ;; 16120 darwin*) 16121 # PIC is the default on this platform 16122 # Common symbols not allowed in MH_DYLIB files 16123 case $cc_basename in 16124 xlc*) 16125 lt_prog_compiler_pic_GCJ='-qnocommon' 16126 lt_prog_compiler_wl_GCJ='-Wl,' 16127 ;; 16128 esac 16129 ;; 16130 16131 mingw* | pw32* | os2*) 16132 # This hack is so that the source file can tell whether it is being 16133 # built for inclusion in a dll (and should export symbols for example). 16134 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16135 ;; 16136 16137 hpux9* | hpux10* | hpux11*) 16138 lt_prog_compiler_wl_GCJ='-Wl,' 16139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16140 # not for PA HP-UX. 16141 case "$host_cpu" in 16142 hppa*64*|ia64*) 16143 # +Z the default 16144 ;; 16145 *) 16146 lt_prog_compiler_pic_GCJ='+Z' 16147 ;; 16148 esac 16149 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16150 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16151 ;; 16152 16153 irix5* | irix6* | nonstopux*) 16154 lt_prog_compiler_wl_GCJ='-Wl,' 16155 # PIC (with -KPIC) is the default. 16156 lt_prog_compiler_static_GCJ='-non_shared' 16157 ;; 16158 16159 newsos6) 16160 lt_prog_compiler_pic_GCJ='-KPIC' 16161 lt_prog_compiler_static_GCJ='-Bstatic' 16162 ;; 16163 16164 linux*) 16165 case $cc_basename in 16166 icc* | ecc*) 16167 lt_prog_compiler_wl_GCJ='-Wl,' 16168 lt_prog_compiler_pic_GCJ='-KPIC' 16169 lt_prog_compiler_static_GCJ='-static' 16170 ;; 16171 pgcc* | pgf77* | pgf90*) 16172 # Portland Group compilers (*not* the Pentium gcc compiler, 16173 # which looks to be a dead project) 16174 lt_prog_compiler_wl_GCJ='-Wl,' 16175 lt_prog_compiler_pic_GCJ='-fpic' 16176 lt_prog_compiler_static_GCJ='-static' 16177 ;; 16178 ccc*) 16179 lt_prog_compiler_wl_GCJ='-Wl,' 16180 # All Alpha code is PIC. 16181 lt_prog_compiler_static_GCJ='-non_shared' 16182 ;; 16183 esac 16184 ;; 16185 16186 osf3* | osf4* | osf5*) 16187 lt_prog_compiler_wl_GCJ='-Wl,' 16188 # All OSF/1 code is PIC. 16189 lt_prog_compiler_static_GCJ='-non_shared' 16190 ;; 16191 16192 sco3.2v5*) 16193 lt_prog_compiler_pic_GCJ='-Kpic' 16194 lt_prog_compiler_static_GCJ='-dn' 16195 ;; 16196 16197 solaris*) 16198 lt_prog_compiler_pic_GCJ='-KPIC' 16199 lt_prog_compiler_static_GCJ='-Bstatic' 16200 case $cc_basename in 16201 f77* | f90* | f95*) 16202 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16203 *) 16204 lt_prog_compiler_wl_GCJ='-Wl,';; 16205 esac 16206 ;; 16207 16208 sunos4*) 16209 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16210 lt_prog_compiler_pic_GCJ='-PIC' 16211 lt_prog_compiler_static_GCJ='-Bstatic' 16212 ;; 16213 16214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16215 lt_prog_compiler_wl_GCJ='-Wl,' 16216 lt_prog_compiler_pic_GCJ='-KPIC' 16217 lt_prog_compiler_static_GCJ='-Bstatic' 16218 ;; 16219 16220 sysv4*MP*) 16221 if test -d /usr/nec ;then 16222 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16223 lt_prog_compiler_static_GCJ='-Bstatic' 16224 fi 16225 ;; 16226 16227 unicos*) 16228 lt_prog_compiler_wl_GCJ='-Wl,' 16229 lt_prog_compiler_can_build_shared_GCJ=no 16230 ;; 16231 16232 uts4*) 16233 lt_prog_compiler_pic_GCJ='-pic' 16234 lt_prog_compiler_static_GCJ='-Bstatic' 16235 ;; 16236 16237 *) 16238 lt_prog_compiler_can_build_shared_GCJ=no 16239 ;; 16240 esac 16241 fi 16242 16243echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16244echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16245 16246# 16247# Check to make sure the PIC flag actually works. 16248# 16249if test -n "$lt_prog_compiler_pic_GCJ"; then 16250 16251echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16252echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16253if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16254 echo $ECHO_N "(cached) $ECHO_C" >&6 16255else 16256 lt_prog_compiler_pic_works_GCJ=no 16257 ac_outfile=conftest.$ac_objext 16258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16259 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16260 # Insert the option either (1) after the last *FLAGS variable, or 16261 # (2) before a word containing "conftest.", or (3) at the end. 16262 # Note that $ac_compile itself does not contain backslashes and begins 16263 # with a dollar sign (not a hyphen), so the echo should work correctly. 16264 # The option is referenced via a variable to avoid confusing sed. 16265 lt_compile=`echo "$ac_compile" | $SED \ 16266 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16268 -e 's:$: $lt_compiler_flag:'` 16269 (eval echo "\"\$as_me:16269: $lt_compile\"" >&5) 16270 (eval "$lt_compile" 2>conftest.err) 16271 ac_status=$? 16272 cat conftest.err >&5 16273 echo "$as_me:16273: \$? = $ac_status" >&5 16274 if (exit $ac_status) && test -s "$ac_outfile"; then 16275 # The compiler can only warn and ignore the option if not recognized 16276 # So say no if there are warnings other than the usual output. 16277 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16278 $SED '/^$/d' conftest.err >conftest.er2 16279 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16280 lt_prog_compiler_pic_works_GCJ=yes 16281 fi 16282 fi 16283 $rm conftest* 16284 16285fi 16286echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16287echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16288 16289if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16290 case $lt_prog_compiler_pic_GCJ in 16291 "" | " "*) ;; 16292 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16293 esac 16294else 16295 lt_prog_compiler_pic_GCJ= 16296 lt_prog_compiler_can_build_shared_GCJ=no 16297fi 16298 16299fi 16300case "$host_os" in 16301 # For platforms which do not support PIC, -DPIC is meaningless: 16302 *djgpp*) 16303 lt_prog_compiler_pic_GCJ= 16304 ;; 16305 *) 16306 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16307 ;; 16308esac 16309 16310echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16311echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16312if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16313 echo $ECHO_N "(cached) $ECHO_C" >&6 16314else 16315 lt_cv_prog_compiler_c_o_GCJ=no 16316 $rm -r conftest 2>/dev/null 16317 mkdir conftest 16318 cd conftest 16319 mkdir out 16320 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16321 16322 lt_compiler_flag="-o out/conftest2.$ac_objext" 16323 # Insert the option either (1) after the last *FLAGS variable, or 16324 # (2) before a word containing "conftest.", or (3) at the end. 16325 # Note that $ac_compile itself does not contain backslashes and begins 16326 # with a dollar sign (not a hyphen), so the echo should work correctly. 16327 lt_compile=`echo "$ac_compile" | $SED \ 16328 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16330 -e 's:$: $lt_compiler_flag:'` 16331 (eval echo "\"\$as_me:16331: $lt_compile\"" >&5) 16332 (eval "$lt_compile" 2>out/conftest.err) 16333 ac_status=$? 16334 cat out/conftest.err >&5 16335 echo "$as_me:16335: \$? = $ac_status" >&5 16336 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16337 then 16338 # The compiler can only warn and ignore the option if not recognized 16339 # So say no if there are warnings 16340 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16341 $SED '/^$/d' out/conftest.err >out/conftest.er2 16342 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16343 lt_cv_prog_compiler_c_o_GCJ=yes 16344 fi 16345 fi 16346 chmod u+w . 16347 $rm conftest* 16348 # SGI C++ compiler will create directory out/ii_files/ for 16349 # template instantiation 16350 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16351 $rm out/* && rmdir out 16352 cd .. 16353 rmdir conftest 16354 $rm conftest* 16355 16356fi 16357echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16358echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16359 16360 16361hard_links="nottested" 16362if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16363 # do not overwrite the value of need_locks provided by the user 16364 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16365echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16366 hard_links=yes 16367 $rm conftest* 16368 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16369 touch conftest.a 16370 ln conftest.a conftest.b 2>&5 || hard_links=no 16371 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16372 echo "$as_me:$LINENO: result: $hard_links" >&5 16373echo "${ECHO_T}$hard_links" >&6 16374 if test "$hard_links" = no; then 16375 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16376echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16377 need_locks=warn 16378 fi 16379else 16380 need_locks=no 16381fi 16382 16383echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16384echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16385 16386 runpath_var= 16387 allow_undefined_flag_GCJ= 16388 enable_shared_with_static_runtimes_GCJ=no 16389 archive_cmds_GCJ= 16390 archive_expsym_cmds_GCJ= 16391 old_archive_From_new_cmds_GCJ= 16392 old_archive_from_expsyms_cmds_GCJ= 16393 export_dynamic_flag_spec_GCJ= 16394 whole_archive_flag_spec_GCJ= 16395 thread_safe_flag_spec_GCJ= 16396 hardcode_libdir_flag_spec_GCJ= 16397 hardcode_libdir_flag_spec_ld_GCJ= 16398 hardcode_libdir_separator_GCJ= 16399 hardcode_direct_GCJ=no 16400 hardcode_minus_L_GCJ=no 16401 hardcode_shlibpath_var_GCJ=unsupported 16402 link_all_deplibs_GCJ=unknown 16403 hardcode_automatic_GCJ=no 16404 module_cmds_GCJ= 16405 module_expsym_cmds_GCJ= 16406 always_export_symbols_GCJ=no 16407 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16408 # include_expsyms should be a list of space-separated symbols to be *always* 16409 # included in the symbol list 16410 include_expsyms_GCJ= 16411 # exclude_expsyms can be an extended regexp of symbols to exclude 16412 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16413 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16414 # as well as any symbol that contains `d'. 16415 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16416 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16417 # platforms (ab)use it in PIC code, but their linkers get confused if 16418 # the symbol is explicitly referenced. Since portable code cannot 16419 # rely on this symbol name, it's probably fine to never include it in 16420 # preloaded symbol tables. 16421 extract_expsyms_cmds= 16422 # Just being paranoid about ensuring that cc_basename is set. 16423 for cc_temp in $compiler""; do 16424 case $cc_temp in 16425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16427 \-*) ;; 16428 *) break;; 16429 esac 16430done 16431cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16432 16433 case $host_os in 16434 cygwin* | mingw* | pw32*) 16435 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16436 # When not using gcc, we currently assume that we are using 16437 # Microsoft Visual C++. 16438 if test "$GCC" != yes; then 16439 with_gnu_ld=no 16440 fi 16441 ;; 16442 openbsd*) 16443 with_gnu_ld=no 16444 ;; 16445 esac 16446 16447 ld_shlibs_GCJ=yes 16448 if test "$with_gnu_ld" = yes; then 16449 # If archive_cmds runs LD, not CC, wlarc should be empty 16450 wlarc='${wl}' 16451 16452 # Set some defaults for GNU ld with shared library support. These 16453 # are reset later if shared libraries are not supported. Putting them 16454 # here allows them to be overridden if necessary. 16455 runpath_var=LD_RUN_PATH 16456 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16457 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16458 # ancient GNU ld didn't support --whole-archive et. al. 16459 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16460 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16461 else 16462 whole_archive_flag_spec_GCJ= 16463 fi 16464 supports_anon_versioning=no 16465 case `$LD -v 2>/dev/null` in 16466 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16467 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16468 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16469 *\ 2.11.*) ;; # other 2.11 versions 16470 *) supports_anon_versioning=yes ;; 16471 esac 16472 16473 # See if GNU ld supports shared libraries. 16474 case $host_os in 16475 aix3* | aix4* | aix5*) 16476 # On AIX/PPC, the GNU linker is very broken 16477 if test "$host_cpu" != ia64; then 16478 ld_shlibs_GCJ=no 16479 cat <<EOF 1>&2 16480 16481*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16482*** to be unable to reliably create shared libraries on AIX. 16483*** Therefore, libtool is disabling shared libraries support. If you 16484*** really care for shared libraries, you may want to modify your PATH 16485*** so that a non-GNU linker is found, and then restart. 16486 16487EOF 16488 fi 16489 ;; 16490 16491 amigaos*) 16492 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)' 16493 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16494 hardcode_minus_L_GCJ=yes 16495 16496 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16497 # that the semantics of dynamic libraries on AmigaOS, at least up 16498 # to version 4, is to share data among multiple programs linked 16499 # with the same dynamic library. Since this doesn't match the 16500 # behavior of shared libraries on other platforms, we can't use 16501 # them. 16502 ld_shlibs_GCJ=no 16503 ;; 16504 16505 beos*) 16506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16507 allow_undefined_flag_GCJ=unsupported 16508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16509 # support --undefined. This deserves some investigation. FIXME 16510 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16511 else 16512 ld_shlibs_GCJ=no 16513 fi 16514 ;; 16515 16516 cygwin* | mingw* | pw32*) 16517 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16518 # as there is no search path for DLLs. 16519 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16520 allow_undefined_flag_GCJ=unsupported 16521 always_export_symbols_GCJ=no 16522 enable_shared_with_static_runtimes_GCJ=yes 16523 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16524 16525 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16527 # If the export-symbols file already is a .def file (1st line 16528 # is EXPORTS), use it as is; otherwise, prepend... 16529 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16530 cp $export_symbols $output_objdir/$soname.def; 16531 else 16532 echo EXPORTS > $output_objdir/$soname.def; 16533 cat $export_symbols >> $output_objdir/$soname.def; 16534 fi~ 16535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16536 else 16537 ld_shlibs_GCJ=no 16538 fi 16539 ;; 16540 16541 linux*) 16542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16543 tmp_addflag= 16544 case $cc_basename,$host_cpu in 16545 pgcc*) # Portland Group C compiler 16546 whole_archive_flag_spec_GCJ= 16547 ;; 16548 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 16549 whole_archive_flag_spec_GCJ= 16550 tmp_addflag=' -fpic -Mnomain' ;; 16551 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16552 tmp_addflag=' -i_dynamic' ;; 16553 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16554 tmp_addflag=' -i_dynamic -nofor_main' ;; 16555 ifc* | ifort*) # Intel Fortran compiler 16556 tmp_addflag=' -nofor_main' ;; 16557 esac 16558 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16559 16560 if test $supports_anon_versioning = yes; then 16561 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16563 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16564 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16565 fi 16566 else 16567 ld_shlibs_GCJ=no 16568 fi 16569 ;; 16570 16571 netbsd*) 16572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16573 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16574 wlarc= 16575 else 16576 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16577 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16578 fi 16579 ;; 16580 16581 solaris* | sysv5*) 16582 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16583 ld_shlibs_GCJ=no 16584 cat <<EOF 1>&2 16585 16586*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16587*** create shared libraries on Solaris systems. Therefore, libtool 16588*** is disabling shared libraries support. We urge you to upgrade GNU 16589*** binutils to release 2.9.1 or newer. Another option is to modify 16590*** your PATH or compiler configuration so that the native linker is 16591*** used, and then restart. 16592 16593EOF 16594 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16595 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16596 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16597 else 16598 ld_shlibs_GCJ=no 16599 fi 16600 ;; 16601 16602 sunos4*) 16603 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16604 wlarc= 16605 hardcode_direct_GCJ=yes 16606 hardcode_shlibpath_var_GCJ=no 16607 ;; 16608 16609 *) 16610 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16611 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16612 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16613 else 16614 ld_shlibs_GCJ=no 16615 fi 16616 ;; 16617 esac 16618 16619 if test "$ld_shlibs_GCJ" = no; then 16620 runpath_var= 16621 hardcode_libdir_flag_spec_GCJ= 16622 export_dynamic_flag_spec_GCJ= 16623 whole_archive_flag_spec_GCJ= 16624 fi 16625 else 16626 # PORTME fill in a description of your system's linker (not GNU ld) 16627 case $host_os in 16628 aix3*) 16629 allow_undefined_flag_GCJ=unsupported 16630 always_export_symbols_GCJ=yes 16631 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' 16632 # Note: this linker hardcodes the directories in LIBPATH if there 16633 # are no directories specified by -L. 16634 hardcode_minus_L_GCJ=yes 16635 if test "$GCC" = yes && test -z "$link_static_flag"; then 16636 # Neither direct hardcoding nor static linking is supported with a 16637 # broken collect2. 16638 hardcode_direct_GCJ=unsupported 16639 fi 16640 ;; 16641 16642 aix4* | aix5*) 16643 if test "$host_cpu" = ia64; then 16644 # On IA64, the linker does run time linking by default, so we don't 16645 # have to do anything special. 16646 aix_use_runtimelinking=no 16647 exp_sym_flag='-Bexport' 16648 no_entry_flag="" 16649 else 16650 # If we're using GNU nm, then we don't want the "-C" option. 16651 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16652 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16653 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' 16654 else 16655 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' 16656 fi 16657 aix_use_runtimelinking=no 16658 16659 # Test if we are trying to use run time linking or normal 16660 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16661 # need to do runtime linking. 16662 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16663 for ld_flag in $LDFLAGS; do 16664 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16665 aix_use_runtimelinking=yes 16666 break 16667 fi 16668 done 16669 esac 16670 16671 exp_sym_flag='-bexport' 16672 no_entry_flag='-bnoentry' 16673 fi 16674 16675 # When large executables or shared objects are built, AIX ld can 16676 # have problems creating the table of contents. If linking a library 16677 # or program results in "error TOC overflow" add -mminimal-toc to 16678 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16679 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16680 16681 archive_cmds_GCJ='' 16682 hardcode_direct_GCJ=yes 16683 hardcode_libdir_separator_GCJ=':' 16684 link_all_deplibs_GCJ=yes 16685 16686 if test "$GCC" = yes; then 16687 case $host_os in aix4.[012]|aix4.[012].*) 16688 # We only want to do this on AIX 4.2 and lower, the check 16689 # below for broken collect2 doesn't work under 4.3+ 16690 collect2name=`${CC} -print-prog-name=collect2` 16691 if test -f "$collect2name" && \ 16692 strings "$collect2name" | grep resolve_lib_name >/dev/null 16693 then 16694 # We have reworked collect2 16695 hardcode_direct_GCJ=yes 16696 else 16697 # We have old collect2 16698 hardcode_direct_GCJ=unsupported 16699 # It fails to find uninstalled libraries when the uninstalled 16700 # path is not listed in the libpath. Setting hardcode_minus_L 16701 # to unsupported forces relinking 16702 hardcode_minus_L_GCJ=yes 16703 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16704 hardcode_libdir_separator_GCJ= 16705 fi 16706 esac 16707 shared_flag='-shared' 16708 if test "$aix_use_runtimelinking" = yes; then 16709 shared_flag="$shared_flag "'${wl}-G' 16710 fi 16711 else 16712 # not using gcc 16713 if test "$host_cpu" = ia64; then 16714 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16715 # chokes on -Wl,-G. The following line is correct: 16716 shared_flag='-G' 16717 else 16718 if test "$aix_use_runtimelinking" = yes; then 16719 shared_flag='${wl}-G' 16720 else 16721 shared_flag='${wl}-bM:SRE' 16722 fi 16723 fi 16724 fi 16725 16726 # It seems that -bexpall does not export symbols beginning with 16727 # underscore (_), so it is better to generate a list of symbols to export. 16728 always_export_symbols_GCJ=yes 16729 if test "$aix_use_runtimelinking" = yes; then 16730 # Warning - without using the other runtime loading flags (-brtl), 16731 # -berok will link without error, but may produce a broken library. 16732 allow_undefined_flag_GCJ='-berok' 16733 # Determine the default libpath from the value encoded in an empty executable. 16734 cat >conftest.$ac_ext <<_ACEOF 16735/* confdefs.h. */ 16736_ACEOF 16737cat confdefs.h >>conftest.$ac_ext 16738cat >>conftest.$ac_ext <<_ACEOF 16739/* end confdefs.h. */ 16740 16741int 16742main () 16743{ 16744 16745 ; 16746 return 0; 16747} 16748_ACEOF 16749rm -f conftest.$ac_objext conftest$ac_exeext 16750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16751 (eval $ac_link) 2>conftest.er1 16752 ac_status=$? 16753 grep -v '^ *+' conftest.er1 >conftest.err 16754 rm -f conftest.er1 16755 cat conftest.err >&5 16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16757 (exit $ac_status); } && 16758 { ac_try='test -z "$ac_c_werror_flag" 16759 || test ! -s conftest.err' 16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16761 (eval $ac_try) 2>&5 16762 ac_status=$? 16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16764 (exit $ac_status); }; } && 16765 { ac_try='test -s conftest$ac_exeext' 16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16767 (eval $ac_try) 2>&5 16768 ac_status=$? 16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16770 (exit $ac_status); }; }; then 16771 16772aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16773}'` 16774# Check for a 64-bit object if we didn't find anything. 16775if 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; } 16776}'`; fi 16777else 16778 echo "$as_me: failed program was:" >&5 16779sed 's/^/| /' conftest.$ac_ext >&5 16780 16781fi 16782rm -f conftest.err conftest.$ac_objext \ 16783 conftest$ac_exeext conftest.$ac_ext 16784if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16785 16786 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16787 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" 16788 else 16789 if test "$host_cpu" = ia64; then 16790 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16791 allow_undefined_flag_GCJ="-z nodefs" 16792 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" 16793 else 16794 # Determine the default libpath from the value encoded in an empty executable. 16795 cat >conftest.$ac_ext <<_ACEOF 16796/* confdefs.h. */ 16797_ACEOF 16798cat confdefs.h >>conftest.$ac_ext 16799cat >>conftest.$ac_ext <<_ACEOF 16800/* end confdefs.h. */ 16801 16802int 16803main () 16804{ 16805 16806 ; 16807 return 0; 16808} 16809_ACEOF 16810rm -f conftest.$ac_objext conftest$ac_exeext 16811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16812 (eval $ac_link) 2>conftest.er1 16813 ac_status=$? 16814 grep -v '^ *+' conftest.er1 >conftest.err 16815 rm -f conftest.er1 16816 cat conftest.err >&5 16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16818 (exit $ac_status); } && 16819 { ac_try='test -z "$ac_c_werror_flag" 16820 || test ! -s conftest.err' 16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16822 (eval $ac_try) 2>&5 16823 ac_status=$? 16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16825 (exit $ac_status); }; } && 16826 { ac_try='test -s conftest$ac_exeext' 16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16828 (eval $ac_try) 2>&5 16829 ac_status=$? 16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16831 (exit $ac_status); }; }; then 16832 16833aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16834}'` 16835# Check for a 64-bit object if we didn't find anything. 16836if 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; } 16837}'`; fi 16838else 16839 echo "$as_me: failed program was:" >&5 16840sed 's/^/| /' conftest.$ac_ext >&5 16841 16842fi 16843rm -f conftest.err conftest.$ac_objext \ 16844 conftest$ac_exeext conftest.$ac_ext 16845if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16846 16847 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16848 # Warning - without using the other run time loading flags, 16849 # -berok will link without error, but may produce a broken library. 16850 no_undefined_flag_GCJ=' ${wl}-bernotok' 16851 allow_undefined_flag_GCJ=' ${wl}-berok' 16852 # -bexpall does not export symbols beginning with underscore (_) 16853 always_export_symbols_GCJ=yes 16854 # Exported symbols can be pulled into shared objects from archives 16855 whole_archive_flag_spec_GCJ=' ' 16856 archive_cmds_need_lc_GCJ=yes 16857 # This is similar to how AIX traditionally builds it's shared libraries. 16858 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' 16859 fi 16860 fi 16861 ;; 16862 16863 amigaos*) 16864 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)' 16865 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16866 hardcode_minus_L_GCJ=yes 16867 # see comment about different semantics on the GNU ld section 16868 ld_shlibs_GCJ=no 16869 ;; 16870 16871 bsdi[45]*) 16872 export_dynamic_flag_spec_GCJ=-rdynamic 16873 ;; 16874 16875 cygwin* | mingw* | pw32*) 16876 # When not using gcc, we currently assume that we are using 16877 # Microsoft Visual C++. 16878 # hardcode_libdir_flag_spec is actually meaningless, as there is 16879 # no search path for DLLs. 16880 hardcode_libdir_flag_spec_GCJ=' ' 16881 allow_undefined_flag_GCJ=unsupported 16882 # Tell ltmain to make .lib files, not .a files. 16883 libext=lib 16884 # Tell ltmain to make .dll files, not .so files. 16885 shrext_cmds=".dll" 16886 # FIXME: Setting linknames here is a bad hack. 16887 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16888 # The linker will automatically build a .lib file if we build a DLL. 16889 old_archive_From_new_cmds_GCJ='true' 16890 # FIXME: Should let the user specify the lib program. 16891 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16892 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16893 enable_shared_with_static_runtimes_GCJ=yes 16894 ;; 16895 16896 darwin* | rhapsody*) 16897 case "$host_os" in 16898 rhapsody* | darwin1.[012]) 16899 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16900 ;; 16901 *) # Darwin 1.3 on 16902 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16903 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16904 else 16905 case ${MACOSX_DEPLOYMENT_TARGET} in 16906 10.[012]) 16907 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16908 ;; 16909 10.*) 16910 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16911 ;; 16912 esac 16913 fi 16914 ;; 16915 esac 16916 archive_cmds_need_lc_GCJ=no 16917 hardcode_direct_GCJ=no 16918 hardcode_automatic_GCJ=yes 16919 hardcode_shlibpath_var_GCJ=unsupported 16920 whole_archive_flag_spec_GCJ='' 16921 link_all_deplibs_GCJ=yes 16922 if test "$GCC" = yes ; then 16923 output_verbose_link_cmd='echo' 16924 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16925 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16926 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16927 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}' 16928 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}' 16929 else 16930 case $cc_basename in 16931 xlc*) 16932 output_verbose_link_cmd='echo' 16933 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16934 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16935 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16936 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}' 16937 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}' 16938 ;; 16939 *) 16940 ld_shlibs_GCJ=no 16941 ;; 16942 esac 16943 fi 16944 ;; 16945 16946 dgux*) 16947 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16948 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16949 hardcode_shlibpath_var_GCJ=no 16950 ;; 16951 16952 freebsd1*) 16953 ld_shlibs_GCJ=no 16954 ;; 16955 16956 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16957 # support. Future versions do this automatically, but an explicit c++rt0.o 16958 # does not break anything, and helps significantly (at the cost of a little 16959 # extra space). 16960 freebsd2.2*) 16961 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16962 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16963 hardcode_direct_GCJ=yes 16964 hardcode_shlibpath_var_GCJ=no 16965 ;; 16966 16967 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16968 freebsd2*) 16969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16970 hardcode_direct_GCJ=yes 16971 hardcode_minus_L_GCJ=yes 16972 hardcode_shlibpath_var_GCJ=no 16973 ;; 16974 16975 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16976 freebsd* | kfreebsd*-gnu | dragonfly*) 16977 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16978 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16979 hardcode_direct_GCJ=yes 16980 hardcode_shlibpath_var_GCJ=no 16981 ;; 16982 16983 hpux9*) 16984 if test "$GCC" = yes; then 16985 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' 16986 else 16987 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' 16988 fi 16989 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16990 hardcode_libdir_separator_GCJ=: 16991 hardcode_direct_GCJ=yes 16992 16993 # hardcode_minus_L: Not really in the search PATH, 16994 # but as the default location of the library. 16995 hardcode_minus_L_GCJ=yes 16996 export_dynamic_flag_spec_GCJ='${wl}-E' 16997 ;; 16998 16999 hpux10* | hpux11*) 17000 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17001 case "$host_cpu" in 17002 hppa*64*|ia64*) 17003 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17004 ;; 17005 *) 17006 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17007 ;; 17008 esac 17009 else 17010 case "$host_cpu" in 17011 hppa*64*|ia64*) 17012 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17013 ;; 17014 *) 17015 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17016 ;; 17017 esac 17018 fi 17019 if test "$with_gnu_ld" = no; then 17020 case "$host_cpu" in 17021 hppa*64*) 17022 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17023 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17024 hardcode_libdir_separator_GCJ=: 17025 hardcode_direct_GCJ=no 17026 hardcode_shlibpath_var_GCJ=no 17027 ;; 17028 ia64*) 17029 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17030 hardcode_direct_GCJ=no 17031 hardcode_shlibpath_var_GCJ=no 17032 17033 # hardcode_minus_L: Not really in the search PATH, 17034 # but as the default location of the library. 17035 hardcode_minus_L_GCJ=yes 17036 ;; 17037 *) 17038 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17039 hardcode_libdir_separator_GCJ=: 17040 hardcode_direct_GCJ=yes 17041 export_dynamic_flag_spec_GCJ='${wl}-E' 17042 17043 # hardcode_minus_L: Not really in the search PATH, 17044 # but as the default location of the library. 17045 hardcode_minus_L_GCJ=yes 17046 ;; 17047 esac 17048 fi 17049 ;; 17050 17051 irix5* | irix6* | nonstopux*) 17052 if test "$GCC" = yes; then 17053 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' 17054 else 17055 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' 17056 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17057 fi 17058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17059 hardcode_libdir_separator_GCJ=: 17060 link_all_deplibs_GCJ=yes 17061 ;; 17062 17063 netbsd*) 17064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17065 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17066 else 17067 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17068 fi 17069 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17070 hardcode_direct_GCJ=yes 17071 hardcode_shlibpath_var_GCJ=no 17072 ;; 17073 17074 newsos6) 17075 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17076 hardcode_direct_GCJ=yes 17077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17078 hardcode_libdir_separator_GCJ=: 17079 hardcode_shlibpath_var_GCJ=no 17080 ;; 17081 17082 openbsd*) 17083 hardcode_direct_GCJ=yes 17084 hardcode_shlibpath_var_GCJ=no 17085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17086 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17087 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17088 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17089 export_dynamic_flag_spec_GCJ='${wl}-E' 17090 else 17091 case $host_os in 17092 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17093 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17094 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17095 ;; 17096 *) 17097 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17098 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17099 ;; 17100 esac 17101 fi 17102 ;; 17103 17104 os2*) 17105 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17106 hardcode_minus_L_GCJ=yes 17107 allow_undefined_flag_GCJ=unsupported 17108 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' 17109 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17110 ;; 17111 17112 osf3*) 17113 if test "$GCC" = yes; then 17114 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17115 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' 17116 else 17117 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17118 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' 17119 fi 17120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17121 hardcode_libdir_separator_GCJ=: 17122 ;; 17123 17124 osf4* | osf5*) # as osf3* with the addition of -msym flag 17125 if test "$GCC" = yes; then 17126 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17127 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' 17128 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17129 else 17130 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17131 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' 17132 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~ 17133 $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' 17134 17135 # Both c and cxx compiler support -rpath directly 17136 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17137 fi 17138 hardcode_libdir_separator_GCJ=: 17139 ;; 17140 17141 sco3.2v5*) 17142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17143 hardcode_shlibpath_var_GCJ=no 17144 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17145 runpath_var=LD_RUN_PATH 17146 hardcode_runpath_var=yes 17147 ;; 17148 17149 solaris*) 17150 no_undefined_flag_GCJ=' -z text' 17151 if test "$GCC" = yes; then 17152 wlarc='${wl}' 17153 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17154 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17155 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17156 else 17157 wlarc='' 17158 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17159 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17160 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17161 fi 17162 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17163 hardcode_shlibpath_var_GCJ=no 17164 case $host_os in 17165 solaris2.[0-5] | solaris2.[0-5].*) ;; 17166 *) 17167 # The compiler driver will combine linker options so we 17168 # cannot just pass the convience library names through 17169 # without $wl, iff we do not link with $LD. 17170 # Luckily, gcc supports the same syntax we need for Sun Studio. 17171 # Supported since Solaris 2.6 (maybe 2.5.1?) 17172 case $wlarc in 17173 '') 17174 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17175 *) 17176 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' ;; 17177 esac ;; 17178 esac 17179 link_all_deplibs_GCJ=yes 17180 ;; 17181 17182 sunos4*) 17183 if test "x$host_vendor" = xsequent; then 17184 # Use $CC to link under sequent, because it throws in some extra .o 17185 # files that make .init and .fini sections work. 17186 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17187 else 17188 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17189 fi 17190 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17191 hardcode_direct_GCJ=yes 17192 hardcode_minus_L_GCJ=yes 17193 hardcode_shlibpath_var_GCJ=no 17194 ;; 17195 17196 sysv4) 17197 case $host_vendor in 17198 sni) 17199 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17200 hardcode_direct_GCJ=yes # is this really true??? 17201 ;; 17202 siemens) 17203 ## LD is ld it makes a PLAMLIB 17204 ## CC just makes a GrossModule. 17205 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17206 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17207 hardcode_direct_GCJ=no 17208 ;; 17209 motorola) 17210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17211 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17212 ;; 17213 esac 17214 runpath_var='LD_RUN_PATH' 17215 hardcode_shlibpath_var_GCJ=no 17216 ;; 17217 17218 sysv4.3*) 17219 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17220 hardcode_shlibpath_var_GCJ=no 17221 export_dynamic_flag_spec_GCJ='-Bexport' 17222 ;; 17223 17224 sysv4*MP*) 17225 if test -d /usr/nec; then 17226 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17227 hardcode_shlibpath_var_GCJ=no 17228 runpath_var=LD_RUN_PATH 17229 hardcode_runpath_var=yes 17230 ld_shlibs_GCJ=yes 17231 fi 17232 ;; 17233 17234 sysv4.2uw2*) 17235 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17236 hardcode_direct_GCJ=yes 17237 hardcode_minus_L_GCJ=no 17238 hardcode_shlibpath_var_GCJ=no 17239 hardcode_runpath_var=yes 17240 runpath_var=LD_RUN_PATH 17241 ;; 17242 17243 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17244 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17245 if test "$GCC" = yes; then 17246 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17247 else 17248 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17249 fi 17250 runpath_var='LD_RUN_PATH' 17251 hardcode_shlibpath_var_GCJ=no 17252 ;; 17253 17254 sysv5*) 17255 no_undefined_flag_GCJ=' -z text' 17256 # $CC -shared without GNU ld will not create a library from C++ 17257 # object files and a static libstdc++, better avoid it by now 17258 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17259 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17260 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17261 hardcode_libdir_flag_spec_GCJ= 17262 hardcode_shlibpath_var_GCJ=no 17263 runpath_var='LD_RUN_PATH' 17264 ;; 17265 17266 uts4*) 17267 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17268 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17269 hardcode_shlibpath_var_GCJ=no 17270 ;; 17271 17272 *) 17273 ld_shlibs_GCJ=no 17274 ;; 17275 esac 17276 fi 17277 17278echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17279echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17280test "$ld_shlibs_GCJ" = no && can_build_shared=no 17281 17282variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17283if test "$GCC" = yes; then 17284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17285fi 17286 17287# 17288# Do we need to explicitly link libc? 17289# 17290case "x$archive_cmds_need_lc_GCJ" in 17291x|xyes) 17292 # Assume -lc should be added 17293 archive_cmds_need_lc_GCJ=yes 17294 17295 if test "$enable_shared" = yes && test "$GCC" = yes; then 17296 case $archive_cmds_GCJ in 17297 *'~'*) 17298 # FIXME: we may have to deal with multi-command sequences. 17299 ;; 17300 '$CC '*) 17301 # Test whether the compiler implicitly links with -lc since on some 17302 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17303 # to ld, don't add -lc before -lgcc. 17304 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17305echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17306 $rm conftest* 17307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17308 17309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17310 (eval $ac_compile) 2>&5 17311 ac_status=$? 17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17313 (exit $ac_status); } 2>conftest.err; then 17314 soname=conftest 17315 lib=conftest 17316 libobjs=conftest.$ac_objext 17317 deplibs= 17318 wl=$lt_prog_compiler_wl_GCJ 17319 compiler_flags=-v 17320 linker_flags=-v 17321 verstring= 17322 output_objdir=. 17323 libname=conftest 17324 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17325 allow_undefined_flag_GCJ= 17326 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17327 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17328 ac_status=$? 17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17330 (exit $ac_status); } 17331 then 17332 archive_cmds_need_lc_GCJ=no 17333 else 17334 archive_cmds_need_lc_GCJ=yes 17335 fi 17336 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17337 else 17338 cat conftest.err 1>&5 17339 fi 17340 $rm conftest* 17341 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17342echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17343 ;; 17344 esac 17345 fi 17346 ;; 17347esac 17348 17349echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17350echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17351library_names_spec= 17352libname_spec='lib$name' 17353soname_spec= 17354shrext_cmds=".so" 17355postinstall_cmds= 17356postuninstall_cmds= 17357finish_cmds= 17358finish_eval= 17359shlibpath_var= 17360shlibpath_overrides_runpath=unknown 17361version_type=none 17362dynamic_linker="$host_os ld.so" 17363sys_lib_dlsearch_path_spec="/lib /usr/lib" 17364if test "$GCC" = yes; then 17365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17366 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17367 # if the path contains ";" then we assume it to be the separator 17368 # otherwise default to the standard path separator (i.e. ":") - it is 17369 # assumed that no part of a normal pathname contains ";" but that should 17370 # okay in the real world where ";" in dirpaths is itself problematic. 17371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17372 else 17373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17374 fi 17375else 17376 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17377fi 17378need_lib_prefix=unknown 17379hardcode_into_libs=no 17380 17381# when you set need_version to no, make sure it does not cause -set_version 17382# flags to be left without arguments 17383need_version=unknown 17384 17385case $host_os in 17386aix3*) 17387 version_type=linux 17388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17389 shlibpath_var=LIBPATH 17390 17391 # AIX 3 has no versioning support, so we append a major version to the name. 17392 soname_spec='${libname}${release}${shared_ext}$major' 17393 ;; 17394 17395aix4* | aix5*) 17396 version_type=linux 17397 need_lib_prefix=no 17398 need_version=no 17399 hardcode_into_libs=yes 17400 if test "$host_cpu" = ia64; then 17401 # AIX 5 supports IA64 17402 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17403 shlibpath_var=LD_LIBRARY_PATH 17404 else 17405 # With GCC up to 2.95.x, collect2 would create an import file 17406 # for dependence libraries. The import file would start with 17407 # the line `#! .'. This would cause the generated library to 17408 # depend on `.', always an invalid library. This was fixed in 17409 # development snapshots of GCC prior to 3.0. 17410 case $host_os in 17411 aix4 | aix4.[01] | aix4.[01].*) 17412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17413 echo ' yes ' 17414 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17415 : 17416 else 17417 can_build_shared=no 17418 fi 17419 ;; 17420 esac 17421 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17422 # soname into executable. Probably we can add versioning support to 17423 # collect2, so additional links can be useful in future. 17424 if test "$aix_use_runtimelinking" = yes; then 17425 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17426 # instead of lib<name>.a to let people know that these are not 17427 # typical AIX shared libraries. 17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17429 else 17430 # We preserve .a as extension for shared libraries through AIX4.2 17431 # and later when we are not doing run time linking. 17432 library_names_spec='${libname}${release}.a $libname.a' 17433 soname_spec='${libname}${release}${shared_ext}$major' 17434 fi 17435 shlibpath_var=LIBPATH 17436 fi 17437 ;; 17438 17439amigaos*) 17440 library_names_spec='$libname.ixlibrary $libname.a' 17441 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17442 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' 17443 ;; 17444 17445beos*) 17446 library_names_spec='${libname}${shared_ext}' 17447 dynamic_linker="$host_os ld.so" 17448 shlibpath_var=LIBRARY_PATH 17449 ;; 17450 17451bsdi[45]*) 17452 version_type=linux 17453 need_version=no 17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17455 soname_spec='${libname}${release}${shared_ext}$major' 17456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17457 shlibpath_var=LD_LIBRARY_PATH 17458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17460 # the default ld.so.conf also contains /usr/contrib/lib and 17461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17462 # libtool to hard-code these into programs 17463 ;; 17464 17465cygwin* | mingw* | pw32*) 17466 version_type=windows 17467 shrext_cmds=".dll" 17468 need_version=no 17469 need_lib_prefix=no 17470 17471 case $GCC,$host_os in 17472 yes,cygwin* | yes,mingw* | yes,pw32*) 17473 library_names_spec='$libname.dll.a' 17474 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17475 postinstall_cmds='base_file=`basename \${file}`~ 17476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17477 dldir=$destdir/`dirname \$dlpath`~ 17478 test -d \$dldir || mkdir -p \$dldir~ 17479 $install_prog $dir/$dlname \$dldir/$dlname' 17480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17481 dlpath=$dir/\$dldll~ 17482 $rm \$dlpath' 17483 shlibpath_overrides_runpath=yes 17484 17485 case $host_os in 17486 cygwin*) 17487 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17488 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17489 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17490 ;; 17491 mingw*) 17492 # MinGW DLLs use traditional 'lib' prefix 17493 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17494 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17495 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17496 # It is most probably a Windows format PATH printed by 17497 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17498 # path with ; separators, and with drive letters. We can handle the 17499 # drive letters (cygwin fileutils understands them), so leave them, 17500 # especially as we might pass files found there to a mingw objdump, 17501 # which wouldn't understand a cygwinified path. Ahh. 17502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17503 else 17504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17505 fi 17506 ;; 17507 pw32*) 17508 # pw32 DLLs use 'pw' prefix rather than 'lib' 17509 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17510 ;; 17511 esac 17512 ;; 17513 17514 *) 17515 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17516 ;; 17517 esac 17518 dynamic_linker='Win32 ld.exe' 17519 # FIXME: first we should search . and the directory the executable is in 17520 shlibpath_var=PATH 17521 ;; 17522 17523darwin* | rhapsody*) 17524 dynamic_linker="$host_os dyld" 17525 version_type=darwin 17526 need_lib_prefix=no 17527 need_version=no 17528 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17529 soname_spec='${libname}${release}${major}$shared_ext' 17530 shlibpath_overrides_runpath=yes 17531 shlibpath_var=DYLD_LIBRARY_PATH 17532 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 17533 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17534 if test "$GCC" = yes; then 17535 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"` 17536 else 17537 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17538 fi 17539 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17540 ;; 17541 17542dgux*) 17543 version_type=linux 17544 need_lib_prefix=no 17545 need_version=no 17546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17547 soname_spec='${libname}${release}${shared_ext}$major' 17548 shlibpath_var=LD_LIBRARY_PATH 17549 ;; 17550 17551freebsd1*) 17552 dynamic_linker=no 17553 ;; 17554 17555kfreebsd*-gnu) 17556 version_type=linux 17557 need_lib_prefix=no 17558 need_version=no 17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17560 soname_spec='${libname}${release}${shared_ext}$major' 17561 shlibpath_var=LD_LIBRARY_PATH 17562 shlibpath_overrides_runpath=no 17563 hardcode_into_libs=yes 17564 dynamic_linker='GNU ld.so' 17565 ;; 17566 17567freebsd* | dragonfly*) 17568 # DragonFly does not have aout. When/if they implement a new 17569 # versioning mechanism, adjust this. 17570 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17571 version_type=freebsd-$objformat 17572 case $version_type in 17573 freebsd-elf*) 17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17575 need_version=no 17576 need_lib_prefix=no 17577 ;; 17578 freebsd-*) 17579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17580 need_version=yes 17581 ;; 17582 esac 17583 shlibpath_var=LD_LIBRARY_PATH 17584 case $host_os in 17585 freebsd2*) 17586 shlibpath_overrides_runpath=yes 17587 ;; 17588 freebsd3.[01]* | freebsdelf3.[01]*) 17589 shlibpath_overrides_runpath=yes 17590 hardcode_into_libs=yes 17591 ;; 17592 *) # from 3.2 on 17593 shlibpath_overrides_runpath=no 17594 hardcode_into_libs=yes 17595 ;; 17596 esac 17597 ;; 17598 17599gnu*) 17600 version_type=linux 17601 need_lib_prefix=no 17602 need_version=no 17603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17604 soname_spec='${libname}${release}${shared_ext}$major' 17605 shlibpath_var=LD_LIBRARY_PATH 17606 hardcode_into_libs=yes 17607 ;; 17608 17609hpux9* | hpux10* | hpux11*) 17610 # Give a soname corresponding to the major version so that dld.sl refuses to 17611 # link against other versions. 17612 version_type=sunos 17613 need_lib_prefix=no 17614 need_version=no 17615 case "$host_cpu" in 17616 ia64*) 17617 shrext_cmds='.so' 17618 hardcode_into_libs=yes 17619 dynamic_linker="$host_os dld.so" 17620 shlibpath_var=LD_LIBRARY_PATH 17621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17623 soname_spec='${libname}${release}${shared_ext}$major' 17624 if test "X$HPUX_IA64_MODE" = X32; then 17625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17626 else 17627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17628 fi 17629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17630 ;; 17631 hppa*64*) 17632 shrext_cmds='.sl' 17633 hardcode_into_libs=yes 17634 dynamic_linker="$host_os dld.sl" 17635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17638 soname_spec='${libname}${release}${shared_ext}$major' 17639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17641 ;; 17642 *) 17643 shrext_cmds='.sl' 17644 dynamic_linker="$host_os dld.sl" 17645 shlibpath_var=SHLIB_PATH 17646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 17650 esac 17651 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17652 postinstall_cmds='chmod 555 $lib' 17653 ;; 17654 17655irix5* | irix6* | nonstopux*) 17656 case $host_os in 17657 nonstopux*) version_type=nonstopux ;; 17658 *) 17659 if test "$lt_cv_prog_gnu_ld" = yes; then 17660 version_type=linux 17661 else 17662 version_type=irix 17663 fi ;; 17664 esac 17665 need_lib_prefix=no 17666 need_version=no 17667 soname_spec='${libname}${release}${shared_ext}$major' 17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17669 case $host_os in 17670 irix5* | nonstopux*) 17671 libsuff= shlibsuff= 17672 ;; 17673 *) 17674 case $LD in # libtool.m4 will add one of these switches to LD 17675 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17676 libsuff= shlibsuff= libmagic=32-bit;; 17677 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17678 libsuff=32 shlibsuff=N32 libmagic=N32;; 17679 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17680 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17681 *) libsuff= shlibsuff= libmagic=never-match;; 17682 esac 17683 ;; 17684 esac 17685 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17686 shlibpath_overrides_runpath=no 17687 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17688 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17689 hardcode_into_libs=yes 17690 ;; 17691 17692# No shared lib support for Linux oldld, aout, or coff. 17693linux*oldld* | linux*aout* | linux*coff*) 17694 dynamic_linker=no 17695 ;; 17696 17697# This must be Linux ELF. 17698linux*) 17699 version_type=linux 17700 need_lib_prefix=no 17701 need_version=no 17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17703 soname_spec='${libname}${release}${shared_ext}$major' 17704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17705 shlibpath_var=LD_LIBRARY_PATH 17706 shlibpath_overrides_runpath=no 17707 # This implies no fast_install, which is unacceptable. 17708 # Some rework will be needed to allow for fast_install 17709 # before this can be enabled. 17710 hardcode_into_libs=yes 17711 17712 # find out which ABI we are using 17713 libsuff= 17714 case "$host_cpu" in 17715 x86_64*|s390x*|powerpc64*) 17716 echo '#line 17716 "configure"' > conftest.$ac_ext 17717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17718 (eval $ac_compile) 2>&5 17719 ac_status=$? 17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17721 (exit $ac_status); }; then 17722 case `/usr/bin/file conftest.$ac_objext` in 17723 *64-bit*) 17724 libsuff=64 17725 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17726 ;; 17727 esac 17728 fi 17729 rm -rf conftest* 17730 ;; 17731 esac 17732 17733 # Append ld.so.conf contents to the search path 17734 if test -f /etc/ld.so.conf; then 17735 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17736 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17737 fi 17738 17739 # We used to test for /lib/ld.so.1 and disable shared libraries on 17740 # powerpc, because MkLinux only supported shared libraries with the 17741 # GNU dynamic linker. Since this was broken with cross compilers, 17742 # most powerpc-linux boxes support dynamic linking these days and 17743 # people can always --disable-shared, the test was removed, and we 17744 # assume the GNU/Linux dynamic linker is in use. 17745 dynamic_linker='GNU/Linux ld.so' 17746 ;; 17747 17748knetbsd*-gnu) 17749 version_type=linux 17750 need_lib_prefix=no 17751 need_version=no 17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17753 soname_spec='${libname}${release}${shared_ext}$major' 17754 shlibpath_var=LD_LIBRARY_PATH 17755 shlibpath_overrides_runpath=no 17756 hardcode_into_libs=yes 17757 dynamic_linker='GNU ld.so' 17758 ;; 17759 17760netbsd*) 17761 version_type=sunos 17762 need_lib_prefix=no 17763 need_version=no 17764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17767 dynamic_linker='NetBSD (a.out) ld.so' 17768 else 17769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17770 soname_spec='${libname}${release}${shared_ext}$major' 17771 dynamic_linker='NetBSD ld.elf_so' 17772 fi 17773 shlibpath_var=LD_LIBRARY_PATH 17774 shlibpath_overrides_runpath=yes 17775 hardcode_into_libs=yes 17776 ;; 17777 17778newsos6) 17779 version_type=linux 17780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17781 shlibpath_var=LD_LIBRARY_PATH 17782 shlibpath_overrides_runpath=yes 17783 ;; 17784 17785nto-qnx*) 17786 version_type=linux 17787 need_lib_prefix=no 17788 need_version=no 17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17790 soname_spec='${libname}${release}${shared_ext}$major' 17791 shlibpath_var=LD_LIBRARY_PATH 17792 shlibpath_overrides_runpath=yes 17793 ;; 17794 17795openbsd*) 17796 version_type=sunos 17797 need_lib_prefix=no 17798 need_version=no 17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17801 shlibpath_var=LD_LIBRARY_PATH 17802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17803 case $host_os in 17804 openbsd2.[89] | openbsd2.[89].*) 17805 shlibpath_overrides_runpath=no 17806 ;; 17807 *) 17808 shlibpath_overrides_runpath=yes 17809 ;; 17810 esac 17811 else 17812 shlibpath_overrides_runpath=yes 17813 fi 17814 ;; 17815 17816os2*) 17817 libname_spec='$name' 17818 shrext_cmds=".dll" 17819 need_lib_prefix=no 17820 library_names_spec='$libname${shared_ext} $libname.a' 17821 dynamic_linker='OS/2 ld.exe' 17822 shlibpath_var=LIBPATH 17823 ;; 17824 17825osf3* | osf4* | osf5*) 17826 version_type=osf 17827 need_lib_prefix=no 17828 need_version=no 17829 soname_spec='${libname}${release}${shared_ext}$major' 17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17831 shlibpath_var=LD_LIBRARY_PATH 17832 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17833 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17834 ;; 17835 17836sco3.2v5*) 17837 version_type=osf 17838 soname_spec='${libname}${release}${shared_ext}$major' 17839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17840 shlibpath_var=LD_LIBRARY_PATH 17841 ;; 17842 17843solaris*) 17844 version_type=linux 17845 need_lib_prefix=no 17846 need_version=no 17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17848 soname_spec='${libname}${release}${shared_ext}$major' 17849 shlibpath_var=LD_LIBRARY_PATH 17850 shlibpath_overrides_runpath=yes 17851 hardcode_into_libs=yes 17852 # ldd complains unless libraries are executable 17853 postinstall_cmds='chmod +x $lib' 17854 ;; 17855 17856sunos4*) 17857 version_type=sunos 17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17860 shlibpath_var=LD_LIBRARY_PATH 17861 shlibpath_overrides_runpath=yes 17862 if test "$with_gnu_ld" = yes; then 17863 need_lib_prefix=no 17864 fi 17865 need_version=yes 17866 ;; 17867 17868sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17869 version_type=linux 17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17871 soname_spec='${libname}${release}${shared_ext}$major' 17872 shlibpath_var=LD_LIBRARY_PATH 17873 case $host_vendor in 17874 sni) 17875 shlibpath_overrides_runpath=no 17876 need_lib_prefix=no 17877 export_dynamic_flag_spec='${wl}-Blargedynsym' 17878 runpath_var=LD_RUN_PATH 17879 ;; 17880 siemens) 17881 need_lib_prefix=no 17882 ;; 17883 motorola) 17884 need_lib_prefix=no 17885 need_version=no 17886 shlibpath_overrides_runpath=no 17887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17888 ;; 17889 esac 17890 ;; 17891 17892sysv4*MP*) 17893 if test -d /usr/nec ;then 17894 version_type=linux 17895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17896 soname_spec='$libname${shared_ext}.$major' 17897 shlibpath_var=LD_LIBRARY_PATH 17898 fi 17899 ;; 17900 17901uts4*) 17902 version_type=linux 17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17904 soname_spec='${libname}${release}${shared_ext}$major' 17905 shlibpath_var=LD_LIBRARY_PATH 17906 ;; 17907 17908*) 17909 dynamic_linker=no 17910 ;; 17911esac 17912echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17913echo "${ECHO_T}$dynamic_linker" >&6 17914test "$dynamic_linker" = no && can_build_shared=no 17915 17916echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17917echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17918hardcode_action_GCJ= 17919if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17920 test -n "$runpath_var_GCJ" || \ 17921 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17922 17923 # We can hardcode non-existant directories. 17924 if test "$hardcode_direct_GCJ" != no && 17925 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17926 # have to relink, otherwise we might link with an installed library 17927 # when we should be linking with a yet-to-be-installed one 17928 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17929 test "$hardcode_minus_L_GCJ" != no; then 17930 # Linking always hardcodes the temporary library directory. 17931 hardcode_action_GCJ=relink 17932 else 17933 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17934 hardcode_action_GCJ=immediate 17935 fi 17936else 17937 # We cannot hardcode anything, or else we can only hardcode existing 17938 # directories. 17939 hardcode_action_GCJ=unsupported 17940fi 17941echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17942echo "${ECHO_T}$hardcode_action_GCJ" >&6 17943 17944if test "$hardcode_action_GCJ" = relink; then 17945 # Fast installation is not supported 17946 enable_fast_install=no 17947elif test "$shlibpath_overrides_runpath" = yes || 17948 test "$enable_shared" = no; then 17949 # Fast installation is not necessary 17950 enable_fast_install=needless 17951fi 17952 17953striplib= 17954old_striplib= 17955echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17956echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17957if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17958 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17959 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17960 echo "$as_me:$LINENO: result: yes" >&5 17961echo "${ECHO_T}yes" >&6 17962else 17963# FIXME - insert some real tests, host_os isn't really good enough 17964 case $host_os in 17965 darwin*) 17966 if test -n "$STRIP" ; then 17967 striplib="$STRIP -x" 17968 echo "$as_me:$LINENO: result: yes" >&5 17969echo "${ECHO_T}yes" >&6 17970 else 17971 echo "$as_me:$LINENO: result: no" >&5 17972echo "${ECHO_T}no" >&6 17973fi 17974 ;; 17975 *) 17976 echo "$as_me:$LINENO: result: no" >&5 17977echo "${ECHO_T}no" >&6 17978 ;; 17979 esac 17980fi 17981 17982if test "x$enable_dlopen" != xyes; then 17983 enable_dlopen=unknown 17984 enable_dlopen_self=unknown 17985 enable_dlopen_self_static=unknown 17986else 17987 lt_cv_dlopen=no 17988 lt_cv_dlopen_libs= 17989 17990 case $host_os in 17991 beos*) 17992 lt_cv_dlopen="load_add_on" 17993 lt_cv_dlopen_libs= 17994 lt_cv_dlopen_self=yes 17995 ;; 17996 17997 mingw* | pw32*) 17998 lt_cv_dlopen="LoadLibrary" 17999 lt_cv_dlopen_libs= 18000 ;; 18001 18002 cygwin*) 18003 lt_cv_dlopen="dlopen" 18004 lt_cv_dlopen_libs= 18005 ;; 18006 18007 darwin*) 18008 # if libdl is installed we need to link against it 18009 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18010echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18011if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18012 echo $ECHO_N "(cached) $ECHO_C" >&6 18013else 18014 ac_check_lib_save_LIBS=$LIBS 18015LIBS="-ldl $LIBS" 18016cat >conftest.$ac_ext <<_ACEOF 18017/* confdefs.h. */ 18018_ACEOF 18019cat confdefs.h >>conftest.$ac_ext 18020cat >>conftest.$ac_ext <<_ACEOF 18021/* end confdefs.h. */ 18022 18023/* Override any gcc2 internal prototype to avoid an error. */ 18024#ifdef __cplusplus 18025extern "C" 18026#endif 18027/* We use char because int might match the return type of a gcc2 18028 builtin and then its argument prototype would still apply. */ 18029char dlopen (); 18030int 18031main () 18032{ 18033dlopen (); 18034 ; 18035 return 0; 18036} 18037_ACEOF 18038rm -f conftest.$ac_objext conftest$ac_exeext 18039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18040 (eval $ac_link) 2>conftest.er1 18041 ac_status=$? 18042 grep -v '^ *+' conftest.er1 >conftest.err 18043 rm -f conftest.er1 18044 cat conftest.err >&5 18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18046 (exit $ac_status); } && 18047 { ac_try='test -z "$ac_c_werror_flag" 18048 || test ! -s conftest.err' 18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18050 (eval $ac_try) 2>&5 18051 ac_status=$? 18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18053 (exit $ac_status); }; } && 18054 { ac_try='test -s conftest$ac_exeext' 18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18056 (eval $ac_try) 2>&5 18057 ac_status=$? 18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18059 (exit $ac_status); }; }; then 18060 ac_cv_lib_dl_dlopen=yes 18061else 18062 echo "$as_me: failed program was:" >&5 18063sed 's/^/| /' conftest.$ac_ext >&5 18064 18065ac_cv_lib_dl_dlopen=no 18066fi 18067rm -f conftest.err conftest.$ac_objext \ 18068 conftest$ac_exeext conftest.$ac_ext 18069LIBS=$ac_check_lib_save_LIBS 18070fi 18071echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18072echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18073if test $ac_cv_lib_dl_dlopen = yes; then 18074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18075else 18076 18077 lt_cv_dlopen="dyld" 18078 lt_cv_dlopen_libs= 18079 lt_cv_dlopen_self=yes 18080 18081fi 18082 18083 ;; 18084 18085 *) 18086 echo "$as_me:$LINENO: checking for shl_load" >&5 18087echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18088if test "${ac_cv_func_shl_load+set}" = set; then 18089 echo $ECHO_N "(cached) $ECHO_C" >&6 18090else 18091 cat >conftest.$ac_ext <<_ACEOF 18092/* confdefs.h. */ 18093_ACEOF 18094cat confdefs.h >>conftest.$ac_ext 18095cat >>conftest.$ac_ext <<_ACEOF 18096/* end confdefs.h. */ 18097/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18098 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18099#define shl_load innocuous_shl_load 18100 18101/* System header to define __stub macros and hopefully few prototypes, 18102 which can conflict with char shl_load (); below. 18103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18104 <limits.h> exists even on freestanding compilers. */ 18105 18106#ifdef __STDC__ 18107# include <limits.h> 18108#else 18109# include <assert.h> 18110#endif 18111 18112#undef shl_load 18113 18114/* Override any gcc2 internal prototype to avoid an error. */ 18115#ifdef __cplusplus 18116extern "C" 18117{ 18118#endif 18119/* We use char because int might match the return type of a gcc2 18120 builtin and then its argument prototype would still apply. */ 18121char shl_load (); 18122/* The GNU C library defines this for functions which it implements 18123 to always fail with ENOSYS. Some functions are actually named 18124 something starting with __ and the normal name is an alias. */ 18125#if defined (__stub_shl_load) || defined (__stub___shl_load) 18126choke me 18127#else 18128char (*f) () = shl_load; 18129#endif 18130#ifdef __cplusplus 18131} 18132#endif 18133 18134int 18135main () 18136{ 18137return f != shl_load; 18138 ; 18139 return 0; 18140} 18141_ACEOF 18142rm -f conftest.$ac_objext conftest$ac_exeext 18143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18144 (eval $ac_link) 2>conftest.er1 18145 ac_status=$? 18146 grep -v '^ *+' conftest.er1 >conftest.err 18147 rm -f conftest.er1 18148 cat conftest.err >&5 18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18150 (exit $ac_status); } && 18151 { ac_try='test -z "$ac_c_werror_flag" 18152 || test ! -s conftest.err' 18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18154 (eval $ac_try) 2>&5 18155 ac_status=$? 18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18157 (exit $ac_status); }; } && 18158 { ac_try='test -s conftest$ac_exeext' 18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18160 (eval $ac_try) 2>&5 18161 ac_status=$? 18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18163 (exit $ac_status); }; }; then 18164 ac_cv_func_shl_load=yes 18165else 18166 echo "$as_me: failed program was:" >&5 18167sed 's/^/| /' conftest.$ac_ext >&5 18168 18169ac_cv_func_shl_load=no 18170fi 18171rm -f conftest.err conftest.$ac_objext \ 18172 conftest$ac_exeext conftest.$ac_ext 18173fi 18174echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18175echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18176if test $ac_cv_func_shl_load = yes; then 18177 lt_cv_dlopen="shl_load" 18178else 18179 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18180echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18181if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18182 echo $ECHO_N "(cached) $ECHO_C" >&6 18183else 18184 ac_check_lib_save_LIBS=$LIBS 18185LIBS="-ldld $LIBS" 18186cat >conftest.$ac_ext <<_ACEOF 18187/* confdefs.h. */ 18188_ACEOF 18189cat confdefs.h >>conftest.$ac_ext 18190cat >>conftest.$ac_ext <<_ACEOF 18191/* end confdefs.h. */ 18192 18193/* Override any gcc2 internal prototype to avoid an error. */ 18194#ifdef __cplusplus 18195extern "C" 18196#endif 18197/* We use char because int might match the return type of a gcc2 18198 builtin and then its argument prototype would still apply. */ 18199char shl_load (); 18200int 18201main () 18202{ 18203shl_load (); 18204 ; 18205 return 0; 18206} 18207_ACEOF 18208rm -f conftest.$ac_objext conftest$ac_exeext 18209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18210 (eval $ac_link) 2>conftest.er1 18211 ac_status=$? 18212 grep -v '^ *+' conftest.er1 >conftest.err 18213 rm -f conftest.er1 18214 cat conftest.err >&5 18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18216 (exit $ac_status); } && 18217 { ac_try='test -z "$ac_c_werror_flag" 18218 || test ! -s conftest.err' 18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18220 (eval $ac_try) 2>&5 18221 ac_status=$? 18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18223 (exit $ac_status); }; } && 18224 { ac_try='test -s conftest$ac_exeext' 18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18226 (eval $ac_try) 2>&5 18227 ac_status=$? 18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18229 (exit $ac_status); }; }; then 18230 ac_cv_lib_dld_shl_load=yes 18231else 18232 echo "$as_me: failed program was:" >&5 18233sed 's/^/| /' conftest.$ac_ext >&5 18234 18235ac_cv_lib_dld_shl_load=no 18236fi 18237rm -f conftest.err conftest.$ac_objext \ 18238 conftest$ac_exeext conftest.$ac_ext 18239LIBS=$ac_check_lib_save_LIBS 18240fi 18241echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18242echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18243if test $ac_cv_lib_dld_shl_load = yes; then 18244 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18245else 18246 echo "$as_me:$LINENO: checking for dlopen" >&5 18247echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18248if test "${ac_cv_func_dlopen+set}" = set; then 18249 echo $ECHO_N "(cached) $ECHO_C" >&6 18250else 18251 cat >conftest.$ac_ext <<_ACEOF 18252/* confdefs.h. */ 18253_ACEOF 18254cat confdefs.h >>conftest.$ac_ext 18255cat >>conftest.$ac_ext <<_ACEOF 18256/* end confdefs.h. */ 18257/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18258 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18259#define dlopen innocuous_dlopen 18260 18261/* System header to define __stub macros and hopefully few prototypes, 18262 which can conflict with char dlopen (); below. 18263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18264 <limits.h> exists even on freestanding compilers. */ 18265 18266#ifdef __STDC__ 18267# include <limits.h> 18268#else 18269# include <assert.h> 18270#endif 18271 18272#undef dlopen 18273 18274/* Override any gcc2 internal prototype to avoid an error. */ 18275#ifdef __cplusplus 18276extern "C" 18277{ 18278#endif 18279/* We use char because int might match the return type of a gcc2 18280 builtin and then its argument prototype would still apply. */ 18281char dlopen (); 18282/* The GNU C library defines this for functions which it implements 18283 to always fail with ENOSYS. Some functions are actually named 18284 something starting with __ and the normal name is an alias. */ 18285#if defined (__stub_dlopen) || defined (__stub___dlopen) 18286choke me 18287#else 18288char (*f) () = dlopen; 18289#endif 18290#ifdef __cplusplus 18291} 18292#endif 18293 18294int 18295main () 18296{ 18297return f != dlopen; 18298 ; 18299 return 0; 18300} 18301_ACEOF 18302rm -f conftest.$ac_objext conftest$ac_exeext 18303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18304 (eval $ac_link) 2>conftest.er1 18305 ac_status=$? 18306 grep -v '^ *+' conftest.er1 >conftest.err 18307 rm -f conftest.er1 18308 cat conftest.err >&5 18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18310 (exit $ac_status); } && 18311 { ac_try='test -z "$ac_c_werror_flag" 18312 || test ! -s conftest.err' 18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18314 (eval $ac_try) 2>&5 18315 ac_status=$? 18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18317 (exit $ac_status); }; } && 18318 { ac_try='test -s conftest$ac_exeext' 18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18320 (eval $ac_try) 2>&5 18321 ac_status=$? 18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18323 (exit $ac_status); }; }; then 18324 ac_cv_func_dlopen=yes 18325else 18326 echo "$as_me: failed program was:" >&5 18327sed 's/^/| /' conftest.$ac_ext >&5 18328 18329ac_cv_func_dlopen=no 18330fi 18331rm -f conftest.err conftest.$ac_objext \ 18332 conftest$ac_exeext conftest.$ac_ext 18333fi 18334echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18335echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18336if test $ac_cv_func_dlopen = yes; then 18337 lt_cv_dlopen="dlopen" 18338else 18339 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18340echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18341if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18342 echo $ECHO_N "(cached) $ECHO_C" >&6 18343else 18344 ac_check_lib_save_LIBS=$LIBS 18345LIBS="-ldl $LIBS" 18346cat >conftest.$ac_ext <<_ACEOF 18347/* confdefs.h. */ 18348_ACEOF 18349cat confdefs.h >>conftest.$ac_ext 18350cat >>conftest.$ac_ext <<_ACEOF 18351/* end confdefs.h. */ 18352 18353/* Override any gcc2 internal prototype to avoid an error. */ 18354#ifdef __cplusplus 18355extern "C" 18356#endif 18357/* We use char because int might match the return type of a gcc2 18358 builtin and then its argument prototype would still apply. */ 18359char dlopen (); 18360int 18361main () 18362{ 18363dlopen (); 18364 ; 18365 return 0; 18366} 18367_ACEOF 18368rm -f conftest.$ac_objext conftest$ac_exeext 18369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18370 (eval $ac_link) 2>conftest.er1 18371 ac_status=$? 18372 grep -v '^ *+' conftest.er1 >conftest.err 18373 rm -f conftest.er1 18374 cat conftest.err >&5 18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18376 (exit $ac_status); } && 18377 { ac_try='test -z "$ac_c_werror_flag" 18378 || test ! -s conftest.err' 18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18380 (eval $ac_try) 2>&5 18381 ac_status=$? 18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18383 (exit $ac_status); }; } && 18384 { ac_try='test -s conftest$ac_exeext' 18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18386 (eval $ac_try) 2>&5 18387 ac_status=$? 18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18389 (exit $ac_status); }; }; then 18390 ac_cv_lib_dl_dlopen=yes 18391else 18392 echo "$as_me: failed program was:" >&5 18393sed 's/^/| /' conftest.$ac_ext >&5 18394 18395ac_cv_lib_dl_dlopen=no 18396fi 18397rm -f conftest.err conftest.$ac_objext \ 18398 conftest$ac_exeext conftest.$ac_ext 18399LIBS=$ac_check_lib_save_LIBS 18400fi 18401echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18402echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18403if test $ac_cv_lib_dl_dlopen = yes; then 18404 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18405else 18406 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18407echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18408if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18409 echo $ECHO_N "(cached) $ECHO_C" >&6 18410else 18411 ac_check_lib_save_LIBS=$LIBS 18412LIBS="-lsvld $LIBS" 18413cat >conftest.$ac_ext <<_ACEOF 18414/* confdefs.h. */ 18415_ACEOF 18416cat confdefs.h >>conftest.$ac_ext 18417cat >>conftest.$ac_ext <<_ACEOF 18418/* end confdefs.h. */ 18419 18420/* Override any gcc2 internal prototype to avoid an error. */ 18421#ifdef __cplusplus 18422extern "C" 18423#endif 18424/* We use char because int might match the return type of a gcc2 18425 builtin and then its argument prototype would still apply. */ 18426char dlopen (); 18427int 18428main () 18429{ 18430dlopen (); 18431 ; 18432 return 0; 18433} 18434_ACEOF 18435rm -f conftest.$ac_objext conftest$ac_exeext 18436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18437 (eval $ac_link) 2>conftest.er1 18438 ac_status=$? 18439 grep -v '^ *+' conftest.er1 >conftest.err 18440 rm -f conftest.er1 18441 cat conftest.err >&5 18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18443 (exit $ac_status); } && 18444 { ac_try='test -z "$ac_c_werror_flag" 18445 || test ! -s conftest.err' 18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18447 (eval $ac_try) 2>&5 18448 ac_status=$? 18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18450 (exit $ac_status); }; } && 18451 { ac_try='test -s conftest$ac_exeext' 18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18453 (eval $ac_try) 2>&5 18454 ac_status=$? 18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18456 (exit $ac_status); }; }; then 18457 ac_cv_lib_svld_dlopen=yes 18458else 18459 echo "$as_me: failed program was:" >&5 18460sed 's/^/| /' conftest.$ac_ext >&5 18461 18462ac_cv_lib_svld_dlopen=no 18463fi 18464rm -f conftest.err conftest.$ac_objext \ 18465 conftest$ac_exeext conftest.$ac_ext 18466LIBS=$ac_check_lib_save_LIBS 18467fi 18468echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18469echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18470if test $ac_cv_lib_svld_dlopen = yes; then 18471 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18472else 18473 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18474echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18475if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18476 echo $ECHO_N "(cached) $ECHO_C" >&6 18477else 18478 ac_check_lib_save_LIBS=$LIBS 18479LIBS="-ldld $LIBS" 18480cat >conftest.$ac_ext <<_ACEOF 18481/* confdefs.h. */ 18482_ACEOF 18483cat confdefs.h >>conftest.$ac_ext 18484cat >>conftest.$ac_ext <<_ACEOF 18485/* end confdefs.h. */ 18486 18487/* Override any gcc2 internal prototype to avoid an error. */ 18488#ifdef __cplusplus 18489extern "C" 18490#endif 18491/* We use char because int might match the return type of a gcc2 18492 builtin and then its argument prototype would still apply. */ 18493char dld_link (); 18494int 18495main () 18496{ 18497dld_link (); 18498 ; 18499 return 0; 18500} 18501_ACEOF 18502rm -f conftest.$ac_objext conftest$ac_exeext 18503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18504 (eval $ac_link) 2>conftest.er1 18505 ac_status=$? 18506 grep -v '^ *+' conftest.er1 >conftest.err 18507 rm -f conftest.er1 18508 cat conftest.err >&5 18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18510 (exit $ac_status); } && 18511 { ac_try='test -z "$ac_c_werror_flag" 18512 || test ! -s conftest.err' 18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18514 (eval $ac_try) 2>&5 18515 ac_status=$? 18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18517 (exit $ac_status); }; } && 18518 { ac_try='test -s conftest$ac_exeext' 18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18520 (eval $ac_try) 2>&5 18521 ac_status=$? 18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18523 (exit $ac_status); }; }; then 18524 ac_cv_lib_dld_dld_link=yes 18525else 18526 echo "$as_me: failed program was:" >&5 18527sed 's/^/| /' conftest.$ac_ext >&5 18528 18529ac_cv_lib_dld_dld_link=no 18530fi 18531rm -f conftest.err conftest.$ac_objext \ 18532 conftest$ac_exeext conftest.$ac_ext 18533LIBS=$ac_check_lib_save_LIBS 18534fi 18535echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18536echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18537if test $ac_cv_lib_dld_dld_link = yes; then 18538 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18539fi 18540 18541 18542fi 18543 18544 18545fi 18546 18547 18548fi 18549 18550 18551fi 18552 18553 18554fi 18555 18556 ;; 18557 esac 18558 18559 if test "x$lt_cv_dlopen" != xno; then 18560 enable_dlopen=yes 18561 else 18562 enable_dlopen=no 18563 fi 18564 18565 case $lt_cv_dlopen in 18566 dlopen) 18567 save_CPPFLAGS="$CPPFLAGS" 18568 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18569 18570 save_LDFLAGS="$LDFLAGS" 18571 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18572 18573 save_LIBS="$LIBS" 18574 LIBS="$lt_cv_dlopen_libs $LIBS" 18575 18576 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18577echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18578if test "${lt_cv_dlopen_self+set}" = set; then 18579 echo $ECHO_N "(cached) $ECHO_C" >&6 18580else 18581 if test "$cross_compiling" = yes; then : 18582 lt_cv_dlopen_self=cross 18583else 18584 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18585 lt_status=$lt_dlunknown 18586 cat > conftest.$ac_ext <<EOF 18587#line 18587 "configure" 18588#include "confdefs.h" 18589 18590#if HAVE_DLFCN_H 18591#include <dlfcn.h> 18592#endif 18593 18594#include <stdio.h> 18595 18596#ifdef RTLD_GLOBAL 18597# define LT_DLGLOBAL RTLD_GLOBAL 18598#else 18599# ifdef DL_GLOBAL 18600# define LT_DLGLOBAL DL_GLOBAL 18601# else 18602# define LT_DLGLOBAL 0 18603# endif 18604#endif 18605 18606/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18607 find out it does not work in some platform. */ 18608#ifndef LT_DLLAZY_OR_NOW 18609# ifdef RTLD_LAZY 18610# define LT_DLLAZY_OR_NOW RTLD_LAZY 18611# else 18612# ifdef DL_LAZY 18613# define LT_DLLAZY_OR_NOW DL_LAZY 18614# else 18615# ifdef RTLD_NOW 18616# define LT_DLLAZY_OR_NOW RTLD_NOW 18617# else 18618# ifdef DL_NOW 18619# define LT_DLLAZY_OR_NOW DL_NOW 18620# else 18621# define LT_DLLAZY_OR_NOW 0 18622# endif 18623# endif 18624# endif 18625# endif 18626#endif 18627 18628#ifdef __cplusplus 18629extern "C" void exit (int); 18630#endif 18631 18632void fnord() { int i=42;} 18633int main () 18634{ 18635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18636 int status = $lt_dlunknown; 18637 18638 if (self) 18639 { 18640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18641 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18642 /* dlclose (self); */ 18643 } 18644 18645 exit (status); 18646} 18647EOF 18648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18649 (eval $ac_link) 2>&5 18650 ac_status=$? 18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18652 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18653 (./conftest; exit; ) 2>/dev/null 18654 lt_status=$? 18655 case x$lt_status in 18656 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18657 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18658 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18659 esac 18660 else : 18661 # compilation failed 18662 lt_cv_dlopen_self=no 18663 fi 18664fi 18665rm -fr conftest* 18666 18667 18668fi 18669echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18670echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18671 18672 if test "x$lt_cv_dlopen_self" = xyes; then 18673 LDFLAGS="$LDFLAGS $link_static_flag" 18674 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18675echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18676if test "${lt_cv_dlopen_self_static+set}" = set; then 18677 echo $ECHO_N "(cached) $ECHO_C" >&6 18678else 18679 if test "$cross_compiling" = yes; then : 18680 lt_cv_dlopen_self_static=cross 18681else 18682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18683 lt_status=$lt_dlunknown 18684 cat > conftest.$ac_ext <<EOF 18685#line 18685 "configure" 18686#include "confdefs.h" 18687 18688#if HAVE_DLFCN_H 18689#include <dlfcn.h> 18690#endif 18691 18692#include <stdio.h> 18693 18694#ifdef RTLD_GLOBAL 18695# define LT_DLGLOBAL RTLD_GLOBAL 18696#else 18697# ifdef DL_GLOBAL 18698# define LT_DLGLOBAL DL_GLOBAL 18699# else 18700# define LT_DLGLOBAL 0 18701# endif 18702#endif 18703 18704/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18705 find out it does not work in some platform. */ 18706#ifndef LT_DLLAZY_OR_NOW 18707# ifdef RTLD_LAZY 18708# define LT_DLLAZY_OR_NOW RTLD_LAZY 18709# else 18710# ifdef DL_LAZY 18711# define LT_DLLAZY_OR_NOW DL_LAZY 18712# else 18713# ifdef RTLD_NOW 18714# define LT_DLLAZY_OR_NOW RTLD_NOW 18715# else 18716# ifdef DL_NOW 18717# define LT_DLLAZY_OR_NOW DL_NOW 18718# else 18719# define LT_DLLAZY_OR_NOW 0 18720# endif 18721# endif 18722# endif 18723# endif 18724#endif 18725 18726#ifdef __cplusplus 18727extern "C" void exit (int); 18728#endif 18729 18730void fnord() { int i=42;} 18731int main () 18732{ 18733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18734 int status = $lt_dlunknown; 18735 18736 if (self) 18737 { 18738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18739 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18740 /* dlclose (self); */ 18741 } 18742 18743 exit (status); 18744} 18745EOF 18746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18747 (eval $ac_link) 2>&5 18748 ac_status=$? 18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18750 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18751 (./conftest; exit; ) 2>/dev/null 18752 lt_status=$? 18753 case x$lt_status in 18754 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18755 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18756 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18757 esac 18758 else : 18759 # compilation failed 18760 lt_cv_dlopen_self_static=no 18761 fi 18762fi 18763rm -fr conftest* 18764 18765 18766fi 18767echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18768echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18769 fi 18770 18771 CPPFLAGS="$save_CPPFLAGS" 18772 LDFLAGS="$save_LDFLAGS" 18773 LIBS="$save_LIBS" 18774 ;; 18775 esac 18776 18777 case $lt_cv_dlopen_self in 18778 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18779 *) enable_dlopen_self=unknown ;; 18780 esac 18781 18782 case $lt_cv_dlopen_self_static in 18783 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18784 *) enable_dlopen_self_static=unknown ;; 18785 esac 18786fi 18787 18788 18789# The else clause should only fire when bootstrapping the 18790# libtool distribution, otherwise you forgot to ship ltmain.sh 18791# with your package, and you will get complaints that there are 18792# no rules to generate ltmain.sh. 18793if test -f "$ltmain"; then 18794 # See if we are running on zsh, and set the options which allow our commands through 18795 # without removal of \ escapes. 18796 if test -n "${ZSH_VERSION+set}" ; then 18797 setopt NO_GLOB_SUBST 18798 fi 18799 # Now quote all the things that may contain metacharacters while being 18800 # careful not to overquote the AC_SUBSTed values. We take copies of the 18801 # variables and quote the copies for generation of the libtool script. 18802 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18803 SED SHELL STRIP \ 18804 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18805 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18806 deplibs_check_method reload_flag reload_cmds need_locks \ 18807 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18808 lt_cv_sys_global_symbol_to_c_name_address \ 18809 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18810 old_postinstall_cmds old_postuninstall_cmds \ 18811 compiler_GCJ \ 18812 CC_GCJ \ 18813 LD_GCJ \ 18814 lt_prog_compiler_wl_GCJ \ 18815 lt_prog_compiler_pic_GCJ \ 18816 lt_prog_compiler_static_GCJ \ 18817 lt_prog_compiler_no_builtin_flag_GCJ \ 18818 export_dynamic_flag_spec_GCJ \ 18819 thread_safe_flag_spec_GCJ \ 18820 whole_archive_flag_spec_GCJ \ 18821 enable_shared_with_static_runtimes_GCJ \ 18822 old_archive_cmds_GCJ \ 18823 old_archive_from_new_cmds_GCJ \ 18824 predep_objects_GCJ \ 18825 postdep_objects_GCJ \ 18826 predeps_GCJ \ 18827 postdeps_GCJ \ 18828 compiler_lib_search_path_GCJ \ 18829 archive_cmds_GCJ \ 18830 archive_expsym_cmds_GCJ \ 18831 postinstall_cmds_GCJ \ 18832 postuninstall_cmds_GCJ \ 18833 old_archive_from_expsyms_cmds_GCJ \ 18834 allow_undefined_flag_GCJ \ 18835 no_undefined_flag_GCJ \ 18836 export_symbols_cmds_GCJ \ 18837 hardcode_libdir_flag_spec_GCJ \ 18838 hardcode_libdir_flag_spec_ld_GCJ \ 18839 hardcode_libdir_separator_GCJ \ 18840 hardcode_automatic_GCJ \ 18841 module_cmds_GCJ \ 18842 module_expsym_cmds_GCJ \ 18843 lt_cv_prog_compiler_c_o_GCJ \ 18844 exclude_expsyms_GCJ \ 18845 include_expsyms_GCJ; do 18846 18847 case $var in 18848 old_archive_cmds_GCJ | \ 18849 old_archive_from_new_cmds_GCJ | \ 18850 archive_cmds_GCJ | \ 18851 archive_expsym_cmds_GCJ | \ 18852 module_cmds_GCJ | \ 18853 module_expsym_cmds_GCJ | \ 18854 old_archive_from_expsyms_cmds_GCJ | \ 18855 export_symbols_cmds_GCJ | \ 18856 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18857 postinstall_cmds | postuninstall_cmds | \ 18858 old_postinstall_cmds | old_postuninstall_cmds | \ 18859 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18860 # Double-quote double-evaled strings. 18861 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18862 ;; 18863 *) 18864 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18865 ;; 18866 esac 18867 done 18868 18869 case $lt_echo in 18870 *'\$0 --fallback-echo"') 18871 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18872 ;; 18873 esac 18874 18875cfgfile="$ofile" 18876 18877 cat <<__EOF__ >> "$cfgfile" 18878# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18879 18880# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18881 18882# Shell to use when invoking shell scripts. 18883SHELL=$lt_SHELL 18884 18885# Whether or not to build shared libraries. 18886build_libtool_libs=$enable_shared 18887 18888# Whether or not to build static libraries. 18889build_old_libs=$enable_static 18890 18891# Whether or not to add -lc for building shared libraries. 18892build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18893 18894# Whether or not to disallow shared libs when runtime libs are static 18895allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18896 18897# Whether or not to optimize for fast installation. 18898fast_install=$enable_fast_install 18899 18900# The host system. 18901host_alias=$host_alias 18902host=$host 18903host_os=$host_os 18904 18905# The build system. 18906build_alias=$build_alias 18907build=$build 18908build_os=$build_os 18909 18910# An echo program that does not interpret backslashes. 18911echo=$lt_echo 18912 18913# The archiver. 18914AR=$lt_AR 18915AR_FLAGS=$lt_AR_FLAGS 18916 18917# A C compiler. 18918LTCC=$lt_LTCC 18919 18920# A language-specific compiler. 18921CC=$lt_compiler_GCJ 18922 18923# Is the compiler the GNU C compiler? 18924with_gcc=$GCC_GCJ 18925 18926# An ERE matcher. 18927EGREP=$lt_EGREP 18928 18929# The linker used to build libraries. 18930LD=$lt_LD_GCJ 18931 18932# Whether we need hard or soft links. 18933LN_S=$lt_LN_S 18934 18935# A BSD-compatible nm program. 18936NM=$lt_NM 18937 18938# A symbol stripping program 18939STRIP=$lt_STRIP 18940 18941# Used to examine libraries when file_magic_cmd begins "file" 18942MAGIC_CMD=$MAGIC_CMD 18943 18944# Used on cygwin: DLL creation program. 18945DLLTOOL="$DLLTOOL" 18946 18947# Used on cygwin: object dumper. 18948OBJDUMP="$OBJDUMP" 18949 18950# Used on cygwin: assembler. 18951AS="$AS" 18952 18953# The name of the directory that contains temporary libtool files. 18954objdir=$objdir 18955 18956# How to create reloadable object files. 18957reload_flag=$lt_reload_flag 18958reload_cmds=$lt_reload_cmds 18959 18960# How to pass a linker flag through the compiler. 18961wl=$lt_lt_prog_compiler_wl_GCJ 18962 18963# Object file suffix (normally "o"). 18964objext="$ac_objext" 18965 18966# Old archive suffix (normally "a"). 18967libext="$libext" 18968 18969# Shared library suffix (normally ".so"). 18970shrext_cmds='$shrext_cmds' 18971 18972# Executable file suffix (normally ""). 18973exeext="$exeext" 18974 18975# Additional compiler flags for building library objects. 18976pic_flag=$lt_lt_prog_compiler_pic_GCJ 18977pic_mode=$pic_mode 18978 18979# What is the maximum length of a command? 18980max_cmd_len=$lt_cv_sys_max_cmd_len 18981 18982# Does compiler simultaneously support -c and -o options? 18983compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18984 18985# Must we lock files when doing compilation? 18986need_locks=$lt_need_locks 18987 18988# Do we need the lib prefix for modules? 18989need_lib_prefix=$need_lib_prefix 18990 18991# Do we need a version for libraries? 18992need_version=$need_version 18993 18994# Whether dlopen is supported. 18995dlopen_support=$enable_dlopen 18996 18997# Whether dlopen of programs is supported. 18998dlopen_self=$enable_dlopen_self 18999 19000# Whether dlopen of statically linked programs is supported. 19001dlopen_self_static=$enable_dlopen_self_static 19002 19003# Compiler flag to prevent dynamic linking. 19004link_static_flag=$lt_lt_prog_compiler_static_GCJ 19005 19006# Compiler flag to turn off builtin functions. 19007no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19008 19009# Compiler flag to allow reflexive dlopens. 19010export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19011 19012# Compiler flag to generate shared objects directly from archives. 19013whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19014 19015# Compiler flag to generate thread-safe objects. 19016thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19017 19018# Library versioning type. 19019version_type=$version_type 19020 19021# Format of library name prefix. 19022libname_spec=$lt_libname_spec 19023 19024# List of archive names. First name is the real one, the rest are links. 19025# The last name is the one that the linker finds with -lNAME. 19026library_names_spec=$lt_library_names_spec 19027 19028# The coded name of the library, if different from the real name. 19029soname_spec=$lt_soname_spec 19030 19031# Commands used to build and install an old-style archive. 19032RANLIB=$lt_RANLIB 19033old_archive_cmds=$lt_old_archive_cmds_GCJ 19034old_postinstall_cmds=$lt_old_postinstall_cmds 19035old_postuninstall_cmds=$lt_old_postuninstall_cmds 19036 19037# Create an old-style archive from a shared archive. 19038old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19039 19040# Create a temporary old-style archive to link instead of a shared archive. 19041old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19042 19043# Commands used to build and install a shared archive. 19044archive_cmds=$lt_archive_cmds_GCJ 19045archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19046postinstall_cmds=$lt_postinstall_cmds 19047postuninstall_cmds=$lt_postuninstall_cmds 19048 19049# Commands used to build a loadable module (assumed same as above if empty) 19050module_cmds=$lt_module_cmds_GCJ 19051module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19052 19053# Commands to strip libraries. 19054old_striplib=$lt_old_striplib 19055striplib=$lt_striplib 19056 19057# Dependencies to place before the objects being linked to create a 19058# shared library. 19059predep_objects=$lt_predep_objects_GCJ 19060 19061# Dependencies to place after the objects being linked to create a 19062# shared library. 19063postdep_objects=$lt_postdep_objects_GCJ 19064 19065# Dependencies to place before the objects being linked to create a 19066# shared library. 19067predeps=$lt_predeps_GCJ 19068 19069# Dependencies to place after the objects being linked to create a 19070# shared library. 19071postdeps=$lt_postdeps_GCJ 19072 19073# The library search path used internally by the compiler when linking 19074# a shared library. 19075compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19076 19077# Method to check whether dependent libraries are shared objects. 19078deplibs_check_method=$lt_deplibs_check_method 19079 19080# Command to use when deplibs_check_method == file_magic. 19081file_magic_cmd=$lt_file_magic_cmd 19082 19083# Flag that allows shared libraries with undefined symbols to be built. 19084allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19085 19086# Flag that forces no undefined symbols. 19087no_undefined_flag=$lt_no_undefined_flag_GCJ 19088 19089# Commands used to finish a libtool library installation in a directory. 19090finish_cmds=$lt_finish_cmds 19091 19092# Same as above, but a single script fragment to be evaled but not shown. 19093finish_eval=$lt_finish_eval 19094 19095# Take the output of nm and produce a listing of raw symbols and C names. 19096global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19097 19098# Transform the output of nm in a proper C declaration 19099global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19100 19101# Transform the output of nm in a C name address pair 19102global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19103 19104# This is the shared library runtime path variable. 19105runpath_var=$runpath_var 19106 19107# This is the shared library path variable. 19108shlibpath_var=$shlibpath_var 19109 19110# Is shlibpath searched before the hard-coded library search path? 19111shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19112 19113# How to hardcode a shared library path into an executable. 19114hardcode_action=$hardcode_action_GCJ 19115 19116# Whether we should hardcode library paths into libraries. 19117hardcode_into_libs=$hardcode_into_libs 19118 19119# Flag to hardcode \$libdir into a binary during linking. 19120# This must work even if \$libdir does not exist. 19121hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19122 19123# If ld is used when linking, flag to hardcode \$libdir into 19124# a binary during linking. This must work even if \$libdir does 19125# not exist. 19126hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19127 19128# Whether we need a single -rpath flag with a separated argument. 19129hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19130 19131# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19132# resulting binary. 19133hardcode_direct=$hardcode_direct_GCJ 19134 19135# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19136# resulting binary. 19137hardcode_minus_L=$hardcode_minus_L_GCJ 19138 19139# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19140# the resulting binary. 19141hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19142 19143# Set to yes if building a shared library automatically hardcodes DIR into the library 19144# and all subsequent libraries and executables linked against it. 19145hardcode_automatic=$hardcode_automatic_GCJ 19146 19147# Variables whose values should be saved in libtool wrapper scripts and 19148# restored at relink time. 19149variables_saved_for_relink="$variables_saved_for_relink" 19150 19151# Whether libtool must link a program against all its dependency libraries. 19152link_all_deplibs=$link_all_deplibs_GCJ 19153 19154# Compile-time system search path for libraries 19155sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19156 19157# Run-time system search path for libraries 19158sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19159 19160# Fix the shell variable \$srcfile for the compiler. 19161fix_srcfile_path="$fix_srcfile_path_GCJ" 19162 19163# Set to yes if exported symbols are required. 19164always_export_symbols=$always_export_symbols_GCJ 19165 19166# The commands to list exported symbols. 19167export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19168 19169# The commands to extract the exported symbol list from a shared archive. 19170extract_expsyms_cmds=$lt_extract_expsyms_cmds 19171 19172# Symbols that should not be listed in the preloaded symbols. 19173exclude_expsyms=$lt_exclude_expsyms_GCJ 19174 19175# Symbols that must always be exported. 19176include_expsyms=$lt_include_expsyms_GCJ 19177 19178# ### END LIBTOOL TAG CONFIG: $tagname 19179 19180__EOF__ 19181 19182 19183else 19184 # If there is no Makefile yet, we rely on a make rule to execute 19185 # `config.status --recheck' to rerun these tests and create the 19186 # libtool script then. 19187 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19188 if test -f "$ltmain_in"; then 19189 test -f Makefile && make "$ltmain" 19190 fi 19191fi 19192 19193 19194ac_ext=c 19195ac_cpp='$CPP $CPPFLAGS' 19196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19198ac_compiler_gnu=$ac_cv_c_compiler_gnu 19199 19200CC="$lt_save_CC" 19201 19202 else 19203 tagname="" 19204 fi 19205 ;; 19206 19207 RC) 19208 19209 19210 19211# Source file extension for RC test sources. 19212ac_ext=rc 19213 19214# Object file extension for compiled RC test sources. 19215objext=o 19216objext_RC=$objext 19217 19218# Code to be used in simple compile tests 19219lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19220 19221# Code to be used in simple link tests 19222lt_simple_link_test_code="$lt_simple_compile_test_code" 19223 19224# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19225 19226# If no C compiler was specified, use CC. 19227LTCC=${LTCC-"$CC"} 19228 19229# Allow CC to be a program name with arguments. 19230compiler=$CC 19231 19232 19233# save warnings/boilerplate of simple test code 19234ac_outfile=conftest.$ac_objext 19235printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19236eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19237_lt_compiler_boilerplate=`cat conftest.err` 19238$rm conftest* 19239 19240ac_outfile=conftest.$ac_objext 19241printf "$lt_simple_link_test_code" >conftest.$ac_ext 19242eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19243_lt_linker_boilerplate=`cat conftest.err` 19244$rm conftest* 19245 19246 19247# Allow CC to be a program name with arguments. 19248lt_save_CC="$CC" 19249CC=${RC-"windres"} 19250compiler=$CC 19251compiler_RC=$CC 19252for cc_temp in $compiler""; do 19253 case $cc_temp in 19254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19256 \-*) ;; 19257 *) break;; 19258 esac 19259done 19260cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19261 19262lt_cv_prog_compiler_c_o_RC=yes 19263 19264# The else clause should only fire when bootstrapping the 19265# libtool distribution, otherwise you forgot to ship ltmain.sh 19266# with your package, and you will get complaints that there are 19267# no rules to generate ltmain.sh. 19268if test -f "$ltmain"; then 19269 # See if we are running on zsh, and set the options which allow our commands through 19270 # without removal of \ escapes. 19271 if test -n "${ZSH_VERSION+set}" ; then 19272 setopt NO_GLOB_SUBST 19273 fi 19274 # Now quote all the things that may contain metacharacters while being 19275 # careful not to overquote the AC_SUBSTed values. We take copies of the 19276 # variables and quote the copies for generation of the libtool script. 19277 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19278 SED SHELL STRIP \ 19279 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19280 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19281 deplibs_check_method reload_flag reload_cmds need_locks \ 19282 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19283 lt_cv_sys_global_symbol_to_c_name_address \ 19284 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19285 old_postinstall_cmds old_postuninstall_cmds \ 19286 compiler_RC \ 19287 CC_RC \ 19288 LD_RC \ 19289 lt_prog_compiler_wl_RC \ 19290 lt_prog_compiler_pic_RC \ 19291 lt_prog_compiler_static_RC \ 19292 lt_prog_compiler_no_builtin_flag_RC \ 19293 export_dynamic_flag_spec_RC \ 19294 thread_safe_flag_spec_RC \ 19295 whole_archive_flag_spec_RC \ 19296 enable_shared_with_static_runtimes_RC \ 19297 old_archive_cmds_RC \ 19298 old_archive_from_new_cmds_RC \ 19299 predep_objects_RC \ 19300 postdep_objects_RC \ 19301 predeps_RC \ 19302 postdeps_RC \ 19303 compiler_lib_search_path_RC \ 19304 archive_cmds_RC \ 19305 archive_expsym_cmds_RC \ 19306 postinstall_cmds_RC \ 19307 postuninstall_cmds_RC \ 19308 old_archive_from_expsyms_cmds_RC \ 19309 allow_undefined_flag_RC \ 19310 no_undefined_flag_RC \ 19311 export_symbols_cmds_RC \ 19312 hardcode_libdir_flag_spec_RC \ 19313 hardcode_libdir_flag_spec_ld_RC \ 19314 hardcode_libdir_separator_RC \ 19315 hardcode_automatic_RC \ 19316 module_cmds_RC \ 19317 module_expsym_cmds_RC \ 19318 lt_cv_prog_compiler_c_o_RC \ 19319 exclude_expsyms_RC \ 19320 include_expsyms_RC; do 19321 19322 case $var in 19323 old_archive_cmds_RC | \ 19324 old_archive_from_new_cmds_RC | \ 19325 archive_cmds_RC | \ 19326 archive_expsym_cmds_RC | \ 19327 module_cmds_RC | \ 19328 module_expsym_cmds_RC | \ 19329 old_archive_from_expsyms_cmds_RC | \ 19330 export_symbols_cmds_RC | \ 19331 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19332 postinstall_cmds | postuninstall_cmds | \ 19333 old_postinstall_cmds | old_postuninstall_cmds | \ 19334 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19335 # Double-quote double-evaled strings. 19336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19337 ;; 19338 *) 19339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19340 ;; 19341 esac 19342 done 19343 19344 case $lt_echo in 19345 *'\$0 --fallback-echo"') 19346 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19347 ;; 19348 esac 19349 19350cfgfile="$ofile" 19351 19352 cat <<__EOF__ >> "$cfgfile" 19353# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19354 19355# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19356 19357# Shell to use when invoking shell scripts. 19358SHELL=$lt_SHELL 19359 19360# Whether or not to build shared libraries. 19361build_libtool_libs=$enable_shared 19362 19363# Whether or not to build static libraries. 19364build_old_libs=$enable_static 19365 19366# Whether or not to add -lc for building shared libraries. 19367build_libtool_need_lc=$archive_cmds_need_lc_RC 19368 19369# Whether or not to disallow shared libs when runtime libs are static 19370allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19371 19372# Whether or not to optimize for fast installation. 19373fast_install=$enable_fast_install 19374 19375# The host system. 19376host_alias=$host_alias 19377host=$host 19378host_os=$host_os 19379 19380# The build system. 19381build_alias=$build_alias 19382build=$build 19383build_os=$build_os 19384 19385# An echo program that does not interpret backslashes. 19386echo=$lt_echo 19387 19388# The archiver. 19389AR=$lt_AR 19390AR_FLAGS=$lt_AR_FLAGS 19391 19392# A C compiler. 19393LTCC=$lt_LTCC 19394 19395# A language-specific compiler. 19396CC=$lt_compiler_RC 19397 19398# Is the compiler the GNU C compiler? 19399with_gcc=$GCC_RC 19400 19401# An ERE matcher. 19402EGREP=$lt_EGREP 19403 19404# The linker used to build libraries. 19405LD=$lt_LD_RC 19406 19407# Whether we need hard or soft links. 19408LN_S=$lt_LN_S 19409 19410# A BSD-compatible nm program. 19411NM=$lt_NM 19412 19413# A symbol stripping program 19414STRIP=$lt_STRIP 19415 19416# Used to examine libraries when file_magic_cmd begins "file" 19417MAGIC_CMD=$MAGIC_CMD 19418 19419# Used on cygwin: DLL creation program. 19420DLLTOOL="$DLLTOOL" 19421 19422# Used on cygwin: object dumper. 19423OBJDUMP="$OBJDUMP" 19424 19425# Used on cygwin: assembler. 19426AS="$AS" 19427 19428# The name of the directory that contains temporary libtool files. 19429objdir=$objdir 19430 19431# How to create reloadable object files. 19432reload_flag=$lt_reload_flag 19433reload_cmds=$lt_reload_cmds 19434 19435# How to pass a linker flag through the compiler. 19436wl=$lt_lt_prog_compiler_wl_RC 19437 19438# Object file suffix (normally "o"). 19439objext="$ac_objext" 19440 19441# Old archive suffix (normally "a"). 19442libext="$libext" 19443 19444# Shared library suffix (normally ".so"). 19445shrext_cmds='$shrext_cmds' 19446 19447# Executable file suffix (normally ""). 19448exeext="$exeext" 19449 19450# Additional compiler flags for building library objects. 19451pic_flag=$lt_lt_prog_compiler_pic_RC 19452pic_mode=$pic_mode 19453 19454# What is the maximum length of a command? 19455max_cmd_len=$lt_cv_sys_max_cmd_len 19456 19457# Does compiler simultaneously support -c and -o options? 19458compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19459 19460# Must we lock files when doing compilation? 19461need_locks=$lt_need_locks 19462 19463# Do we need the lib prefix for modules? 19464need_lib_prefix=$need_lib_prefix 19465 19466# Do we need a version for libraries? 19467need_version=$need_version 19468 19469# Whether dlopen is supported. 19470dlopen_support=$enable_dlopen 19471 19472# Whether dlopen of programs is supported. 19473dlopen_self=$enable_dlopen_self 19474 19475# Whether dlopen of statically linked programs is supported. 19476dlopen_self_static=$enable_dlopen_self_static 19477 19478# Compiler flag to prevent dynamic linking. 19479link_static_flag=$lt_lt_prog_compiler_static_RC 19480 19481# Compiler flag to turn off builtin functions. 19482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19483 19484# Compiler flag to allow reflexive dlopens. 19485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19486 19487# Compiler flag to generate shared objects directly from archives. 19488whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19489 19490# Compiler flag to generate thread-safe objects. 19491thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19492 19493# Library versioning type. 19494version_type=$version_type 19495 19496# Format of library name prefix. 19497libname_spec=$lt_libname_spec 19498 19499# List of archive names. First name is the real one, the rest are links. 19500# The last name is the one that the linker finds with -lNAME. 19501library_names_spec=$lt_library_names_spec 19502 19503# The coded name of the library, if different from the real name. 19504soname_spec=$lt_soname_spec 19505 19506# Commands used to build and install an old-style archive. 19507RANLIB=$lt_RANLIB 19508old_archive_cmds=$lt_old_archive_cmds_RC 19509old_postinstall_cmds=$lt_old_postinstall_cmds 19510old_postuninstall_cmds=$lt_old_postuninstall_cmds 19511 19512# Create an old-style archive from a shared archive. 19513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19514 19515# Create a temporary old-style archive to link instead of a shared archive. 19516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19517 19518# Commands used to build and install a shared archive. 19519archive_cmds=$lt_archive_cmds_RC 19520archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19521postinstall_cmds=$lt_postinstall_cmds 19522postuninstall_cmds=$lt_postuninstall_cmds 19523 19524# Commands used to build a loadable module (assumed same as above if empty) 19525module_cmds=$lt_module_cmds_RC 19526module_expsym_cmds=$lt_module_expsym_cmds_RC 19527 19528# Commands to strip libraries. 19529old_striplib=$lt_old_striplib 19530striplib=$lt_striplib 19531 19532# Dependencies to place before the objects being linked to create a 19533# shared library. 19534predep_objects=$lt_predep_objects_RC 19535 19536# Dependencies to place after the objects being linked to create a 19537# shared library. 19538postdep_objects=$lt_postdep_objects_RC 19539 19540# Dependencies to place before the objects being linked to create a 19541# shared library. 19542predeps=$lt_predeps_RC 19543 19544# Dependencies to place after the objects being linked to create a 19545# shared library. 19546postdeps=$lt_postdeps_RC 19547 19548# The library search path used internally by the compiler when linking 19549# a shared library. 19550compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19551 19552# Method to check whether dependent libraries are shared objects. 19553deplibs_check_method=$lt_deplibs_check_method 19554 19555# Command to use when deplibs_check_method == file_magic. 19556file_magic_cmd=$lt_file_magic_cmd 19557 19558# Flag that allows shared libraries with undefined symbols to be built. 19559allow_undefined_flag=$lt_allow_undefined_flag_RC 19560 19561# Flag that forces no undefined symbols. 19562no_undefined_flag=$lt_no_undefined_flag_RC 19563 19564# Commands used to finish a libtool library installation in a directory. 19565finish_cmds=$lt_finish_cmds 19566 19567# Same as above, but a single script fragment to be evaled but not shown. 19568finish_eval=$lt_finish_eval 19569 19570# Take the output of nm and produce a listing of raw symbols and C names. 19571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19572 19573# Transform the output of nm in a proper C declaration 19574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19575 19576# Transform the output of nm in a C name address pair 19577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19578 19579# This is the shared library runtime path variable. 19580runpath_var=$runpath_var 19581 19582# This is the shared library path variable. 19583shlibpath_var=$shlibpath_var 19584 19585# Is shlibpath searched before the hard-coded library search path? 19586shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19587 19588# How to hardcode a shared library path into an executable. 19589hardcode_action=$hardcode_action_RC 19590 19591# Whether we should hardcode library paths into libraries. 19592hardcode_into_libs=$hardcode_into_libs 19593 19594# Flag to hardcode \$libdir into a binary during linking. 19595# This must work even if \$libdir does not exist. 19596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19597 19598# If ld is used when linking, flag to hardcode \$libdir into 19599# a binary during linking. This must work even if \$libdir does 19600# not exist. 19601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19602 19603# Whether we need a single -rpath flag with a separated argument. 19604hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19605 19606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19607# resulting binary. 19608hardcode_direct=$hardcode_direct_RC 19609 19610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19611# resulting binary. 19612hardcode_minus_L=$hardcode_minus_L_RC 19613 19614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19615# the resulting binary. 19616hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19617 19618# Set to yes if building a shared library automatically hardcodes DIR into the library 19619# and all subsequent libraries and executables linked against it. 19620hardcode_automatic=$hardcode_automatic_RC 19621 19622# Variables whose values should be saved in libtool wrapper scripts and 19623# restored at relink time. 19624variables_saved_for_relink="$variables_saved_for_relink" 19625 19626# Whether libtool must link a program against all its dependency libraries. 19627link_all_deplibs=$link_all_deplibs_RC 19628 19629# Compile-time system search path for libraries 19630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19631 19632# Run-time system search path for libraries 19633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19634 19635# Fix the shell variable \$srcfile for the compiler. 19636fix_srcfile_path="$fix_srcfile_path_RC" 19637 19638# Set to yes if exported symbols are required. 19639always_export_symbols=$always_export_symbols_RC 19640 19641# The commands to list exported symbols. 19642export_symbols_cmds=$lt_export_symbols_cmds_RC 19643 19644# The commands to extract the exported symbol list from a shared archive. 19645extract_expsyms_cmds=$lt_extract_expsyms_cmds 19646 19647# Symbols that should not be listed in the preloaded symbols. 19648exclude_expsyms=$lt_exclude_expsyms_RC 19649 19650# Symbols that must always be exported. 19651include_expsyms=$lt_include_expsyms_RC 19652 19653# ### END LIBTOOL TAG CONFIG: $tagname 19654 19655__EOF__ 19656 19657 19658else 19659 # If there is no Makefile yet, we rely on a make rule to execute 19660 # `config.status --recheck' to rerun these tests and create the 19661 # libtool script then. 19662 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19663 if test -f "$ltmain_in"; then 19664 test -f Makefile && make "$ltmain" 19665 fi 19666fi 19667 19668 19669ac_ext=c 19670ac_cpp='$CPP $CPPFLAGS' 19671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19673ac_compiler_gnu=$ac_cv_c_compiler_gnu 19674 19675CC="$lt_save_CC" 19676 19677 ;; 19678 19679 *) 19680 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19681echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19682 { (exit 1); exit 1; }; } 19683 ;; 19684 esac 19685 19686 # Append the new tag name to the list of available tags. 19687 if test -n "$tagname" ; then 19688 available_tags="$available_tags $tagname" 19689 fi 19690 fi 19691 done 19692 IFS="$lt_save_ifs" 19693 19694 # Now substitute the updated list of available tags. 19695 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19696 mv "${ofile}T" "$ofile" 19697 chmod +x "$ofile" 19698 else 19699 rm -f "${ofile}T" 19700 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19701echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19702 { (exit 1); exit 1; }; } 19703 fi 19704fi 19705 19706 19707 19708# This can be used to rebuild libtool when needed 19709LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19710 19711# Always use our own libtool. 19712LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19713 19714# Prevent multiple expansion 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736ac_ext=cc 19737ac_cpp='$CXXCPP $CPPFLAGS' 19738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19741 19742 19743 19744 19745 19746 19747echo "$as_me:$LINENO: checking CGAL_MAKEFILE" >&5 19748echo $ECHO_N "checking CGAL_MAKEFILE... $ECHO_C" >&6 19749rm -rf include/dsrpdb/config.h 19750if test \! -z "$CGAL_MAKEFILE" -a -e "$CGAL_MAKEFILE"; then 19751 tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX` 19752 19753cat > $tname << _ACEOF 19754include $CGAL_MAKEFILE 19755 19756cppflags: 19757 @echo \$(CGAL_CXXFLAGS) 19758 19759cxxflags: 19760 @echo 19761ldflags: 19762 @echo \$(CGAL_LDFLAGS) 19763ldlibs: 19764 @echo -lCGAL -lgmp -lm 19765_ACEOF 19766 CPPFLAGS="`make -s -f $tname cppflags` $CPPFLAGS" 19767 CXXFLAGS="`make -s -f $tname cxxflags` $CXXFLAGS" 19768 LDFLAGS="`make -s -f $tname ldflags` `make -s -f $tname ldlibs` $LDFLAGS" 19769 rm -f $tname 19770 echo "#define PDB_USE_CGAL" | cat > include/dsrpdb/config.h 19771 echo "$as_me:$LINENO: result: yes" >&5 19772echo "${ECHO_T}yes" >&6 19773else 19774 echo "$as_me:$LINENO: result: no" >&5 19775echo "${ECHO_T}no" >&6 19776 if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then 19777 echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5 19778echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6 19779if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then 19780 echo $ECHO_N "(cached) $ECHO_C" >&6 19781fi 19782echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5 19783echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6 19784else 19785 # Is the header compilable? 19786echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability" >&5 19787echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability... $ECHO_C" >&6 19788cat >conftest.$ac_ext <<_ACEOF 19789/* confdefs.h. */ 19790_ACEOF 19791cat confdefs.h >>conftest.$ac_ext 19792cat >>conftest.$ac_ext <<_ACEOF 19793/* end confdefs.h. */ 19794$ac_includes_default 19795#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> 19796_ACEOF 19797rm -f conftest.$ac_objext 19798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19799 (eval $ac_compile) 2>conftest.er1 19800 ac_status=$? 19801 grep -v '^ *+' conftest.er1 >conftest.err 19802 rm -f conftest.er1 19803 cat conftest.err >&5 19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19805 (exit $ac_status); } && 19806 { ac_try='test -z "$ac_cxx_werror_flag" 19807 || test ! -s conftest.err' 19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19809 (eval $ac_try) 2>&5 19810 ac_status=$? 19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19812 (exit $ac_status); }; } && 19813 { ac_try='test -s conftest.$ac_objext' 19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19815 (eval $ac_try) 2>&5 19816 ac_status=$? 19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19818 (exit $ac_status); }; }; then 19819 ac_header_compiler=yes 19820else 19821 echo "$as_me: failed program was:" >&5 19822sed 's/^/| /' conftest.$ac_ext >&5 19823 19824ac_header_compiler=no 19825fi 19826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19828echo "${ECHO_T}$ac_header_compiler" >&6 19829 19830# Is the header present? 19831echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence" >&5 19832echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence... $ECHO_C" >&6 19833cat >conftest.$ac_ext <<_ACEOF 19834/* confdefs.h. */ 19835_ACEOF 19836cat confdefs.h >>conftest.$ac_ext 19837cat >>conftest.$ac_ext <<_ACEOF 19838/* end confdefs.h. */ 19839#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> 19840_ACEOF 19841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19843 ac_status=$? 19844 grep -v '^ *+' conftest.er1 >conftest.err 19845 rm -f conftest.er1 19846 cat conftest.err >&5 19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19848 (exit $ac_status); } >/dev/null; then 19849 if test -s conftest.err; then 19850 ac_cpp_err=$ac_cxx_preproc_warn_flag 19851 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 19852 else 19853 ac_cpp_err= 19854 fi 19855else 19856 ac_cpp_err=yes 19857fi 19858if test -z "$ac_cpp_err"; then 19859 ac_header_preproc=yes 19860else 19861 echo "$as_me: failed program was:" >&5 19862sed 's/^/| /' conftest.$ac_ext >&5 19863 19864 ac_header_preproc=no 19865fi 19866rm -f conftest.err conftest.$ac_ext 19867echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19868echo "${ECHO_T}$ac_header_preproc" >&6 19869 19870# So? What about this header? 19871case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 19872 yes:no: ) 19873 { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&5 19874echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 19875 { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&5 19876echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&2;} 19877 ac_header_preproc=yes 19878 ;; 19879 no:yes:* ) 19880 { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&5 19881echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&2;} 19882 { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: check for missing prerequisite headers?" >&5 19883echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: check for missing prerequisite headers?" >&2;} 19884 { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&5 19885echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&2;} 19886 { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: section \"Present But Cannot Be Compiled\"" >&5 19887echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: section \"Present But Cannot Be Compiled\"" >&2;} 19888 { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&5 19889echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&2;} 19890 { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&5 19891echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&2;} 19892 ( 19893 cat <<\_ASBOX 19894## -------------------------------------------- ## 19895## Report this to drussel@graphics.stanford.edu ## 19896## -------------------------------------------- ## 19897_ASBOX 19898 ) | 19899 sed "s/^/$as_me: WARNING: /" >&2 19900 ;; 19901esac 19902echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5 19903echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6 19904if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then 19905 echo $ECHO_N "(cached) $ECHO_C" >&6 19906else 19907 ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h=$ac_header_preproc 19908fi 19909echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5 19910echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6 19911 19912fi 19913if test $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h = yes; then 19914 pdb_have_cgal=yes 19915else 19916 pdb_have_cgal=no 19917fi 19918 19919 19920 echo "$as_me:$LINENO: checking CGAL" >&5 19921echo $ECHO_N "checking CGAL... $ECHO_C" >&6 19922 if test "$pdb_have_cgal" == "yes"; then 19923 echo "$as_me:$LINENO: result: yes" >&5 19924echo "${ECHO_T}yes" >&6 19925 LDFLAGS="$LDFLAGS -lCGAL " 19926 echo "#define PDB_USE_CGAL" | cat > include/dsrpdb/config.h 19927 else 19928 echo "$as_me:$LINENO: result: no" >&5 19929echo "${ECHO_T}no" >&6 19930 fi 19931 19932fi 19933if test "${ac_cv_header_boost_program_options_hpp+set}" = set; then 19934 echo "$as_me:$LINENO: checking for boost/program_options.hpp" >&5 19935echo $ECHO_N "checking for boost/program_options.hpp... $ECHO_C" >&6 19936if test "${ac_cv_header_boost_program_options_hpp+set}" = set; then 19937 echo $ECHO_N "(cached) $ECHO_C" >&6 19938fi 19939echo "$as_me:$LINENO: result: $ac_cv_header_boost_program_options_hpp" >&5 19940echo "${ECHO_T}$ac_cv_header_boost_program_options_hpp" >&6 19941else 19942 # Is the header compilable? 19943echo "$as_me:$LINENO: checking boost/program_options.hpp usability" >&5 19944echo $ECHO_N "checking boost/program_options.hpp usability... $ECHO_C" >&6 19945cat >conftest.$ac_ext <<_ACEOF 19946/* confdefs.h. */ 19947_ACEOF 19948cat confdefs.h >>conftest.$ac_ext 19949cat >>conftest.$ac_ext <<_ACEOF 19950/* end confdefs.h. */ 19951$ac_includes_default 19952#include <boost/program_options.hpp> 19953_ACEOF 19954rm -f conftest.$ac_objext 19955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19956 (eval $ac_compile) 2>conftest.er1 19957 ac_status=$? 19958 grep -v '^ *+' conftest.er1 >conftest.err 19959 rm -f conftest.er1 19960 cat conftest.err >&5 19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19962 (exit $ac_status); } && 19963 { ac_try='test -z "$ac_cxx_werror_flag" 19964 || test ! -s conftest.err' 19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19966 (eval $ac_try) 2>&5 19967 ac_status=$? 19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19969 (exit $ac_status); }; } && 19970 { ac_try='test -s conftest.$ac_objext' 19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19972 (eval $ac_try) 2>&5 19973 ac_status=$? 19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19975 (exit $ac_status); }; }; then 19976 ac_header_compiler=yes 19977else 19978 echo "$as_me: failed program was:" >&5 19979sed 's/^/| /' conftest.$ac_ext >&5 19980 19981ac_header_compiler=no 19982fi 19983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19985echo "${ECHO_T}$ac_header_compiler" >&6 19986 19987# Is the header present? 19988echo "$as_me:$LINENO: checking boost/program_options.hpp presence" >&5 19989echo $ECHO_N "checking boost/program_options.hpp presence... $ECHO_C" >&6 19990cat >conftest.$ac_ext <<_ACEOF 19991/* confdefs.h. */ 19992_ACEOF 19993cat confdefs.h >>conftest.$ac_ext 19994cat >>conftest.$ac_ext <<_ACEOF 19995/* end confdefs.h. */ 19996#include <boost/program_options.hpp> 19997_ACEOF 19998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20000 ac_status=$? 20001 grep -v '^ *+' conftest.er1 >conftest.err 20002 rm -f conftest.er1 20003 cat conftest.err >&5 20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20005 (exit $ac_status); } >/dev/null; then 20006 if test -s conftest.err; then 20007 ac_cpp_err=$ac_cxx_preproc_warn_flag 20008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 20009 else 20010 ac_cpp_err= 20011 fi 20012else 20013 ac_cpp_err=yes 20014fi 20015if test -z "$ac_cpp_err"; then 20016 ac_header_preproc=yes 20017else 20018 echo "$as_me: failed program was:" >&5 20019sed 's/^/| /' conftest.$ac_ext >&5 20020 20021 ac_header_preproc=no 20022fi 20023rm -f conftest.err conftest.$ac_ext 20024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20025echo "${ECHO_T}$ac_header_preproc" >&6 20026 20027# So? What about this header? 20028case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 20029 yes:no: ) 20030 { echo "$as_me:$LINENO: WARNING: boost/program_options.hpp: accepted by the compiler, rejected by the preprocessor!" >&5 20031echo "$as_me: WARNING: boost/program_options.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;} 20032 { echo "$as_me:$LINENO: WARNING: boost/program_options.hpp: proceeding with the compiler's result" >&5 20033echo "$as_me: WARNING: boost/program_options.hpp: proceeding with the compiler's result" >&2;} 20034 ac_header_preproc=yes 20035 ;; 20036 no:yes:* ) 20037 { echo "$as_me:$LINENO: WARNING: boost/program_options.hpp: present but cannot be compiled" >&5 20038echo "$as_me: WARNING: boost/program_options.hpp: present but cannot be compiled" >&2;} 20039 { echo "$as_me:$LINENO: WARNING: boost/program_options.hpp: check for missing prerequisite headers?" >&5 20040echo "$as_me: WARNING: boost/program_options.hpp: check for missing prerequisite headers?" >&2;} 20041 { echo "$as_me:$LINENO: WARNING: boost/program_options.hpp: see the Autoconf documentation" >&5 20042echo "$as_me: WARNING: boost/program_options.hpp: see the Autoconf documentation" >&2;} 20043 { echo "$as_me:$LINENO: WARNING: boost/program_options.hpp: section \"Present But Cannot Be Compiled\"" >&5 20044echo "$as_me: WARNING: boost/program_options.hpp: section \"Present But Cannot Be Compiled\"" >&2;} 20045 { echo "$as_me:$LINENO: WARNING: boost/program_options.hpp: proceeding with the preprocessor's result" >&5 20046echo "$as_me: WARNING: boost/program_options.hpp: proceeding with the preprocessor's result" >&2;} 20047 { echo "$as_me:$LINENO: WARNING: boost/program_options.hpp: in the future, the compiler will take precedence" >&5 20048echo "$as_me: WARNING: boost/program_options.hpp: in the future, the compiler will take precedence" >&2;} 20049 ( 20050 cat <<\_ASBOX 20051## -------------------------------------------- ## 20052## Report this to drussel@graphics.stanford.edu ## 20053## -------------------------------------------- ## 20054_ASBOX 20055 ) | 20056 sed "s/^/$as_me: WARNING: /" >&2 20057 ;; 20058esac 20059echo "$as_me:$LINENO: checking for boost/program_options.hpp" >&5 20060echo $ECHO_N "checking for boost/program_options.hpp... $ECHO_C" >&6 20061if test "${ac_cv_header_boost_program_options_hpp+set}" = set; then 20062 echo $ECHO_N "(cached) $ECHO_C" >&6 20063else 20064 ac_cv_header_boost_program_options_hpp=$ac_header_preproc 20065fi 20066echo "$as_me:$LINENO: result: $ac_cv_header_boost_program_options_hpp" >&5 20067echo "${ECHO_T}$ac_cv_header_boost_program_options_hpp" >&6 20068 20069fi 20070if test $ac_cv_header_boost_program_options_hpp = yes; then 20071 pdb_prog_opts=yes 20072else 20073 pdb_prog_opts=no 20074fi 20075 20076 20077echo "$as_me:$LINENO: checking for main in -lboost_program_options" >&5 20078echo $ECHO_N "checking for main in -lboost_program_options... $ECHO_C" >&6 20079if test "${ac_cv_lib_boost_program_options_main+set}" = set; then 20080 echo $ECHO_N "(cached) $ECHO_C" >&6 20081else 20082 ac_check_lib_save_LIBS=$LIBS 20083LIBS="-lboost_program_options $LIBS" 20084cat >conftest.$ac_ext <<_ACEOF 20085/* confdefs.h. */ 20086_ACEOF 20087cat confdefs.h >>conftest.$ac_ext 20088cat >>conftest.$ac_ext <<_ACEOF 20089/* end confdefs.h. */ 20090 20091 20092int 20093main () 20094{ 20095main (); 20096 ; 20097 return 0; 20098} 20099_ACEOF 20100rm -f conftest.$ac_objext conftest$ac_exeext 20101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20102 (eval $ac_link) 2>conftest.er1 20103 ac_status=$? 20104 grep -v '^ *+' conftest.er1 >conftest.err 20105 rm -f conftest.er1 20106 cat conftest.err >&5 20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20108 (exit $ac_status); } && 20109 { ac_try='test -z "$ac_cxx_werror_flag" 20110 || test ! -s conftest.err' 20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20112 (eval $ac_try) 2>&5 20113 ac_status=$? 20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20115 (exit $ac_status); }; } && 20116 { ac_try='test -s conftest$ac_exeext' 20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20118 (eval $ac_try) 2>&5 20119 ac_status=$? 20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20121 (exit $ac_status); }; }; then 20122 ac_cv_lib_boost_program_options_main=yes 20123else 20124 echo "$as_me: failed program was:" >&5 20125sed 's/^/| /' conftest.$ac_ext >&5 20126 20127ac_cv_lib_boost_program_options_main=no 20128fi 20129rm -f conftest.err conftest.$ac_objext \ 20130 conftest$ac_exeext conftest.$ac_ext 20131LIBS=$ac_check_lib_save_LIBS 20132fi 20133echo "$as_me:$LINENO: result: $ac_cv_lib_boost_program_options_main" >&5 20134echo "${ECHO_T}$ac_cv_lib_boost_program_options_main" >&6 20135if test $ac_cv_lib_boost_program_options_main = yes; then 20136 pdb_prog_opts_lib=yes 20137else 20138 pdb_prog_opts_lib=no 20139fi 20140 20141if test "$pdb_prog_opts" == "yes" -a "$pdb_prog_opts_lib" == "yes"; then 20142echo "#define PDB_USE_BOOST_PROGRAM_OPTIONS" | cat >> include/dsrpdb/config.h 20143LDFLAGS="$LDFLAGS -lboost_program_options" 20144pdb_have_program_options=yes 20145else 20146pdb_have_program_options=no 20147fi 20148 20149echo "$as_me:$LINENO: checking for main in -lMagick++" >&5 20150echo $ECHO_N "checking for main in -lMagick++... $ECHO_C" >&6 20151if test "${ac_cv_lib_Magickpp_main+set}" = set; then 20152 echo $ECHO_N "(cached) $ECHO_C" >&6 20153else 20154 ac_check_lib_save_LIBS=$LIBS 20155LIBS="-lMagick++ $LIBS" 20156cat >conftest.$ac_ext <<_ACEOF 20157/* confdefs.h. */ 20158_ACEOF 20159cat confdefs.h >>conftest.$ac_ext 20160cat >>conftest.$ac_ext <<_ACEOF 20161/* end confdefs.h. */ 20162 20163 20164int 20165main () 20166{ 20167main (); 20168 ; 20169 return 0; 20170} 20171_ACEOF 20172rm -f conftest.$ac_objext conftest$ac_exeext 20173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20174 (eval $ac_link) 2>conftest.er1 20175 ac_status=$? 20176 grep -v '^ *+' conftest.er1 >conftest.err 20177 rm -f conftest.er1 20178 cat conftest.err >&5 20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20180 (exit $ac_status); } && 20181 { ac_try='test -z "$ac_cxx_werror_flag" 20182 || test ! -s conftest.err' 20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20184 (eval $ac_try) 2>&5 20185 ac_status=$? 20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20187 (exit $ac_status); }; } && 20188 { ac_try='test -s conftest$ac_exeext' 20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20190 (eval $ac_try) 2>&5 20191 ac_status=$? 20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20193 (exit $ac_status); }; }; then 20194 ac_cv_lib_Magickpp_main=yes 20195else 20196 echo "$as_me: failed program was:" >&5 20197sed 's/^/| /' conftest.$ac_ext >&5 20198 20199ac_cv_lib_Magickpp_main=no 20200fi 20201rm -f conftest.err conftest.$ac_objext \ 20202 conftest$ac_exeext conftest.$ac_ext 20203LIBS=$ac_check_lib_save_LIBS 20204fi 20205echo "$as_me:$LINENO: result: $ac_cv_lib_Magickpp_main" >&5 20206echo "${ECHO_T}$ac_cv_lib_Magickpp_main" >&6 20207if test $ac_cv_lib_Magickpp_main = yes; then 20208 pdb_libmagick=yes 20209else 20210 pdb_libmagick=no 20211fi 20212 20213if test "${ac_cv_header_Magickpp_h+set}" = set; then 20214 echo "$as_me:$LINENO: checking for Magick++.h" >&5 20215echo $ECHO_N "checking for Magick++.h... $ECHO_C" >&6 20216if test "${ac_cv_header_Magickpp_h+set}" = set; then 20217 echo $ECHO_N "(cached) $ECHO_C" >&6 20218fi 20219echo "$as_me:$LINENO: result: $ac_cv_header_Magickpp_h" >&5 20220echo "${ECHO_T}$ac_cv_header_Magickpp_h" >&6 20221else 20222 # Is the header compilable? 20223echo "$as_me:$LINENO: checking Magick++.h usability" >&5 20224echo $ECHO_N "checking Magick++.h usability... $ECHO_C" >&6 20225cat >conftest.$ac_ext <<_ACEOF 20226/* confdefs.h. */ 20227_ACEOF 20228cat confdefs.h >>conftest.$ac_ext 20229cat >>conftest.$ac_ext <<_ACEOF 20230/* end confdefs.h. */ 20231$ac_includes_default 20232#include <Magick++.h> 20233_ACEOF 20234rm -f conftest.$ac_objext 20235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20236 (eval $ac_compile) 2>conftest.er1 20237 ac_status=$? 20238 grep -v '^ *+' conftest.er1 >conftest.err 20239 rm -f conftest.er1 20240 cat conftest.err >&5 20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20242 (exit $ac_status); } && 20243 { ac_try='test -z "$ac_cxx_werror_flag" 20244 || test ! -s conftest.err' 20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20246 (eval $ac_try) 2>&5 20247 ac_status=$? 20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20249 (exit $ac_status); }; } && 20250 { ac_try='test -s conftest.$ac_objext' 20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20252 (eval $ac_try) 2>&5 20253 ac_status=$? 20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20255 (exit $ac_status); }; }; then 20256 ac_header_compiler=yes 20257else 20258 echo "$as_me: failed program was:" >&5 20259sed 's/^/| /' conftest.$ac_ext >&5 20260 20261ac_header_compiler=no 20262fi 20263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20264echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20265echo "${ECHO_T}$ac_header_compiler" >&6 20266 20267# Is the header present? 20268echo "$as_me:$LINENO: checking Magick++.h presence" >&5 20269echo $ECHO_N "checking Magick++.h presence... $ECHO_C" >&6 20270cat >conftest.$ac_ext <<_ACEOF 20271/* confdefs.h. */ 20272_ACEOF 20273cat confdefs.h >>conftest.$ac_ext 20274cat >>conftest.$ac_ext <<_ACEOF 20275/* end confdefs.h. */ 20276#include <Magick++.h> 20277_ACEOF 20278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20280 ac_status=$? 20281 grep -v '^ *+' conftest.er1 >conftest.err 20282 rm -f conftest.er1 20283 cat conftest.err >&5 20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20285 (exit $ac_status); } >/dev/null; then 20286 if test -s conftest.err; then 20287 ac_cpp_err=$ac_cxx_preproc_warn_flag 20288 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 20289 else 20290 ac_cpp_err= 20291 fi 20292else 20293 ac_cpp_err=yes 20294fi 20295if test -z "$ac_cpp_err"; then 20296 ac_header_preproc=yes 20297else 20298 echo "$as_me: failed program was:" >&5 20299sed 's/^/| /' conftest.$ac_ext >&5 20300 20301 ac_header_preproc=no 20302fi 20303rm -f conftest.err conftest.$ac_ext 20304echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20305echo "${ECHO_T}$ac_header_preproc" >&6 20306 20307# So? What about this header? 20308case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 20309 yes:no: ) 20310 { echo "$as_me:$LINENO: WARNING: Magick++.h: accepted by the compiler, rejected by the preprocessor!" >&5 20311echo "$as_me: WARNING: Magick++.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20312 { echo "$as_me:$LINENO: WARNING: Magick++.h: proceeding with the compiler's result" >&5 20313echo "$as_me: WARNING: Magick++.h: proceeding with the compiler's result" >&2;} 20314 ac_header_preproc=yes 20315 ;; 20316 no:yes:* ) 20317 { echo "$as_me:$LINENO: WARNING: Magick++.h: present but cannot be compiled" >&5 20318echo "$as_me: WARNING: Magick++.h: present but cannot be compiled" >&2;} 20319 { echo "$as_me:$LINENO: WARNING: Magick++.h: check for missing prerequisite headers?" >&5 20320echo "$as_me: WARNING: Magick++.h: check for missing prerequisite headers?" >&2;} 20321 { echo "$as_me:$LINENO: WARNING: Magick++.h: see the Autoconf documentation" >&5 20322echo "$as_me: WARNING: Magick++.h: see the Autoconf documentation" >&2;} 20323 { echo "$as_me:$LINENO: WARNING: Magick++.h: section \"Present But Cannot Be Compiled\"" >&5 20324echo "$as_me: WARNING: Magick++.h: section \"Present But Cannot Be Compiled\"" >&2;} 20325 { echo "$as_me:$LINENO: WARNING: Magick++.h: proceeding with the preprocessor's result" >&5 20326echo "$as_me: WARNING: Magick++.h: proceeding with the preprocessor's result" >&2;} 20327 { echo "$as_me:$LINENO: WARNING: Magick++.h: in the future, the compiler will take precedence" >&5 20328echo "$as_me: WARNING: Magick++.h: in the future, the compiler will take precedence" >&2;} 20329 ( 20330 cat <<\_ASBOX 20331## -------------------------------------------- ## 20332## Report this to drussel@graphics.stanford.edu ## 20333## -------------------------------------------- ## 20334_ASBOX 20335 ) | 20336 sed "s/^/$as_me: WARNING: /" >&2 20337 ;; 20338esac 20339echo "$as_me:$LINENO: checking for Magick++.h" >&5 20340echo $ECHO_N "checking for Magick++.h... $ECHO_C" >&6 20341if test "${ac_cv_header_Magickpp_h+set}" = set; then 20342 echo $ECHO_N "(cached) $ECHO_C" >&6 20343else 20344 ac_cv_header_Magickpp_h=$ac_header_preproc 20345fi 20346echo "$as_me:$LINENO: result: $ac_cv_header_Magickpp_h" >&5 20347echo "${ECHO_T}$ac_cv_header_Magickpp_h" >&6 20348 20349fi 20350if test $ac_cv_header_Magickpp_h = yes; then 20351 pdb_magickh=yes 20352else 20353 pdb_magickh=no 20354fi 20355 20356 20357if test "$pdb_libmagick" == "yes" -a "$pdb_magickh" == "yes"; then 20358pdb_have_magick=yes 20359LDFLAGS="$LDFLAGS -lMagick++" 20360echo "#define PDB_USE_MAGICK" | cat >> include/dsrpdb/config.h 20361else 20362pdb_have_magick=no 20363fi 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 ac_config_files="$ac_config_files Makefile doc/Makefile doc/html/Makefile include/Makefile include/dsrpdb/Makefile include/dsrpdb_internal/Makefile include/tnt/Makefile lib/Makefile test/Makefile tools/Makefile" 20375cat >confcache <<\_ACEOF 20376# This file is a shell script that caches the results of configure 20377# tests run on this system so they can be shared between configure 20378# scripts and configure runs, see configure's option --config-cache. 20379# It is not useful on other systems. If it contains results you don't 20380# want to keep, you may remove or edit it. 20381# 20382# config.status only pays attention to the cache file if you give it 20383# the --recheck option to rerun configure. 20384# 20385# `ac_cv_env_foo' variables (set or unset) will be overridden when 20386# loading this file, other *unset* `ac_cv_foo' will be assigned the 20387# following values. 20388 20389_ACEOF 20390 20391# The following way of writing the cache mishandles newlines in values, 20392# but we know of no workaround that is simple, portable, and efficient. 20393# So, don't put newlines in cache variables' values. 20394# Ultrix sh set writes to stderr and can't be redirected directly, 20395# and sets the high bit in the cache file unless we assign to the vars. 20396{ 20397 (set) 2>&1 | 20398 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20399 *ac_space=\ *) 20400 # `set' does not quote correctly, so add quotes (double-quote 20401 # substitution turns \\\\ into \\, and sed turns \\ into \). 20402 sed -n \ 20403 "s/'/'\\\\''/g; 20404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20405 ;; 20406 *) 20407 # `set' quotes correctly as required by POSIX, so do not add quotes. 20408 sed -n \ 20409 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20410 ;; 20411 esac; 20412} | 20413 sed ' 20414 t clear 20415 : clear 20416 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20417 t end 20418 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20419 : end' >>confcache 20420if diff $cache_file confcache >/dev/null 2>&1; then :; else 20421 if test -w $cache_file; then 20422 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20423 cat confcache >$cache_file 20424 else 20425 echo "not updating unwritable cache $cache_file" 20426 fi 20427fi 20428rm -f confcache 20429 20430test "x$prefix" = xNONE && prefix=$ac_default_prefix 20431# Let make expand exec_prefix. 20432test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20433 20434# VPATH may cause trouble with some makes, so we remove $(srcdir), 20435# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20436# trailing colons and then remove the whole line if VPATH becomes empty 20437# (actually we leave an empty line to preserve line numbers). 20438if test "x$srcdir" = x.; then 20439 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20440s/:*\$(srcdir):*/:/; 20441s/:*\${srcdir}:*/:/; 20442s/:*@srcdir@:*/:/; 20443s/^\([^=]*=[ ]*\):*/\1/; 20444s/:*$//; 20445s/^[^=]*=[ ]*$//; 20446}' 20447fi 20448 20449DEFS=-DHAVE_CONFIG_H 20450 20451ac_libobjs= 20452ac_ltlibobjs= 20453for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20454 # 1. Remove the extension, and $U if already installed. 20455 ac_i=`echo "$ac_i" | 20456 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20457 # 2. Add them. 20458 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20459 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20460done 20461LIBOBJS=$ac_libobjs 20462 20463LTLIBOBJS=$ac_ltlibobjs 20464 20465 20466if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20467 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20468Usually this means the macro was only invoked conditionally." >&5 20469echo "$as_me: error: conditional \"AMDEP\" was never defined. 20470Usually this means the macro was only invoked conditionally." >&2;} 20471 { (exit 1); exit 1; }; } 20472fi 20473if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20474 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20475Usually this means the macro was only invoked conditionally." >&5 20476echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20477Usually this means the macro was only invoked conditionally." >&2;} 20478 { (exit 1); exit 1; }; } 20479fi 20480if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20481 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20482Usually this means the macro was only invoked conditionally." >&5 20483echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20484Usually this means the macro was only invoked conditionally." >&2;} 20485 { (exit 1); exit 1; }; } 20486fi 20487 20488: ${CONFIG_STATUS=./config.status} 20489ac_clean_files_save=$ac_clean_files 20490ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20491{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20492echo "$as_me: creating $CONFIG_STATUS" >&6;} 20493cat >$CONFIG_STATUS <<_ACEOF 20494#! $SHELL 20495# Generated by $as_me. 20496# Run this file to recreate the current configuration. 20497# Compiler output produced by configure, useful for debugging 20498# configure, is in config.log if it exists. 20499 20500debug=false 20501ac_cs_recheck=false 20502ac_cs_silent=false 20503SHELL=\${CONFIG_SHELL-$SHELL} 20504_ACEOF 20505 20506cat >>$CONFIG_STATUS <<\_ACEOF 20507## --------------------- ## 20508## M4sh Initialization. ## 20509## --------------------- ## 20510 20511# Be Bourne compatible 20512if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20513 emulate sh 20514 NULLCMD=: 20515 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20516 # is contrary to our usage. Disable this feature. 20517 alias -g '${1+"$@"}'='"$@"' 20518elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20519 set -o posix 20520fi 20521DUALCASE=1; export DUALCASE # for MKS sh 20522 20523# Support unset when possible. 20524if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20525 as_unset=unset 20526else 20527 as_unset=false 20528fi 20529 20530 20531# Work around bugs in pre-3.0 UWIN ksh. 20532$as_unset ENV MAIL MAILPATH 20533PS1='$ ' 20534PS2='> ' 20535PS4='+ ' 20536 20537# NLS nuisances. 20538for as_var in \ 20539 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20540 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20541 LC_TELEPHONE LC_TIME 20542do 20543 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20544 eval $as_var=C; export $as_var 20545 else 20546 $as_unset $as_var 20547 fi 20548done 20549 20550# Required to use basename. 20551if expr a : '\(a\)' >/dev/null 2>&1; then 20552 as_expr=expr 20553else 20554 as_expr=false 20555fi 20556 20557if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20558 as_basename=basename 20559else 20560 as_basename=false 20561fi 20562 20563 20564# Name of the executable. 20565as_me=`$as_basename "$0" || 20566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20567 X"$0" : 'X\(//\)$' \| \ 20568 X"$0" : 'X\(/\)$' \| \ 20569 . : '\(.\)' 2>/dev/null || 20570echo X/"$0" | 20571 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20572 /^X\/\(\/\/\)$/{ s//\1/; q; } 20573 /^X\/\(\/\).*/{ s//\1/; q; } 20574 s/.*/./; q'` 20575 20576 20577# PATH needs CR, and LINENO needs CR and PATH. 20578# Avoid depending upon Character Ranges. 20579as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20580as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20581as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20582as_cr_digits='0123456789' 20583as_cr_alnum=$as_cr_Letters$as_cr_digits 20584 20585# The user is always right. 20586if test "${PATH_SEPARATOR+set}" != set; then 20587 echo "#! /bin/sh" >conf$$.sh 20588 echo "exit 0" >>conf$$.sh 20589 chmod +x conf$$.sh 20590 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20591 PATH_SEPARATOR=';' 20592 else 20593 PATH_SEPARATOR=: 20594 fi 20595 rm -f conf$$.sh 20596fi 20597 20598 20599 as_lineno_1=$LINENO 20600 as_lineno_2=$LINENO 20601 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20602 test "x$as_lineno_1" != "x$as_lineno_2" && 20603 test "x$as_lineno_3" = "x$as_lineno_2" || { 20604 # Find who we are. Look in the path if we contain no path at all 20605 # relative or not. 20606 case $0 in 20607 *[\\/]* ) as_myself=$0 ;; 20608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20609for as_dir in $PATH 20610do 20611 IFS=$as_save_IFS 20612 test -z "$as_dir" && as_dir=. 20613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20614done 20615 20616 ;; 20617 esac 20618 # We did not find ourselves, most probably we were run as `sh COMMAND' 20619 # in which case we are not to be found in the path. 20620 if test "x$as_myself" = x; then 20621 as_myself=$0 20622 fi 20623 if test ! -f "$as_myself"; then 20624 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20625echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20626 { (exit 1); exit 1; }; } 20627 fi 20628 case $CONFIG_SHELL in 20629 '') 20630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20631for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20632do 20633 IFS=$as_save_IFS 20634 test -z "$as_dir" && as_dir=. 20635 for as_base in sh bash ksh sh5; do 20636 case $as_dir in 20637 /*) 20638 if ("$as_dir/$as_base" -c ' 20639 as_lineno_1=$LINENO 20640 as_lineno_2=$LINENO 20641 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20642 test "x$as_lineno_1" != "x$as_lineno_2" && 20643 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20644 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20645 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20646 CONFIG_SHELL=$as_dir/$as_base 20647 export CONFIG_SHELL 20648 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20649 fi;; 20650 esac 20651 done 20652done 20653;; 20654 esac 20655 20656 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20657 # uniformly replaced by the line number. The first 'sed' inserts a 20658 # line-number line before each line; the second 'sed' does the real 20659 # work. The second script uses 'N' to pair each line-number line 20660 # with the numbered line, and appends trailing '-' during 20661 # substitution so that $LINENO is not a special case at line end. 20662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20663 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20664 sed '=' <$as_myself | 20665 sed ' 20666 N 20667 s,$,-, 20668 : loop 20669 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20670 t loop 20671 s,-$,, 20672 s,^['$as_cr_digits']*\n,, 20673 ' >$as_me.lineno && 20674 chmod +x $as_me.lineno || 20675 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20676echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20677 { (exit 1); exit 1; }; } 20678 20679 # Don't try to exec as it changes $[0], causing all sort of problems 20680 # (the dirname of $[0] is not the place where we might find the 20681 # original and so on. Autoconf is especially sensible to this). 20682 . ./$as_me.lineno 20683 # Exit status is that of the last command. 20684 exit 20685} 20686 20687 20688case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20689 *c*,-n*) ECHO_N= ECHO_C=' 20690' ECHO_T=' ' ;; 20691 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20692 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20693esac 20694 20695if expr a : '\(a\)' >/dev/null 2>&1; then 20696 as_expr=expr 20697else 20698 as_expr=false 20699fi 20700 20701rm -f conf$$ conf$$.exe conf$$.file 20702echo >conf$$.file 20703if ln -s conf$$.file conf$$ 2>/dev/null; then 20704 # We could just check for DJGPP; but this test a) works b) is more generic 20705 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20706 if test -f conf$$.exe; then 20707 # Don't use ln at all; we don't have any links 20708 as_ln_s='cp -p' 20709 else 20710 as_ln_s='ln -s' 20711 fi 20712elif ln conf$$.file conf$$ 2>/dev/null; then 20713 as_ln_s=ln 20714else 20715 as_ln_s='cp -p' 20716fi 20717rm -f conf$$ conf$$.exe conf$$.file 20718 20719if mkdir -p . 2>/dev/null; then 20720 as_mkdir_p=: 20721else 20722 test -d ./-p && rmdir ./-p 20723 as_mkdir_p=false 20724fi 20725 20726as_executable_p="test -f" 20727 20728# Sed expression to map a string onto a valid CPP name. 20729as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20730 20731# Sed expression to map a string onto a valid variable name. 20732as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20733 20734 20735# IFS 20736# We need space, tab and new line, in precisely that order. 20737as_nl=' 20738' 20739IFS=" $as_nl" 20740 20741# CDPATH. 20742$as_unset CDPATH 20743 20744exec 6>&1 20745 20746# Open the log real soon, to keep \$[0] and so on meaningful, and to 20747# report actual input values of CONFIG_FILES etc. instead of their 20748# values after options handling. Logging --version etc. is OK. 20749exec 5>>config.log 20750{ 20751 echo 20752 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20753## Running $as_me. ## 20754_ASBOX 20755} >&5 20756cat >&5 <<_CSEOF 20757 20758This file was extended by src/Residue.cc $as_me 1.0.3, which was 20759generated by GNU Autoconf 2.59. Invocation command line was 20760 20761 CONFIG_FILES = $CONFIG_FILES 20762 CONFIG_HEADERS = $CONFIG_HEADERS 20763 CONFIG_LINKS = $CONFIG_LINKS 20764 CONFIG_COMMANDS = $CONFIG_COMMANDS 20765 $ $0 $@ 20766 20767_CSEOF 20768echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20769echo >&5 20770_ACEOF 20771 20772# Files that config.status was made for. 20773if test -n "$ac_config_files"; then 20774 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20775fi 20776 20777if test -n "$ac_config_headers"; then 20778 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20779fi 20780 20781if test -n "$ac_config_links"; then 20782 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20783fi 20784 20785if test -n "$ac_config_commands"; then 20786 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20787fi 20788 20789cat >>$CONFIG_STATUS <<\_ACEOF 20790 20791ac_cs_usage="\ 20792\`$as_me' instantiates files from templates according to the 20793current configuration. 20794 20795Usage: $0 [OPTIONS] [FILE]... 20796 20797 -h, --help print this help, then exit 20798 -V, --version print version number, then exit 20799 -q, --quiet do not print progress messages 20800 -d, --debug don't remove temporary files 20801 --recheck update $as_me by reconfiguring in the same conditions 20802 --file=FILE[:TEMPLATE] 20803 instantiate the configuration file FILE 20804 --header=FILE[:TEMPLATE] 20805 instantiate the configuration header FILE 20806 20807Configuration files: 20808$config_files 20809 20810Configuration headers: 20811$config_headers 20812 20813Configuration commands: 20814$config_commands 20815 20816Report bugs to <bug-autoconf@gnu.org>." 20817_ACEOF 20818 20819cat >>$CONFIG_STATUS <<_ACEOF 20820ac_cs_version="\\ 20821src/Residue.cc config.status 1.0.3 20822configured by $0, generated by GNU Autoconf 2.59, 20823 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20824 20825Copyright (C) 2003 Free Software Foundation, Inc. 20826This config.status script is free software; the Free Software Foundation 20827gives unlimited permission to copy, distribute and modify it." 20828srcdir=$srcdir 20829INSTALL="$INSTALL" 20830_ACEOF 20831 20832cat >>$CONFIG_STATUS <<\_ACEOF 20833# If no file are specified by the user, then we need to provide default 20834# value. By we need to know if files were specified by the user. 20835ac_need_defaults=: 20836while test $# != 0 20837do 20838 case $1 in 20839 --*=*) 20840 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20841 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20842 ac_shift=: 20843 ;; 20844 -*) 20845 ac_option=$1 20846 ac_optarg=$2 20847 ac_shift=shift 20848 ;; 20849 *) # This is not an option, so the user has probably given explicit 20850 # arguments. 20851 ac_option=$1 20852 ac_need_defaults=false;; 20853 esac 20854 20855 case $ac_option in 20856 # Handling of the options. 20857_ACEOF 20858cat >>$CONFIG_STATUS <<\_ACEOF 20859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20860 ac_cs_recheck=: ;; 20861 --version | --vers* | -V ) 20862 echo "$ac_cs_version"; exit 0 ;; 20863 --he | --h) 20864 # Conflict between --help and --header 20865 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20866Try \`$0 --help' for more information." >&5 20867echo "$as_me: error: ambiguous option: $1 20868Try \`$0 --help' for more information." >&2;} 20869 { (exit 1); exit 1; }; };; 20870 --help | --hel | -h ) 20871 echo "$ac_cs_usage"; exit 0 ;; 20872 --debug | --d* | -d ) 20873 debug=: ;; 20874 --file | --fil | --fi | --f ) 20875 $ac_shift 20876 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20877 ac_need_defaults=false;; 20878 --header | --heade | --head | --hea ) 20879 $ac_shift 20880 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20881 ac_need_defaults=false;; 20882 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20883 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20884 ac_cs_silent=: ;; 20885 20886 # This is an error. 20887 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20888Try \`$0 --help' for more information." >&5 20889echo "$as_me: error: unrecognized option: $1 20890Try \`$0 --help' for more information." >&2;} 20891 { (exit 1); exit 1; }; } ;; 20892 20893 *) ac_config_targets="$ac_config_targets $1" ;; 20894 20895 esac 20896 shift 20897done 20898 20899ac_configure_extra_args= 20900 20901if $ac_cs_silent; then 20902 exec 6>/dev/null 20903 ac_configure_extra_args="$ac_configure_extra_args --silent" 20904fi 20905 20906_ACEOF 20907cat >>$CONFIG_STATUS <<_ACEOF 20908if \$ac_cs_recheck; then 20909 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20910 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20911fi 20912 20913_ACEOF 20914 20915cat >>$CONFIG_STATUS <<_ACEOF 20916# 20917# INIT-COMMANDS section. 20918# 20919 20920AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20921 20922_ACEOF 20923 20924 20925 20926cat >>$CONFIG_STATUS <<\_ACEOF 20927for ac_config_target in $ac_config_targets 20928do 20929 case "$ac_config_target" in 20930 # Handling of arguments. 20931 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20932 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20933 "doc/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; 20934 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20935 "include/dsrpdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/dsrpdb/Makefile" ;; 20936 "include/dsrpdb_internal/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/dsrpdb_internal/Makefile" ;; 20937 "include/tnt/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/tnt/Makefile" ;; 20938 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 20939 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20940 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 20941 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20942 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20943 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20944echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20945 { (exit 1); exit 1; }; };; 20946 esac 20947done 20948 20949# If the user did not use the arguments to specify the items to instantiate, 20950# then the envvar interface is used. Set only those that are not. 20951# We use the long form for the default assignment because of an extremely 20952# bizarre bug on SunOS 4.1.3. 20953if $ac_need_defaults; then 20954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20955 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20956 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20957fi 20958 20959# Have a temporary directory for convenience. Make it in the build tree 20960# simply because there is no reason to put it here, and in addition, 20961# creating and moving files from /tmp can sometimes cause problems. 20962# Create a temporary directory, and hook for its removal unless debugging. 20963$debug || 20964{ 20965 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20966 trap '{ (exit 1); exit 1; }' 1 2 13 15 20967} 20968 20969# Create a (secure) tmp directory for tmp files. 20970 20971{ 20972 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20973 test -n "$tmp" && test -d "$tmp" 20974} || 20975{ 20976 tmp=./confstat$$-$RANDOM 20977 (umask 077 && mkdir $tmp) 20978} || 20979{ 20980 echo "$me: cannot create a temporary directory in ." >&2 20981 { (exit 1); exit 1; } 20982} 20983 20984_ACEOF 20985 20986cat >>$CONFIG_STATUS <<_ACEOF 20987 20988# 20989# CONFIG_FILES section. 20990# 20991 20992# No need to generate the scripts if there are no CONFIG_FILES. 20993# This happens for instance when ./config.status config.h 20994if test -n "\$CONFIG_FILES"; then 20995 # Protect against being on the right side of a sed subst in config.status. 20996 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20997 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20998s,@SHELL@,$SHELL,;t t 20999s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21000s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21001s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21002s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21003s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21004s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21005s,@exec_prefix@,$exec_prefix,;t t 21006s,@prefix@,$prefix,;t t 21007s,@program_transform_name@,$program_transform_name,;t t 21008s,@bindir@,$bindir,;t t 21009s,@sbindir@,$sbindir,;t t 21010s,@libexecdir@,$libexecdir,;t t 21011s,@datadir@,$datadir,;t t 21012s,@sysconfdir@,$sysconfdir,;t t 21013s,@sharedstatedir@,$sharedstatedir,;t t 21014s,@localstatedir@,$localstatedir,;t t 21015s,@libdir@,$libdir,;t t 21016s,@includedir@,$includedir,;t t 21017s,@oldincludedir@,$oldincludedir,;t t 21018s,@infodir@,$infodir,;t t 21019s,@mandir@,$mandir,;t t 21020s,@build_alias@,$build_alias,;t t 21021s,@host_alias@,$host_alias,;t t 21022s,@target_alias@,$target_alias,;t t 21023s,@DEFS@,$DEFS,;t t 21024s,@ECHO_C@,$ECHO_C,;t t 21025s,@ECHO_N@,$ECHO_N,;t t 21026s,@ECHO_T@,$ECHO_T,;t t 21027s,@LIBS@,$LIBS,;t t 21028s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21029s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21030s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21031s,@CYGPATH_W@,$CYGPATH_W,;t t 21032s,@PACKAGE@,$PACKAGE,;t t 21033s,@VERSION@,$VERSION,;t t 21034s,@ACLOCAL@,$ACLOCAL,;t t 21035s,@AUTOCONF@,$AUTOCONF,;t t 21036s,@AUTOMAKE@,$AUTOMAKE,;t t 21037s,@AUTOHEADER@,$AUTOHEADER,;t t 21038s,@MAKEINFO@,$MAKEINFO,;t t 21039s,@install_sh@,$install_sh,;t t 21040s,@STRIP@,$STRIP,;t t 21041s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 21042s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 21043s,@mkdir_p@,$mkdir_p,;t t 21044s,@AWK@,$AWK,;t t 21045s,@SET_MAKE@,$SET_MAKE,;t t 21046s,@am__leading_dot@,$am__leading_dot,;t t 21047s,@AMTAR@,$AMTAR,;t t 21048s,@am__tar@,$am__tar,;t t 21049s,@am__untar@,$am__untar,;t t 21050s,@CXX@,$CXX,;t t 21051s,@CXXFLAGS@,$CXXFLAGS,;t t 21052s,@LDFLAGS@,$LDFLAGS,;t t 21053s,@CPPFLAGS@,$CPPFLAGS,;t t 21054s,@ac_ct_CXX@,$ac_ct_CXX,;t t 21055s,@EXEEXT@,$EXEEXT,;t t 21056s,@OBJEXT@,$OBJEXT,;t t 21057s,@DEPDIR@,$DEPDIR,;t t 21058s,@am__include@,$am__include,;t t 21059s,@am__quote@,$am__quote,;t t 21060s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 21061s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 21062s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 21063s,@CXXDEPMODE@,$CXXDEPMODE,;t t 21064s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 21065s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 21066s,@CC@,$CC,;t t 21067s,@CFLAGS@,$CFLAGS,;t t 21068s,@ac_ct_CC@,$ac_ct_CC,;t t 21069s,@CCDEPMODE@,$CCDEPMODE,;t t 21070s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 21071s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 21072s,@CPP@,$CPP,;t t 21073s,@LN_S@,$LN_S,;t t 21074s,@build@,$build,;t t 21075s,@build_cpu@,$build_cpu,;t t 21076s,@build_vendor@,$build_vendor,;t t 21077s,@build_os@,$build_os,;t t 21078s,@host@,$host,;t t 21079s,@host_cpu@,$host_cpu,;t t 21080s,@host_vendor@,$host_vendor,;t t 21081s,@host_os@,$host_os,;t t 21082s,@EGREP@,$EGREP,;t t 21083s,@ECHO@,$ECHO,;t t 21084s,@AR@,$AR,;t t 21085s,@ac_ct_AR@,$ac_ct_AR,;t t 21086s,@RANLIB@,$RANLIB,;t t 21087s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21088s,@CXXCPP@,$CXXCPP,;t t 21089s,@F77@,$F77,;t t 21090s,@FFLAGS@,$FFLAGS,;t t 21091s,@ac_ct_F77@,$ac_ct_F77,;t t 21092s,@LIBTOOL@,$LIBTOOL,;t t 21093s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t 21094s,@LIBOBJS@,$LIBOBJS,;t t 21095s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21096CEOF 21097 21098_ACEOF 21099 21100 cat >>$CONFIG_STATUS <<\_ACEOF 21101 # Split the substitutions into bite-sized pieces for seds with 21102 # small command number limits, like on Digital OSF/1 and HP-UX. 21103 ac_max_sed_lines=48 21104 ac_sed_frag=1 # Number of current file. 21105 ac_beg=1 # First line for current file. 21106 ac_end=$ac_max_sed_lines # Line after last line for current file. 21107 ac_more_lines=: 21108 ac_sed_cmds= 21109 while $ac_more_lines; do 21110 if test $ac_beg -gt 1; then 21111 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21112 else 21113 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21114 fi 21115 if test ! -s $tmp/subs.frag; then 21116 ac_more_lines=false 21117 else 21118 # The purpose of the label and of the branching condition is to 21119 # speed up the sed processing (if there are no `@' at all, there 21120 # is no need to browse any of the substitutions). 21121 # These are the two extra sed commands mentioned above. 21122 (echo ':t 21123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21124 if test -z "$ac_sed_cmds"; then 21125 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21126 else 21127 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21128 fi 21129 ac_sed_frag=`expr $ac_sed_frag + 1` 21130 ac_beg=$ac_end 21131 ac_end=`expr $ac_end + $ac_max_sed_lines` 21132 fi 21133 done 21134 if test -z "$ac_sed_cmds"; then 21135 ac_sed_cmds=cat 21136 fi 21137fi # test -n "$CONFIG_FILES" 21138 21139_ACEOF 21140cat >>$CONFIG_STATUS <<\_ACEOF 21141for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21142 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21143 case $ac_file in 21144 - | *:- | *:-:* ) # input from stdin 21145 cat >$tmp/stdin 21146 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21147 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21148 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21150 * ) ac_file_in=$ac_file.in ;; 21151 esac 21152 21153 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21154 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21155$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21156 X"$ac_file" : 'X\(//\)[^/]' \| \ 21157 X"$ac_file" : 'X\(//\)$' \| \ 21158 X"$ac_file" : 'X\(/\)' \| \ 21159 . : '\(.\)' 2>/dev/null || 21160echo X"$ac_file" | 21161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21162 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21163 /^X\(\/\/\)$/{ s//\1/; q; } 21164 /^X\(\/\).*/{ s//\1/; q; } 21165 s/.*/./; q'` 21166 { if $as_mkdir_p; then 21167 mkdir -p "$ac_dir" 21168 else 21169 as_dir="$ac_dir" 21170 as_dirs= 21171 while test ! -d "$as_dir"; do 21172 as_dirs="$as_dir $as_dirs" 21173 as_dir=`(dirname "$as_dir") 2>/dev/null || 21174$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21175 X"$as_dir" : 'X\(//\)[^/]' \| \ 21176 X"$as_dir" : 'X\(//\)$' \| \ 21177 X"$as_dir" : 'X\(/\)' \| \ 21178 . : '\(.\)' 2>/dev/null || 21179echo X"$as_dir" | 21180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21181 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21182 /^X\(\/\/\)$/{ s//\1/; q; } 21183 /^X\(\/\).*/{ s//\1/; q; } 21184 s/.*/./; q'` 21185 done 21186 test ! -n "$as_dirs" || mkdir $as_dirs 21187 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21188echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21189 { (exit 1); exit 1; }; }; } 21190 21191 ac_builddir=. 21192 21193if test "$ac_dir" != .; then 21194 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21195 # A "../" for each directory in $ac_dir_suffix. 21196 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21197else 21198 ac_dir_suffix= ac_top_builddir= 21199fi 21200 21201case $srcdir in 21202 .) # No --srcdir option. We are building in place. 21203 ac_srcdir=. 21204 if test -z "$ac_top_builddir"; then 21205 ac_top_srcdir=. 21206 else 21207 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21208 fi ;; 21209 [\\/]* | ?:[\\/]* ) # Absolute path. 21210 ac_srcdir=$srcdir$ac_dir_suffix; 21211 ac_top_srcdir=$srcdir ;; 21212 *) # Relative path. 21213 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21214 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21215esac 21216 21217# Do not use `cd foo && pwd` to compute absolute paths, because 21218# the directories may not exist. 21219case `pwd` in 21220.) ac_abs_builddir="$ac_dir";; 21221*) 21222 case "$ac_dir" in 21223 .) ac_abs_builddir=`pwd`;; 21224 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21225 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21226 esac;; 21227esac 21228case $ac_abs_builddir in 21229.) ac_abs_top_builddir=${ac_top_builddir}.;; 21230*) 21231 case ${ac_top_builddir}. in 21232 .) ac_abs_top_builddir=$ac_abs_builddir;; 21233 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21234 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21235 esac;; 21236esac 21237case $ac_abs_builddir in 21238.) ac_abs_srcdir=$ac_srcdir;; 21239*) 21240 case $ac_srcdir in 21241 .) ac_abs_srcdir=$ac_abs_builddir;; 21242 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21243 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21244 esac;; 21245esac 21246case $ac_abs_builddir in 21247.) ac_abs_top_srcdir=$ac_top_srcdir;; 21248*) 21249 case $ac_top_srcdir in 21250 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21251 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21252 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21253 esac;; 21254esac 21255 21256 21257 case $INSTALL in 21258 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21259 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21260 esac 21261 21262 if test x"$ac_file" != x-; then 21263 { echo "$as_me:$LINENO: creating $ac_file" >&5 21264echo "$as_me: creating $ac_file" >&6;} 21265 rm -f "$ac_file" 21266 fi 21267 # Let's still pretend it is `configure' which instantiates (i.e., don't 21268 # use $as_me), people would be surprised to read: 21269 # /* config.h. Generated by config.status. */ 21270 if test x"$ac_file" = x-; then 21271 configure_input= 21272 else 21273 configure_input="$ac_file. " 21274 fi 21275 configure_input=$configure_input"Generated from `echo $ac_file_in | 21276 sed 's,.*/,,'` by configure." 21277 21278 # First look for the input files in the build tree, otherwise in the 21279 # src tree. 21280 ac_file_inputs=`IFS=: 21281 for f in $ac_file_in; do 21282 case $f in 21283 -) echo $tmp/stdin ;; 21284 [\\/$]*) 21285 # Absolute (can't be DOS-style, as IFS=:) 21286 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21287echo "$as_me: error: cannot find input file: $f" >&2;} 21288 { (exit 1); exit 1; }; } 21289 echo "$f";; 21290 *) # Relative 21291 if test -f "$f"; then 21292 # Build tree 21293 echo "$f" 21294 elif test -f "$srcdir/$f"; then 21295 # Source tree 21296 echo "$srcdir/$f" 21297 else 21298 # /dev/null tree 21299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21300echo "$as_me: error: cannot find input file: $f" >&2;} 21301 { (exit 1); exit 1; }; } 21302 fi;; 21303 esac 21304 done` || { (exit 1); exit 1; } 21305_ACEOF 21306cat >>$CONFIG_STATUS <<_ACEOF 21307 sed "$ac_vpsub 21308$extrasub 21309_ACEOF 21310cat >>$CONFIG_STATUS <<\_ACEOF 21311:t 21312/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21313s,@configure_input@,$configure_input,;t t 21314s,@srcdir@,$ac_srcdir,;t t 21315s,@abs_srcdir@,$ac_abs_srcdir,;t t 21316s,@top_srcdir@,$ac_top_srcdir,;t t 21317s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21318s,@builddir@,$ac_builddir,;t t 21319s,@abs_builddir@,$ac_abs_builddir,;t t 21320s,@top_builddir@,$ac_top_builddir,;t t 21321s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21322s,@INSTALL@,$ac_INSTALL,;t t 21323" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21324 rm -f $tmp/stdin 21325 if test x"$ac_file" != x-; then 21326 mv $tmp/out $ac_file 21327 else 21328 cat $tmp/out 21329 rm -f $tmp/out 21330 fi 21331 21332done 21333_ACEOF 21334cat >>$CONFIG_STATUS <<\_ACEOF 21335 21336# 21337# CONFIG_HEADER section. 21338# 21339 21340# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21341# NAME is the cpp macro being defined and VALUE is the value it is being given. 21342# 21343# ac_d sets the value in "#define NAME VALUE" lines. 21344ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21345ac_dB='[ ].*$,\1#\2' 21346ac_dC=' ' 21347ac_dD=',;t' 21348# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21349ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21350ac_uB='$,\1#\2define\3' 21351ac_uC=' ' 21352ac_uD=',;t' 21353 21354for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21356 case $ac_file in 21357 - | *:- | *:-:* ) # input from stdin 21358 cat >$tmp/stdin 21359 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21361 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21362 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21363 * ) ac_file_in=$ac_file.in ;; 21364 esac 21365 21366 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21367echo "$as_me: creating $ac_file" >&6;} 21368 21369 # First look for the input files in the build tree, otherwise in the 21370 # src tree. 21371 ac_file_inputs=`IFS=: 21372 for f in $ac_file_in; do 21373 case $f in 21374 -) echo $tmp/stdin ;; 21375 [\\/$]*) 21376 # Absolute (can't be DOS-style, as IFS=:) 21377 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21378echo "$as_me: error: cannot find input file: $f" >&2;} 21379 { (exit 1); exit 1; }; } 21380 # Do quote $f, to prevent DOS paths from being IFS'd. 21381 echo "$f";; 21382 *) # Relative 21383 if test -f "$f"; then 21384 # Build tree 21385 echo "$f" 21386 elif test -f "$srcdir/$f"; then 21387 # Source tree 21388 echo "$srcdir/$f" 21389 else 21390 # /dev/null tree 21391 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21392echo "$as_me: error: cannot find input file: $f" >&2;} 21393 { (exit 1); exit 1; }; } 21394 fi;; 21395 esac 21396 done` || { (exit 1); exit 1; } 21397 # Remove the trailing spaces. 21398 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21399 21400_ACEOF 21401 21402# Transform confdefs.h into two sed scripts, `conftest.defines' and 21403# `conftest.undefs', that substitutes the proper values into 21404# config.h.in to produce config.h. The first handles `#define' 21405# templates, and the second `#undef' templates. 21406# And first: Protect against being on the right side of a sed subst in 21407# config.status. Protect against being in an unquoted here document 21408# in config.status. 21409rm -f conftest.defines conftest.undefs 21410# Using a here document instead of a string reduces the quoting nightmare. 21411# Putting comments in sed scripts is not portable. 21412# 21413# `end' is used to avoid that the second main sed command (meant for 21414# 0-ary CPP macros) applies to n-ary macro definitions. 21415# See the Autoconf documentation for `clear'. 21416cat >confdef2sed.sed <<\_ACEOF 21417s/[\\&,]/\\&/g 21418s,[\\$`],\\&,g 21419t clear 21420: clear 21421s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21422t end 21423s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21424: end 21425_ACEOF 21426# If some macros were called several times there might be several times 21427# the same #defines, which is useless. Nevertheless, we may not want to 21428# sort them, since we want the *last* AC-DEFINE to be honored. 21429uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21430sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21431rm -f confdef2sed.sed 21432 21433# This sed command replaces #undef with comments. This is necessary, for 21434# example, in the case of _POSIX_SOURCE, which is predefined and required 21435# on some systems where configure will not decide to define it. 21436cat >>conftest.undefs <<\_ACEOF 21437s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21438_ACEOF 21439 21440# Break up conftest.defines because some shells have a limit on the size 21441# of here documents, and old seds have small limits too (100 cmds). 21442echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21443echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21444echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21445echo ' :' >>$CONFIG_STATUS 21446rm -f conftest.tail 21447while grep . conftest.defines >/dev/null 21448do 21449 # Write a limited-size here document to $tmp/defines.sed. 21450 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21451 # Speed up: don't consider the non `#define' lines. 21452 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21453 # Work around the forget-to-reset-the-flag bug. 21454 echo 't clr' >>$CONFIG_STATUS 21455 echo ': clr' >>$CONFIG_STATUS 21456 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21457 echo 'CEOF 21458 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21459 rm -f $tmp/in 21460 mv $tmp/out $tmp/in 21461' >>$CONFIG_STATUS 21462 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21463 rm -f conftest.defines 21464 mv conftest.tail conftest.defines 21465done 21466rm -f conftest.defines 21467echo ' fi # grep' >>$CONFIG_STATUS 21468echo >>$CONFIG_STATUS 21469 21470# Break up conftest.undefs because some shells have a limit on the size 21471# of here documents, and old seds have small limits too (100 cmds). 21472echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21473rm -f conftest.tail 21474while grep . conftest.undefs >/dev/null 21475do 21476 # Write a limited-size here document to $tmp/undefs.sed. 21477 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21478 # Speed up: don't consider the non `#undef' 21479 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21480 # Work around the forget-to-reset-the-flag bug. 21481 echo 't clr' >>$CONFIG_STATUS 21482 echo ': clr' >>$CONFIG_STATUS 21483 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21484 echo 'CEOF 21485 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21486 rm -f $tmp/in 21487 mv $tmp/out $tmp/in 21488' >>$CONFIG_STATUS 21489 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21490 rm -f conftest.undefs 21491 mv conftest.tail conftest.undefs 21492done 21493rm -f conftest.undefs 21494 21495cat >>$CONFIG_STATUS <<\_ACEOF 21496 # Let's still pretend it is `configure' which instantiates (i.e., don't 21497 # use $as_me), people would be surprised to read: 21498 # /* config.h. Generated by config.status. */ 21499 if test x"$ac_file" = x-; then 21500 echo "/* Generated by configure. */" >$tmp/config.h 21501 else 21502 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21503 fi 21504 cat $tmp/in >>$tmp/config.h 21505 rm -f $tmp/in 21506 if test x"$ac_file" != x-; then 21507 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21508 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21509echo "$as_me: $ac_file is unchanged" >&6;} 21510 else 21511 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21512$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21513 X"$ac_file" : 'X\(//\)[^/]' \| \ 21514 X"$ac_file" : 'X\(//\)$' \| \ 21515 X"$ac_file" : 'X\(/\)' \| \ 21516 . : '\(.\)' 2>/dev/null || 21517echo X"$ac_file" | 21518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21519 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21520 /^X\(\/\/\)$/{ s//\1/; q; } 21521 /^X\(\/\).*/{ s//\1/; q; } 21522 s/.*/./; q'` 21523 { if $as_mkdir_p; then 21524 mkdir -p "$ac_dir" 21525 else 21526 as_dir="$ac_dir" 21527 as_dirs= 21528 while test ! -d "$as_dir"; do 21529 as_dirs="$as_dir $as_dirs" 21530 as_dir=`(dirname "$as_dir") 2>/dev/null || 21531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21532 X"$as_dir" : 'X\(//\)[^/]' \| \ 21533 X"$as_dir" : 'X\(//\)$' \| \ 21534 X"$as_dir" : 'X\(/\)' \| \ 21535 . : '\(.\)' 2>/dev/null || 21536echo X"$as_dir" | 21537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21538 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21539 /^X\(\/\/\)$/{ s//\1/; q; } 21540 /^X\(\/\).*/{ s//\1/; q; } 21541 s/.*/./; q'` 21542 done 21543 test ! -n "$as_dirs" || mkdir $as_dirs 21544 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21545echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21546 { (exit 1); exit 1; }; }; } 21547 21548 rm -f $ac_file 21549 mv $tmp/config.h $ac_file 21550 fi 21551 else 21552 cat $tmp/config.h 21553 rm -f $tmp/config.h 21554 fi 21555# Compute $ac_file's index in $config_headers. 21556_am_stamp_count=1 21557for _am_header in $config_headers :; do 21558 case $_am_header in 21559 $ac_file | $ac_file:* ) 21560 break ;; 21561 * ) 21562 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21563 esac 21564done 21565echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 21566$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21567 X$ac_file : 'X\(//\)[^/]' \| \ 21568 X$ac_file : 'X\(//\)$' \| \ 21569 X$ac_file : 'X\(/\)' \| \ 21570 . : '\(.\)' 2>/dev/null || 21571echo X$ac_file | 21572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21573 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21574 /^X\(\/\/\)$/{ s//\1/; q; } 21575 /^X\(\/\).*/{ s//\1/; q; } 21576 s/.*/./; q'`/stamp-h$_am_stamp_count 21577done 21578_ACEOF 21579cat >>$CONFIG_STATUS <<\_ACEOF 21580 21581# 21582# CONFIG_COMMANDS section. 21583# 21584for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21585 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21586 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21587 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21588$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21589 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21590 X"$ac_dest" : 'X\(//\)$' \| \ 21591 X"$ac_dest" : 'X\(/\)' \| \ 21592 . : '\(.\)' 2>/dev/null || 21593echo X"$ac_dest" | 21594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21595 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21596 /^X\(\/\/\)$/{ s//\1/; q; } 21597 /^X\(\/\).*/{ s//\1/; q; } 21598 s/.*/./; q'` 21599 { if $as_mkdir_p; then 21600 mkdir -p "$ac_dir" 21601 else 21602 as_dir="$ac_dir" 21603 as_dirs= 21604 while test ! -d "$as_dir"; do 21605 as_dirs="$as_dir $as_dirs" 21606 as_dir=`(dirname "$as_dir") 2>/dev/null || 21607$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21608 X"$as_dir" : 'X\(//\)[^/]' \| \ 21609 X"$as_dir" : 'X\(//\)$' \| \ 21610 X"$as_dir" : 'X\(/\)' \| \ 21611 . : '\(.\)' 2>/dev/null || 21612echo X"$as_dir" | 21613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21614 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21615 /^X\(\/\/\)$/{ s//\1/; q; } 21616 /^X\(\/\).*/{ s//\1/; q; } 21617 s/.*/./; q'` 21618 done 21619 test ! -n "$as_dirs" || mkdir $as_dirs 21620 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21621echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21622 { (exit 1); exit 1; }; }; } 21623 21624 ac_builddir=. 21625 21626if test "$ac_dir" != .; then 21627 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21628 # A "../" for each directory in $ac_dir_suffix. 21629 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21630else 21631 ac_dir_suffix= ac_top_builddir= 21632fi 21633 21634case $srcdir in 21635 .) # No --srcdir option. We are building in place. 21636 ac_srcdir=. 21637 if test -z "$ac_top_builddir"; then 21638 ac_top_srcdir=. 21639 else 21640 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21641 fi ;; 21642 [\\/]* | ?:[\\/]* ) # Absolute path. 21643 ac_srcdir=$srcdir$ac_dir_suffix; 21644 ac_top_srcdir=$srcdir ;; 21645 *) # Relative path. 21646 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21647 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21648esac 21649 21650# Do not use `cd foo && pwd` to compute absolute paths, because 21651# the directories may not exist. 21652case `pwd` in 21653.) ac_abs_builddir="$ac_dir";; 21654*) 21655 case "$ac_dir" in 21656 .) ac_abs_builddir=`pwd`;; 21657 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21658 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21659 esac;; 21660esac 21661case $ac_abs_builddir in 21662.) ac_abs_top_builddir=${ac_top_builddir}.;; 21663*) 21664 case ${ac_top_builddir}. in 21665 .) ac_abs_top_builddir=$ac_abs_builddir;; 21666 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21667 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21668 esac;; 21669esac 21670case $ac_abs_builddir in 21671.) ac_abs_srcdir=$ac_srcdir;; 21672*) 21673 case $ac_srcdir in 21674 .) ac_abs_srcdir=$ac_abs_builddir;; 21675 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21676 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21677 esac;; 21678esac 21679case $ac_abs_builddir in 21680.) ac_abs_top_srcdir=$ac_top_srcdir;; 21681*) 21682 case $ac_top_srcdir in 21683 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21684 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21685 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21686 esac;; 21687esac 21688 21689 21690 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21691echo "$as_me: executing $ac_dest commands" >&6;} 21692 case $ac_dest in 21693 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21694 # Strip MF so we end up with the name of the file. 21695 mf=`echo "$mf" | sed -e 's/:.*$//'` 21696 # Check whether this is an Automake generated Makefile or not. 21697 # We used to match only the files named `Makefile.in', but 21698 # some people rename them; so instead we look at the file content. 21699 # Grep'ing the first line is not enough: some people post-process 21700 # each Makefile.in and add a new line on top of each file to say so. 21701 # So let's grep whole file. 21702 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21703 dirpart=`(dirname "$mf") 2>/dev/null || 21704$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21705 X"$mf" : 'X\(//\)[^/]' \| \ 21706 X"$mf" : 'X\(//\)$' \| \ 21707 X"$mf" : 'X\(/\)' \| \ 21708 . : '\(.\)' 2>/dev/null || 21709echo X"$mf" | 21710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21711 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21712 /^X\(\/\/\)$/{ s//\1/; q; } 21713 /^X\(\/\).*/{ s//\1/; q; } 21714 s/.*/./; q'` 21715 else 21716 continue 21717 fi 21718 # Extract the definition of DEPDIR, am__include, and am__quote 21719 # from the Makefile without running `make'. 21720 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21721 test -z "$DEPDIR" && continue 21722 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21723 test -z "am__include" && continue 21724 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21725 # When using ansi2knr, U may be empty or an underscore; expand it 21726 U=`sed -n 's/^U = //p' < "$mf"` 21727 # Find all dependency output files, they are included files with 21728 # $(DEPDIR) in their names. We invoke sed twice because it is the 21729 # simplest approach to changing $(DEPDIR) to its actual value in the 21730 # expansion. 21731 for file in `sed -n " 21732 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21733 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21734 # Make sure the directory exists. 21735 test -f "$dirpart/$file" && continue 21736 fdir=`(dirname "$file") 2>/dev/null || 21737$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21738 X"$file" : 'X\(//\)[^/]' \| \ 21739 X"$file" : 'X\(//\)$' \| \ 21740 X"$file" : 'X\(/\)' \| \ 21741 . : '\(.\)' 2>/dev/null || 21742echo X"$file" | 21743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21744 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21745 /^X\(\/\/\)$/{ s//\1/; q; } 21746 /^X\(\/\).*/{ s//\1/; q; } 21747 s/.*/./; q'` 21748 { if $as_mkdir_p; then 21749 mkdir -p $dirpart/$fdir 21750 else 21751 as_dir=$dirpart/$fdir 21752 as_dirs= 21753 while test ! -d "$as_dir"; do 21754 as_dirs="$as_dir $as_dirs" 21755 as_dir=`(dirname "$as_dir") 2>/dev/null || 21756$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21757 X"$as_dir" : 'X\(//\)[^/]' \| \ 21758 X"$as_dir" : 'X\(//\)$' \| \ 21759 X"$as_dir" : 'X\(/\)' \| \ 21760 . : '\(.\)' 2>/dev/null || 21761echo X"$as_dir" | 21762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21763 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21764 /^X\(\/\/\)$/{ s//\1/; q; } 21765 /^X\(\/\).*/{ s//\1/; q; } 21766 s/.*/./; q'` 21767 done 21768 test ! -n "$as_dirs" || mkdir $as_dirs 21769 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21770echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21771 { (exit 1); exit 1; }; }; } 21772 21773 # echo "creating $dirpart/$file" 21774 echo '# dummy' > "$dirpart/$file" 21775 done 21776done 21777 ;; 21778 esac 21779done 21780_ACEOF 21781 21782cat >>$CONFIG_STATUS <<\_ACEOF 21783 21784{ (exit 0); exit 0; } 21785_ACEOF 21786chmod +x $CONFIG_STATUS 21787ac_clean_files=$ac_clean_files_save 21788 21789 21790# configure is writing to config.log, and then calls config.status. 21791# config.status does its own redirection, appending to config.log. 21792# Unfortunately, on DOS this fails, as config.log is still kept open 21793# by configure, so config.status won't be able to write to it; its 21794# output is simply discarded. So we exec the FD to /dev/null, 21795# effectively closing config.log, so it can be properly (re)opened and 21796# appended to by config.status. When coming back to configure, we 21797# need to make the FD available again. 21798if test "$no_create" != yes; then 21799 ac_cs_success=: 21800 ac_config_status_args= 21801 test "$silent" = yes && 21802 ac_config_status_args="$ac_config_status_args --quiet" 21803 exec 5>/dev/null 21804 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21805 exec 5>>config.log 21806 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21807 # would make configure fail if this is the last instruction. 21808 $ac_cs_success || { (exit 1); exit 1; } 21809fi 21810 21811 21812if test "$pdb_have_program_options" == "no"; then 21813 echo "Boost program_options library not found. Command line arguments to programs will be heavily limited (and lightly tested)." 21814fi 21815 21816if test "$pdb_have_magick" == "no"; then 21817 echo "ImageMagick++ not found, writing of images will be disabled." 21818fi 21819 21820 21821# AC_SUBST(foo, bar) becomes a makefile variable 21822# AC_DEFINE(FOO, "bar") addes to config.h 21823 21824 21825