1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for package-unused version-unused. 4# 5# Report bugs to <libsanitizer>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9# Foundation, Inc. 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174 175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 179 PATH=/empty FPATH=/empty; export PATH FPATH 180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 182test \$(( 1 + 1 )) = 2 || exit 1" 183 if (eval "$as_required") 2>/dev/null; then : 184 as_have_required=yes 185else 186 as_have_required=no 187fi 188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 189 190else 191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 192as_found=false 193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 194do 195 IFS=$as_save_IFS 196 test -z "$as_dir" && as_dir=. 197 as_found=: 198 case $as_dir in #( 199 /*) 200 for as_base in sh bash ksh sh5; do 201 # Try only shells that exist, to save several forks. 202 as_shell=$as_dir/$as_base 203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 CONFIG_SHELL=$as_shell as_have_required=yes 206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 break 2 208fi 209fi 210 done;; 211 esac 212 as_found=false 213done 214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 216 CONFIG_SHELL=$SHELL as_have_required=yes 217fi; } 218IFS=$as_save_IFS 219 220 221 if test "x$CONFIG_SHELL" != x; then : 222 # We cannot yet assume a decent shell, so we have to provide a 223 # neutralization value for shells without unset; and this also 224 # works around shells that cannot unset nonexistent variables. 225 BASH_ENV=/dev/null 226 ENV=/dev/null 227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 228 export CONFIG_SHELL 229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 230fi 231 232 if test x$as_have_required = xno; then : 233 $as_echo "$0: This script requires a shell more modern than all" 234 $as_echo "$0: the shells that I found on your system." 235 if test x${ZSH_VERSION+set} = xset ; then 236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 237 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 238 else 239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about 240$0: your system, including any error possibly output before 241$0: this message. Then install a modern shell, or manually 242$0: run the script under such a shell if you do have one." 243 fi 244 exit 1 245fi 246fi 247fi 248SHELL=${CONFIG_SHELL-/bin/sh} 249export SHELL 250# Unset more variables known to interfere with behavior of common tools. 251CLICOLOR_FORCE= GREP_OPTIONS= 252unset CLICOLOR_FORCE GREP_OPTIONS 253 254## --------------------- ## 255## M4sh Shell Functions. ## 256## --------------------- ## 257# as_fn_unset VAR 258# --------------- 259# Portably unset VAR. 260as_fn_unset () 261{ 262 { eval $1=; unset $1;} 263} 264as_unset=as_fn_unset 265 266# as_fn_set_status STATUS 267# ----------------------- 268# Set $? to STATUS, without forking. 269as_fn_set_status () 270{ 271 return $1 272} # as_fn_set_status 273 274# as_fn_exit STATUS 275# ----------------- 276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 277as_fn_exit () 278{ 279 set +e 280 as_fn_set_status $1 281 exit $1 282} # as_fn_exit 283 284# as_fn_mkdir_p 285# ------------- 286# Create "$as_dir" as a directory, including parents if necessary. 287as_fn_mkdir_p () 288{ 289 290 case $as_dir in #( 291 -*) as_dir=./$as_dir;; 292 esac 293 test -d "$as_dir" || eval $as_mkdir_p || { 294 as_dirs= 295 while :; do 296 case $as_dir in #( 297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 298 *) as_qdir=$as_dir;; 299 esac 300 as_dirs="'$as_qdir' $as_dirs" 301 as_dir=`$as_dirname -- "$as_dir" || 302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 303 X"$as_dir" : 'X\(//\)[^/]' \| \ 304 X"$as_dir" : 'X\(//\)$' \| \ 305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 306$as_echo X"$as_dir" | 307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)[^/].*/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\).*/{ 320 s//\1/ 321 q 322 } 323 s/.*/./; q'` 324 test -d "$as_dir" && break 325 done 326 test -z "$as_dirs" || eval "mkdir $as_dirs" 327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 328 329 330} # as_fn_mkdir_p 331# as_fn_append VAR VALUE 332# ---------------------- 333# Append the text in VALUE to the end of the definition contained in VAR. Take 334# advantage of any shell optimizations that allow amortized linear growth over 335# repeated appends, instead of the typical quadratic growth present in naive 336# implementations. 337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 338 eval 'as_fn_append () 339 { 340 eval $1+=\$2 341 }' 342else 343 as_fn_append () 344 { 345 eval $1=\$$1\$2 346 } 347fi # as_fn_append 348 349# as_fn_arith ARG... 350# ------------------ 351# Perform arithmetic evaluation on the ARGs, and store the result in the 352# global $as_val. Take advantage of shells that can avoid forks. The arguments 353# must be portable across $(()) and expr. 354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 355 eval 'as_fn_arith () 356 { 357 as_val=$(( $* )) 358 }' 359else 360 as_fn_arith () 361 { 362 as_val=`expr "$@" || test $? -eq 1` 363 } 364fi # as_fn_arith 365 366 367# as_fn_error ERROR [LINENO LOG_FD] 368# --------------------------------- 369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 371# script with status $?, using 1 if that was 0. 372as_fn_error () 373{ 374 as_status=$?; test $as_status -eq 0 && as_status=1 375 if test "$3"; then 376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 378 fi 379 $as_echo "$as_me: error: $1" >&2 380 as_fn_exit $as_status 381} # as_fn_error 382 383if expr a : '\(a\)' >/dev/null 2>&1 && 384 test "X`expr 00001 : '.*\(...\)'`" = X001; then 385 as_expr=expr 386else 387 as_expr=false 388fi 389 390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 391 as_basename=basename 392else 393 as_basename=false 394fi 395 396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 397 as_dirname=dirname 398else 399 as_dirname=false 400fi 401 402as_me=`$as_basename -- "$0" || 403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 404 X"$0" : 'X\(//\)$' \| \ 405 X"$0" : 'X\(/\)' \| . 2>/dev/null || 406$as_echo X/"$0" | 407 sed '/^.*\/\([^/][^/]*\)\/*$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\/\)$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\).*/{ 416 s//\1/ 417 q 418 } 419 s/.*/./; q'` 420 421# Avoid depending upon Character Ranges. 422as_cr_letters='abcdefghijklmnopqrstuvwxyz' 423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 424as_cr_Letters=$as_cr_letters$as_cr_LETTERS 425as_cr_digits='0123456789' 426as_cr_alnum=$as_cr_Letters$as_cr_digits 427 428 429 as_lineno_1=$LINENO as_lineno_1a=$LINENO 430 as_lineno_2=$LINENO as_lineno_2a=$LINENO 431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 451 452 # Don't try to exec as it changes $[0], causing all sort of problems 453 # (the dirname of $[0] is not the place where we might find the 454 # original and so on. Autoconf is especially sensitive to this). 455 . "./$as_me.lineno" 456 # Exit status is that of the last command. 457 exit 458} 459 460ECHO_C= ECHO_N= ECHO_T= 461case `echo -n x` in #((((( 462-n*) 463 case `echo 'xy\c'` in 464 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 465 xy) ECHO_C='\c';; 466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 467 ECHO_T=' ';; 468 esac;; 469*) 470 ECHO_N='-n';; 471esac 472 473rm -f conf$$ conf$$.exe conf$$.file 474if test -d conf$$.dir; then 475 rm -f conf$$.dir/conf$$.file 476else 477 rm -f conf$$.dir 478 mkdir conf$$.dir 2>/dev/null 479fi 480if (echo >conf$$.file) 2>/dev/null; then 481 if ln -s conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s='ln -s' 483 # ... but there are two gotchas: 484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 486 # In both cases, we have to default to `cp -p'. 487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 488 as_ln_s='cp -p' 489 elif ln conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s=ln 491 else 492 as_ln_s='cp -p' 493 fi 494else 495 as_ln_s='cp -p' 496fi 497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 498rmdir conf$$.dir 2>/dev/null 499 500if mkdir -p . 2>/dev/null; then 501 as_mkdir_p='mkdir -p "$as_dir"' 502else 503 test -d ./-p && rmdir ./-p 504 as_mkdir_p=false 505fi 506 507if test -x / >/dev/null 2>&1; then 508 as_test_x='test -x' 509else 510 if ls -dL / >/dev/null 2>&1; then 511 as_ls_L_option=L 512 else 513 as_ls_L_option= 514 fi 515 as_test_x=' 516 eval sh -c '\'' 517 if test -d "$1"; then 518 test -d "$1/."; 519 else 520 case $1 in #( 521 -*)set "./$1";; 522 esac; 523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 524 ???[sx]*):;;*)false;;esac;fi 525 '\'' sh 526 ' 527fi 528as_executable_p=$as_test_x 529 530# Sed expression to map a string onto a valid CPP name. 531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 532 533# Sed expression to map a string onto a valid variable name. 534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 535 536SHELL=${CONFIG_SHELL-/bin/sh} 537 538 539exec 7<&0 </dev/null 6>&1 540 541# Name of the host. 542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 543# so uname gets run too. 544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 545 546# 547# Initializations. 548# 549ac_default_prefix=/usr/local 550ac_clean_files= 551ac_config_libobj_dir=. 552LIBOBJS= 553cross_compiling=no 554subdirs= 555MFLAGS= 556MAKEFLAGS= 557 558# Identity of this package. 559PACKAGE_NAME='package-unused' 560PACKAGE_TARNAME='package-unused' 561PACKAGE_VERSION='version-unused' 562PACKAGE_STRING='package-unused version-unused' 563PACKAGE_BUGREPORT='libsanitizer' 564PACKAGE_URL='' 565 566ac_unique_file="include/sanitizer/common_interface_defs.h" 567# Factoring default headers for most tests. 568ac_includes_default="\ 569#include <stdio.h> 570#ifdef HAVE_SYS_TYPES_H 571# include <sys/types.h> 572#endif 573#ifdef HAVE_SYS_STAT_H 574# include <sys/stat.h> 575#endif 576#ifdef STDC_HEADERS 577# include <stdlib.h> 578# include <stddef.h> 579#else 580# ifdef HAVE_STDLIB_H 581# include <stdlib.h> 582# endif 583#endif 584#ifdef HAVE_STRING_H 585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 586# include <memory.h> 587# endif 588# include <string.h> 589#endif 590#ifdef HAVE_STRINGS_H 591# include <strings.h> 592#endif 593#ifdef HAVE_INTTYPES_H 594# include <inttypes.h> 595#endif 596#ifdef HAVE_STDINT_H 597# include <stdint.h> 598#endif 599#ifdef HAVE_UNISTD_H 600# include <unistd.h> 601#endif" 602 603ac_subst_vars='am__EXEEXT_FALSE 604am__EXEEXT_TRUE 605LTLIBOBJS 606LIBOBJS 607USING_MAC_INTERPOSE_FALSE 608USING_MAC_INTERPOSE_TRUE 609TSAN_SUPPORTED_FALSE 610TSAN_SUPPORTED_TRUE 611enable_static 612enable_shared 613CXXCPP 614CPP 615OTOOL64 616OTOOL 617LIPO 618NMEDIT 619DSYMUTIL 620RANLIB 621AR 622OBJDUMP 623LN_S 624NM 625ac_ct_DUMPBIN 626DUMPBIN 627LD 628FGREP 629EGREP 630GREP 631SED 632LIBTOOL 633am__fastdepCCAS_FALSE 634am__fastdepCCAS_TRUE 635CCASDEPMODE 636CCASFLAGS 637CCAS 638am__fastdepCXX_FALSE 639am__fastdepCXX_TRUE 640CXXDEPMODE 641ac_ct_CXX 642CXXFLAGS 643CXX 644am__fastdepCC_FALSE 645am__fastdepCC_TRUE 646CCDEPMODE 647AMDEPBACKSLASH 648AMDEP_FALSE 649AMDEP_TRUE 650am__quote 651am__include 652DEPDIR 653OBJEXT 654EXEEXT 655ac_ct_CC 656CPPFLAGS 657LDFLAGS 658CFLAGS 659CC 660toolexeclibdir 661toolexecdir 662MAINT 663MAINTAINER_MODE_FALSE 664MAINTAINER_MODE_TRUE 665am__untar 666am__tar 667AMTAR 668am__leading_dot 669SET_MAKE 670AWK 671mkdir_p 672MKDIR_P 673INSTALL_STRIP_PROGRAM 674STRIP 675install_sh 676MAKEINFO 677AUTOHEADER 678AUTOMAKE 679AUTOCONF 680ACLOCAL 681VERSION 682PACKAGE 683CYGPATH_W 684am__isrc 685INSTALL_DATA 686INSTALL_SCRIPT 687INSTALL_PROGRAM 688LIBSTDCXX_RAW_CXX_LDFLAGS 689LIBSTDCXX_RAW_CXX_CXXFLAGS 690target_noncanonical 691target_os 692target_vendor 693target_cpu 694target 695host_os 696host_vendor 697host_cpu 698host 699build_os 700build_vendor 701build_cpu 702build 703multi_basedir 704target_alias 705host_alias 706build_alias 707LIBS 708ECHO_T 709ECHO_N 710ECHO_C 711DEFS 712mandir 713localedir 714libdir 715psdir 716pdfdir 717dvidir 718htmldir 719infodir 720docdir 721oldincludedir 722includedir 723localstatedir 724sharedstatedir 725sysconfdir 726datadir 727datarootdir 728libexecdir 729sbindir 730bindir 731program_transform_name 732prefix 733exec_prefix 734PACKAGE_URL 735PACKAGE_BUGREPORT 736PACKAGE_STRING 737PACKAGE_VERSION 738PACKAGE_TARNAME 739PACKAGE_NAME 740PATH_SEPARATOR 741SHELL' 742ac_subst_files='' 743ac_user_opts=' 744enable_option_checking 745enable_multilib 746enable_version_specific_runtime_libs 747enable_maintainer_mode 748enable_dependency_tracking 749enable_shared 750enable_static 751with_pic 752enable_fast_install 753with_gnu_ld 754enable_libtool_lock 755' 756 ac_precious_vars='build_alias 757host_alias 758target_alias 759CC 760CFLAGS 761LDFLAGS 762LIBS 763CPPFLAGS 764CXX 765CXXFLAGS 766CCC 767CCAS 768CCASFLAGS 769CPP 770CXXCPP' 771 772 773# Initialize some variables set by options. 774ac_init_help= 775ac_init_version=false 776ac_unrecognized_opts= 777ac_unrecognized_sep= 778# The variables have the same names as the options, with 779# dashes changed to underlines. 780cache_file=/dev/null 781exec_prefix=NONE 782no_create= 783no_recursion= 784prefix=NONE 785program_prefix=NONE 786program_suffix=NONE 787program_transform_name=s,x,x, 788silent= 789site= 790srcdir= 791verbose= 792x_includes=NONE 793x_libraries=NONE 794 795# Installation directory options. 796# These are left unexpanded so users can "make install exec_prefix=/foo" 797# and all the variables that are supposed to be based on exec_prefix 798# by default will actually change. 799# Use braces instead of parens because sh, perl, etc. also accept them. 800# (The list follows the same order as the GNU Coding Standards.) 801bindir='${exec_prefix}/bin' 802sbindir='${exec_prefix}/sbin' 803libexecdir='${exec_prefix}/libexec' 804datarootdir='${prefix}/share' 805datadir='${datarootdir}' 806sysconfdir='${prefix}/etc' 807sharedstatedir='${prefix}/com' 808localstatedir='${prefix}/var' 809includedir='${prefix}/include' 810oldincludedir='/usr/include' 811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 812infodir='${datarootdir}/info' 813htmldir='${docdir}' 814dvidir='${docdir}' 815pdfdir='${docdir}' 816psdir='${docdir}' 817libdir='${exec_prefix}/lib' 818localedir='${datarootdir}/locale' 819mandir='${datarootdir}/man' 820 821ac_prev= 822ac_dashdash= 823for ac_option 824do 825 # If the previous option needs an argument, assign it. 826 if test -n "$ac_prev"; then 827 eval $ac_prev=\$ac_option 828 ac_prev= 829 continue 830 fi 831 832 case $ac_option in 833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 834 *) ac_optarg=yes ;; 835 esac 836 837 # Accept the important Cygnus configure options, so we can diagnose typos. 838 839 case $ac_dashdash$ac_option in 840 --) 841 ac_dashdash=yes ;; 842 843 -bindir | --bindir | --bindi | --bind | --bin | --bi) 844 ac_prev=bindir ;; 845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 846 bindir=$ac_optarg ;; 847 848 -build | --build | --buil | --bui | --bu) 849 ac_prev=build_alias ;; 850 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 851 build_alias=$ac_optarg ;; 852 853 -cache-file | --cache-file | --cache-fil | --cache-fi \ 854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 855 ac_prev=cache_file ;; 856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 858 cache_file=$ac_optarg ;; 859 860 --config-cache | -C) 861 cache_file=config.cache ;; 862 863 -datadir | --datadir | --datadi | --datad) 864 ac_prev=datadir ;; 865 -datadir=* | --datadir=* | --datadi=* | --datad=*) 866 datadir=$ac_optarg ;; 867 868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 869 | --dataroo | --dataro | --datar) 870 ac_prev=datarootdir ;; 871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 873 datarootdir=$ac_optarg ;; 874 875 -disable-* | --disable-*) 876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 877 # Reject names that are not valid shell variable names. 878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879 as_fn_error "invalid feature name: $ac_useropt" 880 ac_useropt_orig=$ac_useropt 881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882 case $ac_user_opts in 883 *" 884"enable_$ac_useropt" 885"*) ;; 886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 887 ac_unrecognized_sep=', ';; 888 esac 889 eval enable_$ac_useropt=no ;; 890 891 -docdir | --docdir | --docdi | --doc | --do) 892 ac_prev=docdir ;; 893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 894 docdir=$ac_optarg ;; 895 896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 897 ac_prev=dvidir ;; 898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 899 dvidir=$ac_optarg ;; 900 901 -enable-* | --enable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=\$ac_optarg ;; 916 917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 919 | --exec | --exe | --ex) 920 ac_prev=exec_prefix ;; 921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 923 | --exec=* | --exe=* | --ex=*) 924 exec_prefix=$ac_optarg ;; 925 926 -gas | --gas | --ga | --g) 927 # Obsolete; use --with-gas. 928 with_gas=yes ;; 929 930 -help | --help | --hel | --he | -h) 931 ac_init_help=long ;; 932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 933 ac_init_help=recursive ;; 934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 935 ac_init_help=short ;; 936 937 -host | --host | --hos | --ho) 938 ac_prev=host_alias ;; 939 -host=* | --host=* | --hos=* | --ho=*) 940 host_alias=$ac_optarg ;; 941 942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 943 ac_prev=htmldir ;; 944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 945 | --ht=*) 946 htmldir=$ac_optarg ;; 947 948 -includedir | --includedir | --includedi | --included | --include \ 949 | --includ | --inclu | --incl | --inc) 950 ac_prev=includedir ;; 951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 952 | --includ=* | --inclu=* | --incl=* | --inc=*) 953 includedir=$ac_optarg ;; 954 955 -infodir | --infodir | --infodi | --infod | --info | --inf) 956 ac_prev=infodir ;; 957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 958 infodir=$ac_optarg ;; 959 960 -libdir | --libdir | --libdi | --libd) 961 ac_prev=libdir ;; 962 -libdir=* | --libdir=* | --libdi=* | --libd=*) 963 libdir=$ac_optarg ;; 964 965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 966 | --libexe | --libex | --libe) 967 ac_prev=libexecdir ;; 968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 969 | --libexe=* | --libex=* | --libe=*) 970 libexecdir=$ac_optarg ;; 971 972 -localedir | --localedir | --localedi | --localed | --locale) 973 ac_prev=localedir ;; 974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 975 localedir=$ac_optarg ;; 976 977 -localstatedir | --localstatedir | --localstatedi | --localstated \ 978 | --localstate | --localstat | --localsta | --localst | --locals) 979 ac_prev=localstatedir ;; 980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 982 localstatedir=$ac_optarg ;; 983 984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 985 ac_prev=mandir ;; 986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 987 mandir=$ac_optarg ;; 988 989 -nfp | --nfp | --nf) 990 # Obsolete; use --without-fp. 991 with_fp=no ;; 992 993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 994 | --no-cr | --no-c | -n) 995 no_create=yes ;; 996 997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 999 no_recursion=yes ;; 1000 1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1003 | --oldin | --oldi | --old | --ol | --o) 1004 ac_prev=oldincludedir ;; 1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1008 oldincludedir=$ac_optarg ;; 1009 1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1011 ac_prev=prefix ;; 1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1013 prefix=$ac_optarg ;; 1014 1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1016 | --program-pre | --program-pr | --program-p) 1017 ac_prev=program_prefix ;; 1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1020 program_prefix=$ac_optarg ;; 1021 1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1023 | --program-suf | --program-su | --program-s) 1024 ac_prev=program_suffix ;; 1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1027 program_suffix=$ac_optarg ;; 1028 1029 -program-transform-name | --program-transform-name \ 1030 | --program-transform-nam | --program-transform-na \ 1031 | --program-transform-n | --program-transform- \ 1032 | --program-transform | --program-transfor \ 1033 | --program-transfo | --program-transf \ 1034 | --program-trans | --program-tran \ 1035 | --progr-tra | --program-tr | --program-t) 1036 ac_prev=program_transform_name ;; 1037 -program-transform-name=* | --program-transform-name=* \ 1038 | --program-transform-nam=* | --program-transform-na=* \ 1039 | --program-transform-n=* | --program-transform-=* \ 1040 | --program-transform=* | --program-transfor=* \ 1041 | --program-transfo=* | --program-transf=* \ 1042 | --program-trans=* | --program-tran=* \ 1043 | --progr-tra=* | --program-tr=* | --program-t=*) 1044 program_transform_name=$ac_optarg ;; 1045 1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1047 ac_prev=pdfdir ;; 1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1049 pdfdir=$ac_optarg ;; 1050 1051 -psdir | --psdir | --psdi | --psd | --ps) 1052 ac_prev=psdir ;; 1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1054 psdir=$ac_optarg ;; 1055 1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 | -silent | --silent | --silen | --sile | --sil) 1058 silent=yes ;; 1059 1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1061 ac_prev=sbindir ;; 1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1063 | --sbi=* | --sb=*) 1064 sbindir=$ac_optarg ;; 1065 1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1068 | --sharedst | --shareds | --shared | --share | --shar \ 1069 | --sha | --sh) 1070 ac_prev=sharedstatedir ;; 1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1074 | --sha=* | --sh=*) 1075 sharedstatedir=$ac_optarg ;; 1076 1077 -site | --site | --sit) 1078 ac_prev=site ;; 1079 -site=* | --site=* | --sit=*) 1080 site=$ac_optarg ;; 1081 1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1083 ac_prev=srcdir ;; 1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1085 srcdir=$ac_optarg ;; 1086 1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1088 | --syscon | --sysco | --sysc | --sys | --sy) 1089 ac_prev=sysconfdir ;; 1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1092 sysconfdir=$ac_optarg ;; 1093 1094 -target | --target | --targe | --targ | --tar | --ta | --t) 1095 ac_prev=target_alias ;; 1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1097 target_alias=$ac_optarg ;; 1098 1099 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1100 verbose=yes ;; 1101 1102 -version | --version | --versio | --versi | --vers | -V) 1103 ac_init_version=: ;; 1104 1105 -with-* | --with-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"with_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=\$ac_optarg ;; 1120 1121 -without-* | --without-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"with_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=no ;; 1136 1137 --x) 1138 # Obsolete; use --with-x. 1139 with_x=yes ;; 1140 1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1142 | --x-incl | --x-inc | --x-in | --x-i) 1143 ac_prev=x_includes ;; 1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1146 x_includes=$ac_optarg ;; 1147 1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1150 ac_prev=x_libraries ;; 1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1153 x_libraries=$ac_optarg ;; 1154 1155 -*) as_fn_error "unrecognized option: \`$ac_option' 1156Try \`$0 --help' for more information." 1157 ;; 1158 1159 *=*) 1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1161 # Reject names that are not valid shell variable names. 1162 case $ac_envvar in #( 1163 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1164 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1165 esac 1166 eval $ac_envvar=\$ac_optarg 1167 export $ac_envvar ;; 1168 1169 *) 1170 # FIXME: should be removed in autoconf 3.0. 1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1175 ;; 1176 1177 esac 1178done 1179 1180if test -n "$ac_prev"; then 1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1182 as_fn_error "missing argument to $ac_option" 1183fi 1184 1185if test -n "$ac_unrecognized_opts"; then 1186 case $enable_option_checking in 1187 no) ;; 1188 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1190 esac 1191fi 1192 1193# Check all directory arguments for consistency. 1194for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1195 datadir sysconfdir sharedstatedir localstatedir includedir \ 1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1197 libdir localedir mandir 1198do 1199 eval ac_val=\$$ac_var 1200 # Remove trailing slashes. 1201 case $ac_val in 1202 */ ) 1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1204 eval $ac_var=\$ac_val;; 1205 esac 1206 # Be sure to have absolute directory names. 1207 case $ac_val in 1208 [\\/$]* | ?:[\\/]* ) continue;; 1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1210 esac 1211 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1212done 1213 1214# There might be people who depend on the old broken behavior: `$host' 1215# used to hold the argument of --host etc. 1216# FIXME: To remove some day. 1217build=$build_alias 1218host=$host_alias 1219target=$target_alias 1220 1221# FIXME: To remove some day. 1222if test "x$host_alias" != x; then 1223 if test "x$build_alias" = x; then 1224 cross_compiling=maybe 1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1226 If a cross compiler is detected then cross compile mode will be used." >&2 1227 elif test "x$build_alias" != "x$host_alias"; then 1228 cross_compiling=yes 1229 fi 1230fi 1231 1232ac_tool_prefix= 1233test -n "$host_alias" && ac_tool_prefix=$host_alias- 1234 1235test "$silent" = yes && exec 6>/dev/null 1236 1237 1238ac_pwd=`pwd` && test -n "$ac_pwd" && 1239ac_ls_di=`ls -di .` && 1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1241 as_fn_error "working directory cannot be determined" 1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1243 as_fn_error "pwd does not report name of working directory" 1244 1245 1246# Find the source files, if location was not specified. 1247if test -z "$srcdir"; then 1248 ac_srcdir_defaulted=yes 1249 # Try the directory containing this script, then the parent directory. 1250 ac_confdir=`$as_dirname -- "$as_myself" || 1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1252 X"$as_myself" : 'X\(//\)[^/]' \| \ 1253 X"$as_myself" : 'X\(//\)$' \| \ 1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1255$as_echo X"$as_myself" | 1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\/\)[^/].*/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\).*/{ 1269 s//\1/ 1270 q 1271 } 1272 s/.*/./; q'` 1273 srcdir=$ac_confdir 1274 if test ! -r "$srcdir/$ac_unique_file"; then 1275 srcdir=.. 1276 fi 1277else 1278 ac_srcdir_defaulted=no 1279fi 1280if test ! -r "$srcdir/$ac_unique_file"; then 1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1282 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1283fi 1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1285ac_abs_confdir=`( 1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1287 pwd)` 1288# When building in place, set srcdir=. 1289if test "$ac_abs_confdir" = "$ac_pwd"; then 1290 srcdir=. 1291fi 1292# Remove unnecessary trailing slashes from srcdir. 1293# Double slashes in file names in object file debugging info 1294# mess up M-x gdb in Emacs. 1295case $srcdir in 1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1297esac 1298for ac_var in $ac_precious_vars; do 1299 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_env_${ac_var}_value=\$${ac_var} 1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1302 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1303done 1304 1305# 1306# Report the --help message. 1307# 1308if test "$ac_init_help" = "long"; then 1309 # Omit some internal or obsolete options to make the list less imposing. 1310 # This message is too long to be a string in the A/UX 3.1 sh. 1311 cat <<_ACEOF 1312\`configure' configures package-unused version-unused to adapt to many kinds of systems. 1313 1314Usage: $0 [OPTION]... [VAR=VALUE]... 1315 1316To assign environment variables (e.g., CC, CFLAGS...), specify them as 1317VAR=VALUE. See below for descriptions of some of the useful variables. 1318 1319Defaults for the options are specified in brackets. 1320 1321Configuration: 1322 -h, --help display this help and exit 1323 --help=short display options specific to this package 1324 --help=recursive display the short help of all the included packages 1325 -V, --version display version information and exit 1326 -q, --quiet, --silent do not print \`checking...' messages 1327 --cache-file=FILE cache test results in FILE [disabled] 1328 -C, --config-cache alias for \`--cache-file=config.cache' 1329 -n, --no-create do not create output files 1330 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1331 1332Installation directories: 1333 --prefix=PREFIX install architecture-independent files in PREFIX 1334 [$ac_default_prefix] 1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1336 [PREFIX] 1337 1338By default, \`make install' will install all the files in 1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1340an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1341for instance \`--prefix=\$HOME'. 1342 1343For better control, use the options below. 1344 1345Fine tuning of the installation directories: 1346 --bindir=DIR user executables [EPREFIX/bin] 1347 --sbindir=DIR system admin executables [EPREFIX/sbin] 1348 --libexecdir=DIR program executables [EPREFIX/libexec] 1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1352 --libdir=DIR object code libraries [EPREFIX/lib] 1353 --includedir=DIR C header files [PREFIX/include] 1354 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1357 --infodir=DIR info documentation [DATAROOTDIR/info] 1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1359 --mandir=DIR man documentation [DATAROOTDIR/man] 1360 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused] 1361 --htmldir=DIR html documentation [DOCDIR] 1362 --dvidir=DIR dvi documentation [DOCDIR] 1363 --pdfdir=DIR pdf documentation [DOCDIR] 1364 --psdir=DIR ps documentation [DOCDIR] 1365_ACEOF 1366 1367 cat <<\_ACEOF 1368 1369Program names: 1370 --program-prefix=PREFIX prepend PREFIX to installed program names 1371 --program-suffix=SUFFIX append SUFFIX to installed program names 1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1373 1374System types: 1375 --build=BUILD configure for building on BUILD [guessed] 1376 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1377 --target=TARGET configure for building compilers for TARGET [HOST] 1378_ACEOF 1379fi 1380 1381if test -n "$ac_init_help"; then 1382 case $ac_init_help in 1383 short | recursive ) echo "Configuration of package-unused version-unused:";; 1384 esac 1385 cat <<\_ACEOF 1386 1387Optional Features: 1388 --disable-option-checking ignore unrecognized --enable/--with options 1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1391 --enable-multilib build many library versions (default) 1392 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory 1393 --enable-maintainer-mode enable make rules and dependencies not useful 1394 (and sometimes confusing) to the casual installer 1395 --disable-dependency-tracking speeds up one-time build 1396 --enable-dependency-tracking do not reject slow dependency extractors 1397 --enable-shared[=PKGS] build shared libraries [default=yes] 1398 --enable-static[=PKGS] build static libraries [default=yes] 1399 --enable-fast-install[=PKGS] 1400 optimize for fast installation [default=yes] 1401 --disable-libtool-lock avoid locking (might break parallel builds) 1402 1403Optional Packages: 1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1406 --with-pic try to use only PIC/non-PIC objects [default=use 1407 both] 1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1409 1410Some influential environment variables: 1411 CC C compiler command 1412 CFLAGS C compiler flags 1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1414 nonstandard directory <lib dir> 1415 LIBS libraries to pass to the linker, e.g. -l<library> 1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1417 you have headers in a nonstandard directory <include dir> 1418 CXX C++ compiler command 1419 CXXFLAGS C++ compiler flags 1420 CCAS assembler compiler command (defaults to CC) 1421 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1422 CPP C preprocessor 1423 CXXCPP C++ preprocessor 1424 1425Use these variables to override the choices made by `configure' or to help 1426it to find libraries and programs with nonstandard names/locations. 1427 1428Report bugs to <libsanitizer>. 1429_ACEOF 1430ac_status=$? 1431fi 1432 1433if test "$ac_init_help" = "recursive"; then 1434 # If there are subdirs, report their specific --help. 1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1436 test -d "$ac_dir" || 1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1438 continue 1439 ac_builddir=. 1440 1441case "$ac_dir" in 1442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1443*) 1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1445 # A ".." for each directory in $ac_dir_suffix. 1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1447 case $ac_top_builddir_sub in 1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1450 esac ;; 1451esac 1452ac_abs_top_builddir=$ac_pwd 1453ac_abs_builddir=$ac_pwd$ac_dir_suffix 1454# for backward compatibility: 1455ac_top_builddir=$ac_top_build_prefix 1456 1457case $srcdir in 1458 .) # We are building in place. 1459 ac_srcdir=. 1460 ac_top_srcdir=$ac_top_builddir_sub 1461 ac_abs_top_srcdir=$ac_pwd ;; 1462 [\\/]* | ?:[\\/]* ) # Absolute name. 1463 ac_srcdir=$srcdir$ac_dir_suffix; 1464 ac_top_srcdir=$srcdir 1465 ac_abs_top_srcdir=$srcdir ;; 1466 *) # Relative name. 1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1468 ac_top_srcdir=$ac_top_build_prefix$srcdir 1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1470esac 1471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1472 1473 cd "$ac_dir" || { ac_status=$?; continue; } 1474 # Check for guested configure. 1475 if test -f "$ac_srcdir/configure.gnu"; then 1476 echo && 1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1478 elif test -f "$ac_srcdir/configure"; then 1479 echo && 1480 $SHELL "$ac_srcdir/configure" --help=recursive 1481 else 1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1483 fi || ac_status=$? 1484 cd "$ac_pwd" || { ac_status=$?; break; } 1485 done 1486fi 1487 1488test -n "$ac_init_help" && exit $ac_status 1489if $ac_init_version; then 1490 cat <<\_ACEOF 1491package-unused configure version-unused 1492generated by GNU Autoconf 2.64 1493 1494Copyright (C) 2009 Free Software Foundation, Inc. 1495This configure script is free software; the Free Software Foundation 1496gives unlimited permission to copy, distribute and modify it. 1497_ACEOF 1498 exit 1499fi 1500 1501## ------------------------ ## 1502## Autoconf initialization. ## 1503## ------------------------ ## 1504 1505# ac_fn_c_try_compile LINENO 1506# -------------------------- 1507# Try to compile conftest.$ac_ext, and return whether this succeeded. 1508ac_fn_c_try_compile () 1509{ 1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1511 rm -f conftest.$ac_objext 1512 if { { ac_try="$ac_compile" 1513case "(($ac_try" in 1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1515 *) ac_try_echo=$ac_try;; 1516esac 1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1518$as_echo "$ac_try_echo"; } >&5 1519 (eval "$ac_compile") 2>conftest.err 1520 ac_status=$? 1521 if test -s conftest.err; then 1522 grep -v '^ *+' conftest.err >conftest.er1 1523 cat conftest.er1 >&5 1524 mv -f conftest.er1 conftest.err 1525 fi 1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1527 test $ac_status = 0; } && { 1528 test -z "$ac_c_werror_flag" || 1529 test ! -s conftest.err 1530 } && test -s conftest.$ac_objext; then : 1531 ac_retval=0 1532else 1533 $as_echo "$as_me: failed program was:" >&5 1534sed 's/^/| /' conftest.$ac_ext >&5 1535 1536 ac_retval=1 1537fi 1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1539 return $ac_retval 1540 1541} # ac_fn_c_try_compile 1542 1543# ac_fn_cxx_try_compile LINENO 1544# ---------------------------- 1545# Try to compile conftest.$ac_ext, and return whether this succeeded. 1546ac_fn_cxx_try_compile () 1547{ 1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1549 rm -f conftest.$ac_objext 1550 if { { ac_try="$ac_compile" 1551case "(($ac_try" in 1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1553 *) ac_try_echo=$ac_try;; 1554esac 1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1556$as_echo "$ac_try_echo"; } >&5 1557 (eval "$ac_compile") 2>conftest.err 1558 ac_status=$? 1559 if test -s conftest.err; then 1560 grep -v '^ *+' conftest.err >conftest.er1 1561 cat conftest.er1 >&5 1562 mv -f conftest.er1 conftest.err 1563 fi 1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1565 test $ac_status = 0; } && { 1566 test -z "$ac_cxx_werror_flag" || 1567 test ! -s conftest.err 1568 } && test -s conftest.$ac_objext; then : 1569 ac_retval=0 1570else 1571 $as_echo "$as_me: failed program was:" >&5 1572sed 's/^/| /' conftest.$ac_ext >&5 1573 1574 ac_retval=1 1575fi 1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1577 return $ac_retval 1578 1579} # ac_fn_cxx_try_compile 1580 1581# ac_fn_c_try_link LINENO 1582# ----------------------- 1583# Try to link conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_link () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 rm -f conftest.$ac_objext conftest$ac_exeext 1588 if { { ac_try="$ac_link" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_link") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { 1604 test -z "$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 } && test -s conftest$ac_exeext && { 1607 test "$cross_compiling" = yes || 1608 $as_test_x conftest$ac_exeext 1609 }; then : 1610 ac_retval=0 1611else 1612 $as_echo "$as_me: failed program was:" >&5 1613sed 's/^/| /' conftest.$ac_ext >&5 1614 1615 ac_retval=1 1616fi 1617 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1618 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1619 # interfere with the next link command; also delete a directory that is 1620 # left behind by Apple's compiler. We do this before executing the actions. 1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1623 return $ac_retval 1624 1625} # ac_fn_c_try_link 1626 1627# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1628# ------------------------------------------------------- 1629# Tests whether HEADER exists and can be compiled using the include files in 1630# INCLUDES, setting the cache variable VAR accordingly. 1631ac_fn_c_check_header_compile () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1635$as_echo_n "checking for $2... " >&6; } 1636if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1637 $as_echo_n "(cached) " >&6 1638else 1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1640/* end confdefs.h. */ 1641$4 1642#include <$2> 1643_ACEOF 1644if ac_fn_c_try_compile "$LINENO"; then : 1645 eval "$3=yes" 1646else 1647 eval "$3=no" 1648fi 1649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1650fi 1651eval ac_res=\$$3 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1653$as_echo "$ac_res" >&6; } 1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1655 1656} # ac_fn_c_check_header_compile 1657 1658# ac_fn_c_try_cpp LINENO 1659# ---------------------- 1660# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1661ac_fn_c_try_cpp () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 if { { ac_try="$ac_cpp conftest.$ac_ext" 1665case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670$as_echo "$ac_try_echo"; } >&5 1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } >/dev/null && { 1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 }; then : 1683 ac_retval=0 1684else 1685 $as_echo "$as_me: failed program was:" >&5 1686sed 's/^/| /' conftest.$ac_ext >&5 1687 1688 ac_retval=1 1689fi 1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1691 return $ac_retval 1692 1693} # ac_fn_c_try_cpp 1694 1695# ac_fn_c_try_run LINENO 1696# ---------------------- 1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1698# that executables *can* be run. 1699ac_fn_c_try_run () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 if { { ac_try="$ac_link" 1703case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_link") 2>&5 1710 ac_status=$? 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1713 { { case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_try") 2>&5 1720 ac_status=$? 1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; }; }; then : 1723 ac_retval=0 1724else 1725 $as_echo "$as_me: program exited with status $ac_status" >&5 1726 $as_echo "$as_me: failed program was:" >&5 1727sed 's/^/| /' conftest.$ac_ext >&5 1728 1729 ac_retval=$ac_status 1730fi 1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1733 return $ac_retval 1734 1735} # ac_fn_c_try_run 1736 1737# ac_fn_c_check_func LINENO FUNC VAR 1738# ---------------------------------- 1739# Tests whether FUNC exists, setting the cache variable VAR accordingly 1740ac_fn_c_check_func () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1744$as_echo_n "checking for $2... " >&6; } 1745if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1746 $as_echo_n "(cached) " >&6 1747else 1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1752#define $2 innocuous_$2 1753 1754/* System header to define __stub macros and hopefully few prototypes, 1755 which can conflict with char $2 (); below. 1756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1757 <limits.h> exists even on freestanding compilers. */ 1758 1759#ifdef __STDC__ 1760# include <limits.h> 1761#else 1762# include <assert.h> 1763#endif 1764 1765#undef $2 1766 1767/* Override any GCC internal prototype to avoid an error. 1768 Use char because int might match the return type of a GCC 1769 builtin and then its argument prototype would still apply. */ 1770#ifdef __cplusplus 1771extern "C" 1772#endif 1773char $2 (); 1774/* The GNU C library defines this for functions which it implements 1775 to always fail with ENOSYS. Some functions are actually named 1776 something starting with __ and the normal name is an alias. */ 1777#if defined __stub_$2 || defined __stub___$2 1778choke me 1779#endif 1780 1781int 1782main () 1783{ 1784return $2 (); 1785 ; 1786 return 0; 1787} 1788_ACEOF 1789if ac_fn_c_try_link "$LINENO"; then : 1790 eval "$3=yes" 1791else 1792 eval "$3=no" 1793fi 1794rm -f core conftest.err conftest.$ac_objext \ 1795 conftest$ac_exeext conftest.$ac_ext 1796fi 1797eval ac_res=\$$3 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1799$as_echo "$ac_res" >&6; } 1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1801 1802} # ac_fn_c_check_func 1803 1804# ac_fn_cxx_try_cpp LINENO 1805# ------------------------ 1806# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1807ac_fn_cxx_try_cpp () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 if { { ac_try="$ac_cpp conftest.$ac_ext" 1811case "(($ac_try" in 1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1813 *) ac_try_echo=$ac_try;; 1814esac 1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1816$as_echo "$ac_try_echo"; } >&5 1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1818 ac_status=$? 1819 if test -s conftest.err; then 1820 grep -v '^ *+' conftest.err >conftest.er1 1821 cat conftest.er1 >&5 1822 mv -f conftest.er1 conftest.err 1823 fi 1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1825 test $ac_status = 0; } >/dev/null && { 1826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1827 test ! -s conftest.err 1828 }; then : 1829 ac_retval=0 1830else 1831 $as_echo "$as_me: failed program was:" >&5 1832sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 ac_retval=1 1835fi 1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1837 return $ac_retval 1838 1839} # ac_fn_cxx_try_cpp 1840 1841# ac_fn_cxx_try_link LINENO 1842# ------------------------- 1843# Try to link conftest.$ac_ext, and return whether this succeeded. 1844ac_fn_cxx_try_link () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 rm -f conftest.$ac_objext conftest$ac_exeext 1848 if { { ac_try="$ac_link" 1849case "(($ac_try" in 1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1851 *) ac_try_echo=$ac_try;; 1852esac 1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1854$as_echo "$ac_try_echo"; } >&5 1855 (eval "$ac_link") 2>conftest.err 1856 ac_status=$? 1857 if test -s conftest.err; then 1858 grep -v '^ *+' conftest.err >conftest.er1 1859 cat conftest.er1 >&5 1860 mv -f conftest.er1 conftest.err 1861 fi 1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1863 test $ac_status = 0; } && { 1864 test -z "$ac_cxx_werror_flag" || 1865 test ! -s conftest.err 1866 } && test -s conftest$ac_exeext && { 1867 test "$cross_compiling" = yes || 1868 $as_test_x conftest$ac_exeext 1869 }; then : 1870 ac_retval=0 1871else 1872 $as_echo "$as_me: failed program was:" >&5 1873sed 's/^/| /' conftest.$ac_ext >&5 1874 1875 ac_retval=1 1876fi 1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1879 # interfere with the next link command; also delete a directory that is 1880 # left behind by Apple's compiler. We do this before executing the actions. 1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1883 return $ac_retval 1884 1885} # ac_fn_cxx_try_link 1886 1887# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1888# -------------------------------------------- 1889# Tries to find the compile-time value of EXPR in a program that includes 1890# INCLUDES, setting VAR accordingly. Returns whether the value could be 1891# computed 1892ac_fn_c_compute_int () 1893{ 1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1895 if test "$cross_compiling" = yes; then 1896 # Depending upon the size, compute the lo and hi bounds. 1897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1898/* end confdefs.h. */ 1899$4 1900int 1901main () 1902{ 1903static int test_array [1 - 2 * !(($2) >= 0)]; 1904test_array [0] = 0 1905 1906 ; 1907 return 0; 1908} 1909_ACEOF 1910if ac_fn_c_try_compile "$LINENO"; then : 1911 ac_lo=0 ac_mid=0 1912 while :; do 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915$4 1916int 1917main () 1918{ 1919static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1920test_array [0] = 0 1921 1922 ; 1923 return 0; 1924} 1925_ACEOF 1926if ac_fn_c_try_compile "$LINENO"; then : 1927 ac_hi=$ac_mid; break 1928else 1929 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1930 if test $ac_lo -le $ac_mid; then 1931 ac_lo= ac_hi= 1932 break 1933 fi 1934 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1935fi 1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1937 done 1938else 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941$4 1942int 1943main () 1944{ 1945static int test_array [1 - 2 * !(($2) < 0)]; 1946test_array [0] = 0 1947 1948 ; 1949 return 0; 1950} 1951_ACEOF 1952if ac_fn_c_try_compile "$LINENO"; then : 1953 ac_hi=-1 ac_mid=-1 1954 while :; do 1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1956/* end confdefs.h. */ 1957$4 1958int 1959main () 1960{ 1961static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1962test_array [0] = 0 1963 1964 ; 1965 return 0; 1966} 1967_ACEOF 1968if ac_fn_c_try_compile "$LINENO"; then : 1969 ac_lo=$ac_mid; break 1970else 1971 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1972 if test $ac_mid -le $ac_hi; then 1973 ac_lo= ac_hi= 1974 break 1975 fi 1976 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979 done 1980else 1981 ac_lo= ac_hi= 1982fi 1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1984fi 1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1986# Binary search between lo and hi bounds. 1987while test "x$ac_lo" != "x$ac_hi"; do 1988 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990/* end confdefs.h. */ 1991$4 1992int 1993main () 1994{ 1995static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1996test_array [0] = 0 1997 1998 ; 1999 return 0; 2000} 2001_ACEOF 2002if ac_fn_c_try_compile "$LINENO"; then : 2003 ac_hi=$ac_mid 2004else 2005 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2006fi 2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2008done 2009case $ac_lo in #(( 2010?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2011'') ac_retval=1 ;; 2012esac 2013 else 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017static long int longval () { return $2; } 2018static unsigned long int ulongval () { return $2; } 2019#include <stdio.h> 2020#include <stdlib.h> 2021int 2022main () 2023{ 2024 2025 FILE *f = fopen ("conftest.val", "w"); 2026 if (! f) 2027 return 1; 2028 if (($2) < 0) 2029 { 2030 long int i = longval (); 2031 if (i != ($2)) 2032 return 1; 2033 fprintf (f, "%ld", i); 2034 } 2035 else 2036 { 2037 unsigned long int i = ulongval (); 2038 if (i != ($2)) 2039 return 1; 2040 fprintf (f, "%lu", i); 2041 } 2042 /* Do not output a trailing newline, as this causes \r\n confusion 2043 on some platforms. */ 2044 return ferror (f) || fclose (f) != 0; 2045 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_run "$LINENO"; then : 2051 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2052else 2053 ac_retval=1 2054fi 2055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2056 conftest.$ac_objext conftest.beam conftest.$ac_ext 2057rm -f conftest.val 2058 2059 fi 2060 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2061 return $ac_retval 2062 2063} # ac_fn_c_compute_int 2064cat >config.log <<_ACEOF 2065This file contains any messages produced by compilers while 2066running configure, to aid debugging if configure makes a mistake. 2067 2068It was created by package-unused $as_me version-unused, which was 2069generated by GNU Autoconf 2.64. Invocation command line was 2070 2071 $ $0 $@ 2072 2073_ACEOF 2074exec 5>>config.log 2075{ 2076cat <<_ASUNAME 2077## --------- ## 2078## Platform. ## 2079## --------- ## 2080 2081hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2082uname -m = `(uname -m) 2>/dev/null || echo unknown` 2083uname -r = `(uname -r) 2>/dev/null || echo unknown` 2084uname -s = `(uname -s) 2>/dev/null || echo unknown` 2085uname -v = `(uname -v) 2>/dev/null || echo unknown` 2086 2087/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2088/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2089 2090/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2091/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2092/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2093/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2094/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2095/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2096/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2097 2098_ASUNAME 2099 2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2101for as_dir in $PATH 2102do 2103 IFS=$as_save_IFS 2104 test -z "$as_dir" && as_dir=. 2105 $as_echo "PATH: $as_dir" 2106 done 2107IFS=$as_save_IFS 2108 2109} >&5 2110 2111cat >&5 <<_ACEOF 2112 2113 2114## ----------- ## 2115## Core tests. ## 2116## ----------- ## 2117 2118_ACEOF 2119 2120 2121# Keep a trace of the command line. 2122# Strip out --no-create and --no-recursion so they do not pile up. 2123# Strip out --silent because we don't want to record it for future runs. 2124# Also quote any args containing shell meta-characters. 2125# Make two passes to allow for proper duplicate-argument suppression. 2126ac_configure_args= 2127ac_configure_args0= 2128ac_configure_args1= 2129ac_must_keep_next=false 2130for ac_pass in 1 2 2131do 2132 for ac_arg 2133 do 2134 case $ac_arg in 2135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2137 | -silent | --silent | --silen | --sile | --sil) 2138 continue ;; 2139 *\'*) 2140 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2141 esac 2142 case $ac_pass in 2143 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2144 2) 2145 as_fn_append ac_configure_args1 " '$ac_arg'" 2146 if test $ac_must_keep_next = true; then 2147 ac_must_keep_next=false # Got value, back to normal. 2148 else 2149 case $ac_arg in 2150 *=* | --config-cache | -C | -disable-* | --disable-* \ 2151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2153 | -with-* | --with-* | -without-* | --without-* | --x) 2154 case "$ac_configure_args0 " in 2155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2156 esac 2157 ;; 2158 -* ) ac_must_keep_next=true ;; 2159 esac 2160 fi 2161 as_fn_append ac_configure_args " '$ac_arg'" 2162 ;; 2163 esac 2164 done 2165done 2166{ ac_configure_args0=; unset ac_configure_args0;} 2167{ ac_configure_args1=; unset ac_configure_args1;} 2168 2169# When interrupted or exit'd, cleanup temporary files, and complete 2170# config.log. We remove comments because anyway the quotes in there 2171# would cause problems or look ugly. 2172# WARNING: Use '\'' to represent an apostrophe within the trap. 2173# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2174trap 'exit_status=$? 2175 # Save into config.log some information that might help in debugging. 2176 { 2177 echo 2178 2179 cat <<\_ASBOX 2180## ---------------- ## 2181## Cache variables. ## 2182## ---------------- ## 2183_ASBOX 2184 echo 2185 # The following way of writing the cache mishandles newlines in values, 2186( 2187 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2188 eval ac_val=\$$ac_var 2189 case $ac_val in #( 2190 *${as_nl}*) 2191 case $ac_var in #( 2192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2193$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2194 esac 2195 case $ac_var in #( 2196 _ | IFS | as_nl) ;; #( 2197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2198 *) { eval $ac_var=; unset $ac_var;} ;; 2199 esac ;; 2200 esac 2201 done 2202 (set) 2>&1 | 2203 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2204 *${as_nl}ac_space=\ *) 2205 sed -n \ 2206 "s/'\''/'\''\\\\'\'''\''/g; 2207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2208 ;; #( 2209 *) 2210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2211 ;; 2212 esac | 2213 sort 2214) 2215 echo 2216 2217 cat <<\_ASBOX 2218## ----------------- ## 2219## Output variables. ## 2220## ----------------- ## 2221_ASBOX 2222 echo 2223 for ac_var in $ac_subst_vars 2224 do 2225 eval ac_val=\$$ac_var 2226 case $ac_val in 2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2228 esac 2229 $as_echo "$ac_var='\''$ac_val'\''" 2230 done | sort 2231 echo 2232 2233 if test -n "$ac_subst_files"; then 2234 cat <<\_ASBOX 2235## ------------------- ## 2236## File substitutions. ## 2237## ------------------- ## 2238_ASBOX 2239 echo 2240 for ac_var in $ac_subst_files 2241 do 2242 eval ac_val=\$$ac_var 2243 case $ac_val in 2244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2245 esac 2246 $as_echo "$ac_var='\''$ac_val'\''" 2247 done | sort 2248 echo 2249 fi 2250 2251 if test -s confdefs.h; then 2252 cat <<\_ASBOX 2253## ----------- ## 2254## confdefs.h. ## 2255## ----------- ## 2256_ASBOX 2257 echo 2258 cat confdefs.h 2259 echo 2260 fi 2261 test "$ac_signal" != 0 && 2262 $as_echo "$as_me: caught signal $ac_signal" 2263 $as_echo "$as_me: exit $exit_status" 2264 } >&5 2265 rm -f core *.core core.conftest.* && 2266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2267 exit $exit_status 2268' 0 2269for ac_signal in 1 2 13 15; do 2270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2271done 2272ac_signal=0 2273 2274# confdefs.h avoids OS command line length limits that DEFS can exceed. 2275rm -f -r conftest* confdefs.h 2276 2277$as_echo "/* confdefs.h */" > confdefs.h 2278 2279# Predefined preprocessor variables. 2280 2281cat >>confdefs.h <<_ACEOF 2282#define PACKAGE_NAME "$PACKAGE_NAME" 2283_ACEOF 2284 2285cat >>confdefs.h <<_ACEOF 2286#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2287_ACEOF 2288 2289cat >>confdefs.h <<_ACEOF 2290#define PACKAGE_VERSION "$PACKAGE_VERSION" 2291_ACEOF 2292 2293cat >>confdefs.h <<_ACEOF 2294#define PACKAGE_STRING "$PACKAGE_STRING" 2295_ACEOF 2296 2297cat >>confdefs.h <<_ACEOF 2298#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2299_ACEOF 2300 2301cat >>confdefs.h <<_ACEOF 2302#define PACKAGE_URL "$PACKAGE_URL" 2303_ACEOF 2304 2305 2306# Let the site file select an alternate cache file if it wants to. 2307# Prefer an explicitly selected file to automatically selected ones. 2308ac_site_file1=NONE 2309ac_site_file2=NONE 2310if test -n "$CONFIG_SITE"; then 2311 ac_site_file1=$CONFIG_SITE 2312elif test "x$prefix" != xNONE; then 2313 ac_site_file1=$prefix/share/config.site 2314 ac_site_file2=$prefix/etc/config.site 2315else 2316 ac_site_file1=$ac_default_prefix/share/config.site 2317 ac_site_file2=$ac_default_prefix/etc/config.site 2318fi 2319for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2320do 2321 test "x$ac_site_file" = xNONE && continue 2322 if test -r "$ac_site_file"; then 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2324$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2325 sed 's/^/| /' "$ac_site_file" >&5 2326 . "$ac_site_file" 2327 fi 2328done 2329 2330if test -r "$cache_file"; then 2331 # Some versions of bash will fail to source /dev/null (special 2332 # files actually), so we avoid doing that. 2333 if test -f "$cache_file"; then 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2335$as_echo "$as_me: loading cache $cache_file" >&6;} 2336 case $cache_file in 2337 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2338 *) . "./$cache_file";; 2339 esac 2340 fi 2341else 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2343$as_echo "$as_me: creating cache $cache_file" >&6;} 2344 >$cache_file 2345fi 2346 2347# Check that the precious variables saved in the cache have kept the same 2348# value. 2349ac_cache_corrupted=false 2350for ac_var in $ac_precious_vars; do 2351 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2352 eval ac_new_set=\$ac_env_${ac_var}_set 2353 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2354 eval ac_new_val=\$ac_env_${ac_var}_value 2355 case $ac_old_set,$ac_new_set in 2356 set,) 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2358$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2359 ac_cache_corrupted=: ;; 2360 ,set) 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2362$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2363 ac_cache_corrupted=: ;; 2364 ,);; 2365 *) 2366 if test "x$ac_old_val" != "x$ac_new_val"; then 2367 # differences in whitespace do not lead to failure. 2368 ac_old_val_w=`echo x $ac_old_val` 2369 ac_new_val_w=`echo x $ac_new_val` 2370 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2372$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2373 ac_cache_corrupted=: 2374 else 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2376$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2377 eval $ac_var=\$ac_old_val 2378 fi 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2380$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2382$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2383 fi;; 2384 esac 2385 # Pass precious variables to config.status. 2386 if test "$ac_new_set" = set; then 2387 case $ac_new_val in 2388 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2389 *) ac_arg=$ac_var=$ac_new_val ;; 2390 esac 2391 case " $ac_configure_args " in 2392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2393 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2394 esac 2395 fi 2396done 2397if $ac_cache_corrupted; then 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2401$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2402 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2403fi 2404## -------------------- ## 2405## Main body of script. ## 2406## -------------------- ## 2407 2408ac_ext=c 2409ac_cpp='$CPP $CPPFLAGS' 2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2412ac_compiler_gnu=$ac_cv_c_compiler_gnu 2413 2414 2415 2416 2417 2418 2419 2420# Default to --enable-multilib 2421# Check whether --enable-multilib was given. 2422if test "${enable_multilib+set}" = set; then : 2423 enableval=$enable_multilib; case "$enableval" in 2424 yes) multilib=yes ;; 2425 no) multilib=no ;; 2426 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 2427 esac 2428else 2429 multilib=yes 2430fi 2431 2432 2433# We may get other options which we leave undocumented: 2434# --with-target-subdir, --with-multisrctop, --with-multisubdir 2435# See config-ml.in if you want the gory details. 2436 2437if test "$srcdir" = "."; then 2438 if test "$with_target_subdir" != "."; then 2439 multi_basedir="$srcdir/$with_multisrctop../.." 2440 else 2441 multi_basedir="$srcdir/$with_multisrctop.." 2442 fi 2443else 2444 multi_basedir="$srcdir/.." 2445fi 2446 2447 2448# Even if the default multilib is not a cross compilation, 2449# it may be that some of the other multilibs are. 2450if test $cross_compiling = no && test $multilib = yes \ 2451 && test "x${with_multisubdir}" != x ; then 2452 cross_compiling=maybe 2453fi 2454 2455ac_config_commands="$ac_config_commands default-1" 2456 2457 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2459$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2460# Check whether --enable-version-specific-runtime-libs was given. 2461if test "${enable_version_specific_runtime_libs+set}" = set; then : 2462 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 2463 yes) version_specific_libs=yes ;; 2464 no) version_specific_libs=no ;; 2465 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 2466 esac 2467else 2468 version_specific_libs=no 2469fi 2470 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 2472$as_echo "$version_specific_libs" >&6; } 2473 2474# Do not delete or change the following two lines. For why, see 2475# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2476ac_aux_dir= 2477for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2478 for ac_t in install-sh install.sh shtool; do 2479 if test -f "$ac_dir/$ac_t"; then 2480 ac_aux_dir=$ac_dir 2481 ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c" 2482 break 2 2483 fi 2484 done 2485done 2486if test -z "$ac_aux_dir"; then 2487 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2488fi 2489 2490# These three variables are undocumented and unsupported, 2491# and are intended to be withdrawn in a future Autoconf release. 2492# They can cause serious problems if a builder's source tree is in a directory 2493# whose full name contains unusual characters. 2494ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2495ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2496ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2497 2498 2499# Make sure we can run config.sub. 2500$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2501 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2502 2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2504$as_echo_n "checking build system type... " >&6; } 2505if test "${ac_cv_build+set}" = set; then : 2506 $as_echo_n "(cached) " >&6 2507else 2508 ac_build_alias=$build_alias 2509test "x$ac_build_alias" = x && 2510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2511test "x$ac_build_alias" = x && 2512 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2513ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2514 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2515 2516fi 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2518$as_echo "$ac_cv_build" >&6; } 2519case $ac_cv_build in 2520*-*-*) ;; 2521*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2522esac 2523build=$ac_cv_build 2524ac_save_IFS=$IFS; IFS='-' 2525set x $ac_cv_build 2526shift 2527build_cpu=$1 2528build_vendor=$2 2529shift; shift 2530# Remember, the first character of IFS is used to create $*, 2531# except with old shells: 2532build_os=$* 2533IFS=$ac_save_IFS 2534case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2535 2536 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2538$as_echo_n "checking host system type... " >&6; } 2539if test "${ac_cv_host+set}" = set; then : 2540 $as_echo_n "(cached) " >&6 2541else 2542 if test "x$host_alias" = x; then 2543 ac_cv_host=$ac_cv_build 2544else 2545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2546 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2547fi 2548 2549fi 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2551$as_echo "$ac_cv_host" >&6; } 2552case $ac_cv_host in 2553*-*-*) ;; 2554*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2555esac 2556host=$ac_cv_host 2557ac_save_IFS=$IFS; IFS='-' 2558set x $ac_cv_host 2559shift 2560host_cpu=$1 2561host_vendor=$2 2562shift; shift 2563# Remember, the first character of IFS is used to create $*, 2564# except with old shells: 2565host_os=$* 2566IFS=$ac_save_IFS 2567case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2568 2569 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2571$as_echo_n "checking target system type... " >&6; } 2572if test "${ac_cv_target+set}" = set; then : 2573 $as_echo_n "(cached) " >&6 2574else 2575 if test "x$target_alias" = x; then 2576 ac_cv_target=$ac_cv_host 2577else 2578 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2579 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2580fi 2581 2582fi 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2584$as_echo "$ac_cv_target" >&6; } 2585case $ac_cv_target in 2586*-*-*) ;; 2587*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2588esac 2589target=$ac_cv_target 2590ac_save_IFS=$IFS; IFS='-' 2591set x $ac_cv_target 2592shift 2593target_cpu=$1 2594target_vendor=$2 2595shift; shift 2596# Remember, the first character of IFS is used to create $*, 2597# except with old shells: 2598target_os=$* 2599IFS=$ac_save_IFS 2600case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2601 2602 2603# The aliases save the names the user supplied, while $host etc. 2604# will get canonicalized. 2605test -n "$target_alias" && 2606 test "$program_prefix$program_suffix$program_transform_name" = \ 2607 NONENONEs,x,x, && 2608 program_prefix=${target_alias}- 2609 2610target_alias=${target_alias-$host_alias} 2611 2612 case ${build_alias} in 2613 "") build_noncanonical=${build} ;; 2614 *) build_noncanonical=${build_alias} ;; 2615esac 2616 2617 case ${host_alias} in 2618 "") host_noncanonical=${build_noncanonical} ;; 2619 *) host_noncanonical=${host_alias} ;; 2620esac 2621 2622 case ${target_alias} in 2623 "") target_noncanonical=${host_noncanonical} ;; 2624 *) target_noncanonical=${target_alias} ;; 2625esac 2626 2627 2628 2629 2630 2631 LIBSTDCXX_RAW_CXX_CXXFLAGS="\ 2632 -I\$(top_builddir)/../libstdc++-v3/include \ 2633 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \ 2634 -I\$(top_srcdir)/../libstdc++-v3/libsupc++" 2635 LIBSTDCXX_RAW_CXX_LDFLAGS="\ 2636 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la" 2637 2638 2639 2640 2641am__api_version='1.11' 2642 2643# Find a good install program. We prefer a C program (faster), 2644# so one script is as good as another. But avoid the broken or 2645# incompatible versions: 2646# SysV /etc/install, /usr/sbin/install 2647# SunOS /usr/etc/install 2648# IRIX /sbin/install 2649# AIX /bin/install 2650# AmigaOS /C/install, which installs bootblocks on floppy discs 2651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2652# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2654# OS/2's system install, which has a completely different semantic 2655# ./install, which can be erroneously created by make from ./install.sh. 2656# Reject install programs that cannot install multiple files. 2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2658$as_echo_n "checking for a BSD-compatible install... " >&6; } 2659if test -z "$INSTALL"; then 2660if test "${ac_cv_path_install+set}" = set; then : 2661 $as_echo_n "(cached) " >&6 2662else 2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2664for as_dir in $PATH 2665do 2666 IFS=$as_save_IFS 2667 test -z "$as_dir" && as_dir=. 2668 # Account for people who put trailing slashes in PATH elements. 2669case $as_dir/ in #(( 2670 ./ | .// | /[cC]/* | \ 2671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2672 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2673 /usr/ucb/* ) ;; 2674 *) 2675 # OSF1 and SCO ODT 3.0 have their own names for install. 2676 # Don't use installbsd from OSF since it installs stuff as root 2677 # by default. 2678 for ac_prog in ginstall scoinst install; do 2679 for ac_exec_ext in '' $ac_executable_extensions; do 2680 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2681 if test $ac_prog = install && 2682 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2683 # AIX install. It has an incompatible calling convention. 2684 : 2685 elif test $ac_prog = install && 2686 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2687 # program-specific install script used by HP pwplus--don't use. 2688 : 2689 else 2690 rm -rf conftest.one conftest.two conftest.dir 2691 echo one > conftest.one 2692 echo two > conftest.two 2693 mkdir conftest.dir 2694 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2695 test -s conftest.one && test -s conftest.two && 2696 test -s conftest.dir/conftest.one && 2697 test -s conftest.dir/conftest.two 2698 then 2699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2700 break 3 2701 fi 2702 fi 2703 fi 2704 done 2705 done 2706 ;; 2707esac 2708 2709 done 2710IFS=$as_save_IFS 2711 2712rm -rf conftest.one conftest.two conftest.dir 2713 2714fi 2715 if test "${ac_cv_path_install+set}" = set; then 2716 INSTALL=$ac_cv_path_install 2717 else 2718 # As a last resort, use the slow shell script. Don't cache a 2719 # value for INSTALL within a source directory, because that will 2720 # break other packages using the cache if that directory is 2721 # removed, or if the value is a relative name. 2722 INSTALL=$ac_install_sh 2723 fi 2724fi 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2726$as_echo "$INSTALL" >&6; } 2727 2728# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2729# It thinks the first close brace ends the variable substitution. 2730test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2731 2732test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2733 2734test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2735 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2737$as_echo_n "checking whether build environment is sane... " >&6; } 2738# Just in case 2739sleep 1 2740echo timestamp > conftest.file 2741# Reject unsafe characters in $srcdir or the absolute working directory 2742# name. Accept space and tab only in the latter. 2743am_lf=' 2744' 2745case `pwd` in 2746 *[\\\"\#\$\&\'\`$am_lf]*) 2747 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2748esac 2749case $srcdir in 2750 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2751 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2752esac 2753 2754# Do `set' in a subshell so we don't clobber the current shell's 2755# arguments. Must try -L first in case configure is actually a 2756# symlink; some systems play weird games with the mod time of symlinks 2757# (eg FreeBSD returns the mod time of the symlink's containing 2758# directory). 2759if ( 2760 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2761 if test "$*" = "X"; then 2762 # -L didn't work. 2763 set X `ls -t "$srcdir/configure" conftest.file` 2764 fi 2765 rm -f conftest.file 2766 if test "$*" != "X $srcdir/configure conftest.file" \ 2767 && test "$*" != "X conftest.file $srcdir/configure"; then 2768 2769 # If neither matched, then we have a broken ls. This can happen 2770 # if, for instance, CONFIG_SHELL is bash and it inherits a 2771 # broken ls alias from the environment. This has actually 2772 # happened. Such a system could not be considered "sane". 2773 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2774alias in your environment" "$LINENO" 5 2775 fi 2776 2777 test "$2" = conftest.file 2778 ) 2779then 2780 # Ok. 2781 : 2782else 2783 as_fn_error "newly created file is older than distributed files! 2784Check your system clock" "$LINENO" 5 2785fi 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2787$as_echo "yes" >&6; } 2788test "$program_prefix" != NONE && 2789 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2790# Use a double $ so make ignores it. 2791test "$program_suffix" != NONE && 2792 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2793# Double any \ or $. 2794# By default was `s,x,x', remove it if useless. 2795ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2796program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2797 2798# expand $ac_aux_dir to an absolute path 2799am_aux_dir=`cd $ac_aux_dir && pwd` 2800 2801if test x"${MISSING+set}" != xset; then 2802 case $am_aux_dir in 2803 *\ * | *\ *) 2804 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2805 *) 2806 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2807 esac 2808fi 2809# Use eval to expand $SHELL 2810if eval "$MISSING --run true"; then 2811 am_missing_run="$MISSING --run " 2812else 2813 am_missing_run= 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2815$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2816fi 2817 2818if test x"${install_sh}" != xset; then 2819 case $am_aux_dir in 2820 *\ * | *\ *) 2821 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2822 *) 2823 install_sh="\${SHELL} $am_aux_dir/install-sh" 2824 esac 2825fi 2826 2827# Installed binaries are usually stripped using `strip' when the user 2828# run `make install-strip'. However `strip' might not be the right 2829# tool to use in cross-compilation environments, therefore Automake 2830# will honor the `STRIP' environment variable to overrule this program. 2831if test "$cross_compiling" != no; then 2832 if test -n "$ac_tool_prefix"; then 2833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2834set dummy ${ac_tool_prefix}strip; ac_word=$2 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2836$as_echo_n "checking for $ac_word... " >&6; } 2837if test "${ac_cv_prog_STRIP+set}" = set; then : 2838 $as_echo_n "(cached) " >&6 2839else 2840 if test -n "$STRIP"; then 2841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2842else 2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2844for as_dir in $PATH 2845do 2846 IFS=$as_save_IFS 2847 test -z "$as_dir" && as_dir=. 2848 for ac_exec_ext in '' $ac_executable_extensions; do 2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2850 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2852 break 2 2853 fi 2854done 2855 done 2856IFS=$as_save_IFS 2857 2858fi 2859fi 2860STRIP=$ac_cv_prog_STRIP 2861if test -n "$STRIP"; then 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2863$as_echo "$STRIP" >&6; } 2864else 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2866$as_echo "no" >&6; } 2867fi 2868 2869 2870fi 2871if test -z "$ac_cv_prog_STRIP"; then 2872 ac_ct_STRIP=$STRIP 2873 # Extract the first word of "strip", so it can be a program name with args. 2874set dummy strip; ac_word=$2 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$ac_ct_STRIP"; then 2881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2890 ac_cv_prog_ac_ct_STRIP="strip" 2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2901if test -n "$ac_ct_STRIP"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2903$as_echo "$ac_ct_STRIP" >&6; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 if test "x$ac_ct_STRIP" = x; then 2910 STRIP=":" 2911 else 2912 case $cross_compiling:$ac_tool_warned in 2913yes:) 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2916ac_tool_warned=yes ;; 2917esac 2918 STRIP=$ac_ct_STRIP 2919 fi 2920else 2921 STRIP="$ac_cv_prog_STRIP" 2922fi 2923 2924fi 2925INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2926 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2928$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2929if test -z "$MKDIR_P"; then 2930 if test "${ac_cv_path_mkdir+set}" = set; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2935do 2936 IFS=$as_save_IFS 2937 test -z "$as_dir" && as_dir=. 2938 for ac_prog in mkdir gmkdir; do 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2941 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2942 'mkdir (GNU coreutils) '* | \ 2943 'mkdir (coreutils) '* | \ 2944 'mkdir (fileutils) '4.1*) 2945 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2946 break 3;; 2947 esac 2948 done 2949 done 2950 done 2951IFS=$as_save_IFS 2952 2953fi 2954 2955 if test "${ac_cv_path_mkdir+set}" = set; then 2956 MKDIR_P="$ac_cv_path_mkdir -p" 2957 else 2958 # As a last resort, use the slow shell script. Don't cache a 2959 # value for MKDIR_P within a source directory, because that will 2960 # break other packages using the cache if that directory is 2961 # removed, or if the value is a relative name. 2962 test -d ./--version && rmdir ./--version 2963 MKDIR_P="$ac_install_sh -d" 2964 fi 2965fi 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2967$as_echo "$MKDIR_P" >&6; } 2968 2969mkdir_p="$MKDIR_P" 2970case $mkdir_p in 2971 [\\/$]* | ?:[\\/]*) ;; 2972 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2973esac 2974 2975for ac_prog in gawk mawk nawk awk 2976do 2977 # Extract the first word of "$ac_prog", so it can be a program name with args. 2978set dummy $ac_prog; ac_word=$2 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2980$as_echo_n "checking for $ac_word... " >&6; } 2981if test "${ac_cv_prog_AWK+set}" = set; then : 2982 $as_echo_n "(cached) " >&6 2983else 2984 if test -n "$AWK"; then 2985 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2986else 2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988for as_dir in $PATH 2989do 2990 IFS=$as_save_IFS 2991 test -z "$as_dir" && as_dir=. 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2994 ac_cv_prog_AWK="$ac_prog" 2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2996 break 2 2997 fi 2998done 2999 done 3000IFS=$as_save_IFS 3001 3002fi 3003fi 3004AWK=$ac_cv_prog_AWK 3005if test -n "$AWK"; then 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3007$as_echo "$AWK" >&6; } 3008else 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3010$as_echo "no" >&6; } 3011fi 3012 3013 3014 test -n "$AWK" && break 3015done 3016 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3018$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3019set x ${MAKE-make} 3020ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3021if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 cat >conftest.make <<\_ACEOF 3025SHELL = /bin/sh 3026all: 3027 @echo '@@@%%%=$(MAKE)=@@@%%%' 3028_ACEOF 3029# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3030case `${MAKE-make} -f conftest.make 2>/dev/null` in 3031 *@@@%%%=?*=@@@%%%*) 3032 eval ac_cv_prog_make_${ac_make}_set=yes;; 3033 *) 3034 eval ac_cv_prog_make_${ac_make}_set=no;; 3035esac 3036rm -f conftest.make 3037fi 3038if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3040$as_echo "yes" >&6; } 3041 SET_MAKE= 3042else 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3044$as_echo "no" >&6; } 3045 SET_MAKE="MAKE=${MAKE-make}" 3046fi 3047 3048rm -rf .tst 2>/dev/null 3049mkdir .tst 2>/dev/null 3050if test -d .tst; then 3051 am__leading_dot=. 3052else 3053 am__leading_dot=_ 3054fi 3055rmdir .tst 2>/dev/null 3056 3057if test "`cd $srcdir && pwd`" != "`pwd`"; then 3058 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3059 # is not polluted with repeated "-I." 3060 am__isrc=' -I$(srcdir)' 3061 # test to see if srcdir already configured 3062 if test -f $srcdir/config.status; then 3063 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3064 fi 3065fi 3066 3067# test whether we have cygpath 3068if test -z "$CYGPATH_W"; then 3069 if (cygpath --version) >/dev/null 2>/dev/null; then 3070 CYGPATH_W='cygpath -w' 3071 else 3072 CYGPATH_W=echo 3073 fi 3074fi 3075 3076 3077# Define the identity of the package. 3078 PACKAGE='package-unused' 3079 VERSION='version-unused' 3080 3081 3082cat >>confdefs.h <<_ACEOF 3083#define PACKAGE "$PACKAGE" 3084_ACEOF 3085 3086 3087cat >>confdefs.h <<_ACEOF 3088#define VERSION "$VERSION" 3089_ACEOF 3090 3091# Some tools Automake needs. 3092 3093ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3094 3095 3096AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3097 3098 3099AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3100 3101 3102AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3103 3104 3105MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3106 3107# We need awk for the "check" target. The system "awk" is bad on 3108# some platforms. 3109# Always define AMTAR for backward compatibility. 3110 3111AMTAR=${AMTAR-"${am_missing_run}tar"} 3112 3113am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3114 3115 3116 3117 3118 3119 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3121$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3122 # Check whether --enable-maintainer-mode was given. 3123if test "${enable_maintainer_mode+set}" = set; then : 3124 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3125else 3126 USE_MAINTAINER_MODE=no 3127fi 3128 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3130$as_echo "$USE_MAINTAINER_MODE" >&6; } 3131 if test $USE_MAINTAINER_MODE = yes; then 3132 MAINTAINER_MODE_TRUE= 3133 MAINTAINER_MODE_FALSE='#' 3134else 3135 MAINTAINER_MODE_TRUE='#' 3136 MAINTAINER_MODE_FALSE= 3137fi 3138 3139 MAINT=$MAINTAINER_MODE_TRUE 3140 3141 3142 3143# Calculate toolexeclibdir 3144# Also toolexecdir, though it's only used in toolexeclibdir 3145case ${version_specific_libs} in 3146 yes) 3147 # Need the gcc compiler version to know where to install libraries 3148 # and header files if --enable-version-specific-runtime-libs option 3149 # is selected. 3150 toolexecdir='$(libdir)/gcc/$(target_alias)' 3151 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 3152 ;; 3153 no) 3154 if test -n "$with_cross_host" && 3155 test x"$with_cross_host" != x"no"; then 3156 # Install a library built with a cross compiler in tooldir, not libdir. 3157 toolexecdir='$(exec_prefix)/$(target_alias)' 3158 toolexeclibdir='$(toolexecdir)/lib' 3159 else 3160 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 3161 toolexeclibdir='$(libdir)' 3162 fi 3163 multi_os_directory=`$CC -print-multi-os-directory` 3164 case $multi_os_directory in 3165 .) ;; # Avoid trailing /. 3166 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 3167 esac 3168 ;; 3169esac 3170 3171 3172 3173# Checks for programs. 3174ac_ext=c 3175ac_cpp='$CPP $CPPFLAGS' 3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3178ac_compiler_gnu=$ac_cv_c_compiler_gnu 3179if test -n "$ac_tool_prefix"; then 3180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3181set dummy ${ac_tool_prefix}gcc; ac_word=$2 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183$as_echo_n "checking for $ac_word... " >&6; } 3184if test "${ac_cv_prog_CC+set}" = set; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 if test -n "$CC"; then 3188 ac_cv_prog_CC="$CC" # Let the user override the test. 3189else 3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3191for as_dir in $PATH 3192do 3193 IFS=$as_save_IFS 3194 test -z "$as_dir" && as_dir=. 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3197 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3199 break 2 3200 fi 3201done 3202 done 3203IFS=$as_save_IFS 3204 3205fi 3206fi 3207CC=$ac_cv_prog_CC 3208if test -n "$CC"; then 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3210$as_echo "$CC" >&6; } 3211else 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3213$as_echo "no" >&6; } 3214fi 3215 3216 3217fi 3218if test -z "$ac_cv_prog_CC"; then 3219 ac_ct_CC=$CC 3220 # Extract the first word of "gcc", so it can be a program name with args. 3221set dummy gcc; ac_word=$2 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3223$as_echo_n "checking for $ac_word... " >&6; } 3224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3225 $as_echo_n "(cached) " >&6 3226else 3227 if test -n "$ac_ct_CC"; then 3228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3229else 3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231for as_dir in $PATH 3232do 3233 IFS=$as_save_IFS 3234 test -z "$as_dir" && as_dir=. 3235 for ac_exec_ext in '' $ac_executable_extensions; do 3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3237 ac_cv_prog_ac_ct_CC="gcc" 3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3239 break 2 3240 fi 3241done 3242 done 3243IFS=$as_save_IFS 3244 3245fi 3246fi 3247ac_ct_CC=$ac_cv_prog_ac_ct_CC 3248if test -n "$ac_ct_CC"; then 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3250$as_echo "$ac_ct_CC" >&6; } 3251else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253$as_echo "no" >&6; } 3254fi 3255 3256 if test "x$ac_ct_CC" = x; then 3257 CC="" 3258 else 3259 case $cross_compiling:$ac_tool_warned in 3260yes:) 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3263ac_tool_warned=yes ;; 3264esac 3265 CC=$ac_ct_CC 3266 fi 3267else 3268 CC="$ac_cv_prog_CC" 3269fi 3270 3271if test -z "$CC"; then 3272 if test -n "$ac_tool_prefix"; then 3273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3274set dummy ${ac_tool_prefix}cc; ac_word=$2 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3276$as_echo_n "checking for $ac_word... " >&6; } 3277if test "${ac_cv_prog_CC+set}" = set; then : 3278 $as_echo_n "(cached) " >&6 3279else 3280 if test -n "$CC"; then 3281 ac_cv_prog_CC="$CC" # Let the user override the test. 3282else 3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3284for as_dir in $PATH 3285do 3286 IFS=$as_save_IFS 3287 test -z "$as_dir" && as_dir=. 3288 for ac_exec_ext in '' $ac_executable_extensions; do 3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3290 ac_cv_prog_CC="${ac_tool_prefix}cc" 3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3292 break 2 3293 fi 3294done 3295 done 3296IFS=$as_save_IFS 3297 3298fi 3299fi 3300CC=$ac_cv_prog_CC 3301if test -n "$CC"; then 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3303$as_echo "$CC" >&6; } 3304else 3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3306$as_echo "no" >&6; } 3307fi 3308 3309 3310 fi 3311fi 3312if test -z "$CC"; then 3313 # Extract the first word of "cc", so it can be a program name with args. 3314set dummy cc; ac_word=$2 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3316$as_echo_n "checking for $ac_word... " >&6; } 3317if test "${ac_cv_prog_CC+set}" = set; then : 3318 $as_echo_n "(cached) " >&6 3319else 3320 if test -n "$CC"; then 3321 ac_cv_prog_CC="$CC" # Let the user override the test. 3322else 3323 ac_prog_rejected=no 3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3325for as_dir in $PATH 3326do 3327 IFS=$as_save_IFS 3328 test -z "$as_dir" && as_dir=. 3329 for ac_exec_ext in '' $ac_executable_extensions; do 3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3332 ac_prog_rejected=yes 3333 continue 3334 fi 3335 ac_cv_prog_CC="cc" 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343if test $ac_prog_rejected = yes; then 3344 # We found a bogon in the path, so make sure we never use it. 3345 set dummy $ac_cv_prog_CC 3346 shift 3347 if test $# != 0; then 3348 # We chose a different compiler from the bogus one. 3349 # However, it has the same basename, so the bogon will be chosen 3350 # first if we set CC to just the basename; use the full file name. 3351 shift 3352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3353 fi 3354fi 3355fi 3356fi 3357CC=$ac_cv_prog_CC 3358if test -n "$CC"; then 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3360$as_echo "$CC" >&6; } 3361else 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3363$as_echo "no" >&6; } 3364fi 3365 3366 3367fi 3368if test -z "$CC"; then 3369 if test -n "$ac_tool_prefix"; then 3370 for ac_prog in cl.exe 3371 do 3372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3373set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3375$as_echo_n "checking for $ac_word... " >&6; } 3376if test "${ac_cv_prog_CC+set}" = set; then : 3377 $as_echo_n "(cached) " >&6 3378else 3379 if test -n "$CC"; then 3380 ac_cv_prog_CC="$CC" # Let the user override the test. 3381else 3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3383for as_dir in $PATH 3384do 3385 IFS=$as_save_IFS 3386 test -z "$as_dir" && as_dir=. 3387 for ac_exec_ext in '' $ac_executable_extensions; do 3388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3391 break 2 3392 fi 3393done 3394 done 3395IFS=$as_save_IFS 3396 3397fi 3398fi 3399CC=$ac_cv_prog_CC 3400if test -n "$CC"; then 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3402$as_echo "$CC" >&6; } 3403else 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3405$as_echo "no" >&6; } 3406fi 3407 3408 3409 test -n "$CC" && break 3410 done 3411fi 3412if test -z "$CC"; then 3413 ac_ct_CC=$CC 3414 for ac_prog in cl.exe 3415do 3416 # Extract the first word of "$ac_prog", so it can be a program name with args. 3417set dummy $ac_prog; ac_word=$2 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3419$as_echo_n "checking for $ac_word... " >&6; } 3420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3421 $as_echo_n "(cached) " >&6 3422else 3423 if test -n "$ac_ct_CC"; then 3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3425else 3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3427for as_dir in $PATH 3428do 3429 IFS=$as_save_IFS 3430 test -z "$as_dir" && as_dir=. 3431 for ac_exec_ext in '' $ac_executable_extensions; do 3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3433 ac_cv_prog_ac_ct_CC="$ac_prog" 3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3435 break 2 3436 fi 3437done 3438 done 3439IFS=$as_save_IFS 3440 3441fi 3442fi 3443ac_ct_CC=$ac_cv_prog_ac_ct_CC 3444if test -n "$ac_ct_CC"; then 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3446$as_echo "$ac_ct_CC" >&6; } 3447else 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3449$as_echo "no" >&6; } 3450fi 3451 3452 3453 test -n "$ac_ct_CC" && break 3454done 3455 3456 if test "x$ac_ct_CC" = x; then 3457 CC="" 3458 else 3459 case $cross_compiling:$ac_tool_warned in 3460yes:) 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3463ac_tool_warned=yes ;; 3464esac 3465 CC=$ac_ct_CC 3466 fi 3467fi 3468 3469fi 3470 3471 3472test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3474as_fn_error "no acceptable C compiler found in \$PATH 3475See \`config.log' for more details." "$LINENO" 5; } 3476 3477# Provide some information about the compiler. 3478$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3479set X $ac_compile 3480ac_compiler=$2 3481for ac_option in --version -v -V -qversion; do 3482 { { ac_try="$ac_compiler $ac_option >&5" 3483case "(($ac_try" in 3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3485 *) ac_try_echo=$ac_try;; 3486esac 3487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3488$as_echo "$ac_try_echo"; } >&5 3489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3490 ac_status=$? 3491 if test -s conftest.err; then 3492 sed '10a\ 3493... rest of stderr output deleted ... 3494 10q' conftest.err >conftest.er1 3495 cat conftest.er1 >&5 3496 rm -f conftest.er1 conftest.err 3497 fi 3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3499 test $ac_status = 0; } 3500done 3501 3502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3503/* end confdefs.h. */ 3504 3505int 3506main () 3507{ 3508 3509 ; 3510 return 0; 3511} 3512_ACEOF 3513ac_clean_files_save=$ac_clean_files 3514ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3515# Try to create an executable without -o first, disregard a.out. 3516# It will help us diagnose broken compilers, and finding out an intuition 3517# of exeext. 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3519$as_echo_n "checking for C compiler default output file name... " >&6; } 3520ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3521 3522# The possible output files: 3523ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3524 3525ac_rmfiles= 3526for ac_file in $ac_files 3527do 3528 case $ac_file in 3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3530 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3531 esac 3532done 3533rm -f $ac_rmfiles 3534 3535if { { ac_try="$ac_link_default" 3536case "(($ac_try" in 3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3538 *) ac_try_echo=$ac_try;; 3539esac 3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3541$as_echo "$ac_try_echo"; } >&5 3542 (eval "$ac_link_default") 2>&5 3543 ac_status=$? 3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3545 test $ac_status = 0; }; then : 3546 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3547# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3548# in a Makefile. We should not override ac_cv_exeext if it was cached, 3549# so that the user can short-circuit this test for compilers unknown to 3550# Autoconf. 3551for ac_file in $ac_files '' 3552do 3553 test -f "$ac_file" || continue 3554 case $ac_file in 3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3556 ;; 3557 [ab].out ) 3558 # We found the default executable, but exeext='' is most 3559 # certainly right. 3560 break;; 3561 *.* ) 3562 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3563 then :; else 3564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3565 fi 3566 # We set ac_cv_exeext here because the later test for it is not 3567 # safe: cross compilers may not add the suffix if given an `-o' 3568 # argument, so we may need to know it at that point already. 3569 # Even if this section looks crufty: it has the advantage of 3570 # actually working. 3571 break;; 3572 * ) 3573 break;; 3574 esac 3575done 3576test "$ac_cv_exeext" = no && ac_cv_exeext= 3577 3578else 3579 ac_file='' 3580fi 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3582$as_echo "$ac_file" >&6; } 3583if test -z "$ac_file"; then : 3584 $as_echo "$as_me: failed program was:" >&5 3585sed 's/^/| /' conftest.$ac_ext >&5 3586 3587{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3589{ as_fn_set_status 77 3590as_fn_error "C compiler cannot create executables 3591See \`config.log' for more details." "$LINENO" 5; }; } 3592fi 3593ac_exeext=$ac_cv_exeext 3594 3595# Check that the compiler produces executables we can run. If not, either 3596# the compiler is broken, or we cross compile. 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3598$as_echo_n "checking whether the C compiler works... " >&6; } 3599# If not cross compiling, check that we can run a simple program. 3600if test "$cross_compiling" != yes; then 3601 if { ac_try='./$ac_file' 3602 { { case "(($ac_try" in 3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3604 *) ac_try_echo=$ac_try;; 3605esac 3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3607$as_echo "$ac_try_echo"; } >&5 3608 (eval "$ac_try") 2>&5 3609 ac_status=$? 3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3611 test $ac_status = 0; }; }; then 3612 cross_compiling=no 3613 else 3614 if test "$cross_compiling" = maybe; then 3615 cross_compiling=yes 3616 else 3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3619as_fn_error "cannot run C compiled programs. 3620If you meant to cross compile, use \`--host'. 3621See \`config.log' for more details." "$LINENO" 5; } 3622 fi 3623 fi 3624fi 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3626$as_echo "yes" >&6; } 3627 3628rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3629ac_clean_files=$ac_clean_files_save 3630# Check that the compiler produces executables we can run. If not, either 3631# the compiler is broken, or we cross compile. 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3633$as_echo_n "checking whether we are cross compiling... " >&6; } 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3635$as_echo "$cross_compiling" >&6; } 3636 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3638$as_echo_n "checking for suffix of executables... " >&6; } 3639if { { ac_try="$ac_link" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3645$as_echo "$ac_try_echo"; } >&5 3646 (eval "$ac_link") 2>&5 3647 ac_status=$? 3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3649 test $ac_status = 0; }; then : 3650 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3651# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3652# work properly (i.e., refer to `conftest.exe'), while it won't with 3653# `rm'. 3654for ac_file in conftest.exe conftest conftest.*; do 3655 test -f "$ac_file" || continue 3656 case $ac_file in 3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3659 break;; 3660 * ) break;; 3661 esac 3662done 3663else 3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3666as_fn_error "cannot compute suffix of executables: cannot compile and link 3667See \`config.log' for more details." "$LINENO" 5; } 3668fi 3669rm -f conftest$ac_cv_exeext 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3671$as_echo "$ac_cv_exeext" >&6; } 3672 3673rm -f conftest.$ac_ext 3674EXEEXT=$ac_cv_exeext 3675ac_exeext=$EXEEXT 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3677$as_echo_n "checking for suffix of object files... " >&6; } 3678if test "${ac_cv_objext+set}" = set; then : 3679 $as_echo_n "(cached) " >&6 3680else 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683 3684int 3685main () 3686{ 3687 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692rm -f conftest.o conftest.obj 3693if { { ac_try="$ac_compile" 3694case "(($ac_try" in 3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3696 *) ac_try_echo=$ac_try;; 3697esac 3698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3699$as_echo "$ac_try_echo"; } >&5 3700 (eval "$ac_compile") 2>&5 3701 ac_status=$? 3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3703 test $ac_status = 0; }; then : 3704 for ac_file in conftest.o conftest.obj conftest.*; do 3705 test -f "$ac_file" || continue; 3706 case $ac_file in 3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3709 break;; 3710 esac 3711done 3712else 3713 $as_echo "$as_me: failed program was:" >&5 3714sed 's/^/| /' conftest.$ac_ext >&5 3715 3716{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3718as_fn_error "cannot compute suffix of object files: cannot compile 3719See \`config.log' for more details." "$LINENO" 5; } 3720fi 3721rm -f conftest.$ac_cv_objext conftest.$ac_ext 3722fi 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3724$as_echo "$ac_cv_objext" >&6; } 3725OBJEXT=$ac_cv_objext 3726ac_objext=$OBJEXT 3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3728$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3729if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3730 $as_echo_n "(cached) " >&6 3731else 3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3733/* end confdefs.h. */ 3734 3735int 3736main () 3737{ 3738#ifndef __GNUC__ 3739 choke me 3740#endif 3741 3742 ; 3743 return 0; 3744} 3745_ACEOF 3746if ac_fn_c_try_compile "$LINENO"; then : 3747 ac_compiler_gnu=yes 3748else 3749 ac_compiler_gnu=no 3750fi 3751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3752ac_cv_c_compiler_gnu=$ac_compiler_gnu 3753 3754fi 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3756$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3757if test $ac_compiler_gnu = yes; then 3758 GCC=yes 3759else 3760 GCC= 3761fi 3762ac_test_CFLAGS=${CFLAGS+set} 3763ac_save_CFLAGS=$CFLAGS 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3765$as_echo_n "checking whether $CC accepts -g... " >&6; } 3766if test "${ac_cv_prog_cc_g+set}" = set; then : 3767 $as_echo_n "(cached) " >&6 3768else 3769 ac_save_c_werror_flag=$ac_c_werror_flag 3770 ac_c_werror_flag=yes 3771 ac_cv_prog_cc_g=no 3772 CFLAGS="-g" 3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3774/* end confdefs.h. */ 3775 3776int 3777main () 3778{ 3779 3780 ; 3781 return 0; 3782} 3783_ACEOF 3784if ac_fn_c_try_compile "$LINENO"; then : 3785 ac_cv_prog_cc_g=yes 3786else 3787 CFLAGS="" 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790 3791int 3792main () 3793{ 3794 3795 ; 3796 return 0; 3797} 3798_ACEOF 3799if ac_fn_c_try_compile "$LINENO"; then : 3800 3801else 3802 ac_c_werror_flag=$ac_save_c_werror_flag 3803 CFLAGS="-g" 3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806 3807int 3808main () 3809{ 3810 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815if ac_fn_c_try_compile "$LINENO"; then : 3816 ac_cv_prog_cc_g=yes 3817fi 3818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3819fi 3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3821fi 3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3823 ac_c_werror_flag=$ac_save_c_werror_flag 3824fi 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3826$as_echo "$ac_cv_prog_cc_g" >&6; } 3827if test "$ac_test_CFLAGS" = set; then 3828 CFLAGS=$ac_save_CFLAGS 3829elif test $ac_cv_prog_cc_g = yes; then 3830 if test "$GCC" = yes; then 3831 CFLAGS="-g -O2" 3832 else 3833 CFLAGS="-g" 3834 fi 3835else 3836 if test "$GCC" = yes; then 3837 CFLAGS="-O2" 3838 else 3839 CFLAGS= 3840 fi 3841fi 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3843$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3844if test "${ac_cv_prog_cc_c89+set}" = set; then : 3845 $as_echo_n "(cached) " >&6 3846else 3847 ac_cv_prog_cc_c89=no 3848ac_save_CC=$CC 3849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850/* end confdefs.h. */ 3851#include <stdarg.h> 3852#include <stdio.h> 3853#include <sys/types.h> 3854#include <sys/stat.h> 3855/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3856struct buf { int x; }; 3857FILE * (*rcsopen) (struct buf *, struct stat *, int); 3858static char *e (p, i) 3859 char **p; 3860 int i; 3861{ 3862 return p[i]; 3863} 3864static char *f (char * (*g) (char **, int), char **p, ...) 3865{ 3866 char *s; 3867 va_list v; 3868 va_start (v,p); 3869 s = g (p, va_arg (v,int)); 3870 va_end (v); 3871 return s; 3872} 3873 3874/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3875 function prototypes and stuff, but not '\xHH' hex character constants. 3876 These don't provoke an error unfortunately, instead are silently treated 3877 as 'x'. The following induces an error, until -std is added to get 3878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3879 array size at least. It's necessary to write '\x00'==0 to get something 3880 that's true only with -std. */ 3881int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3882 3883/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3884 inside strings and character constants. */ 3885#define FOO(x) 'x' 3886int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3887 3888int test (int i, double x); 3889struct s1 {int (*f) (int a);}; 3890struct s2 {int (*f) (double a);}; 3891int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3892int argc; 3893char **argv; 3894int 3895main () 3896{ 3897return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3898 ; 3899 return 0; 3900} 3901_ACEOF 3902for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3904do 3905 CC="$ac_save_CC $ac_arg" 3906 if ac_fn_c_try_compile "$LINENO"; then : 3907 ac_cv_prog_cc_c89=$ac_arg 3908fi 3909rm -f core conftest.err conftest.$ac_objext 3910 test "x$ac_cv_prog_cc_c89" != "xno" && break 3911done 3912rm -f conftest.$ac_ext 3913CC=$ac_save_CC 3914 3915fi 3916# AC_CACHE_VAL 3917case "x$ac_cv_prog_cc_c89" in 3918 x) 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3920$as_echo "none needed" >&6; } ;; 3921 xno) 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3923$as_echo "unsupported" >&6; } ;; 3924 *) 3925 CC="$CC $ac_cv_prog_cc_c89" 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3927$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3928esac 3929if test "x$ac_cv_prog_cc_c89" != xno; then : 3930 3931fi 3932 3933ac_ext=c 3934ac_cpp='$CPP $CPPFLAGS' 3935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3937ac_compiler_gnu=$ac_cv_c_compiler_gnu 3938DEPDIR="${am__leading_dot}deps" 3939 3940ac_config_commands="$ac_config_commands depfiles" 3941 3942 3943am_make=${MAKE-make} 3944cat > confinc << 'END' 3945am__doit: 3946 @echo this is the am__doit target 3947.PHONY: am__doit 3948END 3949# If we don't find an include directive, just comment out the code. 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3951$as_echo_n "checking for style of include used by $am_make... " >&6; } 3952am__include="#" 3953am__quote= 3954_am_result=none 3955# First try GNU make style include. 3956echo "include confinc" > confmf 3957# Ignore all kinds of additional output from `make'. 3958case `$am_make -s -f confmf 2> /dev/null` in #( 3959*the\ am__doit\ target*) 3960 am__include=include 3961 am__quote= 3962 _am_result=GNU 3963 ;; 3964esac 3965# Now try BSD make style include. 3966if test "$am__include" = "#"; then 3967 echo '.include "confinc"' > confmf 3968 case `$am_make -s -f confmf 2> /dev/null` in #( 3969 *the\ am__doit\ target*) 3970 am__include=.include 3971 am__quote="\"" 3972 _am_result=BSD 3973 ;; 3974 esac 3975fi 3976 3977 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3979$as_echo "$_am_result" >&6; } 3980rm -f confinc confmf 3981 3982# Check whether --enable-dependency-tracking was given. 3983if test "${enable_dependency_tracking+set}" = set; then : 3984 enableval=$enable_dependency_tracking; 3985fi 3986 3987if test "x$enable_dependency_tracking" != xno; then 3988 am_depcomp="$ac_aux_dir/depcomp" 3989 AMDEPBACKSLASH='\' 3990fi 3991 if test "x$enable_dependency_tracking" != xno; then 3992 AMDEP_TRUE= 3993 AMDEP_FALSE='#' 3994else 3995 AMDEP_TRUE='#' 3996 AMDEP_FALSE= 3997fi 3998 3999 4000 4001depcc="$CC" am_compiler_list= 4002 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4004$as_echo_n "checking dependency style of $depcc... " >&6; } 4005if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4006 $as_echo_n "(cached) " >&6 4007else 4008 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4009 # We make a subdir and do the tests there. Otherwise we can end up 4010 # making bogus files that we don't know about and never remove. For 4011 # instance it was reported that on HP-UX the gcc test will end up 4012 # making a dummy file named `D' -- because `-MD' means `put the output 4013 # in D'. 4014 mkdir conftest.dir 4015 # Copy depcomp to subdir because otherwise we won't find it if we're 4016 # using a relative directory. 4017 cp "$am_depcomp" conftest.dir 4018 cd conftest.dir 4019 # We will build objects and dependencies in a subdirectory because 4020 # it helps to detect inapplicable dependency modes. For instance 4021 # both Tru64's cc and ICC support -MD to output dependencies as a 4022 # side effect of compilation, but ICC will put the dependencies in 4023 # the current directory while Tru64 will put them in the object 4024 # directory. 4025 mkdir sub 4026 4027 am_cv_CC_dependencies_compiler_type=none 4028 if test "$am_compiler_list" = ""; then 4029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4030 fi 4031 am__universal=false 4032 case " $depcc " in #( 4033 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4034 esac 4035 4036 for depmode in $am_compiler_list; do 4037 # Setup a source with many dependencies, because some compilers 4038 # like to wrap large dependency lists on column 80 (with \), and 4039 # we should not choose a depcomp mode which is confused by this. 4040 # 4041 # We need to recreate these files for each test, as the compiler may 4042 # overwrite some of them when testing with obscure command lines. 4043 # This happens at least with the AIX C compiler. 4044 : > sub/conftest.c 4045 for i in 1 2 3 4 5 6; do 4046 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4047 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4048 # Solaris 8's {/usr,}/bin/sh. 4049 touch sub/conftst$i.h 4050 done 4051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4052 4053 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4054 # mode. It turns out that the SunPro C++ compiler does not properly 4055 # handle `-M -o', and we need to detect this. Also, some Intel 4056 # versions had trouble with output in subdirs 4057 am__obj=sub/conftest.${OBJEXT-o} 4058 am__minus_obj="-o $am__obj" 4059 case $depmode in 4060 gcc) 4061 # This depmode causes a compiler race in universal mode. 4062 test "$am__universal" = false || continue 4063 ;; 4064 nosideeffect) 4065 # after this tag, mechanisms are not by side-effect, so they'll 4066 # only be used when explicitly requested 4067 if test "x$enable_dependency_tracking" = xyes; then 4068 continue 4069 else 4070 break 4071 fi 4072 ;; 4073 msvisualcpp | msvcmsys) 4074 # This compiler won't grok `-c -o', but also, the minuso test has 4075 # not run yet. These depmodes are late enough in the game, and 4076 # so weak that their functioning should not be impacted. 4077 am__obj=conftest.${OBJEXT-o} 4078 am__minus_obj= 4079 ;; 4080 none) break ;; 4081 esac 4082 if depmode=$depmode \ 4083 source=sub/conftest.c object=$am__obj \ 4084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4086 >/dev/null 2>conftest.err && 4087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4091 # icc doesn't choke on unknown options, it will just issue warnings 4092 # or remarks (even with -Werror). So we grep stderr for any message 4093 # that says an option was ignored or not supported. 4094 # When given -MP, icc 7.0 and 7.1 complain thusly: 4095 # icc: Command line warning: ignoring option '-M'; no argument required 4096 # The diagnosis changed in icc 8.0: 4097 # icc: Command line remark: option '-MP' not supported 4098 if (grep 'ignoring option' conftest.err || 4099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4100 am_cv_CC_dependencies_compiler_type=$depmode 4101 break 4102 fi 4103 fi 4104 done 4105 4106 cd .. 4107 rm -rf conftest.dir 4108else 4109 am_cv_CC_dependencies_compiler_type=none 4110fi 4111 4112fi 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4114$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4115CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4116 4117 if 4118 test "x$enable_dependency_tracking" != xno \ 4119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4120 am__fastdepCC_TRUE= 4121 am__fastdepCC_FALSE='#' 4122else 4123 am__fastdepCC_TRUE='#' 4124 am__fastdepCC_FALSE= 4125fi 4126 4127 4128ac_ext=cpp 4129ac_cpp='$CXXCPP $CPPFLAGS' 4130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4133if test -z "$CXX"; then 4134 if test -n "$CCC"; then 4135 CXX=$CCC 4136 else 4137 if test -n "$ac_tool_prefix"; then 4138 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4139 do 4140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4141set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4143$as_echo_n "checking for $ac_word... " >&6; } 4144if test "${ac_cv_prog_CXX+set}" = set; then : 4145 $as_echo_n "(cached) " >&6 4146else 4147 if test -n "$CXX"; then 4148 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4149else 4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4151for as_dir in $PATH 4152do 4153 IFS=$as_save_IFS 4154 test -z "$as_dir" && as_dir=. 4155 for ac_exec_ext in '' $ac_executable_extensions; do 4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4157 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4159 break 2 4160 fi 4161done 4162 done 4163IFS=$as_save_IFS 4164 4165fi 4166fi 4167CXX=$ac_cv_prog_CXX 4168if test -n "$CXX"; then 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4170$as_echo "$CXX" >&6; } 4171else 4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4173$as_echo "no" >&6; } 4174fi 4175 4176 4177 test -n "$CXX" && break 4178 done 4179fi 4180if test -z "$CXX"; then 4181 ac_ct_CXX=$CXX 4182 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4183do 4184 # Extract the first word of "$ac_prog", so it can be a program name with args. 4185set dummy $ac_prog; ac_word=$2 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4187$as_echo_n "checking for $ac_word... " >&6; } 4188if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 if test -n "$ac_ct_CXX"; then 4192 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4193else 4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4195for as_dir in $PATH 4196do 4197 IFS=$as_save_IFS 4198 test -z "$as_dir" && as_dir=. 4199 for ac_exec_ext in '' $ac_executable_extensions; do 4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4201 ac_cv_prog_ac_ct_CXX="$ac_prog" 4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4203 break 2 4204 fi 4205done 4206 done 4207IFS=$as_save_IFS 4208 4209fi 4210fi 4211ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4212if test -n "$ac_ct_CXX"; then 4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4214$as_echo "$ac_ct_CXX" >&6; } 4215else 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4217$as_echo "no" >&6; } 4218fi 4219 4220 4221 test -n "$ac_ct_CXX" && break 4222done 4223 4224 if test "x$ac_ct_CXX" = x; then 4225 CXX="g++" 4226 else 4227 case $cross_compiling:$ac_tool_warned in 4228yes:) 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4231ac_tool_warned=yes ;; 4232esac 4233 CXX=$ac_ct_CXX 4234 fi 4235fi 4236 4237 fi 4238fi 4239# Provide some information about the compiler. 4240$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4241set X $ac_compile 4242ac_compiler=$2 4243for ac_option in --version -v -V -qversion; do 4244 { { ac_try="$ac_compiler $ac_option >&5" 4245case "(($ac_try" in 4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4247 *) ac_try_echo=$ac_try;; 4248esac 4249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4250$as_echo "$ac_try_echo"; } >&5 4251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4252 ac_status=$? 4253 if test -s conftest.err; then 4254 sed '10a\ 4255... rest of stderr output deleted ... 4256 10q' conftest.err >conftest.er1 4257 cat conftest.er1 >&5 4258 rm -f conftest.er1 conftest.err 4259 fi 4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4261 test $ac_status = 0; } 4262done 4263 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4265$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4266if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 4267 $as_echo_n "(cached) " >&6 4268else 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271 4272int 4273main () 4274{ 4275#ifndef __GNUC__ 4276 choke me 4277#endif 4278 4279 ; 4280 return 0; 4281} 4282_ACEOF 4283if ac_fn_cxx_try_compile "$LINENO"; then : 4284 ac_compiler_gnu=yes 4285else 4286 ac_compiler_gnu=no 4287fi 4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4289ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4290 4291fi 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4293$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4294if test $ac_compiler_gnu = yes; then 4295 GXX=yes 4296else 4297 GXX= 4298fi 4299ac_test_CXXFLAGS=${CXXFLAGS+set} 4300ac_save_CXXFLAGS=$CXXFLAGS 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4302$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4303if test "${ac_cv_prog_cxx_g+set}" = set; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4307 ac_cxx_werror_flag=yes 4308 ac_cv_prog_cxx_g=no 4309 CXXFLAGS="-g" 4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4311/* end confdefs.h. */ 4312 4313int 4314main () 4315{ 4316 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321if ac_fn_cxx_try_compile "$LINENO"; then : 4322 ac_cv_prog_cxx_g=yes 4323else 4324 CXXFLAGS="" 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327 4328int 4329main () 4330{ 4331 4332 ; 4333 return 0; 4334} 4335_ACEOF 4336if ac_fn_cxx_try_compile "$LINENO"; then : 4337 4338else 4339 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4340 CXXFLAGS="-g" 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343 4344int 4345main () 4346{ 4347 4348 ; 4349 return 0; 4350} 4351_ACEOF 4352if ac_fn_cxx_try_compile "$LINENO"; then : 4353 ac_cv_prog_cxx_g=yes 4354fi 4355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4356fi 4357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4358fi 4359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4360 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4361fi 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4363$as_echo "$ac_cv_prog_cxx_g" >&6; } 4364if test "$ac_test_CXXFLAGS" = set; then 4365 CXXFLAGS=$ac_save_CXXFLAGS 4366elif test $ac_cv_prog_cxx_g = yes; then 4367 if test "$GXX" = yes; then 4368 CXXFLAGS="-g -O2" 4369 else 4370 CXXFLAGS="-g" 4371 fi 4372else 4373 if test "$GXX" = yes; then 4374 CXXFLAGS="-O2" 4375 else 4376 CXXFLAGS= 4377 fi 4378fi 4379ac_ext=c 4380ac_cpp='$CPP $CPPFLAGS' 4381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4383ac_compiler_gnu=$ac_cv_c_compiler_gnu 4384 4385depcc="$CXX" am_compiler_list= 4386 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4388$as_echo_n "checking dependency style of $depcc... " >&6; } 4389if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 4390 $as_echo_n "(cached) " >&6 4391else 4392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4393 # We make a subdir and do the tests there. Otherwise we can end up 4394 # making bogus files that we don't know about and never remove. For 4395 # instance it was reported that on HP-UX the gcc test will end up 4396 # making a dummy file named `D' -- because `-MD' means `put the output 4397 # in D'. 4398 mkdir conftest.dir 4399 # Copy depcomp to subdir because otherwise we won't find it if we're 4400 # using a relative directory. 4401 cp "$am_depcomp" conftest.dir 4402 cd conftest.dir 4403 # We will build objects and dependencies in a subdirectory because 4404 # it helps to detect inapplicable dependency modes. For instance 4405 # both Tru64's cc and ICC support -MD to output dependencies as a 4406 # side effect of compilation, but ICC will put the dependencies in 4407 # the current directory while Tru64 will put them in the object 4408 # directory. 4409 mkdir sub 4410 4411 am_cv_CXX_dependencies_compiler_type=none 4412 if test "$am_compiler_list" = ""; then 4413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4414 fi 4415 am__universal=false 4416 case " $depcc " in #( 4417 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4418 esac 4419 4420 for depmode in $am_compiler_list; do 4421 # Setup a source with many dependencies, because some compilers 4422 # like to wrap large dependency lists on column 80 (with \), and 4423 # we should not choose a depcomp mode which is confused by this. 4424 # 4425 # We need to recreate these files for each test, as the compiler may 4426 # overwrite some of them when testing with obscure command lines. 4427 # This happens at least with the AIX C compiler. 4428 : > sub/conftest.c 4429 for i in 1 2 3 4 5 6; do 4430 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4432 # Solaris 8's {/usr,}/bin/sh. 4433 touch sub/conftst$i.h 4434 done 4435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4436 4437 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4438 # mode. It turns out that the SunPro C++ compiler does not properly 4439 # handle `-M -o', and we need to detect this. Also, some Intel 4440 # versions had trouble with output in subdirs 4441 am__obj=sub/conftest.${OBJEXT-o} 4442 am__minus_obj="-o $am__obj" 4443 case $depmode in 4444 gcc) 4445 # This depmode causes a compiler race in universal mode. 4446 test "$am__universal" = false || continue 4447 ;; 4448 nosideeffect) 4449 # after this tag, mechanisms are not by side-effect, so they'll 4450 # only be used when explicitly requested 4451 if test "x$enable_dependency_tracking" = xyes; then 4452 continue 4453 else 4454 break 4455 fi 4456 ;; 4457 msvisualcpp | msvcmsys) 4458 # This compiler won't grok `-c -o', but also, the minuso test has 4459 # not run yet. These depmodes are late enough in the game, and 4460 # so weak that their functioning should not be impacted. 4461 am__obj=conftest.${OBJEXT-o} 4462 am__minus_obj= 4463 ;; 4464 none) break ;; 4465 esac 4466 if depmode=$depmode \ 4467 source=sub/conftest.c object=$am__obj \ 4468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4470 >/dev/null 2>conftest.err && 4471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4475 # icc doesn't choke on unknown options, it will just issue warnings 4476 # or remarks (even with -Werror). So we grep stderr for any message 4477 # that says an option was ignored or not supported. 4478 # When given -MP, icc 7.0 and 7.1 complain thusly: 4479 # icc: Command line warning: ignoring option '-M'; no argument required 4480 # The diagnosis changed in icc 8.0: 4481 # icc: Command line remark: option '-MP' not supported 4482 if (grep 'ignoring option' conftest.err || 4483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4484 am_cv_CXX_dependencies_compiler_type=$depmode 4485 break 4486 fi 4487 fi 4488 done 4489 4490 cd .. 4491 rm -rf conftest.dir 4492else 4493 am_cv_CXX_dependencies_compiler_type=none 4494fi 4495 4496fi 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4498$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4499CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4500 4501 if 4502 test "x$enable_dependency_tracking" != xno \ 4503 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4504 am__fastdepCXX_TRUE= 4505 am__fastdepCXX_FALSE='#' 4506else 4507 am__fastdepCXX_TRUE='#' 4508 am__fastdepCXX_FALSE= 4509fi 4510 4511 4512# By default we simply use the C compiler to build assembly code. 4513 4514test "${CCAS+set}" = set || CCAS=$CC 4515test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 4516 4517 4518 4519depcc="$CCAS" am_compiler_list= 4520 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4522$as_echo_n "checking dependency style of $depcc... " >&6; } 4523if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then : 4524 $as_echo_n "(cached) " >&6 4525else 4526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4527 # We make a subdir and do the tests there. Otherwise we can end up 4528 # making bogus files that we don't know about and never remove. For 4529 # instance it was reported that on HP-UX the gcc test will end up 4530 # making a dummy file named `D' -- because `-MD' means `put the output 4531 # in D'. 4532 mkdir conftest.dir 4533 # Copy depcomp to subdir because otherwise we won't find it if we're 4534 # using a relative directory. 4535 cp "$am_depcomp" conftest.dir 4536 cd conftest.dir 4537 # We will build objects and dependencies in a subdirectory because 4538 # it helps to detect inapplicable dependency modes. For instance 4539 # both Tru64's cc and ICC support -MD to output dependencies as a 4540 # side effect of compilation, but ICC will put the dependencies in 4541 # the current directory while Tru64 will put them in the object 4542 # directory. 4543 mkdir sub 4544 4545 am_cv_CCAS_dependencies_compiler_type=none 4546 if test "$am_compiler_list" = ""; then 4547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4548 fi 4549 am__universal=false 4550 4551 4552 for depmode in $am_compiler_list; do 4553 # Setup a source with many dependencies, because some compilers 4554 # like to wrap large dependency lists on column 80 (with \), and 4555 # we should not choose a depcomp mode which is confused by this. 4556 # 4557 # We need to recreate these files for each test, as the compiler may 4558 # overwrite some of them when testing with obscure command lines. 4559 # This happens at least with the AIX C compiler. 4560 : > sub/conftest.c 4561 for i in 1 2 3 4 5 6; do 4562 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4564 # Solaris 8's {/usr,}/bin/sh. 4565 touch sub/conftst$i.h 4566 done 4567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4568 4569 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4570 # mode. It turns out that the SunPro C++ compiler does not properly 4571 # handle `-M -o', and we need to detect this. Also, some Intel 4572 # versions had trouble with output in subdirs 4573 am__obj=sub/conftest.${OBJEXT-o} 4574 am__minus_obj="-o $am__obj" 4575 case $depmode in 4576 gcc) 4577 # This depmode causes a compiler race in universal mode. 4578 test "$am__universal" = false || continue 4579 ;; 4580 nosideeffect) 4581 # after this tag, mechanisms are not by side-effect, so they'll 4582 # only be used when explicitly requested 4583 if test "x$enable_dependency_tracking" = xyes; then 4584 continue 4585 else 4586 break 4587 fi 4588 ;; 4589 msvisualcpp | msvcmsys) 4590 # This compiler won't grok `-c -o', but also, the minuso test has 4591 # not run yet. These depmodes are late enough in the game, and 4592 # so weak that their functioning should not be impacted. 4593 am__obj=conftest.${OBJEXT-o} 4594 am__minus_obj= 4595 ;; 4596 none) break ;; 4597 esac 4598 if depmode=$depmode \ 4599 source=sub/conftest.c object=$am__obj \ 4600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4601 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4602 >/dev/null 2>conftest.err && 4603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4605 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4607 # icc doesn't choke on unknown options, it will just issue warnings 4608 # or remarks (even with -Werror). So we grep stderr for any message 4609 # that says an option was ignored or not supported. 4610 # When given -MP, icc 7.0 and 7.1 complain thusly: 4611 # icc: Command line warning: ignoring option '-M'; no argument required 4612 # The diagnosis changed in icc 8.0: 4613 # icc: Command line remark: option '-MP' not supported 4614 if (grep 'ignoring option' conftest.err || 4615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4616 am_cv_CCAS_dependencies_compiler_type=$depmode 4617 break 4618 fi 4619 fi 4620 done 4621 4622 cd .. 4623 rm -rf conftest.dir 4624else 4625 am_cv_CCAS_dependencies_compiler_type=none 4626fi 4627 4628fi 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4630$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 4631CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 4632 4633 if 4634 test "x$enable_dependency_tracking" != xno \ 4635 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 4636 am__fastdepCCAS_TRUE= 4637 am__fastdepCCAS_FALSE='#' 4638else 4639 am__fastdepCCAS_TRUE='#' 4640 am__fastdepCCAS_FALSE= 4641fi 4642 4643 4644 4645enable_dlopen=yes 4646 4647 4648 4649case `pwd` in 4650 *\ * | *\ *) 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4652$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4653esac 4654 4655 4656 4657macro_version='2.2.7a' 4658macro_revision='1.3134' 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672ltmain="$ac_aux_dir/ltmain.sh" 4673 4674# Backslashify metacharacters that are still active within 4675# double-quoted strings. 4676sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4677 4678# Same as above, but do not quote variable references. 4679double_quote_subst='s/\(["`\\]\)/\\\1/g' 4680 4681# Sed substitution to delay expansion of an escaped shell variable in a 4682# double_quote_subst'ed string. 4683delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4684 4685# Sed substitution to delay expansion of an escaped single quote. 4686delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4687 4688# Sed substitution to avoid accidental globbing in evaled expressions 4689no_glob_subst='s/\*/\\\*/g' 4690 4691ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4693ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4694 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4696$as_echo_n "checking how to print strings... " >&6; } 4697# Test print first, because it will be a builtin if present. 4698if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4699 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4700 ECHO='print -r --' 4701elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4702 ECHO='printf %s\n' 4703else 4704 # Use this function as a fallback that always works. 4705 func_fallback_echo () 4706 { 4707 eval 'cat <<_LTECHO_EOF 4708$1 4709_LTECHO_EOF' 4710 } 4711 ECHO='func_fallback_echo' 4712fi 4713 4714# func_echo_all arg... 4715# Invoke $ECHO with all args, space-separated. 4716func_echo_all () 4717{ 4718 $ECHO "" 4719} 4720 4721case "$ECHO" in 4722 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4723$as_echo "printf" >&6; } ;; 4724 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4725$as_echo "print -r" >&6; } ;; 4726 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4727$as_echo "cat" >&6; } ;; 4728esac 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4744$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4745if test "${ac_cv_path_SED+set}" = set; then : 4746 $as_echo_n "(cached) " >&6 4747else 4748 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4749 for ac_i in 1 2 3 4 5 6 7; do 4750 ac_script="$ac_script$as_nl$ac_script" 4751 done 4752 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4753 { ac_script=; unset ac_script;} 4754 if test -z "$SED"; then 4755 ac_path_SED_found=false 4756 # Loop through the user's path and test for each of PROGNAME-LIST 4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4758for as_dir in $PATH 4759do 4760 IFS=$as_save_IFS 4761 test -z "$as_dir" && as_dir=. 4762 for ac_prog in sed gsed; do 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4765 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4766# Check for GNU ac_path_SED and select it if it is found. 4767 # Check for GNU $ac_path_SED 4768case `"$ac_path_SED" --version 2>&1` in 4769*GNU*) 4770 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4771*) 4772 ac_count=0 4773 $as_echo_n 0123456789 >"conftest.in" 4774 while : 4775 do 4776 cat "conftest.in" "conftest.in" >"conftest.tmp" 4777 mv "conftest.tmp" "conftest.in" 4778 cp "conftest.in" "conftest.nl" 4779 $as_echo '' >> "conftest.nl" 4780 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4782 as_fn_arith $ac_count + 1 && ac_count=$as_val 4783 if test $ac_count -gt ${ac_path_SED_max-0}; then 4784 # Best one so far, save it but keep looking for a better one 4785 ac_cv_path_SED="$ac_path_SED" 4786 ac_path_SED_max=$ac_count 4787 fi 4788 # 10*(2^10) chars as input seems more than enough 4789 test $ac_count -gt 10 && break 4790 done 4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4792esac 4793 4794 $ac_path_SED_found && break 3 4795 done 4796 done 4797 done 4798IFS=$as_save_IFS 4799 if test -z "$ac_cv_path_SED"; then 4800 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4801 fi 4802else 4803 ac_cv_path_SED=$SED 4804fi 4805 4806fi 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4808$as_echo "$ac_cv_path_SED" >&6; } 4809 SED="$ac_cv_path_SED" 4810 rm -f conftest.sed 4811 4812test -z "$SED" && SED=sed 4813Xsed="$SED -e 1s/^X//" 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4826$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4827if test "${ac_cv_path_GREP+set}" = set; then : 4828 $as_echo_n "(cached) " >&6 4829else 4830 if test -z "$GREP"; then 4831 ac_path_GREP_found=false 4832 # Loop through the user's path and test for each of PROGNAME-LIST 4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4835do 4836 IFS=$as_save_IFS 4837 test -z "$as_dir" && as_dir=. 4838 for ac_prog in grep ggrep; do 4839 for ac_exec_ext in '' $ac_executable_extensions; do 4840 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4841 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4842# Check for GNU ac_path_GREP and select it if it is found. 4843 # Check for GNU $ac_path_GREP 4844case `"$ac_path_GREP" --version 2>&1` in 4845*GNU*) 4846 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4847*) 4848 ac_count=0 4849 $as_echo_n 0123456789 >"conftest.in" 4850 while : 4851 do 4852 cat "conftest.in" "conftest.in" >"conftest.tmp" 4853 mv "conftest.tmp" "conftest.in" 4854 cp "conftest.in" "conftest.nl" 4855 $as_echo 'GREP' >> "conftest.nl" 4856 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4858 as_fn_arith $ac_count + 1 && ac_count=$as_val 4859 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4860 # Best one so far, save it but keep looking for a better one 4861 ac_cv_path_GREP="$ac_path_GREP" 4862 ac_path_GREP_max=$ac_count 4863 fi 4864 # 10*(2^10) chars as input seems more than enough 4865 test $ac_count -gt 10 && break 4866 done 4867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4868esac 4869 4870 $ac_path_GREP_found && break 3 4871 done 4872 done 4873 done 4874IFS=$as_save_IFS 4875 if test -z "$ac_cv_path_GREP"; then 4876 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4877 fi 4878else 4879 ac_cv_path_GREP=$GREP 4880fi 4881 4882fi 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4884$as_echo "$ac_cv_path_GREP" >&6; } 4885 GREP="$ac_cv_path_GREP" 4886 4887 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4889$as_echo_n "checking for egrep... " >&6; } 4890if test "${ac_cv_path_EGREP+set}" = set; then : 4891 $as_echo_n "(cached) " >&6 4892else 4893 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4894 then ac_cv_path_EGREP="$GREP -E" 4895 else 4896 if test -z "$EGREP"; then 4897 ac_path_EGREP_found=false 4898 # Loop through the user's path and test for each of PROGNAME-LIST 4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4900for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4901do 4902 IFS=$as_save_IFS 4903 test -z "$as_dir" && as_dir=. 4904 for ac_prog in egrep; do 4905 for ac_exec_ext in '' $ac_executable_extensions; do 4906 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4907 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4908# Check for GNU ac_path_EGREP and select it if it is found. 4909 # Check for GNU $ac_path_EGREP 4910case `"$ac_path_EGREP" --version 2>&1` in 4911*GNU*) 4912 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4913*) 4914 ac_count=0 4915 $as_echo_n 0123456789 >"conftest.in" 4916 while : 4917 do 4918 cat "conftest.in" "conftest.in" >"conftest.tmp" 4919 mv "conftest.tmp" "conftest.in" 4920 cp "conftest.in" "conftest.nl" 4921 $as_echo 'EGREP' >> "conftest.nl" 4922 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4924 as_fn_arith $ac_count + 1 && ac_count=$as_val 4925 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4926 # Best one so far, save it but keep looking for a better one 4927 ac_cv_path_EGREP="$ac_path_EGREP" 4928 ac_path_EGREP_max=$ac_count 4929 fi 4930 # 10*(2^10) chars as input seems more than enough 4931 test $ac_count -gt 10 && break 4932 done 4933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4934esac 4935 4936 $ac_path_EGREP_found && break 3 4937 done 4938 done 4939 done 4940IFS=$as_save_IFS 4941 if test -z "$ac_cv_path_EGREP"; then 4942 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4943 fi 4944else 4945 ac_cv_path_EGREP=$EGREP 4946fi 4947 4948 fi 4949fi 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4951$as_echo "$ac_cv_path_EGREP" >&6; } 4952 EGREP="$ac_cv_path_EGREP" 4953 4954 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4956$as_echo_n "checking for fgrep... " >&6; } 4957if test "${ac_cv_path_FGREP+set}" = set; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4961 then ac_cv_path_FGREP="$GREP -F" 4962 else 4963 if test -z "$FGREP"; then 4964 ac_path_FGREP_found=false 4965 # Loop through the user's path and test for each of PROGNAME-LIST 4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4967for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4968do 4969 IFS=$as_save_IFS 4970 test -z "$as_dir" && as_dir=. 4971 for ac_prog in fgrep; do 4972 for ac_exec_ext in '' $ac_executable_extensions; do 4973 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4974 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4975# Check for GNU ac_path_FGREP and select it if it is found. 4976 # Check for GNU $ac_path_FGREP 4977case `"$ac_path_FGREP" --version 2>&1` in 4978*GNU*) 4979 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4980*) 4981 ac_count=0 4982 $as_echo_n 0123456789 >"conftest.in" 4983 while : 4984 do 4985 cat "conftest.in" "conftest.in" >"conftest.tmp" 4986 mv "conftest.tmp" "conftest.in" 4987 cp "conftest.in" "conftest.nl" 4988 $as_echo 'FGREP' >> "conftest.nl" 4989 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4991 as_fn_arith $ac_count + 1 && ac_count=$as_val 4992 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4993 # Best one so far, save it but keep looking for a better one 4994 ac_cv_path_FGREP="$ac_path_FGREP" 4995 ac_path_FGREP_max=$ac_count 4996 fi 4997 # 10*(2^10) chars as input seems more than enough 4998 test $ac_count -gt 10 && break 4999 done 5000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5001esac 5002 5003 $ac_path_FGREP_found && break 3 5004 done 5005 done 5006 done 5007IFS=$as_save_IFS 5008 if test -z "$ac_cv_path_FGREP"; then 5009 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5010 fi 5011else 5012 ac_cv_path_FGREP=$FGREP 5013fi 5014 5015 fi 5016fi 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5018$as_echo "$ac_cv_path_FGREP" >&6; } 5019 FGREP="$ac_cv_path_FGREP" 5020 5021 5022test -z "$GREP" && GREP=grep 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042# Check whether --with-gnu-ld was given. 5043if test "${with_gnu_ld+set}" = set; then : 5044 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5045else 5046 with_gnu_ld=no 5047fi 5048 5049ac_prog=ld 5050if test "$GCC" = yes; then 5051 # Check if gcc -print-prog-name=ld gives a path. 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5053$as_echo_n "checking for ld used by $CC... " >&6; } 5054 case $host in 5055 *-*-mingw*) 5056 # gcc leaves a trailing carriage return which upsets mingw 5057 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5058 *) 5059 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5060 esac 5061 case $ac_prog in 5062 # Accept absolute paths. 5063 [\\/]* | ?:[\\/]*) 5064 re_direlt='/[^/][^/]*/\.\./' 5065 # Canonicalize the pathname of ld 5066 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5067 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5068 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5069 done 5070 test -z "$LD" && LD="$ac_prog" 5071 ;; 5072 "") 5073 # If it fails, then pretend we aren't using GCC. 5074 ac_prog=ld 5075 ;; 5076 *) 5077 # If it is relative, then search for the first ld in PATH. 5078 with_gnu_ld=unknown 5079 ;; 5080 esac 5081elif test "$with_gnu_ld" = yes; then 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5083$as_echo_n "checking for GNU ld... " >&6; } 5084else 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5086$as_echo_n "checking for non-GNU ld... " >&6; } 5087fi 5088if test "${lt_cv_path_LD+set}" = set; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 if test -z "$LD"; then 5092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5093 for ac_dir in $PATH; do 5094 IFS="$lt_save_ifs" 5095 test -z "$ac_dir" && ac_dir=. 5096 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5097 lt_cv_path_LD="$ac_dir/$ac_prog" 5098 # Check to see if the program is GNU ld. I'd rather use --version, 5099 # but apparently some variants of GNU ld only accept -v. 5100 # Break only if it was the GNU/non-GNU ld that we prefer. 5101 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5102 *GNU* | *'with BFD'*) 5103 test "$with_gnu_ld" != no && break 5104 ;; 5105 *) 5106 test "$with_gnu_ld" != yes && break 5107 ;; 5108 esac 5109 fi 5110 done 5111 IFS="$lt_save_ifs" 5112else 5113 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5114fi 5115fi 5116 5117LD="$lt_cv_path_LD" 5118if test -n "$LD"; then 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5120$as_echo "$LD" >&6; } 5121else 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5123$as_echo "no" >&6; } 5124fi 5125test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5127$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5128if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5129 $as_echo_n "(cached) " >&6 5130else 5131 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5132case `$LD -v 2>&1 </dev/null` in 5133*GNU* | *'with BFD'*) 5134 lt_cv_prog_gnu_ld=yes 5135 ;; 5136*) 5137 lt_cv_prog_gnu_ld=no 5138 ;; 5139esac 5140fi 5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5142$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5143with_gnu_ld=$lt_cv_prog_gnu_ld 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5154$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5155if test "${lt_cv_path_NM+set}" = set; then : 5156 $as_echo_n "(cached) " >&6 5157else 5158 if test -n "$NM"; then 5159 # Let the user override the test. 5160 lt_cv_path_NM="$NM" 5161else 5162 lt_nm_to_check="${ac_tool_prefix}nm" 5163 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5164 lt_nm_to_check="$lt_nm_to_check nm" 5165 fi 5166 for lt_tmp_nm in $lt_nm_to_check; do 5167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5168 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5169 IFS="$lt_save_ifs" 5170 test -z "$ac_dir" && ac_dir=. 5171 tmp_nm="$ac_dir/$lt_tmp_nm" 5172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5173 # Check to see if the nm accepts a BSD-compat flag. 5174 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5175 # nm: unknown option "B" ignored 5176 # Tru64's nm complains that /dev/null is an invalid object file 5177 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5178 */dev/null* | *'Invalid file or object type'*) 5179 lt_cv_path_NM="$tmp_nm -B" 5180 break 5181 ;; 5182 *) 5183 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5184 */dev/null*) 5185 lt_cv_path_NM="$tmp_nm -p" 5186 break 5187 ;; 5188 *) 5189 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5190 continue # so that we can try to find one that supports BSD flags 5191 ;; 5192 esac 5193 ;; 5194 esac 5195 fi 5196 done 5197 IFS="$lt_save_ifs" 5198 done 5199 : ${lt_cv_path_NM=no} 5200fi 5201fi 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5203$as_echo "$lt_cv_path_NM" >&6; } 5204if test "$lt_cv_path_NM" != "no"; then 5205 NM="$lt_cv_path_NM" 5206else 5207 # Didn't find any BSD compatible name lister, look for dumpbin. 5208 if test -n "$DUMPBIN"; then : 5209 # Let the user override the test. 5210 else 5211 if test -n "$ac_tool_prefix"; then 5212 for ac_prog in dumpbin "link -dump" 5213 do 5214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5215set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5217$as_echo_n "checking for $ac_word... " >&6; } 5218if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5219 $as_echo_n "(cached) " >&6 5220else 5221 if test -n "$DUMPBIN"; then 5222 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5223else 5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5225for as_dir in $PATH 5226do 5227 IFS=$as_save_IFS 5228 test -z "$as_dir" && as_dir=. 5229 for ac_exec_ext in '' $ac_executable_extensions; do 5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5231 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5233 break 2 5234 fi 5235done 5236 done 5237IFS=$as_save_IFS 5238 5239fi 5240fi 5241DUMPBIN=$ac_cv_prog_DUMPBIN 5242if test -n "$DUMPBIN"; then 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5244$as_echo "$DUMPBIN" >&6; } 5245else 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5247$as_echo "no" >&6; } 5248fi 5249 5250 5251 test -n "$DUMPBIN" && break 5252 done 5253fi 5254if test -z "$DUMPBIN"; then 5255 ac_ct_DUMPBIN=$DUMPBIN 5256 for ac_prog in dumpbin "link -dump" 5257do 5258 # Extract the first word of "$ac_prog", so it can be a program name with args. 5259set dummy $ac_prog; ac_word=$2 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5261$as_echo_n "checking for $ac_word... " >&6; } 5262if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5263 $as_echo_n "(cached) " >&6 5264else 5265 if test -n "$ac_ct_DUMPBIN"; then 5266 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5267else 5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5269for as_dir in $PATH 5270do 5271 IFS=$as_save_IFS 5272 test -z "$as_dir" && as_dir=. 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5275 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279done 5280 done 5281IFS=$as_save_IFS 5282 5283fi 5284fi 5285ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5286if test -n "$ac_ct_DUMPBIN"; then 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5288$as_echo "$ac_ct_DUMPBIN" >&6; } 5289else 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5291$as_echo "no" >&6; } 5292fi 5293 5294 5295 test -n "$ac_ct_DUMPBIN" && break 5296done 5297 5298 if test "x$ac_ct_DUMPBIN" = x; then 5299 DUMPBIN=":" 5300 else 5301 case $cross_compiling:$ac_tool_warned in 5302yes:) 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5305ac_tool_warned=yes ;; 5306esac 5307 DUMPBIN=$ac_ct_DUMPBIN 5308 fi 5309fi 5310 5311 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5312 *COFF*) 5313 DUMPBIN="$DUMPBIN -symbols" 5314 ;; 5315 *) 5316 DUMPBIN=: 5317 ;; 5318 esac 5319 fi 5320 5321 if test "$DUMPBIN" != ":"; then 5322 NM="$DUMPBIN" 5323 fi 5324fi 5325test -z "$NM" && NM=nm 5326 5327 5328 5329 5330 5331 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5333$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5334if test "${lt_cv_nm_interface+set}" = set; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 lt_cv_nm_interface="BSD nm" 5338 echo "int some_variable = 0;" > conftest.$ac_ext 5339 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5340 (eval "$ac_compile" 2>conftest.err) 5341 cat conftest.err >&5 5342 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5343 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5344 cat conftest.err >&5 5345 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5346 cat conftest.out >&5 5347 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5348 lt_cv_nm_interface="MS dumpbin" 5349 fi 5350 rm -f conftest* 5351fi 5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5353$as_echo "$lt_cv_nm_interface" >&6; } 5354 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5356$as_echo_n "checking whether ln -s works... " >&6; } 5357LN_S=$as_ln_s 5358if test "$LN_S" = "ln -s"; then 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5360$as_echo "yes" >&6; } 5361else 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5363$as_echo "no, using $LN_S" >&6; } 5364fi 5365 5366# find the maximum length of command line arguments 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5368$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5369if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 i=0 5373 teststring="ABCD" 5374 5375 case $build_os in 5376 msdosdjgpp*) 5377 # On DJGPP, this test can blow up pretty badly due to problems in libc 5378 # (any single argument exceeding 2000 bytes causes a buffer overrun 5379 # during glob expansion). Even if it were fixed, the result of this 5380 # check would be larger than it should be. 5381 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5382 ;; 5383 5384 gnu*) 5385 # Under GNU Hurd, this test is not required because there is 5386 # no limit to the length of command line arguments. 5387 # Libtool will interpret -1 as no limit whatsoever 5388 lt_cv_sys_max_cmd_len=-1; 5389 ;; 5390 5391 cygwin* | mingw* | cegcc*) 5392 # On Win9x/ME, this test blows up -- it succeeds, but takes 5393 # about 5 minutes as the teststring grows exponentially. 5394 # Worse, since 9x/ME are not pre-emptively multitasking, 5395 # you end up with a "frozen" computer, even though with patience 5396 # the test eventually succeeds (with a max line length of 256k). 5397 # Instead, let's just punt: use the minimum linelength reported by 5398 # all of the supported platforms: 8192 (on NT/2K/XP). 5399 lt_cv_sys_max_cmd_len=8192; 5400 ;; 5401 5402 mint*) 5403 # On MiNT this can take a long time and run out of memory. 5404 lt_cv_sys_max_cmd_len=8192; 5405 ;; 5406 5407 amigaos*) 5408 # On AmigaOS with pdksh, this test takes hours, literally. 5409 # So we just punt and use a minimum line length of 8192. 5410 lt_cv_sys_max_cmd_len=8192; 5411 ;; 5412 5413 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5414 # This has been around since 386BSD, at least. Likely further. 5415 if test -x /sbin/sysctl; then 5416 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5417 elif test -x /usr/sbin/sysctl; then 5418 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5419 else 5420 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5421 fi 5422 # And add a safety zone 5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5425 ;; 5426 5427 interix*) 5428 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5429 lt_cv_sys_max_cmd_len=196608 5430 ;; 5431 5432 osf*) 5433 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5434 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5435 # nice to cause kernel panics so lets avoid the loop below. 5436 # First set a reasonable default. 5437 lt_cv_sys_max_cmd_len=16384 5438 # 5439 if test -x /sbin/sysconfig; then 5440 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5441 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5442 esac 5443 fi 5444 ;; 5445 sco3.2v5*) 5446 lt_cv_sys_max_cmd_len=102400 5447 ;; 5448 sysv5* | sco5v6* | sysv4.2uw2*) 5449 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5450 if test -n "$kargmax"; then 5451 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5452 else 5453 lt_cv_sys_max_cmd_len=32768 5454 fi 5455 ;; 5456 *) 5457 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5458 if test -n "$lt_cv_sys_max_cmd_len"; then 5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5461 else 5462 # Make teststring a little bigger before we do anything with it. 5463 # a 1K string should be a reasonable start. 5464 for i in 1 2 3 4 5 6 7 8 ; do 5465 teststring=$teststring$teststring 5466 done 5467 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5468 # If test is not a shell built-in, we'll probably end up computing a 5469 # maximum length that is only half of the actual maximum length, but 5470 # we can't tell. 5471 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5472 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5473 test $i != 17 # 1/2 MB should be enough 5474 do 5475 i=`expr $i + 1` 5476 teststring=$teststring$teststring 5477 done 5478 # Only check the string length outside the loop. 5479 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5480 teststring= 5481 # Add a significant safety factor because C++ compilers can tack on 5482 # massive amounts of additional arguments before passing them to the 5483 # linker. It appears as though 1/2 is a usable value. 5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5485 fi 5486 ;; 5487 esac 5488 5489fi 5490 5491if test -n $lt_cv_sys_max_cmd_len ; then 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5493$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5494else 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5496$as_echo "none" >&6; } 5497fi 5498max_cmd_len=$lt_cv_sys_max_cmd_len 5499 5500 5501 5502 5503 5504 5505: ${CP="cp -f"} 5506: ${MV="mv -f"} 5507: ${RM="rm -f"} 5508 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5510$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5511# Try some XSI features 5512xsi_shell=no 5513( _lt_dummy="a/b/c" 5514 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5515 = c,a/b,, \ 5516 && eval 'test $(( 1 + 1 )) -eq 2 \ 5517 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5518 && xsi_shell=yes 5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5520$as_echo "$xsi_shell" >&6; } 5521 5522 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5524$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5525lt_shell_append=no 5526( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5527 >/dev/null 2>&1 \ 5528 && lt_shell_append=yes 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5530$as_echo "$lt_shell_append" >&6; } 5531 5532 5533if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5534 lt_unset=unset 5535else 5536 lt_unset=false 5537fi 5538 5539 5540 5541 5542 5543# test EBCDIC or ASCII 5544case `echo X|tr X '\101'` in 5545 A) # ASCII based system 5546 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5547 lt_SP2NL='tr \040 \012' 5548 lt_NL2SP='tr \015\012 \040\040' 5549 ;; 5550 *) # EBCDIC based system 5551 lt_SP2NL='tr \100 \n' 5552 lt_NL2SP='tr \r\n \100\100' 5553 ;; 5554esac 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5565$as_echo_n "checking for $LD option to reload object files... " >&6; } 5566if test "${lt_cv_ld_reload_flag+set}" = set; then : 5567 $as_echo_n "(cached) " >&6 5568else 5569 lt_cv_ld_reload_flag='-r' 5570fi 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5572$as_echo "$lt_cv_ld_reload_flag" >&6; } 5573reload_flag=$lt_cv_ld_reload_flag 5574case $reload_flag in 5575"" | " "*) ;; 5576*) reload_flag=" $reload_flag" ;; 5577esac 5578reload_cmds='$LD$reload_flag -o $output$reload_objs' 5579case $host_os in 5580 darwin*) 5581 if test "$GCC" = yes; then 5582 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5583 else 5584 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5585 fi 5586 ;; 5587esac 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597if test -n "$ac_tool_prefix"; then 5598 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5599set dummy ${ac_tool_prefix}objdump; ac_word=$2 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5601$as_echo_n "checking for $ac_word... " >&6; } 5602if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 if test -n "$OBJDUMP"; then 5606 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5607else 5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5609for as_dir in $PATH 5610do 5611 IFS=$as_save_IFS 5612 test -z "$as_dir" && as_dir=. 5613 for ac_exec_ext in '' $ac_executable_extensions; do 5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5615 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5617 break 2 5618 fi 5619done 5620 done 5621IFS=$as_save_IFS 5622 5623fi 5624fi 5625OBJDUMP=$ac_cv_prog_OBJDUMP 5626if test -n "$OBJDUMP"; then 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5628$as_echo "$OBJDUMP" >&6; } 5629else 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5631$as_echo "no" >&6; } 5632fi 5633 5634 5635fi 5636if test -z "$ac_cv_prog_OBJDUMP"; then 5637 ac_ct_OBJDUMP=$OBJDUMP 5638 # Extract the first word of "objdump", so it can be a program name with args. 5639set dummy objdump; ac_word=$2 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5641$as_echo_n "checking for $ac_word... " >&6; } 5642if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5643 $as_echo_n "(cached) " >&6 5644else 5645 if test -n "$ac_ct_OBJDUMP"; then 5646 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5647else 5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5649for as_dir in $PATH 5650do 5651 IFS=$as_save_IFS 5652 test -z "$as_dir" && as_dir=. 5653 for ac_exec_ext in '' $ac_executable_extensions; do 5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5655 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5657 break 2 5658 fi 5659done 5660 done 5661IFS=$as_save_IFS 5662 5663fi 5664fi 5665ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5666if test -n "$ac_ct_OBJDUMP"; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5668$as_echo "$ac_ct_OBJDUMP" >&6; } 5669else 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5671$as_echo "no" >&6; } 5672fi 5673 5674 if test "x$ac_ct_OBJDUMP" = x; then 5675 OBJDUMP="false" 5676 else 5677 case $cross_compiling:$ac_tool_warned in 5678yes:) 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5681ac_tool_warned=yes ;; 5682esac 5683 OBJDUMP=$ac_ct_OBJDUMP 5684 fi 5685else 5686 OBJDUMP="$ac_cv_prog_OBJDUMP" 5687fi 5688 5689test -z "$OBJDUMP" && OBJDUMP=objdump 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5700$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5701if test "${lt_cv_deplibs_check_method+set}" = set; then : 5702 $as_echo_n "(cached) " >&6 5703else 5704 lt_cv_file_magic_cmd='$MAGIC_CMD' 5705lt_cv_file_magic_test_file= 5706lt_cv_deplibs_check_method='unknown' 5707# Need to set the preceding variable on all platforms that support 5708# interlibrary dependencies. 5709# 'none' -- dependencies not supported. 5710# `unknown' -- same as none, but documents that we really don't know. 5711# 'pass_all' -- all dependencies passed with no checks. 5712# 'test_compile' -- check by making test program. 5713# 'file_magic [[regex]]' -- check by looking for files in library path 5714# which responds to the $file_magic_cmd with a given extended regex. 5715# If you have `file' or equivalent on your system and you're not sure 5716# whether `pass_all' will *always* work, you probably want this one. 5717 5718case $host_os in 5719aix[4-9]*) 5720 lt_cv_deplibs_check_method=pass_all 5721 ;; 5722 5723beos*) 5724 lt_cv_deplibs_check_method=pass_all 5725 ;; 5726 5727bsdi[45]*) 5728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5729 lt_cv_file_magic_cmd='/usr/bin/file -L' 5730 lt_cv_file_magic_test_file=/shlib/libc.so 5731 ;; 5732 5733cygwin*) 5734 # func_win32_libid is a shell function defined in ltmain.sh 5735 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5736 lt_cv_file_magic_cmd='func_win32_libid' 5737 ;; 5738 5739mingw* | pw32*) 5740 # Base MSYS/MinGW do not provide the 'file' command needed by 5741 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5742 # unless we find 'file', for example because we are cross-compiling. 5743 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5744 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5745 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5746 lt_cv_file_magic_cmd='func_win32_libid' 5747 else 5748 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5749 lt_cv_file_magic_cmd='$OBJDUMP -f' 5750 fi 5751 ;; 5752 5753cegcc*) 5754 # use the weaker test based on 'objdump'. See mingw*. 5755 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5756 lt_cv_file_magic_cmd='$OBJDUMP -f' 5757 ;; 5758 5759darwin* | rhapsody*) 5760 lt_cv_deplibs_check_method=pass_all 5761 ;; 5762 5763freebsd* | dragonfly*) 5764 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5765 case $host_cpu in 5766 i*86 ) 5767 # Not sure whether the presence of OpenBSD here was a mistake. 5768 # Let's accept both of them until this is cleared up. 5769 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5770 lt_cv_file_magic_cmd=/usr/bin/file 5771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5772 ;; 5773 esac 5774 else 5775 lt_cv_deplibs_check_method=pass_all 5776 fi 5777 ;; 5778 5779gnu*) 5780 lt_cv_deplibs_check_method=pass_all 5781 ;; 5782 5783haiku*) 5784 lt_cv_deplibs_check_method=pass_all 5785 ;; 5786 5787hpux10.20* | hpux11*) 5788 lt_cv_file_magic_cmd=/usr/bin/file 5789 case $host_cpu in 5790 ia64*) 5791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5792 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5793 ;; 5794 hppa*64*) 5795 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5796 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5797 ;; 5798 *) 5799 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5800 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5801 ;; 5802 esac 5803 ;; 5804 5805interix[3-9]*) 5806 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5808 ;; 5809 5810irix5* | irix6* | nonstopux*) 5811 case $LD in 5812 *-32|*"-32 ") libmagic=32-bit;; 5813 *-n32|*"-n32 ") libmagic=N32;; 5814 *-64|*"-64 ") libmagic=64-bit;; 5815 *) libmagic=never-match;; 5816 esac 5817 lt_cv_deplibs_check_method=pass_all 5818 ;; 5819 5820# This must be Linux ELF. 5821linux* | k*bsd*-gnu | kopensolaris*-gnu) 5822 lt_cv_deplibs_check_method=pass_all 5823 ;; 5824 5825netbsd*) 5826 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5828 else 5829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5830 fi 5831 ;; 5832 5833newos6*) 5834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5835 lt_cv_file_magic_cmd=/usr/bin/file 5836 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5837 ;; 5838 5839*nto* | *qnx*) 5840 lt_cv_deplibs_check_method=pass_all 5841 ;; 5842 5843openbsd*) 5844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5846 else 5847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5848 fi 5849 ;; 5850 5851osf3* | osf4* | osf5*) 5852 lt_cv_deplibs_check_method=pass_all 5853 ;; 5854 5855rdos*) 5856 lt_cv_deplibs_check_method=pass_all 5857 ;; 5858 5859solaris*) 5860 lt_cv_deplibs_check_method=pass_all 5861 ;; 5862 5863sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5864 lt_cv_deplibs_check_method=pass_all 5865 ;; 5866 5867sysv4 | sysv4.3*) 5868 case $host_vendor in 5869 motorola) 5870 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]' 5871 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5872 ;; 5873 ncr) 5874 lt_cv_deplibs_check_method=pass_all 5875 ;; 5876 sequent) 5877 lt_cv_file_magic_cmd='/bin/file' 5878 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5879 ;; 5880 sni) 5881 lt_cv_file_magic_cmd='/bin/file' 5882 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5883 lt_cv_file_magic_test_file=/lib/libc.so 5884 ;; 5885 siemens) 5886 lt_cv_deplibs_check_method=pass_all 5887 ;; 5888 pc) 5889 lt_cv_deplibs_check_method=pass_all 5890 ;; 5891 esac 5892 ;; 5893 5894tpf*) 5895 lt_cv_deplibs_check_method=pass_all 5896 ;; 5897esac 5898 5899fi 5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5901$as_echo "$lt_cv_deplibs_check_method" >&6; } 5902file_magic_cmd=$lt_cv_file_magic_cmd 5903deplibs_check_method=$lt_cv_deplibs_check_method 5904test -z "$deplibs_check_method" && deplibs_check_method=unknown 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917if test -n "$ac_tool_prefix"; then 5918 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5919set dummy ${ac_tool_prefix}ar; ac_word=$2 5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5921$as_echo_n "checking for $ac_word... " >&6; } 5922if test "${ac_cv_prog_AR+set}" = set; then : 5923 $as_echo_n "(cached) " >&6 5924else 5925 if test -n "$AR"; then 5926 ac_cv_prog_AR="$AR" # Let the user override the test. 5927else 5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5929for as_dir in $PATH 5930do 5931 IFS=$as_save_IFS 5932 test -z "$as_dir" && as_dir=. 5933 for ac_exec_ext in '' $ac_executable_extensions; do 5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5935 ac_cv_prog_AR="${ac_tool_prefix}ar" 5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5937 break 2 5938 fi 5939done 5940 done 5941IFS=$as_save_IFS 5942 5943fi 5944fi 5945AR=$ac_cv_prog_AR 5946if test -n "$AR"; then 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5948$as_echo "$AR" >&6; } 5949else 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5951$as_echo "no" >&6; } 5952fi 5953 5954 5955fi 5956if test -z "$ac_cv_prog_AR"; then 5957 ac_ct_AR=$AR 5958 # Extract the first word of "ar", so it can be a program name with args. 5959set dummy ar; ac_word=$2 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5961$as_echo_n "checking for $ac_word... " >&6; } 5962if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5963 $as_echo_n "(cached) " >&6 5964else 5965 if test -n "$ac_ct_AR"; then 5966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5967else 5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5969for as_dir in $PATH 5970do 5971 IFS=$as_save_IFS 5972 test -z "$as_dir" && as_dir=. 5973 for ac_exec_ext in '' $ac_executable_extensions; do 5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5975 ac_cv_prog_ac_ct_AR="ar" 5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5977 break 2 5978 fi 5979done 5980 done 5981IFS=$as_save_IFS 5982 5983fi 5984fi 5985ac_ct_AR=$ac_cv_prog_ac_ct_AR 5986if test -n "$ac_ct_AR"; then 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5988$as_echo "$ac_ct_AR" >&6; } 5989else 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5991$as_echo "no" >&6; } 5992fi 5993 5994 if test "x$ac_ct_AR" = x; then 5995 AR="false" 5996 else 5997 case $cross_compiling:$ac_tool_warned in 5998yes:) 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6001ac_tool_warned=yes ;; 6002esac 6003 AR=$ac_ct_AR 6004 fi 6005else 6006 AR="$ac_cv_prog_AR" 6007fi 6008 6009test -z "$AR" && AR=ar 6010test -z "$AR_FLAGS" && AR_FLAGS=cru 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022if test -n "$ac_tool_prefix"; then 6023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6024set dummy ${ac_tool_prefix}strip; ac_word=$2 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6026$as_echo_n "checking for $ac_word... " >&6; } 6027if test "${ac_cv_prog_STRIP+set}" = set; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 if test -n "$STRIP"; then 6031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6032else 6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034for as_dir in $PATH 6035do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6040 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044done 6045 done 6046IFS=$as_save_IFS 6047 6048fi 6049fi 6050STRIP=$ac_cv_prog_STRIP 6051if test -n "$STRIP"; then 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6053$as_echo "$STRIP" >&6; } 6054else 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6056$as_echo "no" >&6; } 6057fi 6058 6059 6060fi 6061if test -z "$ac_cv_prog_STRIP"; then 6062 ac_ct_STRIP=$STRIP 6063 # Extract the first word of "strip", so it can be a program name with args. 6064set dummy strip; ac_word=$2 6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6066$as_echo_n "checking for $ac_word... " >&6; } 6067if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6068 $as_echo_n "(cached) " >&6 6069else 6070 if test -n "$ac_ct_STRIP"; then 6071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6072else 6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6074for as_dir in $PATH 6075do 6076 IFS=$as_save_IFS 6077 test -z "$as_dir" && as_dir=. 6078 for ac_exec_ext in '' $ac_executable_extensions; do 6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6080 ac_cv_prog_ac_ct_STRIP="strip" 6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6082 break 2 6083 fi 6084done 6085 done 6086IFS=$as_save_IFS 6087 6088fi 6089fi 6090ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6091if test -n "$ac_ct_STRIP"; then 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6093$as_echo "$ac_ct_STRIP" >&6; } 6094else 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6096$as_echo "no" >&6; } 6097fi 6098 6099 if test "x$ac_ct_STRIP" = x; then 6100 STRIP=":" 6101 else 6102 case $cross_compiling:$ac_tool_warned in 6103yes:) 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6106ac_tool_warned=yes ;; 6107esac 6108 STRIP=$ac_ct_STRIP 6109 fi 6110else 6111 STRIP="$ac_cv_prog_STRIP" 6112fi 6113 6114test -z "$STRIP" && STRIP=: 6115 6116 6117 6118 6119 6120 6121if test -n "$ac_tool_prefix"; then 6122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6123set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6125$as_echo_n "checking for $ac_word... " >&6; } 6126if test "${ac_cv_prog_RANLIB+set}" = set; then : 6127 $as_echo_n "(cached) " >&6 6128else 6129 if test -n "$RANLIB"; then 6130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6131else 6132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6133for as_dir in $PATH 6134do 6135 IFS=$as_save_IFS 6136 test -z "$as_dir" && as_dir=. 6137 for ac_exec_ext in '' $ac_executable_extensions; do 6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6141 break 2 6142 fi 6143done 6144 done 6145IFS=$as_save_IFS 6146 6147fi 6148fi 6149RANLIB=$ac_cv_prog_RANLIB 6150if test -n "$RANLIB"; then 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6152$as_echo "$RANLIB" >&6; } 6153else 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6155$as_echo "no" >&6; } 6156fi 6157 6158 6159fi 6160if test -z "$ac_cv_prog_RANLIB"; then 6161 ac_ct_RANLIB=$RANLIB 6162 # Extract the first word of "ranlib", so it can be a program name with args. 6163set dummy ranlib; ac_word=$2 6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6165$as_echo_n "checking for $ac_word... " >&6; } 6166if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6167 $as_echo_n "(cached) " >&6 6168else 6169 if test -n "$ac_ct_RANLIB"; then 6170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6171else 6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6173for as_dir in $PATH 6174do 6175 IFS=$as_save_IFS 6176 test -z "$as_dir" && as_dir=. 6177 for ac_exec_ext in '' $ac_executable_extensions; do 6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6179 ac_cv_prog_ac_ct_RANLIB="ranlib" 6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6181 break 2 6182 fi 6183done 6184 done 6185IFS=$as_save_IFS 6186 6187fi 6188fi 6189ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6190if test -n "$ac_ct_RANLIB"; then 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6192$as_echo "$ac_ct_RANLIB" >&6; } 6193else 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6195$as_echo "no" >&6; } 6196fi 6197 6198 if test "x$ac_ct_RANLIB" = x; then 6199 RANLIB=":" 6200 else 6201 case $cross_compiling:$ac_tool_warned in 6202yes:) 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6205ac_tool_warned=yes ;; 6206esac 6207 RANLIB=$ac_ct_RANLIB 6208 fi 6209else 6210 RANLIB="$ac_cv_prog_RANLIB" 6211fi 6212 6213test -z "$RANLIB" && RANLIB=: 6214 6215 6216 6217 6218 6219 6220# Determine commands to create old-style static archives. 6221old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6222old_postinstall_cmds='chmod 644 $oldlib' 6223old_postuninstall_cmds= 6224 6225if test -n "$RANLIB"; then 6226 case $host_os in 6227 openbsd*) 6228 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6229 ;; 6230 *) 6231 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6232 ;; 6233 esac 6234 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6235fi 6236 6237case $host_os in 6238 darwin*) 6239 lock_old_archive_extraction=yes ;; 6240 *) 6241 lock_old_archive_extraction=no ;; 6242esac 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282# If no C compiler was specified, use CC. 6283LTCC=${LTCC-"$CC"} 6284 6285# If no C compiler flags were specified, use CFLAGS. 6286LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6287 6288# Allow CC to be a program name with arguments. 6289compiler=$CC 6290 6291 6292# Check for command to grab the raw symbol name followed by C symbol from nm. 6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6294$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6295if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6296 $as_echo_n "(cached) " >&6 6297else 6298 6299# These are sane defaults that work on at least a few old systems. 6300# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6301 6302# Character class describing NM global symbol codes. 6303symcode='[BCDEGRST]' 6304 6305# Regexp to match symbols that can be accessed directly from C. 6306sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6307 6308# Define system-specific variables. 6309case $host_os in 6310aix*) 6311 symcode='[BCDT]' 6312 ;; 6313cygwin* | mingw* | pw32* | cegcc*) 6314 symcode='[ABCDGISTW]' 6315 ;; 6316hpux*) 6317 if test "$host_cpu" = ia64; then 6318 symcode='[ABCDEGRST]' 6319 fi 6320 ;; 6321irix* | nonstopux*) 6322 symcode='[BCDEGRST]' 6323 ;; 6324osf*) 6325 symcode='[BCDEGQRST]' 6326 ;; 6327solaris*) 6328 symcode='[BDRT]' 6329 ;; 6330sco3.2v5*) 6331 symcode='[DT]' 6332 ;; 6333sysv4.2uw2*) 6334 symcode='[DT]' 6335 ;; 6336sysv5* | sco5v6* | unixware* | OpenUNIX*) 6337 symcode='[ABDT]' 6338 ;; 6339sysv4) 6340 symcode='[DFNSTU]' 6341 ;; 6342esac 6343 6344# If we're using GNU nm, then use its standard symbol codes. 6345case `$NM -V 2>&1` in 6346*GNU* | *'with BFD'*) 6347 symcode='[ABCDGIRSTW]' ;; 6348esac 6349 6350# Transform an extracted symbol line into a proper C declaration. 6351# Some systems (esp. on ia64) link data and code symbols differently, 6352# so use this general approach. 6353lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6354 6355# Transform an extracted symbol line into symbol name and symbol address 6356lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6357lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6358 6359# Handle CRLF in mingw tool chain 6360opt_cr= 6361case $build_os in 6362mingw*) 6363 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6364 ;; 6365esac 6366 6367# Try without a prefix underscore, then with it. 6368for ac_symprfx in "" "_"; do 6369 6370 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6371 symxfrm="\\1 $ac_symprfx\\2 \\2" 6372 6373 # Write the raw and C identifiers. 6374 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6375 # Fake it for dumpbin and say T for any non-static function 6376 # and D for any global variable. 6377 # Also find C++ and __fastcall symbols from MSVC++, 6378 # which start with @ or ?. 6379 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6380" {last_section=section; section=\$ 3};"\ 6381" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6382" \$ 0!~/External *\|/{next};"\ 6383" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6384" {if(hide[section]) next};"\ 6385" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6386" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6387" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6388" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6389" ' prfx=^$ac_symprfx" 6390 else 6391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6392 fi 6393 6394 # Check to see that the pipe works correctly. 6395 pipe_works=no 6396 6397 rm -f conftest* 6398 cat > conftest.$ac_ext <<_LT_EOF 6399#ifdef __cplusplus 6400extern "C" { 6401#endif 6402char nm_test_var; 6403void nm_test_func(void); 6404void nm_test_func(void){} 6405#ifdef __cplusplus 6406} 6407#endif 6408int main(){nm_test_var='a';nm_test_func();return(0);} 6409_LT_EOF 6410 6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6412 (eval $ac_compile) 2>&5 6413 ac_status=$? 6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6415 test $ac_status = 0; }; then 6416 # Now try to grab the symbols. 6417 nlist=conftest.nm 6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6419 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6420 ac_status=$? 6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6422 test $ac_status = 0; } && test -s "$nlist"; then 6423 # Try sorting and uniquifying the output. 6424 if sort "$nlist" | uniq > "$nlist"T; then 6425 mv -f "$nlist"T "$nlist" 6426 else 6427 rm -f "$nlist"T 6428 fi 6429 6430 # Make sure that we snagged all the symbols we need. 6431 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6432 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6433 cat <<_LT_EOF > conftest.$ac_ext 6434#ifdef __cplusplus 6435extern "C" { 6436#endif 6437 6438_LT_EOF 6439 # Now generate the symbol file. 6440 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6441 6442 cat <<_LT_EOF >> conftest.$ac_ext 6443 6444/* The mapping between symbol names and symbols. */ 6445const struct { 6446 const char *name; 6447 void *address; 6448} 6449lt__PROGRAM__LTX_preloaded_symbols[] = 6450{ 6451 { "@PROGRAM@", (void *) 0 }, 6452_LT_EOF 6453 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6454 cat <<\_LT_EOF >> conftest.$ac_ext 6455 {0, (void *) 0} 6456}; 6457 6458/* This works around a problem in FreeBSD linker */ 6459#ifdef FREEBSD_WORKAROUND 6460static const void *lt_preloaded_setup() { 6461 return lt__PROGRAM__LTX_preloaded_symbols; 6462} 6463#endif 6464 6465#ifdef __cplusplus 6466} 6467#endif 6468_LT_EOF 6469 # Now try linking the two files. 6470 mv conftest.$ac_objext conftstm.$ac_objext 6471 lt_save_LIBS="$LIBS" 6472 lt_save_CFLAGS="$CFLAGS" 6473 LIBS="conftstm.$ac_objext" 6474 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6476 (eval $ac_link) 2>&5 6477 ac_status=$? 6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6479 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6480 pipe_works=yes 6481 fi 6482 LIBS="$lt_save_LIBS" 6483 CFLAGS="$lt_save_CFLAGS" 6484 else 6485 echo "cannot find nm_test_func in $nlist" >&5 6486 fi 6487 else 6488 echo "cannot find nm_test_var in $nlist" >&5 6489 fi 6490 else 6491 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6492 fi 6493 else 6494 echo "$progname: failed program was:" >&5 6495 cat conftest.$ac_ext >&5 6496 fi 6497 rm -rf conftest* conftst* 6498 6499 # Do not use the global_symbol_pipe unless it works. 6500 if test "$pipe_works" = yes; then 6501 break 6502 else 6503 lt_cv_sys_global_symbol_pipe= 6504 fi 6505done 6506 6507fi 6508 6509if test -z "$lt_cv_sys_global_symbol_pipe"; then 6510 lt_cv_sys_global_symbol_to_cdecl= 6511fi 6512if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6514$as_echo "failed" >&6; } 6515else 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6517$as_echo "ok" >&6; } 6518fi 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542# Check whether --enable-libtool-lock was given. 6543if test "${enable_libtool_lock+set}" = set; then : 6544 enableval=$enable_libtool_lock; 6545fi 6546 6547test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6548 6549# Some flags need to be propagated to the compiler or linker for good 6550# libtool support. 6551case $host in 6552ia64-*-hpux*) 6553 # Find out which ABI we are using. 6554 echo 'int i;' > conftest.$ac_ext 6555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6556 (eval $ac_compile) 2>&5 6557 ac_status=$? 6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6559 test $ac_status = 0; }; then 6560 case `/usr/bin/file conftest.$ac_objext` in 6561 *ELF-32*) 6562 HPUX_IA64_MODE="32" 6563 ;; 6564 *ELF-64*) 6565 HPUX_IA64_MODE="64" 6566 ;; 6567 esac 6568 fi 6569 rm -rf conftest* 6570 ;; 6571*-*-irix6*) 6572 # Find out which ABI we are using. 6573 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6575 (eval $ac_compile) 2>&5 6576 ac_status=$? 6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6578 test $ac_status = 0; }; then 6579 if test "$lt_cv_prog_gnu_ld" = yes; then 6580 case `/usr/bin/file conftest.$ac_objext` in 6581 *32-bit*) 6582 LD="${LD-ld} -melf32bsmip" 6583 ;; 6584 *N32*) 6585 LD="${LD-ld} -melf32bmipn32" 6586 ;; 6587 *64-bit*) 6588 LD="${LD-ld} -melf64bmip" 6589 ;; 6590 esac 6591 else 6592 case `/usr/bin/file conftest.$ac_objext` in 6593 *32-bit*) 6594 LD="${LD-ld} -32" 6595 ;; 6596 *N32*) 6597 LD="${LD-ld} -n32" 6598 ;; 6599 *64-bit*) 6600 LD="${LD-ld} -64" 6601 ;; 6602 esac 6603 fi 6604 fi 6605 rm -rf conftest* 6606 ;; 6607 6608x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6609s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6610 # Find out which ABI we are using. 6611 echo 'int i;' > conftest.$ac_ext 6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6613 (eval $ac_compile) 2>&5 6614 ac_status=$? 6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6616 test $ac_status = 0; }; then 6617 case `/usr/bin/file conftest.o` in 6618 *32-bit*) 6619 case $host in 6620 x86_64-*kfreebsd*-gnu) 6621 LD="${LD-ld} -m elf_i386_fbsd" 6622 ;; 6623 x86_64-*linux*) 6624 case `/usr/bin/file conftest.o` in 6625 *x86-64*) 6626 LD="${LD-ld} -m elf32_x86_64" 6627 ;; 6628 *) 6629 LD="${LD-ld} -m elf_i386" 6630 ;; 6631 esac 6632 ;; 6633 powerpc64le-*linux*) 6634 LD="${LD-ld} -m elf32lppclinux" 6635 ;; 6636 powerpc64-*linux*) 6637 LD="${LD-ld} -m elf32ppclinux" 6638 ;; 6639 s390x-*linux*) 6640 LD="${LD-ld} -m elf_s390" 6641 ;; 6642 sparc64-*linux*) 6643 LD="${LD-ld} -m elf32_sparc" 6644 ;; 6645 esac 6646 ;; 6647 *64-bit*) 6648 case $host in 6649 x86_64-*kfreebsd*-gnu) 6650 LD="${LD-ld} -m elf_x86_64_fbsd" 6651 ;; 6652 x86_64-*linux*) 6653 LD="${LD-ld} -m elf_x86_64" 6654 ;; 6655 powerpcle-*linux*) 6656 LD="${LD-ld} -m elf64lppc" 6657 ;; 6658 powerpc-*linux*) 6659 LD="${LD-ld} -m elf64ppc" 6660 ;; 6661 s390*-*linux*|s390*-*tpf*) 6662 LD="${LD-ld} -m elf64_s390" 6663 ;; 6664 sparc*-*linux*) 6665 LD="${LD-ld} -m elf64_sparc" 6666 ;; 6667 esac 6668 ;; 6669 esac 6670 fi 6671 rm -rf conftest* 6672 ;; 6673 6674*-*-sco3.2v5*) 6675 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6676 SAVE_CFLAGS="$CFLAGS" 6677 CFLAGS="$CFLAGS -belf" 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6679$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6680if test "${lt_cv_cc_needs_belf+set}" = set; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 ac_ext=c 6684ac_cpp='$CPP $CPPFLAGS' 6685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6687ac_compiler_gnu=$ac_cv_c_compiler_gnu 6688 6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6690/* end confdefs.h. */ 6691 6692int 6693main () 6694{ 6695 6696 ; 6697 return 0; 6698} 6699_ACEOF 6700if ac_fn_c_try_link "$LINENO"; then : 6701 lt_cv_cc_needs_belf=yes 6702else 6703 lt_cv_cc_needs_belf=no 6704fi 6705rm -f core conftest.err conftest.$ac_objext \ 6706 conftest$ac_exeext conftest.$ac_ext 6707 ac_ext=c 6708ac_cpp='$CPP $CPPFLAGS' 6709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6711ac_compiler_gnu=$ac_cv_c_compiler_gnu 6712 6713fi 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6715$as_echo "$lt_cv_cc_needs_belf" >&6; } 6716 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6717 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6718 CFLAGS="$SAVE_CFLAGS" 6719 fi 6720 ;; 6721sparc*-*solaris*) 6722 # Find out which ABI we are using. 6723 echo 'int i;' > conftest.$ac_ext 6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6725 (eval $ac_compile) 2>&5 6726 ac_status=$? 6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6728 test $ac_status = 0; }; then 6729 case `/usr/bin/file conftest.o` in 6730 *64-bit*) 6731 case $lt_cv_prog_gnu_ld in 6732 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6733 *) 6734 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6735 LD="${LD-ld} -64" 6736 fi 6737 ;; 6738 esac 6739 ;; 6740 esac 6741 fi 6742 rm -rf conftest* 6743 ;; 6744esac 6745 6746need_locks="$enable_libtool_lock" 6747 6748 6749 case $host_os in 6750 rhapsody* | darwin*) 6751 if test -n "$ac_tool_prefix"; then 6752 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6753set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6755$as_echo_n "checking for $ac_word... " >&6; } 6756if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 if test -n "$DSYMUTIL"; then 6760 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6761else 6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6763for as_dir in $PATH 6764do 6765 IFS=$as_save_IFS 6766 test -z "$as_dir" && as_dir=. 6767 for ac_exec_ext in '' $ac_executable_extensions; do 6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6769 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6771 break 2 6772 fi 6773done 6774 done 6775IFS=$as_save_IFS 6776 6777fi 6778fi 6779DSYMUTIL=$ac_cv_prog_DSYMUTIL 6780if test -n "$DSYMUTIL"; then 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6782$as_echo "$DSYMUTIL" >&6; } 6783else 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6785$as_echo "no" >&6; } 6786fi 6787 6788 6789fi 6790if test -z "$ac_cv_prog_DSYMUTIL"; then 6791 ac_ct_DSYMUTIL=$DSYMUTIL 6792 # Extract the first word of "dsymutil", so it can be a program name with args. 6793set dummy dsymutil; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 if test -n "$ac_ct_DSYMUTIL"; then 6800 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6809 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817fi 6818fi 6819ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6820if test -n "$ac_ct_DSYMUTIL"; then 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6822$as_echo "$ac_ct_DSYMUTIL" >&6; } 6823else 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6825$as_echo "no" >&6; } 6826fi 6827 6828 if test "x$ac_ct_DSYMUTIL" = x; then 6829 DSYMUTIL=":" 6830 else 6831 case $cross_compiling:$ac_tool_warned in 6832yes:) 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6835ac_tool_warned=yes ;; 6836esac 6837 DSYMUTIL=$ac_ct_DSYMUTIL 6838 fi 6839else 6840 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6841fi 6842 6843 if test -n "$ac_tool_prefix"; then 6844 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6845set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6847$as_echo_n "checking for $ac_word... " >&6; } 6848if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 if test -n "$NMEDIT"; then 6852 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6853else 6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6855for as_dir in $PATH 6856do 6857 IFS=$as_save_IFS 6858 test -z "$as_dir" && as_dir=. 6859 for ac_exec_ext in '' $ac_executable_extensions; do 6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6861 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6863 break 2 6864 fi 6865done 6866 done 6867IFS=$as_save_IFS 6868 6869fi 6870fi 6871NMEDIT=$ac_cv_prog_NMEDIT 6872if test -n "$NMEDIT"; then 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6874$as_echo "$NMEDIT" >&6; } 6875else 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6877$as_echo "no" >&6; } 6878fi 6879 6880 6881fi 6882if test -z "$ac_cv_prog_NMEDIT"; then 6883 ac_ct_NMEDIT=$NMEDIT 6884 # Extract the first word of "nmedit", so it can be a program name with args. 6885set dummy nmedit; ac_word=$2 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6887$as_echo_n "checking for $ac_word... " >&6; } 6888if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 if test -n "$ac_ct_NMEDIT"; then 6892 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6893else 6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6895for as_dir in $PATH 6896do 6897 IFS=$as_save_IFS 6898 test -z "$as_dir" && as_dir=. 6899 for ac_exec_ext in '' $ac_executable_extensions; do 6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6901 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6903 break 2 6904 fi 6905done 6906 done 6907IFS=$as_save_IFS 6908 6909fi 6910fi 6911ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6912if test -n "$ac_ct_NMEDIT"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6914$as_echo "$ac_ct_NMEDIT" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917$as_echo "no" >&6; } 6918fi 6919 6920 if test "x$ac_ct_NMEDIT" = x; then 6921 NMEDIT=":" 6922 else 6923 case $cross_compiling:$ac_tool_warned in 6924yes:) 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6927ac_tool_warned=yes ;; 6928esac 6929 NMEDIT=$ac_ct_NMEDIT 6930 fi 6931else 6932 NMEDIT="$ac_cv_prog_NMEDIT" 6933fi 6934 6935 if test -n "$ac_tool_prefix"; then 6936 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6937set dummy ${ac_tool_prefix}lipo; ac_word=$2 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6939$as_echo_n "checking for $ac_word... " >&6; } 6940if test "${ac_cv_prog_LIPO+set}" = set; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 if test -n "$LIPO"; then 6944 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6945else 6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6947for as_dir in $PATH 6948do 6949 IFS=$as_save_IFS 6950 test -z "$as_dir" && as_dir=. 6951 for ac_exec_ext in '' $ac_executable_extensions; do 6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6953 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6955 break 2 6956 fi 6957done 6958 done 6959IFS=$as_save_IFS 6960 6961fi 6962fi 6963LIPO=$ac_cv_prog_LIPO 6964if test -n "$LIPO"; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6966$as_echo "$LIPO" >&6; } 6967else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969$as_echo "no" >&6; } 6970fi 6971 6972 6973fi 6974if test -z "$ac_cv_prog_LIPO"; then 6975 ac_ct_LIPO=$LIPO 6976 # Extract the first word of "lipo", so it can be a program name with args. 6977set dummy lipo; ac_word=$2 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6979$as_echo_n "checking for $ac_word... " >&6; } 6980if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 if test -n "$ac_ct_LIPO"; then 6984 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6985else 6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987for as_dir in $PATH 6988do 6989 IFS=$as_save_IFS 6990 test -z "$as_dir" && as_dir=. 6991 for ac_exec_ext in '' $ac_executable_extensions; do 6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6993 ac_cv_prog_ac_ct_LIPO="lipo" 6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6995 break 2 6996 fi 6997done 6998 done 6999IFS=$as_save_IFS 7000 7001fi 7002fi 7003ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7004if test -n "$ac_ct_LIPO"; then 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7006$as_echo "$ac_ct_LIPO" >&6; } 7007else 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7009$as_echo "no" >&6; } 7010fi 7011 7012 if test "x$ac_ct_LIPO" = x; then 7013 LIPO=":" 7014 else 7015 case $cross_compiling:$ac_tool_warned in 7016yes:) 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7019ac_tool_warned=yes ;; 7020esac 7021 LIPO=$ac_ct_LIPO 7022 fi 7023else 7024 LIPO="$ac_cv_prog_LIPO" 7025fi 7026 7027 if test -n "$ac_tool_prefix"; then 7028 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7029set dummy ${ac_tool_prefix}otool; ac_word=$2 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7031$as_echo_n "checking for $ac_word... " >&6; } 7032if test "${ac_cv_prog_OTOOL+set}" = set; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 if test -n "$OTOOL"; then 7036 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7037else 7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7039for as_dir in $PATH 7040do 7041 IFS=$as_save_IFS 7042 test -z "$as_dir" && as_dir=. 7043 for ac_exec_ext in '' $ac_executable_extensions; do 7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7045 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7047 break 2 7048 fi 7049done 7050 done 7051IFS=$as_save_IFS 7052 7053fi 7054fi 7055OTOOL=$ac_cv_prog_OTOOL 7056if test -n "$OTOOL"; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7058$as_echo "$OTOOL" >&6; } 7059else 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7061$as_echo "no" >&6; } 7062fi 7063 7064 7065fi 7066if test -z "$ac_cv_prog_OTOOL"; then 7067 ac_ct_OTOOL=$OTOOL 7068 # Extract the first word of "otool", so it can be a program name with args. 7069set dummy otool; ac_word=$2 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7071$as_echo_n "checking for $ac_word... " >&6; } 7072if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7073 $as_echo_n "(cached) " >&6 7074else 7075 if test -n "$ac_ct_OTOOL"; then 7076 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7077else 7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7079for as_dir in $PATH 7080do 7081 IFS=$as_save_IFS 7082 test -z "$as_dir" && as_dir=. 7083 for ac_exec_ext in '' $ac_executable_extensions; do 7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7085 ac_cv_prog_ac_ct_OTOOL="otool" 7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7087 break 2 7088 fi 7089done 7090 done 7091IFS=$as_save_IFS 7092 7093fi 7094fi 7095ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7096if test -n "$ac_ct_OTOOL"; then 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7098$as_echo "$ac_ct_OTOOL" >&6; } 7099else 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7101$as_echo "no" >&6; } 7102fi 7103 7104 if test "x$ac_ct_OTOOL" = x; then 7105 OTOOL=":" 7106 else 7107 case $cross_compiling:$ac_tool_warned in 7108yes:) 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7111ac_tool_warned=yes ;; 7112esac 7113 OTOOL=$ac_ct_OTOOL 7114 fi 7115else 7116 OTOOL="$ac_cv_prog_OTOOL" 7117fi 7118 7119 if test -n "$ac_tool_prefix"; then 7120 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7121set dummy ${ac_tool_prefix}otool64; ac_word=$2 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7123$as_echo_n "checking for $ac_word... " >&6; } 7124if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7125 $as_echo_n "(cached) " >&6 7126else 7127 if test -n "$OTOOL64"; then 7128 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7129else 7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7131for as_dir in $PATH 7132do 7133 IFS=$as_save_IFS 7134 test -z "$as_dir" && as_dir=. 7135 for ac_exec_ext in '' $ac_executable_extensions; do 7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7137 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7139 break 2 7140 fi 7141done 7142 done 7143IFS=$as_save_IFS 7144 7145fi 7146fi 7147OTOOL64=$ac_cv_prog_OTOOL64 7148if test -n "$OTOOL64"; then 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7150$as_echo "$OTOOL64" >&6; } 7151else 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7153$as_echo "no" >&6; } 7154fi 7155 7156 7157fi 7158if test -z "$ac_cv_prog_OTOOL64"; then 7159 ac_ct_OTOOL64=$OTOOL64 7160 # Extract the first word of "otool64", so it can be a program name with args. 7161set dummy otool64; ac_word=$2 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7163$as_echo_n "checking for $ac_word... " >&6; } 7164if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 if test -n "$ac_ct_OTOOL64"; then 7168 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7169else 7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7171for as_dir in $PATH 7172do 7173 IFS=$as_save_IFS 7174 test -z "$as_dir" && as_dir=. 7175 for ac_exec_ext in '' $ac_executable_extensions; do 7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7177 ac_cv_prog_ac_ct_OTOOL64="otool64" 7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7179 break 2 7180 fi 7181done 7182 done 7183IFS=$as_save_IFS 7184 7185fi 7186fi 7187ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7188if test -n "$ac_ct_OTOOL64"; then 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7190$as_echo "$ac_ct_OTOOL64" >&6; } 7191else 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7193$as_echo "no" >&6; } 7194fi 7195 7196 if test "x$ac_ct_OTOOL64" = x; then 7197 OTOOL64=":" 7198 else 7199 case $cross_compiling:$ac_tool_warned in 7200yes:) 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7203ac_tool_warned=yes ;; 7204esac 7205 OTOOL64=$ac_ct_OTOOL64 7206 fi 7207else 7208 OTOOL64="$ac_cv_prog_OTOOL64" 7209fi 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7238$as_echo_n "checking for -single_module linker flag... " >&6; } 7239if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7240 $as_echo_n "(cached) " >&6 7241else 7242 lt_cv_apple_cc_single_mod=no 7243 if test -z "${LT_MULTI_MODULE}"; then 7244 # By default we will add the -single_module flag. You can override 7245 # by either setting the environment variable LT_MULTI_MODULE 7246 # non-empty at configure time, or by adding -multi_module to the 7247 # link flags. 7248 rm -rf libconftest.dylib* 7249 echo "int foo(void){return 1;}" > conftest.c 7250 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7251-dynamiclib -Wl,-single_module conftest.c" >&5 7252 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7253 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7254 _lt_result=$? 7255 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7256 lt_cv_apple_cc_single_mod=yes 7257 else 7258 cat conftest.err >&5 7259 fi 7260 rm -rf libconftest.dylib* 7261 rm -f conftest.* 7262 fi 7263fi 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7265$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7267$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7268if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 lt_cv_ld_exported_symbols_list=no 7272 save_LDFLAGS=$LDFLAGS 7273 echo "_main" > conftest.sym 7274 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7276/* end confdefs.h. */ 7277 7278int 7279main () 7280{ 7281 7282 ; 7283 return 0; 7284} 7285_ACEOF 7286if ac_fn_c_try_link "$LINENO"; then : 7287 lt_cv_ld_exported_symbols_list=yes 7288else 7289 lt_cv_ld_exported_symbols_list=no 7290fi 7291rm -f core conftest.err conftest.$ac_objext \ 7292 conftest$ac_exeext conftest.$ac_ext 7293 LDFLAGS="$save_LDFLAGS" 7294 7295fi 7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7297$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7299$as_echo_n "checking for -force_load linker flag... " >&6; } 7300if test "${lt_cv_ld_force_load+set}" = set; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 lt_cv_ld_force_load=no 7304 cat > conftest.c << _LT_EOF 7305int forced_loaded() { return 2;} 7306_LT_EOF 7307 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7308 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7309 echo "$AR cru libconftest.a conftest.o" >&5 7310 $AR cru libconftest.a conftest.o 2>&5 7311 cat > conftest.c << _LT_EOF 7312int main() { return 0;} 7313_LT_EOF 7314 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7315 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7316 _lt_result=$? 7317 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7318 lt_cv_ld_force_load=yes 7319 else 7320 cat conftest.err >&5 7321 fi 7322 rm -f conftest.err libconftest.a conftest conftest.c 7323 rm -rf conftest.dSYM 7324 7325fi 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7327$as_echo "$lt_cv_ld_force_load" >&6; } 7328 case $host_os in 7329 rhapsody* | darwin1.[012]) 7330 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7331 darwin1.*) 7332 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7333 darwin*) # darwin 5.x on 7334 # if running on 10.5 or later, the deployment target defaults 7335 # to the OS version, if on x86, and 10.4, the deployment 7336 # target defaults to 10.4. Don't you love it? 7337 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7338 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7339 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7340 10.[012]*) 7341 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7342 10.*) 7343 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7344 esac 7345 ;; 7346 esac 7347 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7348 _lt_dar_single_mod='$single_module' 7349 fi 7350 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7351 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7352 else 7353 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7354 fi 7355 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7356 _lt_dsymutil='~$DSYMUTIL $lib || :' 7357 else 7358 _lt_dsymutil= 7359 fi 7360 ;; 7361 esac 7362 7363ac_ext=c 7364ac_cpp='$CPP $CPPFLAGS' 7365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7367ac_compiler_gnu=$ac_cv_c_compiler_gnu 7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7369$as_echo_n "checking how to run the C preprocessor... " >&6; } 7370# On Suns, sometimes $CPP names a directory. 7371if test -n "$CPP" && test -d "$CPP"; then 7372 CPP= 7373fi 7374if test -z "$CPP"; then 7375 if test "${ac_cv_prog_CPP+set}" = set; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 # Double quotes because CPP needs to be expanded 7379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7380 do 7381 ac_preproc_ok=false 7382for ac_c_preproc_warn_flag in '' yes 7383do 7384 # Use a header file that comes with gcc, so configuring glibc 7385 # with a fresh cross-compiler works. 7386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7387 # <limits.h> exists even on freestanding compilers. 7388 # On the NeXT, cc -E runs the code through the compiler's parser, 7389 # not just through cpp. "Syntax error" is here to catch this case. 7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7391/* end confdefs.h. */ 7392#ifdef __STDC__ 7393# include <limits.h> 7394#else 7395# include <assert.h> 7396#endif 7397 Syntax error 7398_ACEOF 7399if ac_fn_c_try_cpp "$LINENO"; then : 7400 7401else 7402 # Broken: fails on valid input. 7403continue 7404fi 7405rm -f conftest.err conftest.$ac_ext 7406 7407 # OK, works on sane cases. Now check whether nonexistent headers 7408 # can be detected and how. 7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7410/* end confdefs.h. */ 7411#include <ac_nonexistent.h> 7412_ACEOF 7413if ac_fn_c_try_cpp "$LINENO"; then : 7414 # Broken: success on invalid input. 7415continue 7416else 7417 # Passes both tests. 7418ac_preproc_ok=: 7419break 7420fi 7421rm -f conftest.err conftest.$ac_ext 7422 7423done 7424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7425rm -f conftest.err conftest.$ac_ext 7426if $ac_preproc_ok; then : 7427 break 7428fi 7429 7430 done 7431 ac_cv_prog_CPP=$CPP 7432 7433fi 7434 CPP=$ac_cv_prog_CPP 7435else 7436 ac_cv_prog_CPP=$CPP 7437fi 7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7439$as_echo "$CPP" >&6; } 7440ac_preproc_ok=false 7441for ac_c_preproc_warn_flag in '' yes 7442do 7443 # Use a header file that comes with gcc, so configuring glibc 7444 # with a fresh cross-compiler works. 7445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7446 # <limits.h> exists even on freestanding compilers. 7447 # On the NeXT, cc -E runs the code through the compiler's parser, 7448 # not just through cpp. "Syntax error" is here to catch this case. 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451#ifdef __STDC__ 7452# include <limits.h> 7453#else 7454# include <assert.h> 7455#endif 7456 Syntax error 7457_ACEOF 7458if ac_fn_c_try_cpp "$LINENO"; then : 7459 7460else 7461 # Broken: fails on valid input. 7462continue 7463fi 7464rm -f conftest.err conftest.$ac_ext 7465 7466 # OK, works on sane cases. Now check whether nonexistent headers 7467 # can be detected and how. 7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7469/* end confdefs.h. */ 7470#include <ac_nonexistent.h> 7471_ACEOF 7472if ac_fn_c_try_cpp "$LINENO"; then : 7473 # Broken: success on invalid input. 7474continue 7475else 7476 # Passes both tests. 7477ac_preproc_ok=: 7478break 7479fi 7480rm -f conftest.err conftest.$ac_ext 7481 7482done 7483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7484rm -f conftest.err conftest.$ac_ext 7485if $ac_preproc_ok; then : 7486 7487else 7488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7490as_fn_error "C preprocessor \"$CPP\" fails sanity check 7491See \`config.log' for more details." "$LINENO" 5; } 7492fi 7493 7494ac_ext=c 7495ac_cpp='$CPP $CPPFLAGS' 7496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7498ac_compiler_gnu=$ac_cv_c_compiler_gnu 7499 7500 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7502$as_echo_n "checking for ANSI C header files... " >&6; } 7503if test "${ac_cv_header_stdc+set}" = set; then : 7504 $as_echo_n "(cached) " >&6 7505else 7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507/* end confdefs.h. */ 7508#include <stdlib.h> 7509#include <stdarg.h> 7510#include <string.h> 7511#include <float.h> 7512 7513int 7514main () 7515{ 7516 7517 ; 7518 return 0; 7519} 7520_ACEOF 7521if ac_fn_c_try_compile "$LINENO"; then : 7522 ac_cv_header_stdc=yes 7523else 7524 ac_cv_header_stdc=no 7525fi 7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7527 7528if test $ac_cv_header_stdc = yes; then 7529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7531/* end confdefs.h. */ 7532#include <string.h> 7533 7534_ACEOF 7535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7536 $EGREP "memchr" >/dev/null 2>&1; then : 7537 7538else 7539 ac_cv_header_stdc=no 7540fi 7541rm -f conftest* 7542 7543fi 7544 7545if test $ac_cv_header_stdc = yes; then 7546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549#include <stdlib.h> 7550 7551_ACEOF 7552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7553 $EGREP "free" >/dev/null 2>&1; then : 7554 7555else 7556 ac_cv_header_stdc=no 7557fi 7558rm -f conftest* 7559 7560fi 7561 7562if test $ac_cv_header_stdc = yes; then 7563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7564 if test "$cross_compiling" = yes; then : 7565 : 7566else 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569#include <ctype.h> 7570#include <stdlib.h> 7571#if ((' ' & 0x0FF) == 0x020) 7572# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7573# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7574#else 7575# define ISLOWER(c) \ 7576 (('a' <= (c) && (c) <= 'i') \ 7577 || ('j' <= (c) && (c) <= 'r') \ 7578 || ('s' <= (c) && (c) <= 'z')) 7579# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7580#endif 7581 7582#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7583int 7584main () 7585{ 7586 int i; 7587 for (i = 0; i < 256; i++) 7588 if (XOR (islower (i), ISLOWER (i)) 7589 || toupper (i) != TOUPPER (i)) 7590 return 2; 7591 return 0; 7592} 7593_ACEOF 7594if ac_fn_c_try_run "$LINENO"; then : 7595 7596else 7597 ac_cv_header_stdc=no 7598fi 7599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7600 conftest.$ac_objext conftest.beam conftest.$ac_ext 7601fi 7602 7603fi 7604fi 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7606$as_echo "$ac_cv_header_stdc" >&6; } 7607if test $ac_cv_header_stdc = yes; then 7608 7609$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7610 7611fi 7612 7613# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7614for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7615 inttypes.h stdint.h unistd.h 7616do : 7617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7618ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7619" 7620eval as_val=\$$as_ac_Header 7621 if test "x$as_val" = x""yes; then : 7622 cat >>confdefs.h <<_ACEOF 7623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7624_ACEOF 7625 7626fi 7627 7628done 7629 7630 7631for ac_header in dlfcn.h 7632do : 7633 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7634" 7635if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7636 cat >>confdefs.h <<_ACEOF 7637#define HAVE_DLFCN_H 1 7638_ACEOF 7639 7640fi 7641 7642done 7643 7644 7645 7646 7647 7648 7649# Set options 7650 7651 7652 7653 7654 enable_win32_dll=no 7655 7656 7657 # Check whether --enable-shared was given. 7658if test "${enable_shared+set}" = set; then : 7659 enableval=$enable_shared; p=${PACKAGE-default} 7660 case $enableval in 7661 yes) enable_shared=yes ;; 7662 no) enable_shared=no ;; 7663 *) 7664 enable_shared=no 7665 # Look at the argument we got. We use all the common list separators. 7666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7667 for pkg in $enableval; do 7668 IFS="$lt_save_ifs" 7669 if test "X$pkg" = "X$p"; then 7670 enable_shared=yes 7671 fi 7672 done 7673 IFS="$lt_save_ifs" 7674 ;; 7675 esac 7676else 7677 enable_shared=yes 7678fi 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 # Check whether --enable-static was given. 7689if test "${enable_static+set}" = set; then : 7690 enableval=$enable_static; p=${PACKAGE-default} 7691 case $enableval in 7692 yes) enable_static=yes ;; 7693 no) enable_static=no ;; 7694 *) 7695 enable_static=no 7696 # Look at the argument we got. We use all the common list separators. 7697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7698 for pkg in $enableval; do 7699 IFS="$lt_save_ifs" 7700 if test "X$pkg" = "X$p"; then 7701 enable_static=yes 7702 fi 7703 done 7704 IFS="$lt_save_ifs" 7705 ;; 7706 esac 7707else 7708 enable_static=yes 7709fi 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720# Check whether --with-pic was given. 7721if test "${with_pic+set}" = set; then : 7722 withval=$with_pic; pic_mode="$withval" 7723else 7724 pic_mode=default 7725fi 7726 7727 7728test -z "$pic_mode" && pic_mode=default 7729 7730 7731 7732 7733 7734 7735 7736 # Check whether --enable-fast-install was given. 7737if test "${enable_fast_install+set}" = set; then : 7738 enableval=$enable_fast_install; p=${PACKAGE-default} 7739 case $enableval in 7740 yes) enable_fast_install=yes ;; 7741 no) enable_fast_install=no ;; 7742 *) 7743 enable_fast_install=no 7744 # Look at the argument we got. We use all the common list separators. 7745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7746 for pkg in $enableval; do 7747 IFS="$lt_save_ifs" 7748 if test "X$pkg" = "X$p"; then 7749 enable_fast_install=yes 7750 fi 7751 done 7752 IFS="$lt_save_ifs" 7753 ;; 7754 esac 7755else 7756 enable_fast_install=yes 7757fi 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769# This can be used to rebuild libtool when needed 7770LIBTOOL_DEPS="$ltmain" 7771 7772# Always use our own libtool. 7773LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800test -z "$LN_S" && LN_S="ln -s" 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815if test -n "${ZSH_VERSION+set}" ; then 7816 setopt NO_GLOB_SUBST 7817fi 7818 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7820$as_echo_n "checking for objdir... " >&6; } 7821if test "${lt_cv_objdir+set}" = set; then : 7822 $as_echo_n "(cached) " >&6 7823else 7824 rm -f .libs 2>/dev/null 7825mkdir .libs 2>/dev/null 7826if test -d .libs; then 7827 lt_cv_objdir=.libs 7828else 7829 # MS-DOS does not allow filenames that begin with a dot. 7830 lt_cv_objdir=_libs 7831fi 7832rmdir .libs 2>/dev/null 7833fi 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7835$as_echo "$lt_cv_objdir" >&6; } 7836objdir=$lt_cv_objdir 7837 7838 7839 7840 7841 7842cat >>confdefs.h <<_ACEOF 7843#define LT_OBJDIR "$lt_cv_objdir/" 7844_ACEOF 7845 7846 7847 7848 7849case $host_os in 7850aix3*) 7851 # AIX sometimes has problems with the GCC collect2 program. For some 7852 # reason, if we set the COLLECT_NAMES environment variable, the problems 7853 # vanish in a puff of smoke. 7854 if test "X${COLLECT_NAMES+set}" != Xset; then 7855 COLLECT_NAMES= 7856 export COLLECT_NAMES 7857 fi 7858 ;; 7859esac 7860 7861# Global variables: 7862ofile=libtool 7863can_build_shared=yes 7864 7865# All known linkers require a `.a' archive for static linking (except MSVC, 7866# which needs '.lib'). 7867libext=a 7868 7869with_gnu_ld="$lt_cv_prog_gnu_ld" 7870 7871old_CC="$CC" 7872old_CFLAGS="$CFLAGS" 7873 7874# Set sane defaults for various variables 7875test -z "$CC" && CC=cc 7876test -z "$LTCC" && LTCC=$CC 7877test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7878test -z "$LD" && LD=ld 7879test -z "$ac_objext" && ac_objext=o 7880 7881for cc_temp in $compiler""; do 7882 case $cc_temp in 7883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7885 \-*) ;; 7886 *) break;; 7887 esac 7888done 7889cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7890 7891 7892# Only perform the check for file, if the check method requires it 7893test -z "$MAGIC_CMD" && MAGIC_CMD=file 7894case $deplibs_check_method in 7895file_magic*) 7896 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7898$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7899if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7900 $as_echo_n "(cached) " >&6 7901else 7902 case $MAGIC_CMD in 7903[\\/*] | ?:[\\/]*) 7904 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7905 ;; 7906*) 7907 lt_save_MAGIC_CMD="$MAGIC_CMD" 7908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7909 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7910 for ac_dir in $ac_dummy; do 7911 IFS="$lt_save_ifs" 7912 test -z "$ac_dir" && ac_dir=. 7913 if test -f $ac_dir/${ac_tool_prefix}file; then 7914 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7915 if test -n "$file_magic_test_file"; then 7916 case $deplibs_check_method in 7917 "file_magic "*) 7918 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7920 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7921 $EGREP "$file_magic_regex" > /dev/null; then 7922 : 7923 else 7924 cat <<_LT_EOF 1>&2 7925 7926*** Warning: the command libtool uses to detect shared libraries, 7927*** $file_magic_cmd, produces output that libtool cannot recognize. 7928*** The result is that libtool may fail to recognize shared libraries 7929*** as such. This will affect the creation of libtool libraries that 7930*** depend on shared libraries, but programs linked with such libtool 7931*** libraries will work regardless of this problem. Nevertheless, you 7932*** may want to report the problem to your system manager and/or to 7933*** bug-libtool@gnu.org 7934 7935_LT_EOF 7936 fi ;; 7937 esac 7938 fi 7939 break 7940 fi 7941 done 7942 IFS="$lt_save_ifs" 7943 MAGIC_CMD="$lt_save_MAGIC_CMD" 7944 ;; 7945esac 7946fi 7947 7948MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7949if test -n "$MAGIC_CMD"; then 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7951$as_echo "$MAGIC_CMD" >&6; } 7952else 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7954$as_echo "no" >&6; } 7955fi 7956 7957 7958 7959 7960 7961if test -z "$lt_cv_path_MAGIC_CMD"; then 7962 if test -n "$ac_tool_prefix"; then 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7964$as_echo_n "checking for file... " >&6; } 7965if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7966 $as_echo_n "(cached) " >&6 7967else 7968 case $MAGIC_CMD in 7969[\\/*] | ?:[\\/]*) 7970 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7971 ;; 7972*) 7973 lt_save_MAGIC_CMD="$MAGIC_CMD" 7974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7975 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7976 for ac_dir in $ac_dummy; do 7977 IFS="$lt_save_ifs" 7978 test -z "$ac_dir" && ac_dir=. 7979 if test -f $ac_dir/file; then 7980 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7981 if test -n "$file_magic_test_file"; then 7982 case $deplibs_check_method in 7983 "file_magic "*) 7984 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7986 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7987 $EGREP "$file_magic_regex" > /dev/null; then 7988 : 7989 else 7990 cat <<_LT_EOF 1>&2 7991 7992*** Warning: the command libtool uses to detect shared libraries, 7993*** $file_magic_cmd, produces output that libtool cannot recognize. 7994*** The result is that libtool may fail to recognize shared libraries 7995*** as such. This will affect the creation of libtool libraries that 7996*** depend on shared libraries, but programs linked with such libtool 7997*** libraries will work regardless of this problem. Nevertheless, you 7998*** may want to report the problem to your system manager and/or to 7999*** bug-libtool@gnu.org 8000 8001_LT_EOF 8002 fi ;; 8003 esac 8004 fi 8005 break 8006 fi 8007 done 8008 IFS="$lt_save_ifs" 8009 MAGIC_CMD="$lt_save_MAGIC_CMD" 8010 ;; 8011esac 8012fi 8013 8014MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8015if test -n "$MAGIC_CMD"; then 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8017$as_echo "$MAGIC_CMD" >&6; } 8018else 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8020$as_echo "no" >&6; } 8021fi 8022 8023 8024 else 8025 MAGIC_CMD=: 8026 fi 8027fi 8028 8029 fi 8030 ;; 8031esac 8032 8033# Use C for the default configuration in the libtool script 8034 8035lt_save_CC="$CC" 8036ac_ext=c 8037ac_cpp='$CPP $CPPFLAGS' 8038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8040ac_compiler_gnu=$ac_cv_c_compiler_gnu 8041 8042 8043# Source file extension for C test sources. 8044ac_ext=c 8045 8046# Object file extension for compiled C test sources. 8047objext=o 8048objext=$objext 8049 8050# Code to be used in simple compile tests 8051lt_simple_compile_test_code="int some_variable = 0;" 8052 8053# Code to be used in simple link tests 8054lt_simple_link_test_code='int main(){return(0);}' 8055 8056 8057 8058 8059 8060 8061 8062# If no C compiler was specified, use CC. 8063LTCC=${LTCC-"$CC"} 8064 8065# If no C compiler flags were specified, use CFLAGS. 8066LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8067 8068# Allow CC to be a program name with arguments. 8069compiler=$CC 8070 8071# Save the default compiler, since it gets overwritten when the other 8072# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8073compiler_DEFAULT=$CC 8074 8075# save warnings/boilerplate of simple test code 8076ac_outfile=conftest.$ac_objext 8077echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8078eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8079_lt_compiler_boilerplate=`cat conftest.err` 8080$RM conftest* 8081 8082ac_outfile=conftest.$ac_objext 8083echo "$lt_simple_link_test_code" >conftest.$ac_ext 8084eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8085_lt_linker_boilerplate=`cat conftest.err` 8086$RM -r conftest* 8087 8088 8089## CAVEAT EMPTOR: 8090## There is no encapsulation within the following macros, do not change 8091## the running order or otherwise move them around unless you know exactly 8092## what you are doing... 8093if test -n "$compiler"; then 8094 8095lt_prog_compiler_no_builtin_flag= 8096 8097if test "$GCC" = yes; then 8098 case $cc_basename in 8099 nvcc*) 8100 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8101 *) 8102 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8103 esac 8104 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8106$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8107if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 lt_cv_prog_compiler_rtti_exceptions=no 8111 ac_outfile=conftest.$ac_objext 8112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8113 lt_compiler_flag="-fno-rtti -fno-exceptions" 8114 # Insert the option either (1) after the last *FLAGS variable, or 8115 # (2) before a word containing "conftest.", or (3) at the end. 8116 # Note that $ac_compile itself does not contain backslashes and begins 8117 # with a dollar sign (not a hyphen), so the echo should work correctly. 8118 # The option is referenced via a variable to avoid confusing sed. 8119 lt_compile=`echo "$ac_compile" | $SED \ 8120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8122 -e 's:$: $lt_compiler_flag:'` 8123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8124 (eval "$lt_compile" 2>conftest.err) 8125 ac_status=$? 8126 cat conftest.err >&5 8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8128 if (exit $ac_status) && test -s "$ac_outfile"; then 8129 # The compiler can only warn and ignore the option if not recognized 8130 # So say no if there are warnings other than the usual output. 8131 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8134 lt_cv_prog_compiler_rtti_exceptions=yes 8135 fi 8136 fi 8137 $RM conftest* 8138 8139fi 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8141$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8142 8143if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8144 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8145else 8146 : 8147fi 8148 8149fi 8150 8151 8152 8153 8154 8155 8156 lt_prog_compiler_wl= 8157lt_prog_compiler_pic= 8158lt_prog_compiler_static= 8159 8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8161$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8162 8163 if test "$GCC" = yes; then 8164 lt_prog_compiler_wl='-Wl,' 8165 lt_prog_compiler_static='-static' 8166 8167 case $host_os in 8168 aix*) 8169 # All AIX code is PIC. 8170 if test "$host_cpu" = ia64; then 8171 # AIX 5 now supports IA64 processor 8172 lt_prog_compiler_static='-Bstatic' 8173 fi 8174 lt_prog_compiler_pic='-fPIC' 8175 ;; 8176 8177 amigaos*) 8178 case $host_cpu in 8179 powerpc) 8180 # see comment about AmigaOS4 .so support 8181 lt_prog_compiler_pic='-fPIC' 8182 ;; 8183 m68k) 8184 # FIXME: we need at least 68020 code to build shared libraries, but 8185 # adding the `-m68020' flag to GCC prevents building anything better, 8186 # like `-m68040'. 8187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8188 ;; 8189 esac 8190 ;; 8191 8192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8193 # PIC is the default for these OSes. 8194 ;; 8195 8196 mingw* | cygwin* | pw32* | os2* | cegcc*) 8197 # This hack is so that the source file can tell whether it is being 8198 # built for inclusion in a dll (and should export symbols for example). 8199 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8200 # (--disable-auto-import) libraries 8201 lt_prog_compiler_pic='-DDLL_EXPORT' 8202 ;; 8203 8204 darwin* | rhapsody*) 8205 # PIC is the default on this platform 8206 # Common symbols not allowed in MH_DYLIB files 8207 lt_prog_compiler_pic='-fno-common' 8208 ;; 8209 8210 haiku*) 8211 # PIC is the default for Haiku. 8212 # The "-static" flag exists, but is broken. 8213 lt_prog_compiler_static= 8214 ;; 8215 8216 hpux*) 8217 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8218 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8219 # sets the default TLS model and affects inlining. 8220 case $host_cpu in 8221 hppa*64*) 8222 # +Z the default 8223 ;; 8224 *) 8225 lt_prog_compiler_pic='-fPIC' 8226 ;; 8227 esac 8228 ;; 8229 8230 interix[3-9]*) 8231 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8232 # Instead, we relocate shared libraries at runtime. 8233 ;; 8234 8235 msdosdjgpp*) 8236 # Just because we use GCC doesn't mean we suddenly get shared libraries 8237 # on systems that don't support them. 8238 lt_prog_compiler_can_build_shared=no 8239 enable_shared=no 8240 ;; 8241 8242 *nto* | *qnx*) 8243 # QNX uses GNU C++, but need to define -shared option too, otherwise 8244 # it will coredump. 8245 lt_prog_compiler_pic='-fPIC -shared' 8246 ;; 8247 8248 sysv4*MP*) 8249 if test -d /usr/nec; then 8250 lt_prog_compiler_pic=-Kconform_pic 8251 fi 8252 ;; 8253 8254 *) 8255 lt_prog_compiler_pic='-fPIC' 8256 ;; 8257 esac 8258 8259 case $cc_basename in 8260 nvcc*) # Cuda Compiler Driver 2.2 8261 lt_prog_compiler_wl='-Xlinker ' 8262 lt_prog_compiler_pic='-Xcompiler -fPIC' 8263 ;; 8264 esac 8265 else 8266 # PORTME Check for flag to pass linker flags through the system compiler. 8267 case $host_os in 8268 aix*) 8269 lt_prog_compiler_wl='-Wl,' 8270 if test "$host_cpu" = ia64; then 8271 # AIX 5 now supports IA64 processor 8272 lt_prog_compiler_static='-Bstatic' 8273 else 8274 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8275 fi 8276 ;; 8277 8278 mingw* | cygwin* | pw32* | os2* | cegcc*) 8279 # This hack is so that the source file can tell whether it is being 8280 # built for inclusion in a dll (and should export symbols for example). 8281 lt_prog_compiler_pic='-DDLL_EXPORT' 8282 ;; 8283 8284 hpux9* | hpux10* | hpux11*) 8285 lt_prog_compiler_wl='-Wl,' 8286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8287 # not for PA HP-UX. 8288 case $host_cpu in 8289 hppa*64*|ia64*) 8290 # +Z the default 8291 ;; 8292 *) 8293 lt_prog_compiler_pic='+Z' 8294 ;; 8295 esac 8296 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8297 lt_prog_compiler_static='${wl}-a ${wl}archive' 8298 ;; 8299 8300 irix5* | irix6* | nonstopux*) 8301 lt_prog_compiler_wl='-Wl,' 8302 # PIC (with -KPIC) is the default. 8303 lt_prog_compiler_static='-non_shared' 8304 ;; 8305 8306 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8307 case $cc_basename in 8308 # old Intel for x86_64 which still supported -KPIC. 8309 ecc*) 8310 lt_prog_compiler_wl='-Wl,' 8311 lt_prog_compiler_pic='-KPIC' 8312 lt_prog_compiler_static='-static' 8313 ;; 8314 # icc used to be incompatible with GCC. 8315 # ICC 10 doesn't accept -KPIC any more. 8316 icc* | ifort*) 8317 lt_prog_compiler_wl='-Wl,' 8318 lt_prog_compiler_pic='-fPIC' 8319 lt_prog_compiler_static='-static' 8320 ;; 8321 # Lahey Fortran 8.1. 8322 lf95*) 8323 lt_prog_compiler_wl='-Wl,' 8324 lt_prog_compiler_pic='--shared' 8325 lt_prog_compiler_static='--static' 8326 ;; 8327 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8328 # Portland Group compilers (*not* the Pentium gcc compiler, 8329 # which looks to be a dead project) 8330 lt_prog_compiler_wl='-Wl,' 8331 lt_prog_compiler_pic='-fpic' 8332 lt_prog_compiler_static='-Bstatic' 8333 ;; 8334 ccc*) 8335 lt_prog_compiler_wl='-Wl,' 8336 # All Alpha code is PIC. 8337 lt_prog_compiler_static='-non_shared' 8338 ;; 8339 xl* | bgxl* | bgf* | mpixl*) 8340 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8341 lt_prog_compiler_wl='-Wl,' 8342 lt_prog_compiler_pic='-qpic' 8343 lt_prog_compiler_static='-qstaticlink' 8344 ;; 8345 *) 8346 case `$CC -V 2>&1 | sed 5q` in 8347 *Sun\ F* | *Sun*Fortran*) 8348 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8349 lt_prog_compiler_pic='-KPIC' 8350 lt_prog_compiler_static='-Bstatic' 8351 lt_prog_compiler_wl='' 8352 ;; 8353 *Sun\ C*) 8354 # Sun C 5.9 8355 lt_prog_compiler_pic='-KPIC' 8356 lt_prog_compiler_static='-Bstatic' 8357 lt_prog_compiler_wl='-Wl,' 8358 ;; 8359 esac 8360 ;; 8361 esac 8362 ;; 8363 8364 newsos6) 8365 lt_prog_compiler_pic='-KPIC' 8366 lt_prog_compiler_static='-Bstatic' 8367 ;; 8368 8369 *nto* | *qnx*) 8370 # QNX uses GNU C++, but need to define -shared option too, otherwise 8371 # it will coredump. 8372 lt_prog_compiler_pic='-fPIC -shared' 8373 ;; 8374 8375 osf3* | osf4* | osf5*) 8376 lt_prog_compiler_wl='-Wl,' 8377 # All OSF/1 code is PIC. 8378 lt_prog_compiler_static='-non_shared' 8379 ;; 8380 8381 rdos*) 8382 lt_prog_compiler_static='-non_shared' 8383 ;; 8384 8385 solaris*) 8386 lt_prog_compiler_pic='-KPIC' 8387 lt_prog_compiler_static='-Bstatic' 8388 case $cc_basename in 8389 f77* | f90* | f95*) 8390 lt_prog_compiler_wl='-Qoption ld ';; 8391 *) 8392 lt_prog_compiler_wl='-Wl,';; 8393 esac 8394 ;; 8395 8396 sunos4*) 8397 lt_prog_compiler_wl='-Qoption ld ' 8398 lt_prog_compiler_pic='-PIC' 8399 lt_prog_compiler_static='-Bstatic' 8400 ;; 8401 8402 sysv4 | sysv4.2uw2* | sysv4.3*) 8403 lt_prog_compiler_wl='-Wl,' 8404 lt_prog_compiler_pic='-KPIC' 8405 lt_prog_compiler_static='-Bstatic' 8406 ;; 8407 8408 sysv4*MP*) 8409 if test -d /usr/nec ;then 8410 lt_prog_compiler_pic='-Kconform_pic' 8411 lt_prog_compiler_static='-Bstatic' 8412 fi 8413 ;; 8414 8415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8416 lt_prog_compiler_wl='-Wl,' 8417 lt_prog_compiler_pic='-KPIC' 8418 lt_prog_compiler_static='-Bstatic' 8419 ;; 8420 8421 unicos*) 8422 lt_prog_compiler_wl='-Wl,' 8423 lt_prog_compiler_can_build_shared=no 8424 ;; 8425 8426 uts4*) 8427 lt_prog_compiler_pic='-pic' 8428 lt_prog_compiler_static='-Bstatic' 8429 ;; 8430 8431 *) 8432 lt_prog_compiler_can_build_shared=no 8433 ;; 8434 esac 8435 fi 8436 8437case $host_os in 8438 # For platforms which do not support PIC, -DPIC is meaningless: 8439 *djgpp*) 8440 lt_prog_compiler_pic= 8441 ;; 8442 *) 8443 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8444 ;; 8445esac 8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8447$as_echo "$lt_prog_compiler_pic" >&6; } 8448 8449 8450 8451 8452 8453 8454# 8455# Check to make sure the PIC flag actually works. 8456# 8457if test -n "$lt_prog_compiler_pic"; then 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8459$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8460if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 lt_cv_prog_compiler_pic_works=no 8464 ac_outfile=conftest.$ac_objext 8465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8466 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8467 # Insert the option either (1) after the last *FLAGS variable, or 8468 # (2) before a word containing "conftest.", or (3) at the end. 8469 # Note that $ac_compile itself does not contain backslashes and begins 8470 # with a dollar sign (not a hyphen), so the echo should work correctly. 8471 # The option is referenced via a variable to avoid confusing sed. 8472 lt_compile=`echo "$ac_compile" | $SED \ 8473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8475 -e 's:$: $lt_compiler_flag:'` 8476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8477 (eval "$lt_compile" 2>conftest.err) 8478 ac_status=$? 8479 cat conftest.err >&5 8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8481 if (exit $ac_status) && test -s "$ac_outfile"; then 8482 # The compiler can only warn and ignore the option if not recognized 8483 # So say no if there are warnings other than the usual output. 8484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8487 lt_cv_prog_compiler_pic_works=yes 8488 fi 8489 fi 8490 $RM conftest* 8491 8492fi 8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8494$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8495 8496if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8497 case $lt_prog_compiler_pic in 8498 "" | " "*) ;; 8499 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8500 esac 8501else 8502 lt_prog_compiler_pic= 8503 lt_prog_compiler_can_build_shared=no 8504fi 8505 8506fi 8507 8508 8509 8510 8511 8512 8513# 8514# Check to make sure the static flag actually works. 8515# 8516wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8518$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8519if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8520 $as_echo_n "(cached) " >&6 8521else 8522 lt_cv_prog_compiler_static_works=no 8523 save_LDFLAGS="$LDFLAGS" 8524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8525 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8527 # The linker can only warn and ignore the option if not recognized 8528 # So say no if there are warnings 8529 if test -s conftest.err; then 8530 # Append any errors to the config.log. 8531 cat conftest.err 1>&5 8532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8534 if diff conftest.exp conftest.er2 >/dev/null; then 8535 lt_cv_prog_compiler_static_works=yes 8536 fi 8537 else 8538 lt_cv_prog_compiler_static_works=yes 8539 fi 8540 fi 8541 $RM -r conftest* 8542 LDFLAGS="$save_LDFLAGS" 8543 8544fi 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8546$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8547 8548if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8549 : 8550else 8551 lt_prog_compiler_static= 8552fi 8553 8554 8555 8556 8557 8558 8559 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8561$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8562if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8563 $as_echo_n "(cached) " >&6 8564else 8565 lt_cv_prog_compiler_c_o=no 8566 $RM -r conftest 2>/dev/null 8567 mkdir conftest 8568 cd conftest 8569 mkdir out 8570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8571 8572 lt_compiler_flag="-o out/conftest2.$ac_objext" 8573 # Insert the option either (1) after the last *FLAGS variable, or 8574 # (2) before a word containing "conftest.", or (3) at the end. 8575 # Note that $ac_compile itself does not contain backslashes and begins 8576 # with a dollar sign (not a hyphen), so the echo should work correctly. 8577 lt_compile=`echo "$ac_compile" | $SED \ 8578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8580 -e 's:$: $lt_compiler_flag:'` 8581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8582 (eval "$lt_compile" 2>out/conftest.err) 8583 ac_status=$? 8584 cat out/conftest.err >&5 8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8586 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8587 then 8588 # The compiler can only warn and ignore the option if not recognized 8589 # So say no if there are warnings 8590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8593 lt_cv_prog_compiler_c_o=yes 8594 fi 8595 fi 8596 chmod u+w . 2>&5 8597 $RM conftest* 8598 # SGI C++ compiler will create directory out/ii_files/ for 8599 # template instantiation 8600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8601 $RM out/* && rmdir out 8602 cd .. 8603 $RM -r conftest 8604 $RM conftest* 8605 8606fi 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8608$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8609 8610 8611 8612 8613 8614 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8616$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8617if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8618 $as_echo_n "(cached) " >&6 8619else 8620 lt_cv_prog_compiler_c_o=no 8621 $RM -r conftest 2>/dev/null 8622 mkdir conftest 8623 cd conftest 8624 mkdir out 8625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8626 8627 lt_compiler_flag="-o out/conftest2.$ac_objext" 8628 # Insert the option either (1) after the last *FLAGS variable, or 8629 # (2) before a word containing "conftest.", or (3) at the end. 8630 # Note that $ac_compile itself does not contain backslashes and begins 8631 # with a dollar sign (not a hyphen), so the echo should work correctly. 8632 lt_compile=`echo "$ac_compile" | $SED \ 8633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8635 -e 's:$: $lt_compiler_flag:'` 8636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8637 (eval "$lt_compile" 2>out/conftest.err) 8638 ac_status=$? 8639 cat out/conftest.err >&5 8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8641 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8642 then 8643 # The compiler can only warn and ignore the option if not recognized 8644 # So say no if there are warnings 8645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8648 lt_cv_prog_compiler_c_o=yes 8649 fi 8650 fi 8651 chmod u+w . 2>&5 8652 $RM conftest* 8653 # SGI C++ compiler will create directory out/ii_files/ for 8654 # template instantiation 8655 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8656 $RM out/* && rmdir out 8657 cd .. 8658 $RM -r conftest 8659 $RM conftest* 8660 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8663$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8664 8665 8666 8667 8668hard_links="nottested" 8669if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8670 # do not overwrite the value of need_locks provided by the user 8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8672$as_echo_n "checking if we can lock with hard links... " >&6; } 8673 hard_links=yes 8674 $RM conftest* 8675 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8676 touch conftest.a 8677 ln conftest.a conftest.b 2>&5 || hard_links=no 8678 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8680$as_echo "$hard_links" >&6; } 8681 if test "$hard_links" = no; then 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8683$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8684 need_locks=warn 8685 fi 8686else 8687 need_locks=no 8688fi 8689 8690 8691 8692 8693 8694 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8696$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8697 8698 runpath_var= 8699 allow_undefined_flag= 8700 always_export_symbols=no 8701 archive_cmds= 8702 archive_expsym_cmds= 8703 compiler_needs_object=no 8704 enable_shared_with_static_runtimes=no 8705 export_dynamic_flag_spec= 8706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8707 hardcode_automatic=no 8708 hardcode_direct=no 8709 hardcode_direct_absolute=no 8710 hardcode_libdir_flag_spec= 8711 hardcode_libdir_flag_spec_ld= 8712 hardcode_libdir_separator= 8713 hardcode_minus_L=no 8714 hardcode_shlibpath_var=unsupported 8715 inherit_rpath=no 8716 link_all_deplibs=unknown 8717 module_cmds= 8718 module_expsym_cmds= 8719 old_archive_from_new_cmds= 8720 old_archive_from_expsyms_cmds= 8721 thread_safe_flag_spec= 8722 whole_archive_flag_spec= 8723 # include_expsyms should be a list of space-separated symbols to be *always* 8724 # included in the symbol list 8725 include_expsyms= 8726 # exclude_expsyms can be an extended regexp of symbols to exclude 8727 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8729 # as well as any symbol that contains `d'. 8730 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8732 # platforms (ab)use it in PIC code, but their linkers get confused if 8733 # the symbol is explicitly referenced. Since portable code cannot 8734 # rely on this symbol name, it's probably fine to never include it in 8735 # preloaded symbol tables. 8736 # Exclude shared library initialization/finalization symbols. 8737 extract_expsyms_cmds= 8738 8739 case $host_os in 8740 cygwin* | mingw* | pw32* | cegcc*) 8741 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8742 # When not using gcc, we currently assume that we are using 8743 # Microsoft Visual C++. 8744 if test "$GCC" != yes; then 8745 with_gnu_ld=no 8746 fi 8747 ;; 8748 interix*) 8749 # we just hope/assume this is gcc and not c89 (= MSVC++) 8750 with_gnu_ld=yes 8751 ;; 8752 openbsd*) 8753 with_gnu_ld=no 8754 ;; 8755 esac 8756 8757 ld_shlibs=yes 8758 8759 # On some targets, GNU ld is compatible enough with the native linker 8760 # that we're better off using the native interface for both. 8761 lt_use_gnu_ld_interface=no 8762 if test "$with_gnu_ld" = yes; then 8763 case $host_os in 8764 aix*) 8765 # The AIX port of GNU ld has always aspired to compatibility 8766 # with the native linker. However, as the warning in the GNU ld 8767 # block says, versions before 2.19.5* couldn't really create working 8768 # shared libraries, regardless of the interface used. 8769 case `$LD -v 2>&1` in 8770 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8771 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8772 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8773 *) 8774 lt_use_gnu_ld_interface=yes 8775 ;; 8776 esac 8777 ;; 8778 *) 8779 lt_use_gnu_ld_interface=yes 8780 ;; 8781 esac 8782 fi 8783 8784 if test "$lt_use_gnu_ld_interface" = yes; then 8785 # If archive_cmds runs LD, not CC, wlarc should be empty 8786 wlarc='${wl}' 8787 8788 # Set some defaults for GNU ld with shared library support. These 8789 # are reset later if shared libraries are not supported. Putting them 8790 # here allows them to be overridden if necessary. 8791 runpath_var=LD_RUN_PATH 8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8793 export_dynamic_flag_spec='${wl}--export-dynamic' 8794 # ancient GNU ld didn't support --whole-archive et. al. 8795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8797 else 8798 whole_archive_flag_spec= 8799 fi 8800 supports_anon_versioning=no 8801 case `$LD -v 2>&1` in 8802 *GNU\ gold*) supports_anon_versioning=yes ;; 8803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8806 *\ 2.11.*) ;; # other 2.11 versions 8807 *) supports_anon_versioning=yes ;; 8808 esac 8809 8810 # See if GNU ld supports shared libraries. 8811 case $host_os in 8812 aix[3-9]*) 8813 # On AIX/PPC, the GNU linker is very broken 8814 if test "$host_cpu" != ia64; then 8815 ld_shlibs=no 8816 cat <<_LT_EOF 1>&2 8817 8818*** Warning: the GNU linker, at least up to release 2.19, is reported 8819*** to be unable to reliably create shared libraries on AIX. 8820*** Therefore, libtool is disabling shared libraries support. If you 8821*** really care for shared libraries, you may want to install binutils 8822*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8823*** You will then need to restart the configuration process. 8824 8825_LT_EOF 8826 fi 8827 ;; 8828 8829 amigaos*) 8830 case $host_cpu in 8831 powerpc) 8832 # see comment about AmigaOS4 .so support 8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8834 archive_expsym_cmds='' 8835 ;; 8836 m68k) 8837 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)' 8838 hardcode_libdir_flag_spec='-L$libdir' 8839 hardcode_minus_L=yes 8840 ;; 8841 esac 8842 ;; 8843 8844 beos*) 8845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8846 allow_undefined_flag=unsupported 8847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8848 # support --undefined. This deserves some investigation. FIXME 8849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8850 else 8851 ld_shlibs=no 8852 fi 8853 ;; 8854 8855 cygwin* | mingw* | pw32* | cegcc*) 8856 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8857 # as there is no search path for DLLs. 8858 hardcode_libdir_flag_spec='-L$libdir' 8859 export_dynamic_flag_spec='${wl}--export-all-symbols' 8860 allow_undefined_flag=unsupported 8861 always_export_symbols=no 8862 enable_shared_with_static_runtimes=yes 8863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8864 8865 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8867 # If the export-symbols file already is a .def file (1st line 8868 # is EXPORTS), use it as is; otherwise, prepend... 8869 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8870 cp $export_symbols $output_objdir/$soname.def; 8871 else 8872 echo EXPORTS > $output_objdir/$soname.def; 8873 cat $export_symbols >> $output_objdir/$soname.def; 8874 fi~ 8875 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8876 else 8877 ld_shlibs=no 8878 fi 8879 ;; 8880 8881 haiku*) 8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8883 link_all_deplibs=yes 8884 ;; 8885 8886 interix[3-9]*) 8887 hardcode_direct=no 8888 hardcode_shlibpath_var=no 8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8890 export_dynamic_flag_spec='${wl}-E' 8891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8892 # Instead, shared libraries are loaded at an image base (0x10000000 by 8893 # default) and relocated if they conflict, which is a slow very memory 8894 # consuming and fragmenting process. To avoid this, we pick a random, 8895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8896 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8898 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8899 ;; 8900 8901 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8902 tmp_diet=no 8903 if test "$host_os" = linux-dietlibc; then 8904 case $cc_basename in 8905 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8906 esac 8907 fi 8908 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8909 && test "$tmp_diet" = no 8910 then 8911 tmp_addflag= 8912 tmp_sharedflag='-shared' 8913 case $cc_basename,$host_cpu in 8914 pgcc*) # Portland Group C compiler 8915 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8916 tmp_addflag=' $pic_flag' 8917 ;; 8918 pgf77* | pgf90* | pgf95* | pgfortran*) 8919 # Portland Group f77 and f90 compilers 8920 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8921 tmp_addflag=' $pic_flag -Mnomain' ;; 8922 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8923 tmp_addflag=' -i_dynamic' ;; 8924 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8925 tmp_addflag=' -i_dynamic -nofor_main' ;; 8926 ifc* | ifort*) # Intel Fortran compiler 8927 tmp_addflag=' -nofor_main' ;; 8928 lf95*) # Lahey Fortran 8.1 8929 whole_archive_flag_spec= 8930 tmp_sharedflag='--shared' ;; 8931 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8932 tmp_sharedflag='-qmkshrobj' 8933 tmp_addflag= ;; 8934 nvcc*) # Cuda Compiler Driver 2.2 8935 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8936 compiler_needs_object=yes 8937 ;; 8938 esac 8939 case `$CC -V 2>&1 | sed 5q` in 8940 *Sun\ C*) # Sun C 5.9 8941 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8942 compiler_needs_object=yes 8943 tmp_sharedflag='-G' ;; 8944 *Sun\ F*) # Sun Fortran 8.3 8945 tmp_sharedflag='-G' ;; 8946 esac 8947 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8948 8949 if test "x$supports_anon_versioning" = xyes; then 8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8952 echo "local: *; };" >> $output_objdir/$libname.ver~ 8953 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8954 fi 8955 8956 case $cc_basename in 8957 xlf* | bgf* | bgxlf* | mpixlf*) 8958 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8959 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8960 hardcode_libdir_flag_spec= 8961 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8962 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8963 if test "x$supports_anon_versioning" = xyes; then 8964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8966 echo "local: *; };" >> $output_objdir/$libname.ver~ 8967 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8968 fi 8969 ;; 8970 esac 8971 else 8972 ld_shlibs=no 8973 fi 8974 ;; 8975 8976 netbsd*) 8977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8979 wlarc= 8980 else 8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8983 fi 8984 ;; 8985 8986 solaris*) 8987 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8988 ld_shlibs=no 8989 cat <<_LT_EOF 1>&2 8990 8991*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8992*** create shared libraries on Solaris systems. Therefore, libtool 8993*** is disabling shared libraries support. We urge you to upgrade GNU 8994*** binutils to release 2.9.1 or newer. Another option is to modify 8995*** your PATH or compiler configuration so that the native linker is 8996*** used, and then restart. 8997 8998_LT_EOF 8999 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9002 else 9003 ld_shlibs=no 9004 fi 9005 ;; 9006 9007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9008 case `$LD -v 2>&1` in 9009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9010 ld_shlibs=no 9011 cat <<_LT_EOF 1>&2 9012 9013*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9014*** reliably create shared libraries on SCO systems. Therefore, libtool 9015*** is disabling shared libraries support. We urge you to upgrade GNU 9016*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9017*** your PATH or compiler configuration so that the native linker is 9018*** used, and then restart. 9019 9020_LT_EOF 9021 ;; 9022 *) 9023 # For security reasons, it is highly recommended that you always 9024 # use absolute paths for naming shared libraries, and exclude the 9025 # DT_RUNPATH tag from executables and libraries. But doing so 9026 # requires that you compile everything twice, which is a pain. 9027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9031 else 9032 ld_shlibs=no 9033 fi 9034 ;; 9035 esac 9036 ;; 9037 9038 sunos4*) 9039 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9040 wlarc= 9041 hardcode_direct=yes 9042 hardcode_shlibpath_var=no 9043 ;; 9044 9045 *) 9046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9049 else 9050 ld_shlibs=no 9051 fi 9052 ;; 9053 esac 9054 9055 if test "$ld_shlibs" = no; then 9056 runpath_var= 9057 hardcode_libdir_flag_spec= 9058 export_dynamic_flag_spec= 9059 whole_archive_flag_spec= 9060 fi 9061 else 9062 # PORTME fill in a description of your system's linker (not GNU ld) 9063 case $host_os in 9064 aix3*) 9065 allow_undefined_flag=unsupported 9066 always_export_symbols=yes 9067 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' 9068 # Note: this linker hardcodes the directories in LIBPATH if there 9069 # are no directories specified by -L. 9070 hardcode_minus_L=yes 9071 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9072 # Neither direct hardcoding nor static linking is supported with a 9073 # broken collect2. 9074 hardcode_direct=unsupported 9075 fi 9076 ;; 9077 9078 aix[4-9]*) 9079 if test "$host_cpu" = ia64; then 9080 # On IA64, the linker does run time linking by default, so we don't 9081 # have to do anything special. 9082 aix_use_runtimelinking=no 9083 exp_sym_flag='-Bexport' 9084 no_entry_flag="" 9085 else 9086 # If we're using GNU nm, then we don't want the "-C" option. 9087 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9088 # Also, AIX nm treats weak defined symbols like other global 9089 # defined symbols, whereas GNU nm marks them as "W". 9090 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9091 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9092 else 9093 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' 9094 fi 9095 aix_use_runtimelinking=no 9096 9097 # Test if we are trying to use run time linking or normal 9098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9099 # need to do runtime linking. 9100 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9101 for ld_flag in $LDFLAGS; do 9102 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9103 aix_use_runtimelinking=yes 9104 break 9105 fi 9106 done 9107 ;; 9108 esac 9109 9110 exp_sym_flag='-bexport' 9111 no_entry_flag='-bnoentry' 9112 fi 9113 9114 # When large executables or shared objects are built, AIX ld can 9115 # have problems creating the table of contents. If linking a library 9116 # or program results in "error TOC overflow" add -mminimal-toc to 9117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9119 9120 archive_cmds='' 9121 hardcode_direct=yes 9122 hardcode_direct_absolute=yes 9123 hardcode_libdir_separator=':' 9124 link_all_deplibs=yes 9125 file_list_spec='${wl}-f,' 9126 9127 if test "$GCC" = yes; then 9128 case $host_os in aix4.[012]|aix4.[012].*) 9129 # We only want to do this on AIX 4.2 and lower, the check 9130 # below for broken collect2 doesn't work under 4.3+ 9131 collect2name=`${CC} -print-prog-name=collect2` 9132 if test -f "$collect2name" && 9133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9134 then 9135 # We have reworked collect2 9136 : 9137 else 9138 # We have old collect2 9139 hardcode_direct=unsupported 9140 # It fails to find uninstalled libraries when the uninstalled 9141 # path is not listed in the libpath. Setting hardcode_minus_L 9142 # to unsupported forces relinking 9143 hardcode_minus_L=yes 9144 hardcode_libdir_flag_spec='-L$libdir' 9145 hardcode_libdir_separator= 9146 fi 9147 ;; 9148 esac 9149 shared_flag='-shared' 9150 if test "$aix_use_runtimelinking" = yes; then 9151 shared_flag="$shared_flag "'${wl}-G' 9152 fi 9153 else 9154 # not using gcc 9155 if test "$host_cpu" = ia64; then 9156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9157 # chokes on -Wl,-G. The following line is correct: 9158 shared_flag='-G' 9159 else 9160 if test "$aix_use_runtimelinking" = yes; then 9161 shared_flag='${wl}-G' 9162 else 9163 shared_flag='${wl}-bM:SRE' 9164 fi 9165 fi 9166 fi 9167 9168 export_dynamic_flag_spec='${wl}-bexpall' 9169 # It seems that -bexpall does not export symbols beginning with 9170 # underscore (_), so it is better to generate a list of symbols to export. 9171 always_export_symbols=yes 9172 if test "$aix_use_runtimelinking" = yes; then 9173 # Warning - without using the other runtime loading flags (-brtl), 9174 # -berok will link without error, but may produce a broken library. 9175 allow_undefined_flag='-berok' 9176 # Determine the default libpath from the value encoded in an 9177 # empty executable. 9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9179/* end confdefs.h. */ 9180 9181int 9182main () 9183{ 9184 9185 ; 9186 return 0; 9187} 9188_ACEOF 9189if ac_fn_c_try_link "$LINENO"; then : 9190 9191lt_aix_libpath_sed=' 9192 /Import File Strings/,/^$/ { 9193 /^0/ { 9194 s/^0 *\(.*\)$/\1/ 9195 p 9196 } 9197 }' 9198aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9199# Check for a 64-bit object if we didn't find anything. 9200if test -z "$aix_libpath"; then 9201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9202fi 9203fi 9204rm -f core conftest.err conftest.$ac_objext \ 9205 conftest$ac_exeext conftest.$ac_ext 9206if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9207 9208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9209 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9210 else 9211 if test "$host_cpu" = ia64; then 9212 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9213 allow_undefined_flag="-z nodefs" 9214 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9215 else 9216 # Determine the default libpath from the value encoded in an 9217 # empty executable. 9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9219/* end confdefs.h. */ 9220 9221int 9222main () 9223{ 9224 9225 ; 9226 return 0; 9227} 9228_ACEOF 9229if ac_fn_c_try_link "$LINENO"; then : 9230 9231lt_aix_libpath_sed=' 9232 /Import File Strings/,/^$/ { 9233 /^0/ { 9234 s/^0 *\(.*\)$/\1/ 9235 p 9236 } 9237 }' 9238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9239# Check for a 64-bit object if we didn't find anything. 9240if test -z "$aix_libpath"; then 9241 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9242fi 9243fi 9244rm -f core conftest.err conftest.$ac_objext \ 9245 conftest$ac_exeext conftest.$ac_ext 9246if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9247 9248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9249 # Warning - without using the other run time loading flags, 9250 # -berok will link without error, but may produce a broken library. 9251 no_undefined_flag=' ${wl}-bernotok' 9252 allow_undefined_flag=' ${wl}-berok' 9253 if test "$with_gnu_ld" = yes; then 9254 # We only use this code for GNU lds that support --whole-archive. 9255 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9256 else 9257 # Exported symbols can be pulled into shared objects from archives 9258 whole_archive_flag_spec='$convenience' 9259 fi 9260 archive_cmds_need_lc=yes 9261 # This is similar to how AIX traditionally builds its shared libraries. 9262 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9263 fi 9264 fi 9265 ;; 9266 9267 amigaos*) 9268 case $host_cpu in 9269 powerpc) 9270 # see comment about AmigaOS4 .so support 9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9272 archive_expsym_cmds='' 9273 ;; 9274 m68k) 9275 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)' 9276 hardcode_libdir_flag_spec='-L$libdir' 9277 hardcode_minus_L=yes 9278 ;; 9279 esac 9280 ;; 9281 9282 bsdi[45]*) 9283 export_dynamic_flag_spec=-rdynamic 9284 ;; 9285 9286 cygwin* | mingw* | pw32* | cegcc*) 9287 # When not using gcc, we currently assume that we are using 9288 # Microsoft Visual C++. 9289 # hardcode_libdir_flag_spec is actually meaningless, as there is 9290 # no search path for DLLs. 9291 hardcode_libdir_flag_spec=' ' 9292 allow_undefined_flag=unsupported 9293 # Tell ltmain to make .lib files, not .a files. 9294 libext=lib 9295 # Tell ltmain to make .dll files, not .so files. 9296 shrext_cmds=".dll" 9297 # FIXME: Setting linknames here is a bad hack. 9298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9299 # The linker will automatically build a .lib file if we build a DLL. 9300 old_archive_from_new_cmds='true' 9301 # FIXME: Should let the user specify the lib program. 9302 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9303 fix_srcfile_path='`cygpath -w "$srcfile"`' 9304 enable_shared_with_static_runtimes=yes 9305 ;; 9306 9307 darwin* | rhapsody*) 9308 9309 9310 archive_cmds_need_lc=no 9311 hardcode_direct=no 9312 hardcode_automatic=yes 9313 hardcode_shlibpath_var=unsupported 9314 if test "$lt_cv_ld_force_load" = "yes"; then 9315 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9316 else 9317 whole_archive_flag_spec='' 9318 fi 9319 link_all_deplibs=yes 9320 allow_undefined_flag="$_lt_dar_allow_undefined" 9321 case $cc_basename in 9322 ifort*) _lt_dar_can_shared=yes ;; 9323 *) _lt_dar_can_shared=$GCC ;; 9324 esac 9325 if test "$_lt_dar_can_shared" = "yes"; then 9326 output_verbose_link_cmd=func_echo_all 9327 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9328 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9329 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9330 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9331 9332 else 9333 ld_shlibs=no 9334 fi 9335 9336 ;; 9337 9338 dgux*) 9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9340 hardcode_libdir_flag_spec='-L$libdir' 9341 hardcode_shlibpath_var=no 9342 ;; 9343 9344 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9345 # support. Future versions do this automatically, but an explicit c++rt0.o 9346 # does not break anything, and helps significantly (at the cost of a little 9347 # extra space). 9348 freebsd2.2*) 9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9350 hardcode_libdir_flag_spec='-R$libdir' 9351 hardcode_direct=yes 9352 hardcode_shlibpath_var=no 9353 ;; 9354 9355 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9356 freebsd2.*) 9357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9358 hardcode_direct=yes 9359 hardcode_minus_L=yes 9360 hardcode_shlibpath_var=no 9361 ;; 9362 9363 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9364 freebsd* | dragonfly*) 9365 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9366 hardcode_libdir_flag_spec='-R$libdir' 9367 hardcode_direct=yes 9368 hardcode_shlibpath_var=no 9369 ;; 9370 9371 hpux9*) 9372 if test "$GCC" = yes; then 9373 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' 9374 else 9375 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' 9376 fi 9377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9378 hardcode_libdir_separator=: 9379 hardcode_direct=yes 9380 9381 # hardcode_minus_L: Not really in the search PATH, 9382 # but as the default location of the library. 9383 hardcode_minus_L=yes 9384 export_dynamic_flag_spec='${wl}-E' 9385 ;; 9386 9387 hpux10*) 9388 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9389 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9390 else 9391 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9392 fi 9393 if test "$with_gnu_ld" = no; then 9394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9395 hardcode_libdir_flag_spec_ld='+b $libdir' 9396 hardcode_libdir_separator=: 9397 hardcode_direct=yes 9398 hardcode_direct_absolute=yes 9399 export_dynamic_flag_spec='${wl}-E' 9400 # hardcode_minus_L: Not really in the search PATH, 9401 # but as the default location of the library. 9402 hardcode_minus_L=yes 9403 fi 9404 ;; 9405 9406 hpux11*) 9407 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9408 case $host_cpu in 9409 hppa*64*) 9410 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9411 ;; 9412 ia64*) 9413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9414 ;; 9415 *) 9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9417 ;; 9418 esac 9419 else 9420 case $host_cpu in 9421 hppa*64*) 9422 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9423 ;; 9424 ia64*) 9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9426 ;; 9427 *) 9428 9429 # Older versions of the 11.00 compiler do not understand -b yet 9430 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9432$as_echo_n "checking if $CC understands -b... " >&6; } 9433if test "${lt_cv_prog_compiler__b+set}" = set; then : 9434 $as_echo_n "(cached) " >&6 9435else 9436 lt_cv_prog_compiler__b=no 9437 save_LDFLAGS="$LDFLAGS" 9438 LDFLAGS="$LDFLAGS -b" 9439 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9441 # The linker can only warn and ignore the option if not recognized 9442 # So say no if there are warnings 9443 if test -s conftest.err; then 9444 # Append any errors to the config.log. 9445 cat conftest.err 1>&5 9446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9448 if diff conftest.exp conftest.er2 >/dev/null; then 9449 lt_cv_prog_compiler__b=yes 9450 fi 9451 else 9452 lt_cv_prog_compiler__b=yes 9453 fi 9454 fi 9455 $RM -r conftest* 9456 LDFLAGS="$save_LDFLAGS" 9457 9458fi 9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9460$as_echo "$lt_cv_prog_compiler__b" >&6; } 9461 9462if test x"$lt_cv_prog_compiler__b" = xyes; then 9463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9464else 9465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9466fi 9467 9468 ;; 9469 esac 9470 fi 9471 if test "$with_gnu_ld" = no; then 9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9473 hardcode_libdir_separator=: 9474 9475 case $host_cpu in 9476 hppa*64*|ia64*) 9477 hardcode_direct=no 9478 hardcode_shlibpath_var=no 9479 ;; 9480 *) 9481 hardcode_direct=yes 9482 hardcode_direct_absolute=yes 9483 export_dynamic_flag_spec='${wl}-E' 9484 9485 # hardcode_minus_L: Not really in the search PATH, 9486 # but as the default location of the library. 9487 hardcode_minus_L=yes 9488 ;; 9489 esac 9490 fi 9491 ;; 9492 9493 irix5* | irix6* | nonstopux*) 9494 if test "$GCC" = yes; then 9495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9496 # Try to use the -exported_symbol ld option, if it does not 9497 # work, assume that -exports_file does not work either and 9498 # implicitly export all symbols. 9499 save_LDFLAGS="$LDFLAGS" 9500 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9502/* end confdefs.h. */ 9503int foo(void) {} 9504_ACEOF 9505if ac_fn_c_try_link "$LINENO"; then : 9506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9507 9508fi 9509rm -f core conftest.err conftest.$ac_objext \ 9510 conftest$ac_exeext conftest.$ac_ext 9511 LDFLAGS="$save_LDFLAGS" 9512 else 9513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9514 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9515 fi 9516 archive_cmds_need_lc='no' 9517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9518 hardcode_libdir_separator=: 9519 inherit_rpath=yes 9520 link_all_deplibs=yes 9521 ;; 9522 9523 netbsd*) 9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9526 else 9527 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9528 fi 9529 hardcode_libdir_flag_spec='-R$libdir' 9530 hardcode_direct=yes 9531 hardcode_shlibpath_var=no 9532 ;; 9533 9534 newsos6) 9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9536 hardcode_direct=yes 9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9538 hardcode_libdir_separator=: 9539 hardcode_shlibpath_var=no 9540 ;; 9541 9542 *nto* | *qnx*) 9543 ;; 9544 9545 openbsd*) 9546 if test -f /usr/libexec/ld.so; then 9547 hardcode_direct=yes 9548 hardcode_shlibpath_var=no 9549 hardcode_direct_absolute=yes 9550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9552 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9554 export_dynamic_flag_spec='${wl}-E' 9555 else 9556 case $host_os in 9557 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9559 hardcode_libdir_flag_spec='-R$libdir' 9560 ;; 9561 *) 9562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9564 ;; 9565 esac 9566 fi 9567 else 9568 ld_shlibs=no 9569 fi 9570 ;; 9571 9572 os2*) 9573 hardcode_libdir_flag_spec='-L$libdir' 9574 hardcode_minus_L=yes 9575 allow_undefined_flag=unsupported 9576 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' 9577 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9578 ;; 9579 9580 osf3*) 9581 if test "$GCC" = yes; then 9582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9583 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9584 else 9585 allow_undefined_flag=' -expect_unresolved \*' 9586 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9587 fi 9588 archive_cmds_need_lc='no' 9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9590 hardcode_libdir_separator=: 9591 ;; 9592 9593 osf4* | osf5*) # as osf3* with the addition of -msym flag 9594 if test "$GCC" = yes; then 9595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9596 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9598 else 9599 allow_undefined_flag=' -expect_unresolved \*' 9600 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9601 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9602 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9603 9604 # Both c and cxx compiler support -rpath directly 9605 hardcode_libdir_flag_spec='-rpath $libdir' 9606 fi 9607 archive_cmds_need_lc='no' 9608 hardcode_libdir_separator=: 9609 ;; 9610 9611 solaris*) 9612 no_undefined_flag=' -z defs' 9613 if test "$GCC" = yes; then 9614 wlarc='${wl}' 9615 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9617 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9618 else 9619 case `$CC -V 2>&1` in 9620 *"Compilers 5.0"*) 9621 wlarc='' 9622 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9624 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9625 ;; 9626 *) 9627 wlarc='${wl}' 9628 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9630 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9631 ;; 9632 esac 9633 fi 9634 hardcode_libdir_flag_spec='-R$libdir' 9635 hardcode_shlibpath_var=no 9636 case $host_os in 9637 solaris2.[0-5] | solaris2.[0-5].*) ;; 9638 *) 9639 # The compiler driver will combine and reorder linker options, 9640 # but understands `-z linker_flag'. GCC discards it without `$wl', 9641 # but is careful enough not to reorder. 9642 # Supported since Solaris 2.6 (maybe 2.5.1?) 9643 if test "$GCC" = yes; then 9644 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9645 else 9646 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9647 fi 9648 ;; 9649 esac 9650 link_all_deplibs=yes 9651 ;; 9652 9653 sunos4*) 9654 if test "x$host_vendor" = xsequent; then 9655 # Use $CC to link under sequent, because it throws in some extra .o 9656 # files that make .init and .fini sections work. 9657 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9658 else 9659 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9660 fi 9661 hardcode_libdir_flag_spec='-L$libdir' 9662 hardcode_direct=yes 9663 hardcode_minus_L=yes 9664 hardcode_shlibpath_var=no 9665 ;; 9666 9667 sysv4) 9668 case $host_vendor in 9669 sni) 9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9671 hardcode_direct=yes # is this really true??? 9672 ;; 9673 siemens) 9674 ## LD is ld it makes a PLAMLIB 9675 ## CC just makes a GrossModule. 9676 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9677 reload_cmds='$CC -r -o $output$reload_objs' 9678 hardcode_direct=no 9679 ;; 9680 motorola) 9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9682 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9683 ;; 9684 esac 9685 runpath_var='LD_RUN_PATH' 9686 hardcode_shlibpath_var=no 9687 ;; 9688 9689 sysv4.3*) 9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9691 hardcode_shlibpath_var=no 9692 export_dynamic_flag_spec='-Bexport' 9693 ;; 9694 9695 sysv4*MP*) 9696 if test -d /usr/nec; then 9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9698 hardcode_shlibpath_var=no 9699 runpath_var=LD_RUN_PATH 9700 hardcode_runpath_var=yes 9701 ld_shlibs=yes 9702 fi 9703 ;; 9704 9705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9706 no_undefined_flag='${wl}-z,text' 9707 archive_cmds_need_lc=no 9708 hardcode_shlibpath_var=no 9709 runpath_var='LD_RUN_PATH' 9710 9711 if test "$GCC" = yes; then 9712 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9714 else 9715 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9717 fi 9718 ;; 9719 9720 sysv5* | sco3.2v5* | sco5v6*) 9721 # Note: We can NOT use -z defs as we might desire, because we do not 9722 # link with -lc, and that would cause any symbols used from libc to 9723 # always be unresolved, which means just about no library would 9724 # ever link correctly. If we're not using GNU ld we use -z text 9725 # though, which does catch some bad symbols but isn't as heavy-handed 9726 # as -z defs. 9727 no_undefined_flag='${wl}-z,text' 9728 allow_undefined_flag='${wl}-z,nodefs' 9729 archive_cmds_need_lc=no 9730 hardcode_shlibpath_var=no 9731 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9732 hardcode_libdir_separator=':' 9733 link_all_deplibs=yes 9734 export_dynamic_flag_spec='${wl}-Bexport' 9735 runpath_var='LD_RUN_PATH' 9736 9737 if test "$GCC" = yes; then 9738 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9739 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9740 else 9741 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9742 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9743 fi 9744 ;; 9745 9746 uts4*) 9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9748 hardcode_libdir_flag_spec='-L$libdir' 9749 hardcode_shlibpath_var=no 9750 ;; 9751 9752 *) 9753 ld_shlibs=no 9754 ;; 9755 esac 9756 9757 if test x$host_vendor = xsni; then 9758 case $host in 9759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9760 export_dynamic_flag_spec='${wl}-Blargedynsym' 9761 ;; 9762 esac 9763 fi 9764 fi 9765 9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9767$as_echo "$ld_shlibs" >&6; } 9768test "$ld_shlibs" = no && can_build_shared=no 9769 9770with_gnu_ld=$with_gnu_ld 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786# 9787# Do we need to explicitly link libc? 9788# 9789case "x$archive_cmds_need_lc" in 9790x|xyes) 9791 # Assume -lc should be added 9792 archive_cmds_need_lc=yes 9793 9794 if test "$enable_shared" = yes && test "$GCC" = yes; then 9795 case $archive_cmds in 9796 *'~'*) 9797 # FIXME: we may have to deal with multi-command sequences. 9798 ;; 9799 '$CC '*) 9800 # Test whether the compiler implicitly links with -lc since on some 9801 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9802 # to ld, don't add -lc before -lgcc. 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9804$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9805if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9806 $as_echo_n "(cached) " >&6 9807else 9808 $RM conftest* 9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9810 9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9812 (eval $ac_compile) 2>&5 9813 ac_status=$? 9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9815 test $ac_status = 0; } 2>conftest.err; then 9816 soname=conftest 9817 lib=conftest 9818 libobjs=conftest.$ac_objext 9819 deplibs= 9820 wl=$lt_prog_compiler_wl 9821 pic_flag=$lt_prog_compiler_pic 9822 compiler_flags=-v 9823 linker_flags=-v 9824 verstring= 9825 output_objdir=. 9826 libname=conftest 9827 lt_save_allow_undefined_flag=$allow_undefined_flag 9828 allow_undefined_flag= 9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9830 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9831 ac_status=$? 9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9833 test $ac_status = 0; } 9834 then 9835 lt_cv_archive_cmds_need_lc=no 9836 else 9837 lt_cv_archive_cmds_need_lc=yes 9838 fi 9839 allow_undefined_flag=$lt_save_allow_undefined_flag 9840 else 9841 cat conftest.err 1>&5 9842 fi 9843 $RM conftest* 9844 9845fi 9846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9847$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9848 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9849 ;; 9850 esac 9851 fi 9852 ;; 9853esac 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10012$as_echo_n "checking dynamic linker characteristics... " >&6; } 10013 10014if test "$GCC" = yes; then 10015 case $host_os in 10016 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10017 *) lt_awk_arg="/^libraries:/" ;; 10018 esac 10019 case $host_os in 10020 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10021 *) lt_sed_strip_eq="s,=/,/,g" ;; 10022 esac 10023 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10024 case $lt_search_path_spec in 10025 *\;*) 10026 # if the path contains ";" then we assume it to be the separator 10027 # otherwise default to the standard path separator (i.e. ":") - it is 10028 # assumed that no part of a normal pathname contains ";" but that should 10029 # okay in the real world where ";" in dirpaths is itself problematic. 10030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10031 ;; 10032 *) 10033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10034 ;; 10035 esac 10036 # Ok, now we have the path, separated by spaces, we can step through it 10037 # and add multilib dir if necessary. 10038 lt_tmp_lt_search_path_spec= 10039 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10040 for lt_sys_path in $lt_search_path_spec; do 10041 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10043 else 10044 test -d "$lt_sys_path" && \ 10045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10046 fi 10047 done 10048 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10049BEGIN {RS=" "; FS="/|\n";} { 10050 lt_foo=""; 10051 lt_count=0; 10052 for (lt_i = NF; lt_i > 0; lt_i--) { 10053 if ($lt_i != "" && $lt_i != ".") { 10054 if ($lt_i == "..") { 10055 lt_count++; 10056 } else { 10057 if (lt_count == 0) { 10058 lt_foo="/" $lt_i lt_foo; 10059 } else { 10060 lt_count--; 10061 } 10062 } 10063 } 10064 } 10065 if (lt_foo != "") { lt_freq[lt_foo]++; } 10066 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10067}'` 10068 # AWK program above erroneously prepends '/' to C:/dos/paths 10069 # for these hosts. 10070 case $host_os in 10071 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10072 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10073 esac 10074 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10075else 10076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10077fi 10078library_names_spec= 10079libname_spec='lib$name' 10080soname_spec= 10081shrext_cmds=".so" 10082postinstall_cmds= 10083postuninstall_cmds= 10084finish_cmds= 10085finish_eval= 10086shlibpath_var= 10087shlibpath_overrides_runpath=unknown 10088version_type=none 10089dynamic_linker="$host_os ld.so" 10090sys_lib_dlsearch_path_spec="/lib /usr/lib" 10091need_lib_prefix=unknown 10092hardcode_into_libs=no 10093 10094# when you set need_version to no, make sure it does not cause -set_version 10095# flags to be left without arguments 10096need_version=unknown 10097 10098case $host_os in 10099aix3*) 10100 version_type=linux 10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10102 shlibpath_var=LIBPATH 10103 10104 # AIX 3 has no versioning support, so we append a major version to the name. 10105 soname_spec='${libname}${release}${shared_ext}$major' 10106 ;; 10107 10108aix[4-9]*) 10109 version_type=linux 10110 need_lib_prefix=no 10111 need_version=no 10112 hardcode_into_libs=yes 10113 if test "$host_cpu" = ia64; then 10114 # AIX 5 supports IA64 10115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10116 shlibpath_var=LD_LIBRARY_PATH 10117 else 10118 # With GCC up to 2.95.x, collect2 would create an import file 10119 # for dependence libraries. The import file would start with 10120 # the line `#! .'. This would cause the generated library to 10121 # depend on `.', always an invalid library. This was fixed in 10122 # development snapshots of GCC prior to 3.0. 10123 case $host_os in 10124 aix4 | aix4.[01] | aix4.[01].*) 10125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10126 echo ' yes ' 10127 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10128 : 10129 else 10130 can_build_shared=no 10131 fi 10132 ;; 10133 esac 10134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10135 # soname into executable. Probably we can add versioning support to 10136 # collect2, so additional links can be useful in future. 10137 if test "$aix_use_runtimelinking" = yes; then 10138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10139 # instead of lib<name>.a to let people know that these are not 10140 # typical AIX shared libraries. 10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10142 else 10143 # We preserve .a as extension for shared libraries through AIX4.2 10144 # and later when we are not doing run time linking. 10145 library_names_spec='${libname}${release}.a $libname.a' 10146 soname_spec='${libname}${release}${shared_ext}$major' 10147 fi 10148 shlibpath_var=LIBPATH 10149 fi 10150 ;; 10151 10152amigaos*) 10153 case $host_cpu in 10154 powerpc) 10155 # Since July 2007 AmigaOS4 officially supports .so libraries. 10156 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10158 ;; 10159 m68k) 10160 library_names_spec='$libname.ixlibrary $libname.a' 10161 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10162 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 10163 ;; 10164 esac 10165 ;; 10166 10167beos*) 10168 library_names_spec='${libname}${shared_ext}' 10169 dynamic_linker="$host_os ld.so" 10170 shlibpath_var=LIBRARY_PATH 10171 ;; 10172 10173bsdi[45]*) 10174 version_type=linux 10175 need_version=no 10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10177 soname_spec='${libname}${release}${shared_ext}$major' 10178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10179 shlibpath_var=LD_LIBRARY_PATH 10180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10182 # the default ld.so.conf also contains /usr/contrib/lib and 10183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10184 # libtool to hard-code these into programs 10185 ;; 10186 10187cygwin* | mingw* | pw32* | cegcc*) 10188 version_type=windows 10189 shrext_cmds=".dll" 10190 need_version=no 10191 need_lib_prefix=no 10192 10193 case $GCC,$host_os in 10194 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10195 library_names_spec='$libname.dll.a' 10196 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10197 postinstall_cmds='base_file=`basename \${file}`~ 10198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10199 dldir=$destdir/`dirname \$dlpath`~ 10200 test -d \$dldir || mkdir -p \$dldir~ 10201 $install_prog $dir/$dlname \$dldir/$dlname~ 10202 chmod a+x \$dldir/$dlname~ 10203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10205 fi' 10206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10207 dlpath=$dir/\$dldll~ 10208 $RM \$dlpath' 10209 shlibpath_overrides_runpath=yes 10210 10211 case $host_os in 10212 cygwin*) 10213 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10215 10216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10217 ;; 10218 mingw* | cegcc*) 10219 # MinGW DLLs use traditional 'lib' prefix 10220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10221 ;; 10222 pw32*) 10223 # pw32 DLLs use 'pw' prefix rather than 'lib' 10224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10225 ;; 10226 esac 10227 ;; 10228 10229 *) 10230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10231 ;; 10232 esac 10233 dynamic_linker='Win32 ld.exe' 10234 # FIXME: first we should search . and the directory the executable is in 10235 shlibpath_var=PATH 10236 ;; 10237 10238darwin* | rhapsody*) 10239 dynamic_linker="$host_os dyld" 10240 version_type=darwin 10241 need_lib_prefix=no 10242 need_version=no 10243 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10244 soname_spec='${libname}${release}${major}$shared_ext' 10245 shlibpath_overrides_runpath=yes 10246 shlibpath_var=DYLD_LIBRARY_PATH 10247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10248 10249 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10251 ;; 10252 10253dgux*) 10254 version_type=linux 10255 need_lib_prefix=no 10256 need_version=no 10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10258 soname_spec='${libname}${release}${shared_ext}$major' 10259 shlibpath_var=LD_LIBRARY_PATH 10260 ;; 10261 10262freebsd* | dragonfly*) 10263 # DragonFly does not have aout. When/if they implement a new 10264 # versioning mechanism, adjust this. 10265 if test -x /usr/bin/objformat; then 10266 objformat=`/usr/bin/objformat` 10267 else 10268 case $host_os in 10269 freebsd[23].*) objformat=aout ;; 10270 *) objformat=elf ;; 10271 esac 10272 fi 10273 version_type=freebsd-$objformat 10274 case $version_type in 10275 freebsd-elf*) 10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10277 need_version=no 10278 need_lib_prefix=no 10279 ;; 10280 freebsd-*) 10281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10282 need_version=yes 10283 ;; 10284 esac 10285 shlibpath_var=LD_LIBRARY_PATH 10286 case $host_os in 10287 freebsd2.*) 10288 shlibpath_overrides_runpath=yes 10289 ;; 10290 freebsd3.[01]* | freebsdelf3.[01]*) 10291 shlibpath_overrides_runpath=yes 10292 hardcode_into_libs=yes 10293 ;; 10294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10296 shlibpath_overrides_runpath=no 10297 hardcode_into_libs=yes 10298 ;; 10299 *) # from 4.6 on, and DragonFly 10300 shlibpath_overrides_runpath=yes 10301 hardcode_into_libs=yes 10302 ;; 10303 esac 10304 ;; 10305 10306gnu*) 10307 version_type=linux 10308 need_lib_prefix=no 10309 need_version=no 10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10311 soname_spec='${libname}${release}${shared_ext}$major' 10312 shlibpath_var=LD_LIBRARY_PATH 10313 hardcode_into_libs=yes 10314 ;; 10315 10316haiku*) 10317 version_type=linux 10318 need_lib_prefix=no 10319 need_version=no 10320 dynamic_linker="$host_os runtime_loader" 10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10322 soname_spec='${libname}${release}${shared_ext}$major' 10323 shlibpath_var=LIBRARY_PATH 10324 shlibpath_overrides_runpath=yes 10325 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10326 hardcode_into_libs=yes 10327 ;; 10328 10329hpux9* | hpux10* | hpux11*) 10330 # Give a soname corresponding to the major version so that dld.sl refuses to 10331 # link against other versions. 10332 version_type=sunos 10333 need_lib_prefix=no 10334 need_version=no 10335 case $host_cpu in 10336 ia64*) 10337 shrext_cmds='.so' 10338 hardcode_into_libs=yes 10339 dynamic_linker="$host_os dld.so" 10340 shlibpath_var=LD_LIBRARY_PATH 10341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10343 soname_spec='${libname}${release}${shared_ext}$major' 10344 if test "X$HPUX_IA64_MODE" = X32; then 10345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10346 else 10347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10348 fi 10349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10350 ;; 10351 hppa*64*) 10352 shrext_cmds='.sl' 10353 hardcode_into_libs=yes 10354 dynamic_linker="$host_os dld.sl" 10355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10358 soname_spec='${libname}${release}${shared_ext}$major' 10359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10361 ;; 10362 *) 10363 shrext_cmds='.sl' 10364 dynamic_linker="$host_os dld.sl" 10365 shlibpath_var=SHLIB_PATH 10366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10368 soname_spec='${libname}${release}${shared_ext}$major' 10369 ;; 10370 esac 10371 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10372 postinstall_cmds='chmod 555 $lib' 10373 # or fails outright, so override atomically: 10374 install_override_mode=555 10375 ;; 10376 10377interix[3-9]*) 10378 version_type=linux 10379 need_lib_prefix=no 10380 need_version=no 10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10382 soname_spec='${libname}${release}${shared_ext}$major' 10383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10384 shlibpath_var=LD_LIBRARY_PATH 10385 shlibpath_overrides_runpath=no 10386 hardcode_into_libs=yes 10387 ;; 10388 10389irix5* | irix6* | nonstopux*) 10390 case $host_os in 10391 nonstopux*) version_type=nonstopux ;; 10392 *) 10393 if test "$lt_cv_prog_gnu_ld" = yes; then 10394 version_type=linux 10395 else 10396 version_type=irix 10397 fi ;; 10398 esac 10399 need_lib_prefix=no 10400 need_version=no 10401 soname_spec='${libname}${release}${shared_ext}$major' 10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10403 case $host_os in 10404 irix5* | nonstopux*) 10405 libsuff= shlibsuff= 10406 ;; 10407 *) 10408 case $LD in # libtool.m4 will add one of these switches to LD 10409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10410 libsuff= shlibsuff= libmagic=32-bit;; 10411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10412 libsuff=32 shlibsuff=N32 libmagic=N32;; 10413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10414 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10415 *) libsuff= shlibsuff= libmagic=never-match;; 10416 esac 10417 ;; 10418 esac 10419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10420 shlibpath_overrides_runpath=no 10421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10423 hardcode_into_libs=yes 10424 ;; 10425 10426# No shared lib support for Linux oldld, aout, or coff. 10427linux*oldld* | linux*aout* | linux*coff*) 10428 dynamic_linker=no 10429 ;; 10430 10431# This must be Linux ELF. 10432linux* | k*bsd*-gnu | kopensolaris*-gnu) 10433 version_type=linux 10434 need_lib_prefix=no 10435 need_version=no 10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10437 soname_spec='${libname}${release}${shared_ext}$major' 10438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10439 shlibpath_var=LD_LIBRARY_PATH 10440 shlibpath_overrides_runpath=no 10441 10442 # Some binutils ld are patched to set DT_RUNPATH 10443 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10444 $as_echo_n "(cached) " >&6 10445else 10446 lt_cv_shlibpath_overrides_runpath=no 10447 save_LDFLAGS=$LDFLAGS 10448 save_libdir=$libdir 10449 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10450 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10452/* end confdefs.h. */ 10453 10454int 10455main () 10456{ 10457 10458 ; 10459 return 0; 10460} 10461_ACEOF 10462if ac_fn_c_try_link "$LINENO"; then : 10463 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10464 lt_cv_shlibpath_overrides_runpath=yes 10465fi 10466fi 10467rm -f core conftest.err conftest.$ac_objext \ 10468 conftest$ac_exeext conftest.$ac_ext 10469 LDFLAGS=$save_LDFLAGS 10470 libdir=$save_libdir 10471 10472fi 10473 10474 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10475 10476 # This implies no fast_install, which is unacceptable. 10477 # Some rework will be needed to allow for fast_install 10478 # before this can be enabled. 10479 hardcode_into_libs=yes 10480 10481 # Append ld.so.conf contents to the search path 10482 if test -f /etc/ld.so.conf; then 10483 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10485 fi 10486 10487 # We used to test for /lib/ld.so.1 and disable shared libraries on 10488 # powerpc, because MkLinux only supported shared libraries with the 10489 # GNU dynamic linker. Since this was broken with cross compilers, 10490 # most powerpc-linux boxes support dynamic linking these days and 10491 # people can always --disable-shared, the test was removed, and we 10492 # assume the GNU/Linux dynamic linker is in use. 10493 dynamic_linker='GNU/Linux ld.so' 10494 ;; 10495 10496netbsd*) 10497 version_type=sunos 10498 need_lib_prefix=no 10499 need_version=no 10500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10503 dynamic_linker='NetBSD (a.out) ld.so' 10504 else 10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10506 soname_spec='${libname}${release}${shared_ext}$major' 10507 dynamic_linker='NetBSD ld.elf_so' 10508 fi 10509 shlibpath_var=LD_LIBRARY_PATH 10510 shlibpath_overrides_runpath=yes 10511 hardcode_into_libs=yes 10512 ;; 10513 10514newsos6) 10515 version_type=linux 10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10517 shlibpath_var=LD_LIBRARY_PATH 10518 shlibpath_overrides_runpath=yes 10519 ;; 10520 10521*nto* | *qnx*) 10522 version_type=qnx 10523 need_lib_prefix=no 10524 need_version=no 10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10526 soname_spec='${libname}${release}${shared_ext}$major' 10527 shlibpath_var=LD_LIBRARY_PATH 10528 shlibpath_overrides_runpath=no 10529 hardcode_into_libs=yes 10530 dynamic_linker='ldqnx.so' 10531 ;; 10532 10533openbsd*) 10534 version_type=sunos 10535 sys_lib_dlsearch_path_spec="/usr/lib" 10536 need_lib_prefix=no 10537 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10538 case $host_os in 10539 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10540 *) need_version=no ;; 10541 esac 10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10544 shlibpath_var=LD_LIBRARY_PATH 10545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10546 case $host_os in 10547 openbsd2.[89] | openbsd2.[89].*) 10548 shlibpath_overrides_runpath=no 10549 ;; 10550 *) 10551 shlibpath_overrides_runpath=yes 10552 ;; 10553 esac 10554 else 10555 shlibpath_overrides_runpath=yes 10556 fi 10557 ;; 10558 10559os2*) 10560 libname_spec='$name' 10561 shrext_cmds=".dll" 10562 need_lib_prefix=no 10563 library_names_spec='$libname${shared_ext} $libname.a' 10564 dynamic_linker='OS/2 ld.exe' 10565 shlibpath_var=LIBPATH 10566 ;; 10567 10568osf3* | osf4* | osf5*) 10569 version_type=osf 10570 need_lib_prefix=no 10571 need_version=no 10572 soname_spec='${libname}${release}${shared_ext}$major' 10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10574 shlibpath_var=LD_LIBRARY_PATH 10575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10576 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10577 ;; 10578 10579rdos*) 10580 dynamic_linker=no 10581 ;; 10582 10583solaris*) 10584 version_type=linux 10585 need_lib_prefix=no 10586 need_version=no 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 shlibpath_var=LD_LIBRARY_PATH 10590 shlibpath_overrides_runpath=yes 10591 hardcode_into_libs=yes 10592 # ldd complains unless libraries are executable 10593 postinstall_cmds='chmod +x $lib' 10594 ;; 10595 10596sunos4*) 10597 version_type=sunos 10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10600 shlibpath_var=LD_LIBRARY_PATH 10601 shlibpath_overrides_runpath=yes 10602 if test "$with_gnu_ld" = yes; then 10603 need_lib_prefix=no 10604 fi 10605 need_version=yes 10606 ;; 10607 10608sysv4 | sysv4.3*) 10609 version_type=linux 10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10611 soname_spec='${libname}${release}${shared_ext}$major' 10612 shlibpath_var=LD_LIBRARY_PATH 10613 case $host_vendor in 10614 sni) 10615 shlibpath_overrides_runpath=no 10616 need_lib_prefix=no 10617 runpath_var=LD_RUN_PATH 10618 ;; 10619 siemens) 10620 need_lib_prefix=no 10621 ;; 10622 motorola) 10623 need_lib_prefix=no 10624 need_version=no 10625 shlibpath_overrides_runpath=no 10626 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10627 ;; 10628 esac 10629 ;; 10630 10631sysv4*MP*) 10632 if test -d /usr/nec ;then 10633 version_type=linux 10634 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10635 soname_spec='$libname${shared_ext}.$major' 10636 shlibpath_var=LD_LIBRARY_PATH 10637 fi 10638 ;; 10639 10640sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10641 version_type=freebsd-elf 10642 need_lib_prefix=no 10643 need_version=no 10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10645 soname_spec='${libname}${release}${shared_ext}$major' 10646 shlibpath_var=LD_LIBRARY_PATH 10647 shlibpath_overrides_runpath=yes 10648 hardcode_into_libs=yes 10649 if test "$with_gnu_ld" = yes; then 10650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10651 else 10652 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10653 case $host_os in 10654 sco3.2v5*) 10655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10656 ;; 10657 esac 10658 fi 10659 sys_lib_dlsearch_path_spec='/usr/lib' 10660 ;; 10661 10662tpf*) 10663 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10664 version_type=linux 10665 need_lib_prefix=no 10666 need_version=no 10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10668 shlibpath_var=LD_LIBRARY_PATH 10669 shlibpath_overrides_runpath=no 10670 hardcode_into_libs=yes 10671 ;; 10672 10673uts4*) 10674 version_type=linux 10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10676 soname_spec='${libname}${release}${shared_ext}$major' 10677 shlibpath_var=LD_LIBRARY_PATH 10678 ;; 10679 10680*) 10681 dynamic_linker=no 10682 ;; 10683esac 10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10685$as_echo "$dynamic_linker" >&6; } 10686test "$dynamic_linker" = no && can_build_shared=no 10687 10688variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10689if test "$GCC" = yes; then 10690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10691fi 10692 10693if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10694 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10695fi 10696if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10697 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10698fi 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10792$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10793hardcode_action= 10794if test -n "$hardcode_libdir_flag_spec" || 10795 test -n "$runpath_var" || 10796 test "X$hardcode_automatic" = "Xyes" ; then 10797 10798 # We can hardcode non-existent directories. 10799 if test "$hardcode_direct" != no && 10800 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10801 # have to relink, otherwise we might link with an installed library 10802 # when we should be linking with a yet-to-be-installed one 10803 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10804 test "$hardcode_minus_L" != no; then 10805 # Linking always hardcodes the temporary library directory. 10806 hardcode_action=relink 10807 else 10808 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10809 hardcode_action=immediate 10810 fi 10811else 10812 # We cannot hardcode anything, or else we can only hardcode existing 10813 # directories. 10814 hardcode_action=unsupported 10815fi 10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10817$as_echo "$hardcode_action" >&6; } 10818 10819if test "$hardcode_action" = relink || 10820 test "$inherit_rpath" = yes; then 10821 # Fast installation is not supported 10822 enable_fast_install=no 10823elif test "$shlibpath_overrides_runpath" = yes || 10824 test "$enable_shared" = no; then 10825 # Fast installation is not necessary 10826 enable_fast_install=needless 10827fi 10828 10829 10830 10831 10832 10833 10834 if test "x$enable_dlopen" != xyes; then 10835 enable_dlopen=unknown 10836 enable_dlopen_self=unknown 10837 enable_dlopen_self_static=unknown 10838else 10839 lt_cv_dlopen=no 10840 lt_cv_dlopen_libs= 10841 10842 case $host_os in 10843 beos*) 10844 lt_cv_dlopen="load_add_on" 10845 lt_cv_dlopen_libs= 10846 lt_cv_dlopen_self=yes 10847 ;; 10848 10849 mingw* | pw32* | cegcc*) 10850 lt_cv_dlopen="LoadLibrary" 10851 lt_cv_dlopen_libs= 10852 ;; 10853 10854 cygwin*) 10855 lt_cv_dlopen="dlopen" 10856 lt_cv_dlopen_libs= 10857 ;; 10858 10859 darwin*) 10860 # if libdl is installed we need to link against it 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10862$as_echo_n "checking for dlopen in -ldl... " >&6; } 10863if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10864 $as_echo_n "(cached) " >&6 10865else 10866 ac_check_lib_save_LIBS=$LIBS 10867LIBS="-ldl $LIBS" 10868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869/* end confdefs.h. */ 10870 10871/* Override any GCC internal prototype to avoid an error. 10872 Use char because int might match the return type of a GCC 10873 builtin and then its argument prototype would still apply. */ 10874#ifdef __cplusplus 10875extern "C" 10876#endif 10877char dlopen (); 10878int 10879main () 10880{ 10881return dlopen (); 10882 ; 10883 return 0; 10884} 10885_ACEOF 10886if ac_fn_c_try_link "$LINENO"; then : 10887 ac_cv_lib_dl_dlopen=yes 10888else 10889 ac_cv_lib_dl_dlopen=no 10890fi 10891rm -f core conftest.err conftest.$ac_objext \ 10892 conftest$ac_exeext conftest.$ac_ext 10893LIBS=$ac_check_lib_save_LIBS 10894fi 10895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10896$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10897if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10899else 10900 10901 lt_cv_dlopen="dyld" 10902 lt_cv_dlopen_libs= 10903 lt_cv_dlopen_self=yes 10904 10905fi 10906 10907 ;; 10908 10909 *) 10910 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10911if test "x$ac_cv_func_shl_load" = x""yes; then : 10912 lt_cv_dlopen="shl_load" 10913else 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10915$as_echo_n "checking for shl_load in -ldld... " >&6; } 10916if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10917 $as_echo_n "(cached) " >&6 10918else 10919 ac_check_lib_save_LIBS=$LIBS 10920LIBS="-ldld $LIBS" 10921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10922/* end confdefs.h. */ 10923 10924/* Override any GCC internal prototype to avoid an error. 10925 Use char because int might match the return type of a GCC 10926 builtin and then its argument prototype would still apply. */ 10927#ifdef __cplusplus 10928extern "C" 10929#endif 10930char shl_load (); 10931int 10932main () 10933{ 10934return shl_load (); 10935 ; 10936 return 0; 10937} 10938_ACEOF 10939if ac_fn_c_try_link "$LINENO"; then : 10940 ac_cv_lib_dld_shl_load=yes 10941else 10942 ac_cv_lib_dld_shl_load=no 10943fi 10944rm -f core conftest.err conftest.$ac_objext \ 10945 conftest$ac_exeext conftest.$ac_ext 10946LIBS=$ac_check_lib_save_LIBS 10947fi 10948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10949$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10950if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10951 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10952else 10953 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10954if test "x$ac_cv_func_dlopen" = x""yes; then : 10955 lt_cv_dlopen="dlopen" 10956else 10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10958$as_echo_n "checking for dlopen in -ldl... " >&6; } 10959if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10960 $as_echo_n "(cached) " >&6 10961else 10962 ac_check_lib_save_LIBS=$LIBS 10963LIBS="-ldl $LIBS" 10964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10965/* end confdefs.h. */ 10966 10967/* Override any GCC internal prototype to avoid an error. 10968 Use char because int might match the return type of a GCC 10969 builtin and then its argument prototype would still apply. */ 10970#ifdef __cplusplus 10971extern "C" 10972#endif 10973char dlopen (); 10974int 10975main () 10976{ 10977return dlopen (); 10978 ; 10979 return 0; 10980} 10981_ACEOF 10982if ac_fn_c_try_link "$LINENO"; then : 10983 ac_cv_lib_dl_dlopen=yes 10984else 10985 ac_cv_lib_dl_dlopen=no 10986fi 10987rm -f core conftest.err conftest.$ac_objext \ 10988 conftest$ac_exeext conftest.$ac_ext 10989LIBS=$ac_check_lib_save_LIBS 10990fi 10991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10992$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10993if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10995else 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10997$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10998if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10999 $as_echo_n "(cached) " >&6 11000else 11001 ac_check_lib_save_LIBS=$LIBS 11002LIBS="-lsvld $LIBS" 11003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11004/* end confdefs.h. */ 11005 11006/* Override any GCC internal prototype to avoid an error. 11007 Use char because int might match the return type of a GCC 11008 builtin and then its argument prototype would still apply. */ 11009#ifdef __cplusplus 11010extern "C" 11011#endif 11012char dlopen (); 11013int 11014main () 11015{ 11016return dlopen (); 11017 ; 11018 return 0; 11019} 11020_ACEOF 11021if ac_fn_c_try_link "$LINENO"; then : 11022 ac_cv_lib_svld_dlopen=yes 11023else 11024 ac_cv_lib_svld_dlopen=no 11025fi 11026rm -f core conftest.err conftest.$ac_objext \ 11027 conftest$ac_exeext conftest.$ac_ext 11028LIBS=$ac_check_lib_save_LIBS 11029fi 11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11031$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11032if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11034else 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11036$as_echo_n "checking for dld_link in -ldld... " >&6; } 11037if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11038 $as_echo_n "(cached) " >&6 11039else 11040 ac_check_lib_save_LIBS=$LIBS 11041LIBS="-ldld $LIBS" 11042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11043/* end confdefs.h. */ 11044 11045/* Override any GCC internal prototype to avoid an error. 11046 Use char because int might match the return type of a GCC 11047 builtin and then its argument prototype would still apply. */ 11048#ifdef __cplusplus 11049extern "C" 11050#endif 11051char dld_link (); 11052int 11053main () 11054{ 11055return dld_link (); 11056 ; 11057 return 0; 11058} 11059_ACEOF 11060if ac_fn_c_try_link "$LINENO"; then : 11061 ac_cv_lib_dld_dld_link=yes 11062else 11063 ac_cv_lib_dld_dld_link=no 11064fi 11065rm -f core conftest.err conftest.$ac_objext \ 11066 conftest$ac_exeext conftest.$ac_ext 11067LIBS=$ac_check_lib_save_LIBS 11068fi 11069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11070$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11071if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11072 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11073fi 11074 11075 11076fi 11077 11078 11079fi 11080 11081 11082fi 11083 11084 11085fi 11086 11087 11088fi 11089 11090 ;; 11091 esac 11092 11093 if test "x$lt_cv_dlopen" != xno; then 11094 enable_dlopen=yes 11095 else 11096 enable_dlopen=no 11097 fi 11098 11099 case $lt_cv_dlopen in 11100 dlopen) 11101 save_CPPFLAGS="$CPPFLAGS" 11102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11103 11104 save_LDFLAGS="$LDFLAGS" 11105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11106 11107 save_LIBS="$LIBS" 11108 LIBS="$lt_cv_dlopen_libs $LIBS" 11109 11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11111$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11112if test "${lt_cv_dlopen_self+set}" = set; then : 11113 $as_echo_n "(cached) " >&6 11114else 11115 if test "$cross_compiling" = yes; then : 11116 lt_cv_dlopen_self=cross 11117else 11118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11119 lt_status=$lt_dlunknown 11120 cat > conftest.$ac_ext <<_LT_EOF 11121#line 11121 "configure" 11122#include "confdefs.h" 11123 11124#if HAVE_DLFCN_H 11125#include <dlfcn.h> 11126#endif 11127 11128#include <stdio.h> 11129 11130#ifdef RTLD_GLOBAL 11131# define LT_DLGLOBAL RTLD_GLOBAL 11132#else 11133# ifdef DL_GLOBAL 11134# define LT_DLGLOBAL DL_GLOBAL 11135# else 11136# define LT_DLGLOBAL 0 11137# endif 11138#endif 11139 11140/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11141 find out it does not work in some platform. */ 11142#ifndef LT_DLLAZY_OR_NOW 11143# ifdef RTLD_LAZY 11144# define LT_DLLAZY_OR_NOW RTLD_LAZY 11145# else 11146# ifdef DL_LAZY 11147# define LT_DLLAZY_OR_NOW DL_LAZY 11148# else 11149# ifdef RTLD_NOW 11150# define LT_DLLAZY_OR_NOW RTLD_NOW 11151# else 11152# ifdef DL_NOW 11153# define LT_DLLAZY_OR_NOW DL_NOW 11154# else 11155# define LT_DLLAZY_OR_NOW 0 11156# endif 11157# endif 11158# endif 11159# endif 11160#endif 11161 11162/* When -fvisbility=hidden is used, assume the code has been annotated 11163 correspondingly for the symbols needed. */ 11164#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11165void fnord () __attribute__((visibility("default"))); 11166#endif 11167 11168void fnord () { int i=42; } 11169int main () 11170{ 11171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11172 int status = $lt_dlunknown; 11173 11174 if (self) 11175 { 11176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11177 else 11178 { 11179 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11180 else puts (dlerror ()); 11181 } 11182 /* dlclose (self); */ 11183 } 11184 else 11185 puts (dlerror ()); 11186 11187 return status; 11188} 11189_LT_EOF 11190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11191 (eval $ac_link) 2>&5 11192 ac_status=$? 11193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11194 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11195 (./conftest; exit; ) >&5 2>/dev/null 11196 lt_status=$? 11197 case x$lt_status in 11198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11201 esac 11202 else : 11203 # compilation failed 11204 lt_cv_dlopen_self=no 11205 fi 11206fi 11207rm -fr conftest* 11208 11209 11210fi 11211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11212$as_echo "$lt_cv_dlopen_self" >&6; } 11213 11214 if test "x$lt_cv_dlopen_self" = xyes; then 11215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11217$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11218if test "${lt_cv_dlopen_self_static+set}" = set; then : 11219 $as_echo_n "(cached) " >&6 11220else 11221 if test "$cross_compiling" = yes; then : 11222 lt_cv_dlopen_self_static=cross 11223else 11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11225 lt_status=$lt_dlunknown 11226 cat > conftest.$ac_ext <<_LT_EOF 11227#line 11227 "configure" 11228#include "confdefs.h" 11229 11230#if HAVE_DLFCN_H 11231#include <dlfcn.h> 11232#endif 11233 11234#include <stdio.h> 11235 11236#ifdef RTLD_GLOBAL 11237# define LT_DLGLOBAL RTLD_GLOBAL 11238#else 11239# ifdef DL_GLOBAL 11240# define LT_DLGLOBAL DL_GLOBAL 11241# else 11242# define LT_DLGLOBAL 0 11243# endif 11244#endif 11245 11246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11247 find out it does not work in some platform. */ 11248#ifndef LT_DLLAZY_OR_NOW 11249# ifdef RTLD_LAZY 11250# define LT_DLLAZY_OR_NOW RTLD_LAZY 11251# else 11252# ifdef DL_LAZY 11253# define LT_DLLAZY_OR_NOW DL_LAZY 11254# else 11255# ifdef RTLD_NOW 11256# define LT_DLLAZY_OR_NOW RTLD_NOW 11257# else 11258# ifdef DL_NOW 11259# define LT_DLLAZY_OR_NOW DL_NOW 11260# else 11261# define LT_DLLAZY_OR_NOW 0 11262# endif 11263# endif 11264# endif 11265# endif 11266#endif 11267 11268/* When -fvisbility=hidden is used, assume the code has been annotated 11269 correspondingly for the symbols needed. */ 11270#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11271void fnord () __attribute__((visibility("default"))); 11272#endif 11273 11274void fnord () { int i=42; } 11275int main () 11276{ 11277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11278 int status = $lt_dlunknown; 11279 11280 if (self) 11281 { 11282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11283 else 11284 { 11285 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11286 else puts (dlerror ()); 11287 } 11288 /* dlclose (self); */ 11289 } 11290 else 11291 puts (dlerror ()); 11292 11293 return status; 11294} 11295_LT_EOF 11296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11297 (eval $ac_link) 2>&5 11298 ac_status=$? 11299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11300 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11301 (./conftest; exit; ) >&5 2>/dev/null 11302 lt_status=$? 11303 case x$lt_status in 11304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11306 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11307 esac 11308 else : 11309 # compilation failed 11310 lt_cv_dlopen_self_static=no 11311 fi 11312fi 11313rm -fr conftest* 11314 11315 11316fi 11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11318$as_echo "$lt_cv_dlopen_self_static" >&6; } 11319 fi 11320 11321 CPPFLAGS="$save_CPPFLAGS" 11322 LDFLAGS="$save_LDFLAGS" 11323 LIBS="$save_LIBS" 11324 ;; 11325 esac 11326 11327 case $lt_cv_dlopen_self in 11328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11329 *) enable_dlopen_self=unknown ;; 11330 esac 11331 11332 case $lt_cv_dlopen_self_static in 11333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11334 *) enable_dlopen_self_static=unknown ;; 11335 esac 11336fi 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354striplib= 11355old_striplib= 11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11357$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11358if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11359 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11360 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11362$as_echo "yes" >&6; } 11363else 11364# FIXME - insert some real tests, host_os isn't really good enough 11365 case $host_os in 11366 darwin*) 11367 if test -n "$STRIP" ; then 11368 striplib="$STRIP -x" 11369 old_striplib="$STRIP -S" 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11371$as_echo "yes" >&6; } 11372 else 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11374$as_echo "no" >&6; } 11375 fi 11376 ;; 11377 *) 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11379$as_echo "no" >&6; } 11380 ;; 11381 esac 11382fi 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 # Report which library types will actually be built 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11397$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11399$as_echo "$can_build_shared" >&6; } 11400 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11402$as_echo_n "checking whether to build shared libraries... " >&6; } 11403 test "$can_build_shared" = "no" && enable_shared=no 11404 11405 # On AIX, shared libraries and static libraries use the same namespace, and 11406 # are all built from PIC. 11407 case $host_os in 11408 aix3*) 11409 test "$enable_shared" = yes && enable_static=no 11410 if test -n "$RANLIB"; then 11411 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11412 postinstall_cmds='$RANLIB $lib' 11413 fi 11414 ;; 11415 11416 aix[4-9]*) 11417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11418 test "$enable_shared" = yes && enable_static=no 11419 fi 11420 ;; 11421 esac 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11423$as_echo "$enable_shared" >&6; } 11424 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11426$as_echo_n "checking whether to build static libraries... " >&6; } 11427 # Make sure either enable_shared or enable_static is yes. 11428 test "$enable_shared" = yes || enable_static=yes 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11430$as_echo "$enable_static" >&6; } 11431 11432 11433 11434 11435fi 11436ac_ext=c 11437ac_cpp='$CPP $CPPFLAGS' 11438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11440ac_compiler_gnu=$ac_cv_c_compiler_gnu 11441 11442CC="$lt_save_CC" 11443 11444 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11445 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11446 (test "X$CXX" != "Xg++"))) ; then 11447 ac_ext=cpp 11448ac_cpp='$CXXCPP $CPPFLAGS' 11449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11453$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11454if test -z "$CXXCPP"; then 11455 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 11456 $as_echo_n "(cached) " >&6 11457else 11458 # Double quotes because CXXCPP needs to be expanded 11459 for CXXCPP in "$CXX -E" "/lib/cpp" 11460 do 11461 ac_preproc_ok=false 11462for ac_cxx_preproc_warn_flag in '' yes 11463do 11464 # Use a header file that comes with gcc, so configuring glibc 11465 # with a fresh cross-compiler works. 11466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11467 # <limits.h> exists even on freestanding compilers. 11468 # On the NeXT, cc -E runs the code through the compiler's parser, 11469 # not just through cpp. "Syntax error" is here to catch this case. 11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11471/* end confdefs.h. */ 11472#ifdef __STDC__ 11473# include <limits.h> 11474#else 11475# include <assert.h> 11476#endif 11477 Syntax error 11478_ACEOF 11479if ac_fn_cxx_try_cpp "$LINENO"; then : 11480 11481else 11482 # Broken: fails on valid input. 11483continue 11484fi 11485rm -f conftest.err conftest.$ac_ext 11486 11487 # OK, works on sane cases. Now check whether nonexistent headers 11488 # can be detected and how. 11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11490/* end confdefs.h. */ 11491#include <ac_nonexistent.h> 11492_ACEOF 11493if ac_fn_cxx_try_cpp "$LINENO"; then : 11494 # Broken: success on invalid input. 11495continue 11496else 11497 # Passes both tests. 11498ac_preproc_ok=: 11499break 11500fi 11501rm -f conftest.err conftest.$ac_ext 11502 11503done 11504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11505rm -f conftest.err conftest.$ac_ext 11506if $ac_preproc_ok; then : 11507 break 11508fi 11509 11510 done 11511 ac_cv_prog_CXXCPP=$CXXCPP 11512 11513fi 11514 CXXCPP=$ac_cv_prog_CXXCPP 11515else 11516 ac_cv_prog_CXXCPP=$CXXCPP 11517fi 11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11519$as_echo "$CXXCPP" >&6; } 11520ac_preproc_ok=false 11521for ac_cxx_preproc_warn_flag in '' yes 11522do 11523 # Use a header file that comes with gcc, so configuring glibc 11524 # with a fresh cross-compiler works. 11525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11526 # <limits.h> exists even on freestanding compilers. 11527 # On the NeXT, cc -E runs the code through the compiler's parser, 11528 # not just through cpp. "Syntax error" is here to catch this case. 11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11530/* end confdefs.h. */ 11531#ifdef __STDC__ 11532# include <limits.h> 11533#else 11534# include <assert.h> 11535#endif 11536 Syntax error 11537_ACEOF 11538if ac_fn_cxx_try_cpp "$LINENO"; then : 11539 11540else 11541 # Broken: fails on valid input. 11542continue 11543fi 11544rm -f conftest.err conftest.$ac_ext 11545 11546 # OK, works on sane cases. Now check whether nonexistent headers 11547 # can be detected and how. 11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11549/* end confdefs.h. */ 11550#include <ac_nonexistent.h> 11551_ACEOF 11552if ac_fn_cxx_try_cpp "$LINENO"; then : 11553 # Broken: success on invalid input. 11554continue 11555else 11556 # Passes both tests. 11557ac_preproc_ok=: 11558break 11559fi 11560rm -f conftest.err conftest.$ac_ext 11561 11562done 11563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11564rm -f conftest.err conftest.$ac_ext 11565if $ac_preproc_ok; then : 11566 11567else 11568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11570as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 11571See \`config.log' for more details." "$LINENO" 5; } 11572fi 11573 11574ac_ext=c 11575ac_cpp='$CPP $CPPFLAGS' 11576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11578ac_compiler_gnu=$ac_cv_c_compiler_gnu 11579 11580else 11581 _lt_caught_CXX_error=yes 11582fi 11583 11584ac_ext=cpp 11585ac_cpp='$CXXCPP $CPPFLAGS' 11586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11589 11590archive_cmds_need_lc_CXX=no 11591allow_undefined_flag_CXX= 11592always_export_symbols_CXX=no 11593archive_expsym_cmds_CXX= 11594compiler_needs_object_CXX=no 11595export_dynamic_flag_spec_CXX= 11596hardcode_direct_CXX=no 11597hardcode_direct_absolute_CXX=no 11598hardcode_libdir_flag_spec_CXX= 11599hardcode_libdir_flag_spec_ld_CXX= 11600hardcode_libdir_separator_CXX= 11601hardcode_minus_L_CXX=no 11602hardcode_shlibpath_var_CXX=unsupported 11603hardcode_automatic_CXX=no 11604inherit_rpath_CXX=no 11605module_cmds_CXX= 11606module_expsym_cmds_CXX= 11607link_all_deplibs_CXX=unknown 11608old_archive_cmds_CXX=$old_archive_cmds 11609reload_flag_CXX=$reload_flag 11610reload_cmds_CXX=$reload_cmds 11611no_undefined_flag_CXX= 11612whole_archive_flag_spec_CXX= 11613enable_shared_with_static_runtimes_CXX=no 11614 11615# Source file extension for C++ test sources. 11616ac_ext=cpp 11617 11618# Object file extension for compiled C++ test sources. 11619objext=o 11620objext_CXX=$objext 11621 11622# No sense in running all these tests if we already determined that 11623# the CXX compiler isn't working. Some variables (like enable_shared) 11624# are currently assumed to apply to all compilers on this platform, 11625# and will be corrupted by setting them based on a non-working compiler. 11626if test "$_lt_caught_CXX_error" != yes; then 11627 # Code to be used in simple compile tests 11628 lt_simple_compile_test_code="int some_variable = 0;" 11629 11630 # Code to be used in simple link tests 11631 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11632 11633 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11634 11635 11636 11637 11638 11639 11640# If no C compiler was specified, use CC. 11641LTCC=${LTCC-"$CC"} 11642 11643# If no C compiler flags were specified, use CFLAGS. 11644LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11645 11646# Allow CC to be a program name with arguments. 11647compiler=$CC 11648 11649 11650 # save warnings/boilerplate of simple test code 11651 ac_outfile=conftest.$ac_objext 11652echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11653eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11654_lt_compiler_boilerplate=`cat conftest.err` 11655$RM conftest* 11656 11657 ac_outfile=conftest.$ac_objext 11658echo "$lt_simple_link_test_code" >conftest.$ac_ext 11659eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11660_lt_linker_boilerplate=`cat conftest.err` 11661$RM -r conftest* 11662 11663 11664 # Allow CC to be a program name with arguments. 11665 lt_save_CC=$CC 11666 lt_save_LD=$LD 11667 lt_save_GCC=$GCC 11668 GCC=$GXX 11669 lt_save_with_gnu_ld=$with_gnu_ld 11670 lt_save_path_LD=$lt_cv_path_LD 11671 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11672 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11673 else 11674 $as_unset lt_cv_prog_gnu_ld 11675 fi 11676 if test -n "${lt_cv_path_LDCXX+set}"; then 11677 lt_cv_path_LD=$lt_cv_path_LDCXX 11678 else 11679 $as_unset lt_cv_path_LD 11680 fi 11681 test -z "${LDCXX+set}" || LD=$LDCXX 11682 CC=${CXX-"c++"} 11683 compiler=$CC 11684 compiler_CXX=$CC 11685 for cc_temp in $compiler""; do 11686 case $cc_temp in 11687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11689 \-*) ;; 11690 *) break;; 11691 esac 11692done 11693cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11694 11695 11696 if test -n "$compiler"; then 11697 # We don't want -fno-exception when compiling C++ code, so set the 11698 # no_builtin_flag separately 11699 if test "$GXX" = yes; then 11700 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11701 else 11702 lt_prog_compiler_no_builtin_flag_CXX= 11703 fi 11704 11705 if test "$GXX" = yes; then 11706 # Set up default GNU C++ configuration 11707 11708 11709 11710# Check whether --with-gnu-ld was given. 11711if test "${with_gnu_ld+set}" = set; then : 11712 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11713else 11714 with_gnu_ld=no 11715fi 11716 11717ac_prog=ld 11718if test "$GCC" = yes; then 11719 # Check if gcc -print-prog-name=ld gives a path. 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11721$as_echo_n "checking for ld used by $CC... " >&6; } 11722 case $host in 11723 *-*-mingw*) 11724 # gcc leaves a trailing carriage return which upsets mingw 11725 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11726 *) 11727 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11728 esac 11729 case $ac_prog in 11730 # Accept absolute paths. 11731 [\\/]* | ?:[\\/]*) 11732 re_direlt='/[^/][^/]*/\.\./' 11733 # Canonicalize the pathname of ld 11734 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11735 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11736 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11737 done 11738 test -z "$LD" && LD="$ac_prog" 11739 ;; 11740 "") 11741 # If it fails, then pretend we aren't using GCC. 11742 ac_prog=ld 11743 ;; 11744 *) 11745 # If it is relative, then search for the first ld in PATH. 11746 with_gnu_ld=unknown 11747 ;; 11748 esac 11749elif test "$with_gnu_ld" = yes; then 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11751$as_echo_n "checking for GNU ld... " >&6; } 11752else 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11754$as_echo_n "checking for non-GNU ld... " >&6; } 11755fi 11756if test "${lt_cv_path_LD+set}" = set; then : 11757 $as_echo_n "(cached) " >&6 11758else 11759 if test -z "$LD"; then 11760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11761 for ac_dir in $PATH; do 11762 IFS="$lt_save_ifs" 11763 test -z "$ac_dir" && ac_dir=. 11764 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11765 lt_cv_path_LD="$ac_dir/$ac_prog" 11766 # Check to see if the program is GNU ld. I'd rather use --version, 11767 # but apparently some variants of GNU ld only accept -v. 11768 # Break only if it was the GNU/non-GNU ld that we prefer. 11769 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11770 *GNU* | *'with BFD'*) 11771 test "$with_gnu_ld" != no && break 11772 ;; 11773 *) 11774 test "$with_gnu_ld" != yes && break 11775 ;; 11776 esac 11777 fi 11778 done 11779 IFS="$lt_save_ifs" 11780else 11781 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11782fi 11783fi 11784 11785LD="$lt_cv_path_LD" 11786if test -n "$LD"; then 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11788$as_echo "$LD" >&6; } 11789else 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11791$as_echo "no" >&6; } 11792fi 11793test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11795$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11796if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11797 $as_echo_n "(cached) " >&6 11798else 11799 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11800case `$LD -v 2>&1 </dev/null` in 11801*GNU* | *'with BFD'*) 11802 lt_cv_prog_gnu_ld=yes 11803 ;; 11804*) 11805 lt_cv_prog_gnu_ld=no 11806 ;; 11807esac 11808fi 11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11810$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11811with_gnu_ld=$lt_cv_prog_gnu_ld 11812 11813 11814 11815 11816 11817 11818 11819 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11820 # archiving commands below assume that GNU ld is being used. 11821 if test "$with_gnu_ld" = yes; then 11822 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11823 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' 11824 11825 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11826 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11827 11828 # If archive_cmds runs LD, not CC, wlarc should be empty 11829 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11830 # investigate it a little bit more. (MM) 11831 wlarc='${wl}' 11832 11833 # ancient GNU ld didn't support --whole-archive et. al. 11834 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11835 $GREP 'no-whole-archive' > /dev/null; then 11836 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11837 else 11838 whole_archive_flag_spec_CXX= 11839 fi 11840 else 11841 with_gnu_ld=no 11842 wlarc= 11843 11844 # A generic and very simple default shared library creation 11845 # command for GNU C++ for the case where it uses the native 11846 # linker, instead of GNU ld. If possible, this setting should 11847 # overridden to take advantage of the native linker features on 11848 # the platform it is being used on. 11849 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11850 fi 11851 11852 # Commands to make compiler produce verbose output that lists 11853 # what "hidden" libraries, object files and flags are used when 11854 # linking a shared library. 11855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 11856 11857 else 11858 GXX=no 11859 with_gnu_ld=no 11860 wlarc= 11861 fi 11862 11863 # PORTME: fill in a description of your system's C++ link characteristics 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11865$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11866 ld_shlibs_CXX=yes 11867 case $host_os in 11868 aix3*) 11869 # FIXME: insert proper C++ library support 11870 ld_shlibs_CXX=no 11871 ;; 11872 aix[4-9]*) 11873 if test "$host_cpu" = ia64; then 11874 # On IA64, the linker does run time linking by default, so we don't 11875 # have to do anything special. 11876 aix_use_runtimelinking=no 11877 exp_sym_flag='-Bexport' 11878 no_entry_flag="" 11879 else 11880 aix_use_runtimelinking=no 11881 11882 # Test if we are trying to use run time linking or normal 11883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11884 # need to do runtime linking. 11885 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11886 for ld_flag in $LDFLAGS; do 11887 case $ld_flag in 11888 *-brtl*) 11889 aix_use_runtimelinking=yes 11890 break 11891 ;; 11892 esac 11893 done 11894 ;; 11895 esac 11896 11897 exp_sym_flag='-bexport' 11898 no_entry_flag='-bnoentry' 11899 fi 11900 11901 # When large executables or shared objects are built, AIX ld can 11902 # have problems creating the table of contents. If linking a library 11903 # or program results in "error TOC overflow" add -mminimal-toc to 11904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11906 11907 archive_cmds_CXX='' 11908 hardcode_direct_CXX=yes 11909 hardcode_direct_absolute_CXX=yes 11910 hardcode_libdir_separator_CXX=':' 11911 link_all_deplibs_CXX=yes 11912 file_list_spec_CXX='${wl}-f,' 11913 11914 if test "$GXX" = yes; then 11915 case $host_os in aix4.[012]|aix4.[012].*) 11916 # We only want to do this on AIX 4.2 and lower, the check 11917 # below for broken collect2 doesn't work under 4.3+ 11918 collect2name=`${CC} -print-prog-name=collect2` 11919 if test -f "$collect2name" && 11920 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11921 then 11922 # We have reworked collect2 11923 : 11924 else 11925 # We have old collect2 11926 hardcode_direct_CXX=unsupported 11927 # It fails to find uninstalled libraries when the uninstalled 11928 # path is not listed in the libpath. Setting hardcode_minus_L 11929 # to unsupported forces relinking 11930 hardcode_minus_L_CXX=yes 11931 hardcode_libdir_flag_spec_CXX='-L$libdir' 11932 hardcode_libdir_separator_CXX= 11933 fi 11934 esac 11935 shared_flag='-shared' 11936 if test "$aix_use_runtimelinking" = yes; then 11937 shared_flag="$shared_flag "'${wl}-G' 11938 fi 11939 else 11940 # not using gcc 11941 if test "$host_cpu" = ia64; then 11942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11943 # chokes on -Wl,-G. The following line is correct: 11944 shared_flag='-G' 11945 else 11946 if test "$aix_use_runtimelinking" = yes; then 11947 shared_flag='${wl}-G' 11948 else 11949 shared_flag='${wl}-bM:SRE' 11950 fi 11951 fi 11952 fi 11953 11954 export_dynamic_flag_spec_CXX='${wl}-bexpall' 11955 # It seems that -bexpall does not export symbols beginning with 11956 # underscore (_), so it is better to generate a list of symbols to 11957 # export. 11958 always_export_symbols_CXX=yes 11959 if test "$aix_use_runtimelinking" = yes; then 11960 # Warning - without using the other runtime loading flags (-brtl), 11961 # -berok will link without error, but may produce a broken library. 11962 allow_undefined_flag_CXX='-berok' 11963 # Determine the default libpath from the value encoded in an empty 11964 # executable. 11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11966/* end confdefs.h. */ 11967 11968int 11969main () 11970{ 11971 11972 ; 11973 return 0; 11974} 11975_ACEOF 11976if ac_fn_cxx_try_link "$LINENO"; then : 11977 11978lt_aix_libpath_sed=' 11979 /Import File Strings/,/^$/ { 11980 /^0/ { 11981 s/^0 *\(.*\)$/\1/ 11982 p 11983 } 11984 }' 11985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11986# Check for a 64-bit object if we didn't find anything. 11987if test -z "$aix_libpath"; then 11988 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11989fi 11990fi 11991rm -f core conftest.err conftest.$ac_objext \ 11992 conftest$ac_exeext conftest.$ac_ext 11993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11994 11995 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11996 11997 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11998 else 11999 if test "$host_cpu" = ia64; then 12000 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12001 allow_undefined_flag_CXX="-z nodefs" 12002 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 12003 else 12004 # Determine the default libpath from the value encoded in an 12005 # empty executable. 12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12007/* end confdefs.h. */ 12008 12009int 12010main () 12011{ 12012 12013 ; 12014 return 0; 12015} 12016_ACEOF 12017if ac_fn_cxx_try_link "$LINENO"; then : 12018 12019lt_aix_libpath_sed=' 12020 /Import File Strings/,/^$/ { 12021 /^0/ { 12022 s/^0 *\(.*\)$/\1/ 12023 p 12024 } 12025 }' 12026aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12027# Check for a 64-bit object if we didn't find anything. 12028if test -z "$aix_libpath"; then 12029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12030fi 12031fi 12032rm -f core conftest.err conftest.$ac_objext \ 12033 conftest$ac_exeext conftest.$ac_ext 12034if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12035 12036 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12037 # Warning - without using the other run time loading flags, 12038 # -berok will link without error, but may produce a broken library. 12039 no_undefined_flag_CXX=' ${wl}-bernotok' 12040 allow_undefined_flag_CXX=' ${wl}-berok' 12041 if test "$with_gnu_ld" = yes; then 12042 # We only use this code for GNU lds that support --whole-archive. 12043 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12044 else 12045 # Exported symbols can be pulled into shared objects from archives 12046 whole_archive_flag_spec_CXX='$convenience' 12047 fi 12048 archive_cmds_need_lc_CXX=yes 12049 # This is similar to how AIX traditionally builds its shared 12050 # libraries. 12051 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12052 fi 12053 fi 12054 ;; 12055 12056 beos*) 12057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12058 allow_undefined_flag_CXX=unsupported 12059 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12060 # support --undefined. This deserves some investigation. FIXME 12061 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12062 else 12063 ld_shlibs_CXX=no 12064 fi 12065 ;; 12066 12067 chorus*) 12068 case $cc_basename in 12069 *) 12070 # FIXME: insert proper C++ library support 12071 ld_shlibs_CXX=no 12072 ;; 12073 esac 12074 ;; 12075 12076 cygwin* | mingw* | pw32* | cegcc*) 12077 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12078 # as there is no search path for DLLs. 12079 hardcode_libdir_flag_spec_CXX='-L$libdir' 12080 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12081 allow_undefined_flag_CXX=unsupported 12082 always_export_symbols_CXX=no 12083 enable_shared_with_static_runtimes_CXX=yes 12084 12085 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12086 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12087 # If the export-symbols file already is a .def file (1st line 12088 # is EXPORTS), use it as is; otherwise, prepend... 12089 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12090 cp $export_symbols $output_objdir/$soname.def; 12091 else 12092 echo EXPORTS > $output_objdir/$soname.def; 12093 cat $export_symbols >> $output_objdir/$soname.def; 12094 fi~ 12095 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12096 else 12097 ld_shlibs_CXX=no 12098 fi 12099 ;; 12100 darwin* | rhapsody*) 12101 12102 12103 archive_cmds_need_lc_CXX=no 12104 hardcode_direct_CXX=no 12105 hardcode_automatic_CXX=yes 12106 hardcode_shlibpath_var_CXX=unsupported 12107 if test "$lt_cv_ld_force_load" = "yes"; then 12108 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12109 else 12110 whole_archive_flag_spec_CXX='' 12111 fi 12112 link_all_deplibs_CXX=yes 12113 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12114 case $cc_basename in 12115 ifort*) _lt_dar_can_shared=yes ;; 12116 *) _lt_dar_can_shared=$GCC ;; 12117 esac 12118 if test "$_lt_dar_can_shared" = "yes"; then 12119 output_verbose_link_cmd=func_echo_all 12120 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12121 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12122 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 12123 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 12124 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12125 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${_lt_dsymutil}" 12126 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 12127 fi 12128 12129 else 12130 ld_shlibs_CXX=no 12131 fi 12132 12133 ;; 12134 12135 dgux*) 12136 case $cc_basename in 12137 ec++*) 12138 # FIXME: insert proper C++ library support 12139 ld_shlibs_CXX=no 12140 ;; 12141 ghcx*) 12142 # Green Hills C++ Compiler 12143 # FIXME: insert proper C++ library support 12144 ld_shlibs_CXX=no 12145 ;; 12146 *) 12147 # FIXME: insert proper C++ library support 12148 ld_shlibs_CXX=no 12149 ;; 12150 esac 12151 ;; 12152 12153 freebsd2.*) 12154 # C++ shared libraries reported to be fairly broken before 12155 # switch to ELF 12156 ld_shlibs_CXX=no 12157 ;; 12158 12159 freebsd-elf*) 12160 archive_cmds_need_lc_CXX=no 12161 ;; 12162 12163 freebsd* | dragonfly*) 12164 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12165 # conventions 12166 ld_shlibs_CXX=yes 12167 ;; 12168 12169 gnu*) 12170 ;; 12171 12172 haiku*) 12173 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12174 link_all_deplibs_CXX=yes 12175 ;; 12176 12177 hpux9*) 12178 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12179 hardcode_libdir_separator_CXX=: 12180 export_dynamic_flag_spec_CXX='${wl}-E' 12181 hardcode_direct_CXX=yes 12182 hardcode_minus_L_CXX=yes # Not in the search PATH, 12183 # but as the default 12184 # location of the library. 12185 12186 case $cc_basename in 12187 CC*) 12188 # FIXME: insert proper C++ library support 12189 ld_shlibs_CXX=no 12190 ;; 12191 aCC*) 12192 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' 12193 # Commands to make compiler produce verbose output that lists 12194 # what "hidden" libraries, object files and flags are used when 12195 # linking a shared library. 12196 # 12197 # There doesn't appear to be a way to prevent this compiler from 12198 # explicitly linking system object files so we need to strip them 12199 # from the output so that they don't get included in the library 12200 # dependencies. 12201 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12202 ;; 12203 *) 12204 if test "$GXX" = yes; then 12205 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' 12206 else 12207 # FIXME: insert proper C++ library support 12208 ld_shlibs_CXX=no 12209 fi 12210 ;; 12211 esac 12212 ;; 12213 12214 hpux10*|hpux11*) 12215 if test $with_gnu_ld = no; then 12216 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12217 hardcode_libdir_separator_CXX=: 12218 12219 case $host_cpu in 12220 hppa*64*|ia64*) 12221 ;; 12222 *) 12223 export_dynamic_flag_spec_CXX='${wl}-E' 12224 ;; 12225 esac 12226 fi 12227 case $host_cpu in 12228 hppa*64*|ia64*) 12229 hardcode_direct_CXX=no 12230 hardcode_shlibpath_var_CXX=no 12231 ;; 12232 *) 12233 hardcode_direct_CXX=yes 12234 hardcode_direct_absolute_CXX=yes 12235 hardcode_minus_L_CXX=yes # Not in the search PATH, 12236 # but as the default 12237 # location of the library. 12238 ;; 12239 esac 12240 12241 case $cc_basename in 12242 CC*) 12243 # FIXME: insert proper C++ library support 12244 ld_shlibs_CXX=no 12245 ;; 12246 aCC*) 12247 case $host_cpu in 12248 hppa*64*) 12249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12250 ;; 12251 ia64*) 12252 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12253 ;; 12254 *) 12255 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12256 ;; 12257 esac 12258 # Commands to make compiler produce verbose output that lists 12259 # what "hidden" libraries, object files and flags are used when 12260 # linking a shared library. 12261 # 12262 # There doesn't appear to be a way to prevent this compiler from 12263 # explicitly linking system object files so we need to strip them 12264 # from the output so that they don't get included in the library 12265 # dependencies. 12266 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; func_echo_all "$list"' 12267 ;; 12268 *) 12269 if test "$GXX" = yes; then 12270 if test $with_gnu_ld = no; then 12271 case $host_cpu in 12272 hppa*64*) 12273 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12274 ;; 12275 ia64*) 12276 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12277 ;; 12278 *) 12279 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' 12280 ;; 12281 esac 12282 fi 12283 else 12284 # FIXME: insert proper C++ library support 12285 ld_shlibs_CXX=no 12286 fi 12287 ;; 12288 esac 12289 ;; 12290 12291 interix[3-9]*) 12292 hardcode_direct_CXX=no 12293 hardcode_shlibpath_var_CXX=no 12294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12295 export_dynamic_flag_spec_CXX='${wl}-E' 12296 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12297 # Instead, shared libraries are loaded at an image base (0x10000000 by 12298 # default) and relocated if they conflict, which is a slow very memory 12299 # consuming and fragmenting process. To avoid this, we pick a random, 12300 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12301 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12302 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12303 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12304 ;; 12305 irix5* | irix6*) 12306 case $cc_basename in 12307 CC*) 12308 # SGI C++ 12309 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12310 12311 # Archives containing C++ object files must be created using 12312 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12313 # necessary to make sure instantiated templates are included 12314 # in the archive. 12315 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12316 ;; 12317 *) 12318 if test "$GXX" = yes; then 12319 if test "$with_gnu_ld" = no; then 12320 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12321 else 12322 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 12323 fi 12324 fi 12325 link_all_deplibs_CXX=yes 12326 ;; 12327 esac 12328 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12329 hardcode_libdir_separator_CXX=: 12330 inherit_rpath_CXX=yes 12331 ;; 12332 12333 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12334 case $cc_basename in 12335 KCC*) 12336 # Kuck and Associates, Inc. (KAI) C++ Compiler 12337 12338 # KCC will only create a shared library if the output file 12339 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12340 # to its proper name (with version) after linking. 12341 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' 12342 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' 12343 # Commands to make compiler produce verbose output that lists 12344 # what "hidden" libraries, object files and flags are used when 12345 # linking a shared library. 12346 # 12347 # There doesn't appear to be a way to prevent this compiler from 12348 # explicitly linking system object files so we need to strip them 12349 # from the output so that they don't get included in the library 12350 # dependencies. 12351 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; func_echo_all "$list"' 12352 12353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12355 12356 # Archives containing C++ object files must be created using 12357 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12358 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12359 ;; 12360 icpc* | ecpc* ) 12361 # Intel C++ 12362 with_gnu_ld=yes 12363 # version 8.0 and above of icpc choke on multiply defined symbols 12364 # if we add $predep_objects and $postdep_objects, however 7.1 and 12365 # earlier do not add the objects themselves. 12366 case `$CC -V 2>&1` in 12367 *"Version 7."*) 12368 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12369 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' 12370 ;; 12371 *) # Version 8.0 or newer 12372 tmp_idyn= 12373 case $host_cpu in 12374 ia64*) tmp_idyn=' -i_dynamic';; 12375 esac 12376 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12377 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' 12378 ;; 12379 esac 12380 archive_cmds_need_lc_CXX=no 12381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12383 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12384 ;; 12385 pgCC* | pgcpp*) 12386 # Portland Group C++ compiler 12387 case `$CC -V` in 12388 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12389 prelink_cmds_CXX='tpldir=Template.dir~ 12390 rm -rf $tpldir~ 12391 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12392 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12393 old_archive_cmds_CXX='tpldir=Template.dir~ 12394 rm -rf $tpldir~ 12395 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12396 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12397 $RANLIB $oldlib' 12398 archive_cmds_CXX='tpldir=Template.dir~ 12399 rm -rf $tpldir~ 12400 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12401 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12402 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12403 rm -rf $tpldir~ 12404 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12405 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12406 ;; 12407 *) # Version 6 and above use weak symbols 12408 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12409 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12410 ;; 12411 esac 12412 12413 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12415 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12416 ;; 12417 cxx*) 12418 # Compaq C++ 12419 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12420 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' 12421 12422 runpath_var=LD_RUN_PATH 12423 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12424 hardcode_libdir_separator_CXX=: 12425 12426 # Commands to make compiler produce verbose output that lists 12427 # what "hidden" libraries, object files and flags are used when 12428 # linking a shared library. 12429 # 12430 # There doesn't appear to be a way to prevent this compiler from 12431 # explicitly linking system object files so we need to strip them 12432 # from the output so that they don't get included in the library 12433 # dependencies. 12434 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 12435 ;; 12436 xl* | mpixl* | bgxl*) 12437 # IBM XL 8.0 on PPC, with GNU ld 12438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12440 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12441 if test "x$supports_anon_versioning" = xyes; then 12442 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12443 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12444 echo "local: *; };" >> $output_objdir/$libname.ver~ 12445 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12446 fi 12447 ;; 12448 *) 12449 case `$CC -V 2>&1 | sed 5q` in 12450 *Sun\ C*) 12451 # Sun C++ 5.9 12452 no_undefined_flag_CXX=' -zdefs' 12453 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12454 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12455 hardcode_libdir_flag_spec_CXX='-R$libdir' 12456 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12457 compiler_needs_object_CXX=yes 12458 12459 # Not sure whether something based on 12460 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12461 # would be better. 12462 output_verbose_link_cmd='func_echo_all' 12463 12464 # Archives containing C++ object files must be created using 12465 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12466 # necessary to make sure instantiated templates are included 12467 # in the archive. 12468 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12469 ;; 12470 esac 12471 ;; 12472 esac 12473 ;; 12474 12475 lynxos*) 12476 # FIXME: insert proper C++ library support 12477 ld_shlibs_CXX=no 12478 ;; 12479 12480 m88k*) 12481 # FIXME: insert proper C++ library support 12482 ld_shlibs_CXX=no 12483 ;; 12484 12485 mvs*) 12486 case $cc_basename in 12487 cxx*) 12488 # FIXME: insert proper C++ library support 12489 ld_shlibs_CXX=no 12490 ;; 12491 *) 12492 # FIXME: insert proper C++ library support 12493 ld_shlibs_CXX=no 12494 ;; 12495 esac 12496 ;; 12497 12498 netbsd*) 12499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12500 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12501 wlarc= 12502 hardcode_libdir_flag_spec_CXX='-R$libdir' 12503 hardcode_direct_CXX=yes 12504 hardcode_shlibpath_var_CXX=no 12505 fi 12506 # Workaround some broken pre-1.5 toolchains 12507 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12508 ;; 12509 12510 *nto* | *qnx*) 12511 ld_shlibs_CXX=yes 12512 ;; 12513 12514 openbsd2*) 12515 # C++ shared libraries are fairly broken 12516 ld_shlibs_CXX=no 12517 ;; 12518 12519 openbsd*) 12520 if test -f /usr/libexec/ld.so; then 12521 hardcode_direct_CXX=yes 12522 hardcode_shlibpath_var_CXX=no 12523 hardcode_direct_absolute_CXX=yes 12524 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12527 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12528 export_dynamic_flag_spec_CXX='${wl}-E' 12529 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12530 fi 12531 output_verbose_link_cmd=func_echo_all 12532 else 12533 ld_shlibs_CXX=no 12534 fi 12535 ;; 12536 12537 osf3* | osf4* | osf5*) 12538 case $cc_basename in 12539 KCC*) 12540 # Kuck and Associates, Inc. (KAI) C++ Compiler 12541 12542 # KCC will only create a shared library if the output file 12543 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12544 # to its proper name (with version) after linking. 12545 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' 12546 12547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12548 hardcode_libdir_separator_CXX=: 12549 12550 # Archives containing C++ object files must be created using 12551 # the KAI C++ compiler. 12552 case $host in 12553 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12554 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12555 esac 12556 ;; 12557 RCC*) 12558 # Rational C++ 2.4.1 12559 # FIXME: insert proper C++ library support 12560 ld_shlibs_CXX=no 12561 ;; 12562 cxx*) 12563 case $host in 12564 osf3*) 12565 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12566 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12568 ;; 12569 *) 12570 allow_undefined_flag_CXX=' -expect_unresolved \*' 12571 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12572 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12573 echo "-hidden">> $lib.exp~ 12574 $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~ 12575 $RM $lib.exp' 12576 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12577 ;; 12578 esac 12579 12580 hardcode_libdir_separator_CXX=: 12581 12582 # Commands to make compiler produce verbose output that lists 12583 # what "hidden" libraries, object files and flags are used when 12584 # linking a shared library. 12585 # 12586 # There doesn't appear to be a way to prevent this compiler from 12587 # explicitly linking system object files so we need to strip them 12588 # from the output so that they don't get included in the library 12589 # dependencies. 12590 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 12591 ;; 12592 *) 12593 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12594 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12595 case $host in 12596 osf3*) 12597 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12598 ;; 12599 *) 12600 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12601 ;; 12602 esac 12603 12604 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12605 hardcode_libdir_separator_CXX=: 12606 12607 # Commands to make compiler produce verbose output that lists 12608 # what "hidden" libraries, object files and flags are used when 12609 # linking a shared library. 12610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12611 12612 else 12613 # FIXME: insert proper C++ library support 12614 ld_shlibs_CXX=no 12615 fi 12616 ;; 12617 esac 12618 ;; 12619 12620 psos*) 12621 # FIXME: insert proper C++ library support 12622 ld_shlibs_CXX=no 12623 ;; 12624 12625 sunos4*) 12626 case $cc_basename in 12627 CC*) 12628 # Sun C++ 4.x 12629 # FIXME: insert proper C++ library support 12630 ld_shlibs_CXX=no 12631 ;; 12632 lcc*) 12633 # Lucid 12634 # FIXME: insert proper C++ library support 12635 ld_shlibs_CXX=no 12636 ;; 12637 *) 12638 # FIXME: insert proper C++ library support 12639 ld_shlibs_CXX=no 12640 ;; 12641 esac 12642 ;; 12643 12644 solaris*) 12645 case $cc_basename in 12646 CC*) 12647 # Sun C++ 4.2, 5.x and Centerline C++ 12648 archive_cmds_need_lc_CXX=yes 12649 no_undefined_flag_CXX=' -zdefs' 12650 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12651 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12652 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12653 12654 hardcode_libdir_flag_spec_CXX='-R$libdir' 12655 hardcode_shlibpath_var_CXX=no 12656 case $host_os in 12657 solaris2.[0-5] | solaris2.[0-5].*) ;; 12658 *) 12659 # The compiler driver will combine and reorder linker options, 12660 # but understands `-z linker_flag'. 12661 # Supported since Solaris 2.6 (maybe 2.5.1?) 12662 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12663 ;; 12664 esac 12665 link_all_deplibs_CXX=yes 12666 12667 output_verbose_link_cmd='func_echo_all' 12668 12669 # Archives containing C++ object files must be created using 12670 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12671 # necessary to make sure instantiated templates are included 12672 # in the archive. 12673 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12674 ;; 12675 gcx*) 12676 # Green Hills C++ Compiler 12677 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12678 12679 # The C++ compiler must be used to create the archive. 12680 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12681 ;; 12682 *) 12683 # GNU C++ compiler with Solaris linker 12684 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12685 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12686 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12687 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12688 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12689 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12690 12691 # Commands to make compiler produce verbose output that lists 12692 # what "hidden" libraries, object files and flags are used when 12693 # linking a shared library. 12694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12695 else 12696 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12697 # platform. 12698 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12699 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12700 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12701 12702 # Commands to make compiler produce verbose output that lists 12703 # what "hidden" libraries, object files and flags are used when 12704 # linking a shared library. 12705 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12706 fi 12707 12708 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12709 case $host_os in 12710 solaris2.[0-5] | solaris2.[0-5].*) ;; 12711 *) 12712 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12713 ;; 12714 esac 12715 fi 12716 ;; 12717 esac 12718 ;; 12719 12720 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12721 no_undefined_flag_CXX='${wl}-z,text' 12722 archive_cmds_need_lc_CXX=no 12723 hardcode_shlibpath_var_CXX=no 12724 runpath_var='LD_RUN_PATH' 12725 12726 case $cc_basename in 12727 CC*) 12728 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12729 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12730 ;; 12731 *) 12732 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12733 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12734 ;; 12735 esac 12736 ;; 12737 12738 sysv5* | sco3.2v5* | sco5v6*) 12739 # Note: We can NOT use -z defs as we might desire, because we do not 12740 # link with -lc, and that would cause any symbols used from libc to 12741 # always be unresolved, which means just about no library would 12742 # ever link correctly. If we're not using GNU ld we use -z text 12743 # though, which does catch some bad symbols but isn't as heavy-handed 12744 # as -z defs. 12745 no_undefined_flag_CXX='${wl}-z,text' 12746 allow_undefined_flag_CXX='${wl}-z,nodefs' 12747 archive_cmds_need_lc_CXX=no 12748 hardcode_shlibpath_var_CXX=no 12749 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12750 hardcode_libdir_separator_CXX=':' 12751 link_all_deplibs_CXX=yes 12752 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12753 runpath_var='LD_RUN_PATH' 12754 12755 case $cc_basename in 12756 CC*) 12757 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12758 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12759 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 12760 '"$old_archive_cmds_CXX" 12761 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 12762 '"$reload_cmds_CXX" 12763 ;; 12764 *) 12765 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12766 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12767 ;; 12768 esac 12769 ;; 12770 12771 tandem*) 12772 case $cc_basename in 12773 NCC*) 12774 # NonStop-UX NCC 3.20 12775 # FIXME: insert proper C++ library support 12776 ld_shlibs_CXX=no 12777 ;; 12778 *) 12779 # FIXME: insert proper C++ library support 12780 ld_shlibs_CXX=no 12781 ;; 12782 esac 12783 ;; 12784 12785 vxworks*) 12786 # FIXME: insert proper C++ library support 12787 ld_shlibs_CXX=no 12788 ;; 12789 12790 *) 12791 # FIXME: insert proper C++ library support 12792 ld_shlibs_CXX=no 12793 ;; 12794 esac 12795 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12797$as_echo "$ld_shlibs_CXX" >&6; } 12798 test "$ld_shlibs_CXX" = no && can_build_shared=no 12799 12800 GCC_CXX="$GXX" 12801 LD_CXX="$LD" 12802 12803 ## CAVEAT EMPTOR: 12804 ## There is no encapsulation within the following macros, do not change 12805 ## the running order or otherwise move them around unless you know exactly 12806 ## what you are doing... 12807 # Dependencies to place before and after the object being linked: 12808predep_objects_CXX= 12809postdep_objects_CXX= 12810predeps_CXX= 12811postdeps_CXX= 12812compiler_lib_search_path_CXX= 12813 12814cat > conftest.$ac_ext <<_LT_EOF 12815class Foo 12816{ 12817public: 12818 Foo (void) { a = 0; } 12819private: 12820 int a; 12821}; 12822_LT_EOF 12823 12824if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12825 (eval $ac_compile) 2>&5 12826 ac_status=$? 12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12828 test $ac_status = 0; }; then 12829 # Parse the compiler output and extract the necessary 12830 # objects, libraries and library flags. 12831 12832 # Sentinel used to keep track of whether or not we are before 12833 # the conftest object file. 12834 pre_test_object_deps_done=no 12835 12836 for p in `eval "$output_verbose_link_cmd"`; do 12837 case $p in 12838 12839 -L* | -R* | -l*) 12840 # Some compilers place space between "-{L,R}" and the path. 12841 # Remove the space. 12842 if test $p = "-L" || 12843 test $p = "-R"; then 12844 prev=$p 12845 continue 12846 else 12847 prev= 12848 fi 12849 12850 if test "$pre_test_object_deps_done" = no; then 12851 case $p in 12852 -L* | -R*) 12853 # Internal compiler library paths should come after those 12854 # provided the user. The postdeps already come after the 12855 # user supplied libs so there is no need to process them. 12856 if test -z "$compiler_lib_search_path_CXX"; then 12857 compiler_lib_search_path_CXX="${prev}${p}" 12858 else 12859 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12860 fi 12861 ;; 12862 # The "-l" case would never come before the object being 12863 # linked, so don't bother handling this case. 12864 esac 12865 else 12866 if test -z "$postdeps_CXX"; then 12867 postdeps_CXX="${prev}${p}" 12868 else 12869 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12870 fi 12871 fi 12872 ;; 12873 12874 *.$objext) 12875 # This assumes that the test object file only shows up 12876 # once in the compiler output. 12877 if test "$p" = "conftest.$objext"; then 12878 pre_test_object_deps_done=yes 12879 continue 12880 fi 12881 12882 if test "$pre_test_object_deps_done" = no; then 12883 if test -z "$predep_objects_CXX"; then 12884 predep_objects_CXX="$p" 12885 else 12886 predep_objects_CXX="$predep_objects_CXX $p" 12887 fi 12888 else 12889 if test -z "$postdep_objects_CXX"; then 12890 postdep_objects_CXX="$p" 12891 else 12892 postdep_objects_CXX="$postdep_objects_CXX $p" 12893 fi 12894 fi 12895 ;; 12896 12897 *) ;; # Ignore the rest. 12898 12899 esac 12900 done 12901 12902 # Clean up. 12903 rm -f a.out a.exe 12904else 12905 echo "libtool.m4: error: problem compiling CXX test program" 12906fi 12907 12908$RM -f confest.$objext 12909 12910# PORTME: override above test on systems where it is broken 12911case $host_os in 12912interix[3-9]*) 12913 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12914 # hack all around it, let's just trust "g++" to DTRT. 12915 predep_objects_CXX= 12916 postdep_objects_CXX= 12917 postdeps_CXX= 12918 ;; 12919 12920linux*) 12921 case `$CC -V 2>&1 | sed 5q` in 12922 *Sun\ C*) 12923 # Sun C++ 5.9 12924 12925 # The more standards-conforming stlport4 library is 12926 # incompatible with the Cstd library. Avoid specifying 12927 # it if it's in CXXFLAGS. Ignore libCrun as 12928 # -library=stlport4 depends on it. 12929 case " $CXX $CXXFLAGS " in 12930 *" -library=stlport4 "*) 12931 solaris_use_stlport4=yes 12932 ;; 12933 esac 12934 12935 if test "$solaris_use_stlport4" != yes; then 12936 postdeps_CXX='-library=Cstd -library=Crun' 12937 fi 12938 ;; 12939 esac 12940 ;; 12941 12942solaris*) 12943 case $cc_basename in 12944 CC*) 12945 # The more standards-conforming stlport4 library is 12946 # incompatible with the Cstd library. Avoid specifying 12947 # it if it's in CXXFLAGS. Ignore libCrun as 12948 # -library=stlport4 depends on it. 12949 case " $CXX $CXXFLAGS " in 12950 *" -library=stlport4 "*) 12951 solaris_use_stlport4=yes 12952 ;; 12953 esac 12954 12955 # Adding this requires a known-good setup of shared libraries for 12956 # Sun compiler versions before 5.6, else PIC objects from an old 12957 # archive will be linked into the output, leading to subtle bugs. 12958 if test "$solaris_use_stlport4" != yes; then 12959 postdeps_CXX='-library=Cstd -library=Crun' 12960 fi 12961 ;; 12962 esac 12963 ;; 12964esac 12965 12966 12967case " $postdeps_CXX " in 12968*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12969esac 12970 compiler_lib_search_dirs_CXX= 12971if test -n "${compiler_lib_search_path_CXX}"; then 12972 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12973fi 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 lt_prog_compiler_wl_CXX= 13006lt_prog_compiler_pic_CXX= 13007lt_prog_compiler_static_CXX= 13008 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13010$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13011 13012 # C++ specific cases for pic, static, wl, etc. 13013 if test "$GXX" = yes; then 13014 lt_prog_compiler_wl_CXX='-Wl,' 13015 lt_prog_compiler_static_CXX='-static' 13016 13017 case $host_os in 13018 aix*) 13019 # All AIX code is PIC. 13020 if test "$host_cpu" = ia64; then 13021 # AIX 5 now supports IA64 processor 13022 lt_prog_compiler_static_CXX='-Bstatic' 13023 fi 13024 lt_prog_compiler_pic_CXX='-fPIC' 13025 ;; 13026 13027 amigaos*) 13028 case $host_cpu in 13029 powerpc) 13030 # see comment about AmigaOS4 .so support 13031 lt_prog_compiler_pic_CXX='-fPIC' 13032 ;; 13033 m68k) 13034 # FIXME: we need at least 68020 code to build shared libraries, but 13035 # adding the `-m68020' flag to GCC prevents building anything better, 13036 # like `-m68040'. 13037 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13038 ;; 13039 esac 13040 ;; 13041 13042 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13043 # PIC is the default for these OSes. 13044 ;; 13045 mingw* | cygwin* | os2* | pw32* | cegcc*) 13046 # This hack is so that the source file can tell whether it is being 13047 # built for inclusion in a dll (and should export symbols for example). 13048 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13049 # (--disable-auto-import) libraries 13050 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13051 ;; 13052 darwin* | rhapsody*) 13053 # PIC is the default on this platform 13054 # Common symbols not allowed in MH_DYLIB files 13055 lt_prog_compiler_pic_CXX='-fno-common' 13056 ;; 13057 *djgpp*) 13058 # DJGPP does not support shared libraries at all 13059 lt_prog_compiler_pic_CXX= 13060 ;; 13061 haiku*) 13062 # PIC is the default for Haiku. 13063 # The "-static" flag exists, but is broken. 13064 lt_prog_compiler_static_CXX= 13065 ;; 13066 interix[3-9]*) 13067 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13068 # Instead, we relocate shared libraries at runtime. 13069 ;; 13070 sysv4*MP*) 13071 if test -d /usr/nec; then 13072 lt_prog_compiler_pic_CXX=-Kconform_pic 13073 fi 13074 ;; 13075 hpux*) 13076 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13077 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13078 # sets the default TLS model and affects inlining. 13079 case $host_cpu in 13080 hppa*64*) 13081 ;; 13082 *) 13083 lt_prog_compiler_pic_CXX='-fPIC' 13084 ;; 13085 esac 13086 ;; 13087 *qnx* | *nto*) 13088 # QNX uses GNU C++, but need to define -shared option too, otherwise 13089 # it will coredump. 13090 lt_prog_compiler_pic_CXX='-fPIC -shared' 13091 ;; 13092 *) 13093 lt_prog_compiler_pic_CXX='-fPIC' 13094 ;; 13095 esac 13096 else 13097 case $host_os in 13098 aix[4-9]*) 13099 # All AIX code is PIC. 13100 if test "$host_cpu" = ia64; then 13101 # AIX 5 now supports IA64 processor 13102 lt_prog_compiler_static_CXX='-Bstatic' 13103 else 13104 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13105 fi 13106 ;; 13107 chorus*) 13108 case $cc_basename in 13109 cxch68*) 13110 # Green Hills C++ Compiler 13111 # _LT_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" 13112 ;; 13113 esac 13114 ;; 13115 dgux*) 13116 case $cc_basename in 13117 ec++*) 13118 lt_prog_compiler_pic_CXX='-KPIC' 13119 ;; 13120 ghcx*) 13121 # Green Hills C++ Compiler 13122 lt_prog_compiler_pic_CXX='-pic' 13123 ;; 13124 *) 13125 ;; 13126 esac 13127 ;; 13128 freebsd* | dragonfly*) 13129 # FreeBSD uses GNU C++ 13130 ;; 13131 hpux9* | hpux10* | hpux11*) 13132 case $cc_basename in 13133 CC*) 13134 lt_prog_compiler_wl_CXX='-Wl,' 13135 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13136 if test "$host_cpu" != ia64; then 13137 lt_prog_compiler_pic_CXX='+Z' 13138 fi 13139 ;; 13140 aCC*) 13141 lt_prog_compiler_wl_CXX='-Wl,' 13142 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13143 case $host_cpu in 13144 hppa*64*|ia64*) 13145 # +Z the default 13146 ;; 13147 *) 13148 lt_prog_compiler_pic_CXX='+Z' 13149 ;; 13150 esac 13151 ;; 13152 *) 13153 ;; 13154 esac 13155 ;; 13156 interix*) 13157 # This is c89, which is MS Visual C++ (no shared libs) 13158 # Anyone wants to do a port? 13159 ;; 13160 irix5* | irix6* | nonstopux*) 13161 case $cc_basename in 13162 CC*) 13163 lt_prog_compiler_wl_CXX='-Wl,' 13164 lt_prog_compiler_static_CXX='-non_shared' 13165 # CC pic flag -KPIC is the default. 13166 ;; 13167 *) 13168 ;; 13169 esac 13170 ;; 13171 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13172 case $cc_basename in 13173 KCC*) 13174 # KAI C++ Compiler 13175 lt_prog_compiler_wl_CXX='--backend -Wl,' 13176 lt_prog_compiler_pic_CXX='-fPIC' 13177 ;; 13178 ecpc* ) 13179 # old Intel C++ for x86_64 which still supported -KPIC. 13180 lt_prog_compiler_wl_CXX='-Wl,' 13181 lt_prog_compiler_pic_CXX='-KPIC' 13182 lt_prog_compiler_static_CXX='-static' 13183 ;; 13184 icpc* ) 13185 # Intel C++, used to be incompatible with GCC. 13186 # ICC 10 doesn't accept -KPIC any more. 13187 lt_prog_compiler_wl_CXX='-Wl,' 13188 lt_prog_compiler_pic_CXX='-fPIC' 13189 lt_prog_compiler_static_CXX='-static' 13190 ;; 13191 pgCC* | pgcpp*) 13192 # Portland Group C++ compiler 13193 lt_prog_compiler_wl_CXX='-Wl,' 13194 lt_prog_compiler_pic_CXX='-fpic' 13195 lt_prog_compiler_static_CXX='-Bstatic' 13196 ;; 13197 cxx*) 13198 # Compaq C++ 13199 # Make sure the PIC flag is empty. It appears that all Alpha 13200 # Linux and Compaq Tru64 Unix objects are PIC. 13201 lt_prog_compiler_pic_CXX= 13202 lt_prog_compiler_static_CXX='-non_shared' 13203 ;; 13204 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13205 # IBM XL 8.0, 9.0 on PPC and BlueGene 13206 lt_prog_compiler_wl_CXX='-Wl,' 13207 lt_prog_compiler_pic_CXX='-qpic' 13208 lt_prog_compiler_static_CXX='-qstaticlink' 13209 ;; 13210 *) 13211 case `$CC -V 2>&1 | sed 5q` in 13212 *Sun\ C*) 13213 # Sun C++ 5.9 13214 lt_prog_compiler_pic_CXX='-KPIC' 13215 lt_prog_compiler_static_CXX='-Bstatic' 13216 lt_prog_compiler_wl_CXX='-Qoption ld ' 13217 ;; 13218 esac 13219 ;; 13220 esac 13221 ;; 13222 lynxos*) 13223 ;; 13224 m88k*) 13225 ;; 13226 mvs*) 13227 case $cc_basename in 13228 cxx*) 13229 lt_prog_compiler_pic_CXX='-W c,exportall' 13230 ;; 13231 *) 13232 ;; 13233 esac 13234 ;; 13235 netbsd*) 13236 ;; 13237 *qnx* | *nto*) 13238 # QNX uses GNU C++, but need to define -shared option too, otherwise 13239 # it will coredump. 13240 lt_prog_compiler_pic_CXX='-fPIC -shared' 13241 ;; 13242 osf3* | osf4* | osf5*) 13243 case $cc_basename in 13244 KCC*) 13245 lt_prog_compiler_wl_CXX='--backend -Wl,' 13246 ;; 13247 RCC*) 13248 # Rational C++ 2.4.1 13249 lt_prog_compiler_pic_CXX='-pic' 13250 ;; 13251 cxx*) 13252 # Digital/Compaq C++ 13253 lt_prog_compiler_wl_CXX='-Wl,' 13254 # Make sure the PIC flag is empty. It appears that all Alpha 13255 # Linux and Compaq Tru64 Unix objects are PIC. 13256 lt_prog_compiler_pic_CXX= 13257 lt_prog_compiler_static_CXX='-non_shared' 13258 ;; 13259 *) 13260 ;; 13261 esac 13262 ;; 13263 psos*) 13264 ;; 13265 solaris*) 13266 case $cc_basename in 13267 CC*) 13268 # Sun C++ 4.2, 5.x and Centerline C++ 13269 lt_prog_compiler_pic_CXX='-KPIC' 13270 lt_prog_compiler_static_CXX='-Bstatic' 13271 lt_prog_compiler_wl_CXX='-Qoption ld ' 13272 ;; 13273 gcx*) 13274 # Green Hills C++ Compiler 13275 lt_prog_compiler_pic_CXX='-PIC' 13276 ;; 13277 *) 13278 ;; 13279 esac 13280 ;; 13281 sunos4*) 13282 case $cc_basename in 13283 CC*) 13284 # Sun C++ 4.x 13285 lt_prog_compiler_pic_CXX='-pic' 13286 lt_prog_compiler_static_CXX='-Bstatic' 13287 ;; 13288 lcc*) 13289 # Lucid 13290 lt_prog_compiler_pic_CXX='-pic' 13291 ;; 13292 *) 13293 ;; 13294 esac 13295 ;; 13296 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13297 case $cc_basename in 13298 CC*) 13299 lt_prog_compiler_wl_CXX='-Wl,' 13300 lt_prog_compiler_pic_CXX='-KPIC' 13301 lt_prog_compiler_static_CXX='-Bstatic' 13302 ;; 13303 esac 13304 ;; 13305 tandem*) 13306 case $cc_basename in 13307 NCC*) 13308 # NonStop-UX NCC 3.20 13309 lt_prog_compiler_pic_CXX='-KPIC' 13310 ;; 13311 *) 13312 ;; 13313 esac 13314 ;; 13315 vxworks*) 13316 ;; 13317 *) 13318 lt_prog_compiler_can_build_shared_CXX=no 13319 ;; 13320 esac 13321 fi 13322 13323case $host_os in 13324 # For platforms which do not support PIC, -DPIC is meaningless: 13325 *djgpp*) 13326 lt_prog_compiler_pic_CXX= 13327 ;; 13328 *) 13329 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13330 ;; 13331esac 13332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13333$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13334 13335 13336 13337# 13338# Check to make sure the PIC flag actually works. 13339# 13340if test -n "$lt_prog_compiler_pic_CXX"; then 13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13342$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13343if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13344 $as_echo_n "(cached) " >&6 13345else 13346 lt_cv_prog_compiler_pic_works_CXX=no 13347 ac_outfile=conftest.$ac_objext 13348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13349 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13350 # Insert the option either (1) after the last *FLAGS variable, or 13351 # (2) before a word containing "conftest.", or (3) at the end. 13352 # Note that $ac_compile itself does not contain backslashes and begins 13353 # with a dollar sign (not a hyphen), so the echo should work correctly. 13354 # The option is referenced via a variable to avoid confusing sed. 13355 lt_compile=`echo "$ac_compile" | $SED \ 13356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13358 -e 's:$: $lt_compiler_flag:'` 13359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13360 (eval "$lt_compile" 2>conftest.err) 13361 ac_status=$? 13362 cat conftest.err >&5 13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13364 if (exit $ac_status) && test -s "$ac_outfile"; then 13365 # The compiler can only warn and ignore the option if not recognized 13366 # So say no if there are warnings other than the usual output. 13367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13370 lt_cv_prog_compiler_pic_works_CXX=yes 13371 fi 13372 fi 13373 $RM conftest* 13374 13375fi 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13377$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13378 13379if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13380 case $lt_prog_compiler_pic_CXX in 13381 "" | " "*) ;; 13382 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13383 esac 13384else 13385 lt_prog_compiler_pic_CXX= 13386 lt_prog_compiler_can_build_shared_CXX=no 13387fi 13388 13389fi 13390 13391 13392 13393# 13394# Check to make sure the static flag actually works. 13395# 13396wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13398$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13399if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13400 $as_echo_n "(cached) " >&6 13401else 13402 lt_cv_prog_compiler_static_works_CXX=no 13403 save_LDFLAGS="$LDFLAGS" 13404 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13405 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13406 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13407 # The linker can only warn and ignore the option if not recognized 13408 # So say no if there are warnings 13409 if test -s conftest.err; then 13410 # Append any errors to the config.log. 13411 cat conftest.err 1>&5 13412 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13414 if diff conftest.exp conftest.er2 >/dev/null; then 13415 lt_cv_prog_compiler_static_works_CXX=yes 13416 fi 13417 else 13418 lt_cv_prog_compiler_static_works_CXX=yes 13419 fi 13420 fi 13421 $RM -r conftest* 13422 LDFLAGS="$save_LDFLAGS" 13423 13424fi 13425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13426$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13427 13428if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13429 : 13430else 13431 lt_prog_compiler_static_CXX= 13432fi 13433 13434 13435 13436 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13438$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13439if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13440 $as_echo_n "(cached) " >&6 13441else 13442 lt_cv_prog_compiler_c_o_CXX=no 13443 $RM -r conftest 2>/dev/null 13444 mkdir conftest 13445 cd conftest 13446 mkdir out 13447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13448 13449 lt_compiler_flag="-o out/conftest2.$ac_objext" 13450 # Insert the option either (1) after the last *FLAGS variable, or 13451 # (2) before a word containing "conftest.", or (3) at the end. 13452 # Note that $ac_compile itself does not contain backslashes and begins 13453 # with a dollar sign (not a hyphen), so the echo should work correctly. 13454 lt_compile=`echo "$ac_compile" | $SED \ 13455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13457 -e 's:$: $lt_compiler_flag:'` 13458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13459 (eval "$lt_compile" 2>out/conftest.err) 13460 ac_status=$? 13461 cat out/conftest.err >&5 13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13463 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13464 then 13465 # The compiler can only warn and ignore the option if not recognized 13466 # So say no if there are warnings 13467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13470 lt_cv_prog_compiler_c_o_CXX=yes 13471 fi 13472 fi 13473 chmod u+w . 2>&5 13474 $RM conftest* 13475 # SGI C++ compiler will create directory out/ii_files/ for 13476 # template instantiation 13477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13478 $RM out/* && rmdir out 13479 cd .. 13480 $RM -r conftest 13481 $RM conftest* 13482 13483fi 13484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13485$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13486 13487 13488 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13490$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13491if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13492 $as_echo_n "(cached) " >&6 13493else 13494 lt_cv_prog_compiler_c_o_CXX=no 13495 $RM -r conftest 2>/dev/null 13496 mkdir conftest 13497 cd conftest 13498 mkdir out 13499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13500 13501 lt_compiler_flag="-o out/conftest2.$ac_objext" 13502 # Insert the option either (1) after the last *FLAGS variable, or 13503 # (2) before a word containing "conftest.", or (3) at the end. 13504 # Note that $ac_compile itself does not contain backslashes and begins 13505 # with a dollar sign (not a hyphen), so the echo should work correctly. 13506 lt_compile=`echo "$ac_compile" | $SED \ 13507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13509 -e 's:$: $lt_compiler_flag:'` 13510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13511 (eval "$lt_compile" 2>out/conftest.err) 13512 ac_status=$? 13513 cat out/conftest.err >&5 13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13515 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13516 then 13517 # The compiler can only warn and ignore the option if not recognized 13518 # So say no if there are warnings 13519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13522 lt_cv_prog_compiler_c_o_CXX=yes 13523 fi 13524 fi 13525 chmod u+w . 2>&5 13526 $RM conftest* 13527 # SGI C++ compiler will create directory out/ii_files/ for 13528 # template instantiation 13529 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13530 $RM out/* && rmdir out 13531 cd .. 13532 $RM -r conftest 13533 $RM conftest* 13534 13535fi 13536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13537$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13538 13539 13540 13541 13542hard_links="nottested" 13543if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13544 # do not overwrite the value of need_locks provided by the user 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13546$as_echo_n "checking if we can lock with hard links... " >&6; } 13547 hard_links=yes 13548 $RM conftest* 13549 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13550 touch conftest.a 13551 ln conftest.a conftest.b 2>&5 || hard_links=no 13552 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13554$as_echo "$hard_links" >&6; } 13555 if test "$hard_links" = no; then 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13557$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13558 need_locks=warn 13559 fi 13560else 13561 need_locks=no 13562fi 13563 13564 13565 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13567$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13568 13569 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13570 case $host_os in 13571 aix[4-9]*) 13572 # If we're using GNU nm, then we don't want the "-C" option. 13573 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13574 # Also, AIX nm treats weak defined symbols like other global defined 13575 # symbols, whereas GNU nm marks them as "W". 13576 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13577 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13578 else 13579 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' 13580 fi 13581 ;; 13582 pw32*) 13583 export_symbols_cmds_CXX="$ltdll_cmds" 13584 ;; 13585 cygwin* | mingw* | cegcc*) 13586 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' 13587 ;; 13588 *) 13589 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13590 ;; 13591 esac 13592 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13593 13594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13595$as_echo "$ld_shlibs_CXX" >&6; } 13596test "$ld_shlibs_CXX" = no && can_build_shared=no 13597 13598with_gnu_ld_CXX=$with_gnu_ld 13599 13600 13601 13602 13603 13604 13605# 13606# Do we need to explicitly link libc? 13607# 13608case "x$archive_cmds_need_lc_CXX" in 13609x|xyes) 13610 # Assume -lc should be added 13611 archive_cmds_need_lc_CXX=yes 13612 13613 if test "$enable_shared" = yes && test "$GCC" = yes; then 13614 case $archive_cmds_CXX in 13615 *'~'*) 13616 # FIXME: we may have to deal with multi-command sequences. 13617 ;; 13618 '$CC '*) 13619 # Test whether the compiler implicitly links with -lc since on some 13620 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13621 # to ld, don't add -lc before -lgcc. 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13623$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13624if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 13625 $as_echo_n "(cached) " >&6 13626else 13627 $RM conftest* 13628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13629 13630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13631 (eval $ac_compile) 2>&5 13632 ac_status=$? 13633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13634 test $ac_status = 0; } 2>conftest.err; then 13635 soname=conftest 13636 lib=conftest 13637 libobjs=conftest.$ac_objext 13638 deplibs= 13639 wl=$lt_prog_compiler_wl_CXX 13640 pic_flag=$lt_prog_compiler_pic_CXX 13641 compiler_flags=-v 13642 linker_flags=-v 13643 verstring= 13644 output_objdir=. 13645 libname=conftest 13646 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13647 allow_undefined_flag_CXX= 13648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13649 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13650 ac_status=$? 13651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13652 test $ac_status = 0; } 13653 then 13654 lt_cv_archive_cmds_need_lc_CXX=no 13655 else 13656 lt_cv_archive_cmds_need_lc_CXX=yes 13657 fi 13658 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13659 else 13660 cat conftest.err 1>&5 13661 fi 13662 $RM conftest* 13663 13664fi 13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 13666$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 13667 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13668 ;; 13669 esac 13670 fi 13671 ;; 13672esac 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13738$as_echo_n "checking dynamic linker characteristics... " >&6; } 13739 13740library_names_spec= 13741libname_spec='lib$name' 13742soname_spec= 13743shrext_cmds=".so" 13744postinstall_cmds= 13745postuninstall_cmds= 13746finish_cmds= 13747finish_eval= 13748shlibpath_var= 13749shlibpath_overrides_runpath=unknown 13750version_type=none 13751dynamic_linker="$host_os ld.so" 13752sys_lib_dlsearch_path_spec="/lib /usr/lib" 13753need_lib_prefix=unknown 13754hardcode_into_libs=no 13755 13756# when you set need_version to no, make sure it does not cause -set_version 13757# flags to be left without arguments 13758need_version=unknown 13759 13760case $host_os in 13761aix3*) 13762 version_type=linux 13763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13764 shlibpath_var=LIBPATH 13765 13766 # AIX 3 has no versioning support, so we append a major version to the name. 13767 soname_spec='${libname}${release}${shared_ext}$major' 13768 ;; 13769 13770aix[4-9]*) 13771 version_type=linux 13772 need_lib_prefix=no 13773 need_version=no 13774 hardcode_into_libs=yes 13775 if test "$host_cpu" = ia64; then 13776 # AIX 5 supports IA64 13777 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13778 shlibpath_var=LD_LIBRARY_PATH 13779 else 13780 # With GCC up to 2.95.x, collect2 would create an import file 13781 # for dependence libraries. The import file would start with 13782 # the line `#! .'. This would cause the generated library to 13783 # depend on `.', always an invalid library. This was fixed in 13784 # development snapshots of GCC prior to 3.0. 13785 case $host_os in 13786 aix4 | aix4.[01] | aix4.[01].*) 13787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13788 echo ' yes ' 13789 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13790 : 13791 else 13792 can_build_shared=no 13793 fi 13794 ;; 13795 esac 13796 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13797 # soname into executable. Probably we can add versioning support to 13798 # collect2, so additional links can be useful in future. 13799 if test "$aix_use_runtimelinking" = yes; then 13800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13801 # instead of lib<name>.a to let people know that these are not 13802 # typical AIX shared libraries. 13803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13804 else 13805 # We preserve .a as extension for shared libraries through AIX4.2 13806 # and later when we are not doing run time linking. 13807 library_names_spec='${libname}${release}.a $libname.a' 13808 soname_spec='${libname}${release}${shared_ext}$major' 13809 fi 13810 shlibpath_var=LIBPATH 13811 fi 13812 ;; 13813 13814amigaos*) 13815 case $host_cpu in 13816 powerpc) 13817 # Since July 2007 AmigaOS4 officially supports .so libraries. 13818 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13820 ;; 13821 m68k) 13822 library_names_spec='$libname.ixlibrary $libname.a' 13823 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13824 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 13825 ;; 13826 esac 13827 ;; 13828 13829beos*) 13830 library_names_spec='${libname}${shared_ext}' 13831 dynamic_linker="$host_os ld.so" 13832 shlibpath_var=LIBRARY_PATH 13833 ;; 13834 13835bsdi[45]*) 13836 version_type=linux 13837 need_version=no 13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13839 soname_spec='${libname}${release}${shared_ext}$major' 13840 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13841 shlibpath_var=LD_LIBRARY_PATH 13842 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13843 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13844 # the default ld.so.conf also contains /usr/contrib/lib and 13845 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13846 # libtool to hard-code these into programs 13847 ;; 13848 13849cygwin* | mingw* | pw32* | cegcc*) 13850 version_type=windows 13851 shrext_cmds=".dll" 13852 need_version=no 13853 need_lib_prefix=no 13854 13855 case $GCC,$host_os in 13856 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13857 library_names_spec='$libname.dll.a' 13858 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13859 postinstall_cmds='base_file=`basename \${file}`~ 13860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13861 dldir=$destdir/`dirname \$dlpath`~ 13862 test -d \$dldir || mkdir -p \$dldir~ 13863 $install_prog $dir/$dlname \$dldir/$dlname~ 13864 chmod a+x \$dldir/$dlname~ 13865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13867 fi' 13868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13869 dlpath=$dir/\$dldll~ 13870 $RM \$dlpath' 13871 shlibpath_overrides_runpath=yes 13872 13873 case $host_os in 13874 cygwin*) 13875 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13876 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13877 13878 ;; 13879 mingw* | cegcc*) 13880 # MinGW DLLs use traditional 'lib' prefix 13881 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13882 ;; 13883 pw32*) 13884 # pw32 DLLs use 'pw' prefix rather than 'lib' 13885 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13886 ;; 13887 esac 13888 ;; 13889 13890 *) 13891 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13892 ;; 13893 esac 13894 dynamic_linker='Win32 ld.exe' 13895 # FIXME: first we should search . and the directory the executable is in 13896 shlibpath_var=PATH 13897 ;; 13898 13899darwin* | rhapsody*) 13900 dynamic_linker="$host_os dyld" 13901 version_type=darwin 13902 need_lib_prefix=no 13903 need_version=no 13904 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13905 soname_spec='${libname}${release}${major}$shared_ext' 13906 shlibpath_overrides_runpath=yes 13907 shlibpath_var=DYLD_LIBRARY_PATH 13908 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13909 13910 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13911 ;; 13912 13913dgux*) 13914 version_type=linux 13915 need_lib_prefix=no 13916 need_version=no 13917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13918 soname_spec='${libname}${release}${shared_ext}$major' 13919 shlibpath_var=LD_LIBRARY_PATH 13920 ;; 13921 13922freebsd* | dragonfly*) 13923 # DragonFly does not have aout. When/if they implement a new 13924 # versioning mechanism, adjust this. 13925 if test -x /usr/bin/objformat; then 13926 objformat=`/usr/bin/objformat` 13927 else 13928 case $host_os in 13929 freebsd[23].*) objformat=aout ;; 13930 *) objformat=elf ;; 13931 esac 13932 fi 13933 version_type=freebsd-$objformat 13934 case $version_type in 13935 freebsd-elf*) 13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13937 need_version=no 13938 need_lib_prefix=no 13939 ;; 13940 freebsd-*) 13941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13942 need_version=yes 13943 ;; 13944 esac 13945 shlibpath_var=LD_LIBRARY_PATH 13946 case $host_os in 13947 freebsd2.*) 13948 shlibpath_overrides_runpath=yes 13949 ;; 13950 freebsd3.[01]* | freebsdelf3.[01]*) 13951 shlibpath_overrides_runpath=yes 13952 hardcode_into_libs=yes 13953 ;; 13954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13956 shlibpath_overrides_runpath=no 13957 hardcode_into_libs=yes 13958 ;; 13959 *) # from 4.6 on, and DragonFly 13960 shlibpath_overrides_runpath=yes 13961 hardcode_into_libs=yes 13962 ;; 13963 esac 13964 ;; 13965 13966gnu*) 13967 version_type=linux 13968 need_lib_prefix=no 13969 need_version=no 13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13971 soname_spec='${libname}${release}${shared_ext}$major' 13972 shlibpath_var=LD_LIBRARY_PATH 13973 hardcode_into_libs=yes 13974 ;; 13975 13976haiku*) 13977 version_type=linux 13978 need_lib_prefix=no 13979 need_version=no 13980 dynamic_linker="$host_os runtime_loader" 13981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13982 soname_spec='${libname}${release}${shared_ext}$major' 13983 shlibpath_var=LIBRARY_PATH 13984 shlibpath_overrides_runpath=yes 13985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 13986 hardcode_into_libs=yes 13987 ;; 13988 13989hpux9* | hpux10* | hpux11*) 13990 # Give a soname corresponding to the major version so that dld.sl refuses to 13991 # link against other versions. 13992 version_type=sunos 13993 need_lib_prefix=no 13994 need_version=no 13995 case $host_cpu in 13996 ia64*) 13997 shrext_cmds='.so' 13998 hardcode_into_libs=yes 13999 dynamic_linker="$host_os dld.so" 14000 shlibpath_var=LD_LIBRARY_PATH 14001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14003 soname_spec='${libname}${release}${shared_ext}$major' 14004 if test "X$HPUX_IA64_MODE" = X32; then 14005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14006 else 14007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14008 fi 14009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14010 ;; 14011 hppa*64*) 14012 shrext_cmds='.sl' 14013 hardcode_into_libs=yes 14014 dynamic_linker="$host_os dld.sl" 14015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14018 soname_spec='${libname}${release}${shared_ext}$major' 14019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14021 ;; 14022 *) 14023 shrext_cmds='.sl' 14024 dynamic_linker="$host_os dld.sl" 14025 shlibpath_var=SHLIB_PATH 14026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14028 soname_spec='${libname}${release}${shared_ext}$major' 14029 ;; 14030 esac 14031 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14032 postinstall_cmds='chmod 555 $lib' 14033 # or fails outright, so override atomically: 14034 install_override_mode=555 14035 ;; 14036 14037interix[3-9]*) 14038 version_type=linux 14039 need_lib_prefix=no 14040 need_version=no 14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14042 soname_spec='${libname}${release}${shared_ext}$major' 14043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14044 shlibpath_var=LD_LIBRARY_PATH 14045 shlibpath_overrides_runpath=no 14046 hardcode_into_libs=yes 14047 ;; 14048 14049irix5* | irix6* | nonstopux*) 14050 case $host_os in 14051 nonstopux*) version_type=nonstopux ;; 14052 *) 14053 if test "$lt_cv_prog_gnu_ld" = yes; then 14054 version_type=linux 14055 else 14056 version_type=irix 14057 fi ;; 14058 esac 14059 need_lib_prefix=no 14060 need_version=no 14061 soname_spec='${libname}${release}${shared_ext}$major' 14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14063 case $host_os in 14064 irix5* | nonstopux*) 14065 libsuff= shlibsuff= 14066 ;; 14067 *) 14068 case $LD in # libtool.m4 will add one of these switches to LD 14069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14070 libsuff= shlibsuff= libmagic=32-bit;; 14071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14072 libsuff=32 shlibsuff=N32 libmagic=N32;; 14073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14074 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14075 *) libsuff= shlibsuff= libmagic=never-match;; 14076 esac 14077 ;; 14078 esac 14079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14080 shlibpath_overrides_runpath=no 14081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14083 hardcode_into_libs=yes 14084 ;; 14085 14086# No shared lib support for Linux oldld, aout, or coff. 14087linux*oldld* | linux*aout* | linux*coff*) 14088 dynamic_linker=no 14089 ;; 14090 14091# This must be Linux ELF. 14092linux* | k*bsd*-gnu | kopensolaris*-gnu) 14093 version_type=linux 14094 need_lib_prefix=no 14095 need_version=no 14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14097 soname_spec='${libname}${release}${shared_ext}$major' 14098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14099 shlibpath_var=LD_LIBRARY_PATH 14100 shlibpath_overrides_runpath=no 14101 14102 # Some binutils ld are patched to set DT_RUNPATH 14103 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 14104 $as_echo_n "(cached) " >&6 14105else 14106 lt_cv_shlibpath_overrides_runpath=no 14107 save_LDFLAGS=$LDFLAGS 14108 save_libdir=$libdir 14109 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14110 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14112/* end confdefs.h. */ 14113 14114int 14115main () 14116{ 14117 14118 ; 14119 return 0; 14120} 14121_ACEOF 14122if ac_fn_cxx_try_link "$LINENO"; then : 14123 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14124 lt_cv_shlibpath_overrides_runpath=yes 14125fi 14126fi 14127rm -f core conftest.err conftest.$ac_objext \ 14128 conftest$ac_exeext conftest.$ac_ext 14129 LDFLAGS=$save_LDFLAGS 14130 libdir=$save_libdir 14131 14132fi 14133 14134 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14135 14136 # This implies no fast_install, which is unacceptable. 14137 # Some rework will be needed to allow for fast_install 14138 # before this can be enabled. 14139 hardcode_into_libs=yes 14140 14141 # Append ld.so.conf contents to the search path 14142 if test -f /etc/ld.so.conf; then 14143 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 14144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14145 fi 14146 14147 # We used to test for /lib/ld.so.1 and disable shared libraries on 14148 # powerpc, because MkLinux only supported shared libraries with the 14149 # GNU dynamic linker. Since this was broken with cross compilers, 14150 # most powerpc-linux boxes support dynamic linking these days and 14151 # people can always --disable-shared, the test was removed, and we 14152 # assume the GNU/Linux dynamic linker is in use. 14153 dynamic_linker='GNU/Linux ld.so' 14154 ;; 14155 14156netbsd*) 14157 version_type=sunos 14158 need_lib_prefix=no 14159 need_version=no 14160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14163 dynamic_linker='NetBSD (a.out) ld.so' 14164 else 14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14166 soname_spec='${libname}${release}${shared_ext}$major' 14167 dynamic_linker='NetBSD ld.elf_so' 14168 fi 14169 shlibpath_var=LD_LIBRARY_PATH 14170 shlibpath_overrides_runpath=yes 14171 hardcode_into_libs=yes 14172 ;; 14173 14174newsos6) 14175 version_type=linux 14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14177 shlibpath_var=LD_LIBRARY_PATH 14178 shlibpath_overrides_runpath=yes 14179 ;; 14180 14181*nto* | *qnx*) 14182 version_type=qnx 14183 need_lib_prefix=no 14184 need_version=no 14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14186 soname_spec='${libname}${release}${shared_ext}$major' 14187 shlibpath_var=LD_LIBRARY_PATH 14188 shlibpath_overrides_runpath=no 14189 hardcode_into_libs=yes 14190 dynamic_linker='ldqnx.so' 14191 ;; 14192 14193openbsd*) 14194 version_type=sunos 14195 sys_lib_dlsearch_path_spec="/usr/lib" 14196 need_lib_prefix=no 14197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14198 case $host_os in 14199 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14200 *) need_version=no ;; 14201 esac 14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14204 shlibpath_var=LD_LIBRARY_PATH 14205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14206 case $host_os in 14207 openbsd2.[89] | openbsd2.[89].*) 14208 shlibpath_overrides_runpath=no 14209 ;; 14210 *) 14211 shlibpath_overrides_runpath=yes 14212 ;; 14213 esac 14214 else 14215 shlibpath_overrides_runpath=yes 14216 fi 14217 ;; 14218 14219os2*) 14220 libname_spec='$name' 14221 shrext_cmds=".dll" 14222 need_lib_prefix=no 14223 library_names_spec='$libname${shared_ext} $libname.a' 14224 dynamic_linker='OS/2 ld.exe' 14225 shlibpath_var=LIBPATH 14226 ;; 14227 14228osf3* | osf4* | osf5*) 14229 version_type=osf 14230 need_lib_prefix=no 14231 need_version=no 14232 soname_spec='${libname}${release}${shared_ext}$major' 14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14234 shlibpath_var=LD_LIBRARY_PATH 14235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14237 ;; 14238 14239rdos*) 14240 dynamic_linker=no 14241 ;; 14242 14243solaris*) 14244 version_type=linux 14245 need_lib_prefix=no 14246 need_version=no 14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14248 soname_spec='${libname}${release}${shared_ext}$major' 14249 shlibpath_var=LD_LIBRARY_PATH 14250 shlibpath_overrides_runpath=yes 14251 hardcode_into_libs=yes 14252 # ldd complains unless libraries are executable 14253 postinstall_cmds='chmod +x $lib' 14254 ;; 14255 14256sunos4*) 14257 version_type=sunos 14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14260 shlibpath_var=LD_LIBRARY_PATH 14261 shlibpath_overrides_runpath=yes 14262 if test "$with_gnu_ld" = yes; then 14263 need_lib_prefix=no 14264 fi 14265 need_version=yes 14266 ;; 14267 14268sysv4 | sysv4.3*) 14269 version_type=linux 14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14271 soname_spec='${libname}${release}${shared_ext}$major' 14272 shlibpath_var=LD_LIBRARY_PATH 14273 case $host_vendor in 14274 sni) 14275 shlibpath_overrides_runpath=no 14276 need_lib_prefix=no 14277 runpath_var=LD_RUN_PATH 14278 ;; 14279 siemens) 14280 need_lib_prefix=no 14281 ;; 14282 motorola) 14283 need_lib_prefix=no 14284 need_version=no 14285 shlibpath_overrides_runpath=no 14286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14287 ;; 14288 esac 14289 ;; 14290 14291sysv4*MP*) 14292 if test -d /usr/nec ;then 14293 version_type=linux 14294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14295 soname_spec='$libname${shared_ext}.$major' 14296 shlibpath_var=LD_LIBRARY_PATH 14297 fi 14298 ;; 14299 14300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14301 version_type=freebsd-elf 14302 need_lib_prefix=no 14303 need_version=no 14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14305 soname_spec='${libname}${release}${shared_ext}$major' 14306 shlibpath_var=LD_LIBRARY_PATH 14307 shlibpath_overrides_runpath=yes 14308 hardcode_into_libs=yes 14309 if test "$with_gnu_ld" = yes; then 14310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14311 else 14312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14313 case $host_os in 14314 sco3.2v5*) 14315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14316 ;; 14317 esac 14318 fi 14319 sys_lib_dlsearch_path_spec='/usr/lib' 14320 ;; 14321 14322tpf*) 14323 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14324 version_type=linux 14325 need_lib_prefix=no 14326 need_version=no 14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14328 shlibpath_var=LD_LIBRARY_PATH 14329 shlibpath_overrides_runpath=no 14330 hardcode_into_libs=yes 14331 ;; 14332 14333uts4*) 14334 version_type=linux 14335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14336 soname_spec='${libname}${release}${shared_ext}$major' 14337 shlibpath_var=LD_LIBRARY_PATH 14338 ;; 14339 14340*) 14341 dynamic_linker=no 14342 ;; 14343esac 14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14345$as_echo "$dynamic_linker" >&6; } 14346test "$dynamic_linker" = no && can_build_shared=no 14347 14348variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14349if test "$GCC" = yes; then 14350 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14351fi 14352 14353if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14354 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14355fi 14356if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14357 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14358fi 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14398$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14399hardcode_action_CXX= 14400if test -n "$hardcode_libdir_flag_spec_CXX" || 14401 test -n "$runpath_var_CXX" || 14402 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14403 14404 # We can hardcode non-existent directories. 14405 if test "$hardcode_direct_CXX" != no && 14406 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14407 # have to relink, otherwise we might link with an installed library 14408 # when we should be linking with a yet-to-be-installed one 14409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14410 test "$hardcode_minus_L_CXX" != no; then 14411 # Linking always hardcodes the temporary library directory. 14412 hardcode_action_CXX=relink 14413 else 14414 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14415 hardcode_action_CXX=immediate 14416 fi 14417else 14418 # We cannot hardcode anything, or else we can only hardcode existing 14419 # directories. 14420 hardcode_action_CXX=unsupported 14421fi 14422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14423$as_echo "$hardcode_action_CXX" >&6; } 14424 14425if test "$hardcode_action_CXX" = relink || 14426 test "$inherit_rpath_CXX" = yes; then 14427 # Fast installation is not supported 14428 enable_fast_install=no 14429elif test "$shlibpath_overrides_runpath" = yes || 14430 test "$enable_shared" = no; then 14431 # Fast installation is not necessary 14432 enable_fast_install=needless 14433fi 14434 14435 14436 14437 14438 14439 14440 14441 fi # test -n "$compiler" 14442 14443 CC=$lt_save_CC 14444 LDCXX=$LD 14445 LD=$lt_save_LD 14446 GCC=$lt_save_GCC 14447 with_gnu_ld=$lt_save_with_gnu_ld 14448 lt_cv_path_LDCXX=$lt_cv_path_LD 14449 lt_cv_path_LD=$lt_save_path_LD 14450 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14451 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14452fi # test "$_lt_caught_CXX_error" != yes 14453 14454ac_ext=c 14455ac_cpp='$CPP $CPPFLAGS' 14456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14458ac_compiler_gnu=$ac_cv_c_compiler_gnu 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 ac_config_commands="$ac_config_commands libtool" 14473 14474 14475 14476 14477# Only expand once: 14478 14479 14480 14481 14482 14483 14484# The cast to long int works around a bug in the HP C Compiler 14485# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14486# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14487# This bug is HP SR number 8606223364. 14488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 14489$as_echo_n "checking size of void *... " >&6; } 14490if test "${ac_cv_sizeof_void_p+set}" = set; then : 14491 $as_echo_n "(cached) " >&6 14492else 14493 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 14494 14495else 14496 if test "$ac_cv_type_void_p" = yes; then 14497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14499{ as_fn_set_status 77 14500as_fn_error "cannot compute sizeof (void *) 14501See \`config.log' for more details." "$LINENO" 5; }; } 14502 else 14503 ac_cv_sizeof_void_p=0 14504 fi 14505fi 14506 14507fi 14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 14509$as_echo "$ac_cv_sizeof_void_p" >&6; } 14510 14511 14512 14513cat >>confdefs.h <<_ACEOF 14514#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14515_ACEOF 14516 14517 14518 14519if test "${multilib}" = "yes"; then 14520 multilib_arg="--enable-multilib" 14521else 14522 multilib_arg= 14523fi 14524 14525# Get target configury. 14526unset TSAN_SUPPORTED 14527. ${srcdir}/configure.tgt 14528 if test "x$TSAN_SUPPORTED" = "xyes"; then 14529 TSAN_SUPPORTED_TRUE= 14530 TSAN_SUPPORTED_FALSE='#' 14531else 14532 TSAN_SUPPORTED_TRUE='#' 14533 TSAN_SUPPORTED_FALSE= 14534fi 14535 14536 14537case "$host" in 14538 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;; 14539 *) MAC_INTERPOSE=false ;; 14540esac 14541 if $MAC_INTERPOSE; then 14542 USING_MAC_INTERPOSE_TRUE= 14543 USING_MAC_INTERPOSE_FALSE='#' 14544else 14545 USING_MAC_INTERPOSE_TRUE='#' 14546 USING_MAC_INTERPOSE_FALSE= 14547fi 14548 14549 14550ac_config_files="$ac_config_files Makefile" 14551 14552 14553ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile asan/Makefile" 14554 14555 14556if test "x$TSAN_SUPPORTED" = "xyes"; then 14557 ac_config_files="$ac_config_files tsan/Makefile" 14558 14559fi 14560 14561cat >confcache <<\_ACEOF 14562# This file is a shell script that caches the results of configure 14563# tests run on this system so they can be shared between configure 14564# scripts and configure runs, see configure's option --config-cache. 14565# It is not useful on other systems. If it contains results you don't 14566# want to keep, you may remove or edit it. 14567# 14568# config.status only pays attention to the cache file if you give it 14569# the --recheck option to rerun configure. 14570# 14571# `ac_cv_env_foo' variables (set or unset) will be overridden when 14572# loading this file, other *unset* `ac_cv_foo' will be assigned the 14573# following values. 14574 14575_ACEOF 14576 14577# The following way of writing the cache mishandles newlines in values, 14578# but we know of no workaround that is simple, portable, and efficient. 14579# So, we kill variables containing newlines. 14580# Ultrix sh set writes to stderr and can't be redirected directly, 14581# and sets the high bit in the cache file unless we assign to the vars. 14582( 14583 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14584 eval ac_val=\$$ac_var 14585 case $ac_val in #( 14586 *${as_nl}*) 14587 case $ac_var in #( 14588 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14589$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14590 esac 14591 case $ac_var in #( 14592 _ | IFS | as_nl) ;; #( 14593 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14594 *) { eval $ac_var=; unset $ac_var;} ;; 14595 esac ;; 14596 esac 14597 done 14598 14599 (set) 2>&1 | 14600 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14601 *${as_nl}ac_space=\ *) 14602 # `set' does not quote correctly, so add quotes: double-quote 14603 # substitution turns \\\\ into \\, and sed turns \\ into \. 14604 sed -n \ 14605 "s/'/'\\\\''/g; 14606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14607 ;; #( 14608 *) 14609 # `set' quotes correctly as required by POSIX, so do not add quotes. 14610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14611 ;; 14612 esac | 14613 sort 14614) | 14615 sed ' 14616 /^ac_cv_env_/b end 14617 t clear 14618 :clear 14619 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14620 t end 14621 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14622 :end' >>confcache 14623if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14624 if test -w "$cache_file"; then 14625 test "x$cache_file" != "x/dev/null" && 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14627$as_echo "$as_me: updating cache $cache_file" >&6;} 14628 cat confcache >$cache_file 14629 else 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14631$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14632 fi 14633fi 14634rm -f confcache 14635 14636test "x$prefix" = xNONE && prefix=$ac_default_prefix 14637# Let make expand exec_prefix. 14638test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14639 14640# Transform confdefs.h into DEFS. 14641# Protect against shell expansion while executing Makefile rules. 14642# Protect against Makefile macro expansion. 14643# 14644# If the first sed substitution is executed (which looks for macros that 14645# take arguments), then branch to the quote section. Otherwise, 14646# look for a macro that doesn't take arguments. 14647ac_script=' 14648:mline 14649/\\$/{ 14650 N 14651 s,\\\n,, 14652 b mline 14653} 14654t clear 14655:clear 14656s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 14657t quote 14658s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 14659t quote 14660b any 14661:quote 14662s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 14663s/\[/\\&/g 14664s/\]/\\&/g 14665s/\$/$$/g 14666H 14667:any 14668${ 14669 g 14670 s/^\n// 14671 s/\n/ /g 14672 p 14673} 14674' 14675DEFS=`sed -n "$ac_script" confdefs.h` 14676 14677 14678ac_libobjs= 14679ac_ltlibobjs= 14680for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14681 # 1. Remove the extension, and $U if already installed. 14682 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14683 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14684 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14685 # will be set to the directory where LIBOBJS objects are built. 14686 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14687 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14688done 14689LIBOBJS=$ac_libobjs 14690 14691LTLIBOBJS=$ac_ltlibobjs 14692 14693 14694 if test -n "$EXEEXT"; then 14695 am__EXEEXT_TRUE= 14696 am__EXEEXT_FALSE='#' 14697else 14698 am__EXEEXT_TRUE='#' 14699 am__EXEEXT_FALSE= 14700fi 14701 14702if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14703 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 14704Usually this means the macro was only invoked conditionally." "$LINENO" 5 14705fi 14706if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14707 as_fn_error "conditional \"AMDEP\" was never defined. 14708Usually this means the macro was only invoked conditionally." "$LINENO" 5 14709fi 14710if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14711 as_fn_error "conditional \"am__fastdepCC\" was never defined. 14712Usually this means the macro was only invoked conditionally." "$LINENO" 5 14713fi 14714if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 14715 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 14716Usually this means the macro was only invoked conditionally." "$LINENO" 5 14717fi 14718if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 14719 as_fn_error "conditional \"am__fastdepCCAS\" was never defined. 14720Usually this means the macro was only invoked conditionally." "$LINENO" 5 14721fi 14722if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then 14723 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined. 14724Usually this means the macro was only invoked conditionally." "$LINENO" 5 14725fi 14726if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then 14727 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined. 14728Usually this means the macro was only invoked conditionally." "$LINENO" 5 14729fi 14730 14731: ${CONFIG_STATUS=./config.status} 14732ac_write_fail=0 14733ac_clean_files_save=$ac_clean_files 14734ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14735{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14736$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14737as_write_fail=0 14738cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14739#! $SHELL 14740# Generated by $as_me. 14741# Run this file to recreate the current configuration. 14742# Compiler output produced by configure, useful for debugging 14743# configure, is in config.log if it exists. 14744 14745debug=false 14746ac_cs_recheck=false 14747ac_cs_silent=false 14748 14749SHELL=\${CONFIG_SHELL-$SHELL} 14750export SHELL 14751_ASEOF 14752cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14753## -------------------- ## 14754## M4sh Initialization. ## 14755## -------------------- ## 14756 14757# Be more Bourne compatible 14758DUALCASE=1; export DUALCASE # for MKS sh 14759if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14760 emulate sh 14761 NULLCMD=: 14762 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14763 # is contrary to our usage. Disable this feature. 14764 alias -g '${1+"$@"}'='"$@"' 14765 setopt NO_GLOB_SUBST 14766else 14767 case `(set -o) 2>/dev/null` in #( 14768 *posix*) : 14769 set -o posix ;; #( 14770 *) : 14771 ;; 14772esac 14773fi 14774 14775 14776as_nl=' 14777' 14778export as_nl 14779# Printing a long string crashes Solaris 7 /usr/bin/printf. 14780as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14781as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14782as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14783# Prefer a ksh shell builtin over an external printf program on Solaris, 14784# but without wasting forks for bash or zsh. 14785if test -z "$BASH_VERSION$ZSH_VERSION" \ 14786 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14787 as_echo='print -r --' 14788 as_echo_n='print -rn --' 14789elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14790 as_echo='printf %s\n' 14791 as_echo_n='printf %s' 14792else 14793 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14794 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14795 as_echo_n='/usr/ucb/echo -n' 14796 else 14797 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14798 as_echo_n_body='eval 14799 arg=$1; 14800 case $arg in #( 14801 *"$as_nl"*) 14802 expr "X$arg" : "X\\(.*\\)$as_nl"; 14803 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14804 esac; 14805 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14806 ' 14807 export as_echo_n_body 14808 as_echo_n='sh -c $as_echo_n_body as_echo' 14809 fi 14810 export as_echo_body 14811 as_echo='sh -c $as_echo_body as_echo' 14812fi 14813 14814# The user is always right. 14815if test "${PATH_SEPARATOR+set}" != set; then 14816 PATH_SEPARATOR=: 14817 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14818 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14819 PATH_SEPARATOR=';' 14820 } 14821fi 14822 14823 14824# IFS 14825# We need space, tab and new line, in precisely that order. Quoting is 14826# there to prevent editors from complaining about space-tab. 14827# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14828# splitting by setting IFS to empty value.) 14829IFS=" "" $as_nl" 14830 14831# Find who we are. Look in the path if we contain no directory separator. 14832case $0 in #(( 14833 *[\\/]* ) as_myself=$0 ;; 14834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14835for as_dir in $PATH 14836do 14837 IFS=$as_save_IFS 14838 test -z "$as_dir" && as_dir=. 14839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14840 done 14841IFS=$as_save_IFS 14842 14843 ;; 14844esac 14845# We did not find ourselves, most probably we were run as `sh COMMAND' 14846# in which case we are not to be found in the path. 14847if test "x$as_myself" = x; then 14848 as_myself=$0 14849fi 14850if test ! -f "$as_myself"; then 14851 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14852 exit 1 14853fi 14854 14855# Unset variables that we do not need and which cause bugs (e.g. in 14856# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14857# suppresses any "Segmentation fault" message there. '((' could 14858# trigger a bug in pdksh 5.2.14. 14859for as_var in BASH_ENV ENV MAIL MAILPATH 14860do eval test x\${$as_var+set} = xset \ 14861 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14862done 14863PS1='$ ' 14864PS2='> ' 14865PS4='+ ' 14866 14867# NLS nuisances. 14868LC_ALL=C 14869export LC_ALL 14870LANGUAGE=C 14871export LANGUAGE 14872 14873# CDPATH. 14874(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14875 14876 14877# as_fn_error ERROR [LINENO LOG_FD] 14878# --------------------------------- 14879# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14880# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14881# script with status $?, using 1 if that was 0. 14882as_fn_error () 14883{ 14884 as_status=$?; test $as_status -eq 0 && as_status=1 14885 if test "$3"; then 14886 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14887 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 14888 fi 14889 $as_echo "$as_me: error: $1" >&2 14890 as_fn_exit $as_status 14891} # as_fn_error 14892 14893 14894# as_fn_set_status STATUS 14895# ----------------------- 14896# Set $? to STATUS, without forking. 14897as_fn_set_status () 14898{ 14899 return $1 14900} # as_fn_set_status 14901 14902# as_fn_exit STATUS 14903# ----------------- 14904# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14905as_fn_exit () 14906{ 14907 set +e 14908 as_fn_set_status $1 14909 exit $1 14910} # as_fn_exit 14911 14912# as_fn_unset VAR 14913# --------------- 14914# Portably unset VAR. 14915as_fn_unset () 14916{ 14917 { eval $1=; unset $1;} 14918} 14919as_unset=as_fn_unset 14920# as_fn_append VAR VALUE 14921# ---------------------- 14922# Append the text in VALUE to the end of the definition contained in VAR. Take 14923# advantage of any shell optimizations that allow amortized linear growth over 14924# repeated appends, instead of the typical quadratic growth present in naive 14925# implementations. 14926if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14927 eval 'as_fn_append () 14928 { 14929 eval $1+=\$2 14930 }' 14931else 14932 as_fn_append () 14933 { 14934 eval $1=\$$1\$2 14935 } 14936fi # as_fn_append 14937 14938# as_fn_arith ARG... 14939# ------------------ 14940# Perform arithmetic evaluation on the ARGs, and store the result in the 14941# global $as_val. Take advantage of shells that can avoid forks. The arguments 14942# must be portable across $(()) and expr. 14943if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14944 eval 'as_fn_arith () 14945 { 14946 as_val=$(( $* )) 14947 }' 14948else 14949 as_fn_arith () 14950 { 14951 as_val=`expr "$@" || test $? -eq 1` 14952 } 14953fi # as_fn_arith 14954 14955 14956if expr a : '\(a\)' >/dev/null 2>&1 && 14957 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14958 as_expr=expr 14959else 14960 as_expr=false 14961fi 14962 14963if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14964 as_basename=basename 14965else 14966 as_basename=false 14967fi 14968 14969if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14970 as_dirname=dirname 14971else 14972 as_dirname=false 14973fi 14974 14975as_me=`$as_basename -- "$0" || 14976$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14977 X"$0" : 'X\(//\)$' \| \ 14978 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14979$as_echo X/"$0" | 14980 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14981 s//\1/ 14982 q 14983 } 14984 /^X\/\(\/\/\)$/{ 14985 s//\1/ 14986 q 14987 } 14988 /^X\/\(\/\).*/{ 14989 s//\1/ 14990 q 14991 } 14992 s/.*/./; q'` 14993 14994# Avoid depending upon Character Ranges. 14995as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14996as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14997as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14998as_cr_digits='0123456789' 14999as_cr_alnum=$as_cr_Letters$as_cr_digits 15000 15001ECHO_C= ECHO_N= ECHO_T= 15002case `echo -n x` in #((((( 15003-n*) 15004 case `echo 'xy\c'` in 15005 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15006 xy) ECHO_C='\c';; 15007 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15008 ECHO_T=' ';; 15009 esac;; 15010*) 15011 ECHO_N='-n';; 15012esac 15013 15014rm -f conf$$ conf$$.exe conf$$.file 15015if test -d conf$$.dir; then 15016 rm -f conf$$.dir/conf$$.file 15017else 15018 rm -f conf$$.dir 15019 mkdir conf$$.dir 2>/dev/null 15020fi 15021if (echo >conf$$.file) 2>/dev/null; then 15022 if ln -s conf$$.file conf$$ 2>/dev/null; then 15023 as_ln_s='ln -s' 15024 # ... but there are two gotchas: 15025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15027 # In both cases, we have to default to `cp -p'. 15028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15029 as_ln_s='cp -p' 15030 elif ln conf$$.file conf$$ 2>/dev/null; then 15031 as_ln_s=ln 15032 else 15033 as_ln_s='cp -p' 15034 fi 15035else 15036 as_ln_s='cp -p' 15037fi 15038rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15039rmdir conf$$.dir 2>/dev/null 15040 15041 15042# as_fn_mkdir_p 15043# ------------- 15044# Create "$as_dir" as a directory, including parents if necessary. 15045as_fn_mkdir_p () 15046{ 15047 15048 case $as_dir in #( 15049 -*) as_dir=./$as_dir;; 15050 esac 15051 test -d "$as_dir" || eval $as_mkdir_p || { 15052 as_dirs= 15053 while :; do 15054 case $as_dir in #( 15055 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15056 *) as_qdir=$as_dir;; 15057 esac 15058 as_dirs="'$as_qdir' $as_dirs" 15059 as_dir=`$as_dirname -- "$as_dir" || 15060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15061 X"$as_dir" : 'X\(//\)[^/]' \| \ 15062 X"$as_dir" : 'X\(//\)$' \| \ 15063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15064$as_echo X"$as_dir" | 15065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15066 s//\1/ 15067 q 15068 } 15069 /^X\(\/\/\)[^/].*/{ 15070 s//\1/ 15071 q 15072 } 15073 /^X\(\/\/\)$/{ 15074 s//\1/ 15075 q 15076 } 15077 /^X\(\/\).*/{ 15078 s//\1/ 15079 q 15080 } 15081 s/.*/./; q'` 15082 test -d "$as_dir" && break 15083 done 15084 test -z "$as_dirs" || eval "mkdir $as_dirs" 15085 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 15086 15087 15088} # as_fn_mkdir_p 15089if mkdir -p . 2>/dev/null; then 15090 as_mkdir_p='mkdir -p "$as_dir"' 15091else 15092 test -d ./-p && rmdir ./-p 15093 as_mkdir_p=false 15094fi 15095 15096if test -x / >/dev/null 2>&1; then 15097 as_test_x='test -x' 15098else 15099 if ls -dL / >/dev/null 2>&1; then 15100 as_ls_L_option=L 15101 else 15102 as_ls_L_option= 15103 fi 15104 as_test_x=' 15105 eval sh -c '\'' 15106 if test -d "$1"; then 15107 test -d "$1/."; 15108 else 15109 case $1 in #( 15110 -*)set "./$1";; 15111 esac; 15112 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15113 ???[sx]*):;;*)false;;esac;fi 15114 '\'' sh 15115 ' 15116fi 15117as_executable_p=$as_test_x 15118 15119# Sed expression to map a string onto a valid CPP name. 15120as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15121 15122# Sed expression to map a string onto a valid variable name. 15123as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15124 15125 15126exec 6>&1 15127## ----------------------------------- ## 15128## Main body of $CONFIG_STATUS script. ## 15129## ----------------------------------- ## 15130_ASEOF 15131test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15132 15133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15134# Save the log message, to keep $0 and so on meaningful, and to 15135# report actual input values of CONFIG_FILES etc. instead of their 15136# values after options handling. 15137ac_log=" 15138This file was extended by package-unused $as_me version-unused, which was 15139generated by GNU Autoconf 2.64. Invocation command line was 15140 15141 CONFIG_FILES = $CONFIG_FILES 15142 CONFIG_HEADERS = $CONFIG_HEADERS 15143 CONFIG_LINKS = $CONFIG_LINKS 15144 CONFIG_COMMANDS = $CONFIG_COMMANDS 15145 $ $0 $@ 15146 15147on `(hostname || uname -n) 2>/dev/null | sed 1q` 15148" 15149 15150_ACEOF 15151 15152case $ac_config_files in *" 15153"*) set x $ac_config_files; shift; ac_config_files=$*;; 15154esac 15155 15156 15157 15158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15159# Files that config.status was made for. 15160config_files="$ac_config_files" 15161config_commands="$ac_config_commands" 15162 15163_ACEOF 15164 15165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15166ac_cs_usage="\ 15167\`$as_me' instantiates files and other configuration actions 15168from templates according to the current configuration. Unless the files 15169and actions are specified as TAGs, all are instantiated by default. 15170 15171Usage: $0 [OPTION]... [TAG]... 15172 15173 -h, --help print this help, then exit 15174 -V, --version print version number and configuration settings, then exit 15175 -q, --quiet, --silent 15176 do not print progress messages 15177 -d, --debug don't remove temporary files 15178 --recheck update $as_me by reconfiguring in the same conditions 15179 --file=FILE[:TEMPLATE] 15180 instantiate the configuration file FILE 15181 15182Configuration files: 15183$config_files 15184 15185Configuration commands: 15186$config_commands 15187 15188Report bugs to <libsanitizer>." 15189 15190_ACEOF 15191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15192ac_cs_version="\\ 15193package-unused config.status version-unused 15194configured by $0, generated by GNU Autoconf 2.64, 15195 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15196 15197Copyright (C) 2009 Free Software Foundation, Inc. 15198This config.status script is free software; the Free Software Foundation 15199gives unlimited permission to copy, distribute and modify it." 15200 15201ac_pwd='$ac_pwd' 15202srcdir='$srcdir' 15203INSTALL='$INSTALL' 15204MKDIR_P='$MKDIR_P' 15205AWK='$AWK' 15206test -n "\$AWK" || AWK=awk 15207_ACEOF 15208 15209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15210# The default lists apply if the user does not specify any file. 15211ac_need_defaults=: 15212while test $# != 0 15213do 15214 case $1 in 15215 --*=*) 15216 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15217 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15218 ac_shift=: 15219 ;; 15220 *) 15221 ac_option=$1 15222 ac_optarg=$2 15223 ac_shift=shift 15224 ;; 15225 esac 15226 15227 case $ac_option in 15228 # Handling of the options. 15229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15230 ac_cs_recheck=: ;; 15231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15232 $as_echo "$ac_cs_version"; exit ;; 15233 --debug | --debu | --deb | --de | --d | -d ) 15234 debug=: ;; 15235 --file | --fil | --fi | --f ) 15236 $ac_shift 15237 case $ac_optarg in 15238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15239 esac 15240 as_fn_append CONFIG_FILES " '$ac_optarg'" 15241 ac_need_defaults=false;; 15242 --he | --h | --help | --hel | -h ) 15243 $as_echo "$ac_cs_usage"; exit ;; 15244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15245 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15246 ac_cs_silent=: ;; 15247 15248 # This is an error. 15249 -*) as_fn_error "unrecognized option: \`$1' 15250Try \`$0 --help' for more information." ;; 15251 15252 *) as_fn_append ac_config_targets " $1" 15253 ac_need_defaults=false ;; 15254 15255 esac 15256 shift 15257done 15258 15259ac_configure_extra_args= 15260 15261if $ac_cs_silent; then 15262 exec 6>/dev/null 15263 ac_configure_extra_args="$ac_configure_extra_args --silent" 15264fi 15265 15266_ACEOF 15267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15268if \$ac_cs_recheck; then 15269 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15270 shift 15271 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15272 CONFIG_SHELL='$SHELL' 15273 export CONFIG_SHELL 15274 exec "\$@" 15275fi 15276 15277_ACEOF 15278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15279exec 5>>config.log 15280{ 15281 echo 15282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15283## Running $as_me. ## 15284_ASBOX 15285 $as_echo "$ac_log" 15286} >&5 15287 15288_ACEOF 15289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15290# 15291# INIT-COMMANDS 15292# 15293 15294srcdir="$srcdir" 15295host="$host" 15296target="$target" 15297with_multisubdir="$with_multisubdir" 15298with_multisrctop="$with_multisrctop" 15299with_target_subdir="$with_target_subdir" 15300ac_configure_args="${multilib_arg} ${ac_configure_args}" 15301multi_basedir="$multi_basedir" 15302CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 15303CC="$CC" 15304CXX="$CXX" 15305GFORTRAN="$GFORTRAN" 15306GCJ="$GCJ" 15307AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15308 15309 15310# The HP-UX ksh and POSIX shell print the target directory to stdout 15311# if CDPATH is set. 15312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15313 15314sed_quote_subst='$sed_quote_subst' 15315double_quote_subst='$double_quote_subst' 15316delay_variable_subst='$delay_variable_subst' 15317macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15318macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15319enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15320enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15321pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15322enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15323SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15324ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15325host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15326host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15327host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15328build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15329build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15330build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15331SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15332Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15333GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15334EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15335FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15336LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15337NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15338LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15339max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15340ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15341exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15342lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15343lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15344lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15345reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15346reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15347OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15348deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15349file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15350AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15351AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15352STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15353RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15354old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15355old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15356old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15357lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15358CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15359CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15360compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15361GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15362lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15363lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15364lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15365lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 15366objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15367MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15368lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15369lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15370lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15371lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15372lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15373need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15374DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15375NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15376LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15377OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15378OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15379libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15380shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15381extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15382archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15383enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15384export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15385whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15386compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15387old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15388old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15389archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15390archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15391module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15392module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15393with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15394allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15395no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15396hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15397hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15398hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15399hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15400hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15401hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15402hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15403hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15404inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15405link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15406fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15407always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15408export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15409exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15410include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15411prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15412file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15413variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15414need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15415need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15416version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15417runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15418shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15419shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15420libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15421library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15422soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15423install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15424postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15425postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15426finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15427finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15428hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15429sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15430sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15431hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15432enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15433enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15434enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15435old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15436striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15437compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 15438predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 15439postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 15440predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 15441postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 15442compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 15443LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 15444reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 15445reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15446old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15447compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 15448GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 15449lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 15450lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 15451lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 15452lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 15453lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 15454archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 15455enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 15456export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15457whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15458compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 15459old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15460old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15461archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15462archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15463module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15464module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15465with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 15466allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15467no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15468hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15469hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 15470hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 15471hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 15472hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 15473hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 15474hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 15475hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 15476inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 15477link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 15478fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 15479always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 15480export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15481exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15482include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15483prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15484file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 15485hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 15486compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 15487predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15488postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15489predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 15490postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 15491compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 15492 15493LTCC='$LTCC' 15494LTCFLAGS='$LTCFLAGS' 15495compiler='$compiler_DEFAULT' 15496 15497# A function that is used when there is no print builtin or printf. 15498func_fallback_echo () 15499{ 15500 eval 'cat <<_LTECHO_EOF 15501\$1 15502_LTECHO_EOF' 15503} 15504 15505# Quote evaled strings. 15506for var in SHELL \ 15507ECHO \ 15508SED \ 15509GREP \ 15510EGREP \ 15511FGREP \ 15512LD \ 15513NM \ 15514LN_S \ 15515lt_SP2NL \ 15516lt_NL2SP \ 15517reload_flag \ 15518OBJDUMP \ 15519deplibs_check_method \ 15520file_magic_cmd \ 15521AR \ 15522AR_FLAGS \ 15523STRIP \ 15524RANLIB \ 15525CC \ 15526CFLAGS \ 15527compiler \ 15528lt_cv_sys_global_symbol_pipe \ 15529lt_cv_sys_global_symbol_to_cdecl \ 15530lt_cv_sys_global_symbol_to_c_name_address \ 15531lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15532lt_prog_compiler_no_builtin_flag \ 15533lt_prog_compiler_wl \ 15534lt_prog_compiler_pic \ 15535lt_prog_compiler_static \ 15536lt_cv_prog_compiler_c_o \ 15537need_locks \ 15538DSYMUTIL \ 15539NMEDIT \ 15540LIPO \ 15541OTOOL \ 15542OTOOL64 \ 15543shrext_cmds \ 15544export_dynamic_flag_spec \ 15545whole_archive_flag_spec \ 15546compiler_needs_object \ 15547with_gnu_ld \ 15548allow_undefined_flag \ 15549no_undefined_flag \ 15550hardcode_libdir_flag_spec \ 15551hardcode_libdir_flag_spec_ld \ 15552hardcode_libdir_separator \ 15553fix_srcfile_path \ 15554exclude_expsyms \ 15555include_expsyms \ 15556file_list_spec \ 15557variables_saved_for_relink \ 15558libname_spec \ 15559library_names_spec \ 15560soname_spec \ 15561install_override_mode \ 15562finish_eval \ 15563old_striplib \ 15564striplib \ 15565compiler_lib_search_dirs \ 15566predep_objects \ 15567postdep_objects \ 15568predeps \ 15569postdeps \ 15570compiler_lib_search_path \ 15571LD_CXX \ 15572reload_flag_CXX \ 15573compiler_CXX \ 15574lt_prog_compiler_no_builtin_flag_CXX \ 15575lt_prog_compiler_wl_CXX \ 15576lt_prog_compiler_pic_CXX \ 15577lt_prog_compiler_static_CXX \ 15578lt_cv_prog_compiler_c_o_CXX \ 15579export_dynamic_flag_spec_CXX \ 15580whole_archive_flag_spec_CXX \ 15581compiler_needs_object_CXX \ 15582with_gnu_ld_CXX \ 15583allow_undefined_flag_CXX \ 15584no_undefined_flag_CXX \ 15585hardcode_libdir_flag_spec_CXX \ 15586hardcode_libdir_flag_spec_ld_CXX \ 15587hardcode_libdir_separator_CXX \ 15588fix_srcfile_path_CXX \ 15589exclude_expsyms_CXX \ 15590include_expsyms_CXX \ 15591file_list_spec_CXX \ 15592compiler_lib_search_dirs_CXX \ 15593predep_objects_CXX \ 15594postdep_objects_CXX \ 15595predeps_CXX \ 15596postdeps_CXX \ 15597compiler_lib_search_path_CXX; do 15598 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15599 *[\\\\\\\`\\"\\\$]*) 15600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15601 ;; 15602 *) 15603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15604 ;; 15605 esac 15606done 15607 15608# Double-quote double-evaled strings. 15609for var in reload_cmds \ 15610old_postinstall_cmds \ 15611old_postuninstall_cmds \ 15612old_archive_cmds \ 15613extract_expsyms_cmds \ 15614old_archive_from_new_cmds \ 15615old_archive_from_expsyms_cmds \ 15616archive_cmds \ 15617archive_expsym_cmds \ 15618module_cmds \ 15619module_expsym_cmds \ 15620export_symbols_cmds \ 15621prelink_cmds \ 15622postinstall_cmds \ 15623postuninstall_cmds \ 15624finish_cmds \ 15625sys_lib_search_path_spec \ 15626sys_lib_dlsearch_path_spec \ 15627reload_cmds_CXX \ 15628old_archive_cmds_CXX \ 15629old_archive_from_new_cmds_CXX \ 15630old_archive_from_expsyms_cmds_CXX \ 15631archive_cmds_CXX \ 15632archive_expsym_cmds_CXX \ 15633module_cmds_CXX \ 15634module_expsym_cmds_CXX \ 15635export_symbols_cmds_CXX \ 15636prelink_cmds_CXX; do 15637 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15638 *[\\\\\\\`\\"\\\$]*) 15639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15640 ;; 15641 *) 15642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15643 ;; 15644 esac 15645done 15646 15647ac_aux_dir='$ac_aux_dir' 15648xsi_shell='$xsi_shell' 15649lt_shell_append='$lt_shell_append' 15650 15651# See if we are running on zsh, and set the options which allow our 15652# commands through without removal of \ escapes INIT. 15653if test -n "\${ZSH_VERSION+set}" ; then 15654 setopt NO_GLOB_SUBST 15655fi 15656 15657 15658 PACKAGE='$PACKAGE' 15659 VERSION='$VERSION' 15660 TIMESTAMP='$TIMESTAMP' 15661 RM='$RM' 15662 ofile='$ofile' 15663 15664 15665 15666 15667 15668 15669_ACEOF 15670 15671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15672 15673# Handling of arguments. 15674for ac_config_target in $ac_config_targets 15675do 15676 case $ac_config_target in 15677 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 15678 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15679 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15681 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;; 15682 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;; 15683 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;; 15684 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;; 15685 15686 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15687 esac 15688done 15689 15690 15691# If the user did not use the arguments to specify the items to instantiate, 15692# then the envvar interface is used. Set only those that are not. 15693# We use the long form for the default assignment because of an extremely 15694# bizarre bug on SunOS 4.1.3. 15695if $ac_need_defaults; then 15696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15697 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15698fi 15699 15700# Have a temporary directory for convenience. Make it in the build tree 15701# simply because there is no reason against having it here, and in addition, 15702# creating and moving files from /tmp can sometimes cause problems. 15703# Hook for its removal unless debugging. 15704# Note that there is a small window in which the directory will not be cleaned: 15705# after its creation but before its name has been assigned to `$tmp'. 15706$debug || 15707{ 15708 tmp= 15709 trap 'exit_status=$? 15710 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15711' 0 15712 trap 'as_fn_exit 1' 1 2 13 15 15713} 15714# Create a (secure) tmp directory for tmp files. 15715 15716{ 15717 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15718 test -n "$tmp" && test -d "$tmp" 15719} || 15720{ 15721 tmp=./conf$$-$RANDOM 15722 (umask 077 && mkdir "$tmp") 15723} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 15724 15725# Set up the scripts for CONFIG_FILES section. 15726# No need to generate them if there are no CONFIG_FILES. 15727# This happens for instance with `./config.status config.h'. 15728if test -n "$CONFIG_FILES"; then 15729 15730 15731ac_cr=`echo X | tr X '\015'` 15732# On cygwin, bash can eat \r inside `` if the user requested igncr. 15733# But we know of no other shell where ac_cr would be empty at this 15734# point, so we can use a bashism as a fallback. 15735if test "x$ac_cr" = x; then 15736 eval ac_cr=\$\'\\r\' 15737fi 15738ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15739if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15740 ac_cs_awk_cr='\r' 15741else 15742 ac_cs_awk_cr=$ac_cr 15743fi 15744 15745echo 'BEGIN {' >"$tmp/subs1.awk" && 15746_ACEOF 15747 15748 15749{ 15750 echo "cat >conf$$subs.awk <<_ACEOF" && 15751 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15752 echo "_ACEOF" 15753} >conf$$subs.sh || 15754 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15755ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15756ac_delim='%!_!# ' 15757for ac_last_try in false false false false false :; do 15758 . ./conf$$subs.sh || 15759 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15760 15761 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15762 if test $ac_delim_n = $ac_delim_num; then 15763 break 15764 elif $ac_last_try; then 15765 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15766 else 15767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15768 fi 15769done 15770rm -f conf$$subs.sh 15771 15772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15773cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15774_ACEOF 15775sed -n ' 15776h 15777s/^/S["/; s/!.*/"]=/ 15778p 15779g 15780s/^[^!]*!// 15781:repl 15782t repl 15783s/'"$ac_delim"'$// 15784t delim 15785:nl 15786h 15787s/\(.\{148\}\).*/\1/ 15788t more1 15789s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15790p 15791n 15792b repl 15793:more1 15794s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15795p 15796g 15797s/.\{148\}// 15798t nl 15799:delim 15800h 15801s/\(.\{148\}\).*/\1/ 15802t more2 15803s/["\\]/\\&/g; s/^/"/; s/$/"/ 15804p 15805b 15806:more2 15807s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15808p 15809g 15810s/.\{148\}// 15811t delim 15812' <conf$$subs.awk | sed ' 15813/^[^""]/{ 15814 N 15815 s/\n// 15816} 15817' >>$CONFIG_STATUS || ac_write_fail=1 15818rm -f conf$$subs.awk 15819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15820_ACAWK 15821cat >>"\$tmp/subs1.awk" <<_ACAWK && 15822 for (key in S) S_is_set[key] = 1 15823 FS = "" 15824 15825} 15826{ 15827 line = $ 0 15828 nfields = split(line, field, "@") 15829 substed = 0 15830 len = length(field[1]) 15831 for (i = 2; i < nfields; i++) { 15832 key = field[i] 15833 keylen = length(key) 15834 if (S_is_set[key]) { 15835 value = S[key] 15836 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15837 len += length(value) + length(field[++i]) 15838 substed = 1 15839 } else 15840 len += 1 + keylen 15841 } 15842 15843 print line 15844} 15845 15846_ACAWK 15847_ACEOF 15848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15849if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15850 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15851else 15852 cat 15853fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15854 || as_fn_error "could not setup config files machinery" "$LINENO" 5 15855_ACEOF 15856 15857# VPATH may cause trouble with some makes, so we remove $(srcdir), 15858# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15859# trailing colons and then remove the whole line if VPATH becomes empty 15860# (actually we leave an empty line to preserve line numbers). 15861if test "x$srcdir" = x.; then 15862 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15863s/:*\$(srcdir):*/:/ 15864s/:*\${srcdir}:*/:/ 15865s/:*@srcdir@:*/:/ 15866s/^\([^=]*=[ ]*\):*/\1/ 15867s/:*$// 15868s/^[^=]*=[ ]*$// 15869}' 15870fi 15871 15872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15873fi # test -n "$CONFIG_FILES" 15874 15875 15876eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 15877shift 15878for ac_tag 15879do 15880 case $ac_tag in 15881 :[FHLC]) ac_mode=$ac_tag; continue;; 15882 esac 15883 case $ac_mode$ac_tag in 15884 :[FHL]*:*);; 15885 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 15886 :[FH]-) ac_tag=-:-;; 15887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15888 esac 15889 ac_save_IFS=$IFS 15890 IFS=: 15891 set x $ac_tag 15892 IFS=$ac_save_IFS 15893 shift 15894 ac_file=$1 15895 shift 15896 15897 case $ac_mode in 15898 :L) ac_source=$1;; 15899 :[FH]) 15900 ac_file_inputs= 15901 for ac_f 15902 do 15903 case $ac_f in 15904 -) ac_f="$tmp/stdin";; 15905 *) # Look for the file first in the build tree, then in the source tree 15906 # (if the path is not absolute). The absolute path cannot be DOS-style, 15907 # because $ac_f cannot contain `:'. 15908 test -f "$ac_f" || 15909 case $ac_f in 15910 [\\/$]*) false;; 15911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15912 esac || 15913 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15914 esac 15915 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15916 as_fn_append ac_file_inputs " '$ac_f'" 15917 done 15918 15919 # Let's still pretend it is `configure' which instantiates (i.e., don't 15920 # use $as_me), people would be surprised to read: 15921 # /* config.h. Generated by config.status. */ 15922 configure_input='Generated from '` 15923 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15924 `' by configure.' 15925 if test x"$ac_file" != x-; then 15926 configure_input="$ac_file. $configure_input" 15927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15928$as_echo "$as_me: creating $ac_file" >&6;} 15929 fi 15930 # Neutralize special characters interpreted by sed in replacement strings. 15931 case $configure_input in #( 15932 *\&* | *\|* | *\\* ) 15933 ac_sed_conf_input=`$as_echo "$configure_input" | 15934 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15935 *) ac_sed_conf_input=$configure_input;; 15936 esac 15937 15938 case $ac_tag in 15939 *:-:* | *:-) cat >"$tmp/stdin" \ 15940 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 15941 esac 15942 ;; 15943 esac 15944 15945 ac_dir=`$as_dirname -- "$ac_file" || 15946$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15947 X"$ac_file" : 'X\(//\)[^/]' \| \ 15948 X"$ac_file" : 'X\(//\)$' \| \ 15949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15950$as_echo X"$ac_file" | 15951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15952 s//\1/ 15953 q 15954 } 15955 /^X\(\/\/\)[^/].*/{ 15956 s//\1/ 15957 q 15958 } 15959 /^X\(\/\/\)$/{ 15960 s//\1/ 15961 q 15962 } 15963 /^X\(\/\).*/{ 15964 s//\1/ 15965 q 15966 } 15967 s/.*/./; q'` 15968 as_dir="$ac_dir"; as_fn_mkdir_p 15969 ac_builddir=. 15970 15971case "$ac_dir" in 15972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15973*) 15974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15975 # A ".." for each directory in $ac_dir_suffix. 15976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15977 case $ac_top_builddir_sub in 15978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15980 esac ;; 15981esac 15982ac_abs_top_builddir=$ac_pwd 15983ac_abs_builddir=$ac_pwd$ac_dir_suffix 15984# for backward compatibility: 15985ac_top_builddir=$ac_top_build_prefix 15986 15987case $srcdir in 15988 .) # We are building in place. 15989 ac_srcdir=. 15990 ac_top_srcdir=$ac_top_builddir_sub 15991 ac_abs_top_srcdir=$ac_pwd ;; 15992 [\\/]* | ?:[\\/]* ) # Absolute name. 15993 ac_srcdir=$srcdir$ac_dir_suffix; 15994 ac_top_srcdir=$srcdir 15995 ac_abs_top_srcdir=$srcdir ;; 15996 *) # Relative name. 15997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15998 ac_top_srcdir=$ac_top_build_prefix$srcdir 15999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16000esac 16001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16002 16003 16004 case $ac_mode in 16005 :F) 16006 # 16007 # CONFIG_FILE 16008 # 16009 16010 case $INSTALL in 16011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16013 esac 16014 ac_MKDIR_P=$MKDIR_P 16015 case $MKDIR_P in 16016 [\\/$]* | ?:[\\/]* ) ;; 16017 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16018 esac 16019_ACEOF 16020 16021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16022# If the template does not know about datarootdir, expand it. 16023# FIXME: This hack should be removed a few years after 2.60. 16024ac_datarootdir_hack=; ac_datarootdir_seen= 16025ac_sed_dataroot=' 16026/datarootdir/ { 16027 p 16028 q 16029} 16030/@datadir@/p 16031/@docdir@/p 16032/@infodir@/p 16033/@localedir@/p 16034/@mandir@/p' 16035case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16036*datarootdir*) ac_datarootdir_seen=yes;; 16037*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16039$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16040_ACEOF 16041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16042 ac_datarootdir_hack=' 16043 s&@datadir@&$datadir&g 16044 s&@docdir@&$docdir&g 16045 s&@infodir@&$infodir&g 16046 s&@localedir@&$localedir&g 16047 s&@mandir@&$mandir&g 16048 s&\\\${datarootdir}&$datarootdir&g' ;; 16049esac 16050_ACEOF 16051 16052# Neutralize VPATH when `$srcdir' = `.'. 16053# Shell code in configure.ac might set extrasub. 16054# FIXME: do we really want to maintain this feature? 16055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16056ac_sed_extra="$ac_vpsub 16057$extrasub 16058_ACEOF 16059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16060:t 16061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16062s|@configure_input@|$ac_sed_conf_input|;t t 16063s&@top_builddir@&$ac_top_builddir_sub&;t t 16064s&@top_build_prefix@&$ac_top_build_prefix&;t t 16065s&@srcdir@&$ac_srcdir&;t t 16066s&@abs_srcdir@&$ac_abs_srcdir&;t t 16067s&@top_srcdir@&$ac_top_srcdir&;t t 16068s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16069s&@builddir@&$ac_builddir&;t t 16070s&@abs_builddir@&$ac_abs_builddir&;t t 16071s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16072s&@INSTALL@&$ac_INSTALL&;t t 16073s&@MKDIR_P@&$ac_MKDIR_P&;t t 16074$ac_datarootdir_hack 16075" 16076eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16077 || as_fn_error "could not create $ac_file" "$LINENO" 5 16078 16079test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16080 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16083which seems to be undefined. Please make sure it is defined." >&5 16084$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16085which seems to be undefined. Please make sure it is defined." >&2;} 16086 16087 rm -f "$tmp/stdin" 16088 case $ac_file in 16089 -) cat "$tmp/out" && rm -f "$tmp/out";; 16090 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16091 esac \ 16092 || as_fn_error "could not create $ac_file" "$LINENO" 5 16093 ;; 16094 16095 16096 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16097$as_echo "$as_me: executing $ac_file commands" >&6;} 16098 ;; 16099 esac 16100 16101 16102 case $ac_file$ac_mode in 16103 "default-1":C) 16104# Only add multilib support code if we just rebuilt the top-level 16105# Makefile. 16106case " $CONFIG_FILES " in 16107 *" Makefile "*) 16108 ac_file=Makefile . ${multi_basedir}/config-ml.in 16109 ;; 16110esac ;; 16111 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16112 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16113 # are listed without --file. Let's play safe and only enable the eval 16114 # if we detect the quoting. 16115 case $CONFIG_FILES in 16116 *\'*) eval set x "$CONFIG_FILES" ;; 16117 *) set x $CONFIG_FILES ;; 16118 esac 16119 shift 16120 for mf 16121 do 16122 # Strip MF so we end up with the name of the file. 16123 mf=`echo "$mf" | sed -e 's/:.*$//'` 16124 # Check whether this is an Automake generated Makefile or not. 16125 # We used to match only the files named `Makefile.in', but 16126 # some people rename them; so instead we look at the file content. 16127 # Grep'ing the first line is not enough: some people post-process 16128 # each Makefile.in and add a new line on top of each file to say so. 16129 # Grep'ing the whole file is not good either: AIX grep has a line 16130 # limit of 2048, but all sed's we know have understand at least 4000. 16131 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16132 dirpart=`$as_dirname -- "$mf" || 16133$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16134 X"$mf" : 'X\(//\)[^/]' \| \ 16135 X"$mf" : 'X\(//\)$' \| \ 16136 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16137$as_echo X"$mf" | 16138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16139 s//\1/ 16140 q 16141 } 16142 /^X\(\/\/\)[^/].*/{ 16143 s//\1/ 16144 q 16145 } 16146 /^X\(\/\/\)$/{ 16147 s//\1/ 16148 q 16149 } 16150 /^X\(\/\).*/{ 16151 s//\1/ 16152 q 16153 } 16154 s/.*/./; q'` 16155 else 16156 continue 16157 fi 16158 # Extract the definition of DEPDIR, am__include, and am__quote 16159 # from the Makefile without running `make'. 16160 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16161 test -z "$DEPDIR" && continue 16162 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16163 test -z "am__include" && continue 16164 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16165 # When using ansi2knr, U may be empty or an underscore; expand it 16166 U=`sed -n 's/^U = //p' < "$mf"` 16167 # Find all dependency output files, they are included files with 16168 # $(DEPDIR) in their names. We invoke sed twice because it is the 16169 # simplest approach to changing $(DEPDIR) to its actual value in the 16170 # expansion. 16171 for file in `sed -n " 16172 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16173 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16174 # Make sure the directory exists. 16175 test -f "$dirpart/$file" && continue 16176 fdir=`$as_dirname -- "$file" || 16177$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16178 X"$file" : 'X\(//\)[^/]' \| \ 16179 X"$file" : 'X\(//\)$' \| \ 16180 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16181$as_echo X"$file" | 16182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16183 s//\1/ 16184 q 16185 } 16186 /^X\(\/\/\)[^/].*/{ 16187 s//\1/ 16188 q 16189 } 16190 /^X\(\/\/\)$/{ 16191 s//\1/ 16192 q 16193 } 16194 /^X\(\/\).*/{ 16195 s//\1/ 16196 q 16197 } 16198 s/.*/./; q'` 16199 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16200 # echo "creating $dirpart/$file" 16201 echo '# dummy' > "$dirpart/$file" 16202 done 16203 done 16204} 16205 ;; 16206 "libtool":C) 16207 16208 # See if we are running on zsh, and set the options which allow our 16209 # commands through without removal of \ escapes. 16210 if test -n "${ZSH_VERSION+set}" ; then 16211 setopt NO_GLOB_SUBST 16212 fi 16213 16214 cfgfile="${ofile}T" 16215 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16216 $RM "$cfgfile" 16217 16218 cat <<_LT_EOF >> "$cfgfile" 16219#! $SHELL 16220 16221# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16222# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16223# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16224# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16225# 16226# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16227# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16228# Written by Gordon Matzigkeit, 1996 16229# 16230# This file is part of GNU Libtool. 16231# 16232# GNU Libtool is free software; you can redistribute it and/or 16233# modify it under the terms of the GNU General Public License as 16234# published by the Free Software Foundation; either version 2 of 16235# the License, or (at your option) any later version. 16236# 16237# As a special exception to the GNU General Public License, 16238# if you distribute this file as part of a program or library that 16239# is built using GNU Libtool, you may include this file under the 16240# same distribution terms that you use for the rest of that program. 16241# 16242# GNU Libtool is distributed in the hope that it will be useful, 16243# but WITHOUT ANY WARRANTY; without even the implied warranty of 16244# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16245# GNU General Public License for more details. 16246# 16247# You should have received a copy of the GNU General Public License 16248# along with GNU Libtool; see the file COPYING. If not, a copy 16249# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16250# obtained by writing to the Free Software Foundation, Inc., 16251# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16252 16253 16254# The names of the tagged configurations supported by this script. 16255available_tags="CXX " 16256 16257# ### BEGIN LIBTOOL CONFIG 16258 16259# Which release of libtool.m4 was used? 16260macro_version=$macro_version 16261macro_revision=$macro_revision 16262 16263# Whether or not to build shared libraries. 16264build_libtool_libs=$enable_shared 16265 16266# Whether or not to build static libraries. 16267build_old_libs=$enable_static 16268 16269# What type of objects to build. 16270pic_mode=$pic_mode 16271 16272# Whether or not to optimize for fast installation. 16273fast_install=$enable_fast_install 16274 16275# Shell to use when invoking shell scripts. 16276SHELL=$lt_SHELL 16277 16278# An echo program that protects backslashes. 16279ECHO=$lt_ECHO 16280 16281# The host system. 16282host_alias=$host_alias 16283host=$host 16284host_os=$host_os 16285 16286# The build system. 16287build_alias=$build_alias 16288build=$build 16289build_os=$build_os 16290 16291# A sed program that does not truncate output. 16292SED=$lt_SED 16293 16294# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16295Xsed="\$SED -e 1s/^X//" 16296 16297# A grep program that handles long lines. 16298GREP=$lt_GREP 16299 16300# An ERE matcher. 16301EGREP=$lt_EGREP 16302 16303# A literal string matcher. 16304FGREP=$lt_FGREP 16305 16306# A BSD- or MS-compatible name lister. 16307NM=$lt_NM 16308 16309# Whether we need soft or hard links. 16310LN_S=$lt_LN_S 16311 16312# What is the maximum length of a command? 16313max_cmd_len=$max_cmd_len 16314 16315# Object file suffix (normally "o"). 16316objext=$ac_objext 16317 16318# Executable file suffix (normally ""). 16319exeext=$exeext 16320 16321# whether the shell understands "unset". 16322lt_unset=$lt_unset 16323 16324# turn spaces into newlines. 16325SP2NL=$lt_lt_SP2NL 16326 16327# turn newlines into spaces. 16328NL2SP=$lt_lt_NL2SP 16329 16330# An object symbol dumper. 16331OBJDUMP=$lt_OBJDUMP 16332 16333# Method to check whether dependent libraries are shared objects. 16334deplibs_check_method=$lt_deplibs_check_method 16335 16336# Command to use when deplibs_check_method == "file_magic". 16337file_magic_cmd=$lt_file_magic_cmd 16338 16339# The archiver. 16340AR=$lt_AR 16341AR_FLAGS=$lt_AR_FLAGS 16342 16343# A symbol stripping program. 16344STRIP=$lt_STRIP 16345 16346# Commands used to install an old-style archive. 16347RANLIB=$lt_RANLIB 16348old_postinstall_cmds=$lt_old_postinstall_cmds 16349old_postuninstall_cmds=$lt_old_postuninstall_cmds 16350 16351# Whether to use a lock for old archive extraction. 16352lock_old_archive_extraction=$lock_old_archive_extraction 16353 16354# A C compiler. 16355LTCC=$lt_CC 16356 16357# LTCC compiler flags. 16358LTCFLAGS=$lt_CFLAGS 16359 16360# Take the output of nm and produce a listing of raw symbols and C names. 16361global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16362 16363# Transform the output of nm in a proper C declaration. 16364global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16365 16366# Transform the output of nm in a C name address pair. 16367global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16368 16369# Transform the output of nm in a C name address pair when lib prefix is needed. 16370global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16371 16372# The name of the directory that contains temporary libtool files. 16373objdir=$objdir 16374 16375# Used to examine libraries when file_magic_cmd begins with "file". 16376MAGIC_CMD=$MAGIC_CMD 16377 16378# Must we lock files when doing compilation? 16379need_locks=$lt_need_locks 16380 16381# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16382DSYMUTIL=$lt_DSYMUTIL 16383 16384# Tool to change global to local symbols on Mac OS X. 16385NMEDIT=$lt_NMEDIT 16386 16387# Tool to manipulate fat objects and archives on Mac OS X. 16388LIPO=$lt_LIPO 16389 16390# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16391OTOOL=$lt_OTOOL 16392 16393# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16394OTOOL64=$lt_OTOOL64 16395 16396# Old archive suffix (normally "a"). 16397libext=$libext 16398 16399# Shared library suffix (normally ".so"). 16400shrext_cmds=$lt_shrext_cmds 16401 16402# The commands to extract the exported symbol list from a shared archive. 16403extract_expsyms_cmds=$lt_extract_expsyms_cmds 16404 16405# Variables whose values should be saved in libtool wrapper scripts and 16406# restored at link time. 16407variables_saved_for_relink=$lt_variables_saved_for_relink 16408 16409# Do we need the "lib" prefix for modules? 16410need_lib_prefix=$need_lib_prefix 16411 16412# Do we need a version for libraries? 16413need_version=$need_version 16414 16415# Library versioning type. 16416version_type=$version_type 16417 16418# Shared library runtime path variable. 16419runpath_var=$runpath_var 16420 16421# Shared library path variable. 16422shlibpath_var=$shlibpath_var 16423 16424# Is shlibpath searched before the hard-coded library search path? 16425shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16426 16427# Format of library name prefix. 16428libname_spec=$lt_libname_spec 16429 16430# List of archive names. First name is the real one, the rest are links. 16431# The last name is the one that the linker finds with -lNAME 16432library_names_spec=$lt_library_names_spec 16433 16434# The coded name of the library, if different from the real name. 16435soname_spec=$lt_soname_spec 16436 16437# Permission mode override for installation of shared libraries. 16438install_override_mode=$lt_install_override_mode 16439 16440# Command to use after installation of a shared archive. 16441postinstall_cmds=$lt_postinstall_cmds 16442 16443# Command to use after uninstallation of a shared archive. 16444postuninstall_cmds=$lt_postuninstall_cmds 16445 16446# Commands used to finish a libtool library installation in a directory. 16447finish_cmds=$lt_finish_cmds 16448 16449# As "finish_cmds", except a single script fragment to be evaled but 16450# not shown. 16451finish_eval=$lt_finish_eval 16452 16453# Whether we should hardcode library paths into libraries. 16454hardcode_into_libs=$hardcode_into_libs 16455 16456# Compile-time system search path for libraries. 16457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16458 16459# Run-time system search path for libraries. 16460sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16461 16462# Whether dlopen is supported. 16463dlopen_support=$enable_dlopen 16464 16465# Whether dlopen of programs is supported. 16466dlopen_self=$enable_dlopen_self 16467 16468# Whether dlopen of statically linked programs is supported. 16469dlopen_self_static=$enable_dlopen_self_static 16470 16471# Commands to strip libraries. 16472old_striplib=$lt_old_striplib 16473striplib=$lt_striplib 16474 16475 16476# The linker used to build libraries. 16477LD=$lt_LD 16478 16479# How to create reloadable object files. 16480reload_flag=$lt_reload_flag 16481reload_cmds=$lt_reload_cmds 16482 16483# Commands used to build an old-style archive. 16484old_archive_cmds=$lt_old_archive_cmds 16485 16486# A language specific compiler. 16487CC=$lt_compiler 16488 16489# Is the compiler the GNU compiler? 16490with_gcc=$GCC 16491 16492# Compiler flag to turn off builtin functions. 16493no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16494 16495# How to pass a linker flag through the compiler. 16496wl=$lt_lt_prog_compiler_wl 16497 16498# Additional compiler flags for building library objects. 16499pic_flag=$lt_lt_prog_compiler_pic 16500 16501# Compiler flag to prevent dynamic linking. 16502link_static_flag=$lt_lt_prog_compiler_static 16503 16504# Does compiler simultaneously support -c and -o options? 16505compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16506 16507# Whether or not to add -lc for building shared libraries. 16508build_libtool_need_lc=$archive_cmds_need_lc 16509 16510# Whether or not to disallow shared libs when runtime libs are static. 16511allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16512 16513# Compiler flag to allow reflexive dlopens. 16514export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16515 16516# Compiler flag to generate shared objects directly from archives. 16517whole_archive_flag_spec=$lt_whole_archive_flag_spec 16518 16519# Whether the compiler copes with passing no objects directly. 16520compiler_needs_object=$lt_compiler_needs_object 16521 16522# Create an old-style archive from a shared archive. 16523old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16524 16525# Create a temporary old-style archive to link instead of a shared archive. 16526old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16527 16528# Commands used to build a shared archive. 16529archive_cmds=$lt_archive_cmds 16530archive_expsym_cmds=$lt_archive_expsym_cmds 16531 16532# Commands used to build a loadable module if different from building 16533# a shared archive. 16534module_cmds=$lt_module_cmds 16535module_expsym_cmds=$lt_module_expsym_cmds 16536 16537# Whether we are building with GNU ld or not. 16538with_gnu_ld=$lt_with_gnu_ld 16539 16540# Flag that allows shared libraries with undefined symbols to be built. 16541allow_undefined_flag=$lt_allow_undefined_flag 16542 16543# Flag that enforces no undefined symbols. 16544no_undefined_flag=$lt_no_undefined_flag 16545 16546# Flag to hardcode \$libdir into a binary during linking. 16547# This must work even if \$libdir does not exist 16548hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16549 16550# If ld is used when linking, flag to hardcode \$libdir into a binary 16551# during linking. This must work even if \$libdir does not exist. 16552hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16553 16554# Whether we need a single "-rpath" flag with a separated argument. 16555hardcode_libdir_separator=$lt_hardcode_libdir_separator 16556 16557# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16558# DIR into the resulting binary. 16559hardcode_direct=$hardcode_direct 16560 16561# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16562# DIR into the resulting binary and the resulting library dependency is 16563# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16564# library is relocated. 16565hardcode_direct_absolute=$hardcode_direct_absolute 16566 16567# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16568# into the resulting binary. 16569hardcode_minus_L=$hardcode_minus_L 16570 16571# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16572# into the resulting binary. 16573hardcode_shlibpath_var=$hardcode_shlibpath_var 16574 16575# Set to "yes" if building a shared library automatically hardcodes DIR 16576# into the library and all subsequent libraries and executables linked 16577# against it. 16578hardcode_automatic=$hardcode_automatic 16579 16580# Set to yes if linker adds runtime paths of dependent libraries 16581# to runtime path list. 16582inherit_rpath=$inherit_rpath 16583 16584# Whether libtool must link a program against all its dependency libraries. 16585link_all_deplibs=$link_all_deplibs 16586 16587# Fix the shell variable \$srcfile for the compiler. 16588fix_srcfile_path=$lt_fix_srcfile_path 16589 16590# Set to "yes" if exported symbols are required. 16591always_export_symbols=$always_export_symbols 16592 16593# The commands to list exported symbols. 16594export_symbols_cmds=$lt_export_symbols_cmds 16595 16596# Symbols that should not be listed in the preloaded symbols. 16597exclude_expsyms=$lt_exclude_expsyms 16598 16599# Symbols that must always be exported. 16600include_expsyms=$lt_include_expsyms 16601 16602# Commands necessary for linking programs (against libraries) with templates. 16603prelink_cmds=$lt_prelink_cmds 16604 16605# Specify filename containing input files. 16606file_list_spec=$lt_file_list_spec 16607 16608# How to hardcode a shared library path into an executable. 16609hardcode_action=$hardcode_action 16610 16611# The directories searched by this compiler when creating a shared library. 16612compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 16613 16614# Dependencies to place before and after the objects being linked to 16615# create a shared library. 16616predep_objects=$lt_predep_objects 16617postdep_objects=$lt_postdep_objects 16618predeps=$lt_predeps 16619postdeps=$lt_postdeps 16620 16621# The library search path used internally by the compiler when linking 16622# a shared library. 16623compiler_lib_search_path=$lt_compiler_lib_search_path 16624 16625# ### END LIBTOOL CONFIG 16626 16627_LT_EOF 16628 16629 case $host_os in 16630 aix3*) 16631 cat <<\_LT_EOF >> "$cfgfile" 16632# AIX sometimes has problems with the GCC collect2 program. For some 16633# reason, if we set the COLLECT_NAMES environment variable, the problems 16634# vanish in a puff of smoke. 16635if test "X${COLLECT_NAMES+set}" != Xset; then 16636 COLLECT_NAMES= 16637 export COLLECT_NAMES 16638fi 16639_LT_EOF 16640 ;; 16641 esac 16642 16643 16644ltmain="$ac_aux_dir/ltmain.sh" 16645 16646 16647 # We use sed instead of cat because bash on DJGPP gets confused if 16648 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16649 # text mode, it properly converts lines to CR/LF. This bash problem 16650 # is reportedly fixed, but why not run on old versions too? 16651 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16652 || (rm -f "$cfgfile"; exit 1) 16653 16654 case $xsi_shell in 16655 yes) 16656 cat << \_LT_EOF >> "$cfgfile" 16657 16658# func_dirname file append nondir_replacement 16659# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16660# otherwise set result to NONDIR_REPLACEMENT. 16661func_dirname () 16662{ 16663 case ${1} in 16664 */*) func_dirname_result="${1%/*}${2}" ;; 16665 * ) func_dirname_result="${3}" ;; 16666 esac 16667} 16668 16669# func_basename file 16670func_basename () 16671{ 16672 func_basename_result="${1##*/}" 16673} 16674 16675# func_dirname_and_basename file append nondir_replacement 16676# perform func_basename and func_dirname in a single function 16677# call: 16678# dirname: Compute the dirname of FILE. If nonempty, 16679# add APPEND to the result, otherwise set result 16680# to NONDIR_REPLACEMENT. 16681# value returned in "$func_dirname_result" 16682# basename: Compute filename of FILE. 16683# value retuned in "$func_basename_result" 16684# Implementation must be kept synchronized with func_dirname 16685# and func_basename. For efficiency, we do not delegate to 16686# those functions but instead duplicate the functionality here. 16687func_dirname_and_basename () 16688{ 16689 case ${1} in 16690 */*) func_dirname_result="${1%/*}${2}" ;; 16691 * ) func_dirname_result="${3}" ;; 16692 esac 16693 func_basename_result="${1##*/}" 16694} 16695 16696# func_stripname prefix suffix name 16697# strip PREFIX and SUFFIX off of NAME. 16698# PREFIX and SUFFIX must not contain globbing or regex special 16699# characters, hashes, percent signs, but SUFFIX may contain a leading 16700# dot (in which case that matches only a dot). 16701func_stripname () 16702{ 16703 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16704 # positional parameters, so assign one to ordinary parameter first. 16705 func_stripname_result=${3} 16706 func_stripname_result=${func_stripname_result#"${1}"} 16707 func_stripname_result=${func_stripname_result%"${2}"} 16708} 16709 16710# func_opt_split 16711func_opt_split () 16712{ 16713 func_opt_split_opt=${1%%=*} 16714 func_opt_split_arg=${1#*=} 16715} 16716 16717# func_lo2o object 16718func_lo2o () 16719{ 16720 case ${1} in 16721 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16722 *) func_lo2o_result=${1} ;; 16723 esac 16724} 16725 16726# func_xform libobj-or-source 16727func_xform () 16728{ 16729 func_xform_result=${1%.*}.lo 16730} 16731 16732# func_arith arithmetic-term... 16733func_arith () 16734{ 16735 func_arith_result=$(( $* )) 16736} 16737 16738# func_len string 16739# STRING may not start with a hyphen. 16740func_len () 16741{ 16742 func_len_result=${#1} 16743} 16744 16745_LT_EOF 16746 ;; 16747 *) # Bourne compatible functions. 16748 cat << \_LT_EOF >> "$cfgfile" 16749 16750# func_dirname file append nondir_replacement 16751# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16752# otherwise set result to NONDIR_REPLACEMENT. 16753func_dirname () 16754{ 16755 # Extract subdirectory from the argument. 16756 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 16757 if test "X$func_dirname_result" = "X${1}"; then 16758 func_dirname_result="${3}" 16759 else 16760 func_dirname_result="$func_dirname_result${2}" 16761 fi 16762} 16763 16764# func_basename file 16765func_basename () 16766{ 16767 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 16768} 16769 16770 16771# func_stripname prefix suffix name 16772# strip PREFIX and SUFFIX off of NAME. 16773# PREFIX and SUFFIX must not contain globbing or regex special 16774# characters, hashes, percent signs, but SUFFIX may contain a leading 16775# dot (in which case that matches only a dot). 16776# func_strip_suffix prefix name 16777func_stripname () 16778{ 16779 case ${2} in 16780 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 16781 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 16782 esac 16783} 16784 16785# sed scripts: 16786my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16787my_sed_long_arg='1s/^-[^=]*=//' 16788 16789# func_opt_split 16790func_opt_split () 16791{ 16792 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 16793 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 16794} 16795 16796# func_lo2o object 16797func_lo2o () 16798{ 16799 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 16800} 16801 16802# func_xform libobj-or-source 16803func_xform () 16804{ 16805 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 16806} 16807 16808# func_arith arithmetic-term... 16809func_arith () 16810{ 16811 func_arith_result=`expr "$@"` 16812} 16813 16814# func_len string 16815# STRING may not start with a hyphen. 16816func_len () 16817{ 16818 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16819} 16820 16821_LT_EOF 16822esac 16823 16824case $lt_shell_append in 16825 yes) 16826 cat << \_LT_EOF >> "$cfgfile" 16827 16828# func_append var value 16829# Append VALUE to the end of shell variable VAR. 16830func_append () 16831{ 16832 eval "$1+=\$2" 16833} 16834_LT_EOF 16835 ;; 16836 *) 16837 cat << \_LT_EOF >> "$cfgfile" 16838 16839# func_append var value 16840# Append VALUE to the end of shell variable VAR. 16841func_append () 16842{ 16843 eval "$1=\$$1\$2" 16844} 16845 16846_LT_EOF 16847 ;; 16848 esac 16849 16850 16851 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16852 || (rm -f "$cfgfile"; exit 1) 16853 16854 mv -f "$cfgfile" "$ofile" || 16855 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16856 chmod +x "$ofile" 16857 16858 16859 cat <<_LT_EOF >> "$ofile" 16860 16861# ### BEGIN LIBTOOL TAG CONFIG: CXX 16862 16863# The linker used to build libraries. 16864LD=$lt_LD_CXX 16865 16866# How to create reloadable object files. 16867reload_flag=$lt_reload_flag_CXX 16868reload_cmds=$lt_reload_cmds_CXX 16869 16870# Commands used to build an old-style archive. 16871old_archive_cmds=$lt_old_archive_cmds_CXX 16872 16873# A language specific compiler. 16874CC=$lt_compiler_CXX 16875 16876# Is the compiler the GNU compiler? 16877with_gcc=$GCC_CXX 16878 16879# Compiler flag to turn off builtin functions. 16880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 16881 16882# How to pass a linker flag through the compiler. 16883wl=$lt_lt_prog_compiler_wl_CXX 16884 16885# Additional compiler flags for building library objects. 16886pic_flag=$lt_lt_prog_compiler_pic_CXX 16887 16888# Compiler flag to prevent dynamic linking. 16889link_static_flag=$lt_lt_prog_compiler_static_CXX 16890 16891# Does compiler simultaneously support -c and -o options? 16892compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 16893 16894# Whether or not to add -lc for building shared libraries. 16895build_libtool_need_lc=$archive_cmds_need_lc_CXX 16896 16897# Whether or not to disallow shared libs when runtime libs are static. 16898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 16899 16900# Compiler flag to allow reflexive dlopens. 16901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 16902 16903# Compiler flag to generate shared objects directly from archives. 16904whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 16905 16906# Whether the compiler copes with passing no objects directly. 16907compiler_needs_object=$lt_compiler_needs_object_CXX 16908 16909# Create an old-style archive from a shared archive. 16910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 16911 16912# Create a temporary old-style archive to link instead of a shared archive. 16913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 16914 16915# Commands used to build a shared archive. 16916archive_cmds=$lt_archive_cmds_CXX 16917archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 16918 16919# Commands used to build a loadable module if different from building 16920# a shared archive. 16921module_cmds=$lt_module_cmds_CXX 16922module_expsym_cmds=$lt_module_expsym_cmds_CXX 16923 16924# Whether we are building with GNU ld or not. 16925with_gnu_ld=$lt_with_gnu_ld_CXX 16926 16927# Flag that allows shared libraries with undefined symbols to be built. 16928allow_undefined_flag=$lt_allow_undefined_flag_CXX 16929 16930# Flag that enforces no undefined symbols. 16931no_undefined_flag=$lt_no_undefined_flag_CXX 16932 16933# Flag to hardcode \$libdir into a binary during linking. 16934# This must work even if \$libdir does not exist 16935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 16936 16937# If ld is used when linking, flag to hardcode \$libdir into a binary 16938# during linking. This must work even if \$libdir does not exist. 16939hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 16940 16941# Whether we need a single "-rpath" flag with a separated argument. 16942hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 16943 16944# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16945# DIR into the resulting binary. 16946hardcode_direct=$hardcode_direct_CXX 16947 16948# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16949# DIR into the resulting binary and the resulting library dependency is 16950# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16951# library is relocated. 16952hardcode_direct_absolute=$hardcode_direct_absolute_CXX 16953 16954# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16955# into the resulting binary. 16956hardcode_minus_L=$hardcode_minus_L_CXX 16957 16958# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16959# into the resulting binary. 16960hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 16961 16962# Set to "yes" if building a shared library automatically hardcodes DIR 16963# into the library and all subsequent libraries and executables linked 16964# against it. 16965hardcode_automatic=$hardcode_automatic_CXX 16966 16967# Set to yes if linker adds runtime paths of dependent libraries 16968# to runtime path list. 16969inherit_rpath=$inherit_rpath_CXX 16970 16971# Whether libtool must link a program against all its dependency libraries. 16972link_all_deplibs=$link_all_deplibs_CXX 16973 16974# Fix the shell variable \$srcfile for the compiler. 16975fix_srcfile_path=$lt_fix_srcfile_path_CXX 16976 16977# Set to "yes" if exported symbols are required. 16978always_export_symbols=$always_export_symbols_CXX 16979 16980# The commands to list exported symbols. 16981export_symbols_cmds=$lt_export_symbols_cmds_CXX 16982 16983# Symbols that should not be listed in the preloaded symbols. 16984exclude_expsyms=$lt_exclude_expsyms_CXX 16985 16986# Symbols that must always be exported. 16987include_expsyms=$lt_include_expsyms_CXX 16988 16989# Commands necessary for linking programs (against libraries) with templates. 16990prelink_cmds=$lt_prelink_cmds_CXX 16991 16992# Specify filename containing input files. 16993file_list_spec=$lt_file_list_spec_CXX 16994 16995# How to hardcode a shared library path into an executable. 16996hardcode_action=$hardcode_action_CXX 16997 16998# The directories searched by this compiler when creating a shared library. 16999compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17000 17001# Dependencies to place before and after the objects being linked to 17002# create a shared library. 17003predep_objects=$lt_predep_objects_CXX 17004postdep_objects=$lt_postdep_objects_CXX 17005predeps=$lt_predeps_CXX 17006postdeps=$lt_postdeps_CXX 17007 17008# The library search path used internally by the compiler when linking 17009# a shared library. 17010compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 17011 17012# ### END LIBTOOL TAG CONFIG: CXX 17013_LT_EOF 17014 17015 ;; 17016 "interception/Makefile":F) cat > vpsed$$ << \_EOF 17017s!`test -f '$<' || echo '$(srcdir)/'`!! 17018_EOF 17019 sed -f vpsed$$ $ac_file > tmp$$ 17020 mv tmp$$ $ac_file 17021 rm vpsed$$ 17022 echo 'MULTISUBDIR =' >> $ac_file 17023 ml_norecursion=yes 17024 . ${multi_basedir}/config-ml.in 17025 { ml_norecursion=; unset ml_norecursion;} 17026 ;; 17027 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF 17028s!`test -f '$<' || echo '$(srcdir)/'`!! 17029_EOF 17030 sed -f vpsed$$ $ac_file > tmp$$ 17031 mv tmp$$ $ac_file 17032 rm vpsed$$ 17033 echo 'MULTISUBDIR =' >> $ac_file 17034 ml_norecursion=yes 17035 . ${multi_basedir}/config-ml.in 17036 { ml_norecursion=; unset ml_norecursion;} 17037 ;; 17038 "asan/Makefile":F) cat > vpsed$$ << \_EOF 17039s!`test -f '$<' || echo '$(srcdir)/'`!! 17040_EOF 17041 sed -f vpsed$$ $ac_file > tmp$$ 17042 mv tmp$$ $ac_file 17043 rm vpsed$$ 17044 echo 'MULTISUBDIR =' >> $ac_file 17045 ml_norecursion=yes 17046 . ${multi_basedir}/config-ml.in 17047 { ml_norecursion=; unset ml_norecursion;} 17048 ;; 17049 "tsan/Makefile":F) cat > vpsed$$ << \_EOF 17050s!`test -f '$<' || echo '$(srcdir)/'`!! 17051_EOF 17052 sed -f vpsed$$ $ac_file > tmp$$ 17053 mv tmp$$ $ac_file 17054 rm vpsed$$ 17055 echo 'MULTISUBDIR =' >> $ac_file 17056 ml_norecursion=yes 17057 . ${multi_basedir}/config-ml.in 17058 { ml_norecursion=; unset ml_norecursion;} 17059 ;; 17060 17061 esac 17062done # for ac_tag 17063 17064 17065as_fn_exit 0 17066_ACEOF 17067ac_clean_files=$ac_clean_files_save 17068 17069test $ac_write_fail = 0 || 17070 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 17071 17072 17073# configure is writing to config.log, and then calls config.status. 17074# config.status does its own redirection, appending to config.log. 17075# Unfortunately, on DOS this fails, as config.log is still kept open 17076# by configure, so config.status won't be able to write to it; its 17077# output is simply discarded. So we exec the FD to /dev/null, 17078# effectively closing config.log, so it can be properly (re)opened and 17079# appended to by config.status. When coming back to configure, we 17080# need to make the FD available again. 17081if test "$no_create" != yes; then 17082 ac_cs_success=: 17083 ac_config_status_args= 17084 test "$silent" = yes && 17085 ac_config_status_args="$ac_config_status_args --quiet" 17086 exec 5>/dev/null 17087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17088 exec 5>>config.log 17089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17090 # would make configure fail if this is the last instruction. 17091 $ac_cs_success || as_fn_exit $? 17092fi 17093if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17095$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17096fi 17097 17098