1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for Google C++ Testing Framework 1.7.0. 4# 5# Report bugs to <googletestframework@googlegroups.com>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: googletestframework@googlegroups.com about your system, 251$0: including any error possibly output before this 252$0: message. Then install a modern shell, or manually run 253$0: the script under such a shell if you do have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='Google C++ Testing Framework' 572PACKAGE_TARNAME='gtest' 573PACKAGE_VERSION='1.7.0' 574PACKAGE_STRING='Google C++ Testing Framework 1.7.0' 575PACKAGE_BUGREPORT='googletestframework@googlegroups.com' 576PACKAGE_URL='' 577 578ac_unique_file="./LICENSE" 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='am__EXEEXT_FALSE 616am__EXEEXT_TRUE 617LTLIBOBJS 618LIBOBJS 619HAVE_PTHREADS_FALSE 620HAVE_PTHREADS_TRUE 621PTHREAD_CFLAGS 622PTHREAD_LIBS 623PTHREAD_CC 624acx_pthread_config 625HAVE_PYTHON_FALSE 626HAVE_PYTHON_TRUE 627PYTHON 628CXXCPP 629CPP 630OTOOL64 631OTOOL 632LIPO 633NMEDIT 634DSYMUTIL 635MANIFEST_TOOL 636RANLIB 637ac_ct_AR 638AR 639DLLTOOL 640OBJDUMP 641LN_S 642NM 643ac_ct_DUMPBIN 644DUMPBIN 645LD 646FGREP 647EGREP 648GREP 649SED 650host_os 651host_vendor 652host_cpu 653host 654build_os 655build_vendor 656build_cpu 657build 658LIBTOOL 659am__fastdepCXX_FALSE 660am__fastdepCXX_TRUE 661CXXDEPMODE 662ac_ct_CXX 663CXXFLAGS 664CXX 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__quote 673am__include 674DEPDIR 675OBJEXT 676EXEEXT 677ac_ct_CC 678CPPFLAGS 679LDFLAGS 680CFLAGS 681CC 682am__untar 683am__tar 684AMTAR 685am__leading_dot 686SET_MAKE 687AWK 688mkdir_p 689MKDIR_P 690INSTALL_STRIP_PROGRAM 691STRIP 692install_sh 693MAKEINFO 694AUTOHEADER 695AUTOMAKE 696AUTOCONF 697ACLOCAL 698VERSION 699PACKAGE 700CYGPATH_W 701am__isrc 702INSTALL_DATA 703INSTALL_SCRIPT 704INSTALL_PROGRAM 705target_alias 706host_alias 707build_alias 708LIBS 709ECHO_T 710ECHO_N 711ECHO_C 712DEFS 713mandir 714localedir 715libdir 716psdir 717pdfdir 718dvidir 719htmldir 720infodir 721docdir 722oldincludedir 723includedir 724localstatedir 725sharedstatedir 726sysconfdir 727datadir 728datarootdir 729libexecdir 730sbindir 731bindir 732program_transform_name 733prefix 734exec_prefix 735PACKAGE_URL 736PACKAGE_BUGREPORT 737PACKAGE_STRING 738PACKAGE_VERSION 739PACKAGE_TARNAME 740PACKAGE_NAME 741PATH_SEPARATOR 742SHELL' 743ac_subst_files='' 744ac_user_opts=' 745enable_option_checking 746enable_dependency_tracking 747enable_shared 748enable_static 749with_pic 750enable_fast_install 751with_gnu_ld 752with_sysroot 753enable_libtool_lock 754with_pthreads 755' 756 ac_precious_vars='build_alias 757host_alias 758target_alias 759CC 760CFLAGS 761LDFLAGS 762LIBS 763CPPFLAGS 764CXX 765CXXFLAGS 766CCC 767CPP 768CXXCPP' 769 770 771# Initialize some variables set by options. 772ac_init_help= 773ac_init_version=false 774ac_unrecognized_opts= 775ac_unrecognized_sep= 776# The variables have the same names as the options, with 777# dashes changed to underlines. 778cache_file=/dev/null 779exec_prefix=NONE 780no_create= 781no_recursion= 782prefix=NONE 783program_prefix=NONE 784program_suffix=NONE 785program_transform_name=s,x,x, 786silent= 787site= 788srcdir= 789verbose= 790x_includes=NONE 791x_libraries=NONE 792 793# Installation directory options. 794# These are left unexpanded so users can "make install exec_prefix=/foo" 795# and all the variables that are supposed to be based on exec_prefix 796# by default will actually change. 797# Use braces instead of parens because sh, perl, etc. also accept them. 798# (The list follows the same order as the GNU Coding Standards.) 799bindir='${exec_prefix}/bin' 800sbindir='${exec_prefix}/sbin' 801libexecdir='${exec_prefix}/libexec' 802datarootdir='${prefix}/share' 803datadir='${datarootdir}' 804sysconfdir='${prefix}/etc' 805sharedstatedir='${prefix}/com' 806localstatedir='${prefix}/var' 807includedir='${prefix}/include' 808oldincludedir='/usr/include' 809docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 810infodir='${datarootdir}/info' 811htmldir='${docdir}' 812dvidir='${docdir}' 813pdfdir='${docdir}' 814psdir='${docdir}' 815libdir='${exec_prefix}/lib' 816localedir='${datarootdir}/locale' 817mandir='${datarootdir}/man' 818 819ac_prev= 820ac_dashdash= 821for ac_option 822do 823 # If the previous option needs an argument, assign it. 824 if test -n "$ac_prev"; then 825 eval $ac_prev=\$ac_option 826 ac_prev= 827 continue 828 fi 829 830 case $ac_option in 831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 832 *=) ac_optarg= ;; 833 *) ac_optarg=yes ;; 834 esac 835 836 # Accept the important Cygnus configure options, so we can diagnose typos. 837 838 case $ac_dashdash$ac_option in 839 --) 840 ac_dashdash=yes ;; 841 842 -bindir | --bindir | --bindi | --bind | --bin | --bi) 843 ac_prev=bindir ;; 844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 845 bindir=$ac_optarg ;; 846 847 -build | --build | --buil | --bui | --bu) 848 ac_prev=build_alias ;; 849 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 850 build_alias=$ac_optarg ;; 851 852 -cache-file | --cache-file | --cache-fil | --cache-fi \ 853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 854 ac_prev=cache_file ;; 855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 857 cache_file=$ac_optarg ;; 858 859 --config-cache | -C) 860 cache_file=config.cache ;; 861 862 -datadir | --datadir | --datadi | --datad) 863 ac_prev=datadir ;; 864 -datadir=* | --datadir=* | --datadi=* | --datad=*) 865 datadir=$ac_optarg ;; 866 867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 868 | --dataroo | --dataro | --datar) 869 ac_prev=datarootdir ;; 870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 872 datarootdir=$ac_optarg ;; 873 874 -disable-* | --disable-*) 875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 878 as_fn_error $? "invalid feature name: $ac_useropt" 879 ac_useropt_orig=$ac_useropt 880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 881 case $ac_user_opts in 882 *" 883"enable_$ac_useropt" 884"*) ;; 885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 886 ac_unrecognized_sep=', ';; 887 esac 888 eval enable_$ac_useropt=no ;; 889 890 -docdir | --docdir | --docdi | --doc | --do) 891 ac_prev=docdir ;; 892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 893 docdir=$ac_optarg ;; 894 895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 896 ac_prev=dvidir ;; 897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 898 dvidir=$ac_optarg ;; 899 900 -enable-* | --enable-*) 901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 902 # Reject names that are not valid shell variable names. 903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 904 as_fn_error $? "invalid feature name: $ac_useropt" 905 ac_useropt_orig=$ac_useropt 906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 907 case $ac_user_opts in 908 *" 909"enable_$ac_useropt" 910"*) ;; 911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 912 ac_unrecognized_sep=', ';; 913 esac 914 eval enable_$ac_useropt=\$ac_optarg ;; 915 916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 918 | --exec | --exe | --ex) 919 ac_prev=exec_prefix ;; 920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 922 | --exec=* | --exe=* | --ex=*) 923 exec_prefix=$ac_optarg ;; 924 925 -gas | --gas | --ga | --g) 926 # Obsolete; use --with-gas. 927 with_gas=yes ;; 928 929 -help | --help | --hel | --he | -h) 930 ac_init_help=long ;; 931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 932 ac_init_help=recursive ;; 933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 934 ac_init_help=short ;; 935 936 -host | --host | --hos | --ho) 937 ac_prev=host_alias ;; 938 -host=* | --host=* | --hos=* | --ho=*) 939 host_alias=$ac_optarg ;; 940 941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 942 ac_prev=htmldir ;; 943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 944 | --ht=*) 945 htmldir=$ac_optarg ;; 946 947 -includedir | --includedir | --includedi | --included | --include \ 948 | --includ | --inclu | --incl | --inc) 949 ac_prev=includedir ;; 950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 951 | --includ=* | --inclu=* | --incl=* | --inc=*) 952 includedir=$ac_optarg ;; 953 954 -infodir | --infodir | --infodi | --infod | --info | --inf) 955 ac_prev=infodir ;; 956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 957 infodir=$ac_optarg ;; 958 959 -libdir | --libdir | --libdi | --libd) 960 ac_prev=libdir ;; 961 -libdir=* | --libdir=* | --libdi=* | --libd=*) 962 libdir=$ac_optarg ;; 963 964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 965 | --libexe | --libex | --libe) 966 ac_prev=libexecdir ;; 967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 968 | --libexe=* | --libex=* | --libe=*) 969 libexecdir=$ac_optarg ;; 970 971 -localedir | --localedir | --localedi | --localed | --locale) 972 ac_prev=localedir ;; 973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 974 localedir=$ac_optarg ;; 975 976 -localstatedir | --localstatedir | --localstatedi | --localstated \ 977 | --localstate | --localstat | --localsta | --localst | --locals) 978 ac_prev=localstatedir ;; 979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 981 localstatedir=$ac_optarg ;; 982 983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 984 ac_prev=mandir ;; 985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 986 mandir=$ac_optarg ;; 987 988 -nfp | --nfp | --nf) 989 # Obsolete; use --without-fp. 990 with_fp=no ;; 991 992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 993 | --no-cr | --no-c | -n) 994 no_create=yes ;; 995 996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 998 no_recursion=yes ;; 999 1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1002 | --oldin | --oldi | --old | --ol | --o) 1003 ac_prev=oldincludedir ;; 1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1007 oldincludedir=$ac_optarg ;; 1008 1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1010 ac_prev=prefix ;; 1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1012 prefix=$ac_optarg ;; 1013 1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1015 | --program-pre | --program-pr | --program-p) 1016 ac_prev=program_prefix ;; 1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1019 program_prefix=$ac_optarg ;; 1020 1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1022 | --program-suf | --program-su | --program-s) 1023 ac_prev=program_suffix ;; 1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1026 program_suffix=$ac_optarg ;; 1027 1028 -program-transform-name | --program-transform-name \ 1029 | --program-transform-nam | --program-transform-na \ 1030 | --program-transform-n | --program-transform- \ 1031 | --program-transform | --program-transfor \ 1032 | --program-transfo | --program-transf \ 1033 | --program-trans | --program-tran \ 1034 | --progr-tra | --program-tr | --program-t) 1035 ac_prev=program_transform_name ;; 1036 -program-transform-name=* | --program-transform-name=* \ 1037 | --program-transform-nam=* | --program-transform-na=* \ 1038 | --program-transform-n=* | --program-transform-=* \ 1039 | --program-transform=* | --program-transfor=* \ 1040 | --program-transfo=* | --program-transf=* \ 1041 | --program-trans=* | --program-tran=* \ 1042 | --progr-tra=* | --program-tr=* | --program-t=*) 1043 program_transform_name=$ac_optarg ;; 1044 1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1046 ac_prev=pdfdir ;; 1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1048 pdfdir=$ac_optarg ;; 1049 1050 -psdir | --psdir | --psdi | --psd | --ps) 1051 ac_prev=psdir ;; 1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1053 psdir=$ac_optarg ;; 1054 1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1056 | -silent | --silent | --silen | --sile | --sil) 1057 silent=yes ;; 1058 1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1060 ac_prev=sbindir ;; 1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1062 | --sbi=* | --sb=*) 1063 sbindir=$ac_optarg ;; 1064 1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1067 | --sharedst | --shareds | --shared | --share | --shar \ 1068 | --sha | --sh) 1069 ac_prev=sharedstatedir ;; 1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1073 | --sha=* | --sh=*) 1074 sharedstatedir=$ac_optarg ;; 1075 1076 -site | --site | --sit) 1077 ac_prev=site ;; 1078 -site=* | --site=* | --sit=*) 1079 site=$ac_optarg ;; 1080 1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1082 ac_prev=srcdir ;; 1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1084 srcdir=$ac_optarg ;; 1085 1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1087 | --syscon | --sysco | --sysc | --sys | --sy) 1088 ac_prev=sysconfdir ;; 1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1091 sysconfdir=$ac_optarg ;; 1092 1093 -target | --target | --targe | --targ | --tar | --ta | --t) 1094 ac_prev=target_alias ;; 1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1096 target_alias=$ac_optarg ;; 1097 1098 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1099 verbose=yes ;; 1100 1101 -version | --version | --versio | --versi | --vers | -V) 1102 ac_init_version=: ;; 1103 1104 -with-* | --with-*) 1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1106 # Reject names that are not valid shell variable names. 1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1108 as_fn_error $? "invalid package name: $ac_useropt" 1109 ac_useropt_orig=$ac_useropt 1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1111 case $ac_user_opts in 1112 *" 1113"with_$ac_useropt" 1114"*) ;; 1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1116 ac_unrecognized_sep=', ';; 1117 esac 1118 eval with_$ac_useropt=\$ac_optarg ;; 1119 1120 -without-* | --without-*) 1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1124 as_fn_error $? "invalid package name: $ac_useropt" 1125 ac_useropt_orig=$ac_useropt 1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1127 case $ac_user_opts in 1128 *" 1129"with_$ac_useropt" 1130"*) ;; 1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1132 ac_unrecognized_sep=', ';; 1133 esac 1134 eval with_$ac_useropt=no ;; 1135 1136 --x) 1137 # Obsolete; use --with-x. 1138 with_x=yes ;; 1139 1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1141 | --x-incl | --x-inc | --x-in | --x-i) 1142 ac_prev=x_includes ;; 1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1145 x_includes=$ac_optarg ;; 1146 1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1149 ac_prev=x_libraries ;; 1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1152 x_libraries=$ac_optarg ;; 1153 1154 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1155Try \`$0 --help' for more information" 1156 ;; 1157 1158 *=*) 1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1160 # Reject names that are not valid shell variable names. 1161 case $ac_envvar in #( 1162 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1164 esac 1165 eval $ac_envvar=\$ac_optarg 1166 export $ac_envvar ;; 1167 1168 *) 1169 # FIXME: should be removed in autoconf 3.0. 1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1174 ;; 1175 1176 esac 1177done 1178 1179if test -n "$ac_prev"; then 1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1181 as_fn_error $? "missing argument to $ac_option" 1182fi 1183 1184if test -n "$ac_unrecognized_opts"; then 1185 case $enable_option_checking in 1186 no) ;; 1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1189 esac 1190fi 1191 1192# Check all directory arguments for consistency. 1193for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1194 datadir sysconfdir sharedstatedir localstatedir includedir \ 1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1196 libdir localedir mandir 1197do 1198 eval ac_val=\$$ac_var 1199 # Remove trailing slashes. 1200 case $ac_val in 1201 */ ) 1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1203 eval $ac_var=\$ac_val;; 1204 esac 1205 # Be sure to have absolute directory names. 1206 case $ac_val in 1207 [\\/$]* | ?:[\\/]* ) continue;; 1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1209 esac 1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1211done 1212 1213# There might be people who depend on the old broken behavior: `$host' 1214# used to hold the argument of --host etc. 1215# FIXME: To remove some day. 1216build=$build_alias 1217host=$host_alias 1218target=$target_alias 1219 1220# FIXME: To remove some day. 1221if test "x$host_alias" != x; then 1222 if test "x$build_alias" = x; then 1223 cross_compiling=maybe 1224 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1225 If a cross compiler is detected then cross compile mode will be used" >&2 1226 elif test "x$build_alias" != "x$host_alias"; then 1227 cross_compiling=yes 1228 fi 1229fi 1230 1231ac_tool_prefix= 1232test -n "$host_alias" && ac_tool_prefix=$host_alias- 1233 1234test "$silent" = yes && exec 6>/dev/null 1235 1236 1237ac_pwd=`pwd` && test -n "$ac_pwd" && 1238ac_ls_di=`ls -di .` && 1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1240 as_fn_error $? "working directory cannot be determined" 1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1242 as_fn_error $? "pwd does not report name of working directory" 1243 1244 1245# Find the source files, if location was not specified. 1246if test -z "$srcdir"; then 1247 ac_srcdir_defaulted=yes 1248 # Try the directory containing this script, then the parent directory. 1249 ac_confdir=`$as_dirname -- "$as_myself" || 1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1251 X"$as_myself" : 'X\(//\)[^/]' \| \ 1252 X"$as_myself" : 'X\(//\)$' \| \ 1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1254$as_echo X"$as_myself" | 1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1256 s//\1/ 1257 q 1258 } 1259 /^X\(\/\/\)[^/].*/{ 1260 s//\1/ 1261 q 1262 } 1263 /^X\(\/\/\)$/{ 1264 s//\1/ 1265 q 1266 } 1267 /^X\(\/\).*/{ 1268 s//\1/ 1269 q 1270 } 1271 s/.*/./; q'` 1272 srcdir=$ac_confdir 1273 if test ! -r "$srcdir/$ac_unique_file"; then 1274 srcdir=.. 1275 fi 1276else 1277 ac_srcdir_defaulted=no 1278fi 1279if test ! -r "$srcdir/$ac_unique_file"; then 1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1281 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1282fi 1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1284ac_abs_confdir=`( 1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1286 pwd)` 1287# When building in place, set srcdir=. 1288if test "$ac_abs_confdir" = "$ac_pwd"; then 1289 srcdir=. 1290fi 1291# Remove unnecessary trailing slashes from srcdir. 1292# Double slashes in file names in object file debugging info 1293# mess up M-x gdb in Emacs. 1294case $srcdir in 1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1296esac 1297for ac_var in $ac_precious_vars; do 1298 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1299 eval ac_env_${ac_var}_value=\$${ac_var} 1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1301 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1302done 1303 1304# 1305# Report the --help message. 1306# 1307if test "$ac_init_help" = "long"; then 1308 # Omit some internal or obsolete options to make the list less imposing. 1309 # This message is too long to be a string in the A/UX 3.1 sh. 1310 cat <<_ACEOF 1311\`configure' configures Google C++ Testing Framework 1.7.0 to adapt to many kinds of systems. 1312 1313Usage: $0 [OPTION]... [VAR=VALUE]... 1314 1315To assign environment variables (e.g., CC, CFLAGS...), specify them as 1316VAR=VALUE. See below for descriptions of some of the useful variables. 1317 1318Defaults for the options are specified in brackets. 1319 1320Configuration: 1321 -h, --help display this help and exit 1322 --help=short display options specific to this package 1323 --help=recursive display the short help of all the included packages 1324 -V, --version display version information and exit 1325 -q, --quiet, --silent do not print \`checking ...' messages 1326 --cache-file=FILE cache test results in FILE [disabled] 1327 -C, --config-cache alias for \`--cache-file=config.cache' 1328 -n, --no-create do not create output files 1329 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1330 1331Installation directories: 1332 --prefix=PREFIX install architecture-independent files in PREFIX 1333 [$ac_default_prefix] 1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1335 [PREFIX] 1336 1337By default, \`make install' will install all the files in 1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1339an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1340for instance \`--prefix=\$HOME'. 1341 1342For better control, use the options below. 1343 1344Fine tuning of the installation directories: 1345 --bindir=DIR user executables [EPREFIX/bin] 1346 --sbindir=DIR system admin executables [EPREFIX/sbin] 1347 --libexecdir=DIR program executables [EPREFIX/libexec] 1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1351 --libdir=DIR object code libraries [EPREFIX/lib] 1352 --includedir=DIR C header files [PREFIX/include] 1353 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1356 --infodir=DIR info documentation [DATAROOTDIR/info] 1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1358 --mandir=DIR man documentation [DATAROOTDIR/man] 1359 --docdir=DIR documentation root [DATAROOTDIR/doc/gtest] 1360 --htmldir=DIR html documentation [DOCDIR] 1361 --dvidir=DIR dvi documentation [DOCDIR] 1362 --pdfdir=DIR pdf documentation [DOCDIR] 1363 --psdir=DIR ps documentation [DOCDIR] 1364_ACEOF 1365 1366 cat <<\_ACEOF 1367 1368Program names: 1369 --program-prefix=PREFIX prepend PREFIX to installed program names 1370 --program-suffix=SUFFIX append SUFFIX to installed program names 1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1372 1373System types: 1374 --build=BUILD configure for building on BUILD [guessed] 1375 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1376_ACEOF 1377fi 1378 1379if test -n "$ac_init_help"; then 1380 case $ac_init_help in 1381 short | recursive ) echo "Configuration of Google C++ Testing Framework 1.7.0:";; 1382 esac 1383 cat <<\_ACEOF 1384 1385Optional Features: 1386 --disable-option-checking ignore unrecognized --enable/--with options 1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1389 --disable-dependency-tracking speeds up one-time build 1390 --enable-dependency-tracking do not reject slow dependency extractors 1391 --enable-shared[=PKGS] build shared libraries [default=yes] 1392 --enable-static[=PKGS] build static libraries [default=yes] 1393 --enable-fast-install[=PKGS] 1394 optimize for fast installation [default=yes] 1395 --disable-libtool-lock avoid locking (might break parallel builds) 1396 1397Optional Packages: 1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1400 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1401 both] 1402 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1403 --with-sysroot=DIR Search for dependent libraries within DIR 1404 (or the compiler's sysroot if not specified). 1405 --with-pthreads use pthreads (default is yes) 1406 1407Some influential environment variables: 1408 CC C compiler command 1409 CFLAGS C compiler flags 1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1411 nonstandard directory <lib dir> 1412 LIBS libraries to pass to the linker, e.g. -l<library> 1413 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1414 you have headers in a nonstandard directory <include dir> 1415 CXX C++ compiler command 1416 CXXFLAGS C++ compiler flags 1417 CPP C preprocessor 1418 CXXCPP C++ preprocessor 1419 1420Use these variables to override the choices made by `configure' or to help 1421it to find libraries and programs with nonstandard names/locations. 1422 1423Report bugs to <googletestframework@googlegroups.com>. 1424_ACEOF 1425ac_status=$? 1426fi 1427 1428if test "$ac_init_help" = "recursive"; then 1429 # If there are subdirs, report their specific --help. 1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1431 test -d "$ac_dir" || 1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1433 continue 1434 ac_builddir=. 1435 1436case "$ac_dir" in 1437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1438*) 1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1440 # A ".." for each directory in $ac_dir_suffix. 1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1442 case $ac_top_builddir_sub in 1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1445 esac ;; 1446esac 1447ac_abs_top_builddir=$ac_pwd 1448ac_abs_builddir=$ac_pwd$ac_dir_suffix 1449# for backward compatibility: 1450ac_top_builddir=$ac_top_build_prefix 1451 1452case $srcdir in 1453 .) # We are building in place. 1454 ac_srcdir=. 1455 ac_top_srcdir=$ac_top_builddir_sub 1456 ac_abs_top_srcdir=$ac_pwd ;; 1457 [\\/]* | ?:[\\/]* ) # Absolute name. 1458 ac_srcdir=$srcdir$ac_dir_suffix; 1459 ac_top_srcdir=$srcdir 1460 ac_abs_top_srcdir=$srcdir ;; 1461 *) # Relative name. 1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1463 ac_top_srcdir=$ac_top_build_prefix$srcdir 1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1465esac 1466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1467 1468 cd "$ac_dir" || { ac_status=$?; continue; } 1469 # Check for guested configure. 1470 if test -f "$ac_srcdir/configure.gnu"; then 1471 echo && 1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1473 elif test -f "$ac_srcdir/configure"; then 1474 echo && 1475 $SHELL "$ac_srcdir/configure" --help=recursive 1476 else 1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1478 fi || ac_status=$? 1479 cd "$ac_pwd" || { ac_status=$?; break; } 1480 done 1481fi 1482 1483test -n "$ac_init_help" && exit $ac_status 1484if $ac_init_version; then 1485 cat <<\_ACEOF 1486Google C++ Testing Framework configure 1.7.0 1487generated by GNU Autoconf 2.68 1488 1489Copyright (C) 2010 Free Software Foundation, Inc. 1490This configure script is free software; the Free Software Foundation 1491gives unlimited permission to copy, distribute and modify it. 1492_ACEOF 1493 exit 1494fi 1495 1496## ------------------------ ## 1497## Autoconf initialization. ## 1498## ------------------------ ## 1499 1500# ac_fn_c_try_compile LINENO 1501# -------------------------- 1502# Try to compile conftest.$ac_ext, and return whether this succeeded. 1503ac_fn_c_try_compile () 1504{ 1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1506 rm -f conftest.$ac_objext 1507 if { { ac_try="$ac_compile" 1508case "(($ac_try" in 1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1510 *) ac_try_echo=$ac_try;; 1511esac 1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1513$as_echo "$ac_try_echo"; } >&5 1514 (eval "$ac_compile") 2>conftest.err 1515 ac_status=$? 1516 if test -s conftest.err; then 1517 grep -v '^ *+' conftest.err >conftest.er1 1518 cat conftest.er1 >&5 1519 mv -f conftest.er1 conftest.err 1520 fi 1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1522 test $ac_status = 0; } && { 1523 test -z "$ac_c_werror_flag" || 1524 test ! -s conftest.err 1525 } && test -s conftest.$ac_objext; then : 1526 ac_retval=0 1527else 1528 $as_echo "$as_me: failed program was:" >&5 1529sed 's/^/| /' conftest.$ac_ext >&5 1530 1531 ac_retval=1 1532fi 1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1534 as_fn_set_status $ac_retval 1535 1536} # ac_fn_c_try_compile 1537 1538# ac_fn_cxx_try_compile LINENO 1539# ---------------------------- 1540# Try to compile conftest.$ac_ext, and return whether this succeeded. 1541ac_fn_cxx_try_compile () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 rm -f conftest.$ac_objext 1545 if { { ac_try="$ac_compile" 1546case "(($ac_try" in 1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1548 *) ac_try_echo=$ac_try;; 1549esac 1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551$as_echo "$ac_try_echo"; } >&5 1552 (eval "$ac_compile") 2>conftest.err 1553 ac_status=$? 1554 if test -s conftest.err; then 1555 grep -v '^ *+' conftest.err >conftest.er1 1556 cat conftest.er1 >&5 1557 mv -f conftest.er1 conftest.err 1558 fi 1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; } && { 1561 test -z "$ac_cxx_werror_flag" || 1562 test ! -s conftest.err 1563 } && test -s conftest.$ac_objext; then : 1564 ac_retval=0 1565else 1566 $as_echo "$as_me: failed program was:" >&5 1567sed 's/^/| /' conftest.$ac_ext >&5 1568 1569 ac_retval=1 1570fi 1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1572 as_fn_set_status $ac_retval 1573 1574} # ac_fn_cxx_try_compile 1575 1576# ac_fn_c_try_link LINENO 1577# ----------------------- 1578# Try to link conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_link () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 rm -f conftest.$ac_objext conftest$ac_exeext 1583 if { { ac_try="$ac_link" 1584case "(($ac_try" in 1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1586 *) ac_try_echo=$ac_try;; 1587esac 1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1589$as_echo "$ac_try_echo"; } >&5 1590 (eval "$ac_link") 2>conftest.err 1591 ac_status=$? 1592 if test -s conftest.err; then 1593 grep -v '^ *+' conftest.err >conftest.er1 1594 cat conftest.er1 >&5 1595 mv -f conftest.er1 conftest.err 1596 fi 1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1598 test $ac_status = 0; } && { 1599 test -z "$ac_c_werror_flag" || 1600 test ! -s conftest.err 1601 } && test -s conftest$ac_exeext && { 1602 test "$cross_compiling" = yes || 1603 $as_test_x conftest$ac_exeext 1604 }; then : 1605 ac_retval=0 1606else 1607 $as_echo "$as_me: failed program was:" >&5 1608sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611fi 1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1614 # interfere with the next link command; also delete a directory that is 1615 # left behind by Apple's compiler. We do this before executing the actions. 1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 as_fn_set_status $ac_retval 1619 1620} # ac_fn_c_try_link 1621 1622# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1623# ------------------------------------------------------- 1624# Tests whether HEADER exists and can be compiled using the include files in 1625# INCLUDES, setting the cache variable VAR accordingly. 1626ac_fn_c_check_header_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630$as_echo_n "checking for $2... " >&6; } 1631if eval \${$3+:} false; then : 1632 $as_echo_n "(cached) " >&6 1633else 1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635/* end confdefs.h. */ 1636$4 1637#include <$2> 1638_ACEOF 1639if ac_fn_c_try_compile "$LINENO"; then : 1640 eval "$3=yes" 1641else 1642 eval "$3=no" 1643fi 1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1645fi 1646eval ac_res=\$$3 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1648$as_echo "$ac_res" >&6; } 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 1651} # ac_fn_c_check_header_compile 1652 1653# ac_fn_c_try_cpp LINENO 1654# ---------------------- 1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_cpp () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 if { { ac_try="$ac_cpp conftest.$ac_ext" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } > conftest.i && { 1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 }; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: failed program was:" >&5 1681sed 's/^/| /' conftest.$ac_ext >&5 1682 1683 ac_retval=1 1684fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 as_fn_set_status $ac_retval 1687 1688} # ac_fn_c_try_cpp 1689 1690# ac_fn_c_try_run LINENO 1691# ---------------------- 1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1693# that executables *can* be run. 1694ac_fn_c_try_run () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 if { { ac_try="$ac_link" 1698case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701esac 1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703$as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_link") 2>&5 1705 ac_status=$? 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1708 { { case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_try") 2>&5 1715 ac_status=$? 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; }; }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: program exited with status $ac_status" >&5 1721 $as_echo "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=$ac_status 1725fi 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_run 1731 1732# ac_fn_c_check_func LINENO FUNC VAR 1733# ---------------------------------- 1734# Tests whether FUNC exists, setting the cache variable VAR accordingly 1735ac_fn_c_check_func () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739$as_echo_n "checking for $2... " >&6; } 1740if eval \${$3+:} false; then : 1741 $as_echo_n "(cached) " >&6 1742else 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1747#define $2 innocuous_$2 1748 1749/* System header to define __stub macros and hopefully few prototypes, 1750 which can conflict with char $2 (); below. 1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1752 <limits.h> exists even on freestanding compilers. */ 1753 1754#ifdef __STDC__ 1755# include <limits.h> 1756#else 1757# include <assert.h> 1758#endif 1759 1760#undef $2 1761 1762/* Override any GCC internal prototype to avoid an error. 1763 Use char because int might match the return type of a GCC 1764 builtin and then its argument prototype would still apply. */ 1765#ifdef __cplusplus 1766extern "C" 1767#endif 1768char $2 (); 1769/* The GNU C library defines this for functions which it implements 1770 to always fail with ENOSYS. Some functions are actually named 1771 something starting with __ and the normal name is an alias. */ 1772#if defined __stub_$2 || defined __stub___$2 1773choke me 1774#endif 1775 1776int 1777main () 1778{ 1779return $2 (); 1780 ; 1781 return 0; 1782} 1783_ACEOF 1784if ac_fn_c_try_link "$LINENO"; then : 1785 eval "$3=yes" 1786else 1787 eval "$3=no" 1788fi 1789rm -f core conftest.err conftest.$ac_objext \ 1790 conftest$ac_exeext conftest.$ac_ext 1791fi 1792eval ac_res=\$$3 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794$as_echo "$ac_res" >&6; } 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 1797} # ac_fn_c_check_func 1798 1799# ac_fn_cxx_try_cpp LINENO 1800# ------------------------ 1801# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1802ac_fn_cxx_try_cpp () 1803{ 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 if { { ac_try="$ac_cpp conftest.$ac_ext" 1806case "(($ac_try" in 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1808 *) ac_try_echo=$ac_try;; 1809esac 1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1811$as_echo "$ac_try_echo"; } >&5 1812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1813 ac_status=$? 1814 if test -s conftest.err; then 1815 grep -v '^ *+' conftest.err >conftest.er1 1816 cat conftest.er1 >&5 1817 mv -f conftest.er1 conftest.err 1818 fi 1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1820 test $ac_status = 0; } > conftest.i && { 1821 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1822 test ! -s conftest.err 1823 }; then : 1824 ac_retval=0 1825else 1826 $as_echo "$as_me: failed program was:" >&5 1827sed 's/^/| /' conftest.$ac_ext >&5 1828 1829 ac_retval=1 1830fi 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1832 as_fn_set_status $ac_retval 1833 1834} # ac_fn_cxx_try_cpp 1835 1836# ac_fn_cxx_try_link LINENO 1837# ------------------------- 1838# Try to link conftest.$ac_ext, and return whether this succeeded. 1839ac_fn_cxx_try_link () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 rm -f conftest.$ac_objext conftest$ac_exeext 1843 if { { ac_try="$ac_link" 1844case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_link") 2>conftest.err 1851 ac_status=$? 1852 if test -s conftest.err; then 1853 grep -v '^ *+' conftest.err >conftest.er1 1854 cat conftest.er1 >&5 1855 mv -f conftest.er1 conftest.err 1856 fi 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; } && { 1859 test -z "$ac_cxx_werror_flag" || 1860 test ! -s conftest.err 1861 } && test -s conftest$ac_exeext && { 1862 test "$cross_compiling" = yes || 1863 $as_test_x conftest$ac_exeext 1864 }; then : 1865 ac_retval=0 1866else 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=1 1871fi 1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1874 # interfere with the next link command; also delete a directory that is 1875 # left behind by Apple's compiler. We do this before executing the actions. 1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 as_fn_set_status $ac_retval 1879 1880} # ac_fn_cxx_try_link 1881cat >config.log <<_ACEOF 1882This file contains any messages produced by compilers while 1883running configure, to aid debugging if configure makes a mistake. 1884 1885It was created by Google C++ Testing Framework $as_me 1.7.0, which was 1886generated by GNU Autoconf 2.68. Invocation command line was 1887 1888 $ $0 $@ 1889 1890_ACEOF 1891exec 5>>config.log 1892{ 1893cat <<_ASUNAME 1894## --------- ## 1895## Platform. ## 1896## --------- ## 1897 1898hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1899uname -m = `(uname -m) 2>/dev/null || echo unknown` 1900uname -r = `(uname -r) 2>/dev/null || echo unknown` 1901uname -s = `(uname -s) 2>/dev/null || echo unknown` 1902uname -v = `(uname -v) 2>/dev/null || echo unknown` 1903 1904/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1905/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1906 1907/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1908/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1909/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1910/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1911/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1912/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1913/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1914 1915_ASUNAME 1916 1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1918for as_dir in $PATH 1919do 1920 IFS=$as_save_IFS 1921 test -z "$as_dir" && as_dir=. 1922 $as_echo "PATH: $as_dir" 1923 done 1924IFS=$as_save_IFS 1925 1926} >&5 1927 1928cat >&5 <<_ACEOF 1929 1930 1931## ----------- ## 1932## Core tests. ## 1933## ----------- ## 1934 1935_ACEOF 1936 1937 1938# Keep a trace of the command line. 1939# Strip out --no-create and --no-recursion so they do not pile up. 1940# Strip out --silent because we don't want to record it for future runs. 1941# Also quote any args containing shell meta-characters. 1942# Make two passes to allow for proper duplicate-argument suppression. 1943ac_configure_args= 1944ac_configure_args0= 1945ac_configure_args1= 1946ac_must_keep_next=false 1947for ac_pass in 1 2 1948do 1949 for ac_arg 1950 do 1951 case $ac_arg in 1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1954 | -silent | --silent | --silen | --sile | --sil) 1955 continue ;; 1956 *\'*) 1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1958 esac 1959 case $ac_pass in 1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1961 2) 1962 as_fn_append ac_configure_args1 " '$ac_arg'" 1963 if test $ac_must_keep_next = true; then 1964 ac_must_keep_next=false # Got value, back to normal. 1965 else 1966 case $ac_arg in 1967 *=* | --config-cache | -C | -disable-* | --disable-* \ 1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1970 | -with-* | --with-* | -without-* | --without-* | --x) 1971 case "$ac_configure_args0 " in 1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1973 esac 1974 ;; 1975 -* ) ac_must_keep_next=true ;; 1976 esac 1977 fi 1978 as_fn_append ac_configure_args " '$ac_arg'" 1979 ;; 1980 esac 1981 done 1982done 1983{ ac_configure_args0=; unset ac_configure_args0;} 1984{ ac_configure_args1=; unset ac_configure_args1;} 1985 1986# When interrupted or exit'd, cleanup temporary files, and complete 1987# config.log. We remove comments because anyway the quotes in there 1988# would cause problems or look ugly. 1989# WARNING: Use '\'' to represent an apostrophe within the trap. 1990# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1991trap 'exit_status=$? 1992 # Save into config.log some information that might help in debugging. 1993 { 1994 echo 1995 1996 $as_echo "## ---------------- ## 1997## Cache variables. ## 1998## ---------------- ##" 1999 echo 2000 # The following way of writing the cache mishandles newlines in values, 2001( 2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2003 eval ac_val=\$$ac_var 2004 case $ac_val in #( 2005 *${as_nl}*) 2006 case $ac_var in #( 2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2008$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2009 esac 2010 case $ac_var in #( 2011 _ | IFS | as_nl) ;; #( 2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2013 *) { eval $ac_var=; unset $ac_var;} ;; 2014 esac ;; 2015 esac 2016 done 2017 (set) 2>&1 | 2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2019 *${as_nl}ac_space=\ *) 2020 sed -n \ 2021 "s/'\''/'\''\\\\'\'''\''/g; 2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2023 ;; #( 2024 *) 2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2026 ;; 2027 esac | 2028 sort 2029) 2030 echo 2031 2032 $as_echo "## ----------------- ## 2033## Output variables. ## 2034## ----------------- ##" 2035 echo 2036 for ac_var in $ac_subst_vars 2037 do 2038 eval ac_val=\$$ac_var 2039 case $ac_val in 2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2041 esac 2042 $as_echo "$ac_var='\''$ac_val'\''" 2043 done | sort 2044 echo 2045 2046 if test -n "$ac_subst_files"; then 2047 $as_echo "## ------------------- ## 2048## File substitutions. ## 2049## ------------------- ##" 2050 echo 2051 for ac_var in $ac_subst_files 2052 do 2053 eval ac_val=\$$ac_var 2054 case $ac_val in 2055 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2056 esac 2057 $as_echo "$ac_var='\''$ac_val'\''" 2058 done | sort 2059 echo 2060 fi 2061 2062 if test -s confdefs.h; then 2063 $as_echo "## ----------- ## 2064## confdefs.h. ## 2065## ----------- ##" 2066 echo 2067 cat confdefs.h 2068 echo 2069 fi 2070 test "$ac_signal" != 0 && 2071 $as_echo "$as_me: caught signal $ac_signal" 2072 $as_echo "$as_me: exit $exit_status" 2073 } >&5 2074 rm -f core *.core core.conftest.* && 2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2076 exit $exit_status 2077' 0 2078for ac_signal in 1 2 13 15; do 2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2080done 2081ac_signal=0 2082 2083# confdefs.h avoids OS command line length limits that DEFS can exceed. 2084rm -f -r conftest* confdefs.h 2085 2086$as_echo "/* confdefs.h */" > confdefs.h 2087 2088# Predefined preprocessor variables. 2089 2090cat >>confdefs.h <<_ACEOF 2091#define PACKAGE_NAME "$PACKAGE_NAME" 2092_ACEOF 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2096_ACEOF 2097 2098cat >>confdefs.h <<_ACEOF 2099#define PACKAGE_VERSION "$PACKAGE_VERSION" 2100_ACEOF 2101 2102cat >>confdefs.h <<_ACEOF 2103#define PACKAGE_STRING "$PACKAGE_STRING" 2104_ACEOF 2105 2106cat >>confdefs.h <<_ACEOF 2107#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2108_ACEOF 2109 2110cat >>confdefs.h <<_ACEOF 2111#define PACKAGE_URL "$PACKAGE_URL" 2112_ACEOF 2113 2114 2115# Let the site file select an alternate cache file if it wants to. 2116# Prefer an explicitly selected file to automatically selected ones. 2117ac_site_file1=NONE 2118ac_site_file2=NONE 2119if test -n "$CONFIG_SITE"; then 2120 # We do not want a PATH search for config.site. 2121 case $CONFIG_SITE in #(( 2122 -*) ac_site_file1=./$CONFIG_SITE;; 2123 */*) ac_site_file1=$CONFIG_SITE;; 2124 *) ac_site_file1=./$CONFIG_SITE;; 2125 esac 2126elif test "x$prefix" != xNONE; then 2127 ac_site_file1=$prefix/share/config.site 2128 ac_site_file2=$prefix/etc/config.site 2129else 2130 ac_site_file1=$ac_default_prefix/share/config.site 2131 ac_site_file2=$ac_default_prefix/etc/config.site 2132fi 2133for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2134do 2135 test "x$ac_site_file" = xNONE && continue 2136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2138$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2139 sed 's/^/| /' "$ac_site_file" >&5 2140 . "$ac_site_file" \ 2141 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2143as_fn_error $? "failed to load site script $ac_site_file 2144See \`config.log' for more details" "$LINENO" 5; } 2145 fi 2146done 2147 2148if test -r "$cache_file"; then 2149 # Some versions of bash will fail to source /dev/null (special files 2150 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2151 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2153$as_echo "$as_me: loading cache $cache_file" >&6;} 2154 case $cache_file in 2155 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2156 *) . "./$cache_file";; 2157 esac 2158 fi 2159else 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2161$as_echo "$as_me: creating cache $cache_file" >&6;} 2162 >$cache_file 2163fi 2164 2165# Check that the precious variables saved in the cache have kept the same 2166# value. 2167ac_cache_corrupted=false 2168for ac_var in $ac_precious_vars; do 2169 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2170 eval ac_new_set=\$ac_env_${ac_var}_set 2171 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2172 eval ac_new_val=\$ac_env_${ac_var}_value 2173 case $ac_old_set,$ac_new_set in 2174 set,) 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2176$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2177 ac_cache_corrupted=: ;; 2178 ,set) 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2180$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2181 ac_cache_corrupted=: ;; 2182 ,);; 2183 *) 2184 if test "x$ac_old_val" != "x$ac_new_val"; then 2185 # differences in whitespace do not lead to failure. 2186 ac_old_val_w=`echo x $ac_old_val` 2187 ac_new_val_w=`echo x $ac_new_val` 2188 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2190$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2191 ac_cache_corrupted=: 2192 else 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2194$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2195 eval $ac_var=\$ac_old_val 2196 fi 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2198$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2200$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2201 fi;; 2202 esac 2203 # Pass precious variables to config.status. 2204 if test "$ac_new_set" = set; then 2205 case $ac_new_val in 2206 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2207 *) ac_arg=$ac_var=$ac_new_val ;; 2208 esac 2209 case " $ac_configure_args " in 2210 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2211 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2212 esac 2213 fi 2214done 2215if $ac_cache_corrupted; then 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2219$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2220 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2221fi 2222## -------------------- ## 2223## Main body of script. ## 2224## -------------------- ## 2225 2226ac_ext=c 2227ac_cpp='$CPP $CPPFLAGS' 2228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2230ac_compiler_gnu=$ac_cv_c_compiler_gnu 2231 2232 2233 2234# Provide various options to initialize the Autoconf and configure processes. 2235 2236 2237 2238ac_aux_dir= 2239for ac_dir in build-aux "$srcdir"/build-aux; do 2240 if test -f "$ac_dir/install-sh"; then 2241 ac_aux_dir=$ac_dir 2242 ac_install_sh="$ac_aux_dir/install-sh -c" 2243 break 2244 elif test -f "$ac_dir/install.sh"; then 2245 ac_aux_dir=$ac_dir 2246 ac_install_sh="$ac_aux_dir/install.sh -c" 2247 break 2248 elif test -f "$ac_dir/shtool"; then 2249 ac_aux_dir=$ac_dir 2250 ac_install_sh="$ac_aux_dir/shtool install -c" 2251 break 2252 fi 2253done 2254if test -z "$ac_aux_dir"; then 2255 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2256fi 2257 2258# These three variables are undocumented and unsupported, 2259# and are intended to be withdrawn in a future Autoconf release. 2260# They can cause serious problems if a builder's source tree is in a directory 2261# whose full name contains unusual characters. 2262ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2263ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2264ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2265 2266 2267ac_config_headers="$ac_config_headers build-aux/config.h" 2268 2269ac_config_files="$ac_config_files Makefile" 2270 2271ac_config_files="$ac_config_files scripts/gtest-config" 2272 2273 2274# Initialize Automake with various options. We require at least v1.9, prevent 2275# pedantic complaints about package files, and enable various distribution 2276# targets. 2277am__api_version='1.11' 2278 2279# Find a good install program. We prefer a C program (faster), 2280# so one script is as good as another. But avoid the broken or 2281# incompatible versions: 2282# SysV /etc/install, /usr/sbin/install 2283# SunOS /usr/etc/install 2284# IRIX /sbin/install 2285# AIX /bin/install 2286# AmigaOS /C/install, which installs bootblocks on floppy discs 2287# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2288# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2289# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2290# OS/2's system install, which has a completely different semantic 2291# ./install, which can be erroneously created by make from ./install.sh. 2292# Reject install programs that cannot install multiple files. 2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2294$as_echo_n "checking for a BSD-compatible install... " >&6; } 2295if test -z "$INSTALL"; then 2296if ${ac_cv_path_install+:} false; then : 2297 $as_echo_n "(cached) " >&6 2298else 2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 # Account for people who put trailing slashes in PATH elements. 2305case $as_dir/ in #(( 2306 ./ | .// | /[cC]/* | \ 2307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2308 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2309 /usr/ucb/* ) ;; 2310 *) 2311 # OSF1 and SCO ODT 3.0 have their own names for install. 2312 # Don't use installbsd from OSF since it installs stuff as root 2313 # by default. 2314 for ac_prog in ginstall scoinst install; do 2315 for ac_exec_ext in '' $ac_executable_extensions; do 2316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2317 if test $ac_prog = install && 2318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2319 # AIX install. It has an incompatible calling convention. 2320 : 2321 elif test $ac_prog = install && 2322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2323 # program-specific install script used by HP pwplus--don't use. 2324 : 2325 else 2326 rm -rf conftest.one conftest.two conftest.dir 2327 echo one > conftest.one 2328 echo two > conftest.two 2329 mkdir conftest.dir 2330 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2331 test -s conftest.one && test -s conftest.two && 2332 test -s conftest.dir/conftest.one && 2333 test -s conftest.dir/conftest.two 2334 then 2335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2336 break 3 2337 fi 2338 fi 2339 fi 2340 done 2341 done 2342 ;; 2343esac 2344 2345 done 2346IFS=$as_save_IFS 2347 2348rm -rf conftest.one conftest.two conftest.dir 2349 2350fi 2351 if test "${ac_cv_path_install+set}" = set; then 2352 INSTALL=$ac_cv_path_install 2353 else 2354 # As a last resort, use the slow shell script. Don't cache a 2355 # value for INSTALL within a source directory, because that will 2356 # break other packages using the cache if that directory is 2357 # removed, or if the value is a relative name. 2358 INSTALL=$ac_install_sh 2359 fi 2360fi 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2362$as_echo "$INSTALL" >&6; } 2363 2364# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2365# It thinks the first close brace ends the variable substitution. 2366test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2367 2368test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2369 2370test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2371 2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2373$as_echo_n "checking whether build environment is sane... " >&6; } 2374# Just in case 2375sleep 1 2376echo timestamp > conftest.file 2377# Reject unsafe characters in $srcdir or the absolute working directory 2378# name. Accept space and tab only in the latter. 2379am_lf=' 2380' 2381case `pwd` in 2382 *[\\\"\#\$\&\'\`$am_lf]*) 2383 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2384esac 2385case $srcdir in 2386 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2387 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2388esac 2389 2390# Do `set' in a subshell so we don't clobber the current shell's 2391# arguments. Must try -L first in case configure is actually a 2392# symlink; some systems play weird games with the mod time of symlinks 2393# (eg FreeBSD returns the mod time of the symlink's containing 2394# directory). 2395if ( 2396 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2397 if test "$*" = "X"; then 2398 # -L didn't work. 2399 set X `ls -t "$srcdir/configure" conftest.file` 2400 fi 2401 rm -f conftest.file 2402 if test "$*" != "X $srcdir/configure conftest.file" \ 2403 && test "$*" != "X conftest.file $srcdir/configure"; then 2404 2405 # If neither matched, then we have a broken ls. This can happen 2406 # if, for instance, CONFIG_SHELL is bash and it inherits a 2407 # broken ls alias from the environment. This has actually 2408 # happened. Such a system could not be considered "sane". 2409 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2410alias in your environment" "$LINENO" 5 2411 fi 2412 2413 test "$2" = conftest.file 2414 ) 2415then 2416 # Ok. 2417 : 2418else 2419 as_fn_error $? "newly created file is older than distributed files! 2420Check your system clock" "$LINENO" 5 2421fi 2422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2423$as_echo "yes" >&6; } 2424test "$program_prefix" != NONE && 2425 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2426# Use a double $ so make ignores it. 2427test "$program_suffix" != NONE && 2428 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2429# Double any \ or $. 2430# By default was `s,x,x', remove it if useless. 2431ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2432program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2433 2434# expand $ac_aux_dir to an absolute path 2435am_aux_dir=`cd $ac_aux_dir && pwd` 2436 2437if test x"${MISSING+set}" != xset; then 2438 case $am_aux_dir in 2439 *\ * | *\ *) 2440 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2441 *) 2442 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2443 esac 2444fi 2445# Use eval to expand $SHELL 2446if eval "$MISSING --run true"; then 2447 am_missing_run="$MISSING --run " 2448else 2449 am_missing_run= 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2451$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2452fi 2453 2454if test x"${install_sh}" != xset; then 2455 case $am_aux_dir in 2456 *\ * | *\ *) 2457 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2458 *) 2459 install_sh="\${SHELL} $am_aux_dir/install-sh" 2460 esac 2461fi 2462 2463# Installed binaries are usually stripped using `strip' when the user 2464# run `make install-strip'. However `strip' might not be the right 2465# tool to use in cross-compilation environments, therefore Automake 2466# will honor the `STRIP' environment variable to overrule this program. 2467if test "$cross_compiling" != no; then 2468 if test -n "$ac_tool_prefix"; then 2469 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2470set dummy ${ac_tool_prefix}strip; ac_word=$2 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2472$as_echo_n "checking for $ac_word... " >&6; } 2473if ${ac_cv_prog_STRIP+:} false; then : 2474 $as_echo_n "(cached) " >&6 2475else 2476 if test -n "$STRIP"; then 2477 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2478else 2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2486 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 break 2 2489 fi 2490done 2491 done 2492IFS=$as_save_IFS 2493 2494fi 2495fi 2496STRIP=$ac_cv_prog_STRIP 2497if test -n "$STRIP"; then 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2499$as_echo "$STRIP" >&6; } 2500else 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2502$as_echo "no" >&6; } 2503fi 2504 2505 2506fi 2507if test -z "$ac_cv_prog_STRIP"; then 2508 ac_ct_STRIP=$STRIP 2509 # Extract the first word of "strip", so it can be a program name with args. 2510set dummy strip; ac_word=$2 2511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2512$as_echo_n "checking for $ac_word... " >&6; } 2513if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2514 $as_echo_n "(cached) " >&6 2515else 2516 if test -n "$ac_ct_STRIP"; then 2517 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2518else 2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2520for as_dir in $PATH 2521do 2522 IFS=$as_save_IFS 2523 test -z "$as_dir" && as_dir=. 2524 for ac_exec_ext in '' $ac_executable_extensions; do 2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2526 ac_cv_prog_ac_ct_STRIP="strip" 2527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2528 break 2 2529 fi 2530done 2531 done 2532IFS=$as_save_IFS 2533 2534fi 2535fi 2536ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2537if test -n "$ac_ct_STRIP"; then 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2539$as_echo "$ac_ct_STRIP" >&6; } 2540else 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2542$as_echo "no" >&6; } 2543fi 2544 2545 if test "x$ac_ct_STRIP" = x; then 2546 STRIP=":" 2547 else 2548 case $cross_compiling:$ac_tool_warned in 2549yes:) 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2552ac_tool_warned=yes ;; 2553esac 2554 STRIP=$ac_ct_STRIP 2555 fi 2556else 2557 STRIP="$ac_cv_prog_STRIP" 2558fi 2559 2560fi 2561INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2562 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2564$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2565if test -z "$MKDIR_P"; then 2566 if ${ac_cv_path_mkdir+:} false; then : 2567 $as_echo_n "(cached) " >&6 2568else 2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2570for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2571do 2572 IFS=$as_save_IFS 2573 test -z "$as_dir" && as_dir=. 2574 for ac_prog in mkdir gmkdir; do 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2577 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2578 'mkdir (GNU coreutils) '* | \ 2579 'mkdir (coreutils) '* | \ 2580 'mkdir (fileutils) '4.1*) 2581 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2582 break 3;; 2583 esac 2584 done 2585 done 2586 done 2587IFS=$as_save_IFS 2588 2589fi 2590 2591 test -d ./--version && rmdir ./--version 2592 if test "${ac_cv_path_mkdir+set}" = set; then 2593 MKDIR_P="$ac_cv_path_mkdir -p" 2594 else 2595 # As a last resort, use the slow shell script. Don't cache a 2596 # value for MKDIR_P within a source directory, because that will 2597 # break other packages using the cache if that directory is 2598 # removed, or if the value is a relative name. 2599 MKDIR_P="$ac_install_sh -d" 2600 fi 2601fi 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2603$as_echo "$MKDIR_P" >&6; } 2604 2605mkdir_p="$MKDIR_P" 2606case $mkdir_p in 2607 [\\/$]* | ?:[\\/]*) ;; 2608 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2609esac 2610 2611for ac_prog in gawk mawk nawk awk 2612do 2613 # Extract the first word of "$ac_prog", so it can be a program name with args. 2614set dummy $ac_prog; ac_word=$2 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2616$as_echo_n "checking for $ac_word... " >&6; } 2617if ${ac_cv_prog_AWK+:} false; then : 2618 $as_echo_n "(cached) " >&6 2619else 2620 if test -n "$AWK"; then 2621 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2622else 2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624for as_dir in $PATH 2625do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 for ac_exec_ext in '' $ac_executable_extensions; do 2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2630 ac_cv_prog_AWK="$ac_prog" 2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2632 break 2 2633 fi 2634done 2635 done 2636IFS=$as_save_IFS 2637 2638fi 2639fi 2640AWK=$ac_cv_prog_AWK 2641if test -n "$AWK"; then 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2643$as_echo "$AWK" >&6; } 2644else 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2646$as_echo "no" >&6; } 2647fi 2648 2649 2650 test -n "$AWK" && break 2651done 2652 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2654$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2655set x ${MAKE-make} 2656ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2657if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 cat >conftest.make <<\_ACEOF 2661SHELL = /bin/sh 2662all: 2663 @echo '@@@%%%=$(MAKE)=@@@%%%' 2664_ACEOF 2665# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2666case `${MAKE-make} -f conftest.make 2>/dev/null` in 2667 *@@@%%%=?*=@@@%%%*) 2668 eval ac_cv_prog_make_${ac_make}_set=yes;; 2669 *) 2670 eval ac_cv_prog_make_${ac_make}_set=no;; 2671esac 2672rm -f conftest.make 2673fi 2674if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2676$as_echo "yes" >&6; } 2677 SET_MAKE= 2678else 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2680$as_echo "no" >&6; } 2681 SET_MAKE="MAKE=${MAKE-make}" 2682fi 2683 2684rm -rf .tst 2>/dev/null 2685mkdir .tst 2>/dev/null 2686if test -d .tst; then 2687 am__leading_dot=. 2688else 2689 am__leading_dot=_ 2690fi 2691rmdir .tst 2>/dev/null 2692 2693if test "`cd $srcdir && pwd`" != "`pwd`"; then 2694 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2695 # is not polluted with repeated "-I." 2696 am__isrc=' -I$(srcdir)' 2697 # test to see if srcdir already configured 2698 if test -f $srcdir/config.status; then 2699 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2700 fi 2701fi 2702 2703# test whether we have cygpath 2704if test -z "$CYGPATH_W"; then 2705 if (cygpath --version) >/dev/null 2>/dev/null; then 2706 CYGPATH_W='cygpath -w' 2707 else 2708 CYGPATH_W=echo 2709 fi 2710fi 2711 2712 2713# Define the identity of the package. 2714 PACKAGE='gtest' 2715 VERSION='1.7.0' 2716 2717 2718cat >>confdefs.h <<_ACEOF 2719#define PACKAGE "$PACKAGE" 2720_ACEOF 2721 2722 2723cat >>confdefs.h <<_ACEOF 2724#define VERSION "$VERSION" 2725_ACEOF 2726 2727# Some tools Automake needs. 2728 2729ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2730 2731 2732AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2733 2734 2735AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2736 2737 2738AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2739 2740 2741MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2742 2743# We need awk for the "check" target. The system "awk" is bad on 2744# some platforms. 2745# Always define AMTAR for backward compatibility. Yes, it's still used 2746# in the wild :-( We should find a proper way to deprecate it ... 2747AMTAR='$${TAR-tar}' 2748 2749am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2750 2751 2752 2753 2754 2755 2756# Check for programs used in building Google Test. 2757ac_ext=c 2758ac_cpp='$CPP $CPPFLAGS' 2759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2761ac_compiler_gnu=$ac_cv_c_compiler_gnu 2762if test -n "$ac_tool_prefix"; then 2763 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2764set dummy ${ac_tool_prefix}gcc; ac_word=$2 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2766$as_echo_n "checking for $ac_word... " >&6; } 2767if ${ac_cv_prog_CC+:} false; then : 2768 $as_echo_n "(cached) " >&6 2769else 2770 if test -n "$CC"; then 2771 ac_cv_prog_CC="$CC" # Let the user override the test. 2772else 2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2774for as_dir in $PATH 2775do 2776 IFS=$as_save_IFS 2777 test -z "$as_dir" && as_dir=. 2778 for ac_exec_ext in '' $ac_executable_extensions; do 2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2780 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2782 break 2 2783 fi 2784done 2785 done 2786IFS=$as_save_IFS 2787 2788fi 2789fi 2790CC=$ac_cv_prog_CC 2791if test -n "$CC"; then 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2793$as_echo "$CC" >&6; } 2794else 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2796$as_echo "no" >&6; } 2797fi 2798 2799 2800fi 2801if test -z "$ac_cv_prog_CC"; then 2802 ac_ct_CC=$CC 2803 # Extract the first word of "gcc", so it can be a program name with args. 2804set dummy gcc; ac_word=$2 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2806$as_echo_n "checking for $ac_word... " >&6; } 2807if ${ac_cv_prog_ac_ct_CC+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 if test -n "$ac_ct_CC"; then 2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2812else 2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814for as_dir in $PATH 2815do 2816 IFS=$as_save_IFS 2817 test -z "$as_dir" && as_dir=. 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2820 ac_cv_prog_ac_ct_CC="gcc" 2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2822 break 2 2823 fi 2824done 2825 done 2826IFS=$as_save_IFS 2827 2828fi 2829fi 2830ac_ct_CC=$ac_cv_prog_ac_ct_CC 2831if test -n "$ac_ct_CC"; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2833$as_echo "$ac_ct_CC" >&6; } 2834else 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2836$as_echo "no" >&6; } 2837fi 2838 2839 if test "x$ac_ct_CC" = x; then 2840 CC="" 2841 else 2842 case $cross_compiling:$ac_tool_warned in 2843yes:) 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2846ac_tool_warned=yes ;; 2847esac 2848 CC=$ac_ct_CC 2849 fi 2850else 2851 CC="$ac_cv_prog_CC" 2852fi 2853 2854if test -z "$CC"; then 2855 if test -n "$ac_tool_prefix"; then 2856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2857set dummy ${ac_tool_prefix}cc; ac_word=$2 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2859$as_echo_n "checking for $ac_word... " >&6; } 2860if ${ac_cv_prog_CC+:} false; then : 2861 $as_echo_n "(cached) " >&6 2862else 2863 if test -n "$CC"; then 2864 ac_cv_prog_CC="$CC" # Let the user override the test. 2865else 2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2867for as_dir in $PATH 2868do 2869 IFS=$as_save_IFS 2870 test -z "$as_dir" && as_dir=. 2871 for ac_exec_ext in '' $ac_executable_extensions; do 2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2873 ac_cv_prog_CC="${ac_tool_prefix}cc" 2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2875 break 2 2876 fi 2877done 2878 done 2879IFS=$as_save_IFS 2880 2881fi 2882fi 2883CC=$ac_cv_prog_CC 2884if test -n "$CC"; then 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2886$as_echo "$CC" >&6; } 2887else 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2889$as_echo "no" >&6; } 2890fi 2891 2892 2893 fi 2894fi 2895if test -z "$CC"; then 2896 # Extract the first word of "cc", so it can be a program name with args. 2897set dummy cc; ac_word=$2 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2899$as_echo_n "checking for $ac_word... " >&6; } 2900if ${ac_cv_prog_CC+:} false; then : 2901 $as_echo_n "(cached) " >&6 2902else 2903 if test -n "$CC"; then 2904 ac_cv_prog_CC="$CC" # Let the user override the test. 2905else 2906 ac_prog_rejected=no 2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2908for as_dir in $PATH 2909do 2910 IFS=$as_save_IFS 2911 test -z "$as_dir" && as_dir=. 2912 for ac_exec_ext in '' $ac_executable_extensions; do 2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2915 ac_prog_rejected=yes 2916 continue 2917 fi 2918 ac_cv_prog_CC="cc" 2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2920 break 2 2921 fi 2922done 2923 done 2924IFS=$as_save_IFS 2925 2926if test $ac_prog_rejected = yes; then 2927 # We found a bogon in the path, so make sure we never use it. 2928 set dummy $ac_cv_prog_CC 2929 shift 2930 if test $# != 0; then 2931 # We chose a different compiler from the bogus one. 2932 # However, it has the same basename, so the bogon will be chosen 2933 # first if we set CC to just the basename; use the full file name. 2934 shift 2935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2936 fi 2937fi 2938fi 2939fi 2940CC=$ac_cv_prog_CC 2941if test -n "$CC"; then 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2943$as_echo "$CC" >&6; } 2944else 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2946$as_echo "no" >&6; } 2947fi 2948 2949 2950fi 2951if test -z "$CC"; then 2952 if test -n "$ac_tool_prefix"; then 2953 for ac_prog in cl.exe 2954 do 2955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2956set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2958$as_echo_n "checking for $ac_word... " >&6; } 2959if ${ac_cv_prog_CC+:} false; then : 2960 $as_echo_n "(cached) " >&6 2961else 2962 if test -n "$CC"; then 2963 ac_cv_prog_CC="$CC" # Let the user override the test. 2964else 2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2966for as_dir in $PATH 2967do 2968 IFS=$as_save_IFS 2969 test -z "$as_dir" && as_dir=. 2970 for ac_exec_ext in '' $ac_executable_extensions; do 2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2972 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2974 break 2 2975 fi 2976done 2977 done 2978IFS=$as_save_IFS 2979 2980fi 2981fi 2982CC=$ac_cv_prog_CC 2983if test -n "$CC"; then 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2985$as_echo "$CC" >&6; } 2986else 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2988$as_echo "no" >&6; } 2989fi 2990 2991 2992 test -n "$CC" && break 2993 done 2994fi 2995if test -z "$CC"; then 2996 ac_ct_CC=$CC 2997 for ac_prog in cl.exe 2998do 2999 # Extract the first word of "$ac_prog", so it can be a program name with args. 3000set dummy $ac_prog; ac_word=$2 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3002$as_echo_n "checking for $ac_word... " >&6; } 3003if ${ac_cv_prog_ac_ct_CC+:} false; then : 3004 $as_echo_n "(cached) " >&6 3005else 3006 if test -n "$ac_ct_CC"; then 3007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3008else 3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3010for as_dir in $PATH 3011do 3012 IFS=$as_save_IFS 3013 test -z "$as_dir" && as_dir=. 3014 for ac_exec_ext in '' $ac_executable_extensions; do 3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3016 ac_cv_prog_ac_ct_CC="$ac_prog" 3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3018 break 2 3019 fi 3020done 3021 done 3022IFS=$as_save_IFS 3023 3024fi 3025fi 3026ac_ct_CC=$ac_cv_prog_ac_ct_CC 3027if test -n "$ac_ct_CC"; then 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3029$as_echo "$ac_ct_CC" >&6; } 3030else 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032$as_echo "no" >&6; } 3033fi 3034 3035 3036 test -n "$ac_ct_CC" && break 3037done 3038 3039 if test "x$ac_ct_CC" = x; then 3040 CC="" 3041 else 3042 case $cross_compiling:$ac_tool_warned in 3043yes:) 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3046ac_tool_warned=yes ;; 3047esac 3048 CC=$ac_ct_CC 3049 fi 3050fi 3051 3052fi 3053 3054 3055test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3057as_fn_error $? "no acceptable C compiler found in \$PATH 3058See \`config.log' for more details" "$LINENO" 5; } 3059 3060# Provide some information about the compiler. 3061$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3062set X $ac_compile 3063ac_compiler=$2 3064for ac_option in --version -v -V -qversion; do 3065 { { ac_try="$ac_compiler $ac_option >&5" 3066case "(($ac_try" in 3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3068 *) ac_try_echo=$ac_try;; 3069esac 3070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3071$as_echo "$ac_try_echo"; } >&5 3072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3073 ac_status=$? 3074 if test -s conftest.err; then 3075 sed '10a\ 3076... rest of stderr output deleted ... 3077 10q' conftest.err >conftest.er1 3078 cat conftest.er1 >&5 3079 fi 3080 rm -f conftest.er1 conftest.err 3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3082 test $ac_status = 0; } 3083done 3084 3085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3086/* end confdefs.h. */ 3087 3088int 3089main () 3090{ 3091 3092 ; 3093 return 0; 3094} 3095_ACEOF 3096ac_clean_files_save=$ac_clean_files 3097ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3098# Try to create an executable without -o first, disregard a.out. 3099# It will help us diagnose broken compilers, and finding out an intuition 3100# of exeext. 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3102$as_echo_n "checking whether the C compiler works... " >&6; } 3103ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3104 3105# The possible output files: 3106ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3107 3108ac_rmfiles= 3109for ac_file in $ac_files 3110do 3111 case $ac_file in 3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3113 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3114 esac 3115done 3116rm -f $ac_rmfiles 3117 3118if { { ac_try="$ac_link_default" 3119case "(($ac_try" in 3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3121 *) ac_try_echo=$ac_try;; 3122esac 3123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3124$as_echo "$ac_try_echo"; } >&5 3125 (eval "$ac_link_default") 2>&5 3126 ac_status=$? 3127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3128 test $ac_status = 0; }; then : 3129 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3130# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3131# in a Makefile. We should not override ac_cv_exeext if it was cached, 3132# so that the user can short-circuit this test for compilers unknown to 3133# Autoconf. 3134for ac_file in $ac_files '' 3135do 3136 test -f "$ac_file" || continue 3137 case $ac_file in 3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3139 ;; 3140 [ab].out ) 3141 # We found the default executable, but exeext='' is most 3142 # certainly right. 3143 break;; 3144 *.* ) 3145 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3146 then :; else 3147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3148 fi 3149 # We set ac_cv_exeext here because the later test for it is not 3150 # safe: cross compilers may not add the suffix if given an `-o' 3151 # argument, so we may need to know it at that point already. 3152 # Even if this section looks crufty: it has the advantage of 3153 # actually working. 3154 break;; 3155 * ) 3156 break;; 3157 esac 3158done 3159test "$ac_cv_exeext" = no && ac_cv_exeext= 3160 3161else 3162 ac_file='' 3163fi 3164if test -z "$ac_file"; then : 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3166$as_echo "no" >&6; } 3167$as_echo "$as_me: failed program was:" >&5 3168sed 's/^/| /' conftest.$ac_ext >&5 3169 3170{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3172as_fn_error 77 "C compiler cannot create executables 3173See \`config.log' for more details" "$LINENO" 5; } 3174else 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3176$as_echo "yes" >&6; } 3177fi 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3179$as_echo_n "checking for C compiler default output file name... " >&6; } 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3181$as_echo "$ac_file" >&6; } 3182ac_exeext=$ac_cv_exeext 3183 3184rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3185ac_clean_files=$ac_clean_files_save 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3187$as_echo_n "checking for suffix of executables... " >&6; } 3188if { { ac_try="$ac_link" 3189case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3194$as_echo "$ac_try_echo"; } >&5 3195 (eval "$ac_link") 2>&5 3196 ac_status=$? 3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3198 test $ac_status = 0; }; then : 3199 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3200# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3201# work properly (i.e., refer to `conftest.exe'), while it won't with 3202# `rm'. 3203for ac_file in conftest.exe conftest conftest.*; do 3204 test -f "$ac_file" || continue 3205 case $ac_file in 3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3208 break;; 3209 * ) break;; 3210 esac 3211done 3212else 3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3215as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3216See \`config.log' for more details" "$LINENO" 5; } 3217fi 3218rm -f conftest conftest$ac_cv_exeext 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3220$as_echo "$ac_cv_exeext" >&6; } 3221 3222rm -f conftest.$ac_ext 3223EXEEXT=$ac_cv_exeext 3224ac_exeext=$EXEEXT 3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3226/* end confdefs.h. */ 3227#include <stdio.h> 3228int 3229main () 3230{ 3231FILE *f = fopen ("conftest.out", "w"); 3232 return ferror (f) || fclose (f) != 0; 3233 3234 ; 3235 return 0; 3236} 3237_ACEOF 3238ac_clean_files="$ac_clean_files conftest.out" 3239# Check that the compiler produces executables we can run. If not, either 3240# the compiler is broken, or we cross compile. 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3242$as_echo_n "checking whether we are cross compiling... " >&6; } 3243if test "$cross_compiling" != yes; then 3244 { { ac_try="$ac_link" 3245case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248esac 3249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3250$as_echo "$ac_try_echo"; } >&5 3251 (eval "$ac_link") 2>&5 3252 ac_status=$? 3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; } 3255 if { ac_try='./conftest$ac_cv_exeext' 3256 { { case "(($ac_try" in 3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3258 *) ac_try_echo=$ac_try;; 3259esac 3260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3261$as_echo "$ac_try_echo"; } >&5 3262 (eval "$ac_try") 2>&5 3263 ac_status=$? 3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3265 test $ac_status = 0; }; }; then 3266 cross_compiling=no 3267 else 3268 if test "$cross_compiling" = maybe; then 3269 cross_compiling=yes 3270 else 3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3273as_fn_error $? "cannot run C compiled programs. 3274If you meant to cross compile, use \`--host'. 3275See \`config.log' for more details" "$LINENO" 5; } 3276 fi 3277 fi 3278fi 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3280$as_echo "$cross_compiling" >&6; } 3281 3282rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3283ac_clean_files=$ac_clean_files_save 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3285$as_echo_n "checking for suffix of object files... " >&6; } 3286if ${ac_cv_objext+:} false; then : 3287 $as_echo_n "(cached) " >&6 3288else 3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3290/* end confdefs.h. */ 3291 3292int 3293main () 3294{ 3295 3296 ; 3297 return 0; 3298} 3299_ACEOF 3300rm -f conftest.o conftest.obj 3301if { { ac_try="$ac_compile" 3302case "(($ac_try" in 3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3304 *) ac_try_echo=$ac_try;; 3305esac 3306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3307$as_echo "$ac_try_echo"; } >&5 3308 (eval "$ac_compile") 2>&5 3309 ac_status=$? 3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3311 test $ac_status = 0; }; then : 3312 for ac_file in conftest.o conftest.obj conftest.*; do 3313 test -f "$ac_file" || continue; 3314 case $ac_file in 3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3317 break;; 3318 esac 3319done 3320else 3321 $as_echo "$as_me: failed program was:" >&5 3322sed 's/^/| /' conftest.$ac_ext >&5 3323 3324{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3326as_fn_error $? "cannot compute suffix of object files: cannot compile 3327See \`config.log' for more details" "$LINENO" 5; } 3328fi 3329rm -f conftest.$ac_cv_objext conftest.$ac_ext 3330fi 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3332$as_echo "$ac_cv_objext" >&6; } 3333OBJEXT=$ac_cv_objext 3334ac_objext=$OBJEXT 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3336$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3337if ${ac_cv_c_compiler_gnu+:} false; then : 3338 $as_echo_n "(cached) " >&6 3339else 3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3341/* end confdefs.h. */ 3342 3343int 3344main () 3345{ 3346#ifndef __GNUC__ 3347 choke me 3348#endif 3349 3350 ; 3351 return 0; 3352} 3353_ACEOF 3354if ac_fn_c_try_compile "$LINENO"; then : 3355 ac_compiler_gnu=yes 3356else 3357 ac_compiler_gnu=no 3358fi 3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3360ac_cv_c_compiler_gnu=$ac_compiler_gnu 3361 3362fi 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3364$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3365if test $ac_compiler_gnu = yes; then 3366 GCC=yes 3367else 3368 GCC= 3369fi 3370ac_test_CFLAGS=${CFLAGS+set} 3371ac_save_CFLAGS=$CFLAGS 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3373$as_echo_n "checking whether $CC accepts -g... " >&6; } 3374if ${ac_cv_prog_cc_g+:} false; then : 3375 $as_echo_n "(cached) " >&6 3376else 3377 ac_save_c_werror_flag=$ac_c_werror_flag 3378 ac_c_werror_flag=yes 3379 ac_cv_prog_cc_g=no 3380 CFLAGS="-g" 3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3382/* end confdefs.h. */ 3383 3384int 3385main () 3386{ 3387 3388 ; 3389 return 0; 3390} 3391_ACEOF 3392if ac_fn_c_try_compile "$LINENO"; then : 3393 ac_cv_prog_cc_g=yes 3394else 3395 CFLAGS="" 3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3397/* end confdefs.h. */ 3398 3399int 3400main () 3401{ 3402 3403 ; 3404 return 0; 3405} 3406_ACEOF 3407if ac_fn_c_try_compile "$LINENO"; then : 3408 3409else 3410 ac_c_werror_flag=$ac_save_c_werror_flag 3411 CFLAGS="-g" 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413/* end confdefs.h. */ 3414 3415int 3416main () 3417{ 3418 3419 ; 3420 return 0; 3421} 3422_ACEOF 3423if ac_fn_c_try_compile "$LINENO"; then : 3424 ac_cv_prog_cc_g=yes 3425fi 3426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3427fi 3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3429fi 3430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3431 ac_c_werror_flag=$ac_save_c_werror_flag 3432fi 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3434$as_echo "$ac_cv_prog_cc_g" >&6; } 3435if test "$ac_test_CFLAGS" = set; then 3436 CFLAGS=$ac_save_CFLAGS 3437elif test $ac_cv_prog_cc_g = yes; then 3438 if test "$GCC" = yes; then 3439 CFLAGS="-g -O2" 3440 else 3441 CFLAGS="-g" 3442 fi 3443else 3444 if test "$GCC" = yes; then 3445 CFLAGS="-O2" 3446 else 3447 CFLAGS= 3448 fi 3449fi 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3451$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3452if ${ac_cv_prog_cc_c89+:} false; then : 3453 $as_echo_n "(cached) " >&6 3454else 3455 ac_cv_prog_cc_c89=no 3456ac_save_CC=$CC 3457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3458/* end confdefs.h. */ 3459#include <stdarg.h> 3460#include <stdio.h> 3461#include <sys/types.h> 3462#include <sys/stat.h> 3463/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3464struct buf { int x; }; 3465FILE * (*rcsopen) (struct buf *, struct stat *, int); 3466static char *e (p, i) 3467 char **p; 3468 int i; 3469{ 3470 return p[i]; 3471} 3472static char *f (char * (*g) (char **, int), char **p, ...) 3473{ 3474 char *s; 3475 va_list v; 3476 va_start (v,p); 3477 s = g (p, va_arg (v,int)); 3478 va_end (v); 3479 return s; 3480} 3481 3482/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3483 function prototypes and stuff, but not '\xHH' hex character constants. 3484 These don't provoke an error unfortunately, instead are silently treated 3485 as 'x'. The following induces an error, until -std is added to get 3486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3487 array size at least. It's necessary to write '\x00'==0 to get something 3488 that's true only with -std. */ 3489int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3490 3491/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3492 inside strings and character constants. */ 3493#define FOO(x) 'x' 3494int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3495 3496int test (int i, double x); 3497struct s1 {int (*f) (int a);}; 3498struct s2 {int (*f) (double a);}; 3499int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3500int argc; 3501char **argv; 3502int 3503main () 3504{ 3505return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3506 ; 3507 return 0; 3508} 3509_ACEOF 3510for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3512do 3513 CC="$ac_save_CC $ac_arg" 3514 if ac_fn_c_try_compile "$LINENO"; then : 3515 ac_cv_prog_cc_c89=$ac_arg 3516fi 3517rm -f core conftest.err conftest.$ac_objext 3518 test "x$ac_cv_prog_cc_c89" != "xno" && break 3519done 3520rm -f conftest.$ac_ext 3521CC=$ac_save_CC 3522 3523fi 3524# AC_CACHE_VAL 3525case "x$ac_cv_prog_cc_c89" in 3526 x) 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3528$as_echo "none needed" >&6; } ;; 3529 xno) 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3531$as_echo "unsupported" >&6; } ;; 3532 *) 3533 CC="$CC $ac_cv_prog_cc_c89" 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3535$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3536esac 3537if test "x$ac_cv_prog_cc_c89" != xno; then : 3538 3539fi 3540 3541ac_ext=c 3542ac_cpp='$CPP $CPPFLAGS' 3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3545ac_compiler_gnu=$ac_cv_c_compiler_gnu 3546DEPDIR="${am__leading_dot}deps" 3547 3548ac_config_commands="$ac_config_commands depfiles" 3549 3550 3551am_make=${MAKE-make} 3552cat > confinc << 'END' 3553am__doit: 3554 @echo this is the am__doit target 3555.PHONY: am__doit 3556END 3557# If we don't find an include directive, just comment out the code. 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3559$as_echo_n "checking for style of include used by $am_make... " >&6; } 3560am__include="#" 3561am__quote= 3562_am_result=none 3563# First try GNU make style include. 3564echo "include confinc" > confmf 3565# Ignore all kinds of additional output from `make'. 3566case `$am_make -s -f confmf 2> /dev/null` in #( 3567*the\ am__doit\ target*) 3568 am__include=include 3569 am__quote= 3570 _am_result=GNU 3571 ;; 3572esac 3573# Now try BSD make style include. 3574if test "$am__include" = "#"; then 3575 echo '.include "confinc"' > confmf 3576 case `$am_make -s -f confmf 2> /dev/null` in #( 3577 *the\ am__doit\ target*) 3578 am__include=.include 3579 am__quote="\"" 3580 _am_result=BSD 3581 ;; 3582 esac 3583fi 3584 3585 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3587$as_echo "$_am_result" >&6; } 3588rm -f confinc confmf 3589 3590# Check whether --enable-dependency-tracking was given. 3591if test "${enable_dependency_tracking+set}" = set; then : 3592 enableval=$enable_dependency_tracking; 3593fi 3594 3595if test "x$enable_dependency_tracking" != xno; then 3596 am_depcomp="$ac_aux_dir/depcomp" 3597 AMDEPBACKSLASH='\' 3598 am__nodep='_no' 3599fi 3600 if test "x$enable_dependency_tracking" != xno; then 3601 AMDEP_TRUE= 3602 AMDEP_FALSE='#' 3603else 3604 AMDEP_TRUE='#' 3605 AMDEP_FALSE= 3606fi 3607 3608 3609 3610depcc="$CC" am_compiler_list= 3611 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3613$as_echo_n "checking dependency style of $depcc... " >&6; } 3614if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3618 # We make a subdir and do the tests there. Otherwise we can end up 3619 # making bogus files that we don't know about and never remove. For 3620 # instance it was reported that on HP-UX the gcc test will end up 3621 # making a dummy file named `D' -- because `-MD' means `put the output 3622 # in D'. 3623 rm -rf conftest.dir 3624 mkdir conftest.dir 3625 # Copy depcomp to subdir because otherwise we won't find it if we're 3626 # using a relative directory. 3627 cp "$am_depcomp" conftest.dir 3628 cd conftest.dir 3629 # We will build objects and dependencies in a subdirectory because 3630 # it helps to detect inapplicable dependency modes. For instance 3631 # both Tru64's cc and ICC support -MD to output dependencies as a 3632 # side effect of compilation, but ICC will put the dependencies in 3633 # the current directory while Tru64 will put them in the object 3634 # directory. 3635 mkdir sub 3636 3637 am_cv_CC_dependencies_compiler_type=none 3638 if test "$am_compiler_list" = ""; then 3639 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3640 fi 3641 am__universal=false 3642 case " $depcc " in #( 3643 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3644 esac 3645 3646 for depmode in $am_compiler_list; do 3647 # Setup a source with many dependencies, because some compilers 3648 # like to wrap large dependency lists on column 80 (with \), and 3649 # we should not choose a depcomp mode which is confused by this. 3650 # 3651 # We need to recreate these files for each test, as the compiler may 3652 # overwrite some of them when testing with obscure command lines. 3653 # This happens at least with the AIX C compiler. 3654 : > sub/conftest.c 3655 for i in 1 2 3 4 5 6; do 3656 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3657 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3658 # Solaris 8's {/usr,}/bin/sh. 3659 touch sub/conftst$i.h 3660 done 3661 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3662 3663 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3664 # mode. It turns out that the SunPro C++ compiler does not properly 3665 # handle `-M -o', and we need to detect this. Also, some Intel 3666 # versions had trouble with output in subdirs 3667 am__obj=sub/conftest.${OBJEXT-o} 3668 am__minus_obj="-o $am__obj" 3669 case $depmode in 3670 gcc) 3671 # This depmode causes a compiler race in universal mode. 3672 test "$am__universal" = false || continue 3673 ;; 3674 nosideeffect) 3675 # after this tag, mechanisms are not by side-effect, so they'll 3676 # only be used when explicitly requested 3677 if test "x$enable_dependency_tracking" = xyes; then 3678 continue 3679 else 3680 break 3681 fi 3682 ;; 3683 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3684 # This compiler won't grok `-c -o', but also, the minuso test has 3685 # not run yet. These depmodes are late enough in the game, and 3686 # so weak that their functioning should not be impacted. 3687 am__obj=conftest.${OBJEXT-o} 3688 am__minus_obj= 3689 ;; 3690 none) break ;; 3691 esac 3692 if depmode=$depmode \ 3693 source=sub/conftest.c object=$am__obj \ 3694 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3695 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3696 >/dev/null 2>conftest.err && 3697 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3698 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3699 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3700 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3701 # icc doesn't choke on unknown options, it will just issue warnings 3702 # or remarks (even with -Werror). So we grep stderr for any message 3703 # that says an option was ignored or not supported. 3704 # When given -MP, icc 7.0 and 7.1 complain thusly: 3705 # icc: Command line warning: ignoring option '-M'; no argument required 3706 # The diagnosis changed in icc 8.0: 3707 # icc: Command line remark: option '-MP' not supported 3708 if (grep 'ignoring option' conftest.err || 3709 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3710 am_cv_CC_dependencies_compiler_type=$depmode 3711 break 3712 fi 3713 fi 3714 done 3715 3716 cd .. 3717 rm -rf conftest.dir 3718else 3719 am_cv_CC_dependencies_compiler_type=none 3720fi 3721 3722fi 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3724$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3725CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3726 3727 if 3728 test "x$enable_dependency_tracking" != xno \ 3729 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3730 am__fastdepCC_TRUE= 3731 am__fastdepCC_FALSE='#' 3732else 3733 am__fastdepCC_TRUE='#' 3734 am__fastdepCC_FALSE= 3735fi 3736 3737 3738ac_ext=cpp 3739ac_cpp='$CXXCPP $CPPFLAGS' 3740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3743if test -z "$CXX"; then 3744 if test -n "$CCC"; then 3745 CXX=$CCC 3746 else 3747 if test -n "$ac_tool_prefix"; then 3748 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3749 do 3750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3751set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3753$as_echo_n "checking for $ac_word... " >&6; } 3754if ${ac_cv_prog_CXX+:} false; then : 3755 $as_echo_n "(cached) " >&6 3756else 3757 if test -n "$CXX"; then 3758 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3759else 3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3761for as_dir in $PATH 3762do 3763 IFS=$as_save_IFS 3764 test -z "$as_dir" && as_dir=. 3765 for ac_exec_ext in '' $ac_executable_extensions; do 3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3767 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3769 break 2 3770 fi 3771done 3772 done 3773IFS=$as_save_IFS 3774 3775fi 3776fi 3777CXX=$ac_cv_prog_CXX 3778if test -n "$CXX"; then 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3780$as_echo "$CXX" >&6; } 3781else 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3783$as_echo "no" >&6; } 3784fi 3785 3786 3787 test -n "$CXX" && break 3788 done 3789fi 3790if test -z "$CXX"; then 3791 ac_ct_CXX=$CXX 3792 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3793do 3794 # Extract the first word of "$ac_prog", so it can be a program name with args. 3795set dummy $ac_prog; ac_word=$2 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3797$as_echo_n "checking for $ac_word... " >&6; } 3798if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3799 $as_echo_n "(cached) " >&6 3800else 3801 if test -n "$ac_ct_CXX"; then 3802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3803else 3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3805for as_dir in $PATH 3806do 3807 IFS=$as_save_IFS 3808 test -z "$as_dir" && as_dir=. 3809 for ac_exec_ext in '' $ac_executable_extensions; do 3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3811 ac_cv_prog_ac_ct_CXX="$ac_prog" 3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3813 break 2 3814 fi 3815done 3816 done 3817IFS=$as_save_IFS 3818 3819fi 3820fi 3821ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3822if test -n "$ac_ct_CXX"; then 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3824$as_echo "$ac_ct_CXX" >&6; } 3825else 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3827$as_echo "no" >&6; } 3828fi 3829 3830 3831 test -n "$ac_ct_CXX" && break 3832done 3833 3834 if test "x$ac_ct_CXX" = x; then 3835 CXX="g++" 3836 else 3837 case $cross_compiling:$ac_tool_warned in 3838yes:) 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3841ac_tool_warned=yes ;; 3842esac 3843 CXX=$ac_ct_CXX 3844 fi 3845fi 3846 3847 fi 3848fi 3849# Provide some information about the compiler. 3850$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3851set X $ac_compile 3852ac_compiler=$2 3853for ac_option in --version -v -V -qversion; do 3854 { { ac_try="$ac_compiler $ac_option >&5" 3855case "(($ac_try" in 3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3857 *) ac_try_echo=$ac_try;; 3858esac 3859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3860$as_echo "$ac_try_echo"; } >&5 3861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3862 ac_status=$? 3863 if test -s conftest.err; then 3864 sed '10a\ 3865... rest of stderr output deleted ... 3866 10q' conftest.err >conftest.er1 3867 cat conftest.er1 >&5 3868 fi 3869 rm -f conftest.er1 conftest.err 3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3871 test $ac_status = 0; } 3872done 3873 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3875$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3876if ${ac_cv_cxx_compiler_gnu+:} false; then : 3877 $as_echo_n "(cached) " >&6 3878else 3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3880/* end confdefs.h. */ 3881 3882int 3883main () 3884{ 3885#ifndef __GNUC__ 3886 choke me 3887#endif 3888 3889 ; 3890 return 0; 3891} 3892_ACEOF 3893if ac_fn_cxx_try_compile "$LINENO"; then : 3894 ac_compiler_gnu=yes 3895else 3896 ac_compiler_gnu=no 3897fi 3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3899ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3900 3901fi 3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3903$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3904if test $ac_compiler_gnu = yes; then 3905 GXX=yes 3906else 3907 GXX= 3908fi 3909ac_test_CXXFLAGS=${CXXFLAGS+set} 3910ac_save_CXXFLAGS=$CXXFLAGS 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3912$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3913if ${ac_cv_prog_cxx_g+:} false; then : 3914 $as_echo_n "(cached) " >&6 3915else 3916 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3917 ac_cxx_werror_flag=yes 3918 ac_cv_prog_cxx_g=no 3919 CXXFLAGS="-g" 3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3921/* end confdefs.h. */ 3922 3923int 3924main () 3925{ 3926 3927 ; 3928 return 0; 3929} 3930_ACEOF 3931if ac_fn_cxx_try_compile "$LINENO"; then : 3932 ac_cv_prog_cxx_g=yes 3933else 3934 CXXFLAGS="" 3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3936/* end confdefs.h. */ 3937 3938int 3939main () 3940{ 3941 3942 ; 3943 return 0; 3944} 3945_ACEOF 3946if ac_fn_cxx_try_compile "$LINENO"; then : 3947 3948else 3949 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3950 CXXFLAGS="-g" 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953 3954int 3955main () 3956{ 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962if ac_fn_cxx_try_compile "$LINENO"; then : 3963 ac_cv_prog_cxx_g=yes 3964fi 3965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3966fi 3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3968fi 3969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3970 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3971fi 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3973$as_echo "$ac_cv_prog_cxx_g" >&6; } 3974if test "$ac_test_CXXFLAGS" = set; then 3975 CXXFLAGS=$ac_save_CXXFLAGS 3976elif test $ac_cv_prog_cxx_g = yes; then 3977 if test "$GXX" = yes; then 3978 CXXFLAGS="-g -O2" 3979 else 3980 CXXFLAGS="-g" 3981 fi 3982else 3983 if test "$GXX" = yes; then 3984 CXXFLAGS="-O2" 3985 else 3986 CXXFLAGS= 3987 fi 3988fi 3989ac_ext=c 3990ac_cpp='$CPP $CPPFLAGS' 3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3993ac_compiler_gnu=$ac_cv_c_compiler_gnu 3994 3995depcc="$CXX" am_compiler_list= 3996 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3998$as_echo_n "checking dependency style of $depcc... " >&6; } 3999if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4000 $as_echo_n "(cached) " >&6 4001else 4002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4003 # We make a subdir and do the tests there. Otherwise we can end up 4004 # making bogus files that we don't know about and never remove. For 4005 # instance it was reported that on HP-UX the gcc test will end up 4006 # making a dummy file named `D' -- because `-MD' means `put the output 4007 # in D'. 4008 rm -rf conftest.dir 4009 mkdir conftest.dir 4010 # Copy depcomp to subdir because otherwise we won't find it if we're 4011 # using a relative directory. 4012 cp "$am_depcomp" conftest.dir 4013 cd conftest.dir 4014 # We will build objects and dependencies in a subdirectory because 4015 # it helps to detect inapplicable dependency modes. For instance 4016 # both Tru64's cc and ICC support -MD to output dependencies as a 4017 # side effect of compilation, but ICC will put the dependencies in 4018 # the current directory while Tru64 will put them in the object 4019 # directory. 4020 mkdir sub 4021 4022 am_cv_CXX_dependencies_compiler_type=none 4023 if test "$am_compiler_list" = ""; then 4024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4025 fi 4026 am__universal=false 4027 case " $depcc " in #( 4028 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4029 esac 4030 4031 for depmode in $am_compiler_list; do 4032 # Setup a source with many dependencies, because some compilers 4033 # like to wrap large dependency lists on column 80 (with \), and 4034 # we should not choose a depcomp mode which is confused by this. 4035 # 4036 # We need to recreate these files for each test, as the compiler may 4037 # overwrite some of them when testing with obscure command lines. 4038 # This happens at least with the AIX C compiler. 4039 : > sub/conftest.c 4040 for i in 1 2 3 4 5 6; do 4041 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4042 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4043 # Solaris 8's {/usr,}/bin/sh. 4044 touch sub/conftst$i.h 4045 done 4046 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4047 4048 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4049 # mode. It turns out that the SunPro C++ compiler does not properly 4050 # handle `-M -o', and we need to detect this. Also, some Intel 4051 # versions had trouble with output in subdirs 4052 am__obj=sub/conftest.${OBJEXT-o} 4053 am__minus_obj="-o $am__obj" 4054 case $depmode in 4055 gcc) 4056 # This depmode causes a compiler race in universal mode. 4057 test "$am__universal" = false || continue 4058 ;; 4059 nosideeffect) 4060 # after this tag, mechanisms are not by side-effect, so they'll 4061 # only be used when explicitly requested 4062 if test "x$enable_dependency_tracking" = xyes; then 4063 continue 4064 else 4065 break 4066 fi 4067 ;; 4068 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4069 # This compiler won't grok `-c -o', but also, the minuso test has 4070 # not run yet. These depmodes are late enough in the game, and 4071 # so weak that their functioning should not be impacted. 4072 am__obj=conftest.${OBJEXT-o} 4073 am__minus_obj= 4074 ;; 4075 none) break ;; 4076 esac 4077 if depmode=$depmode \ 4078 source=sub/conftest.c object=$am__obj \ 4079 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4080 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4081 >/dev/null 2>conftest.err && 4082 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4083 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4084 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4085 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4086 # icc doesn't choke on unknown options, it will just issue warnings 4087 # or remarks (even with -Werror). So we grep stderr for any message 4088 # that says an option was ignored or not supported. 4089 # When given -MP, icc 7.0 and 7.1 complain thusly: 4090 # icc: Command line warning: ignoring option '-M'; no argument required 4091 # The diagnosis changed in icc 8.0: 4092 # icc: Command line remark: option '-MP' not supported 4093 if (grep 'ignoring option' conftest.err || 4094 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4095 am_cv_CXX_dependencies_compiler_type=$depmode 4096 break 4097 fi 4098 fi 4099 done 4100 4101 cd .. 4102 rm -rf conftest.dir 4103else 4104 am_cv_CXX_dependencies_compiler_type=none 4105fi 4106 4107fi 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4109$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4110CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4111 4112 if 4113 test "x$enable_dependency_tracking" != xno \ 4114 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4115 am__fastdepCXX_TRUE= 4116 am__fastdepCXX_FALSE='#' 4117else 4118 am__fastdepCXX_TRUE='#' 4119 am__fastdepCXX_FALSE= 4120fi 4121 4122 4123ac_ext=cpp 4124ac_cpp='$CXXCPP $CPPFLAGS' 4125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4128 4129case `pwd` in 4130 *\ * | *\ *) 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4132$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4133esac 4134 4135 4136 4137macro_version='2.4.2' 4138macro_revision='1.3337' 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152ltmain="$ac_aux_dir/ltmain.sh" 4153 4154# Make sure we can run config.sub. 4155$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4156 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4157 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4159$as_echo_n "checking build system type... " >&6; } 4160if ${ac_cv_build+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 ac_build_alias=$build_alias 4164test "x$ac_build_alias" = x && 4165 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4166test "x$ac_build_alias" = x && 4167 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4168ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4169 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4170 4171fi 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4173$as_echo "$ac_cv_build" >&6; } 4174case $ac_cv_build in 4175*-*-*) ;; 4176*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4177esac 4178build=$ac_cv_build 4179ac_save_IFS=$IFS; IFS='-' 4180set x $ac_cv_build 4181shift 4182build_cpu=$1 4183build_vendor=$2 4184shift; shift 4185# Remember, the first character of IFS is used to create $*, 4186# except with old shells: 4187build_os=$* 4188IFS=$ac_save_IFS 4189case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4190 4191 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4193$as_echo_n "checking host system type... " >&6; } 4194if ${ac_cv_host+:} false; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 if test "x$host_alias" = x; then 4198 ac_cv_host=$ac_cv_build 4199else 4200 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4201 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4202fi 4203 4204fi 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4206$as_echo "$ac_cv_host" >&6; } 4207case $ac_cv_host in 4208*-*-*) ;; 4209*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4210esac 4211host=$ac_cv_host 4212ac_save_IFS=$IFS; IFS='-' 4213set x $ac_cv_host 4214shift 4215host_cpu=$1 4216host_vendor=$2 4217shift; shift 4218# Remember, the first character of IFS is used to create $*, 4219# except with old shells: 4220host_os=$* 4221IFS=$ac_save_IFS 4222case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4223 4224 4225# Backslashify metacharacters that are still active within 4226# double-quoted strings. 4227sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4228 4229# Same as above, but do not quote variable references. 4230double_quote_subst='s/\(["`\\]\)/\\\1/g' 4231 4232# Sed substitution to delay expansion of an escaped shell variable in a 4233# double_quote_subst'ed string. 4234delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4235 4236# Sed substitution to delay expansion of an escaped single quote. 4237delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4238 4239# Sed substitution to avoid accidental globbing in evaled expressions 4240no_glob_subst='s/\*/\\\*/g' 4241 4242ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4243ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4244ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4245 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4247$as_echo_n "checking how to print strings... " >&6; } 4248# Test print first, because it will be a builtin if present. 4249if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4250 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4251 ECHO='print -r --' 4252elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4253 ECHO='printf %s\n' 4254else 4255 # Use this function as a fallback that always works. 4256 func_fallback_echo () 4257 { 4258 eval 'cat <<_LTECHO_EOF 4259$1 4260_LTECHO_EOF' 4261 } 4262 ECHO='func_fallback_echo' 4263fi 4264 4265# func_echo_all arg... 4266# Invoke $ECHO with all args, space-separated. 4267func_echo_all () 4268{ 4269 $ECHO "" 4270} 4271 4272case "$ECHO" in 4273 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4274$as_echo "printf" >&6; } ;; 4275 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4276$as_echo "print -r" >&6; } ;; 4277 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4278$as_echo "cat" >&6; } ;; 4279esac 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4295$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4296if ${ac_cv_path_SED+:} false; then : 4297 $as_echo_n "(cached) " >&6 4298else 4299 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4300 for ac_i in 1 2 3 4 5 6 7; do 4301 ac_script="$ac_script$as_nl$ac_script" 4302 done 4303 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4304 { ac_script=; unset ac_script;} 4305 if test -z "$SED"; then 4306 ac_path_SED_found=false 4307 # Loop through the user's path and test for each of PROGNAME-LIST 4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4309for as_dir in $PATH 4310do 4311 IFS=$as_save_IFS 4312 test -z "$as_dir" && as_dir=. 4313 for ac_prog in sed gsed; do 4314 for ac_exec_ext in '' $ac_executable_extensions; do 4315 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4316 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4317# Check for GNU ac_path_SED and select it if it is found. 4318 # Check for GNU $ac_path_SED 4319case `"$ac_path_SED" --version 2>&1` in 4320*GNU*) 4321 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4322*) 4323 ac_count=0 4324 $as_echo_n 0123456789 >"conftest.in" 4325 while : 4326 do 4327 cat "conftest.in" "conftest.in" >"conftest.tmp" 4328 mv "conftest.tmp" "conftest.in" 4329 cp "conftest.in" "conftest.nl" 4330 $as_echo '' >> "conftest.nl" 4331 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4333 as_fn_arith $ac_count + 1 && ac_count=$as_val 4334 if test $ac_count -gt ${ac_path_SED_max-0}; then 4335 # Best one so far, save it but keep looking for a better one 4336 ac_cv_path_SED="$ac_path_SED" 4337 ac_path_SED_max=$ac_count 4338 fi 4339 # 10*(2^10) chars as input seems more than enough 4340 test $ac_count -gt 10 && break 4341 done 4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4343esac 4344 4345 $ac_path_SED_found && break 3 4346 done 4347 done 4348 done 4349IFS=$as_save_IFS 4350 if test -z "$ac_cv_path_SED"; then 4351 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4352 fi 4353else 4354 ac_cv_path_SED=$SED 4355fi 4356 4357fi 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4359$as_echo "$ac_cv_path_SED" >&6; } 4360 SED="$ac_cv_path_SED" 4361 rm -f conftest.sed 4362 4363test -z "$SED" && SED=sed 4364Xsed="$SED -e 1s/^X//" 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4377$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4378if ${ac_cv_path_GREP+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 if test -z "$GREP"; then 4382 ac_path_GREP_found=false 4383 # Loop through the user's path and test for each of PROGNAME-LIST 4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4386do 4387 IFS=$as_save_IFS 4388 test -z "$as_dir" && as_dir=. 4389 for ac_prog in grep ggrep; do 4390 for ac_exec_ext in '' $ac_executable_extensions; do 4391 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4392 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4393# Check for GNU ac_path_GREP and select it if it is found. 4394 # Check for GNU $ac_path_GREP 4395case `"$ac_path_GREP" --version 2>&1` in 4396*GNU*) 4397 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4398*) 4399 ac_count=0 4400 $as_echo_n 0123456789 >"conftest.in" 4401 while : 4402 do 4403 cat "conftest.in" "conftest.in" >"conftest.tmp" 4404 mv "conftest.tmp" "conftest.in" 4405 cp "conftest.in" "conftest.nl" 4406 $as_echo 'GREP' >> "conftest.nl" 4407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4409 as_fn_arith $ac_count + 1 && ac_count=$as_val 4410 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4411 # Best one so far, save it but keep looking for a better one 4412 ac_cv_path_GREP="$ac_path_GREP" 4413 ac_path_GREP_max=$ac_count 4414 fi 4415 # 10*(2^10) chars as input seems more than enough 4416 test $ac_count -gt 10 && break 4417 done 4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4419esac 4420 4421 $ac_path_GREP_found && break 3 4422 done 4423 done 4424 done 4425IFS=$as_save_IFS 4426 if test -z "$ac_cv_path_GREP"; then 4427 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4428 fi 4429else 4430 ac_cv_path_GREP=$GREP 4431fi 4432 4433fi 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4435$as_echo "$ac_cv_path_GREP" >&6; } 4436 GREP="$ac_cv_path_GREP" 4437 4438 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4440$as_echo_n "checking for egrep... " >&6; } 4441if ${ac_cv_path_EGREP+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4445 then ac_cv_path_EGREP="$GREP -E" 4446 else 4447 if test -z "$EGREP"; then 4448 ac_path_EGREP_found=false 4449 # Loop through the user's path and test for each of PROGNAME-LIST 4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4451for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4452do 4453 IFS=$as_save_IFS 4454 test -z "$as_dir" && as_dir=. 4455 for ac_prog in egrep; do 4456 for ac_exec_ext in '' $ac_executable_extensions; do 4457 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4458 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4459# Check for GNU ac_path_EGREP and select it if it is found. 4460 # Check for GNU $ac_path_EGREP 4461case `"$ac_path_EGREP" --version 2>&1` in 4462*GNU*) 4463 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4464*) 4465 ac_count=0 4466 $as_echo_n 0123456789 >"conftest.in" 4467 while : 4468 do 4469 cat "conftest.in" "conftest.in" >"conftest.tmp" 4470 mv "conftest.tmp" "conftest.in" 4471 cp "conftest.in" "conftest.nl" 4472 $as_echo 'EGREP' >> "conftest.nl" 4473 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4475 as_fn_arith $ac_count + 1 && ac_count=$as_val 4476 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4477 # Best one so far, save it but keep looking for a better one 4478 ac_cv_path_EGREP="$ac_path_EGREP" 4479 ac_path_EGREP_max=$ac_count 4480 fi 4481 # 10*(2^10) chars as input seems more than enough 4482 test $ac_count -gt 10 && break 4483 done 4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4485esac 4486 4487 $ac_path_EGREP_found && break 3 4488 done 4489 done 4490 done 4491IFS=$as_save_IFS 4492 if test -z "$ac_cv_path_EGREP"; then 4493 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4494 fi 4495else 4496 ac_cv_path_EGREP=$EGREP 4497fi 4498 4499 fi 4500fi 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4502$as_echo "$ac_cv_path_EGREP" >&6; } 4503 EGREP="$ac_cv_path_EGREP" 4504 4505 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4507$as_echo_n "checking for fgrep... " >&6; } 4508if ${ac_cv_path_FGREP+:} false; then : 4509 $as_echo_n "(cached) " >&6 4510else 4511 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4512 then ac_cv_path_FGREP="$GREP -F" 4513 else 4514 if test -z "$FGREP"; then 4515 ac_path_FGREP_found=false 4516 # Loop through the user's path and test for each of PROGNAME-LIST 4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4519do 4520 IFS=$as_save_IFS 4521 test -z "$as_dir" && as_dir=. 4522 for ac_prog in fgrep; do 4523 for ac_exec_ext in '' $ac_executable_extensions; do 4524 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4525 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4526# Check for GNU ac_path_FGREP and select it if it is found. 4527 # Check for GNU $ac_path_FGREP 4528case `"$ac_path_FGREP" --version 2>&1` in 4529*GNU*) 4530 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4531*) 4532 ac_count=0 4533 $as_echo_n 0123456789 >"conftest.in" 4534 while : 4535 do 4536 cat "conftest.in" "conftest.in" >"conftest.tmp" 4537 mv "conftest.tmp" "conftest.in" 4538 cp "conftest.in" "conftest.nl" 4539 $as_echo 'FGREP' >> "conftest.nl" 4540 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4542 as_fn_arith $ac_count + 1 && ac_count=$as_val 4543 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4544 # Best one so far, save it but keep looking for a better one 4545 ac_cv_path_FGREP="$ac_path_FGREP" 4546 ac_path_FGREP_max=$ac_count 4547 fi 4548 # 10*(2^10) chars as input seems more than enough 4549 test $ac_count -gt 10 && break 4550 done 4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4552esac 4553 4554 $ac_path_FGREP_found && break 3 4555 done 4556 done 4557 done 4558IFS=$as_save_IFS 4559 if test -z "$ac_cv_path_FGREP"; then 4560 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4561 fi 4562else 4563 ac_cv_path_FGREP=$FGREP 4564fi 4565 4566 fi 4567fi 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4569$as_echo "$ac_cv_path_FGREP" >&6; } 4570 FGREP="$ac_cv_path_FGREP" 4571 4572 4573test -z "$GREP" && GREP=grep 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593# Check whether --with-gnu-ld was given. 4594if test "${with_gnu_ld+set}" = set; then : 4595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4596else 4597 with_gnu_ld=no 4598fi 4599 4600ac_prog=ld 4601if test "$GCC" = yes; then 4602 # Check if gcc -print-prog-name=ld gives a path. 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4604$as_echo_n "checking for ld used by $CC... " >&6; } 4605 case $host in 4606 *-*-mingw*) 4607 # gcc leaves a trailing carriage return which upsets mingw 4608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4609 *) 4610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4611 esac 4612 case $ac_prog in 4613 # Accept absolute paths. 4614 [\\/]* | ?:[\\/]*) 4615 re_direlt='/[^/][^/]*/\.\./' 4616 # Canonicalize the pathname of ld 4617 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4618 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4619 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4620 done 4621 test -z "$LD" && LD="$ac_prog" 4622 ;; 4623 "") 4624 # If it fails, then pretend we aren't using GCC. 4625 ac_prog=ld 4626 ;; 4627 *) 4628 # If it is relative, then search for the first ld in PATH. 4629 with_gnu_ld=unknown 4630 ;; 4631 esac 4632elif test "$with_gnu_ld" = yes; then 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4634$as_echo_n "checking for GNU ld... " >&6; } 4635else 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4637$as_echo_n "checking for non-GNU ld... " >&6; } 4638fi 4639if ${lt_cv_path_LD+:} false; then : 4640 $as_echo_n "(cached) " >&6 4641else 4642 if test -z "$LD"; then 4643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4644 for ac_dir in $PATH; do 4645 IFS="$lt_save_ifs" 4646 test -z "$ac_dir" && ac_dir=. 4647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4648 lt_cv_path_LD="$ac_dir/$ac_prog" 4649 # Check to see if the program is GNU ld. I'd rather use --version, 4650 # but apparently some variants of GNU ld only accept -v. 4651 # Break only if it was the GNU/non-GNU ld that we prefer. 4652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4653 *GNU* | *'with BFD'*) 4654 test "$with_gnu_ld" != no && break 4655 ;; 4656 *) 4657 test "$with_gnu_ld" != yes && break 4658 ;; 4659 esac 4660 fi 4661 done 4662 IFS="$lt_save_ifs" 4663else 4664 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4665fi 4666fi 4667 4668LD="$lt_cv_path_LD" 4669if test -n "$LD"; then 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4671$as_echo "$LD" >&6; } 4672else 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4674$as_echo "no" >&6; } 4675fi 4676test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4678$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4679if ${lt_cv_prog_gnu_ld+:} false; then : 4680 $as_echo_n "(cached) " >&6 4681else 4682 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4683case `$LD -v 2>&1 </dev/null` in 4684*GNU* | *'with BFD'*) 4685 lt_cv_prog_gnu_ld=yes 4686 ;; 4687*) 4688 lt_cv_prog_gnu_ld=no 4689 ;; 4690esac 4691fi 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4693$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4694with_gnu_ld=$lt_cv_prog_gnu_ld 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4705$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4706if ${lt_cv_path_NM+:} false; then : 4707 $as_echo_n "(cached) " >&6 4708else 4709 if test -n "$NM"; then 4710 # Let the user override the test. 4711 lt_cv_path_NM="$NM" 4712else 4713 lt_nm_to_check="${ac_tool_prefix}nm" 4714 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4715 lt_nm_to_check="$lt_nm_to_check nm" 4716 fi 4717 for lt_tmp_nm in $lt_nm_to_check; do 4718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4719 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4720 IFS="$lt_save_ifs" 4721 test -z "$ac_dir" && ac_dir=. 4722 tmp_nm="$ac_dir/$lt_tmp_nm" 4723 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4724 # Check to see if the nm accepts a BSD-compat flag. 4725 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4726 # nm: unknown option "B" ignored 4727 # Tru64's nm complains that /dev/null is an invalid object file 4728 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4729 */dev/null* | *'Invalid file or object type'*) 4730 lt_cv_path_NM="$tmp_nm -B" 4731 break 4732 ;; 4733 *) 4734 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4735 */dev/null*) 4736 lt_cv_path_NM="$tmp_nm -p" 4737 break 4738 ;; 4739 *) 4740 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4741 continue # so that we can try to find one that supports BSD flags 4742 ;; 4743 esac 4744 ;; 4745 esac 4746 fi 4747 done 4748 IFS="$lt_save_ifs" 4749 done 4750 : ${lt_cv_path_NM=no} 4751fi 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4754$as_echo "$lt_cv_path_NM" >&6; } 4755if test "$lt_cv_path_NM" != "no"; then 4756 NM="$lt_cv_path_NM" 4757else 4758 # Didn't find any BSD compatible name lister, look for dumpbin. 4759 if test -n "$DUMPBIN"; then : 4760 # Let the user override the test. 4761 else 4762 if test -n "$ac_tool_prefix"; then 4763 for ac_prog in dumpbin "link -dump" 4764 do 4765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4766set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4768$as_echo_n "checking for $ac_word... " >&6; } 4769if ${ac_cv_prog_DUMPBIN+:} false; then : 4770 $as_echo_n "(cached) " >&6 4771else 4772 if test -n "$DUMPBIN"; then 4773 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4774else 4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776for as_dir in $PATH 4777do 4778 IFS=$as_save_IFS 4779 test -z "$as_dir" && as_dir=. 4780 for ac_exec_ext in '' $ac_executable_extensions; do 4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4782 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4784 break 2 4785 fi 4786done 4787 done 4788IFS=$as_save_IFS 4789 4790fi 4791fi 4792DUMPBIN=$ac_cv_prog_DUMPBIN 4793if test -n "$DUMPBIN"; then 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4795$as_echo "$DUMPBIN" >&6; } 4796else 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4798$as_echo "no" >&6; } 4799fi 4800 4801 4802 test -n "$DUMPBIN" && break 4803 done 4804fi 4805if test -z "$DUMPBIN"; then 4806 ac_ct_DUMPBIN=$DUMPBIN 4807 for ac_prog in dumpbin "link -dump" 4808do 4809 # Extract the first word of "$ac_prog", so it can be a program name with args. 4810set dummy $ac_prog; ac_word=$2 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4812$as_echo_n "checking for $ac_word... " >&6; } 4813if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 if test -n "$ac_ct_DUMPBIN"; then 4817 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4818else 4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH 4821do 4822 IFS=$as_save_IFS 4823 test -z "$as_dir" && as_dir=. 4824 for ac_exec_ext in '' $ac_executable_extensions; do 4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4826 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4828 break 2 4829 fi 4830done 4831 done 4832IFS=$as_save_IFS 4833 4834fi 4835fi 4836ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4837if test -n "$ac_ct_DUMPBIN"; then 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4839$as_echo "$ac_ct_DUMPBIN" >&6; } 4840else 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4842$as_echo "no" >&6; } 4843fi 4844 4845 4846 test -n "$ac_ct_DUMPBIN" && break 4847done 4848 4849 if test "x$ac_ct_DUMPBIN" = x; then 4850 DUMPBIN=":" 4851 else 4852 case $cross_compiling:$ac_tool_warned in 4853yes:) 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4856ac_tool_warned=yes ;; 4857esac 4858 DUMPBIN=$ac_ct_DUMPBIN 4859 fi 4860fi 4861 4862 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4863 *COFF*) 4864 DUMPBIN="$DUMPBIN -symbols" 4865 ;; 4866 *) 4867 DUMPBIN=: 4868 ;; 4869 esac 4870 fi 4871 4872 if test "$DUMPBIN" != ":"; then 4873 NM="$DUMPBIN" 4874 fi 4875fi 4876test -z "$NM" && NM=nm 4877 4878 4879 4880 4881 4882 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4884$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4885if ${lt_cv_nm_interface+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 lt_cv_nm_interface="BSD nm" 4889 echo "int some_variable = 0;" > conftest.$ac_ext 4890 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4891 (eval "$ac_compile" 2>conftest.err) 4892 cat conftest.err >&5 4893 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4894 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4895 cat conftest.err >&5 4896 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4897 cat conftest.out >&5 4898 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4899 lt_cv_nm_interface="MS dumpbin" 4900 fi 4901 rm -f conftest* 4902fi 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4904$as_echo "$lt_cv_nm_interface" >&6; } 4905 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4907$as_echo_n "checking whether ln -s works... " >&6; } 4908LN_S=$as_ln_s 4909if test "$LN_S" = "ln -s"; then 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4911$as_echo "yes" >&6; } 4912else 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4914$as_echo "no, using $LN_S" >&6; } 4915fi 4916 4917# find the maximum length of command line arguments 4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4919$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4920if ${lt_cv_sys_max_cmd_len+:} false; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 i=0 4924 teststring="ABCD" 4925 4926 case $build_os in 4927 msdosdjgpp*) 4928 # On DJGPP, this test can blow up pretty badly due to problems in libc 4929 # (any single argument exceeding 2000 bytes causes a buffer overrun 4930 # during glob expansion). Even if it were fixed, the result of this 4931 # check would be larger than it should be. 4932 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4933 ;; 4934 4935 gnu*) 4936 # Under GNU Hurd, this test is not required because there is 4937 # no limit to the length of command line arguments. 4938 # Libtool will interpret -1 as no limit whatsoever 4939 lt_cv_sys_max_cmd_len=-1; 4940 ;; 4941 4942 cygwin* | mingw* | cegcc*) 4943 # On Win9x/ME, this test blows up -- it succeeds, but takes 4944 # about 5 minutes as the teststring grows exponentially. 4945 # Worse, since 9x/ME are not pre-emptively multitasking, 4946 # you end up with a "frozen" computer, even though with patience 4947 # the test eventually succeeds (with a max line length of 256k). 4948 # Instead, let's just punt: use the minimum linelength reported by 4949 # all of the supported platforms: 8192 (on NT/2K/XP). 4950 lt_cv_sys_max_cmd_len=8192; 4951 ;; 4952 4953 mint*) 4954 # On MiNT this can take a long time and run out of memory. 4955 lt_cv_sys_max_cmd_len=8192; 4956 ;; 4957 4958 amigaos*) 4959 # On AmigaOS with pdksh, this test takes hours, literally. 4960 # So we just punt and use a minimum line length of 8192. 4961 lt_cv_sys_max_cmd_len=8192; 4962 ;; 4963 4964 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4965 # This has been around since 386BSD, at least. Likely further. 4966 if test -x /sbin/sysctl; then 4967 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4968 elif test -x /usr/sbin/sysctl; then 4969 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4970 else 4971 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4972 fi 4973 # And add a safety zone 4974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4976 ;; 4977 4978 interix*) 4979 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4980 lt_cv_sys_max_cmd_len=196608 4981 ;; 4982 4983 os2*) 4984 # The test takes a long time on OS/2. 4985 lt_cv_sys_max_cmd_len=8192 4986 ;; 4987 4988 osf*) 4989 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4990 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4991 # nice to cause kernel panics so lets avoid the loop below. 4992 # First set a reasonable default. 4993 lt_cv_sys_max_cmd_len=16384 4994 # 4995 if test -x /sbin/sysconfig; then 4996 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4997 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4998 esac 4999 fi 5000 ;; 5001 sco3.2v5*) 5002 lt_cv_sys_max_cmd_len=102400 5003 ;; 5004 sysv5* | sco5v6* | sysv4.2uw2*) 5005 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5006 if test -n "$kargmax"; then 5007 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5008 else 5009 lt_cv_sys_max_cmd_len=32768 5010 fi 5011 ;; 5012 *) 5013 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5014 if test -n "$lt_cv_sys_max_cmd_len"; then 5015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5017 else 5018 # Make teststring a little bigger before we do anything with it. 5019 # a 1K string should be a reasonable start. 5020 for i in 1 2 3 4 5 6 7 8 ; do 5021 teststring=$teststring$teststring 5022 done 5023 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5024 # If test is not a shell built-in, we'll probably end up computing a 5025 # maximum length that is only half of the actual maximum length, but 5026 # we can't tell. 5027 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5028 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5029 test $i != 17 # 1/2 MB should be enough 5030 do 5031 i=`expr $i + 1` 5032 teststring=$teststring$teststring 5033 done 5034 # Only check the string length outside the loop. 5035 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5036 teststring= 5037 # Add a significant safety factor because C++ compilers can tack on 5038 # massive amounts of additional arguments before passing them to the 5039 # linker. It appears as though 1/2 is a usable value. 5040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5041 fi 5042 ;; 5043 esac 5044 5045fi 5046 5047if test -n $lt_cv_sys_max_cmd_len ; then 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5049$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5050else 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5052$as_echo "none" >&6; } 5053fi 5054max_cmd_len=$lt_cv_sys_max_cmd_len 5055 5056 5057 5058 5059 5060 5061: ${CP="cp -f"} 5062: ${MV="mv -f"} 5063: ${RM="rm -f"} 5064 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5066$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5067# Try some XSI features 5068xsi_shell=no 5069( _lt_dummy="a/b/c" 5070 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5071 = c,a/b,b/c, \ 5072 && eval 'test $(( 1 + 1 )) -eq 2 \ 5073 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5074 && xsi_shell=yes 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5076$as_echo "$xsi_shell" >&6; } 5077 5078 5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5080$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5081lt_shell_append=no 5082( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5083 >/dev/null 2>&1 \ 5084 && lt_shell_append=yes 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5086$as_echo "$lt_shell_append" >&6; } 5087 5088 5089if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5090 lt_unset=unset 5091else 5092 lt_unset=false 5093fi 5094 5095 5096 5097 5098 5099# test EBCDIC or ASCII 5100case `echo X|tr X '\101'` in 5101 A) # ASCII based system 5102 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5103 lt_SP2NL='tr \040 \012' 5104 lt_NL2SP='tr \015\012 \040\040' 5105 ;; 5106 *) # EBCDIC based system 5107 lt_SP2NL='tr \100 \n' 5108 lt_NL2SP='tr \r\n \100\100' 5109 ;; 5110esac 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5121$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5122if ${lt_cv_to_host_file_cmd+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124else 5125 case $host in 5126 *-*-mingw* ) 5127 case $build in 5128 *-*-mingw* ) # actually msys 5129 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5130 ;; 5131 *-*-cygwin* ) 5132 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5133 ;; 5134 * ) # otherwise, assume *nix 5135 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5136 ;; 5137 esac 5138 ;; 5139 *-*-cygwin* ) 5140 case $build in 5141 *-*-mingw* ) # actually msys 5142 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5143 ;; 5144 *-*-cygwin* ) 5145 lt_cv_to_host_file_cmd=func_convert_file_noop 5146 ;; 5147 * ) # otherwise, assume *nix 5148 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5149 ;; 5150 esac 5151 ;; 5152 * ) # unhandled hosts (and "normal" native builds) 5153 lt_cv_to_host_file_cmd=func_convert_file_noop 5154 ;; 5155esac 5156 5157fi 5158 5159to_host_file_cmd=$lt_cv_to_host_file_cmd 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5161$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5162 5163 5164 5165 5166 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5168$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5169if ${lt_cv_to_tool_file_cmd+:} false; then : 5170 $as_echo_n "(cached) " >&6 5171else 5172 #assume ordinary cross tools, or native build. 5173lt_cv_to_tool_file_cmd=func_convert_file_noop 5174case $host in 5175 *-*-mingw* ) 5176 case $build in 5177 *-*-mingw* ) # actually msys 5178 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5179 ;; 5180 esac 5181 ;; 5182esac 5183 5184fi 5185 5186to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5188$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5189 5190 5191 5192 5193 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5195$as_echo_n "checking for $LD option to reload object files... " >&6; } 5196if ${lt_cv_ld_reload_flag+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 lt_cv_ld_reload_flag='-r' 5200fi 5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5202$as_echo "$lt_cv_ld_reload_flag" >&6; } 5203reload_flag=$lt_cv_ld_reload_flag 5204case $reload_flag in 5205"" | " "*) ;; 5206*) reload_flag=" $reload_flag" ;; 5207esac 5208reload_cmds='$LD$reload_flag -o $output$reload_objs' 5209case $host_os in 5210 cygwin* | mingw* | pw32* | cegcc*) 5211 if test "$GCC" != yes; then 5212 reload_cmds=false 5213 fi 5214 ;; 5215 darwin*) 5216 if test "$GCC" = yes; then 5217 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5218 else 5219 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5220 fi 5221 ;; 5222esac 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232if test -n "$ac_tool_prefix"; then 5233 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5234set dummy ${ac_tool_prefix}objdump; ac_word=$2 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5236$as_echo_n "checking for $ac_word... " >&6; } 5237if ${ac_cv_prog_OBJDUMP+:} false; then : 5238 $as_echo_n "(cached) " >&6 5239else 5240 if test -n "$OBJDUMP"; then 5241 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5242else 5243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5244for as_dir in $PATH 5245do 5246 IFS=$as_save_IFS 5247 test -z "$as_dir" && as_dir=. 5248 for ac_exec_ext in '' $ac_executable_extensions; do 5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5250 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5252 break 2 5253 fi 5254done 5255 done 5256IFS=$as_save_IFS 5257 5258fi 5259fi 5260OBJDUMP=$ac_cv_prog_OBJDUMP 5261if test -n "$OBJDUMP"; then 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5263$as_echo "$OBJDUMP" >&6; } 5264else 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5266$as_echo "no" >&6; } 5267fi 5268 5269 5270fi 5271if test -z "$ac_cv_prog_OBJDUMP"; then 5272 ac_ct_OBJDUMP=$OBJDUMP 5273 # Extract the first word of "objdump", so it can be a program name with args. 5274set dummy objdump; ac_word=$2 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5276$as_echo_n "checking for $ac_word... " >&6; } 5277if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 if test -n "$ac_ct_OBJDUMP"; then 5281 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5282else 5283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5284for as_dir in $PATH 5285do 5286 IFS=$as_save_IFS 5287 test -z "$as_dir" && as_dir=. 5288 for ac_exec_ext in '' $ac_executable_extensions; do 5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5290 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5292 break 2 5293 fi 5294done 5295 done 5296IFS=$as_save_IFS 5297 5298fi 5299fi 5300ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5301if test -n "$ac_ct_OBJDUMP"; then 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5303$as_echo "$ac_ct_OBJDUMP" >&6; } 5304else 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5306$as_echo "no" >&6; } 5307fi 5308 5309 if test "x$ac_ct_OBJDUMP" = x; then 5310 OBJDUMP="false" 5311 else 5312 case $cross_compiling:$ac_tool_warned in 5313yes:) 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5316ac_tool_warned=yes ;; 5317esac 5318 OBJDUMP=$ac_ct_OBJDUMP 5319 fi 5320else 5321 OBJDUMP="$ac_cv_prog_OBJDUMP" 5322fi 5323 5324test -z "$OBJDUMP" && OBJDUMP=objdump 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5335$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5336if ${lt_cv_deplibs_check_method+:} false; then : 5337 $as_echo_n "(cached) " >&6 5338else 5339 lt_cv_file_magic_cmd='$MAGIC_CMD' 5340lt_cv_file_magic_test_file= 5341lt_cv_deplibs_check_method='unknown' 5342# Need to set the preceding variable on all platforms that support 5343# interlibrary dependencies. 5344# 'none' -- dependencies not supported. 5345# `unknown' -- same as none, but documents that we really don't know. 5346# 'pass_all' -- all dependencies passed with no checks. 5347# 'test_compile' -- check by making test program. 5348# 'file_magic [[regex]]' -- check by looking for files in library path 5349# which responds to the $file_magic_cmd with a given extended regex. 5350# If you have `file' or equivalent on your system and you're not sure 5351# whether `pass_all' will *always* work, you probably want this one. 5352 5353case $host_os in 5354aix[4-9]*) 5355 lt_cv_deplibs_check_method=pass_all 5356 ;; 5357 5358beos*) 5359 lt_cv_deplibs_check_method=pass_all 5360 ;; 5361 5362bsdi[45]*) 5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5364 lt_cv_file_magic_cmd='/usr/bin/file -L' 5365 lt_cv_file_magic_test_file=/shlib/libc.so 5366 ;; 5367 5368cygwin*) 5369 # func_win32_libid is a shell function defined in ltmain.sh 5370 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5371 lt_cv_file_magic_cmd='func_win32_libid' 5372 ;; 5373 5374mingw* | pw32*) 5375 # Base MSYS/MinGW do not provide the 'file' command needed by 5376 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5377 # unless we find 'file', for example because we are cross-compiling. 5378 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5379 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5381 lt_cv_file_magic_cmd='func_win32_libid' 5382 else 5383 # Keep this pattern in sync with the one in func_win32_libid. 5384 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5385 lt_cv_file_magic_cmd='$OBJDUMP -f' 5386 fi 5387 ;; 5388 5389cegcc*) 5390 # use the weaker test based on 'objdump'. See mingw*. 5391 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5392 lt_cv_file_magic_cmd='$OBJDUMP -f' 5393 ;; 5394 5395darwin* | rhapsody*) 5396 lt_cv_deplibs_check_method=pass_all 5397 ;; 5398 5399freebsd* | dragonfly*) 5400 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5401 case $host_cpu in 5402 i*86 ) 5403 # Not sure whether the presence of OpenBSD here was a mistake. 5404 # Let's accept both of them until this is cleared up. 5405 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5406 lt_cv_file_magic_cmd=/usr/bin/file 5407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5408 ;; 5409 esac 5410 else 5411 lt_cv_deplibs_check_method=pass_all 5412 fi 5413 ;; 5414 5415gnu*) 5416 lt_cv_deplibs_check_method=pass_all 5417 ;; 5418 5419haiku*) 5420 lt_cv_deplibs_check_method=pass_all 5421 ;; 5422 5423hpux10.20* | hpux11*) 5424 lt_cv_file_magic_cmd=/usr/bin/file 5425 case $host_cpu in 5426 ia64*) 5427 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5428 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5429 ;; 5430 hppa*64*) 5431 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]' 5432 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5433 ;; 5434 *) 5435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5436 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5437 ;; 5438 esac 5439 ;; 5440 5441interix[3-9]*) 5442 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5444 ;; 5445 5446irix5* | irix6* | nonstopux*) 5447 case $LD in 5448 *-32|*"-32 ") libmagic=32-bit;; 5449 *-n32|*"-n32 ") libmagic=N32;; 5450 *-64|*"-64 ") libmagic=64-bit;; 5451 *) libmagic=never-match;; 5452 esac 5453 lt_cv_deplibs_check_method=pass_all 5454 ;; 5455 5456# This must be glibc/ELF. 5457linux* | k*bsd*-gnu | kopensolaris*-gnu) 5458 lt_cv_deplibs_check_method=pass_all 5459 ;; 5460 5461netbsd* | netbsdelf*-gnu) 5462 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5464 else 5465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5466 fi 5467 ;; 5468 5469newos6*) 5470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5471 lt_cv_file_magic_cmd=/usr/bin/file 5472 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5473 ;; 5474 5475*nto* | *qnx*) 5476 lt_cv_deplibs_check_method=pass_all 5477 ;; 5478 5479openbsd*) 5480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5482 else 5483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5484 fi 5485 ;; 5486 5487osf3* | osf4* | osf5*) 5488 lt_cv_deplibs_check_method=pass_all 5489 ;; 5490 5491rdos*) 5492 lt_cv_deplibs_check_method=pass_all 5493 ;; 5494 5495solaris*) 5496 lt_cv_deplibs_check_method=pass_all 5497 ;; 5498 5499sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5500 lt_cv_deplibs_check_method=pass_all 5501 ;; 5502 5503sysv4 | sysv4.3*) 5504 case $host_vendor in 5505 motorola) 5506 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]' 5507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5508 ;; 5509 ncr) 5510 lt_cv_deplibs_check_method=pass_all 5511 ;; 5512 sequent) 5513 lt_cv_file_magic_cmd='/bin/file' 5514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5515 ;; 5516 sni) 5517 lt_cv_file_magic_cmd='/bin/file' 5518 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5519 lt_cv_file_magic_test_file=/lib/libc.so 5520 ;; 5521 siemens) 5522 lt_cv_deplibs_check_method=pass_all 5523 ;; 5524 pc) 5525 lt_cv_deplibs_check_method=pass_all 5526 ;; 5527 esac 5528 ;; 5529 5530tpf*) 5531 lt_cv_deplibs_check_method=pass_all 5532 ;; 5533esac 5534 5535fi 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5537$as_echo "$lt_cv_deplibs_check_method" >&6; } 5538 5539file_magic_glob= 5540want_nocaseglob=no 5541if test "$build" = "$host"; then 5542 case $host_os in 5543 mingw* | pw32*) 5544 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5545 want_nocaseglob=yes 5546 else 5547 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5548 fi 5549 ;; 5550 esac 5551fi 5552 5553file_magic_cmd=$lt_cv_file_magic_cmd 5554deplibs_check_method=$lt_cv_deplibs_check_method 5555test -z "$deplibs_check_method" && deplibs_check_method=unknown 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578if test -n "$ac_tool_prefix"; then 5579 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5580set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5582$as_echo_n "checking for $ac_word... " >&6; } 5583if ${ac_cv_prog_DLLTOOL+:} false; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 if test -n "$DLLTOOL"; then 5587 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5588else 5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5590for as_dir in $PATH 5591do 5592 IFS=$as_save_IFS 5593 test -z "$as_dir" && as_dir=. 5594 for ac_exec_ext in '' $ac_executable_extensions; do 5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5596 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5598 break 2 5599 fi 5600done 5601 done 5602IFS=$as_save_IFS 5603 5604fi 5605fi 5606DLLTOOL=$ac_cv_prog_DLLTOOL 5607if test -n "$DLLTOOL"; then 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5609$as_echo "$DLLTOOL" >&6; } 5610else 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5612$as_echo "no" >&6; } 5613fi 5614 5615 5616fi 5617if test -z "$ac_cv_prog_DLLTOOL"; then 5618 ac_ct_DLLTOOL=$DLLTOOL 5619 # Extract the first word of "dlltool", so it can be a program name with args. 5620set dummy dlltool; ac_word=$2 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5622$as_echo_n "checking for $ac_word... " >&6; } 5623if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 if test -n "$ac_ct_DLLTOOL"; then 5627 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5628else 5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5630for as_dir in $PATH 5631do 5632 IFS=$as_save_IFS 5633 test -z "$as_dir" && as_dir=. 5634 for ac_exec_ext in '' $ac_executable_extensions; do 5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5636 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5638 break 2 5639 fi 5640done 5641 done 5642IFS=$as_save_IFS 5643 5644fi 5645fi 5646ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5647if test -n "$ac_ct_DLLTOOL"; then 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5649$as_echo "$ac_ct_DLLTOOL" >&6; } 5650else 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5652$as_echo "no" >&6; } 5653fi 5654 5655 if test "x$ac_ct_DLLTOOL" = x; then 5656 DLLTOOL="false" 5657 else 5658 case $cross_compiling:$ac_tool_warned in 5659yes:) 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5662ac_tool_warned=yes ;; 5663esac 5664 DLLTOOL=$ac_ct_DLLTOOL 5665 fi 5666else 5667 DLLTOOL="$ac_cv_prog_DLLTOOL" 5668fi 5669 5670test -z "$DLLTOOL" && DLLTOOL=dlltool 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5682$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5683if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685else 5686 lt_cv_sharedlib_from_linklib_cmd='unknown' 5687 5688case $host_os in 5689cygwin* | mingw* | pw32* | cegcc*) 5690 # two different shell functions defined in ltmain.sh 5691 # decide which to use based on capabilities of $DLLTOOL 5692 case `$DLLTOOL --help 2>&1` in 5693 *--identify-strict*) 5694 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5695 ;; 5696 *) 5697 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5698 ;; 5699 esac 5700 ;; 5701*) 5702 # fallback: assume linklib IS sharedlib 5703 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5704 ;; 5705esac 5706 5707fi 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5709$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5710sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5711test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5712 5713 5714 5715 5716 5717 5718 5719 5720if test -n "$ac_tool_prefix"; then 5721 for ac_prog in ar 5722 do 5723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5724set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5726$as_echo_n "checking for $ac_word... " >&6; } 5727if ${ac_cv_prog_AR+:} false; then : 5728 $as_echo_n "(cached) " >&6 5729else 5730 if test -n "$AR"; then 5731 ac_cv_prog_AR="$AR" # Let the user override the test. 5732else 5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5734for as_dir in $PATH 5735do 5736 IFS=$as_save_IFS 5737 test -z "$as_dir" && as_dir=. 5738 for ac_exec_ext in '' $ac_executable_extensions; do 5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5740 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5742 break 2 5743 fi 5744done 5745 done 5746IFS=$as_save_IFS 5747 5748fi 5749fi 5750AR=$ac_cv_prog_AR 5751if test -n "$AR"; then 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5753$as_echo "$AR" >&6; } 5754else 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5756$as_echo "no" >&6; } 5757fi 5758 5759 5760 test -n "$AR" && break 5761 done 5762fi 5763if test -z "$AR"; then 5764 ac_ct_AR=$AR 5765 for ac_prog in ar 5766do 5767 # Extract the first word of "$ac_prog", so it can be a program name with args. 5768set dummy $ac_prog; ac_word=$2 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5770$as_echo_n "checking for $ac_word... " >&6; } 5771if ${ac_cv_prog_ac_ct_AR+:} false; then : 5772 $as_echo_n "(cached) " >&6 5773else 5774 if test -n "$ac_ct_AR"; then 5775 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5776else 5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5778for as_dir in $PATH 5779do 5780 IFS=$as_save_IFS 5781 test -z "$as_dir" && as_dir=. 5782 for ac_exec_ext in '' $ac_executable_extensions; do 5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5784 ac_cv_prog_ac_ct_AR="$ac_prog" 5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5786 break 2 5787 fi 5788done 5789 done 5790IFS=$as_save_IFS 5791 5792fi 5793fi 5794ac_ct_AR=$ac_cv_prog_ac_ct_AR 5795if test -n "$ac_ct_AR"; then 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5797$as_echo "$ac_ct_AR" >&6; } 5798else 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5800$as_echo "no" >&6; } 5801fi 5802 5803 5804 test -n "$ac_ct_AR" && break 5805done 5806 5807 if test "x$ac_ct_AR" = x; then 5808 AR="false" 5809 else 5810 case $cross_compiling:$ac_tool_warned in 5811yes:) 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5814ac_tool_warned=yes ;; 5815esac 5816 AR=$ac_ct_AR 5817 fi 5818fi 5819 5820: ${AR=ar} 5821: ${AR_FLAGS=cru} 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5834$as_echo_n "checking for archiver @FILE support... " >&6; } 5835if ${lt_cv_ar_at_file+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837else 5838 lt_cv_ar_at_file=no 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841 5842int 5843main () 5844{ 5845 5846 ; 5847 return 0; 5848} 5849_ACEOF 5850if ac_fn_cxx_try_compile "$LINENO"; then : 5851 echo conftest.$ac_objext > conftest.lst 5852 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5854 (eval $lt_ar_try) 2>&5 5855 ac_status=$? 5856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5857 test $ac_status = 0; } 5858 if test "$ac_status" -eq 0; then 5859 # Ensure the archiver fails upon bogus file names. 5860 rm -f conftest.$ac_objext libconftest.a 5861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5862 (eval $lt_ar_try) 2>&5 5863 ac_status=$? 5864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5865 test $ac_status = 0; } 5866 if test "$ac_status" -ne 0; then 5867 lt_cv_ar_at_file=@ 5868 fi 5869 fi 5870 rm -f conftest.* libconftest.a 5871 5872fi 5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5874 5875fi 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5877$as_echo "$lt_cv_ar_at_file" >&6; } 5878 5879if test "x$lt_cv_ar_at_file" = xno; then 5880 archiver_list_spec= 5881else 5882 archiver_list_spec=$lt_cv_ar_at_file 5883fi 5884 5885 5886 5887 5888 5889 5890 5891if test -n "$ac_tool_prefix"; then 5892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5893set dummy ${ac_tool_prefix}strip; ac_word=$2 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5895$as_echo_n "checking for $ac_word... " >&6; } 5896if ${ac_cv_prog_STRIP+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 if test -n "$STRIP"; then 5900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5901else 5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5903for as_dir in $PATH 5904do 5905 IFS=$as_save_IFS 5906 test -z "$as_dir" && as_dir=. 5907 for ac_exec_ext in '' $ac_executable_extensions; do 5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5909 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5911 break 2 5912 fi 5913done 5914 done 5915IFS=$as_save_IFS 5916 5917fi 5918fi 5919STRIP=$ac_cv_prog_STRIP 5920if test -n "$STRIP"; then 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5922$as_echo "$STRIP" >&6; } 5923else 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5925$as_echo "no" >&6; } 5926fi 5927 5928 5929fi 5930if test -z "$ac_cv_prog_STRIP"; then 5931 ac_ct_STRIP=$STRIP 5932 # Extract the first word of "strip", so it can be a program name with args. 5933set dummy strip; ac_word=$2 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5935$as_echo_n "checking for $ac_word... " >&6; } 5936if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5937 $as_echo_n "(cached) " >&6 5938else 5939 if test -n "$ac_ct_STRIP"; then 5940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5941else 5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5943for as_dir in $PATH 5944do 5945 IFS=$as_save_IFS 5946 test -z "$as_dir" && as_dir=. 5947 for ac_exec_ext in '' $ac_executable_extensions; do 5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5949 ac_cv_prog_ac_ct_STRIP="strip" 5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5951 break 2 5952 fi 5953done 5954 done 5955IFS=$as_save_IFS 5956 5957fi 5958fi 5959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5960if test -n "$ac_ct_STRIP"; then 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5962$as_echo "$ac_ct_STRIP" >&6; } 5963else 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5965$as_echo "no" >&6; } 5966fi 5967 5968 if test "x$ac_ct_STRIP" = x; then 5969 STRIP=":" 5970 else 5971 case $cross_compiling:$ac_tool_warned in 5972yes:) 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5975ac_tool_warned=yes ;; 5976esac 5977 STRIP=$ac_ct_STRIP 5978 fi 5979else 5980 STRIP="$ac_cv_prog_STRIP" 5981fi 5982 5983test -z "$STRIP" && STRIP=: 5984 5985 5986 5987 5988 5989 5990if test -n "$ac_tool_prefix"; then 5991 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5992set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5994$as_echo_n "checking for $ac_word... " >&6; } 5995if ${ac_cv_prog_RANLIB+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 if test -n "$RANLIB"; then 5999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6000else 6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002for as_dir in $PATH 6003do 6004 IFS=$as_save_IFS 6005 test -z "$as_dir" && as_dir=. 6006 for ac_exec_ext in '' $ac_executable_extensions; do 6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6008 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6010 break 2 6011 fi 6012done 6013 done 6014IFS=$as_save_IFS 6015 6016fi 6017fi 6018RANLIB=$ac_cv_prog_RANLIB 6019if test -n "$RANLIB"; then 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6021$as_echo "$RANLIB" >&6; } 6022else 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6024$as_echo "no" >&6; } 6025fi 6026 6027 6028fi 6029if test -z "$ac_cv_prog_RANLIB"; then 6030 ac_ct_RANLIB=$RANLIB 6031 # Extract the first word of "ranlib", so it can be a program name with args. 6032set dummy ranlib; ac_word=$2 6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6034$as_echo_n "checking for $ac_word... " >&6; } 6035if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6036 $as_echo_n "(cached) " >&6 6037else 6038 if test -n "$ac_ct_RANLIB"; then 6039 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6040else 6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6042for as_dir in $PATH 6043do 6044 IFS=$as_save_IFS 6045 test -z "$as_dir" && as_dir=. 6046 for ac_exec_ext in '' $ac_executable_extensions; do 6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6048 ac_cv_prog_ac_ct_RANLIB="ranlib" 6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6050 break 2 6051 fi 6052done 6053 done 6054IFS=$as_save_IFS 6055 6056fi 6057fi 6058ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6059if test -n "$ac_ct_RANLIB"; then 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6061$as_echo "$ac_ct_RANLIB" >&6; } 6062else 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6064$as_echo "no" >&6; } 6065fi 6066 6067 if test "x$ac_ct_RANLIB" = x; then 6068 RANLIB=":" 6069 else 6070 case $cross_compiling:$ac_tool_warned in 6071yes:) 6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6074ac_tool_warned=yes ;; 6075esac 6076 RANLIB=$ac_ct_RANLIB 6077 fi 6078else 6079 RANLIB="$ac_cv_prog_RANLIB" 6080fi 6081 6082test -z "$RANLIB" && RANLIB=: 6083 6084 6085 6086 6087 6088 6089# Determine commands to create old-style static archives. 6090old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6091old_postinstall_cmds='chmod 644 $oldlib' 6092old_postuninstall_cmds= 6093 6094if test -n "$RANLIB"; then 6095 case $host_os in 6096 openbsd*) 6097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6098 ;; 6099 *) 6100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6101 ;; 6102 esac 6103 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6104fi 6105 6106case $host_os in 6107 darwin*) 6108 lock_old_archive_extraction=yes ;; 6109 *) 6110 lock_old_archive_extraction=no ;; 6111esac 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151# If no C compiler was specified, use CC. 6152LTCC=${LTCC-"$CC"} 6153 6154# If no C compiler flags were specified, use CFLAGS. 6155LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6156 6157# Allow CC to be a program name with arguments. 6158compiler=$CC 6159 6160 6161# Check for command to grab the raw symbol name followed by C symbol from nm. 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6163$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6164if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6165 $as_echo_n "(cached) " >&6 6166else 6167 6168# These are sane defaults that work on at least a few old systems. 6169# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6170 6171# Character class describing NM global symbol codes. 6172symcode='[BCDEGRST]' 6173 6174# Regexp to match symbols that can be accessed directly from C. 6175sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6176 6177# Define system-specific variables. 6178case $host_os in 6179aix*) 6180 symcode='[BCDT]' 6181 ;; 6182cygwin* | mingw* | pw32* | cegcc*) 6183 symcode='[ABCDGISTW]' 6184 ;; 6185hpux*) 6186 if test "$host_cpu" = ia64; then 6187 symcode='[ABCDEGRST]' 6188 fi 6189 ;; 6190irix* | nonstopux*) 6191 symcode='[BCDEGRST]' 6192 ;; 6193osf*) 6194 symcode='[BCDEGQRST]' 6195 ;; 6196solaris*) 6197 symcode='[BDRT]' 6198 ;; 6199sco3.2v5*) 6200 symcode='[DT]' 6201 ;; 6202sysv4.2uw2*) 6203 symcode='[DT]' 6204 ;; 6205sysv5* | sco5v6* | unixware* | OpenUNIX*) 6206 symcode='[ABDT]' 6207 ;; 6208sysv4) 6209 symcode='[DFNSTU]' 6210 ;; 6211esac 6212 6213# If we're using GNU nm, then use its standard symbol codes. 6214case `$NM -V 2>&1` in 6215*GNU* | *'with BFD'*) 6216 symcode='[ABCDGIRSTW]' ;; 6217esac 6218 6219# Transform an extracted symbol line into a proper C declaration. 6220# Some systems (esp. on ia64) link data and code symbols differently, 6221# so use this general approach. 6222lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6223 6224# Transform an extracted symbol line into symbol name and symbol address 6225lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6226lt_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'" 6227 6228# Handle CRLF in mingw tool chain 6229opt_cr= 6230case $build_os in 6231mingw*) 6232 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6233 ;; 6234esac 6235 6236# Try without a prefix underscore, then with it. 6237for ac_symprfx in "" "_"; do 6238 6239 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6240 symxfrm="\\1 $ac_symprfx\\2 \\2" 6241 6242 # Write the raw and C identifiers. 6243 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6244 # Fake it for dumpbin and say T for any non-static function 6245 # and D for any global variable. 6246 # Also find C++ and __fastcall symbols from MSVC++, 6247 # which start with @ or ?. 6248 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6249" {last_section=section; section=\$ 3};"\ 6250" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6251" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6252" \$ 0!~/External *\|/{next};"\ 6253" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6254" {if(hide[section]) next};"\ 6255" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6256" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6257" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6258" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6259" ' prfx=^$ac_symprfx" 6260 else 6261 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6262 fi 6263 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6264 6265 # Check to see that the pipe works correctly. 6266 pipe_works=no 6267 6268 rm -f conftest* 6269 cat > conftest.$ac_ext <<_LT_EOF 6270#ifdef __cplusplus 6271extern "C" { 6272#endif 6273char nm_test_var; 6274void nm_test_func(void); 6275void nm_test_func(void){} 6276#ifdef __cplusplus 6277} 6278#endif 6279int main(){nm_test_var='a';nm_test_func();return(0);} 6280_LT_EOF 6281 6282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6283 (eval $ac_compile) 2>&5 6284 ac_status=$? 6285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6286 test $ac_status = 0; }; then 6287 # Now try to grab the symbols. 6288 nlist=conftest.nm 6289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6290 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6291 ac_status=$? 6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6293 test $ac_status = 0; } && test -s "$nlist"; then 6294 # Try sorting and uniquifying the output. 6295 if sort "$nlist" | uniq > "$nlist"T; then 6296 mv -f "$nlist"T "$nlist" 6297 else 6298 rm -f "$nlist"T 6299 fi 6300 6301 # Make sure that we snagged all the symbols we need. 6302 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6303 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6304 cat <<_LT_EOF > conftest.$ac_ext 6305/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6306#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6307/* DATA imports from DLLs on WIN32 con't be const, because runtime 6308 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6309# define LT_DLSYM_CONST 6310#elif defined(__osf__) 6311/* This system does not cope well with relocations in const data. */ 6312# define LT_DLSYM_CONST 6313#else 6314# define LT_DLSYM_CONST const 6315#endif 6316 6317#ifdef __cplusplus 6318extern "C" { 6319#endif 6320 6321_LT_EOF 6322 # Now generate the symbol file. 6323 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6324 6325 cat <<_LT_EOF >> conftest.$ac_ext 6326 6327/* The mapping between symbol names and symbols. */ 6328LT_DLSYM_CONST struct { 6329 const char *name; 6330 void *address; 6331} 6332lt__PROGRAM__LTX_preloaded_symbols[] = 6333{ 6334 { "@PROGRAM@", (void *) 0 }, 6335_LT_EOF 6336 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6337 cat <<\_LT_EOF >> conftest.$ac_ext 6338 {0, (void *) 0} 6339}; 6340 6341/* This works around a problem in FreeBSD linker */ 6342#ifdef FREEBSD_WORKAROUND 6343static const void *lt_preloaded_setup() { 6344 return lt__PROGRAM__LTX_preloaded_symbols; 6345} 6346#endif 6347 6348#ifdef __cplusplus 6349} 6350#endif 6351_LT_EOF 6352 # Now try linking the two files. 6353 mv conftest.$ac_objext conftstm.$ac_objext 6354 lt_globsym_save_LIBS=$LIBS 6355 lt_globsym_save_CFLAGS=$CFLAGS 6356 LIBS="conftstm.$ac_objext" 6357 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6359 (eval $ac_link) 2>&5 6360 ac_status=$? 6361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6362 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6363 pipe_works=yes 6364 fi 6365 LIBS=$lt_globsym_save_LIBS 6366 CFLAGS=$lt_globsym_save_CFLAGS 6367 else 6368 echo "cannot find nm_test_func in $nlist" >&5 6369 fi 6370 else 6371 echo "cannot find nm_test_var in $nlist" >&5 6372 fi 6373 else 6374 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6375 fi 6376 else 6377 echo "$progname: failed program was:" >&5 6378 cat conftest.$ac_ext >&5 6379 fi 6380 rm -rf conftest* conftst* 6381 6382 # Do not use the global_symbol_pipe unless it works. 6383 if test "$pipe_works" = yes; then 6384 break 6385 else 6386 lt_cv_sys_global_symbol_pipe= 6387 fi 6388done 6389 6390fi 6391 6392if test -z "$lt_cv_sys_global_symbol_pipe"; then 6393 lt_cv_sys_global_symbol_to_cdecl= 6394fi 6395if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6397$as_echo "failed" >&6; } 6398else 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6400$as_echo "ok" >&6; } 6401fi 6402 6403# Response file support. 6404if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6405 nm_file_list_spec='@' 6406elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6407 nm_file_list_spec='@' 6408fi 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6437$as_echo_n "checking for sysroot... " >&6; } 6438 6439# Check whether --with-sysroot was given. 6440if test "${with_sysroot+set}" = set; then : 6441 withval=$with_sysroot; 6442else 6443 with_sysroot=no 6444fi 6445 6446 6447lt_sysroot= 6448case ${with_sysroot} in #( 6449 yes) 6450 if test "$GCC" = yes; then 6451 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6452 fi 6453 ;; #( 6454 /*) 6455 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6456 ;; #( 6457 no|'') 6458 ;; #( 6459 *) 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6461$as_echo "${with_sysroot}" >&6; } 6462 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6463 ;; 6464esac 6465 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6467$as_echo "${lt_sysroot:-no}" >&6; } 6468 6469 6470 6471 6472 6473 6474# Check whether --enable-libtool-lock was given. 6475if test "${enable_libtool_lock+set}" = set; then : 6476 enableval=$enable_libtool_lock; 6477fi 6478 6479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6480 6481# Some flags need to be propagated to the compiler or linker for good 6482# libtool support. 6483case $host in 6484ia64-*-hpux*) 6485 # Find out which ABI we are using. 6486 echo 'int i;' > conftest.$ac_ext 6487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6488 (eval $ac_compile) 2>&5 6489 ac_status=$? 6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6491 test $ac_status = 0; }; then 6492 case `/usr/bin/file conftest.$ac_objext` in 6493 *ELF-32*) 6494 HPUX_IA64_MODE="32" 6495 ;; 6496 *ELF-64*) 6497 HPUX_IA64_MODE="64" 6498 ;; 6499 esac 6500 fi 6501 rm -rf conftest* 6502 ;; 6503*-*-irix6*) 6504 # Find out which ABI we are using. 6505 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6507 (eval $ac_compile) 2>&5 6508 ac_status=$? 6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6510 test $ac_status = 0; }; then 6511 if test "$lt_cv_prog_gnu_ld" = yes; then 6512 case `/usr/bin/file conftest.$ac_objext` in 6513 *32-bit*) 6514 LD="${LD-ld} -melf32bsmip" 6515 ;; 6516 *N32*) 6517 LD="${LD-ld} -melf32bmipn32" 6518 ;; 6519 *64-bit*) 6520 LD="${LD-ld} -melf64bmip" 6521 ;; 6522 esac 6523 else 6524 case `/usr/bin/file conftest.$ac_objext` in 6525 *32-bit*) 6526 LD="${LD-ld} -32" 6527 ;; 6528 *N32*) 6529 LD="${LD-ld} -n32" 6530 ;; 6531 *64-bit*) 6532 LD="${LD-ld} -64" 6533 ;; 6534 esac 6535 fi 6536 fi 6537 rm -rf conftest* 6538 ;; 6539 6540x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6541s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6542 # Find out which ABI we are using. 6543 echo 'int i;' > conftest.$ac_ext 6544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6545 (eval $ac_compile) 2>&5 6546 ac_status=$? 6547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6548 test $ac_status = 0; }; then 6549 case `/usr/bin/file conftest.o` in 6550 *32-bit*) 6551 case $host in 6552 x86_64-*kfreebsd*-gnu) 6553 LD="${LD-ld} -m elf_i386_fbsd" 6554 ;; 6555 x86_64-*linux*) 6556 LD="${LD-ld} -m elf_i386" 6557 ;; 6558 ppc64-*linux*|powerpc64-*linux*) 6559 LD="${LD-ld} -m elf32ppclinux" 6560 ;; 6561 s390x-*linux*) 6562 LD="${LD-ld} -m elf_s390" 6563 ;; 6564 sparc64-*linux*) 6565 LD="${LD-ld} -m elf32_sparc" 6566 ;; 6567 esac 6568 ;; 6569 *64-bit*) 6570 case $host in 6571 x86_64-*kfreebsd*-gnu) 6572 LD="${LD-ld} -m elf_x86_64_fbsd" 6573 ;; 6574 x86_64-*linux*) 6575 LD="${LD-ld} -m elf_x86_64" 6576 ;; 6577 ppc*-*linux*|powerpc*-*linux*) 6578 LD="${LD-ld} -m elf64ppc" 6579 ;; 6580 s390*-*linux*|s390*-*tpf*) 6581 LD="${LD-ld} -m elf64_s390" 6582 ;; 6583 sparc*-*linux*) 6584 LD="${LD-ld} -m elf64_sparc" 6585 ;; 6586 esac 6587 ;; 6588 esac 6589 fi 6590 rm -rf conftest* 6591 ;; 6592 6593*-*-sco3.2v5*) 6594 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6595 SAVE_CFLAGS="$CFLAGS" 6596 CFLAGS="$CFLAGS -belf" 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6598$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6599if ${lt_cv_cc_needs_belf+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 ac_ext=c 6603ac_cpp='$CPP $CPPFLAGS' 6604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6606ac_compiler_gnu=$ac_cv_c_compiler_gnu 6607 6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6609/* end confdefs.h. */ 6610 6611int 6612main () 6613{ 6614 6615 ; 6616 return 0; 6617} 6618_ACEOF 6619if ac_fn_c_try_link "$LINENO"; then : 6620 lt_cv_cc_needs_belf=yes 6621else 6622 lt_cv_cc_needs_belf=no 6623fi 6624rm -f core conftest.err conftest.$ac_objext \ 6625 conftest$ac_exeext conftest.$ac_ext 6626 ac_ext=c 6627ac_cpp='$CPP $CPPFLAGS' 6628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6630ac_compiler_gnu=$ac_cv_c_compiler_gnu 6631 6632fi 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6634$as_echo "$lt_cv_cc_needs_belf" >&6; } 6635 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6636 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6637 CFLAGS="$SAVE_CFLAGS" 6638 fi 6639 ;; 6640*-*solaris*) 6641 # Find out which ABI we are using. 6642 echo 'int i;' > conftest.$ac_ext 6643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6644 (eval $ac_compile) 2>&5 6645 ac_status=$? 6646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6647 test $ac_status = 0; }; then 6648 case `/usr/bin/file conftest.o` in 6649 *64-bit*) 6650 case $lt_cv_prog_gnu_ld in 6651 yes*) 6652 case $host in 6653 i?86-*-solaris*) 6654 LD="${LD-ld} -m elf_x86_64" 6655 ;; 6656 sparc*-*-solaris*) 6657 LD="${LD-ld} -m elf64_sparc" 6658 ;; 6659 esac 6660 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6661 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6662 LD="${LD-ld}_sol2" 6663 fi 6664 ;; 6665 *) 6666 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6667 LD="${LD-ld} -64" 6668 fi 6669 ;; 6670 esac 6671 ;; 6672 esac 6673 fi 6674 rm -rf conftest* 6675 ;; 6676esac 6677 6678need_locks="$enable_libtool_lock" 6679 6680if test -n "$ac_tool_prefix"; then 6681 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6682set dummy ${ac_tool_prefix}mt; ac_word=$2 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6684$as_echo_n "checking for $ac_word... " >&6; } 6685if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 if test -n "$MANIFEST_TOOL"; then 6689 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6690else 6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 test -z "$as_dir" && as_dir=. 6696 for ac_exec_ext in '' $ac_executable_extensions; do 6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6698 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6700 break 2 6701 fi 6702done 6703 done 6704IFS=$as_save_IFS 6705 6706fi 6707fi 6708MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6709if test -n "$MANIFEST_TOOL"; then 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6711$as_echo "$MANIFEST_TOOL" >&6; } 6712else 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6714$as_echo "no" >&6; } 6715fi 6716 6717 6718fi 6719if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6720 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6721 # Extract the first word of "mt", so it can be a program name with args. 6722set dummy mt; ac_word=$2 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6724$as_echo_n "checking for $ac_word... " >&6; } 6725if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6726 $as_echo_n "(cached) " >&6 6727else 6728 if test -n "$ac_ct_MANIFEST_TOOL"; then 6729 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6730else 6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6732for as_dir in $PATH 6733do 6734 IFS=$as_save_IFS 6735 test -z "$as_dir" && as_dir=. 6736 for ac_exec_ext in '' $ac_executable_extensions; do 6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6738 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6740 break 2 6741 fi 6742done 6743 done 6744IFS=$as_save_IFS 6745 6746fi 6747fi 6748ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6749if test -n "$ac_ct_MANIFEST_TOOL"; then 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6751$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6752else 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6754$as_echo "no" >&6; } 6755fi 6756 6757 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6758 MANIFEST_TOOL=":" 6759 else 6760 case $cross_compiling:$ac_tool_warned in 6761yes:) 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6764ac_tool_warned=yes ;; 6765esac 6766 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6767 fi 6768else 6769 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6770fi 6771 6772test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6774$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6775if ${lt_cv_path_mainfest_tool+:} false; then : 6776 $as_echo_n "(cached) " >&6 6777else 6778 lt_cv_path_mainfest_tool=no 6779 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6780 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6781 cat conftest.err >&5 6782 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6783 lt_cv_path_mainfest_tool=yes 6784 fi 6785 rm -f conftest* 6786fi 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6788$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6789if test "x$lt_cv_path_mainfest_tool" != xyes; then 6790 MANIFEST_TOOL=: 6791fi 6792 6793 6794 6795 6796 6797 6798 case $host_os in 6799 rhapsody* | darwin*) 6800 if test -n "$ac_tool_prefix"; then 6801 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6802set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6804$as_echo_n "checking for $ac_word... " >&6; } 6805if ${ac_cv_prog_DSYMUTIL+:} false; then : 6806 $as_echo_n "(cached) " >&6 6807else 6808 if test -n "$DSYMUTIL"; then 6809 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6810else 6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6812for as_dir in $PATH 6813do 6814 IFS=$as_save_IFS 6815 test -z "$as_dir" && as_dir=. 6816 for ac_exec_ext in '' $ac_executable_extensions; do 6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6818 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6820 break 2 6821 fi 6822done 6823 done 6824IFS=$as_save_IFS 6825 6826fi 6827fi 6828DSYMUTIL=$ac_cv_prog_DSYMUTIL 6829if test -n "$DSYMUTIL"; then 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6831$as_echo "$DSYMUTIL" >&6; } 6832else 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6834$as_echo "no" >&6; } 6835fi 6836 6837 6838fi 6839if test -z "$ac_cv_prog_DSYMUTIL"; then 6840 ac_ct_DSYMUTIL=$DSYMUTIL 6841 # Extract the first word of "dsymutil", so it can be a program name with args. 6842set dummy dsymutil; ac_word=$2 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6844$as_echo_n "checking for $ac_word... " >&6; } 6845if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6846 $as_echo_n "(cached) " >&6 6847else 6848 if test -n "$ac_ct_DSYMUTIL"; then 6849 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6850else 6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6852for as_dir in $PATH 6853do 6854 IFS=$as_save_IFS 6855 test -z "$as_dir" && as_dir=. 6856 for ac_exec_ext in '' $ac_executable_extensions; do 6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6858 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6860 break 2 6861 fi 6862done 6863 done 6864IFS=$as_save_IFS 6865 6866fi 6867fi 6868ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6869if test -n "$ac_ct_DSYMUTIL"; then 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6871$as_echo "$ac_ct_DSYMUTIL" >&6; } 6872else 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6874$as_echo "no" >&6; } 6875fi 6876 6877 if test "x$ac_ct_DSYMUTIL" = x; then 6878 DSYMUTIL=":" 6879 else 6880 case $cross_compiling:$ac_tool_warned in 6881yes:) 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6884ac_tool_warned=yes ;; 6885esac 6886 DSYMUTIL=$ac_ct_DSYMUTIL 6887 fi 6888else 6889 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6890fi 6891 6892 if test -n "$ac_tool_prefix"; then 6893 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6894set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6896$as_echo_n "checking for $ac_word... " >&6; } 6897if ${ac_cv_prog_NMEDIT+:} false; then : 6898 $as_echo_n "(cached) " >&6 6899else 6900 if test -n "$NMEDIT"; then 6901 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6902else 6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6904for as_dir in $PATH 6905do 6906 IFS=$as_save_IFS 6907 test -z "$as_dir" && as_dir=. 6908 for ac_exec_ext in '' $ac_executable_extensions; do 6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6910 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6912 break 2 6913 fi 6914done 6915 done 6916IFS=$as_save_IFS 6917 6918fi 6919fi 6920NMEDIT=$ac_cv_prog_NMEDIT 6921if test -n "$NMEDIT"; then 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6923$as_echo "$NMEDIT" >&6; } 6924else 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6926$as_echo "no" >&6; } 6927fi 6928 6929 6930fi 6931if test -z "$ac_cv_prog_NMEDIT"; then 6932 ac_ct_NMEDIT=$NMEDIT 6933 # Extract the first word of "nmedit", so it can be a program name with args. 6934set dummy nmedit; ac_word=$2 6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6936$as_echo_n "checking for $ac_word... " >&6; } 6937if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939else 6940 if test -n "$ac_ct_NMEDIT"; then 6941 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6942else 6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6944for as_dir in $PATH 6945do 6946 IFS=$as_save_IFS 6947 test -z "$as_dir" && as_dir=. 6948 for ac_exec_ext in '' $ac_executable_extensions; do 6949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6950 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6952 break 2 6953 fi 6954done 6955 done 6956IFS=$as_save_IFS 6957 6958fi 6959fi 6960ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6961if test -n "$ac_ct_NMEDIT"; then 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6963$as_echo "$ac_ct_NMEDIT" >&6; } 6964else 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6966$as_echo "no" >&6; } 6967fi 6968 6969 if test "x$ac_ct_NMEDIT" = x; then 6970 NMEDIT=":" 6971 else 6972 case $cross_compiling:$ac_tool_warned in 6973yes:) 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6976ac_tool_warned=yes ;; 6977esac 6978 NMEDIT=$ac_ct_NMEDIT 6979 fi 6980else 6981 NMEDIT="$ac_cv_prog_NMEDIT" 6982fi 6983 6984 if test -n "$ac_tool_prefix"; then 6985 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6986set dummy ${ac_tool_prefix}lipo; ac_word=$2 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6988$as_echo_n "checking for $ac_word... " >&6; } 6989if ${ac_cv_prog_LIPO+:} false; then : 6990 $as_echo_n "(cached) " >&6 6991else 6992 if test -n "$LIPO"; then 6993 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6994else 6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6996for as_dir in $PATH 6997do 6998 IFS=$as_save_IFS 6999 test -z "$as_dir" && as_dir=. 7000 for ac_exec_ext in '' $ac_executable_extensions; do 7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7002 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7004 break 2 7005 fi 7006done 7007 done 7008IFS=$as_save_IFS 7009 7010fi 7011fi 7012LIPO=$ac_cv_prog_LIPO 7013if test -n "$LIPO"; then 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7015$as_echo "$LIPO" >&6; } 7016else 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7018$as_echo "no" >&6; } 7019fi 7020 7021 7022fi 7023if test -z "$ac_cv_prog_LIPO"; then 7024 ac_ct_LIPO=$LIPO 7025 # Extract the first word of "lipo", so it can be a program name with args. 7026set dummy lipo; ac_word=$2 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7028$as_echo_n "checking for $ac_word... " >&6; } 7029if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031else 7032 if test -n "$ac_ct_LIPO"; then 7033 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7034else 7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7036for as_dir in $PATH 7037do 7038 IFS=$as_save_IFS 7039 test -z "$as_dir" && as_dir=. 7040 for ac_exec_ext in '' $ac_executable_extensions; do 7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7042 ac_cv_prog_ac_ct_LIPO="lipo" 7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7044 break 2 7045 fi 7046done 7047 done 7048IFS=$as_save_IFS 7049 7050fi 7051fi 7052ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7053if test -n "$ac_ct_LIPO"; then 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7055$as_echo "$ac_ct_LIPO" >&6; } 7056else 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7058$as_echo "no" >&6; } 7059fi 7060 7061 if test "x$ac_ct_LIPO" = x; then 7062 LIPO=":" 7063 else 7064 case $cross_compiling:$ac_tool_warned in 7065yes:) 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7068ac_tool_warned=yes ;; 7069esac 7070 LIPO=$ac_ct_LIPO 7071 fi 7072else 7073 LIPO="$ac_cv_prog_LIPO" 7074fi 7075 7076 if test -n "$ac_tool_prefix"; then 7077 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7078set dummy ${ac_tool_prefix}otool; ac_word=$2 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7080$as_echo_n "checking for $ac_word... " >&6; } 7081if ${ac_cv_prog_OTOOL+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 if test -n "$OTOOL"; then 7085 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7086else 7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7088for as_dir in $PATH 7089do 7090 IFS=$as_save_IFS 7091 test -z "$as_dir" && as_dir=. 7092 for ac_exec_ext in '' $ac_executable_extensions; do 7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7094 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7096 break 2 7097 fi 7098done 7099 done 7100IFS=$as_save_IFS 7101 7102fi 7103fi 7104OTOOL=$ac_cv_prog_OTOOL 7105if test -n "$OTOOL"; then 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7107$as_echo "$OTOOL" >&6; } 7108else 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7110$as_echo "no" >&6; } 7111fi 7112 7113 7114fi 7115if test -z "$ac_cv_prog_OTOOL"; then 7116 ac_ct_OTOOL=$OTOOL 7117 # Extract the first word of "otool", so it can be a program name with args. 7118set dummy otool; ac_word=$2 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7120$as_echo_n "checking for $ac_word... " >&6; } 7121if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7122 $as_echo_n "(cached) " >&6 7123else 7124 if test -n "$ac_ct_OTOOL"; then 7125 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7126else 7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7128for as_dir in $PATH 7129do 7130 IFS=$as_save_IFS 7131 test -z "$as_dir" && as_dir=. 7132 for ac_exec_ext in '' $ac_executable_extensions; do 7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7134 ac_cv_prog_ac_ct_OTOOL="otool" 7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7136 break 2 7137 fi 7138done 7139 done 7140IFS=$as_save_IFS 7141 7142fi 7143fi 7144ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7145if test -n "$ac_ct_OTOOL"; then 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7147$as_echo "$ac_ct_OTOOL" >&6; } 7148else 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7150$as_echo "no" >&6; } 7151fi 7152 7153 if test "x$ac_ct_OTOOL" = x; then 7154 OTOOL=":" 7155 else 7156 case $cross_compiling:$ac_tool_warned in 7157yes:) 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7160ac_tool_warned=yes ;; 7161esac 7162 OTOOL=$ac_ct_OTOOL 7163 fi 7164else 7165 OTOOL="$ac_cv_prog_OTOOL" 7166fi 7167 7168 if test -n "$ac_tool_prefix"; then 7169 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7170set dummy ${ac_tool_prefix}otool64; ac_word=$2 7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7172$as_echo_n "checking for $ac_word... " >&6; } 7173if ${ac_cv_prog_OTOOL64+:} false; then : 7174 $as_echo_n "(cached) " >&6 7175else 7176 if test -n "$OTOOL64"; then 7177 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7178else 7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7180for as_dir in $PATH 7181do 7182 IFS=$as_save_IFS 7183 test -z "$as_dir" && as_dir=. 7184 for ac_exec_ext in '' $ac_executable_extensions; do 7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7186 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7188 break 2 7189 fi 7190done 7191 done 7192IFS=$as_save_IFS 7193 7194fi 7195fi 7196OTOOL64=$ac_cv_prog_OTOOL64 7197if test -n "$OTOOL64"; then 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7199$as_echo "$OTOOL64" >&6; } 7200else 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7202$as_echo "no" >&6; } 7203fi 7204 7205 7206fi 7207if test -z "$ac_cv_prog_OTOOL64"; then 7208 ac_ct_OTOOL64=$OTOOL64 7209 # Extract the first word of "otool64", so it can be a program name with args. 7210set dummy otool64; ac_word=$2 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7212$as_echo_n "checking for $ac_word... " >&6; } 7213if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7214 $as_echo_n "(cached) " >&6 7215else 7216 if test -n "$ac_ct_OTOOL64"; then 7217 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7218else 7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7220for as_dir in $PATH 7221do 7222 IFS=$as_save_IFS 7223 test -z "$as_dir" && as_dir=. 7224 for ac_exec_ext in '' $ac_executable_extensions; do 7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7226 ac_cv_prog_ac_ct_OTOOL64="otool64" 7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7228 break 2 7229 fi 7230done 7231 done 7232IFS=$as_save_IFS 7233 7234fi 7235fi 7236ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7237if test -n "$ac_ct_OTOOL64"; then 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7239$as_echo "$ac_ct_OTOOL64" >&6; } 7240else 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7242$as_echo "no" >&6; } 7243fi 7244 7245 if test "x$ac_ct_OTOOL64" = x; then 7246 OTOOL64=":" 7247 else 7248 case $cross_compiling:$ac_tool_warned in 7249yes:) 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7252ac_tool_warned=yes ;; 7253esac 7254 OTOOL64=$ac_ct_OTOOL64 7255 fi 7256else 7257 OTOOL64="$ac_cv_prog_OTOOL64" 7258fi 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7287$as_echo_n "checking for -single_module linker flag... " >&6; } 7288if ${lt_cv_apple_cc_single_mod+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290else 7291 lt_cv_apple_cc_single_mod=no 7292 if test -z "${LT_MULTI_MODULE}"; then 7293 # By default we will add the -single_module flag. You can override 7294 # by either setting the environment variable LT_MULTI_MODULE 7295 # non-empty at configure time, or by adding -multi_module to the 7296 # link flags. 7297 rm -rf libconftest.dylib* 7298 echo "int foo(void){return 1;}" > conftest.c 7299 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7300-dynamiclib -Wl,-single_module conftest.c" >&5 7301 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7302 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7303 _lt_result=$? 7304 # If there is a non-empty error log, and "single_module" 7305 # appears in it, assume the flag caused a linker warning 7306 if test -s conftest.err && $GREP single_module conftest.err; then 7307 cat conftest.err >&5 7308 # Otherwise, if the output was created with a 0 exit code from 7309 # the compiler, it worked. 7310 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7311 lt_cv_apple_cc_single_mod=yes 7312 else 7313 cat conftest.err >&5 7314 fi 7315 rm -rf libconftest.dylib* 7316 rm -f conftest.* 7317 fi 7318fi 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7320$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7321 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7323$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7324if ${lt_cv_ld_exported_symbols_list+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 lt_cv_ld_exported_symbols_list=no 7328 save_LDFLAGS=$LDFLAGS 7329 echo "_main" > conftest.sym 7330 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332/* end confdefs.h. */ 7333 7334int 7335main () 7336{ 7337 7338 ; 7339 return 0; 7340} 7341_ACEOF 7342if ac_fn_c_try_link "$LINENO"; then : 7343 lt_cv_ld_exported_symbols_list=yes 7344else 7345 lt_cv_ld_exported_symbols_list=no 7346fi 7347rm -f core conftest.err conftest.$ac_objext \ 7348 conftest$ac_exeext conftest.$ac_ext 7349 LDFLAGS="$save_LDFLAGS" 7350 7351fi 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7353$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7354 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7356$as_echo_n "checking for -force_load linker flag... " >&6; } 7357if ${lt_cv_ld_force_load+:} false; then : 7358 $as_echo_n "(cached) " >&6 7359else 7360 lt_cv_ld_force_load=no 7361 cat > conftest.c << _LT_EOF 7362int forced_loaded() { return 2;} 7363_LT_EOF 7364 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7365 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7366 echo "$AR cru libconftest.a conftest.o" >&5 7367 $AR cru libconftest.a conftest.o 2>&5 7368 echo "$RANLIB libconftest.a" >&5 7369 $RANLIB libconftest.a 2>&5 7370 cat > conftest.c << _LT_EOF 7371int main() { return 0;} 7372_LT_EOF 7373 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7374 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7375 _lt_result=$? 7376 if test -s conftest.err && $GREP force_load conftest.err; then 7377 cat conftest.err >&5 7378 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7379 lt_cv_ld_force_load=yes 7380 else 7381 cat conftest.err >&5 7382 fi 7383 rm -f conftest.err libconftest.a conftest conftest.c 7384 rm -rf conftest.dSYM 7385 7386fi 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7388$as_echo "$lt_cv_ld_force_load" >&6; } 7389 case $host_os in 7390 rhapsody* | darwin1.[012]) 7391 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7392 darwin1.*) 7393 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7394 darwin*) # darwin 5.x on 7395 # if running on 10.5 or later, the deployment target defaults 7396 # to the OS version, if on x86, and 10.4, the deployment 7397 # target defaults to 10.4. Don't you love it? 7398 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7399 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7400 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7401 10.[012]*) 7402 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7403 10.*) 7404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7405 esac 7406 ;; 7407 esac 7408 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7409 _lt_dar_single_mod='$single_module' 7410 fi 7411 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7412 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7413 else 7414 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7415 fi 7416 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7417 _lt_dsymutil='~$DSYMUTIL $lib || :' 7418 else 7419 _lt_dsymutil= 7420 fi 7421 ;; 7422 esac 7423 7424ac_ext=c 7425ac_cpp='$CPP $CPPFLAGS' 7426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7428ac_compiler_gnu=$ac_cv_c_compiler_gnu 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7430$as_echo_n "checking how to run the C preprocessor... " >&6; } 7431# On Suns, sometimes $CPP names a directory. 7432if test -n "$CPP" && test -d "$CPP"; then 7433 CPP= 7434fi 7435if test -z "$CPP"; then 7436 if ${ac_cv_prog_CPP+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438else 7439 # Double quotes because CPP needs to be expanded 7440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7441 do 7442 ac_preproc_ok=false 7443for ac_c_preproc_warn_flag in '' yes 7444do 7445 # Use a header file that comes with gcc, so configuring glibc 7446 # with a fresh cross-compiler works. 7447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7448 # <limits.h> exists even on freestanding compilers. 7449 # On the NeXT, cc -E runs the code through the compiler's parser, 7450 # not just through cpp. "Syntax error" is here to catch this case. 7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452/* end confdefs.h. */ 7453#ifdef __STDC__ 7454# include <limits.h> 7455#else 7456# include <assert.h> 7457#endif 7458 Syntax error 7459_ACEOF 7460if ac_fn_c_try_cpp "$LINENO"; then : 7461 7462else 7463 # Broken: fails on valid input. 7464continue 7465fi 7466rm -f conftest.err conftest.i conftest.$ac_ext 7467 7468 # OK, works on sane cases. Now check whether nonexistent headers 7469 # can be detected and how. 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471/* end confdefs.h. */ 7472#include <ac_nonexistent.h> 7473_ACEOF 7474if ac_fn_c_try_cpp "$LINENO"; then : 7475 # Broken: success on invalid input. 7476continue 7477else 7478 # Passes both tests. 7479ac_preproc_ok=: 7480break 7481fi 7482rm -f conftest.err conftest.i conftest.$ac_ext 7483 7484done 7485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7486rm -f conftest.i conftest.err conftest.$ac_ext 7487if $ac_preproc_ok; then : 7488 break 7489fi 7490 7491 done 7492 ac_cv_prog_CPP=$CPP 7493 7494fi 7495 CPP=$ac_cv_prog_CPP 7496else 7497 ac_cv_prog_CPP=$CPP 7498fi 7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7500$as_echo "$CPP" >&6; } 7501ac_preproc_ok=false 7502for ac_c_preproc_warn_flag in '' yes 7503do 7504 # Use a header file that comes with gcc, so configuring glibc 7505 # with a fresh cross-compiler works. 7506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7507 # <limits.h> exists even on freestanding compilers. 7508 # On the NeXT, cc -E runs the code through the compiler's parser, 7509 # not just through cpp. "Syntax error" is here to catch this case. 7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7511/* end confdefs.h. */ 7512#ifdef __STDC__ 7513# include <limits.h> 7514#else 7515# include <assert.h> 7516#endif 7517 Syntax error 7518_ACEOF 7519if ac_fn_c_try_cpp "$LINENO"; then : 7520 7521else 7522 # Broken: fails on valid input. 7523continue 7524fi 7525rm -f conftest.err conftest.i conftest.$ac_ext 7526 7527 # OK, works on sane cases. Now check whether nonexistent headers 7528 # can be detected and how. 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530/* end confdefs.h. */ 7531#include <ac_nonexistent.h> 7532_ACEOF 7533if ac_fn_c_try_cpp "$LINENO"; then : 7534 # Broken: success on invalid input. 7535continue 7536else 7537 # Passes both tests. 7538ac_preproc_ok=: 7539break 7540fi 7541rm -f conftest.err conftest.i conftest.$ac_ext 7542 7543done 7544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7545rm -f conftest.i conftest.err conftest.$ac_ext 7546if $ac_preproc_ok; then : 7547 7548else 7549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7551as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7552See \`config.log' for more details" "$LINENO" 5; } 7553fi 7554 7555ac_ext=c 7556ac_cpp='$CPP $CPPFLAGS' 7557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7559ac_compiler_gnu=$ac_cv_c_compiler_gnu 7560 7561 7562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7563$as_echo_n "checking for ANSI C header files... " >&6; } 7564if ${ac_cv_header_stdc+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566else 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569#include <stdlib.h> 7570#include <stdarg.h> 7571#include <string.h> 7572#include <float.h> 7573 7574int 7575main () 7576{ 7577 7578 ; 7579 return 0; 7580} 7581_ACEOF 7582if ac_fn_c_try_compile "$LINENO"; then : 7583 ac_cv_header_stdc=yes 7584else 7585 ac_cv_header_stdc=no 7586fi 7587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7588 7589if test $ac_cv_header_stdc = yes; then 7590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7592/* end confdefs.h. */ 7593#include <string.h> 7594 7595_ACEOF 7596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7597 $EGREP "memchr" >/dev/null 2>&1; then : 7598 7599else 7600 ac_cv_header_stdc=no 7601fi 7602rm -f conftest* 7603 7604fi 7605 7606if test $ac_cv_header_stdc = yes; then 7607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610#include <stdlib.h> 7611 7612_ACEOF 7613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7614 $EGREP "free" >/dev/null 2>&1; then : 7615 7616else 7617 ac_cv_header_stdc=no 7618fi 7619rm -f conftest* 7620 7621fi 7622 7623if test $ac_cv_header_stdc = yes; then 7624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7625 if test "$cross_compiling" = yes; then : 7626 : 7627else 7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7629/* end confdefs.h. */ 7630#include <ctype.h> 7631#include <stdlib.h> 7632#if ((' ' & 0x0FF) == 0x020) 7633# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7634# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7635#else 7636# define ISLOWER(c) \ 7637 (('a' <= (c) && (c) <= 'i') \ 7638 || ('j' <= (c) && (c) <= 'r') \ 7639 || ('s' <= (c) && (c) <= 'z')) 7640# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7641#endif 7642 7643#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7644int 7645main () 7646{ 7647 int i; 7648 for (i = 0; i < 256; i++) 7649 if (XOR (islower (i), ISLOWER (i)) 7650 || toupper (i) != TOUPPER (i)) 7651 return 2; 7652 return 0; 7653} 7654_ACEOF 7655if ac_fn_c_try_run "$LINENO"; then : 7656 7657else 7658 ac_cv_header_stdc=no 7659fi 7660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7661 conftest.$ac_objext conftest.beam conftest.$ac_ext 7662fi 7663 7664fi 7665fi 7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7667$as_echo "$ac_cv_header_stdc" >&6; } 7668if test $ac_cv_header_stdc = yes; then 7669 7670$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7671 7672fi 7673 7674# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7675for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7676 inttypes.h stdint.h unistd.h 7677do : 7678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7679ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7680" 7681if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7682 cat >>confdefs.h <<_ACEOF 7683#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7684_ACEOF 7685 7686fi 7687 7688done 7689 7690 7691for ac_header in dlfcn.h 7692do : 7693 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7694" 7695if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7696 cat >>confdefs.h <<_ACEOF 7697#define HAVE_DLFCN_H 1 7698_ACEOF 7699 7700fi 7701 7702done 7703 7704 7705 7706func_stripname_cnf () 7707{ 7708 case ${2} in 7709 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 7710 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 7711 esac 7712} # func_stripname_cnf 7713 7714 7715 7716 7717 7718# Set options 7719 7720 7721 7722 enable_dlopen=no 7723 7724 7725 enable_win32_dll=no 7726 7727 7728 # Check whether --enable-shared was given. 7729if test "${enable_shared+set}" = set; then : 7730 enableval=$enable_shared; p=${PACKAGE-default} 7731 case $enableval in 7732 yes) enable_shared=yes ;; 7733 no) enable_shared=no ;; 7734 *) 7735 enable_shared=no 7736 # Look at the argument we got. We use all the common list separators. 7737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7738 for pkg in $enableval; do 7739 IFS="$lt_save_ifs" 7740 if test "X$pkg" = "X$p"; then 7741 enable_shared=yes 7742 fi 7743 done 7744 IFS="$lt_save_ifs" 7745 ;; 7746 esac 7747else 7748 enable_shared=yes 7749fi 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 # Check whether --enable-static was given. 7760if test "${enable_static+set}" = set; then : 7761 enableval=$enable_static; p=${PACKAGE-default} 7762 case $enableval in 7763 yes) enable_static=yes ;; 7764 no) enable_static=no ;; 7765 *) 7766 enable_static=no 7767 # Look at the argument we got. We use all the common list separators. 7768 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7769 for pkg in $enableval; do 7770 IFS="$lt_save_ifs" 7771 if test "X$pkg" = "X$p"; then 7772 enable_static=yes 7773 fi 7774 done 7775 IFS="$lt_save_ifs" 7776 ;; 7777 esac 7778else 7779 enable_static=yes 7780fi 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791# Check whether --with-pic was given. 7792if test "${with_pic+set}" = set; then : 7793 withval=$with_pic; lt_p=${PACKAGE-default} 7794 case $withval in 7795 yes|no) pic_mode=$withval ;; 7796 *) 7797 pic_mode=default 7798 # Look at the argument we got. We use all the common list separators. 7799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7800 for lt_pkg in $withval; do 7801 IFS="$lt_save_ifs" 7802 if test "X$lt_pkg" = "X$lt_p"; then 7803 pic_mode=yes 7804 fi 7805 done 7806 IFS="$lt_save_ifs" 7807 ;; 7808 esac 7809else 7810 pic_mode=default 7811fi 7812 7813 7814test -z "$pic_mode" && pic_mode=default 7815 7816 7817 7818 7819 7820 7821 7822 # Check whether --enable-fast-install was given. 7823if test "${enable_fast_install+set}" = set; then : 7824 enableval=$enable_fast_install; p=${PACKAGE-default} 7825 case $enableval in 7826 yes) enable_fast_install=yes ;; 7827 no) enable_fast_install=no ;; 7828 *) 7829 enable_fast_install=no 7830 # Look at the argument we got. We use all the common list separators. 7831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7832 for pkg in $enableval; do 7833 IFS="$lt_save_ifs" 7834 if test "X$pkg" = "X$p"; then 7835 enable_fast_install=yes 7836 fi 7837 done 7838 IFS="$lt_save_ifs" 7839 ;; 7840 esac 7841else 7842 enable_fast_install=yes 7843fi 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855# This can be used to rebuild libtool when needed 7856LIBTOOL_DEPS="$ltmain" 7857 7858# Always use our own libtool. 7859LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890test -z "$LN_S" && LN_S="ln -s" 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905if test -n "${ZSH_VERSION+set}" ; then 7906 setopt NO_GLOB_SUBST 7907fi 7908 7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7910$as_echo_n "checking for objdir... " >&6; } 7911if ${lt_cv_objdir+:} false; then : 7912 $as_echo_n "(cached) " >&6 7913else 7914 rm -f .libs 2>/dev/null 7915mkdir .libs 2>/dev/null 7916if test -d .libs; then 7917 lt_cv_objdir=.libs 7918else 7919 # MS-DOS does not allow filenames that begin with a dot. 7920 lt_cv_objdir=_libs 7921fi 7922rmdir .libs 2>/dev/null 7923fi 7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7925$as_echo "$lt_cv_objdir" >&6; } 7926objdir=$lt_cv_objdir 7927 7928 7929 7930 7931 7932cat >>confdefs.h <<_ACEOF 7933#define LT_OBJDIR "$lt_cv_objdir/" 7934_ACEOF 7935 7936 7937 7938 7939case $host_os in 7940aix3*) 7941 # AIX sometimes has problems with the GCC collect2 program. For some 7942 # reason, if we set the COLLECT_NAMES environment variable, the problems 7943 # vanish in a puff of smoke. 7944 if test "X${COLLECT_NAMES+set}" != Xset; then 7945 COLLECT_NAMES= 7946 export COLLECT_NAMES 7947 fi 7948 ;; 7949esac 7950 7951# Global variables: 7952ofile=libtool 7953can_build_shared=yes 7954 7955# All known linkers require a `.a' archive for static linking (except MSVC, 7956# which needs '.lib'). 7957libext=a 7958 7959with_gnu_ld="$lt_cv_prog_gnu_ld" 7960 7961old_CC="$CC" 7962old_CFLAGS="$CFLAGS" 7963 7964# Set sane defaults for various variables 7965test -z "$CC" && CC=cc 7966test -z "$LTCC" && LTCC=$CC 7967test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7968test -z "$LD" && LD=ld 7969test -z "$ac_objext" && ac_objext=o 7970 7971for cc_temp in $compiler""; do 7972 case $cc_temp in 7973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7975 \-*) ;; 7976 *) break;; 7977 esac 7978done 7979cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7980 7981 7982# Only perform the check for file, if the check method requires it 7983test -z "$MAGIC_CMD" && MAGIC_CMD=file 7984case $deplibs_check_method in 7985file_magic*) 7986 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7988$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7989if ${lt_cv_path_MAGIC_CMD+:} false; then : 7990 $as_echo_n "(cached) " >&6 7991else 7992 case $MAGIC_CMD in 7993[\\/*] | ?:[\\/]*) 7994 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7995 ;; 7996*) 7997 lt_save_MAGIC_CMD="$MAGIC_CMD" 7998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7999 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8000 for ac_dir in $ac_dummy; do 8001 IFS="$lt_save_ifs" 8002 test -z "$ac_dir" && ac_dir=. 8003 if test -f $ac_dir/${ac_tool_prefix}file; then 8004 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8005 if test -n "$file_magic_test_file"; then 8006 case $deplibs_check_method in 8007 "file_magic "*) 8008 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8010 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8011 $EGREP "$file_magic_regex" > /dev/null; then 8012 : 8013 else 8014 cat <<_LT_EOF 1>&2 8015 8016*** Warning: the command libtool uses to detect shared libraries, 8017*** $file_magic_cmd, produces output that libtool cannot recognize. 8018*** The result is that libtool may fail to recognize shared libraries 8019*** as such. This will affect the creation of libtool libraries that 8020*** depend on shared libraries, but programs linked with such libtool 8021*** libraries will work regardless of this problem. Nevertheless, you 8022*** may want to report the problem to your system manager and/or to 8023*** bug-libtool@gnu.org 8024 8025_LT_EOF 8026 fi ;; 8027 esac 8028 fi 8029 break 8030 fi 8031 done 8032 IFS="$lt_save_ifs" 8033 MAGIC_CMD="$lt_save_MAGIC_CMD" 8034 ;; 8035esac 8036fi 8037 8038MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8039if test -n "$MAGIC_CMD"; then 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8041$as_echo "$MAGIC_CMD" >&6; } 8042else 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8044$as_echo "no" >&6; } 8045fi 8046 8047 8048 8049 8050 8051if test -z "$lt_cv_path_MAGIC_CMD"; then 8052 if test -n "$ac_tool_prefix"; then 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8054$as_echo_n "checking for file... " >&6; } 8055if ${lt_cv_path_MAGIC_CMD+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057else 8058 case $MAGIC_CMD in 8059[\\/*] | ?:[\\/]*) 8060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8061 ;; 8062*) 8063 lt_save_MAGIC_CMD="$MAGIC_CMD" 8064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8066 for ac_dir in $ac_dummy; do 8067 IFS="$lt_save_ifs" 8068 test -z "$ac_dir" && ac_dir=. 8069 if test -f $ac_dir/file; then 8070 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8071 if test -n "$file_magic_test_file"; then 8072 case $deplibs_check_method in 8073 "file_magic "*) 8074 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8077 $EGREP "$file_magic_regex" > /dev/null; then 8078 : 8079 else 8080 cat <<_LT_EOF 1>&2 8081 8082*** Warning: the command libtool uses to detect shared libraries, 8083*** $file_magic_cmd, produces output that libtool cannot recognize. 8084*** The result is that libtool may fail to recognize shared libraries 8085*** as such. This will affect the creation of libtool libraries that 8086*** depend on shared libraries, but programs linked with such libtool 8087*** libraries will work regardless of this problem. Nevertheless, you 8088*** may want to report the problem to your system manager and/or to 8089*** bug-libtool@gnu.org 8090 8091_LT_EOF 8092 fi ;; 8093 esac 8094 fi 8095 break 8096 fi 8097 done 8098 IFS="$lt_save_ifs" 8099 MAGIC_CMD="$lt_save_MAGIC_CMD" 8100 ;; 8101esac 8102fi 8103 8104MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8105if test -n "$MAGIC_CMD"; then 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8107$as_echo "$MAGIC_CMD" >&6; } 8108else 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8110$as_echo "no" >&6; } 8111fi 8112 8113 8114 else 8115 MAGIC_CMD=: 8116 fi 8117fi 8118 8119 fi 8120 ;; 8121esac 8122 8123# Use C for the default configuration in the libtool script 8124 8125lt_save_CC="$CC" 8126ac_ext=c 8127ac_cpp='$CPP $CPPFLAGS' 8128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8130ac_compiler_gnu=$ac_cv_c_compiler_gnu 8131 8132 8133# Source file extension for C test sources. 8134ac_ext=c 8135 8136# Object file extension for compiled C test sources. 8137objext=o 8138objext=$objext 8139 8140# Code to be used in simple compile tests 8141lt_simple_compile_test_code="int some_variable = 0;" 8142 8143# Code to be used in simple link tests 8144lt_simple_link_test_code='int main(){return(0);}' 8145 8146 8147 8148 8149 8150 8151 8152# If no C compiler was specified, use CC. 8153LTCC=${LTCC-"$CC"} 8154 8155# If no C compiler flags were specified, use CFLAGS. 8156LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8157 8158# Allow CC to be a program name with arguments. 8159compiler=$CC 8160 8161# Save the default compiler, since it gets overwritten when the other 8162# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8163compiler_DEFAULT=$CC 8164 8165# save warnings/boilerplate of simple test code 8166ac_outfile=conftest.$ac_objext 8167echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8168eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8169_lt_compiler_boilerplate=`cat conftest.err` 8170$RM conftest* 8171 8172ac_outfile=conftest.$ac_objext 8173echo "$lt_simple_link_test_code" >conftest.$ac_ext 8174eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8175_lt_linker_boilerplate=`cat conftest.err` 8176$RM -r conftest* 8177 8178 8179## CAVEAT EMPTOR: 8180## There is no encapsulation within the following macros, do not change 8181## the running order or otherwise move them around unless you know exactly 8182## what you are doing... 8183if test -n "$compiler"; then 8184 8185lt_prog_compiler_no_builtin_flag= 8186 8187if test "$GCC" = yes; then 8188 case $cc_basename in 8189 nvcc*) 8190 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8191 *) 8192 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8193 esac 8194 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8196$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8197if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 lt_cv_prog_compiler_rtti_exceptions=no 8201 ac_outfile=conftest.$ac_objext 8202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8203 lt_compiler_flag="-fno-rtti -fno-exceptions" 8204 # Insert the option either (1) after the last *FLAGS variable, or 8205 # (2) before a word containing "conftest.", or (3) at the end. 8206 # Note that $ac_compile itself does not contain backslashes and begins 8207 # with a dollar sign (not a hyphen), so the echo should work correctly. 8208 # The option is referenced via a variable to avoid confusing sed. 8209 lt_compile=`echo "$ac_compile" | $SED \ 8210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8212 -e 's:$: $lt_compiler_flag:'` 8213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8214 (eval "$lt_compile" 2>conftest.err) 8215 ac_status=$? 8216 cat conftest.err >&5 8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8218 if (exit $ac_status) && test -s "$ac_outfile"; then 8219 # The compiler can only warn and ignore the option if not recognized 8220 # So say no if there are warnings other than the usual output. 8221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8224 lt_cv_prog_compiler_rtti_exceptions=yes 8225 fi 8226 fi 8227 $RM conftest* 8228 8229fi 8230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8231$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8232 8233if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8234 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8235else 8236 : 8237fi 8238 8239fi 8240 8241 8242 8243 8244 8245 8246 lt_prog_compiler_wl= 8247lt_prog_compiler_pic= 8248lt_prog_compiler_static= 8249 8250 8251 if test "$GCC" = yes; then 8252 lt_prog_compiler_wl='-Wl,' 8253 lt_prog_compiler_static='-static' 8254 8255 case $host_os in 8256 aix*) 8257 # All AIX code is PIC. 8258 if test "$host_cpu" = ia64; then 8259 # AIX 5 now supports IA64 processor 8260 lt_prog_compiler_static='-Bstatic' 8261 fi 8262 ;; 8263 8264 amigaos*) 8265 case $host_cpu in 8266 powerpc) 8267 # see comment about AmigaOS4 .so support 8268 lt_prog_compiler_pic='-fPIC' 8269 ;; 8270 m68k) 8271 # FIXME: we need at least 68020 code to build shared libraries, but 8272 # adding the `-m68020' flag to GCC prevents building anything better, 8273 # like `-m68040'. 8274 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8275 ;; 8276 esac 8277 ;; 8278 8279 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8280 # PIC is the default for these OSes. 8281 ;; 8282 8283 mingw* | cygwin* | pw32* | os2* | cegcc*) 8284 # This hack is so that the source file can tell whether it is being 8285 # built for inclusion in a dll (and should export symbols for example). 8286 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8287 # (--disable-auto-import) libraries 8288 lt_prog_compiler_pic='-DDLL_EXPORT' 8289 ;; 8290 8291 darwin* | rhapsody*) 8292 # PIC is the default on this platform 8293 # Common symbols not allowed in MH_DYLIB files 8294 lt_prog_compiler_pic='-fno-common' 8295 ;; 8296 8297 haiku*) 8298 # PIC is the default for Haiku. 8299 # The "-static" flag exists, but is broken. 8300 lt_prog_compiler_static= 8301 ;; 8302 8303 hpux*) 8304 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8305 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8306 # sets the default TLS model and affects inlining. 8307 case $host_cpu in 8308 hppa*64*) 8309 # +Z the default 8310 ;; 8311 *) 8312 lt_prog_compiler_pic='-fPIC' 8313 ;; 8314 esac 8315 ;; 8316 8317 interix[3-9]*) 8318 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8319 # Instead, we relocate shared libraries at runtime. 8320 ;; 8321 8322 msdosdjgpp*) 8323 # Just because we use GCC doesn't mean we suddenly get shared libraries 8324 # on systems that don't support them. 8325 lt_prog_compiler_can_build_shared=no 8326 enable_shared=no 8327 ;; 8328 8329 *nto* | *qnx*) 8330 # QNX uses GNU C++, but need to define -shared option too, otherwise 8331 # it will coredump. 8332 lt_prog_compiler_pic='-fPIC -shared' 8333 ;; 8334 8335 sysv4*MP*) 8336 if test -d /usr/nec; then 8337 lt_prog_compiler_pic=-Kconform_pic 8338 fi 8339 ;; 8340 8341 *) 8342 lt_prog_compiler_pic='-fPIC' 8343 ;; 8344 esac 8345 8346 case $cc_basename in 8347 nvcc*) # Cuda Compiler Driver 2.2 8348 lt_prog_compiler_wl='-Xlinker ' 8349 if test -n "$lt_prog_compiler_pic"; then 8350 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8351 fi 8352 ;; 8353 esac 8354 else 8355 # PORTME Check for flag to pass linker flags through the system compiler. 8356 case $host_os in 8357 aix*) 8358 lt_prog_compiler_wl='-Wl,' 8359 if test "$host_cpu" = ia64; then 8360 # AIX 5 now supports IA64 processor 8361 lt_prog_compiler_static='-Bstatic' 8362 else 8363 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8364 fi 8365 ;; 8366 8367 mingw* | cygwin* | pw32* | os2* | cegcc*) 8368 # This hack is so that the source file can tell whether it is being 8369 # built for inclusion in a dll (and should export symbols for example). 8370 lt_prog_compiler_pic='-DDLL_EXPORT' 8371 ;; 8372 8373 hpux9* | hpux10* | hpux11*) 8374 lt_prog_compiler_wl='-Wl,' 8375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8376 # not for PA HP-UX. 8377 case $host_cpu in 8378 hppa*64*|ia64*) 8379 # +Z the default 8380 ;; 8381 *) 8382 lt_prog_compiler_pic='+Z' 8383 ;; 8384 esac 8385 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8386 lt_prog_compiler_static='${wl}-a ${wl}archive' 8387 ;; 8388 8389 irix5* | irix6* | nonstopux*) 8390 lt_prog_compiler_wl='-Wl,' 8391 # PIC (with -KPIC) is the default. 8392 lt_prog_compiler_static='-non_shared' 8393 ;; 8394 8395 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8396 case $cc_basename in 8397 # old Intel for x86_64 which still supported -KPIC. 8398 ecc*) 8399 lt_prog_compiler_wl='-Wl,' 8400 lt_prog_compiler_pic='-KPIC' 8401 lt_prog_compiler_static='-static' 8402 ;; 8403 # icc used to be incompatible with GCC. 8404 # ICC 10 doesn't accept -KPIC any more. 8405 icc* | ifort*) 8406 lt_prog_compiler_wl='-Wl,' 8407 lt_prog_compiler_pic='-fPIC' 8408 lt_prog_compiler_static='-static' 8409 ;; 8410 # Lahey Fortran 8.1. 8411 lf95*) 8412 lt_prog_compiler_wl='-Wl,' 8413 lt_prog_compiler_pic='--shared' 8414 lt_prog_compiler_static='--static' 8415 ;; 8416 nagfor*) 8417 # NAG Fortran compiler 8418 lt_prog_compiler_wl='-Wl,-Wl,,' 8419 lt_prog_compiler_pic='-PIC' 8420 lt_prog_compiler_static='-Bstatic' 8421 ;; 8422 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8423 # Portland Group compilers (*not* the Pentium gcc compiler, 8424 # which looks to be a dead project) 8425 lt_prog_compiler_wl='-Wl,' 8426 lt_prog_compiler_pic='-fpic' 8427 lt_prog_compiler_static='-Bstatic' 8428 ;; 8429 ccc*) 8430 lt_prog_compiler_wl='-Wl,' 8431 # All Alpha code is PIC. 8432 lt_prog_compiler_static='-non_shared' 8433 ;; 8434 xl* | bgxl* | bgf* | mpixl*) 8435 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8436 lt_prog_compiler_wl='-Wl,' 8437 lt_prog_compiler_pic='-qpic' 8438 lt_prog_compiler_static='-qstaticlink' 8439 ;; 8440 *) 8441 case `$CC -V 2>&1 | sed 5q` in 8442 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8443 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8444 lt_prog_compiler_pic='-KPIC' 8445 lt_prog_compiler_static='-Bstatic' 8446 lt_prog_compiler_wl='' 8447 ;; 8448 *Sun\ F* | *Sun*Fortran*) 8449 lt_prog_compiler_pic='-KPIC' 8450 lt_prog_compiler_static='-Bstatic' 8451 lt_prog_compiler_wl='-Qoption ld ' 8452 ;; 8453 *Sun\ C*) 8454 # Sun C 5.9 8455 lt_prog_compiler_pic='-KPIC' 8456 lt_prog_compiler_static='-Bstatic' 8457 lt_prog_compiler_wl='-Wl,' 8458 ;; 8459 *Intel*\ [CF]*Compiler*) 8460 lt_prog_compiler_wl='-Wl,' 8461 lt_prog_compiler_pic='-fPIC' 8462 lt_prog_compiler_static='-static' 8463 ;; 8464 *Portland\ Group*) 8465 lt_prog_compiler_wl='-Wl,' 8466 lt_prog_compiler_pic='-fpic' 8467 lt_prog_compiler_static='-Bstatic' 8468 ;; 8469 esac 8470 ;; 8471 esac 8472 ;; 8473 8474 newsos6) 8475 lt_prog_compiler_pic='-KPIC' 8476 lt_prog_compiler_static='-Bstatic' 8477 ;; 8478 8479 *nto* | *qnx*) 8480 # QNX uses GNU C++, but need to define -shared option too, otherwise 8481 # it will coredump. 8482 lt_prog_compiler_pic='-fPIC -shared' 8483 ;; 8484 8485 osf3* | osf4* | osf5*) 8486 lt_prog_compiler_wl='-Wl,' 8487 # All OSF/1 code is PIC. 8488 lt_prog_compiler_static='-non_shared' 8489 ;; 8490 8491 rdos*) 8492 lt_prog_compiler_static='-non_shared' 8493 ;; 8494 8495 solaris*) 8496 lt_prog_compiler_pic='-KPIC' 8497 lt_prog_compiler_static='-Bstatic' 8498 case $cc_basename in 8499 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8500 lt_prog_compiler_wl='-Qoption ld ';; 8501 *) 8502 lt_prog_compiler_wl='-Wl,';; 8503 esac 8504 ;; 8505 8506 sunos4*) 8507 lt_prog_compiler_wl='-Qoption ld ' 8508 lt_prog_compiler_pic='-PIC' 8509 lt_prog_compiler_static='-Bstatic' 8510 ;; 8511 8512 sysv4 | sysv4.2uw2* | sysv4.3*) 8513 lt_prog_compiler_wl='-Wl,' 8514 lt_prog_compiler_pic='-KPIC' 8515 lt_prog_compiler_static='-Bstatic' 8516 ;; 8517 8518 sysv4*MP*) 8519 if test -d /usr/nec ;then 8520 lt_prog_compiler_pic='-Kconform_pic' 8521 lt_prog_compiler_static='-Bstatic' 8522 fi 8523 ;; 8524 8525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8526 lt_prog_compiler_wl='-Wl,' 8527 lt_prog_compiler_pic='-KPIC' 8528 lt_prog_compiler_static='-Bstatic' 8529 ;; 8530 8531 unicos*) 8532 lt_prog_compiler_wl='-Wl,' 8533 lt_prog_compiler_can_build_shared=no 8534 ;; 8535 8536 uts4*) 8537 lt_prog_compiler_pic='-pic' 8538 lt_prog_compiler_static='-Bstatic' 8539 ;; 8540 8541 *) 8542 lt_prog_compiler_can_build_shared=no 8543 ;; 8544 esac 8545 fi 8546 8547case $host_os in 8548 # For platforms which do not support PIC, -DPIC is meaningless: 8549 *djgpp*) 8550 lt_prog_compiler_pic= 8551 ;; 8552 *) 8553 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8554 ;; 8555esac 8556 8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8558$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8559if ${lt_cv_prog_compiler_pic+:} false; then : 8560 $as_echo_n "(cached) " >&6 8561else 8562 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8563fi 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8565$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8566lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8567 8568# 8569# Check to make sure the PIC flag actually works. 8570# 8571if test -n "$lt_prog_compiler_pic"; then 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8573$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8574if ${lt_cv_prog_compiler_pic_works+:} false; then : 8575 $as_echo_n "(cached) " >&6 8576else 8577 lt_cv_prog_compiler_pic_works=no 8578 ac_outfile=conftest.$ac_objext 8579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8580 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8581 # Insert the option either (1) after the last *FLAGS variable, or 8582 # (2) before a word containing "conftest.", or (3) at the end. 8583 # Note that $ac_compile itself does not contain backslashes and begins 8584 # with a dollar sign (not a hyphen), so the echo should work correctly. 8585 # The option is referenced via a variable to avoid confusing sed. 8586 lt_compile=`echo "$ac_compile" | $SED \ 8587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8589 -e 's:$: $lt_compiler_flag:'` 8590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8591 (eval "$lt_compile" 2>conftest.err) 8592 ac_status=$? 8593 cat conftest.err >&5 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 if (exit $ac_status) && test -s "$ac_outfile"; then 8596 # The compiler can only warn and ignore the option if not recognized 8597 # So say no if there are warnings other than the usual output. 8598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8601 lt_cv_prog_compiler_pic_works=yes 8602 fi 8603 fi 8604 $RM conftest* 8605 8606fi 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8608$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8609 8610if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8611 case $lt_prog_compiler_pic in 8612 "" | " "*) ;; 8613 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8614 esac 8615else 8616 lt_prog_compiler_pic= 8617 lt_prog_compiler_can_build_shared=no 8618fi 8619 8620fi 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632# 8633# Check to make sure the static flag actually works. 8634# 8635wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8637$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8638if ${lt_cv_prog_compiler_static_works+:} false; then : 8639 $as_echo_n "(cached) " >&6 8640else 8641 lt_cv_prog_compiler_static_works=no 8642 save_LDFLAGS="$LDFLAGS" 8643 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8644 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8646 # The linker can only warn and ignore the option if not recognized 8647 # So say no if there are warnings 8648 if test -s conftest.err; then 8649 # Append any errors to the config.log. 8650 cat conftest.err 1>&5 8651 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8653 if diff conftest.exp conftest.er2 >/dev/null; then 8654 lt_cv_prog_compiler_static_works=yes 8655 fi 8656 else 8657 lt_cv_prog_compiler_static_works=yes 8658 fi 8659 fi 8660 $RM -r conftest* 8661 LDFLAGS="$save_LDFLAGS" 8662 8663fi 8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8665$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8666 8667if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8668 : 8669else 8670 lt_prog_compiler_static= 8671fi 8672 8673 8674 8675 8676 8677 8678 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8680$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8681if ${lt_cv_prog_compiler_c_o+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 lt_cv_prog_compiler_c_o=no 8685 $RM -r conftest 2>/dev/null 8686 mkdir conftest 8687 cd conftest 8688 mkdir out 8689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8690 8691 lt_compiler_flag="-o out/conftest2.$ac_objext" 8692 # Insert the option either (1) after the last *FLAGS variable, or 8693 # (2) before a word containing "conftest.", or (3) at the end. 8694 # Note that $ac_compile itself does not contain backslashes and begins 8695 # with a dollar sign (not a hyphen), so the echo should work correctly. 8696 lt_compile=`echo "$ac_compile" | $SED \ 8697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8699 -e 's:$: $lt_compiler_flag:'` 8700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8701 (eval "$lt_compile" 2>out/conftest.err) 8702 ac_status=$? 8703 cat out/conftest.err >&5 8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8705 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8706 then 8707 # The compiler can only warn and ignore the option if not recognized 8708 # So say no if there are warnings 8709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8712 lt_cv_prog_compiler_c_o=yes 8713 fi 8714 fi 8715 chmod u+w . 2>&5 8716 $RM conftest* 8717 # SGI C++ compiler will create directory out/ii_files/ for 8718 # template instantiation 8719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8720 $RM out/* && rmdir out 8721 cd .. 8722 $RM -r conftest 8723 $RM conftest* 8724 8725fi 8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8727$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8728 8729 8730 8731 8732 8733 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8735$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8736if ${lt_cv_prog_compiler_c_o+:} false; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 lt_cv_prog_compiler_c_o=no 8740 $RM -r conftest 2>/dev/null 8741 mkdir conftest 8742 cd conftest 8743 mkdir out 8744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8745 8746 lt_compiler_flag="-o out/conftest2.$ac_objext" 8747 # Insert the option either (1) after the last *FLAGS variable, or 8748 # (2) before a word containing "conftest.", or (3) at the end. 8749 # Note that $ac_compile itself does not contain backslashes and begins 8750 # with a dollar sign (not a hyphen), so the echo should work correctly. 8751 lt_compile=`echo "$ac_compile" | $SED \ 8752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8754 -e 's:$: $lt_compiler_flag:'` 8755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8756 (eval "$lt_compile" 2>out/conftest.err) 8757 ac_status=$? 8758 cat out/conftest.err >&5 8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8760 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8761 then 8762 # The compiler can only warn and ignore the option if not recognized 8763 # So say no if there are warnings 8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8767 lt_cv_prog_compiler_c_o=yes 8768 fi 8769 fi 8770 chmod u+w . 2>&5 8771 $RM conftest* 8772 # SGI C++ compiler will create directory out/ii_files/ for 8773 # template instantiation 8774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8775 $RM out/* && rmdir out 8776 cd .. 8777 $RM -r conftest 8778 $RM conftest* 8779 8780fi 8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8782$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8783 8784 8785 8786 8787hard_links="nottested" 8788if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8789 # do not overwrite the value of need_locks provided by the user 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8791$as_echo_n "checking if we can lock with hard links... " >&6; } 8792 hard_links=yes 8793 $RM conftest* 8794 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8795 touch conftest.a 8796 ln conftest.a conftest.b 2>&5 || hard_links=no 8797 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8799$as_echo "$hard_links" >&6; } 8800 if test "$hard_links" = no; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8802$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8803 need_locks=warn 8804 fi 8805else 8806 need_locks=no 8807fi 8808 8809 8810 8811 8812 8813 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8815$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8816 8817 runpath_var= 8818 allow_undefined_flag= 8819 always_export_symbols=no 8820 archive_cmds= 8821 archive_expsym_cmds= 8822 compiler_needs_object=no 8823 enable_shared_with_static_runtimes=no 8824 export_dynamic_flag_spec= 8825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8826 hardcode_automatic=no 8827 hardcode_direct=no 8828 hardcode_direct_absolute=no 8829 hardcode_libdir_flag_spec= 8830 hardcode_libdir_separator= 8831 hardcode_minus_L=no 8832 hardcode_shlibpath_var=unsupported 8833 inherit_rpath=no 8834 link_all_deplibs=unknown 8835 module_cmds= 8836 module_expsym_cmds= 8837 old_archive_from_new_cmds= 8838 old_archive_from_expsyms_cmds= 8839 thread_safe_flag_spec= 8840 whole_archive_flag_spec= 8841 # include_expsyms should be a list of space-separated symbols to be *always* 8842 # included in the symbol list 8843 include_expsyms= 8844 # exclude_expsyms can be an extended regexp of symbols to exclude 8845 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8847 # as well as any symbol that contains `d'. 8848 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8850 # platforms (ab)use it in PIC code, but their linkers get confused if 8851 # the symbol is explicitly referenced. Since portable code cannot 8852 # rely on this symbol name, it's probably fine to never include it in 8853 # preloaded symbol tables. 8854 # Exclude shared library initialization/finalization symbols. 8855 extract_expsyms_cmds= 8856 8857 case $host_os in 8858 cygwin* | mingw* | pw32* | cegcc*) 8859 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8860 # When not using gcc, we currently assume that we are using 8861 # Microsoft Visual C++. 8862 if test "$GCC" != yes; then 8863 with_gnu_ld=no 8864 fi 8865 ;; 8866 interix*) 8867 # we just hope/assume this is gcc and not c89 (= MSVC++) 8868 with_gnu_ld=yes 8869 ;; 8870 openbsd*) 8871 with_gnu_ld=no 8872 ;; 8873 linux* | k*bsd*-gnu | gnu*) 8874 link_all_deplibs=no 8875 ;; 8876 esac 8877 8878 ld_shlibs=yes 8879 8880 # On some targets, GNU ld is compatible enough with the native linker 8881 # that we're better off using the native interface for both. 8882 lt_use_gnu_ld_interface=no 8883 if test "$with_gnu_ld" = yes; then 8884 case $host_os in 8885 aix*) 8886 # The AIX port of GNU ld has always aspired to compatibility 8887 # with the native linker. However, as the warning in the GNU ld 8888 # block says, versions before 2.19.5* couldn't really create working 8889 # shared libraries, regardless of the interface used. 8890 case `$LD -v 2>&1` in 8891 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8892 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8893 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8894 *) 8895 lt_use_gnu_ld_interface=yes 8896 ;; 8897 esac 8898 ;; 8899 *) 8900 lt_use_gnu_ld_interface=yes 8901 ;; 8902 esac 8903 fi 8904 8905 if test "$lt_use_gnu_ld_interface" = yes; then 8906 # If archive_cmds runs LD, not CC, wlarc should be empty 8907 wlarc='${wl}' 8908 8909 # Set some defaults for GNU ld with shared library support. These 8910 # are reset later if shared libraries are not supported. Putting them 8911 # here allows them to be overridden if necessary. 8912 runpath_var=LD_RUN_PATH 8913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8914 export_dynamic_flag_spec='${wl}--export-dynamic' 8915 # ancient GNU ld didn't support --whole-archive et. al. 8916 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8917 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8918 else 8919 whole_archive_flag_spec= 8920 fi 8921 supports_anon_versioning=no 8922 case `$LD -v 2>&1` in 8923 *GNU\ gold*) supports_anon_versioning=yes ;; 8924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8927 *\ 2.11.*) ;; # other 2.11 versions 8928 *) supports_anon_versioning=yes ;; 8929 esac 8930 8931 # See if GNU ld supports shared libraries. 8932 case $host_os in 8933 aix[3-9]*) 8934 # On AIX/PPC, the GNU linker is very broken 8935 if test "$host_cpu" != ia64; then 8936 ld_shlibs=no 8937 cat <<_LT_EOF 1>&2 8938 8939*** Warning: the GNU linker, at least up to release 2.19, is reported 8940*** to be unable to reliably create shared libraries on AIX. 8941*** Therefore, libtool is disabling shared libraries support. If you 8942*** really care for shared libraries, you may want to install binutils 8943*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8944*** You will then need to restart the configuration process. 8945 8946_LT_EOF 8947 fi 8948 ;; 8949 8950 amigaos*) 8951 case $host_cpu in 8952 powerpc) 8953 # see comment about AmigaOS4 .so support 8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8955 archive_expsym_cmds='' 8956 ;; 8957 m68k) 8958 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)' 8959 hardcode_libdir_flag_spec='-L$libdir' 8960 hardcode_minus_L=yes 8961 ;; 8962 esac 8963 ;; 8964 8965 beos*) 8966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8967 allow_undefined_flag=unsupported 8968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8969 # support --undefined. This deserves some investigation. FIXME 8970 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8971 else 8972 ld_shlibs=no 8973 fi 8974 ;; 8975 8976 cygwin* | mingw* | pw32* | cegcc*) 8977 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8978 # as there is no search path for DLLs. 8979 hardcode_libdir_flag_spec='-L$libdir' 8980 export_dynamic_flag_spec='${wl}--export-all-symbols' 8981 allow_undefined_flag=unsupported 8982 always_export_symbols=no 8983 enable_shared_with_static_runtimes=yes 8984 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8985 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8986 8987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8989 # If the export-symbols file already is a .def file (1st line 8990 # is EXPORTS), use it as is; otherwise, prepend... 8991 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8992 cp $export_symbols $output_objdir/$soname.def; 8993 else 8994 echo EXPORTS > $output_objdir/$soname.def; 8995 cat $export_symbols >> $output_objdir/$soname.def; 8996 fi~ 8997 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8998 else 8999 ld_shlibs=no 9000 fi 9001 ;; 9002 9003 haiku*) 9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9005 link_all_deplibs=yes 9006 ;; 9007 9008 interix[3-9]*) 9009 hardcode_direct=no 9010 hardcode_shlibpath_var=no 9011 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9012 export_dynamic_flag_spec='${wl}-E' 9013 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9014 # Instead, shared libraries are loaded at an image base (0x10000000 by 9015 # default) and relocated if they conflict, which is a slow very memory 9016 # consuming and fragmenting process. To avoid this, we pick a random, 9017 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9018 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9020 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' 9021 ;; 9022 9023 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9024 tmp_diet=no 9025 if test "$host_os" = linux-dietlibc; then 9026 case $cc_basename in 9027 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9028 esac 9029 fi 9030 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9031 && test "$tmp_diet" = no 9032 then 9033 tmp_addflag=' $pic_flag' 9034 tmp_sharedflag='-shared' 9035 case $cc_basename,$host_cpu in 9036 pgcc*) # Portland Group C compiler 9037 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' 9038 tmp_addflag=' $pic_flag' 9039 ;; 9040 pgf77* | pgf90* | pgf95* | pgfortran*) 9041 # Portland Group f77 and f90 compilers 9042 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' 9043 tmp_addflag=' $pic_flag -Mnomain' ;; 9044 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9045 tmp_addflag=' -i_dynamic' ;; 9046 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9047 tmp_addflag=' -i_dynamic -nofor_main' ;; 9048 ifc* | ifort*) # Intel Fortran compiler 9049 tmp_addflag=' -nofor_main' ;; 9050 lf95*) # Lahey Fortran 8.1 9051 whole_archive_flag_spec= 9052 tmp_sharedflag='--shared' ;; 9053 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9054 tmp_sharedflag='-qmkshrobj' 9055 tmp_addflag= ;; 9056 nvcc*) # Cuda Compiler Driver 2.2 9057 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' 9058 compiler_needs_object=yes 9059 ;; 9060 esac 9061 case `$CC -V 2>&1 | sed 5q` in 9062 *Sun\ C*) # Sun C 5.9 9063 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' 9064 compiler_needs_object=yes 9065 tmp_sharedflag='-G' ;; 9066 *Sun\ F*) # Sun Fortran 8.3 9067 tmp_sharedflag='-G' ;; 9068 esac 9069 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9070 9071 if test "x$supports_anon_versioning" = xyes; then 9072 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9074 echo "local: *; };" >> $output_objdir/$libname.ver~ 9075 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9076 fi 9077 9078 case $cc_basename in 9079 xlf* | bgf* | bgxlf* | mpixlf*) 9080 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9081 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9083 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9084 if test "x$supports_anon_versioning" = xyes; then 9085 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9087 echo "local: *; };" >> $output_objdir/$libname.ver~ 9088 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9089 fi 9090 ;; 9091 esac 9092 else 9093 ld_shlibs=no 9094 fi 9095 ;; 9096 9097 netbsd* | netbsdelf*-gnu) 9098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9099 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9100 wlarc= 9101 else 9102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9103 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9104 fi 9105 ;; 9106 9107 solaris*) 9108 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9109 ld_shlibs=no 9110 cat <<_LT_EOF 1>&2 9111 9112*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9113*** create shared libraries on Solaris systems. Therefore, libtool 9114*** is disabling shared libraries support. We urge you to upgrade GNU 9115*** binutils to release 2.9.1 or newer. Another option is to modify 9116*** your PATH or compiler configuration so that the native linker is 9117*** used, and then restart. 9118 9119_LT_EOF 9120 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9123 else 9124 ld_shlibs=no 9125 fi 9126 ;; 9127 9128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9129 case `$LD -v 2>&1` in 9130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9131 ld_shlibs=no 9132 cat <<_LT_EOF 1>&2 9133 9134*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9135*** reliably create shared libraries on SCO systems. Therefore, libtool 9136*** is disabling shared libraries support. We urge you to upgrade GNU 9137*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9138*** your PATH or compiler configuration so that the native linker is 9139*** used, and then restart. 9140 9141_LT_EOF 9142 ;; 9143 *) 9144 # For security reasons, it is highly recommended that you always 9145 # use absolute paths for naming shared libraries, and exclude the 9146 # DT_RUNPATH tag from executables and libraries. But doing so 9147 # requires that you compile everything twice, which is a pain. 9148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9152 else 9153 ld_shlibs=no 9154 fi 9155 ;; 9156 esac 9157 ;; 9158 9159 sunos4*) 9160 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9161 wlarc= 9162 hardcode_direct=yes 9163 hardcode_shlibpath_var=no 9164 ;; 9165 9166 *) 9167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9169 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9170 else 9171 ld_shlibs=no 9172 fi 9173 ;; 9174 esac 9175 9176 if test "$ld_shlibs" = no; then 9177 runpath_var= 9178 hardcode_libdir_flag_spec= 9179 export_dynamic_flag_spec= 9180 whole_archive_flag_spec= 9181 fi 9182 else 9183 # PORTME fill in a description of your system's linker (not GNU ld) 9184 case $host_os in 9185 aix3*) 9186 allow_undefined_flag=unsupported 9187 always_export_symbols=yes 9188 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' 9189 # Note: this linker hardcodes the directories in LIBPATH if there 9190 # are no directories specified by -L. 9191 hardcode_minus_L=yes 9192 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9193 # Neither direct hardcoding nor static linking is supported with a 9194 # broken collect2. 9195 hardcode_direct=unsupported 9196 fi 9197 ;; 9198 9199 aix[4-9]*) 9200 if test "$host_cpu" = ia64; then 9201 # On IA64, the linker does run time linking by default, so we don't 9202 # have to do anything special. 9203 aix_use_runtimelinking=no 9204 exp_sym_flag='-Bexport' 9205 no_entry_flag="" 9206 else 9207 # If we're using GNU nm, then we don't want the "-C" option. 9208 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9209 # Also, AIX nm treats weak defined symbols like other global 9210 # defined symbols, whereas GNU nm marks them as "W". 9211 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9212 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' 9213 else 9214 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' 9215 fi 9216 aix_use_runtimelinking=no 9217 9218 # Test if we are trying to use run time linking or normal 9219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9220 # need to do runtime linking. 9221 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9222 for ld_flag in $LDFLAGS; do 9223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9224 aix_use_runtimelinking=yes 9225 break 9226 fi 9227 done 9228 ;; 9229 esac 9230 9231 exp_sym_flag='-bexport' 9232 no_entry_flag='-bnoentry' 9233 fi 9234 9235 # When large executables or shared objects are built, AIX ld can 9236 # have problems creating the table of contents. If linking a library 9237 # or program results in "error TOC overflow" add -mminimal-toc to 9238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9240 9241 archive_cmds='' 9242 hardcode_direct=yes 9243 hardcode_direct_absolute=yes 9244 hardcode_libdir_separator=':' 9245 link_all_deplibs=yes 9246 file_list_spec='${wl}-f,' 9247 9248 if test "$GCC" = yes; then 9249 case $host_os in aix4.[012]|aix4.[012].*) 9250 # We only want to do this on AIX 4.2 and lower, the check 9251 # below for broken collect2 doesn't work under 4.3+ 9252 collect2name=`${CC} -print-prog-name=collect2` 9253 if test -f "$collect2name" && 9254 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9255 then 9256 # We have reworked collect2 9257 : 9258 else 9259 # We have old collect2 9260 hardcode_direct=unsupported 9261 # It fails to find uninstalled libraries when the uninstalled 9262 # path is not listed in the libpath. Setting hardcode_minus_L 9263 # to unsupported forces relinking 9264 hardcode_minus_L=yes 9265 hardcode_libdir_flag_spec='-L$libdir' 9266 hardcode_libdir_separator= 9267 fi 9268 ;; 9269 esac 9270 shared_flag='-shared' 9271 if test "$aix_use_runtimelinking" = yes; then 9272 shared_flag="$shared_flag "'${wl}-G' 9273 fi 9274 link_all_deplibs=no 9275 else 9276 # not using gcc 9277 if test "$host_cpu" = ia64; then 9278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9279 # chokes on -Wl,-G. The following line is correct: 9280 shared_flag='-G' 9281 else 9282 if test "$aix_use_runtimelinking" = yes; then 9283 shared_flag='${wl}-G' 9284 else 9285 shared_flag='${wl}-bM:SRE' 9286 fi 9287 fi 9288 fi 9289 9290 export_dynamic_flag_spec='${wl}-bexpall' 9291 # It seems that -bexpall does not export symbols beginning with 9292 # underscore (_), so it is better to generate a list of symbols to export. 9293 always_export_symbols=yes 9294 if test "$aix_use_runtimelinking" = yes; then 9295 # Warning - without using the other runtime loading flags (-brtl), 9296 # -berok will link without error, but may produce a broken library. 9297 allow_undefined_flag='-berok' 9298 # Determine the default libpath from the value encoded in an 9299 # empty executable. 9300 if test "${lt_cv_aix_libpath+set}" = set; then 9301 aix_libpath=$lt_cv_aix_libpath 9302else 9303 if ${lt_cv_aix_libpath_+:} false; then : 9304 $as_echo_n "(cached) " >&6 9305else 9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9307/* end confdefs.h. */ 9308 9309int 9310main () 9311{ 9312 9313 ; 9314 return 0; 9315} 9316_ACEOF 9317if ac_fn_c_try_link "$LINENO"; then : 9318 9319 lt_aix_libpath_sed=' 9320 /Import File Strings/,/^$/ { 9321 /^0/ { 9322 s/^0 *\([^ ]*\) *$/\1/ 9323 p 9324 } 9325 }' 9326 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9327 # Check for a 64-bit object if we didn't find anything. 9328 if test -z "$lt_cv_aix_libpath_"; then 9329 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9330 fi 9331fi 9332rm -f core conftest.err conftest.$ac_objext \ 9333 conftest$ac_exeext conftest.$ac_ext 9334 if test -z "$lt_cv_aix_libpath_"; then 9335 lt_cv_aix_libpath_="/usr/lib:/lib" 9336 fi 9337 9338fi 9339 9340 aix_libpath=$lt_cv_aix_libpath_ 9341fi 9342 9343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9344 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" 9345 else 9346 if test "$host_cpu" = ia64; then 9347 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9348 allow_undefined_flag="-z nodefs" 9349 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" 9350 else 9351 # Determine the default libpath from the value encoded in an 9352 # empty executable. 9353 if test "${lt_cv_aix_libpath+set}" = set; then 9354 aix_libpath=$lt_cv_aix_libpath 9355else 9356 if ${lt_cv_aix_libpath_+:} false; then : 9357 $as_echo_n "(cached) " >&6 9358else 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361 9362int 9363main () 9364{ 9365 9366 ; 9367 return 0; 9368} 9369_ACEOF 9370if ac_fn_c_try_link "$LINENO"; then : 9371 9372 lt_aix_libpath_sed=' 9373 /Import File Strings/,/^$/ { 9374 /^0/ { 9375 s/^0 *\([^ ]*\) *$/\1/ 9376 p 9377 } 9378 }' 9379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9380 # Check for a 64-bit object if we didn't find anything. 9381 if test -z "$lt_cv_aix_libpath_"; then 9382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9383 fi 9384fi 9385rm -f core conftest.err conftest.$ac_objext \ 9386 conftest$ac_exeext conftest.$ac_ext 9387 if test -z "$lt_cv_aix_libpath_"; then 9388 lt_cv_aix_libpath_="/usr/lib:/lib" 9389 fi 9390 9391fi 9392 9393 aix_libpath=$lt_cv_aix_libpath_ 9394fi 9395 9396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9397 # Warning - without using the other run time loading flags, 9398 # -berok will link without error, but may produce a broken library. 9399 no_undefined_flag=' ${wl}-bernotok' 9400 allow_undefined_flag=' ${wl}-berok' 9401 if test "$with_gnu_ld" = yes; then 9402 # We only use this code for GNU lds that support --whole-archive. 9403 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9404 else 9405 # Exported symbols can be pulled into shared objects from archives 9406 whole_archive_flag_spec='$convenience' 9407 fi 9408 archive_cmds_need_lc=yes 9409 # This is similar to how AIX traditionally builds its shared libraries. 9410 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' 9411 fi 9412 fi 9413 ;; 9414 9415 amigaos*) 9416 case $host_cpu in 9417 powerpc) 9418 # see comment about AmigaOS4 .so support 9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9420 archive_expsym_cmds='' 9421 ;; 9422 m68k) 9423 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)' 9424 hardcode_libdir_flag_spec='-L$libdir' 9425 hardcode_minus_L=yes 9426 ;; 9427 esac 9428 ;; 9429 9430 bsdi[45]*) 9431 export_dynamic_flag_spec=-rdynamic 9432 ;; 9433 9434 cygwin* | mingw* | pw32* | cegcc*) 9435 # When not using gcc, we currently assume that we are using 9436 # Microsoft Visual C++. 9437 # hardcode_libdir_flag_spec is actually meaningless, as there is 9438 # no search path for DLLs. 9439 case $cc_basename in 9440 cl*) 9441 # Native MSVC 9442 hardcode_libdir_flag_spec=' ' 9443 allow_undefined_flag=unsupported 9444 always_export_symbols=yes 9445 file_list_spec='@' 9446 # Tell ltmain to make .lib files, not .a files. 9447 libext=lib 9448 # Tell ltmain to make .dll files, not .so files. 9449 shrext_cmds=".dll" 9450 # FIXME: Setting linknames here is a bad hack. 9451 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9452 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9453 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9454 else 9455 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9456 fi~ 9457 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9458 linknames=' 9459 # The linker will not automatically build a static lib if we build a DLL. 9460 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9461 enable_shared_with_static_runtimes=yes 9462 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9464 # Don't use ranlib 9465 old_postinstall_cmds='chmod 644 $oldlib' 9466 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9467 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9468 case $lt_outputfile in 9469 *.exe|*.EXE) ;; 9470 *) 9471 lt_outputfile="$lt_outputfile.exe" 9472 lt_tool_outputfile="$lt_tool_outputfile.exe" 9473 ;; 9474 esac~ 9475 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9476 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9477 $RM "$lt_outputfile.manifest"; 9478 fi' 9479 ;; 9480 *) 9481 # Assume MSVC wrapper 9482 hardcode_libdir_flag_spec=' ' 9483 allow_undefined_flag=unsupported 9484 # Tell ltmain to make .lib files, not .a files. 9485 libext=lib 9486 # Tell ltmain to make .dll files, not .so files. 9487 shrext_cmds=".dll" 9488 # FIXME: Setting linknames here is a bad hack. 9489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9490 # The linker will automatically build a .lib file if we build a DLL. 9491 old_archive_from_new_cmds='true' 9492 # FIXME: Should let the user specify the lib program. 9493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9494 enable_shared_with_static_runtimes=yes 9495 ;; 9496 esac 9497 ;; 9498 9499 darwin* | rhapsody*) 9500 9501 9502 archive_cmds_need_lc=no 9503 hardcode_direct=no 9504 hardcode_automatic=yes 9505 hardcode_shlibpath_var=unsupported 9506 if test "$lt_cv_ld_force_load" = "yes"; then 9507 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\"`' 9508 9509 else 9510 whole_archive_flag_spec='' 9511 fi 9512 link_all_deplibs=yes 9513 allow_undefined_flag="$_lt_dar_allow_undefined" 9514 case $cc_basename in 9515 ifort*) _lt_dar_can_shared=yes ;; 9516 *) _lt_dar_can_shared=$GCC ;; 9517 esac 9518 if test "$_lt_dar_can_shared" = "yes"; then 9519 output_verbose_link_cmd=func_echo_all 9520 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9521 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9522 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}" 9523 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}" 9524 9525 else 9526 ld_shlibs=no 9527 fi 9528 9529 ;; 9530 9531 dgux*) 9532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9533 hardcode_libdir_flag_spec='-L$libdir' 9534 hardcode_shlibpath_var=no 9535 ;; 9536 9537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9538 # support. Future versions do this automatically, but an explicit c++rt0.o 9539 # does not break anything, and helps significantly (at the cost of a little 9540 # extra space). 9541 freebsd2.2*) 9542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9543 hardcode_libdir_flag_spec='-R$libdir' 9544 hardcode_direct=yes 9545 hardcode_shlibpath_var=no 9546 ;; 9547 9548 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9549 freebsd2.*) 9550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9551 hardcode_direct=yes 9552 hardcode_minus_L=yes 9553 hardcode_shlibpath_var=no 9554 ;; 9555 9556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9557 freebsd* | dragonfly*) 9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9559 hardcode_libdir_flag_spec='-R$libdir' 9560 hardcode_direct=yes 9561 hardcode_shlibpath_var=no 9562 ;; 9563 9564 hpux9*) 9565 if test "$GCC" = yes; then 9566 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9567 else 9568 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' 9569 fi 9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9571 hardcode_libdir_separator=: 9572 hardcode_direct=yes 9573 9574 # hardcode_minus_L: Not really in the search PATH, 9575 # but as the default location of the library. 9576 hardcode_minus_L=yes 9577 export_dynamic_flag_spec='${wl}-E' 9578 ;; 9579 9580 hpux10*) 9581 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9582 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9583 else 9584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9585 fi 9586 if test "$with_gnu_ld" = no; then 9587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9588 hardcode_libdir_separator=: 9589 hardcode_direct=yes 9590 hardcode_direct_absolute=yes 9591 export_dynamic_flag_spec='${wl}-E' 9592 # hardcode_minus_L: Not really in the search PATH, 9593 # but as the default location of the library. 9594 hardcode_minus_L=yes 9595 fi 9596 ;; 9597 9598 hpux11*) 9599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9600 case $host_cpu in 9601 hppa*64*) 9602 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9603 ;; 9604 ia64*) 9605 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9606 ;; 9607 *) 9608 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9609 ;; 9610 esac 9611 else 9612 case $host_cpu in 9613 hppa*64*) 9614 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9615 ;; 9616 ia64*) 9617 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9618 ;; 9619 *) 9620 9621 # Older versions of the 11.00 compiler do not understand -b yet 9622 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9624$as_echo_n "checking if $CC understands -b... " >&6; } 9625if ${lt_cv_prog_compiler__b+:} false; then : 9626 $as_echo_n "(cached) " >&6 9627else 9628 lt_cv_prog_compiler__b=no 9629 save_LDFLAGS="$LDFLAGS" 9630 LDFLAGS="$LDFLAGS -b" 9631 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9633 # The linker can only warn and ignore the option if not recognized 9634 # So say no if there are warnings 9635 if test -s conftest.err; then 9636 # Append any errors to the config.log. 9637 cat conftest.err 1>&5 9638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9640 if diff conftest.exp conftest.er2 >/dev/null; then 9641 lt_cv_prog_compiler__b=yes 9642 fi 9643 else 9644 lt_cv_prog_compiler__b=yes 9645 fi 9646 fi 9647 $RM -r conftest* 9648 LDFLAGS="$save_LDFLAGS" 9649 9650fi 9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9652$as_echo "$lt_cv_prog_compiler__b" >&6; } 9653 9654if test x"$lt_cv_prog_compiler__b" = xyes; then 9655 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9656else 9657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9658fi 9659 9660 ;; 9661 esac 9662 fi 9663 if test "$with_gnu_ld" = no; then 9664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9665 hardcode_libdir_separator=: 9666 9667 case $host_cpu in 9668 hppa*64*|ia64*) 9669 hardcode_direct=no 9670 hardcode_shlibpath_var=no 9671 ;; 9672 *) 9673 hardcode_direct=yes 9674 hardcode_direct_absolute=yes 9675 export_dynamic_flag_spec='${wl}-E' 9676 9677 # hardcode_minus_L: Not really in the search PATH, 9678 # but as the default location of the library. 9679 hardcode_minus_L=yes 9680 ;; 9681 esac 9682 fi 9683 ;; 9684 9685 irix5* | irix6* | nonstopux*) 9686 if test "$GCC" = yes; then 9687 archive_cmds='$CC -shared $pic_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' 9688 # Try to use the -exported_symbol ld option, if it does not 9689 # work, assume that -exports_file does not work either and 9690 # implicitly export all symbols. 9691 # This should be the same for all languages, so no per-tag cache variable. 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9693$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9694if ${lt_cv_irix_exported_symbol+:} false; then : 9695 $as_echo_n "(cached) " >&6 9696else 9697 save_LDFLAGS="$LDFLAGS" 9698 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9700/* end confdefs.h. */ 9701int foo (void) { return 0; } 9702_ACEOF 9703if ac_fn_c_try_link "$LINENO"; then : 9704 lt_cv_irix_exported_symbol=yes 9705else 9706 lt_cv_irix_exported_symbol=no 9707fi 9708rm -f core conftest.err conftest.$ac_objext \ 9709 conftest$ac_exeext conftest.$ac_ext 9710 LDFLAGS="$save_LDFLAGS" 9711fi 9712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9713$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9714 if test "$lt_cv_irix_exported_symbol" = yes; then 9715 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib' 9716 fi 9717 else 9718 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' 9719 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' 9720 fi 9721 archive_cmds_need_lc='no' 9722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9723 hardcode_libdir_separator=: 9724 inherit_rpath=yes 9725 link_all_deplibs=yes 9726 ;; 9727 9728 netbsd* | netbsdelf*-gnu) 9729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9731 else 9732 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9733 fi 9734 hardcode_libdir_flag_spec='-R$libdir' 9735 hardcode_direct=yes 9736 hardcode_shlibpath_var=no 9737 ;; 9738 9739 newsos6) 9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9741 hardcode_direct=yes 9742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9743 hardcode_libdir_separator=: 9744 hardcode_shlibpath_var=no 9745 ;; 9746 9747 *nto* | *qnx*) 9748 ;; 9749 9750 openbsd*) 9751 if test -f /usr/libexec/ld.so; then 9752 hardcode_direct=yes 9753 hardcode_shlibpath_var=no 9754 hardcode_direct_absolute=yes 9755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9757 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9759 export_dynamic_flag_spec='${wl}-E' 9760 else 9761 case $host_os in 9762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9764 hardcode_libdir_flag_spec='-R$libdir' 9765 ;; 9766 *) 9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9769 ;; 9770 esac 9771 fi 9772 else 9773 ld_shlibs=no 9774 fi 9775 ;; 9776 9777 os2*) 9778 hardcode_libdir_flag_spec='-L$libdir' 9779 hardcode_minus_L=yes 9780 allow_undefined_flag=unsupported 9781 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' 9782 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9783 ;; 9784 9785 osf3*) 9786 if test "$GCC" = yes; then 9787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9788 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' 9789 else 9790 allow_undefined_flag=' -expect_unresolved \*' 9791 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' 9792 fi 9793 archive_cmds_need_lc='no' 9794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9795 hardcode_libdir_separator=: 9796 ;; 9797 9798 osf4* | osf5*) # as osf3* with the addition of -msym flag 9799 if test "$GCC" = yes; then 9800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9801 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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' 9802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9803 else 9804 allow_undefined_flag=' -expect_unresolved \*' 9805 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' 9806 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~ 9807 $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' 9808 9809 # Both c and cxx compiler support -rpath directly 9810 hardcode_libdir_flag_spec='-rpath $libdir' 9811 fi 9812 archive_cmds_need_lc='no' 9813 hardcode_libdir_separator=: 9814 ;; 9815 9816 solaris*) 9817 no_undefined_flag=' -z defs' 9818 if test "$GCC" = yes; then 9819 wlarc='${wl}' 9820 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9822 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9823 else 9824 case `$CC -V 2>&1` in 9825 *"Compilers 5.0"*) 9826 wlarc='' 9827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9830 ;; 9831 *) 9832 wlarc='${wl}' 9833 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9835 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9836 ;; 9837 esac 9838 fi 9839 hardcode_libdir_flag_spec='-R$libdir' 9840 hardcode_shlibpath_var=no 9841 case $host_os in 9842 solaris2.[0-5] | solaris2.[0-5].*) ;; 9843 *) 9844 # The compiler driver will combine and reorder linker options, 9845 # but understands `-z linker_flag'. GCC discards it without `$wl', 9846 # but is careful enough not to reorder. 9847 # Supported since Solaris 2.6 (maybe 2.5.1?) 9848 if test "$GCC" = yes; then 9849 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9850 else 9851 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9852 fi 9853 ;; 9854 esac 9855 link_all_deplibs=yes 9856 ;; 9857 9858 sunos4*) 9859 if test "x$host_vendor" = xsequent; then 9860 # Use $CC to link under sequent, because it throws in some extra .o 9861 # files that make .init and .fini sections work. 9862 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9863 else 9864 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9865 fi 9866 hardcode_libdir_flag_spec='-L$libdir' 9867 hardcode_direct=yes 9868 hardcode_minus_L=yes 9869 hardcode_shlibpath_var=no 9870 ;; 9871 9872 sysv4) 9873 case $host_vendor in 9874 sni) 9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9876 hardcode_direct=yes # is this really true??? 9877 ;; 9878 siemens) 9879 ## LD is ld it makes a PLAMLIB 9880 ## CC just makes a GrossModule. 9881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9882 reload_cmds='$CC -r -o $output$reload_objs' 9883 hardcode_direct=no 9884 ;; 9885 motorola) 9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9887 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9888 ;; 9889 esac 9890 runpath_var='LD_RUN_PATH' 9891 hardcode_shlibpath_var=no 9892 ;; 9893 9894 sysv4.3*) 9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9896 hardcode_shlibpath_var=no 9897 export_dynamic_flag_spec='-Bexport' 9898 ;; 9899 9900 sysv4*MP*) 9901 if test -d /usr/nec; then 9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9903 hardcode_shlibpath_var=no 9904 runpath_var=LD_RUN_PATH 9905 hardcode_runpath_var=yes 9906 ld_shlibs=yes 9907 fi 9908 ;; 9909 9910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9911 no_undefined_flag='${wl}-z,text' 9912 archive_cmds_need_lc=no 9913 hardcode_shlibpath_var=no 9914 runpath_var='LD_RUN_PATH' 9915 9916 if test "$GCC" = yes; then 9917 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9918 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9919 else 9920 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9921 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9922 fi 9923 ;; 9924 9925 sysv5* | sco3.2v5* | sco5v6*) 9926 # Note: We can NOT use -z defs as we might desire, because we do not 9927 # link with -lc, and that would cause any symbols used from libc to 9928 # always be unresolved, which means just about no library would 9929 # ever link correctly. If we're not using GNU ld we use -z text 9930 # though, which does catch some bad symbols but isn't as heavy-handed 9931 # as -z defs. 9932 no_undefined_flag='${wl}-z,text' 9933 allow_undefined_flag='${wl}-z,nodefs' 9934 archive_cmds_need_lc=no 9935 hardcode_shlibpath_var=no 9936 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9937 hardcode_libdir_separator=':' 9938 link_all_deplibs=yes 9939 export_dynamic_flag_spec='${wl}-Bexport' 9940 runpath_var='LD_RUN_PATH' 9941 9942 if test "$GCC" = yes; then 9943 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9944 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9945 else 9946 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9947 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9948 fi 9949 ;; 9950 9951 uts4*) 9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9953 hardcode_libdir_flag_spec='-L$libdir' 9954 hardcode_shlibpath_var=no 9955 ;; 9956 9957 *) 9958 ld_shlibs=no 9959 ;; 9960 esac 9961 9962 if test x$host_vendor = xsni; then 9963 case $host in 9964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9965 export_dynamic_flag_spec='${wl}-Blargedynsym' 9966 ;; 9967 esac 9968 fi 9969 fi 9970 9971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9972$as_echo "$ld_shlibs" >&6; } 9973test "$ld_shlibs" = no && can_build_shared=no 9974 9975with_gnu_ld=$with_gnu_ld 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991# 9992# Do we need to explicitly link libc? 9993# 9994case "x$archive_cmds_need_lc" in 9995x|xyes) 9996 # Assume -lc should be added 9997 archive_cmds_need_lc=yes 9998 9999 if test "$enable_shared" = yes && test "$GCC" = yes; then 10000 case $archive_cmds in 10001 *'~'*) 10002 # FIXME: we may have to deal with multi-command sequences. 10003 ;; 10004 '$CC '*) 10005 # Test whether the compiler implicitly links with -lc since on some 10006 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10007 # to ld, don't add -lc before -lgcc. 10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10009$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10010if ${lt_cv_archive_cmds_need_lc+:} false; then : 10011 $as_echo_n "(cached) " >&6 10012else 10013 $RM conftest* 10014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10015 10016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10017 (eval $ac_compile) 2>&5 10018 ac_status=$? 10019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10020 test $ac_status = 0; } 2>conftest.err; then 10021 soname=conftest 10022 lib=conftest 10023 libobjs=conftest.$ac_objext 10024 deplibs= 10025 wl=$lt_prog_compiler_wl 10026 pic_flag=$lt_prog_compiler_pic 10027 compiler_flags=-v 10028 linker_flags=-v 10029 verstring= 10030 output_objdir=. 10031 libname=conftest 10032 lt_save_allow_undefined_flag=$allow_undefined_flag 10033 allow_undefined_flag= 10034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10035 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10036 ac_status=$? 10037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10038 test $ac_status = 0; } 10039 then 10040 lt_cv_archive_cmds_need_lc=no 10041 else 10042 lt_cv_archive_cmds_need_lc=yes 10043 fi 10044 allow_undefined_flag=$lt_save_allow_undefined_flag 10045 else 10046 cat conftest.err 1>&5 10047 fi 10048 $RM conftest* 10049 10050fi 10051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10052$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10053 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10054 ;; 10055 esac 10056 fi 10057 ;; 10058esac 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10212$as_echo_n "checking dynamic linker characteristics... " >&6; } 10213 10214if test "$GCC" = yes; then 10215 case $host_os in 10216 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10217 *) lt_awk_arg="/^libraries:/" ;; 10218 esac 10219 case $host_os in 10220 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10221 *) lt_sed_strip_eq="s,=/,/,g" ;; 10222 esac 10223 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10224 case $lt_search_path_spec in 10225 *\;*) 10226 # if the path contains ";" then we assume it to be the separator 10227 # otherwise default to the standard path separator (i.e. ":") - it is 10228 # assumed that no part of a normal pathname contains ";" but that should 10229 # okay in the real world where ";" in dirpaths is itself problematic. 10230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10231 ;; 10232 *) 10233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10234 ;; 10235 esac 10236 # Ok, now we have the path, separated by spaces, we can step through it 10237 # and add multilib dir if necessary. 10238 lt_tmp_lt_search_path_spec= 10239 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10240 for lt_sys_path in $lt_search_path_spec; do 10241 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10243 else 10244 test -d "$lt_sys_path" && \ 10245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10246 fi 10247 done 10248 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10249BEGIN {RS=" "; FS="/|\n";} { 10250 lt_foo=""; 10251 lt_count=0; 10252 for (lt_i = NF; lt_i > 0; lt_i--) { 10253 if ($lt_i != "" && $lt_i != ".") { 10254 if ($lt_i == "..") { 10255 lt_count++; 10256 } else { 10257 if (lt_count == 0) { 10258 lt_foo="/" $lt_i lt_foo; 10259 } else { 10260 lt_count--; 10261 } 10262 } 10263 } 10264 } 10265 if (lt_foo != "") { lt_freq[lt_foo]++; } 10266 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10267}'` 10268 # AWK program above erroneously prepends '/' to C:/dos/paths 10269 # for these hosts. 10270 case $host_os in 10271 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10272 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10273 esac 10274 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10275else 10276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10277fi 10278library_names_spec= 10279libname_spec='lib$name' 10280soname_spec= 10281shrext_cmds=".so" 10282postinstall_cmds= 10283postuninstall_cmds= 10284finish_cmds= 10285finish_eval= 10286shlibpath_var= 10287shlibpath_overrides_runpath=unknown 10288version_type=none 10289dynamic_linker="$host_os ld.so" 10290sys_lib_dlsearch_path_spec="/lib /usr/lib" 10291need_lib_prefix=unknown 10292hardcode_into_libs=no 10293 10294# when you set need_version to no, make sure it does not cause -set_version 10295# flags to be left without arguments 10296need_version=unknown 10297 10298case $host_os in 10299aix3*) 10300 version_type=linux # correct to gnu/linux during the next big refactor 10301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10302 shlibpath_var=LIBPATH 10303 10304 # AIX 3 has no versioning support, so we append a major version to the name. 10305 soname_spec='${libname}${release}${shared_ext}$major' 10306 ;; 10307 10308aix[4-9]*) 10309 version_type=linux # correct to gnu/linux during the next big refactor 10310 need_lib_prefix=no 10311 need_version=no 10312 hardcode_into_libs=yes 10313 if test "$host_cpu" = ia64; then 10314 # AIX 5 supports IA64 10315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10316 shlibpath_var=LD_LIBRARY_PATH 10317 else 10318 # With GCC up to 2.95.x, collect2 would create an import file 10319 # for dependence libraries. The import file would start with 10320 # the line `#! .'. This would cause the generated library to 10321 # depend on `.', always an invalid library. This was fixed in 10322 # development snapshots of GCC prior to 3.0. 10323 case $host_os in 10324 aix4 | aix4.[01] | aix4.[01].*) 10325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10326 echo ' yes ' 10327 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10328 : 10329 else 10330 can_build_shared=no 10331 fi 10332 ;; 10333 esac 10334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10335 # soname into executable. Probably we can add versioning support to 10336 # collect2, so additional links can be useful in future. 10337 if test "$aix_use_runtimelinking" = yes; then 10338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10339 # instead of lib<name>.a to let people know that these are not 10340 # typical AIX shared libraries. 10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10342 else 10343 # We preserve .a as extension for shared libraries through AIX4.2 10344 # and later when we are not doing run time linking. 10345 library_names_spec='${libname}${release}.a $libname.a' 10346 soname_spec='${libname}${release}${shared_ext}$major' 10347 fi 10348 shlibpath_var=LIBPATH 10349 fi 10350 ;; 10351 10352amigaos*) 10353 case $host_cpu in 10354 powerpc) 10355 # Since July 2007 AmigaOS4 officially supports .so libraries. 10356 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10358 ;; 10359 m68k) 10360 library_names_spec='$libname.ixlibrary $libname.a' 10361 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10362 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' 10363 ;; 10364 esac 10365 ;; 10366 10367beos*) 10368 library_names_spec='${libname}${shared_ext}' 10369 dynamic_linker="$host_os ld.so" 10370 shlibpath_var=LIBRARY_PATH 10371 ;; 10372 10373bsdi[45]*) 10374 version_type=linux # correct to gnu/linux during the next big refactor 10375 need_version=no 10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10377 soname_spec='${libname}${release}${shared_ext}$major' 10378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10379 shlibpath_var=LD_LIBRARY_PATH 10380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10382 # the default ld.so.conf also contains /usr/contrib/lib and 10383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10384 # libtool to hard-code these into programs 10385 ;; 10386 10387cygwin* | mingw* | pw32* | cegcc*) 10388 version_type=windows 10389 shrext_cmds=".dll" 10390 need_version=no 10391 need_lib_prefix=no 10392 10393 case $GCC,$cc_basename in 10394 yes,*) 10395 # gcc 10396 library_names_spec='$libname.dll.a' 10397 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10398 postinstall_cmds='base_file=`basename \${file}`~ 10399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10400 dldir=$destdir/`dirname \$dlpath`~ 10401 test -d \$dldir || mkdir -p \$dldir~ 10402 $install_prog $dir/$dlname \$dldir/$dlname~ 10403 chmod a+x \$dldir/$dlname~ 10404 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10405 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10406 fi' 10407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10408 dlpath=$dir/\$dldll~ 10409 $RM \$dlpath' 10410 shlibpath_overrides_runpath=yes 10411 10412 case $host_os in 10413 cygwin*) 10414 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10416 10417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10418 ;; 10419 mingw* | cegcc*) 10420 # MinGW DLLs use traditional 'lib' prefix 10421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10422 ;; 10423 pw32*) 10424 # pw32 DLLs use 'pw' prefix rather than 'lib' 10425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10426 ;; 10427 esac 10428 dynamic_linker='Win32 ld.exe' 10429 ;; 10430 10431 *,cl*) 10432 # Native MSVC 10433 libname_spec='$name' 10434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10435 library_names_spec='${libname}.dll.lib' 10436 10437 case $build_os in 10438 mingw*) 10439 sys_lib_search_path_spec= 10440 lt_save_ifs=$IFS 10441 IFS=';' 10442 for lt_path in $LIB 10443 do 10444 IFS=$lt_save_ifs 10445 # Let DOS variable expansion print the short 8.3 style file name. 10446 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10447 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10448 done 10449 IFS=$lt_save_ifs 10450 # Convert to MSYS style. 10451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10452 ;; 10453 cygwin*) 10454 # Convert to unix form, then to dos form, then back to unix form 10455 # but this time dos style (no spaces!) so that the unix form looks 10456 # like /cygdrive/c/PROGRA~1:/cygdr... 10457 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10458 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10459 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10460 ;; 10461 *) 10462 sys_lib_search_path_spec="$LIB" 10463 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10464 # It is most probably a Windows format PATH. 10465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10466 else 10467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10468 fi 10469 # FIXME: find the short name or the path components, as spaces are 10470 # common. (e.g. "Program Files" -> "PROGRA~1") 10471 ;; 10472 esac 10473 10474 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10475 postinstall_cmds='base_file=`basename \${file}`~ 10476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10477 dldir=$destdir/`dirname \$dlpath`~ 10478 test -d \$dldir || mkdir -p \$dldir~ 10479 $install_prog $dir/$dlname \$dldir/$dlname' 10480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10481 dlpath=$dir/\$dldll~ 10482 $RM \$dlpath' 10483 shlibpath_overrides_runpath=yes 10484 dynamic_linker='Win32 link.exe' 10485 ;; 10486 10487 *) 10488 # Assume MSVC wrapper 10489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10490 dynamic_linker='Win32 ld.exe' 10491 ;; 10492 esac 10493 # FIXME: first we should search . and the directory the executable is in 10494 shlibpath_var=PATH 10495 ;; 10496 10497darwin* | rhapsody*) 10498 dynamic_linker="$host_os dyld" 10499 version_type=darwin 10500 need_lib_prefix=no 10501 need_version=no 10502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10503 soname_spec='${libname}${release}${major}$shared_ext' 10504 shlibpath_overrides_runpath=yes 10505 shlibpath_var=DYLD_LIBRARY_PATH 10506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10507 10508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10510 ;; 10511 10512dgux*) 10513 version_type=linux # correct to gnu/linux during the next big refactor 10514 need_lib_prefix=no 10515 need_version=no 10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10517 soname_spec='${libname}${release}${shared_ext}$major' 10518 shlibpath_var=LD_LIBRARY_PATH 10519 ;; 10520 10521freebsd* | dragonfly*) 10522 # DragonFly does not have aout. When/if they implement a new 10523 # versioning mechanism, adjust this. 10524 if test -x /usr/bin/objformat; then 10525 objformat=`/usr/bin/objformat` 10526 else 10527 case $host_os in 10528 freebsd[23].*) objformat=aout ;; 10529 *) objformat=elf ;; 10530 esac 10531 fi 10532 version_type=freebsd-$objformat 10533 case $version_type in 10534 freebsd-elf*) 10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10536 need_version=no 10537 need_lib_prefix=no 10538 ;; 10539 freebsd-*) 10540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10541 need_version=yes 10542 ;; 10543 esac 10544 shlibpath_var=LD_LIBRARY_PATH 10545 case $host_os in 10546 freebsd2.*) 10547 shlibpath_overrides_runpath=yes 10548 ;; 10549 freebsd3.[01]* | freebsdelf3.[01]*) 10550 shlibpath_overrides_runpath=yes 10551 hardcode_into_libs=yes 10552 ;; 10553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10555 shlibpath_overrides_runpath=no 10556 hardcode_into_libs=yes 10557 ;; 10558 *) # from 4.6 on, and DragonFly 10559 shlibpath_overrides_runpath=yes 10560 hardcode_into_libs=yes 10561 ;; 10562 esac 10563 ;; 10564 10565gnu*) 10566 version_type=linux # correct to gnu/linux during the next big refactor 10567 need_lib_prefix=no 10568 need_version=no 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10570 soname_spec='${libname}${release}${shared_ext}$major' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 shlibpath_overrides_runpath=no 10573 hardcode_into_libs=yes 10574 ;; 10575 10576haiku*) 10577 version_type=linux # correct to gnu/linux during the next big refactor 10578 need_lib_prefix=no 10579 need_version=no 10580 dynamic_linker="$host_os runtime_loader" 10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10582 soname_spec='${libname}${release}${shared_ext}$major' 10583 shlibpath_var=LIBRARY_PATH 10584 shlibpath_overrides_runpath=yes 10585 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10586 hardcode_into_libs=yes 10587 ;; 10588 10589hpux9* | hpux10* | hpux11*) 10590 # Give a soname corresponding to the major version so that dld.sl refuses to 10591 # link against other versions. 10592 version_type=sunos 10593 need_lib_prefix=no 10594 need_version=no 10595 case $host_cpu in 10596 ia64*) 10597 shrext_cmds='.so' 10598 hardcode_into_libs=yes 10599 dynamic_linker="$host_os dld.so" 10600 shlibpath_var=LD_LIBRARY_PATH 10601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10603 soname_spec='${libname}${release}${shared_ext}$major' 10604 if test "X$HPUX_IA64_MODE" = X32; then 10605 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10606 else 10607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10608 fi 10609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10610 ;; 10611 hppa*64*) 10612 shrext_cmds='.sl' 10613 hardcode_into_libs=yes 10614 dynamic_linker="$host_os dld.sl" 10615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10618 soname_spec='${libname}${release}${shared_ext}$major' 10619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10621 ;; 10622 *) 10623 shrext_cmds='.sl' 10624 dynamic_linker="$host_os dld.sl" 10625 shlibpath_var=SHLIB_PATH 10626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10628 soname_spec='${libname}${release}${shared_ext}$major' 10629 ;; 10630 esac 10631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10632 postinstall_cmds='chmod 555 $lib' 10633 # or fails outright, so override atomically: 10634 install_override_mode=555 10635 ;; 10636 10637interix[3-9]*) 10638 version_type=linux # correct to gnu/linux during the next big refactor 10639 need_lib_prefix=no 10640 need_version=no 10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10642 soname_spec='${libname}${release}${shared_ext}$major' 10643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10644 shlibpath_var=LD_LIBRARY_PATH 10645 shlibpath_overrides_runpath=no 10646 hardcode_into_libs=yes 10647 ;; 10648 10649irix5* | irix6* | nonstopux*) 10650 case $host_os in 10651 nonstopux*) version_type=nonstopux ;; 10652 *) 10653 if test "$lt_cv_prog_gnu_ld" = yes; then 10654 version_type=linux # correct to gnu/linux during the next big refactor 10655 else 10656 version_type=irix 10657 fi ;; 10658 esac 10659 need_lib_prefix=no 10660 need_version=no 10661 soname_spec='${libname}${release}${shared_ext}$major' 10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10663 case $host_os in 10664 irix5* | nonstopux*) 10665 libsuff= shlibsuff= 10666 ;; 10667 *) 10668 case $LD in # libtool.m4 will add one of these switches to LD 10669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10670 libsuff= shlibsuff= libmagic=32-bit;; 10671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10672 libsuff=32 shlibsuff=N32 libmagic=N32;; 10673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10674 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10675 *) libsuff= shlibsuff= libmagic=never-match;; 10676 esac 10677 ;; 10678 esac 10679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10680 shlibpath_overrides_runpath=no 10681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10683 hardcode_into_libs=yes 10684 ;; 10685 10686# No shared lib support for Linux oldld, aout, or coff. 10687linux*oldld* | linux*aout* | linux*coff*) 10688 dynamic_linker=no 10689 ;; 10690 10691# This must be glibc/ELF. 10692linux* | k*bsd*-gnu | kopensolaris*-gnu) 10693 version_type=linux # correct to gnu/linux during the next big refactor 10694 need_lib_prefix=no 10695 need_version=no 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10697 soname_spec='${libname}${release}${shared_ext}$major' 10698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10699 shlibpath_var=LD_LIBRARY_PATH 10700 shlibpath_overrides_runpath=no 10701 10702 # Some binutils ld are patched to set DT_RUNPATH 10703 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10704 $as_echo_n "(cached) " >&6 10705else 10706 lt_cv_shlibpath_overrides_runpath=no 10707 save_LDFLAGS=$LDFLAGS 10708 save_libdir=$libdir 10709 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10710 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10712/* end confdefs.h. */ 10713 10714int 10715main () 10716{ 10717 10718 ; 10719 return 0; 10720} 10721_ACEOF 10722if ac_fn_c_try_link "$LINENO"; then : 10723 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10724 lt_cv_shlibpath_overrides_runpath=yes 10725fi 10726fi 10727rm -f core conftest.err conftest.$ac_objext \ 10728 conftest$ac_exeext conftest.$ac_ext 10729 LDFLAGS=$save_LDFLAGS 10730 libdir=$save_libdir 10731 10732fi 10733 10734 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10735 10736 # This implies no fast_install, which is unacceptable. 10737 # Some rework will be needed to allow for fast_install 10738 # before this can be enabled. 10739 hardcode_into_libs=yes 10740 10741 # Append ld.so.conf contents to the search path 10742 if test -f /etc/ld.so.conf; then 10743 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' ' '` 10744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10745 fi 10746 10747 # We used to test for /lib/ld.so.1 and disable shared libraries on 10748 # powerpc, because MkLinux only supported shared libraries with the 10749 # GNU dynamic linker. Since this was broken with cross compilers, 10750 # most powerpc-linux boxes support dynamic linking these days and 10751 # people can always --disable-shared, the test was removed, and we 10752 # assume the GNU/Linux dynamic linker is in use. 10753 dynamic_linker='GNU/Linux ld.so' 10754 ;; 10755 10756netbsdelf*-gnu) 10757 version_type=linux 10758 need_lib_prefix=no 10759 need_version=no 10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10761 soname_spec='${libname}${release}${shared_ext}$major' 10762 shlibpath_var=LD_LIBRARY_PATH 10763 shlibpath_overrides_runpath=no 10764 hardcode_into_libs=yes 10765 dynamic_linker='NetBSD ld.elf_so' 10766 ;; 10767 10768netbsd*) 10769 version_type=sunos 10770 need_lib_prefix=no 10771 need_version=no 10772 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10775 dynamic_linker='NetBSD (a.out) ld.so' 10776 else 10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10778 soname_spec='${libname}${release}${shared_ext}$major' 10779 dynamic_linker='NetBSD ld.elf_so' 10780 fi 10781 shlibpath_var=LD_LIBRARY_PATH 10782 shlibpath_overrides_runpath=yes 10783 hardcode_into_libs=yes 10784 ;; 10785 10786newsos6) 10787 version_type=linux # correct to gnu/linux during the next big refactor 10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10789 shlibpath_var=LD_LIBRARY_PATH 10790 shlibpath_overrides_runpath=yes 10791 ;; 10792 10793*nto* | *qnx*) 10794 version_type=qnx 10795 need_lib_prefix=no 10796 need_version=no 10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10798 soname_spec='${libname}${release}${shared_ext}$major' 10799 shlibpath_var=LD_LIBRARY_PATH 10800 shlibpath_overrides_runpath=no 10801 hardcode_into_libs=yes 10802 dynamic_linker='ldqnx.so' 10803 ;; 10804 10805openbsd*) 10806 version_type=sunos 10807 sys_lib_dlsearch_path_spec="/usr/lib" 10808 need_lib_prefix=no 10809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10810 case $host_os in 10811 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10812 *) need_version=no ;; 10813 esac 10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10816 shlibpath_var=LD_LIBRARY_PATH 10817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10818 case $host_os in 10819 openbsd2.[89] | openbsd2.[89].*) 10820 shlibpath_overrides_runpath=no 10821 ;; 10822 *) 10823 shlibpath_overrides_runpath=yes 10824 ;; 10825 esac 10826 else 10827 shlibpath_overrides_runpath=yes 10828 fi 10829 ;; 10830 10831os2*) 10832 libname_spec='$name' 10833 shrext_cmds=".dll" 10834 need_lib_prefix=no 10835 library_names_spec='$libname${shared_ext} $libname.a' 10836 dynamic_linker='OS/2 ld.exe' 10837 shlibpath_var=LIBPATH 10838 ;; 10839 10840osf3* | osf4* | osf5*) 10841 version_type=osf 10842 need_lib_prefix=no 10843 need_version=no 10844 soname_spec='${libname}${release}${shared_ext}$major' 10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10846 shlibpath_var=LD_LIBRARY_PATH 10847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10849 ;; 10850 10851rdos*) 10852 dynamic_linker=no 10853 ;; 10854 10855solaris*) 10856 version_type=linux # correct to gnu/linux during the next big refactor 10857 need_lib_prefix=no 10858 need_version=no 10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10860 soname_spec='${libname}${release}${shared_ext}$major' 10861 shlibpath_var=LD_LIBRARY_PATH 10862 shlibpath_overrides_runpath=yes 10863 hardcode_into_libs=yes 10864 # ldd complains unless libraries are executable 10865 postinstall_cmds='chmod +x $lib' 10866 ;; 10867 10868sunos4*) 10869 version_type=sunos 10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10872 shlibpath_var=LD_LIBRARY_PATH 10873 shlibpath_overrides_runpath=yes 10874 if test "$with_gnu_ld" = yes; then 10875 need_lib_prefix=no 10876 fi 10877 need_version=yes 10878 ;; 10879 10880sysv4 | sysv4.3*) 10881 version_type=linux # correct to gnu/linux during the next big refactor 10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10883 soname_spec='${libname}${release}${shared_ext}$major' 10884 shlibpath_var=LD_LIBRARY_PATH 10885 case $host_vendor in 10886 sni) 10887 shlibpath_overrides_runpath=no 10888 need_lib_prefix=no 10889 runpath_var=LD_RUN_PATH 10890 ;; 10891 siemens) 10892 need_lib_prefix=no 10893 ;; 10894 motorola) 10895 need_lib_prefix=no 10896 need_version=no 10897 shlibpath_overrides_runpath=no 10898 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10899 ;; 10900 esac 10901 ;; 10902 10903sysv4*MP*) 10904 if test -d /usr/nec ;then 10905 version_type=linux # correct to gnu/linux during the next big refactor 10906 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10907 soname_spec='$libname${shared_ext}.$major' 10908 shlibpath_var=LD_LIBRARY_PATH 10909 fi 10910 ;; 10911 10912sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10913 version_type=freebsd-elf 10914 need_lib_prefix=no 10915 need_version=no 10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10917 soname_spec='${libname}${release}${shared_ext}$major' 10918 shlibpath_var=LD_LIBRARY_PATH 10919 shlibpath_overrides_runpath=yes 10920 hardcode_into_libs=yes 10921 if test "$with_gnu_ld" = yes; then 10922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10923 else 10924 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10925 case $host_os in 10926 sco3.2v5*) 10927 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10928 ;; 10929 esac 10930 fi 10931 sys_lib_dlsearch_path_spec='/usr/lib' 10932 ;; 10933 10934tpf*) 10935 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10936 version_type=linux # correct to gnu/linux during the next big refactor 10937 need_lib_prefix=no 10938 need_version=no 10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10940 shlibpath_var=LD_LIBRARY_PATH 10941 shlibpath_overrides_runpath=no 10942 hardcode_into_libs=yes 10943 ;; 10944 10945uts4*) 10946 version_type=linux # correct to gnu/linux during the next big refactor 10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10948 soname_spec='${libname}${release}${shared_ext}$major' 10949 shlibpath_var=LD_LIBRARY_PATH 10950 ;; 10951 10952*) 10953 dynamic_linker=no 10954 ;; 10955esac 10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10957$as_echo "$dynamic_linker" >&6; } 10958test "$dynamic_linker" = no && can_build_shared=no 10959 10960variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10961if test "$GCC" = yes; then 10962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10963fi 10964 10965if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10966 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10967fi 10968if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10969 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10970fi 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11064$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11065hardcode_action= 11066if test -n "$hardcode_libdir_flag_spec" || 11067 test -n "$runpath_var" || 11068 test "X$hardcode_automatic" = "Xyes" ; then 11069 11070 # We can hardcode non-existent directories. 11071 if test "$hardcode_direct" != no && 11072 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11073 # have to relink, otherwise we might link with an installed library 11074 # when we should be linking with a yet-to-be-installed one 11075 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11076 test "$hardcode_minus_L" != no; then 11077 # Linking always hardcodes the temporary library directory. 11078 hardcode_action=relink 11079 else 11080 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11081 hardcode_action=immediate 11082 fi 11083else 11084 # We cannot hardcode anything, or else we can only hardcode existing 11085 # directories. 11086 hardcode_action=unsupported 11087fi 11088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11089$as_echo "$hardcode_action" >&6; } 11090 11091if test "$hardcode_action" = relink || 11092 test "$inherit_rpath" = yes; then 11093 # Fast installation is not supported 11094 enable_fast_install=no 11095elif test "$shlibpath_overrides_runpath" = yes || 11096 test "$enable_shared" = no; then 11097 # Fast installation is not necessary 11098 enable_fast_install=needless 11099fi 11100 11101 11102 11103 11104 11105 11106 if test "x$enable_dlopen" != xyes; then 11107 enable_dlopen=unknown 11108 enable_dlopen_self=unknown 11109 enable_dlopen_self_static=unknown 11110else 11111 lt_cv_dlopen=no 11112 lt_cv_dlopen_libs= 11113 11114 case $host_os in 11115 beos*) 11116 lt_cv_dlopen="load_add_on" 11117 lt_cv_dlopen_libs= 11118 lt_cv_dlopen_self=yes 11119 ;; 11120 11121 mingw* | pw32* | cegcc*) 11122 lt_cv_dlopen="LoadLibrary" 11123 lt_cv_dlopen_libs= 11124 ;; 11125 11126 cygwin*) 11127 lt_cv_dlopen="dlopen" 11128 lt_cv_dlopen_libs= 11129 ;; 11130 11131 darwin*) 11132 # if libdl is installed we need to link against it 11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11134$as_echo_n "checking for dlopen in -ldl... " >&6; } 11135if ${ac_cv_lib_dl_dlopen+:} false; then : 11136 $as_echo_n "(cached) " >&6 11137else 11138 ac_check_lib_save_LIBS=$LIBS 11139LIBS="-ldl $LIBS" 11140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11141/* end confdefs.h. */ 11142 11143/* Override any GCC internal prototype to avoid an error. 11144 Use char because int might match the return type of a GCC 11145 builtin and then its argument prototype would still apply. */ 11146#ifdef __cplusplus 11147extern "C" 11148#endif 11149char dlopen (); 11150int 11151main () 11152{ 11153return dlopen (); 11154 ; 11155 return 0; 11156} 11157_ACEOF 11158if ac_fn_c_try_link "$LINENO"; then : 11159 ac_cv_lib_dl_dlopen=yes 11160else 11161 ac_cv_lib_dl_dlopen=no 11162fi 11163rm -f core conftest.err conftest.$ac_objext \ 11164 conftest$ac_exeext conftest.$ac_ext 11165LIBS=$ac_check_lib_save_LIBS 11166fi 11167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11168$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11169if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11171else 11172 11173 lt_cv_dlopen="dyld" 11174 lt_cv_dlopen_libs= 11175 lt_cv_dlopen_self=yes 11176 11177fi 11178 11179 ;; 11180 11181 *) 11182 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11183if test "x$ac_cv_func_shl_load" = xyes; then : 11184 lt_cv_dlopen="shl_load" 11185else 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11187$as_echo_n "checking for shl_load in -ldld... " >&6; } 11188if ${ac_cv_lib_dld_shl_load+:} false; then : 11189 $as_echo_n "(cached) " >&6 11190else 11191 ac_check_lib_save_LIBS=$LIBS 11192LIBS="-ldld $LIBS" 11193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11194/* end confdefs.h. */ 11195 11196/* Override any GCC internal prototype to avoid an error. 11197 Use char because int might match the return type of a GCC 11198 builtin and then its argument prototype would still apply. */ 11199#ifdef __cplusplus 11200extern "C" 11201#endif 11202char shl_load (); 11203int 11204main () 11205{ 11206return shl_load (); 11207 ; 11208 return 0; 11209} 11210_ACEOF 11211if ac_fn_c_try_link "$LINENO"; then : 11212 ac_cv_lib_dld_shl_load=yes 11213else 11214 ac_cv_lib_dld_shl_load=no 11215fi 11216rm -f core conftest.err conftest.$ac_objext \ 11217 conftest$ac_exeext conftest.$ac_ext 11218LIBS=$ac_check_lib_save_LIBS 11219fi 11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11221$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11222if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11223 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11224else 11225 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11226if test "x$ac_cv_func_dlopen" = xyes; then : 11227 lt_cv_dlopen="dlopen" 11228else 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11230$as_echo_n "checking for dlopen in -ldl... " >&6; } 11231if ${ac_cv_lib_dl_dlopen+:} false; then : 11232 $as_echo_n "(cached) " >&6 11233else 11234 ac_check_lib_save_LIBS=$LIBS 11235LIBS="-ldl $LIBS" 11236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11237/* end confdefs.h. */ 11238 11239/* Override any GCC internal prototype to avoid an error. 11240 Use char because int might match the return type of a GCC 11241 builtin and then its argument prototype would still apply. */ 11242#ifdef __cplusplus 11243extern "C" 11244#endif 11245char dlopen (); 11246int 11247main () 11248{ 11249return dlopen (); 11250 ; 11251 return 0; 11252} 11253_ACEOF 11254if ac_fn_c_try_link "$LINENO"; then : 11255 ac_cv_lib_dl_dlopen=yes 11256else 11257 ac_cv_lib_dl_dlopen=no 11258fi 11259rm -f core conftest.err conftest.$ac_objext \ 11260 conftest$ac_exeext conftest.$ac_ext 11261LIBS=$ac_check_lib_save_LIBS 11262fi 11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11264$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11265if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11267else 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11269$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11270if ${ac_cv_lib_svld_dlopen+:} false; then : 11271 $as_echo_n "(cached) " >&6 11272else 11273 ac_check_lib_save_LIBS=$LIBS 11274LIBS="-lsvld $LIBS" 11275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11276/* end confdefs.h. */ 11277 11278/* Override any GCC internal prototype to avoid an error. 11279 Use char because int might match the return type of a GCC 11280 builtin and then its argument prototype would still apply. */ 11281#ifdef __cplusplus 11282extern "C" 11283#endif 11284char dlopen (); 11285int 11286main () 11287{ 11288return dlopen (); 11289 ; 11290 return 0; 11291} 11292_ACEOF 11293if ac_fn_c_try_link "$LINENO"; then : 11294 ac_cv_lib_svld_dlopen=yes 11295else 11296 ac_cv_lib_svld_dlopen=no 11297fi 11298rm -f core conftest.err conftest.$ac_objext \ 11299 conftest$ac_exeext conftest.$ac_ext 11300LIBS=$ac_check_lib_save_LIBS 11301fi 11302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11303$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11304if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11306else 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11308$as_echo_n "checking for dld_link in -ldld... " >&6; } 11309if ${ac_cv_lib_dld_dld_link+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 ac_check_lib_save_LIBS=$LIBS 11313LIBS="-ldld $LIBS" 11314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11315/* end confdefs.h. */ 11316 11317/* Override any GCC internal prototype to avoid an error. 11318 Use char because int might match the return type of a GCC 11319 builtin and then its argument prototype would still apply. */ 11320#ifdef __cplusplus 11321extern "C" 11322#endif 11323char dld_link (); 11324int 11325main () 11326{ 11327return dld_link (); 11328 ; 11329 return 0; 11330} 11331_ACEOF 11332if ac_fn_c_try_link "$LINENO"; then : 11333 ac_cv_lib_dld_dld_link=yes 11334else 11335 ac_cv_lib_dld_dld_link=no 11336fi 11337rm -f core conftest.err conftest.$ac_objext \ 11338 conftest$ac_exeext conftest.$ac_ext 11339LIBS=$ac_check_lib_save_LIBS 11340fi 11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11342$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11343if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11344 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11345fi 11346 11347 11348fi 11349 11350 11351fi 11352 11353 11354fi 11355 11356 11357fi 11358 11359 11360fi 11361 11362 ;; 11363 esac 11364 11365 if test "x$lt_cv_dlopen" != xno; then 11366 enable_dlopen=yes 11367 else 11368 enable_dlopen=no 11369 fi 11370 11371 case $lt_cv_dlopen in 11372 dlopen) 11373 save_CPPFLAGS="$CPPFLAGS" 11374 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11375 11376 save_LDFLAGS="$LDFLAGS" 11377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11378 11379 save_LIBS="$LIBS" 11380 LIBS="$lt_cv_dlopen_libs $LIBS" 11381 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11383$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11384if ${lt_cv_dlopen_self+:} false; then : 11385 $as_echo_n "(cached) " >&6 11386else 11387 if test "$cross_compiling" = yes; then : 11388 lt_cv_dlopen_self=cross 11389else 11390 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11391 lt_status=$lt_dlunknown 11392 cat > conftest.$ac_ext <<_LT_EOF 11393#line $LINENO "configure" 11394#include "confdefs.h" 11395 11396#if HAVE_DLFCN_H 11397#include <dlfcn.h> 11398#endif 11399 11400#include <stdio.h> 11401 11402#ifdef RTLD_GLOBAL 11403# define LT_DLGLOBAL RTLD_GLOBAL 11404#else 11405# ifdef DL_GLOBAL 11406# define LT_DLGLOBAL DL_GLOBAL 11407# else 11408# define LT_DLGLOBAL 0 11409# endif 11410#endif 11411 11412/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11413 find out it does not work in some platform. */ 11414#ifndef LT_DLLAZY_OR_NOW 11415# ifdef RTLD_LAZY 11416# define LT_DLLAZY_OR_NOW RTLD_LAZY 11417# else 11418# ifdef DL_LAZY 11419# define LT_DLLAZY_OR_NOW DL_LAZY 11420# else 11421# ifdef RTLD_NOW 11422# define LT_DLLAZY_OR_NOW RTLD_NOW 11423# else 11424# ifdef DL_NOW 11425# define LT_DLLAZY_OR_NOW DL_NOW 11426# else 11427# define LT_DLLAZY_OR_NOW 0 11428# endif 11429# endif 11430# endif 11431# endif 11432#endif 11433 11434/* When -fvisbility=hidden is used, assume the code has been annotated 11435 correspondingly for the symbols needed. */ 11436#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11437int fnord () __attribute__((visibility("default"))); 11438#endif 11439 11440int fnord () { return 42; } 11441int main () 11442{ 11443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11444 int status = $lt_dlunknown; 11445 11446 if (self) 11447 { 11448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11449 else 11450 { 11451 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11452 else puts (dlerror ()); 11453 } 11454 /* dlclose (self); */ 11455 } 11456 else 11457 puts (dlerror ()); 11458 11459 return status; 11460} 11461_LT_EOF 11462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11463 (eval $ac_link) 2>&5 11464 ac_status=$? 11465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11466 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11467 (./conftest; exit; ) >&5 2>/dev/null 11468 lt_status=$? 11469 case x$lt_status in 11470 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11471 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11472 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11473 esac 11474 else : 11475 # compilation failed 11476 lt_cv_dlopen_self=no 11477 fi 11478fi 11479rm -fr conftest* 11480 11481 11482fi 11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11484$as_echo "$lt_cv_dlopen_self" >&6; } 11485 11486 if test "x$lt_cv_dlopen_self" = xyes; then 11487 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11489$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11490if ${lt_cv_dlopen_self_static+:} false; then : 11491 $as_echo_n "(cached) " >&6 11492else 11493 if test "$cross_compiling" = yes; then : 11494 lt_cv_dlopen_self_static=cross 11495else 11496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11497 lt_status=$lt_dlunknown 11498 cat > conftest.$ac_ext <<_LT_EOF 11499#line $LINENO "configure" 11500#include "confdefs.h" 11501 11502#if HAVE_DLFCN_H 11503#include <dlfcn.h> 11504#endif 11505 11506#include <stdio.h> 11507 11508#ifdef RTLD_GLOBAL 11509# define LT_DLGLOBAL RTLD_GLOBAL 11510#else 11511# ifdef DL_GLOBAL 11512# define LT_DLGLOBAL DL_GLOBAL 11513# else 11514# define LT_DLGLOBAL 0 11515# endif 11516#endif 11517 11518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11519 find out it does not work in some platform. */ 11520#ifndef LT_DLLAZY_OR_NOW 11521# ifdef RTLD_LAZY 11522# define LT_DLLAZY_OR_NOW RTLD_LAZY 11523# else 11524# ifdef DL_LAZY 11525# define LT_DLLAZY_OR_NOW DL_LAZY 11526# else 11527# ifdef RTLD_NOW 11528# define LT_DLLAZY_OR_NOW RTLD_NOW 11529# else 11530# ifdef DL_NOW 11531# define LT_DLLAZY_OR_NOW DL_NOW 11532# else 11533# define LT_DLLAZY_OR_NOW 0 11534# endif 11535# endif 11536# endif 11537# endif 11538#endif 11539 11540/* When -fvisbility=hidden is used, assume the code has been annotated 11541 correspondingly for the symbols needed. */ 11542#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11543int fnord () __attribute__((visibility("default"))); 11544#endif 11545 11546int fnord () { return 42; } 11547int main () 11548{ 11549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11550 int status = $lt_dlunknown; 11551 11552 if (self) 11553 { 11554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11555 else 11556 { 11557 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11558 else puts (dlerror ()); 11559 } 11560 /* dlclose (self); */ 11561 } 11562 else 11563 puts (dlerror ()); 11564 11565 return status; 11566} 11567_LT_EOF 11568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11569 (eval $ac_link) 2>&5 11570 ac_status=$? 11571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11572 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11573 (./conftest; exit; ) >&5 2>/dev/null 11574 lt_status=$? 11575 case x$lt_status in 11576 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11577 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11578 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11579 esac 11580 else : 11581 # compilation failed 11582 lt_cv_dlopen_self_static=no 11583 fi 11584fi 11585rm -fr conftest* 11586 11587 11588fi 11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11590$as_echo "$lt_cv_dlopen_self_static" >&6; } 11591 fi 11592 11593 CPPFLAGS="$save_CPPFLAGS" 11594 LDFLAGS="$save_LDFLAGS" 11595 LIBS="$save_LIBS" 11596 ;; 11597 esac 11598 11599 case $lt_cv_dlopen_self in 11600 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11601 *) enable_dlopen_self=unknown ;; 11602 esac 11603 11604 case $lt_cv_dlopen_self_static in 11605 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11606 *) enable_dlopen_self_static=unknown ;; 11607 esac 11608fi 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626striplib= 11627old_striplib= 11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11629$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11630if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11631 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11632 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11634$as_echo "yes" >&6; } 11635else 11636# FIXME - insert some real tests, host_os isn't really good enough 11637 case $host_os in 11638 darwin*) 11639 if test -n "$STRIP" ; then 11640 striplib="$STRIP -x" 11641 old_striplib="$STRIP -S" 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11643$as_echo "yes" >&6; } 11644 else 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11646$as_echo "no" >&6; } 11647 fi 11648 ;; 11649 *) 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11651$as_echo "no" >&6; } 11652 ;; 11653 esac 11654fi 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 # Report which library types will actually be built 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11669$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11671$as_echo "$can_build_shared" >&6; } 11672 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11674$as_echo_n "checking whether to build shared libraries... " >&6; } 11675 test "$can_build_shared" = "no" && enable_shared=no 11676 11677 # On AIX, shared libraries and static libraries use the same namespace, and 11678 # are all built from PIC. 11679 case $host_os in 11680 aix3*) 11681 test "$enable_shared" = yes && enable_static=no 11682 if test -n "$RANLIB"; then 11683 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11684 postinstall_cmds='$RANLIB $lib' 11685 fi 11686 ;; 11687 11688 aix[4-9]*) 11689 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11690 test "$enable_shared" = yes && enable_static=no 11691 fi 11692 ;; 11693 esac 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11695$as_echo "$enable_shared" >&6; } 11696 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11698$as_echo_n "checking whether to build static libraries... " >&6; } 11699 # Make sure either enable_shared or enable_static is yes. 11700 test "$enable_shared" = yes || enable_static=yes 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11702$as_echo "$enable_static" >&6; } 11703 11704 11705 11706 11707fi 11708ac_ext=cpp 11709ac_cpp='$CXXCPP $CPPFLAGS' 11710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11713 11714CC="$lt_save_CC" 11715 11716 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11717 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11718 (test "X$CXX" != "Xg++"))) ; then 11719 ac_ext=cpp 11720ac_cpp='$CXXCPP $CPPFLAGS' 11721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11725$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11726if test -z "$CXXCPP"; then 11727 if ${ac_cv_prog_CXXCPP+:} false; then : 11728 $as_echo_n "(cached) " >&6 11729else 11730 # Double quotes because CXXCPP needs to be expanded 11731 for CXXCPP in "$CXX -E" "/lib/cpp" 11732 do 11733 ac_preproc_ok=false 11734for ac_cxx_preproc_warn_flag in '' yes 11735do 11736 # Use a header file that comes with gcc, so configuring glibc 11737 # with a fresh cross-compiler works. 11738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11739 # <limits.h> exists even on freestanding compilers. 11740 # On the NeXT, cc -E runs the code through the compiler's parser, 11741 # not just through cpp. "Syntax error" is here to catch this case. 11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11743/* end confdefs.h. */ 11744#ifdef __STDC__ 11745# include <limits.h> 11746#else 11747# include <assert.h> 11748#endif 11749 Syntax error 11750_ACEOF 11751if ac_fn_cxx_try_cpp "$LINENO"; then : 11752 11753else 11754 # Broken: fails on valid input. 11755continue 11756fi 11757rm -f conftest.err conftest.i conftest.$ac_ext 11758 11759 # OK, works on sane cases. Now check whether nonexistent headers 11760 # can be detected and how. 11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11762/* end confdefs.h. */ 11763#include <ac_nonexistent.h> 11764_ACEOF 11765if ac_fn_cxx_try_cpp "$LINENO"; then : 11766 # Broken: success on invalid input. 11767continue 11768else 11769 # Passes both tests. 11770ac_preproc_ok=: 11771break 11772fi 11773rm -f conftest.err conftest.i conftest.$ac_ext 11774 11775done 11776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11777rm -f conftest.i conftest.err conftest.$ac_ext 11778if $ac_preproc_ok; then : 11779 break 11780fi 11781 11782 done 11783 ac_cv_prog_CXXCPP=$CXXCPP 11784 11785fi 11786 CXXCPP=$ac_cv_prog_CXXCPP 11787else 11788 ac_cv_prog_CXXCPP=$CXXCPP 11789fi 11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11791$as_echo "$CXXCPP" >&6; } 11792ac_preproc_ok=false 11793for ac_cxx_preproc_warn_flag in '' yes 11794do 11795 # Use a header file that comes with gcc, so configuring glibc 11796 # with a fresh cross-compiler works. 11797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11798 # <limits.h> exists even on freestanding compilers. 11799 # On the NeXT, cc -E runs the code through the compiler's parser, 11800 # not just through cpp. "Syntax error" is here to catch this case. 11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11802/* end confdefs.h. */ 11803#ifdef __STDC__ 11804# include <limits.h> 11805#else 11806# include <assert.h> 11807#endif 11808 Syntax error 11809_ACEOF 11810if ac_fn_cxx_try_cpp "$LINENO"; then : 11811 11812else 11813 # Broken: fails on valid input. 11814continue 11815fi 11816rm -f conftest.err conftest.i conftest.$ac_ext 11817 11818 # OK, works on sane cases. Now check whether nonexistent headers 11819 # can be detected and how. 11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11821/* end confdefs.h. */ 11822#include <ac_nonexistent.h> 11823_ACEOF 11824if ac_fn_cxx_try_cpp "$LINENO"; then : 11825 # Broken: success on invalid input. 11826continue 11827else 11828 # Passes both tests. 11829ac_preproc_ok=: 11830break 11831fi 11832rm -f conftest.err conftest.i conftest.$ac_ext 11833 11834done 11835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11836rm -f conftest.i conftest.err conftest.$ac_ext 11837if $ac_preproc_ok; then : 11838 11839else 11840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11842as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 11843See \`config.log' for more details" "$LINENO" 5; } 11844fi 11845 11846ac_ext=cpp 11847ac_cpp='$CXXCPP $CPPFLAGS' 11848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11851 11852else 11853 _lt_caught_CXX_error=yes 11854fi 11855 11856ac_ext=cpp 11857ac_cpp='$CXXCPP $CPPFLAGS' 11858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11861 11862archive_cmds_need_lc_CXX=no 11863allow_undefined_flag_CXX= 11864always_export_symbols_CXX=no 11865archive_expsym_cmds_CXX= 11866compiler_needs_object_CXX=no 11867export_dynamic_flag_spec_CXX= 11868hardcode_direct_CXX=no 11869hardcode_direct_absolute_CXX=no 11870hardcode_libdir_flag_spec_CXX= 11871hardcode_libdir_separator_CXX= 11872hardcode_minus_L_CXX=no 11873hardcode_shlibpath_var_CXX=unsupported 11874hardcode_automatic_CXX=no 11875inherit_rpath_CXX=no 11876module_cmds_CXX= 11877module_expsym_cmds_CXX= 11878link_all_deplibs_CXX=unknown 11879old_archive_cmds_CXX=$old_archive_cmds 11880reload_flag_CXX=$reload_flag 11881reload_cmds_CXX=$reload_cmds 11882no_undefined_flag_CXX= 11883whole_archive_flag_spec_CXX= 11884enable_shared_with_static_runtimes_CXX=no 11885 11886# Source file extension for C++ test sources. 11887ac_ext=cpp 11888 11889# Object file extension for compiled C++ test sources. 11890objext=o 11891objext_CXX=$objext 11892 11893# No sense in running all these tests if we already determined that 11894# the CXX compiler isn't working. Some variables (like enable_shared) 11895# are currently assumed to apply to all compilers on this platform, 11896# and will be corrupted by setting them based on a non-working compiler. 11897if test "$_lt_caught_CXX_error" != yes; then 11898 # Code to be used in simple compile tests 11899 lt_simple_compile_test_code="int some_variable = 0;" 11900 11901 # Code to be used in simple link tests 11902 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11903 11904 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11905 11906 11907 11908 11909 11910 11911# If no C compiler was specified, use CC. 11912LTCC=${LTCC-"$CC"} 11913 11914# If no C compiler flags were specified, use CFLAGS. 11915LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11916 11917# Allow CC to be a program name with arguments. 11918compiler=$CC 11919 11920 11921 # save warnings/boilerplate of simple test code 11922 ac_outfile=conftest.$ac_objext 11923echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11924eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11925_lt_compiler_boilerplate=`cat conftest.err` 11926$RM conftest* 11927 11928 ac_outfile=conftest.$ac_objext 11929echo "$lt_simple_link_test_code" >conftest.$ac_ext 11930eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11931_lt_linker_boilerplate=`cat conftest.err` 11932$RM -r conftest* 11933 11934 11935 # Allow CC to be a program name with arguments. 11936 lt_save_CC=$CC 11937 lt_save_CFLAGS=$CFLAGS 11938 lt_save_LD=$LD 11939 lt_save_GCC=$GCC 11940 GCC=$GXX 11941 lt_save_with_gnu_ld=$with_gnu_ld 11942 lt_save_path_LD=$lt_cv_path_LD 11943 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11944 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11945 else 11946 $as_unset lt_cv_prog_gnu_ld 11947 fi 11948 if test -n "${lt_cv_path_LDCXX+set}"; then 11949 lt_cv_path_LD=$lt_cv_path_LDCXX 11950 else 11951 $as_unset lt_cv_path_LD 11952 fi 11953 test -z "${LDCXX+set}" || LD=$LDCXX 11954 CC=${CXX-"c++"} 11955 CFLAGS=$CXXFLAGS 11956 compiler=$CC 11957 compiler_CXX=$CC 11958 for cc_temp in $compiler""; do 11959 case $cc_temp in 11960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11962 \-*) ;; 11963 *) break;; 11964 esac 11965done 11966cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11967 11968 11969 if test -n "$compiler"; then 11970 # We don't want -fno-exception when compiling C++ code, so set the 11971 # no_builtin_flag separately 11972 if test "$GXX" = yes; then 11973 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11974 else 11975 lt_prog_compiler_no_builtin_flag_CXX= 11976 fi 11977 11978 if test "$GXX" = yes; then 11979 # Set up default GNU C++ configuration 11980 11981 11982 11983# Check whether --with-gnu-ld was given. 11984if test "${with_gnu_ld+set}" = set; then : 11985 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11986else 11987 with_gnu_ld=no 11988fi 11989 11990ac_prog=ld 11991if test "$GCC" = yes; then 11992 # Check if gcc -print-prog-name=ld gives a path. 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11994$as_echo_n "checking for ld used by $CC... " >&6; } 11995 case $host in 11996 *-*-mingw*) 11997 # gcc leaves a trailing carriage return which upsets mingw 11998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11999 *) 12000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12001 esac 12002 case $ac_prog in 12003 # Accept absolute paths. 12004 [\\/]* | ?:[\\/]*) 12005 re_direlt='/[^/][^/]*/\.\./' 12006 # Canonicalize the pathname of ld 12007 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12008 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12009 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12010 done 12011 test -z "$LD" && LD="$ac_prog" 12012 ;; 12013 "") 12014 # If it fails, then pretend we aren't using GCC. 12015 ac_prog=ld 12016 ;; 12017 *) 12018 # If it is relative, then search for the first ld in PATH. 12019 with_gnu_ld=unknown 12020 ;; 12021 esac 12022elif test "$with_gnu_ld" = yes; then 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12024$as_echo_n "checking for GNU ld... " >&6; } 12025else 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12027$as_echo_n "checking for non-GNU ld... " >&6; } 12028fi 12029if ${lt_cv_path_LD+:} false; then : 12030 $as_echo_n "(cached) " >&6 12031else 12032 if test -z "$LD"; then 12033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12034 for ac_dir in $PATH; do 12035 IFS="$lt_save_ifs" 12036 test -z "$ac_dir" && ac_dir=. 12037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12038 lt_cv_path_LD="$ac_dir/$ac_prog" 12039 # Check to see if the program is GNU ld. I'd rather use --version, 12040 # but apparently some variants of GNU ld only accept -v. 12041 # Break only if it was the GNU/non-GNU ld that we prefer. 12042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12043 *GNU* | *'with BFD'*) 12044 test "$with_gnu_ld" != no && break 12045 ;; 12046 *) 12047 test "$with_gnu_ld" != yes && break 12048 ;; 12049 esac 12050 fi 12051 done 12052 IFS="$lt_save_ifs" 12053else 12054 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12055fi 12056fi 12057 12058LD="$lt_cv_path_LD" 12059if test -n "$LD"; then 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12061$as_echo "$LD" >&6; } 12062else 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12064$as_echo "no" >&6; } 12065fi 12066test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12068$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12069if ${lt_cv_prog_gnu_ld+:} false; then : 12070 $as_echo_n "(cached) " >&6 12071else 12072 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12073case `$LD -v 2>&1 </dev/null` in 12074*GNU* | *'with BFD'*) 12075 lt_cv_prog_gnu_ld=yes 12076 ;; 12077*) 12078 lt_cv_prog_gnu_ld=no 12079 ;; 12080esac 12081fi 12082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12083$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12084with_gnu_ld=$lt_cv_prog_gnu_ld 12085 12086 12087 12088 12089 12090 12091 12092 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12093 # archiving commands below assume that GNU ld is being used. 12094 if test "$with_gnu_ld" = yes; then 12095 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12096 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12097 12098 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12099 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12100 12101 # If archive_cmds runs LD, not CC, wlarc should be empty 12102 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12103 # investigate it a little bit more. (MM) 12104 wlarc='${wl}' 12105 12106 # ancient GNU ld didn't support --whole-archive et. al. 12107 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12108 $GREP 'no-whole-archive' > /dev/null; then 12109 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12110 else 12111 whole_archive_flag_spec_CXX= 12112 fi 12113 else 12114 with_gnu_ld=no 12115 wlarc= 12116 12117 # A generic and very simple default shared library creation 12118 # command for GNU C++ for the case where it uses the native 12119 # linker, instead of GNU ld. If possible, this setting should 12120 # overridden to take advantage of the native linker features on 12121 # the platform it is being used on. 12122 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12123 fi 12124 12125 # Commands to make compiler produce verbose output that lists 12126 # what "hidden" libraries, object files and flags are used when 12127 # linking a shared library. 12128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12129 12130 else 12131 GXX=no 12132 with_gnu_ld=no 12133 wlarc= 12134 fi 12135 12136 # PORTME: fill in a description of your system's C++ link characteristics 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12138$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12139 ld_shlibs_CXX=yes 12140 case $host_os in 12141 aix3*) 12142 # FIXME: insert proper C++ library support 12143 ld_shlibs_CXX=no 12144 ;; 12145 aix[4-9]*) 12146 if test "$host_cpu" = ia64; then 12147 # On IA64, the linker does run time linking by default, so we don't 12148 # have to do anything special. 12149 aix_use_runtimelinking=no 12150 exp_sym_flag='-Bexport' 12151 no_entry_flag="" 12152 else 12153 aix_use_runtimelinking=no 12154 12155 # Test if we are trying to use run time linking or normal 12156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12157 # need to do runtime linking. 12158 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12159 for ld_flag in $LDFLAGS; do 12160 case $ld_flag in 12161 *-brtl*) 12162 aix_use_runtimelinking=yes 12163 break 12164 ;; 12165 esac 12166 done 12167 ;; 12168 esac 12169 12170 exp_sym_flag='-bexport' 12171 no_entry_flag='-bnoentry' 12172 fi 12173 12174 # When large executables or shared objects are built, AIX ld can 12175 # have problems creating the table of contents. If linking a library 12176 # or program results in "error TOC overflow" add -mminimal-toc to 12177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12179 12180 archive_cmds_CXX='' 12181 hardcode_direct_CXX=yes 12182 hardcode_direct_absolute_CXX=yes 12183 hardcode_libdir_separator_CXX=':' 12184 link_all_deplibs_CXX=yes 12185 file_list_spec_CXX='${wl}-f,' 12186 12187 if test "$GXX" = yes; then 12188 case $host_os in aix4.[012]|aix4.[012].*) 12189 # We only want to do this on AIX 4.2 and lower, the check 12190 # below for broken collect2 doesn't work under 4.3+ 12191 collect2name=`${CC} -print-prog-name=collect2` 12192 if test -f "$collect2name" && 12193 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12194 then 12195 # We have reworked collect2 12196 : 12197 else 12198 # We have old collect2 12199 hardcode_direct_CXX=unsupported 12200 # It fails to find uninstalled libraries when the uninstalled 12201 # path is not listed in the libpath. Setting hardcode_minus_L 12202 # to unsupported forces relinking 12203 hardcode_minus_L_CXX=yes 12204 hardcode_libdir_flag_spec_CXX='-L$libdir' 12205 hardcode_libdir_separator_CXX= 12206 fi 12207 esac 12208 shared_flag='-shared' 12209 if test "$aix_use_runtimelinking" = yes; then 12210 shared_flag="$shared_flag "'${wl}-G' 12211 fi 12212 else 12213 # not using gcc 12214 if test "$host_cpu" = ia64; then 12215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12216 # chokes on -Wl,-G. The following line is correct: 12217 shared_flag='-G' 12218 else 12219 if test "$aix_use_runtimelinking" = yes; then 12220 shared_flag='${wl}-G' 12221 else 12222 shared_flag='${wl}-bM:SRE' 12223 fi 12224 fi 12225 fi 12226 12227 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12228 # It seems that -bexpall does not export symbols beginning with 12229 # underscore (_), so it is better to generate a list of symbols to 12230 # export. 12231 always_export_symbols_CXX=yes 12232 if test "$aix_use_runtimelinking" = yes; then 12233 # Warning - without using the other runtime loading flags (-brtl), 12234 # -berok will link without error, but may produce a broken library. 12235 allow_undefined_flag_CXX='-berok' 12236 # Determine the default libpath from the value encoded in an empty 12237 # executable. 12238 if test "${lt_cv_aix_libpath+set}" = set; then 12239 aix_libpath=$lt_cv_aix_libpath 12240else 12241 if ${lt_cv_aix_libpath__CXX+:} false; then : 12242 $as_echo_n "(cached) " >&6 12243else 12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245/* end confdefs.h. */ 12246 12247int 12248main () 12249{ 12250 12251 ; 12252 return 0; 12253} 12254_ACEOF 12255if ac_fn_cxx_try_link "$LINENO"; then : 12256 12257 lt_aix_libpath_sed=' 12258 /Import File Strings/,/^$/ { 12259 /^0/ { 12260 s/^0 *\([^ ]*\) *$/\1/ 12261 p 12262 } 12263 }' 12264 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12265 # Check for a 64-bit object if we didn't find anything. 12266 if test -z "$lt_cv_aix_libpath__CXX"; then 12267 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12268 fi 12269fi 12270rm -f core conftest.err conftest.$ac_objext \ 12271 conftest$ac_exeext conftest.$ac_ext 12272 if test -z "$lt_cv_aix_libpath__CXX"; then 12273 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12274 fi 12275 12276fi 12277 12278 aix_libpath=$lt_cv_aix_libpath__CXX 12279fi 12280 12281 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12282 12283 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" 12284 else 12285 if test "$host_cpu" = ia64; then 12286 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12287 allow_undefined_flag_CXX="-z nodefs" 12288 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" 12289 else 12290 # Determine the default libpath from the value encoded in an 12291 # empty executable. 12292 if test "${lt_cv_aix_libpath+set}" = set; then 12293 aix_libpath=$lt_cv_aix_libpath 12294else 12295 if ${lt_cv_aix_libpath__CXX+:} false; then : 12296 $as_echo_n "(cached) " >&6 12297else 12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12299/* end confdefs.h. */ 12300 12301int 12302main () 12303{ 12304 12305 ; 12306 return 0; 12307} 12308_ACEOF 12309if ac_fn_cxx_try_link "$LINENO"; then : 12310 12311 lt_aix_libpath_sed=' 12312 /Import File Strings/,/^$/ { 12313 /^0/ { 12314 s/^0 *\([^ ]*\) *$/\1/ 12315 p 12316 } 12317 }' 12318 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12319 # Check for a 64-bit object if we didn't find anything. 12320 if test -z "$lt_cv_aix_libpath__CXX"; then 12321 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12322 fi 12323fi 12324rm -f core conftest.err conftest.$ac_objext \ 12325 conftest$ac_exeext conftest.$ac_ext 12326 if test -z "$lt_cv_aix_libpath__CXX"; then 12327 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12328 fi 12329 12330fi 12331 12332 aix_libpath=$lt_cv_aix_libpath__CXX 12333fi 12334 12335 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12336 # Warning - without using the other run time loading flags, 12337 # -berok will link without error, but may produce a broken library. 12338 no_undefined_flag_CXX=' ${wl}-bernotok' 12339 allow_undefined_flag_CXX=' ${wl}-berok' 12340 if test "$with_gnu_ld" = yes; then 12341 # We only use this code for GNU lds that support --whole-archive. 12342 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12343 else 12344 # Exported symbols can be pulled into shared objects from archives 12345 whole_archive_flag_spec_CXX='$convenience' 12346 fi 12347 archive_cmds_need_lc_CXX=yes 12348 # This is similar to how AIX traditionally builds its shared 12349 # libraries. 12350 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' 12351 fi 12352 fi 12353 ;; 12354 12355 beos*) 12356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12357 allow_undefined_flag_CXX=unsupported 12358 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12359 # support --undefined. This deserves some investigation. FIXME 12360 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12361 else 12362 ld_shlibs_CXX=no 12363 fi 12364 ;; 12365 12366 chorus*) 12367 case $cc_basename in 12368 *) 12369 # FIXME: insert proper C++ library support 12370 ld_shlibs_CXX=no 12371 ;; 12372 esac 12373 ;; 12374 12375 cygwin* | mingw* | pw32* | cegcc*) 12376 case $GXX,$cc_basename in 12377 ,cl* | no,cl*) 12378 # Native MSVC 12379 # hardcode_libdir_flag_spec is actually meaningless, as there is 12380 # no search path for DLLs. 12381 hardcode_libdir_flag_spec_CXX=' ' 12382 allow_undefined_flag_CXX=unsupported 12383 always_export_symbols_CXX=yes 12384 file_list_spec_CXX='@' 12385 # Tell ltmain to make .lib files, not .a files. 12386 libext=lib 12387 # Tell ltmain to make .dll files, not .so files. 12388 shrext_cmds=".dll" 12389 # FIXME: Setting linknames here is a bad hack. 12390 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12391 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12392 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12393 else 12394 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12395 fi~ 12396 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12397 linknames=' 12398 # The linker will not automatically build a static lib if we build a DLL. 12399 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12400 enable_shared_with_static_runtimes_CXX=yes 12401 # Don't use ranlib 12402 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12403 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12404 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12405 case $lt_outputfile in 12406 *.exe|*.EXE) ;; 12407 *) 12408 lt_outputfile="$lt_outputfile.exe" 12409 lt_tool_outputfile="$lt_tool_outputfile.exe" 12410 ;; 12411 esac~ 12412 func_to_tool_file "$lt_outputfile"~ 12413 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12414 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12415 $RM "$lt_outputfile.manifest"; 12416 fi' 12417 ;; 12418 *) 12419 # g++ 12420 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12421 # as there is no search path for DLLs. 12422 hardcode_libdir_flag_spec_CXX='-L$libdir' 12423 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12424 allow_undefined_flag_CXX=unsupported 12425 always_export_symbols_CXX=no 12426 enable_shared_with_static_runtimes_CXX=yes 12427 12428 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12429 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' 12430 # If the export-symbols file already is a .def file (1st line 12431 # is EXPORTS), use it as is; otherwise, prepend... 12432 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12433 cp $export_symbols $output_objdir/$soname.def; 12434 else 12435 echo EXPORTS > $output_objdir/$soname.def; 12436 cat $export_symbols >> $output_objdir/$soname.def; 12437 fi~ 12438 $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' 12439 else 12440 ld_shlibs_CXX=no 12441 fi 12442 ;; 12443 esac 12444 ;; 12445 darwin* | rhapsody*) 12446 12447 12448 archive_cmds_need_lc_CXX=no 12449 hardcode_direct_CXX=no 12450 hardcode_automatic_CXX=yes 12451 hardcode_shlibpath_var_CXX=unsupported 12452 if test "$lt_cv_ld_force_load" = "yes"; then 12453 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\"`' 12454 12455 else 12456 whole_archive_flag_spec_CXX='' 12457 fi 12458 link_all_deplibs_CXX=yes 12459 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12460 case $cc_basename in 12461 ifort*) _lt_dar_can_shared=yes ;; 12462 *) _lt_dar_can_shared=$GCC ;; 12463 esac 12464 if test "$_lt_dar_can_shared" = "yes"; then 12465 output_verbose_link_cmd=func_echo_all 12466 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}" 12467 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12468 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}" 12469 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}" 12470 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12471 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}" 12472 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}" 12473 fi 12474 12475 else 12476 ld_shlibs_CXX=no 12477 fi 12478 12479 ;; 12480 12481 dgux*) 12482 case $cc_basename in 12483 ec++*) 12484 # FIXME: insert proper C++ library support 12485 ld_shlibs_CXX=no 12486 ;; 12487 ghcx*) 12488 # Green Hills C++ Compiler 12489 # FIXME: insert proper C++ library support 12490 ld_shlibs_CXX=no 12491 ;; 12492 *) 12493 # FIXME: insert proper C++ library support 12494 ld_shlibs_CXX=no 12495 ;; 12496 esac 12497 ;; 12498 12499 freebsd2.*) 12500 # C++ shared libraries reported to be fairly broken before 12501 # switch to ELF 12502 ld_shlibs_CXX=no 12503 ;; 12504 12505 freebsd-elf*) 12506 archive_cmds_need_lc_CXX=no 12507 ;; 12508 12509 freebsd* | dragonfly*) 12510 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12511 # conventions 12512 ld_shlibs_CXX=yes 12513 ;; 12514 12515 gnu*) 12516 ;; 12517 12518 haiku*) 12519 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12520 link_all_deplibs_CXX=yes 12521 ;; 12522 12523 hpux9*) 12524 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12525 hardcode_libdir_separator_CXX=: 12526 export_dynamic_flag_spec_CXX='${wl}-E' 12527 hardcode_direct_CXX=yes 12528 hardcode_minus_L_CXX=yes # Not in the search PATH, 12529 # but as the default 12530 # location of the library. 12531 12532 case $cc_basename in 12533 CC*) 12534 # FIXME: insert proper C++ library support 12535 ld_shlibs_CXX=no 12536 ;; 12537 aCC*) 12538 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' 12539 # Commands to make compiler produce verbose output that lists 12540 # what "hidden" libraries, object files and flags are used when 12541 # linking a shared library. 12542 # 12543 # There doesn't appear to be a way to prevent this compiler from 12544 # explicitly linking system object files so we need to strip them 12545 # from the output so that they don't get included in the library 12546 # dependencies. 12547 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"' 12548 ;; 12549 *) 12550 if test "$GXX" = yes; then 12551 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' 12552 else 12553 # FIXME: insert proper C++ library support 12554 ld_shlibs_CXX=no 12555 fi 12556 ;; 12557 esac 12558 ;; 12559 12560 hpux10*|hpux11*) 12561 if test $with_gnu_ld = no; then 12562 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12563 hardcode_libdir_separator_CXX=: 12564 12565 case $host_cpu in 12566 hppa*64*|ia64*) 12567 ;; 12568 *) 12569 export_dynamic_flag_spec_CXX='${wl}-E' 12570 ;; 12571 esac 12572 fi 12573 case $host_cpu in 12574 hppa*64*|ia64*) 12575 hardcode_direct_CXX=no 12576 hardcode_shlibpath_var_CXX=no 12577 ;; 12578 *) 12579 hardcode_direct_CXX=yes 12580 hardcode_direct_absolute_CXX=yes 12581 hardcode_minus_L_CXX=yes # Not in the search PATH, 12582 # but as the default 12583 # location of the library. 12584 ;; 12585 esac 12586 12587 case $cc_basename in 12588 CC*) 12589 # FIXME: insert proper C++ library support 12590 ld_shlibs_CXX=no 12591 ;; 12592 aCC*) 12593 case $host_cpu in 12594 hppa*64*) 12595 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12596 ;; 12597 ia64*) 12598 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12599 ;; 12600 *) 12601 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12602 ;; 12603 esac 12604 # Commands to make compiler produce verbose output that lists 12605 # what "hidden" libraries, object files and flags are used when 12606 # linking a shared library. 12607 # 12608 # There doesn't appear to be a way to prevent this compiler from 12609 # explicitly linking system object files so we need to strip them 12610 # from the output so that they don't get included in the library 12611 # dependencies. 12612 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"' 12613 ;; 12614 *) 12615 if test "$GXX" = yes; then 12616 if test $with_gnu_ld = no; then 12617 case $host_cpu in 12618 hppa*64*) 12619 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12620 ;; 12621 ia64*) 12622 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12623 ;; 12624 *) 12625 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12626 ;; 12627 esac 12628 fi 12629 else 12630 # FIXME: insert proper C++ library support 12631 ld_shlibs_CXX=no 12632 fi 12633 ;; 12634 esac 12635 ;; 12636 12637 interix[3-9]*) 12638 hardcode_direct_CXX=no 12639 hardcode_shlibpath_var_CXX=no 12640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12641 export_dynamic_flag_spec_CXX='${wl}-E' 12642 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12643 # Instead, shared libraries are loaded at an image base (0x10000000 by 12644 # default) and relocated if they conflict, which is a slow very memory 12645 # consuming and fragmenting process. To avoid this, we pick a random, 12646 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12647 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12648 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' 12649 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' 12650 ;; 12651 irix5* | irix6*) 12652 case $cc_basename in 12653 CC*) 12654 # SGI C++ 12655 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' 12656 12657 # Archives containing C++ object files must be created using 12658 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12659 # necessary to make sure instantiated templates are included 12660 # in the archive. 12661 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12662 ;; 12663 *) 12664 if test "$GXX" = yes; then 12665 if test "$with_gnu_ld" = no; then 12666 archive_cmds_CXX='$CC -shared $pic_flag -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' 12667 else 12668 archive_cmds_CXX='$CC -shared $pic_flag -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' 12669 fi 12670 fi 12671 link_all_deplibs_CXX=yes 12672 ;; 12673 esac 12674 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12675 hardcode_libdir_separator_CXX=: 12676 inherit_rpath_CXX=yes 12677 ;; 12678 12679 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12680 case $cc_basename in 12681 KCC*) 12682 # Kuck and Associates, Inc. (KAI) C++ Compiler 12683 12684 # KCC will only create a shared library if the output file 12685 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12686 # to its proper name (with version) after linking. 12687 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' 12688 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' 12689 # Commands to make compiler produce verbose output that lists 12690 # what "hidden" libraries, object files and flags are used when 12691 # linking a shared library. 12692 # 12693 # There doesn't appear to be a way to prevent this compiler from 12694 # explicitly linking system object files so we need to strip them 12695 # from the output so that they don't get included in the library 12696 # dependencies. 12697 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"' 12698 12699 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12700 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12701 12702 # Archives containing C++ object files must be created using 12703 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12704 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12705 ;; 12706 icpc* | ecpc* ) 12707 # Intel C++ 12708 with_gnu_ld=yes 12709 # version 8.0 and above of icpc choke on multiply defined symbols 12710 # if we add $predep_objects and $postdep_objects, however 7.1 and 12711 # earlier do not add the objects themselves. 12712 case `$CC -V 2>&1` in 12713 *"Version 7."*) 12714 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12715 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' 12716 ;; 12717 *) # Version 8.0 or newer 12718 tmp_idyn= 12719 case $host_cpu in 12720 ia64*) tmp_idyn=' -i_dynamic';; 12721 esac 12722 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12723 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' 12724 ;; 12725 esac 12726 archive_cmds_need_lc_CXX=no 12727 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12728 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12729 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12730 ;; 12731 pgCC* | pgcpp*) 12732 # Portland Group C++ compiler 12733 case `$CC -V` in 12734 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12735 prelink_cmds_CXX='tpldir=Template.dir~ 12736 rm -rf $tpldir~ 12737 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12738 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12739 old_archive_cmds_CXX='tpldir=Template.dir~ 12740 rm -rf $tpldir~ 12741 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12742 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12743 $RANLIB $oldlib' 12744 archive_cmds_CXX='tpldir=Template.dir~ 12745 rm -rf $tpldir~ 12746 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12747 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12748 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12749 rm -rf $tpldir~ 12750 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12751 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12752 ;; 12753 *) # Version 6 and above use weak symbols 12754 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12755 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' 12756 ;; 12757 esac 12758 12759 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12761 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' 12762 ;; 12763 cxx*) 12764 # Compaq C++ 12765 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12766 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' 12767 12768 runpath_var=LD_RUN_PATH 12769 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12770 hardcode_libdir_separator_CXX=: 12771 12772 # Commands to make compiler produce verbose output that lists 12773 # what "hidden" libraries, object files and flags are used when 12774 # linking a shared library. 12775 # 12776 # There doesn't appear to be a way to prevent this compiler from 12777 # explicitly linking system object files so we need to strip them 12778 # from the output so that they don't get included in the library 12779 # dependencies. 12780 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' 12781 ;; 12782 xl* | mpixl* | bgxl*) 12783 # IBM XL 8.0 on PPC, with GNU ld 12784 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12785 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12786 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12787 if test "x$supports_anon_versioning" = xyes; then 12788 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12789 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12790 echo "local: *; };" >> $output_objdir/$libname.ver~ 12791 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12792 fi 12793 ;; 12794 *) 12795 case `$CC -V 2>&1 | sed 5q` in 12796 *Sun\ C*) 12797 # Sun C++ 5.9 12798 no_undefined_flag_CXX=' -zdefs' 12799 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12800 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' 12801 hardcode_libdir_flag_spec_CXX='-R$libdir' 12802 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' 12803 compiler_needs_object_CXX=yes 12804 12805 # Not sure whether something based on 12806 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12807 # would be better. 12808 output_verbose_link_cmd='func_echo_all' 12809 12810 # Archives containing C++ object files must be created using 12811 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12812 # necessary to make sure instantiated templates are included 12813 # in the archive. 12814 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12815 ;; 12816 esac 12817 ;; 12818 esac 12819 ;; 12820 12821 lynxos*) 12822 # FIXME: insert proper C++ library support 12823 ld_shlibs_CXX=no 12824 ;; 12825 12826 m88k*) 12827 # FIXME: insert proper C++ library support 12828 ld_shlibs_CXX=no 12829 ;; 12830 12831 mvs*) 12832 case $cc_basename in 12833 cxx*) 12834 # FIXME: insert proper C++ library support 12835 ld_shlibs_CXX=no 12836 ;; 12837 *) 12838 # FIXME: insert proper C++ library support 12839 ld_shlibs_CXX=no 12840 ;; 12841 esac 12842 ;; 12843 12844 netbsd*) 12845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12846 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12847 wlarc= 12848 hardcode_libdir_flag_spec_CXX='-R$libdir' 12849 hardcode_direct_CXX=yes 12850 hardcode_shlibpath_var_CXX=no 12851 fi 12852 # Workaround some broken pre-1.5 toolchains 12853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12854 ;; 12855 12856 *nto* | *qnx*) 12857 ld_shlibs_CXX=yes 12858 ;; 12859 12860 openbsd2*) 12861 # C++ shared libraries are fairly broken 12862 ld_shlibs_CXX=no 12863 ;; 12864 12865 openbsd*) 12866 if test -f /usr/libexec/ld.so; then 12867 hardcode_direct_CXX=yes 12868 hardcode_shlibpath_var_CXX=no 12869 hardcode_direct_absolute_CXX=yes 12870 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12873 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12874 export_dynamic_flag_spec_CXX='${wl}-E' 12875 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12876 fi 12877 output_verbose_link_cmd=func_echo_all 12878 else 12879 ld_shlibs_CXX=no 12880 fi 12881 ;; 12882 12883 osf3* | osf4* | osf5*) 12884 case $cc_basename in 12885 KCC*) 12886 # Kuck and Associates, Inc. (KAI) C++ Compiler 12887 12888 # KCC will only create a shared library if the output file 12889 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12890 # to its proper name (with version) after linking. 12891 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' 12892 12893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12894 hardcode_libdir_separator_CXX=: 12895 12896 # Archives containing C++ object files must be created using 12897 # the KAI C++ compiler. 12898 case $host in 12899 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12900 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12901 esac 12902 ;; 12903 RCC*) 12904 # Rational C++ 2.4.1 12905 # FIXME: insert proper C++ library support 12906 ld_shlibs_CXX=no 12907 ;; 12908 cxx*) 12909 case $host in 12910 osf3*) 12911 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12912 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' 12913 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12914 ;; 12915 *) 12916 allow_undefined_flag_CXX=' -expect_unresolved \*' 12917 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' 12918 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12919 echo "-hidden">> $lib.exp~ 12920 $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~ 12921 $RM $lib.exp' 12922 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12923 ;; 12924 esac 12925 12926 hardcode_libdir_separator_CXX=: 12927 12928 # Commands to make compiler produce verbose output that lists 12929 # what "hidden" libraries, object files and flags are used when 12930 # linking a shared library. 12931 # 12932 # There doesn't appear to be a way to prevent this compiler from 12933 # explicitly linking system object files so we need to strip them 12934 # from the output so that they don't get included in the library 12935 # dependencies. 12936 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"' 12937 ;; 12938 *) 12939 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12940 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12941 case $host in 12942 osf3*) 12943 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' 12944 ;; 12945 *) 12946 archive_cmds_CXX='$CC -shared $pic_flag -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' 12947 ;; 12948 esac 12949 12950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12951 hardcode_libdir_separator_CXX=: 12952 12953 # Commands to make compiler produce verbose output that lists 12954 # what "hidden" libraries, object files and flags are used when 12955 # linking a shared library. 12956 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12957 12958 else 12959 # FIXME: insert proper C++ library support 12960 ld_shlibs_CXX=no 12961 fi 12962 ;; 12963 esac 12964 ;; 12965 12966 psos*) 12967 # FIXME: insert proper C++ library support 12968 ld_shlibs_CXX=no 12969 ;; 12970 12971 sunos4*) 12972 case $cc_basename in 12973 CC*) 12974 # Sun C++ 4.x 12975 # FIXME: insert proper C++ library support 12976 ld_shlibs_CXX=no 12977 ;; 12978 lcc*) 12979 # Lucid 12980 # FIXME: insert proper C++ library support 12981 ld_shlibs_CXX=no 12982 ;; 12983 *) 12984 # FIXME: insert proper C++ library support 12985 ld_shlibs_CXX=no 12986 ;; 12987 esac 12988 ;; 12989 12990 solaris*) 12991 case $cc_basename in 12992 CC* | sunCC*) 12993 # Sun C++ 4.2, 5.x and Centerline C++ 12994 archive_cmds_need_lc_CXX=yes 12995 no_undefined_flag_CXX=' -zdefs' 12996 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12997 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12998 $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' 12999 13000 hardcode_libdir_flag_spec_CXX='-R$libdir' 13001 hardcode_shlibpath_var_CXX=no 13002 case $host_os in 13003 solaris2.[0-5] | solaris2.[0-5].*) ;; 13004 *) 13005 # The compiler driver will combine and reorder linker options, 13006 # but understands `-z linker_flag'. 13007 # Supported since Solaris 2.6 (maybe 2.5.1?) 13008 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13009 ;; 13010 esac 13011 link_all_deplibs_CXX=yes 13012 13013 output_verbose_link_cmd='func_echo_all' 13014 13015 # Archives containing C++ object files must be created using 13016 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13017 # necessary to make sure instantiated templates are included 13018 # in the archive. 13019 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13020 ;; 13021 gcx*) 13022 # Green Hills C++ Compiler 13023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13024 13025 # The C++ compiler must be used to create the archive. 13026 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13027 ;; 13028 *) 13029 # GNU C++ compiler with Solaris linker 13030 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13031 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13032 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13033 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13034 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13035 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13036 13037 # Commands to make compiler produce verbose output that lists 13038 # what "hidden" libraries, object files and flags are used when 13039 # linking a shared library. 13040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13041 else 13042 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13043 # platform. 13044 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13046 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13047 13048 # Commands to make compiler produce verbose output that lists 13049 # what "hidden" libraries, object files and flags are used when 13050 # linking a shared library. 13051 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13052 fi 13053 13054 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13055 case $host_os in 13056 solaris2.[0-5] | solaris2.[0-5].*) ;; 13057 *) 13058 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13059 ;; 13060 esac 13061 fi 13062 ;; 13063 esac 13064 ;; 13065 13066 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13067 no_undefined_flag_CXX='${wl}-z,text' 13068 archive_cmds_need_lc_CXX=no 13069 hardcode_shlibpath_var_CXX=no 13070 runpath_var='LD_RUN_PATH' 13071 13072 case $cc_basename in 13073 CC*) 13074 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13075 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13076 ;; 13077 *) 13078 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13079 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13080 ;; 13081 esac 13082 ;; 13083 13084 sysv5* | sco3.2v5* | sco5v6*) 13085 # Note: We can NOT use -z defs as we might desire, because we do not 13086 # link with -lc, and that would cause any symbols used from libc to 13087 # always be unresolved, which means just about no library would 13088 # ever link correctly. If we're not using GNU ld we use -z text 13089 # though, which does catch some bad symbols but isn't as heavy-handed 13090 # as -z defs. 13091 no_undefined_flag_CXX='${wl}-z,text' 13092 allow_undefined_flag_CXX='${wl}-z,nodefs' 13093 archive_cmds_need_lc_CXX=no 13094 hardcode_shlibpath_var_CXX=no 13095 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13096 hardcode_libdir_separator_CXX=':' 13097 link_all_deplibs_CXX=yes 13098 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13099 runpath_var='LD_RUN_PATH' 13100 13101 case $cc_basename in 13102 CC*) 13103 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13104 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13105 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13106 '"$old_archive_cmds_CXX" 13107 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13108 '"$reload_cmds_CXX" 13109 ;; 13110 *) 13111 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13112 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13113 ;; 13114 esac 13115 ;; 13116 13117 tandem*) 13118 case $cc_basename in 13119 NCC*) 13120 # NonStop-UX NCC 3.20 13121 # FIXME: insert proper C++ library support 13122 ld_shlibs_CXX=no 13123 ;; 13124 *) 13125 # FIXME: insert proper C++ library support 13126 ld_shlibs_CXX=no 13127 ;; 13128 esac 13129 ;; 13130 13131 vxworks*) 13132 # FIXME: insert proper C++ library support 13133 ld_shlibs_CXX=no 13134 ;; 13135 13136 *) 13137 # FIXME: insert proper C++ library support 13138 ld_shlibs_CXX=no 13139 ;; 13140 esac 13141 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13143$as_echo "$ld_shlibs_CXX" >&6; } 13144 test "$ld_shlibs_CXX" = no && can_build_shared=no 13145 13146 GCC_CXX="$GXX" 13147 LD_CXX="$LD" 13148 13149 ## CAVEAT EMPTOR: 13150 ## There is no encapsulation within the following macros, do not change 13151 ## the running order or otherwise move them around unless you know exactly 13152 ## what you are doing... 13153 # Dependencies to place before and after the object being linked: 13154predep_objects_CXX= 13155postdep_objects_CXX= 13156predeps_CXX= 13157postdeps_CXX= 13158compiler_lib_search_path_CXX= 13159 13160cat > conftest.$ac_ext <<_LT_EOF 13161class Foo 13162{ 13163public: 13164 Foo (void) { a = 0; } 13165private: 13166 int a; 13167}; 13168_LT_EOF 13169 13170 13171_lt_libdeps_save_CFLAGS=$CFLAGS 13172case "$CC $CFLAGS " in #( 13173*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13174*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13175*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13176esac 13177 13178if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13179 (eval $ac_compile) 2>&5 13180 ac_status=$? 13181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13182 test $ac_status = 0; }; then 13183 # Parse the compiler output and extract the necessary 13184 # objects, libraries and library flags. 13185 13186 # Sentinel used to keep track of whether or not we are before 13187 # the conftest object file. 13188 pre_test_object_deps_done=no 13189 13190 for p in `eval "$output_verbose_link_cmd"`; do 13191 case ${prev}${p} in 13192 13193 -L* | -R* | -l*) 13194 # Some compilers place space between "-{L,R}" and the path. 13195 # Remove the space. 13196 if test $p = "-L" || 13197 test $p = "-R"; then 13198 prev=$p 13199 continue 13200 fi 13201 13202 # Expand the sysroot to ease extracting the directories later. 13203 if test -z "$prev"; then 13204 case $p in 13205 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13206 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13207 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13208 esac 13209 fi 13210 case $p in 13211 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13212 esac 13213 if test "$pre_test_object_deps_done" = no; then 13214 case ${prev} in 13215 -L | -R) 13216 # Internal compiler library paths should come after those 13217 # provided the user. The postdeps already come after the 13218 # user supplied libs so there is no need to process them. 13219 if test -z "$compiler_lib_search_path_CXX"; then 13220 compiler_lib_search_path_CXX="${prev}${p}" 13221 else 13222 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13223 fi 13224 ;; 13225 # The "-l" case would never come before the object being 13226 # linked, so don't bother handling this case. 13227 esac 13228 else 13229 if test -z "$postdeps_CXX"; then 13230 postdeps_CXX="${prev}${p}" 13231 else 13232 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13233 fi 13234 fi 13235 prev= 13236 ;; 13237 13238 *.lto.$objext) ;; # Ignore GCC LTO objects 13239 *.$objext) 13240 # This assumes that the test object file only shows up 13241 # once in the compiler output. 13242 if test "$p" = "conftest.$objext"; then 13243 pre_test_object_deps_done=yes 13244 continue 13245 fi 13246 13247 if test "$pre_test_object_deps_done" = no; then 13248 if test -z "$predep_objects_CXX"; then 13249 predep_objects_CXX="$p" 13250 else 13251 predep_objects_CXX="$predep_objects_CXX $p" 13252 fi 13253 else 13254 if test -z "$postdep_objects_CXX"; then 13255 postdep_objects_CXX="$p" 13256 else 13257 postdep_objects_CXX="$postdep_objects_CXX $p" 13258 fi 13259 fi 13260 ;; 13261 13262 *) ;; # Ignore the rest. 13263 13264 esac 13265 done 13266 13267 # Clean up. 13268 rm -f a.out a.exe 13269else 13270 echo "libtool.m4: error: problem compiling CXX test program" 13271fi 13272 13273$RM -f confest.$objext 13274CFLAGS=$_lt_libdeps_save_CFLAGS 13275 13276# PORTME: override above test on systems where it is broken 13277case $host_os in 13278interix[3-9]*) 13279 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13280 # hack all around it, let's just trust "g++" to DTRT. 13281 predep_objects_CXX= 13282 postdep_objects_CXX= 13283 postdeps_CXX= 13284 ;; 13285 13286linux*) 13287 case `$CC -V 2>&1 | sed 5q` in 13288 *Sun\ C*) 13289 # Sun C++ 5.9 13290 13291 # The more standards-conforming stlport4 library is 13292 # incompatible with the Cstd library. Avoid specifying 13293 # it if it's in CXXFLAGS. Ignore libCrun as 13294 # -library=stlport4 depends on it. 13295 case " $CXX $CXXFLAGS " in 13296 *" -library=stlport4 "*) 13297 solaris_use_stlport4=yes 13298 ;; 13299 esac 13300 13301 if test "$solaris_use_stlport4" != yes; then 13302 postdeps_CXX='-library=Cstd -library=Crun' 13303 fi 13304 ;; 13305 esac 13306 ;; 13307 13308solaris*) 13309 case $cc_basename in 13310 CC* | sunCC*) 13311 # The more standards-conforming stlport4 library is 13312 # incompatible with the Cstd library. Avoid specifying 13313 # it if it's in CXXFLAGS. Ignore libCrun as 13314 # -library=stlport4 depends on it. 13315 case " $CXX $CXXFLAGS " in 13316 *" -library=stlport4 "*) 13317 solaris_use_stlport4=yes 13318 ;; 13319 esac 13320 13321 # Adding this requires a known-good setup of shared libraries for 13322 # Sun compiler versions before 5.6, else PIC objects from an old 13323 # archive will be linked into the output, leading to subtle bugs. 13324 if test "$solaris_use_stlport4" != yes; then 13325 postdeps_CXX='-library=Cstd -library=Crun' 13326 fi 13327 ;; 13328 esac 13329 ;; 13330esac 13331 13332 13333case " $postdeps_CXX " in 13334*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13335esac 13336 compiler_lib_search_dirs_CXX= 13337if test -n "${compiler_lib_search_path_CXX}"; then 13338 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13339fi 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 lt_prog_compiler_wl_CXX= 13372lt_prog_compiler_pic_CXX= 13373lt_prog_compiler_static_CXX= 13374 13375 13376 # C++ specific cases for pic, static, wl, etc. 13377 if test "$GXX" = yes; then 13378 lt_prog_compiler_wl_CXX='-Wl,' 13379 lt_prog_compiler_static_CXX='-static' 13380 13381 case $host_os in 13382 aix*) 13383 # All AIX code is PIC. 13384 if test "$host_cpu" = ia64; then 13385 # AIX 5 now supports IA64 processor 13386 lt_prog_compiler_static_CXX='-Bstatic' 13387 fi 13388 ;; 13389 13390 amigaos*) 13391 case $host_cpu in 13392 powerpc) 13393 # see comment about AmigaOS4 .so support 13394 lt_prog_compiler_pic_CXX='-fPIC' 13395 ;; 13396 m68k) 13397 # FIXME: we need at least 68020 code to build shared libraries, but 13398 # adding the `-m68020' flag to GCC prevents building anything better, 13399 # like `-m68040'. 13400 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13401 ;; 13402 esac 13403 ;; 13404 13405 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13406 # PIC is the default for these OSes. 13407 ;; 13408 mingw* | cygwin* | os2* | pw32* | cegcc*) 13409 # This hack is so that the source file can tell whether it is being 13410 # built for inclusion in a dll (and should export symbols for example). 13411 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13412 # (--disable-auto-import) libraries 13413 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13414 ;; 13415 darwin* | rhapsody*) 13416 # PIC is the default on this platform 13417 # Common symbols not allowed in MH_DYLIB files 13418 lt_prog_compiler_pic_CXX='-fno-common' 13419 ;; 13420 *djgpp*) 13421 # DJGPP does not support shared libraries at all 13422 lt_prog_compiler_pic_CXX= 13423 ;; 13424 haiku*) 13425 # PIC is the default for Haiku. 13426 # The "-static" flag exists, but is broken. 13427 lt_prog_compiler_static_CXX= 13428 ;; 13429 interix[3-9]*) 13430 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13431 # Instead, we relocate shared libraries at runtime. 13432 ;; 13433 sysv4*MP*) 13434 if test -d /usr/nec; then 13435 lt_prog_compiler_pic_CXX=-Kconform_pic 13436 fi 13437 ;; 13438 hpux*) 13439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13441 # sets the default TLS model and affects inlining. 13442 case $host_cpu in 13443 hppa*64*) 13444 ;; 13445 *) 13446 lt_prog_compiler_pic_CXX='-fPIC' 13447 ;; 13448 esac 13449 ;; 13450 *qnx* | *nto*) 13451 # QNX uses GNU C++, but need to define -shared option too, otherwise 13452 # it will coredump. 13453 lt_prog_compiler_pic_CXX='-fPIC -shared' 13454 ;; 13455 *) 13456 lt_prog_compiler_pic_CXX='-fPIC' 13457 ;; 13458 esac 13459 else 13460 case $host_os in 13461 aix[4-9]*) 13462 # All AIX code is PIC. 13463 if test "$host_cpu" = ia64; then 13464 # AIX 5 now supports IA64 processor 13465 lt_prog_compiler_static_CXX='-Bstatic' 13466 else 13467 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13468 fi 13469 ;; 13470 chorus*) 13471 case $cc_basename in 13472 cxch68*) 13473 # Green Hills C++ Compiler 13474 # _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" 13475 ;; 13476 esac 13477 ;; 13478 mingw* | cygwin* | os2* | pw32* | cegcc*) 13479 # This hack is so that the source file can tell whether it is being 13480 # built for inclusion in a dll (and should export symbols for example). 13481 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13482 ;; 13483 dgux*) 13484 case $cc_basename in 13485 ec++*) 13486 lt_prog_compiler_pic_CXX='-KPIC' 13487 ;; 13488 ghcx*) 13489 # Green Hills C++ Compiler 13490 lt_prog_compiler_pic_CXX='-pic' 13491 ;; 13492 *) 13493 ;; 13494 esac 13495 ;; 13496 freebsd* | dragonfly*) 13497 # FreeBSD uses GNU C++ 13498 ;; 13499 hpux9* | hpux10* | hpux11*) 13500 case $cc_basename in 13501 CC*) 13502 lt_prog_compiler_wl_CXX='-Wl,' 13503 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13504 if test "$host_cpu" != ia64; then 13505 lt_prog_compiler_pic_CXX='+Z' 13506 fi 13507 ;; 13508 aCC*) 13509 lt_prog_compiler_wl_CXX='-Wl,' 13510 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13511 case $host_cpu in 13512 hppa*64*|ia64*) 13513 # +Z the default 13514 ;; 13515 *) 13516 lt_prog_compiler_pic_CXX='+Z' 13517 ;; 13518 esac 13519 ;; 13520 *) 13521 ;; 13522 esac 13523 ;; 13524 interix*) 13525 # This is c89, which is MS Visual C++ (no shared libs) 13526 # Anyone wants to do a port? 13527 ;; 13528 irix5* | irix6* | nonstopux*) 13529 case $cc_basename in 13530 CC*) 13531 lt_prog_compiler_wl_CXX='-Wl,' 13532 lt_prog_compiler_static_CXX='-non_shared' 13533 # CC pic flag -KPIC is the default. 13534 ;; 13535 *) 13536 ;; 13537 esac 13538 ;; 13539 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13540 case $cc_basename in 13541 KCC*) 13542 # KAI C++ Compiler 13543 lt_prog_compiler_wl_CXX='--backend -Wl,' 13544 lt_prog_compiler_pic_CXX='-fPIC' 13545 ;; 13546 ecpc* ) 13547 # old Intel C++ for x86_64 which still supported -KPIC. 13548 lt_prog_compiler_wl_CXX='-Wl,' 13549 lt_prog_compiler_pic_CXX='-KPIC' 13550 lt_prog_compiler_static_CXX='-static' 13551 ;; 13552 icpc* ) 13553 # Intel C++, used to be incompatible with GCC. 13554 # ICC 10 doesn't accept -KPIC any more. 13555 lt_prog_compiler_wl_CXX='-Wl,' 13556 lt_prog_compiler_pic_CXX='-fPIC' 13557 lt_prog_compiler_static_CXX='-static' 13558 ;; 13559 pgCC* | pgcpp*) 13560 # Portland Group C++ compiler 13561 lt_prog_compiler_wl_CXX='-Wl,' 13562 lt_prog_compiler_pic_CXX='-fpic' 13563 lt_prog_compiler_static_CXX='-Bstatic' 13564 ;; 13565 cxx*) 13566 # Compaq C++ 13567 # Make sure the PIC flag is empty. It appears that all Alpha 13568 # Linux and Compaq Tru64 Unix objects are PIC. 13569 lt_prog_compiler_pic_CXX= 13570 lt_prog_compiler_static_CXX='-non_shared' 13571 ;; 13572 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13573 # IBM XL 8.0, 9.0 on PPC and BlueGene 13574 lt_prog_compiler_wl_CXX='-Wl,' 13575 lt_prog_compiler_pic_CXX='-qpic' 13576 lt_prog_compiler_static_CXX='-qstaticlink' 13577 ;; 13578 *) 13579 case `$CC -V 2>&1 | sed 5q` in 13580 *Sun\ C*) 13581 # Sun C++ 5.9 13582 lt_prog_compiler_pic_CXX='-KPIC' 13583 lt_prog_compiler_static_CXX='-Bstatic' 13584 lt_prog_compiler_wl_CXX='-Qoption ld ' 13585 ;; 13586 esac 13587 ;; 13588 esac 13589 ;; 13590 lynxos*) 13591 ;; 13592 m88k*) 13593 ;; 13594 mvs*) 13595 case $cc_basename in 13596 cxx*) 13597 lt_prog_compiler_pic_CXX='-W c,exportall' 13598 ;; 13599 *) 13600 ;; 13601 esac 13602 ;; 13603 netbsd* | netbsdelf*-gnu) 13604 ;; 13605 *qnx* | *nto*) 13606 # QNX uses GNU C++, but need to define -shared option too, otherwise 13607 # it will coredump. 13608 lt_prog_compiler_pic_CXX='-fPIC -shared' 13609 ;; 13610 osf3* | osf4* | osf5*) 13611 case $cc_basename in 13612 KCC*) 13613 lt_prog_compiler_wl_CXX='--backend -Wl,' 13614 ;; 13615 RCC*) 13616 # Rational C++ 2.4.1 13617 lt_prog_compiler_pic_CXX='-pic' 13618 ;; 13619 cxx*) 13620 # Digital/Compaq C++ 13621 lt_prog_compiler_wl_CXX='-Wl,' 13622 # Make sure the PIC flag is empty. It appears that all Alpha 13623 # Linux and Compaq Tru64 Unix objects are PIC. 13624 lt_prog_compiler_pic_CXX= 13625 lt_prog_compiler_static_CXX='-non_shared' 13626 ;; 13627 *) 13628 ;; 13629 esac 13630 ;; 13631 psos*) 13632 ;; 13633 solaris*) 13634 case $cc_basename in 13635 CC* | sunCC*) 13636 # Sun C++ 4.2, 5.x and Centerline C++ 13637 lt_prog_compiler_pic_CXX='-KPIC' 13638 lt_prog_compiler_static_CXX='-Bstatic' 13639 lt_prog_compiler_wl_CXX='-Qoption ld ' 13640 ;; 13641 gcx*) 13642 # Green Hills C++ Compiler 13643 lt_prog_compiler_pic_CXX='-PIC' 13644 ;; 13645 *) 13646 ;; 13647 esac 13648 ;; 13649 sunos4*) 13650 case $cc_basename in 13651 CC*) 13652 # Sun C++ 4.x 13653 lt_prog_compiler_pic_CXX='-pic' 13654 lt_prog_compiler_static_CXX='-Bstatic' 13655 ;; 13656 lcc*) 13657 # Lucid 13658 lt_prog_compiler_pic_CXX='-pic' 13659 ;; 13660 *) 13661 ;; 13662 esac 13663 ;; 13664 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13665 case $cc_basename in 13666 CC*) 13667 lt_prog_compiler_wl_CXX='-Wl,' 13668 lt_prog_compiler_pic_CXX='-KPIC' 13669 lt_prog_compiler_static_CXX='-Bstatic' 13670 ;; 13671 esac 13672 ;; 13673 tandem*) 13674 case $cc_basename in 13675 NCC*) 13676 # NonStop-UX NCC 3.20 13677 lt_prog_compiler_pic_CXX='-KPIC' 13678 ;; 13679 *) 13680 ;; 13681 esac 13682 ;; 13683 vxworks*) 13684 ;; 13685 *) 13686 lt_prog_compiler_can_build_shared_CXX=no 13687 ;; 13688 esac 13689 fi 13690 13691case $host_os in 13692 # For platforms which do not support PIC, -DPIC is meaningless: 13693 *djgpp*) 13694 lt_prog_compiler_pic_CXX= 13695 ;; 13696 *) 13697 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13698 ;; 13699esac 13700 13701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13702$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13703if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 13704 $as_echo_n "(cached) " >&6 13705else 13706 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 13707fi 13708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 13709$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 13710lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 13711 13712# 13713# Check to make sure the PIC flag actually works. 13714# 13715if test -n "$lt_prog_compiler_pic_CXX"; then 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13717$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13718if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13719 $as_echo_n "(cached) " >&6 13720else 13721 lt_cv_prog_compiler_pic_works_CXX=no 13722 ac_outfile=conftest.$ac_objext 13723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13724 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13725 # Insert the option either (1) after the last *FLAGS variable, or 13726 # (2) before a word containing "conftest.", or (3) at the end. 13727 # Note that $ac_compile itself does not contain backslashes and begins 13728 # with a dollar sign (not a hyphen), so the echo should work correctly. 13729 # The option is referenced via a variable to avoid confusing sed. 13730 lt_compile=`echo "$ac_compile" | $SED \ 13731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13733 -e 's:$: $lt_compiler_flag:'` 13734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13735 (eval "$lt_compile" 2>conftest.err) 13736 ac_status=$? 13737 cat conftest.err >&5 13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13739 if (exit $ac_status) && test -s "$ac_outfile"; then 13740 # The compiler can only warn and ignore the option if not recognized 13741 # So say no if there are warnings other than the usual output. 13742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13745 lt_cv_prog_compiler_pic_works_CXX=yes 13746 fi 13747 fi 13748 $RM conftest* 13749 13750fi 13751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13752$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13753 13754if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13755 case $lt_prog_compiler_pic_CXX in 13756 "" | " "*) ;; 13757 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13758 esac 13759else 13760 lt_prog_compiler_pic_CXX= 13761 lt_prog_compiler_can_build_shared_CXX=no 13762fi 13763 13764fi 13765 13766 13767 13768 13769 13770# 13771# Check to make sure the static flag actually works. 13772# 13773wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13775$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13776if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 13777 $as_echo_n "(cached) " >&6 13778else 13779 lt_cv_prog_compiler_static_works_CXX=no 13780 save_LDFLAGS="$LDFLAGS" 13781 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13782 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13784 # The linker can only warn and ignore the option if not recognized 13785 # So say no if there are warnings 13786 if test -s conftest.err; then 13787 # Append any errors to the config.log. 13788 cat conftest.err 1>&5 13789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13791 if diff conftest.exp conftest.er2 >/dev/null; then 13792 lt_cv_prog_compiler_static_works_CXX=yes 13793 fi 13794 else 13795 lt_cv_prog_compiler_static_works_CXX=yes 13796 fi 13797 fi 13798 $RM -r conftest* 13799 LDFLAGS="$save_LDFLAGS" 13800 13801fi 13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13803$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13804 13805if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13806 : 13807else 13808 lt_prog_compiler_static_CXX= 13809fi 13810 13811 13812 13813 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13815$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13816if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13817 $as_echo_n "(cached) " >&6 13818else 13819 lt_cv_prog_compiler_c_o_CXX=no 13820 $RM -r conftest 2>/dev/null 13821 mkdir conftest 13822 cd conftest 13823 mkdir out 13824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13825 13826 lt_compiler_flag="-o out/conftest2.$ac_objext" 13827 # Insert the option either (1) after the last *FLAGS variable, or 13828 # (2) before a word containing "conftest.", or (3) at the end. 13829 # Note that $ac_compile itself does not contain backslashes and begins 13830 # with a dollar sign (not a hyphen), so the echo should work correctly. 13831 lt_compile=`echo "$ac_compile" | $SED \ 13832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13834 -e 's:$: $lt_compiler_flag:'` 13835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13836 (eval "$lt_compile" 2>out/conftest.err) 13837 ac_status=$? 13838 cat out/conftest.err >&5 13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13840 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13841 then 13842 # The compiler can only warn and ignore the option if not recognized 13843 # So say no if there are warnings 13844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13847 lt_cv_prog_compiler_c_o_CXX=yes 13848 fi 13849 fi 13850 chmod u+w . 2>&5 13851 $RM conftest* 13852 # SGI C++ compiler will create directory out/ii_files/ for 13853 # template instantiation 13854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13855 $RM out/* && rmdir out 13856 cd .. 13857 $RM -r conftest 13858 $RM conftest* 13859 13860fi 13861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13862$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13863 13864 13865 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13867$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13868if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13869 $as_echo_n "(cached) " >&6 13870else 13871 lt_cv_prog_compiler_c_o_CXX=no 13872 $RM -r conftest 2>/dev/null 13873 mkdir conftest 13874 cd conftest 13875 mkdir out 13876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13877 13878 lt_compiler_flag="-o out/conftest2.$ac_objext" 13879 # Insert the option either (1) after the last *FLAGS variable, or 13880 # (2) before a word containing "conftest.", or (3) at the end. 13881 # Note that $ac_compile itself does not contain backslashes and begins 13882 # with a dollar sign (not a hyphen), so the echo should work correctly. 13883 lt_compile=`echo "$ac_compile" | $SED \ 13884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13886 -e 's:$: $lt_compiler_flag:'` 13887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13888 (eval "$lt_compile" 2>out/conftest.err) 13889 ac_status=$? 13890 cat out/conftest.err >&5 13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13892 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13893 then 13894 # The compiler can only warn and ignore the option if not recognized 13895 # So say no if there are warnings 13896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13899 lt_cv_prog_compiler_c_o_CXX=yes 13900 fi 13901 fi 13902 chmod u+w . 2>&5 13903 $RM conftest* 13904 # SGI C++ compiler will create directory out/ii_files/ for 13905 # template instantiation 13906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13907 $RM out/* && rmdir out 13908 cd .. 13909 $RM -r conftest 13910 $RM conftest* 13911 13912fi 13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13914$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13915 13916 13917 13918 13919hard_links="nottested" 13920if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13921 # do not overwrite the value of need_locks provided by the user 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13923$as_echo_n "checking if we can lock with hard links... " >&6; } 13924 hard_links=yes 13925 $RM conftest* 13926 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13927 touch conftest.a 13928 ln conftest.a conftest.b 2>&5 || hard_links=no 13929 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13931$as_echo "$hard_links" >&6; } 13932 if test "$hard_links" = no; then 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13934$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13935 need_locks=warn 13936 fi 13937else 13938 need_locks=no 13939fi 13940 13941 13942 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13944$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13945 13946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13947 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13948 case $host_os in 13949 aix[4-9]*) 13950 # If we're using GNU nm, then we don't want the "-C" option. 13951 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13952 # Also, AIX nm treats weak defined symbols like other global defined 13953 # symbols, whereas GNU nm marks them as "W". 13954 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13955 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' 13956 else 13957 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' 13958 fi 13959 ;; 13960 pw32*) 13961 export_symbols_cmds_CXX="$ltdll_cmds" 13962 ;; 13963 cygwin* | mingw* | cegcc*) 13964 case $cc_basename in 13965 cl*) 13966 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13967 ;; 13968 *) 13969 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13970 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13971 ;; 13972 esac 13973 ;; 13974 linux* | k*bsd*-gnu | gnu*) 13975 link_all_deplibs_CXX=no 13976 ;; 13977 *) 13978 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13979 ;; 13980 esac 13981 13982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13983$as_echo "$ld_shlibs_CXX" >&6; } 13984test "$ld_shlibs_CXX" = no && can_build_shared=no 13985 13986with_gnu_ld_CXX=$with_gnu_ld 13987 13988 13989 13990 13991 13992 13993# 13994# Do we need to explicitly link libc? 13995# 13996case "x$archive_cmds_need_lc_CXX" in 13997x|xyes) 13998 # Assume -lc should be added 13999 archive_cmds_need_lc_CXX=yes 14000 14001 if test "$enable_shared" = yes && test "$GCC" = yes; then 14002 case $archive_cmds_CXX in 14003 *'~'*) 14004 # FIXME: we may have to deal with multi-command sequences. 14005 ;; 14006 '$CC '*) 14007 # Test whether the compiler implicitly links with -lc since on some 14008 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14009 # to ld, don't add -lc before -lgcc. 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14011$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14012if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14013 $as_echo_n "(cached) " >&6 14014else 14015 $RM conftest* 14016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14017 14018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14019 (eval $ac_compile) 2>&5 14020 ac_status=$? 14021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14022 test $ac_status = 0; } 2>conftest.err; then 14023 soname=conftest 14024 lib=conftest 14025 libobjs=conftest.$ac_objext 14026 deplibs= 14027 wl=$lt_prog_compiler_wl_CXX 14028 pic_flag=$lt_prog_compiler_pic_CXX 14029 compiler_flags=-v 14030 linker_flags=-v 14031 verstring= 14032 output_objdir=. 14033 libname=conftest 14034 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14035 allow_undefined_flag_CXX= 14036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14037 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14038 ac_status=$? 14039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14040 test $ac_status = 0; } 14041 then 14042 lt_cv_archive_cmds_need_lc_CXX=no 14043 else 14044 lt_cv_archive_cmds_need_lc_CXX=yes 14045 fi 14046 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14047 else 14048 cat conftest.err 1>&5 14049 fi 14050 $RM conftest* 14051 14052fi 14053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14054$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14055 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14056 ;; 14057 esac 14058 fi 14059 ;; 14060esac 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14124$as_echo_n "checking dynamic linker characteristics... " >&6; } 14125 14126library_names_spec= 14127libname_spec='lib$name' 14128soname_spec= 14129shrext_cmds=".so" 14130postinstall_cmds= 14131postuninstall_cmds= 14132finish_cmds= 14133finish_eval= 14134shlibpath_var= 14135shlibpath_overrides_runpath=unknown 14136version_type=none 14137dynamic_linker="$host_os ld.so" 14138sys_lib_dlsearch_path_spec="/lib /usr/lib" 14139need_lib_prefix=unknown 14140hardcode_into_libs=no 14141 14142# when you set need_version to no, make sure it does not cause -set_version 14143# flags to be left without arguments 14144need_version=unknown 14145 14146case $host_os in 14147aix3*) 14148 version_type=linux # correct to gnu/linux during the next big refactor 14149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14150 shlibpath_var=LIBPATH 14151 14152 # AIX 3 has no versioning support, so we append a major version to the name. 14153 soname_spec='${libname}${release}${shared_ext}$major' 14154 ;; 14155 14156aix[4-9]*) 14157 version_type=linux # correct to gnu/linux during the next big refactor 14158 need_lib_prefix=no 14159 need_version=no 14160 hardcode_into_libs=yes 14161 if test "$host_cpu" = ia64; then 14162 # AIX 5 supports IA64 14163 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14164 shlibpath_var=LD_LIBRARY_PATH 14165 else 14166 # With GCC up to 2.95.x, collect2 would create an import file 14167 # for dependence libraries. The import file would start with 14168 # the line `#! .'. This would cause the generated library to 14169 # depend on `.', always an invalid library. This was fixed in 14170 # development snapshots of GCC prior to 3.0. 14171 case $host_os in 14172 aix4 | aix4.[01] | aix4.[01].*) 14173 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14174 echo ' yes ' 14175 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14176 : 14177 else 14178 can_build_shared=no 14179 fi 14180 ;; 14181 esac 14182 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14183 # soname into executable. Probably we can add versioning support to 14184 # collect2, so additional links can be useful in future. 14185 if test "$aix_use_runtimelinking" = yes; then 14186 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14187 # instead of lib<name>.a to let people know that these are not 14188 # typical AIX shared libraries. 14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14190 else 14191 # We preserve .a as extension for shared libraries through AIX4.2 14192 # and later when we are not doing run time linking. 14193 library_names_spec='${libname}${release}.a $libname.a' 14194 soname_spec='${libname}${release}${shared_ext}$major' 14195 fi 14196 shlibpath_var=LIBPATH 14197 fi 14198 ;; 14199 14200amigaos*) 14201 case $host_cpu in 14202 powerpc) 14203 # Since July 2007 AmigaOS4 officially supports .so libraries. 14204 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14206 ;; 14207 m68k) 14208 library_names_spec='$libname.ixlibrary $libname.a' 14209 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14210 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' 14211 ;; 14212 esac 14213 ;; 14214 14215beos*) 14216 library_names_spec='${libname}${shared_ext}' 14217 dynamic_linker="$host_os ld.so" 14218 shlibpath_var=LIBRARY_PATH 14219 ;; 14220 14221bsdi[45]*) 14222 version_type=linux # correct to gnu/linux during the next big refactor 14223 need_version=no 14224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14225 soname_spec='${libname}${release}${shared_ext}$major' 14226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14227 shlibpath_var=LD_LIBRARY_PATH 14228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14230 # the default ld.so.conf also contains /usr/contrib/lib and 14231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14232 # libtool to hard-code these into programs 14233 ;; 14234 14235cygwin* | mingw* | pw32* | cegcc*) 14236 version_type=windows 14237 shrext_cmds=".dll" 14238 need_version=no 14239 need_lib_prefix=no 14240 14241 case $GCC,$cc_basename in 14242 yes,*) 14243 # gcc 14244 library_names_spec='$libname.dll.a' 14245 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14246 postinstall_cmds='base_file=`basename \${file}`~ 14247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14248 dldir=$destdir/`dirname \$dlpath`~ 14249 test -d \$dldir || mkdir -p \$dldir~ 14250 $install_prog $dir/$dlname \$dldir/$dlname~ 14251 chmod a+x \$dldir/$dlname~ 14252 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14253 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14254 fi' 14255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14256 dlpath=$dir/\$dldll~ 14257 $RM \$dlpath' 14258 shlibpath_overrides_runpath=yes 14259 14260 case $host_os in 14261 cygwin*) 14262 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14263 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14264 14265 ;; 14266 mingw* | cegcc*) 14267 # MinGW DLLs use traditional 'lib' prefix 14268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14269 ;; 14270 pw32*) 14271 # pw32 DLLs use 'pw' prefix rather than 'lib' 14272 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14273 ;; 14274 esac 14275 dynamic_linker='Win32 ld.exe' 14276 ;; 14277 14278 *,cl*) 14279 # Native MSVC 14280 libname_spec='$name' 14281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14282 library_names_spec='${libname}.dll.lib' 14283 14284 case $build_os in 14285 mingw*) 14286 sys_lib_search_path_spec= 14287 lt_save_ifs=$IFS 14288 IFS=';' 14289 for lt_path in $LIB 14290 do 14291 IFS=$lt_save_ifs 14292 # Let DOS variable expansion print the short 8.3 style file name. 14293 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14294 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14295 done 14296 IFS=$lt_save_ifs 14297 # Convert to MSYS style. 14298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14299 ;; 14300 cygwin*) 14301 # Convert to unix form, then to dos form, then back to unix form 14302 # but this time dos style (no spaces!) so that the unix form looks 14303 # like /cygdrive/c/PROGRA~1:/cygdr... 14304 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14305 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14306 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14307 ;; 14308 *) 14309 sys_lib_search_path_spec="$LIB" 14310 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14311 # It is most probably a Windows format PATH. 14312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14313 else 14314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14315 fi 14316 # FIXME: find the short name or the path components, as spaces are 14317 # common. (e.g. "Program Files" -> "PROGRA~1") 14318 ;; 14319 esac 14320 14321 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14322 postinstall_cmds='base_file=`basename \${file}`~ 14323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14324 dldir=$destdir/`dirname \$dlpath`~ 14325 test -d \$dldir || mkdir -p \$dldir~ 14326 $install_prog $dir/$dlname \$dldir/$dlname' 14327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14328 dlpath=$dir/\$dldll~ 14329 $RM \$dlpath' 14330 shlibpath_overrides_runpath=yes 14331 dynamic_linker='Win32 link.exe' 14332 ;; 14333 14334 *) 14335 # Assume MSVC wrapper 14336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14337 dynamic_linker='Win32 ld.exe' 14338 ;; 14339 esac 14340 # FIXME: first we should search . and the directory the executable is in 14341 shlibpath_var=PATH 14342 ;; 14343 14344darwin* | rhapsody*) 14345 dynamic_linker="$host_os dyld" 14346 version_type=darwin 14347 need_lib_prefix=no 14348 need_version=no 14349 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14350 soname_spec='${libname}${release}${major}$shared_ext' 14351 shlibpath_overrides_runpath=yes 14352 shlibpath_var=DYLD_LIBRARY_PATH 14353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14354 14355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14356 ;; 14357 14358dgux*) 14359 version_type=linux # correct to gnu/linux during the next big refactor 14360 need_lib_prefix=no 14361 need_version=no 14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14363 soname_spec='${libname}${release}${shared_ext}$major' 14364 shlibpath_var=LD_LIBRARY_PATH 14365 ;; 14366 14367freebsd* | dragonfly*) 14368 # DragonFly does not have aout. When/if they implement a new 14369 # versioning mechanism, adjust this. 14370 if test -x /usr/bin/objformat; then 14371 objformat=`/usr/bin/objformat` 14372 else 14373 case $host_os in 14374 freebsd[23].*) objformat=aout ;; 14375 *) objformat=elf ;; 14376 esac 14377 fi 14378 version_type=freebsd-$objformat 14379 case $version_type in 14380 freebsd-elf*) 14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14382 need_version=no 14383 need_lib_prefix=no 14384 ;; 14385 freebsd-*) 14386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14387 need_version=yes 14388 ;; 14389 esac 14390 shlibpath_var=LD_LIBRARY_PATH 14391 case $host_os in 14392 freebsd2.*) 14393 shlibpath_overrides_runpath=yes 14394 ;; 14395 freebsd3.[01]* | freebsdelf3.[01]*) 14396 shlibpath_overrides_runpath=yes 14397 hardcode_into_libs=yes 14398 ;; 14399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14401 shlibpath_overrides_runpath=no 14402 hardcode_into_libs=yes 14403 ;; 14404 *) # from 4.6 on, and DragonFly 14405 shlibpath_overrides_runpath=yes 14406 hardcode_into_libs=yes 14407 ;; 14408 esac 14409 ;; 14410 14411gnu*) 14412 version_type=linux # correct to gnu/linux during the next big refactor 14413 need_lib_prefix=no 14414 need_version=no 14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14416 soname_spec='${libname}${release}${shared_ext}$major' 14417 shlibpath_var=LD_LIBRARY_PATH 14418 shlibpath_overrides_runpath=no 14419 hardcode_into_libs=yes 14420 ;; 14421 14422haiku*) 14423 version_type=linux # correct to gnu/linux during the next big refactor 14424 need_lib_prefix=no 14425 need_version=no 14426 dynamic_linker="$host_os runtime_loader" 14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14428 soname_spec='${libname}${release}${shared_ext}$major' 14429 shlibpath_var=LIBRARY_PATH 14430 shlibpath_overrides_runpath=yes 14431 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14432 hardcode_into_libs=yes 14433 ;; 14434 14435hpux9* | hpux10* | hpux11*) 14436 # Give a soname corresponding to the major version so that dld.sl refuses to 14437 # link against other versions. 14438 version_type=sunos 14439 need_lib_prefix=no 14440 need_version=no 14441 case $host_cpu in 14442 ia64*) 14443 shrext_cmds='.so' 14444 hardcode_into_libs=yes 14445 dynamic_linker="$host_os dld.so" 14446 shlibpath_var=LD_LIBRARY_PATH 14447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14449 soname_spec='${libname}${release}${shared_ext}$major' 14450 if test "X$HPUX_IA64_MODE" = X32; then 14451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14452 else 14453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14454 fi 14455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14456 ;; 14457 hppa*64*) 14458 shrext_cmds='.sl' 14459 hardcode_into_libs=yes 14460 dynamic_linker="$host_os dld.sl" 14461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14464 soname_spec='${libname}${release}${shared_ext}$major' 14465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14467 ;; 14468 *) 14469 shrext_cmds='.sl' 14470 dynamic_linker="$host_os dld.sl" 14471 shlibpath_var=SHLIB_PATH 14472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14474 soname_spec='${libname}${release}${shared_ext}$major' 14475 ;; 14476 esac 14477 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14478 postinstall_cmds='chmod 555 $lib' 14479 # or fails outright, so override atomically: 14480 install_override_mode=555 14481 ;; 14482 14483interix[3-9]*) 14484 version_type=linux # correct to gnu/linux during the next big refactor 14485 need_lib_prefix=no 14486 need_version=no 14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14488 soname_spec='${libname}${release}${shared_ext}$major' 14489 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14490 shlibpath_var=LD_LIBRARY_PATH 14491 shlibpath_overrides_runpath=no 14492 hardcode_into_libs=yes 14493 ;; 14494 14495irix5* | irix6* | nonstopux*) 14496 case $host_os in 14497 nonstopux*) version_type=nonstopux ;; 14498 *) 14499 if test "$lt_cv_prog_gnu_ld" = yes; then 14500 version_type=linux # correct to gnu/linux during the next big refactor 14501 else 14502 version_type=irix 14503 fi ;; 14504 esac 14505 need_lib_prefix=no 14506 need_version=no 14507 soname_spec='${libname}${release}${shared_ext}$major' 14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14509 case $host_os in 14510 irix5* | nonstopux*) 14511 libsuff= shlibsuff= 14512 ;; 14513 *) 14514 case $LD in # libtool.m4 will add one of these switches to LD 14515 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14516 libsuff= shlibsuff= libmagic=32-bit;; 14517 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14518 libsuff=32 shlibsuff=N32 libmagic=N32;; 14519 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14520 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14521 *) libsuff= shlibsuff= libmagic=never-match;; 14522 esac 14523 ;; 14524 esac 14525 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14526 shlibpath_overrides_runpath=no 14527 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14528 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14529 hardcode_into_libs=yes 14530 ;; 14531 14532# No shared lib support for Linux oldld, aout, or coff. 14533linux*oldld* | linux*aout* | linux*coff*) 14534 dynamic_linker=no 14535 ;; 14536 14537# This must be glibc/ELF. 14538linux* | k*bsd*-gnu | kopensolaris*-gnu) 14539 version_type=linux # correct to gnu/linux during the next big refactor 14540 need_lib_prefix=no 14541 need_version=no 14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14543 soname_spec='${libname}${release}${shared_ext}$major' 14544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14545 shlibpath_var=LD_LIBRARY_PATH 14546 shlibpath_overrides_runpath=no 14547 14548 # Some binutils ld are patched to set DT_RUNPATH 14549 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14550 $as_echo_n "(cached) " >&6 14551else 14552 lt_cv_shlibpath_overrides_runpath=no 14553 save_LDFLAGS=$LDFLAGS 14554 save_libdir=$libdir 14555 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14556 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14558/* end confdefs.h. */ 14559 14560int 14561main () 14562{ 14563 14564 ; 14565 return 0; 14566} 14567_ACEOF 14568if ac_fn_cxx_try_link "$LINENO"; then : 14569 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14570 lt_cv_shlibpath_overrides_runpath=yes 14571fi 14572fi 14573rm -f core conftest.err conftest.$ac_objext \ 14574 conftest$ac_exeext conftest.$ac_ext 14575 LDFLAGS=$save_LDFLAGS 14576 libdir=$save_libdir 14577 14578fi 14579 14580 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14581 14582 # This implies no fast_install, which is unacceptable. 14583 # Some rework will be needed to allow for fast_install 14584 # before this can be enabled. 14585 hardcode_into_libs=yes 14586 14587 # Append ld.so.conf contents to the search path 14588 if test -f /etc/ld.so.conf; then 14589 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' ' '` 14590 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14591 fi 14592 14593 # We used to test for /lib/ld.so.1 and disable shared libraries on 14594 # powerpc, because MkLinux only supported shared libraries with the 14595 # GNU dynamic linker. Since this was broken with cross compilers, 14596 # most powerpc-linux boxes support dynamic linking these days and 14597 # people can always --disable-shared, the test was removed, and we 14598 # assume the GNU/Linux dynamic linker is in use. 14599 dynamic_linker='GNU/Linux ld.so' 14600 ;; 14601 14602netbsdelf*-gnu) 14603 version_type=linux 14604 need_lib_prefix=no 14605 need_version=no 14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14607 soname_spec='${libname}${release}${shared_ext}$major' 14608 shlibpath_var=LD_LIBRARY_PATH 14609 shlibpath_overrides_runpath=no 14610 hardcode_into_libs=yes 14611 dynamic_linker='NetBSD ld.elf_so' 14612 ;; 14613 14614netbsd*) 14615 version_type=sunos 14616 need_lib_prefix=no 14617 need_version=no 14618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14621 dynamic_linker='NetBSD (a.out) ld.so' 14622 else 14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14624 soname_spec='${libname}${release}${shared_ext}$major' 14625 dynamic_linker='NetBSD ld.elf_so' 14626 fi 14627 shlibpath_var=LD_LIBRARY_PATH 14628 shlibpath_overrides_runpath=yes 14629 hardcode_into_libs=yes 14630 ;; 14631 14632newsos6) 14633 version_type=linux # correct to gnu/linux during the next big refactor 14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14635 shlibpath_var=LD_LIBRARY_PATH 14636 shlibpath_overrides_runpath=yes 14637 ;; 14638 14639*nto* | *qnx*) 14640 version_type=qnx 14641 need_lib_prefix=no 14642 need_version=no 14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14644 soname_spec='${libname}${release}${shared_ext}$major' 14645 shlibpath_var=LD_LIBRARY_PATH 14646 shlibpath_overrides_runpath=no 14647 hardcode_into_libs=yes 14648 dynamic_linker='ldqnx.so' 14649 ;; 14650 14651openbsd*) 14652 version_type=sunos 14653 sys_lib_dlsearch_path_spec="/usr/lib" 14654 need_lib_prefix=no 14655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14656 case $host_os in 14657 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14658 *) need_version=no ;; 14659 esac 14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14662 shlibpath_var=LD_LIBRARY_PATH 14663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14664 case $host_os in 14665 openbsd2.[89] | openbsd2.[89].*) 14666 shlibpath_overrides_runpath=no 14667 ;; 14668 *) 14669 shlibpath_overrides_runpath=yes 14670 ;; 14671 esac 14672 else 14673 shlibpath_overrides_runpath=yes 14674 fi 14675 ;; 14676 14677os2*) 14678 libname_spec='$name' 14679 shrext_cmds=".dll" 14680 need_lib_prefix=no 14681 library_names_spec='$libname${shared_ext} $libname.a' 14682 dynamic_linker='OS/2 ld.exe' 14683 shlibpath_var=LIBPATH 14684 ;; 14685 14686osf3* | osf4* | osf5*) 14687 version_type=osf 14688 need_lib_prefix=no 14689 need_version=no 14690 soname_spec='${libname}${release}${shared_ext}$major' 14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14692 shlibpath_var=LD_LIBRARY_PATH 14693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14695 ;; 14696 14697rdos*) 14698 dynamic_linker=no 14699 ;; 14700 14701solaris*) 14702 version_type=linux # correct to gnu/linux during the next big refactor 14703 need_lib_prefix=no 14704 need_version=no 14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14706 soname_spec='${libname}${release}${shared_ext}$major' 14707 shlibpath_var=LD_LIBRARY_PATH 14708 shlibpath_overrides_runpath=yes 14709 hardcode_into_libs=yes 14710 # ldd complains unless libraries are executable 14711 postinstall_cmds='chmod +x $lib' 14712 ;; 14713 14714sunos4*) 14715 version_type=sunos 14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14718 shlibpath_var=LD_LIBRARY_PATH 14719 shlibpath_overrides_runpath=yes 14720 if test "$with_gnu_ld" = yes; then 14721 need_lib_prefix=no 14722 fi 14723 need_version=yes 14724 ;; 14725 14726sysv4 | sysv4.3*) 14727 version_type=linux # correct to gnu/linux during the next big refactor 14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14729 soname_spec='${libname}${release}${shared_ext}$major' 14730 shlibpath_var=LD_LIBRARY_PATH 14731 case $host_vendor in 14732 sni) 14733 shlibpath_overrides_runpath=no 14734 need_lib_prefix=no 14735 runpath_var=LD_RUN_PATH 14736 ;; 14737 siemens) 14738 need_lib_prefix=no 14739 ;; 14740 motorola) 14741 need_lib_prefix=no 14742 need_version=no 14743 shlibpath_overrides_runpath=no 14744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14745 ;; 14746 esac 14747 ;; 14748 14749sysv4*MP*) 14750 if test -d /usr/nec ;then 14751 version_type=linux # correct to gnu/linux during the next big refactor 14752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14753 soname_spec='$libname${shared_ext}.$major' 14754 shlibpath_var=LD_LIBRARY_PATH 14755 fi 14756 ;; 14757 14758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14759 version_type=freebsd-elf 14760 need_lib_prefix=no 14761 need_version=no 14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14763 soname_spec='${libname}${release}${shared_ext}$major' 14764 shlibpath_var=LD_LIBRARY_PATH 14765 shlibpath_overrides_runpath=yes 14766 hardcode_into_libs=yes 14767 if test "$with_gnu_ld" = yes; then 14768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14769 else 14770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14771 case $host_os in 14772 sco3.2v5*) 14773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14774 ;; 14775 esac 14776 fi 14777 sys_lib_dlsearch_path_spec='/usr/lib' 14778 ;; 14779 14780tpf*) 14781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14782 version_type=linux # correct to gnu/linux during the next big refactor 14783 need_lib_prefix=no 14784 need_version=no 14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14786 shlibpath_var=LD_LIBRARY_PATH 14787 shlibpath_overrides_runpath=no 14788 hardcode_into_libs=yes 14789 ;; 14790 14791uts4*) 14792 version_type=linux # correct to gnu/linux during the next big refactor 14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14794 soname_spec='${libname}${release}${shared_ext}$major' 14795 shlibpath_var=LD_LIBRARY_PATH 14796 ;; 14797 14798*) 14799 dynamic_linker=no 14800 ;; 14801esac 14802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14803$as_echo "$dynamic_linker" >&6; } 14804test "$dynamic_linker" = no && can_build_shared=no 14805 14806variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14807if test "$GCC" = yes; then 14808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14809fi 14810 14811if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14812 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14813fi 14814if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14815 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14816fi 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14856$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14857hardcode_action_CXX= 14858if test -n "$hardcode_libdir_flag_spec_CXX" || 14859 test -n "$runpath_var_CXX" || 14860 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14861 14862 # We can hardcode non-existent directories. 14863 if test "$hardcode_direct_CXX" != no && 14864 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14865 # have to relink, otherwise we might link with an installed library 14866 # when we should be linking with a yet-to-be-installed one 14867 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14868 test "$hardcode_minus_L_CXX" != no; then 14869 # Linking always hardcodes the temporary library directory. 14870 hardcode_action_CXX=relink 14871 else 14872 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14873 hardcode_action_CXX=immediate 14874 fi 14875else 14876 # We cannot hardcode anything, or else we can only hardcode existing 14877 # directories. 14878 hardcode_action_CXX=unsupported 14879fi 14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14881$as_echo "$hardcode_action_CXX" >&6; } 14882 14883if test "$hardcode_action_CXX" = relink || 14884 test "$inherit_rpath_CXX" = yes; then 14885 # Fast installation is not supported 14886 enable_fast_install=no 14887elif test "$shlibpath_overrides_runpath" = yes || 14888 test "$enable_shared" = no; then 14889 # Fast installation is not necessary 14890 enable_fast_install=needless 14891fi 14892 14893 14894 14895 14896 14897 14898 14899 fi # test -n "$compiler" 14900 14901 CC=$lt_save_CC 14902 CFLAGS=$lt_save_CFLAGS 14903 LDCXX=$LD 14904 LD=$lt_save_LD 14905 GCC=$lt_save_GCC 14906 with_gnu_ld=$lt_save_with_gnu_ld 14907 lt_cv_path_LDCXX=$lt_cv_path_LD 14908 lt_cv_path_LD=$lt_save_path_LD 14909 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14910 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14911fi # test "$_lt_caught_CXX_error" != yes 14912 14913ac_ext=cpp 14914ac_cpp='$CXXCPP $CPPFLAGS' 14915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 ac_config_commands="$ac_config_commands libtool" 14934 14935 14936 14937 14938# Only expand once: 14939 14940 14941 14942# TODO(chandlerc@google.com): Currently we aren't running the Python tests 14943# against the interpreter detected by AM_PATH_PYTHON, and so we condition 14944# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's 14945# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env" 14946# hashbang. 14947PYTHON= # We *do not* allow the user to specify a python interpreter 14948# Extract the first word of "python", so it can be a program name with args. 14949set dummy python; ac_word=$2 14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14951$as_echo_n "checking for $ac_word... " >&6; } 14952if ${ac_cv_path_PYTHON+:} false; then : 14953 $as_echo_n "(cached) " >&6 14954else 14955 case $PYTHON in 14956 [\\/]* | ?:[\\/]*) 14957 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 14958 ;; 14959 *) 14960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14961for as_dir in $PATH 14962do 14963 IFS=$as_save_IFS 14964 test -z "$as_dir" && as_dir=. 14965 for ac_exec_ext in '' $ac_executable_extensions; do 14966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14967 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 14968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14969 break 2 14970 fi 14971done 14972 done 14973IFS=$as_save_IFS 14974 14975 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":" 14976 ;; 14977esac 14978fi 14979PYTHON=$ac_cv_path_PYTHON 14980if test -n "$PYTHON"; then 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 14982$as_echo "$PYTHON" >&6; } 14983else 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14985$as_echo "no" >&6; } 14986fi 14987 14988 14989if test "$PYTHON" != ":"; then : 14990 prog="import sys 14991# split strings by '.' and convert to numeric. Append some zeros 14992# because we need at least 4 digits for the hex conversion. 14993# map returns an iterator in Python 3.0 and a list in 2.x 14994minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0] 14995minverhex = 0 14996# xrange is not present in Python 3.0 and range returns an iterator 14997for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 14998sys.exit(sys.hexversion < minverhex)" 14999 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 15000 ($PYTHON -c "$prog") >&5 2>&5 15001 ac_status=$? 15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15003 (exit $ac_status); }; then : 15004 : 15005else 15006 PYTHON=":" 15007fi 15008fi 15009 if test "$PYTHON" != ":"; then 15010 HAVE_PYTHON_TRUE= 15011 HAVE_PYTHON_FALSE='#' 15012else 15013 HAVE_PYTHON_TRUE='#' 15014 HAVE_PYTHON_FALSE= 15015fi 15016 15017 15018# Configure pthreads. 15019 15020# Check whether --with-pthreads was given. 15021if test "${with_pthreads+set}" = set; then : 15022 withval=$with_pthreads; with_pthreads=$withval 15023else 15024 with_pthreads=check 15025fi 15026 15027 15028have_pthreads=no 15029if test "x$with_pthreads" != "xno"; then : 15030 15031 15032 15033ac_ext=c 15034ac_cpp='$CPP $CPPFLAGS' 15035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15037ac_compiler_gnu=$ac_cv_c_compiler_gnu 15038 15039acx_pthread_ok=no 15040 15041# We used to check for pthread.h first, but this fails if pthread.h 15042# requires special compiler flags (e.g. on True64 or Sequent). 15043# It gets checked for in the link test anyway. 15044 15045# First of all, check if the user has set any of the PTHREAD_LIBS, 15046# etcetera environment variables, and if threads linking works using 15047# them: 15048if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15049 save_CFLAGS="$CFLAGS" 15050 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15051 save_LIBS="$LIBS" 15052 LIBS="$PTHREAD_LIBS $LIBS" 15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15054$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15056/* end confdefs.h. */ 15057 15058/* Override any GCC internal prototype to avoid an error. 15059 Use char because int might match the return type of a GCC 15060 builtin and then its argument prototype would still apply. */ 15061#ifdef __cplusplus 15062extern "C" 15063#endif 15064char pthread_join (); 15065int 15066main () 15067{ 15068return pthread_join (); 15069 ; 15070 return 0; 15071} 15072_ACEOF 15073if ac_fn_c_try_link "$LINENO"; then : 15074 acx_pthread_ok=yes 15075fi 15076rm -f core conftest.err conftest.$ac_objext \ 15077 conftest$ac_exeext conftest.$ac_ext 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15079$as_echo "$acx_pthread_ok" >&6; } 15080 if test x"$acx_pthread_ok" = xno; then 15081 PTHREAD_LIBS="" 15082 PTHREAD_CFLAGS="" 15083 fi 15084 LIBS="$save_LIBS" 15085 CFLAGS="$save_CFLAGS" 15086fi 15087 15088# We must check for the threads library under a number of different 15089# names; the ordering is very important because some systems 15090# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15091# libraries is broken (non-POSIX). 15092 15093# Create a list of thread flags to try. Items starting with a "-" are 15094# C compiler flags, and other items are library names, except for "none" 15095# which indicates that we try without any flags at all, and "pthread-config" 15096# which is a program returning the flags for the Pth emulation library. 15097 15098acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15099 15100# The ordering *is* (sometimes) important. Some notes on the 15101# individual items follow: 15102 15103# pthreads: AIX (must check this before -lpthread) 15104# none: in case threads are in libc; should be tried before -Kthread and 15105# other compiler flags to prevent continual compiler warnings 15106# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15107# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15108# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15109# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15110# -pthreads: Solaris/gcc 15111# -mthreads: Mingw32/gcc, Lynx/gcc 15112# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15113# doesn't hurt to check since this sometimes defines pthreads too; 15114# also defines -D_REENTRANT) 15115# ... -mt is also the pthreads flag for HP/aCC 15116# pthread: Linux, etcetera 15117# --thread-safe: KAI C++ 15118# pthread-config: use pthread-config program (for GNU Pth library) 15119 15120case "${host_cpu}-${host_os}" in 15121 *solaris*) 15122 15123 # On Solaris (at least, for some versions), libc contains stubbed 15124 # (non-functional) versions of the pthreads routines, so link-based 15125 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15126 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15127 # a function called by this macro, so we could check for that, but 15128 # who knows whether they'll stub that too in a future libc.) So, 15129 # we'll just look for -pthreads and -lpthread first: 15130 15131 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 15132 ;; 15133esac 15134 15135if test x"$acx_pthread_ok" = xno; then 15136for flag in $acx_pthread_flags; do 15137 15138 case $flag in 15139 none) 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15141$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15142 ;; 15143 15144 -*) 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15146$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15147 PTHREAD_CFLAGS="$flag" 15148 ;; 15149 15150 pthread-config) 15151 # Extract the first word of "pthread-config", so it can be a program name with args. 15152set dummy pthread-config; ac_word=$2 15153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15154$as_echo_n "checking for $ac_word... " >&6; } 15155if ${ac_cv_prog_acx_pthread_config+:} false; then : 15156 $as_echo_n "(cached) " >&6 15157else 15158 if test -n "$acx_pthread_config"; then 15159 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 15160else 15161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15162for as_dir in $PATH 15163do 15164 IFS=$as_save_IFS 15165 test -z "$as_dir" && as_dir=. 15166 for ac_exec_ext in '' $ac_executable_extensions; do 15167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15168 ac_cv_prog_acx_pthread_config="yes" 15169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15170 break 2 15171 fi 15172done 15173 done 15174IFS=$as_save_IFS 15175 15176 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 15177fi 15178fi 15179acx_pthread_config=$ac_cv_prog_acx_pthread_config 15180if test -n "$acx_pthread_config"; then 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 15182$as_echo "$acx_pthread_config" >&6; } 15183else 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15185$as_echo "no" >&6; } 15186fi 15187 15188 15189 if test x"$acx_pthread_config" = xno; then continue; fi 15190 PTHREAD_CFLAGS="`pthread-config --cflags`" 15191 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15192 ;; 15193 15194 *) 15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15196$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15197 PTHREAD_LIBS="-l$flag" 15198 ;; 15199 esac 15200 15201 save_LIBS="$LIBS" 15202 save_CFLAGS="$CFLAGS" 15203 LIBS="$PTHREAD_LIBS $LIBS" 15204 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15205 15206 # Check for various functions. We must include pthread.h, 15207 # since some functions may be macros. (On the Sequent, we 15208 # need a special flag -Kthread to make this header compile.) 15209 # We check for pthread_join because it is in -lpthread on IRIX 15210 # while pthread_create is in libc. We check for pthread_attr_init 15211 # due to DEC craziness with -lpthreads. We check for 15212 # pthread_cleanup_push because it is one of the few pthread 15213 # functions on Solaris that doesn't have a non-functional libc stub. 15214 # We try pthread_create on general principles. 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216/* end confdefs.h. */ 15217#include <pthread.h> 15218int 15219main () 15220{ 15221pthread_t th; pthread_join(th, 0); 15222 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15223 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15224 ; 15225 return 0; 15226} 15227_ACEOF 15228if ac_fn_c_try_link "$LINENO"; then : 15229 acx_pthread_ok=yes 15230fi 15231rm -f core conftest.err conftest.$ac_objext \ 15232 conftest$ac_exeext conftest.$ac_ext 15233 15234 LIBS="$save_LIBS" 15235 CFLAGS="$save_CFLAGS" 15236 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15238$as_echo "$acx_pthread_ok" >&6; } 15239 if test "x$acx_pthread_ok" = xyes; then 15240 break; 15241 fi 15242 15243 PTHREAD_LIBS="" 15244 PTHREAD_CFLAGS="" 15245done 15246fi 15247 15248# Various other checks: 15249if test "x$acx_pthread_ok" = xyes; then 15250 save_LIBS="$LIBS" 15251 LIBS="$PTHREAD_LIBS $LIBS" 15252 save_CFLAGS="$CFLAGS" 15253 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15254 15255 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15257$as_echo_n "checking for joinable pthread attribute... " >&6; } 15258 attr_name=unknown 15259 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15261/* end confdefs.h. */ 15262#include <pthread.h> 15263int 15264main () 15265{ 15266int attr=$attr; return attr; 15267 ; 15268 return 0; 15269} 15270_ACEOF 15271if ac_fn_c_try_link "$LINENO"; then : 15272 attr_name=$attr; break 15273fi 15274rm -f core conftest.err conftest.$ac_objext \ 15275 conftest$ac_exeext conftest.$ac_ext 15276 done 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15278$as_echo "$attr_name" >&6; } 15279 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15280 15281cat >>confdefs.h <<_ACEOF 15282#define PTHREAD_CREATE_JOINABLE $attr_name 15283_ACEOF 15284 15285 fi 15286 15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15288$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15289 flag=no 15290 case "${host_cpu}-${host_os}" in 15291 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 15292 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15293 esac 15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15295$as_echo "${flag}" >&6; } 15296 if test "x$flag" != xno; then 15297 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15298 fi 15299 15300 LIBS="$save_LIBS" 15301 CFLAGS="$save_CFLAGS" 15302 # More AIX lossage: must compile with xlc_r or cc_r 15303 if test x"$GCC" != xyes; then 15304 for ac_prog in xlc_r cc_r 15305do 15306 # Extract the first word of "$ac_prog", so it can be a program name with args. 15307set dummy $ac_prog; ac_word=$2 15308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15309$as_echo_n "checking for $ac_word... " >&6; } 15310if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15311 $as_echo_n "(cached) " >&6 15312else 15313 if test -n "$PTHREAD_CC"; then 15314 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15315else 15316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15317for as_dir in $PATH 15318do 15319 IFS=$as_save_IFS 15320 test -z "$as_dir" && as_dir=. 15321 for ac_exec_ext in '' $ac_executable_extensions; do 15322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15323 ac_cv_prog_PTHREAD_CC="$ac_prog" 15324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15325 break 2 15326 fi 15327done 15328 done 15329IFS=$as_save_IFS 15330 15331fi 15332fi 15333PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15334if test -n "$PTHREAD_CC"; then 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15336$as_echo "$PTHREAD_CC" >&6; } 15337else 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15339$as_echo "no" >&6; } 15340fi 15341 15342 15343 test -n "$PTHREAD_CC" && break 15344done 15345test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15346 15347 else 15348 PTHREAD_CC=$CC 15349 fi 15350 15351 # The next part tries to detect GCC inconsistency with -shared on some 15352 # architectures and systems. The problem is that in certain 15353 # configurations, when -shared is specified, GCC "forgets" to 15354 # internally use various flags which are still necessary. 15355 15356 # 15357 # Prepare the flags 15358 # 15359 save_CFLAGS="$CFLAGS" 15360 save_LIBS="$LIBS" 15361 save_CC="$CC" 15362 15363 # Try with the flags determined by the earlier checks. 15364 # 15365 # -Wl,-z,defs forces link-time symbol resolution, so that the 15366 # linking checks with -shared actually have any value 15367 # 15368 # FIXME: -fPIC is required for -shared on many architectures, 15369 # so we specify it here, but the right way would probably be to 15370 # properly detect whether it is actually required. 15371 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" 15372 LIBS="$PTHREAD_LIBS $LIBS" 15373 CC="$PTHREAD_CC" 15374 15375 # In order not to create several levels of indentation, we test 15376 # the value of "$done" until we find the cure or run out of ideas. 15377 done="no" 15378 15379 # First, make sure the CFLAGS we added are actually accepted by our 15380 # compiler. If not (and OS X's ld, for instance, does not accept -z), 15381 # then we can't do this test. 15382 if test x"$done" = xno; then 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5 15384$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386/* end confdefs.h. */ 15387 15388int 15389main () 15390{ 15391 15392 ; 15393 return 0; 15394} 15395_ACEOF 15396if ac_fn_c_try_link "$LINENO"; then : 15397 15398else 15399 done=yes 15400fi 15401rm -f core conftest.err conftest.$ac_objext \ 15402 conftest$ac_exeext conftest.$ac_ext 15403 15404 if test "x$done" = xyes ; then 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15406$as_echo "no" >&6; } 15407 else 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15409$as_echo "yes" >&6; } 15410 fi 15411 fi 15412 15413 if test x"$done" = xno; then 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5 15415$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } 15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15417/* end confdefs.h. */ 15418#include <pthread.h> 15419int 15420main () 15421{ 15422pthread_t th; pthread_join(th, 0); 15423 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15424 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15425 ; 15426 return 0; 15427} 15428_ACEOF 15429if ac_fn_c_try_link "$LINENO"; then : 15430 done=yes 15431fi 15432rm -f core conftest.err conftest.$ac_objext \ 15433 conftest$ac_exeext conftest.$ac_ext 15434 15435 if test "x$done" = xyes; then 15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15437$as_echo "yes" >&6; } 15438 else 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15440$as_echo "no" >&6; } 15441 fi 15442 fi 15443 15444 # 15445 # Linux gcc on some architectures such as mips/mipsel forgets 15446 # about -lpthread 15447 # 15448 if test x"$done" = xno; then 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5 15450$as_echo_n "checking whether -lpthread fixes that... " >&6; } 15451 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" 15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15453/* end confdefs.h. */ 15454#include <pthread.h> 15455int 15456main () 15457{ 15458pthread_t th; pthread_join(th, 0); 15459 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15460 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15461 ; 15462 return 0; 15463} 15464_ACEOF 15465if ac_fn_c_try_link "$LINENO"; then : 15466 done=yes 15467fi 15468rm -f core conftest.err conftest.$ac_objext \ 15469 conftest$ac_exeext conftest.$ac_ext 15470 15471 if test "x$done" = xyes; then 15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15473$as_echo "yes" >&6; } 15474 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" 15475 else 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15477$as_echo "no" >&6; } 15478 fi 15479 fi 15480 # 15481 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc 15482 # 15483 if test x"$done" = xno; then 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5 15485$as_echo_n "checking whether -lc_r fixes that... " >&6; } 15486 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" 15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15488/* end confdefs.h. */ 15489#include <pthread.h> 15490int 15491main () 15492{ 15493pthread_t th; pthread_join(th, 0); 15494 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15495 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15496 ; 15497 return 0; 15498} 15499_ACEOF 15500if ac_fn_c_try_link "$LINENO"; then : 15501 done=yes 15502fi 15503rm -f core conftest.err conftest.$ac_objext \ 15504 conftest$ac_exeext conftest.$ac_ext 15505 15506 if test "x$done" = xyes; then 15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15508$as_echo "yes" >&6; } 15509 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" 15510 else 15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15512$as_echo "no" >&6; } 15513 fi 15514 fi 15515 if test x"$done" = xno; then 15516 # OK, we have run out of ideas 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 15518$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} 15519 15520 # so it's not safe to assume that we may use pthreads 15521 acx_pthread_ok=no 15522 fi 15523 15524 CFLAGS="$save_CFLAGS" 15525 LIBS="$save_LIBS" 15526 CC="$save_CC" 15527else 15528 PTHREAD_CC="$CC" 15529fi 15530 15531 15532 15533 15534 15535# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15536if test x"$acx_pthread_ok" = xyes; then 15537 15538$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15539 15540 : 15541else 15542 acx_pthread_ok=no 15543 if test "x$with_pthreads" != "xcheck"; then : 15544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15546as_fn_error $? "--with-pthreads was specified, but unable to be used 15547See \`config.log' for more details" "$LINENO" 5; } 15548fi 15549fi 15550ac_ext=cpp 15551ac_cpp='$CXXCPP $CPPFLAGS' 15552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15555 15556 15557 have_pthreads="$acx_pthread_ok" 15558fi 15559 if test "x$have_pthreads" = "xyes"; then 15560 HAVE_PTHREADS_TRUE= 15561 HAVE_PTHREADS_FALSE='#' 15562else 15563 HAVE_PTHREADS_TRUE='#' 15564 HAVE_PTHREADS_FALSE= 15565fi 15566 15567 15568 15569 15570# TODO(chandlerc@google.com) Check for the necessary system headers. 15571 15572# TODO(chandlerc@google.com) Check the types, structures, and other compiler 15573# and architecture characteristics. 15574 15575# Output the generated files. No further autoconf macros may be used. 15576cat >confcache <<\_ACEOF 15577# This file is a shell script that caches the results of configure 15578# tests run on this system so they can be shared between configure 15579# scripts and configure runs, see configure's option --config-cache. 15580# It is not useful on other systems. If it contains results you don't 15581# want to keep, you may remove or edit it. 15582# 15583# config.status only pays attention to the cache file if you give it 15584# the --recheck option to rerun configure. 15585# 15586# `ac_cv_env_foo' variables (set or unset) will be overridden when 15587# loading this file, other *unset* `ac_cv_foo' will be assigned the 15588# following values. 15589 15590_ACEOF 15591 15592# The following way of writing the cache mishandles newlines in values, 15593# but we know of no workaround that is simple, portable, and efficient. 15594# So, we kill variables containing newlines. 15595# Ultrix sh set writes to stderr and can't be redirected directly, 15596# and sets the high bit in the cache file unless we assign to the vars. 15597( 15598 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15599 eval ac_val=\$$ac_var 15600 case $ac_val in #( 15601 *${as_nl}*) 15602 case $ac_var in #( 15603 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15604$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15605 esac 15606 case $ac_var in #( 15607 _ | IFS | as_nl) ;; #( 15608 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15609 *) { eval $ac_var=; unset $ac_var;} ;; 15610 esac ;; 15611 esac 15612 done 15613 15614 (set) 2>&1 | 15615 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15616 *${as_nl}ac_space=\ *) 15617 # `set' does not quote correctly, so add quotes: double-quote 15618 # substitution turns \\\\ into \\, and sed turns \\ into \. 15619 sed -n \ 15620 "s/'/'\\\\''/g; 15621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15622 ;; #( 15623 *) 15624 # `set' quotes correctly as required by POSIX, so do not add quotes. 15625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15626 ;; 15627 esac | 15628 sort 15629) | 15630 sed ' 15631 /^ac_cv_env_/b end 15632 t clear 15633 :clear 15634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15635 t end 15636 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15637 :end' >>confcache 15638if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15639 if test -w "$cache_file"; then 15640 if test "x$cache_file" != "x/dev/null"; then 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15642$as_echo "$as_me: updating cache $cache_file" >&6;} 15643 if test ! -f "$cache_file" || test -h "$cache_file"; then 15644 cat confcache >"$cache_file" 15645 else 15646 case $cache_file in #( 15647 */* | ?:*) 15648 mv -f confcache "$cache_file"$$ && 15649 mv -f "$cache_file"$$ "$cache_file" ;; #( 15650 *) 15651 mv -f confcache "$cache_file" ;; 15652 esac 15653 fi 15654 fi 15655 else 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15657$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15658 fi 15659fi 15660rm -f confcache 15661 15662test "x$prefix" = xNONE && prefix=$ac_default_prefix 15663# Let make expand exec_prefix. 15664test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15665 15666DEFS=-DHAVE_CONFIG_H 15667 15668ac_libobjs= 15669ac_ltlibobjs= 15670U= 15671for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15672 # 1. Remove the extension, and $U if already installed. 15673 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15674 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15675 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15676 # will be set to the directory where LIBOBJS objects are built. 15677 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15678 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15679done 15680LIBOBJS=$ac_libobjs 15681 15682LTLIBOBJS=$ac_ltlibobjs 15683 15684 15685 if test -n "$EXEEXT"; then 15686 am__EXEEXT_TRUE= 15687 am__EXEEXT_FALSE='#' 15688else 15689 am__EXEEXT_TRUE='#' 15690 am__EXEEXT_FALSE= 15691fi 15692 15693if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15694 as_fn_error $? "conditional \"AMDEP\" was never defined. 15695Usually this means the macro was only invoked conditionally." "$LINENO" 5 15696fi 15697if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15698 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15699Usually this means the macro was only invoked conditionally." "$LINENO" 5 15700fi 15701if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15702 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15703Usually this means the macro was only invoked conditionally." "$LINENO" 5 15704fi 15705if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 15706 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 15707Usually this means the macro was only invoked conditionally." "$LINENO" 5 15708fi 15709if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then 15710 as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined. 15711Usually this means the macro was only invoked conditionally." "$LINENO" 5 15712fi 15713 15714: "${CONFIG_STATUS=./config.status}" 15715ac_write_fail=0 15716ac_clean_files_save=$ac_clean_files 15717ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15718{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15719$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15720as_write_fail=0 15721cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15722#! $SHELL 15723# Generated by $as_me. 15724# Run this file to recreate the current configuration. 15725# Compiler output produced by configure, useful for debugging 15726# configure, is in config.log if it exists. 15727 15728debug=false 15729ac_cs_recheck=false 15730ac_cs_silent=false 15731 15732SHELL=\${CONFIG_SHELL-$SHELL} 15733export SHELL 15734_ASEOF 15735cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15736## -------------------- ## 15737## M4sh Initialization. ## 15738## -------------------- ## 15739 15740# Be more Bourne compatible 15741DUALCASE=1; export DUALCASE # for MKS sh 15742if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15743 emulate sh 15744 NULLCMD=: 15745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15746 # is contrary to our usage. Disable this feature. 15747 alias -g '${1+"$@"}'='"$@"' 15748 setopt NO_GLOB_SUBST 15749else 15750 case `(set -o) 2>/dev/null` in #( 15751 *posix*) : 15752 set -o posix ;; #( 15753 *) : 15754 ;; 15755esac 15756fi 15757 15758 15759as_nl=' 15760' 15761export as_nl 15762# Printing a long string crashes Solaris 7 /usr/bin/printf. 15763as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15765as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15766# Prefer a ksh shell builtin over an external printf program on Solaris, 15767# but without wasting forks for bash or zsh. 15768if test -z "$BASH_VERSION$ZSH_VERSION" \ 15769 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15770 as_echo='print -r --' 15771 as_echo_n='print -rn --' 15772elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15773 as_echo='printf %s\n' 15774 as_echo_n='printf %s' 15775else 15776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15778 as_echo_n='/usr/ucb/echo -n' 15779 else 15780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15781 as_echo_n_body='eval 15782 arg=$1; 15783 case $arg in #( 15784 *"$as_nl"*) 15785 expr "X$arg" : "X\\(.*\\)$as_nl"; 15786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15787 esac; 15788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15789 ' 15790 export as_echo_n_body 15791 as_echo_n='sh -c $as_echo_n_body as_echo' 15792 fi 15793 export as_echo_body 15794 as_echo='sh -c $as_echo_body as_echo' 15795fi 15796 15797# The user is always right. 15798if test "${PATH_SEPARATOR+set}" != set; then 15799 PATH_SEPARATOR=: 15800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15802 PATH_SEPARATOR=';' 15803 } 15804fi 15805 15806 15807# IFS 15808# We need space, tab and new line, in precisely that order. Quoting is 15809# there to prevent editors from complaining about space-tab. 15810# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15811# splitting by setting IFS to empty value.) 15812IFS=" "" $as_nl" 15813 15814# Find who we are. Look in the path if we contain no directory separator. 15815as_myself= 15816case $0 in #(( 15817 *[\\/]* ) as_myself=$0 ;; 15818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15819for as_dir in $PATH 15820do 15821 IFS=$as_save_IFS 15822 test -z "$as_dir" && as_dir=. 15823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15824 done 15825IFS=$as_save_IFS 15826 15827 ;; 15828esac 15829# We did not find ourselves, most probably we were run as `sh COMMAND' 15830# in which case we are not to be found in the path. 15831if test "x$as_myself" = x; then 15832 as_myself=$0 15833fi 15834if test ! -f "$as_myself"; then 15835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15836 exit 1 15837fi 15838 15839# Unset variables that we do not need and which cause bugs (e.g. in 15840# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15841# suppresses any "Segmentation fault" message there. '((' could 15842# trigger a bug in pdksh 5.2.14. 15843for as_var in BASH_ENV ENV MAIL MAILPATH 15844do eval test x\${$as_var+set} = xset \ 15845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15846done 15847PS1='$ ' 15848PS2='> ' 15849PS4='+ ' 15850 15851# NLS nuisances. 15852LC_ALL=C 15853export LC_ALL 15854LANGUAGE=C 15855export LANGUAGE 15856 15857# CDPATH. 15858(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15859 15860 15861# as_fn_error STATUS ERROR [LINENO LOG_FD] 15862# ---------------------------------------- 15863# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15864# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15865# script with STATUS, using 1 if that was 0. 15866as_fn_error () 15867{ 15868 as_status=$1; test $as_status -eq 0 && as_status=1 15869 if test "$4"; then 15870 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15872 fi 15873 $as_echo "$as_me: error: $2" >&2 15874 as_fn_exit $as_status 15875} # as_fn_error 15876 15877 15878# as_fn_set_status STATUS 15879# ----------------------- 15880# Set $? to STATUS, without forking. 15881as_fn_set_status () 15882{ 15883 return $1 15884} # as_fn_set_status 15885 15886# as_fn_exit STATUS 15887# ----------------- 15888# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15889as_fn_exit () 15890{ 15891 set +e 15892 as_fn_set_status $1 15893 exit $1 15894} # as_fn_exit 15895 15896# as_fn_unset VAR 15897# --------------- 15898# Portably unset VAR. 15899as_fn_unset () 15900{ 15901 { eval $1=; unset $1;} 15902} 15903as_unset=as_fn_unset 15904# as_fn_append VAR VALUE 15905# ---------------------- 15906# Append the text in VALUE to the end of the definition contained in VAR. Take 15907# advantage of any shell optimizations that allow amortized linear growth over 15908# repeated appends, instead of the typical quadratic growth present in naive 15909# implementations. 15910if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15911 eval 'as_fn_append () 15912 { 15913 eval $1+=\$2 15914 }' 15915else 15916 as_fn_append () 15917 { 15918 eval $1=\$$1\$2 15919 } 15920fi # as_fn_append 15921 15922# as_fn_arith ARG... 15923# ------------------ 15924# Perform arithmetic evaluation on the ARGs, and store the result in the 15925# global $as_val. Take advantage of shells that can avoid forks. The arguments 15926# must be portable across $(()) and expr. 15927if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15928 eval 'as_fn_arith () 15929 { 15930 as_val=$(( $* )) 15931 }' 15932else 15933 as_fn_arith () 15934 { 15935 as_val=`expr "$@" || test $? -eq 1` 15936 } 15937fi # as_fn_arith 15938 15939 15940if expr a : '\(a\)' >/dev/null 2>&1 && 15941 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15942 as_expr=expr 15943else 15944 as_expr=false 15945fi 15946 15947if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15948 as_basename=basename 15949else 15950 as_basename=false 15951fi 15952 15953if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15954 as_dirname=dirname 15955else 15956 as_dirname=false 15957fi 15958 15959as_me=`$as_basename -- "$0" || 15960$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15961 X"$0" : 'X\(//\)$' \| \ 15962 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15963$as_echo X/"$0" | 15964 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15965 s//\1/ 15966 q 15967 } 15968 /^X\/\(\/\/\)$/{ 15969 s//\1/ 15970 q 15971 } 15972 /^X\/\(\/\).*/{ 15973 s//\1/ 15974 q 15975 } 15976 s/.*/./; q'` 15977 15978# Avoid depending upon Character Ranges. 15979as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15980as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15981as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15982as_cr_digits='0123456789' 15983as_cr_alnum=$as_cr_Letters$as_cr_digits 15984 15985ECHO_C= ECHO_N= ECHO_T= 15986case `echo -n x` in #((((( 15987-n*) 15988 case `echo 'xy\c'` in 15989 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15990 xy) ECHO_C='\c';; 15991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15992 ECHO_T=' ';; 15993 esac;; 15994*) 15995 ECHO_N='-n';; 15996esac 15997 15998rm -f conf$$ conf$$.exe conf$$.file 15999if test -d conf$$.dir; then 16000 rm -f conf$$.dir/conf$$.file 16001else 16002 rm -f conf$$.dir 16003 mkdir conf$$.dir 2>/dev/null 16004fi 16005if (echo >conf$$.file) 2>/dev/null; then 16006 if ln -s conf$$.file conf$$ 2>/dev/null; then 16007 as_ln_s='ln -s' 16008 # ... but there are two gotchas: 16009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16011 # In both cases, we have to default to `cp -p'. 16012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16013 as_ln_s='cp -p' 16014 elif ln conf$$.file conf$$ 2>/dev/null; then 16015 as_ln_s=ln 16016 else 16017 as_ln_s='cp -p' 16018 fi 16019else 16020 as_ln_s='cp -p' 16021fi 16022rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16023rmdir conf$$.dir 2>/dev/null 16024 16025 16026# as_fn_mkdir_p 16027# ------------- 16028# Create "$as_dir" as a directory, including parents if necessary. 16029as_fn_mkdir_p () 16030{ 16031 16032 case $as_dir in #( 16033 -*) as_dir=./$as_dir;; 16034 esac 16035 test -d "$as_dir" || eval $as_mkdir_p || { 16036 as_dirs= 16037 while :; do 16038 case $as_dir in #( 16039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16040 *) as_qdir=$as_dir;; 16041 esac 16042 as_dirs="'$as_qdir' $as_dirs" 16043 as_dir=`$as_dirname -- "$as_dir" || 16044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16045 X"$as_dir" : 'X\(//\)[^/]' \| \ 16046 X"$as_dir" : 'X\(//\)$' \| \ 16047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16048$as_echo X"$as_dir" | 16049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16050 s//\1/ 16051 q 16052 } 16053 /^X\(\/\/\)[^/].*/{ 16054 s//\1/ 16055 q 16056 } 16057 /^X\(\/\/\)$/{ 16058 s//\1/ 16059 q 16060 } 16061 /^X\(\/\).*/{ 16062 s//\1/ 16063 q 16064 } 16065 s/.*/./; q'` 16066 test -d "$as_dir" && break 16067 done 16068 test -z "$as_dirs" || eval "mkdir $as_dirs" 16069 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16070 16071 16072} # as_fn_mkdir_p 16073if mkdir -p . 2>/dev/null; then 16074 as_mkdir_p='mkdir -p "$as_dir"' 16075else 16076 test -d ./-p && rmdir ./-p 16077 as_mkdir_p=false 16078fi 16079 16080if test -x / >/dev/null 2>&1; then 16081 as_test_x='test -x' 16082else 16083 if ls -dL / >/dev/null 2>&1; then 16084 as_ls_L_option=L 16085 else 16086 as_ls_L_option= 16087 fi 16088 as_test_x=' 16089 eval sh -c '\'' 16090 if test -d "$1"; then 16091 test -d "$1/."; 16092 else 16093 case $1 in #( 16094 -*)set "./$1";; 16095 esac; 16096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16097 ???[sx]*):;;*)false;;esac;fi 16098 '\'' sh 16099 ' 16100fi 16101as_executable_p=$as_test_x 16102 16103# Sed expression to map a string onto a valid CPP name. 16104as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16105 16106# Sed expression to map a string onto a valid variable name. 16107as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16108 16109 16110exec 6>&1 16111## ----------------------------------- ## 16112## Main body of $CONFIG_STATUS script. ## 16113## ----------------------------------- ## 16114_ASEOF 16115test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16116 16117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16118# Save the log message, to keep $0 and so on meaningful, and to 16119# report actual input values of CONFIG_FILES etc. instead of their 16120# values after options handling. 16121ac_log=" 16122This file was extended by Google C++ Testing Framework $as_me 1.7.0, which was 16123generated by GNU Autoconf 2.68. Invocation command line was 16124 16125 CONFIG_FILES = $CONFIG_FILES 16126 CONFIG_HEADERS = $CONFIG_HEADERS 16127 CONFIG_LINKS = $CONFIG_LINKS 16128 CONFIG_COMMANDS = $CONFIG_COMMANDS 16129 $ $0 $@ 16130 16131on `(hostname || uname -n) 2>/dev/null | sed 1q` 16132" 16133 16134_ACEOF 16135 16136case $ac_config_files in *" 16137"*) set x $ac_config_files; shift; ac_config_files=$*;; 16138esac 16139 16140case $ac_config_headers in *" 16141"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16142esac 16143 16144 16145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16146# Files that config.status was made for. 16147config_files="$ac_config_files" 16148config_headers="$ac_config_headers" 16149config_commands="$ac_config_commands" 16150 16151_ACEOF 16152 16153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16154ac_cs_usage="\ 16155\`$as_me' instantiates files and other configuration actions 16156from templates according to the current configuration. Unless the files 16157and actions are specified as TAGs, all are instantiated by default. 16158 16159Usage: $0 [OPTION]... [TAG]... 16160 16161 -h, --help print this help, then exit 16162 -V, --version print version number and configuration settings, then exit 16163 --config print configuration, then exit 16164 -q, --quiet, --silent 16165 do not print progress messages 16166 -d, --debug don't remove temporary files 16167 --recheck update $as_me by reconfiguring in the same conditions 16168 --file=FILE[:TEMPLATE] 16169 instantiate the configuration file FILE 16170 --header=FILE[:TEMPLATE] 16171 instantiate the configuration header FILE 16172 16173Configuration files: 16174$config_files 16175 16176Configuration headers: 16177$config_headers 16178 16179Configuration commands: 16180$config_commands 16181 16182Report bugs to <googletestframework@googlegroups.com>." 16183 16184_ACEOF 16185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16186ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16187ac_cs_version="\\ 16188Google C++ Testing Framework config.status 1.7.0 16189configured by $0, generated by GNU Autoconf 2.68, 16190 with options \\"\$ac_cs_config\\" 16191 16192Copyright (C) 2010 Free Software Foundation, Inc. 16193This config.status script is free software; the Free Software Foundation 16194gives unlimited permission to copy, distribute and modify it." 16195 16196ac_pwd='$ac_pwd' 16197srcdir='$srcdir' 16198INSTALL='$INSTALL' 16199MKDIR_P='$MKDIR_P' 16200AWK='$AWK' 16201test -n "\$AWK" || AWK=awk 16202_ACEOF 16203 16204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16205# The default lists apply if the user does not specify any file. 16206ac_need_defaults=: 16207while test $# != 0 16208do 16209 case $1 in 16210 --*=?*) 16211 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16213 ac_shift=: 16214 ;; 16215 --*=) 16216 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16217 ac_optarg= 16218 ac_shift=: 16219 ;; 16220 *) 16221 ac_option=$1 16222 ac_optarg=$2 16223 ac_shift=shift 16224 ;; 16225 esac 16226 16227 case $ac_option in 16228 # Handling of the options. 16229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16230 ac_cs_recheck=: ;; 16231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16232 $as_echo "$ac_cs_version"; exit ;; 16233 --config | --confi | --conf | --con | --co | --c ) 16234 $as_echo "$ac_cs_config"; exit ;; 16235 --debug | --debu | --deb | --de | --d | -d ) 16236 debug=: ;; 16237 --file | --fil | --fi | --f ) 16238 $ac_shift 16239 case $ac_optarg in 16240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16241 '') as_fn_error $? "missing file argument" ;; 16242 esac 16243 as_fn_append CONFIG_FILES " '$ac_optarg'" 16244 ac_need_defaults=false;; 16245 --header | --heade | --head | --hea ) 16246 $ac_shift 16247 case $ac_optarg in 16248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16249 esac 16250 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16251 ac_need_defaults=false;; 16252 --he | --h) 16253 # Conflict between --help and --header 16254 as_fn_error $? "ambiguous option: \`$1' 16255Try \`$0 --help' for more information.";; 16256 --help | --hel | -h ) 16257 $as_echo "$ac_cs_usage"; exit ;; 16258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16259 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16260 ac_cs_silent=: ;; 16261 16262 # This is an error. 16263 -*) as_fn_error $? "unrecognized option: \`$1' 16264Try \`$0 --help' for more information." ;; 16265 16266 *) as_fn_append ac_config_targets " $1" 16267 ac_need_defaults=false ;; 16268 16269 esac 16270 shift 16271done 16272 16273ac_configure_extra_args= 16274 16275if $ac_cs_silent; then 16276 exec 6>/dev/null 16277 ac_configure_extra_args="$ac_configure_extra_args --silent" 16278fi 16279 16280_ACEOF 16281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16282if \$ac_cs_recheck; then 16283 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16284 shift 16285 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16286 CONFIG_SHELL='$SHELL' 16287 export CONFIG_SHELL 16288 exec "\$@" 16289fi 16290 16291_ACEOF 16292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16293exec 5>>config.log 16294{ 16295 echo 16296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16297## Running $as_me. ## 16298_ASBOX 16299 $as_echo "$ac_log" 16300} >&5 16301 16302_ACEOF 16303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16304# 16305# INIT-COMMANDS 16306# 16307AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16308 16309 16310# The HP-UX ksh and POSIX shell print the target directory to stdout 16311# if CDPATH is set. 16312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16313 16314sed_quote_subst='$sed_quote_subst' 16315double_quote_subst='$double_quote_subst' 16316delay_variable_subst='$delay_variable_subst' 16317macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16318macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16319enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16320enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16321pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16322enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16323SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16324ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16325PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16326host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16327host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16328host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16329build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16330build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16331build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16332SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16333Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16334GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16335EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16336FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16337LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16338NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16339LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16340max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16341ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16342exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16343lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16344lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16345lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16346lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16347lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16348reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16349reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16350OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16351deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16352file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16353file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16354want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16355DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16356sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16357AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16358AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16359archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16360STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16361RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16362old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16363old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16364old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16365lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16366CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16367CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16368compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16369GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16370lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16371lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16372lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16373lt_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"`' 16374nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16375lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16376objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16377MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16378lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16379lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16380lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16381lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16382lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16383need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16384MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16385DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16386NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16387LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16388OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16389OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16390libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16391shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16392extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16393archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16394enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16395export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16396whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16397compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16398old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16399old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16400archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16401archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16402module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16403module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16404with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16405allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16406no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16407hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16408hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16409hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16410hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16411hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16412hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16413hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16414inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16415link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16416always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16417export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16418exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16419include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16420prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16421postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16422file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16423variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16424need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16425need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16426version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16427runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16428shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16429shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16430libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16431library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16432soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16433install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16434postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16435postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16436finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16437finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16438hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16439sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16440sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16441hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16442enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16443enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16444enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16445old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16446striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16447compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16448predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16449postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16450predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16451postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16452compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16453LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16454reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16455reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16456old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16457compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16458GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16459lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16460lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16461lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16462lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16463lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16464archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16465enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16466export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16467whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16468compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16469old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16470old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16471archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16472archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16473module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16474module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16475with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16476allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16477no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16478hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16479hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16480hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16481hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16482hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16483hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16484hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16485inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16486link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16487always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16488export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16489exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16490include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16491prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16492postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16493file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16494hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16495compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16496predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16497postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16498predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16499postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16500compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16501 16502LTCC='$LTCC' 16503LTCFLAGS='$LTCFLAGS' 16504compiler='$compiler_DEFAULT' 16505 16506# A function that is used when there is no print builtin or printf. 16507func_fallback_echo () 16508{ 16509 eval 'cat <<_LTECHO_EOF 16510\$1 16511_LTECHO_EOF' 16512} 16513 16514# Quote evaled strings. 16515for var in SHELL \ 16516ECHO \ 16517PATH_SEPARATOR \ 16518SED \ 16519GREP \ 16520EGREP \ 16521FGREP \ 16522LD \ 16523NM \ 16524LN_S \ 16525lt_SP2NL \ 16526lt_NL2SP \ 16527reload_flag \ 16528OBJDUMP \ 16529deplibs_check_method \ 16530file_magic_cmd \ 16531file_magic_glob \ 16532want_nocaseglob \ 16533DLLTOOL \ 16534sharedlib_from_linklib_cmd \ 16535AR \ 16536AR_FLAGS \ 16537archiver_list_spec \ 16538STRIP \ 16539RANLIB \ 16540CC \ 16541CFLAGS \ 16542compiler \ 16543lt_cv_sys_global_symbol_pipe \ 16544lt_cv_sys_global_symbol_to_cdecl \ 16545lt_cv_sys_global_symbol_to_c_name_address \ 16546lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16547nm_file_list_spec \ 16548lt_prog_compiler_no_builtin_flag \ 16549lt_prog_compiler_pic \ 16550lt_prog_compiler_wl \ 16551lt_prog_compiler_static \ 16552lt_cv_prog_compiler_c_o \ 16553need_locks \ 16554MANIFEST_TOOL \ 16555DSYMUTIL \ 16556NMEDIT \ 16557LIPO \ 16558OTOOL \ 16559OTOOL64 \ 16560shrext_cmds \ 16561export_dynamic_flag_spec \ 16562whole_archive_flag_spec \ 16563compiler_needs_object \ 16564with_gnu_ld \ 16565allow_undefined_flag \ 16566no_undefined_flag \ 16567hardcode_libdir_flag_spec \ 16568hardcode_libdir_separator \ 16569exclude_expsyms \ 16570include_expsyms \ 16571file_list_spec \ 16572variables_saved_for_relink \ 16573libname_spec \ 16574library_names_spec \ 16575soname_spec \ 16576install_override_mode \ 16577finish_eval \ 16578old_striplib \ 16579striplib \ 16580compiler_lib_search_dirs \ 16581predep_objects \ 16582postdep_objects \ 16583predeps \ 16584postdeps \ 16585compiler_lib_search_path \ 16586LD_CXX \ 16587reload_flag_CXX \ 16588compiler_CXX \ 16589lt_prog_compiler_no_builtin_flag_CXX \ 16590lt_prog_compiler_pic_CXX \ 16591lt_prog_compiler_wl_CXX \ 16592lt_prog_compiler_static_CXX \ 16593lt_cv_prog_compiler_c_o_CXX \ 16594export_dynamic_flag_spec_CXX \ 16595whole_archive_flag_spec_CXX \ 16596compiler_needs_object_CXX \ 16597with_gnu_ld_CXX \ 16598allow_undefined_flag_CXX \ 16599no_undefined_flag_CXX \ 16600hardcode_libdir_flag_spec_CXX \ 16601hardcode_libdir_separator_CXX \ 16602exclude_expsyms_CXX \ 16603include_expsyms_CXX \ 16604file_list_spec_CXX \ 16605compiler_lib_search_dirs_CXX \ 16606predep_objects_CXX \ 16607postdep_objects_CXX \ 16608predeps_CXX \ 16609postdeps_CXX \ 16610compiler_lib_search_path_CXX; do 16611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16612 *[\\\\\\\`\\"\\\$]*) 16613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16614 ;; 16615 *) 16616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16617 ;; 16618 esac 16619done 16620 16621# Double-quote double-evaled strings. 16622for var in reload_cmds \ 16623old_postinstall_cmds \ 16624old_postuninstall_cmds \ 16625old_archive_cmds \ 16626extract_expsyms_cmds \ 16627old_archive_from_new_cmds \ 16628old_archive_from_expsyms_cmds \ 16629archive_cmds \ 16630archive_expsym_cmds \ 16631module_cmds \ 16632module_expsym_cmds \ 16633export_symbols_cmds \ 16634prelink_cmds \ 16635postlink_cmds \ 16636postinstall_cmds \ 16637postuninstall_cmds \ 16638finish_cmds \ 16639sys_lib_search_path_spec \ 16640sys_lib_dlsearch_path_spec \ 16641reload_cmds_CXX \ 16642old_archive_cmds_CXX \ 16643old_archive_from_new_cmds_CXX \ 16644old_archive_from_expsyms_cmds_CXX \ 16645archive_cmds_CXX \ 16646archive_expsym_cmds_CXX \ 16647module_cmds_CXX \ 16648module_expsym_cmds_CXX \ 16649export_symbols_cmds_CXX \ 16650prelink_cmds_CXX \ 16651postlink_cmds_CXX; do 16652 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16653 *[\\\\\\\`\\"\\\$]*) 16654 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16655 ;; 16656 *) 16657 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16658 ;; 16659 esac 16660done 16661 16662ac_aux_dir='$ac_aux_dir' 16663xsi_shell='$xsi_shell' 16664lt_shell_append='$lt_shell_append' 16665 16666# See if we are running on zsh, and set the options which allow our 16667# commands through without removal of \ escapes INIT. 16668if test -n "\${ZSH_VERSION+set}" ; then 16669 setopt NO_GLOB_SUBST 16670fi 16671 16672 16673 PACKAGE='$PACKAGE' 16674 VERSION='$VERSION' 16675 TIMESTAMP='$TIMESTAMP' 16676 RM='$RM' 16677 ofile='$ofile' 16678 16679 16680 16681 16682 16683 16684_ACEOF 16685 16686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16687 16688# Handling of arguments. 16689for ac_config_target in $ac_config_targets 16690do 16691 case $ac_config_target in 16692 "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;; 16693 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16694 "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;; 16695 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16696 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16697 16698 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16699 esac 16700done 16701 16702 16703# If the user did not use the arguments to specify the items to instantiate, 16704# then the envvar interface is used. Set only those that are not. 16705# We use the long form for the default assignment because of an extremely 16706# bizarre bug on SunOS 4.1.3. 16707if $ac_need_defaults; then 16708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16711fi 16712 16713# Have a temporary directory for convenience. Make it in the build tree 16714# simply because there is no reason against having it here, and in addition, 16715# creating and moving files from /tmp can sometimes cause problems. 16716# Hook for its removal unless debugging. 16717# Note that there is a small window in which the directory will not be cleaned: 16718# after its creation but before its name has been assigned to `$tmp'. 16719$debug || 16720{ 16721 tmp= ac_tmp= 16722 trap 'exit_status=$? 16723 : "${ac_tmp:=$tmp}" 16724 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16725' 0 16726 trap 'as_fn_exit 1' 1 2 13 15 16727} 16728# Create a (secure) tmp directory for tmp files. 16729 16730{ 16731 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16732 test -d "$tmp" 16733} || 16734{ 16735 tmp=./conf$$-$RANDOM 16736 (umask 077 && mkdir "$tmp") 16737} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16738ac_tmp=$tmp 16739 16740# Set up the scripts for CONFIG_FILES section. 16741# No need to generate them if there are no CONFIG_FILES. 16742# This happens for instance with `./config.status config.h'. 16743if test -n "$CONFIG_FILES"; then 16744 16745 16746ac_cr=`echo X | tr X '\015'` 16747# On cygwin, bash can eat \r inside `` if the user requested igncr. 16748# But we know of no other shell where ac_cr would be empty at this 16749# point, so we can use a bashism as a fallback. 16750if test "x$ac_cr" = x; then 16751 eval ac_cr=\$\'\\r\' 16752fi 16753ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16754if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16755 ac_cs_awk_cr='\\r' 16756else 16757 ac_cs_awk_cr=$ac_cr 16758fi 16759 16760echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16761_ACEOF 16762 16763 16764{ 16765 echo "cat >conf$$subs.awk <<_ACEOF" && 16766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16767 echo "_ACEOF" 16768} >conf$$subs.sh || 16769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16770ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16771ac_delim='%!_!# ' 16772for ac_last_try in false false false false false :; do 16773 . ./conf$$subs.sh || 16774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16775 16776 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16777 if test $ac_delim_n = $ac_delim_num; then 16778 break 16779 elif $ac_last_try; then 16780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16781 else 16782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16783 fi 16784done 16785rm -f conf$$subs.sh 16786 16787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16788cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16789_ACEOF 16790sed -n ' 16791h 16792s/^/S["/; s/!.*/"]=/ 16793p 16794g 16795s/^[^!]*!// 16796:repl 16797t repl 16798s/'"$ac_delim"'$// 16799t delim 16800:nl 16801h 16802s/\(.\{148\}\)..*/\1/ 16803t more1 16804s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16805p 16806n 16807b repl 16808:more1 16809s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16810p 16811g 16812s/.\{148\}// 16813t nl 16814:delim 16815h 16816s/\(.\{148\}\)..*/\1/ 16817t more2 16818s/["\\]/\\&/g; s/^/"/; s/$/"/ 16819p 16820b 16821:more2 16822s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16823p 16824g 16825s/.\{148\}// 16826t delim 16827' <conf$$subs.awk | sed ' 16828/^[^""]/{ 16829 N 16830 s/\n// 16831} 16832' >>$CONFIG_STATUS || ac_write_fail=1 16833rm -f conf$$subs.awk 16834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16835_ACAWK 16836cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16837 for (key in S) S_is_set[key] = 1 16838 FS = "" 16839 16840} 16841{ 16842 line = $ 0 16843 nfields = split(line, field, "@") 16844 substed = 0 16845 len = length(field[1]) 16846 for (i = 2; i < nfields; i++) { 16847 key = field[i] 16848 keylen = length(key) 16849 if (S_is_set[key]) { 16850 value = S[key] 16851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16852 len += length(value) + length(field[++i]) 16853 substed = 1 16854 } else 16855 len += 1 + keylen 16856 } 16857 16858 print line 16859} 16860 16861_ACAWK 16862_ACEOF 16863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16864if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16866else 16867 cat 16868fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16869 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16870_ACEOF 16871 16872# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16873# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16874# trailing colons and then remove the whole line if VPATH becomes empty 16875# (actually we leave an empty line to preserve line numbers). 16876if test "x$srcdir" = x.; then 16877 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16878h 16879s/// 16880s/^/:/ 16881s/[ ]*$/:/ 16882s/:\$(srcdir):/:/g 16883s/:\${srcdir}:/:/g 16884s/:@srcdir@:/:/g 16885s/^:*// 16886s/:*$// 16887x 16888s/\(=[ ]*\).*/\1/ 16889G 16890s/\n// 16891s/^[^=]*=[ ]*$// 16892}' 16893fi 16894 16895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16896fi # test -n "$CONFIG_FILES" 16897 16898# Set up the scripts for CONFIG_HEADERS section. 16899# No need to generate them if there are no CONFIG_HEADERS. 16900# This happens for instance with `./config.status Makefile'. 16901if test -n "$CONFIG_HEADERS"; then 16902cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16903BEGIN { 16904_ACEOF 16905 16906# Transform confdefs.h into an awk script `defines.awk', embedded as 16907# here-document in config.status, that substitutes the proper values into 16908# config.h.in to produce config.h. 16909 16910# Create a delimiter string that does not exist in confdefs.h, to ease 16911# handling of long lines. 16912ac_delim='%!_!# ' 16913for ac_last_try in false false :; do 16914 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16915 if test -z "$ac_tt"; then 16916 break 16917 elif $ac_last_try; then 16918 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16919 else 16920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16921 fi 16922done 16923 16924# For the awk script, D is an array of macro values keyed by name, 16925# likewise P contains macro parameters if any. Preserve backslash 16926# newline sequences. 16927 16928ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16929sed -n ' 16930s/.\{148\}/&'"$ac_delim"'/g 16931t rset 16932:rset 16933s/^[ ]*#[ ]*define[ ][ ]*/ / 16934t def 16935d 16936:def 16937s/\\$// 16938t bsnl 16939s/["\\]/\\&/g 16940s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16941D["\1"]=" \3"/p 16942s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16943d 16944:bsnl 16945s/["\\]/\\&/g 16946s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16947D["\1"]=" \3\\\\\\n"\\/p 16948t cont 16949s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16950t cont 16951d 16952:cont 16953n 16954s/.\{148\}/&'"$ac_delim"'/g 16955t clear 16956:clear 16957s/\\$// 16958t bsnlc 16959s/["\\]/\\&/g; s/^/"/; s/$/"/p 16960d 16961:bsnlc 16962s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16963b cont 16964' <confdefs.h | sed ' 16965s/'"$ac_delim"'/"\\\ 16966"/g' >>$CONFIG_STATUS || ac_write_fail=1 16967 16968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16969 for (key in D) D_is_set[key] = 1 16970 FS = "" 16971} 16972/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16973 line = \$ 0 16974 split(line, arg, " ") 16975 if (arg[1] == "#") { 16976 defundef = arg[2] 16977 mac1 = arg[3] 16978 } else { 16979 defundef = substr(arg[1], 2) 16980 mac1 = arg[2] 16981 } 16982 split(mac1, mac2, "(") #) 16983 macro = mac2[1] 16984 prefix = substr(line, 1, index(line, defundef) - 1) 16985 if (D_is_set[macro]) { 16986 # Preserve the white space surrounding the "#". 16987 print prefix "define", macro P[macro] D[macro] 16988 next 16989 } else { 16990 # Replace #undef with comments. This is necessary, for example, 16991 # in the case of _POSIX_SOURCE, which is predefined and required 16992 # on some systems where configure will not decide to define it. 16993 if (defundef == "undef") { 16994 print "/*", prefix defundef, macro, "*/" 16995 next 16996 } 16997 } 16998} 16999{ print } 17000_ACAWK 17001_ACEOF 17002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17003 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17004fi # test -n "$CONFIG_HEADERS" 17005 17006 17007eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17008shift 17009for ac_tag 17010do 17011 case $ac_tag in 17012 :[FHLC]) ac_mode=$ac_tag; continue;; 17013 esac 17014 case $ac_mode$ac_tag in 17015 :[FHL]*:*);; 17016 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17017 :[FH]-) ac_tag=-:-;; 17018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17019 esac 17020 ac_save_IFS=$IFS 17021 IFS=: 17022 set x $ac_tag 17023 IFS=$ac_save_IFS 17024 shift 17025 ac_file=$1 17026 shift 17027 17028 case $ac_mode in 17029 :L) ac_source=$1;; 17030 :[FH]) 17031 ac_file_inputs= 17032 for ac_f 17033 do 17034 case $ac_f in 17035 -) ac_f="$ac_tmp/stdin";; 17036 *) # Look for the file first in the build tree, then in the source tree 17037 # (if the path is not absolute). The absolute path cannot be DOS-style, 17038 # because $ac_f cannot contain `:'. 17039 test -f "$ac_f" || 17040 case $ac_f in 17041 [\\/$]*) false;; 17042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17043 esac || 17044 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17045 esac 17046 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17047 as_fn_append ac_file_inputs " '$ac_f'" 17048 done 17049 17050 # Let's still pretend it is `configure' which instantiates (i.e., don't 17051 # use $as_me), people would be surprised to read: 17052 # /* config.h. Generated by config.status. */ 17053 configure_input='Generated from '` 17054 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17055 `' by configure.' 17056 if test x"$ac_file" != x-; then 17057 configure_input="$ac_file. $configure_input" 17058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17059$as_echo "$as_me: creating $ac_file" >&6;} 17060 fi 17061 # Neutralize special characters interpreted by sed in replacement strings. 17062 case $configure_input in #( 17063 *\&* | *\|* | *\\* ) 17064 ac_sed_conf_input=`$as_echo "$configure_input" | 17065 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17066 *) ac_sed_conf_input=$configure_input;; 17067 esac 17068 17069 case $ac_tag in 17070 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17072 esac 17073 ;; 17074 esac 17075 17076 ac_dir=`$as_dirname -- "$ac_file" || 17077$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17078 X"$ac_file" : 'X\(//\)[^/]' \| \ 17079 X"$ac_file" : 'X\(//\)$' \| \ 17080 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17081$as_echo X"$ac_file" | 17082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17083 s//\1/ 17084 q 17085 } 17086 /^X\(\/\/\)[^/].*/{ 17087 s//\1/ 17088 q 17089 } 17090 /^X\(\/\/\)$/{ 17091 s//\1/ 17092 q 17093 } 17094 /^X\(\/\).*/{ 17095 s//\1/ 17096 q 17097 } 17098 s/.*/./; q'` 17099 as_dir="$ac_dir"; as_fn_mkdir_p 17100 ac_builddir=. 17101 17102case "$ac_dir" in 17103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17104*) 17105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17106 # A ".." for each directory in $ac_dir_suffix. 17107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17108 case $ac_top_builddir_sub in 17109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17111 esac ;; 17112esac 17113ac_abs_top_builddir=$ac_pwd 17114ac_abs_builddir=$ac_pwd$ac_dir_suffix 17115# for backward compatibility: 17116ac_top_builddir=$ac_top_build_prefix 17117 17118case $srcdir in 17119 .) # We are building in place. 17120 ac_srcdir=. 17121 ac_top_srcdir=$ac_top_builddir_sub 17122 ac_abs_top_srcdir=$ac_pwd ;; 17123 [\\/]* | ?:[\\/]* ) # Absolute name. 17124 ac_srcdir=$srcdir$ac_dir_suffix; 17125 ac_top_srcdir=$srcdir 17126 ac_abs_top_srcdir=$srcdir ;; 17127 *) # Relative name. 17128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17129 ac_top_srcdir=$ac_top_build_prefix$srcdir 17130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17131esac 17132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17133 17134 17135 case $ac_mode in 17136 :F) 17137 # 17138 # CONFIG_FILE 17139 # 17140 17141 case $INSTALL in 17142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17143 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17144 esac 17145 ac_MKDIR_P=$MKDIR_P 17146 case $MKDIR_P in 17147 [\\/$]* | ?:[\\/]* ) ;; 17148 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17149 esac 17150_ACEOF 17151 17152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17153# If the template does not know about datarootdir, expand it. 17154# FIXME: This hack should be removed a few years after 2.60. 17155ac_datarootdir_hack=; ac_datarootdir_seen= 17156ac_sed_dataroot=' 17157/datarootdir/ { 17158 p 17159 q 17160} 17161/@datadir@/p 17162/@docdir@/p 17163/@infodir@/p 17164/@localedir@/p 17165/@mandir@/p' 17166case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17167*datarootdir*) ac_datarootdir_seen=yes;; 17168*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17170$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17171_ACEOF 17172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17173 ac_datarootdir_hack=' 17174 s&@datadir@&$datadir&g 17175 s&@docdir@&$docdir&g 17176 s&@infodir@&$infodir&g 17177 s&@localedir@&$localedir&g 17178 s&@mandir@&$mandir&g 17179 s&\\\${datarootdir}&$datarootdir&g' ;; 17180esac 17181_ACEOF 17182 17183# Neutralize VPATH when `$srcdir' = `.'. 17184# Shell code in configure.ac might set extrasub. 17185# FIXME: do we really want to maintain this feature? 17186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17187ac_sed_extra="$ac_vpsub 17188$extrasub 17189_ACEOF 17190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17191:t 17192/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17193s|@configure_input@|$ac_sed_conf_input|;t t 17194s&@top_builddir@&$ac_top_builddir_sub&;t t 17195s&@top_build_prefix@&$ac_top_build_prefix&;t t 17196s&@srcdir@&$ac_srcdir&;t t 17197s&@abs_srcdir@&$ac_abs_srcdir&;t t 17198s&@top_srcdir@&$ac_top_srcdir&;t t 17199s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17200s&@builddir@&$ac_builddir&;t t 17201s&@abs_builddir@&$ac_abs_builddir&;t t 17202s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17203s&@INSTALL@&$ac_INSTALL&;t t 17204s&@MKDIR_P@&$ac_MKDIR_P&;t t 17205$ac_datarootdir_hack 17206" 17207eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17209 17210test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17213 "$ac_tmp/out"`; test -z "$ac_out"; } && 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17215which seems to be undefined. Please make sure it is defined" >&5 17216$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17217which seems to be undefined. Please make sure it is defined" >&2;} 17218 17219 rm -f "$ac_tmp/stdin" 17220 case $ac_file in 17221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17223 esac \ 17224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17225 ;; 17226 :H) 17227 # 17228 # CONFIG_HEADER 17229 # 17230 if test x"$ac_file" != x-; then 17231 { 17232 $as_echo "/* $configure_input */" \ 17233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17234 } >"$ac_tmp/config.h" \ 17235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17238$as_echo "$as_me: $ac_file is unchanged" >&6;} 17239 else 17240 rm -f "$ac_file" 17241 mv "$ac_tmp/config.h" "$ac_file" \ 17242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17243 fi 17244 else 17245 $as_echo "/* $configure_input */" \ 17246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17247 || as_fn_error $? "could not create -" "$LINENO" 5 17248 fi 17249# Compute "$ac_file"'s index in $config_headers. 17250_am_arg="$ac_file" 17251_am_stamp_count=1 17252for _am_header in $config_headers :; do 17253 case $_am_header in 17254 $_am_arg | $_am_arg:* ) 17255 break ;; 17256 * ) 17257 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17258 esac 17259done 17260echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17261$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17262 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17263 X"$_am_arg" : 'X\(//\)$' \| \ 17264 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17265$as_echo X"$_am_arg" | 17266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17267 s//\1/ 17268 q 17269 } 17270 /^X\(\/\/\)[^/].*/{ 17271 s//\1/ 17272 q 17273 } 17274 /^X\(\/\/\)$/{ 17275 s//\1/ 17276 q 17277 } 17278 /^X\(\/\).*/{ 17279 s//\1/ 17280 q 17281 } 17282 s/.*/./; q'`/stamp-h$_am_stamp_count 17283 ;; 17284 17285 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17286$as_echo "$as_me: executing $ac_file commands" >&6;} 17287 ;; 17288 esac 17289 17290 17291 case $ac_file$ac_mode in 17292 "scripts/gtest-config":F) chmod +x scripts/gtest-config ;; 17293 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17294 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17295 # are listed without --file. Let's play safe and only enable the eval 17296 # if we detect the quoting. 17297 case $CONFIG_FILES in 17298 *\'*) eval set x "$CONFIG_FILES" ;; 17299 *) set x $CONFIG_FILES ;; 17300 esac 17301 shift 17302 for mf 17303 do 17304 # Strip MF so we end up with the name of the file. 17305 mf=`echo "$mf" | sed -e 's/:.*$//'` 17306 # Check whether this is an Automake generated Makefile or not. 17307 # We used to match only the files named `Makefile.in', but 17308 # some people rename them; so instead we look at the file content. 17309 # Grep'ing the first line is not enough: some people post-process 17310 # each Makefile.in and add a new line on top of each file to say so. 17311 # Grep'ing the whole file is not good either: AIX grep has a line 17312 # limit of 2048, but all sed's we know have understand at least 4000. 17313 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17314 dirpart=`$as_dirname -- "$mf" || 17315$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17316 X"$mf" : 'X\(//\)[^/]' \| \ 17317 X"$mf" : 'X\(//\)$' \| \ 17318 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17319$as_echo X"$mf" | 17320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17321 s//\1/ 17322 q 17323 } 17324 /^X\(\/\/\)[^/].*/{ 17325 s//\1/ 17326 q 17327 } 17328 /^X\(\/\/\)$/{ 17329 s//\1/ 17330 q 17331 } 17332 /^X\(\/\).*/{ 17333 s//\1/ 17334 q 17335 } 17336 s/.*/./; q'` 17337 else 17338 continue 17339 fi 17340 # Extract the definition of DEPDIR, am__include, and am__quote 17341 # from the Makefile without running `make'. 17342 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17343 test -z "$DEPDIR" && continue 17344 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17345 test -z "am__include" && continue 17346 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17347 # When using ansi2knr, U may be empty or an underscore; expand it 17348 U=`sed -n 's/^U = //p' < "$mf"` 17349 # Find all dependency output files, they are included files with 17350 # $(DEPDIR) in their names. We invoke sed twice because it is the 17351 # simplest approach to changing $(DEPDIR) to its actual value in the 17352 # expansion. 17353 for file in `sed -n " 17354 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17355 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17356 # Make sure the directory exists. 17357 test -f "$dirpart/$file" && continue 17358 fdir=`$as_dirname -- "$file" || 17359$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17360 X"$file" : 'X\(//\)[^/]' \| \ 17361 X"$file" : 'X\(//\)$' \| \ 17362 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17363$as_echo X"$file" | 17364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17365 s//\1/ 17366 q 17367 } 17368 /^X\(\/\/\)[^/].*/{ 17369 s//\1/ 17370 q 17371 } 17372 /^X\(\/\/\)$/{ 17373 s//\1/ 17374 q 17375 } 17376 /^X\(\/\).*/{ 17377 s//\1/ 17378 q 17379 } 17380 s/.*/./; q'` 17381 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17382 # echo "creating $dirpart/$file" 17383 echo '# dummy' > "$dirpart/$file" 17384 done 17385 done 17386} 17387 ;; 17388 "libtool":C) 17389 17390 # See if we are running on zsh, and set the options which allow our 17391 # commands through without removal of \ escapes. 17392 if test -n "${ZSH_VERSION+set}" ; then 17393 setopt NO_GLOB_SUBST 17394 fi 17395 17396 cfgfile="${ofile}T" 17397 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17398 $RM "$cfgfile" 17399 17400 cat <<_LT_EOF >> "$cfgfile" 17401#! $SHELL 17402 17403# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17404# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17405# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17406# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17407# 17408# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17409# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17410# Foundation, Inc. 17411# Written by Gordon Matzigkeit, 1996 17412# 17413# This file is part of GNU Libtool. 17414# 17415# GNU Libtool is free software; you can redistribute it and/or 17416# modify it under the terms of the GNU General Public License as 17417# published by the Free Software Foundation; either version 2 of 17418# the License, or (at your option) any later version. 17419# 17420# As a special exception to the GNU General Public License, 17421# if you distribute this file as part of a program or library that 17422# is built using GNU Libtool, you may include this file under the 17423# same distribution terms that you use for the rest of that program. 17424# 17425# GNU Libtool is distributed in the hope that it will be useful, 17426# but WITHOUT ANY WARRANTY; without even the implied warranty of 17427# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17428# GNU General Public License for more details. 17429# 17430# You should have received a copy of the GNU General Public License 17431# along with GNU Libtool; see the file COPYING. If not, a copy 17432# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17433# obtained by writing to the Free Software Foundation, Inc., 17434# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17435 17436 17437# The names of the tagged configurations supported by this script. 17438available_tags="CXX " 17439 17440# ### BEGIN LIBTOOL CONFIG 17441 17442# Which release of libtool.m4 was used? 17443macro_version=$macro_version 17444macro_revision=$macro_revision 17445 17446# Whether or not to build shared libraries. 17447build_libtool_libs=$enable_shared 17448 17449# Whether or not to build static libraries. 17450build_old_libs=$enable_static 17451 17452# What type of objects to build. 17453pic_mode=$pic_mode 17454 17455# Whether or not to optimize for fast installation. 17456fast_install=$enable_fast_install 17457 17458# Shell to use when invoking shell scripts. 17459SHELL=$lt_SHELL 17460 17461# An echo program that protects backslashes. 17462ECHO=$lt_ECHO 17463 17464# The PATH separator for the build system. 17465PATH_SEPARATOR=$lt_PATH_SEPARATOR 17466 17467# The host system. 17468host_alias=$host_alias 17469host=$host 17470host_os=$host_os 17471 17472# The build system. 17473build_alias=$build_alias 17474build=$build 17475build_os=$build_os 17476 17477# A sed program that does not truncate output. 17478SED=$lt_SED 17479 17480# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17481Xsed="\$SED -e 1s/^X//" 17482 17483# A grep program that handles long lines. 17484GREP=$lt_GREP 17485 17486# An ERE matcher. 17487EGREP=$lt_EGREP 17488 17489# A literal string matcher. 17490FGREP=$lt_FGREP 17491 17492# A BSD- or MS-compatible name lister. 17493NM=$lt_NM 17494 17495# Whether we need soft or hard links. 17496LN_S=$lt_LN_S 17497 17498# What is the maximum length of a command? 17499max_cmd_len=$max_cmd_len 17500 17501# Object file suffix (normally "o"). 17502objext=$ac_objext 17503 17504# Executable file suffix (normally ""). 17505exeext=$exeext 17506 17507# whether the shell understands "unset". 17508lt_unset=$lt_unset 17509 17510# turn spaces into newlines. 17511SP2NL=$lt_lt_SP2NL 17512 17513# turn newlines into spaces. 17514NL2SP=$lt_lt_NL2SP 17515 17516# convert \$build file names to \$host format. 17517to_host_file_cmd=$lt_cv_to_host_file_cmd 17518 17519# convert \$build files to toolchain format. 17520to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17521 17522# An object symbol dumper. 17523OBJDUMP=$lt_OBJDUMP 17524 17525# Method to check whether dependent libraries are shared objects. 17526deplibs_check_method=$lt_deplibs_check_method 17527 17528# Command to use when deplibs_check_method = "file_magic". 17529file_magic_cmd=$lt_file_magic_cmd 17530 17531# How to find potential files when deplibs_check_method = "file_magic". 17532file_magic_glob=$lt_file_magic_glob 17533 17534# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17535want_nocaseglob=$lt_want_nocaseglob 17536 17537# DLL creation program. 17538DLLTOOL=$lt_DLLTOOL 17539 17540# Command to associate shared and link libraries. 17541sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17542 17543# The archiver. 17544AR=$lt_AR 17545 17546# Flags to create an archive. 17547AR_FLAGS=$lt_AR_FLAGS 17548 17549# How to feed a file listing to the archiver. 17550archiver_list_spec=$lt_archiver_list_spec 17551 17552# A symbol stripping program. 17553STRIP=$lt_STRIP 17554 17555# Commands used to install an old-style archive. 17556RANLIB=$lt_RANLIB 17557old_postinstall_cmds=$lt_old_postinstall_cmds 17558old_postuninstall_cmds=$lt_old_postuninstall_cmds 17559 17560# Whether to use a lock for old archive extraction. 17561lock_old_archive_extraction=$lock_old_archive_extraction 17562 17563# A C compiler. 17564LTCC=$lt_CC 17565 17566# LTCC compiler flags. 17567LTCFLAGS=$lt_CFLAGS 17568 17569# Take the output of nm and produce a listing of raw symbols and C names. 17570global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17571 17572# Transform the output of nm in a proper C declaration. 17573global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17574 17575# Transform the output of nm in a C name address pair. 17576global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17577 17578# Transform the output of nm in a C name address pair when lib prefix is needed. 17579global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17580 17581# Specify filename containing input files for \$NM. 17582nm_file_list_spec=$lt_nm_file_list_spec 17583 17584# The root where to search for dependent libraries,and in which our libraries should be installed. 17585lt_sysroot=$lt_sysroot 17586 17587# The name of the directory that contains temporary libtool files. 17588objdir=$objdir 17589 17590# Used to examine libraries when file_magic_cmd begins with "file". 17591MAGIC_CMD=$MAGIC_CMD 17592 17593# Must we lock files when doing compilation? 17594need_locks=$lt_need_locks 17595 17596# Manifest tool. 17597MANIFEST_TOOL=$lt_MANIFEST_TOOL 17598 17599# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17600DSYMUTIL=$lt_DSYMUTIL 17601 17602# Tool to change global to local symbols on Mac OS X. 17603NMEDIT=$lt_NMEDIT 17604 17605# Tool to manipulate fat objects and archives on Mac OS X. 17606LIPO=$lt_LIPO 17607 17608# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17609OTOOL=$lt_OTOOL 17610 17611# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17612OTOOL64=$lt_OTOOL64 17613 17614# Old archive suffix (normally "a"). 17615libext=$libext 17616 17617# Shared library suffix (normally ".so"). 17618shrext_cmds=$lt_shrext_cmds 17619 17620# The commands to extract the exported symbol list from a shared archive. 17621extract_expsyms_cmds=$lt_extract_expsyms_cmds 17622 17623# Variables whose values should be saved in libtool wrapper scripts and 17624# restored at link time. 17625variables_saved_for_relink=$lt_variables_saved_for_relink 17626 17627# Do we need the "lib" prefix for modules? 17628need_lib_prefix=$need_lib_prefix 17629 17630# Do we need a version for libraries? 17631need_version=$need_version 17632 17633# Library versioning type. 17634version_type=$version_type 17635 17636# Shared library runtime path variable. 17637runpath_var=$runpath_var 17638 17639# Shared library path variable. 17640shlibpath_var=$shlibpath_var 17641 17642# Is shlibpath searched before the hard-coded library search path? 17643shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17644 17645# Format of library name prefix. 17646libname_spec=$lt_libname_spec 17647 17648# List of archive names. First name is the real one, the rest are links. 17649# The last name is the one that the linker finds with -lNAME 17650library_names_spec=$lt_library_names_spec 17651 17652# The coded name of the library, if different from the real name. 17653soname_spec=$lt_soname_spec 17654 17655# Permission mode override for installation of shared libraries. 17656install_override_mode=$lt_install_override_mode 17657 17658# Command to use after installation of a shared archive. 17659postinstall_cmds=$lt_postinstall_cmds 17660 17661# Command to use after uninstallation of a shared archive. 17662postuninstall_cmds=$lt_postuninstall_cmds 17663 17664# Commands used to finish a libtool library installation in a directory. 17665finish_cmds=$lt_finish_cmds 17666 17667# As "finish_cmds", except a single script fragment to be evaled but 17668# not shown. 17669finish_eval=$lt_finish_eval 17670 17671# Whether we should hardcode library paths into libraries. 17672hardcode_into_libs=$hardcode_into_libs 17673 17674# Compile-time system search path for libraries. 17675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17676 17677# Run-time system search path for libraries. 17678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17679 17680# Whether dlopen is supported. 17681dlopen_support=$enable_dlopen 17682 17683# Whether dlopen of programs is supported. 17684dlopen_self=$enable_dlopen_self 17685 17686# Whether dlopen of statically linked programs is supported. 17687dlopen_self_static=$enable_dlopen_self_static 17688 17689# Commands to strip libraries. 17690old_striplib=$lt_old_striplib 17691striplib=$lt_striplib 17692 17693 17694# The linker used to build libraries. 17695LD=$lt_LD 17696 17697# How to create reloadable object files. 17698reload_flag=$lt_reload_flag 17699reload_cmds=$lt_reload_cmds 17700 17701# Commands used to build an old-style archive. 17702old_archive_cmds=$lt_old_archive_cmds 17703 17704# A language specific compiler. 17705CC=$lt_compiler 17706 17707# Is the compiler the GNU compiler? 17708with_gcc=$GCC 17709 17710# Compiler flag to turn off builtin functions. 17711no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17712 17713# Additional compiler flags for building library objects. 17714pic_flag=$lt_lt_prog_compiler_pic 17715 17716# How to pass a linker flag through the compiler. 17717wl=$lt_lt_prog_compiler_wl 17718 17719# Compiler flag to prevent dynamic linking. 17720link_static_flag=$lt_lt_prog_compiler_static 17721 17722# Does compiler simultaneously support -c and -o options? 17723compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17724 17725# Whether or not to add -lc for building shared libraries. 17726build_libtool_need_lc=$archive_cmds_need_lc 17727 17728# Whether or not to disallow shared libs when runtime libs are static. 17729allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17730 17731# Compiler flag to allow reflexive dlopens. 17732export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17733 17734# Compiler flag to generate shared objects directly from archives. 17735whole_archive_flag_spec=$lt_whole_archive_flag_spec 17736 17737# Whether the compiler copes with passing no objects directly. 17738compiler_needs_object=$lt_compiler_needs_object 17739 17740# Create an old-style archive from a shared archive. 17741old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17742 17743# Create a temporary old-style archive to link instead of a shared archive. 17744old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17745 17746# Commands used to build a shared archive. 17747archive_cmds=$lt_archive_cmds 17748archive_expsym_cmds=$lt_archive_expsym_cmds 17749 17750# Commands used to build a loadable module if different from building 17751# a shared archive. 17752module_cmds=$lt_module_cmds 17753module_expsym_cmds=$lt_module_expsym_cmds 17754 17755# Whether we are building with GNU ld or not. 17756with_gnu_ld=$lt_with_gnu_ld 17757 17758# Flag that allows shared libraries with undefined symbols to be built. 17759allow_undefined_flag=$lt_allow_undefined_flag 17760 17761# Flag that enforces no undefined symbols. 17762no_undefined_flag=$lt_no_undefined_flag 17763 17764# Flag to hardcode \$libdir into a binary during linking. 17765# This must work even if \$libdir does not exist 17766hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17767 17768# Whether we need a single "-rpath" flag with a separated argument. 17769hardcode_libdir_separator=$lt_hardcode_libdir_separator 17770 17771# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17772# DIR into the resulting binary. 17773hardcode_direct=$hardcode_direct 17774 17775# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17776# DIR into the resulting binary and the resulting library dependency is 17777# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17778# library is relocated. 17779hardcode_direct_absolute=$hardcode_direct_absolute 17780 17781# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17782# into the resulting binary. 17783hardcode_minus_L=$hardcode_minus_L 17784 17785# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17786# into the resulting binary. 17787hardcode_shlibpath_var=$hardcode_shlibpath_var 17788 17789# Set to "yes" if building a shared library automatically hardcodes DIR 17790# into the library and all subsequent libraries and executables linked 17791# against it. 17792hardcode_automatic=$hardcode_automatic 17793 17794# Set to yes if linker adds runtime paths of dependent libraries 17795# to runtime path list. 17796inherit_rpath=$inherit_rpath 17797 17798# Whether libtool must link a program against all its dependency libraries. 17799link_all_deplibs=$link_all_deplibs 17800 17801# Set to "yes" if exported symbols are required. 17802always_export_symbols=$always_export_symbols 17803 17804# The commands to list exported symbols. 17805export_symbols_cmds=$lt_export_symbols_cmds 17806 17807# Symbols that should not be listed in the preloaded symbols. 17808exclude_expsyms=$lt_exclude_expsyms 17809 17810# Symbols that must always be exported. 17811include_expsyms=$lt_include_expsyms 17812 17813# Commands necessary for linking programs (against libraries) with templates. 17814prelink_cmds=$lt_prelink_cmds 17815 17816# Commands necessary for finishing linking programs. 17817postlink_cmds=$lt_postlink_cmds 17818 17819# Specify filename containing input files. 17820file_list_spec=$lt_file_list_spec 17821 17822# How to hardcode a shared library path into an executable. 17823hardcode_action=$hardcode_action 17824 17825# The directories searched by this compiler when creating a shared library. 17826compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17827 17828# Dependencies to place before and after the objects being linked to 17829# create a shared library. 17830predep_objects=$lt_predep_objects 17831postdep_objects=$lt_postdep_objects 17832predeps=$lt_predeps 17833postdeps=$lt_postdeps 17834 17835# The library search path used internally by the compiler when linking 17836# a shared library. 17837compiler_lib_search_path=$lt_compiler_lib_search_path 17838 17839# ### END LIBTOOL CONFIG 17840 17841_LT_EOF 17842 17843 case $host_os in 17844 aix3*) 17845 cat <<\_LT_EOF >> "$cfgfile" 17846# AIX sometimes has problems with the GCC collect2 program. For some 17847# reason, if we set the COLLECT_NAMES environment variable, the problems 17848# vanish in a puff of smoke. 17849if test "X${COLLECT_NAMES+set}" != Xset; then 17850 COLLECT_NAMES= 17851 export COLLECT_NAMES 17852fi 17853_LT_EOF 17854 ;; 17855 esac 17856 17857 17858ltmain="$ac_aux_dir/ltmain.sh" 17859 17860 17861 # We use sed instead of cat because bash on DJGPP gets confused if 17862 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17863 # text mode, it properly converts lines to CR/LF. This bash problem 17864 # is reportedly fixed, but why not run on old versions too? 17865 sed '$q' "$ltmain" >> "$cfgfile" \ 17866 || (rm -f "$cfgfile"; exit 1) 17867 17868 if test x"$xsi_shell" = xyes; then 17869 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17870func_dirname ()\ 17871{\ 17872\ case ${1} in\ 17873\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17874\ * ) func_dirname_result="${3}" ;;\ 17875\ esac\ 17876} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17877 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17879test 0 -eq $? || _lt_function_replace_fail=: 17880 17881 17882 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17883func_basename ()\ 17884{\ 17885\ func_basename_result="${1##*/}"\ 17886} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17887 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17889test 0 -eq $? || _lt_function_replace_fail=: 17890 17891 17892 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 17893func_dirname_and_basename ()\ 17894{\ 17895\ case ${1} in\ 17896\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17897\ * ) func_dirname_result="${3}" ;;\ 17898\ esac\ 17899\ func_basename_result="${1##*/}"\ 17900} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17901 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17903test 0 -eq $? || _lt_function_replace_fail=: 17904 17905 17906 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 17907func_stripname ()\ 17908{\ 17909\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 17910\ # positional parameters, so assign one to ordinary parameter first.\ 17911\ func_stripname_result=${3}\ 17912\ func_stripname_result=${func_stripname_result#"${1}"}\ 17913\ func_stripname_result=${func_stripname_result%"${2}"}\ 17914} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 17915 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17917test 0 -eq $? || _lt_function_replace_fail=: 17918 17919 17920 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 17921func_split_long_opt ()\ 17922{\ 17923\ func_split_long_opt_name=${1%%=*}\ 17924\ func_split_long_opt_arg=${1#*=}\ 17925} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17926 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17928test 0 -eq $? || _lt_function_replace_fail=: 17929 17930 17931 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 17932func_split_short_opt ()\ 17933{\ 17934\ func_split_short_opt_arg=${1#??}\ 17935\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 17936} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17937 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17939test 0 -eq $? || _lt_function_replace_fail=: 17940 17941 17942 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 17943func_lo2o ()\ 17944{\ 17945\ case ${1} in\ 17946\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 17947\ *) func_lo2o_result=${1} ;;\ 17948\ esac\ 17949} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 17950 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17952test 0 -eq $? || _lt_function_replace_fail=: 17953 17954 17955 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 17956func_xform ()\ 17957{\ 17958 func_xform_result=${1%.*}.lo\ 17959} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 17960 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17962test 0 -eq $? || _lt_function_replace_fail=: 17963 17964 17965 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 17966func_arith ()\ 17967{\ 17968 func_arith_result=$(( $* ))\ 17969} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 17970 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17972test 0 -eq $? || _lt_function_replace_fail=: 17973 17974 17975 sed -e '/^func_len ()$/,/^} # func_len /c\ 17976func_len ()\ 17977{\ 17978 func_len_result=${#1}\ 17979} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 17980 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17982test 0 -eq $? || _lt_function_replace_fail=: 17983 17984fi 17985 17986if test x"$lt_shell_append" = xyes; then 17987 sed -e '/^func_append ()$/,/^} # func_append /c\ 17988func_append ()\ 17989{\ 17990 eval "${1}+=\\${2}"\ 17991} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 17992 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17994test 0 -eq $? || _lt_function_replace_fail=: 17995 17996 17997 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 17998func_append_quoted ()\ 17999{\ 18000\ func_quote_for_eval "${2}"\ 18001\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18002} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18003 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18005test 0 -eq $? || _lt_function_replace_fail=: 18006 18007 18008 # Save a `func_append' function call where possible by direct use of '+=' 18009 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18010 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18012 test 0 -eq $? || _lt_function_replace_fail=: 18013else 18014 # Save a `func_append' function call even when '+=' is not available 18015 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18016 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18018 test 0 -eq $? || _lt_function_replace_fail=: 18019fi 18020 18021if test x"$_lt_function_replace_fail" = x":"; then 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18023$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18024fi 18025 18026 18027 mv -f "$cfgfile" "$ofile" || 18028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18029 chmod +x "$ofile" 18030 18031 18032 cat <<_LT_EOF >> "$ofile" 18033 18034# ### BEGIN LIBTOOL TAG CONFIG: CXX 18035 18036# The linker used to build libraries. 18037LD=$lt_LD_CXX 18038 18039# How to create reloadable object files. 18040reload_flag=$lt_reload_flag_CXX 18041reload_cmds=$lt_reload_cmds_CXX 18042 18043# Commands used to build an old-style archive. 18044old_archive_cmds=$lt_old_archive_cmds_CXX 18045 18046# A language specific compiler. 18047CC=$lt_compiler_CXX 18048 18049# Is the compiler the GNU compiler? 18050with_gcc=$GCC_CXX 18051 18052# Compiler flag to turn off builtin functions. 18053no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18054 18055# Additional compiler flags for building library objects. 18056pic_flag=$lt_lt_prog_compiler_pic_CXX 18057 18058# How to pass a linker flag through the compiler. 18059wl=$lt_lt_prog_compiler_wl_CXX 18060 18061# Compiler flag to prevent dynamic linking. 18062link_static_flag=$lt_lt_prog_compiler_static_CXX 18063 18064# Does compiler simultaneously support -c and -o options? 18065compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18066 18067# Whether or not to add -lc for building shared libraries. 18068build_libtool_need_lc=$archive_cmds_need_lc_CXX 18069 18070# Whether or not to disallow shared libs when runtime libs are static. 18071allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18072 18073# Compiler flag to allow reflexive dlopens. 18074export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18075 18076# Compiler flag to generate shared objects directly from archives. 18077whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18078 18079# Whether the compiler copes with passing no objects directly. 18080compiler_needs_object=$lt_compiler_needs_object_CXX 18081 18082# Create an old-style archive from a shared archive. 18083old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18084 18085# Create a temporary old-style archive to link instead of a shared archive. 18086old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18087 18088# Commands used to build a shared archive. 18089archive_cmds=$lt_archive_cmds_CXX 18090archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18091 18092# Commands used to build a loadable module if different from building 18093# a shared archive. 18094module_cmds=$lt_module_cmds_CXX 18095module_expsym_cmds=$lt_module_expsym_cmds_CXX 18096 18097# Whether we are building with GNU ld or not. 18098with_gnu_ld=$lt_with_gnu_ld_CXX 18099 18100# Flag that allows shared libraries with undefined symbols to be built. 18101allow_undefined_flag=$lt_allow_undefined_flag_CXX 18102 18103# Flag that enforces no undefined symbols. 18104no_undefined_flag=$lt_no_undefined_flag_CXX 18105 18106# Flag to hardcode \$libdir into a binary during linking. 18107# This must work even if \$libdir does not exist 18108hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18109 18110# Whether we need a single "-rpath" flag with a separated argument. 18111hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18112 18113# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18114# DIR into the resulting binary. 18115hardcode_direct=$hardcode_direct_CXX 18116 18117# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18118# DIR into the resulting binary and the resulting library dependency is 18119# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18120# library is relocated. 18121hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18122 18123# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18124# into the resulting binary. 18125hardcode_minus_L=$hardcode_minus_L_CXX 18126 18127# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18128# into the resulting binary. 18129hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18130 18131# Set to "yes" if building a shared library automatically hardcodes DIR 18132# into the library and all subsequent libraries and executables linked 18133# against it. 18134hardcode_automatic=$hardcode_automatic_CXX 18135 18136# Set to yes if linker adds runtime paths of dependent libraries 18137# to runtime path list. 18138inherit_rpath=$inherit_rpath_CXX 18139 18140# Whether libtool must link a program against all its dependency libraries. 18141link_all_deplibs=$link_all_deplibs_CXX 18142 18143# Set to "yes" if exported symbols are required. 18144always_export_symbols=$always_export_symbols_CXX 18145 18146# The commands to list exported symbols. 18147export_symbols_cmds=$lt_export_symbols_cmds_CXX 18148 18149# Symbols that should not be listed in the preloaded symbols. 18150exclude_expsyms=$lt_exclude_expsyms_CXX 18151 18152# Symbols that must always be exported. 18153include_expsyms=$lt_include_expsyms_CXX 18154 18155# Commands necessary for linking programs (against libraries) with templates. 18156prelink_cmds=$lt_prelink_cmds_CXX 18157 18158# Commands necessary for finishing linking programs. 18159postlink_cmds=$lt_postlink_cmds_CXX 18160 18161# Specify filename containing input files. 18162file_list_spec=$lt_file_list_spec_CXX 18163 18164# How to hardcode a shared library path into an executable. 18165hardcode_action=$hardcode_action_CXX 18166 18167# The directories searched by this compiler when creating a shared library. 18168compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18169 18170# Dependencies to place before and after the objects being linked to 18171# create a shared library. 18172predep_objects=$lt_predep_objects_CXX 18173postdep_objects=$lt_postdep_objects_CXX 18174predeps=$lt_predeps_CXX 18175postdeps=$lt_postdeps_CXX 18176 18177# The library search path used internally by the compiler when linking 18178# a shared library. 18179compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18180 18181# ### END LIBTOOL TAG CONFIG: CXX 18182_LT_EOF 18183 18184 ;; 18185 18186 esac 18187done # for ac_tag 18188 18189 18190as_fn_exit 0 18191_ACEOF 18192ac_clean_files=$ac_clean_files_save 18193 18194test $ac_write_fail = 0 || 18195 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18196 18197 18198# configure is writing to config.log, and then calls config.status. 18199# config.status does its own redirection, appending to config.log. 18200# Unfortunately, on DOS this fails, as config.log is still kept open 18201# by configure, so config.status won't be able to write to it; its 18202# output is simply discarded. So we exec the FD to /dev/null, 18203# effectively closing config.log, so it can be properly (re)opened and 18204# appended to by config.status. When coming back to configure, we 18205# need to make the FD available again. 18206if test "$no_create" != yes; then 18207 ac_cs_success=: 18208 ac_config_status_args= 18209 test "$silent" = yes && 18210 ac_config_status_args="$ac_config_status_args --quiet" 18211 exec 5>/dev/null 18212 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18213 exec 5>>config.log 18214 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18215 # would make configure fail if this is the last instruction. 18216 $ac_cs_success || as_fn_exit 1 18217fi 18218if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18220$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18221fi 18222 18223