1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for libcc1 version-unused. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172test \$(( 1 + 1 )) = 2 || exit 1 173 174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 PATH=/empty FPATH=/empty; export PATH FPATH 179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456} 457 458ECHO_C= ECHO_N= ECHO_T= 459case `echo -n x` in #((((( 460-n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467*) 468 ECHO_N='-n';; 469esac 470 471rm -f conf$$ conf$$.exe conf$$.file 472if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477fi 478if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492else 493 as_ln_s='cp -p' 494fi 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496rmdir conf$$.dir 2>/dev/null 497 498if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503fi 504 505if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525fi 526as_executable_p=$as_test_x 527 528# Sed expression to map a string onto a valid CPP name. 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531# Sed expression to map a string onto a valid variable name. 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555 556# Identity of this package. 557PACKAGE_NAME='libcc1' 558PACKAGE_TARNAME='libcc1' 559PACKAGE_VERSION='version-unused' 560PACKAGE_STRING='libcc1 version-unused' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='' 563 564ac_unique_file="libcc1.cc" 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#ifdef HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#ifdef HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#ifdef STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# ifdef HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#ifdef HAVE_STRING_H 583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#ifdef HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#ifdef HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#ifdef HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#ifdef HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='am__EXEEXT_FALSE 602am__EXEEXT_TRUE 603LTLIBOBJS 604LIBOBJS 605ENABLE_PLUGIN_FALSE 606ENABLE_PLUGIN_TRUE 607libsuffix 608GMPINC 609WERROR 610WARN_FLAGS 611gcc_version 612visibility 613CXXCPP 614am__fastdepCXX_FALSE 615am__fastdepCXX_TRUE 616CXXDEPMODE 617ac_ct_CXX 618CXXFLAGS 619CXX 620OTOOL64 621OTOOL 622LIPO 623NMEDIT 624DSYMUTIL 625RANLIB 626AR 627OBJDUMP 628LN_S 629NM 630ac_ct_DUMPBIN 631DUMPBIN 632LD 633FGREP 634SED 635LIBTOOL 636MAINT 637MAINTAINER_MODE_FALSE 638MAINTAINER_MODE_TRUE 639am__fastdepCC_FALSE 640am__fastdepCC_TRUE 641CCDEPMODE 642AMDEPBACKSLASH 643AMDEP_FALSE 644AMDEP_TRUE 645am__quote 646am__include 647DEPDIR 648am__untar 649am__tar 650AMTAR 651am__leading_dot 652SET_MAKE 653AWK 654mkdir_p 655MKDIR_P 656INSTALL_STRIP_PROGRAM 657STRIP 658install_sh 659MAKEINFO 660AUTOHEADER 661AUTOMAKE 662AUTOCONF 663ACLOCAL 664VERSION 665PACKAGE 666CYGPATH_W 667am__isrc 668INSTALL_DATA 669INSTALL_SCRIPT 670INSTALL_PROGRAM 671target_subdir 672host_subdir 673build_subdir 674build_libsubdir 675target_noncanonical 676EGREP 677GREP 678CPP 679OBJEXT 680EXEEXT 681ac_ct_CC 682CPPFLAGS 683LDFLAGS 684CFLAGS 685CC 686target_os 687target_vendor 688target_cpu 689target 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698target_alias 699host_alias 700build_alias 701LIBS 702ECHO_T 703ECHO_N 704ECHO_C 705DEFS 706mandir 707localedir 708libdir 709psdir 710pdfdir 711dvidir 712htmldir 713infodir 714docdir 715oldincludedir 716includedir 717localstatedir 718sharedstatedir 719sysconfdir 720datadir 721datarootdir 722libexecdir 723sbindir 724bindir 725program_transform_name 726prefix 727exec_prefix 728PACKAGE_URL 729PACKAGE_BUGREPORT 730PACKAGE_STRING 731PACKAGE_VERSION 732PACKAGE_TARNAME 733PACKAGE_NAME 734PATH_SEPARATOR 735SHELL' 736ac_subst_files='' 737ac_user_opts=' 738enable_option_checking 739with_build_libsubdir 740enable_dependency_tracking 741enable_maintainer_mode 742enable_static 743enable_shared 744with_pic 745enable_fast_install 746with_gnu_ld 747enable_libtool_lock 748enable_werror_always 749enable_plugin 750' 751 ac_precious_vars='build_alias 752host_alias 753target_alias 754CC 755CFLAGS 756LDFLAGS 757LIBS 758CPPFLAGS 759CPP 760CXX 761CXXFLAGS 762CCC 763CXXCPP 764GMPINC' 765 766 767# Initialize some variables set by options. 768ac_init_help= 769ac_init_version=false 770ac_unrecognized_opts= 771ac_unrecognized_sep= 772# The variables have the same names as the options, with 773# dashes changed to underlines. 774cache_file=/dev/null 775exec_prefix=NONE 776no_create= 777no_recursion= 778prefix=NONE 779program_prefix=NONE 780program_suffix=NONE 781program_transform_name=s,x,x, 782silent= 783site= 784srcdir= 785verbose= 786x_includes=NONE 787x_libraries=NONE 788 789# Installation directory options. 790# These are left unexpanded so users can "make install exec_prefix=/foo" 791# and all the variables that are supposed to be based on exec_prefix 792# by default will actually change. 793# Use braces instead of parens because sh, perl, etc. also accept them. 794# (The list follows the same order as the GNU Coding Standards.) 795bindir='${exec_prefix}/bin' 796sbindir='${exec_prefix}/sbin' 797libexecdir='${exec_prefix}/libexec' 798datarootdir='${prefix}/share' 799datadir='${datarootdir}' 800sysconfdir='${prefix}/etc' 801sharedstatedir='${prefix}/com' 802localstatedir='${prefix}/var' 803includedir='${prefix}/include' 804oldincludedir='/usr/include' 805docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 806infodir='${datarootdir}/info' 807htmldir='${docdir}' 808dvidir='${docdir}' 809pdfdir='${docdir}' 810psdir='${docdir}' 811libdir='${exec_prefix}/lib' 812localedir='${datarootdir}/locale' 813mandir='${datarootdir}/man' 814 815ac_prev= 816ac_dashdash= 817for ac_option 818do 819 # If the previous option needs an argument, assign it. 820 if test -n "$ac_prev"; then 821 eval $ac_prev=\$ac_option 822 ac_prev= 823 continue 824 fi 825 826 case $ac_option in 827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 828 *) ac_optarg=yes ;; 829 esac 830 831 # Accept the important Cygnus configure options, so we can diagnose typos. 832 833 case $ac_dashdash$ac_option in 834 --) 835 ac_dashdash=yes ;; 836 837 -bindir | --bindir | --bindi | --bind | --bin | --bi) 838 ac_prev=bindir ;; 839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 840 bindir=$ac_optarg ;; 841 842 -build | --build | --buil | --bui | --bu) 843 ac_prev=build_alias ;; 844 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 845 build_alias=$ac_optarg ;; 846 847 -cache-file | --cache-file | --cache-fil | --cache-fi \ 848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 849 ac_prev=cache_file ;; 850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 852 cache_file=$ac_optarg ;; 853 854 --config-cache | -C) 855 cache_file=config.cache ;; 856 857 -datadir | --datadir | --datadi | --datad) 858 ac_prev=datadir ;; 859 -datadir=* | --datadir=* | --datadi=* | --datad=*) 860 datadir=$ac_optarg ;; 861 862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 863 | --dataroo | --dataro | --datar) 864 ac_prev=datarootdir ;; 865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 867 datarootdir=$ac_optarg ;; 868 869 -disable-* | --disable-*) 870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 871 # Reject names that are not valid shell variable names. 872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 873 as_fn_error "invalid feature name: $ac_useropt" 874 ac_useropt_orig=$ac_useropt 875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 876 case $ac_user_opts in 877 *" 878"enable_$ac_useropt" 879"*) ;; 880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 881 ac_unrecognized_sep=', ';; 882 esac 883 eval enable_$ac_useropt=no ;; 884 885 -docdir | --docdir | --docdi | --doc | --do) 886 ac_prev=docdir ;; 887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 888 docdir=$ac_optarg ;; 889 890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 891 ac_prev=dvidir ;; 892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 893 dvidir=$ac_optarg ;; 894 895 -enable-* | --enable-*) 896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 897 # Reject names that are not valid shell variable names. 898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 899 as_fn_error "invalid feature name: $ac_useropt" 900 ac_useropt_orig=$ac_useropt 901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 902 case $ac_user_opts in 903 *" 904"enable_$ac_useropt" 905"*) ;; 906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 907 ac_unrecognized_sep=', ';; 908 esac 909 eval enable_$ac_useropt=\$ac_optarg ;; 910 911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 913 | --exec | --exe | --ex) 914 ac_prev=exec_prefix ;; 915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 917 | --exec=* | --exe=* | --ex=*) 918 exec_prefix=$ac_optarg ;; 919 920 -gas | --gas | --ga | --g) 921 # Obsolete; use --with-gas. 922 with_gas=yes ;; 923 924 -help | --help | --hel | --he | -h) 925 ac_init_help=long ;; 926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 927 ac_init_help=recursive ;; 928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 929 ac_init_help=short ;; 930 931 -host | --host | --hos | --ho) 932 ac_prev=host_alias ;; 933 -host=* | --host=* | --hos=* | --ho=*) 934 host_alias=$ac_optarg ;; 935 936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 937 ac_prev=htmldir ;; 938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 939 | --ht=*) 940 htmldir=$ac_optarg ;; 941 942 -includedir | --includedir | --includedi | --included | --include \ 943 | --includ | --inclu | --incl | --inc) 944 ac_prev=includedir ;; 945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 946 | --includ=* | --inclu=* | --incl=* | --inc=*) 947 includedir=$ac_optarg ;; 948 949 -infodir | --infodir | --infodi | --infod | --info | --inf) 950 ac_prev=infodir ;; 951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 952 infodir=$ac_optarg ;; 953 954 -libdir | --libdir | --libdi | --libd) 955 ac_prev=libdir ;; 956 -libdir=* | --libdir=* | --libdi=* | --libd=*) 957 libdir=$ac_optarg ;; 958 959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 960 | --libexe | --libex | --libe) 961 ac_prev=libexecdir ;; 962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 963 | --libexe=* | --libex=* | --libe=*) 964 libexecdir=$ac_optarg ;; 965 966 -localedir | --localedir | --localedi | --localed | --locale) 967 ac_prev=localedir ;; 968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 969 localedir=$ac_optarg ;; 970 971 -localstatedir | --localstatedir | --localstatedi | --localstated \ 972 | --localstate | --localstat | --localsta | --localst | --locals) 973 ac_prev=localstatedir ;; 974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 976 localstatedir=$ac_optarg ;; 977 978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 979 ac_prev=mandir ;; 980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 981 mandir=$ac_optarg ;; 982 983 -nfp | --nfp | --nf) 984 # Obsolete; use --without-fp. 985 with_fp=no ;; 986 987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 988 | --no-cr | --no-c | -n) 989 no_create=yes ;; 990 991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 993 no_recursion=yes ;; 994 995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 997 | --oldin | --oldi | --old | --ol | --o) 998 ac_prev=oldincludedir ;; 999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1002 oldincludedir=$ac_optarg ;; 1003 1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1005 ac_prev=prefix ;; 1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1007 prefix=$ac_optarg ;; 1008 1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1010 | --program-pre | --program-pr | --program-p) 1011 ac_prev=program_prefix ;; 1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1014 program_prefix=$ac_optarg ;; 1015 1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1017 | --program-suf | --program-su | --program-s) 1018 ac_prev=program_suffix ;; 1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1021 program_suffix=$ac_optarg ;; 1022 1023 -program-transform-name | --program-transform-name \ 1024 | --program-transform-nam | --program-transform-na \ 1025 | --program-transform-n | --program-transform- \ 1026 | --program-transform | --program-transfor \ 1027 | --program-transfo | --program-transf \ 1028 | --program-trans | --program-tran \ 1029 | --progr-tra | --program-tr | --program-t) 1030 ac_prev=program_transform_name ;; 1031 -program-transform-name=* | --program-transform-name=* \ 1032 | --program-transform-nam=* | --program-transform-na=* \ 1033 | --program-transform-n=* | --program-transform-=* \ 1034 | --program-transform=* | --program-transfor=* \ 1035 | --program-transfo=* | --program-transf=* \ 1036 | --program-trans=* | --program-tran=* \ 1037 | --progr-tra=* | --program-tr=* | --program-t=*) 1038 program_transform_name=$ac_optarg ;; 1039 1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1041 ac_prev=pdfdir ;; 1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1043 pdfdir=$ac_optarg ;; 1044 1045 -psdir | --psdir | --psdi | --psd | --ps) 1046 ac_prev=psdir ;; 1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1048 psdir=$ac_optarg ;; 1049 1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1051 | -silent | --silent | --silen | --sile | --sil) 1052 silent=yes ;; 1053 1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1055 ac_prev=sbindir ;; 1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1057 | --sbi=* | --sb=*) 1058 sbindir=$ac_optarg ;; 1059 1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1062 | --sharedst | --shareds | --shared | --share | --shar \ 1063 | --sha | --sh) 1064 ac_prev=sharedstatedir ;; 1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1068 | --sha=* | --sh=*) 1069 sharedstatedir=$ac_optarg ;; 1070 1071 -site | --site | --sit) 1072 ac_prev=site ;; 1073 -site=* | --site=* | --sit=*) 1074 site=$ac_optarg ;; 1075 1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1077 ac_prev=srcdir ;; 1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1079 srcdir=$ac_optarg ;; 1080 1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1082 | --syscon | --sysco | --sysc | --sys | --sy) 1083 ac_prev=sysconfdir ;; 1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1086 sysconfdir=$ac_optarg ;; 1087 1088 -target | --target | --targe | --targ | --tar | --ta | --t) 1089 ac_prev=target_alias ;; 1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1091 target_alias=$ac_optarg ;; 1092 1093 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1094 verbose=yes ;; 1095 1096 -version | --version | --versio | --versi | --vers | -V) 1097 ac_init_version=: ;; 1098 1099 -with-* | --with-*) 1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1101 # Reject names that are not valid shell variable names. 1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1103 as_fn_error "invalid package name: $ac_useropt" 1104 ac_useropt_orig=$ac_useropt 1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1106 case $ac_user_opts in 1107 *" 1108"with_$ac_useropt" 1109"*) ;; 1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1111 ac_unrecognized_sep=', ';; 1112 esac 1113 eval with_$ac_useropt=\$ac_optarg ;; 1114 1115 -without-* | --without-*) 1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1119 as_fn_error "invalid package name: $ac_useropt" 1120 ac_useropt_orig=$ac_useropt 1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1122 case $ac_user_opts in 1123 *" 1124"with_$ac_useropt" 1125"*) ;; 1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1127 ac_unrecognized_sep=', ';; 1128 esac 1129 eval with_$ac_useropt=no ;; 1130 1131 --x) 1132 # Obsolete; use --with-x. 1133 with_x=yes ;; 1134 1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1136 | --x-incl | --x-inc | --x-in | --x-i) 1137 ac_prev=x_includes ;; 1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1140 x_includes=$ac_optarg ;; 1141 1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1144 ac_prev=x_libraries ;; 1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1147 x_libraries=$ac_optarg ;; 1148 1149 -*) as_fn_error "unrecognized option: \`$ac_option' 1150Try \`$0 --help' for more information." 1151 ;; 1152 1153 *=*) 1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1155 # Reject names that are not valid shell variable names. 1156 case $ac_envvar in #( 1157 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1158 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1159 esac 1160 eval $ac_envvar=\$ac_optarg 1161 export $ac_envvar ;; 1162 1163 *) 1164 # FIXME: should be removed in autoconf 3.0. 1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1169 ;; 1170 1171 esac 1172done 1173 1174if test -n "$ac_prev"; then 1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1176 as_fn_error "missing argument to $ac_option" 1177fi 1178 1179if test -n "$ac_unrecognized_opts"; then 1180 case $enable_option_checking in 1181 no) ;; 1182 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1184 esac 1185fi 1186 1187# Check all directory arguments for consistency. 1188for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1189 datadir sysconfdir sharedstatedir localstatedir includedir \ 1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1191 libdir localedir mandir 1192do 1193 eval ac_val=\$$ac_var 1194 # Remove trailing slashes. 1195 case $ac_val in 1196 */ ) 1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1198 eval $ac_var=\$ac_val;; 1199 esac 1200 # Be sure to have absolute directory names. 1201 case $ac_val in 1202 [\\/$]* | ?:[\\/]* ) continue;; 1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1204 esac 1205 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1206done 1207 1208# There might be people who depend on the old broken behavior: `$host' 1209# used to hold the argument of --host etc. 1210# FIXME: To remove some day. 1211build=$build_alias 1212host=$host_alias 1213target=$target_alias 1214 1215# FIXME: To remove some day. 1216if test "x$host_alias" != x; then 1217 if test "x$build_alias" = x; then 1218 cross_compiling=maybe 1219 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1220 If a cross compiler is detected then cross compile mode will be used." >&2 1221 elif test "x$build_alias" != "x$host_alias"; then 1222 cross_compiling=yes 1223 fi 1224fi 1225 1226ac_tool_prefix= 1227test -n "$host_alias" && ac_tool_prefix=$host_alias- 1228 1229test "$silent" = yes && exec 6>/dev/null 1230 1231 1232ac_pwd=`pwd` && test -n "$ac_pwd" && 1233ac_ls_di=`ls -di .` && 1234ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1235 as_fn_error "working directory cannot be determined" 1236test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1237 as_fn_error "pwd does not report name of working directory" 1238 1239 1240# Find the source files, if location was not specified. 1241if test -z "$srcdir"; then 1242 ac_srcdir_defaulted=yes 1243 # Try the directory containing this script, then the parent directory. 1244 ac_confdir=`$as_dirname -- "$as_myself" || 1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1246 X"$as_myself" : 'X\(//\)[^/]' \| \ 1247 X"$as_myself" : 'X\(//\)$' \| \ 1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1249$as_echo X"$as_myself" | 1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)[^/].*/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\).*/{ 1263 s//\1/ 1264 q 1265 } 1266 s/.*/./; q'` 1267 srcdir=$ac_confdir 1268 if test ! -r "$srcdir/$ac_unique_file"; then 1269 srcdir=.. 1270 fi 1271else 1272 ac_srcdir_defaulted=no 1273fi 1274if test ! -r "$srcdir/$ac_unique_file"; then 1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1276 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1277fi 1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1279ac_abs_confdir=`( 1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1281 pwd)` 1282# When building in place, set srcdir=. 1283if test "$ac_abs_confdir" = "$ac_pwd"; then 1284 srcdir=. 1285fi 1286# Remove unnecessary trailing slashes from srcdir. 1287# Double slashes in file names in object file debugging info 1288# mess up M-x gdb in Emacs. 1289case $srcdir in 1290*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1291esac 1292for ac_var in $ac_precious_vars; do 1293 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_env_${ac_var}_value=\$${ac_var} 1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1297done 1298 1299# 1300# Report the --help message. 1301# 1302if test "$ac_init_help" = "long"; then 1303 # Omit some internal or obsolete options to make the list less imposing. 1304 # This message is too long to be a string in the A/UX 3.1 sh. 1305 cat <<_ACEOF 1306\`configure' configures libcc1 version-unused to adapt to many kinds of systems. 1307 1308Usage: $0 [OPTION]... [VAR=VALUE]... 1309 1310To assign environment variables (e.g., CC, CFLAGS...), specify them as 1311VAR=VALUE. See below for descriptions of some of the useful variables. 1312 1313Defaults for the options are specified in brackets. 1314 1315Configuration: 1316 -h, --help display this help and exit 1317 --help=short display options specific to this package 1318 --help=recursive display the short help of all the included packages 1319 -V, --version display version information and exit 1320 -q, --quiet, --silent do not print \`checking...' messages 1321 --cache-file=FILE cache test results in FILE [disabled] 1322 -C, --config-cache alias for \`--cache-file=config.cache' 1323 -n, --no-create do not create output files 1324 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1325 1326Installation directories: 1327 --prefix=PREFIX install architecture-independent files in PREFIX 1328 [$ac_default_prefix] 1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1330 [PREFIX] 1331 1332By default, \`make install' will install all the files in 1333\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1334an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1335for instance \`--prefix=\$HOME'. 1336 1337For better control, use the options below. 1338 1339Fine tuning of the installation directories: 1340 --bindir=DIR user executables [EPREFIX/bin] 1341 --sbindir=DIR system admin executables [EPREFIX/sbin] 1342 --libexecdir=DIR program executables [EPREFIX/libexec] 1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1346 --libdir=DIR object code libraries [EPREFIX/lib] 1347 --includedir=DIR C header files [PREFIX/include] 1348 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1351 --infodir=DIR info documentation [DATAROOTDIR/info] 1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1353 --mandir=DIR man documentation [DATAROOTDIR/man] 1354 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1] 1355 --htmldir=DIR html documentation [DOCDIR] 1356 --dvidir=DIR dvi documentation [DOCDIR] 1357 --pdfdir=DIR pdf documentation [DOCDIR] 1358 --psdir=DIR ps documentation [DOCDIR] 1359_ACEOF 1360 1361 cat <<\_ACEOF 1362 1363Program names: 1364 --program-prefix=PREFIX prepend PREFIX to installed program names 1365 --program-suffix=SUFFIX append SUFFIX to installed program names 1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1367 1368System types: 1369 --build=BUILD configure for building on BUILD [guessed] 1370 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1371 --target=TARGET configure for building compilers for TARGET [HOST] 1372_ACEOF 1373fi 1374 1375if test -n "$ac_init_help"; then 1376 case $ac_init_help in 1377 short | recursive ) echo "Configuration of libcc1 version-unused:";; 1378 esac 1379 cat <<\_ACEOF 1380 1381Optional Features: 1382 --disable-option-checking ignore unrecognized --enable/--with options 1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1385 --disable-dependency-tracking speeds up one-time build 1386 --enable-dependency-tracking do not reject slow dependency extractors 1387 --enable-maintainer-mode enable make rules and dependencies not useful 1388 (and sometimes confusing) to the casual installer 1389 --enable-static[=PKGS] build static libraries [default=no] 1390 --enable-shared[=PKGS] build shared libraries [default=yes] 1391 --enable-fast-install[=PKGS] 1392 optimize for fast installation [default=yes] 1393 --disable-libtool-lock avoid locking (might break parallel builds) 1394 --enable-werror-always enable -Werror despite compiler version 1395 --enable-plugin enable plugin support 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-build-libsubdir=DIR Directory where to find libraries for build system 1401 --with-pic try to use only PIC/non-PIC objects [default=use 1402 both] 1403 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1404 1405Some influential environment variables: 1406 CC C compiler command 1407 CFLAGS C compiler flags 1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1409 nonstandard directory <lib dir> 1410 LIBS libraries to pass to the linker, e.g. -l<library> 1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1412 you have headers in a nonstandard directory <include dir> 1413 CPP C preprocessor 1414 CXX C++ compiler command 1415 CXXFLAGS C++ compiler flags 1416 CXXCPP C++ preprocessor 1417 GMPINC How to find GMP include files 1418 1419Use these variables to override the choices made by `configure' or to help 1420it to find libraries and programs with nonstandard names/locations. 1421 1422Report bugs to the package provider. 1423_ACEOF 1424ac_status=$? 1425fi 1426 1427if test "$ac_init_help" = "recursive"; then 1428 # If there are subdirs, report their specific --help. 1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1430 test -d "$ac_dir" || 1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1432 continue 1433 ac_builddir=. 1434 1435case "$ac_dir" in 1436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1437*) 1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1439 # A ".." for each directory in $ac_dir_suffix. 1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1441 case $ac_top_builddir_sub in 1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1444 esac ;; 1445esac 1446ac_abs_top_builddir=$ac_pwd 1447ac_abs_builddir=$ac_pwd$ac_dir_suffix 1448# for backward compatibility: 1449ac_top_builddir=$ac_top_build_prefix 1450 1451case $srcdir in 1452 .) # We are building in place. 1453 ac_srcdir=. 1454 ac_top_srcdir=$ac_top_builddir_sub 1455 ac_abs_top_srcdir=$ac_pwd ;; 1456 [\\/]* | ?:[\\/]* ) # Absolute name. 1457 ac_srcdir=$srcdir$ac_dir_suffix; 1458 ac_top_srcdir=$srcdir 1459 ac_abs_top_srcdir=$srcdir ;; 1460 *) # Relative name. 1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1462 ac_top_srcdir=$ac_top_build_prefix$srcdir 1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1464esac 1465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1466 1467 cd "$ac_dir" || { ac_status=$?; continue; } 1468 # Check for guested configure. 1469 if test -f "$ac_srcdir/configure.gnu"; then 1470 echo && 1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1472 elif test -f "$ac_srcdir/configure"; then 1473 echo && 1474 $SHELL "$ac_srcdir/configure" --help=recursive 1475 else 1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1477 fi || ac_status=$? 1478 cd "$ac_pwd" || { ac_status=$?; break; } 1479 done 1480fi 1481 1482test -n "$ac_init_help" && exit $ac_status 1483if $ac_init_version; then 1484 cat <<\_ACEOF 1485libcc1 configure version-unused 1486generated by GNU Autoconf 2.64 1487 1488Copyright (C) 2009 Free Software Foundation, Inc. 1489This configure script is free software; the Free Software Foundation 1490gives unlimited permission to copy, distribute and modify it. 1491_ACEOF 1492 exit 1493fi 1494 1495## ------------------------ ## 1496## Autoconf initialization. ## 1497## ------------------------ ## 1498 1499# ac_fn_c_try_compile LINENO 1500# -------------------------- 1501# Try to compile conftest.$ac_ext, and return whether this succeeded. 1502ac_fn_c_try_compile () 1503{ 1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1505 rm -f conftest.$ac_objext 1506 if { { ac_try="$ac_compile" 1507case "(($ac_try" in 1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1509 *) ac_try_echo=$ac_try;; 1510esac 1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1512$as_echo "$ac_try_echo"; } >&5 1513 (eval "$ac_compile") 2>conftest.err 1514 ac_status=$? 1515 if test -s conftest.err; then 1516 grep -v '^ *+' conftest.err >conftest.er1 1517 cat conftest.er1 >&5 1518 mv -f conftest.er1 conftest.err 1519 fi 1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1521 test $ac_status = 0; } && { 1522 test -z "$ac_c_werror_flag" || 1523 test ! -s conftest.err 1524 } && test -s conftest.$ac_objext; then : 1525 ac_retval=0 1526else 1527 $as_echo "$as_me: failed program was:" >&5 1528sed 's/^/| /' conftest.$ac_ext >&5 1529 1530 ac_retval=1 1531fi 1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1533 return $ac_retval 1534 1535} # ac_fn_c_try_compile 1536 1537# ac_fn_c_try_cpp LINENO 1538# ---------------------- 1539# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1540ac_fn_c_try_cpp () 1541{ 1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1543 if { { ac_try="$ac_cpp conftest.$ac_ext" 1544case "(($ac_try" in 1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1546 *) ac_try_echo=$ac_try;; 1547esac 1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1549$as_echo "$ac_try_echo"; } >&5 1550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1551 ac_status=$? 1552 if test -s conftest.err; then 1553 grep -v '^ *+' conftest.err >conftest.er1 1554 cat conftest.er1 >&5 1555 mv -f conftest.er1 conftest.err 1556 fi 1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1558 test $ac_status = 0; } >/dev/null && { 1559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1560 test ! -s conftest.err 1561 }; then : 1562 ac_retval=0 1563else 1564 $as_echo "$as_me: failed program was:" >&5 1565sed 's/^/| /' conftest.$ac_ext >&5 1566 1567 ac_retval=1 1568fi 1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1570 return $ac_retval 1571 1572} # ac_fn_c_try_cpp 1573 1574# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1575# ------------------------------------------------------- 1576# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1577# the include files in INCLUDES and setting the cache variable VAR 1578# accordingly. 1579ac_fn_c_check_header_mongrel () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1584$as_echo_n "checking for $2... " >&6; } 1585if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1586 $as_echo_n "(cached) " >&6 1587fi 1588eval ac_res=\$$3 1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1590$as_echo "$ac_res" >&6; } 1591else 1592 # Is the header compilable? 1593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1594$as_echo_n "checking $2 usability... " >&6; } 1595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1596/* end confdefs.h. */ 1597$4 1598#include <$2> 1599_ACEOF 1600if ac_fn_c_try_compile "$LINENO"; then : 1601 ac_header_compiler=yes 1602else 1603 ac_header_compiler=no 1604fi 1605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1607$as_echo "$ac_header_compiler" >&6; } 1608 1609# Is the header present? 1610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1611$as_echo_n "checking $2 presence... " >&6; } 1612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1613/* end confdefs.h. */ 1614#include <$2> 1615_ACEOF 1616if ac_fn_c_try_cpp "$LINENO"; then : 1617 ac_header_preproc=yes 1618else 1619 ac_header_preproc=no 1620fi 1621rm -f conftest.err conftest.$ac_ext 1622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1623$as_echo "$ac_header_preproc" >&6; } 1624 1625# So? What about this header? 1626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1627 yes:no: ) 1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1629$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1631$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1632 ;; 1633 no:yes:* ) 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1635$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1637$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1639$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1641$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1643$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1644 ;; 1645esac 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1647$as_echo_n "checking for $2... " >&6; } 1648if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1649 $as_echo_n "(cached) " >&6 1650else 1651 eval "$3=\$ac_header_compiler" 1652fi 1653eval ac_res=\$$3 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655$as_echo "$ac_res" >&6; } 1656fi 1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1658 1659} # ac_fn_c_check_header_mongrel 1660 1661# ac_fn_c_try_run LINENO 1662# ---------------------- 1663# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1664# that executables *can* be run. 1665ac_fn_c_try_run () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 if { { ac_try="$ac_link" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_link") 2>&5 1676 ac_status=$? 1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1679 { { case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_try") 2>&5 1686 ac_status=$? 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; }; }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: program exited with status $ac_status" >&5 1692 $as_echo "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=$ac_status 1696fi 1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1699 return $ac_retval 1700 1701} # ac_fn_c_try_run 1702 1703# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1704# ------------------------------------------------------- 1705# Tests whether HEADER exists and can be compiled using the include files in 1706# INCLUDES, setting the cache variable VAR accordingly. 1707ac_fn_c_check_header_compile () 1708{ 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1711$as_echo_n "checking for $2... " >&6; } 1712if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1713 $as_echo_n "(cached) " >&6 1714else 1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1716/* end confdefs.h. */ 1717$4 1718#include <$2> 1719_ACEOF 1720if ac_fn_c_try_compile "$LINENO"; then : 1721 eval "$3=yes" 1722else 1723 eval "$3=no" 1724fi 1725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1726fi 1727eval ac_res=\$$3 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1729$as_echo "$ac_res" >&6; } 1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1731 1732} # ac_fn_c_check_header_compile 1733 1734# ac_fn_c_try_link LINENO 1735# ----------------------- 1736# Try to link conftest.$ac_ext, and return whether this succeeded. 1737ac_fn_c_try_link () 1738{ 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 rm -f conftest.$ac_objext conftest$ac_exeext 1741 if { { ac_try="$ac_link" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_link") 2>conftest.err 1749 ac_status=$? 1750 if test -s conftest.err; then 1751 grep -v '^ *+' conftest.err >conftest.er1 1752 cat conftest.er1 >&5 1753 mv -f conftest.er1 conftest.err 1754 fi 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { 1757 test -z "$ac_c_werror_flag" || 1758 test ! -s conftest.err 1759 } && test -s conftest$ac_exeext && { 1760 test "$cross_compiling" = yes || 1761 $as_test_x conftest$ac_exeext 1762 }; then : 1763 ac_retval=0 1764else 1765 $as_echo "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=1 1769fi 1770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1772 # interfere with the next link command; also delete a directory that is 1773 # left behind by Apple's compiler. We do this before executing the actions. 1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1776 return $ac_retval 1777 1778} # ac_fn_c_try_link 1779 1780# ac_fn_c_check_func LINENO FUNC VAR 1781# ---------------------------------- 1782# Tests whether FUNC exists, setting the cache variable VAR accordingly 1783ac_fn_c_check_func () 1784{ 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787$as_echo_n "checking for $2... " >&6; } 1788if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1789 $as_echo_n "(cached) " >&6 1790else 1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792/* end confdefs.h. */ 1793/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1795#define $2 innocuous_$2 1796 1797/* System header to define __stub macros and hopefully few prototypes, 1798 which can conflict with char $2 (); below. 1799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1800 <limits.h> exists even on freestanding compilers. */ 1801 1802#ifdef __STDC__ 1803# include <limits.h> 1804#else 1805# include <assert.h> 1806#endif 1807 1808#undef $2 1809 1810/* Override any GCC internal prototype to avoid an error. 1811 Use char because int might match the return type of a GCC 1812 builtin and then its argument prototype would still apply. */ 1813#ifdef __cplusplus 1814extern "C" 1815#endif 1816char $2 (); 1817/* The GNU C library defines this for functions which it implements 1818 to always fail with ENOSYS. Some functions are actually named 1819 something starting with __ and the normal name is an alias. */ 1820#if defined __stub_$2 || defined __stub___$2 1821choke me 1822#endif 1823 1824int 1825main () 1826{ 1827return $2 (); 1828 ; 1829 return 0; 1830} 1831_ACEOF 1832if ac_fn_c_try_link "$LINENO"; then : 1833 eval "$3=yes" 1834else 1835 eval "$3=no" 1836fi 1837rm -f core conftest.err conftest.$ac_objext \ 1838 conftest$ac_exeext conftest.$ac_ext 1839fi 1840eval ac_res=\$$3 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1842$as_echo "$ac_res" >&6; } 1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1844 1845} # ac_fn_c_check_func 1846 1847# ac_fn_cxx_try_compile LINENO 1848# ---------------------------- 1849# Try to compile conftest.$ac_ext, and return whether this succeeded. 1850ac_fn_cxx_try_compile () 1851{ 1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1853 rm -f conftest.$ac_objext 1854 if { { ac_try="$ac_compile" 1855case "(($ac_try" in 1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1857 *) ac_try_echo=$ac_try;; 1858esac 1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1860$as_echo "$ac_try_echo"; } >&5 1861 (eval "$ac_compile") 2>conftest.err 1862 ac_status=$? 1863 if test -s conftest.err; then 1864 grep -v '^ *+' conftest.err >conftest.er1 1865 cat conftest.er1 >&5 1866 mv -f conftest.er1 conftest.err 1867 fi 1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1869 test $ac_status = 0; } && { 1870 test -z "$ac_cxx_werror_flag" || 1871 test ! -s conftest.err 1872 } && test -s conftest.$ac_objext; then : 1873 ac_retval=0 1874else 1875 $as_echo "$as_me: failed program was:" >&5 1876sed 's/^/| /' conftest.$ac_ext >&5 1877 1878 ac_retval=1 1879fi 1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1881 return $ac_retval 1882 1883} # ac_fn_cxx_try_compile 1884 1885# ac_fn_cxx_try_cpp LINENO 1886# ------------------------ 1887# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1888ac_fn_cxx_try_cpp () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 if { { ac_try="$ac_cpp conftest.$ac_ext" 1892case "(($ac_try" in 1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1894 *) ac_try_echo=$ac_try;; 1895esac 1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1897$as_echo "$ac_try_echo"; } >&5 1898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1899 ac_status=$? 1900 if test -s conftest.err; then 1901 grep -v '^ *+' conftest.err >conftest.er1 1902 cat conftest.er1 >&5 1903 mv -f conftest.er1 conftest.err 1904 fi 1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1906 test $ac_status = 0; } >/dev/null && { 1907 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1908 test ! -s conftest.err 1909 }; then : 1910 ac_retval=0 1911else 1912 $as_echo "$as_me: failed program was:" >&5 1913sed 's/^/| /' conftest.$ac_ext >&5 1914 1915 ac_retval=1 1916fi 1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1918 return $ac_retval 1919 1920} # ac_fn_cxx_try_cpp 1921 1922# ac_fn_cxx_try_link LINENO 1923# ------------------------- 1924# Try to link conftest.$ac_ext, and return whether this succeeded. 1925ac_fn_cxx_try_link () 1926{ 1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1928 rm -f conftest.$ac_objext conftest$ac_exeext 1929 if { { ac_try="$ac_link" 1930case "(($ac_try" in 1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1932 *) ac_try_echo=$ac_try;; 1933esac 1934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1935$as_echo "$ac_try_echo"; } >&5 1936 (eval "$ac_link") 2>conftest.err 1937 ac_status=$? 1938 if test -s conftest.err; then 1939 grep -v '^ *+' conftest.err >conftest.er1 1940 cat conftest.er1 >&5 1941 mv -f conftest.er1 conftest.err 1942 fi 1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1944 test $ac_status = 0; } && { 1945 test -z "$ac_cxx_werror_flag" || 1946 test ! -s conftest.err 1947 } && test -s conftest$ac_exeext && { 1948 test "$cross_compiling" = yes || 1949 $as_test_x conftest$ac_exeext 1950 }; then : 1951 ac_retval=0 1952else 1953 $as_echo "$as_me: failed program was:" >&5 1954sed 's/^/| /' conftest.$ac_ext >&5 1955 1956 ac_retval=1 1957fi 1958 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1959 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1960 # interfere with the next link command; also delete a directory that is 1961 # left behind by Apple's compiler. We do this before executing the actions. 1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1964 return $ac_retval 1965 1966} # ac_fn_cxx_try_link 1967 1968# ac_fn_c_check_decl LINENO SYMBOL VAR 1969# ------------------------------------ 1970# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1971ac_fn_c_check_decl () 1972{ 1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1974 as_decl_name=`echo $2|sed 's/ *(.*//'` 1975 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1977$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1978if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1979 $as_echo_n "(cached) " >&6 1980else 1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1982/* end confdefs.h. */ 1983$4 1984int 1985main () 1986{ 1987#ifndef $as_decl_name 1988#ifdef __cplusplus 1989 (void) $as_decl_use; 1990#else 1991 (void) $as_decl_name; 1992#endif 1993#endif 1994 1995 ; 1996 return 0; 1997} 1998_ACEOF 1999if ac_fn_c_try_compile "$LINENO"; then : 2000 eval "$3=yes" 2001else 2002 eval "$3=no" 2003fi 2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2005fi 2006eval ac_res=\$$3 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2008$as_echo "$ac_res" >&6; } 2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2010 2011} # ac_fn_c_check_decl 2012cat >config.log <<_ACEOF 2013This file contains any messages produced by compilers while 2014running configure, to aid debugging if configure makes a mistake. 2015 2016It was created by libcc1 $as_me version-unused, which was 2017generated by GNU Autoconf 2.64. Invocation command line was 2018 2019 $ $0 $@ 2020 2021_ACEOF 2022exec 5>>config.log 2023{ 2024cat <<_ASUNAME 2025## --------- ## 2026## Platform. ## 2027## --------- ## 2028 2029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2030uname -m = `(uname -m) 2>/dev/null || echo unknown` 2031uname -r = `(uname -r) 2>/dev/null || echo unknown` 2032uname -s = `(uname -s) 2>/dev/null || echo unknown` 2033uname -v = `(uname -v) 2>/dev/null || echo unknown` 2034 2035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2037 2038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2041/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2045 2046_ASUNAME 2047 2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2049for as_dir in $PATH 2050do 2051 IFS=$as_save_IFS 2052 test -z "$as_dir" && as_dir=. 2053 $as_echo "PATH: $as_dir" 2054 done 2055IFS=$as_save_IFS 2056 2057} >&5 2058 2059cat >&5 <<_ACEOF 2060 2061 2062## ----------- ## 2063## Core tests. ## 2064## ----------- ## 2065 2066_ACEOF 2067 2068 2069# Keep a trace of the command line. 2070# Strip out --no-create and --no-recursion so they do not pile up. 2071# Strip out --silent because we don't want to record it for future runs. 2072# Also quote any args containing shell meta-characters. 2073# Make two passes to allow for proper duplicate-argument suppression. 2074ac_configure_args= 2075ac_configure_args0= 2076ac_configure_args1= 2077ac_must_keep_next=false 2078for ac_pass in 1 2 2079do 2080 for ac_arg 2081 do 2082 case $ac_arg in 2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2085 | -silent | --silent | --silen | --sile | --sil) 2086 continue ;; 2087 *\'*) 2088 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2089 esac 2090 case $ac_pass in 2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2092 2) 2093 as_fn_append ac_configure_args1 " '$ac_arg'" 2094 if test $ac_must_keep_next = true; then 2095 ac_must_keep_next=false # Got value, back to normal. 2096 else 2097 case $ac_arg in 2098 *=* | --config-cache | -C | -disable-* | --disable-* \ 2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2101 | -with-* | --with-* | -without-* | --without-* | --x) 2102 case "$ac_configure_args0 " in 2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2104 esac 2105 ;; 2106 -* ) ac_must_keep_next=true ;; 2107 esac 2108 fi 2109 as_fn_append ac_configure_args " '$ac_arg'" 2110 ;; 2111 esac 2112 done 2113done 2114{ ac_configure_args0=; unset ac_configure_args0;} 2115{ ac_configure_args1=; unset ac_configure_args1;} 2116 2117# When interrupted or exit'd, cleanup temporary files, and complete 2118# config.log. We remove comments because anyway the quotes in there 2119# would cause problems or look ugly. 2120# WARNING: Use '\'' to represent an apostrophe within the trap. 2121# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2122trap 'exit_status=$? 2123 # Save into config.log some information that might help in debugging. 2124 { 2125 echo 2126 2127 cat <<\_ASBOX 2128## ---------------- ## 2129## Cache variables. ## 2130## ---------------- ## 2131_ASBOX 2132 echo 2133 # The following way of writing the cache mishandles newlines in values, 2134( 2135 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2136 eval ac_val=\$$ac_var 2137 case $ac_val in #( 2138 *${as_nl}*) 2139 case $ac_var in #( 2140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2141$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2142 esac 2143 case $ac_var in #( 2144 _ | IFS | as_nl) ;; #( 2145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2146 *) { eval $ac_var=; unset $ac_var;} ;; 2147 esac ;; 2148 esac 2149 done 2150 (set) 2>&1 | 2151 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2152 *${as_nl}ac_space=\ *) 2153 sed -n \ 2154 "s/'\''/'\''\\\\'\'''\''/g; 2155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2156 ;; #( 2157 *) 2158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2159 ;; 2160 esac | 2161 sort 2162) 2163 echo 2164 2165 cat <<\_ASBOX 2166## ----------------- ## 2167## Output variables. ## 2168## ----------------- ## 2169_ASBOX 2170 echo 2171 for ac_var in $ac_subst_vars 2172 do 2173 eval ac_val=\$$ac_var 2174 case $ac_val in 2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2176 esac 2177 $as_echo "$ac_var='\''$ac_val'\''" 2178 done | sort 2179 echo 2180 2181 if test -n "$ac_subst_files"; then 2182 cat <<\_ASBOX 2183## ------------------- ## 2184## File substitutions. ## 2185## ------------------- ## 2186_ASBOX 2187 echo 2188 for ac_var in $ac_subst_files 2189 do 2190 eval ac_val=\$$ac_var 2191 case $ac_val in 2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2193 esac 2194 $as_echo "$ac_var='\''$ac_val'\''" 2195 done | sort 2196 echo 2197 fi 2198 2199 if test -s confdefs.h; then 2200 cat <<\_ASBOX 2201## ----------- ## 2202## confdefs.h. ## 2203## ----------- ## 2204_ASBOX 2205 echo 2206 cat confdefs.h 2207 echo 2208 fi 2209 test "$ac_signal" != 0 && 2210 $as_echo "$as_me: caught signal $ac_signal" 2211 $as_echo "$as_me: exit $exit_status" 2212 } >&5 2213 rm -f core *.core core.conftest.* && 2214 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2215 exit $exit_status 2216' 0 2217for ac_signal in 1 2 13 15; do 2218 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2219done 2220ac_signal=0 2221 2222# confdefs.h avoids OS command line length limits that DEFS can exceed. 2223rm -f -r conftest* confdefs.h 2224 2225$as_echo "/* confdefs.h */" > confdefs.h 2226 2227# Predefined preprocessor variables. 2228 2229cat >>confdefs.h <<_ACEOF 2230#define PACKAGE_NAME "$PACKAGE_NAME" 2231_ACEOF 2232 2233cat >>confdefs.h <<_ACEOF 2234#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2235_ACEOF 2236 2237cat >>confdefs.h <<_ACEOF 2238#define PACKAGE_VERSION "$PACKAGE_VERSION" 2239_ACEOF 2240 2241cat >>confdefs.h <<_ACEOF 2242#define PACKAGE_STRING "$PACKAGE_STRING" 2243_ACEOF 2244 2245cat >>confdefs.h <<_ACEOF 2246#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2247_ACEOF 2248 2249cat >>confdefs.h <<_ACEOF 2250#define PACKAGE_URL "$PACKAGE_URL" 2251_ACEOF 2252 2253 2254# Let the site file select an alternate cache file if it wants to. 2255# Prefer an explicitly selected file to automatically selected ones. 2256ac_site_file1=NONE 2257ac_site_file2=NONE 2258if test -n "$CONFIG_SITE"; then 2259 ac_site_file1=$CONFIG_SITE 2260elif test "x$prefix" != xNONE; then 2261 ac_site_file1=$prefix/share/config.site 2262 ac_site_file2=$prefix/etc/config.site 2263else 2264 ac_site_file1=$ac_default_prefix/share/config.site 2265 ac_site_file2=$ac_default_prefix/etc/config.site 2266fi 2267for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2268do 2269 test "x$ac_site_file" = xNONE && continue 2270 if test -r "$ac_site_file"; then 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2272$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2273 sed 's/^/| /' "$ac_site_file" >&5 2274 . "$ac_site_file" 2275 fi 2276done 2277 2278if test -r "$cache_file"; then 2279 # Some versions of bash will fail to source /dev/null (special 2280 # files actually), so we avoid doing that. 2281 if test -f "$cache_file"; then 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2283$as_echo "$as_me: loading cache $cache_file" >&6;} 2284 case $cache_file in 2285 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2286 *) . "./$cache_file";; 2287 esac 2288 fi 2289else 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2291$as_echo "$as_me: creating cache $cache_file" >&6;} 2292 >$cache_file 2293fi 2294 2295# Check that the precious variables saved in the cache have kept the same 2296# value. 2297ac_cache_corrupted=false 2298for ac_var in $ac_precious_vars; do 2299 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2300 eval ac_new_set=\$ac_env_${ac_var}_set 2301 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2302 eval ac_new_val=\$ac_env_${ac_var}_value 2303 case $ac_old_set,$ac_new_set in 2304 set,) 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2306$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2307 ac_cache_corrupted=: ;; 2308 ,set) 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2310$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2311 ac_cache_corrupted=: ;; 2312 ,);; 2313 *) 2314 if test "x$ac_old_val" != "x$ac_new_val"; then 2315 # differences in whitespace do not lead to failure. 2316 ac_old_val_w=`echo x $ac_old_val` 2317 ac_new_val_w=`echo x $ac_new_val` 2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2320$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2321 ac_cache_corrupted=: 2322 else 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2324$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2325 eval $ac_var=\$ac_old_val 2326 fi 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2328$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2330$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2331 fi;; 2332 esac 2333 # Pass precious variables to config.status. 2334 if test "$ac_new_set" = set; then 2335 case $ac_new_val in 2336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2337 *) ac_arg=$ac_var=$ac_new_val ;; 2338 esac 2339 case " $ac_configure_args " in 2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2341 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2342 esac 2343 fi 2344done 2345if $ac_cache_corrupted; then 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2349$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2350 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2351fi 2352## -------------------- ## 2353## Main body of script. ## 2354## -------------------- ## 2355 2356ac_ext=c 2357ac_cpp='$CPP $CPPFLAGS' 2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2360ac_compiler_gnu=$ac_cv_c_compiler_gnu 2361 2362 2363 2364 2365 2366 2367ac_config_headers="$ac_config_headers cc1plugin-config.h" 2368 2369 2370ac_aux_dir= 2371for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2372 for ac_t in install-sh install.sh shtool; do 2373 if test -f "$ac_dir/$ac_t"; then 2374 ac_aux_dir=$ac_dir 2375 ac_install_sh="$ac_aux_dir/$ac_t -c" 2376 break 2 2377 fi 2378 done 2379done 2380if test -z "$ac_aux_dir"; then 2381 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2382fi 2383 2384# These three variables are undocumented and unsupported, 2385# and are intended to be withdrawn in a future Autoconf release. 2386# They can cause serious problems if a builder's source tree is in a directory 2387# whose full name contains unusual characters. 2388ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2389ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2390ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2391 2392 2393# Make sure we can run config.sub. 2394$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2395 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2396 2397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2398$as_echo_n "checking build system type... " >&6; } 2399if test "${ac_cv_build+set}" = set; then : 2400 $as_echo_n "(cached) " >&6 2401else 2402 ac_build_alias=$build_alias 2403test "x$ac_build_alias" = x && 2404 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2405test "x$ac_build_alias" = x && 2406 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2407ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2408 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2409 2410fi 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2412$as_echo "$ac_cv_build" >&6; } 2413case $ac_cv_build in 2414*-*-*) ;; 2415*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2416esac 2417build=$ac_cv_build 2418ac_save_IFS=$IFS; IFS='-' 2419set x $ac_cv_build 2420shift 2421build_cpu=$1 2422build_vendor=$2 2423shift; shift 2424# Remember, the first character of IFS is used to create $*, 2425# except with old shells: 2426build_os=$* 2427IFS=$ac_save_IFS 2428case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2429 2430 2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2432$as_echo_n "checking host system type... " >&6; } 2433if test "${ac_cv_host+set}" = set; then : 2434 $as_echo_n "(cached) " >&6 2435else 2436 if test "x$host_alias" = x; then 2437 ac_cv_host=$ac_cv_build 2438else 2439 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2440 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2441fi 2442 2443fi 2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2445$as_echo "$ac_cv_host" >&6; } 2446case $ac_cv_host in 2447*-*-*) ;; 2448*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2449esac 2450host=$ac_cv_host 2451ac_save_IFS=$IFS; IFS='-' 2452set x $ac_cv_host 2453shift 2454host_cpu=$1 2455host_vendor=$2 2456shift; shift 2457# Remember, the first character of IFS is used to create $*, 2458# except with old shells: 2459host_os=$* 2460IFS=$ac_save_IFS 2461case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2462 2463 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2465$as_echo_n "checking target system type... " >&6; } 2466if test "${ac_cv_target+set}" = set; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 if test "x$target_alias" = x; then 2470 ac_cv_target=$ac_cv_host 2471else 2472 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2473 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2474fi 2475 2476fi 2477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2478$as_echo "$ac_cv_target" >&6; } 2479case $ac_cv_target in 2480*-*-*) ;; 2481*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2482esac 2483target=$ac_cv_target 2484ac_save_IFS=$IFS; IFS='-' 2485set x $ac_cv_target 2486shift 2487target_cpu=$1 2488target_vendor=$2 2489shift; shift 2490# Remember, the first character of IFS is used to create $*, 2491# except with old shells: 2492target_os=$* 2493IFS=$ac_save_IFS 2494case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2495 2496 2497# The aliases save the names the user supplied, while $host etc. 2498# will get canonicalized. 2499test -n "$target_alias" && 2500 test "$program_prefix$program_suffix$program_transform_name" = \ 2501 NONENONEs,x,x, && 2502 program_prefix=${target_alias}- 2503 2504ac_ext=c 2505ac_cpp='$CPP $CPPFLAGS' 2506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2508ac_compiler_gnu=$ac_cv_c_compiler_gnu 2509if test -n "$ac_tool_prefix"; then 2510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2511set dummy ${ac_tool_prefix}gcc; ac_word=$2 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2513$as_echo_n "checking for $ac_word... " >&6; } 2514if test "${ac_cv_prog_CC+set}" = set; then : 2515 $as_echo_n "(cached) " >&6 2516else 2517 if test -n "$CC"; then 2518 ac_cv_prog_CC="$CC" # Let the user override the test. 2519else 2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521for as_dir in $PATH 2522do 2523 IFS=$as_save_IFS 2524 test -z "$as_dir" && as_dir=. 2525 for ac_exec_ext in '' $ac_executable_extensions; do 2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2527 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2529 break 2 2530 fi 2531done 2532 done 2533IFS=$as_save_IFS 2534 2535fi 2536fi 2537CC=$ac_cv_prog_CC 2538if test -n "$CC"; then 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2540$as_echo "$CC" >&6; } 2541else 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2543$as_echo "no" >&6; } 2544fi 2545 2546 2547fi 2548if test -z "$ac_cv_prog_CC"; then 2549 ac_ct_CC=$CC 2550 # Extract the first word of "gcc", so it can be a program name with args. 2551set dummy gcc; ac_word=$2 2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2553$as_echo_n "checking for $ac_word... " >&6; } 2554if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2555 $as_echo_n "(cached) " >&6 2556else 2557 if test -n "$ac_ct_CC"; then 2558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2559else 2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2561for as_dir in $PATH 2562do 2563 IFS=$as_save_IFS 2564 test -z "$as_dir" && as_dir=. 2565 for ac_exec_ext in '' $ac_executable_extensions; do 2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2567 ac_cv_prog_ac_ct_CC="gcc" 2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2569 break 2 2570 fi 2571done 2572 done 2573IFS=$as_save_IFS 2574 2575fi 2576fi 2577ac_ct_CC=$ac_cv_prog_ac_ct_CC 2578if test -n "$ac_ct_CC"; then 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2580$as_echo "$ac_ct_CC" >&6; } 2581else 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2583$as_echo "no" >&6; } 2584fi 2585 2586 if test "x$ac_ct_CC" = x; then 2587 CC="" 2588 else 2589 case $cross_compiling:$ac_tool_warned in 2590yes:) 2591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2593ac_tool_warned=yes ;; 2594esac 2595 CC=$ac_ct_CC 2596 fi 2597else 2598 CC="$ac_cv_prog_CC" 2599fi 2600 2601if test -z "$CC"; then 2602 if test -n "$ac_tool_prefix"; then 2603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2604set dummy ${ac_tool_prefix}cc; ac_word=$2 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2606$as_echo_n "checking for $ac_word... " >&6; } 2607if test "${ac_cv_prog_CC+set}" = set; then : 2608 $as_echo_n "(cached) " >&6 2609else 2610 if test -n "$CC"; then 2611 ac_cv_prog_CC="$CC" # Let the user override the test. 2612else 2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2614for as_dir in $PATH 2615do 2616 IFS=$as_save_IFS 2617 test -z "$as_dir" && as_dir=. 2618 for ac_exec_ext in '' $ac_executable_extensions; do 2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2620 ac_cv_prog_CC="${ac_tool_prefix}cc" 2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2622 break 2 2623 fi 2624done 2625 done 2626IFS=$as_save_IFS 2627 2628fi 2629fi 2630CC=$ac_cv_prog_CC 2631if test -n "$CC"; then 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2633$as_echo "$CC" >&6; } 2634else 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2636$as_echo "no" >&6; } 2637fi 2638 2639 2640 fi 2641fi 2642if test -z "$CC"; then 2643 # Extract the first word of "cc", so it can be a program name with args. 2644set dummy cc; ac_word=$2 2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2646$as_echo_n "checking for $ac_word... " >&6; } 2647if test "${ac_cv_prog_CC+set}" = set; then : 2648 $as_echo_n "(cached) " >&6 2649else 2650 if test -n "$CC"; then 2651 ac_cv_prog_CC="$CC" # Let the user override the test. 2652else 2653 ac_prog_rejected=no 2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2655for as_dir in $PATH 2656do 2657 IFS=$as_save_IFS 2658 test -z "$as_dir" && as_dir=. 2659 for ac_exec_ext in '' $ac_executable_extensions; do 2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2662 ac_prog_rejected=yes 2663 continue 2664 fi 2665 ac_cv_prog_CC="cc" 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2667 break 2 2668 fi 2669done 2670 done 2671IFS=$as_save_IFS 2672 2673if test $ac_prog_rejected = yes; then 2674 # We found a bogon in the path, so make sure we never use it. 2675 set dummy $ac_cv_prog_CC 2676 shift 2677 if test $# != 0; then 2678 # We chose a different compiler from the bogus one. 2679 # However, it has the same basename, so the bogon will be chosen 2680 # first if we set CC to just the basename; use the full file name. 2681 shift 2682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2683 fi 2684fi 2685fi 2686fi 2687CC=$ac_cv_prog_CC 2688if test -n "$CC"; then 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2690$as_echo "$CC" >&6; } 2691else 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2693$as_echo "no" >&6; } 2694fi 2695 2696 2697fi 2698if test -z "$CC"; then 2699 if test -n "$ac_tool_prefix"; then 2700 for ac_prog in cl.exe 2701 do 2702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2703set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2705$as_echo_n "checking for $ac_word... " >&6; } 2706if test "${ac_cv_prog_CC+set}" = set; then : 2707 $as_echo_n "(cached) " >&6 2708else 2709 if test -n "$CC"; then 2710 ac_cv_prog_CC="$CC" # Let the user override the test. 2711else 2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2713for as_dir in $PATH 2714do 2715 IFS=$as_save_IFS 2716 test -z "$as_dir" && as_dir=. 2717 for ac_exec_ext in '' $ac_executable_extensions; do 2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2721 break 2 2722 fi 2723done 2724 done 2725IFS=$as_save_IFS 2726 2727fi 2728fi 2729CC=$ac_cv_prog_CC 2730if test -n "$CC"; then 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2732$as_echo "$CC" >&6; } 2733else 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2735$as_echo "no" >&6; } 2736fi 2737 2738 2739 test -n "$CC" && break 2740 done 2741fi 2742if test -z "$CC"; then 2743 ac_ct_CC=$CC 2744 for ac_prog in cl.exe 2745do 2746 # Extract the first word of "$ac_prog", so it can be a program name with args. 2747set dummy $ac_prog; ac_word=$2 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2749$as_echo_n "checking for $ac_word... " >&6; } 2750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 if test -n "$ac_ct_CC"; then 2754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2755else 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 test -z "$as_dir" && as_dir=. 2761 for ac_exec_ext in '' $ac_executable_extensions; do 2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2763 ac_cv_prog_ac_ct_CC="$ac_prog" 2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2765 break 2 2766 fi 2767done 2768 done 2769IFS=$as_save_IFS 2770 2771fi 2772fi 2773ac_ct_CC=$ac_cv_prog_ac_ct_CC 2774if test -n "$ac_ct_CC"; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2776$as_echo "$ac_ct_CC" >&6; } 2777else 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2779$as_echo "no" >&6; } 2780fi 2781 2782 2783 test -n "$ac_ct_CC" && break 2784done 2785 2786 if test "x$ac_ct_CC" = x; then 2787 CC="" 2788 else 2789 case $cross_compiling:$ac_tool_warned in 2790yes:) 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2793ac_tool_warned=yes ;; 2794esac 2795 CC=$ac_ct_CC 2796 fi 2797fi 2798 2799fi 2800 2801 2802test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2804as_fn_error "no acceptable C compiler found in \$PATH 2805See \`config.log' for more details." "$LINENO" 5; } 2806 2807# Provide some information about the compiler. 2808$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2809set X $ac_compile 2810ac_compiler=$2 2811for ac_option in --version -v -V -qversion; do 2812 { { ac_try="$ac_compiler $ac_option >&5" 2813case "(($ac_try" in 2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2815 *) ac_try_echo=$ac_try;; 2816esac 2817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2818$as_echo "$ac_try_echo"; } >&5 2819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2820 ac_status=$? 2821 if test -s conftest.err; then 2822 sed '10a\ 2823... rest of stderr output deleted ... 2824 10q' conftest.err >conftest.er1 2825 cat conftest.er1 >&5 2826 rm -f conftest.er1 conftest.err 2827 fi 2828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2829 test $ac_status = 0; } 2830done 2831 2832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2833/* end confdefs.h. */ 2834 2835int 2836main () 2837{ 2838 2839 ; 2840 return 0; 2841} 2842_ACEOF 2843ac_clean_files_save=$ac_clean_files 2844ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 2845# Try to create an executable without -o first, disregard a.out. 2846# It will help us diagnose broken compilers, and finding out an intuition 2847# of exeext. 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2849$as_echo_n "checking for C compiler default output file name... " >&6; } 2850ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2851 2852# The possible output files: 2853ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2854 2855ac_rmfiles= 2856for ac_file in $ac_files 2857do 2858 case $ac_file in 2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2860 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2861 esac 2862done 2863rm -f $ac_rmfiles 2864 2865if { { ac_try="$ac_link_default" 2866case "(($ac_try" in 2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2868 *) ac_try_echo=$ac_try;; 2869esac 2870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2871$as_echo "$ac_try_echo"; } >&5 2872 (eval "$ac_link_default") 2>&5 2873 ac_status=$? 2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2875 test $ac_status = 0; }; then : 2876 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2877# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2878# in a Makefile. We should not override ac_cv_exeext if it was cached, 2879# so that the user can short-circuit this test for compilers unknown to 2880# Autoconf. 2881for ac_file in $ac_files '' 2882do 2883 test -f "$ac_file" || continue 2884 case $ac_file in 2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2886 ;; 2887 [ab].out ) 2888 # We found the default executable, but exeext='' is most 2889 # certainly right. 2890 break;; 2891 *.* ) 2892 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2893 then :; else 2894 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2895 fi 2896 # We set ac_cv_exeext here because the later test for it is not 2897 # safe: cross compilers may not add the suffix if given an `-o' 2898 # argument, so we may need to know it at that point already. 2899 # Even if this section looks crufty: it has the advantage of 2900 # actually working. 2901 break;; 2902 * ) 2903 break;; 2904 esac 2905done 2906test "$ac_cv_exeext" = no && ac_cv_exeext= 2907 2908else 2909 ac_file='' 2910fi 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2912$as_echo "$ac_file" >&6; } 2913if test -z "$ac_file"; then : 2914 $as_echo "$as_me: failed program was:" >&5 2915sed 's/^/| /' conftest.$ac_ext >&5 2916 2917{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2919{ as_fn_set_status 77 2920as_fn_error "C compiler cannot create executables 2921See \`config.log' for more details." "$LINENO" 5; }; } 2922fi 2923ac_exeext=$ac_cv_exeext 2924 2925# Check that the compiler produces executables we can run. If not, either 2926# the compiler is broken, or we cross compile. 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2928$as_echo_n "checking whether the C compiler works... " >&6; } 2929# If not cross compiling, check that we can run a simple program. 2930if test "$cross_compiling" != yes; then 2931 if { ac_try='./$ac_file' 2932 { { case "(($ac_try" in 2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2934 *) ac_try_echo=$ac_try;; 2935esac 2936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2937$as_echo "$ac_try_echo"; } >&5 2938 (eval "$ac_try") 2>&5 2939 ac_status=$? 2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2941 test $ac_status = 0; }; }; then 2942 cross_compiling=no 2943 else 2944 if test "$cross_compiling" = maybe; then 2945 cross_compiling=yes 2946 else 2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2949as_fn_error "cannot run C compiled programs. 2950If you meant to cross compile, use \`--host'. 2951See \`config.log' for more details." "$LINENO" 5; } 2952 fi 2953 fi 2954fi 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2956$as_echo "yes" >&6; } 2957 2958rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 2959ac_clean_files=$ac_clean_files_save 2960# Check that the compiler produces executables we can run. If not, either 2961# the compiler is broken, or we cross compile. 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2963$as_echo_n "checking whether we are cross compiling... " >&6; } 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2965$as_echo "$cross_compiling" >&6; } 2966 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2968$as_echo_n "checking for suffix of executables... " >&6; } 2969if { { ac_try="$ac_link" 2970case "(($ac_try" in 2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2972 *) ac_try_echo=$ac_try;; 2973esac 2974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2975$as_echo "$ac_try_echo"; } >&5 2976 (eval "$ac_link") 2>&5 2977 ac_status=$? 2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2979 test $ac_status = 0; }; then : 2980 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2981# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2982# work properly (i.e., refer to `conftest.exe'), while it won't with 2983# `rm'. 2984for ac_file in conftest.exe conftest conftest.*; do 2985 test -f "$ac_file" || continue 2986 case $ac_file in 2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2989 break;; 2990 * ) break;; 2991 esac 2992done 2993else 2994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2996as_fn_error "cannot compute suffix of executables: cannot compile and link 2997See \`config.log' for more details." "$LINENO" 5; } 2998fi 2999rm -f conftest$ac_cv_exeext 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3001$as_echo "$ac_cv_exeext" >&6; } 3002 3003rm -f conftest.$ac_ext 3004EXEEXT=$ac_cv_exeext 3005ac_exeext=$EXEEXT 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3007$as_echo_n "checking for suffix of object files... " >&6; } 3008if test "${ac_cv_objext+set}" = set; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3012/* end confdefs.h. */ 3013 3014int 3015main () 3016{ 3017 3018 ; 3019 return 0; 3020} 3021_ACEOF 3022rm -f conftest.o conftest.obj 3023if { { ac_try="$ac_compile" 3024case "(($ac_try" in 3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3026 *) ac_try_echo=$ac_try;; 3027esac 3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3029$as_echo "$ac_try_echo"; } >&5 3030 (eval "$ac_compile") 2>&5 3031 ac_status=$? 3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3033 test $ac_status = 0; }; then : 3034 for ac_file in conftest.o conftest.obj conftest.*; do 3035 test -f "$ac_file" || continue; 3036 case $ac_file in 3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3039 break;; 3040 esac 3041done 3042else 3043 $as_echo "$as_me: failed program was:" >&5 3044sed 's/^/| /' conftest.$ac_ext >&5 3045 3046{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3048as_fn_error "cannot compute suffix of object files: cannot compile 3049See \`config.log' for more details." "$LINENO" 5; } 3050fi 3051rm -f conftest.$ac_cv_objext conftest.$ac_ext 3052fi 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3054$as_echo "$ac_cv_objext" >&6; } 3055OBJEXT=$ac_cv_objext 3056ac_objext=$OBJEXT 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3058$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3059if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3063/* end confdefs.h. */ 3064 3065int 3066main () 3067{ 3068#ifndef __GNUC__ 3069 choke me 3070#endif 3071 3072 ; 3073 return 0; 3074} 3075_ACEOF 3076if ac_fn_c_try_compile "$LINENO"; then : 3077 ac_compiler_gnu=yes 3078else 3079 ac_compiler_gnu=no 3080fi 3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3082ac_cv_c_compiler_gnu=$ac_compiler_gnu 3083 3084fi 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3086$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3087if test $ac_compiler_gnu = yes; then 3088 GCC=yes 3089else 3090 GCC= 3091fi 3092ac_test_CFLAGS=${CFLAGS+set} 3093ac_save_CFLAGS=$CFLAGS 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3095$as_echo_n "checking whether $CC accepts -g... " >&6; } 3096if test "${ac_cv_prog_cc_g+set}" = set; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 ac_save_c_werror_flag=$ac_c_werror_flag 3100 ac_c_werror_flag=yes 3101 ac_cv_prog_cc_g=no 3102 CFLAGS="-g" 3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3104/* end confdefs.h. */ 3105 3106int 3107main () 3108{ 3109 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114if ac_fn_c_try_compile "$LINENO"; then : 3115 ac_cv_prog_cc_g=yes 3116else 3117 CFLAGS="" 3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3119/* end confdefs.h. */ 3120 3121int 3122main () 3123{ 3124 3125 ; 3126 return 0; 3127} 3128_ACEOF 3129if ac_fn_c_try_compile "$LINENO"; then : 3130 3131else 3132 ac_c_werror_flag=$ac_save_c_werror_flag 3133 CFLAGS="-g" 3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3135/* end confdefs.h. */ 3136 3137int 3138main () 3139{ 3140 3141 ; 3142 return 0; 3143} 3144_ACEOF 3145if ac_fn_c_try_compile "$LINENO"; then : 3146 ac_cv_prog_cc_g=yes 3147fi 3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3149fi 3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3151fi 3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3153 ac_c_werror_flag=$ac_save_c_werror_flag 3154fi 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3156$as_echo "$ac_cv_prog_cc_g" >&6; } 3157if test "$ac_test_CFLAGS" = set; then 3158 CFLAGS=$ac_save_CFLAGS 3159elif test $ac_cv_prog_cc_g = yes; then 3160 if test "$GCC" = yes; then 3161 CFLAGS="-g -O2" 3162 else 3163 CFLAGS="-g" 3164 fi 3165else 3166 if test "$GCC" = yes; then 3167 CFLAGS="-O2" 3168 else 3169 CFLAGS= 3170 fi 3171fi 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3173$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3174if test "${ac_cv_prog_cc_c89+set}" = set; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 ac_cv_prog_cc_c89=no 3178ac_save_CC=$CC 3179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3180/* end confdefs.h. */ 3181#include <stdarg.h> 3182#include <stdio.h> 3183#include <sys/types.h> 3184#include <sys/stat.h> 3185/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3186struct buf { int x; }; 3187FILE * (*rcsopen) (struct buf *, struct stat *, int); 3188static char *e (p, i) 3189 char **p; 3190 int i; 3191{ 3192 return p[i]; 3193} 3194static char *f (char * (*g) (char **, int), char **p, ...) 3195{ 3196 char *s; 3197 va_list v; 3198 va_start (v,p); 3199 s = g (p, va_arg (v,int)); 3200 va_end (v); 3201 return s; 3202} 3203 3204/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3205 function prototypes and stuff, but not '\xHH' hex character constants. 3206 These don't provoke an error unfortunately, instead are silently treated 3207 as 'x'. The following induces an error, until -std is added to get 3208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3209 array size at least. It's necessary to write '\x00'==0 to get something 3210 that's true only with -std. */ 3211int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3212 3213/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3214 inside strings and character constants. */ 3215#define FOO(x) 'x' 3216int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3217 3218int test (int i, double x); 3219struct s1 {int (*f) (int a);}; 3220struct s2 {int (*f) (double a);}; 3221int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3222int argc; 3223char **argv; 3224int 3225main () 3226{ 3227return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3228 ; 3229 return 0; 3230} 3231_ACEOF 3232for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3234do 3235 CC="$ac_save_CC $ac_arg" 3236 if ac_fn_c_try_compile "$LINENO"; then : 3237 ac_cv_prog_cc_c89=$ac_arg 3238fi 3239rm -f core conftest.err conftest.$ac_objext 3240 test "x$ac_cv_prog_cc_c89" != "xno" && break 3241done 3242rm -f conftest.$ac_ext 3243CC=$ac_save_CC 3244 3245fi 3246# AC_CACHE_VAL 3247case "x$ac_cv_prog_cc_c89" in 3248 x) 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3250$as_echo "none needed" >&6; } ;; 3251 xno) 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3253$as_echo "unsupported" >&6; } ;; 3254 *) 3255 CC="$CC $ac_cv_prog_cc_c89" 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3257$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3258esac 3259if test "x$ac_cv_prog_cc_c89" != xno; then : 3260 3261fi 3262 3263ac_ext=c 3264ac_cpp='$CPP $CPPFLAGS' 3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3267ac_compiler_gnu=$ac_cv_c_compiler_gnu 3268 3269 3270ac_ext=c 3271ac_cpp='$CPP $CPPFLAGS' 3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3274ac_compiler_gnu=$ac_cv_c_compiler_gnu 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3276$as_echo_n "checking how to run the C preprocessor... " >&6; } 3277# On Suns, sometimes $CPP names a directory. 3278if test -n "$CPP" && test -d "$CPP"; then 3279 CPP= 3280fi 3281if test -z "$CPP"; then 3282 if test "${ac_cv_prog_CPP+set}" = set; then : 3283 $as_echo_n "(cached) " >&6 3284else 3285 # Double quotes because CPP needs to be expanded 3286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3287 do 3288 ac_preproc_ok=false 3289for ac_c_preproc_warn_flag in '' yes 3290do 3291 # Use a header file that comes with gcc, so configuring glibc 3292 # with a fresh cross-compiler works. 3293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3294 # <limits.h> exists even on freestanding compilers. 3295 # On the NeXT, cc -E runs the code through the compiler's parser, 3296 # not just through cpp. "Syntax error" is here to catch this case. 3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299#ifdef __STDC__ 3300# include <limits.h> 3301#else 3302# include <assert.h> 3303#endif 3304 Syntax error 3305_ACEOF 3306if ac_fn_c_try_cpp "$LINENO"; then : 3307 3308else 3309 # Broken: fails on valid input. 3310continue 3311fi 3312rm -f conftest.err conftest.$ac_ext 3313 3314 # OK, works on sane cases. Now check whether nonexistent headers 3315 # can be detected and how. 3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3317/* end confdefs.h. */ 3318#include <ac_nonexistent.h> 3319_ACEOF 3320if ac_fn_c_try_cpp "$LINENO"; then : 3321 # Broken: success on invalid input. 3322continue 3323else 3324 # Passes both tests. 3325ac_preproc_ok=: 3326break 3327fi 3328rm -f conftest.err conftest.$ac_ext 3329 3330done 3331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3332rm -f conftest.err conftest.$ac_ext 3333if $ac_preproc_ok; then : 3334 break 3335fi 3336 3337 done 3338 ac_cv_prog_CPP=$CPP 3339 3340fi 3341 CPP=$ac_cv_prog_CPP 3342else 3343 ac_cv_prog_CPP=$CPP 3344fi 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3346$as_echo "$CPP" >&6; } 3347ac_preproc_ok=false 3348for ac_c_preproc_warn_flag in '' yes 3349do 3350 # Use a header file that comes with gcc, so configuring glibc 3351 # with a fresh cross-compiler works. 3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3353 # <limits.h> exists even on freestanding compilers. 3354 # On the NeXT, cc -E runs the code through the compiler's parser, 3355 # not just through cpp. "Syntax error" is here to catch this case. 3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3357/* end confdefs.h. */ 3358#ifdef __STDC__ 3359# include <limits.h> 3360#else 3361# include <assert.h> 3362#endif 3363 Syntax error 3364_ACEOF 3365if ac_fn_c_try_cpp "$LINENO"; then : 3366 3367else 3368 # Broken: fails on valid input. 3369continue 3370fi 3371rm -f conftest.err conftest.$ac_ext 3372 3373 # OK, works on sane cases. Now check whether nonexistent headers 3374 # can be detected and how. 3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3376/* end confdefs.h. */ 3377#include <ac_nonexistent.h> 3378_ACEOF 3379if ac_fn_c_try_cpp "$LINENO"; then : 3380 # Broken: success on invalid input. 3381continue 3382else 3383 # Passes both tests. 3384ac_preproc_ok=: 3385break 3386fi 3387rm -f conftest.err conftest.$ac_ext 3388 3389done 3390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3391rm -f conftest.err conftest.$ac_ext 3392if $ac_preproc_ok; then : 3393 3394else 3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3397as_fn_error "C preprocessor \"$CPP\" fails sanity check 3398See \`config.log' for more details." "$LINENO" 5; } 3399fi 3400 3401ac_ext=c 3402ac_cpp='$CPP $CPPFLAGS' 3403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3405ac_compiler_gnu=$ac_cv_c_compiler_gnu 3406 3407 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3409$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3410if test "${ac_cv_path_GREP+set}" = set; then : 3411 $as_echo_n "(cached) " >&6 3412else 3413 if test -z "$GREP"; then 3414 ac_path_GREP_found=false 3415 # Loop through the user's path and test for each of PROGNAME-LIST 3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3418do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_prog in grep ggrep; do 3422 for ac_exec_ext in '' $ac_executable_extensions; do 3423 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3424 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3425# Check for GNU ac_path_GREP and select it if it is found. 3426 # Check for GNU $ac_path_GREP 3427case `"$ac_path_GREP" --version 2>&1` in 3428*GNU*) 3429 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3430*) 3431 ac_count=0 3432 $as_echo_n 0123456789 >"conftest.in" 3433 while : 3434 do 3435 cat "conftest.in" "conftest.in" >"conftest.tmp" 3436 mv "conftest.tmp" "conftest.in" 3437 cp "conftest.in" "conftest.nl" 3438 $as_echo 'GREP' >> "conftest.nl" 3439 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3441 as_fn_arith $ac_count + 1 && ac_count=$as_val 3442 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3443 # Best one so far, save it but keep looking for a better one 3444 ac_cv_path_GREP="$ac_path_GREP" 3445 ac_path_GREP_max=$ac_count 3446 fi 3447 # 10*(2^10) chars as input seems more than enough 3448 test $ac_count -gt 10 && break 3449 done 3450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3451esac 3452 3453 $ac_path_GREP_found && break 3 3454 done 3455 done 3456 done 3457IFS=$as_save_IFS 3458 if test -z "$ac_cv_path_GREP"; then 3459 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3460 fi 3461else 3462 ac_cv_path_GREP=$GREP 3463fi 3464 3465fi 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3467$as_echo "$ac_cv_path_GREP" >&6; } 3468 GREP="$ac_cv_path_GREP" 3469 3470 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3472$as_echo_n "checking for egrep... " >&6; } 3473if test "${ac_cv_path_EGREP+set}" = set; then : 3474 $as_echo_n "(cached) " >&6 3475else 3476 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3477 then ac_cv_path_EGREP="$GREP -E" 3478 else 3479 if test -z "$EGREP"; then 3480 ac_path_EGREP_found=false 3481 # Loop through the user's path and test for each of PROGNAME-LIST 3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3483for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3484do 3485 IFS=$as_save_IFS 3486 test -z "$as_dir" && as_dir=. 3487 for ac_prog in egrep; do 3488 for ac_exec_ext in '' $ac_executable_extensions; do 3489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3490 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3491# Check for GNU ac_path_EGREP and select it if it is found. 3492 # Check for GNU $ac_path_EGREP 3493case `"$ac_path_EGREP" --version 2>&1` in 3494*GNU*) 3495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3496*) 3497 ac_count=0 3498 $as_echo_n 0123456789 >"conftest.in" 3499 while : 3500 do 3501 cat "conftest.in" "conftest.in" >"conftest.tmp" 3502 mv "conftest.tmp" "conftest.in" 3503 cp "conftest.in" "conftest.nl" 3504 $as_echo 'EGREP' >> "conftest.nl" 3505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3507 as_fn_arith $ac_count + 1 && ac_count=$as_val 3508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3509 # Best one so far, save it but keep looking for a better one 3510 ac_cv_path_EGREP="$ac_path_EGREP" 3511 ac_path_EGREP_max=$ac_count 3512 fi 3513 # 10*(2^10) chars as input seems more than enough 3514 test $ac_count -gt 10 && break 3515 done 3516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3517esac 3518 3519 $ac_path_EGREP_found && break 3 3520 done 3521 done 3522 done 3523IFS=$as_save_IFS 3524 if test -z "$ac_cv_path_EGREP"; then 3525 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3526 fi 3527else 3528 ac_cv_path_EGREP=$EGREP 3529fi 3530 3531 fi 3532fi 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3534$as_echo "$ac_cv_path_EGREP" >&6; } 3535 EGREP="$ac_cv_path_EGREP" 3536 3537 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3539$as_echo_n "checking for ANSI C header files... " >&6; } 3540if test "${ac_cv_header_stdc+set}" = set; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3544/* end confdefs.h. */ 3545#include <stdlib.h> 3546#include <stdarg.h> 3547#include <string.h> 3548#include <float.h> 3549 3550int 3551main () 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558if ac_fn_c_try_compile "$LINENO"; then : 3559 ac_cv_header_stdc=yes 3560else 3561 ac_cv_header_stdc=no 3562fi 3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3564 3565if test $ac_cv_header_stdc = yes; then 3566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3568/* end confdefs.h. */ 3569#include <string.h> 3570 3571_ACEOF 3572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3573 $EGREP "memchr" >/dev/null 2>&1; then : 3574 3575else 3576 ac_cv_header_stdc=no 3577fi 3578rm -f conftest* 3579 3580fi 3581 3582if test $ac_cv_header_stdc = yes; then 3583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586#include <stdlib.h> 3587 3588_ACEOF 3589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3590 $EGREP "free" >/dev/null 2>&1; then : 3591 3592else 3593 ac_cv_header_stdc=no 3594fi 3595rm -f conftest* 3596 3597fi 3598 3599if test $ac_cv_header_stdc = yes; then 3600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3601 if test "$cross_compiling" = yes; then : 3602 : 3603else 3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3605/* end confdefs.h. */ 3606#include <ctype.h> 3607#include <stdlib.h> 3608#if ((' ' & 0x0FF) == 0x020) 3609# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3610# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3611#else 3612# define ISLOWER(c) \ 3613 (('a' <= (c) && (c) <= 'i') \ 3614 || ('j' <= (c) && (c) <= 'r') \ 3615 || ('s' <= (c) && (c) <= 'z')) 3616# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3617#endif 3618 3619#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3620int 3621main () 3622{ 3623 int i; 3624 for (i = 0; i < 256; i++) 3625 if (XOR (islower (i), ISLOWER (i)) 3626 || toupper (i) != TOUPPER (i)) 3627 return 2; 3628 return 0; 3629} 3630_ACEOF 3631if ac_fn_c_try_run "$LINENO"; then : 3632 3633else 3634 ac_cv_header_stdc=no 3635fi 3636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3637 conftest.$ac_objext conftest.beam conftest.$ac_ext 3638fi 3639 3640fi 3641fi 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3643$as_echo "$ac_cv_header_stdc" >&6; } 3644if test $ac_cv_header_stdc = yes; then 3645 3646$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3647 3648fi 3649 3650# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3651for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3652 inttypes.h stdint.h unistd.h 3653do : 3654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3655ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3656" 3657eval as_val=\$$as_ac_Header 3658 if test "x$as_val" = x""yes; then : 3659 cat >>confdefs.h <<_ACEOF 3660#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3661_ACEOF 3662 3663fi 3664 3665done 3666 3667 3668 3669 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3670if test "x$ac_cv_header_minix_config_h" = x""yes; then : 3671 MINIX=yes 3672else 3673 MINIX= 3674fi 3675 3676 3677 if test "$MINIX" = yes; then 3678 3679$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3680 3681 3682$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3683 3684 3685$as_echo "#define _MINIX 1" >>confdefs.h 3686 3687 fi 3688 3689 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3691$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3692if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 3693 $as_echo_n "(cached) " >&6 3694else 3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3696/* end confdefs.h. */ 3697 3698# define __EXTENSIONS__ 1 3699 $ac_includes_default 3700int 3701main () 3702{ 3703 3704 ; 3705 return 0; 3706} 3707_ACEOF 3708if ac_fn_c_try_compile "$LINENO"; then : 3709 ac_cv_safe_to_define___extensions__=yes 3710else 3711 ac_cv_safe_to_define___extensions__=no 3712fi 3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3714fi 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3716$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3717 test $ac_cv_safe_to_define___extensions__ = yes && 3718 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3719 3720 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3721 3722 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3723 3724 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3725 3726 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3727 3728 3729# Determine the noncanonical target name, for directory use. 3730 case ${build_alias} in 3731 "") build_noncanonical=${build} ;; 3732 *) build_noncanonical=${build_alias} ;; 3733esac 3734 3735 case ${host_alias} in 3736 "") host_noncanonical=${build_noncanonical} ;; 3737 *) host_noncanonical=${host_alias} ;; 3738esac 3739 3740 case ${target_alias} in 3741 "") target_noncanonical=${host_noncanonical} ;; 3742 *) target_noncanonical=${target_alias} ;; 3743esac 3744 3745 3746 3747 3748# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 3749# have matching libraries, they should use host libraries: Makefile.tpl 3750# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 3751# However, they still use the build modules, because the corresponding 3752# host modules (e.g. bison) are only built for the host when bootstrap 3753# finishes. So: 3754# - build_subdir is where we find build modules, and never changes. 3755# - build_libsubdir is where we find build libraries, and can be overridden. 3756 3757# Prefix 'build-' so this never conflicts with target_subdir. 3758build_subdir="build-${build_noncanonical}" 3759 3760# Check whether --with-build-libsubdir was given. 3761if test "${with_build_libsubdir+set}" = set; then : 3762 withval=$with_build_libsubdir; build_libsubdir="$withval" 3763else 3764 build_libsubdir="$build_subdir" 3765fi 3766 3767# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 3768if ( test $srcdir = . && test -d gcc ) \ 3769 || test -d $srcdir/../host-${host_noncanonical}; then 3770 host_subdir="host-${host_noncanonical}" 3771else 3772 host_subdir=. 3773fi 3774# No prefix. 3775target_subdir=${target_noncanonical} 3776 3777 3778# 1.11.1: Require that version of automake. 3779# foreign: Don't require README, INSTALL, NEWS, etc. 3780# no-define: Don't define PACKAGE and VERSION. 3781# -Wall: Issue all automake warnings. 3782# -Wno-portability: Don't warn about constructs supported by GNU make. 3783# (because GCC requires GNU make anyhow). 3784am__api_version='1.11' 3785 3786# Find a good install program. We prefer a C program (faster), 3787# so one script is as good as another. But avoid the broken or 3788# incompatible versions: 3789# SysV /etc/install, /usr/sbin/install 3790# SunOS /usr/etc/install 3791# IRIX /sbin/install 3792# AIX /bin/install 3793# AmigaOS /C/install, which installs bootblocks on floppy discs 3794# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3795# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3796# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3797# OS/2's system install, which has a completely different semantic 3798# ./install, which can be erroneously created by make from ./install.sh. 3799# Reject install programs that cannot install multiple files. 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3801$as_echo_n "checking for a BSD-compatible install... " >&6; } 3802if test -z "$INSTALL"; then 3803if test "${ac_cv_path_install+set}" = set; then : 3804 $as_echo_n "(cached) " >&6 3805else 3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3807for as_dir in $PATH 3808do 3809 IFS=$as_save_IFS 3810 test -z "$as_dir" && as_dir=. 3811 # Account for people who put trailing slashes in PATH elements. 3812case $as_dir/ in #(( 3813 ./ | .// | /[cC]/* | \ 3814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3816 /usr/ucb/* ) ;; 3817 *) 3818 # OSF1 and SCO ODT 3.0 have their own names for install. 3819 # Don't use installbsd from OSF since it installs stuff as root 3820 # by default. 3821 for ac_prog in ginstall scoinst install; do 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3824 if test $ac_prog = install && 3825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3826 # AIX install. It has an incompatible calling convention. 3827 : 3828 elif test $ac_prog = install && 3829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3830 # program-specific install script used by HP pwplus--don't use. 3831 : 3832 else 3833 rm -rf conftest.one conftest.two conftest.dir 3834 echo one > conftest.one 3835 echo two > conftest.two 3836 mkdir conftest.dir 3837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3838 test -s conftest.one && test -s conftest.two && 3839 test -s conftest.dir/conftest.one && 3840 test -s conftest.dir/conftest.two 3841 then 3842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3843 break 3 3844 fi 3845 fi 3846 fi 3847 done 3848 done 3849 ;; 3850esac 3851 3852 done 3853IFS=$as_save_IFS 3854 3855rm -rf conftest.one conftest.two conftest.dir 3856 3857fi 3858 if test "${ac_cv_path_install+set}" = set; then 3859 INSTALL=$ac_cv_path_install 3860 else 3861 # As a last resort, use the slow shell script. Don't cache a 3862 # value for INSTALL within a source directory, because that will 3863 # break other packages using the cache if that directory is 3864 # removed, or if the value is a relative name. 3865 INSTALL=$ac_install_sh 3866 fi 3867fi 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3869$as_echo "$INSTALL" >&6; } 3870 3871# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3872# It thinks the first close brace ends the variable substitution. 3873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3874 3875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3876 3877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3878 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3880$as_echo_n "checking whether build environment is sane... " >&6; } 3881# Just in case 3882sleep 1 3883echo timestamp > conftest.file 3884# Reject unsafe characters in $srcdir or the absolute working directory 3885# name. Accept space and tab only in the latter. 3886am_lf=' 3887' 3888case `pwd` in 3889 *[\\\"\#\$\&\'\`$am_lf]*) 3890 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 3891esac 3892case $srcdir in 3893 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3894 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3895esac 3896 3897# Do `set' in a subshell so we don't clobber the current shell's 3898# arguments. Must try -L first in case configure is actually a 3899# symlink; some systems play weird games with the mod time of symlinks 3900# (eg FreeBSD returns the mod time of the symlink's containing 3901# directory). 3902if ( 3903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3904 if test "$*" = "X"; then 3905 # -L didn't work. 3906 set X `ls -t "$srcdir/configure" conftest.file` 3907 fi 3908 rm -f conftest.file 3909 if test "$*" != "X $srcdir/configure conftest.file" \ 3910 && test "$*" != "X conftest.file $srcdir/configure"; then 3911 3912 # If neither matched, then we have a broken ls. This can happen 3913 # if, for instance, CONFIG_SHELL is bash and it inherits a 3914 # broken ls alias from the environment. This has actually 3915 # happened. Such a system could not be considered "sane". 3916 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3917alias in your environment" "$LINENO" 5 3918 fi 3919 3920 test "$2" = conftest.file 3921 ) 3922then 3923 # Ok. 3924 : 3925else 3926 as_fn_error "newly created file is older than distributed files! 3927Check your system clock" "$LINENO" 5 3928fi 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3930$as_echo "yes" >&6; } 3931test "$program_prefix" != NONE && 3932 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3933# Use a double $ so make ignores it. 3934test "$program_suffix" != NONE && 3935 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3936# Double any \ or $. 3937# By default was `s,x,x', remove it if useless. 3938ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3939program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3940 3941# expand $ac_aux_dir to an absolute path 3942am_aux_dir=`cd $ac_aux_dir && pwd` 3943 3944if test x"${MISSING+set}" != xset; then 3945 case $am_aux_dir in 3946 *\ * | *\ *) 3947 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3948 *) 3949 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3950 esac 3951fi 3952# Use eval to expand $SHELL 3953if eval "$MISSING --run true"; then 3954 am_missing_run="$MISSING --run " 3955else 3956 am_missing_run= 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3958$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3959fi 3960 3961if test x"${install_sh}" != xset; then 3962 case $am_aux_dir in 3963 *\ * | *\ *) 3964 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3965 *) 3966 install_sh="\${SHELL} $am_aux_dir/install-sh" 3967 esac 3968fi 3969 3970# Installed binaries are usually stripped using `strip' when the user 3971# run `make install-strip'. However `strip' might not be the right 3972# tool to use in cross-compilation environments, therefore Automake 3973# will honor the `STRIP' environment variable to overrule this program. 3974if test "$cross_compiling" != no; then 3975 if test -n "$ac_tool_prefix"; then 3976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3977set dummy ${ac_tool_prefix}strip; ac_word=$2 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3979$as_echo_n "checking for $ac_word... " >&6; } 3980if test "${ac_cv_prog_STRIP+set}" = set; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 if test -n "$STRIP"; then 3984 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3985else 3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3987for as_dir in $PATH 3988do 3989 IFS=$as_save_IFS 3990 test -z "$as_dir" && as_dir=. 3991 for ac_exec_ext in '' $ac_executable_extensions; do 3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3993 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3995 break 2 3996 fi 3997done 3998 done 3999IFS=$as_save_IFS 4000 4001fi 4002fi 4003STRIP=$ac_cv_prog_STRIP 4004if test -n "$STRIP"; then 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4006$as_echo "$STRIP" >&6; } 4007else 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4009$as_echo "no" >&6; } 4010fi 4011 4012 4013fi 4014if test -z "$ac_cv_prog_STRIP"; then 4015 ac_ct_STRIP=$STRIP 4016 # Extract the first word of "strip", so it can be a program name with args. 4017set dummy strip; ac_word=$2 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4019$as_echo_n "checking for $ac_word... " >&6; } 4020if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 4021 $as_echo_n "(cached) " >&6 4022else 4023 if test -n "$ac_ct_STRIP"; then 4024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4025else 4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4027for as_dir in $PATH 4028do 4029 IFS=$as_save_IFS 4030 test -z "$as_dir" && as_dir=. 4031 for ac_exec_ext in '' $ac_executable_extensions; do 4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4033 ac_cv_prog_ac_ct_STRIP="strip" 4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4035 break 2 4036 fi 4037done 4038 done 4039IFS=$as_save_IFS 4040 4041fi 4042fi 4043ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4044if test -n "$ac_ct_STRIP"; then 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4046$as_echo "$ac_ct_STRIP" >&6; } 4047else 4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4049$as_echo "no" >&6; } 4050fi 4051 4052 if test "x$ac_ct_STRIP" = x; then 4053 STRIP=":" 4054 else 4055 case $cross_compiling:$ac_tool_warned in 4056yes:) 4057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4059ac_tool_warned=yes ;; 4060esac 4061 STRIP=$ac_ct_STRIP 4062 fi 4063else 4064 STRIP="$ac_cv_prog_STRIP" 4065fi 4066 4067fi 4068INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4069 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4071$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4072if test -z "$MKDIR_P"; then 4073 if test "${ac_cv_path_mkdir+set}" = set; then : 4074 $as_echo_n "(cached) " >&6 4075else 4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4078do 4079 IFS=$as_save_IFS 4080 test -z "$as_dir" && as_dir=. 4081 for ac_prog in mkdir gmkdir; do 4082 for ac_exec_ext in '' $ac_executable_extensions; do 4083 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4084 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4085 'mkdir (GNU coreutils) '* | \ 4086 'mkdir (coreutils) '* | \ 4087 'mkdir (fileutils) '4.1*) 4088 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4089 break 3;; 4090 esac 4091 done 4092 done 4093 done 4094IFS=$as_save_IFS 4095 4096fi 4097 4098 if test "${ac_cv_path_mkdir+set}" = set; then 4099 MKDIR_P="$ac_cv_path_mkdir -p" 4100 else 4101 # As a last resort, use the slow shell script. Don't cache a 4102 # value for MKDIR_P within a source directory, because that will 4103 # break other packages using the cache if that directory is 4104 # removed, or if the value is a relative name. 4105 test -d ./--version && rmdir ./--version 4106 MKDIR_P="$ac_install_sh -d" 4107 fi 4108fi 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4110$as_echo "$MKDIR_P" >&6; } 4111 4112mkdir_p="$MKDIR_P" 4113case $mkdir_p in 4114 [\\/$]* | ?:[\\/]*) ;; 4115 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4116esac 4117 4118for ac_prog in gawk mawk nawk awk 4119do 4120 # Extract the first word of "$ac_prog", so it can be a program name with args. 4121set dummy $ac_prog; ac_word=$2 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4123$as_echo_n "checking for $ac_word... " >&6; } 4124if test "${ac_cv_prog_AWK+set}" = set; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 if test -n "$AWK"; then 4128 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4129else 4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131for as_dir in $PATH 4132do 4133 IFS=$as_save_IFS 4134 test -z "$as_dir" && as_dir=. 4135 for ac_exec_ext in '' $ac_executable_extensions; do 4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4137 ac_cv_prog_AWK="$ac_prog" 4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4139 break 2 4140 fi 4141done 4142 done 4143IFS=$as_save_IFS 4144 4145fi 4146fi 4147AWK=$ac_cv_prog_AWK 4148if test -n "$AWK"; then 4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4150$as_echo "$AWK" >&6; } 4151else 4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4153$as_echo "no" >&6; } 4154fi 4155 4156 4157 test -n "$AWK" && break 4158done 4159 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4161$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4162set x ${MAKE-make} 4163ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4164if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 cat >conftest.make <<\_ACEOF 4168SHELL = /bin/sh 4169all: 4170 @echo '@@@%%%=$(MAKE)=@@@%%%' 4171_ACEOF 4172# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4173case `${MAKE-make} -f conftest.make 2>/dev/null` in 4174 *@@@%%%=?*=@@@%%%*) 4175 eval ac_cv_prog_make_${ac_make}_set=yes;; 4176 *) 4177 eval ac_cv_prog_make_${ac_make}_set=no;; 4178esac 4179rm -f conftest.make 4180fi 4181if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4183$as_echo "yes" >&6; } 4184 SET_MAKE= 4185else 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4187$as_echo "no" >&6; } 4188 SET_MAKE="MAKE=${MAKE-make}" 4189fi 4190 4191rm -rf .tst 2>/dev/null 4192mkdir .tst 2>/dev/null 4193if test -d .tst; then 4194 am__leading_dot=. 4195else 4196 am__leading_dot=_ 4197fi 4198rmdir .tst 2>/dev/null 4199 4200DEPDIR="${am__leading_dot}deps" 4201 4202ac_config_commands="$ac_config_commands depfiles" 4203 4204 4205am_make=${MAKE-make} 4206cat > confinc << 'END' 4207am__doit: 4208 @echo this is the am__doit target 4209.PHONY: am__doit 4210END 4211# If we don't find an include directive, just comment out the code. 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4213$as_echo_n "checking for style of include used by $am_make... " >&6; } 4214am__include="#" 4215am__quote= 4216_am_result=none 4217# First try GNU make style include. 4218echo "include confinc" > confmf 4219# Ignore all kinds of additional output from `make'. 4220case `$am_make -s -f confmf 2> /dev/null` in #( 4221*the\ am__doit\ target*) 4222 am__include=include 4223 am__quote= 4224 _am_result=GNU 4225 ;; 4226esac 4227# Now try BSD make style include. 4228if test "$am__include" = "#"; then 4229 echo '.include "confinc"' > confmf 4230 case `$am_make -s -f confmf 2> /dev/null` in #( 4231 *the\ am__doit\ target*) 4232 am__include=.include 4233 am__quote="\"" 4234 _am_result=BSD 4235 ;; 4236 esac 4237fi 4238 4239 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4241$as_echo "$_am_result" >&6; } 4242rm -f confinc confmf 4243 4244# Check whether --enable-dependency-tracking was given. 4245if test "${enable_dependency_tracking+set}" = set; then : 4246 enableval=$enable_dependency_tracking; 4247fi 4248 4249if test "x$enable_dependency_tracking" != xno; then 4250 am_depcomp="$ac_aux_dir/depcomp" 4251 AMDEPBACKSLASH='\' 4252fi 4253 if test "x$enable_dependency_tracking" != xno; then 4254 AMDEP_TRUE= 4255 AMDEP_FALSE='#' 4256else 4257 AMDEP_TRUE='#' 4258 AMDEP_FALSE= 4259fi 4260 4261 4262if test "`cd $srcdir && pwd`" != "`pwd`"; then 4263 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4264 # is not polluted with repeated "-I." 4265 am__isrc=' -I$(srcdir)' 4266 # test to see if srcdir already configured 4267 if test -f $srcdir/config.status; then 4268 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4269 fi 4270fi 4271 4272# test whether we have cygpath 4273if test -z "$CYGPATH_W"; then 4274 if (cygpath --version) >/dev/null 2>/dev/null; then 4275 CYGPATH_W='cygpath -w' 4276 else 4277 CYGPATH_W=echo 4278 fi 4279fi 4280 4281 4282# Define the identity of the package. 4283 PACKAGE='libcc1' 4284 VERSION='version-unused' 4285 4286 4287# Some tools Automake needs. 4288 4289ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4290 4291 4292AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4293 4294 4295AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4296 4297 4298AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4299 4300 4301MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4302 4303# We need awk for the "check" target. The system "awk" is bad on 4304# some platforms. 4305# Always define AMTAR for backward compatibility. 4306 4307AMTAR=${AMTAR-"${am_missing_run}tar"} 4308 4309am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4310 4311 4312 4313 4314depcc="$CC" am_compiler_list= 4315 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4317$as_echo_n "checking dependency style of $depcc... " >&6; } 4318if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4319 $as_echo_n "(cached) " >&6 4320else 4321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4322 # We make a subdir and do the tests there. Otherwise we can end up 4323 # making bogus files that we don't know about and never remove. For 4324 # instance it was reported that on HP-UX the gcc test will end up 4325 # making a dummy file named `D' -- because `-MD' means `put the output 4326 # in D'. 4327 mkdir conftest.dir 4328 # Copy depcomp to subdir because otherwise we won't find it if we're 4329 # using a relative directory. 4330 cp "$am_depcomp" conftest.dir 4331 cd conftest.dir 4332 # We will build objects and dependencies in a subdirectory because 4333 # it helps to detect inapplicable dependency modes. For instance 4334 # both Tru64's cc and ICC support -MD to output dependencies as a 4335 # side effect of compilation, but ICC will put the dependencies in 4336 # the current directory while Tru64 will put them in the object 4337 # directory. 4338 mkdir sub 4339 4340 am_cv_CC_dependencies_compiler_type=none 4341 if test "$am_compiler_list" = ""; then 4342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4343 fi 4344 am__universal=false 4345 case " $depcc " in #( 4346 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4347 esac 4348 4349 for depmode in $am_compiler_list; do 4350 # Setup a source with many dependencies, because some compilers 4351 # like to wrap large dependency lists on column 80 (with \), and 4352 # we should not choose a depcomp mode which is confused by this. 4353 # 4354 # We need to recreate these files for each test, as the compiler may 4355 # overwrite some of them when testing with obscure command lines. 4356 # This happens at least with the AIX C compiler. 4357 : > sub/conftest.c 4358 for i in 1 2 3 4 5 6; do 4359 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4360 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4361 # Solaris 8's {/usr,}/bin/sh. 4362 touch sub/conftst$i.h 4363 done 4364 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4365 4366 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4367 # mode. It turns out that the SunPro C++ compiler does not properly 4368 # handle `-M -o', and we need to detect this. Also, some Intel 4369 # versions had trouble with output in subdirs 4370 am__obj=sub/conftest.${OBJEXT-o} 4371 am__minus_obj="-o $am__obj" 4372 case $depmode in 4373 gcc) 4374 # This depmode causes a compiler race in universal mode. 4375 test "$am__universal" = false || continue 4376 ;; 4377 nosideeffect) 4378 # after this tag, mechanisms are not by side-effect, so they'll 4379 # only be used when explicitly requested 4380 if test "x$enable_dependency_tracking" = xyes; then 4381 continue 4382 else 4383 break 4384 fi 4385 ;; 4386 msvisualcpp | msvcmsys) 4387 # This compiler won't grok `-c -o', but also, the minuso test has 4388 # not run yet. These depmodes are late enough in the game, and 4389 # so weak that their functioning should not be impacted. 4390 am__obj=conftest.${OBJEXT-o} 4391 am__minus_obj= 4392 ;; 4393 none) break ;; 4394 esac 4395 if depmode=$depmode \ 4396 source=sub/conftest.c object=$am__obj \ 4397 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4398 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4399 >/dev/null 2>conftest.err && 4400 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4401 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4402 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4403 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4404 # icc doesn't choke on unknown options, it will just issue warnings 4405 # or remarks (even with -Werror). So we grep stderr for any message 4406 # that says an option was ignored or not supported. 4407 # When given -MP, icc 7.0 and 7.1 complain thusly: 4408 # icc: Command line warning: ignoring option '-M'; no argument required 4409 # The diagnosis changed in icc 8.0: 4410 # icc: Command line remark: option '-MP' not supported 4411 if (grep 'ignoring option' conftest.err || 4412 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4413 am_cv_CC_dependencies_compiler_type=$depmode 4414 break 4415 fi 4416 fi 4417 done 4418 4419 cd .. 4420 rm -rf conftest.dir 4421else 4422 am_cv_CC_dependencies_compiler_type=none 4423fi 4424 4425fi 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4427$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4428CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4429 4430 if 4431 test "x$enable_dependency_tracking" != xno \ 4432 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4433 am__fastdepCC_TRUE= 4434 am__fastdepCC_FALSE='#' 4435else 4436 am__fastdepCC_TRUE='#' 4437 am__fastdepCC_FALSE= 4438fi 4439 4440 4441 4442 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4444$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4445 # Check whether --enable-maintainer-mode was given. 4446if test "${enable_maintainer_mode+set}" = set; then : 4447 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4448else 4449 USE_MAINTAINER_MODE=no 4450fi 4451 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4453$as_echo "$USE_MAINTAINER_MODE" >&6; } 4454 if test $USE_MAINTAINER_MODE = yes; then 4455 MAINTAINER_MODE_TRUE= 4456 MAINTAINER_MODE_FALSE='#' 4457else 4458 MAINTAINER_MODE_TRUE='#' 4459 MAINTAINER_MODE_FALSE= 4460fi 4461 4462 MAINT=$MAINTAINER_MODE_TRUE 4463 4464 4465 4466case `pwd` in 4467 *\ * | *\ *) 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4469$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4470esac 4471 4472 4473 4474macro_version='2.2.7a' 4475macro_revision='1.3134' 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489ltmain="$ac_aux_dir/ltmain.sh" 4490 4491# Backslashify metacharacters that are still active within 4492# double-quoted strings. 4493sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4494 4495# Same as above, but do not quote variable references. 4496double_quote_subst='s/\(["`\\]\)/\\\1/g' 4497 4498# Sed substitution to delay expansion of an escaped shell variable in a 4499# double_quote_subst'ed string. 4500delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4501 4502# Sed substitution to delay expansion of an escaped single quote. 4503delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4504 4505# Sed substitution to avoid accidental globbing in evaled expressions 4506no_glob_subst='s/\*/\\\*/g' 4507 4508ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4509ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4510ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4511 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4513$as_echo_n "checking how to print strings... " >&6; } 4514# Test print first, because it will be a builtin if present. 4515if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4516 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4517 ECHO='print -r --' 4518elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4519 ECHO='printf %s\n' 4520else 4521 # Use this function as a fallback that always works. 4522 func_fallback_echo () 4523 { 4524 eval 'cat <<_LTECHO_EOF 4525$1 4526_LTECHO_EOF' 4527 } 4528 ECHO='func_fallback_echo' 4529fi 4530 4531# func_echo_all arg... 4532# Invoke $ECHO with all args, space-separated. 4533func_echo_all () 4534{ 4535 $ECHO "" 4536} 4537 4538case "$ECHO" in 4539 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4540$as_echo "printf" >&6; } ;; 4541 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4542$as_echo "print -r" >&6; } ;; 4543 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4544$as_echo "cat" >&6; } ;; 4545esac 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4561$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4562if test "${ac_cv_path_SED+set}" = set; then : 4563 $as_echo_n "(cached) " >&6 4564else 4565 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4566 for ac_i in 1 2 3 4 5 6 7; do 4567 ac_script="$ac_script$as_nl$ac_script" 4568 done 4569 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4570 { ac_script=; unset ac_script;} 4571 if test -z "$SED"; then 4572 ac_path_SED_found=false 4573 # Loop through the user's path and test for each of PROGNAME-LIST 4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4575for as_dir in $PATH 4576do 4577 IFS=$as_save_IFS 4578 test -z "$as_dir" && as_dir=. 4579 for ac_prog in sed gsed; do 4580 for ac_exec_ext in '' $ac_executable_extensions; do 4581 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4582 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4583# Check for GNU ac_path_SED and select it if it is found. 4584 # Check for GNU $ac_path_SED 4585case `"$ac_path_SED" --version 2>&1` in 4586*GNU*) 4587 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4588*) 4589 ac_count=0 4590 $as_echo_n 0123456789 >"conftest.in" 4591 while : 4592 do 4593 cat "conftest.in" "conftest.in" >"conftest.tmp" 4594 mv "conftest.tmp" "conftest.in" 4595 cp "conftest.in" "conftest.nl" 4596 $as_echo '' >> "conftest.nl" 4597 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4599 as_fn_arith $ac_count + 1 && ac_count=$as_val 4600 if test $ac_count -gt ${ac_path_SED_max-0}; then 4601 # Best one so far, save it but keep looking for a better one 4602 ac_cv_path_SED="$ac_path_SED" 4603 ac_path_SED_max=$ac_count 4604 fi 4605 # 10*(2^10) chars as input seems more than enough 4606 test $ac_count -gt 10 && break 4607 done 4608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4609esac 4610 4611 $ac_path_SED_found && break 3 4612 done 4613 done 4614 done 4615IFS=$as_save_IFS 4616 if test -z "$ac_cv_path_SED"; then 4617 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4618 fi 4619else 4620 ac_cv_path_SED=$SED 4621fi 4622 4623fi 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4625$as_echo "$ac_cv_path_SED" >&6; } 4626 SED="$ac_cv_path_SED" 4627 rm -f conftest.sed 4628 4629test -z "$SED" && SED=sed 4630Xsed="$SED -e 1s/^X//" 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4643$as_echo_n "checking for fgrep... " >&6; } 4644if test "${ac_cv_path_FGREP+set}" = set; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4648 then ac_cv_path_FGREP="$GREP -F" 4649 else 4650 if test -z "$FGREP"; then 4651 ac_path_FGREP_found=false 4652 # Loop through the user's path and test for each of PROGNAME-LIST 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4655do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_prog in fgrep; do 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4661 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4662# Check for GNU ac_path_FGREP and select it if it is found. 4663 # Check for GNU $ac_path_FGREP 4664case `"$ac_path_FGREP" --version 2>&1` in 4665*GNU*) 4666 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4667*) 4668 ac_count=0 4669 $as_echo_n 0123456789 >"conftest.in" 4670 while : 4671 do 4672 cat "conftest.in" "conftest.in" >"conftest.tmp" 4673 mv "conftest.tmp" "conftest.in" 4674 cp "conftest.in" "conftest.nl" 4675 $as_echo 'FGREP' >> "conftest.nl" 4676 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4678 as_fn_arith $ac_count + 1 && ac_count=$as_val 4679 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4680 # Best one so far, save it but keep looking for a better one 4681 ac_cv_path_FGREP="$ac_path_FGREP" 4682 ac_path_FGREP_max=$ac_count 4683 fi 4684 # 10*(2^10) chars as input seems more than enough 4685 test $ac_count -gt 10 && break 4686 done 4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4688esac 4689 4690 $ac_path_FGREP_found && break 3 4691 done 4692 done 4693 done 4694IFS=$as_save_IFS 4695 if test -z "$ac_cv_path_FGREP"; then 4696 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4697 fi 4698else 4699 ac_cv_path_FGREP=$FGREP 4700fi 4701 4702 fi 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4705$as_echo "$ac_cv_path_FGREP" >&6; } 4706 FGREP="$ac_cv_path_FGREP" 4707 4708 4709test -z "$GREP" && GREP=grep 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729# Check whether --with-gnu-ld was given. 4730if test "${with_gnu_ld+set}" = set; then : 4731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4732else 4733 with_gnu_ld=no 4734fi 4735 4736ac_prog=ld 4737if test "$GCC" = yes; then 4738 # Check if gcc -print-prog-name=ld gives a path. 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4740$as_echo_n "checking for ld used by $CC... " >&6; } 4741 case $host in 4742 *-*-mingw*) 4743 # gcc leaves a trailing carriage return which upsets mingw 4744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4745 *) 4746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4747 esac 4748 case $ac_prog in 4749 # Accept absolute paths. 4750 [\\/]* | ?:[\\/]*) 4751 re_direlt='/[^/][^/]*/\.\./' 4752 # Canonicalize the pathname of ld 4753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4756 done 4757 test -z "$LD" && LD="$ac_prog" 4758 ;; 4759 "") 4760 # If it fails, then pretend we aren't using GCC. 4761 ac_prog=ld 4762 ;; 4763 *) 4764 # If it is relative, then search for the first ld in PATH. 4765 with_gnu_ld=unknown 4766 ;; 4767 esac 4768elif test "$with_gnu_ld" = yes; then 4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4770$as_echo_n "checking for GNU ld... " >&6; } 4771else 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4773$as_echo_n "checking for non-GNU ld... " >&6; } 4774fi 4775if test "${lt_cv_path_LD+set}" = set; then : 4776 $as_echo_n "(cached) " >&6 4777else 4778 if test -z "$LD"; then 4779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4780 for ac_dir in $PATH; do 4781 IFS="$lt_save_ifs" 4782 test -z "$ac_dir" && ac_dir=. 4783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4784 lt_cv_path_LD="$ac_dir/$ac_prog" 4785 # Check to see if the program is GNU ld. I'd rather use --version, 4786 # but apparently some variants of GNU ld only accept -v. 4787 # Break only if it was the GNU/non-GNU ld that we prefer. 4788 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4789 *GNU* | *'with BFD'*) 4790 test "$with_gnu_ld" != no && break 4791 ;; 4792 *) 4793 test "$with_gnu_ld" != yes && break 4794 ;; 4795 esac 4796 fi 4797 done 4798 IFS="$lt_save_ifs" 4799else 4800 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4801fi 4802fi 4803 4804LD="$lt_cv_path_LD" 4805if test -n "$LD"; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4807$as_echo "$LD" >&6; } 4808else 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810$as_echo "no" >&6; } 4811fi 4812test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4814$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4815if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4816 $as_echo_n "(cached) " >&6 4817else 4818 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4819case `$LD -v 2>&1 </dev/null` in 4820*GNU* | *'with BFD'*) 4821 lt_cv_prog_gnu_ld=yes 4822 ;; 4823*) 4824 lt_cv_prog_gnu_ld=no 4825 ;; 4826esac 4827fi 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4829$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4830with_gnu_ld=$lt_cv_prog_gnu_ld 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4841$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4842if test "${lt_cv_path_NM+set}" = set; then : 4843 $as_echo_n "(cached) " >&6 4844else 4845 if test -n "$NM"; then 4846 # Let the user override the test. 4847 lt_cv_path_NM="$NM" 4848else 4849 lt_nm_to_check="${ac_tool_prefix}nm" 4850 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4851 lt_nm_to_check="$lt_nm_to_check nm" 4852 fi 4853 for lt_tmp_nm in $lt_nm_to_check; do 4854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4855 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4856 IFS="$lt_save_ifs" 4857 test -z "$ac_dir" && ac_dir=. 4858 tmp_nm="$ac_dir/$lt_tmp_nm" 4859 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4860 # Check to see if the nm accepts a BSD-compat flag. 4861 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4862 # nm: unknown option "B" ignored 4863 # Tru64's nm complains that /dev/null is an invalid object file 4864 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4865 */dev/null* | *'Invalid file or object type'*) 4866 lt_cv_path_NM="$tmp_nm -B" 4867 break 4868 ;; 4869 *) 4870 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4871 */dev/null*) 4872 lt_cv_path_NM="$tmp_nm -p" 4873 break 4874 ;; 4875 *) 4876 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4877 continue # so that we can try to find one that supports BSD flags 4878 ;; 4879 esac 4880 ;; 4881 esac 4882 fi 4883 done 4884 IFS="$lt_save_ifs" 4885 done 4886 : ${lt_cv_path_NM=no} 4887fi 4888fi 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4890$as_echo "$lt_cv_path_NM" >&6; } 4891if test "$lt_cv_path_NM" != "no"; then 4892 NM="$lt_cv_path_NM" 4893else 4894 # Didn't find any BSD compatible name lister, look for dumpbin. 4895 if test -n "$DUMPBIN"; then : 4896 # Let the user override the test. 4897 else 4898 if test -n "$ac_tool_prefix"; then 4899 for ac_prog in dumpbin "link -dump" 4900 do 4901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4902set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4904$as_echo_n "checking for $ac_word... " >&6; } 4905if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4906 $as_echo_n "(cached) " >&6 4907else 4908 if test -n "$DUMPBIN"; then 4909 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4910else 4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4912for as_dir in $PATH 4913do 4914 IFS=$as_save_IFS 4915 test -z "$as_dir" && as_dir=. 4916 for ac_exec_ext in '' $ac_executable_extensions; do 4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4918 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4920 break 2 4921 fi 4922done 4923 done 4924IFS=$as_save_IFS 4925 4926fi 4927fi 4928DUMPBIN=$ac_cv_prog_DUMPBIN 4929if test -n "$DUMPBIN"; then 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4931$as_echo "$DUMPBIN" >&6; } 4932else 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4934$as_echo "no" >&6; } 4935fi 4936 4937 4938 test -n "$DUMPBIN" && break 4939 done 4940fi 4941if test -z "$DUMPBIN"; then 4942 ac_ct_DUMPBIN=$DUMPBIN 4943 for ac_prog in dumpbin "link -dump" 4944do 4945 # Extract the first word of "$ac_prog", so it can be a program name with args. 4946set dummy $ac_prog; ac_word=$2 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4948$as_echo_n "checking for $ac_word... " >&6; } 4949if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4950 $as_echo_n "(cached) " >&6 4951else 4952 if test -n "$ac_ct_DUMPBIN"; then 4953 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4954else 4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4956for as_dir in $PATH 4957do 4958 IFS=$as_save_IFS 4959 test -z "$as_dir" && as_dir=. 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4962 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4964 break 2 4965 fi 4966done 4967 done 4968IFS=$as_save_IFS 4969 4970fi 4971fi 4972ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4973if test -n "$ac_ct_DUMPBIN"; then 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4975$as_echo "$ac_ct_DUMPBIN" >&6; } 4976else 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978$as_echo "no" >&6; } 4979fi 4980 4981 4982 test -n "$ac_ct_DUMPBIN" && break 4983done 4984 4985 if test "x$ac_ct_DUMPBIN" = x; then 4986 DUMPBIN=":" 4987 else 4988 case $cross_compiling:$ac_tool_warned in 4989yes:) 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4992ac_tool_warned=yes ;; 4993esac 4994 DUMPBIN=$ac_ct_DUMPBIN 4995 fi 4996fi 4997 4998 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4999 *COFF*) 5000 DUMPBIN="$DUMPBIN -symbols" 5001 ;; 5002 *) 5003 DUMPBIN=: 5004 ;; 5005 esac 5006 fi 5007 5008 if test "$DUMPBIN" != ":"; then 5009 NM="$DUMPBIN" 5010 fi 5011fi 5012test -z "$NM" && NM=nm 5013 5014 5015 5016 5017 5018 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5020$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5021if test "${lt_cv_nm_interface+set}" = set; then : 5022 $as_echo_n "(cached) " >&6 5023else 5024 lt_cv_nm_interface="BSD nm" 5025 echo "int some_variable = 0;" > conftest.$ac_ext 5026 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5027 (eval "$ac_compile" 2>conftest.err) 5028 cat conftest.err >&5 5029 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5030 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5031 cat conftest.err >&5 5032 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5033 cat conftest.out >&5 5034 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5035 lt_cv_nm_interface="MS dumpbin" 5036 fi 5037 rm -f conftest* 5038fi 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5040$as_echo "$lt_cv_nm_interface" >&6; } 5041 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5043$as_echo_n "checking whether ln -s works... " >&6; } 5044LN_S=$as_ln_s 5045if test "$LN_S" = "ln -s"; then 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5047$as_echo "yes" >&6; } 5048else 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5050$as_echo "no, using $LN_S" >&6; } 5051fi 5052 5053# find the maximum length of command line arguments 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5055$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5056if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5057 $as_echo_n "(cached) " >&6 5058else 5059 i=0 5060 teststring="ABCD" 5061 5062 case $build_os in 5063 msdosdjgpp*) 5064 # On DJGPP, this test can blow up pretty badly due to problems in libc 5065 # (any single argument exceeding 2000 bytes causes a buffer overrun 5066 # during glob expansion). Even if it were fixed, the result of this 5067 # check would be larger than it should be. 5068 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5069 ;; 5070 5071 gnu*) 5072 # Under GNU Hurd, this test is not required because there is 5073 # no limit to the length of command line arguments. 5074 # Libtool will interpret -1 as no limit whatsoever 5075 lt_cv_sys_max_cmd_len=-1; 5076 ;; 5077 5078 cygwin* | mingw* | cegcc*) 5079 # On Win9x/ME, this test blows up -- it succeeds, but takes 5080 # about 5 minutes as the teststring grows exponentially. 5081 # Worse, since 9x/ME are not pre-emptively multitasking, 5082 # you end up with a "frozen" computer, even though with patience 5083 # the test eventually succeeds (with a max line length of 256k). 5084 # Instead, let's just punt: use the minimum linelength reported by 5085 # all of the supported platforms: 8192 (on NT/2K/XP). 5086 lt_cv_sys_max_cmd_len=8192; 5087 ;; 5088 5089 mint*) 5090 # On MiNT this can take a long time and run out of memory. 5091 lt_cv_sys_max_cmd_len=8192; 5092 ;; 5093 5094 amigaos*) 5095 # On AmigaOS with pdksh, this test takes hours, literally. 5096 # So we just punt and use a minimum line length of 8192. 5097 lt_cv_sys_max_cmd_len=8192; 5098 ;; 5099 5100 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5101 # This has been around since 386BSD, at least. Likely further. 5102 if test -x /sbin/sysctl; then 5103 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5104 elif test -x /usr/sbin/sysctl; then 5105 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5106 else 5107 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5108 fi 5109 # And add a safety zone 5110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5112 ;; 5113 5114 interix*) 5115 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5116 lt_cv_sys_max_cmd_len=196608 5117 ;; 5118 5119 osf*) 5120 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5121 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5122 # nice to cause kernel panics so lets avoid the loop below. 5123 # First set a reasonable default. 5124 lt_cv_sys_max_cmd_len=16384 5125 # 5126 if test -x /sbin/sysconfig; then 5127 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5128 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5129 esac 5130 fi 5131 ;; 5132 sco3.2v5*) 5133 lt_cv_sys_max_cmd_len=102400 5134 ;; 5135 sysv5* | sco5v6* | sysv4.2uw2*) 5136 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5137 if test -n "$kargmax"; then 5138 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5139 else 5140 lt_cv_sys_max_cmd_len=32768 5141 fi 5142 ;; 5143 *) 5144 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5145 if test -n "$lt_cv_sys_max_cmd_len"; then 5146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5148 else 5149 # Make teststring a little bigger before we do anything with it. 5150 # a 1K string should be a reasonable start. 5151 for i in 1 2 3 4 5 6 7 8 ; do 5152 teststring=$teststring$teststring 5153 done 5154 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5155 # If test is not a shell built-in, we'll probably end up computing a 5156 # maximum length that is only half of the actual maximum length, but 5157 # we can't tell. 5158 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5159 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5160 test $i != 17 # 1/2 MB should be enough 5161 do 5162 i=`expr $i + 1` 5163 teststring=$teststring$teststring 5164 done 5165 # Only check the string length outside the loop. 5166 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5167 teststring= 5168 # Add a significant safety factor because C++ compilers can tack on 5169 # massive amounts of additional arguments before passing them to the 5170 # linker. It appears as though 1/2 is a usable value. 5171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5172 fi 5173 ;; 5174 esac 5175 5176fi 5177 5178if test -n $lt_cv_sys_max_cmd_len ; then 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5180$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5181else 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5183$as_echo "none" >&6; } 5184fi 5185max_cmd_len=$lt_cv_sys_max_cmd_len 5186 5187 5188 5189 5190 5191 5192: ${CP="cp -f"} 5193: ${MV="mv -f"} 5194: ${RM="rm -f"} 5195 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5197$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5198# Try some XSI features 5199xsi_shell=no 5200( _lt_dummy="a/b/c" 5201 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5202 = c,a/b,, \ 5203 && eval 'test $(( 1 + 1 )) -eq 2 \ 5204 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5205 && xsi_shell=yes 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5207$as_echo "$xsi_shell" >&6; } 5208 5209 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5211$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5212lt_shell_append=no 5213( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5214 >/dev/null 2>&1 \ 5215 && lt_shell_append=yes 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5217$as_echo "$lt_shell_append" >&6; } 5218 5219 5220if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5221 lt_unset=unset 5222else 5223 lt_unset=false 5224fi 5225 5226 5227 5228 5229 5230# test EBCDIC or ASCII 5231case `echo X|tr X '\101'` in 5232 A) # ASCII based system 5233 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5234 lt_SP2NL='tr \040 \012' 5235 lt_NL2SP='tr \015\012 \040\040' 5236 ;; 5237 *) # EBCDIC based system 5238 lt_SP2NL='tr \100 \n' 5239 lt_NL2SP='tr \r\n \100\100' 5240 ;; 5241esac 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5252$as_echo_n "checking for $LD option to reload object files... " >&6; } 5253if test "${lt_cv_ld_reload_flag+set}" = set; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 lt_cv_ld_reload_flag='-r' 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5259$as_echo "$lt_cv_ld_reload_flag" >&6; } 5260reload_flag=$lt_cv_ld_reload_flag 5261case $reload_flag in 5262"" | " "*) ;; 5263*) reload_flag=" $reload_flag" ;; 5264esac 5265reload_cmds='$LD$reload_flag -o $output$reload_objs' 5266case $host_os in 5267 darwin*) 5268 if test "$GCC" = yes; then 5269 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5270 else 5271 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5272 fi 5273 ;; 5274esac 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284if test -n "$ac_tool_prefix"; then 5285 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5286set dummy ${ac_tool_prefix}objdump; ac_word=$2 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5288$as_echo_n "checking for $ac_word... " >&6; } 5289if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5290 $as_echo_n "(cached) " >&6 5291else 5292 if test -n "$OBJDUMP"; then 5293 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5294else 5295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5296for as_dir in $PATH 5297do 5298 IFS=$as_save_IFS 5299 test -z "$as_dir" && as_dir=. 5300 for ac_exec_ext in '' $ac_executable_extensions; do 5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5302 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5304 break 2 5305 fi 5306done 5307 done 5308IFS=$as_save_IFS 5309 5310fi 5311fi 5312OBJDUMP=$ac_cv_prog_OBJDUMP 5313if test -n "$OBJDUMP"; then 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5315$as_echo "$OBJDUMP" >&6; } 5316else 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5318$as_echo "no" >&6; } 5319fi 5320 5321 5322fi 5323if test -z "$ac_cv_prog_OBJDUMP"; then 5324 ac_ct_OBJDUMP=$OBJDUMP 5325 # Extract the first word of "objdump", so it can be a program name with args. 5326set dummy objdump; ac_word=$2 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5328$as_echo_n "checking for $ac_word... " >&6; } 5329if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 if test -n "$ac_ct_OBJDUMP"; then 5333 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5334else 5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5336for as_dir in $PATH 5337do 5338 IFS=$as_save_IFS 5339 test -z "$as_dir" && as_dir=. 5340 for ac_exec_ext in '' $ac_executable_extensions; do 5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5342 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5344 break 2 5345 fi 5346done 5347 done 5348IFS=$as_save_IFS 5349 5350fi 5351fi 5352ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5353if test -n "$ac_ct_OBJDUMP"; then 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5355$as_echo "$ac_ct_OBJDUMP" >&6; } 5356else 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5358$as_echo "no" >&6; } 5359fi 5360 5361 if test "x$ac_ct_OBJDUMP" = x; then 5362 OBJDUMP="false" 5363 else 5364 case $cross_compiling:$ac_tool_warned in 5365yes:) 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5368ac_tool_warned=yes ;; 5369esac 5370 OBJDUMP=$ac_ct_OBJDUMP 5371 fi 5372else 5373 OBJDUMP="$ac_cv_prog_OBJDUMP" 5374fi 5375 5376test -z "$OBJDUMP" && OBJDUMP=objdump 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5387$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5388if test "${lt_cv_deplibs_check_method+set}" = set; then : 5389 $as_echo_n "(cached) " >&6 5390else 5391 lt_cv_file_magic_cmd='$MAGIC_CMD' 5392lt_cv_file_magic_test_file= 5393lt_cv_deplibs_check_method='unknown' 5394# Need to set the preceding variable on all platforms that support 5395# interlibrary dependencies. 5396# 'none' -- dependencies not supported. 5397# `unknown' -- same as none, but documents that we really don't know. 5398# 'pass_all' -- all dependencies passed with no checks. 5399# 'test_compile' -- check by making test program. 5400# 'file_magic [[regex]]' -- check by looking for files in library path 5401# which responds to the $file_magic_cmd with a given extended regex. 5402# If you have `file' or equivalent on your system and you're not sure 5403# whether `pass_all' will *always* work, you probably want this one. 5404 5405case $host_os in 5406aix[4-9]*) 5407 lt_cv_deplibs_check_method=pass_all 5408 ;; 5409 5410beos*) 5411 lt_cv_deplibs_check_method=pass_all 5412 ;; 5413 5414bsdi[45]*) 5415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5416 lt_cv_file_magic_cmd='/usr/bin/file -L' 5417 lt_cv_file_magic_test_file=/shlib/libc.so 5418 ;; 5419 5420cygwin*) 5421 # func_win32_libid is a shell function defined in ltmain.sh 5422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5423 lt_cv_file_magic_cmd='func_win32_libid' 5424 ;; 5425 5426mingw* | pw32*) 5427 # Base MSYS/MinGW do not provide the 'file' command needed by 5428 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5429 # unless we find 'file', for example because we are cross-compiling. 5430 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5431 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5432 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5433 lt_cv_file_magic_cmd='func_win32_libid' 5434 else 5435 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5436 lt_cv_file_magic_cmd='$OBJDUMP -f' 5437 fi 5438 ;; 5439 5440cegcc*) 5441 # use the weaker test based on 'objdump'. See mingw*. 5442 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5443 lt_cv_file_magic_cmd='$OBJDUMP -f' 5444 ;; 5445 5446darwin* | rhapsody*) 5447 lt_cv_deplibs_check_method=pass_all 5448 ;; 5449 5450freebsd* | dragonfly*) 5451 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5452 case $host_cpu in 5453 i*86 ) 5454 # Not sure whether the presence of OpenBSD here was a mistake. 5455 # Let's accept both of them until this is cleared up. 5456 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5457 lt_cv_file_magic_cmd=/usr/bin/file 5458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5459 ;; 5460 esac 5461 else 5462 lt_cv_deplibs_check_method=pass_all 5463 fi 5464 ;; 5465 5466gnu*) 5467 lt_cv_deplibs_check_method=pass_all 5468 ;; 5469 5470haiku*) 5471 lt_cv_deplibs_check_method=pass_all 5472 ;; 5473 5474hpux10.20* | hpux11*) 5475 lt_cv_file_magic_cmd=/usr/bin/file 5476 case $host_cpu in 5477 ia64*) 5478 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5479 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5480 ;; 5481 hppa*64*) 5482 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]' 5483 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5484 ;; 5485 *) 5486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5487 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5488 ;; 5489 esac 5490 ;; 5491 5492interix[3-9]*) 5493 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5495 ;; 5496 5497irix5* | irix6* | nonstopux*) 5498 case $LD in 5499 *-32|*"-32 ") libmagic=32-bit;; 5500 *-n32|*"-n32 ") libmagic=N32;; 5501 *-64|*"-64 ") libmagic=64-bit;; 5502 *) libmagic=never-match;; 5503 esac 5504 lt_cv_deplibs_check_method=pass_all 5505 ;; 5506 5507# This must be Linux ELF. 5508linux* | k*bsd*-gnu | kopensolaris*-gnu) 5509 lt_cv_deplibs_check_method=pass_all 5510 ;; 5511 5512netbsd*) 5513 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5515 else 5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5517 fi 5518 ;; 5519 5520newos6*) 5521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5522 lt_cv_file_magic_cmd=/usr/bin/file 5523 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5524 ;; 5525 5526*nto* | *qnx*) 5527 lt_cv_deplibs_check_method=pass_all 5528 ;; 5529 5530openbsd*) 5531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5533 else 5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5535 fi 5536 ;; 5537 5538osf3* | osf4* | osf5*) 5539 lt_cv_deplibs_check_method=pass_all 5540 ;; 5541 5542rdos*) 5543 lt_cv_deplibs_check_method=pass_all 5544 ;; 5545 5546solaris*) 5547 lt_cv_deplibs_check_method=pass_all 5548 ;; 5549 5550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5551 lt_cv_deplibs_check_method=pass_all 5552 ;; 5553 5554sysv4 | sysv4.3*) 5555 case $host_vendor in 5556 motorola) 5557 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]' 5558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5559 ;; 5560 ncr) 5561 lt_cv_deplibs_check_method=pass_all 5562 ;; 5563 sequent) 5564 lt_cv_file_magic_cmd='/bin/file' 5565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5566 ;; 5567 sni) 5568 lt_cv_file_magic_cmd='/bin/file' 5569 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5570 lt_cv_file_magic_test_file=/lib/libc.so 5571 ;; 5572 siemens) 5573 lt_cv_deplibs_check_method=pass_all 5574 ;; 5575 pc) 5576 lt_cv_deplibs_check_method=pass_all 5577 ;; 5578 esac 5579 ;; 5580 5581tpf*) 5582 lt_cv_deplibs_check_method=pass_all 5583 ;; 5584esac 5585 5586fi 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5588$as_echo "$lt_cv_deplibs_check_method" >&6; } 5589file_magic_cmd=$lt_cv_file_magic_cmd 5590deplibs_check_method=$lt_cv_deplibs_check_method 5591test -z "$deplibs_check_method" && deplibs_check_method=unknown 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604if test -n "$ac_tool_prefix"; then 5605 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5606set dummy ${ac_tool_prefix}ar; ac_word=$2 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5608$as_echo_n "checking for $ac_word... " >&6; } 5609if test "${ac_cv_prog_AR+set}" = set; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 if test -n "$AR"; then 5613 ac_cv_prog_AR="$AR" # Let the user override the test. 5614else 5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5616for as_dir in $PATH 5617do 5618 IFS=$as_save_IFS 5619 test -z "$as_dir" && as_dir=. 5620 for ac_exec_ext in '' $ac_executable_extensions; do 5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5622 ac_cv_prog_AR="${ac_tool_prefix}ar" 5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5624 break 2 5625 fi 5626done 5627 done 5628IFS=$as_save_IFS 5629 5630fi 5631fi 5632AR=$ac_cv_prog_AR 5633if test -n "$AR"; then 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5635$as_echo "$AR" >&6; } 5636else 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5638$as_echo "no" >&6; } 5639fi 5640 5641 5642fi 5643if test -z "$ac_cv_prog_AR"; then 5644 ac_ct_AR=$AR 5645 # Extract the first word of "ar", so it can be a program name with args. 5646set dummy ar; ac_word=$2 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5648$as_echo_n "checking for $ac_word... " >&6; } 5649if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5650 $as_echo_n "(cached) " >&6 5651else 5652 if test -n "$ac_ct_AR"; then 5653 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5654else 5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5656for as_dir in $PATH 5657do 5658 IFS=$as_save_IFS 5659 test -z "$as_dir" && as_dir=. 5660 for ac_exec_ext in '' $ac_executable_extensions; do 5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5662 ac_cv_prog_ac_ct_AR="ar" 5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5664 break 2 5665 fi 5666done 5667 done 5668IFS=$as_save_IFS 5669 5670fi 5671fi 5672ac_ct_AR=$ac_cv_prog_ac_ct_AR 5673if test -n "$ac_ct_AR"; then 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5675$as_echo "$ac_ct_AR" >&6; } 5676else 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5678$as_echo "no" >&6; } 5679fi 5680 5681 if test "x$ac_ct_AR" = x; then 5682 AR="false" 5683 else 5684 case $cross_compiling:$ac_tool_warned in 5685yes:) 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5688ac_tool_warned=yes ;; 5689esac 5690 AR=$ac_ct_AR 5691 fi 5692else 5693 AR="$ac_cv_prog_AR" 5694fi 5695 5696test -z "$AR" && AR=ar 5697test -z "$AR_FLAGS" && AR_FLAGS=cru 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709if test -n "$ac_tool_prefix"; then 5710 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5711set dummy ${ac_tool_prefix}strip; ac_word=$2 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5713$as_echo_n "checking for $ac_word... " >&6; } 5714if test "${ac_cv_prog_STRIP+set}" = set; then : 5715 $as_echo_n "(cached) " >&6 5716else 5717 if test -n "$STRIP"; then 5718 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5719else 5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5721for as_dir in $PATH 5722do 5723 IFS=$as_save_IFS 5724 test -z "$as_dir" && as_dir=. 5725 for ac_exec_ext in '' $ac_executable_extensions; do 5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5727 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5729 break 2 5730 fi 5731done 5732 done 5733IFS=$as_save_IFS 5734 5735fi 5736fi 5737STRIP=$ac_cv_prog_STRIP 5738if test -n "$STRIP"; then 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5740$as_echo "$STRIP" >&6; } 5741else 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5743$as_echo "no" >&6; } 5744fi 5745 5746 5747fi 5748if test -z "$ac_cv_prog_STRIP"; then 5749 ac_ct_STRIP=$STRIP 5750 # Extract the first word of "strip", so it can be a program name with args. 5751set dummy strip; ac_word=$2 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5753$as_echo_n "checking for $ac_word... " >&6; } 5754if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 if test -n "$ac_ct_STRIP"; then 5758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5759else 5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5761for as_dir in $PATH 5762do 5763 IFS=$as_save_IFS 5764 test -z "$as_dir" && as_dir=. 5765 for ac_exec_ext in '' $ac_executable_extensions; do 5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5767 ac_cv_prog_ac_ct_STRIP="strip" 5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5769 break 2 5770 fi 5771done 5772 done 5773IFS=$as_save_IFS 5774 5775fi 5776fi 5777ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5778if test -n "$ac_ct_STRIP"; then 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5780$as_echo "$ac_ct_STRIP" >&6; } 5781else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5783$as_echo "no" >&6; } 5784fi 5785 5786 if test "x$ac_ct_STRIP" = x; then 5787 STRIP=":" 5788 else 5789 case $cross_compiling:$ac_tool_warned in 5790yes:) 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5793ac_tool_warned=yes ;; 5794esac 5795 STRIP=$ac_ct_STRIP 5796 fi 5797else 5798 STRIP="$ac_cv_prog_STRIP" 5799fi 5800 5801test -z "$STRIP" && STRIP=: 5802 5803 5804 5805 5806 5807 5808if test -n "$ac_tool_prefix"; then 5809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5810set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5812$as_echo_n "checking for $ac_word... " >&6; } 5813if test "${ac_cv_prog_RANLIB+set}" = set; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 if test -n "$RANLIB"; then 5817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5818else 5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5820for as_dir in $PATH 5821do 5822 IFS=$as_save_IFS 5823 test -z "$as_dir" && as_dir=. 5824 for ac_exec_ext in '' $ac_executable_extensions; do 5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5828 break 2 5829 fi 5830done 5831 done 5832IFS=$as_save_IFS 5833 5834fi 5835fi 5836RANLIB=$ac_cv_prog_RANLIB 5837if test -n "$RANLIB"; then 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5839$as_echo "$RANLIB" >&6; } 5840else 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5842$as_echo "no" >&6; } 5843fi 5844 5845 5846fi 5847if test -z "$ac_cv_prog_RANLIB"; then 5848 ac_ct_RANLIB=$RANLIB 5849 # Extract the first word of "ranlib", so it can be a program name with args. 5850set dummy ranlib; ac_word=$2 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5852$as_echo_n "checking for $ac_word... " >&6; } 5853if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 if test -n "$ac_ct_RANLIB"; then 5857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5858else 5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5860for as_dir in $PATH 5861do 5862 IFS=$as_save_IFS 5863 test -z "$as_dir" && as_dir=. 5864 for ac_exec_ext in '' $ac_executable_extensions; do 5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5866 ac_cv_prog_ac_ct_RANLIB="ranlib" 5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5868 break 2 5869 fi 5870done 5871 done 5872IFS=$as_save_IFS 5873 5874fi 5875fi 5876ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5877if test -n "$ac_ct_RANLIB"; then 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5879$as_echo "$ac_ct_RANLIB" >&6; } 5880else 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5882$as_echo "no" >&6; } 5883fi 5884 5885 if test "x$ac_ct_RANLIB" = x; then 5886 RANLIB=":" 5887 else 5888 case $cross_compiling:$ac_tool_warned in 5889yes:) 5890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5892ac_tool_warned=yes ;; 5893esac 5894 RANLIB=$ac_ct_RANLIB 5895 fi 5896else 5897 RANLIB="$ac_cv_prog_RANLIB" 5898fi 5899 5900test -z "$RANLIB" && RANLIB=: 5901 5902 5903 5904 5905 5906 5907# Determine commands to create old-style static archives. 5908old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5909old_postinstall_cmds='chmod 644 $oldlib' 5910old_postuninstall_cmds= 5911 5912if test -n "$RANLIB"; then 5913 case $host_os in 5914 openbsd*) 5915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5916 ;; 5917 *) 5918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5919 ;; 5920 esac 5921 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5922fi 5923 5924case $host_os in 5925 darwin*) 5926 lock_old_archive_extraction=yes ;; 5927 *) 5928 lock_old_archive_extraction=no ;; 5929esac 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969# If no C compiler was specified, use CC. 5970LTCC=${LTCC-"$CC"} 5971 5972# If no C compiler flags were specified, use CFLAGS. 5973LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5974 5975# Allow CC to be a program name with arguments. 5976compiler=$CC 5977 5978 5979# Check for command to grab the raw symbol name followed by C symbol from nm. 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5981$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5982if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5983 $as_echo_n "(cached) " >&6 5984else 5985 5986# These are sane defaults that work on at least a few old systems. 5987# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5988 5989# Character class describing NM global symbol codes. 5990symcode='[BCDEGRST]' 5991 5992# Regexp to match symbols that can be accessed directly from C. 5993sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5994 5995# Define system-specific variables. 5996case $host_os in 5997aix*) 5998 symcode='[BCDT]' 5999 ;; 6000cygwin* | mingw* | pw32* | cegcc*) 6001 symcode='[ABCDGISTW]' 6002 ;; 6003hpux*) 6004 if test "$host_cpu" = ia64; then 6005 symcode='[ABCDEGRST]' 6006 fi 6007 ;; 6008irix* | nonstopux*) 6009 symcode='[BCDEGRST]' 6010 ;; 6011osf*) 6012 symcode='[BCDEGQRST]' 6013 ;; 6014solaris*) 6015 symcode='[BDRT]' 6016 ;; 6017sco3.2v5*) 6018 symcode='[DT]' 6019 ;; 6020sysv4.2uw2*) 6021 symcode='[DT]' 6022 ;; 6023sysv5* | sco5v6* | unixware* | OpenUNIX*) 6024 symcode='[ABDT]' 6025 ;; 6026sysv4) 6027 symcode='[DFNSTU]' 6028 ;; 6029esac 6030 6031# If we're using GNU nm, then use its standard symbol codes. 6032case `$NM -V 2>&1` in 6033*GNU* | *'with BFD'*) 6034 symcode='[ABCDGIRSTW]' ;; 6035esac 6036 6037# Transform an extracted symbol line into a proper C declaration. 6038# Some systems (esp. on ia64) link data and code symbols differently, 6039# so use this general approach. 6040lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6041 6042# Transform an extracted symbol line into symbol name and symbol address 6043lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6044lt_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'" 6045 6046# Handle CRLF in mingw tool chain 6047opt_cr= 6048case $build_os in 6049mingw*) 6050 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6051 ;; 6052esac 6053 6054# Try without a prefix underscore, then with it. 6055for ac_symprfx in "" "_"; do 6056 6057 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6058 symxfrm="\\1 $ac_symprfx\\2 \\2" 6059 6060 # Write the raw and C identifiers. 6061 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6062 # Fake it for dumpbin and say T for any non-static function 6063 # and D for any global variable. 6064 # Also find C++ and __fastcall symbols from MSVC++, 6065 # which start with @ or ?. 6066 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6067" {last_section=section; section=\$ 3};"\ 6068" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6069" \$ 0!~/External *\|/{next};"\ 6070" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6071" {if(hide[section]) next};"\ 6072" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6073" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6074" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6075" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6076" ' prfx=^$ac_symprfx" 6077 else 6078 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6079 fi 6080 6081 # Check to see that the pipe works correctly. 6082 pipe_works=no 6083 6084 rm -f conftest* 6085 cat > conftest.$ac_ext <<_LT_EOF 6086#ifdef __cplusplus 6087extern "C" { 6088#endif 6089char nm_test_var; 6090void nm_test_func(void); 6091void nm_test_func(void){} 6092#ifdef __cplusplus 6093} 6094#endif 6095int main(){nm_test_var='a';nm_test_func();return(0);} 6096_LT_EOF 6097 6098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6099 (eval $ac_compile) 2>&5 6100 ac_status=$? 6101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6102 test $ac_status = 0; }; then 6103 # Now try to grab the symbols. 6104 nlist=conftest.nm 6105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6106 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6107 ac_status=$? 6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6109 test $ac_status = 0; } && test -s "$nlist"; then 6110 # Try sorting and uniquifying the output. 6111 if sort "$nlist" | uniq > "$nlist"T; then 6112 mv -f "$nlist"T "$nlist" 6113 else 6114 rm -f "$nlist"T 6115 fi 6116 6117 # Make sure that we snagged all the symbols we need. 6118 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6119 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6120 cat <<_LT_EOF > conftest.$ac_ext 6121#ifdef __cplusplus 6122extern "C" { 6123#endif 6124 6125_LT_EOF 6126 # Now generate the symbol file. 6127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6128 6129 cat <<_LT_EOF >> conftest.$ac_ext 6130 6131/* The mapping between symbol names and symbols. */ 6132const struct { 6133 const char *name; 6134 void *address; 6135} 6136lt__PROGRAM__LTX_preloaded_symbols[] = 6137{ 6138 { "@PROGRAM@", (void *) 0 }, 6139_LT_EOF 6140 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6141 cat <<\_LT_EOF >> conftest.$ac_ext 6142 {0, (void *) 0} 6143}; 6144 6145/* This works around a problem in FreeBSD linker */ 6146#ifdef FREEBSD_WORKAROUND 6147static const void *lt_preloaded_setup() { 6148 return lt__PROGRAM__LTX_preloaded_symbols; 6149} 6150#endif 6151 6152#ifdef __cplusplus 6153} 6154#endif 6155_LT_EOF 6156 # Now try linking the two files. 6157 mv conftest.$ac_objext conftstm.$ac_objext 6158 lt_save_LIBS="$LIBS" 6159 lt_save_CFLAGS="$CFLAGS" 6160 LIBS="conftstm.$ac_objext" 6161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6163 (eval $ac_link) 2>&5 6164 ac_status=$? 6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6166 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6167 pipe_works=yes 6168 fi 6169 LIBS="$lt_save_LIBS" 6170 CFLAGS="$lt_save_CFLAGS" 6171 else 6172 echo "cannot find nm_test_func in $nlist" >&5 6173 fi 6174 else 6175 echo "cannot find nm_test_var in $nlist" >&5 6176 fi 6177 else 6178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6179 fi 6180 else 6181 echo "$progname: failed program was:" >&5 6182 cat conftest.$ac_ext >&5 6183 fi 6184 rm -rf conftest* conftst* 6185 6186 # Do not use the global_symbol_pipe unless it works. 6187 if test "$pipe_works" = yes; then 6188 break 6189 else 6190 lt_cv_sys_global_symbol_pipe= 6191 fi 6192done 6193 6194fi 6195 6196if test -z "$lt_cv_sys_global_symbol_pipe"; then 6197 lt_cv_sys_global_symbol_to_cdecl= 6198fi 6199if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6201$as_echo "failed" >&6; } 6202else 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6204$as_echo "ok" >&6; } 6205fi 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228# Check whether --enable-libtool-lock was given. 6229if test "${enable_libtool_lock+set}" = set; then : 6230 enableval=$enable_libtool_lock; 6231fi 6232 6233test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6234 6235# Some flags need to be propagated to the compiler or linker for good 6236# libtool support. 6237case $host in 6238ia64-*-hpux*) 6239 # Find out which ABI we are using. 6240 echo 'int i;' > conftest.$ac_ext 6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6242 (eval $ac_compile) 2>&5 6243 ac_status=$? 6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6245 test $ac_status = 0; }; then 6246 case `/usr/bin/file conftest.$ac_objext` in 6247 *ELF-32*) 6248 HPUX_IA64_MODE="32" 6249 ;; 6250 *ELF-64*) 6251 HPUX_IA64_MODE="64" 6252 ;; 6253 esac 6254 fi 6255 rm -rf conftest* 6256 ;; 6257*-*-irix6*) 6258 # Find out which ABI we are using. 6259 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6261 (eval $ac_compile) 2>&5 6262 ac_status=$? 6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6264 test $ac_status = 0; }; then 6265 if test "$lt_cv_prog_gnu_ld" = yes; then 6266 case `/usr/bin/file conftest.$ac_objext` in 6267 *32-bit*) 6268 LD="${LD-ld} -melf32bsmip" 6269 ;; 6270 *N32*) 6271 LD="${LD-ld} -melf32bmipn32" 6272 ;; 6273 *64-bit*) 6274 LD="${LD-ld} -melf64bmip" 6275 ;; 6276 esac 6277 else 6278 case `/usr/bin/file conftest.$ac_objext` in 6279 *32-bit*) 6280 LD="${LD-ld} -32" 6281 ;; 6282 *N32*) 6283 LD="${LD-ld} -n32" 6284 ;; 6285 *64-bit*) 6286 LD="${LD-ld} -64" 6287 ;; 6288 esac 6289 fi 6290 fi 6291 rm -rf conftest* 6292 ;; 6293 6294x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6295s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6296 # Find out which ABI we are using. 6297 echo 'int i;' > conftest.$ac_ext 6298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6299 (eval $ac_compile) 2>&5 6300 ac_status=$? 6301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6302 test $ac_status = 0; }; then 6303 case `/usr/bin/file conftest.o` in 6304 *32-bit*) 6305 case $host in 6306 x86_64-*kfreebsd*-gnu) 6307 LD="${LD-ld} -m elf_i386_fbsd" 6308 ;; 6309 x86_64-*linux*) 6310 case `/usr/bin/file conftest.o` in 6311 *x86-64*) 6312 LD="${LD-ld} -m elf32_x86_64" 6313 ;; 6314 *) 6315 LD="${LD-ld} -m elf_i386" 6316 ;; 6317 esac 6318 ;; 6319 powerpc64le-*linux*) 6320 LD="${LD-ld} -m elf32lppclinux" 6321 ;; 6322 powerpc64-*linux*) 6323 LD="${LD-ld} -m elf32ppclinux" 6324 ;; 6325 s390x-*linux*) 6326 LD="${LD-ld} -m elf_s390" 6327 ;; 6328 sparc64-*linux*) 6329 LD="${LD-ld} -m elf32_sparc" 6330 ;; 6331 esac 6332 ;; 6333 *64-bit*) 6334 case $host in 6335 x86_64-*kfreebsd*-gnu) 6336 LD="${LD-ld} -m elf_x86_64_fbsd" 6337 ;; 6338 x86_64-*linux*) 6339 LD="${LD-ld} -m elf_x86_64" 6340 ;; 6341 powerpcle-*linux*) 6342 LD="${LD-ld} -m elf64lppc" 6343 ;; 6344 powerpc-*linux*) 6345 LD="${LD-ld} -m elf64ppc" 6346 ;; 6347 s390*-*linux*|s390*-*tpf*) 6348 LD="${LD-ld} -m elf64_s390" 6349 ;; 6350 sparc*-*linux*) 6351 LD="${LD-ld} -m elf64_sparc" 6352 ;; 6353 esac 6354 ;; 6355 esac 6356 fi 6357 rm -rf conftest* 6358 ;; 6359 6360*-*-sco3.2v5*) 6361 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6362 SAVE_CFLAGS="$CFLAGS" 6363 CFLAGS="$CFLAGS -belf" 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6365$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6366if test "${lt_cv_cc_needs_belf+set}" = set; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 ac_ext=c 6370ac_cpp='$CPP $CPPFLAGS' 6371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6373ac_compiler_gnu=$ac_cv_c_compiler_gnu 6374 6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6376/* end confdefs.h. */ 6377 6378int 6379main () 6380{ 6381 6382 ; 6383 return 0; 6384} 6385_ACEOF 6386if ac_fn_c_try_link "$LINENO"; then : 6387 lt_cv_cc_needs_belf=yes 6388else 6389 lt_cv_cc_needs_belf=no 6390fi 6391rm -f core conftest.err conftest.$ac_objext \ 6392 conftest$ac_exeext conftest.$ac_ext 6393 ac_ext=c 6394ac_cpp='$CPP $CPPFLAGS' 6395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6397ac_compiler_gnu=$ac_cv_c_compiler_gnu 6398 6399fi 6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6401$as_echo "$lt_cv_cc_needs_belf" >&6; } 6402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6404 CFLAGS="$SAVE_CFLAGS" 6405 fi 6406 ;; 6407sparc*-*solaris*) 6408 # Find out which ABI we are using. 6409 echo 'int i;' > conftest.$ac_ext 6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6411 (eval $ac_compile) 2>&5 6412 ac_status=$? 6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6414 test $ac_status = 0; }; then 6415 case `/usr/bin/file conftest.o` in 6416 *64-bit*) 6417 case $lt_cv_prog_gnu_ld in 6418 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6419 *) 6420 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6421 LD="${LD-ld} -64" 6422 fi 6423 ;; 6424 esac 6425 ;; 6426 esac 6427 fi 6428 rm -rf conftest* 6429 ;; 6430esac 6431 6432need_locks="$enable_libtool_lock" 6433 6434 6435 case $host_os in 6436 rhapsody* | darwin*) 6437 if test -n "$ac_tool_prefix"; then 6438 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6439set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6441$as_echo_n "checking for $ac_word... " >&6; } 6442if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 if test -n "$DSYMUTIL"; then 6446 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6447else 6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6449for as_dir in $PATH 6450do 6451 IFS=$as_save_IFS 6452 test -z "$as_dir" && as_dir=. 6453 for ac_exec_ext in '' $ac_executable_extensions; do 6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6455 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6457 break 2 6458 fi 6459done 6460 done 6461IFS=$as_save_IFS 6462 6463fi 6464fi 6465DSYMUTIL=$ac_cv_prog_DSYMUTIL 6466if test -n "$DSYMUTIL"; then 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6468$as_echo "$DSYMUTIL" >&6; } 6469else 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6471$as_echo "no" >&6; } 6472fi 6473 6474 6475fi 6476if test -z "$ac_cv_prog_DSYMUTIL"; then 6477 ac_ct_DSYMUTIL=$DSYMUTIL 6478 # Extract the first word of "dsymutil", so it can be a program name with args. 6479set dummy dsymutil; ac_word=$2 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6481$as_echo_n "checking for $ac_word... " >&6; } 6482if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 if test -n "$ac_ct_DSYMUTIL"; then 6486 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6487else 6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6489for as_dir in $PATH 6490do 6491 IFS=$as_save_IFS 6492 test -z "$as_dir" && as_dir=. 6493 for ac_exec_ext in '' $ac_executable_extensions; do 6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6495 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6497 break 2 6498 fi 6499done 6500 done 6501IFS=$as_save_IFS 6502 6503fi 6504fi 6505ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6506if test -n "$ac_ct_DSYMUTIL"; then 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6508$as_echo "$ac_ct_DSYMUTIL" >&6; } 6509else 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6511$as_echo "no" >&6; } 6512fi 6513 6514 if test "x$ac_ct_DSYMUTIL" = x; then 6515 DSYMUTIL=":" 6516 else 6517 case $cross_compiling:$ac_tool_warned in 6518yes:) 6519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6521ac_tool_warned=yes ;; 6522esac 6523 DSYMUTIL=$ac_ct_DSYMUTIL 6524 fi 6525else 6526 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6527fi 6528 6529 if test -n "$ac_tool_prefix"; then 6530 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6531set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6533$as_echo_n "checking for $ac_word... " >&6; } 6534if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6535 $as_echo_n "(cached) " >&6 6536else 6537 if test -n "$NMEDIT"; then 6538 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6539else 6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6541for as_dir in $PATH 6542do 6543 IFS=$as_save_IFS 6544 test -z "$as_dir" && as_dir=. 6545 for ac_exec_ext in '' $ac_executable_extensions; do 6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6547 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6549 break 2 6550 fi 6551done 6552 done 6553IFS=$as_save_IFS 6554 6555fi 6556fi 6557NMEDIT=$ac_cv_prog_NMEDIT 6558if test -n "$NMEDIT"; then 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6560$as_echo "$NMEDIT" >&6; } 6561else 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6563$as_echo "no" >&6; } 6564fi 6565 6566 6567fi 6568if test -z "$ac_cv_prog_NMEDIT"; then 6569 ac_ct_NMEDIT=$NMEDIT 6570 # Extract the first word of "nmedit", so it can be a program name with args. 6571set dummy nmedit; ac_word=$2 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6573$as_echo_n "checking for $ac_word... " >&6; } 6574if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6575 $as_echo_n "(cached) " >&6 6576else 6577 if test -n "$ac_ct_NMEDIT"; then 6578 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6579else 6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6581for as_dir in $PATH 6582do 6583 IFS=$as_save_IFS 6584 test -z "$as_dir" && as_dir=. 6585 for ac_exec_ext in '' $ac_executable_extensions; do 6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6587 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6589 break 2 6590 fi 6591done 6592 done 6593IFS=$as_save_IFS 6594 6595fi 6596fi 6597ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6598if test -n "$ac_ct_NMEDIT"; then 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6600$as_echo "$ac_ct_NMEDIT" >&6; } 6601else 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6603$as_echo "no" >&6; } 6604fi 6605 6606 if test "x$ac_ct_NMEDIT" = x; then 6607 NMEDIT=":" 6608 else 6609 case $cross_compiling:$ac_tool_warned in 6610yes:) 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6613ac_tool_warned=yes ;; 6614esac 6615 NMEDIT=$ac_ct_NMEDIT 6616 fi 6617else 6618 NMEDIT="$ac_cv_prog_NMEDIT" 6619fi 6620 6621 if test -n "$ac_tool_prefix"; then 6622 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6623set dummy ${ac_tool_prefix}lipo; ac_word=$2 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6625$as_echo_n "checking for $ac_word... " >&6; } 6626if test "${ac_cv_prog_LIPO+set}" = set; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 if test -n "$LIPO"; then 6630 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6631else 6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6633for as_dir in $PATH 6634do 6635 IFS=$as_save_IFS 6636 test -z "$as_dir" && as_dir=. 6637 for ac_exec_ext in '' $ac_executable_extensions; do 6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6639 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6641 break 2 6642 fi 6643done 6644 done 6645IFS=$as_save_IFS 6646 6647fi 6648fi 6649LIPO=$ac_cv_prog_LIPO 6650if test -n "$LIPO"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6652$as_echo "$LIPO" >&6; } 6653else 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6655$as_echo "no" >&6; } 6656fi 6657 6658 6659fi 6660if test -z "$ac_cv_prog_LIPO"; then 6661 ac_ct_LIPO=$LIPO 6662 # Extract the first word of "lipo", so it can be a program name with args. 6663set dummy lipo; ac_word=$2 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6665$as_echo_n "checking for $ac_word... " >&6; } 6666if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 if test -n "$ac_ct_LIPO"; then 6670 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6671else 6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6673for as_dir in $PATH 6674do 6675 IFS=$as_save_IFS 6676 test -z "$as_dir" && as_dir=. 6677 for ac_exec_ext in '' $ac_executable_extensions; do 6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6679 ac_cv_prog_ac_ct_LIPO="lipo" 6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6681 break 2 6682 fi 6683done 6684 done 6685IFS=$as_save_IFS 6686 6687fi 6688fi 6689ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6690if test -n "$ac_ct_LIPO"; then 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6692$as_echo "$ac_ct_LIPO" >&6; } 6693else 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6695$as_echo "no" >&6; } 6696fi 6697 6698 if test "x$ac_ct_LIPO" = x; then 6699 LIPO=":" 6700 else 6701 case $cross_compiling:$ac_tool_warned in 6702yes:) 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6705ac_tool_warned=yes ;; 6706esac 6707 LIPO=$ac_ct_LIPO 6708 fi 6709else 6710 LIPO="$ac_cv_prog_LIPO" 6711fi 6712 6713 if test -n "$ac_tool_prefix"; then 6714 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6715set dummy ${ac_tool_prefix}otool; ac_word=$2 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6717$as_echo_n "checking for $ac_word... " >&6; } 6718if test "${ac_cv_prog_OTOOL+set}" = set; then : 6719 $as_echo_n "(cached) " >&6 6720else 6721 if test -n "$OTOOL"; then 6722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6723else 6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6725for as_dir in $PATH 6726do 6727 IFS=$as_save_IFS 6728 test -z "$as_dir" && as_dir=. 6729 for ac_exec_ext in '' $ac_executable_extensions; do 6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6731 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6733 break 2 6734 fi 6735done 6736 done 6737IFS=$as_save_IFS 6738 6739fi 6740fi 6741OTOOL=$ac_cv_prog_OTOOL 6742if test -n "$OTOOL"; then 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6744$as_echo "$OTOOL" >&6; } 6745else 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6747$as_echo "no" >&6; } 6748fi 6749 6750 6751fi 6752if test -z "$ac_cv_prog_OTOOL"; then 6753 ac_ct_OTOOL=$OTOOL 6754 # Extract the first word of "otool", so it can be a program name with args. 6755set dummy otool; ac_word=$2 6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6757$as_echo_n "checking for $ac_word... " >&6; } 6758if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6759 $as_echo_n "(cached) " >&6 6760else 6761 if test -n "$ac_ct_OTOOL"; then 6762 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6763else 6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6765for as_dir in $PATH 6766do 6767 IFS=$as_save_IFS 6768 test -z "$as_dir" && as_dir=. 6769 for ac_exec_ext in '' $ac_executable_extensions; do 6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6771 ac_cv_prog_ac_ct_OTOOL="otool" 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6773 break 2 6774 fi 6775done 6776 done 6777IFS=$as_save_IFS 6778 6779fi 6780fi 6781ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6782if test -n "$ac_ct_OTOOL"; then 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6784$as_echo "$ac_ct_OTOOL" >&6; } 6785else 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6787$as_echo "no" >&6; } 6788fi 6789 6790 if test "x$ac_ct_OTOOL" = x; then 6791 OTOOL=":" 6792 else 6793 case $cross_compiling:$ac_tool_warned in 6794yes:) 6795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6797ac_tool_warned=yes ;; 6798esac 6799 OTOOL=$ac_ct_OTOOL 6800 fi 6801else 6802 OTOOL="$ac_cv_prog_OTOOL" 6803fi 6804 6805 if test -n "$ac_tool_prefix"; then 6806 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6807set dummy ${ac_tool_prefix}otool64; ac_word=$2 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6809$as_echo_n "checking for $ac_word... " >&6; } 6810if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6811 $as_echo_n "(cached) " >&6 6812else 6813 if test -n "$OTOOL64"; then 6814 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6815else 6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6817for as_dir in $PATH 6818do 6819 IFS=$as_save_IFS 6820 test -z "$as_dir" && as_dir=. 6821 for ac_exec_ext in '' $ac_executable_extensions; do 6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6823 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6825 break 2 6826 fi 6827done 6828 done 6829IFS=$as_save_IFS 6830 6831fi 6832fi 6833OTOOL64=$ac_cv_prog_OTOOL64 6834if test -n "$OTOOL64"; then 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6836$as_echo "$OTOOL64" >&6; } 6837else 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6839$as_echo "no" >&6; } 6840fi 6841 6842 6843fi 6844if test -z "$ac_cv_prog_OTOOL64"; then 6845 ac_ct_OTOOL64=$OTOOL64 6846 # Extract the first word of "otool64", so it can be a program name with args. 6847set dummy otool64; ac_word=$2 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6849$as_echo_n "checking for $ac_word... " >&6; } 6850if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 if test -n "$ac_ct_OTOOL64"; then 6854 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6855else 6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6857for as_dir in $PATH 6858do 6859 IFS=$as_save_IFS 6860 test -z "$as_dir" && as_dir=. 6861 for ac_exec_ext in '' $ac_executable_extensions; do 6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6863 ac_cv_prog_ac_ct_OTOOL64="otool64" 6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6865 break 2 6866 fi 6867done 6868 done 6869IFS=$as_save_IFS 6870 6871fi 6872fi 6873ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6874if test -n "$ac_ct_OTOOL64"; then 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6876$as_echo "$ac_ct_OTOOL64" >&6; } 6877else 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6879$as_echo "no" >&6; } 6880fi 6881 6882 if test "x$ac_ct_OTOOL64" = x; then 6883 OTOOL64=":" 6884 else 6885 case $cross_compiling:$ac_tool_warned in 6886yes:) 6887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6889ac_tool_warned=yes ;; 6890esac 6891 OTOOL64=$ac_ct_OTOOL64 6892 fi 6893else 6894 OTOOL64="$ac_cv_prog_OTOOL64" 6895fi 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6924$as_echo_n "checking for -single_module linker flag... " >&6; } 6925if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6926 $as_echo_n "(cached) " >&6 6927else 6928 lt_cv_apple_cc_single_mod=no 6929 if test -z "${LT_MULTI_MODULE}"; then 6930 # By default we will add the -single_module flag. You can override 6931 # by either setting the environment variable LT_MULTI_MODULE 6932 # non-empty at configure time, or by adding -multi_module to the 6933 # link flags. 6934 rm -rf libconftest.dylib* 6935 echo "int foo(void){return 1;}" > conftest.c 6936 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6937-dynamiclib -Wl,-single_module conftest.c" >&5 6938 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6939 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6940 _lt_result=$? 6941 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6942 lt_cv_apple_cc_single_mod=yes 6943 else 6944 cat conftest.err >&5 6945 fi 6946 rm -rf libconftest.dylib* 6947 rm -f conftest.* 6948 fi 6949fi 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6951$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6953$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6954if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6955 $as_echo_n "(cached) " >&6 6956else 6957 lt_cv_ld_exported_symbols_list=no 6958 save_LDFLAGS=$LDFLAGS 6959 echo "_main" > conftest.sym 6960 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6962/* end confdefs.h. */ 6963 6964int 6965main () 6966{ 6967 6968 ; 6969 return 0; 6970} 6971_ACEOF 6972if ac_fn_c_try_link "$LINENO"; then : 6973 lt_cv_ld_exported_symbols_list=yes 6974else 6975 lt_cv_ld_exported_symbols_list=no 6976fi 6977rm -f core conftest.err conftest.$ac_objext \ 6978 conftest$ac_exeext conftest.$ac_ext 6979 LDFLAGS="$save_LDFLAGS" 6980 6981fi 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6983$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6985$as_echo_n "checking for -force_load linker flag... " >&6; } 6986if test "${lt_cv_ld_force_load+set}" = set; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 lt_cv_ld_force_load=no 6990 cat > conftest.c << _LT_EOF 6991int forced_loaded() { return 2;} 6992_LT_EOF 6993 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6994 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6995 echo "$AR cru libconftest.a conftest.o" >&5 6996 $AR cru libconftest.a conftest.o 2>&5 6997 cat > conftest.c << _LT_EOF 6998int main() { return 0;} 6999_LT_EOF 7000 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7001 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7002 _lt_result=$? 7003 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7004 lt_cv_ld_force_load=yes 7005 else 7006 cat conftest.err >&5 7007 fi 7008 rm -f conftest.err libconftest.a conftest conftest.c 7009 rm -rf conftest.dSYM 7010 7011fi 7012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7013$as_echo "$lt_cv_ld_force_load" >&6; } 7014 case $host_os in 7015 rhapsody* | darwin1.[012]) 7016 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7017 darwin1.*) 7018 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7019 darwin*) # darwin 5.x on 7020 # if running on 10.5 or later, the deployment target defaults 7021 # to the OS version, if on x86, and 10.4, the deployment 7022 # target defaults to 10.4. Don't you love it? 7023 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7024 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7025 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7026 10.[012][,.]*) 7027 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7028 10.*) 7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7030 esac 7031 ;; 7032 esac 7033 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7034 _lt_dar_single_mod='$single_module' 7035 fi 7036 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7037 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7038 else 7039 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7040 fi 7041 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7042 _lt_dsymutil='~$DSYMUTIL $lib || :' 7043 else 7044 _lt_dsymutil= 7045 fi 7046 ;; 7047 esac 7048 7049for ac_header in dlfcn.h 7050do : 7051 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7052" 7053if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7054 cat >>confdefs.h <<_ACEOF 7055#define HAVE_DLFCN_H 1 7056_ACEOF 7057 7058fi 7059 7060done 7061 7062 7063 7064 7065 7066# Set options 7067# Check whether --enable-static was given. 7068if test "${enable_static+set}" = set; then : 7069 enableval=$enable_static; p=${PACKAGE-default} 7070 case $enableval in 7071 yes) enable_static=yes ;; 7072 no) enable_static=no ;; 7073 *) 7074 enable_static=no 7075 # Look at the argument we got. We use all the common list separators. 7076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7077 for pkg in $enableval; do 7078 IFS="$lt_save_ifs" 7079 if test "X$pkg" = "X$p"; then 7080 enable_static=yes 7081 fi 7082 done 7083 IFS="$lt_save_ifs" 7084 ;; 7085 esac 7086else 7087 enable_static=no 7088fi 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 enable_dlopen=no 7100 7101 7102 enable_win32_dll=no 7103 7104 7105 # Check whether --enable-shared was given. 7106if test "${enable_shared+set}" = set; then : 7107 enableval=$enable_shared; p=${PACKAGE-default} 7108 case $enableval in 7109 yes) enable_shared=yes ;; 7110 no) enable_shared=no ;; 7111 *) 7112 enable_shared=no 7113 # Look at the argument we got. We use all the common list separators. 7114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7115 for pkg in $enableval; do 7116 IFS="$lt_save_ifs" 7117 if test "X$pkg" = "X$p"; then 7118 enable_shared=yes 7119 fi 7120 done 7121 IFS="$lt_save_ifs" 7122 ;; 7123 esac 7124else 7125 enable_shared=yes 7126fi 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138# Check whether --with-pic was given. 7139if test "${with_pic+set}" = set; then : 7140 withval=$with_pic; pic_mode="$withval" 7141else 7142 pic_mode=default 7143fi 7144 7145 7146test -z "$pic_mode" && pic_mode=default 7147 7148 7149 7150 7151 7152 7153 7154 # Check whether --enable-fast-install was given. 7155if test "${enable_fast_install+set}" = set; then : 7156 enableval=$enable_fast_install; p=${PACKAGE-default} 7157 case $enableval in 7158 yes) enable_fast_install=yes ;; 7159 no) enable_fast_install=no ;; 7160 *) 7161 enable_fast_install=no 7162 # Look at the argument we got. We use all the common list separators. 7163 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7164 for pkg in $enableval; do 7165 IFS="$lt_save_ifs" 7166 if test "X$pkg" = "X$p"; then 7167 enable_fast_install=yes 7168 fi 7169 done 7170 IFS="$lt_save_ifs" 7171 ;; 7172 esac 7173else 7174 enable_fast_install=yes 7175fi 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187# This can be used to rebuild libtool when needed 7188LIBTOOL_DEPS="$ltmain" 7189 7190# Always use our own libtool. 7191LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218test -z "$LN_S" && LN_S="ln -s" 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233if test -n "${ZSH_VERSION+set}" ; then 7234 setopt NO_GLOB_SUBST 7235fi 7236 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7238$as_echo_n "checking for objdir... " >&6; } 7239if test "${lt_cv_objdir+set}" = set; then : 7240 $as_echo_n "(cached) " >&6 7241else 7242 rm -f .libs 2>/dev/null 7243mkdir .libs 2>/dev/null 7244if test -d .libs; then 7245 lt_cv_objdir=.libs 7246else 7247 # MS-DOS does not allow filenames that begin with a dot. 7248 lt_cv_objdir=_libs 7249fi 7250rmdir .libs 2>/dev/null 7251fi 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7253$as_echo "$lt_cv_objdir" >&6; } 7254objdir=$lt_cv_objdir 7255 7256 7257 7258 7259 7260cat >>confdefs.h <<_ACEOF 7261#define LT_OBJDIR "$lt_cv_objdir/" 7262_ACEOF 7263 7264 7265 7266 7267case $host_os in 7268aix3*) 7269 # AIX sometimes has problems with the GCC collect2 program. For some 7270 # reason, if we set the COLLECT_NAMES environment variable, the problems 7271 # vanish in a puff of smoke. 7272 if test "X${COLLECT_NAMES+set}" != Xset; then 7273 COLLECT_NAMES= 7274 export COLLECT_NAMES 7275 fi 7276 ;; 7277esac 7278 7279# Global variables: 7280ofile=libtool 7281can_build_shared=yes 7282 7283# All known linkers require a `.a' archive for static linking (except MSVC, 7284# which needs '.lib'). 7285libext=a 7286 7287with_gnu_ld="$lt_cv_prog_gnu_ld" 7288 7289old_CC="$CC" 7290old_CFLAGS="$CFLAGS" 7291 7292# Set sane defaults for various variables 7293test -z "$CC" && CC=cc 7294test -z "$LTCC" && LTCC=$CC 7295test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7296test -z "$LD" && LD=ld 7297test -z "$ac_objext" && ac_objext=o 7298 7299for cc_temp in $compiler""; do 7300 case $cc_temp in 7301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7303 \-*) ;; 7304 *) break;; 7305 esac 7306done 7307cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7308 7309 7310# Only perform the check for file, if the check method requires it 7311test -z "$MAGIC_CMD" && MAGIC_CMD=file 7312case $deplibs_check_method in 7313file_magic*) 7314 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7316$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7317if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7318 $as_echo_n "(cached) " >&6 7319else 7320 case $MAGIC_CMD in 7321[\\/*] | ?:[\\/]*) 7322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7323 ;; 7324*) 7325 lt_save_MAGIC_CMD="$MAGIC_CMD" 7326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7327 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7328 for ac_dir in $ac_dummy; do 7329 IFS="$lt_save_ifs" 7330 test -z "$ac_dir" && ac_dir=. 7331 if test -f $ac_dir/${ac_tool_prefix}file; then 7332 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7333 if test -n "$file_magic_test_file"; then 7334 case $deplibs_check_method in 7335 "file_magic "*) 7336 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7338 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7339 $EGREP "$file_magic_regex" > /dev/null; then 7340 : 7341 else 7342 cat <<_LT_EOF 1>&2 7343 7344*** Warning: the command libtool uses to detect shared libraries, 7345*** $file_magic_cmd, produces output that libtool cannot recognize. 7346*** The result is that libtool may fail to recognize shared libraries 7347*** as such. This will affect the creation of libtool libraries that 7348*** depend on shared libraries, but programs linked with such libtool 7349*** libraries will work regardless of this problem. Nevertheless, you 7350*** may want to report the problem to your system manager and/or to 7351*** bug-libtool@gnu.org 7352 7353_LT_EOF 7354 fi ;; 7355 esac 7356 fi 7357 break 7358 fi 7359 done 7360 IFS="$lt_save_ifs" 7361 MAGIC_CMD="$lt_save_MAGIC_CMD" 7362 ;; 7363esac 7364fi 7365 7366MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7367if test -n "$MAGIC_CMD"; then 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7369$as_echo "$MAGIC_CMD" >&6; } 7370else 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7372$as_echo "no" >&6; } 7373fi 7374 7375 7376 7377 7378 7379if test -z "$lt_cv_path_MAGIC_CMD"; then 7380 if test -n "$ac_tool_prefix"; then 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7382$as_echo_n "checking for file... " >&6; } 7383if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 case $MAGIC_CMD in 7387[\\/*] | ?:[\\/]*) 7388 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7389 ;; 7390*) 7391 lt_save_MAGIC_CMD="$MAGIC_CMD" 7392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7394 for ac_dir in $ac_dummy; do 7395 IFS="$lt_save_ifs" 7396 test -z "$ac_dir" && ac_dir=. 7397 if test -f $ac_dir/file; then 7398 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7399 if test -n "$file_magic_test_file"; then 7400 case $deplibs_check_method in 7401 "file_magic "*) 7402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7405 $EGREP "$file_magic_regex" > /dev/null; then 7406 : 7407 else 7408 cat <<_LT_EOF 1>&2 7409 7410*** Warning: the command libtool uses to detect shared libraries, 7411*** $file_magic_cmd, produces output that libtool cannot recognize. 7412*** The result is that libtool may fail to recognize shared libraries 7413*** as such. This will affect the creation of libtool libraries that 7414*** depend on shared libraries, but programs linked with such libtool 7415*** libraries will work regardless of this problem. Nevertheless, you 7416*** may want to report the problem to your system manager and/or to 7417*** bug-libtool@gnu.org 7418 7419_LT_EOF 7420 fi ;; 7421 esac 7422 fi 7423 break 7424 fi 7425 done 7426 IFS="$lt_save_ifs" 7427 MAGIC_CMD="$lt_save_MAGIC_CMD" 7428 ;; 7429esac 7430fi 7431 7432MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7433if test -n "$MAGIC_CMD"; then 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7435$as_echo "$MAGIC_CMD" >&6; } 7436else 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7438$as_echo "no" >&6; } 7439fi 7440 7441 7442 else 7443 MAGIC_CMD=: 7444 fi 7445fi 7446 7447 fi 7448 ;; 7449esac 7450 7451# Use C for the default configuration in the libtool script 7452 7453lt_save_CC="$CC" 7454ac_ext=c 7455ac_cpp='$CPP $CPPFLAGS' 7456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7458ac_compiler_gnu=$ac_cv_c_compiler_gnu 7459 7460 7461# Source file extension for C test sources. 7462ac_ext=c 7463 7464# Object file extension for compiled C test sources. 7465objext=o 7466objext=$objext 7467 7468# Code to be used in simple compile tests 7469lt_simple_compile_test_code="int some_variable = 0;" 7470 7471# Code to be used in simple link tests 7472lt_simple_link_test_code='int main(){return(0);}' 7473 7474 7475 7476 7477 7478 7479 7480# If no C compiler was specified, use CC. 7481LTCC=${LTCC-"$CC"} 7482 7483# If no C compiler flags were specified, use CFLAGS. 7484LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7485 7486# Allow CC to be a program name with arguments. 7487compiler=$CC 7488 7489# Save the default compiler, since it gets overwritten when the other 7490# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7491compiler_DEFAULT=$CC 7492 7493# save warnings/boilerplate of simple test code 7494ac_outfile=conftest.$ac_objext 7495echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7496eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7497_lt_compiler_boilerplate=`cat conftest.err` 7498$RM conftest* 7499 7500ac_outfile=conftest.$ac_objext 7501echo "$lt_simple_link_test_code" >conftest.$ac_ext 7502eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7503_lt_linker_boilerplate=`cat conftest.err` 7504$RM -r conftest* 7505 7506 7507## CAVEAT EMPTOR: 7508## There is no encapsulation within the following macros, do not change 7509## the running order or otherwise move them around unless you know exactly 7510## what you are doing... 7511if test -n "$compiler"; then 7512 7513lt_prog_compiler_no_builtin_flag= 7514 7515if test "$GCC" = yes; then 7516 case $cc_basename in 7517 nvcc*) 7518 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7519 *) 7520 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7521 esac 7522 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7524$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7525if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 lt_cv_prog_compiler_rtti_exceptions=no 7529 ac_outfile=conftest.$ac_objext 7530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7531 lt_compiler_flag="-fno-rtti -fno-exceptions" 7532 # Insert the option either (1) after the last *FLAGS variable, or 7533 # (2) before a word containing "conftest.", or (3) at the end. 7534 # Note that $ac_compile itself does not contain backslashes and begins 7535 # with a dollar sign (not a hyphen), so the echo should work correctly. 7536 # The option is referenced via a variable to avoid confusing sed. 7537 lt_compile=`echo "$ac_compile" | $SED \ 7538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7540 -e 's:$: $lt_compiler_flag:'` 7541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7542 (eval "$lt_compile" 2>conftest.err) 7543 ac_status=$? 7544 cat conftest.err >&5 7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7546 if (exit $ac_status) && test -s "$ac_outfile"; then 7547 # The compiler can only warn and ignore the option if not recognized 7548 # So say no if there are warnings other than the usual output. 7549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7552 lt_cv_prog_compiler_rtti_exceptions=yes 7553 fi 7554 fi 7555 $RM conftest* 7556 7557fi 7558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7559$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7560 7561if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7562 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7563else 7564 : 7565fi 7566 7567fi 7568 7569 7570 7571 7572 7573 7574 lt_prog_compiler_wl= 7575lt_prog_compiler_pic= 7576lt_prog_compiler_static= 7577 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7579$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7580 7581 if test "$GCC" = yes; then 7582 lt_prog_compiler_wl='-Wl,' 7583 lt_prog_compiler_static='-static' 7584 7585 case $host_os in 7586 aix*) 7587 # All AIX code is PIC. 7588 if test "$host_cpu" = ia64; then 7589 # AIX 5 now supports IA64 processor 7590 lt_prog_compiler_static='-Bstatic' 7591 fi 7592 lt_prog_compiler_pic='-fPIC' 7593 ;; 7594 7595 amigaos*) 7596 case $host_cpu in 7597 powerpc) 7598 # see comment about AmigaOS4 .so support 7599 lt_prog_compiler_pic='-fPIC' 7600 ;; 7601 m68k) 7602 # FIXME: we need at least 68020 code to build shared libraries, but 7603 # adding the `-m68020' flag to GCC prevents building anything better, 7604 # like `-m68040'. 7605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7606 ;; 7607 esac 7608 ;; 7609 7610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7611 # PIC is the default for these OSes. 7612 ;; 7613 7614 mingw* | cygwin* | pw32* | os2* | cegcc*) 7615 # This hack is so that the source file can tell whether it is being 7616 # built for inclusion in a dll (and should export symbols for example). 7617 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7618 # (--disable-auto-import) libraries 7619 lt_prog_compiler_pic='-DDLL_EXPORT' 7620 ;; 7621 7622 darwin* | rhapsody*) 7623 # PIC is the default on this platform 7624 # Common symbols not allowed in MH_DYLIB files 7625 lt_prog_compiler_pic='-fno-common' 7626 ;; 7627 7628 haiku*) 7629 # PIC is the default for Haiku. 7630 # The "-static" flag exists, but is broken. 7631 lt_prog_compiler_static= 7632 ;; 7633 7634 hpux*) 7635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7637 # sets the default TLS model and affects inlining. 7638 case $host_cpu in 7639 hppa*64*) 7640 # +Z the default 7641 ;; 7642 *) 7643 lt_prog_compiler_pic='-fPIC' 7644 ;; 7645 esac 7646 ;; 7647 7648 interix[3-9]*) 7649 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7650 # Instead, we relocate shared libraries at runtime. 7651 ;; 7652 7653 msdosdjgpp*) 7654 # Just because we use GCC doesn't mean we suddenly get shared libraries 7655 # on systems that don't support them. 7656 lt_prog_compiler_can_build_shared=no 7657 enable_shared=no 7658 ;; 7659 7660 *nto* | *qnx*) 7661 # QNX uses GNU C++, but need to define -shared option too, otherwise 7662 # it will coredump. 7663 lt_prog_compiler_pic='-fPIC -shared' 7664 ;; 7665 7666 sysv4*MP*) 7667 if test -d /usr/nec; then 7668 lt_prog_compiler_pic=-Kconform_pic 7669 fi 7670 ;; 7671 7672 *) 7673 lt_prog_compiler_pic='-fPIC' 7674 ;; 7675 esac 7676 7677 case $cc_basename in 7678 nvcc*) # Cuda Compiler Driver 2.2 7679 lt_prog_compiler_wl='-Xlinker ' 7680 lt_prog_compiler_pic='-Xcompiler -fPIC' 7681 ;; 7682 esac 7683 else 7684 # PORTME Check for flag to pass linker flags through the system compiler. 7685 case $host_os in 7686 aix*) 7687 lt_prog_compiler_wl='-Wl,' 7688 if test "$host_cpu" = ia64; then 7689 # AIX 5 now supports IA64 processor 7690 lt_prog_compiler_static='-Bstatic' 7691 else 7692 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7693 fi 7694 ;; 7695 7696 mingw* | cygwin* | pw32* | os2* | cegcc*) 7697 # This hack is so that the source file can tell whether it is being 7698 # built for inclusion in a dll (and should export symbols for example). 7699 lt_prog_compiler_pic='-DDLL_EXPORT' 7700 ;; 7701 7702 hpux9* | hpux10* | hpux11*) 7703 lt_prog_compiler_wl='-Wl,' 7704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7705 # not for PA HP-UX. 7706 case $host_cpu in 7707 hppa*64*|ia64*) 7708 # +Z the default 7709 ;; 7710 *) 7711 lt_prog_compiler_pic='+Z' 7712 ;; 7713 esac 7714 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7715 lt_prog_compiler_static='${wl}-a ${wl}archive' 7716 ;; 7717 7718 irix5* | irix6* | nonstopux*) 7719 lt_prog_compiler_wl='-Wl,' 7720 # PIC (with -KPIC) is the default. 7721 lt_prog_compiler_static='-non_shared' 7722 ;; 7723 7724 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7725 case $cc_basename in 7726 # old Intel for x86_64 which still supported -KPIC. 7727 ecc*) 7728 lt_prog_compiler_wl='-Wl,' 7729 lt_prog_compiler_pic='-KPIC' 7730 lt_prog_compiler_static='-static' 7731 ;; 7732 # icc used to be incompatible with GCC. 7733 # ICC 10 doesn't accept -KPIC any more. 7734 icc* | ifort*) 7735 lt_prog_compiler_wl='-Wl,' 7736 lt_prog_compiler_pic='-fPIC' 7737 lt_prog_compiler_static='-static' 7738 ;; 7739 # Lahey Fortran 8.1. 7740 lf95*) 7741 lt_prog_compiler_wl='-Wl,' 7742 lt_prog_compiler_pic='--shared' 7743 lt_prog_compiler_static='--static' 7744 ;; 7745 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7746 # Portland Group compilers (*not* the Pentium gcc compiler, 7747 # which looks to be a dead project) 7748 lt_prog_compiler_wl='-Wl,' 7749 lt_prog_compiler_pic='-fpic' 7750 lt_prog_compiler_static='-Bstatic' 7751 ;; 7752 ccc*) 7753 lt_prog_compiler_wl='-Wl,' 7754 # All Alpha code is PIC. 7755 lt_prog_compiler_static='-non_shared' 7756 ;; 7757 xl* | bgxl* | bgf* | mpixl*) 7758 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7759 lt_prog_compiler_wl='-Wl,' 7760 lt_prog_compiler_pic='-qpic' 7761 lt_prog_compiler_static='-qstaticlink' 7762 ;; 7763 *) 7764 case `$CC -V 2>&1 | sed 5q` in 7765 *Sun\ F* | *Sun*Fortran*) 7766 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7767 lt_prog_compiler_pic='-KPIC' 7768 lt_prog_compiler_static='-Bstatic' 7769 lt_prog_compiler_wl='' 7770 ;; 7771 *Sun\ C*) 7772 # Sun C 5.9 7773 lt_prog_compiler_pic='-KPIC' 7774 lt_prog_compiler_static='-Bstatic' 7775 lt_prog_compiler_wl='-Wl,' 7776 ;; 7777 esac 7778 ;; 7779 esac 7780 ;; 7781 7782 newsos6) 7783 lt_prog_compiler_pic='-KPIC' 7784 lt_prog_compiler_static='-Bstatic' 7785 ;; 7786 7787 *nto* | *qnx*) 7788 # QNX uses GNU C++, but need to define -shared option too, otherwise 7789 # it will coredump. 7790 lt_prog_compiler_pic='-fPIC -shared' 7791 ;; 7792 7793 osf3* | osf4* | osf5*) 7794 lt_prog_compiler_wl='-Wl,' 7795 # All OSF/1 code is PIC. 7796 lt_prog_compiler_static='-non_shared' 7797 ;; 7798 7799 rdos*) 7800 lt_prog_compiler_static='-non_shared' 7801 ;; 7802 7803 solaris*) 7804 lt_prog_compiler_pic='-KPIC' 7805 lt_prog_compiler_static='-Bstatic' 7806 case $cc_basename in 7807 f77* | f90* | f95*) 7808 lt_prog_compiler_wl='-Qoption ld ';; 7809 *) 7810 lt_prog_compiler_wl='-Wl,';; 7811 esac 7812 ;; 7813 7814 sunos4*) 7815 lt_prog_compiler_wl='-Qoption ld ' 7816 lt_prog_compiler_pic='-PIC' 7817 lt_prog_compiler_static='-Bstatic' 7818 ;; 7819 7820 sysv4 | sysv4.2uw2* | sysv4.3*) 7821 lt_prog_compiler_wl='-Wl,' 7822 lt_prog_compiler_pic='-KPIC' 7823 lt_prog_compiler_static='-Bstatic' 7824 ;; 7825 7826 sysv4*MP*) 7827 if test -d /usr/nec ;then 7828 lt_prog_compiler_pic='-Kconform_pic' 7829 lt_prog_compiler_static='-Bstatic' 7830 fi 7831 ;; 7832 7833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7834 lt_prog_compiler_wl='-Wl,' 7835 lt_prog_compiler_pic='-KPIC' 7836 lt_prog_compiler_static='-Bstatic' 7837 ;; 7838 7839 unicos*) 7840 lt_prog_compiler_wl='-Wl,' 7841 lt_prog_compiler_can_build_shared=no 7842 ;; 7843 7844 uts4*) 7845 lt_prog_compiler_pic='-pic' 7846 lt_prog_compiler_static='-Bstatic' 7847 ;; 7848 7849 *) 7850 lt_prog_compiler_can_build_shared=no 7851 ;; 7852 esac 7853 fi 7854 7855case $host_os in 7856 # For platforms which do not support PIC, -DPIC is meaningless: 7857 *djgpp*) 7858 lt_prog_compiler_pic= 7859 ;; 7860 *) 7861 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7862 ;; 7863esac 7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7865$as_echo "$lt_prog_compiler_pic" >&6; } 7866 7867 7868 7869 7870 7871 7872# 7873# Check to make sure the PIC flag actually works. 7874# 7875if test -n "$lt_prog_compiler_pic"; then 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7877$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7878if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7879 $as_echo_n "(cached) " >&6 7880else 7881 lt_cv_prog_compiler_pic_works=no 7882 ac_outfile=conftest.$ac_objext 7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7884 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7885 # Insert the option either (1) after the last *FLAGS variable, or 7886 # (2) before a word containing "conftest.", or (3) at the end. 7887 # Note that $ac_compile itself does not contain backslashes and begins 7888 # with a dollar sign (not a hyphen), so the echo should work correctly. 7889 # The option is referenced via a variable to avoid confusing sed. 7890 lt_compile=`echo "$ac_compile" | $SED \ 7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7893 -e 's:$: $lt_compiler_flag:'` 7894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7895 (eval "$lt_compile" 2>conftest.err) 7896 ac_status=$? 7897 cat conftest.err >&5 7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7899 if (exit $ac_status) && test -s "$ac_outfile"; then 7900 # The compiler can only warn and ignore the option if not recognized 7901 # So say no if there are warnings other than the usual output. 7902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7905 lt_cv_prog_compiler_pic_works=yes 7906 fi 7907 fi 7908 $RM conftest* 7909 7910fi 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7912$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7913 7914if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7915 case $lt_prog_compiler_pic in 7916 "" | " "*) ;; 7917 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7918 esac 7919else 7920 lt_prog_compiler_pic= 7921 lt_prog_compiler_can_build_shared=no 7922fi 7923 7924fi 7925 7926 7927 7928 7929 7930 7931# 7932# Check to make sure the static flag actually works. 7933# 7934wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7936$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7937if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7938 $as_echo_n "(cached) " >&6 7939else 7940 lt_cv_prog_compiler_static_works=no 7941 save_LDFLAGS="$LDFLAGS" 7942 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7943 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7945 # The linker can only warn and ignore the option if not recognized 7946 # So say no if there are warnings 7947 if test -s conftest.err; then 7948 # Append any errors to the config.log. 7949 cat conftest.err 1>&5 7950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 7951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7952 if diff conftest.exp conftest.er2 >/dev/null; then 7953 lt_cv_prog_compiler_static_works=yes 7954 fi 7955 else 7956 lt_cv_prog_compiler_static_works=yes 7957 fi 7958 fi 7959 $RM -r conftest* 7960 LDFLAGS="$save_LDFLAGS" 7961 7962fi 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7964$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7965 7966if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7967 : 7968else 7969 lt_prog_compiler_static= 7970fi 7971 7972 7973 7974 7975 7976 7977 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7980if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7981 $as_echo_n "(cached) " >&6 7982else 7983 lt_cv_prog_compiler_c_o=no 7984 $RM -r conftest 2>/dev/null 7985 mkdir conftest 7986 cd conftest 7987 mkdir out 7988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7989 7990 lt_compiler_flag="-o out/conftest2.$ac_objext" 7991 # Insert the option either (1) after the last *FLAGS variable, or 7992 # (2) before a word containing "conftest.", or (3) at the end. 7993 # Note that $ac_compile itself does not contain backslashes and begins 7994 # with a dollar sign (not a hyphen), so the echo should work correctly. 7995 lt_compile=`echo "$ac_compile" | $SED \ 7996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7998 -e 's:$: $lt_compiler_flag:'` 7999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8000 (eval "$lt_compile" 2>out/conftest.err) 8001 ac_status=$? 8002 cat out/conftest.err >&5 8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8004 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8005 then 8006 # The compiler can only warn and ignore the option if not recognized 8007 # So say no if there are warnings 8008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8011 lt_cv_prog_compiler_c_o=yes 8012 fi 8013 fi 8014 chmod u+w . 2>&5 8015 $RM conftest* 8016 # SGI C++ compiler will create directory out/ii_files/ for 8017 # template instantiation 8018 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8019 $RM out/* && rmdir out 8020 cd .. 8021 $RM -r conftest 8022 $RM conftest* 8023 8024fi 8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8026$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8027 8028 8029 8030 8031 8032 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8035if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8036 $as_echo_n "(cached) " >&6 8037else 8038 lt_cv_prog_compiler_c_o=no 8039 $RM -r conftest 2>/dev/null 8040 mkdir conftest 8041 cd conftest 8042 mkdir out 8043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8044 8045 lt_compiler_flag="-o out/conftest2.$ac_objext" 8046 # Insert the option either (1) after the last *FLAGS variable, or 8047 # (2) before a word containing "conftest.", or (3) at the end. 8048 # Note that $ac_compile itself does not contain backslashes and begins 8049 # with a dollar sign (not a hyphen), so the echo should work correctly. 8050 lt_compile=`echo "$ac_compile" | $SED \ 8051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8053 -e 's:$: $lt_compiler_flag:'` 8054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8055 (eval "$lt_compile" 2>out/conftest.err) 8056 ac_status=$? 8057 cat out/conftest.err >&5 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8060 then 8061 # The compiler can only warn and ignore the option if not recognized 8062 # So say no if there are warnings 8063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8066 lt_cv_prog_compiler_c_o=yes 8067 fi 8068 fi 8069 chmod u+w . 2>&5 8070 $RM conftest* 8071 # SGI C++ compiler will create directory out/ii_files/ for 8072 # template instantiation 8073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8074 $RM out/* && rmdir out 8075 cd .. 8076 $RM -r conftest 8077 $RM conftest* 8078 8079fi 8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8081$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8082 8083 8084 8085 8086hard_links="nottested" 8087if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8088 # do not overwrite the value of need_locks provided by the user 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8090$as_echo_n "checking if we can lock with hard links... " >&6; } 8091 hard_links=yes 8092 $RM conftest* 8093 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8094 touch conftest.a 8095 ln conftest.a conftest.b 2>&5 || hard_links=no 8096 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8098$as_echo "$hard_links" >&6; } 8099 if test "$hard_links" = no; then 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8101$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8102 need_locks=warn 8103 fi 8104else 8105 need_locks=no 8106fi 8107 8108 8109 8110 8111 8112 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8114$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8115 8116 runpath_var= 8117 allow_undefined_flag= 8118 always_export_symbols=no 8119 archive_cmds= 8120 archive_expsym_cmds= 8121 compiler_needs_object=no 8122 enable_shared_with_static_runtimes=no 8123 export_dynamic_flag_spec= 8124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8125 hardcode_automatic=no 8126 hardcode_direct=no 8127 hardcode_direct_absolute=no 8128 hardcode_libdir_flag_spec= 8129 hardcode_libdir_flag_spec_ld= 8130 hardcode_libdir_separator= 8131 hardcode_minus_L=no 8132 hardcode_shlibpath_var=unsupported 8133 inherit_rpath=no 8134 link_all_deplibs=unknown 8135 module_cmds= 8136 module_expsym_cmds= 8137 old_archive_from_new_cmds= 8138 old_archive_from_expsyms_cmds= 8139 thread_safe_flag_spec= 8140 whole_archive_flag_spec= 8141 # include_expsyms should be a list of space-separated symbols to be *always* 8142 # included in the symbol list 8143 include_expsyms= 8144 # exclude_expsyms can be an extended regexp of symbols to exclude 8145 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8147 # as well as any symbol that contains `d'. 8148 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8150 # platforms (ab)use it in PIC code, but their linkers get confused if 8151 # the symbol is explicitly referenced. Since portable code cannot 8152 # rely on this symbol name, it's probably fine to never include it in 8153 # preloaded symbol tables. 8154 # Exclude shared library initialization/finalization symbols. 8155 extract_expsyms_cmds= 8156 8157 case $host_os in 8158 cygwin* | mingw* | pw32* | cegcc*) 8159 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8160 # When not using gcc, we currently assume that we are using 8161 # Microsoft Visual C++. 8162 if test "$GCC" != yes; then 8163 with_gnu_ld=no 8164 fi 8165 ;; 8166 interix*) 8167 # we just hope/assume this is gcc and not c89 (= MSVC++) 8168 with_gnu_ld=yes 8169 ;; 8170 openbsd*) 8171 with_gnu_ld=no 8172 ;; 8173 esac 8174 8175 ld_shlibs=yes 8176 8177 # On some targets, GNU ld is compatible enough with the native linker 8178 # that we're better off using the native interface for both. 8179 lt_use_gnu_ld_interface=no 8180 if test "$with_gnu_ld" = yes; then 8181 case $host_os in 8182 aix*) 8183 # The AIX port of GNU ld has always aspired to compatibility 8184 # with the native linker. However, as the warning in the GNU ld 8185 # block says, versions before 2.19.5* couldn't really create working 8186 # shared libraries, regardless of the interface used. 8187 case `$LD -v 2>&1` in 8188 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8189 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8190 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8191 *) 8192 lt_use_gnu_ld_interface=yes 8193 ;; 8194 esac 8195 ;; 8196 *) 8197 lt_use_gnu_ld_interface=yes 8198 ;; 8199 esac 8200 fi 8201 8202 if test "$lt_use_gnu_ld_interface" = yes; then 8203 # If archive_cmds runs LD, not CC, wlarc should be empty 8204 wlarc='${wl}' 8205 8206 # Set some defaults for GNU ld with shared library support. These 8207 # are reset later if shared libraries are not supported. Putting them 8208 # here allows them to be overridden if necessary. 8209 runpath_var=LD_RUN_PATH 8210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8211 export_dynamic_flag_spec='${wl}--export-dynamic' 8212 # ancient GNU ld didn't support --whole-archive et. al. 8213 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8214 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8215 else 8216 whole_archive_flag_spec= 8217 fi 8218 supports_anon_versioning=no 8219 case `$LD -v 2>&1` in 8220 *GNU\ gold*) supports_anon_versioning=yes ;; 8221 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8222 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8223 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8224 *\ 2.11.*) ;; # other 2.11 versions 8225 *) supports_anon_versioning=yes ;; 8226 esac 8227 8228 # See if GNU ld supports shared libraries. 8229 case $host_os in 8230 aix[3-9]*) 8231 # On AIX/PPC, the GNU linker is very broken 8232 if test "$host_cpu" != ia64; then 8233 ld_shlibs=no 8234 cat <<_LT_EOF 1>&2 8235 8236*** Warning: the GNU linker, at least up to release 2.19, is reported 8237*** to be unable to reliably create shared libraries on AIX. 8238*** Therefore, libtool is disabling shared libraries support. If you 8239*** really care for shared libraries, you may want to install binutils 8240*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8241*** You will then need to restart the configuration process. 8242 8243_LT_EOF 8244 fi 8245 ;; 8246 8247 amigaos*) 8248 case $host_cpu in 8249 powerpc) 8250 # see comment about AmigaOS4 .so support 8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8252 archive_expsym_cmds='' 8253 ;; 8254 m68k) 8255 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)' 8256 hardcode_libdir_flag_spec='-L$libdir' 8257 hardcode_minus_L=yes 8258 ;; 8259 esac 8260 ;; 8261 8262 beos*) 8263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8264 allow_undefined_flag=unsupported 8265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8266 # support --undefined. This deserves some investigation. FIXME 8267 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8268 else 8269 ld_shlibs=no 8270 fi 8271 ;; 8272 8273 cygwin* | mingw* | pw32* | cegcc*) 8274 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8275 # as there is no search path for DLLs. 8276 hardcode_libdir_flag_spec='-L$libdir' 8277 export_dynamic_flag_spec='${wl}--export-all-symbols' 8278 allow_undefined_flag=unsupported 8279 always_export_symbols=no 8280 enable_shared_with_static_runtimes=yes 8281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8282 8283 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8285 # If the export-symbols file already is a .def file (1st line 8286 # is EXPORTS), use it as is; otherwise, prepend... 8287 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8288 cp $export_symbols $output_objdir/$soname.def; 8289 else 8290 echo EXPORTS > $output_objdir/$soname.def; 8291 cat $export_symbols >> $output_objdir/$soname.def; 8292 fi~ 8293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8294 else 8295 ld_shlibs=no 8296 fi 8297 ;; 8298 8299 haiku*) 8300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8301 link_all_deplibs=yes 8302 ;; 8303 8304 interix[3-9]*) 8305 hardcode_direct=no 8306 hardcode_shlibpath_var=no 8307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8308 export_dynamic_flag_spec='${wl}-E' 8309 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8310 # Instead, shared libraries are loaded at an image base (0x10000000 by 8311 # default) and relocated if they conflict, which is a slow very memory 8312 # consuming and fragmenting process. To avoid this, we pick a random, 8313 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8314 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8316 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' 8317 ;; 8318 8319 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8320 tmp_diet=no 8321 if test "$host_os" = linux-dietlibc; then 8322 case $cc_basename in 8323 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8324 esac 8325 fi 8326 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8327 && test "$tmp_diet" = no 8328 then 8329 tmp_addflag=' $pic_flag' 8330 tmp_sharedflag='-shared' 8331 case $cc_basename,$host_cpu in 8332 pgcc*) # Portland Group C compiler 8333 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' 8334 tmp_addflag=' $pic_flag' 8335 ;; 8336 pgf77* | pgf90* | pgf95* | pgfortran*) 8337 # Portland Group f77 and f90 compilers 8338 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' 8339 tmp_addflag=' $pic_flag -Mnomain' ;; 8340 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8341 tmp_addflag=' -i_dynamic' ;; 8342 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8343 tmp_addflag=' -i_dynamic -nofor_main' ;; 8344 ifc* | ifort*) # Intel Fortran compiler 8345 tmp_addflag=' -nofor_main' ;; 8346 lf95*) # Lahey Fortran 8.1 8347 whole_archive_flag_spec= 8348 tmp_sharedflag='--shared' ;; 8349 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8350 tmp_sharedflag='-qmkshrobj' 8351 tmp_addflag= ;; 8352 nvcc*) # Cuda Compiler Driver 2.2 8353 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' 8354 compiler_needs_object=yes 8355 ;; 8356 esac 8357 case `$CC -V 2>&1 | sed 5q` in 8358 *Sun\ C*) # Sun C 5.9 8359 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' 8360 compiler_needs_object=yes 8361 tmp_sharedflag='-G' ;; 8362 *Sun\ F*) # Sun Fortran 8.3 8363 tmp_sharedflag='-G' ;; 8364 esac 8365 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8366 8367 if test "x$supports_anon_versioning" = xyes; then 8368 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8370 echo "local: *; };" >> $output_objdir/$libname.ver~ 8371 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8372 fi 8373 8374 case $cc_basename in 8375 xlf* | bgf* | bgxlf* | mpixlf*) 8376 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8377 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8378 hardcode_libdir_flag_spec= 8379 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8380 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8381 if test "x$supports_anon_versioning" = xyes; then 8382 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8384 echo "local: *; };" >> $output_objdir/$libname.ver~ 8385 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8386 fi 8387 ;; 8388 esac 8389 else 8390 ld_shlibs=no 8391 fi 8392 ;; 8393 8394 netbsd*) 8395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8396 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8397 wlarc= 8398 else 8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8401 fi 8402 ;; 8403 8404 solaris*) 8405 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8406 ld_shlibs=no 8407 cat <<_LT_EOF 1>&2 8408 8409*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8410*** create shared libraries on Solaris systems. Therefore, libtool 8411*** is disabling shared libraries support. We urge you to upgrade GNU 8412*** binutils to release 2.9.1 or newer. Another option is to modify 8413*** your PATH or compiler configuration so that the native linker is 8414*** used, and then restart. 8415 8416_LT_EOF 8417 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8420 else 8421 ld_shlibs=no 8422 fi 8423 ;; 8424 8425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8426 case `$LD -v 2>&1` in 8427 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8428 ld_shlibs=no 8429 cat <<_LT_EOF 1>&2 8430 8431*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8432*** reliably create shared libraries on SCO systems. Therefore, libtool 8433*** is disabling shared libraries support. We urge you to upgrade GNU 8434*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8435*** your PATH or compiler configuration so that the native linker is 8436*** used, and then restart. 8437 8438_LT_EOF 8439 ;; 8440 *) 8441 # For security reasons, it is highly recommended that you always 8442 # use absolute paths for naming shared libraries, and exclude the 8443 # DT_RUNPATH tag from executables and libraries. But doing so 8444 # requires that you compile everything twice, which is a pain. 8445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8449 else 8450 ld_shlibs=no 8451 fi 8452 ;; 8453 esac 8454 ;; 8455 8456 sunos4*) 8457 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8458 wlarc= 8459 hardcode_direct=yes 8460 hardcode_shlibpath_var=no 8461 ;; 8462 8463 *) 8464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8467 else 8468 ld_shlibs=no 8469 fi 8470 ;; 8471 esac 8472 8473 if test "$ld_shlibs" = no; then 8474 runpath_var= 8475 hardcode_libdir_flag_spec= 8476 export_dynamic_flag_spec= 8477 whole_archive_flag_spec= 8478 fi 8479 else 8480 # PORTME fill in a description of your system's linker (not GNU ld) 8481 case $host_os in 8482 aix3*) 8483 allow_undefined_flag=unsupported 8484 always_export_symbols=yes 8485 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' 8486 # Note: this linker hardcodes the directories in LIBPATH if there 8487 # are no directories specified by -L. 8488 hardcode_minus_L=yes 8489 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8490 # Neither direct hardcoding nor static linking is supported with a 8491 # broken collect2. 8492 hardcode_direct=unsupported 8493 fi 8494 ;; 8495 8496 aix[4-9]*) 8497 if test "$host_cpu" = ia64; then 8498 # On IA64, the linker does run time linking by default, so we don't 8499 # have to do anything special. 8500 aix_use_runtimelinking=no 8501 exp_sym_flag='-Bexport' 8502 no_entry_flag="" 8503 else 8504 # If we're using GNU nm, then we don't want the "-C" option. 8505 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8506 # Also, AIX nm treats weak defined symbols like other global 8507 # defined symbols, whereas GNU nm marks them as "W". 8508 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8509 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' 8510 else 8511 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' 8512 fi 8513 aix_use_runtimelinking=no 8514 8515 # Test if we are trying to use run time linking or normal 8516 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8517 # need to do runtime linking. 8518 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8519 for ld_flag in $LDFLAGS; do 8520 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8521 aix_use_runtimelinking=yes 8522 break 8523 fi 8524 done 8525 ;; 8526 esac 8527 8528 exp_sym_flag='-bexport' 8529 no_entry_flag='-bnoentry' 8530 fi 8531 8532 # When large executables or shared objects are built, AIX ld can 8533 # have problems creating the table of contents. If linking a library 8534 # or program results in "error TOC overflow" add -mminimal-toc to 8535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8537 8538 archive_cmds='' 8539 hardcode_direct=yes 8540 hardcode_direct_absolute=yes 8541 hardcode_libdir_separator=':' 8542 link_all_deplibs=yes 8543 file_list_spec='${wl}-f,' 8544 8545 if test "$GCC" = yes; then 8546 case $host_os in aix4.[012]|aix4.[012].*) 8547 # We only want to do this on AIX 4.2 and lower, the check 8548 # below for broken collect2 doesn't work under 4.3+ 8549 collect2name=`${CC} -print-prog-name=collect2` 8550 if test -f "$collect2name" && 8551 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8552 then 8553 # We have reworked collect2 8554 : 8555 else 8556 # We have old collect2 8557 hardcode_direct=unsupported 8558 # It fails to find uninstalled libraries when the uninstalled 8559 # path is not listed in the libpath. Setting hardcode_minus_L 8560 # to unsupported forces relinking 8561 hardcode_minus_L=yes 8562 hardcode_libdir_flag_spec='-L$libdir' 8563 hardcode_libdir_separator= 8564 fi 8565 ;; 8566 esac 8567 shared_flag='-shared' 8568 if test "$aix_use_runtimelinking" = yes; then 8569 shared_flag="$shared_flag "'${wl}-G' 8570 fi 8571 else 8572 # not using gcc 8573 if test "$host_cpu" = ia64; then 8574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8575 # chokes on -Wl,-G. The following line is correct: 8576 shared_flag='-G' 8577 else 8578 if test "$aix_use_runtimelinking" = yes; then 8579 shared_flag='${wl}-G' 8580 else 8581 shared_flag='${wl}-bM:SRE' 8582 fi 8583 fi 8584 fi 8585 8586 export_dynamic_flag_spec='${wl}-bexpall' 8587 # It seems that -bexpall does not export symbols beginning with 8588 # underscore (_), so it is better to generate a list of symbols to export. 8589 always_export_symbols=yes 8590 if test "$aix_use_runtimelinking" = yes; then 8591 # Warning - without using the other runtime loading flags (-brtl), 8592 # -berok will link without error, but may produce a broken library. 8593 allow_undefined_flag='-berok' 8594 # Determine the default libpath from the value encoded in an 8595 # empty executable. 8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8597/* end confdefs.h. */ 8598 8599int 8600main () 8601{ 8602 8603 ; 8604 return 0; 8605} 8606_ACEOF 8607if ac_fn_c_try_link "$LINENO"; then : 8608 8609lt_aix_libpath_sed=' 8610 /Import File Strings/,/^$/ { 8611 /^0/ { 8612 s/^0 *\(.*\)$/\1/ 8613 p 8614 } 8615 }' 8616aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8617# Check for a 64-bit object if we didn't find anything. 8618if test -z "$aix_libpath"; then 8619 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8620fi 8621fi 8622rm -f core conftest.err conftest.$ac_objext \ 8623 conftest$ac_exeext conftest.$ac_ext 8624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8625 8626 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8627 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" 8628 else 8629 if test "$host_cpu" = ia64; then 8630 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8631 allow_undefined_flag="-z nodefs" 8632 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" 8633 else 8634 # Determine the default libpath from the value encoded in an 8635 # empty executable. 8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8637/* end confdefs.h. */ 8638 8639int 8640main () 8641{ 8642 8643 ; 8644 return 0; 8645} 8646_ACEOF 8647if ac_fn_c_try_link "$LINENO"; then : 8648 8649lt_aix_libpath_sed=' 8650 /Import File Strings/,/^$/ { 8651 /^0/ { 8652 s/^0 *\(.*\)$/\1/ 8653 p 8654 } 8655 }' 8656aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8657# Check for a 64-bit object if we didn't find anything. 8658if test -z "$aix_libpath"; then 8659 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8660fi 8661fi 8662rm -f core conftest.err conftest.$ac_objext \ 8663 conftest$ac_exeext conftest.$ac_ext 8664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8665 8666 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8667 # Warning - without using the other run time loading flags, 8668 # -berok will link without error, but may produce a broken library. 8669 no_undefined_flag=' ${wl}-bernotok' 8670 allow_undefined_flag=' ${wl}-berok' 8671 if test "$with_gnu_ld" = yes; then 8672 # We only use this code for GNU lds that support --whole-archive. 8673 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8674 else 8675 # Exported symbols can be pulled into shared objects from archives 8676 whole_archive_flag_spec='$convenience' 8677 fi 8678 archive_cmds_need_lc=yes 8679 # This is similar to how AIX traditionally builds its shared libraries. 8680 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' 8681 fi 8682 fi 8683 ;; 8684 8685 amigaos*) 8686 case $host_cpu in 8687 powerpc) 8688 # see comment about AmigaOS4 .so support 8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8690 archive_expsym_cmds='' 8691 ;; 8692 m68k) 8693 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)' 8694 hardcode_libdir_flag_spec='-L$libdir' 8695 hardcode_minus_L=yes 8696 ;; 8697 esac 8698 ;; 8699 8700 bsdi[45]*) 8701 export_dynamic_flag_spec=-rdynamic 8702 ;; 8703 8704 cygwin* | mingw* | pw32* | cegcc*) 8705 # When not using gcc, we currently assume that we are using 8706 # Microsoft Visual C++. 8707 # hardcode_libdir_flag_spec is actually meaningless, as there is 8708 # no search path for DLLs. 8709 hardcode_libdir_flag_spec=' ' 8710 allow_undefined_flag=unsupported 8711 # Tell ltmain to make .lib files, not .a files. 8712 libext=lib 8713 # Tell ltmain to make .dll files, not .so files. 8714 shrext_cmds=".dll" 8715 # FIXME: Setting linknames here is a bad hack. 8716 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8717 # The linker will automatically build a .lib file if we build a DLL. 8718 old_archive_from_new_cmds='true' 8719 # FIXME: Should let the user specify the lib program. 8720 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8721 fix_srcfile_path='`cygpath -w "$srcfile"`' 8722 enable_shared_with_static_runtimes=yes 8723 ;; 8724 8725 darwin* | rhapsody*) 8726 8727 8728 archive_cmds_need_lc=no 8729 hardcode_direct=no 8730 hardcode_automatic=yes 8731 hardcode_shlibpath_var=unsupported 8732 if test "$lt_cv_ld_force_load" = "yes"; then 8733 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\"`' 8734 else 8735 whole_archive_flag_spec='' 8736 fi 8737 link_all_deplibs=yes 8738 allow_undefined_flag="$_lt_dar_allow_undefined" 8739 case $cc_basename in 8740 ifort*) _lt_dar_can_shared=yes ;; 8741 *) _lt_dar_can_shared=$GCC ;; 8742 esac 8743 if test "$_lt_dar_can_shared" = "yes"; then 8744 output_verbose_link_cmd=func_echo_all 8745 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8746 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8747 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}" 8748 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}" 8749 8750 else 8751 ld_shlibs=no 8752 fi 8753 8754 ;; 8755 8756 dgux*) 8757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8758 hardcode_libdir_flag_spec='-L$libdir' 8759 hardcode_shlibpath_var=no 8760 ;; 8761 8762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8763 # support. Future versions do this automatically, but an explicit c++rt0.o 8764 # does not break anything, and helps significantly (at the cost of a little 8765 # extra space). 8766 freebsd2.2*) 8767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8768 hardcode_libdir_flag_spec='-R$libdir' 8769 hardcode_direct=yes 8770 hardcode_shlibpath_var=no 8771 ;; 8772 8773 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8774 freebsd2.*) 8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8776 hardcode_direct=yes 8777 hardcode_minus_L=yes 8778 hardcode_shlibpath_var=no 8779 ;; 8780 8781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8782 freebsd* | dragonfly*) 8783 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8784 hardcode_libdir_flag_spec='-R$libdir' 8785 hardcode_direct=yes 8786 hardcode_shlibpath_var=no 8787 ;; 8788 8789 hpux9*) 8790 if test "$GCC" = yes; then 8791 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8792 else 8793 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' 8794 fi 8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8796 hardcode_libdir_separator=: 8797 hardcode_direct=yes 8798 8799 # hardcode_minus_L: Not really in the search PATH, 8800 # but as the default location of the library. 8801 hardcode_minus_L=yes 8802 export_dynamic_flag_spec='${wl}-E' 8803 ;; 8804 8805 hpux10*) 8806 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8808 else 8809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8810 fi 8811 if test "$with_gnu_ld" = no; then 8812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8813 hardcode_libdir_flag_spec_ld='+b $libdir' 8814 hardcode_libdir_separator=: 8815 hardcode_direct=yes 8816 hardcode_direct_absolute=yes 8817 export_dynamic_flag_spec='${wl}-E' 8818 # hardcode_minus_L: Not really in the search PATH, 8819 # but as the default location of the library. 8820 hardcode_minus_L=yes 8821 fi 8822 ;; 8823 8824 hpux11*) 8825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8826 case $host_cpu in 8827 hppa*64*) 8828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8829 ;; 8830 ia64*) 8831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8832 ;; 8833 *) 8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8835 ;; 8836 esac 8837 else 8838 case $host_cpu in 8839 hppa*64*) 8840 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8841 ;; 8842 ia64*) 8843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8844 ;; 8845 *) 8846 8847 # Older versions of the 11.00 compiler do not understand -b yet 8848 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8850$as_echo_n "checking if $CC understands -b... " >&6; } 8851if test "${lt_cv_prog_compiler__b+set}" = set; then : 8852 $as_echo_n "(cached) " >&6 8853else 8854 lt_cv_prog_compiler__b=no 8855 save_LDFLAGS="$LDFLAGS" 8856 LDFLAGS="$LDFLAGS -b" 8857 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8859 # The linker can only warn and ignore the option if not recognized 8860 # So say no if there are warnings 8861 if test -s conftest.err; then 8862 # Append any errors to the config.log. 8863 cat conftest.err 1>&5 8864 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8866 if diff conftest.exp conftest.er2 >/dev/null; then 8867 lt_cv_prog_compiler__b=yes 8868 fi 8869 else 8870 lt_cv_prog_compiler__b=yes 8871 fi 8872 fi 8873 $RM -r conftest* 8874 LDFLAGS="$save_LDFLAGS" 8875 8876fi 8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 8878$as_echo "$lt_cv_prog_compiler__b" >&6; } 8879 8880if test x"$lt_cv_prog_compiler__b" = xyes; then 8881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8882else 8883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8884fi 8885 8886 ;; 8887 esac 8888 fi 8889 if test "$with_gnu_ld" = no; then 8890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8891 hardcode_libdir_separator=: 8892 8893 case $host_cpu in 8894 hppa*64*|ia64*) 8895 hardcode_direct=no 8896 hardcode_shlibpath_var=no 8897 ;; 8898 *) 8899 hardcode_direct=yes 8900 hardcode_direct_absolute=yes 8901 export_dynamic_flag_spec='${wl}-E' 8902 8903 # hardcode_minus_L: Not really in the search PATH, 8904 # but as the default location of the library. 8905 hardcode_minus_L=yes 8906 ;; 8907 esac 8908 fi 8909 ;; 8910 8911 irix5* | irix6* | nonstopux*) 8912 if test "$GCC" = yes; then 8913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8914 # Try to use the -exported_symbol ld option, if it does not 8915 # work, assume that -exports_file does not work either and 8916 # implicitly export all symbols. 8917 save_LDFLAGS="$LDFLAGS" 8918 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920/* end confdefs.h. */ 8921int foo(void) {} 8922_ACEOF 8923if ac_fn_c_try_link "$LINENO"; then : 8924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8925 8926fi 8927rm -f core conftest.err conftest.$ac_objext \ 8928 conftest$ac_exeext conftest.$ac_ext 8929 LDFLAGS="$save_LDFLAGS" 8930 else 8931 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' 8932 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' 8933 fi 8934 archive_cmds_need_lc='no' 8935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8936 hardcode_libdir_separator=: 8937 inherit_rpath=yes 8938 link_all_deplibs=yes 8939 ;; 8940 8941 netbsd*) 8942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8944 else 8945 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8946 fi 8947 hardcode_libdir_flag_spec='-R$libdir' 8948 hardcode_direct=yes 8949 hardcode_shlibpath_var=no 8950 ;; 8951 8952 newsos6) 8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8954 hardcode_direct=yes 8955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8956 hardcode_libdir_separator=: 8957 hardcode_shlibpath_var=no 8958 ;; 8959 8960 *nto* | *qnx*) 8961 ;; 8962 8963 openbsd*) 8964 if test -f /usr/libexec/ld.so; then 8965 hardcode_direct=yes 8966 hardcode_shlibpath_var=no 8967 hardcode_direct_absolute=yes 8968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8970 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8971 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8972 export_dynamic_flag_spec='${wl}-E' 8973 else 8974 case $host_os in 8975 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8977 hardcode_libdir_flag_spec='-R$libdir' 8978 ;; 8979 *) 8980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8982 ;; 8983 esac 8984 fi 8985 else 8986 ld_shlibs=no 8987 fi 8988 ;; 8989 8990 os2*) 8991 hardcode_libdir_flag_spec='-L$libdir' 8992 hardcode_minus_L=yes 8993 allow_undefined_flag=unsupported 8994 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' 8995 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8996 ;; 8997 8998 osf3*) 8999 if test "$GCC" = yes; then 9000 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9001 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' 9002 else 9003 allow_undefined_flag=' -expect_unresolved \*' 9004 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' 9005 fi 9006 archive_cmds_need_lc='no' 9007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9008 hardcode_libdir_separator=: 9009 ;; 9010 9011 osf4* | osf5*) # as osf3* with the addition of -msym flag 9012 if test "$GCC" = yes; then 9013 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9014 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9016 else 9017 allow_undefined_flag=' -expect_unresolved \*' 9018 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' 9019 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~ 9020 $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' 9021 9022 # Both c and cxx compiler support -rpath directly 9023 hardcode_libdir_flag_spec='-rpath $libdir' 9024 fi 9025 archive_cmds_need_lc='no' 9026 hardcode_libdir_separator=: 9027 ;; 9028 9029 solaris*) 9030 no_undefined_flag=' -z defs' 9031 if test "$GCC" = yes; then 9032 wlarc='${wl}' 9033 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9035 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9036 else 9037 case `$CC -V 2>&1` in 9038 *"Compilers 5.0"*) 9039 wlarc='' 9040 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9041 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9042 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9043 ;; 9044 *) 9045 wlarc='${wl}' 9046 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9048 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9049 ;; 9050 esac 9051 fi 9052 hardcode_libdir_flag_spec='-R$libdir' 9053 hardcode_shlibpath_var=no 9054 case $host_os in 9055 solaris2.[0-5] | solaris2.[0-5].*) ;; 9056 *) 9057 # The compiler driver will combine and reorder linker options, 9058 # but understands `-z linker_flag'. GCC discards it without `$wl', 9059 # but is careful enough not to reorder. 9060 # Supported since Solaris 2.6 (maybe 2.5.1?) 9061 if test "$GCC" = yes; then 9062 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9063 else 9064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9065 fi 9066 ;; 9067 esac 9068 link_all_deplibs=yes 9069 ;; 9070 9071 sunos4*) 9072 if test "x$host_vendor" = xsequent; then 9073 # Use $CC to link under sequent, because it throws in some extra .o 9074 # files that make .init and .fini sections work. 9075 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9076 else 9077 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9078 fi 9079 hardcode_libdir_flag_spec='-L$libdir' 9080 hardcode_direct=yes 9081 hardcode_minus_L=yes 9082 hardcode_shlibpath_var=no 9083 ;; 9084 9085 sysv4) 9086 case $host_vendor in 9087 sni) 9088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9089 hardcode_direct=yes # is this really true??? 9090 ;; 9091 siemens) 9092 ## LD is ld it makes a PLAMLIB 9093 ## CC just makes a GrossModule. 9094 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9095 reload_cmds='$CC -r -o $output$reload_objs' 9096 hardcode_direct=no 9097 ;; 9098 motorola) 9099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9100 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9101 ;; 9102 esac 9103 runpath_var='LD_RUN_PATH' 9104 hardcode_shlibpath_var=no 9105 ;; 9106 9107 sysv4.3*) 9108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9109 hardcode_shlibpath_var=no 9110 export_dynamic_flag_spec='-Bexport' 9111 ;; 9112 9113 sysv4*MP*) 9114 if test -d /usr/nec; then 9115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9116 hardcode_shlibpath_var=no 9117 runpath_var=LD_RUN_PATH 9118 hardcode_runpath_var=yes 9119 ld_shlibs=yes 9120 fi 9121 ;; 9122 9123 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9124 no_undefined_flag='${wl}-z,text' 9125 archive_cmds_need_lc=no 9126 hardcode_shlibpath_var=no 9127 runpath_var='LD_RUN_PATH' 9128 9129 if test "$GCC" = yes; then 9130 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9131 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9132 else 9133 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9134 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9135 fi 9136 ;; 9137 9138 sysv5* | sco3.2v5* | sco5v6*) 9139 # Note: We can NOT use -z defs as we might desire, because we do not 9140 # link with -lc, and that would cause any symbols used from libc to 9141 # always be unresolved, which means just about no library would 9142 # ever link correctly. If we're not using GNU ld we use -z text 9143 # though, which does catch some bad symbols but isn't as heavy-handed 9144 # as -z defs. 9145 no_undefined_flag='${wl}-z,text' 9146 allow_undefined_flag='${wl}-z,nodefs' 9147 archive_cmds_need_lc=no 9148 hardcode_shlibpath_var=no 9149 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9150 hardcode_libdir_separator=':' 9151 link_all_deplibs=yes 9152 export_dynamic_flag_spec='${wl}-Bexport' 9153 runpath_var='LD_RUN_PATH' 9154 9155 if test "$GCC" = yes; then 9156 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9157 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9158 else 9159 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9160 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9161 fi 9162 ;; 9163 9164 uts4*) 9165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9166 hardcode_libdir_flag_spec='-L$libdir' 9167 hardcode_shlibpath_var=no 9168 ;; 9169 9170 *) 9171 ld_shlibs=no 9172 ;; 9173 esac 9174 9175 if test x$host_vendor = xsni; then 9176 case $host in 9177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9178 export_dynamic_flag_spec='${wl}-Blargedynsym' 9179 ;; 9180 esac 9181 fi 9182 fi 9183 9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9185$as_echo "$ld_shlibs" >&6; } 9186test "$ld_shlibs" = no && can_build_shared=no 9187 9188with_gnu_ld=$with_gnu_ld 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204# 9205# Do we need to explicitly link libc? 9206# 9207case "x$archive_cmds_need_lc" in 9208x|xyes) 9209 # Assume -lc should be added 9210 archive_cmds_need_lc=yes 9211 9212 if test "$enable_shared" = yes && test "$GCC" = yes; then 9213 case $archive_cmds in 9214 *'~'*) 9215 # FIXME: we may have to deal with multi-command sequences. 9216 ;; 9217 '$CC '*) 9218 # Test whether the compiler implicitly links with -lc since on some 9219 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9220 # to ld, don't add -lc before -lgcc. 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9222$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9223if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9224 $as_echo_n "(cached) " >&6 9225else 9226 $RM conftest* 9227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9228 9229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9230 (eval $ac_compile) 2>&5 9231 ac_status=$? 9232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9233 test $ac_status = 0; } 2>conftest.err; then 9234 soname=conftest 9235 lib=conftest 9236 libobjs=conftest.$ac_objext 9237 deplibs= 9238 wl=$lt_prog_compiler_wl 9239 pic_flag=$lt_prog_compiler_pic 9240 compiler_flags=-v 9241 linker_flags=-v 9242 verstring= 9243 output_objdir=. 9244 libname=conftest 9245 lt_save_allow_undefined_flag=$allow_undefined_flag 9246 allow_undefined_flag= 9247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9248 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9249 ac_status=$? 9250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9251 test $ac_status = 0; } 9252 then 9253 lt_cv_archive_cmds_need_lc=no 9254 else 9255 lt_cv_archive_cmds_need_lc=yes 9256 fi 9257 allow_undefined_flag=$lt_save_allow_undefined_flag 9258 else 9259 cat conftest.err 1>&5 9260 fi 9261 $RM conftest* 9262 9263fi 9264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9265$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9266 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9267 ;; 9268 esac 9269 fi 9270 ;; 9271esac 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9430$as_echo_n "checking dynamic linker characteristics... " >&6; } 9431 9432if test "$GCC" = yes; then 9433 case $host_os in 9434 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9435 *) lt_awk_arg="/^libraries:/" ;; 9436 esac 9437 case $host_os in 9438 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9439 *) lt_sed_strip_eq="s,=/,/,g" ;; 9440 esac 9441 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9442 case $lt_search_path_spec in 9443 *\;*) 9444 # if the path contains ";" then we assume it to be the separator 9445 # otherwise default to the standard path separator (i.e. ":") - it is 9446 # assumed that no part of a normal pathname contains ";" but that should 9447 # okay in the real world where ";" in dirpaths is itself problematic. 9448 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9449 ;; 9450 *) 9451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9452 ;; 9453 esac 9454 # Ok, now we have the path, separated by spaces, we can step through it 9455 # and add multilib dir if necessary. 9456 lt_tmp_lt_search_path_spec= 9457 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9458 for lt_sys_path in $lt_search_path_spec; do 9459 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9460 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9461 else 9462 test -d "$lt_sys_path" && \ 9463 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9464 fi 9465 done 9466 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9467BEGIN {RS=" "; FS="/|\n";} { 9468 lt_foo=""; 9469 lt_count=0; 9470 for (lt_i = NF; lt_i > 0; lt_i--) { 9471 if ($lt_i != "" && $lt_i != ".") { 9472 if ($lt_i == "..") { 9473 lt_count++; 9474 } else { 9475 if (lt_count == 0) { 9476 lt_foo="/" $lt_i lt_foo; 9477 } else { 9478 lt_count--; 9479 } 9480 } 9481 } 9482 } 9483 if (lt_foo != "") { lt_freq[lt_foo]++; } 9484 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9485}'` 9486 # AWK program above erroneously prepends '/' to C:/dos/paths 9487 # for these hosts. 9488 case $host_os in 9489 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9490 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9491 esac 9492 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9493else 9494 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9495fi 9496library_names_spec= 9497libname_spec='lib$name' 9498soname_spec= 9499shrext_cmds=".so" 9500postinstall_cmds= 9501postuninstall_cmds= 9502finish_cmds= 9503finish_eval= 9504shlibpath_var= 9505shlibpath_overrides_runpath=unknown 9506version_type=none 9507dynamic_linker="$host_os ld.so" 9508sys_lib_dlsearch_path_spec="/lib /usr/lib" 9509need_lib_prefix=unknown 9510hardcode_into_libs=no 9511 9512# when you set need_version to no, make sure it does not cause -set_version 9513# flags to be left without arguments 9514need_version=unknown 9515 9516case $host_os in 9517aix3*) 9518 version_type=linux 9519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9520 shlibpath_var=LIBPATH 9521 9522 # AIX 3 has no versioning support, so we append a major version to the name. 9523 soname_spec='${libname}${release}${shared_ext}$major' 9524 ;; 9525 9526aix[4-9]*) 9527 version_type=linux 9528 need_lib_prefix=no 9529 need_version=no 9530 hardcode_into_libs=yes 9531 if test "$host_cpu" = ia64; then 9532 # AIX 5 supports IA64 9533 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9534 shlibpath_var=LD_LIBRARY_PATH 9535 else 9536 # With GCC up to 2.95.x, collect2 would create an import file 9537 # for dependence libraries. The import file would start with 9538 # the line `#! .'. This would cause the generated library to 9539 # depend on `.', always an invalid library. This was fixed in 9540 # development snapshots of GCC prior to 3.0. 9541 case $host_os in 9542 aix4 | aix4.[01] | aix4.[01].*) 9543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9544 echo ' yes ' 9545 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9546 : 9547 else 9548 can_build_shared=no 9549 fi 9550 ;; 9551 esac 9552 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9553 # soname into executable. Probably we can add versioning support to 9554 # collect2, so additional links can be useful in future. 9555 if test "$aix_use_runtimelinking" = yes; then 9556 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9557 # instead of lib<name>.a to let people know that these are not 9558 # typical AIX shared libraries. 9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9560 else 9561 # We preserve .a as extension for shared libraries through AIX4.2 9562 # and later when we are not doing run time linking. 9563 library_names_spec='${libname}${release}.a $libname.a' 9564 soname_spec='${libname}${release}${shared_ext}$major' 9565 fi 9566 shlibpath_var=LIBPATH 9567 fi 9568 ;; 9569 9570amigaos*) 9571 case $host_cpu in 9572 powerpc) 9573 # Since July 2007 AmigaOS4 officially supports .so libraries. 9574 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9576 ;; 9577 m68k) 9578 library_names_spec='$libname.ixlibrary $libname.a' 9579 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9580 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' 9581 ;; 9582 esac 9583 ;; 9584 9585beos*) 9586 library_names_spec='${libname}${shared_ext}' 9587 dynamic_linker="$host_os ld.so" 9588 shlibpath_var=LIBRARY_PATH 9589 ;; 9590 9591bsdi[45]*) 9592 version_type=linux 9593 need_version=no 9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9595 soname_spec='${libname}${release}${shared_ext}$major' 9596 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9597 shlibpath_var=LD_LIBRARY_PATH 9598 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9599 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9600 # the default ld.so.conf also contains /usr/contrib/lib and 9601 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9602 # libtool to hard-code these into programs 9603 ;; 9604 9605cygwin* | mingw* | pw32* | cegcc*) 9606 version_type=windows 9607 shrext_cmds=".dll" 9608 need_version=no 9609 need_lib_prefix=no 9610 9611 case $GCC,$host_os in 9612 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9613 library_names_spec='$libname.dll.a' 9614 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9615 postinstall_cmds='base_file=`basename \${file}`~ 9616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9617 dldir=$destdir/`dirname \$dlpath`~ 9618 test -d \$dldir || mkdir -p \$dldir~ 9619 $install_prog $dir/$dlname \$dldir/$dlname~ 9620 chmod a+x \$dldir/$dlname~ 9621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9623 fi' 9624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9625 dlpath=$dir/\$dldll~ 9626 $RM \$dlpath' 9627 shlibpath_overrides_runpath=yes 9628 9629 case $host_os in 9630 cygwin*) 9631 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9633 9634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9635 ;; 9636 mingw* | cegcc*) 9637 # MinGW DLLs use traditional 'lib' prefix 9638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9639 ;; 9640 pw32*) 9641 # pw32 DLLs use 'pw' prefix rather than 'lib' 9642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9643 ;; 9644 esac 9645 ;; 9646 9647 *) 9648 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9649 ;; 9650 esac 9651 dynamic_linker='Win32 ld.exe' 9652 # FIXME: first we should search . and the directory the executable is in 9653 shlibpath_var=PATH 9654 ;; 9655 9656darwin* | rhapsody*) 9657 dynamic_linker="$host_os dyld" 9658 version_type=darwin 9659 need_lib_prefix=no 9660 need_version=no 9661 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9662 soname_spec='${libname}${release}${major}$shared_ext' 9663 shlibpath_overrides_runpath=yes 9664 shlibpath_var=DYLD_LIBRARY_PATH 9665 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9666 9667 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9669 ;; 9670 9671dgux*) 9672 version_type=linux 9673 need_lib_prefix=no 9674 need_version=no 9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9676 soname_spec='${libname}${release}${shared_ext}$major' 9677 shlibpath_var=LD_LIBRARY_PATH 9678 ;; 9679 9680freebsd* | dragonfly*) 9681 # DragonFly does not have aout. When/if they implement a new 9682 # versioning mechanism, adjust this. 9683 if test -x /usr/bin/objformat; then 9684 objformat=`/usr/bin/objformat` 9685 else 9686 case $host_os in 9687 freebsd[23].*) objformat=aout ;; 9688 *) objformat=elf ;; 9689 esac 9690 fi 9691 version_type=freebsd-$objformat 9692 case $version_type in 9693 freebsd-elf*) 9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9695 need_version=no 9696 need_lib_prefix=no 9697 ;; 9698 freebsd-*) 9699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9700 need_version=yes 9701 ;; 9702 esac 9703 shlibpath_var=LD_LIBRARY_PATH 9704 case $host_os in 9705 freebsd2.*) 9706 shlibpath_overrides_runpath=yes 9707 ;; 9708 freebsd3.[01]* | freebsdelf3.[01]*) 9709 shlibpath_overrides_runpath=yes 9710 hardcode_into_libs=yes 9711 ;; 9712 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9713 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9714 shlibpath_overrides_runpath=no 9715 hardcode_into_libs=yes 9716 ;; 9717 *) # from 4.6 on, and DragonFly 9718 shlibpath_overrides_runpath=yes 9719 hardcode_into_libs=yes 9720 ;; 9721 esac 9722 ;; 9723 9724gnu*) 9725 version_type=linux 9726 need_lib_prefix=no 9727 need_version=no 9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 shlibpath_var=LD_LIBRARY_PATH 9731 hardcode_into_libs=yes 9732 ;; 9733 9734haiku*) 9735 version_type=linux 9736 need_lib_prefix=no 9737 need_version=no 9738 dynamic_linker="$host_os runtime_loader" 9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9740 soname_spec='${libname}${release}${shared_ext}$major' 9741 shlibpath_var=LIBRARY_PATH 9742 shlibpath_overrides_runpath=yes 9743 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 9744 hardcode_into_libs=yes 9745 ;; 9746 9747hpux9* | hpux10* | hpux11*) 9748 # Give a soname corresponding to the major version so that dld.sl refuses to 9749 # link against other versions. 9750 version_type=sunos 9751 need_lib_prefix=no 9752 need_version=no 9753 case $host_cpu in 9754 ia64*) 9755 shrext_cmds='.so' 9756 hardcode_into_libs=yes 9757 dynamic_linker="$host_os dld.so" 9758 shlibpath_var=LD_LIBRARY_PATH 9759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9761 soname_spec='${libname}${release}${shared_ext}$major' 9762 if test "X$HPUX_IA64_MODE" = X32; then 9763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9764 else 9765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9766 fi 9767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9768 ;; 9769 hppa*64*) 9770 shrext_cmds='.sl' 9771 hardcode_into_libs=yes 9772 dynamic_linker="$host_os dld.sl" 9773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9776 soname_spec='${libname}${release}${shared_ext}$major' 9777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9779 ;; 9780 *) 9781 shrext_cmds='.sl' 9782 dynamic_linker="$host_os dld.sl" 9783 shlibpath_var=SHLIB_PATH 9784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9786 soname_spec='${libname}${release}${shared_ext}$major' 9787 ;; 9788 esac 9789 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9790 postinstall_cmds='chmod 555 $lib' 9791 # or fails outright, so override atomically: 9792 install_override_mode=555 9793 ;; 9794 9795interix[3-9]*) 9796 version_type=linux 9797 need_lib_prefix=no 9798 need_version=no 9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9800 soname_spec='${libname}${release}${shared_ext}$major' 9801 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9802 shlibpath_var=LD_LIBRARY_PATH 9803 shlibpath_overrides_runpath=no 9804 hardcode_into_libs=yes 9805 ;; 9806 9807irix5* | irix6* | nonstopux*) 9808 case $host_os in 9809 nonstopux*) version_type=nonstopux ;; 9810 *) 9811 if test "$lt_cv_prog_gnu_ld" = yes; then 9812 version_type=linux 9813 else 9814 version_type=irix 9815 fi ;; 9816 esac 9817 need_lib_prefix=no 9818 need_version=no 9819 soname_spec='${libname}${release}${shared_ext}$major' 9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9821 case $host_os in 9822 irix5* | nonstopux*) 9823 libsuff= shlibsuff= 9824 ;; 9825 *) 9826 case $LD in # libtool.m4 will add one of these switches to LD 9827 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9828 libsuff= shlibsuff= libmagic=32-bit;; 9829 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9830 libsuff=32 shlibsuff=N32 libmagic=N32;; 9831 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9832 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9833 *) libsuff= shlibsuff= libmagic=never-match;; 9834 esac 9835 ;; 9836 esac 9837 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9838 shlibpath_overrides_runpath=no 9839 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9840 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9841 hardcode_into_libs=yes 9842 ;; 9843 9844# No shared lib support for Linux oldld, aout, or coff. 9845linux*oldld* | linux*aout* | linux*coff*) 9846 dynamic_linker=no 9847 ;; 9848 9849# This must be Linux ELF. 9850linux* | k*bsd*-gnu | kopensolaris*-gnu) 9851 version_type=linux 9852 need_lib_prefix=no 9853 need_version=no 9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9855 soname_spec='${libname}${release}${shared_ext}$major' 9856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9857 shlibpath_var=LD_LIBRARY_PATH 9858 shlibpath_overrides_runpath=no 9859 9860 # Some binutils ld are patched to set DT_RUNPATH 9861 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 9862 $as_echo_n "(cached) " >&6 9863else 9864 lt_cv_shlibpath_overrides_runpath=no 9865 save_LDFLAGS=$LDFLAGS 9866 save_libdir=$libdir 9867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9870/* end confdefs.h. */ 9871 9872int 9873main () 9874{ 9875 9876 ; 9877 return 0; 9878} 9879_ACEOF 9880if ac_fn_c_try_link "$LINENO"; then : 9881 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9882 lt_cv_shlibpath_overrides_runpath=yes 9883fi 9884fi 9885rm -f core conftest.err conftest.$ac_objext \ 9886 conftest$ac_exeext conftest.$ac_ext 9887 LDFLAGS=$save_LDFLAGS 9888 libdir=$save_libdir 9889 9890fi 9891 9892 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 9893 9894 # This implies no fast_install, which is unacceptable. 9895 # Some rework will be needed to allow for fast_install 9896 # before this can be enabled. 9897 hardcode_into_libs=yes 9898 9899 # Append ld.so.conf contents to the search path 9900 if test -f /etc/ld.so.conf; then 9901 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' ' '` 9902 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9903 fi 9904 9905 # We used to test for /lib/ld.so.1 and disable shared libraries on 9906 # powerpc, because MkLinux only supported shared libraries with the 9907 # GNU dynamic linker. Since this was broken with cross compilers, 9908 # most powerpc-linux boxes support dynamic linking these days and 9909 # people can always --disable-shared, the test was removed, and we 9910 # assume the GNU/Linux dynamic linker is in use. 9911 dynamic_linker='GNU/Linux ld.so' 9912 ;; 9913 9914netbsd*) 9915 version_type=sunos 9916 need_lib_prefix=no 9917 need_version=no 9918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9921 dynamic_linker='NetBSD (a.out) ld.so' 9922 else 9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9924 soname_spec='${libname}${release}${shared_ext}$major' 9925 dynamic_linker='NetBSD ld.elf_so' 9926 fi 9927 shlibpath_var=LD_LIBRARY_PATH 9928 shlibpath_overrides_runpath=yes 9929 hardcode_into_libs=yes 9930 ;; 9931 9932newsos6) 9933 version_type=linux 9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9935 shlibpath_var=LD_LIBRARY_PATH 9936 shlibpath_overrides_runpath=yes 9937 ;; 9938 9939*nto* | *qnx*) 9940 version_type=qnx 9941 need_lib_prefix=no 9942 need_version=no 9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9944 soname_spec='${libname}${release}${shared_ext}$major' 9945 shlibpath_var=LD_LIBRARY_PATH 9946 shlibpath_overrides_runpath=no 9947 hardcode_into_libs=yes 9948 dynamic_linker='ldqnx.so' 9949 ;; 9950 9951openbsd*) 9952 version_type=sunos 9953 sys_lib_dlsearch_path_spec="/usr/lib" 9954 need_lib_prefix=no 9955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9956 case $host_os in 9957 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9958 *) need_version=no ;; 9959 esac 9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9962 shlibpath_var=LD_LIBRARY_PATH 9963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9964 case $host_os in 9965 openbsd2.[89] | openbsd2.[89].*) 9966 shlibpath_overrides_runpath=no 9967 ;; 9968 *) 9969 shlibpath_overrides_runpath=yes 9970 ;; 9971 esac 9972 else 9973 shlibpath_overrides_runpath=yes 9974 fi 9975 ;; 9976 9977os2*) 9978 libname_spec='$name' 9979 shrext_cmds=".dll" 9980 need_lib_prefix=no 9981 library_names_spec='$libname${shared_ext} $libname.a' 9982 dynamic_linker='OS/2 ld.exe' 9983 shlibpath_var=LIBPATH 9984 ;; 9985 9986osf3* | osf4* | osf5*) 9987 version_type=osf 9988 need_lib_prefix=no 9989 need_version=no 9990 soname_spec='${libname}${release}${shared_ext}$major' 9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9992 shlibpath_var=LD_LIBRARY_PATH 9993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9995 ;; 9996 9997rdos*) 9998 dynamic_linker=no 9999 ;; 10000 10001solaris*) 10002 version_type=linux 10003 need_lib_prefix=no 10004 need_version=no 10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10006 soname_spec='${libname}${release}${shared_ext}$major' 10007 shlibpath_var=LD_LIBRARY_PATH 10008 shlibpath_overrides_runpath=yes 10009 hardcode_into_libs=yes 10010 # ldd complains unless libraries are executable 10011 postinstall_cmds='chmod +x $lib' 10012 ;; 10013 10014sunos4*) 10015 version_type=sunos 10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10018 shlibpath_var=LD_LIBRARY_PATH 10019 shlibpath_overrides_runpath=yes 10020 if test "$with_gnu_ld" = yes; then 10021 need_lib_prefix=no 10022 fi 10023 need_version=yes 10024 ;; 10025 10026sysv4 | sysv4.3*) 10027 version_type=linux 10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10029 soname_spec='${libname}${release}${shared_ext}$major' 10030 shlibpath_var=LD_LIBRARY_PATH 10031 case $host_vendor in 10032 sni) 10033 shlibpath_overrides_runpath=no 10034 need_lib_prefix=no 10035 runpath_var=LD_RUN_PATH 10036 ;; 10037 siemens) 10038 need_lib_prefix=no 10039 ;; 10040 motorola) 10041 need_lib_prefix=no 10042 need_version=no 10043 shlibpath_overrides_runpath=no 10044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10045 ;; 10046 esac 10047 ;; 10048 10049sysv4*MP*) 10050 if test -d /usr/nec ;then 10051 version_type=linux 10052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10053 soname_spec='$libname${shared_ext}.$major' 10054 shlibpath_var=LD_LIBRARY_PATH 10055 fi 10056 ;; 10057 10058sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10059 version_type=freebsd-elf 10060 need_lib_prefix=no 10061 need_version=no 10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10063 soname_spec='${libname}${release}${shared_ext}$major' 10064 shlibpath_var=LD_LIBRARY_PATH 10065 shlibpath_overrides_runpath=yes 10066 hardcode_into_libs=yes 10067 if test "$with_gnu_ld" = yes; then 10068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10069 else 10070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10071 case $host_os in 10072 sco3.2v5*) 10073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10074 ;; 10075 esac 10076 fi 10077 sys_lib_dlsearch_path_spec='/usr/lib' 10078 ;; 10079 10080tpf*) 10081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10082 version_type=linux 10083 need_lib_prefix=no 10084 need_version=no 10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10086 shlibpath_var=LD_LIBRARY_PATH 10087 shlibpath_overrides_runpath=no 10088 hardcode_into_libs=yes 10089 ;; 10090 10091uts4*) 10092 version_type=linux 10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10094 soname_spec='${libname}${release}${shared_ext}$major' 10095 shlibpath_var=LD_LIBRARY_PATH 10096 ;; 10097 10098*) 10099 dynamic_linker=no 10100 ;; 10101esac 10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10103$as_echo "$dynamic_linker" >&6; } 10104test "$dynamic_linker" = no && can_build_shared=no 10105 10106variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10107if test "$GCC" = yes; then 10108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10109fi 10110 10111if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10112 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10113fi 10114if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10115 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10116fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10210$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10211hardcode_action= 10212if test -n "$hardcode_libdir_flag_spec" || 10213 test -n "$runpath_var" || 10214 test "X$hardcode_automatic" = "Xyes" ; then 10215 10216 # We can hardcode non-existent directories. 10217 if test "$hardcode_direct" != no && 10218 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10219 # have to relink, otherwise we might link with an installed library 10220 # when we should be linking with a yet-to-be-installed one 10221 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10222 test "$hardcode_minus_L" != no; then 10223 # Linking always hardcodes the temporary library directory. 10224 hardcode_action=relink 10225 else 10226 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10227 hardcode_action=immediate 10228 fi 10229else 10230 # We cannot hardcode anything, or else we can only hardcode existing 10231 # directories. 10232 hardcode_action=unsupported 10233fi 10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10235$as_echo "$hardcode_action" >&6; } 10236 10237if test "$hardcode_action" = relink || 10238 test "$inherit_rpath" = yes; then 10239 # Fast installation is not supported 10240 enable_fast_install=no 10241elif test "$shlibpath_overrides_runpath" = yes || 10242 test "$enable_shared" = no; then 10243 # Fast installation is not necessary 10244 enable_fast_install=needless 10245fi 10246 10247 10248 10249 10250 10251 10252 if test "x$enable_dlopen" != xyes; then 10253 enable_dlopen=unknown 10254 enable_dlopen_self=unknown 10255 enable_dlopen_self_static=unknown 10256else 10257 lt_cv_dlopen=no 10258 lt_cv_dlopen_libs= 10259 10260 case $host_os in 10261 beos*) 10262 lt_cv_dlopen="load_add_on" 10263 lt_cv_dlopen_libs= 10264 lt_cv_dlopen_self=yes 10265 ;; 10266 10267 mingw* | pw32* | cegcc*) 10268 lt_cv_dlopen="LoadLibrary" 10269 lt_cv_dlopen_libs= 10270 ;; 10271 10272 cygwin*) 10273 lt_cv_dlopen="dlopen" 10274 lt_cv_dlopen_libs= 10275 ;; 10276 10277 darwin*) 10278 # if libdl is installed we need to link against it 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10280$as_echo_n "checking for dlopen in -ldl... " >&6; } 10281if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10282 $as_echo_n "(cached) " >&6 10283else 10284 ac_check_lib_save_LIBS=$LIBS 10285LIBS="-ldl $LIBS" 10286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288 10289/* Override any GCC internal prototype to avoid an error. 10290 Use char because int might match the return type of a GCC 10291 builtin and then its argument prototype would still apply. */ 10292#ifdef __cplusplus 10293extern "C" 10294#endif 10295char dlopen (); 10296int 10297main () 10298{ 10299return dlopen (); 10300 ; 10301 return 0; 10302} 10303_ACEOF 10304if ac_fn_c_try_link "$LINENO"; then : 10305 ac_cv_lib_dl_dlopen=yes 10306else 10307 ac_cv_lib_dl_dlopen=no 10308fi 10309rm -f core conftest.err conftest.$ac_objext \ 10310 conftest$ac_exeext conftest.$ac_ext 10311LIBS=$ac_check_lib_save_LIBS 10312fi 10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10314$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10315if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10317else 10318 10319 lt_cv_dlopen="dyld" 10320 lt_cv_dlopen_libs= 10321 lt_cv_dlopen_self=yes 10322 10323fi 10324 10325 ;; 10326 10327 *) 10328 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10329if test "x$ac_cv_func_shl_load" = x""yes; then : 10330 lt_cv_dlopen="shl_load" 10331else 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10333$as_echo_n "checking for shl_load in -ldld... " >&6; } 10334if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10335 $as_echo_n "(cached) " >&6 10336else 10337 ac_check_lib_save_LIBS=$LIBS 10338LIBS="-ldld $LIBS" 10339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10340/* end confdefs.h. */ 10341 10342/* Override any GCC internal prototype to avoid an error. 10343 Use char because int might match the return type of a GCC 10344 builtin and then its argument prototype would still apply. */ 10345#ifdef __cplusplus 10346extern "C" 10347#endif 10348char shl_load (); 10349int 10350main () 10351{ 10352return shl_load (); 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357if ac_fn_c_try_link "$LINENO"; then : 10358 ac_cv_lib_dld_shl_load=yes 10359else 10360 ac_cv_lib_dld_shl_load=no 10361fi 10362rm -f core conftest.err conftest.$ac_objext \ 10363 conftest$ac_exeext conftest.$ac_ext 10364LIBS=$ac_check_lib_save_LIBS 10365fi 10366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10367$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10368if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10369 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10370else 10371 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10372if test "x$ac_cv_func_dlopen" = x""yes; then : 10373 lt_cv_dlopen="dlopen" 10374else 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10376$as_echo_n "checking for dlopen in -ldl... " >&6; } 10377if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10378 $as_echo_n "(cached) " >&6 10379else 10380 ac_check_lib_save_LIBS=$LIBS 10381LIBS="-ldl $LIBS" 10382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10383/* end confdefs.h. */ 10384 10385/* Override any GCC internal prototype to avoid an error. 10386 Use char because int might match the return type of a GCC 10387 builtin and then its argument prototype would still apply. */ 10388#ifdef __cplusplus 10389extern "C" 10390#endif 10391char dlopen (); 10392int 10393main () 10394{ 10395return dlopen (); 10396 ; 10397 return 0; 10398} 10399_ACEOF 10400if ac_fn_c_try_link "$LINENO"; then : 10401 ac_cv_lib_dl_dlopen=yes 10402else 10403 ac_cv_lib_dl_dlopen=no 10404fi 10405rm -f core conftest.err conftest.$ac_objext \ 10406 conftest$ac_exeext conftest.$ac_ext 10407LIBS=$ac_check_lib_save_LIBS 10408fi 10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10410$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10411if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10413else 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10415$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10416if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10417 $as_echo_n "(cached) " >&6 10418else 10419 ac_check_lib_save_LIBS=$LIBS 10420LIBS="-lsvld $LIBS" 10421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423 10424/* Override any GCC internal prototype to avoid an error. 10425 Use char because int might match the return type of a GCC 10426 builtin and then its argument prototype would still apply. */ 10427#ifdef __cplusplus 10428extern "C" 10429#endif 10430char dlopen (); 10431int 10432main () 10433{ 10434return dlopen (); 10435 ; 10436 return 0; 10437} 10438_ACEOF 10439if ac_fn_c_try_link "$LINENO"; then : 10440 ac_cv_lib_svld_dlopen=yes 10441else 10442 ac_cv_lib_svld_dlopen=no 10443fi 10444rm -f core conftest.err conftest.$ac_objext \ 10445 conftest$ac_exeext conftest.$ac_ext 10446LIBS=$ac_check_lib_save_LIBS 10447fi 10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10449$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10450if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10452else 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10454$as_echo_n "checking for dld_link in -ldld... " >&6; } 10455if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10456 $as_echo_n "(cached) " >&6 10457else 10458 ac_check_lib_save_LIBS=$LIBS 10459LIBS="-ldld $LIBS" 10460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10461/* end confdefs.h. */ 10462 10463/* Override any GCC internal prototype to avoid an error. 10464 Use char because int might match the return type of a GCC 10465 builtin and then its argument prototype would still apply. */ 10466#ifdef __cplusplus 10467extern "C" 10468#endif 10469char dld_link (); 10470int 10471main () 10472{ 10473return dld_link (); 10474 ; 10475 return 0; 10476} 10477_ACEOF 10478if ac_fn_c_try_link "$LINENO"; then : 10479 ac_cv_lib_dld_dld_link=yes 10480else 10481 ac_cv_lib_dld_dld_link=no 10482fi 10483rm -f core conftest.err conftest.$ac_objext \ 10484 conftest$ac_exeext conftest.$ac_ext 10485LIBS=$ac_check_lib_save_LIBS 10486fi 10487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10488$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10489if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10490 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10491fi 10492 10493 10494fi 10495 10496 10497fi 10498 10499 10500fi 10501 10502 10503fi 10504 10505 10506fi 10507 10508 ;; 10509 esac 10510 10511 if test "x$lt_cv_dlopen" != xno; then 10512 enable_dlopen=yes 10513 else 10514 enable_dlopen=no 10515 fi 10516 10517 case $lt_cv_dlopen in 10518 dlopen) 10519 save_CPPFLAGS="$CPPFLAGS" 10520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10521 10522 save_LDFLAGS="$LDFLAGS" 10523 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10524 10525 save_LIBS="$LIBS" 10526 LIBS="$lt_cv_dlopen_libs $LIBS" 10527 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10529$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10530if test "${lt_cv_dlopen_self+set}" = set; then : 10531 $as_echo_n "(cached) " >&6 10532else 10533 if test "$cross_compiling" = yes; then : 10534 lt_cv_dlopen_self=cross 10535else 10536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10537 lt_status=$lt_dlunknown 10538 cat > conftest.$ac_ext <<_LT_EOF 10539#line 10539 "configure" 10540#include "confdefs.h" 10541 10542#if HAVE_DLFCN_H 10543#include <dlfcn.h> 10544#endif 10545 10546#include <stdio.h> 10547 10548#ifdef RTLD_GLOBAL 10549# define LT_DLGLOBAL RTLD_GLOBAL 10550#else 10551# ifdef DL_GLOBAL 10552# define LT_DLGLOBAL DL_GLOBAL 10553# else 10554# define LT_DLGLOBAL 0 10555# endif 10556#endif 10557 10558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10559 find out it does not work in some platform. */ 10560#ifndef LT_DLLAZY_OR_NOW 10561# ifdef RTLD_LAZY 10562# define LT_DLLAZY_OR_NOW RTLD_LAZY 10563# else 10564# ifdef DL_LAZY 10565# define LT_DLLAZY_OR_NOW DL_LAZY 10566# else 10567# ifdef RTLD_NOW 10568# define LT_DLLAZY_OR_NOW RTLD_NOW 10569# else 10570# ifdef DL_NOW 10571# define LT_DLLAZY_OR_NOW DL_NOW 10572# else 10573# define LT_DLLAZY_OR_NOW 0 10574# endif 10575# endif 10576# endif 10577# endif 10578#endif 10579 10580/* When -fvisbility=hidden is used, assume the code has been annotated 10581 correspondingly for the symbols needed. */ 10582#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10583void fnord () __attribute__((visibility("default"))); 10584#endif 10585 10586void fnord () { int i=42; } 10587int main () 10588{ 10589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10590 int status = $lt_dlunknown; 10591 10592 if (self) 10593 { 10594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10595 else 10596 { 10597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10598 else puts (dlerror ()); 10599 } 10600 /* dlclose (self); */ 10601 } 10602 else 10603 puts (dlerror ()); 10604 10605 return status; 10606} 10607_LT_EOF 10608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10609 (eval $ac_link) 2>&5 10610 ac_status=$? 10611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10613 (./conftest; exit; ) >&5 2>/dev/null 10614 lt_status=$? 10615 case x$lt_status in 10616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10618 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10619 esac 10620 else : 10621 # compilation failed 10622 lt_cv_dlopen_self=no 10623 fi 10624fi 10625rm -fr conftest* 10626 10627 10628fi 10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10630$as_echo "$lt_cv_dlopen_self" >&6; } 10631 10632 if test "x$lt_cv_dlopen_self" = xyes; then 10633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10635$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10636if test "${lt_cv_dlopen_self_static+set}" = set; then : 10637 $as_echo_n "(cached) " >&6 10638else 10639 if test "$cross_compiling" = yes; then : 10640 lt_cv_dlopen_self_static=cross 10641else 10642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10643 lt_status=$lt_dlunknown 10644 cat > conftest.$ac_ext <<_LT_EOF 10645#line 10645 "configure" 10646#include "confdefs.h" 10647 10648#if HAVE_DLFCN_H 10649#include <dlfcn.h> 10650#endif 10651 10652#include <stdio.h> 10653 10654#ifdef RTLD_GLOBAL 10655# define LT_DLGLOBAL RTLD_GLOBAL 10656#else 10657# ifdef DL_GLOBAL 10658# define LT_DLGLOBAL DL_GLOBAL 10659# else 10660# define LT_DLGLOBAL 0 10661# endif 10662#endif 10663 10664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10665 find out it does not work in some platform. */ 10666#ifndef LT_DLLAZY_OR_NOW 10667# ifdef RTLD_LAZY 10668# define LT_DLLAZY_OR_NOW RTLD_LAZY 10669# else 10670# ifdef DL_LAZY 10671# define LT_DLLAZY_OR_NOW DL_LAZY 10672# else 10673# ifdef RTLD_NOW 10674# define LT_DLLAZY_OR_NOW RTLD_NOW 10675# else 10676# ifdef DL_NOW 10677# define LT_DLLAZY_OR_NOW DL_NOW 10678# else 10679# define LT_DLLAZY_OR_NOW 0 10680# endif 10681# endif 10682# endif 10683# endif 10684#endif 10685 10686/* When -fvisbility=hidden is used, assume the code has been annotated 10687 correspondingly for the symbols needed. */ 10688#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10689void fnord () __attribute__((visibility("default"))); 10690#endif 10691 10692void fnord () { int i=42; } 10693int main () 10694{ 10695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10696 int status = $lt_dlunknown; 10697 10698 if (self) 10699 { 10700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10701 else 10702 { 10703 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10704 else puts (dlerror ()); 10705 } 10706 /* dlclose (self); */ 10707 } 10708 else 10709 puts (dlerror ()); 10710 10711 return status; 10712} 10713_LT_EOF 10714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10715 (eval $ac_link) 2>&5 10716 ac_status=$? 10717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10718 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10719 (./conftest; exit; ) >&5 2>/dev/null 10720 lt_status=$? 10721 case x$lt_status in 10722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10724 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10725 esac 10726 else : 10727 # compilation failed 10728 lt_cv_dlopen_self_static=no 10729 fi 10730fi 10731rm -fr conftest* 10732 10733 10734fi 10735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10736$as_echo "$lt_cv_dlopen_self_static" >&6; } 10737 fi 10738 10739 CPPFLAGS="$save_CPPFLAGS" 10740 LDFLAGS="$save_LDFLAGS" 10741 LIBS="$save_LIBS" 10742 ;; 10743 esac 10744 10745 case $lt_cv_dlopen_self in 10746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10747 *) enable_dlopen_self=unknown ;; 10748 esac 10749 10750 case $lt_cv_dlopen_self_static in 10751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10752 *) enable_dlopen_self_static=unknown ;; 10753 esac 10754fi 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772striplib= 10773old_striplib= 10774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10775$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10776if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10777 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10778 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10780$as_echo "yes" >&6; } 10781else 10782# FIXME - insert some real tests, host_os isn't really good enough 10783 case $host_os in 10784 darwin*) 10785 if test -n "$STRIP" ; then 10786 striplib="$STRIP -x" 10787 old_striplib="$STRIP -S" 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10789$as_echo "yes" >&6; } 10790 else 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10792$as_echo "no" >&6; } 10793 fi 10794 ;; 10795 *) 10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10797$as_echo "no" >&6; } 10798 ;; 10799 esac 10800fi 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 # Report which library types will actually be built 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10815$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10817$as_echo "$can_build_shared" >&6; } 10818 10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10820$as_echo_n "checking whether to build shared libraries... " >&6; } 10821 test "$can_build_shared" = "no" && enable_shared=no 10822 10823 # On AIX, shared libraries and static libraries use the same namespace, and 10824 # are all built from PIC. 10825 case $host_os in 10826 aix3*) 10827 test "$enable_shared" = yes && enable_static=no 10828 if test -n "$RANLIB"; then 10829 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10830 postinstall_cmds='$RANLIB $lib' 10831 fi 10832 ;; 10833 10834 aix[4-9]*) 10835 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10836 test "$enable_shared" = yes && enable_static=no 10837 fi 10838 ;; 10839 esac 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10841$as_echo "$enable_shared" >&6; } 10842 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10844$as_echo_n "checking whether to build static libraries... " >&6; } 10845 # Make sure either enable_shared or enable_static is yes. 10846 test "$enable_shared" = yes || enable_static=yes 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10848$as_echo "$enable_static" >&6; } 10849 10850 10851 10852 10853fi 10854ac_ext=c 10855ac_cpp='$CPP $CPPFLAGS' 10856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10858ac_compiler_gnu=$ac_cv_c_compiler_gnu 10859 10860CC="$lt_save_CC" 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 ac_config_commands="$ac_config_commands libtool" 10875 10876 10877 10878 10879# Only expand once: 10880 10881 10882 10883ac_ext=cpp 10884ac_cpp='$CXXCPP $CPPFLAGS' 10885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10888if test -z "$CXX"; then 10889 if test -n "$CCC"; then 10890 CXX=$CCC 10891 else 10892 if test -n "$ac_tool_prefix"; then 10893 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 10894 do 10895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10896set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10898$as_echo_n "checking for $ac_word... " >&6; } 10899if test "${ac_cv_prog_CXX+set}" = set; then : 10900 $as_echo_n "(cached) " >&6 10901else 10902 if test -n "$CXX"; then 10903 ac_cv_prog_CXX="$CXX" # Let the user override the test. 10904else 10905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10906for as_dir in $PATH 10907do 10908 IFS=$as_save_IFS 10909 test -z "$as_dir" && as_dir=. 10910 for ac_exec_ext in '' $ac_executable_extensions; do 10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10914 break 2 10915 fi 10916done 10917 done 10918IFS=$as_save_IFS 10919 10920fi 10921fi 10922CXX=$ac_cv_prog_CXX 10923if test -n "$CXX"; then 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 10925$as_echo "$CXX" >&6; } 10926else 10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10928$as_echo "no" >&6; } 10929fi 10930 10931 10932 test -n "$CXX" && break 10933 done 10934fi 10935if test -z "$CXX"; then 10936 ac_ct_CXX=$CXX 10937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 10938do 10939 # Extract the first word of "$ac_prog", so it can be a program name with args. 10940set dummy $ac_prog; ac_word=$2 10941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10942$as_echo_n "checking for $ac_word... " >&6; } 10943if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 10944 $as_echo_n "(cached) " >&6 10945else 10946 if test -n "$ac_ct_CXX"; then 10947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 10948else 10949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10950for as_dir in $PATH 10951do 10952 IFS=$as_save_IFS 10953 test -z "$as_dir" && as_dir=. 10954 for ac_exec_ext in '' $ac_executable_extensions; do 10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10956 ac_cv_prog_ac_ct_CXX="$ac_prog" 10957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10958 break 2 10959 fi 10960done 10961 done 10962IFS=$as_save_IFS 10963 10964fi 10965fi 10966ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 10967if test -n "$ac_ct_CXX"; then 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 10969$as_echo "$ac_ct_CXX" >&6; } 10970else 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10972$as_echo "no" >&6; } 10973fi 10974 10975 10976 test -n "$ac_ct_CXX" && break 10977done 10978 10979 if test "x$ac_ct_CXX" = x; then 10980 CXX="g++" 10981 else 10982 case $cross_compiling:$ac_tool_warned in 10983yes:) 10984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10986ac_tool_warned=yes ;; 10987esac 10988 CXX=$ac_ct_CXX 10989 fi 10990fi 10991 10992 fi 10993fi 10994# Provide some information about the compiler. 10995$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 10996set X $ac_compile 10997ac_compiler=$2 10998for ac_option in --version -v -V -qversion; do 10999 { { ac_try="$ac_compiler $ac_option >&5" 11000case "(($ac_try" in 11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11002 *) ac_try_echo=$ac_try;; 11003esac 11004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11005$as_echo "$ac_try_echo"; } >&5 11006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11007 ac_status=$? 11008 if test -s conftest.err; then 11009 sed '10a\ 11010... rest of stderr output deleted ... 11011 10q' conftest.err >conftest.er1 11012 cat conftest.er1 >&5 11013 rm -f conftest.er1 conftest.err 11014 fi 11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11016 test $ac_status = 0; } 11017done 11018 11019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 11020$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 11021if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 11022 $as_echo_n "(cached) " >&6 11023else 11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11025/* end confdefs.h. */ 11026 11027int 11028main () 11029{ 11030#ifndef __GNUC__ 11031 choke me 11032#endif 11033 11034 ; 11035 return 0; 11036} 11037_ACEOF 11038if ac_fn_cxx_try_compile "$LINENO"; then : 11039 ac_compiler_gnu=yes 11040else 11041 ac_compiler_gnu=no 11042fi 11043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11044ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 11045 11046fi 11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 11048$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 11049if test $ac_compiler_gnu = yes; then 11050 GXX=yes 11051else 11052 GXX= 11053fi 11054ac_test_CXXFLAGS=${CXXFLAGS+set} 11055ac_save_CXXFLAGS=$CXXFLAGS 11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 11057$as_echo_n "checking whether $CXX accepts -g... " >&6; } 11058if test "${ac_cv_prog_cxx_g+set}" = set; then : 11059 $as_echo_n "(cached) " >&6 11060else 11061 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 11062 ac_cxx_werror_flag=yes 11063 ac_cv_prog_cxx_g=no 11064 CXXFLAGS="-g" 11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11066/* end confdefs.h. */ 11067 11068int 11069main () 11070{ 11071 11072 ; 11073 return 0; 11074} 11075_ACEOF 11076if ac_fn_cxx_try_compile "$LINENO"; then : 11077 ac_cv_prog_cxx_g=yes 11078else 11079 CXXFLAGS="" 11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11081/* end confdefs.h. */ 11082 11083int 11084main () 11085{ 11086 11087 ; 11088 return 0; 11089} 11090_ACEOF 11091if ac_fn_cxx_try_compile "$LINENO"; then : 11092 11093else 11094 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11095 CXXFLAGS="-g" 11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11097/* end confdefs.h. */ 11098 11099int 11100main () 11101{ 11102 11103 ; 11104 return 0; 11105} 11106_ACEOF 11107if ac_fn_cxx_try_compile "$LINENO"; then : 11108 ac_cv_prog_cxx_g=yes 11109fi 11110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11111fi 11112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11113fi 11114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11116fi 11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 11118$as_echo "$ac_cv_prog_cxx_g" >&6; } 11119if test "$ac_test_CXXFLAGS" = set; then 11120 CXXFLAGS=$ac_save_CXXFLAGS 11121elif test $ac_cv_prog_cxx_g = yes; then 11122 if test "$GXX" = yes; then 11123 CXXFLAGS="-g -O2" 11124 else 11125 CXXFLAGS="-g" 11126 fi 11127else 11128 if test "$GXX" = yes; then 11129 CXXFLAGS="-O2" 11130 else 11131 CXXFLAGS= 11132 fi 11133fi 11134ac_ext=c 11135ac_cpp='$CPP $CPPFLAGS' 11136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11138ac_compiler_gnu=$ac_cv_c_compiler_gnu 11139 11140depcc="$CXX" am_compiler_list= 11141 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11143$as_echo_n "checking dependency style of $depcc... " >&6; } 11144if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 11145 $as_echo_n "(cached) " >&6 11146else 11147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11148 # We make a subdir and do the tests there. Otherwise we can end up 11149 # making bogus files that we don't know about and never remove. For 11150 # instance it was reported that on HP-UX the gcc test will end up 11151 # making a dummy file named `D' -- because `-MD' means `put the output 11152 # in D'. 11153 mkdir conftest.dir 11154 # Copy depcomp to subdir because otherwise we won't find it if we're 11155 # using a relative directory. 11156 cp "$am_depcomp" conftest.dir 11157 cd conftest.dir 11158 # We will build objects and dependencies in a subdirectory because 11159 # it helps to detect inapplicable dependency modes. For instance 11160 # both Tru64's cc and ICC support -MD to output dependencies as a 11161 # side effect of compilation, but ICC will put the dependencies in 11162 # the current directory while Tru64 will put them in the object 11163 # directory. 11164 mkdir sub 11165 11166 am_cv_CXX_dependencies_compiler_type=none 11167 if test "$am_compiler_list" = ""; then 11168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11169 fi 11170 am__universal=false 11171 case " $depcc " in #( 11172 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11173 esac 11174 11175 for depmode in $am_compiler_list; do 11176 # Setup a source with many dependencies, because some compilers 11177 # like to wrap large dependency lists on column 80 (with \), and 11178 # we should not choose a depcomp mode which is confused by this. 11179 # 11180 # We need to recreate these files for each test, as the compiler may 11181 # overwrite some of them when testing with obscure command lines. 11182 # This happens at least with the AIX C compiler. 11183 : > sub/conftest.c 11184 for i in 1 2 3 4 5 6; do 11185 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11187 # Solaris 8's {/usr,}/bin/sh. 11188 touch sub/conftst$i.h 11189 done 11190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11191 11192 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11193 # mode. It turns out that the SunPro C++ compiler does not properly 11194 # handle `-M -o', and we need to detect this. Also, some Intel 11195 # versions had trouble with output in subdirs 11196 am__obj=sub/conftest.${OBJEXT-o} 11197 am__minus_obj="-o $am__obj" 11198 case $depmode in 11199 gcc) 11200 # This depmode causes a compiler race in universal mode. 11201 test "$am__universal" = false || continue 11202 ;; 11203 nosideeffect) 11204 # after this tag, mechanisms are not by side-effect, so they'll 11205 # only be used when explicitly requested 11206 if test "x$enable_dependency_tracking" = xyes; then 11207 continue 11208 else 11209 break 11210 fi 11211 ;; 11212 msvisualcpp | msvcmsys) 11213 # This compiler won't grok `-c -o', but also, the minuso test has 11214 # not run yet. These depmodes are late enough in the game, and 11215 # so weak that their functioning should not be impacted. 11216 am__obj=conftest.${OBJEXT-o} 11217 am__minus_obj= 11218 ;; 11219 none) break ;; 11220 esac 11221 if depmode=$depmode \ 11222 source=sub/conftest.c object=$am__obj \ 11223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11224 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11225 >/dev/null 2>conftest.err && 11226 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11228 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11230 # icc doesn't choke on unknown options, it will just issue warnings 11231 # or remarks (even with -Werror). So we grep stderr for any message 11232 # that says an option was ignored or not supported. 11233 # When given -MP, icc 7.0 and 7.1 complain thusly: 11234 # icc: Command line warning: ignoring option '-M'; no argument required 11235 # The diagnosis changed in icc 8.0: 11236 # icc: Command line remark: option '-MP' not supported 11237 if (grep 'ignoring option' conftest.err || 11238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11239 am_cv_CXX_dependencies_compiler_type=$depmode 11240 break 11241 fi 11242 fi 11243 done 11244 11245 cd .. 11246 rm -rf conftest.dir 11247else 11248 am_cv_CXX_dependencies_compiler_type=none 11249fi 11250 11251fi 11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 11253$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 11254CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 11255 11256 if 11257 test "x$enable_dependency_tracking" != xno \ 11258 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 11259 am__fastdepCXX_TRUE= 11260 am__fastdepCXX_FALSE='#' 11261else 11262 am__fastdepCXX_TRUE='#' 11263 am__fastdepCXX_FALSE= 11264fi 11265 11266 11267 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11268 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11269 (test "X$CXX" != "Xg++"))) ; then 11270 ac_ext=cpp 11271ac_cpp='$CXXCPP $CPPFLAGS' 11272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11276$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11277if test -z "$CXXCPP"; then 11278 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 11279 $as_echo_n "(cached) " >&6 11280else 11281 # Double quotes because CXXCPP needs to be expanded 11282 for CXXCPP in "$CXX -E" "/lib/cpp" 11283 do 11284 ac_preproc_ok=false 11285for ac_cxx_preproc_warn_flag in '' yes 11286do 11287 # Use a header file that comes with gcc, so configuring glibc 11288 # with a fresh cross-compiler works. 11289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11290 # <limits.h> exists even on freestanding compilers. 11291 # On the NeXT, cc -E runs the code through the compiler's parser, 11292 # not just through cpp. "Syntax error" is here to catch this case. 11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11294/* end confdefs.h. */ 11295#ifdef __STDC__ 11296# include <limits.h> 11297#else 11298# include <assert.h> 11299#endif 11300 Syntax error 11301_ACEOF 11302if ac_fn_cxx_try_cpp "$LINENO"; then : 11303 11304else 11305 # Broken: fails on valid input. 11306continue 11307fi 11308rm -f conftest.err conftest.$ac_ext 11309 11310 # OK, works on sane cases. Now check whether nonexistent headers 11311 # can be detected and how. 11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11313/* end confdefs.h. */ 11314#include <ac_nonexistent.h> 11315_ACEOF 11316if ac_fn_cxx_try_cpp "$LINENO"; then : 11317 # Broken: success on invalid input. 11318continue 11319else 11320 # Passes both tests. 11321ac_preproc_ok=: 11322break 11323fi 11324rm -f conftest.err conftest.$ac_ext 11325 11326done 11327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11328rm -f conftest.err conftest.$ac_ext 11329if $ac_preproc_ok; then : 11330 break 11331fi 11332 11333 done 11334 ac_cv_prog_CXXCPP=$CXXCPP 11335 11336fi 11337 CXXCPP=$ac_cv_prog_CXXCPP 11338else 11339 ac_cv_prog_CXXCPP=$CXXCPP 11340fi 11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11342$as_echo "$CXXCPP" >&6; } 11343ac_preproc_ok=false 11344for ac_cxx_preproc_warn_flag in '' yes 11345do 11346 # Use a header file that comes with gcc, so configuring glibc 11347 # with a fresh cross-compiler works. 11348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11349 # <limits.h> exists even on freestanding compilers. 11350 # On the NeXT, cc -E runs the code through the compiler's parser, 11351 # not just through cpp. "Syntax error" is here to catch this case. 11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11353/* end confdefs.h. */ 11354#ifdef __STDC__ 11355# include <limits.h> 11356#else 11357# include <assert.h> 11358#endif 11359 Syntax error 11360_ACEOF 11361if ac_fn_cxx_try_cpp "$LINENO"; then : 11362 11363else 11364 # Broken: fails on valid input. 11365continue 11366fi 11367rm -f conftest.err conftest.$ac_ext 11368 11369 # OK, works on sane cases. Now check whether nonexistent headers 11370 # can be detected and how. 11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11372/* end confdefs.h. */ 11373#include <ac_nonexistent.h> 11374_ACEOF 11375if ac_fn_cxx_try_cpp "$LINENO"; then : 11376 # Broken: success on invalid input. 11377continue 11378else 11379 # Passes both tests. 11380ac_preproc_ok=: 11381break 11382fi 11383rm -f conftest.err conftest.$ac_ext 11384 11385done 11386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11387rm -f conftest.err conftest.$ac_ext 11388if $ac_preproc_ok; then : 11389 11390else 11391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11393as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 11394See \`config.log' for more details." "$LINENO" 5; } 11395fi 11396 11397ac_ext=c 11398ac_cpp='$CPP $CPPFLAGS' 11399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11401ac_compiler_gnu=$ac_cv_c_compiler_gnu 11402 11403else 11404 _lt_caught_CXX_error=yes 11405fi 11406 11407ac_ext=cpp 11408ac_cpp='$CXXCPP $CPPFLAGS' 11409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11412 11413archive_cmds_need_lc_CXX=no 11414allow_undefined_flag_CXX= 11415always_export_symbols_CXX=no 11416archive_expsym_cmds_CXX= 11417compiler_needs_object_CXX=no 11418export_dynamic_flag_spec_CXX= 11419hardcode_direct_CXX=no 11420hardcode_direct_absolute_CXX=no 11421hardcode_libdir_flag_spec_CXX= 11422hardcode_libdir_flag_spec_ld_CXX= 11423hardcode_libdir_separator_CXX= 11424hardcode_minus_L_CXX=no 11425hardcode_shlibpath_var_CXX=unsupported 11426hardcode_automatic_CXX=no 11427inherit_rpath_CXX=no 11428module_cmds_CXX= 11429module_expsym_cmds_CXX= 11430link_all_deplibs_CXX=unknown 11431old_archive_cmds_CXX=$old_archive_cmds 11432reload_flag_CXX=$reload_flag 11433reload_cmds_CXX=$reload_cmds 11434no_undefined_flag_CXX= 11435whole_archive_flag_spec_CXX= 11436enable_shared_with_static_runtimes_CXX=no 11437 11438# Source file extension for C++ test sources. 11439ac_ext=cpp 11440 11441# Object file extension for compiled C++ test sources. 11442objext=o 11443objext_CXX=$objext 11444 11445# No sense in running all these tests if we already determined that 11446# the CXX compiler isn't working. Some variables (like enable_shared) 11447# are currently assumed to apply to all compilers on this platform, 11448# and will be corrupted by setting them based on a non-working compiler. 11449if test "$_lt_caught_CXX_error" != yes; then 11450 # Code to be used in simple compile tests 11451 lt_simple_compile_test_code="int some_variable = 0;" 11452 11453 # Code to be used in simple link tests 11454 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11455 11456 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11457 11458 11459 11460 11461 11462 11463# If no C compiler was specified, use CC. 11464LTCC=${LTCC-"$CC"} 11465 11466# If no C compiler flags were specified, use CFLAGS. 11467LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11468 11469# Allow CC to be a program name with arguments. 11470compiler=$CC 11471 11472 11473 # save warnings/boilerplate of simple test code 11474 ac_outfile=conftest.$ac_objext 11475echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11476eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11477_lt_compiler_boilerplate=`cat conftest.err` 11478$RM conftest* 11479 11480 ac_outfile=conftest.$ac_objext 11481echo "$lt_simple_link_test_code" >conftest.$ac_ext 11482eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11483_lt_linker_boilerplate=`cat conftest.err` 11484$RM -r conftest* 11485 11486 11487 # Allow CC to be a program name with arguments. 11488 lt_save_CC=$CC 11489 lt_save_LD=$LD 11490 lt_save_GCC=$GCC 11491 GCC=$GXX 11492 lt_save_with_gnu_ld=$with_gnu_ld 11493 lt_save_path_LD=$lt_cv_path_LD 11494 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11495 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11496 else 11497 $as_unset lt_cv_prog_gnu_ld 11498 fi 11499 if test -n "${lt_cv_path_LDCXX+set}"; then 11500 lt_cv_path_LD=$lt_cv_path_LDCXX 11501 else 11502 $as_unset lt_cv_path_LD 11503 fi 11504 test -z "${LDCXX+set}" || LD=$LDCXX 11505 CC=${CXX-"c++"} 11506 compiler=$CC 11507 compiler_CXX=$CC 11508 for cc_temp in $compiler""; do 11509 case $cc_temp in 11510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11512 \-*) ;; 11513 *) break;; 11514 esac 11515done 11516cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11517 11518 11519 if test -n "$compiler"; then 11520 # We don't want -fno-exception when compiling C++ code, so set the 11521 # no_builtin_flag separately 11522 if test "$GXX" = yes; then 11523 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11524 else 11525 lt_prog_compiler_no_builtin_flag_CXX= 11526 fi 11527 11528 if test "$GXX" = yes; then 11529 # Set up default GNU C++ configuration 11530 11531 11532 11533# Check whether --with-gnu-ld was given. 11534if test "${with_gnu_ld+set}" = set; then : 11535 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11536else 11537 with_gnu_ld=no 11538fi 11539 11540ac_prog=ld 11541if test "$GCC" = yes; then 11542 # Check if gcc -print-prog-name=ld gives a path. 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11544$as_echo_n "checking for ld used by $CC... " >&6; } 11545 case $host in 11546 *-*-mingw*) 11547 # gcc leaves a trailing carriage return which upsets mingw 11548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11549 *) 11550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11551 esac 11552 case $ac_prog in 11553 # Accept absolute paths. 11554 [\\/]* | ?:[\\/]*) 11555 re_direlt='/[^/][^/]*/\.\./' 11556 # Canonicalize the pathname of ld 11557 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11558 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11559 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11560 done 11561 test -z "$LD" && LD="$ac_prog" 11562 ;; 11563 "") 11564 # If it fails, then pretend we aren't using GCC. 11565 ac_prog=ld 11566 ;; 11567 *) 11568 # If it is relative, then search for the first ld in PATH. 11569 with_gnu_ld=unknown 11570 ;; 11571 esac 11572elif test "$with_gnu_ld" = yes; then 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11574$as_echo_n "checking for GNU ld... " >&6; } 11575else 11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11577$as_echo_n "checking for non-GNU ld... " >&6; } 11578fi 11579if test "${lt_cv_path_LD+set}" = set; then : 11580 $as_echo_n "(cached) " >&6 11581else 11582 if test -z "$LD"; then 11583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11584 for ac_dir in $PATH; do 11585 IFS="$lt_save_ifs" 11586 test -z "$ac_dir" && ac_dir=. 11587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11588 lt_cv_path_LD="$ac_dir/$ac_prog" 11589 # Check to see if the program is GNU ld. I'd rather use --version, 11590 # but apparently some variants of GNU ld only accept -v. 11591 # Break only if it was the GNU/non-GNU ld that we prefer. 11592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11593 *GNU* | *'with BFD'*) 11594 test "$with_gnu_ld" != no && break 11595 ;; 11596 *) 11597 test "$with_gnu_ld" != yes && break 11598 ;; 11599 esac 11600 fi 11601 done 11602 IFS="$lt_save_ifs" 11603else 11604 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11605fi 11606fi 11607 11608LD="$lt_cv_path_LD" 11609if test -n "$LD"; then 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11611$as_echo "$LD" >&6; } 11612else 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11614$as_echo "no" >&6; } 11615fi 11616test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11618$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11619if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11620 $as_echo_n "(cached) " >&6 11621else 11622 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11623case `$LD -v 2>&1 </dev/null` in 11624*GNU* | *'with BFD'*) 11625 lt_cv_prog_gnu_ld=yes 11626 ;; 11627*) 11628 lt_cv_prog_gnu_ld=no 11629 ;; 11630esac 11631fi 11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11633$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11634with_gnu_ld=$lt_cv_prog_gnu_ld 11635 11636 11637 11638 11639 11640 11641 11642 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11643 # archiving commands below assume that GNU ld is being used. 11644 if test "$with_gnu_ld" = yes; then 11645 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11646 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' 11647 11648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11650 11651 # If archive_cmds runs LD, not CC, wlarc should be empty 11652 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11653 # investigate it a little bit more. (MM) 11654 wlarc='${wl}' 11655 11656 # ancient GNU ld didn't support --whole-archive et. al. 11657 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11658 $GREP 'no-whole-archive' > /dev/null; then 11659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11660 else 11661 whole_archive_flag_spec_CXX= 11662 fi 11663 else 11664 with_gnu_ld=no 11665 wlarc= 11666 11667 # A generic and very simple default shared library creation 11668 # command for GNU C++ for the case where it uses the native 11669 # linker, instead of GNU ld. If possible, this setting should 11670 # overridden to take advantage of the native linker features on 11671 # the platform it is being used on. 11672 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11673 fi 11674 11675 # Commands to make compiler produce verbose output that lists 11676 # what "hidden" libraries, object files and flags are used when 11677 # linking a shared library. 11678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 11679 11680 else 11681 GXX=no 11682 with_gnu_ld=no 11683 wlarc= 11684 fi 11685 11686 # PORTME: fill in a description of your system's C++ link characteristics 11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11688$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11689 ld_shlibs_CXX=yes 11690 case $host_os in 11691 aix3*) 11692 # FIXME: insert proper C++ library support 11693 ld_shlibs_CXX=no 11694 ;; 11695 aix[4-9]*) 11696 if test "$host_cpu" = ia64; then 11697 # On IA64, the linker does run time linking by default, so we don't 11698 # have to do anything special. 11699 aix_use_runtimelinking=no 11700 exp_sym_flag='-Bexport' 11701 no_entry_flag="" 11702 else 11703 aix_use_runtimelinking=no 11704 11705 # Test if we are trying to use run time linking or normal 11706 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11707 # need to do runtime linking. 11708 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11709 for ld_flag in $LDFLAGS; do 11710 case $ld_flag in 11711 *-brtl*) 11712 aix_use_runtimelinking=yes 11713 break 11714 ;; 11715 esac 11716 done 11717 ;; 11718 esac 11719 11720 exp_sym_flag='-bexport' 11721 no_entry_flag='-bnoentry' 11722 fi 11723 11724 # When large executables or shared objects are built, AIX ld can 11725 # have problems creating the table of contents. If linking a library 11726 # or program results in "error TOC overflow" add -mminimal-toc to 11727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11729 11730 archive_cmds_CXX='' 11731 hardcode_direct_CXX=yes 11732 hardcode_direct_absolute_CXX=yes 11733 hardcode_libdir_separator_CXX=':' 11734 link_all_deplibs_CXX=yes 11735 file_list_spec_CXX='${wl}-f,' 11736 11737 if test "$GXX" = yes; then 11738 case $host_os in aix4.[012]|aix4.[012].*) 11739 # We only want to do this on AIX 4.2 and lower, the check 11740 # below for broken collect2 doesn't work under 4.3+ 11741 collect2name=`${CC} -print-prog-name=collect2` 11742 if test -f "$collect2name" && 11743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11744 then 11745 # We have reworked collect2 11746 : 11747 else 11748 # We have old collect2 11749 hardcode_direct_CXX=unsupported 11750 # It fails to find uninstalled libraries when the uninstalled 11751 # path is not listed in the libpath. Setting hardcode_minus_L 11752 # to unsupported forces relinking 11753 hardcode_minus_L_CXX=yes 11754 hardcode_libdir_flag_spec_CXX='-L$libdir' 11755 hardcode_libdir_separator_CXX= 11756 fi 11757 esac 11758 shared_flag='-shared' 11759 if test "$aix_use_runtimelinking" = yes; then 11760 shared_flag="$shared_flag "'${wl}-G' 11761 fi 11762 else 11763 # not using gcc 11764 if test "$host_cpu" = ia64; then 11765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11766 # chokes on -Wl,-G. The following line is correct: 11767 shared_flag='-G' 11768 else 11769 if test "$aix_use_runtimelinking" = yes; then 11770 shared_flag='${wl}-G' 11771 else 11772 shared_flag='${wl}-bM:SRE' 11773 fi 11774 fi 11775 fi 11776 11777 export_dynamic_flag_spec_CXX='${wl}-bexpall' 11778 # It seems that -bexpall does not export symbols beginning with 11779 # underscore (_), so it is better to generate a list of symbols to 11780 # export. 11781 always_export_symbols_CXX=yes 11782 if test "$aix_use_runtimelinking" = yes; then 11783 # Warning - without using the other runtime loading flags (-brtl), 11784 # -berok will link without error, but may produce a broken library. 11785 allow_undefined_flag_CXX='-berok' 11786 # Determine the default libpath from the value encoded in an empty 11787 # executable. 11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11789/* end confdefs.h. */ 11790 11791int 11792main () 11793{ 11794 11795 ; 11796 return 0; 11797} 11798_ACEOF 11799if ac_fn_cxx_try_link "$LINENO"; then : 11800 11801lt_aix_libpath_sed=' 11802 /Import File Strings/,/^$/ { 11803 /^0/ { 11804 s/^0 *\(.*\)$/\1/ 11805 p 11806 } 11807 }' 11808aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11809# Check for a 64-bit object if we didn't find anything. 11810if test -z "$aix_libpath"; then 11811 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11812fi 11813fi 11814rm -f core conftest.err conftest.$ac_objext \ 11815 conftest$ac_exeext conftest.$ac_ext 11816if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11817 11818 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11819 11820 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" 11821 else 11822 if test "$host_cpu" = ia64; then 11823 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11824 allow_undefined_flag_CXX="-z nodefs" 11825 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" 11826 else 11827 # Determine the default libpath from the value encoded in an 11828 # empty executable. 11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11830/* end confdefs.h. */ 11831 11832int 11833main () 11834{ 11835 11836 ; 11837 return 0; 11838} 11839_ACEOF 11840if ac_fn_cxx_try_link "$LINENO"; then : 11841 11842lt_aix_libpath_sed=' 11843 /Import File Strings/,/^$/ { 11844 /^0/ { 11845 s/^0 *\(.*\)$/\1/ 11846 p 11847 } 11848 }' 11849aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11850# Check for a 64-bit object if we didn't find anything. 11851if test -z "$aix_libpath"; then 11852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11853fi 11854fi 11855rm -f core conftest.err conftest.$ac_objext \ 11856 conftest$ac_exeext conftest.$ac_ext 11857if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11858 11859 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11860 # Warning - without using the other run time loading flags, 11861 # -berok will link without error, but may produce a broken library. 11862 no_undefined_flag_CXX=' ${wl}-bernotok' 11863 allow_undefined_flag_CXX=' ${wl}-berok' 11864 if test "$with_gnu_ld" = yes; then 11865 # We only use this code for GNU lds that support --whole-archive. 11866 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11867 else 11868 # Exported symbols can be pulled into shared objects from archives 11869 whole_archive_flag_spec_CXX='$convenience' 11870 fi 11871 archive_cmds_need_lc_CXX=yes 11872 # This is similar to how AIX traditionally builds its shared 11873 # libraries. 11874 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' 11875 fi 11876 fi 11877 ;; 11878 11879 beos*) 11880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11881 allow_undefined_flag_CXX=unsupported 11882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11883 # support --undefined. This deserves some investigation. FIXME 11884 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11885 else 11886 ld_shlibs_CXX=no 11887 fi 11888 ;; 11889 11890 chorus*) 11891 case $cc_basename in 11892 *) 11893 # FIXME: insert proper C++ library support 11894 ld_shlibs_CXX=no 11895 ;; 11896 esac 11897 ;; 11898 11899 cygwin* | mingw* | pw32* | cegcc*) 11900 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11901 # as there is no search path for DLLs. 11902 hardcode_libdir_flag_spec_CXX='-L$libdir' 11903 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 11904 allow_undefined_flag_CXX=unsupported 11905 always_export_symbols_CXX=no 11906 enable_shared_with_static_runtimes_CXX=yes 11907 11908 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11909 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' 11910 # If the export-symbols file already is a .def file (1st line 11911 # is EXPORTS), use it as is; otherwise, prepend... 11912 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11913 cp $export_symbols $output_objdir/$soname.def; 11914 else 11915 echo EXPORTS > $output_objdir/$soname.def; 11916 cat $export_symbols >> $output_objdir/$soname.def; 11917 fi~ 11918 $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' 11919 else 11920 ld_shlibs_CXX=no 11921 fi 11922 ;; 11923 darwin* | rhapsody*) 11924 11925 11926 archive_cmds_need_lc_CXX=no 11927 hardcode_direct_CXX=no 11928 hardcode_automatic_CXX=yes 11929 hardcode_shlibpath_var_CXX=unsupported 11930 if test "$lt_cv_ld_force_load" = "yes"; then 11931 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\"`' 11932 else 11933 whole_archive_flag_spec_CXX='' 11934 fi 11935 link_all_deplibs_CXX=yes 11936 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11937 case $cc_basename in 11938 ifort*) _lt_dar_can_shared=yes ;; 11939 *) _lt_dar_can_shared=$GCC ;; 11940 esac 11941 if test "$_lt_dar_can_shared" = "yes"; then 11942 output_verbose_link_cmd=func_echo_all 11943 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}" 11944 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11945 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}" 11946 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}" 11947 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11948 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}" 11949 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}" 11950 fi 11951 11952 else 11953 ld_shlibs_CXX=no 11954 fi 11955 11956 ;; 11957 11958 dgux*) 11959 case $cc_basename in 11960 ec++*) 11961 # FIXME: insert proper C++ library support 11962 ld_shlibs_CXX=no 11963 ;; 11964 ghcx*) 11965 # Green Hills C++ Compiler 11966 # FIXME: insert proper C++ library support 11967 ld_shlibs_CXX=no 11968 ;; 11969 *) 11970 # FIXME: insert proper C++ library support 11971 ld_shlibs_CXX=no 11972 ;; 11973 esac 11974 ;; 11975 11976 freebsd2.*) 11977 # C++ shared libraries reported to be fairly broken before 11978 # switch to ELF 11979 ld_shlibs_CXX=no 11980 ;; 11981 11982 freebsd-elf*) 11983 archive_cmds_need_lc_CXX=no 11984 ;; 11985 11986 freebsd* | dragonfly*) 11987 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11988 # conventions 11989 ld_shlibs_CXX=yes 11990 ;; 11991 11992 gnu*) 11993 ;; 11994 11995 haiku*) 11996 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11997 link_all_deplibs_CXX=yes 11998 ;; 11999 12000 hpux9*) 12001 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12002 hardcode_libdir_separator_CXX=: 12003 export_dynamic_flag_spec_CXX='${wl}-E' 12004 hardcode_direct_CXX=yes 12005 hardcode_minus_L_CXX=yes # Not in the search PATH, 12006 # but as the default 12007 # location of the library. 12008 12009 case $cc_basename in 12010 CC*) 12011 # FIXME: insert proper C++ library support 12012 ld_shlibs_CXX=no 12013 ;; 12014 aCC*) 12015 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' 12016 # Commands to make compiler produce verbose output that lists 12017 # what "hidden" libraries, object files and flags are used when 12018 # linking a shared library. 12019 # 12020 # There doesn't appear to be a way to prevent this compiler from 12021 # explicitly linking system object files so we need to strip them 12022 # from the output so that they don't get included in the library 12023 # dependencies. 12024 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"' 12025 ;; 12026 *) 12027 if test "$GXX" = yes; then 12028 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12029 else 12030 # FIXME: insert proper C++ library support 12031 ld_shlibs_CXX=no 12032 fi 12033 ;; 12034 esac 12035 ;; 12036 12037 hpux10*|hpux11*) 12038 if test $with_gnu_ld = no; then 12039 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12040 hardcode_libdir_separator_CXX=: 12041 12042 case $host_cpu in 12043 hppa*64*|ia64*) 12044 ;; 12045 *) 12046 export_dynamic_flag_spec_CXX='${wl}-E' 12047 ;; 12048 esac 12049 fi 12050 case $host_cpu in 12051 hppa*64*|ia64*) 12052 hardcode_direct_CXX=no 12053 hardcode_shlibpath_var_CXX=no 12054 ;; 12055 *) 12056 hardcode_direct_CXX=yes 12057 hardcode_direct_absolute_CXX=yes 12058 hardcode_minus_L_CXX=yes # Not in the search PATH, 12059 # but as the default 12060 # location of the library. 12061 ;; 12062 esac 12063 12064 case $cc_basename in 12065 CC*) 12066 # FIXME: insert proper C++ library support 12067 ld_shlibs_CXX=no 12068 ;; 12069 aCC*) 12070 case $host_cpu in 12071 hppa*64*) 12072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12073 ;; 12074 ia64*) 12075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12076 ;; 12077 *) 12078 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12079 ;; 12080 esac 12081 # Commands to make compiler produce verbose output that lists 12082 # what "hidden" libraries, object files and flags are used when 12083 # linking a shared library. 12084 # 12085 # There doesn't appear to be a way to prevent this compiler from 12086 # explicitly linking system object files so we need to strip them 12087 # from the output so that they don't get included in the library 12088 # dependencies. 12089 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"' 12090 ;; 12091 *) 12092 if test "$GXX" = yes; then 12093 if test $with_gnu_ld = no; then 12094 case $host_cpu in 12095 hppa*64*) 12096 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12097 ;; 12098 ia64*) 12099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12100 ;; 12101 *) 12102 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12103 ;; 12104 esac 12105 fi 12106 else 12107 # FIXME: insert proper C++ library support 12108 ld_shlibs_CXX=no 12109 fi 12110 ;; 12111 esac 12112 ;; 12113 12114 interix[3-9]*) 12115 hardcode_direct_CXX=no 12116 hardcode_shlibpath_var_CXX=no 12117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12118 export_dynamic_flag_spec_CXX='${wl}-E' 12119 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12120 # Instead, shared libraries are loaded at an image base (0x10000000 by 12121 # default) and relocated if they conflict, which is a slow very memory 12122 # consuming and fragmenting process. To avoid this, we pick a random, 12123 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12124 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12125 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' 12126 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' 12127 ;; 12128 irix5* | irix6*) 12129 case $cc_basename in 12130 CC*) 12131 # SGI C++ 12132 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' 12133 12134 # Archives containing C++ object files must be created using 12135 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12136 # necessary to make sure instantiated templates are included 12137 # in the archive. 12138 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12139 ;; 12140 *) 12141 if test "$GXX" = yes; then 12142 if test "$with_gnu_ld" = no; then 12143 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12144 else 12145 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 12146 fi 12147 fi 12148 link_all_deplibs_CXX=yes 12149 ;; 12150 esac 12151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12152 hardcode_libdir_separator_CXX=: 12153 inherit_rpath_CXX=yes 12154 ;; 12155 12156 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12157 case $cc_basename in 12158 KCC*) 12159 # Kuck and Associates, Inc. (KAI) C++ Compiler 12160 12161 # KCC will only create a shared library if the output file 12162 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12163 # to its proper name (with version) after linking. 12164 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' 12165 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' 12166 # Commands to make compiler produce verbose output that lists 12167 # what "hidden" libraries, object files and flags are used when 12168 # linking a shared library. 12169 # 12170 # There doesn't appear to be a way to prevent this compiler from 12171 # explicitly linking system object files so we need to strip them 12172 # from the output so that they don't get included in the library 12173 # dependencies. 12174 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"' 12175 12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12178 12179 # Archives containing C++ object files must be created using 12180 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12181 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12182 ;; 12183 icpc* | ecpc* ) 12184 # Intel C++ 12185 with_gnu_ld=yes 12186 # version 8.0 and above of icpc choke on multiply defined symbols 12187 # if we add $predep_objects and $postdep_objects, however 7.1 and 12188 # earlier do not add the objects themselves. 12189 case `$CC -V 2>&1` in 12190 *"Version 7."*) 12191 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12192 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' 12193 ;; 12194 *) # Version 8.0 or newer 12195 tmp_idyn= 12196 case $host_cpu in 12197 ia64*) tmp_idyn=' -i_dynamic';; 12198 esac 12199 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12200 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' 12201 ;; 12202 esac 12203 archive_cmds_need_lc_CXX=no 12204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12206 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12207 ;; 12208 pgCC* | pgcpp*) 12209 # Portland Group C++ compiler 12210 case `$CC -V` in 12211 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12212 prelink_cmds_CXX='tpldir=Template.dir~ 12213 rm -rf $tpldir~ 12214 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12215 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12216 old_archive_cmds_CXX='tpldir=Template.dir~ 12217 rm -rf $tpldir~ 12218 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12219 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12220 $RANLIB $oldlib' 12221 archive_cmds_CXX='tpldir=Template.dir~ 12222 rm -rf $tpldir~ 12223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12224 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12225 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12226 rm -rf $tpldir~ 12227 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12228 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12229 ;; 12230 *) # Version 6 and above use weak symbols 12231 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12232 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' 12233 ;; 12234 esac 12235 12236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12238 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' 12239 ;; 12240 cxx*) 12241 # Compaq C++ 12242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12243 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' 12244 12245 runpath_var=LD_RUN_PATH 12246 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12247 hardcode_libdir_separator_CXX=: 12248 12249 # Commands to make compiler produce verbose output that lists 12250 # what "hidden" libraries, object files and flags are used when 12251 # linking a shared library. 12252 # 12253 # There doesn't appear to be a way to prevent this compiler from 12254 # explicitly linking system object files so we need to strip them 12255 # from the output so that they don't get included in the library 12256 # dependencies. 12257 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' 12258 ;; 12259 xl* | mpixl* | bgxl*) 12260 # IBM XL 8.0 on PPC, with GNU ld 12261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12263 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12264 if test "x$supports_anon_versioning" = xyes; then 12265 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12267 echo "local: *; };" >> $output_objdir/$libname.ver~ 12268 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12269 fi 12270 ;; 12271 *) 12272 case `$CC -V 2>&1 | sed 5q` in 12273 *Sun\ C*) 12274 # Sun C++ 5.9 12275 no_undefined_flag_CXX=' -zdefs' 12276 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12277 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' 12278 hardcode_libdir_flag_spec_CXX='-R$libdir' 12279 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' 12280 compiler_needs_object_CXX=yes 12281 12282 # Not sure whether something based on 12283 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12284 # would be better. 12285 output_verbose_link_cmd='func_echo_all' 12286 12287 # Archives containing C++ object files must be created using 12288 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12289 # necessary to make sure instantiated templates are included 12290 # in the archive. 12291 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12292 ;; 12293 esac 12294 ;; 12295 esac 12296 ;; 12297 12298 lynxos*) 12299 # FIXME: insert proper C++ library support 12300 ld_shlibs_CXX=no 12301 ;; 12302 12303 m88k*) 12304 # FIXME: insert proper C++ library support 12305 ld_shlibs_CXX=no 12306 ;; 12307 12308 mvs*) 12309 case $cc_basename in 12310 cxx*) 12311 # FIXME: insert proper C++ library support 12312 ld_shlibs_CXX=no 12313 ;; 12314 *) 12315 # FIXME: insert proper C++ library support 12316 ld_shlibs_CXX=no 12317 ;; 12318 esac 12319 ;; 12320 12321 netbsd*) 12322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12323 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12324 wlarc= 12325 hardcode_libdir_flag_spec_CXX='-R$libdir' 12326 hardcode_direct_CXX=yes 12327 hardcode_shlibpath_var_CXX=no 12328 fi 12329 # Workaround some broken pre-1.5 toolchains 12330 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12331 ;; 12332 12333 *nto* | *qnx*) 12334 ld_shlibs_CXX=yes 12335 ;; 12336 12337 openbsd2*) 12338 # C++ shared libraries are fairly broken 12339 ld_shlibs_CXX=no 12340 ;; 12341 12342 openbsd*) 12343 if test -f /usr/libexec/ld.so; then 12344 hardcode_direct_CXX=yes 12345 hardcode_shlibpath_var_CXX=no 12346 hardcode_direct_absolute_CXX=yes 12347 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12350 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12351 export_dynamic_flag_spec_CXX='${wl}-E' 12352 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12353 fi 12354 output_verbose_link_cmd=func_echo_all 12355 else 12356 ld_shlibs_CXX=no 12357 fi 12358 ;; 12359 12360 osf3* | osf4* | osf5*) 12361 case $cc_basename in 12362 KCC*) 12363 # Kuck and Associates, Inc. (KAI) C++ Compiler 12364 12365 # KCC will only create a shared library if the output file 12366 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12367 # to its proper name (with version) after linking. 12368 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' 12369 12370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12371 hardcode_libdir_separator_CXX=: 12372 12373 # Archives containing C++ object files must be created using 12374 # the KAI C++ compiler. 12375 case $host in 12376 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12377 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12378 esac 12379 ;; 12380 RCC*) 12381 # Rational C++ 2.4.1 12382 # FIXME: insert proper C++ library support 12383 ld_shlibs_CXX=no 12384 ;; 12385 cxx*) 12386 case $host in 12387 osf3*) 12388 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12389 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' 12390 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12391 ;; 12392 *) 12393 allow_undefined_flag_CXX=' -expect_unresolved \*' 12394 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' 12395 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12396 echo "-hidden">> $lib.exp~ 12397 $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~ 12398 $RM $lib.exp' 12399 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12400 ;; 12401 esac 12402 12403 hardcode_libdir_separator_CXX=: 12404 12405 # Commands to make compiler produce verbose output that lists 12406 # what "hidden" libraries, object files and flags are used when 12407 # linking a shared library. 12408 # 12409 # There doesn't appear to be a way to prevent this compiler from 12410 # explicitly linking system object files so we need to strip them 12411 # from the output so that they don't get included in the library 12412 # dependencies. 12413 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"' 12414 ;; 12415 *) 12416 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12417 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12418 case $host in 12419 osf3*) 12420 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' 12421 ;; 12422 *) 12423 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12424 ;; 12425 esac 12426 12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12428 hardcode_libdir_separator_CXX=: 12429 12430 # Commands to make compiler produce verbose output that lists 12431 # what "hidden" libraries, object files and flags are used when 12432 # linking a shared library. 12433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12434 12435 else 12436 # FIXME: insert proper C++ library support 12437 ld_shlibs_CXX=no 12438 fi 12439 ;; 12440 esac 12441 ;; 12442 12443 psos*) 12444 # FIXME: insert proper C++ library support 12445 ld_shlibs_CXX=no 12446 ;; 12447 12448 sunos4*) 12449 case $cc_basename in 12450 CC*) 12451 # Sun C++ 4.x 12452 # FIXME: insert proper C++ library support 12453 ld_shlibs_CXX=no 12454 ;; 12455 lcc*) 12456 # Lucid 12457 # FIXME: insert proper C++ library support 12458 ld_shlibs_CXX=no 12459 ;; 12460 *) 12461 # FIXME: insert proper C++ library support 12462 ld_shlibs_CXX=no 12463 ;; 12464 esac 12465 ;; 12466 12467 solaris*) 12468 case $cc_basename in 12469 CC*) 12470 # Sun C++ 4.2, 5.x and Centerline C++ 12471 archive_cmds_need_lc_CXX=yes 12472 no_undefined_flag_CXX=' -zdefs' 12473 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12474 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12475 $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' 12476 12477 hardcode_libdir_flag_spec_CXX='-R$libdir' 12478 hardcode_shlibpath_var_CXX=no 12479 case $host_os in 12480 solaris2.[0-5] | solaris2.[0-5].*) ;; 12481 *) 12482 # The compiler driver will combine and reorder linker options, 12483 # but understands `-z linker_flag'. 12484 # Supported since Solaris 2.6 (maybe 2.5.1?) 12485 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12486 ;; 12487 esac 12488 link_all_deplibs_CXX=yes 12489 12490 output_verbose_link_cmd='func_echo_all' 12491 12492 # Archives containing C++ object files must be created using 12493 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12494 # necessary to make sure instantiated templates are included 12495 # in the archive. 12496 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12497 ;; 12498 gcx*) 12499 # Green Hills C++ Compiler 12500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12501 12502 # The C++ compiler must be used to create the archive. 12503 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12504 ;; 12505 *) 12506 # GNU C++ compiler with Solaris linker 12507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12508 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12509 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12510 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12511 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12512 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12513 12514 # Commands to make compiler produce verbose output that lists 12515 # what "hidden" libraries, object files and flags are used when 12516 # linking a shared library. 12517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12518 else 12519 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12520 # platform. 12521 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12522 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12523 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12524 12525 # Commands to make compiler produce verbose output that lists 12526 # what "hidden" libraries, object files and flags are used when 12527 # linking a shared library. 12528 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12529 fi 12530 12531 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12532 case $host_os in 12533 solaris2.[0-5] | solaris2.[0-5].*) ;; 12534 *) 12535 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12536 ;; 12537 esac 12538 fi 12539 ;; 12540 esac 12541 ;; 12542 12543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12544 no_undefined_flag_CXX='${wl}-z,text' 12545 archive_cmds_need_lc_CXX=no 12546 hardcode_shlibpath_var_CXX=no 12547 runpath_var='LD_RUN_PATH' 12548 12549 case $cc_basename in 12550 CC*) 12551 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12552 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12553 ;; 12554 *) 12555 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12556 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12557 ;; 12558 esac 12559 ;; 12560 12561 sysv5* | sco3.2v5* | sco5v6*) 12562 # Note: We can NOT use -z defs as we might desire, because we do not 12563 # link with -lc, and that would cause any symbols used from libc to 12564 # always be unresolved, which means just about no library would 12565 # ever link correctly. If we're not using GNU ld we use -z text 12566 # though, which does catch some bad symbols but isn't as heavy-handed 12567 # as -z defs. 12568 no_undefined_flag_CXX='${wl}-z,text' 12569 allow_undefined_flag_CXX='${wl}-z,nodefs' 12570 archive_cmds_need_lc_CXX=no 12571 hardcode_shlibpath_var_CXX=no 12572 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12573 hardcode_libdir_separator_CXX=':' 12574 link_all_deplibs_CXX=yes 12575 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12576 runpath_var='LD_RUN_PATH' 12577 12578 case $cc_basename in 12579 CC*) 12580 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12581 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12582 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 12583 '"$old_archive_cmds_CXX" 12584 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 12585 '"$reload_cmds_CXX" 12586 ;; 12587 *) 12588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12590 ;; 12591 esac 12592 ;; 12593 12594 tandem*) 12595 case $cc_basename in 12596 NCC*) 12597 # NonStop-UX NCC 3.20 12598 # FIXME: insert proper C++ library support 12599 ld_shlibs_CXX=no 12600 ;; 12601 *) 12602 # FIXME: insert proper C++ library support 12603 ld_shlibs_CXX=no 12604 ;; 12605 esac 12606 ;; 12607 12608 vxworks*) 12609 # FIXME: insert proper C++ library support 12610 ld_shlibs_CXX=no 12611 ;; 12612 12613 *) 12614 # FIXME: insert proper C++ library support 12615 ld_shlibs_CXX=no 12616 ;; 12617 esac 12618 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12620$as_echo "$ld_shlibs_CXX" >&6; } 12621 test "$ld_shlibs_CXX" = no && can_build_shared=no 12622 12623 GCC_CXX="$GXX" 12624 LD_CXX="$LD" 12625 12626 ## CAVEAT EMPTOR: 12627 ## There is no encapsulation within the following macros, do not change 12628 ## the running order or otherwise move them around unless you know exactly 12629 ## what you are doing... 12630 # Dependencies to place before and after the object being linked: 12631predep_objects_CXX= 12632postdep_objects_CXX= 12633predeps_CXX= 12634postdeps_CXX= 12635compiler_lib_search_path_CXX= 12636 12637cat > conftest.$ac_ext <<_LT_EOF 12638class Foo 12639{ 12640public: 12641 Foo (void) { a = 0; } 12642private: 12643 int a; 12644}; 12645_LT_EOF 12646 12647if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12648 (eval $ac_compile) 2>&5 12649 ac_status=$? 12650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12651 test $ac_status = 0; }; then 12652 # Parse the compiler output and extract the necessary 12653 # objects, libraries and library flags. 12654 12655 # Sentinel used to keep track of whether or not we are before 12656 # the conftest object file. 12657 pre_test_object_deps_done=no 12658 12659 for p in `eval "$output_verbose_link_cmd"`; do 12660 case $p in 12661 12662 -L* | -R* | -l*) 12663 # Some compilers place space between "-{L,R}" and the path. 12664 # Remove the space. 12665 if test $p = "-L" || 12666 test $p = "-R"; then 12667 prev=$p 12668 continue 12669 else 12670 prev= 12671 fi 12672 12673 if test "$pre_test_object_deps_done" = no; then 12674 case $p in 12675 -L* | -R*) 12676 # Internal compiler library paths should come after those 12677 # provided the user. The postdeps already come after the 12678 # user supplied libs so there is no need to process them. 12679 if test -z "$compiler_lib_search_path_CXX"; then 12680 compiler_lib_search_path_CXX="${prev}${p}" 12681 else 12682 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12683 fi 12684 ;; 12685 # The "-l" case would never come before the object being 12686 # linked, so don't bother handling this case. 12687 esac 12688 else 12689 if test -z "$postdeps_CXX"; then 12690 postdeps_CXX="${prev}${p}" 12691 else 12692 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12693 fi 12694 fi 12695 ;; 12696 12697 *.$objext) 12698 # This assumes that the test object file only shows up 12699 # once in the compiler output. 12700 if test "$p" = "conftest.$objext"; then 12701 pre_test_object_deps_done=yes 12702 continue 12703 fi 12704 12705 if test "$pre_test_object_deps_done" = no; then 12706 if test -z "$predep_objects_CXX"; then 12707 predep_objects_CXX="$p" 12708 else 12709 predep_objects_CXX="$predep_objects_CXX $p" 12710 fi 12711 else 12712 if test -z "$postdep_objects_CXX"; then 12713 postdep_objects_CXX="$p" 12714 else 12715 postdep_objects_CXX="$postdep_objects_CXX $p" 12716 fi 12717 fi 12718 ;; 12719 12720 *) ;; # Ignore the rest. 12721 12722 esac 12723 done 12724 12725 # Clean up. 12726 rm -f a.out a.exe 12727else 12728 echo "libtool.m4: error: problem compiling CXX test program" 12729fi 12730 12731$RM -f confest.$objext 12732 12733# PORTME: override above test on systems where it is broken 12734case $host_os in 12735interix[3-9]*) 12736 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12737 # hack all around it, let's just trust "g++" to DTRT. 12738 predep_objects_CXX= 12739 postdep_objects_CXX= 12740 postdeps_CXX= 12741 ;; 12742 12743linux*) 12744 case `$CC -V 2>&1 | sed 5q` in 12745 *Sun\ C*) 12746 # Sun C++ 5.9 12747 12748 # The more standards-conforming stlport4 library is 12749 # incompatible with the Cstd library. Avoid specifying 12750 # it if it's in CXXFLAGS. Ignore libCrun as 12751 # -library=stlport4 depends on it. 12752 case " $CXX $CXXFLAGS " in 12753 *" -library=stlport4 "*) 12754 solaris_use_stlport4=yes 12755 ;; 12756 esac 12757 12758 if test "$solaris_use_stlport4" != yes; then 12759 postdeps_CXX='-library=Cstd -library=Crun' 12760 fi 12761 ;; 12762 esac 12763 ;; 12764 12765solaris*) 12766 case $cc_basename in 12767 CC*) 12768 # The more standards-conforming stlport4 library is 12769 # incompatible with the Cstd library. Avoid specifying 12770 # it if it's in CXXFLAGS. Ignore libCrun as 12771 # -library=stlport4 depends on it. 12772 case " $CXX $CXXFLAGS " in 12773 *" -library=stlport4 "*) 12774 solaris_use_stlport4=yes 12775 ;; 12776 esac 12777 12778 # Adding this requires a known-good setup of shared libraries for 12779 # Sun compiler versions before 5.6, else PIC objects from an old 12780 # archive will be linked into the output, leading to subtle bugs. 12781 if test "$solaris_use_stlport4" != yes; then 12782 postdeps_CXX='-library=Cstd -library=Crun' 12783 fi 12784 ;; 12785 esac 12786 ;; 12787esac 12788 12789 12790case " $postdeps_CXX " in 12791*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12792esac 12793 compiler_lib_search_dirs_CXX= 12794if test -n "${compiler_lib_search_path_CXX}"; then 12795 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12796fi 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 lt_prog_compiler_wl_CXX= 12829lt_prog_compiler_pic_CXX= 12830lt_prog_compiler_static_CXX= 12831 12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12833$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12834 12835 # C++ specific cases for pic, static, wl, etc. 12836 if test "$GXX" = yes; then 12837 lt_prog_compiler_wl_CXX='-Wl,' 12838 lt_prog_compiler_static_CXX='-static' 12839 12840 case $host_os in 12841 aix*) 12842 # All AIX code is PIC. 12843 if test "$host_cpu" = ia64; then 12844 # AIX 5 now supports IA64 processor 12845 lt_prog_compiler_static_CXX='-Bstatic' 12846 fi 12847 lt_prog_compiler_pic_CXX='-fPIC' 12848 ;; 12849 12850 amigaos*) 12851 case $host_cpu in 12852 powerpc) 12853 # see comment about AmigaOS4 .so support 12854 lt_prog_compiler_pic_CXX='-fPIC' 12855 ;; 12856 m68k) 12857 # FIXME: we need at least 68020 code to build shared libraries, but 12858 # adding the `-m68020' flag to GCC prevents building anything better, 12859 # like `-m68040'. 12860 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12861 ;; 12862 esac 12863 ;; 12864 12865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12866 # PIC is the default for these OSes. 12867 ;; 12868 mingw* | cygwin* | os2* | pw32* | cegcc*) 12869 # This hack is so that the source file can tell whether it is being 12870 # built for inclusion in a dll (and should export symbols for example). 12871 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12872 # (--disable-auto-import) libraries 12873 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12874 ;; 12875 darwin* | rhapsody*) 12876 # PIC is the default on this platform 12877 # Common symbols not allowed in MH_DYLIB files 12878 lt_prog_compiler_pic_CXX='-fno-common' 12879 ;; 12880 *djgpp*) 12881 # DJGPP does not support shared libraries at all 12882 lt_prog_compiler_pic_CXX= 12883 ;; 12884 haiku*) 12885 # PIC is the default for Haiku. 12886 # The "-static" flag exists, but is broken. 12887 lt_prog_compiler_static_CXX= 12888 ;; 12889 interix[3-9]*) 12890 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12891 # Instead, we relocate shared libraries at runtime. 12892 ;; 12893 sysv4*MP*) 12894 if test -d /usr/nec; then 12895 lt_prog_compiler_pic_CXX=-Kconform_pic 12896 fi 12897 ;; 12898 hpux*) 12899 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12900 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12901 # sets the default TLS model and affects inlining. 12902 case $host_cpu in 12903 hppa*64*) 12904 ;; 12905 *) 12906 lt_prog_compiler_pic_CXX='-fPIC' 12907 ;; 12908 esac 12909 ;; 12910 *qnx* | *nto*) 12911 # QNX uses GNU C++, but need to define -shared option too, otherwise 12912 # it will coredump. 12913 lt_prog_compiler_pic_CXX='-fPIC -shared' 12914 ;; 12915 *) 12916 lt_prog_compiler_pic_CXX='-fPIC' 12917 ;; 12918 esac 12919 else 12920 case $host_os in 12921 aix[4-9]*) 12922 # All AIX code is PIC. 12923 if test "$host_cpu" = ia64; then 12924 # AIX 5 now supports IA64 processor 12925 lt_prog_compiler_static_CXX='-Bstatic' 12926 else 12927 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12928 fi 12929 ;; 12930 chorus*) 12931 case $cc_basename in 12932 cxch68*) 12933 # Green Hills C++ Compiler 12934 # _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" 12935 ;; 12936 esac 12937 ;; 12938 dgux*) 12939 case $cc_basename in 12940 ec++*) 12941 lt_prog_compiler_pic_CXX='-KPIC' 12942 ;; 12943 ghcx*) 12944 # Green Hills C++ Compiler 12945 lt_prog_compiler_pic_CXX='-pic' 12946 ;; 12947 *) 12948 ;; 12949 esac 12950 ;; 12951 freebsd* | dragonfly*) 12952 # FreeBSD uses GNU C++ 12953 ;; 12954 hpux9* | hpux10* | hpux11*) 12955 case $cc_basename in 12956 CC*) 12957 lt_prog_compiler_wl_CXX='-Wl,' 12958 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12959 if test "$host_cpu" != ia64; then 12960 lt_prog_compiler_pic_CXX='+Z' 12961 fi 12962 ;; 12963 aCC*) 12964 lt_prog_compiler_wl_CXX='-Wl,' 12965 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12966 case $host_cpu in 12967 hppa*64*|ia64*) 12968 # +Z the default 12969 ;; 12970 *) 12971 lt_prog_compiler_pic_CXX='+Z' 12972 ;; 12973 esac 12974 ;; 12975 *) 12976 ;; 12977 esac 12978 ;; 12979 interix*) 12980 # This is c89, which is MS Visual C++ (no shared libs) 12981 # Anyone wants to do a port? 12982 ;; 12983 irix5* | irix6* | nonstopux*) 12984 case $cc_basename in 12985 CC*) 12986 lt_prog_compiler_wl_CXX='-Wl,' 12987 lt_prog_compiler_static_CXX='-non_shared' 12988 # CC pic flag -KPIC is the default. 12989 ;; 12990 *) 12991 ;; 12992 esac 12993 ;; 12994 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12995 case $cc_basename in 12996 KCC*) 12997 # KAI C++ Compiler 12998 lt_prog_compiler_wl_CXX='--backend -Wl,' 12999 lt_prog_compiler_pic_CXX='-fPIC' 13000 ;; 13001 ecpc* ) 13002 # old Intel C++ for x86_64 which still supported -KPIC. 13003 lt_prog_compiler_wl_CXX='-Wl,' 13004 lt_prog_compiler_pic_CXX='-KPIC' 13005 lt_prog_compiler_static_CXX='-static' 13006 ;; 13007 icpc* ) 13008 # Intel C++, used to be incompatible with GCC. 13009 # ICC 10 doesn't accept -KPIC any more. 13010 lt_prog_compiler_wl_CXX='-Wl,' 13011 lt_prog_compiler_pic_CXX='-fPIC' 13012 lt_prog_compiler_static_CXX='-static' 13013 ;; 13014 pgCC* | pgcpp*) 13015 # Portland Group C++ compiler 13016 lt_prog_compiler_wl_CXX='-Wl,' 13017 lt_prog_compiler_pic_CXX='-fpic' 13018 lt_prog_compiler_static_CXX='-Bstatic' 13019 ;; 13020 cxx*) 13021 # Compaq C++ 13022 # Make sure the PIC flag is empty. It appears that all Alpha 13023 # Linux and Compaq Tru64 Unix objects are PIC. 13024 lt_prog_compiler_pic_CXX= 13025 lt_prog_compiler_static_CXX='-non_shared' 13026 ;; 13027 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13028 # IBM XL 8.0, 9.0 on PPC and BlueGene 13029 lt_prog_compiler_wl_CXX='-Wl,' 13030 lt_prog_compiler_pic_CXX='-qpic' 13031 lt_prog_compiler_static_CXX='-qstaticlink' 13032 ;; 13033 *) 13034 case `$CC -V 2>&1 | sed 5q` in 13035 *Sun\ C*) 13036 # Sun C++ 5.9 13037 lt_prog_compiler_pic_CXX='-KPIC' 13038 lt_prog_compiler_static_CXX='-Bstatic' 13039 lt_prog_compiler_wl_CXX='-Qoption ld ' 13040 ;; 13041 esac 13042 ;; 13043 esac 13044 ;; 13045 lynxos*) 13046 ;; 13047 m88k*) 13048 ;; 13049 mvs*) 13050 case $cc_basename in 13051 cxx*) 13052 lt_prog_compiler_pic_CXX='-W c,exportall' 13053 ;; 13054 *) 13055 ;; 13056 esac 13057 ;; 13058 netbsd*) 13059 ;; 13060 *qnx* | *nto*) 13061 # QNX uses GNU C++, but need to define -shared option too, otherwise 13062 # it will coredump. 13063 lt_prog_compiler_pic_CXX='-fPIC -shared' 13064 ;; 13065 osf3* | osf4* | osf5*) 13066 case $cc_basename in 13067 KCC*) 13068 lt_prog_compiler_wl_CXX='--backend -Wl,' 13069 ;; 13070 RCC*) 13071 # Rational C++ 2.4.1 13072 lt_prog_compiler_pic_CXX='-pic' 13073 ;; 13074 cxx*) 13075 # Digital/Compaq C++ 13076 lt_prog_compiler_wl_CXX='-Wl,' 13077 # Make sure the PIC flag is empty. It appears that all Alpha 13078 # Linux and Compaq Tru64 Unix objects are PIC. 13079 lt_prog_compiler_pic_CXX= 13080 lt_prog_compiler_static_CXX='-non_shared' 13081 ;; 13082 *) 13083 ;; 13084 esac 13085 ;; 13086 psos*) 13087 ;; 13088 solaris*) 13089 case $cc_basename in 13090 CC*) 13091 # Sun C++ 4.2, 5.x and Centerline C++ 13092 lt_prog_compiler_pic_CXX='-KPIC' 13093 lt_prog_compiler_static_CXX='-Bstatic' 13094 lt_prog_compiler_wl_CXX='-Qoption ld ' 13095 ;; 13096 gcx*) 13097 # Green Hills C++ Compiler 13098 lt_prog_compiler_pic_CXX='-PIC' 13099 ;; 13100 *) 13101 ;; 13102 esac 13103 ;; 13104 sunos4*) 13105 case $cc_basename in 13106 CC*) 13107 # Sun C++ 4.x 13108 lt_prog_compiler_pic_CXX='-pic' 13109 lt_prog_compiler_static_CXX='-Bstatic' 13110 ;; 13111 lcc*) 13112 # Lucid 13113 lt_prog_compiler_pic_CXX='-pic' 13114 ;; 13115 *) 13116 ;; 13117 esac 13118 ;; 13119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13120 case $cc_basename in 13121 CC*) 13122 lt_prog_compiler_wl_CXX='-Wl,' 13123 lt_prog_compiler_pic_CXX='-KPIC' 13124 lt_prog_compiler_static_CXX='-Bstatic' 13125 ;; 13126 esac 13127 ;; 13128 tandem*) 13129 case $cc_basename in 13130 NCC*) 13131 # NonStop-UX NCC 3.20 13132 lt_prog_compiler_pic_CXX='-KPIC' 13133 ;; 13134 *) 13135 ;; 13136 esac 13137 ;; 13138 vxworks*) 13139 ;; 13140 *) 13141 lt_prog_compiler_can_build_shared_CXX=no 13142 ;; 13143 esac 13144 fi 13145 13146case $host_os in 13147 # For platforms which do not support PIC, -DPIC is meaningless: 13148 *djgpp*) 13149 lt_prog_compiler_pic_CXX= 13150 ;; 13151 *) 13152 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13153 ;; 13154esac 13155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13156$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13157 13158 13159 13160# 13161# Check to make sure the PIC flag actually works. 13162# 13163if test -n "$lt_prog_compiler_pic_CXX"; then 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13165$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13166if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13167 $as_echo_n "(cached) " >&6 13168else 13169 lt_cv_prog_compiler_pic_works_CXX=no 13170 ac_outfile=conftest.$ac_objext 13171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13172 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13173 # Insert the option either (1) after the last *FLAGS variable, or 13174 # (2) before a word containing "conftest.", or (3) at the end. 13175 # Note that $ac_compile itself does not contain backslashes and begins 13176 # with a dollar sign (not a hyphen), so the echo should work correctly. 13177 # The option is referenced via a variable to avoid confusing sed. 13178 lt_compile=`echo "$ac_compile" | $SED \ 13179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13181 -e 's:$: $lt_compiler_flag:'` 13182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13183 (eval "$lt_compile" 2>conftest.err) 13184 ac_status=$? 13185 cat conftest.err >&5 13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13187 if (exit $ac_status) && test -s "$ac_outfile"; then 13188 # The compiler can only warn and ignore the option if not recognized 13189 # So say no if there are warnings other than the usual output. 13190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13193 lt_cv_prog_compiler_pic_works_CXX=yes 13194 fi 13195 fi 13196 $RM conftest* 13197 13198fi 13199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13200$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13201 13202if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13203 case $lt_prog_compiler_pic_CXX in 13204 "" | " "*) ;; 13205 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13206 esac 13207else 13208 lt_prog_compiler_pic_CXX= 13209 lt_prog_compiler_can_build_shared_CXX=no 13210fi 13211 13212fi 13213 13214 13215 13216# 13217# Check to make sure the static flag actually works. 13218# 13219wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13221$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13222if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13223 $as_echo_n "(cached) " >&6 13224else 13225 lt_cv_prog_compiler_static_works_CXX=no 13226 save_LDFLAGS="$LDFLAGS" 13227 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13228 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13230 # The linker can only warn and ignore the option if not recognized 13231 # So say no if there are warnings 13232 if test -s conftest.err; then 13233 # Append any errors to the config.log. 13234 cat conftest.err 1>&5 13235 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13237 if diff conftest.exp conftest.er2 >/dev/null; then 13238 lt_cv_prog_compiler_static_works_CXX=yes 13239 fi 13240 else 13241 lt_cv_prog_compiler_static_works_CXX=yes 13242 fi 13243 fi 13244 $RM -r conftest* 13245 LDFLAGS="$save_LDFLAGS" 13246 13247fi 13248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13249$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13250 13251if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13252 : 13253else 13254 lt_prog_compiler_static_CXX= 13255fi 13256 13257 13258 13259 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13261$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13262if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13263 $as_echo_n "(cached) " >&6 13264else 13265 lt_cv_prog_compiler_c_o_CXX=no 13266 $RM -r conftest 2>/dev/null 13267 mkdir conftest 13268 cd conftest 13269 mkdir out 13270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13271 13272 lt_compiler_flag="-o out/conftest2.$ac_objext" 13273 # Insert the option either (1) after the last *FLAGS variable, or 13274 # (2) before a word containing "conftest.", or (3) at the end. 13275 # Note that $ac_compile itself does not contain backslashes and begins 13276 # with a dollar sign (not a hyphen), so the echo should work correctly. 13277 lt_compile=`echo "$ac_compile" | $SED \ 13278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13280 -e 's:$: $lt_compiler_flag:'` 13281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13282 (eval "$lt_compile" 2>out/conftest.err) 13283 ac_status=$? 13284 cat out/conftest.err >&5 13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13286 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13287 then 13288 # The compiler can only warn and ignore the option if not recognized 13289 # So say no if there are warnings 13290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13293 lt_cv_prog_compiler_c_o_CXX=yes 13294 fi 13295 fi 13296 chmod u+w . 2>&5 13297 $RM conftest* 13298 # SGI C++ compiler will create directory out/ii_files/ for 13299 # template instantiation 13300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13301 $RM out/* && rmdir out 13302 cd .. 13303 $RM -r conftest 13304 $RM conftest* 13305 13306fi 13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13308$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13309 13310 13311 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13313$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13314if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13315 $as_echo_n "(cached) " >&6 13316else 13317 lt_cv_prog_compiler_c_o_CXX=no 13318 $RM -r conftest 2>/dev/null 13319 mkdir conftest 13320 cd conftest 13321 mkdir out 13322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13323 13324 lt_compiler_flag="-o out/conftest2.$ac_objext" 13325 # Insert the option either (1) after the last *FLAGS variable, or 13326 # (2) before a word containing "conftest.", or (3) at the end. 13327 # Note that $ac_compile itself does not contain backslashes and begins 13328 # with a dollar sign (not a hyphen), so the echo should work correctly. 13329 lt_compile=`echo "$ac_compile" | $SED \ 13330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13332 -e 's:$: $lt_compiler_flag:'` 13333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13334 (eval "$lt_compile" 2>out/conftest.err) 13335 ac_status=$? 13336 cat out/conftest.err >&5 13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13338 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13339 then 13340 # The compiler can only warn and ignore the option if not recognized 13341 # So say no if there are warnings 13342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13345 lt_cv_prog_compiler_c_o_CXX=yes 13346 fi 13347 fi 13348 chmod u+w . 2>&5 13349 $RM conftest* 13350 # SGI C++ compiler will create directory out/ii_files/ for 13351 # template instantiation 13352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13353 $RM out/* && rmdir out 13354 cd .. 13355 $RM -r conftest 13356 $RM conftest* 13357 13358fi 13359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13360$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13361 13362 13363 13364 13365hard_links="nottested" 13366if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13367 # do not overwrite the value of need_locks provided by the user 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13369$as_echo_n "checking if we can lock with hard links... " >&6; } 13370 hard_links=yes 13371 $RM conftest* 13372 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13373 touch conftest.a 13374 ln conftest.a conftest.b 2>&5 || hard_links=no 13375 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13377$as_echo "$hard_links" >&6; } 13378 if test "$hard_links" = no; then 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13380$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13381 need_locks=warn 13382 fi 13383else 13384 need_locks=no 13385fi 13386 13387 13388 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13390$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13391 13392 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13393 case $host_os in 13394 aix[4-9]*) 13395 # If we're using GNU nm, then we don't want the "-C" option. 13396 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13397 # Also, AIX nm treats weak defined symbols like other global defined 13398 # symbols, whereas GNU nm marks them as "W". 13399 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13400 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' 13401 else 13402 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' 13403 fi 13404 ;; 13405 pw32*) 13406 export_symbols_cmds_CXX="$ltdll_cmds" 13407 ;; 13408 cygwin* | mingw* | cegcc*) 13409 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13410 ;; 13411 *) 13412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13413 ;; 13414 esac 13415 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13416 13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13418$as_echo "$ld_shlibs_CXX" >&6; } 13419test "$ld_shlibs_CXX" = no && can_build_shared=no 13420 13421with_gnu_ld_CXX=$with_gnu_ld 13422 13423 13424 13425 13426 13427 13428# 13429# Do we need to explicitly link libc? 13430# 13431case "x$archive_cmds_need_lc_CXX" in 13432x|xyes) 13433 # Assume -lc should be added 13434 archive_cmds_need_lc_CXX=yes 13435 13436 if test "$enable_shared" = yes && test "$GCC" = yes; then 13437 case $archive_cmds_CXX in 13438 *'~'*) 13439 # FIXME: we may have to deal with multi-command sequences. 13440 ;; 13441 '$CC '*) 13442 # Test whether the compiler implicitly links with -lc since on some 13443 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13444 # to ld, don't add -lc before -lgcc. 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13446$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13447if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 13448 $as_echo_n "(cached) " >&6 13449else 13450 $RM conftest* 13451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13452 13453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13454 (eval $ac_compile) 2>&5 13455 ac_status=$? 13456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13457 test $ac_status = 0; } 2>conftest.err; then 13458 soname=conftest 13459 lib=conftest 13460 libobjs=conftest.$ac_objext 13461 deplibs= 13462 wl=$lt_prog_compiler_wl_CXX 13463 pic_flag=$lt_prog_compiler_pic_CXX 13464 compiler_flags=-v 13465 linker_flags=-v 13466 verstring= 13467 output_objdir=. 13468 libname=conftest 13469 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13470 allow_undefined_flag_CXX= 13471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13472 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13473 ac_status=$? 13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13475 test $ac_status = 0; } 13476 then 13477 lt_cv_archive_cmds_need_lc_CXX=no 13478 else 13479 lt_cv_archive_cmds_need_lc_CXX=yes 13480 fi 13481 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13482 else 13483 cat conftest.err 1>&5 13484 fi 13485 $RM conftest* 13486 13487fi 13488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 13489$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 13490 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13491 ;; 13492 esac 13493 fi 13494 ;; 13495esac 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13561$as_echo_n "checking dynamic linker characteristics... " >&6; } 13562 13563library_names_spec= 13564libname_spec='lib$name' 13565soname_spec= 13566shrext_cmds=".so" 13567postinstall_cmds= 13568postuninstall_cmds= 13569finish_cmds= 13570finish_eval= 13571shlibpath_var= 13572shlibpath_overrides_runpath=unknown 13573version_type=none 13574dynamic_linker="$host_os ld.so" 13575sys_lib_dlsearch_path_spec="/lib /usr/lib" 13576need_lib_prefix=unknown 13577hardcode_into_libs=no 13578 13579# when you set need_version to no, make sure it does not cause -set_version 13580# flags to be left without arguments 13581need_version=unknown 13582 13583case $host_os in 13584aix3*) 13585 version_type=linux 13586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13587 shlibpath_var=LIBPATH 13588 13589 # AIX 3 has no versioning support, so we append a major version to the name. 13590 soname_spec='${libname}${release}${shared_ext}$major' 13591 ;; 13592 13593aix[4-9]*) 13594 version_type=linux 13595 need_lib_prefix=no 13596 need_version=no 13597 hardcode_into_libs=yes 13598 if test "$host_cpu" = ia64; then 13599 # AIX 5 supports IA64 13600 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13601 shlibpath_var=LD_LIBRARY_PATH 13602 else 13603 # With GCC up to 2.95.x, collect2 would create an import file 13604 # for dependence libraries. The import file would start with 13605 # the line `#! .'. This would cause the generated library to 13606 # depend on `.', always an invalid library. This was fixed in 13607 # development snapshots of GCC prior to 3.0. 13608 case $host_os in 13609 aix4 | aix4.[01] | aix4.[01].*) 13610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13611 echo ' yes ' 13612 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13613 : 13614 else 13615 can_build_shared=no 13616 fi 13617 ;; 13618 esac 13619 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13620 # soname into executable. Probably we can add versioning support to 13621 # collect2, so additional links can be useful in future. 13622 if test "$aix_use_runtimelinking" = yes; then 13623 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13624 # instead of lib<name>.a to let people know that these are not 13625 # typical AIX shared libraries. 13626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13627 else 13628 # We preserve .a as extension for shared libraries through AIX4.2 13629 # and later when we are not doing run time linking. 13630 library_names_spec='${libname}${release}.a $libname.a' 13631 soname_spec='${libname}${release}${shared_ext}$major' 13632 fi 13633 shlibpath_var=LIBPATH 13634 fi 13635 ;; 13636 13637amigaos*) 13638 case $host_cpu in 13639 powerpc) 13640 # Since July 2007 AmigaOS4 officially supports .so libraries. 13641 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13643 ;; 13644 m68k) 13645 library_names_spec='$libname.ixlibrary $libname.a' 13646 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13647 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' 13648 ;; 13649 esac 13650 ;; 13651 13652beos*) 13653 library_names_spec='${libname}${shared_ext}' 13654 dynamic_linker="$host_os ld.so" 13655 shlibpath_var=LIBRARY_PATH 13656 ;; 13657 13658bsdi[45]*) 13659 version_type=linux 13660 need_version=no 13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13662 soname_spec='${libname}${release}${shared_ext}$major' 13663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13664 shlibpath_var=LD_LIBRARY_PATH 13665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13667 # the default ld.so.conf also contains /usr/contrib/lib and 13668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13669 # libtool to hard-code these into programs 13670 ;; 13671 13672cygwin* | mingw* | pw32* | cegcc*) 13673 version_type=windows 13674 shrext_cmds=".dll" 13675 need_version=no 13676 need_lib_prefix=no 13677 13678 case $GCC,$host_os in 13679 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13680 library_names_spec='$libname.dll.a' 13681 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13682 postinstall_cmds='base_file=`basename \${file}`~ 13683 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13684 dldir=$destdir/`dirname \$dlpath`~ 13685 test -d \$dldir || mkdir -p \$dldir~ 13686 $install_prog $dir/$dlname \$dldir/$dlname~ 13687 chmod a+x \$dldir/$dlname~ 13688 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13689 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13690 fi' 13691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13692 dlpath=$dir/\$dldll~ 13693 $RM \$dlpath' 13694 shlibpath_overrides_runpath=yes 13695 13696 case $host_os in 13697 cygwin*) 13698 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13699 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13700 13701 ;; 13702 mingw* | cegcc*) 13703 # MinGW DLLs use traditional 'lib' prefix 13704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13705 ;; 13706 pw32*) 13707 # pw32 DLLs use 'pw' prefix rather than 'lib' 13708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13709 ;; 13710 esac 13711 ;; 13712 13713 *) 13714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13715 ;; 13716 esac 13717 dynamic_linker='Win32 ld.exe' 13718 # FIXME: first we should search . and the directory the executable is in 13719 shlibpath_var=PATH 13720 ;; 13721 13722darwin* | rhapsody*) 13723 dynamic_linker="$host_os dyld" 13724 version_type=darwin 13725 need_lib_prefix=no 13726 need_version=no 13727 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13728 soname_spec='${libname}${release}${major}$shared_ext' 13729 shlibpath_overrides_runpath=yes 13730 shlibpath_var=DYLD_LIBRARY_PATH 13731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13732 13733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13734 ;; 13735 13736dgux*) 13737 version_type=linux 13738 need_lib_prefix=no 13739 need_version=no 13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13741 soname_spec='${libname}${release}${shared_ext}$major' 13742 shlibpath_var=LD_LIBRARY_PATH 13743 ;; 13744 13745freebsd* | dragonfly*) 13746 # DragonFly does not have aout. When/if they implement a new 13747 # versioning mechanism, adjust this. 13748 if test -x /usr/bin/objformat; then 13749 objformat=`/usr/bin/objformat` 13750 else 13751 case $host_os in 13752 freebsd[23].*) objformat=aout ;; 13753 *) objformat=elf ;; 13754 esac 13755 fi 13756 version_type=freebsd-$objformat 13757 case $version_type in 13758 freebsd-elf*) 13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13760 need_version=no 13761 need_lib_prefix=no 13762 ;; 13763 freebsd-*) 13764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13765 need_version=yes 13766 ;; 13767 esac 13768 shlibpath_var=LD_LIBRARY_PATH 13769 case $host_os in 13770 freebsd2.*) 13771 shlibpath_overrides_runpath=yes 13772 ;; 13773 freebsd3.[01]* | freebsdelf3.[01]*) 13774 shlibpath_overrides_runpath=yes 13775 hardcode_into_libs=yes 13776 ;; 13777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13779 shlibpath_overrides_runpath=no 13780 hardcode_into_libs=yes 13781 ;; 13782 *) # from 4.6 on, and DragonFly 13783 shlibpath_overrides_runpath=yes 13784 hardcode_into_libs=yes 13785 ;; 13786 esac 13787 ;; 13788 13789gnu*) 13790 version_type=linux 13791 need_lib_prefix=no 13792 need_version=no 13793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13794 soname_spec='${libname}${release}${shared_ext}$major' 13795 shlibpath_var=LD_LIBRARY_PATH 13796 hardcode_into_libs=yes 13797 ;; 13798 13799haiku*) 13800 version_type=linux 13801 need_lib_prefix=no 13802 need_version=no 13803 dynamic_linker="$host_os runtime_loader" 13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13805 soname_spec='${libname}${release}${shared_ext}$major' 13806 shlibpath_var=LIBRARY_PATH 13807 shlibpath_overrides_runpath=yes 13808 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 13809 hardcode_into_libs=yes 13810 ;; 13811 13812hpux9* | hpux10* | hpux11*) 13813 # Give a soname corresponding to the major version so that dld.sl refuses to 13814 # link against other versions. 13815 version_type=sunos 13816 need_lib_prefix=no 13817 need_version=no 13818 case $host_cpu in 13819 ia64*) 13820 shrext_cmds='.so' 13821 hardcode_into_libs=yes 13822 dynamic_linker="$host_os dld.so" 13823 shlibpath_var=LD_LIBRARY_PATH 13824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13826 soname_spec='${libname}${release}${shared_ext}$major' 13827 if test "X$HPUX_IA64_MODE" = X32; then 13828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13829 else 13830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13831 fi 13832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13833 ;; 13834 hppa*64*) 13835 shrext_cmds='.sl' 13836 hardcode_into_libs=yes 13837 dynamic_linker="$host_os dld.sl" 13838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13841 soname_spec='${libname}${release}${shared_ext}$major' 13842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13844 ;; 13845 *) 13846 shrext_cmds='.sl' 13847 dynamic_linker="$host_os dld.sl" 13848 shlibpath_var=SHLIB_PATH 13849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13851 soname_spec='${libname}${release}${shared_ext}$major' 13852 ;; 13853 esac 13854 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13855 postinstall_cmds='chmod 555 $lib' 13856 # or fails outright, so override atomically: 13857 install_override_mode=555 13858 ;; 13859 13860interix[3-9]*) 13861 version_type=linux 13862 need_lib_prefix=no 13863 need_version=no 13864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13865 soname_spec='${libname}${release}${shared_ext}$major' 13866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13867 shlibpath_var=LD_LIBRARY_PATH 13868 shlibpath_overrides_runpath=no 13869 hardcode_into_libs=yes 13870 ;; 13871 13872irix5* | irix6* | nonstopux*) 13873 case $host_os in 13874 nonstopux*) version_type=nonstopux ;; 13875 *) 13876 if test "$lt_cv_prog_gnu_ld" = yes; then 13877 version_type=linux 13878 else 13879 version_type=irix 13880 fi ;; 13881 esac 13882 need_lib_prefix=no 13883 need_version=no 13884 soname_spec='${libname}${release}${shared_ext}$major' 13885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13886 case $host_os in 13887 irix5* | nonstopux*) 13888 libsuff= shlibsuff= 13889 ;; 13890 *) 13891 case $LD in # libtool.m4 will add one of these switches to LD 13892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13893 libsuff= shlibsuff= libmagic=32-bit;; 13894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13895 libsuff=32 shlibsuff=N32 libmagic=N32;; 13896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13897 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13898 *) libsuff= shlibsuff= libmagic=never-match;; 13899 esac 13900 ;; 13901 esac 13902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13903 shlibpath_overrides_runpath=no 13904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13906 hardcode_into_libs=yes 13907 ;; 13908 13909# No shared lib support for Linux oldld, aout, or coff. 13910linux*oldld* | linux*aout* | linux*coff*) 13911 dynamic_linker=no 13912 ;; 13913 13914# This must be Linux ELF. 13915linux* | k*bsd*-gnu | kopensolaris*-gnu) 13916 version_type=linux 13917 need_lib_prefix=no 13918 need_version=no 13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13920 soname_spec='${libname}${release}${shared_ext}$major' 13921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13922 shlibpath_var=LD_LIBRARY_PATH 13923 shlibpath_overrides_runpath=no 13924 13925 # Some binutils ld are patched to set DT_RUNPATH 13926 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 13927 $as_echo_n "(cached) " >&6 13928else 13929 lt_cv_shlibpath_overrides_runpath=no 13930 save_LDFLAGS=$LDFLAGS 13931 save_libdir=$libdir 13932 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 13933 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13935/* end confdefs.h. */ 13936 13937int 13938main () 13939{ 13940 13941 ; 13942 return 0; 13943} 13944_ACEOF 13945if ac_fn_cxx_try_link "$LINENO"; then : 13946 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13947 lt_cv_shlibpath_overrides_runpath=yes 13948fi 13949fi 13950rm -f core conftest.err conftest.$ac_objext \ 13951 conftest$ac_exeext conftest.$ac_ext 13952 LDFLAGS=$save_LDFLAGS 13953 libdir=$save_libdir 13954 13955fi 13956 13957 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13958 13959 # This implies no fast_install, which is unacceptable. 13960 # Some rework will be needed to allow for fast_install 13961 # before this can be enabled. 13962 hardcode_into_libs=yes 13963 13964 # Append ld.so.conf contents to the search path 13965 if test -f /etc/ld.so.conf; then 13966 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' ' '` 13967 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13968 fi 13969 13970 # We used to test for /lib/ld.so.1 and disable shared libraries on 13971 # powerpc, because MkLinux only supported shared libraries with the 13972 # GNU dynamic linker. Since this was broken with cross compilers, 13973 # most powerpc-linux boxes support dynamic linking these days and 13974 # people can always --disable-shared, the test was removed, and we 13975 # assume the GNU/Linux dynamic linker is in use. 13976 dynamic_linker='GNU/Linux ld.so' 13977 ;; 13978 13979netbsd*) 13980 version_type=sunos 13981 need_lib_prefix=no 13982 need_version=no 13983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13986 dynamic_linker='NetBSD (a.out) ld.so' 13987 else 13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13989 soname_spec='${libname}${release}${shared_ext}$major' 13990 dynamic_linker='NetBSD ld.elf_so' 13991 fi 13992 shlibpath_var=LD_LIBRARY_PATH 13993 shlibpath_overrides_runpath=yes 13994 hardcode_into_libs=yes 13995 ;; 13996 13997newsos6) 13998 version_type=linux 13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14000 shlibpath_var=LD_LIBRARY_PATH 14001 shlibpath_overrides_runpath=yes 14002 ;; 14003 14004*nto* | *qnx*) 14005 version_type=qnx 14006 need_lib_prefix=no 14007 need_version=no 14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14009 soname_spec='${libname}${release}${shared_ext}$major' 14010 shlibpath_var=LD_LIBRARY_PATH 14011 shlibpath_overrides_runpath=no 14012 hardcode_into_libs=yes 14013 dynamic_linker='ldqnx.so' 14014 ;; 14015 14016openbsd*) 14017 version_type=sunos 14018 sys_lib_dlsearch_path_spec="/usr/lib" 14019 need_lib_prefix=no 14020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14021 case $host_os in 14022 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14023 *) need_version=no ;; 14024 esac 14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14027 shlibpath_var=LD_LIBRARY_PATH 14028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14029 case $host_os in 14030 openbsd2.[89] | openbsd2.[89].*) 14031 shlibpath_overrides_runpath=no 14032 ;; 14033 *) 14034 shlibpath_overrides_runpath=yes 14035 ;; 14036 esac 14037 else 14038 shlibpath_overrides_runpath=yes 14039 fi 14040 ;; 14041 14042os2*) 14043 libname_spec='$name' 14044 shrext_cmds=".dll" 14045 need_lib_prefix=no 14046 library_names_spec='$libname${shared_ext} $libname.a' 14047 dynamic_linker='OS/2 ld.exe' 14048 shlibpath_var=LIBPATH 14049 ;; 14050 14051osf3* | osf4* | osf5*) 14052 version_type=osf 14053 need_lib_prefix=no 14054 need_version=no 14055 soname_spec='${libname}${release}${shared_ext}$major' 14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14057 shlibpath_var=LD_LIBRARY_PATH 14058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14060 ;; 14061 14062rdos*) 14063 dynamic_linker=no 14064 ;; 14065 14066solaris*) 14067 version_type=linux 14068 need_lib_prefix=no 14069 need_version=no 14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14071 soname_spec='${libname}${release}${shared_ext}$major' 14072 shlibpath_var=LD_LIBRARY_PATH 14073 shlibpath_overrides_runpath=yes 14074 hardcode_into_libs=yes 14075 # ldd complains unless libraries are executable 14076 postinstall_cmds='chmod +x $lib' 14077 ;; 14078 14079sunos4*) 14080 version_type=sunos 14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14083 shlibpath_var=LD_LIBRARY_PATH 14084 shlibpath_overrides_runpath=yes 14085 if test "$with_gnu_ld" = yes; then 14086 need_lib_prefix=no 14087 fi 14088 need_version=yes 14089 ;; 14090 14091sysv4 | sysv4.3*) 14092 version_type=linux 14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14094 soname_spec='${libname}${release}${shared_ext}$major' 14095 shlibpath_var=LD_LIBRARY_PATH 14096 case $host_vendor in 14097 sni) 14098 shlibpath_overrides_runpath=no 14099 need_lib_prefix=no 14100 runpath_var=LD_RUN_PATH 14101 ;; 14102 siemens) 14103 need_lib_prefix=no 14104 ;; 14105 motorola) 14106 need_lib_prefix=no 14107 need_version=no 14108 shlibpath_overrides_runpath=no 14109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14110 ;; 14111 esac 14112 ;; 14113 14114sysv4*MP*) 14115 if test -d /usr/nec ;then 14116 version_type=linux 14117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14118 soname_spec='$libname${shared_ext}.$major' 14119 shlibpath_var=LD_LIBRARY_PATH 14120 fi 14121 ;; 14122 14123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14124 version_type=freebsd-elf 14125 need_lib_prefix=no 14126 need_version=no 14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14128 soname_spec='${libname}${release}${shared_ext}$major' 14129 shlibpath_var=LD_LIBRARY_PATH 14130 shlibpath_overrides_runpath=yes 14131 hardcode_into_libs=yes 14132 if test "$with_gnu_ld" = yes; then 14133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14134 else 14135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14136 case $host_os in 14137 sco3.2v5*) 14138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14139 ;; 14140 esac 14141 fi 14142 sys_lib_dlsearch_path_spec='/usr/lib' 14143 ;; 14144 14145tpf*) 14146 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14147 version_type=linux 14148 need_lib_prefix=no 14149 need_version=no 14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14151 shlibpath_var=LD_LIBRARY_PATH 14152 shlibpath_overrides_runpath=no 14153 hardcode_into_libs=yes 14154 ;; 14155 14156uts4*) 14157 version_type=linux 14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14159 soname_spec='${libname}${release}${shared_ext}$major' 14160 shlibpath_var=LD_LIBRARY_PATH 14161 ;; 14162 14163*) 14164 dynamic_linker=no 14165 ;; 14166esac 14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14168$as_echo "$dynamic_linker" >&6; } 14169test "$dynamic_linker" = no && can_build_shared=no 14170 14171variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14172if test "$GCC" = yes; then 14173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14174fi 14175 14176if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14177 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14178fi 14179if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14180 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14181fi 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14221$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14222hardcode_action_CXX= 14223if test -n "$hardcode_libdir_flag_spec_CXX" || 14224 test -n "$runpath_var_CXX" || 14225 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14226 14227 # We can hardcode non-existent directories. 14228 if test "$hardcode_direct_CXX" != no && 14229 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14230 # have to relink, otherwise we might link with an installed library 14231 # when we should be linking with a yet-to-be-installed one 14232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14233 test "$hardcode_minus_L_CXX" != no; then 14234 # Linking always hardcodes the temporary library directory. 14235 hardcode_action_CXX=relink 14236 else 14237 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14238 hardcode_action_CXX=immediate 14239 fi 14240else 14241 # We cannot hardcode anything, or else we can only hardcode existing 14242 # directories. 14243 hardcode_action_CXX=unsupported 14244fi 14245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14246$as_echo "$hardcode_action_CXX" >&6; } 14247 14248if test "$hardcode_action_CXX" = relink || 14249 test "$inherit_rpath_CXX" = yes; then 14250 # Fast installation is not supported 14251 enable_fast_install=no 14252elif test "$shlibpath_overrides_runpath" = yes || 14253 test "$enable_shared" = no; then 14254 # Fast installation is not necessary 14255 enable_fast_install=needless 14256fi 14257 14258 14259 14260 14261 14262 14263 14264 fi # test -n "$compiler" 14265 14266 CC=$lt_save_CC 14267 LDCXX=$LD 14268 LD=$lt_save_LD 14269 GCC=$lt_save_GCC 14270 with_gnu_ld=$lt_save_with_gnu_ld 14271 lt_cv_path_LDCXX=$lt_cv_path_LD 14272 lt_cv_path_LD=$lt_save_path_LD 14273 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14274 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14275fi # test "$_lt_caught_CXX_error" != yes 14276 14277ac_ext=c 14278ac_cpp='$CPP $CPPFLAGS' 14279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14281ac_compiler_gnu=$ac_cv_c_compiler_gnu 14282 14283 14284 14285visibility= 14286if test "$GXX" = yes; then 14287 visibility=-fvisibility=hidden 14288fi 14289 14290 14291ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 14292if test "x$ac_cv_have_decl_basename" = x""yes; then : 14293 ac_have_decl=1 14294else 14295 ac_have_decl=0 14296fi 14297 14298cat >>confdefs.h <<_ACEOF 14299#define HAVE_DECL_BASENAME $ac_have_decl 14300_ACEOF 14301 14302 14303gcc_version=`cat $srcdir/../gcc/BASE-VER` 14304 14305 14306WARN_FLAGS= 14307save_CFLAGS="$CFLAGS" 14308for real_option in -W -Wall; do 14309 # Do the check with the no- prefix removed since gcc silently 14310 # accepts any -Wno-* option on purpose 14311 case $real_option in 14312 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 14313 *) option=$real_option ;; 14314 esac 14315 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 14316 14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 14318$as_echo_n "checking whether $CC supports $option... " >&6; } 14319if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : 14320 $as_echo_n "(cached) " >&6 14321else 14322 CFLAGS="$option" 14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14324/* end confdefs.h. */ 14325 14326int 14327main () 14328{ 14329 14330 ; 14331 return 0; 14332} 14333_ACEOF 14334if ac_fn_c_try_compile "$LINENO"; then : 14335 eval "$as_acx_Woption=yes" 14336else 14337 eval "$as_acx_Woption=no" 14338fi 14339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14340 14341fi 14342eval ac_res=\$$as_acx_Woption 14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14344$as_echo "$ac_res" >&6; } 14345 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 14346 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" 14347fi 14348 done 14349CFLAGS="$save_CFLAGS" 14350 14351 14352WERROR= 14353# Check whether --enable-werror-always was given. 14354if test "${enable_werror_always+set}" = set; then : 14355 enableval=$enable_werror_always; 14356else 14357 enable_werror_always=no 14358fi 14359 14360if test $enable_werror_always = yes; then : 14361 WERROR="$WERROR${WERROR:+ }-Werror" 14362fi 14363 14364 14365 14366 14367 14368libsuffix= 14369if test "$GXX" = yes; then 14370 libsuffix=`$CXX -print-multi-os-directory` 14371fi 14372 14373 14374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5 14375$as_echo_n "checking for socket libraries... " >&6; } 14376if test "${libcc1_cv_lib_sockets+set}" = set; then : 14377 $as_echo_n "(cached) " >&6 14378else 14379 libcc1_cv_lib_sockets= 14380 libcc1_check_both=no 14381 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 14382if test "x$ac_cv_func_connect" = x""yes; then : 14383 libcc1_check_socket=no 14384else 14385 libcc1_check_socket=yes 14386fi 14387 14388 if test "$libcc1_check_socket" = "yes"; then 14389 unset ac_cv_func_connect 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 14391$as_echo_n "checking for main in -lsocket... " >&6; } 14392if test "${ac_cv_lib_socket_main+set}" = set; then : 14393 $as_echo_n "(cached) " >&6 14394else 14395 ac_check_lib_save_LIBS=$LIBS 14396LIBS="-lsocket $LIBS" 14397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14398/* end confdefs.h. */ 14399 14400 14401int 14402main () 14403{ 14404return main (); 14405 ; 14406 return 0; 14407} 14408_ACEOF 14409if ac_fn_c_try_link "$LINENO"; then : 14410 ac_cv_lib_socket_main=yes 14411else 14412 ac_cv_lib_socket_main=no 14413fi 14414rm -f core conftest.err conftest.$ac_objext \ 14415 conftest$ac_exeext conftest.$ac_ext 14416LIBS=$ac_check_lib_save_LIBS 14417fi 14418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 14419$as_echo "$ac_cv_lib_socket_main" >&6; } 14420if test "x$ac_cv_lib_socket_main" = x""yes; then : 14421 libcc1_cv_lib_sockets="-lsocket" 14422else 14423 libcc1_check_both=yes 14424fi 14425 14426 fi 14427 if test "$libcc1_check_both" = "yes"; then 14428 libcc1_old_libs=$LIBS 14429 LIBS="$LIBS -lsocket -lnsl" 14430 unset ac_cv_func_accept 14431 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" 14432if test "x$ac_cv_func_accept" = x""yes; then : 14433 libcc1_check_nsl=no 14434 libcc1_cv_lib_sockets="-lsocket -lnsl" 14435fi 14436 14437 unset ac_cv_func_accept 14438 LIBS=$libcc1_old_libs 14439 fi 14440 unset ac_cv_func_gethostbyname 14441 libcc1_old_libs="$LIBS" 14442 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 14443if test "x$ac_cv_func_gethostbyname" = x""yes; then : 14444 14445else 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 14447$as_echo_n "checking for main in -lnsl... " >&6; } 14448if test "${ac_cv_lib_nsl_main+set}" = set; then : 14449 $as_echo_n "(cached) " >&6 14450else 14451 ac_check_lib_save_LIBS=$LIBS 14452LIBS="-lnsl $LIBS" 14453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14454/* end confdefs.h. */ 14455 14456 14457int 14458main () 14459{ 14460return main (); 14461 ; 14462 return 0; 14463} 14464_ACEOF 14465if ac_fn_c_try_link "$LINENO"; then : 14466 ac_cv_lib_nsl_main=yes 14467else 14468 ac_cv_lib_nsl_main=no 14469fi 14470rm -f core conftest.err conftest.$ac_objext \ 14471 conftest$ac_exeext conftest.$ac_ext 14472LIBS=$ac_check_lib_save_LIBS 14473fi 14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 14475$as_echo "$ac_cv_lib_nsl_main" >&6; } 14476if test "x$ac_cv_lib_nsl_main" = x""yes; then : 14477 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl" 14478fi 14479 14480fi 14481 14482 unset ac_cv_func_gethostbyname 14483 LIBS=$libcc1_old_libs 14484 14485fi 14486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5 14487$as_echo "$libcc1_cv_lib_sockets" >&6; } 14488LIBS="$LIBS $libcc1_cv_lib_sockets" 14489 14490# If any of these functions are missing, simply don't bother building 14491# this plugin. 14492# Check for plugin support 14493 # Check whether --enable-plugin was given. 14494if test "${enable_plugin+set}" = set; then : 14495 enableval=$enable_plugin; enable_plugin=$enableval 14496else 14497 enable_plugin=yes; default_plugin=yes 14498fi 14499 14500 14501 pluginlibs= 14502 14503 case "${host}" in 14504 *-*-darwin*) 14505 if test x$build = x$host; then 14506 export_sym_check="nm${exeext} -g" 14507 elif test x$host = x$target; then 14508 export_sym_check="$gcc_cv_nm -g" 14509 else 14510 export_sym_check= 14511 fi 14512 ;; 14513 *) 14514 if test x$build = x$host; then 14515 export_sym_check="objdump${exeext} -T" 14516 elif test x$host = x$target; then 14517 export_sym_check="$gcc_cv_objdump -T" 14518 else 14519 export_sym_check= 14520 fi 14521 ;; 14522 esac 14523 14524 if test x"$enable_plugin" = x"yes"; then 14525 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5 14527$as_echo_n "checking for exported symbols... " >&6; } 14528 if test "x$export_sym_check" != x; then 14529 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c 14530 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1 14531 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then 14532 : # No need to use a flag 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14534$as_echo "yes" >&6; } 14535 else 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14537$as_echo "yes" >&6; } 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5 14539$as_echo_n "checking for -rdynamic... " >&6; } 14540 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1 14541 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then 14542 plugin_rdynamic=yes 14543 pluginlibs="-rdynamic" 14544 else 14545 plugin_rdynamic=no 14546 enable_plugin=no 14547 fi 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5 14549$as_echo "$plugin_rdynamic" >&6; } 14550 fi 14551 else 14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5 14553$as_echo "unable to check" >&6; } 14554 fi 14555 14556 # Check -ldl 14557 saved_LIBS="$LIBS" 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 14559$as_echo_n "checking for library containing dlopen... " >&6; } 14560if test "${ac_cv_search_dlopen+set}" = set; then : 14561 $as_echo_n "(cached) " >&6 14562else 14563 ac_func_search_save_LIBS=$LIBS 14564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14565/* end confdefs.h. */ 14566 14567/* Override any GCC internal prototype to avoid an error. 14568 Use char because int might match the return type of a GCC 14569 builtin and then its argument prototype would still apply. */ 14570#ifdef __cplusplus 14571extern "C" 14572#endif 14573char dlopen (); 14574int 14575main () 14576{ 14577return dlopen (); 14578 ; 14579 return 0; 14580} 14581_ACEOF 14582for ac_lib in '' dl; do 14583 if test -z "$ac_lib"; then 14584 ac_res="none required" 14585 else 14586 ac_res=-l$ac_lib 14587 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14588 fi 14589 if ac_fn_c_try_link "$LINENO"; then : 14590 ac_cv_search_dlopen=$ac_res 14591fi 14592rm -f core conftest.err conftest.$ac_objext \ 14593 conftest$ac_exeext 14594 if test "${ac_cv_search_dlopen+set}" = set; then : 14595 break 14596fi 14597done 14598if test "${ac_cv_search_dlopen+set}" = set; then : 14599 14600else 14601 ac_cv_search_dlopen=no 14602fi 14603rm conftest.$ac_ext 14604LIBS=$ac_func_search_save_LIBS 14605fi 14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14607$as_echo "$ac_cv_search_dlopen" >&6; } 14608ac_res=$ac_cv_search_dlopen 14609if test "$ac_res" != no; then : 14610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14611 14612fi 14613 14614 if test x"$ac_cv_search_dlopen" = x"-ldl"; then 14615 pluginlibs="$pluginlibs -ldl" 14616 fi 14617 LIBS="$saved_LIBS" 14618 14619 # Check that we can build shared objects with -fPIC -shared 14620 saved_LDFLAGS="$LDFLAGS" 14621 saved_CFLAGS="$CFLAGS" 14622 case "${host}" in 14623 *-*-darwin*) 14624 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` 14625 CFLAGS="$CFLAGS -fPIC" 14626 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup" 14627 ;; 14628 *) 14629 CFLAGS="$CFLAGS -fPIC" 14630 LDFLAGS="$LDFLAGS -fPIC -shared" 14631 ;; 14632 esac 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5 14634$as_echo_n "checking for -fPIC -shared... " >&6; } 14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14636/* end confdefs.h. */ 14637extern int X; 14638int 14639main () 14640{ 14641return X == 0; 14642 ; 14643 return 0; 14644} 14645_ACEOF 14646if ac_fn_c_try_link "$LINENO"; then : 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14648$as_echo "yes" >&6; }; have_pic_shared=yes 14649else 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14651$as_echo "no" >&6; }; have_pic_shared=no 14652fi 14653rm -f core conftest.err conftest.$ac_objext \ 14654 conftest$ac_exeext conftest.$ac_ext 14655 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then 14656 pluginlibs= 14657 enable_plugin=no 14658 fi 14659 LDFLAGS="$saved_LDFLAGS" 14660 CFLAGS="$saved_CFLAGS" 14661 14662 # If plugin support had been requested but not available, fail. 14663 if test x"$enable_plugin" = x"no" ; then 14664 if test x"$default_plugin" != x"yes"; then 14665 as_fn_error " 14666 Building GCC with plugin support requires a host that supports 14667 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5 14668 fi 14669 fi 14670 fi 14671 14672ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 14673if test "x$ac_cv_func_socketpair" = x""yes; then : 14674 14675else 14676 enable_plugin=no 14677fi 14678 14679ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 14680if test "x$ac_cv_func_select" = x""yes; then : 14681 14682else 14683 enable_plugin=no 14684fi 14685 14686ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 14687if test "x$ac_cv_func_fork" = x""yes; then : 14688 14689else 14690 enable_plugin=no 14691fi 14692 14693 if test $enable_plugin = yes; then 14694 ENABLE_PLUGIN_TRUE= 14695 ENABLE_PLUGIN_FALSE='#' 14696else 14697 ENABLE_PLUGIN_TRUE='#' 14698 ENABLE_PLUGIN_FALSE= 14699fi 14700 14701 14702ac_config_files="$ac_config_files Makefile" 14703 14704cat >confcache <<\_ACEOF 14705# This file is a shell script that caches the results of configure 14706# tests run on this system so they can be shared between configure 14707# scripts and configure runs, see configure's option --config-cache. 14708# It is not useful on other systems. If it contains results you don't 14709# want to keep, you may remove or edit it. 14710# 14711# config.status only pays attention to the cache file if you give it 14712# the --recheck option to rerun configure. 14713# 14714# `ac_cv_env_foo' variables (set or unset) will be overridden when 14715# loading this file, other *unset* `ac_cv_foo' will be assigned the 14716# following values. 14717 14718_ACEOF 14719 14720# The following way of writing the cache mishandles newlines in values, 14721# but we know of no workaround that is simple, portable, and efficient. 14722# So, we kill variables containing newlines. 14723# Ultrix sh set writes to stderr and can't be redirected directly, 14724# and sets the high bit in the cache file unless we assign to the vars. 14725( 14726 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14727 eval ac_val=\$$ac_var 14728 case $ac_val in #( 14729 *${as_nl}*) 14730 case $ac_var in #( 14731 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14732$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14733 esac 14734 case $ac_var in #( 14735 _ | IFS | as_nl) ;; #( 14736 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14737 *) { eval $ac_var=; unset $ac_var;} ;; 14738 esac ;; 14739 esac 14740 done 14741 14742 (set) 2>&1 | 14743 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14744 *${as_nl}ac_space=\ *) 14745 # `set' does not quote correctly, so add quotes: double-quote 14746 # substitution turns \\\\ into \\, and sed turns \\ into \. 14747 sed -n \ 14748 "s/'/'\\\\''/g; 14749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14750 ;; #( 14751 *) 14752 # `set' quotes correctly as required by POSIX, so do not add quotes. 14753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14754 ;; 14755 esac | 14756 sort 14757) | 14758 sed ' 14759 /^ac_cv_env_/b end 14760 t clear 14761 :clear 14762 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14763 t end 14764 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14765 :end' >>confcache 14766if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14767 if test -w "$cache_file"; then 14768 test "x$cache_file" != "x/dev/null" && 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14770$as_echo "$as_me: updating cache $cache_file" >&6;} 14771 cat confcache >$cache_file 14772 else 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14774$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14775 fi 14776fi 14777rm -f confcache 14778 14779test "x$prefix" = xNONE && prefix=$ac_default_prefix 14780# Let make expand exec_prefix. 14781test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14782 14783DEFS=-DHAVE_CONFIG_H 14784 14785ac_libobjs= 14786ac_ltlibobjs= 14787for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14788 # 1. Remove the extension, and $U if already installed. 14789 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14790 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14791 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14792 # will be set to the directory where LIBOBJS objects are built. 14793 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14794 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14795done 14796LIBOBJS=$ac_libobjs 14797 14798LTLIBOBJS=$ac_ltlibobjs 14799 14800 14801if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14802 as_fn_error "conditional \"AMDEP\" was never defined. 14803Usually this means the macro was only invoked conditionally." "$LINENO" 5 14804fi 14805if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14806 as_fn_error "conditional \"am__fastdepCC\" was never defined. 14807Usually this means the macro was only invoked conditionally." "$LINENO" 5 14808fi 14809 if test -n "$EXEEXT"; then 14810 am__EXEEXT_TRUE= 14811 am__EXEEXT_FALSE='#' 14812else 14813 am__EXEEXT_TRUE='#' 14814 am__EXEEXT_FALSE= 14815fi 14816 14817if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14818 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 14819Usually this means the macro was only invoked conditionally." "$LINENO" 5 14820fi 14821if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 14822 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 14823Usually this means the macro was only invoked conditionally." "$LINENO" 5 14824fi 14825if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then 14826 as_fn_error "conditional \"ENABLE_PLUGIN\" was never defined. 14827Usually this means the macro was only invoked conditionally." "$LINENO" 5 14828fi 14829 14830: ${CONFIG_STATUS=./config.status} 14831ac_write_fail=0 14832ac_clean_files_save=$ac_clean_files 14833ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14834{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14835$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14836as_write_fail=0 14837cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14838#! $SHELL 14839# Generated by $as_me. 14840# Run this file to recreate the current configuration. 14841# Compiler output produced by configure, useful for debugging 14842# configure, is in config.log if it exists. 14843 14844debug=false 14845ac_cs_recheck=false 14846ac_cs_silent=false 14847 14848SHELL=\${CONFIG_SHELL-$SHELL} 14849export SHELL 14850_ASEOF 14851cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14852## -------------------- ## 14853## M4sh Initialization. ## 14854## -------------------- ## 14855 14856# Be more Bourne compatible 14857DUALCASE=1; export DUALCASE # for MKS sh 14858if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14859 emulate sh 14860 NULLCMD=: 14861 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14862 # is contrary to our usage. Disable this feature. 14863 alias -g '${1+"$@"}'='"$@"' 14864 setopt NO_GLOB_SUBST 14865else 14866 case `(set -o) 2>/dev/null` in #( 14867 *posix*) : 14868 set -o posix ;; #( 14869 *) : 14870 ;; 14871esac 14872fi 14873 14874 14875as_nl=' 14876' 14877export as_nl 14878# Printing a long string crashes Solaris 7 /usr/bin/printf. 14879as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14880as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14881as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14882# Prefer a ksh shell builtin over an external printf program on Solaris, 14883# but without wasting forks for bash or zsh. 14884if test -z "$BASH_VERSION$ZSH_VERSION" \ 14885 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14886 as_echo='print -r --' 14887 as_echo_n='print -rn --' 14888elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14889 as_echo='printf %s\n' 14890 as_echo_n='printf %s' 14891else 14892 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14893 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14894 as_echo_n='/usr/ucb/echo -n' 14895 else 14896 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14897 as_echo_n_body='eval 14898 arg=$1; 14899 case $arg in #( 14900 *"$as_nl"*) 14901 expr "X$arg" : "X\\(.*\\)$as_nl"; 14902 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14903 esac; 14904 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14905 ' 14906 export as_echo_n_body 14907 as_echo_n='sh -c $as_echo_n_body as_echo' 14908 fi 14909 export as_echo_body 14910 as_echo='sh -c $as_echo_body as_echo' 14911fi 14912 14913# The user is always right. 14914if test "${PATH_SEPARATOR+set}" != set; then 14915 PATH_SEPARATOR=: 14916 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14917 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14918 PATH_SEPARATOR=';' 14919 } 14920fi 14921 14922 14923# IFS 14924# We need space, tab and new line, in precisely that order. Quoting is 14925# there to prevent editors from complaining about space-tab. 14926# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14927# splitting by setting IFS to empty value.) 14928IFS=" "" $as_nl" 14929 14930# Find who we are. Look in the path if we contain no directory separator. 14931case $0 in #(( 14932 *[\\/]* ) as_myself=$0 ;; 14933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14934for as_dir in $PATH 14935do 14936 IFS=$as_save_IFS 14937 test -z "$as_dir" && as_dir=. 14938 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14939 done 14940IFS=$as_save_IFS 14941 14942 ;; 14943esac 14944# We did not find ourselves, most probably we were run as `sh COMMAND' 14945# in which case we are not to be found in the path. 14946if test "x$as_myself" = x; then 14947 as_myself=$0 14948fi 14949if test ! -f "$as_myself"; then 14950 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14951 exit 1 14952fi 14953 14954# Unset variables that we do not need and which cause bugs (e.g. in 14955# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14956# suppresses any "Segmentation fault" message there. '((' could 14957# trigger a bug in pdksh 5.2.14. 14958for as_var in BASH_ENV ENV MAIL MAILPATH 14959do eval test x\${$as_var+set} = xset \ 14960 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14961done 14962PS1='$ ' 14963PS2='> ' 14964PS4='+ ' 14965 14966# NLS nuisances. 14967LC_ALL=C 14968export LC_ALL 14969LANGUAGE=C 14970export LANGUAGE 14971 14972# CDPATH. 14973(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14974 14975 14976# as_fn_error ERROR [LINENO LOG_FD] 14977# --------------------------------- 14978# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14979# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14980# script with status $?, using 1 if that was 0. 14981as_fn_error () 14982{ 14983 as_status=$?; test $as_status -eq 0 && as_status=1 14984 if test "$3"; then 14985 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14986 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 14987 fi 14988 $as_echo "$as_me: error: $1" >&2 14989 as_fn_exit $as_status 14990} # as_fn_error 14991 14992 14993# as_fn_set_status STATUS 14994# ----------------------- 14995# Set $? to STATUS, without forking. 14996as_fn_set_status () 14997{ 14998 return $1 14999} # as_fn_set_status 15000 15001# as_fn_exit STATUS 15002# ----------------- 15003# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15004as_fn_exit () 15005{ 15006 set +e 15007 as_fn_set_status $1 15008 exit $1 15009} # as_fn_exit 15010 15011# as_fn_unset VAR 15012# --------------- 15013# Portably unset VAR. 15014as_fn_unset () 15015{ 15016 { eval $1=; unset $1;} 15017} 15018as_unset=as_fn_unset 15019# as_fn_append VAR VALUE 15020# ---------------------- 15021# Append the text in VALUE to the end of the definition contained in VAR. Take 15022# advantage of any shell optimizations that allow amortized linear growth over 15023# repeated appends, instead of the typical quadratic growth present in naive 15024# implementations. 15025if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15026 eval 'as_fn_append () 15027 { 15028 eval $1+=\$2 15029 }' 15030else 15031 as_fn_append () 15032 { 15033 eval $1=\$$1\$2 15034 } 15035fi # as_fn_append 15036 15037# as_fn_arith ARG... 15038# ------------------ 15039# Perform arithmetic evaluation on the ARGs, and store the result in the 15040# global $as_val. Take advantage of shells that can avoid forks. The arguments 15041# must be portable across $(()) and expr. 15042if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15043 eval 'as_fn_arith () 15044 { 15045 as_val=$(( $* )) 15046 }' 15047else 15048 as_fn_arith () 15049 { 15050 as_val=`expr "$@" || test $? -eq 1` 15051 } 15052fi # as_fn_arith 15053 15054 15055if expr a : '\(a\)' >/dev/null 2>&1 && 15056 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15057 as_expr=expr 15058else 15059 as_expr=false 15060fi 15061 15062if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15063 as_basename=basename 15064else 15065 as_basename=false 15066fi 15067 15068if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15069 as_dirname=dirname 15070else 15071 as_dirname=false 15072fi 15073 15074as_me=`$as_basename -- "$0" || 15075$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15076 X"$0" : 'X\(//\)$' \| \ 15077 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15078$as_echo X/"$0" | 15079 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15080 s//\1/ 15081 q 15082 } 15083 /^X\/\(\/\/\)$/{ 15084 s//\1/ 15085 q 15086 } 15087 /^X\/\(\/\).*/{ 15088 s//\1/ 15089 q 15090 } 15091 s/.*/./; q'` 15092 15093# Avoid depending upon Character Ranges. 15094as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15095as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15096as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15097as_cr_digits='0123456789' 15098as_cr_alnum=$as_cr_Letters$as_cr_digits 15099 15100ECHO_C= ECHO_N= ECHO_T= 15101case `echo -n x` in #((((( 15102-n*) 15103 case `echo 'xy\c'` in 15104 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15105 xy) ECHO_C='\c';; 15106 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15107 ECHO_T=' ';; 15108 esac;; 15109*) 15110 ECHO_N='-n';; 15111esac 15112 15113rm -f conf$$ conf$$.exe conf$$.file 15114if test -d conf$$.dir; then 15115 rm -f conf$$.dir/conf$$.file 15116else 15117 rm -f conf$$.dir 15118 mkdir conf$$.dir 2>/dev/null 15119fi 15120if (echo >conf$$.file) 2>/dev/null; then 15121 if ln -s conf$$.file conf$$ 2>/dev/null; then 15122 as_ln_s='ln -s' 15123 # ... but there are two gotchas: 15124 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15125 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15126 # In both cases, we have to default to `cp -p'. 15127 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15128 as_ln_s='cp -p' 15129 elif ln conf$$.file conf$$ 2>/dev/null; then 15130 as_ln_s=ln 15131 else 15132 as_ln_s='cp -p' 15133 fi 15134else 15135 as_ln_s='cp -p' 15136fi 15137rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15138rmdir conf$$.dir 2>/dev/null 15139 15140 15141# as_fn_mkdir_p 15142# ------------- 15143# Create "$as_dir" as a directory, including parents if necessary. 15144as_fn_mkdir_p () 15145{ 15146 15147 case $as_dir in #( 15148 -*) as_dir=./$as_dir;; 15149 esac 15150 test -d "$as_dir" || eval $as_mkdir_p || { 15151 as_dirs= 15152 while :; do 15153 case $as_dir in #( 15154 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15155 *) as_qdir=$as_dir;; 15156 esac 15157 as_dirs="'$as_qdir' $as_dirs" 15158 as_dir=`$as_dirname -- "$as_dir" || 15159$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15160 X"$as_dir" : 'X\(//\)[^/]' \| \ 15161 X"$as_dir" : 'X\(//\)$' \| \ 15162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15163$as_echo X"$as_dir" | 15164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15165 s//\1/ 15166 q 15167 } 15168 /^X\(\/\/\)[^/].*/{ 15169 s//\1/ 15170 q 15171 } 15172 /^X\(\/\/\)$/{ 15173 s//\1/ 15174 q 15175 } 15176 /^X\(\/\).*/{ 15177 s//\1/ 15178 q 15179 } 15180 s/.*/./; q'` 15181 test -d "$as_dir" && break 15182 done 15183 test -z "$as_dirs" || eval "mkdir $as_dirs" 15184 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 15185 15186 15187} # as_fn_mkdir_p 15188if mkdir -p . 2>/dev/null; then 15189 as_mkdir_p='mkdir -p "$as_dir"' 15190else 15191 test -d ./-p && rmdir ./-p 15192 as_mkdir_p=false 15193fi 15194 15195if test -x / >/dev/null 2>&1; then 15196 as_test_x='test -x' 15197else 15198 if ls -dL / >/dev/null 2>&1; then 15199 as_ls_L_option=L 15200 else 15201 as_ls_L_option= 15202 fi 15203 as_test_x=' 15204 eval sh -c '\'' 15205 if test -d "$1"; then 15206 test -d "$1/."; 15207 else 15208 case $1 in #( 15209 -*)set "./$1";; 15210 esac; 15211 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15212 ???[sx]*):;;*)false;;esac;fi 15213 '\'' sh 15214 ' 15215fi 15216as_executable_p=$as_test_x 15217 15218# Sed expression to map a string onto a valid CPP name. 15219as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15220 15221# Sed expression to map a string onto a valid variable name. 15222as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15223 15224 15225exec 6>&1 15226## ----------------------------------- ## 15227## Main body of $CONFIG_STATUS script. ## 15228## ----------------------------------- ## 15229_ASEOF 15230test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15231 15232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15233# Save the log message, to keep $0 and so on meaningful, and to 15234# report actual input values of CONFIG_FILES etc. instead of their 15235# values after options handling. 15236ac_log=" 15237This file was extended by libcc1 $as_me version-unused, which was 15238generated by GNU Autoconf 2.64. Invocation command line was 15239 15240 CONFIG_FILES = $CONFIG_FILES 15241 CONFIG_HEADERS = $CONFIG_HEADERS 15242 CONFIG_LINKS = $CONFIG_LINKS 15243 CONFIG_COMMANDS = $CONFIG_COMMANDS 15244 $ $0 $@ 15245 15246on `(hostname || uname -n) 2>/dev/null | sed 1q` 15247" 15248 15249_ACEOF 15250 15251case $ac_config_files in *" 15252"*) set x $ac_config_files; shift; ac_config_files=$*;; 15253esac 15254 15255case $ac_config_headers in *" 15256"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15257esac 15258 15259 15260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15261# Files that config.status was made for. 15262config_files="$ac_config_files" 15263config_headers="$ac_config_headers" 15264config_commands="$ac_config_commands" 15265 15266_ACEOF 15267 15268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15269ac_cs_usage="\ 15270\`$as_me' instantiates files and other configuration actions 15271from templates according to the current configuration. Unless the files 15272and actions are specified as TAGs, all are instantiated by default. 15273 15274Usage: $0 [OPTION]... [TAG]... 15275 15276 -h, --help print this help, then exit 15277 -V, --version print version number and configuration settings, then exit 15278 -q, --quiet, --silent 15279 do not print progress messages 15280 -d, --debug don't remove temporary files 15281 --recheck update $as_me by reconfiguring in the same conditions 15282 --file=FILE[:TEMPLATE] 15283 instantiate the configuration file FILE 15284 --header=FILE[:TEMPLATE] 15285 instantiate the configuration header FILE 15286 15287Configuration files: 15288$config_files 15289 15290Configuration headers: 15291$config_headers 15292 15293Configuration commands: 15294$config_commands 15295 15296Report bugs to the package provider." 15297 15298_ACEOF 15299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15300ac_cs_version="\\ 15301libcc1 config.status version-unused 15302configured by $0, generated by GNU Autoconf 2.64, 15303 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15304 15305Copyright (C) 2009 Free Software Foundation, Inc. 15306This config.status script is free software; the Free Software Foundation 15307gives unlimited permission to copy, distribute and modify it." 15308 15309ac_pwd='$ac_pwd' 15310srcdir='$srcdir' 15311INSTALL='$INSTALL' 15312MKDIR_P='$MKDIR_P' 15313AWK='$AWK' 15314test -n "\$AWK" || AWK=awk 15315_ACEOF 15316 15317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15318# The default lists apply if the user does not specify any file. 15319ac_need_defaults=: 15320while test $# != 0 15321do 15322 case $1 in 15323 --*=*) 15324 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15325 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15326 ac_shift=: 15327 ;; 15328 *) 15329 ac_option=$1 15330 ac_optarg=$2 15331 ac_shift=shift 15332 ;; 15333 esac 15334 15335 case $ac_option in 15336 # Handling of the options. 15337 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15338 ac_cs_recheck=: ;; 15339 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15340 $as_echo "$ac_cs_version"; exit ;; 15341 --debug | --debu | --deb | --de | --d | -d ) 15342 debug=: ;; 15343 --file | --fil | --fi | --f ) 15344 $ac_shift 15345 case $ac_optarg in 15346 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15347 esac 15348 as_fn_append CONFIG_FILES " '$ac_optarg'" 15349 ac_need_defaults=false;; 15350 --header | --heade | --head | --hea ) 15351 $ac_shift 15352 case $ac_optarg in 15353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15354 esac 15355 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15356 ac_need_defaults=false;; 15357 --he | --h) 15358 # Conflict between --help and --header 15359 as_fn_error "ambiguous option: \`$1' 15360Try \`$0 --help' for more information.";; 15361 --help | --hel | -h ) 15362 $as_echo "$ac_cs_usage"; exit ;; 15363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15364 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15365 ac_cs_silent=: ;; 15366 15367 # This is an error. 15368 -*) as_fn_error "unrecognized option: \`$1' 15369Try \`$0 --help' for more information." ;; 15370 15371 *) as_fn_append ac_config_targets " $1" 15372 ac_need_defaults=false ;; 15373 15374 esac 15375 shift 15376done 15377 15378ac_configure_extra_args= 15379 15380if $ac_cs_silent; then 15381 exec 6>/dev/null 15382 ac_configure_extra_args="$ac_configure_extra_args --silent" 15383fi 15384 15385_ACEOF 15386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15387if \$ac_cs_recheck; then 15388 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15389 shift 15390 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15391 CONFIG_SHELL='$SHELL' 15392 export CONFIG_SHELL 15393 exec "\$@" 15394fi 15395 15396_ACEOF 15397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15398exec 5>>config.log 15399{ 15400 echo 15401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15402## Running $as_me. ## 15403_ASBOX 15404 $as_echo "$ac_log" 15405} >&5 15406 15407_ACEOF 15408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15409# 15410# INIT-COMMANDS 15411# 15412AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15413 15414 15415# The HP-UX ksh and POSIX shell print the target directory to stdout 15416# if CDPATH is set. 15417(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15418 15419sed_quote_subst='$sed_quote_subst' 15420double_quote_subst='$double_quote_subst' 15421delay_variable_subst='$delay_variable_subst' 15422macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15423macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15424enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15425enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15426pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15427enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15428SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15429ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15430host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15431host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15432host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15433build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15434build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15435build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15436SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15437Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15438GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15439EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15440FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15441LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15442NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15443LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15444max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15445ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15446exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15447lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15448lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15449lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15450reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15451reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15452OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15453deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15454file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15455AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15456AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15457STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15458RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15459old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15460old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15461old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15462lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15463CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15464CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15465compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15466GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15467lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15468lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15469lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15470lt_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"`' 15471objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15472MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15473lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15474lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15475lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15476lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15477lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15478need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15479DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15480NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15481LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15482OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15483OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15484libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15485shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15486extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15487archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15488enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15489export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15490whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15491compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15492old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15493old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15494archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15495archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15496module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15497module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15498with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15499allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15500no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15501hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15502hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15503hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15504hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15505hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15506hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15507hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15508hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15509inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15510link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15511fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15512always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15513export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15514exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15515include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15516prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15517file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15518variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15519need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15520need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15521version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15522runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15523shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15524shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15525libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15526library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15527soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15528install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15529postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15530postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15531finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15532finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15533hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15534sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15535sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15536hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15537enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15538enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15539enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15540old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15541striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15542compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 15543predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 15544postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 15545predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 15546postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 15547compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 15548LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 15549reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 15550reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15551old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15552compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 15553GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 15554lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 15555lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 15556lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 15557lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 15558lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 15559archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 15560enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 15561export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15562whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15563compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 15564old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15565old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15566archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15567archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15568module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15569module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15570with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 15571allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15572no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15573hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15574hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 15575hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 15576hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 15577hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 15578hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 15579hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 15580hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 15581inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 15582link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 15583fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 15584always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 15585export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15586exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15587include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15588prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15589file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 15590hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 15591compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 15592predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15593postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15594predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 15595postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 15596compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 15597 15598LTCC='$LTCC' 15599LTCFLAGS='$LTCFLAGS' 15600compiler='$compiler_DEFAULT' 15601 15602# A function that is used when there is no print builtin or printf. 15603func_fallback_echo () 15604{ 15605 eval 'cat <<_LTECHO_EOF 15606\$1 15607_LTECHO_EOF' 15608} 15609 15610# Quote evaled strings. 15611for var in SHELL \ 15612ECHO \ 15613SED \ 15614GREP \ 15615EGREP \ 15616FGREP \ 15617LD \ 15618NM \ 15619LN_S \ 15620lt_SP2NL \ 15621lt_NL2SP \ 15622reload_flag \ 15623OBJDUMP \ 15624deplibs_check_method \ 15625file_magic_cmd \ 15626AR \ 15627AR_FLAGS \ 15628STRIP \ 15629RANLIB \ 15630CC \ 15631CFLAGS \ 15632compiler \ 15633lt_cv_sys_global_symbol_pipe \ 15634lt_cv_sys_global_symbol_to_cdecl \ 15635lt_cv_sys_global_symbol_to_c_name_address \ 15636lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15637lt_prog_compiler_no_builtin_flag \ 15638lt_prog_compiler_wl \ 15639lt_prog_compiler_pic \ 15640lt_prog_compiler_static \ 15641lt_cv_prog_compiler_c_o \ 15642need_locks \ 15643DSYMUTIL \ 15644NMEDIT \ 15645LIPO \ 15646OTOOL \ 15647OTOOL64 \ 15648shrext_cmds \ 15649export_dynamic_flag_spec \ 15650whole_archive_flag_spec \ 15651compiler_needs_object \ 15652with_gnu_ld \ 15653allow_undefined_flag \ 15654no_undefined_flag \ 15655hardcode_libdir_flag_spec \ 15656hardcode_libdir_flag_spec_ld \ 15657hardcode_libdir_separator \ 15658fix_srcfile_path \ 15659exclude_expsyms \ 15660include_expsyms \ 15661file_list_spec \ 15662variables_saved_for_relink \ 15663libname_spec \ 15664library_names_spec \ 15665soname_spec \ 15666install_override_mode \ 15667finish_eval \ 15668old_striplib \ 15669striplib \ 15670compiler_lib_search_dirs \ 15671predep_objects \ 15672postdep_objects \ 15673predeps \ 15674postdeps \ 15675compiler_lib_search_path \ 15676LD_CXX \ 15677reload_flag_CXX \ 15678compiler_CXX \ 15679lt_prog_compiler_no_builtin_flag_CXX \ 15680lt_prog_compiler_wl_CXX \ 15681lt_prog_compiler_pic_CXX \ 15682lt_prog_compiler_static_CXX \ 15683lt_cv_prog_compiler_c_o_CXX \ 15684export_dynamic_flag_spec_CXX \ 15685whole_archive_flag_spec_CXX \ 15686compiler_needs_object_CXX \ 15687with_gnu_ld_CXX \ 15688allow_undefined_flag_CXX \ 15689no_undefined_flag_CXX \ 15690hardcode_libdir_flag_spec_CXX \ 15691hardcode_libdir_flag_spec_ld_CXX \ 15692hardcode_libdir_separator_CXX \ 15693fix_srcfile_path_CXX \ 15694exclude_expsyms_CXX \ 15695include_expsyms_CXX \ 15696file_list_spec_CXX \ 15697compiler_lib_search_dirs_CXX \ 15698predep_objects_CXX \ 15699postdep_objects_CXX \ 15700predeps_CXX \ 15701postdeps_CXX \ 15702compiler_lib_search_path_CXX; do 15703 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15704 *[\\\\\\\`\\"\\\$]*) 15705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15706 ;; 15707 *) 15708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15709 ;; 15710 esac 15711done 15712 15713# Double-quote double-evaled strings. 15714for var in reload_cmds \ 15715old_postinstall_cmds \ 15716old_postuninstall_cmds \ 15717old_archive_cmds \ 15718extract_expsyms_cmds \ 15719old_archive_from_new_cmds \ 15720old_archive_from_expsyms_cmds \ 15721archive_cmds \ 15722archive_expsym_cmds \ 15723module_cmds \ 15724module_expsym_cmds \ 15725export_symbols_cmds \ 15726prelink_cmds \ 15727postinstall_cmds \ 15728postuninstall_cmds \ 15729finish_cmds \ 15730sys_lib_search_path_spec \ 15731sys_lib_dlsearch_path_spec \ 15732reload_cmds_CXX \ 15733old_archive_cmds_CXX \ 15734old_archive_from_new_cmds_CXX \ 15735old_archive_from_expsyms_cmds_CXX \ 15736archive_cmds_CXX \ 15737archive_expsym_cmds_CXX \ 15738module_cmds_CXX \ 15739module_expsym_cmds_CXX \ 15740export_symbols_cmds_CXX \ 15741prelink_cmds_CXX; do 15742 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15743 *[\\\\\\\`\\"\\\$]*) 15744 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15745 ;; 15746 *) 15747 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15748 ;; 15749 esac 15750done 15751 15752ac_aux_dir='$ac_aux_dir' 15753xsi_shell='$xsi_shell' 15754lt_shell_append='$lt_shell_append' 15755 15756# See if we are running on zsh, and set the options which allow our 15757# commands through without removal of \ escapes INIT. 15758if test -n "\${ZSH_VERSION+set}" ; then 15759 setopt NO_GLOB_SUBST 15760fi 15761 15762 15763 PACKAGE='$PACKAGE' 15764 VERSION='$VERSION' 15765 TIMESTAMP='$TIMESTAMP' 15766 RM='$RM' 15767 ofile='$ofile' 15768 15769 15770 15771 15772 15773 15774_ACEOF 15775 15776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15777 15778# Handling of arguments. 15779for ac_config_target in $ac_config_targets 15780do 15781 case $ac_config_target in 15782 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;; 15783 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15784 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15786 15787 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15788 esac 15789done 15790 15791 15792# If the user did not use the arguments to specify the items to instantiate, 15793# then the envvar interface is used. Set only those that are not. 15794# We use the long form for the default assignment because of an extremely 15795# bizarre bug on SunOS 4.1.3. 15796if $ac_need_defaults; then 15797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15800fi 15801 15802# Have a temporary directory for convenience. Make it in the build tree 15803# simply because there is no reason against having it here, and in addition, 15804# creating and moving files from /tmp can sometimes cause problems. 15805# Hook for its removal unless debugging. 15806# Note that there is a small window in which the directory will not be cleaned: 15807# after its creation but before its name has been assigned to `$tmp'. 15808$debug || 15809{ 15810 tmp= 15811 trap 'exit_status=$? 15812 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15813' 0 15814 trap 'as_fn_exit 1' 1 2 13 15 15815} 15816# Create a (secure) tmp directory for tmp files. 15817 15818{ 15819 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15820 test -n "$tmp" && test -d "$tmp" 15821} || 15822{ 15823 tmp=./conf$$-$RANDOM 15824 (umask 077 && mkdir "$tmp") 15825} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 15826 15827# Set up the scripts for CONFIG_FILES section. 15828# No need to generate them if there are no CONFIG_FILES. 15829# This happens for instance with `./config.status config.h'. 15830if test -n "$CONFIG_FILES"; then 15831 15832 15833ac_cr=`echo X | tr X '\015'` 15834# On cygwin, bash can eat \r inside `` if the user requested igncr. 15835# But we know of no other shell where ac_cr would be empty at this 15836# point, so we can use a bashism as a fallback. 15837if test "x$ac_cr" = x; then 15838 eval ac_cr=\$\'\\r\' 15839fi 15840ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15841if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15842 ac_cs_awk_cr='\r' 15843else 15844 ac_cs_awk_cr=$ac_cr 15845fi 15846 15847echo 'BEGIN {' >"$tmp/subs1.awk" && 15848_ACEOF 15849 15850 15851{ 15852 echo "cat >conf$$subs.awk <<_ACEOF" && 15853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15854 echo "_ACEOF" 15855} >conf$$subs.sh || 15856 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15857ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15858ac_delim='%!_!# ' 15859for ac_last_try in false false false false false :; do 15860 . ./conf$$subs.sh || 15861 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15862 15863 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15864 if test $ac_delim_n = $ac_delim_num; then 15865 break 15866 elif $ac_last_try; then 15867 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15868 else 15869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15870 fi 15871done 15872rm -f conf$$subs.sh 15873 15874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15875cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15876_ACEOF 15877sed -n ' 15878h 15879s/^/S["/; s/!.*/"]=/ 15880p 15881g 15882s/^[^!]*!// 15883:repl 15884t repl 15885s/'"$ac_delim"'$// 15886t delim 15887:nl 15888h 15889s/\(.\{148\}\).*/\1/ 15890t more1 15891s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15892p 15893n 15894b repl 15895:more1 15896s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15897p 15898g 15899s/.\{148\}// 15900t nl 15901:delim 15902h 15903s/\(.\{148\}\).*/\1/ 15904t more2 15905s/["\\]/\\&/g; s/^/"/; s/$/"/ 15906p 15907b 15908:more2 15909s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15910p 15911g 15912s/.\{148\}// 15913t delim 15914' <conf$$subs.awk | sed ' 15915/^[^""]/{ 15916 N 15917 s/\n// 15918} 15919' >>$CONFIG_STATUS || ac_write_fail=1 15920rm -f conf$$subs.awk 15921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15922_ACAWK 15923cat >>"\$tmp/subs1.awk" <<_ACAWK && 15924 for (key in S) S_is_set[key] = 1 15925 FS = "" 15926 15927} 15928{ 15929 line = $ 0 15930 nfields = split(line, field, "@") 15931 substed = 0 15932 len = length(field[1]) 15933 for (i = 2; i < nfields; i++) { 15934 key = field[i] 15935 keylen = length(key) 15936 if (S_is_set[key]) { 15937 value = S[key] 15938 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15939 len += length(value) + length(field[++i]) 15940 substed = 1 15941 } else 15942 len += 1 + keylen 15943 } 15944 15945 print line 15946} 15947 15948_ACAWK 15949_ACEOF 15950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15951if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15952 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15953else 15954 cat 15955fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15956 || as_fn_error "could not setup config files machinery" "$LINENO" 5 15957_ACEOF 15958 15959# VPATH may cause trouble with some makes, so we remove $(srcdir), 15960# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15961# trailing colons and then remove the whole line if VPATH becomes empty 15962# (actually we leave an empty line to preserve line numbers). 15963if test "x$srcdir" = x.; then 15964 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15965s/:*\$(srcdir):*/:/ 15966s/:*\${srcdir}:*/:/ 15967s/:*@srcdir@:*/:/ 15968s/^\([^=]*=[ ]*\):*/\1/ 15969s/:*$// 15970s/^[^=]*=[ ]*$// 15971}' 15972fi 15973 15974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15975fi # test -n "$CONFIG_FILES" 15976 15977# Set up the scripts for CONFIG_HEADERS section. 15978# No need to generate them if there are no CONFIG_HEADERS. 15979# This happens for instance with `./config.status Makefile'. 15980if test -n "$CONFIG_HEADERS"; then 15981cat >"$tmp/defines.awk" <<\_ACAWK || 15982BEGIN { 15983_ACEOF 15984 15985# Transform confdefs.h into an awk script `defines.awk', embedded as 15986# here-document in config.status, that substitutes the proper values into 15987# config.h.in to produce config.h. 15988 15989# Create a delimiter string that does not exist in confdefs.h, to ease 15990# handling of long lines. 15991ac_delim='%!_!# ' 15992for ac_last_try in false false :; do 15993 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15994 if test -z "$ac_t"; then 15995 break 15996 elif $ac_last_try; then 15997 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 15998 else 15999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16000 fi 16001done 16002 16003# For the awk script, D is an array of macro values keyed by name, 16004# likewise P contains macro parameters if any. Preserve backslash 16005# newline sequences. 16006 16007ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16008sed -n ' 16009s/.\{148\}/&'"$ac_delim"'/g 16010t rset 16011:rset 16012s/^[ ]*#[ ]*define[ ][ ]*/ / 16013t def 16014d 16015:def 16016s/\\$// 16017t bsnl 16018s/["\\]/\\&/g 16019s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16020D["\1"]=" \3"/p 16021s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16022d 16023:bsnl 16024s/["\\]/\\&/g 16025s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16026D["\1"]=" \3\\\\\\n"\\/p 16027t cont 16028s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16029t cont 16030d 16031:cont 16032n 16033s/.\{148\}/&'"$ac_delim"'/g 16034t clear 16035:clear 16036s/\\$// 16037t bsnlc 16038s/["\\]/\\&/g; s/^/"/; s/$/"/p 16039d 16040:bsnlc 16041s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16042b cont 16043' <confdefs.h | sed ' 16044s/'"$ac_delim"'/"\\\ 16045"/g' >>$CONFIG_STATUS || ac_write_fail=1 16046 16047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16048 for (key in D) D_is_set[key] = 1 16049 FS = "" 16050} 16051/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16052 line = \$ 0 16053 split(line, arg, " ") 16054 if (arg[1] == "#") { 16055 defundef = arg[2] 16056 mac1 = arg[3] 16057 } else { 16058 defundef = substr(arg[1], 2) 16059 mac1 = arg[2] 16060 } 16061 split(mac1, mac2, "(") #) 16062 macro = mac2[1] 16063 prefix = substr(line, 1, index(line, defundef) - 1) 16064 if (D_is_set[macro]) { 16065 # Preserve the white space surrounding the "#". 16066 print prefix "define", macro P[macro] D[macro] 16067 next 16068 } else { 16069 # Replace #undef with comments. This is necessary, for example, 16070 # in the case of _POSIX_SOURCE, which is predefined and required 16071 # on some systems where configure will not decide to define it. 16072 if (defundef == "undef") { 16073 print "/*", prefix defundef, macro, "*/" 16074 next 16075 } 16076 } 16077} 16078{ print } 16079_ACAWK 16080_ACEOF 16081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16082 as_fn_error "could not setup config headers machinery" "$LINENO" 5 16083fi # test -n "$CONFIG_HEADERS" 16084 16085 16086eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16087shift 16088for ac_tag 16089do 16090 case $ac_tag in 16091 :[FHLC]) ac_mode=$ac_tag; continue;; 16092 esac 16093 case $ac_mode$ac_tag in 16094 :[FHL]*:*);; 16095 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 16096 :[FH]-) ac_tag=-:-;; 16097 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16098 esac 16099 ac_save_IFS=$IFS 16100 IFS=: 16101 set x $ac_tag 16102 IFS=$ac_save_IFS 16103 shift 16104 ac_file=$1 16105 shift 16106 16107 case $ac_mode in 16108 :L) ac_source=$1;; 16109 :[FH]) 16110 ac_file_inputs= 16111 for ac_f 16112 do 16113 case $ac_f in 16114 -) ac_f="$tmp/stdin";; 16115 *) # Look for the file first in the build tree, then in the source tree 16116 # (if the path is not absolute). The absolute path cannot be DOS-style, 16117 # because $ac_f cannot contain `:'. 16118 test -f "$ac_f" || 16119 case $ac_f in 16120 [\\/$]*) false;; 16121 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16122 esac || 16123 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16124 esac 16125 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16126 as_fn_append ac_file_inputs " '$ac_f'" 16127 done 16128 16129 # Let's still pretend it is `configure' which instantiates (i.e., don't 16130 # use $as_me), people would be surprised to read: 16131 # /* config.h. Generated by config.status. */ 16132 configure_input='Generated from '` 16133 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16134 `' by configure.' 16135 if test x"$ac_file" != x-; then 16136 configure_input="$ac_file. $configure_input" 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16138$as_echo "$as_me: creating $ac_file" >&6;} 16139 fi 16140 # Neutralize special characters interpreted by sed in replacement strings. 16141 case $configure_input in #( 16142 *\&* | *\|* | *\\* ) 16143 ac_sed_conf_input=`$as_echo "$configure_input" | 16144 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16145 *) ac_sed_conf_input=$configure_input;; 16146 esac 16147 16148 case $ac_tag in 16149 *:-:* | *:-) cat >"$tmp/stdin" \ 16150 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 16151 esac 16152 ;; 16153 esac 16154 16155 ac_dir=`$as_dirname -- "$ac_file" || 16156$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16157 X"$ac_file" : 'X\(//\)[^/]' \| \ 16158 X"$ac_file" : 'X\(//\)$' \| \ 16159 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16160$as_echo X"$ac_file" | 16161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16162 s//\1/ 16163 q 16164 } 16165 /^X\(\/\/\)[^/].*/{ 16166 s//\1/ 16167 q 16168 } 16169 /^X\(\/\/\)$/{ 16170 s//\1/ 16171 q 16172 } 16173 /^X\(\/\).*/{ 16174 s//\1/ 16175 q 16176 } 16177 s/.*/./; q'` 16178 as_dir="$ac_dir"; as_fn_mkdir_p 16179 ac_builddir=. 16180 16181case "$ac_dir" in 16182.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16183*) 16184 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16185 # A ".." for each directory in $ac_dir_suffix. 16186 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16187 case $ac_top_builddir_sub in 16188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16190 esac ;; 16191esac 16192ac_abs_top_builddir=$ac_pwd 16193ac_abs_builddir=$ac_pwd$ac_dir_suffix 16194# for backward compatibility: 16195ac_top_builddir=$ac_top_build_prefix 16196 16197case $srcdir in 16198 .) # We are building in place. 16199 ac_srcdir=. 16200 ac_top_srcdir=$ac_top_builddir_sub 16201 ac_abs_top_srcdir=$ac_pwd ;; 16202 [\\/]* | ?:[\\/]* ) # Absolute name. 16203 ac_srcdir=$srcdir$ac_dir_suffix; 16204 ac_top_srcdir=$srcdir 16205 ac_abs_top_srcdir=$srcdir ;; 16206 *) # Relative name. 16207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16208 ac_top_srcdir=$ac_top_build_prefix$srcdir 16209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16210esac 16211ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16212 16213 16214 case $ac_mode in 16215 :F) 16216 # 16217 # CONFIG_FILE 16218 # 16219 16220 case $INSTALL in 16221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16222 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16223 esac 16224 ac_MKDIR_P=$MKDIR_P 16225 case $MKDIR_P in 16226 [\\/$]* | ?:[\\/]* ) ;; 16227 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16228 esac 16229_ACEOF 16230 16231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16232# If the template does not know about datarootdir, expand it. 16233# FIXME: This hack should be removed a few years after 2.60. 16234ac_datarootdir_hack=; ac_datarootdir_seen= 16235ac_sed_dataroot=' 16236/datarootdir/ { 16237 p 16238 q 16239} 16240/@datadir@/p 16241/@docdir@/p 16242/@infodir@/p 16243/@localedir@/p 16244/@mandir@/p' 16245case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16246*datarootdir*) ac_datarootdir_seen=yes;; 16247*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16249$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16250_ACEOF 16251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16252 ac_datarootdir_hack=' 16253 s&@datadir@&$datadir&g 16254 s&@docdir@&$docdir&g 16255 s&@infodir@&$infodir&g 16256 s&@localedir@&$localedir&g 16257 s&@mandir@&$mandir&g 16258 s&\\\${datarootdir}&$datarootdir&g' ;; 16259esac 16260_ACEOF 16261 16262# Neutralize VPATH when `$srcdir' = `.'. 16263# Shell code in configure.ac might set extrasub. 16264# FIXME: do we really want to maintain this feature? 16265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16266ac_sed_extra="$ac_vpsub 16267$extrasub 16268_ACEOF 16269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16270:t 16271/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16272s|@configure_input@|$ac_sed_conf_input|;t t 16273s&@top_builddir@&$ac_top_builddir_sub&;t t 16274s&@top_build_prefix@&$ac_top_build_prefix&;t t 16275s&@srcdir@&$ac_srcdir&;t t 16276s&@abs_srcdir@&$ac_abs_srcdir&;t t 16277s&@top_srcdir@&$ac_top_srcdir&;t t 16278s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16279s&@builddir@&$ac_builddir&;t t 16280s&@abs_builddir@&$ac_abs_builddir&;t t 16281s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16282s&@INSTALL@&$ac_INSTALL&;t t 16283s&@MKDIR_P@&$ac_MKDIR_P&;t t 16284$ac_datarootdir_hack 16285" 16286eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16287 || as_fn_error "could not create $ac_file" "$LINENO" 5 16288 16289test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16290 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16293which seems to be undefined. Please make sure it is defined." >&5 16294$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16295which seems to be undefined. Please make sure it is defined." >&2;} 16296 16297 rm -f "$tmp/stdin" 16298 case $ac_file in 16299 -) cat "$tmp/out" && rm -f "$tmp/out";; 16300 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16301 esac \ 16302 || as_fn_error "could not create $ac_file" "$LINENO" 5 16303 ;; 16304 :H) 16305 # 16306 # CONFIG_HEADER 16307 # 16308 if test x"$ac_file" != x-; then 16309 { 16310 $as_echo "/* $configure_input */" \ 16311 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16312 } >"$tmp/config.h" \ 16313 || as_fn_error "could not create $ac_file" "$LINENO" 5 16314 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16315 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16316$as_echo "$as_me: $ac_file is unchanged" >&6;} 16317 else 16318 rm -f "$ac_file" 16319 mv "$tmp/config.h" "$ac_file" \ 16320 || as_fn_error "could not create $ac_file" "$LINENO" 5 16321 fi 16322 else 16323 $as_echo "/* $configure_input */" \ 16324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16325 || as_fn_error "could not create -" "$LINENO" 5 16326 fi 16327# Compute "$ac_file"'s index in $config_headers. 16328_am_arg="$ac_file" 16329_am_stamp_count=1 16330for _am_header in $config_headers :; do 16331 case $_am_header in 16332 $_am_arg | $_am_arg:* ) 16333 break ;; 16334 * ) 16335 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16336 esac 16337done 16338echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16339$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16340 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16341 X"$_am_arg" : 'X\(//\)$' \| \ 16342 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16343$as_echo X"$_am_arg" | 16344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16345 s//\1/ 16346 q 16347 } 16348 /^X\(\/\/\)[^/].*/{ 16349 s//\1/ 16350 q 16351 } 16352 /^X\(\/\/\)$/{ 16353 s//\1/ 16354 q 16355 } 16356 /^X\(\/\).*/{ 16357 s//\1/ 16358 q 16359 } 16360 s/.*/./; q'`/stamp-h$_am_stamp_count 16361 ;; 16362 16363 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16364$as_echo "$as_me: executing $ac_file commands" >&6;} 16365 ;; 16366 esac 16367 16368 16369 case $ac_file$ac_mode in 16370 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16371 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16372 # are listed without --file. Let's play safe and only enable the eval 16373 # if we detect the quoting. 16374 case $CONFIG_FILES in 16375 *\'*) eval set x "$CONFIG_FILES" ;; 16376 *) set x $CONFIG_FILES ;; 16377 esac 16378 shift 16379 for mf 16380 do 16381 # Strip MF so we end up with the name of the file. 16382 mf=`echo "$mf" | sed -e 's/:.*$//'` 16383 # Check whether this is an Automake generated Makefile or not. 16384 # We used to match only the files named `Makefile.in', but 16385 # some people rename them; so instead we look at the file content. 16386 # Grep'ing the first line is not enough: some people post-process 16387 # each Makefile.in and add a new line on top of each file to say so. 16388 # Grep'ing the whole file is not good either: AIX grep has a line 16389 # limit of 2048, but all sed's we know have understand at least 4000. 16390 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16391 dirpart=`$as_dirname -- "$mf" || 16392$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16393 X"$mf" : 'X\(//\)[^/]' \| \ 16394 X"$mf" : 'X\(//\)$' \| \ 16395 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16396$as_echo X"$mf" | 16397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16398 s//\1/ 16399 q 16400 } 16401 /^X\(\/\/\)[^/].*/{ 16402 s//\1/ 16403 q 16404 } 16405 /^X\(\/\/\)$/{ 16406 s//\1/ 16407 q 16408 } 16409 /^X\(\/\).*/{ 16410 s//\1/ 16411 q 16412 } 16413 s/.*/./; q'` 16414 else 16415 continue 16416 fi 16417 # Extract the definition of DEPDIR, am__include, and am__quote 16418 # from the Makefile without running `make'. 16419 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16420 test -z "$DEPDIR" && continue 16421 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16422 test -z "am__include" && continue 16423 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16424 # When using ansi2knr, U may be empty or an underscore; expand it 16425 U=`sed -n 's/^U = //p' < "$mf"` 16426 # Find all dependency output files, they are included files with 16427 # $(DEPDIR) in their names. We invoke sed twice because it is the 16428 # simplest approach to changing $(DEPDIR) to its actual value in the 16429 # expansion. 16430 for file in `sed -n " 16431 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16432 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16433 # Make sure the directory exists. 16434 test -f "$dirpart/$file" && continue 16435 fdir=`$as_dirname -- "$file" || 16436$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16437 X"$file" : 'X\(//\)[^/]' \| \ 16438 X"$file" : 'X\(//\)$' \| \ 16439 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16440$as_echo X"$file" | 16441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16442 s//\1/ 16443 q 16444 } 16445 /^X\(\/\/\)[^/].*/{ 16446 s//\1/ 16447 q 16448 } 16449 /^X\(\/\/\)$/{ 16450 s//\1/ 16451 q 16452 } 16453 /^X\(\/\).*/{ 16454 s//\1/ 16455 q 16456 } 16457 s/.*/./; q'` 16458 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16459 # echo "creating $dirpart/$file" 16460 echo '# dummy' > "$dirpart/$file" 16461 done 16462 done 16463} 16464 ;; 16465 "libtool":C) 16466 16467 # See if we are running on zsh, and set the options which allow our 16468 # commands through without removal of \ escapes. 16469 if test -n "${ZSH_VERSION+set}" ; then 16470 setopt NO_GLOB_SUBST 16471 fi 16472 16473 cfgfile="${ofile}T" 16474 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16475 $RM "$cfgfile" 16476 16477 cat <<_LT_EOF >> "$cfgfile" 16478#! $SHELL 16479 16480# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16481# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16482# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16483# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16484# 16485# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16486# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16487# Written by Gordon Matzigkeit, 1996 16488# 16489# This file is part of GNU Libtool. 16490# 16491# GNU Libtool is free software; you can redistribute it and/or 16492# modify it under the terms of the GNU General Public License as 16493# published by the Free Software Foundation; either version 2 of 16494# the License, or (at your option) any later version. 16495# 16496# As a special exception to the GNU General Public License, 16497# if you distribute this file as part of a program or library that 16498# is built using GNU Libtool, you may include this file under the 16499# same distribution terms that you use for the rest of that program. 16500# 16501# GNU Libtool is distributed in the hope that it will be useful, 16502# but WITHOUT ANY WARRANTY; without even the implied warranty of 16503# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16504# GNU General Public License for more details. 16505# 16506# You should have received a copy of the GNU General Public License 16507# along with GNU Libtool; see the file COPYING. If not, a copy 16508# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16509# obtained by writing to the Free Software Foundation, Inc., 16510# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16511 16512 16513# The names of the tagged configurations supported by this script. 16514available_tags="CXX " 16515 16516# ### BEGIN LIBTOOL CONFIG 16517 16518# Which release of libtool.m4 was used? 16519macro_version=$macro_version 16520macro_revision=$macro_revision 16521 16522# Whether or not to build static libraries. 16523build_old_libs=$enable_static 16524 16525# Whether or not to build shared libraries. 16526build_libtool_libs=$enable_shared 16527 16528# What type of objects to build. 16529pic_mode=$pic_mode 16530 16531# Whether or not to optimize for fast installation. 16532fast_install=$enable_fast_install 16533 16534# Shell to use when invoking shell scripts. 16535SHELL=$lt_SHELL 16536 16537# An echo program that protects backslashes. 16538ECHO=$lt_ECHO 16539 16540# The host system. 16541host_alias=$host_alias 16542host=$host 16543host_os=$host_os 16544 16545# The build system. 16546build_alias=$build_alias 16547build=$build 16548build_os=$build_os 16549 16550# A sed program that does not truncate output. 16551SED=$lt_SED 16552 16553# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16554Xsed="\$SED -e 1s/^X//" 16555 16556# A grep program that handles long lines. 16557GREP=$lt_GREP 16558 16559# An ERE matcher. 16560EGREP=$lt_EGREP 16561 16562# A literal string matcher. 16563FGREP=$lt_FGREP 16564 16565# A BSD- or MS-compatible name lister. 16566NM=$lt_NM 16567 16568# Whether we need soft or hard links. 16569LN_S=$lt_LN_S 16570 16571# What is the maximum length of a command? 16572max_cmd_len=$max_cmd_len 16573 16574# Object file suffix (normally "o"). 16575objext=$ac_objext 16576 16577# Executable file suffix (normally ""). 16578exeext=$exeext 16579 16580# whether the shell understands "unset". 16581lt_unset=$lt_unset 16582 16583# turn spaces into newlines. 16584SP2NL=$lt_lt_SP2NL 16585 16586# turn newlines into spaces. 16587NL2SP=$lt_lt_NL2SP 16588 16589# An object symbol dumper. 16590OBJDUMP=$lt_OBJDUMP 16591 16592# Method to check whether dependent libraries are shared objects. 16593deplibs_check_method=$lt_deplibs_check_method 16594 16595# Command to use when deplibs_check_method == "file_magic". 16596file_magic_cmd=$lt_file_magic_cmd 16597 16598# The archiver. 16599AR=$lt_AR 16600AR_FLAGS=$lt_AR_FLAGS 16601 16602# A symbol stripping program. 16603STRIP=$lt_STRIP 16604 16605# Commands used to install an old-style archive. 16606RANLIB=$lt_RANLIB 16607old_postinstall_cmds=$lt_old_postinstall_cmds 16608old_postuninstall_cmds=$lt_old_postuninstall_cmds 16609 16610# Whether to use a lock for old archive extraction. 16611lock_old_archive_extraction=$lock_old_archive_extraction 16612 16613# A C compiler. 16614LTCC=$lt_CC 16615 16616# LTCC compiler flags. 16617LTCFLAGS=$lt_CFLAGS 16618 16619# Take the output of nm and produce a listing of raw symbols and C names. 16620global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16621 16622# Transform the output of nm in a proper C declaration. 16623global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16624 16625# Transform the output of nm in a C name address pair. 16626global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16627 16628# Transform the output of nm in a C name address pair when lib prefix is needed. 16629global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16630 16631# The name of the directory that contains temporary libtool files. 16632objdir=$objdir 16633 16634# Used to examine libraries when file_magic_cmd begins with "file". 16635MAGIC_CMD=$MAGIC_CMD 16636 16637# Must we lock files when doing compilation? 16638need_locks=$lt_need_locks 16639 16640# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16641DSYMUTIL=$lt_DSYMUTIL 16642 16643# Tool to change global to local symbols on Mac OS X. 16644NMEDIT=$lt_NMEDIT 16645 16646# Tool to manipulate fat objects and archives on Mac OS X. 16647LIPO=$lt_LIPO 16648 16649# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16650OTOOL=$lt_OTOOL 16651 16652# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16653OTOOL64=$lt_OTOOL64 16654 16655# Old archive suffix (normally "a"). 16656libext=$libext 16657 16658# Shared library suffix (normally ".so"). 16659shrext_cmds=$lt_shrext_cmds 16660 16661# The commands to extract the exported symbol list from a shared archive. 16662extract_expsyms_cmds=$lt_extract_expsyms_cmds 16663 16664# Variables whose values should be saved in libtool wrapper scripts and 16665# restored at link time. 16666variables_saved_for_relink=$lt_variables_saved_for_relink 16667 16668# Do we need the "lib" prefix for modules? 16669need_lib_prefix=$need_lib_prefix 16670 16671# Do we need a version for libraries? 16672need_version=$need_version 16673 16674# Library versioning type. 16675version_type=$version_type 16676 16677# Shared library runtime path variable. 16678runpath_var=$runpath_var 16679 16680# Shared library path variable. 16681shlibpath_var=$shlibpath_var 16682 16683# Is shlibpath searched before the hard-coded library search path? 16684shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16685 16686# Format of library name prefix. 16687libname_spec=$lt_libname_spec 16688 16689# List of archive names. First name is the real one, the rest are links. 16690# The last name is the one that the linker finds with -lNAME 16691library_names_spec=$lt_library_names_spec 16692 16693# The coded name of the library, if different from the real name. 16694soname_spec=$lt_soname_spec 16695 16696# Permission mode override for installation of shared libraries. 16697install_override_mode=$lt_install_override_mode 16698 16699# Command to use after installation of a shared archive. 16700postinstall_cmds=$lt_postinstall_cmds 16701 16702# Command to use after uninstallation of a shared archive. 16703postuninstall_cmds=$lt_postuninstall_cmds 16704 16705# Commands used to finish a libtool library installation in a directory. 16706finish_cmds=$lt_finish_cmds 16707 16708# As "finish_cmds", except a single script fragment to be evaled but 16709# not shown. 16710finish_eval=$lt_finish_eval 16711 16712# Whether we should hardcode library paths into libraries. 16713hardcode_into_libs=$hardcode_into_libs 16714 16715# Compile-time system search path for libraries. 16716sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16717 16718# Run-time system search path for libraries. 16719sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16720 16721# Whether dlopen is supported. 16722dlopen_support=$enable_dlopen 16723 16724# Whether dlopen of programs is supported. 16725dlopen_self=$enable_dlopen_self 16726 16727# Whether dlopen of statically linked programs is supported. 16728dlopen_self_static=$enable_dlopen_self_static 16729 16730# Commands to strip libraries. 16731old_striplib=$lt_old_striplib 16732striplib=$lt_striplib 16733 16734 16735# The linker used to build libraries. 16736LD=$lt_LD 16737 16738# How to create reloadable object files. 16739reload_flag=$lt_reload_flag 16740reload_cmds=$lt_reload_cmds 16741 16742# Commands used to build an old-style archive. 16743old_archive_cmds=$lt_old_archive_cmds 16744 16745# A language specific compiler. 16746CC=$lt_compiler 16747 16748# Is the compiler the GNU compiler? 16749with_gcc=$GCC 16750 16751# Compiler flag to turn off builtin functions. 16752no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16753 16754# How to pass a linker flag through the compiler. 16755wl=$lt_lt_prog_compiler_wl 16756 16757# Additional compiler flags for building library objects. 16758pic_flag=$lt_lt_prog_compiler_pic 16759 16760# Compiler flag to prevent dynamic linking. 16761link_static_flag=$lt_lt_prog_compiler_static 16762 16763# Does compiler simultaneously support -c and -o options? 16764compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16765 16766# Whether or not to add -lc for building shared libraries. 16767build_libtool_need_lc=$archive_cmds_need_lc 16768 16769# Whether or not to disallow shared libs when runtime libs are static. 16770allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16771 16772# Compiler flag to allow reflexive dlopens. 16773export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16774 16775# Compiler flag to generate shared objects directly from archives. 16776whole_archive_flag_spec=$lt_whole_archive_flag_spec 16777 16778# Whether the compiler copes with passing no objects directly. 16779compiler_needs_object=$lt_compiler_needs_object 16780 16781# Create an old-style archive from a shared archive. 16782old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16783 16784# Create a temporary old-style archive to link instead of a shared archive. 16785old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16786 16787# Commands used to build a shared archive. 16788archive_cmds=$lt_archive_cmds 16789archive_expsym_cmds=$lt_archive_expsym_cmds 16790 16791# Commands used to build a loadable module if different from building 16792# a shared archive. 16793module_cmds=$lt_module_cmds 16794module_expsym_cmds=$lt_module_expsym_cmds 16795 16796# Whether we are building with GNU ld or not. 16797with_gnu_ld=$lt_with_gnu_ld 16798 16799# Flag that allows shared libraries with undefined symbols to be built. 16800allow_undefined_flag=$lt_allow_undefined_flag 16801 16802# Flag that enforces no undefined symbols. 16803no_undefined_flag=$lt_no_undefined_flag 16804 16805# Flag to hardcode \$libdir into a binary during linking. 16806# This must work even if \$libdir does not exist 16807hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16808 16809# If ld is used when linking, flag to hardcode \$libdir into a binary 16810# during linking. This must work even if \$libdir does not exist. 16811hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16812 16813# Whether we need a single "-rpath" flag with a separated argument. 16814hardcode_libdir_separator=$lt_hardcode_libdir_separator 16815 16816# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16817# DIR into the resulting binary. 16818hardcode_direct=$hardcode_direct 16819 16820# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16821# DIR into the resulting binary and the resulting library dependency is 16822# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16823# library is relocated. 16824hardcode_direct_absolute=$hardcode_direct_absolute 16825 16826# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16827# into the resulting binary. 16828hardcode_minus_L=$hardcode_minus_L 16829 16830# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16831# into the resulting binary. 16832hardcode_shlibpath_var=$hardcode_shlibpath_var 16833 16834# Set to "yes" if building a shared library automatically hardcodes DIR 16835# into the library and all subsequent libraries and executables linked 16836# against it. 16837hardcode_automatic=$hardcode_automatic 16838 16839# Set to yes if linker adds runtime paths of dependent libraries 16840# to runtime path list. 16841inherit_rpath=$inherit_rpath 16842 16843# Whether libtool must link a program against all its dependency libraries. 16844link_all_deplibs=$link_all_deplibs 16845 16846# Fix the shell variable \$srcfile for the compiler. 16847fix_srcfile_path=$lt_fix_srcfile_path 16848 16849# Set to "yes" if exported symbols are required. 16850always_export_symbols=$always_export_symbols 16851 16852# The commands to list exported symbols. 16853export_symbols_cmds=$lt_export_symbols_cmds 16854 16855# Symbols that should not be listed in the preloaded symbols. 16856exclude_expsyms=$lt_exclude_expsyms 16857 16858# Symbols that must always be exported. 16859include_expsyms=$lt_include_expsyms 16860 16861# Commands necessary for linking programs (against libraries) with templates. 16862prelink_cmds=$lt_prelink_cmds 16863 16864# Specify filename containing input files. 16865file_list_spec=$lt_file_list_spec 16866 16867# How to hardcode a shared library path into an executable. 16868hardcode_action=$hardcode_action 16869 16870# The directories searched by this compiler when creating a shared library. 16871compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 16872 16873# Dependencies to place before and after the objects being linked to 16874# create a shared library. 16875predep_objects=$lt_predep_objects 16876postdep_objects=$lt_postdep_objects 16877predeps=$lt_predeps 16878postdeps=$lt_postdeps 16879 16880# The library search path used internally by the compiler when linking 16881# a shared library. 16882compiler_lib_search_path=$lt_compiler_lib_search_path 16883 16884# ### END LIBTOOL CONFIG 16885 16886_LT_EOF 16887 16888 case $host_os in 16889 aix3*) 16890 cat <<\_LT_EOF >> "$cfgfile" 16891# AIX sometimes has problems with the GCC collect2 program. For some 16892# reason, if we set the COLLECT_NAMES environment variable, the problems 16893# vanish in a puff of smoke. 16894if test "X${COLLECT_NAMES+set}" != Xset; then 16895 COLLECT_NAMES= 16896 export COLLECT_NAMES 16897fi 16898_LT_EOF 16899 ;; 16900 esac 16901 16902 16903ltmain="$ac_aux_dir/ltmain.sh" 16904 16905 16906 # We use sed instead of cat because bash on DJGPP gets confused if 16907 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16908 # text mode, it properly converts lines to CR/LF. This bash problem 16909 # is reportedly fixed, but why not run on old versions too? 16910 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16911 || (rm -f "$cfgfile"; exit 1) 16912 16913 case $xsi_shell in 16914 yes) 16915 cat << \_LT_EOF >> "$cfgfile" 16916 16917# func_dirname file append nondir_replacement 16918# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16919# otherwise set result to NONDIR_REPLACEMENT. 16920func_dirname () 16921{ 16922 case ${1} in 16923 */*) func_dirname_result="${1%/*}${2}" ;; 16924 * ) func_dirname_result="${3}" ;; 16925 esac 16926} 16927 16928# func_basename file 16929func_basename () 16930{ 16931 func_basename_result="${1##*/}" 16932} 16933 16934# func_dirname_and_basename file append nondir_replacement 16935# perform func_basename and func_dirname in a single function 16936# call: 16937# dirname: Compute the dirname of FILE. If nonempty, 16938# add APPEND to the result, otherwise set result 16939# to NONDIR_REPLACEMENT. 16940# value returned in "$func_dirname_result" 16941# basename: Compute filename of FILE. 16942# value retuned in "$func_basename_result" 16943# Implementation must be kept synchronized with func_dirname 16944# and func_basename. For efficiency, we do not delegate to 16945# those functions but instead duplicate the functionality here. 16946func_dirname_and_basename () 16947{ 16948 case ${1} in 16949 */*) func_dirname_result="${1%/*}${2}" ;; 16950 * ) func_dirname_result="${3}" ;; 16951 esac 16952 func_basename_result="${1##*/}" 16953} 16954 16955# func_stripname prefix suffix name 16956# strip PREFIX and SUFFIX off of NAME. 16957# PREFIX and SUFFIX must not contain globbing or regex special 16958# characters, hashes, percent signs, but SUFFIX may contain a leading 16959# dot (in which case that matches only a dot). 16960func_stripname () 16961{ 16962 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16963 # positional parameters, so assign one to ordinary parameter first. 16964 func_stripname_result=${3} 16965 func_stripname_result=${func_stripname_result#"${1}"} 16966 func_stripname_result=${func_stripname_result%"${2}"} 16967} 16968 16969# func_opt_split 16970func_opt_split () 16971{ 16972 func_opt_split_opt=${1%%=*} 16973 func_opt_split_arg=${1#*=} 16974} 16975 16976# func_lo2o object 16977func_lo2o () 16978{ 16979 case ${1} in 16980 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16981 *) func_lo2o_result=${1} ;; 16982 esac 16983} 16984 16985# func_xform libobj-or-source 16986func_xform () 16987{ 16988 func_xform_result=${1%.*}.lo 16989} 16990 16991# func_arith arithmetic-term... 16992func_arith () 16993{ 16994 func_arith_result=$(( $* )) 16995} 16996 16997# func_len string 16998# STRING may not start with a hyphen. 16999func_len () 17000{ 17001 func_len_result=${#1} 17002} 17003 17004_LT_EOF 17005 ;; 17006 *) # Bourne compatible functions. 17007 cat << \_LT_EOF >> "$cfgfile" 17008 17009# func_dirname file append nondir_replacement 17010# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17011# otherwise set result to NONDIR_REPLACEMENT. 17012func_dirname () 17013{ 17014 # Extract subdirectory from the argument. 17015 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17016 if test "X$func_dirname_result" = "X${1}"; then 17017 func_dirname_result="${3}" 17018 else 17019 func_dirname_result="$func_dirname_result${2}" 17020 fi 17021} 17022 17023# func_basename file 17024func_basename () 17025{ 17026 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17027} 17028 17029 17030# func_stripname prefix suffix name 17031# strip PREFIX and SUFFIX off of NAME. 17032# PREFIX and SUFFIX must not contain globbing or regex special 17033# characters, hashes, percent signs, but SUFFIX may contain a leading 17034# dot (in which case that matches only a dot). 17035# func_strip_suffix prefix name 17036func_stripname () 17037{ 17038 case ${2} in 17039 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17040 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17041 esac 17042} 17043 17044# sed scripts: 17045my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17046my_sed_long_arg='1s/^-[^=]*=//' 17047 17048# func_opt_split 17049func_opt_split () 17050{ 17051 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17052 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17053} 17054 17055# func_lo2o object 17056func_lo2o () 17057{ 17058 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17059} 17060 17061# func_xform libobj-or-source 17062func_xform () 17063{ 17064 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17065} 17066 17067# func_arith arithmetic-term... 17068func_arith () 17069{ 17070 func_arith_result=`expr "$@"` 17071} 17072 17073# func_len string 17074# STRING may not start with a hyphen. 17075func_len () 17076{ 17077 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17078} 17079 17080_LT_EOF 17081esac 17082 17083case $lt_shell_append in 17084 yes) 17085 cat << \_LT_EOF >> "$cfgfile" 17086 17087# func_append var value 17088# Append VALUE to the end of shell variable VAR. 17089func_append () 17090{ 17091 eval "$1+=\$2" 17092} 17093_LT_EOF 17094 ;; 17095 *) 17096 cat << \_LT_EOF >> "$cfgfile" 17097 17098# func_append var value 17099# Append VALUE to the end of shell variable VAR. 17100func_append () 17101{ 17102 eval "$1=\$$1\$2" 17103} 17104 17105_LT_EOF 17106 ;; 17107 esac 17108 17109 17110 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17111 || (rm -f "$cfgfile"; exit 1) 17112 17113 mv -f "$cfgfile" "$ofile" || 17114 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17115 chmod +x "$ofile" 17116 17117 17118 cat <<_LT_EOF >> "$ofile" 17119 17120# ### BEGIN LIBTOOL TAG CONFIG: CXX 17121 17122# The linker used to build libraries. 17123LD=$lt_LD_CXX 17124 17125# How to create reloadable object files. 17126reload_flag=$lt_reload_flag_CXX 17127reload_cmds=$lt_reload_cmds_CXX 17128 17129# Commands used to build an old-style archive. 17130old_archive_cmds=$lt_old_archive_cmds_CXX 17131 17132# A language specific compiler. 17133CC=$lt_compiler_CXX 17134 17135# Is the compiler the GNU compiler? 17136with_gcc=$GCC_CXX 17137 17138# Compiler flag to turn off builtin functions. 17139no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17140 17141# How to pass a linker flag through the compiler. 17142wl=$lt_lt_prog_compiler_wl_CXX 17143 17144# Additional compiler flags for building library objects. 17145pic_flag=$lt_lt_prog_compiler_pic_CXX 17146 17147# Compiler flag to prevent dynamic linking. 17148link_static_flag=$lt_lt_prog_compiler_static_CXX 17149 17150# Does compiler simultaneously support -c and -o options? 17151compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17152 17153# Whether or not to add -lc for building shared libraries. 17154build_libtool_need_lc=$archive_cmds_need_lc_CXX 17155 17156# Whether or not to disallow shared libs when runtime libs are static. 17157allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17158 17159# Compiler flag to allow reflexive dlopens. 17160export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17161 17162# Compiler flag to generate shared objects directly from archives. 17163whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17164 17165# Whether the compiler copes with passing no objects directly. 17166compiler_needs_object=$lt_compiler_needs_object_CXX 17167 17168# Create an old-style archive from a shared archive. 17169old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17170 17171# Create a temporary old-style archive to link instead of a shared archive. 17172old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17173 17174# Commands used to build a shared archive. 17175archive_cmds=$lt_archive_cmds_CXX 17176archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17177 17178# Commands used to build a loadable module if different from building 17179# a shared archive. 17180module_cmds=$lt_module_cmds_CXX 17181module_expsym_cmds=$lt_module_expsym_cmds_CXX 17182 17183# Whether we are building with GNU ld or not. 17184with_gnu_ld=$lt_with_gnu_ld_CXX 17185 17186# Flag that allows shared libraries with undefined symbols to be built. 17187allow_undefined_flag=$lt_allow_undefined_flag_CXX 17188 17189# Flag that enforces no undefined symbols. 17190no_undefined_flag=$lt_no_undefined_flag_CXX 17191 17192# Flag to hardcode \$libdir into a binary during linking. 17193# This must work even if \$libdir does not exist 17194hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17195 17196# If ld is used when linking, flag to hardcode \$libdir into a binary 17197# during linking. This must work even if \$libdir does not exist. 17198hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 17199 17200# Whether we need a single "-rpath" flag with a separated argument. 17201hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17202 17203# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17204# DIR into the resulting binary. 17205hardcode_direct=$hardcode_direct_CXX 17206 17207# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17208# DIR into the resulting binary and the resulting library dependency is 17209# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17210# library is relocated. 17211hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17212 17213# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17214# into the resulting binary. 17215hardcode_minus_L=$hardcode_minus_L_CXX 17216 17217# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17218# into the resulting binary. 17219hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17220 17221# Set to "yes" if building a shared library automatically hardcodes DIR 17222# into the library and all subsequent libraries and executables linked 17223# against it. 17224hardcode_automatic=$hardcode_automatic_CXX 17225 17226# Set to yes if linker adds runtime paths of dependent libraries 17227# to runtime path list. 17228inherit_rpath=$inherit_rpath_CXX 17229 17230# Whether libtool must link a program against all its dependency libraries. 17231link_all_deplibs=$link_all_deplibs_CXX 17232 17233# Fix the shell variable \$srcfile for the compiler. 17234fix_srcfile_path=$lt_fix_srcfile_path_CXX 17235 17236# Set to "yes" if exported symbols are required. 17237always_export_symbols=$always_export_symbols_CXX 17238 17239# The commands to list exported symbols. 17240export_symbols_cmds=$lt_export_symbols_cmds_CXX 17241 17242# Symbols that should not be listed in the preloaded symbols. 17243exclude_expsyms=$lt_exclude_expsyms_CXX 17244 17245# Symbols that must always be exported. 17246include_expsyms=$lt_include_expsyms_CXX 17247 17248# Commands necessary for linking programs (against libraries) with templates. 17249prelink_cmds=$lt_prelink_cmds_CXX 17250 17251# Specify filename containing input files. 17252file_list_spec=$lt_file_list_spec_CXX 17253 17254# How to hardcode a shared library path into an executable. 17255hardcode_action=$hardcode_action_CXX 17256 17257# The directories searched by this compiler when creating a shared library. 17258compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17259 17260# Dependencies to place before and after the objects being linked to 17261# create a shared library. 17262predep_objects=$lt_predep_objects_CXX 17263postdep_objects=$lt_postdep_objects_CXX 17264predeps=$lt_predeps_CXX 17265postdeps=$lt_postdeps_CXX 17266 17267# The library search path used internally by the compiler when linking 17268# a shared library. 17269compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 17270 17271# ### END LIBTOOL TAG CONFIG: CXX 17272_LT_EOF 17273 17274 ;; 17275 17276 esac 17277done # for ac_tag 17278 17279 17280as_fn_exit 0 17281_ACEOF 17282ac_clean_files=$ac_clean_files_save 17283 17284test $ac_write_fail = 0 || 17285 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 17286 17287 17288# configure is writing to config.log, and then calls config.status. 17289# config.status does its own redirection, appending to config.log. 17290# Unfortunately, on DOS this fails, as config.log is still kept open 17291# by configure, so config.status won't be able to write to it; its 17292# output is simply discarded. So we exec the FD to /dev/null, 17293# effectively closing config.log, so it can be properly (re)opened and 17294# appended to by config.status. When coming back to configure, we 17295# need to make the FD available again. 17296if test "$no_create" != yes; then 17297 ac_cs_success=: 17298 ac_config_status_args= 17299 test "$silent" = yes && 17300 ac_config_status_args="$ac_config_status_args --quiet" 17301 exec 5>/dev/null 17302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17303 exec 5>>config.log 17304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17305 # would make configure fail if this is the last instruction. 17306 $ac_cs_success || as_fn_exit $? 17307fi 17308if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17310$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17311fi 17312 17313