configure revision 1.1.1.7
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libcc1 version-unused. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 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. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libcc1' 589PACKAGE_TARNAME='libcc1' 590PACKAGE_VERSION='version-unused' 591PACKAGE_STRING='libcc1 version-unused' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="libcc1.cc" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636ENABLE_PLUGIN_FALSE 637ENABLE_PLUGIN_TRUE 638libsuffix 639GMPINC 640WERROR 641WARN_FLAGS 642CONFIG_STATUS_DEPENDENCIES 643gcc_version 644get_gcc_base_ver 645visibility 646CXXCPP 647am__fastdepCXX_FALSE 648am__fastdepCXX_TRUE 649CXXDEPMODE 650ac_ct_CXX 651CXXFLAGS 652CXX 653OTOOL64 654OTOOL 655LIPO 656NMEDIT 657DSYMUTIL 658RANLIB 659AR 660OBJDUMP 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667SED 668LIBTOOL 669MAINT 670MAINTAINER_MODE_FALSE 671MAINTAINER_MODE_TRUE 672AM_BACKSLASH 673AM_DEFAULT_VERBOSITY 674AM_DEFAULT_V 675AM_V 676am__fastdepCC_FALSE 677am__fastdepCC_TRUE 678CCDEPMODE 679am__nodep 680AMDEPBACKSLASH 681AMDEP_FALSE 682AMDEP_TRUE 683am__quote 684am__include 685DEPDIR 686am__untar 687am__tar 688AMTAR 689am__leading_dot 690SET_MAKE 691AWK 692mkdir_p 693MKDIR_P 694INSTALL_STRIP_PROGRAM 695STRIP 696install_sh 697MAKEINFO 698AUTOHEADER 699AUTOMAKE 700AUTOCONF 701ACLOCAL 702VERSION 703PACKAGE 704CYGPATH_W 705am__isrc 706INSTALL_DATA 707INSTALL_SCRIPT 708INSTALL_PROGRAM 709target_subdir 710host_subdir 711build_subdir 712build_libsubdir 713target_noncanonical 714EGREP 715GREP 716CPP 717OBJEXT 718EXEEXT 719ac_ct_CC 720CPPFLAGS 721LDFLAGS 722CFLAGS 723CC 724target_os 725target_vendor 726target_cpu 727target 728host_os 729host_vendor 730host_cpu 731host 732build_os 733build_vendor 734build_cpu 735build 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755localstatedir 756sharedstatedir 757sysconfdir 758datadir 759datarootdir 760libexecdir 761sbindir 762bindir 763program_transform_name 764prefix 765exec_prefix 766PACKAGE_URL 767PACKAGE_BUGREPORT 768PACKAGE_STRING 769PACKAGE_VERSION 770PACKAGE_TARNAME 771PACKAGE_NAME 772PATH_SEPARATOR 773SHELL' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777with_build_libsubdir 778enable_dependency_tracking 779enable_silent_rules 780enable_maintainer_mode 781enable_static 782enable_shared 783with_pic 784enable_fast_install 785with_gnu_ld 786enable_libtool_lock 787with_gcc_major_version_only 788enable_werror_always 789enable_plugin 790' 791 ac_precious_vars='build_alias 792host_alias 793target_alias 794CC 795CFLAGS 796LDFLAGS 797LIBS 798CPPFLAGS 799CPP 800CXX 801CXXFLAGS 802CCC 803CXXCPP 804GMPINC' 805 806 807# Initialize some variables set by options. 808ac_init_help= 809ac_init_version=false 810ac_unrecognized_opts= 811ac_unrecognized_sep= 812# The variables have the same names as the options, with 813# dashes changed to underlines. 814cache_file=/dev/null 815exec_prefix=NONE 816no_create= 817no_recursion= 818prefix=NONE 819program_prefix=NONE 820program_suffix=NONE 821program_transform_name=s,x,x, 822silent= 823site= 824srcdir= 825verbose= 826x_includes=NONE 827x_libraries=NONE 828 829# Installation directory options. 830# These are left unexpanded so users can "make install exec_prefix=/foo" 831# and all the variables that are supposed to be based on exec_prefix 832# by default will actually change. 833# Use braces instead of parens because sh, perl, etc. also accept them. 834# (The list follows the same order as the GNU Coding Standards.) 835bindir='${exec_prefix}/bin' 836sbindir='${exec_prefix}/sbin' 837libexecdir='${exec_prefix}/libexec' 838datarootdir='${prefix}/share' 839datadir='${datarootdir}' 840sysconfdir='${prefix}/etc' 841sharedstatedir='${prefix}/com' 842localstatedir='${prefix}/var' 843includedir='${prefix}/include' 844oldincludedir='/usr/include' 845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 846infodir='${datarootdir}/info' 847htmldir='${docdir}' 848dvidir='${docdir}' 849pdfdir='${docdir}' 850psdir='${docdir}' 851libdir='${exec_prefix}/lib' 852localedir='${datarootdir}/locale' 853mandir='${datarootdir}/man' 854 855ac_prev= 856ac_dashdash= 857for ac_option 858do 859 # If the previous option needs an argument, assign it. 860 if test -n "$ac_prev"; then 861 eval $ac_prev=\$ac_option 862 ac_prev= 863 continue 864 fi 865 866 case $ac_option in 867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 868 *=) ac_optarg= ;; 869 *) ac_optarg=yes ;; 870 esac 871 872 # Accept the important Cygnus configure options, so we can diagnose typos. 873 874 case $ac_dashdash$ac_option in 875 --) 876 ac_dashdash=yes ;; 877 878 -bindir | --bindir | --bindi | --bind | --bin | --bi) 879 ac_prev=bindir ;; 880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 881 bindir=$ac_optarg ;; 882 883 -build | --build | --buil | --bui | --bu) 884 ac_prev=build_alias ;; 885 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 886 build_alias=$ac_optarg ;; 887 888 -cache-file | --cache-file | --cache-fil | --cache-fi \ 889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 890 ac_prev=cache_file ;; 891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 893 cache_file=$ac_optarg ;; 894 895 --config-cache | -C) 896 cache_file=config.cache ;; 897 898 -datadir | --datadir | --datadi | --datad) 899 ac_prev=datadir ;; 900 -datadir=* | --datadir=* | --datadi=* | --datad=*) 901 datadir=$ac_optarg ;; 902 903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 904 | --dataroo | --dataro | --datar) 905 ac_prev=datarootdir ;; 906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 908 datarootdir=$ac_optarg ;; 909 910 -disable-* | --disable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: $ac_useropt" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919"enable_$ac_useropt" 920"*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=no ;; 925 926 -docdir | --docdir | --docdi | --doc | --do) 927 ac_prev=docdir ;; 928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 929 docdir=$ac_optarg ;; 930 931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 932 ac_prev=dvidir ;; 933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 934 dvidir=$ac_optarg ;; 935 936 -enable-* | --enable-*) 937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 938 # Reject names that are not valid shell variable names. 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 940 as_fn_error $? "invalid feature name: $ac_useropt" 941 ac_useropt_orig=$ac_useropt 942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 943 case $ac_user_opts in 944 *" 945"enable_$ac_useropt" 946"*) ;; 947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 948 ac_unrecognized_sep=', ';; 949 esac 950 eval enable_$ac_useropt=\$ac_optarg ;; 951 952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 954 | --exec | --exe | --ex) 955 ac_prev=exec_prefix ;; 956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 958 | --exec=* | --exe=* | --ex=*) 959 exec_prefix=$ac_optarg ;; 960 961 -gas | --gas | --ga | --g) 962 # Obsolete; use --with-gas. 963 with_gas=yes ;; 964 965 -help | --help | --hel | --he | -h) 966 ac_init_help=long ;; 967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 968 ac_init_help=recursive ;; 969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 970 ac_init_help=short ;; 971 972 -host | --host | --hos | --ho) 973 ac_prev=host_alias ;; 974 -host=* | --host=* | --hos=* | --ho=*) 975 host_alias=$ac_optarg ;; 976 977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 978 ac_prev=htmldir ;; 979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 980 | --ht=*) 981 htmldir=$ac_optarg ;; 982 983 -includedir | --includedir | --includedi | --included | --include \ 984 | --includ | --inclu | --incl | --inc) 985 ac_prev=includedir ;; 986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 987 | --includ=* | --inclu=* | --incl=* | --inc=*) 988 includedir=$ac_optarg ;; 989 990 -infodir | --infodir | --infodi | --infod | --info | --inf) 991 ac_prev=infodir ;; 992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 993 infodir=$ac_optarg ;; 994 995 -libdir | --libdir | --libdi | --libd) 996 ac_prev=libdir ;; 997 -libdir=* | --libdir=* | --libdi=* | --libd=*) 998 libdir=$ac_optarg ;; 999 1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1001 | --libexe | --libex | --libe) 1002 ac_prev=libexecdir ;; 1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1004 | --libexe=* | --libex=* | --libe=*) 1005 libexecdir=$ac_optarg ;; 1006 1007 -localedir | --localedir | --localedi | --localed | --locale) 1008 ac_prev=localedir ;; 1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1010 localedir=$ac_optarg ;; 1011 1012 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1013 | --localstate | --localstat | --localsta | --localst | --locals) 1014 ac_prev=localstatedir ;; 1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1017 localstatedir=$ac_optarg ;; 1018 1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1020 ac_prev=mandir ;; 1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1022 mandir=$ac_optarg ;; 1023 1024 -nfp | --nfp | --nf) 1025 # Obsolete; use --without-fp. 1026 with_fp=no ;; 1027 1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1029 | --no-cr | --no-c | -n) 1030 no_create=yes ;; 1031 1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1034 no_recursion=yes ;; 1035 1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1038 | --oldin | --oldi | --old | --ol | --o) 1039 ac_prev=oldincludedir ;; 1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1043 oldincludedir=$ac_optarg ;; 1044 1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1046 ac_prev=prefix ;; 1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1048 prefix=$ac_optarg ;; 1049 1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1051 | --program-pre | --program-pr | --program-p) 1052 ac_prev=program_prefix ;; 1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1055 program_prefix=$ac_optarg ;; 1056 1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1058 | --program-suf | --program-su | --program-s) 1059 ac_prev=program_suffix ;; 1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1062 program_suffix=$ac_optarg ;; 1063 1064 -program-transform-name | --program-transform-name \ 1065 | --program-transform-nam | --program-transform-na \ 1066 | --program-transform-n | --program-transform- \ 1067 | --program-transform | --program-transfor \ 1068 | --program-transfo | --program-transf \ 1069 | --program-trans | --program-tran \ 1070 | --progr-tra | --program-tr | --program-t) 1071 ac_prev=program_transform_name ;; 1072 -program-transform-name=* | --program-transform-name=* \ 1073 | --program-transform-nam=* | --program-transform-na=* \ 1074 | --program-transform-n=* | --program-transform-=* \ 1075 | --program-transform=* | --program-transfor=* \ 1076 | --program-transfo=* | --program-transf=* \ 1077 | --program-trans=* | --program-tran=* \ 1078 | --progr-tra=* | --program-tr=* | --program-t=*) 1079 program_transform_name=$ac_optarg ;; 1080 1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1082 ac_prev=pdfdir ;; 1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1084 pdfdir=$ac_optarg ;; 1085 1086 -psdir | --psdir | --psdi | --psd | --ps) 1087 ac_prev=psdir ;; 1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1089 psdir=$ac_optarg ;; 1090 1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1092 | -silent | --silent | --silen | --sile | --sil) 1093 silent=yes ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: $ac_useropt" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=no ;; 1171 1172 --x) 1173 # Obsolete; use --with-x. 1174 with_x=yes ;; 1175 1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177 | --x-incl | --x-inc | --x-in | --x-i) 1178 ac_prev=x_includes ;; 1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181 x_includes=$ac_optarg ;; 1182 1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185 ac_prev=x_libraries ;; 1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188 x_libraries=$ac_optarg ;; 1189 1190 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1191Try \`$0 --help' for more information" 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 case $ac_envvar in #( 1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1200 esac 1201 eval $ac_envvar=\$ac_optarg 1202 export $ac_envvar ;; 1203 1204 *) 1205 # FIXME: should be removed in autoconf 3.0. 1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210 ;; 1211 1212 esac 1213done 1214 1215if test -n "$ac_prev"; then 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217 as_fn_error $? "missing argument to $ac_option" 1218fi 1219 1220if test -n "$ac_unrecognized_opts"; then 1221 case $enable_option_checking in 1222 no) ;; 1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225 esac 1226fi 1227 1228# Check all directory arguments for consistency. 1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230 datadir sysconfdir sharedstatedir localstatedir includedir \ 1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232 libdir localedir mandir 1233do 1234 eval ac_val=\$$ac_var 1235 # Remove trailing slashes. 1236 case $ac_val in 1237 */ ) 1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239 eval $ac_var=\$ac_val;; 1240 esac 1241 # Be sure to have absolute directory names. 1242 case $ac_val in 1243 [\\/$]* | ?:[\\/]* ) continue;; 1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245 esac 1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247done 1248 1249# There might be people who depend on the old broken behavior: `$host' 1250# used to hold the argument of --host etc. 1251# FIXME: To remove some day. 1252build=$build_alias 1253host=$host_alias 1254target=$target_alias 1255 1256# FIXME: To remove some day. 1257if test "x$host_alias" != x; then 1258 if test "x$build_alias" = x; then 1259 cross_compiling=maybe 1260 elif test "x$build_alias" != "x$host_alias"; then 1261 cross_compiling=yes 1262 fi 1263fi 1264 1265ac_tool_prefix= 1266test -n "$host_alias" && ac_tool_prefix=$host_alias- 1267 1268test "$silent" = yes && exec 6>/dev/null 1269 1270 1271ac_pwd=`pwd` && test -n "$ac_pwd" && 1272ac_ls_di=`ls -di .` && 1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274 as_fn_error $? "working directory cannot be determined" 1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276 as_fn_error $? "pwd does not report name of working directory" 1277 1278 1279# Find the source files, if location was not specified. 1280if test -z "$srcdir"; then 1281 ac_srcdir_defaulted=yes 1282 # Try the directory containing this script, then the parent directory. 1283 ac_confdir=`$as_dirname -- "$as_myself" || 1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285 X"$as_myself" : 'X\(//\)[^/]' \| \ 1286 X"$as_myself" : 'X\(//\)$' \| \ 1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288$as_echo X"$as_myself" | 1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)[^/].*/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\).*/{ 1302 s//\1/ 1303 q 1304 } 1305 s/.*/./; q'` 1306 srcdir=$ac_confdir 1307 if test ! -r "$srcdir/$ac_unique_file"; then 1308 srcdir=.. 1309 fi 1310else 1311 ac_srcdir_defaulted=no 1312fi 1313if test ! -r "$srcdir/$ac_unique_file"; then 1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316fi 1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1318ac_abs_confdir=`( 1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320 pwd)` 1321# When building in place, set srcdir=. 1322if test "$ac_abs_confdir" = "$ac_pwd"; then 1323 srcdir=. 1324fi 1325# Remove unnecessary trailing slashes from srcdir. 1326# Double slashes in file names in object file debugging info 1327# mess up M-x gdb in Emacs. 1328case $srcdir in 1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330esac 1331for ac_var in $ac_precious_vars; do 1332 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_env_${ac_var}_value=\$${ac_var} 1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336done 1337 1338# 1339# Report the --help message. 1340# 1341if test "$ac_init_help" = "long"; then 1342 # Omit some internal or obsolete options to make the list less imposing. 1343 # This message is too long to be a string in the A/UX 3.1 sh. 1344 cat <<_ACEOF 1345\`configure' configures libcc1 version-unused to adapt to many kinds of systems. 1346 1347Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352Defaults for the options are specified in brackets. 1353 1354Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print \`checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for \`--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1364 1365Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371By default, \`make install' will install all the files in 1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1373an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1374for instance \`--prefix=\$HOME'. 1375 1376For better control, use the options below. 1377 1378Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --libdir=DIR object code libraries [EPREFIX/lib] 1386 --includedir=DIR C header files [PREFIX/include] 1387 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1390 --infodir=DIR info documentation [DATAROOTDIR/info] 1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1392 --mandir=DIR man documentation [DATAROOTDIR/man] 1393 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1] 1394 --htmldir=DIR html documentation [DOCDIR] 1395 --dvidir=DIR dvi documentation [DOCDIR] 1396 --pdfdir=DIR pdf documentation [DOCDIR] 1397 --psdir=DIR ps documentation [DOCDIR] 1398_ACEOF 1399 1400 cat <<\_ACEOF 1401 1402Program names: 1403 --program-prefix=PREFIX prepend PREFIX to installed program names 1404 --program-suffix=SUFFIX append SUFFIX to installed program names 1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1406 1407System types: 1408 --build=BUILD configure for building on BUILD [guessed] 1409 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1410 --target=TARGET configure for building compilers for TARGET [HOST] 1411_ACEOF 1412fi 1413 1414if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of libcc1 version-unused:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --enable-silent-rules less verbose build output (undo: "make V=1") 1429 --disable-silent-rules verbose build output (undo: "make V=0") 1430 --enable-maintainer-mode 1431 enable make rules and dependencies not useful (and 1432 sometimes confusing) to the casual installer 1433 --enable-static[=PKGS] build static libraries [default=no] 1434 --enable-shared[=PKGS] build shared libraries [default=yes] 1435 --enable-fast-install[=PKGS] 1436 optimize for fast installation [default=yes] 1437 --disable-libtool-lock avoid locking (might break parallel builds) 1438 --enable-werror-always enable -Werror despite compiler version 1439 --enable-plugin enable plugin support 1440 1441Optional Packages: 1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1444 --with-build-libsubdir=DIR Directory where to find libraries for build system 1445 --with-pic try to use only PIC/non-PIC objects [default=use 1446 both] 1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1448 --with-gcc-major-version-only 1449 use only GCC major number in filesystem paths 1450 1451Some influential environment variables: 1452 CC C compiler command 1453 CFLAGS C compiler flags 1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1455 nonstandard directory <lib dir> 1456 LIBS libraries to pass to the linker, e.g. -l<library> 1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1458 you have headers in a nonstandard directory <include dir> 1459 CPP C preprocessor 1460 CXX C++ compiler command 1461 CXXFLAGS C++ compiler flags 1462 CXXCPP C++ preprocessor 1463 GMPINC How to find GMP include files 1464 1465Use these variables to override the choices made by `configure' or to help 1466it to find libraries and programs with nonstandard names/locations. 1467 1468Report bugs to the package provider. 1469_ACEOF 1470ac_status=$? 1471fi 1472 1473if test "$ac_init_help" = "recursive"; then 1474 # If there are subdirs, report their specific --help. 1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1476 test -d "$ac_dir" || 1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1478 continue 1479 ac_builddir=. 1480 1481case "$ac_dir" in 1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483*) 1484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1485 # A ".." for each directory in $ac_dir_suffix. 1486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1487 case $ac_top_builddir_sub in 1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1490 esac ;; 1491esac 1492ac_abs_top_builddir=$ac_pwd 1493ac_abs_builddir=$ac_pwd$ac_dir_suffix 1494# for backward compatibility: 1495ac_top_builddir=$ac_top_build_prefix 1496 1497case $srcdir in 1498 .) # We are building in place. 1499 ac_srcdir=. 1500 ac_top_srcdir=$ac_top_builddir_sub 1501 ac_abs_top_srcdir=$ac_pwd ;; 1502 [\\/]* | ?:[\\/]* ) # Absolute name. 1503 ac_srcdir=$srcdir$ac_dir_suffix; 1504 ac_top_srcdir=$srcdir 1505 ac_abs_top_srcdir=$srcdir ;; 1506 *) # Relative name. 1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1508 ac_top_srcdir=$ac_top_build_prefix$srcdir 1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1510esac 1511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1512 1513 cd "$ac_dir" || { ac_status=$?; continue; } 1514 # Check for guested configure. 1515 if test -f "$ac_srcdir/configure.gnu"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1518 elif test -f "$ac_srcdir/configure"; then 1519 echo && 1520 $SHELL "$ac_srcdir/configure" --help=recursive 1521 else 1522 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1523 fi || ac_status=$? 1524 cd "$ac_pwd" || { ac_status=$?; break; } 1525 done 1526fi 1527 1528test -n "$ac_init_help" && exit $ac_status 1529if $ac_init_version; then 1530 cat <<\_ACEOF 1531libcc1 configure version-unused 1532generated by GNU Autoconf 2.69 1533 1534Copyright (C) 2012 Free Software Foundation, Inc. 1535This configure script is free software; the Free Software Foundation 1536gives unlimited permission to copy, distribute and modify it. 1537_ACEOF 1538 exit 1539fi 1540 1541## ------------------------ ## 1542## Autoconf initialization. ## 1543## ------------------------ ## 1544 1545# ac_fn_c_try_compile LINENO 1546# -------------------------- 1547# Try to compile conftest.$ac_ext, and return whether this succeeded. 1548ac_fn_c_try_compile () 1549{ 1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1551 rm -f conftest.$ac_objext 1552 if { { ac_try="$ac_compile" 1553case "(($ac_try" in 1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1555 *) ac_try_echo=$ac_try;; 1556esac 1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1558$as_echo "$ac_try_echo"; } >&5 1559 (eval "$ac_compile") 2>conftest.err 1560 ac_status=$? 1561 if test -s conftest.err; then 1562 grep -v '^ *+' conftest.err >conftest.er1 1563 cat conftest.er1 >&5 1564 mv -f conftest.er1 conftest.err 1565 fi 1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1567 test $ac_status = 0; } && { 1568 test -z "$ac_c_werror_flag" || 1569 test ! -s conftest.err 1570 } && test -s conftest.$ac_objext; then : 1571 ac_retval=0 1572else 1573 $as_echo "$as_me: failed program was:" >&5 1574sed 's/^/| /' conftest.$ac_ext >&5 1575 1576 ac_retval=1 1577fi 1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1579 as_fn_set_status $ac_retval 1580 1581} # ac_fn_c_try_compile 1582 1583# ac_fn_c_try_cpp LINENO 1584# ---------------------- 1585# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1586ac_fn_c_try_cpp () 1587{ 1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1589 if { { ac_try="$ac_cpp conftest.$ac_ext" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } > conftest.i && { 1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 }; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1616 as_fn_set_status $ac_retval 1617 1618} # ac_fn_c_try_cpp 1619 1620# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1621# ------------------------------------------------------- 1622# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1623# the include files in INCLUDES and setting the cache variable VAR 1624# accordingly. 1625ac_fn_c_check_header_mongrel () 1626{ 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 if eval \${$3+:} false; then : 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630$as_echo_n "checking for $2... " >&6; } 1631if eval \${$3+:} false; then : 1632 $as_echo_n "(cached) " >&6 1633fi 1634eval ac_res=\$$3 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1636$as_echo "$ac_res" >&6; } 1637else 1638 # Is the header compilable? 1639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1640$as_echo_n "checking $2 usability... " >&6; } 1641cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1642/* end confdefs.h. */ 1643$4 1644#include <$2> 1645_ACEOF 1646if ac_fn_c_try_compile "$LINENO"; then : 1647 ac_header_compiler=yes 1648else 1649 ac_header_compiler=no 1650fi 1651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1653$as_echo "$ac_header_compiler" >&6; } 1654 1655# Is the header present? 1656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1657$as_echo_n "checking $2 presence... " >&6; } 1658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1659/* end confdefs.h. */ 1660#include <$2> 1661_ACEOF 1662if ac_fn_c_try_cpp "$LINENO"; then : 1663 ac_header_preproc=yes 1664else 1665 ac_header_preproc=no 1666fi 1667rm -f conftest.err conftest.i conftest.$ac_ext 1668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1669$as_echo "$ac_header_preproc" >&6; } 1670 1671# So? What about this header? 1672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1673 yes:no: ) 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1675$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1677$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1678 ;; 1679 no:yes:* ) 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1681$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1683$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1685$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1687$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1689$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1690 ;; 1691esac 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1693$as_echo_n "checking for $2... " >&6; } 1694if eval \${$3+:} false; then : 1695 $as_echo_n "(cached) " >&6 1696else 1697 eval "$3=\$ac_header_compiler" 1698fi 1699eval ac_res=\$$3 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1701$as_echo "$ac_res" >&6; } 1702fi 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 1705} # ac_fn_c_check_header_mongrel 1706 1707# ac_fn_c_try_run LINENO 1708# ---------------------- 1709# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1710# that executables *can* be run. 1711ac_fn_c_try_run () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if { { ac_try="$ac_link" 1715case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_link") 2>&5 1722 ac_status=$? 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1725 { { case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730$as_echo "$ac_try_echo"; } >&5 1731 (eval "$ac_try") 2>&5 1732 ac_status=$? 1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; }; }; then : 1735 ac_retval=0 1736else 1737 $as_echo "$as_me: program exited with status $ac_status" >&5 1738 $as_echo "$as_me: failed program was:" >&5 1739sed 's/^/| /' conftest.$ac_ext >&5 1740 1741 ac_retval=$ac_status 1742fi 1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 as_fn_set_status $ac_retval 1746 1747} # ac_fn_c_try_run 1748 1749# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1750# ------------------------------------------------------- 1751# Tests whether HEADER exists and can be compiled using the include files in 1752# INCLUDES, setting the cache variable VAR accordingly. 1753ac_fn_c_check_header_compile () 1754{ 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1757$as_echo_n "checking for $2... " >&6; } 1758if eval \${$3+:} false; then : 1759 $as_echo_n "(cached) " >&6 1760else 1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1762/* end confdefs.h. */ 1763$4 1764#include <$2> 1765_ACEOF 1766if ac_fn_c_try_compile "$LINENO"; then : 1767 eval "$3=yes" 1768else 1769 eval "$3=no" 1770fi 1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1772fi 1773eval ac_res=\$$3 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1775$as_echo "$ac_res" >&6; } 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1777 1778} # ac_fn_c_check_header_compile 1779 1780# ac_fn_c_try_link LINENO 1781# ----------------------- 1782# Try to link conftest.$ac_ext, and return whether this succeeded. 1783ac_fn_c_try_link () 1784{ 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 rm -f conftest.$ac_objext conftest$ac_exeext 1787 if { { ac_try="$ac_link" 1788case "(($ac_try" in 1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1790 *) ac_try_echo=$ac_try;; 1791esac 1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1793$as_echo "$ac_try_echo"; } >&5 1794 (eval "$ac_link") 2>conftest.err 1795 ac_status=$? 1796 if test -s conftest.err; then 1797 grep -v '^ *+' conftest.err >conftest.er1 1798 cat conftest.er1 >&5 1799 mv -f conftest.er1 conftest.err 1800 fi 1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1802 test $ac_status = 0; } && { 1803 test -z "$ac_c_werror_flag" || 1804 test ! -s conftest.err 1805 } && test -s conftest$ac_exeext && { 1806 test "$cross_compiling" = yes || 1807 test -x conftest$ac_exeext 1808 }; then : 1809 ac_retval=0 1810else 1811 $as_echo "$as_me: failed program was:" >&5 1812sed 's/^/| /' conftest.$ac_ext >&5 1813 1814 ac_retval=1 1815fi 1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1818 # interfere with the next link command; also delete a directory that is 1819 # left behind by Apple's compiler. We do this before executing the actions. 1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 as_fn_set_status $ac_retval 1823 1824} # ac_fn_c_try_link 1825 1826# ac_fn_c_check_func LINENO FUNC VAR 1827# ---------------------------------- 1828# Tests whether FUNC exists, setting the cache variable VAR accordingly 1829ac_fn_c_check_func () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833$as_echo_n "checking for $2... " >&6; } 1834if eval \${$3+:} false; then : 1835 $as_echo_n "(cached) " >&6 1836else 1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1838/* end confdefs.h. */ 1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1841#define $2 innocuous_$2 1842 1843/* System header to define __stub macros and hopefully few prototypes, 1844 which can conflict with char $2 (); below. 1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1846 <limits.h> exists even on freestanding compilers. */ 1847 1848#ifdef __STDC__ 1849# include <limits.h> 1850#else 1851# include <assert.h> 1852#endif 1853 1854#undef $2 1855 1856/* Override any GCC internal prototype to avoid an error. 1857 Use char because int might match the return type of a GCC 1858 builtin and then its argument prototype would still apply. */ 1859#ifdef __cplusplus 1860extern "C" 1861#endif 1862char $2 (); 1863/* The GNU C library defines this for functions which it implements 1864 to always fail with ENOSYS. Some functions are actually named 1865 something starting with __ and the normal name is an alias. */ 1866#if defined __stub_$2 || defined __stub___$2 1867choke me 1868#endif 1869 1870int 1871main () 1872{ 1873return $2 (); 1874 ; 1875 return 0; 1876} 1877_ACEOF 1878if ac_fn_c_try_link "$LINENO"; then : 1879 eval "$3=yes" 1880else 1881 eval "$3=no" 1882fi 1883rm -f core conftest.err conftest.$ac_objext \ 1884 conftest$ac_exeext conftest.$ac_ext 1885fi 1886eval ac_res=\$$3 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1888$as_echo "$ac_res" >&6; } 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1890 1891} # ac_fn_c_check_func 1892 1893# ac_fn_cxx_try_compile LINENO 1894# ---------------------------- 1895# Try to compile conftest.$ac_ext, and return whether this succeeded. 1896ac_fn_cxx_try_compile () 1897{ 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 rm -f conftest.$ac_objext 1900 if { { ac_try="$ac_compile" 1901case "(($ac_try" in 1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1903 *) ac_try_echo=$ac_try;; 1904esac 1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1906$as_echo "$ac_try_echo"; } >&5 1907 (eval "$ac_compile") 2>conftest.err 1908 ac_status=$? 1909 if test -s conftest.err; then 1910 grep -v '^ *+' conftest.err >conftest.er1 1911 cat conftest.er1 >&5 1912 mv -f conftest.er1 conftest.err 1913 fi 1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1915 test $ac_status = 0; } && { 1916 test -z "$ac_cxx_werror_flag" || 1917 test ! -s conftest.err 1918 } && test -s conftest.$ac_objext; then : 1919 ac_retval=0 1920else 1921 $as_echo "$as_me: failed program was:" >&5 1922sed 's/^/| /' conftest.$ac_ext >&5 1923 1924 ac_retval=1 1925fi 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 as_fn_set_status $ac_retval 1928 1929} # ac_fn_cxx_try_compile 1930 1931# ac_fn_cxx_try_cpp LINENO 1932# ------------------------ 1933# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1934ac_fn_cxx_try_cpp () 1935{ 1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1937 if { { ac_try="$ac_cpp conftest.$ac_ext" 1938case "(($ac_try" in 1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1940 *) ac_try_echo=$ac_try;; 1941esac 1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1943$as_echo "$ac_try_echo"; } >&5 1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1945 ac_status=$? 1946 if test -s conftest.err; then 1947 grep -v '^ *+' conftest.err >conftest.er1 1948 cat conftest.er1 >&5 1949 mv -f conftest.er1 conftest.err 1950 fi 1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1952 test $ac_status = 0; } > conftest.i && { 1953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1954 test ! -s conftest.err 1955 }; then : 1956 ac_retval=0 1957else 1958 $as_echo "$as_me: failed program was:" >&5 1959sed 's/^/| /' conftest.$ac_ext >&5 1960 1961 ac_retval=1 1962fi 1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1964 as_fn_set_status $ac_retval 1965 1966} # ac_fn_cxx_try_cpp 1967 1968# ac_fn_cxx_try_link LINENO 1969# ------------------------- 1970# Try to link conftest.$ac_ext, and return whether this succeeded. 1971ac_fn_cxx_try_link () 1972{ 1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1974 rm -f conftest.$ac_objext conftest$ac_exeext 1975 if { { ac_try="$ac_link" 1976case "(($ac_try" in 1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1978 *) ac_try_echo=$ac_try;; 1979esac 1980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1981$as_echo "$ac_try_echo"; } >&5 1982 (eval "$ac_link") 2>conftest.err 1983 ac_status=$? 1984 if test -s conftest.err; then 1985 grep -v '^ *+' conftest.err >conftest.er1 1986 cat conftest.er1 >&5 1987 mv -f conftest.er1 conftest.err 1988 fi 1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1990 test $ac_status = 0; } && { 1991 test -z "$ac_cxx_werror_flag" || 1992 test ! -s conftest.err 1993 } && test -s conftest$ac_exeext && { 1994 test "$cross_compiling" = yes || 1995 test -x conftest$ac_exeext 1996 }; then : 1997 ac_retval=0 1998else 1999 $as_echo "$as_me: failed program was:" >&5 2000sed 's/^/| /' conftest.$ac_ext >&5 2001 2002 ac_retval=1 2003fi 2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2006 # interfere with the next link command; also delete a directory that is 2007 # left behind by Apple's compiler. We do this before executing the actions. 2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2010 as_fn_set_status $ac_retval 2011 2012} # ac_fn_cxx_try_link 2013 2014# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2015# --------------------------------------------- 2016# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2017# accordingly. 2018ac_fn_c_check_decl () 2019{ 2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2021 as_decl_name=`echo $2|sed 's/ *(.*//'` 2022 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2024$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2025if eval \${$3+:} false; then : 2026 $as_echo_n "(cached) " >&6 2027else 2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2029/* end confdefs.h. */ 2030$4 2031int 2032main () 2033{ 2034#ifndef $as_decl_name 2035#ifdef __cplusplus 2036 (void) $as_decl_use; 2037#else 2038 (void) $as_decl_name; 2039#endif 2040#endif 2041 2042 ; 2043 return 0; 2044} 2045_ACEOF 2046if ac_fn_c_try_compile "$LINENO"; then : 2047 eval "$3=yes" 2048else 2049 eval "$3=no" 2050fi 2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2052fi 2053eval ac_res=\$$3 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2055$as_echo "$ac_res" >&6; } 2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2057 2058} # ac_fn_c_check_decl 2059cat >config.log <<_ACEOF 2060This file contains any messages produced by compilers while 2061running configure, to aid debugging if configure makes a mistake. 2062 2063It was created by libcc1 $as_me version-unused, which was 2064generated by GNU Autoconf 2.69. Invocation command line was 2065 2066 $ $0 $@ 2067 2068_ACEOF 2069exec 5>>config.log 2070{ 2071cat <<_ASUNAME 2072## --------- ## 2073## Platform. ## 2074## --------- ## 2075 2076hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2077uname -m = `(uname -m) 2>/dev/null || echo unknown` 2078uname -r = `(uname -r) 2>/dev/null || echo unknown` 2079uname -s = `(uname -s) 2>/dev/null || echo unknown` 2080uname -v = `(uname -v) 2>/dev/null || echo unknown` 2081 2082/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2083/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2084 2085/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2086/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2087/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2088/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2089/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2090/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2091/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2092 2093_ASUNAME 2094 2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2096for as_dir in $PATH 2097do 2098 IFS=$as_save_IFS 2099 test -z "$as_dir" && as_dir=. 2100 $as_echo "PATH: $as_dir" 2101 done 2102IFS=$as_save_IFS 2103 2104} >&5 2105 2106cat >&5 <<_ACEOF 2107 2108 2109## ----------- ## 2110## Core tests. ## 2111## ----------- ## 2112 2113_ACEOF 2114 2115 2116# Keep a trace of the command line. 2117# Strip out --no-create and --no-recursion so they do not pile up. 2118# Strip out --silent because we don't want to record it for future runs. 2119# Also quote any args containing shell meta-characters. 2120# Make two passes to allow for proper duplicate-argument suppression. 2121ac_configure_args= 2122ac_configure_args0= 2123ac_configure_args1= 2124ac_must_keep_next=false 2125for ac_pass in 1 2 2126do 2127 for ac_arg 2128 do 2129 case $ac_arg in 2130 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2132 | -silent | --silent | --silen | --sile | --sil) 2133 continue ;; 2134 *\'*) 2135 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2136 esac 2137 case $ac_pass in 2138 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2139 2) 2140 as_fn_append ac_configure_args1 " '$ac_arg'" 2141 if test $ac_must_keep_next = true; then 2142 ac_must_keep_next=false # Got value, back to normal. 2143 else 2144 case $ac_arg in 2145 *=* | --config-cache | -C | -disable-* | --disable-* \ 2146 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2147 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2148 | -with-* | --with-* | -without-* | --without-* | --x) 2149 case "$ac_configure_args0 " in 2150 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2151 esac 2152 ;; 2153 -* ) ac_must_keep_next=true ;; 2154 esac 2155 fi 2156 as_fn_append ac_configure_args " '$ac_arg'" 2157 ;; 2158 esac 2159 done 2160done 2161{ ac_configure_args0=; unset ac_configure_args0;} 2162{ ac_configure_args1=; unset ac_configure_args1;} 2163 2164# When interrupted or exit'd, cleanup temporary files, and complete 2165# config.log. We remove comments because anyway the quotes in there 2166# would cause problems or look ugly. 2167# WARNING: Use '\'' to represent an apostrophe within the trap. 2168# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2169trap 'exit_status=$? 2170 # Save into config.log some information that might help in debugging. 2171 { 2172 echo 2173 2174 $as_echo "## ---------------- ## 2175## Cache variables. ## 2176## ---------------- ##" 2177 echo 2178 # The following way of writing the cache mishandles newlines in values, 2179( 2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2181 eval ac_val=\$$ac_var 2182 case $ac_val in #( 2183 *${as_nl}*) 2184 case $ac_var in #( 2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2186$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2187 esac 2188 case $ac_var in #( 2189 _ | IFS | as_nl) ;; #( 2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2191 *) { eval $ac_var=; unset $ac_var;} ;; 2192 esac ;; 2193 esac 2194 done 2195 (set) 2>&1 | 2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2197 *${as_nl}ac_space=\ *) 2198 sed -n \ 2199 "s/'\''/'\''\\\\'\'''\''/g; 2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2201 ;; #( 2202 *) 2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2204 ;; 2205 esac | 2206 sort 2207) 2208 echo 2209 2210 $as_echo "## ----------------- ## 2211## Output variables. ## 2212## ----------------- ##" 2213 echo 2214 for ac_var in $ac_subst_vars 2215 do 2216 eval ac_val=\$$ac_var 2217 case $ac_val in 2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2219 esac 2220 $as_echo "$ac_var='\''$ac_val'\''" 2221 done | sort 2222 echo 2223 2224 if test -n "$ac_subst_files"; then 2225 $as_echo "## ------------------- ## 2226## File substitutions. ## 2227## ------------------- ##" 2228 echo 2229 for ac_var in $ac_subst_files 2230 do 2231 eval ac_val=\$$ac_var 2232 case $ac_val in 2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2234 esac 2235 $as_echo "$ac_var='\''$ac_val'\''" 2236 done | sort 2237 echo 2238 fi 2239 2240 if test -s confdefs.h; then 2241 $as_echo "## ----------- ## 2242## confdefs.h. ## 2243## ----------- ##" 2244 echo 2245 cat confdefs.h 2246 echo 2247 fi 2248 test "$ac_signal" != 0 && 2249 $as_echo "$as_me: caught signal $ac_signal" 2250 $as_echo "$as_me: exit $exit_status" 2251 } >&5 2252 rm -f core *.core core.conftest.* && 2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2254 exit $exit_status 2255' 0 2256for ac_signal in 1 2 13 15; do 2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2258done 2259ac_signal=0 2260 2261# confdefs.h avoids OS command line length limits that DEFS can exceed. 2262rm -f -r conftest* confdefs.h 2263 2264$as_echo "/* confdefs.h */" > confdefs.h 2265 2266# Predefined preprocessor variables. 2267 2268cat >>confdefs.h <<_ACEOF 2269#define PACKAGE_NAME "$PACKAGE_NAME" 2270_ACEOF 2271 2272cat >>confdefs.h <<_ACEOF 2273#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2274_ACEOF 2275 2276cat >>confdefs.h <<_ACEOF 2277#define PACKAGE_VERSION "$PACKAGE_VERSION" 2278_ACEOF 2279 2280cat >>confdefs.h <<_ACEOF 2281#define PACKAGE_STRING "$PACKAGE_STRING" 2282_ACEOF 2283 2284cat >>confdefs.h <<_ACEOF 2285#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2286_ACEOF 2287 2288cat >>confdefs.h <<_ACEOF 2289#define PACKAGE_URL "$PACKAGE_URL" 2290_ACEOF 2291 2292 2293# Let the site file select an alternate cache file if it wants to. 2294# Prefer an explicitly selected file to automatically selected ones. 2295ac_site_file1=NONE 2296ac_site_file2=NONE 2297if test -n "$CONFIG_SITE"; then 2298 # We do not want a PATH search for config.site. 2299 case $CONFIG_SITE in #(( 2300 -*) ac_site_file1=./$CONFIG_SITE;; 2301 */*) ac_site_file1=$CONFIG_SITE;; 2302 *) ac_site_file1=./$CONFIG_SITE;; 2303 esac 2304elif test "x$prefix" != xNONE; then 2305 ac_site_file1=$prefix/share/config.site 2306 ac_site_file2=$prefix/etc/config.site 2307else 2308 ac_site_file1=$ac_default_prefix/share/config.site 2309 ac_site_file2=$ac_default_prefix/etc/config.site 2310fi 2311for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2312do 2313 test "x$ac_site_file" = xNONE && continue 2314 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2316$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2317 sed 's/^/| /' "$ac_site_file" >&5 2318 . "$ac_site_file" \ 2319 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2321as_fn_error $? "failed to load site script $ac_site_file 2322See \`config.log' for more details" "$LINENO" 5; } 2323 fi 2324done 2325 2326if test -r "$cache_file"; then 2327 # Some versions of bash will fail to source /dev/null (special files 2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2331$as_echo "$as_me: loading cache $cache_file" >&6;} 2332 case $cache_file in 2333 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2334 *) . "./$cache_file";; 2335 esac 2336 fi 2337else 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2339$as_echo "$as_me: creating cache $cache_file" >&6;} 2340 >$cache_file 2341fi 2342 2343# Check that the precious variables saved in the cache have kept the same 2344# value. 2345ac_cache_corrupted=false 2346for ac_var in $ac_precious_vars; do 2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2348 eval ac_new_set=\$ac_env_${ac_var}_set 2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2350 eval ac_new_val=\$ac_env_${ac_var}_value 2351 case $ac_old_set,$ac_new_set in 2352 set,) 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2354$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2355 ac_cache_corrupted=: ;; 2356 ,set) 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2358$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2359 ac_cache_corrupted=: ;; 2360 ,);; 2361 *) 2362 if test "x$ac_old_val" != "x$ac_new_val"; then 2363 # differences in whitespace do not lead to failure. 2364 ac_old_val_w=`echo x $ac_old_val` 2365 ac_new_val_w=`echo x $ac_new_val` 2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2368$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2369 ac_cache_corrupted=: 2370 else 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2372$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2373 eval $ac_var=\$ac_old_val 2374 fi 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2376$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2378$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2379 fi;; 2380 esac 2381 # Pass precious variables to config.status. 2382 if test "$ac_new_set" = set; then 2383 case $ac_new_val in 2384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2385 *) ac_arg=$ac_var=$ac_new_val ;; 2386 esac 2387 case " $ac_configure_args " in 2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2390 esac 2391 fi 2392done 2393if $ac_cache_corrupted; then 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2397$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2398 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2399fi 2400## -------------------- ## 2401## Main body of script. ## 2402## -------------------- ## 2403 2404ac_ext=c 2405ac_cpp='$CPP $CPPFLAGS' 2406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2408ac_compiler_gnu=$ac_cv_c_compiler_gnu 2409 2410 2411 2412 2413 2414 2415ac_config_headers="$ac_config_headers cc1plugin-config.h" 2416 2417 2418ac_aux_dir= 2419for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2420 if test -f "$ac_dir/install-sh"; then 2421 ac_aux_dir=$ac_dir 2422 ac_install_sh="$ac_aux_dir/install-sh -c" 2423 break 2424 elif test -f "$ac_dir/install.sh"; then 2425 ac_aux_dir=$ac_dir 2426 ac_install_sh="$ac_aux_dir/install.sh -c" 2427 break 2428 elif test -f "$ac_dir/shtool"; then 2429 ac_aux_dir=$ac_dir 2430 ac_install_sh="$ac_aux_dir/shtool install -c" 2431 break 2432 fi 2433done 2434if test -z "$ac_aux_dir"; then 2435 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2436fi 2437 2438# These three variables are undocumented and unsupported, 2439# and are intended to be withdrawn in a future Autoconf release. 2440# They can cause serious problems if a builder's source tree is in a directory 2441# whose full name contains unusual characters. 2442ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2443ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2444ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2445 2446 2447# Make sure we can run config.sub. 2448$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2449 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2450 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2452$as_echo_n "checking build system type... " >&6; } 2453if ${ac_cv_build+:} false; then : 2454 $as_echo_n "(cached) " >&6 2455else 2456 ac_build_alias=$build_alias 2457test "x$ac_build_alias" = x && 2458 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2459test "x$ac_build_alias" = x && 2460 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2461ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2462 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2463 2464fi 2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2466$as_echo "$ac_cv_build" >&6; } 2467case $ac_cv_build in 2468*-*-*) ;; 2469*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2470esac 2471build=$ac_cv_build 2472ac_save_IFS=$IFS; IFS='-' 2473set x $ac_cv_build 2474shift 2475build_cpu=$1 2476build_vendor=$2 2477shift; shift 2478# Remember, the first character of IFS is used to create $*, 2479# except with old shells: 2480build_os=$* 2481IFS=$ac_save_IFS 2482case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2483 2484 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2486$as_echo_n "checking host system type... " >&6; } 2487if ${ac_cv_host+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 if test "x$host_alias" = x; then 2491 ac_cv_host=$ac_cv_build 2492else 2493 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2495fi 2496 2497fi 2498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2499$as_echo "$ac_cv_host" >&6; } 2500case $ac_cv_host in 2501*-*-*) ;; 2502*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2503esac 2504host=$ac_cv_host 2505ac_save_IFS=$IFS; IFS='-' 2506set x $ac_cv_host 2507shift 2508host_cpu=$1 2509host_vendor=$2 2510shift; shift 2511# Remember, the first character of IFS is used to create $*, 2512# except with old shells: 2513host_os=$* 2514IFS=$ac_save_IFS 2515case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2516 2517 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2519$as_echo_n "checking target system type... " >&6; } 2520if ${ac_cv_target+:} false; then : 2521 $as_echo_n "(cached) " >&6 2522else 2523 if test "x$target_alias" = x; then 2524 ac_cv_target=$ac_cv_host 2525else 2526 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2527 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2528fi 2529 2530fi 2531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2532$as_echo "$ac_cv_target" >&6; } 2533case $ac_cv_target in 2534*-*-*) ;; 2535*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2536esac 2537target=$ac_cv_target 2538ac_save_IFS=$IFS; IFS='-' 2539set x $ac_cv_target 2540shift 2541target_cpu=$1 2542target_vendor=$2 2543shift; shift 2544# Remember, the first character of IFS is used to create $*, 2545# except with old shells: 2546target_os=$* 2547IFS=$ac_save_IFS 2548case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2549 2550 2551# The aliases save the names the user supplied, while $host etc. 2552# will get canonicalized. 2553test -n "$target_alias" && 2554 test "$program_prefix$program_suffix$program_transform_name" = \ 2555 NONENONEs,x,x, && 2556 program_prefix=${target_alias}- 2557 2558# Expand $ac_aux_dir to an absolute path. 2559am_aux_dir=`cd "$ac_aux_dir" && pwd` 2560 2561ac_ext=c 2562ac_cpp='$CPP $CPPFLAGS' 2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2565ac_compiler_gnu=$ac_cv_c_compiler_gnu 2566if test -n "$ac_tool_prefix"; then 2567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2568set dummy ${ac_tool_prefix}gcc; ac_word=$2 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2570$as_echo_n "checking for $ac_word... " >&6; } 2571if ${ac_cv_prog_CC+:} false; then : 2572 $as_echo_n "(cached) " >&6 2573else 2574 if test -n "$CC"; then 2575 ac_cv_prog_CC="$CC" # Let the user override the test. 2576else 2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 for ac_exec_ext in '' $ac_executable_extensions; do 2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2584 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2586 break 2 2587 fi 2588done 2589 done 2590IFS=$as_save_IFS 2591 2592fi 2593fi 2594CC=$ac_cv_prog_CC 2595if test -n "$CC"; then 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2597$as_echo "$CC" >&6; } 2598else 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2600$as_echo "no" >&6; } 2601fi 2602 2603 2604fi 2605if test -z "$ac_cv_prog_CC"; then 2606 ac_ct_CC=$CC 2607 # Extract the first word of "gcc", so it can be a program name with args. 2608set dummy gcc; ac_word=$2 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2610$as_echo_n "checking for $ac_word... " >&6; } 2611if ${ac_cv_prog_ac_ct_CC+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613else 2614 if test -n "$ac_ct_CC"; then 2615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2616else 2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2618for as_dir in $PATH 2619do 2620 IFS=$as_save_IFS 2621 test -z "$as_dir" && as_dir=. 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2624 ac_cv_prog_ac_ct_CC="gcc" 2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2626 break 2 2627 fi 2628done 2629 done 2630IFS=$as_save_IFS 2631 2632fi 2633fi 2634ac_ct_CC=$ac_cv_prog_ac_ct_CC 2635if test -n "$ac_ct_CC"; then 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2637$as_echo "$ac_ct_CC" >&6; } 2638else 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2640$as_echo "no" >&6; } 2641fi 2642 2643 if test "x$ac_ct_CC" = x; then 2644 CC="" 2645 else 2646 case $cross_compiling:$ac_tool_warned in 2647yes:) 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2650ac_tool_warned=yes ;; 2651esac 2652 CC=$ac_ct_CC 2653 fi 2654else 2655 CC="$ac_cv_prog_CC" 2656fi 2657 2658if test -z "$CC"; then 2659 if test -n "$ac_tool_prefix"; then 2660 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2661set dummy ${ac_tool_prefix}cc; ac_word=$2 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2663$as_echo_n "checking for $ac_word... " >&6; } 2664if ${ac_cv_prog_CC+:} false; then : 2665 $as_echo_n "(cached) " >&6 2666else 2667 if test -n "$CC"; then 2668 ac_cv_prog_CC="$CC" # Let the user override the test. 2669else 2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2671for as_dir in $PATH 2672do 2673 IFS=$as_save_IFS 2674 test -z "$as_dir" && as_dir=. 2675 for ac_exec_ext in '' $ac_executable_extensions; do 2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2677 ac_cv_prog_CC="${ac_tool_prefix}cc" 2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2679 break 2 2680 fi 2681done 2682 done 2683IFS=$as_save_IFS 2684 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 2697 fi 2698fi 2699if test -z "$CC"; then 2700 # Extract the first word of "cc", so it can be a program name with args. 2701set dummy cc; ac_word=$2 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2703$as_echo_n "checking for $ac_word... " >&6; } 2704if ${ac_cv_prog_CC+:} false; then : 2705 $as_echo_n "(cached) " >&6 2706else 2707 if test -n "$CC"; then 2708 ac_cv_prog_CC="$CC" # Let the user override the test. 2709else 2710 ac_prog_rejected=no 2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2712for as_dir in $PATH 2713do 2714 IFS=$as_save_IFS 2715 test -z "$as_dir" && as_dir=. 2716 for ac_exec_ext in '' $ac_executable_extensions; do 2717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2719 ac_prog_rejected=yes 2720 continue 2721 fi 2722 ac_cv_prog_CC="cc" 2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2724 break 2 2725 fi 2726done 2727 done 2728IFS=$as_save_IFS 2729 2730if test $ac_prog_rejected = yes; then 2731 # We found a bogon in the path, so make sure we never use it. 2732 set dummy $ac_cv_prog_CC 2733 shift 2734 if test $# != 0; then 2735 # We chose a different compiler from the bogus one. 2736 # However, it has the same basename, so the bogon will be chosen 2737 # first if we set CC to just the basename; use the full file name. 2738 shift 2739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2740 fi 2741fi 2742fi 2743fi 2744CC=$ac_cv_prog_CC 2745if test -n "$CC"; then 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2747$as_echo "$CC" >&6; } 2748else 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2750$as_echo "no" >&6; } 2751fi 2752 2753 2754fi 2755if test -z "$CC"; then 2756 if test -n "$ac_tool_prefix"; then 2757 for ac_prog in cl.exe 2758 do 2759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2760set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2762$as_echo_n "checking for $ac_word... " >&6; } 2763if ${ac_cv_prog_CC+:} false; then : 2764 $as_echo_n "(cached) " >&6 2765else 2766 if test -n "$CC"; then 2767 ac_cv_prog_CC="$CC" # Let the user override the test. 2768else 2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 test -z "$as_dir" && as_dir=. 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2776 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2778 break 2 2779 fi 2780done 2781 done 2782IFS=$as_save_IFS 2783 2784fi 2785fi 2786CC=$ac_cv_prog_CC 2787if test -n "$CC"; then 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2789$as_echo "$CC" >&6; } 2790else 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2792$as_echo "no" >&6; } 2793fi 2794 2795 2796 test -n "$CC" && break 2797 done 2798fi 2799if test -z "$CC"; then 2800 ac_ct_CC=$CC 2801 for ac_prog in cl.exe 2802do 2803 # Extract the first word of "$ac_prog", so it can be a program name with args. 2804set dummy $ac_prog; ac_word=$2 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2806$as_echo_n "checking for $ac_word... " >&6; } 2807if ${ac_cv_prog_ac_ct_CC+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 if test -n "$ac_ct_CC"; then 2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2812else 2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814for as_dir in $PATH 2815do 2816 IFS=$as_save_IFS 2817 test -z "$as_dir" && as_dir=. 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2820 ac_cv_prog_ac_ct_CC="$ac_prog" 2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2822 break 2 2823 fi 2824done 2825 done 2826IFS=$as_save_IFS 2827 2828fi 2829fi 2830ac_ct_CC=$ac_cv_prog_ac_ct_CC 2831if test -n "$ac_ct_CC"; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2833$as_echo "$ac_ct_CC" >&6; } 2834else 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2836$as_echo "no" >&6; } 2837fi 2838 2839 2840 test -n "$ac_ct_CC" && break 2841done 2842 2843 if test "x$ac_ct_CC" = x; then 2844 CC="" 2845 else 2846 case $cross_compiling:$ac_tool_warned in 2847yes:) 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2850ac_tool_warned=yes ;; 2851esac 2852 CC=$ac_ct_CC 2853 fi 2854fi 2855 2856fi 2857 2858 2859test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2861as_fn_error $? "no acceptable C compiler found in \$PATH 2862See \`config.log' for more details" "$LINENO" 5; } 2863 2864# Provide some information about the compiler. 2865$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2866set X $ac_compile 2867ac_compiler=$2 2868for ac_option in --version -v -V -qversion; do 2869 { { ac_try="$ac_compiler $ac_option >&5" 2870case "(($ac_try" in 2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2872 *) ac_try_echo=$ac_try;; 2873esac 2874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2875$as_echo "$ac_try_echo"; } >&5 2876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2877 ac_status=$? 2878 if test -s conftest.err; then 2879 sed '10a\ 2880... rest of stderr output deleted ... 2881 10q' conftest.err >conftest.er1 2882 cat conftest.er1 >&5 2883 fi 2884 rm -f conftest.er1 conftest.err 2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2886 test $ac_status = 0; } 2887done 2888 2889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2890/* end confdefs.h. */ 2891 2892int 2893main () 2894{ 2895 2896 ; 2897 return 0; 2898} 2899_ACEOF 2900ac_clean_files_save=$ac_clean_files 2901ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2902# Try to create an executable without -o first, disregard a.out. 2903# It will help us diagnose broken compilers, and finding out an intuition 2904# of exeext. 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2906$as_echo_n "checking whether the C compiler works... " >&6; } 2907ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2908 2909# The possible output files: 2910ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2911 2912ac_rmfiles= 2913for ac_file in $ac_files 2914do 2915 case $ac_file in 2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2917 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2918 esac 2919done 2920rm -f $ac_rmfiles 2921 2922if { { ac_try="$ac_link_default" 2923case "(($ac_try" in 2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2925 *) ac_try_echo=$ac_try;; 2926esac 2927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2928$as_echo "$ac_try_echo"; } >&5 2929 (eval "$ac_link_default") 2>&5 2930 ac_status=$? 2931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2932 test $ac_status = 0; }; then : 2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2934# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2935# in a Makefile. We should not override ac_cv_exeext if it was cached, 2936# so that the user can short-circuit this test for compilers unknown to 2937# Autoconf. 2938for ac_file in $ac_files '' 2939do 2940 test -f "$ac_file" || continue 2941 case $ac_file in 2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2943 ;; 2944 [ab].out ) 2945 # We found the default executable, but exeext='' is most 2946 # certainly right. 2947 break;; 2948 *.* ) 2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2950 then :; else 2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2952 fi 2953 # We set ac_cv_exeext here because the later test for it is not 2954 # safe: cross compilers may not add the suffix if given an `-o' 2955 # argument, so we may need to know it at that point already. 2956 # Even if this section looks crufty: it has the advantage of 2957 # actually working. 2958 break;; 2959 * ) 2960 break;; 2961 esac 2962done 2963test "$ac_cv_exeext" = no && ac_cv_exeext= 2964 2965else 2966 ac_file='' 2967fi 2968if test -z "$ac_file"; then : 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2970$as_echo "no" >&6; } 2971$as_echo "$as_me: failed program was:" >&5 2972sed 's/^/| /' conftest.$ac_ext >&5 2973 2974{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2976as_fn_error 77 "C compiler cannot create executables 2977See \`config.log' for more details" "$LINENO" 5; } 2978else 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2980$as_echo "yes" >&6; } 2981fi 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2983$as_echo_n "checking for C compiler default output file name... " >&6; } 2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2985$as_echo "$ac_file" >&6; } 2986ac_exeext=$ac_cv_exeext 2987 2988rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2989ac_clean_files=$ac_clean_files_save 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2991$as_echo_n "checking for suffix of executables... " >&6; } 2992if { { ac_try="$ac_link" 2993case "(($ac_try" in 2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2995 *) ac_try_echo=$ac_try;; 2996esac 2997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2998$as_echo "$ac_try_echo"; } >&5 2999 (eval "$ac_link") 2>&5 3000 ac_status=$? 3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3002 test $ac_status = 0; }; then : 3003 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3004# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3005# work properly (i.e., refer to `conftest.exe'), while it won't with 3006# `rm'. 3007for ac_file in conftest.exe conftest conftest.*; do 3008 test -f "$ac_file" || continue 3009 case $ac_file in 3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3012 break;; 3013 * ) break;; 3014 esac 3015done 3016else 3017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3019as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3020See \`config.log' for more details" "$LINENO" 5; } 3021fi 3022rm -f conftest conftest$ac_cv_exeext 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3024$as_echo "$ac_cv_exeext" >&6; } 3025 3026rm -f conftest.$ac_ext 3027EXEEXT=$ac_cv_exeext 3028ac_exeext=$EXEEXT 3029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3030/* end confdefs.h. */ 3031#include <stdio.h> 3032int 3033main () 3034{ 3035FILE *f = fopen ("conftest.out", "w"); 3036 return ferror (f) || fclose (f) != 0; 3037 3038 ; 3039 return 0; 3040} 3041_ACEOF 3042ac_clean_files="$ac_clean_files conftest.out" 3043# Check that the compiler produces executables we can run. If not, either 3044# the compiler is broken, or we cross compile. 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3046$as_echo_n "checking whether we are cross compiling... " >&6; } 3047if test "$cross_compiling" != yes; then 3048 { { ac_try="$ac_link" 3049case "(($ac_try" in 3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3051 *) ac_try_echo=$ac_try;; 3052esac 3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3054$as_echo "$ac_try_echo"; } >&5 3055 (eval "$ac_link") 2>&5 3056 ac_status=$? 3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3058 test $ac_status = 0; } 3059 if { ac_try='./conftest$ac_cv_exeext' 3060 { { case "(($ac_try" in 3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3062 *) ac_try_echo=$ac_try;; 3063esac 3064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3065$as_echo "$ac_try_echo"; } >&5 3066 (eval "$ac_try") 2>&5 3067 ac_status=$? 3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3069 test $ac_status = 0; }; }; then 3070 cross_compiling=no 3071 else 3072 if test "$cross_compiling" = maybe; then 3073 cross_compiling=yes 3074 else 3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3077as_fn_error $? "cannot run C compiled programs. 3078If you meant to cross compile, use \`--host'. 3079See \`config.log' for more details" "$LINENO" 5; } 3080 fi 3081 fi 3082fi 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3084$as_echo "$cross_compiling" >&6; } 3085 3086rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3087ac_clean_files=$ac_clean_files_save 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3089$as_echo_n "checking for suffix of object files... " >&6; } 3090if ${ac_cv_objext+:} false; then : 3091 $as_echo_n "(cached) " >&6 3092else 3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3094/* end confdefs.h. */ 3095 3096int 3097main () 3098{ 3099 3100 ; 3101 return 0; 3102} 3103_ACEOF 3104rm -f conftest.o conftest.obj 3105if { { ac_try="$ac_compile" 3106case "(($ac_try" in 3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3108 *) ac_try_echo=$ac_try;; 3109esac 3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3111$as_echo "$ac_try_echo"; } >&5 3112 (eval "$ac_compile") 2>&5 3113 ac_status=$? 3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3115 test $ac_status = 0; }; then : 3116 for ac_file in conftest.o conftest.obj conftest.*; do 3117 test -f "$ac_file" || continue; 3118 case $ac_file in 3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3121 break;; 3122 esac 3123done 3124else 3125 $as_echo "$as_me: failed program was:" >&5 3126sed 's/^/| /' conftest.$ac_ext >&5 3127 3128{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3130as_fn_error $? "cannot compute suffix of object files: cannot compile 3131See \`config.log' for more details" "$LINENO" 5; } 3132fi 3133rm -f conftest.$ac_cv_objext conftest.$ac_ext 3134fi 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3136$as_echo "$ac_cv_objext" >&6; } 3137OBJEXT=$ac_cv_objext 3138ac_objext=$OBJEXT 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3140$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3141if ${ac_cv_c_compiler_gnu+:} false; then : 3142 $as_echo_n "(cached) " >&6 3143else 3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3145/* end confdefs.h. */ 3146 3147int 3148main () 3149{ 3150#ifndef __GNUC__ 3151 choke me 3152#endif 3153 3154 ; 3155 return 0; 3156} 3157_ACEOF 3158if ac_fn_c_try_compile "$LINENO"; then : 3159 ac_compiler_gnu=yes 3160else 3161 ac_compiler_gnu=no 3162fi 3163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3164ac_cv_c_compiler_gnu=$ac_compiler_gnu 3165 3166fi 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3168$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3169if test $ac_compiler_gnu = yes; then 3170 GCC=yes 3171else 3172 GCC= 3173fi 3174ac_test_CFLAGS=${CFLAGS+set} 3175ac_save_CFLAGS=$CFLAGS 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3177$as_echo_n "checking whether $CC accepts -g... " >&6; } 3178if ${ac_cv_prog_cc_g+:} false; then : 3179 $as_echo_n "(cached) " >&6 3180else 3181 ac_save_c_werror_flag=$ac_c_werror_flag 3182 ac_c_werror_flag=yes 3183 ac_cv_prog_cc_g=no 3184 CFLAGS="-g" 3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3186/* end confdefs.h. */ 3187 3188int 3189main () 3190{ 3191 3192 ; 3193 return 0; 3194} 3195_ACEOF 3196if ac_fn_c_try_compile "$LINENO"; then : 3197 ac_cv_prog_cc_g=yes 3198else 3199 CFLAGS="" 3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3201/* end confdefs.h. */ 3202 3203int 3204main () 3205{ 3206 3207 ; 3208 return 0; 3209} 3210_ACEOF 3211if ac_fn_c_try_compile "$LINENO"; then : 3212 3213else 3214 ac_c_werror_flag=$ac_save_c_werror_flag 3215 CFLAGS="-g" 3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3217/* end confdefs.h. */ 3218 3219int 3220main () 3221{ 3222 3223 ; 3224 return 0; 3225} 3226_ACEOF 3227if ac_fn_c_try_compile "$LINENO"; then : 3228 ac_cv_prog_cc_g=yes 3229fi 3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3231fi 3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3233fi 3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3235 ac_c_werror_flag=$ac_save_c_werror_flag 3236fi 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3238$as_echo "$ac_cv_prog_cc_g" >&6; } 3239if test "$ac_test_CFLAGS" = set; then 3240 CFLAGS=$ac_save_CFLAGS 3241elif test $ac_cv_prog_cc_g = yes; then 3242 if test "$GCC" = yes; then 3243 CFLAGS="-g -O2" 3244 else 3245 CFLAGS="-g" 3246 fi 3247else 3248 if test "$GCC" = yes; then 3249 CFLAGS="-O2" 3250 else 3251 CFLAGS= 3252 fi 3253fi 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3255$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3256if ${ac_cv_prog_cc_c89+:} false; then : 3257 $as_echo_n "(cached) " >&6 3258else 3259 ac_cv_prog_cc_c89=no 3260ac_save_CC=$CC 3261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3262/* end confdefs.h. */ 3263#include <stdarg.h> 3264#include <stdio.h> 3265struct stat; 3266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3267struct buf { int x; }; 3268FILE * (*rcsopen) (struct buf *, struct stat *, int); 3269static char *e (p, i) 3270 char **p; 3271 int i; 3272{ 3273 return p[i]; 3274} 3275static char *f (char * (*g) (char **, int), char **p, ...) 3276{ 3277 char *s; 3278 va_list v; 3279 va_start (v,p); 3280 s = g (p, va_arg (v,int)); 3281 va_end (v); 3282 return s; 3283} 3284 3285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3286 function prototypes and stuff, but not '\xHH' hex character constants. 3287 These don't provoke an error unfortunately, instead are silently treated 3288 as 'x'. The following induces an error, until -std is added to get 3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3290 array size at least. It's necessary to write '\x00'==0 to get something 3291 that's true only with -std. */ 3292int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3293 3294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3295 inside strings and character constants. */ 3296#define FOO(x) 'x' 3297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3298 3299int test (int i, double x); 3300struct s1 {int (*f) (int a);}; 3301struct s2 {int (*f) (double a);}; 3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3303int argc; 3304char **argv; 3305int 3306main () 3307{ 3308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3309 ; 3310 return 0; 3311} 3312_ACEOF 3313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3315do 3316 CC="$ac_save_CC $ac_arg" 3317 if ac_fn_c_try_compile "$LINENO"; then : 3318 ac_cv_prog_cc_c89=$ac_arg 3319fi 3320rm -f core conftest.err conftest.$ac_objext 3321 test "x$ac_cv_prog_cc_c89" != "xno" && break 3322done 3323rm -f conftest.$ac_ext 3324CC=$ac_save_CC 3325 3326fi 3327# AC_CACHE_VAL 3328case "x$ac_cv_prog_cc_c89" in 3329 x) 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3331$as_echo "none needed" >&6; } ;; 3332 xno) 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3334$as_echo "unsupported" >&6; } ;; 3335 *) 3336 CC="$CC $ac_cv_prog_cc_c89" 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3338$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3339esac 3340if test "x$ac_cv_prog_cc_c89" != xno; then : 3341 3342fi 3343 3344ac_ext=c 3345ac_cpp='$CPP $CPPFLAGS' 3346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3348ac_compiler_gnu=$ac_cv_c_compiler_gnu 3349 3350ac_ext=c 3351ac_cpp='$CPP $CPPFLAGS' 3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3354ac_compiler_gnu=$ac_cv_c_compiler_gnu 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3356$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3357if ${am_cv_prog_cc_c_o+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359else 3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3361/* end confdefs.h. */ 3362 3363int 3364main () 3365{ 3366 3367 ; 3368 return 0; 3369} 3370_ACEOF 3371 # Make sure it works both with $CC and with simple cc. 3372 # Following AC_PROG_CC_C_O, we do the test twice because some 3373 # compilers refuse to overwrite an existing .o file with -o, 3374 # though they will create one. 3375 am_cv_prog_cc_c_o=yes 3376 for am_i in 1 2; do 3377 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3378 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3379 ac_status=$? 3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3381 (exit $ac_status); } \ 3382 && test -f conftest2.$ac_objext; then 3383 : OK 3384 else 3385 am_cv_prog_cc_c_o=no 3386 break 3387 fi 3388 done 3389 rm -f core conftest* 3390 unset am_i 3391fi 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3393$as_echo "$am_cv_prog_cc_c_o" >&6; } 3394if test "$am_cv_prog_cc_c_o" != yes; then 3395 # Losing compiler, so override with the script. 3396 # FIXME: It is wrong to rewrite CC. 3397 # But if we don't then we get into trouble of one sort or another. 3398 # A longer-term fix would be to have automake use am__CC in this case, 3399 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3400 CC="$am_aux_dir/compile $CC" 3401fi 3402ac_ext=c 3403ac_cpp='$CPP $CPPFLAGS' 3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3406ac_compiler_gnu=$ac_cv_c_compiler_gnu 3407 3408 3409 3410ac_ext=c 3411ac_cpp='$CPP $CPPFLAGS' 3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3414ac_compiler_gnu=$ac_cv_c_compiler_gnu 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3416$as_echo_n "checking how to run the C preprocessor... " >&6; } 3417# On Suns, sometimes $CPP names a directory. 3418if test -n "$CPP" && test -d "$CPP"; then 3419 CPP= 3420fi 3421if test -z "$CPP"; then 3422 if ${ac_cv_prog_CPP+:} false; then : 3423 $as_echo_n "(cached) " >&6 3424else 3425 # Double quotes because CPP needs to be expanded 3426 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3427 do 3428 ac_preproc_ok=false 3429for ac_c_preproc_warn_flag in '' yes 3430do 3431 # Use a header file that comes with gcc, so configuring glibc 3432 # with a fresh cross-compiler works. 3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3434 # <limits.h> exists even on freestanding compilers. 3435 # On the NeXT, cc -E runs the code through the compiler's parser, 3436 # not just through cpp. "Syntax error" is here to catch this case. 3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3438/* end confdefs.h. */ 3439#ifdef __STDC__ 3440# include <limits.h> 3441#else 3442# include <assert.h> 3443#endif 3444 Syntax error 3445_ACEOF 3446if ac_fn_c_try_cpp "$LINENO"; then : 3447 3448else 3449 # Broken: fails on valid input. 3450continue 3451fi 3452rm -f conftest.err conftest.i conftest.$ac_ext 3453 3454 # OK, works on sane cases. Now check whether nonexistent headers 3455 # can be detected and how. 3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3457/* end confdefs.h. */ 3458#include <ac_nonexistent.h> 3459_ACEOF 3460if ac_fn_c_try_cpp "$LINENO"; then : 3461 # Broken: success on invalid input. 3462continue 3463else 3464 # Passes both tests. 3465ac_preproc_ok=: 3466break 3467fi 3468rm -f conftest.err conftest.i conftest.$ac_ext 3469 3470done 3471# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3472rm -f conftest.i conftest.err conftest.$ac_ext 3473if $ac_preproc_ok; then : 3474 break 3475fi 3476 3477 done 3478 ac_cv_prog_CPP=$CPP 3479 3480fi 3481 CPP=$ac_cv_prog_CPP 3482else 3483 ac_cv_prog_CPP=$CPP 3484fi 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3486$as_echo "$CPP" >&6; } 3487ac_preproc_ok=false 3488for ac_c_preproc_warn_flag in '' yes 3489do 3490 # Use a header file that comes with gcc, so configuring glibc 3491 # with a fresh cross-compiler works. 3492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3493 # <limits.h> exists even on freestanding compilers. 3494 # On the NeXT, cc -E runs the code through the compiler's parser, 3495 # not just through cpp. "Syntax error" is here to catch this case. 3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3497/* end confdefs.h. */ 3498#ifdef __STDC__ 3499# include <limits.h> 3500#else 3501# include <assert.h> 3502#endif 3503 Syntax error 3504_ACEOF 3505if ac_fn_c_try_cpp "$LINENO"; then : 3506 3507else 3508 # Broken: fails on valid input. 3509continue 3510fi 3511rm -f conftest.err conftest.i conftest.$ac_ext 3512 3513 # OK, works on sane cases. Now check whether nonexistent headers 3514 # can be detected and how. 3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517#include <ac_nonexistent.h> 3518_ACEOF 3519if ac_fn_c_try_cpp "$LINENO"; then : 3520 # Broken: success on invalid input. 3521continue 3522else 3523 # Passes both tests. 3524ac_preproc_ok=: 3525break 3526fi 3527rm -f conftest.err conftest.i conftest.$ac_ext 3528 3529done 3530# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3531rm -f conftest.i conftest.err conftest.$ac_ext 3532if $ac_preproc_ok; then : 3533 3534else 3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3537as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3538See \`config.log' for more details" "$LINENO" 5; } 3539fi 3540 3541ac_ext=c 3542ac_cpp='$CPP $CPPFLAGS' 3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3545ac_compiler_gnu=$ac_cv_c_compiler_gnu 3546 3547 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3549$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3550if ${ac_cv_path_GREP+:} false; then : 3551 $as_echo_n "(cached) " >&6 3552else 3553 if test -z "$GREP"; then 3554 ac_path_GREP_found=false 3555 # Loop through the user's path and test for each of PROGNAME-LIST 3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3557for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3558do 3559 IFS=$as_save_IFS 3560 test -z "$as_dir" && as_dir=. 3561 for ac_prog in grep ggrep; do 3562 for ac_exec_ext in '' $ac_executable_extensions; do 3563 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3564 as_fn_executable_p "$ac_path_GREP" || continue 3565# Check for GNU ac_path_GREP and select it if it is found. 3566 # Check for GNU $ac_path_GREP 3567case `"$ac_path_GREP" --version 2>&1` in 3568*GNU*) 3569 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3570*) 3571 ac_count=0 3572 $as_echo_n 0123456789 >"conftest.in" 3573 while : 3574 do 3575 cat "conftest.in" "conftest.in" >"conftest.tmp" 3576 mv "conftest.tmp" "conftest.in" 3577 cp "conftest.in" "conftest.nl" 3578 $as_echo 'GREP' >> "conftest.nl" 3579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3581 as_fn_arith $ac_count + 1 && ac_count=$as_val 3582 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3583 # Best one so far, save it but keep looking for a better one 3584 ac_cv_path_GREP="$ac_path_GREP" 3585 ac_path_GREP_max=$ac_count 3586 fi 3587 # 10*(2^10) chars as input seems more than enough 3588 test $ac_count -gt 10 && break 3589 done 3590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3591esac 3592 3593 $ac_path_GREP_found && break 3 3594 done 3595 done 3596 done 3597IFS=$as_save_IFS 3598 if test -z "$ac_cv_path_GREP"; then 3599 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3600 fi 3601else 3602 ac_cv_path_GREP=$GREP 3603fi 3604 3605fi 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3607$as_echo "$ac_cv_path_GREP" >&6; } 3608 GREP="$ac_cv_path_GREP" 3609 3610 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3612$as_echo_n "checking for egrep... " >&6; } 3613if ${ac_cv_path_EGREP+:} false; then : 3614 $as_echo_n "(cached) " >&6 3615else 3616 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3617 then ac_cv_path_EGREP="$GREP -E" 3618 else 3619 if test -z "$EGREP"; then 3620 ac_path_EGREP_found=false 3621 # Loop through the user's path and test for each of PROGNAME-LIST 3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3623for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3624do 3625 IFS=$as_save_IFS 3626 test -z "$as_dir" && as_dir=. 3627 for ac_prog in egrep; do 3628 for ac_exec_ext in '' $ac_executable_extensions; do 3629 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3630 as_fn_executable_p "$ac_path_EGREP" || continue 3631# Check for GNU ac_path_EGREP and select it if it is found. 3632 # Check for GNU $ac_path_EGREP 3633case `"$ac_path_EGREP" --version 2>&1` in 3634*GNU*) 3635 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3636*) 3637 ac_count=0 3638 $as_echo_n 0123456789 >"conftest.in" 3639 while : 3640 do 3641 cat "conftest.in" "conftest.in" >"conftest.tmp" 3642 mv "conftest.tmp" "conftest.in" 3643 cp "conftest.in" "conftest.nl" 3644 $as_echo 'EGREP' >> "conftest.nl" 3645 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3647 as_fn_arith $ac_count + 1 && ac_count=$as_val 3648 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3649 # Best one so far, save it but keep looking for a better one 3650 ac_cv_path_EGREP="$ac_path_EGREP" 3651 ac_path_EGREP_max=$ac_count 3652 fi 3653 # 10*(2^10) chars as input seems more than enough 3654 test $ac_count -gt 10 && break 3655 done 3656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3657esac 3658 3659 $ac_path_EGREP_found && break 3 3660 done 3661 done 3662 done 3663IFS=$as_save_IFS 3664 if test -z "$ac_cv_path_EGREP"; then 3665 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3666 fi 3667else 3668 ac_cv_path_EGREP=$EGREP 3669fi 3670 3671 fi 3672fi 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3674$as_echo "$ac_cv_path_EGREP" >&6; } 3675 EGREP="$ac_cv_path_EGREP" 3676 3677 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3679$as_echo_n "checking for ANSI C header files... " >&6; } 3680if ${ac_cv_header_stdc+:} false; then : 3681 $as_echo_n "(cached) " >&6 3682else 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685#include <stdlib.h> 3686#include <stdarg.h> 3687#include <string.h> 3688#include <float.h> 3689 3690int 3691main () 3692{ 3693 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698if ac_fn_c_try_compile "$LINENO"; then : 3699 ac_cv_header_stdc=yes 3700else 3701 ac_cv_header_stdc=no 3702fi 3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3704 3705if test $ac_cv_header_stdc = yes; then 3706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708/* end confdefs.h. */ 3709#include <string.h> 3710 3711_ACEOF 3712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3713 $EGREP "memchr" >/dev/null 2>&1; then : 3714 3715else 3716 ac_cv_header_stdc=no 3717fi 3718rm -f conftest* 3719 3720fi 3721 3722if test $ac_cv_header_stdc = yes; then 3723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726#include <stdlib.h> 3727 3728_ACEOF 3729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3730 $EGREP "free" >/dev/null 2>&1; then : 3731 3732else 3733 ac_cv_header_stdc=no 3734fi 3735rm -f conftest* 3736 3737fi 3738 3739if test $ac_cv_header_stdc = yes; then 3740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3741 if test "$cross_compiling" = yes; then : 3742 : 3743else 3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3745/* end confdefs.h. */ 3746#include <ctype.h> 3747#include <stdlib.h> 3748#if ((' ' & 0x0FF) == 0x020) 3749# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3750# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3751#else 3752# define ISLOWER(c) \ 3753 (('a' <= (c) && (c) <= 'i') \ 3754 || ('j' <= (c) && (c) <= 'r') \ 3755 || ('s' <= (c) && (c) <= 'z')) 3756# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3757#endif 3758 3759#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3760int 3761main () 3762{ 3763 int i; 3764 for (i = 0; i < 256; i++) 3765 if (XOR (islower (i), ISLOWER (i)) 3766 || toupper (i) != TOUPPER (i)) 3767 return 2; 3768 return 0; 3769} 3770_ACEOF 3771if ac_fn_c_try_run "$LINENO"; then : 3772 3773else 3774 ac_cv_header_stdc=no 3775fi 3776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3777 conftest.$ac_objext conftest.beam conftest.$ac_ext 3778fi 3779 3780fi 3781fi 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3783$as_echo "$ac_cv_header_stdc" >&6; } 3784if test $ac_cv_header_stdc = yes; then 3785 3786$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3787 3788fi 3789 3790# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3791for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3792 inttypes.h stdint.h unistd.h 3793do : 3794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3795ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3796" 3797if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3798 cat >>confdefs.h <<_ACEOF 3799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3800_ACEOF 3801 3802fi 3803 3804done 3805 3806 3807 3808 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3809if test "x$ac_cv_header_minix_config_h" = xyes; then : 3810 MINIX=yes 3811else 3812 MINIX= 3813fi 3814 3815 3816 if test "$MINIX" = yes; then 3817 3818$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3819 3820 3821$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3822 3823 3824$as_echo "#define _MINIX 1" >>confdefs.h 3825 3826 fi 3827 3828 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3830$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3831if ${ac_cv_safe_to_define___extensions__+:} false; then : 3832 $as_echo_n "(cached) " >&6 3833else 3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3835/* end confdefs.h. */ 3836 3837# define __EXTENSIONS__ 1 3838 $ac_includes_default 3839int 3840main () 3841{ 3842 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847if ac_fn_c_try_compile "$LINENO"; then : 3848 ac_cv_safe_to_define___extensions__=yes 3849else 3850 ac_cv_safe_to_define___extensions__=no 3851fi 3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3853fi 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3855$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3856 test $ac_cv_safe_to_define___extensions__ = yes && 3857 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3858 3859 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3860 3861 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3862 3863 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3864 3865 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3866 3867 3868# Determine the noncanonical target name, for directory use. 3869 case ${build_alias} in 3870 "") build_noncanonical=${build} ;; 3871 *) build_noncanonical=${build_alias} ;; 3872esac 3873 3874 case ${host_alias} in 3875 "") host_noncanonical=${build_noncanonical} ;; 3876 *) host_noncanonical=${host_alias} ;; 3877esac 3878 3879 case ${target_alias} in 3880 "") target_noncanonical=${host_noncanonical} ;; 3881 *) target_noncanonical=${target_alias} ;; 3882esac 3883 3884 3885 3886 3887# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 3888# have matching libraries, they should use host libraries: Makefile.tpl 3889# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 3890# However, they still use the build modules, because the corresponding 3891# host modules (e.g. bison) are only built for the host when bootstrap 3892# finishes. So: 3893# - build_subdir is where we find build modules, and never changes. 3894# - build_libsubdir is where we find build libraries, and can be overridden. 3895 3896# Prefix 'build-' so this never conflicts with target_subdir. 3897build_subdir="build-${build_noncanonical}" 3898 3899# Check whether --with-build-libsubdir was given. 3900if test "${with_build_libsubdir+set}" = set; then : 3901 withval=$with_build_libsubdir; build_libsubdir="$withval" 3902else 3903 build_libsubdir="$build_subdir" 3904fi 3905 3906# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 3907if ( test $srcdir = . && test -d gcc ) \ 3908 || test -d $srcdir/../host-${host_noncanonical}; then 3909 host_subdir="host-${host_noncanonical}" 3910else 3911 host_subdir=. 3912fi 3913# No prefix. 3914target_subdir=${target_noncanonical} 3915 3916 3917# 1.11.1: Require that version of automake. 3918# foreign: Don't require README, INSTALL, NEWS, etc. 3919# no-define: Don't define PACKAGE and VERSION. 3920# -Wall: Issue all automake warnings. 3921# -Wno-portability: Don't warn about constructs supported by GNU make. 3922# (because GCC requires GNU make anyhow). 3923am__api_version='1.15' 3924 3925# Find a good install program. We prefer a C program (faster), 3926# so one script is as good as another. But avoid the broken or 3927# incompatible versions: 3928# SysV /etc/install, /usr/sbin/install 3929# SunOS /usr/etc/install 3930# IRIX /sbin/install 3931# AIX /bin/install 3932# AmigaOS /C/install, which installs bootblocks on floppy discs 3933# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3934# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3935# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3936# OS/2's system install, which has a completely different semantic 3937# ./install, which can be erroneously created by make from ./install.sh. 3938# Reject install programs that cannot install multiple files. 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3940$as_echo_n "checking for a BSD-compatible install... " >&6; } 3941if test -z "$INSTALL"; then 3942if ${ac_cv_path_install+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3946for as_dir in $PATH 3947do 3948 IFS=$as_save_IFS 3949 test -z "$as_dir" && as_dir=. 3950 # Account for people who put trailing slashes in PATH elements. 3951case $as_dir/ in #(( 3952 ./ | .// | /[cC]/* | \ 3953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3954 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3955 /usr/ucb/* ) ;; 3956 *) 3957 # OSF1 and SCO ODT 3.0 have their own names for install. 3958 # Don't use installbsd from OSF since it installs stuff as root 3959 # by default. 3960 for ac_prog in ginstall scoinst install; do 3961 for ac_exec_ext in '' $ac_executable_extensions; do 3962 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3963 if test $ac_prog = install && 3964 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3965 # AIX install. It has an incompatible calling convention. 3966 : 3967 elif test $ac_prog = install && 3968 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3969 # program-specific install script used by HP pwplus--don't use. 3970 : 3971 else 3972 rm -rf conftest.one conftest.two conftest.dir 3973 echo one > conftest.one 3974 echo two > conftest.two 3975 mkdir conftest.dir 3976 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3977 test -s conftest.one && test -s conftest.two && 3978 test -s conftest.dir/conftest.one && 3979 test -s conftest.dir/conftest.two 3980 then 3981 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3982 break 3 3983 fi 3984 fi 3985 fi 3986 done 3987 done 3988 ;; 3989esac 3990 3991 done 3992IFS=$as_save_IFS 3993 3994rm -rf conftest.one conftest.two conftest.dir 3995 3996fi 3997 if test "${ac_cv_path_install+set}" = set; then 3998 INSTALL=$ac_cv_path_install 3999 else 4000 # As a last resort, use the slow shell script. Don't cache a 4001 # value for INSTALL within a source directory, because that will 4002 # break other packages using the cache if that directory is 4003 # removed, or if the value is a relative name. 4004 INSTALL=$ac_install_sh 4005 fi 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4008$as_echo "$INSTALL" >&6; } 4009 4010# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4011# It thinks the first close brace ends the variable substitution. 4012test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4013 4014test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4015 4016test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4017 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4019$as_echo_n "checking whether build environment is sane... " >&6; } 4020# Reject unsafe characters in $srcdir or the absolute working directory 4021# name. Accept space and tab only in the latter. 4022am_lf=' 4023' 4024case `pwd` in 4025 *[\\\"\#\$\&\'\`$am_lf]*) 4026 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4027esac 4028case $srcdir in 4029 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4030 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4031esac 4032 4033# Do 'set' in a subshell so we don't clobber the current shell's 4034# arguments. Must try -L first in case configure is actually a 4035# symlink; some systems play weird games with the mod time of symlinks 4036# (eg FreeBSD returns the mod time of the symlink's containing 4037# directory). 4038if ( 4039 am_has_slept=no 4040 for am_try in 1 2; do 4041 echo "timestamp, slept: $am_has_slept" > conftest.file 4042 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4043 if test "$*" = "X"; then 4044 # -L didn't work. 4045 set X `ls -t "$srcdir/configure" conftest.file` 4046 fi 4047 if test "$*" != "X $srcdir/configure conftest.file" \ 4048 && test "$*" != "X conftest.file $srcdir/configure"; then 4049 4050 # If neither matched, then we have a broken ls. This can happen 4051 # if, for instance, CONFIG_SHELL is bash and it inherits a 4052 # broken ls alias from the environment. This has actually 4053 # happened. Such a system could not be considered "sane". 4054 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4055 alias in your environment" "$LINENO" 5 4056 fi 4057 if test "$2" = conftest.file || test $am_try -eq 2; then 4058 break 4059 fi 4060 # Just in case. 4061 sleep 1 4062 am_has_slept=yes 4063 done 4064 test "$2" = conftest.file 4065 ) 4066then 4067 # Ok. 4068 : 4069else 4070 as_fn_error $? "newly created file is older than distributed files! 4071Check your system clock" "$LINENO" 5 4072fi 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4074$as_echo "yes" >&6; } 4075# If we didn't sleep, we still need to ensure time stamps of config.status and 4076# generated files are strictly newer. 4077am_sleep_pid= 4078if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4079 ( sleep 1 ) & 4080 am_sleep_pid=$! 4081fi 4082 4083rm -f conftest.file 4084 4085test "$program_prefix" != NONE && 4086 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4087# Use a double $ so make ignores it. 4088test "$program_suffix" != NONE && 4089 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4090# Double any \ or $. 4091# By default was `s,x,x', remove it if useless. 4092ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4093program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4094 4095if test x"${MISSING+set}" != xset; then 4096 case $am_aux_dir in 4097 *\ * | *\ *) 4098 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4099 *) 4100 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4101 esac 4102fi 4103# Use eval to expand $SHELL 4104if eval "$MISSING --is-lightweight"; then 4105 am_missing_run="$MISSING " 4106else 4107 am_missing_run= 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4109$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4110fi 4111 4112if test x"${install_sh+set}" != xset; then 4113 case $am_aux_dir in 4114 *\ * | *\ *) 4115 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4116 *) 4117 install_sh="\${SHELL} $am_aux_dir/install-sh" 4118 esac 4119fi 4120 4121# Installed binaries are usually stripped using 'strip' when the user 4122# run "make install-strip". However 'strip' might not be the right 4123# tool to use in cross-compilation environments, therefore Automake 4124# will honor the 'STRIP' environment variable to overrule this program. 4125if test "$cross_compiling" != no; then 4126 if test -n "$ac_tool_prefix"; then 4127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4128set dummy ${ac_tool_prefix}strip; ac_word=$2 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4130$as_echo_n "checking for $ac_word... " >&6; } 4131if ${ac_cv_prog_STRIP+:} false; then : 4132 $as_echo_n "(cached) " >&6 4133else 4134 if test -n "$STRIP"; then 4135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4136else 4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4138for as_dir in $PATH 4139do 4140 IFS=$as_save_IFS 4141 test -z "$as_dir" && as_dir=. 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4144 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4146 break 2 4147 fi 4148done 4149 done 4150IFS=$as_save_IFS 4151 4152fi 4153fi 4154STRIP=$ac_cv_prog_STRIP 4155if test -n "$STRIP"; then 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4157$as_echo "$STRIP" >&6; } 4158else 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4160$as_echo "no" >&6; } 4161fi 4162 4163 4164fi 4165if test -z "$ac_cv_prog_STRIP"; then 4166 ac_ct_STRIP=$STRIP 4167 # Extract the first word of "strip", so it can be a program name with args. 4168set dummy strip; ac_word=$2 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4170$as_echo_n "checking for $ac_word... " >&6; } 4171if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4172 $as_echo_n "(cached) " >&6 4173else 4174 if test -n "$ac_ct_STRIP"; then 4175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4176else 4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4178for as_dir in $PATH 4179do 4180 IFS=$as_save_IFS 4181 test -z "$as_dir" && as_dir=. 4182 for ac_exec_ext in '' $ac_executable_extensions; do 4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4184 ac_cv_prog_ac_ct_STRIP="strip" 4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4186 break 2 4187 fi 4188done 4189 done 4190IFS=$as_save_IFS 4191 4192fi 4193fi 4194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4195if test -n "$ac_ct_STRIP"; then 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4197$as_echo "$ac_ct_STRIP" >&6; } 4198else 4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4200$as_echo "no" >&6; } 4201fi 4202 4203 if test "x$ac_ct_STRIP" = x; then 4204 STRIP=":" 4205 else 4206 case $cross_compiling:$ac_tool_warned in 4207yes:) 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4210ac_tool_warned=yes ;; 4211esac 4212 STRIP=$ac_ct_STRIP 4213 fi 4214else 4215 STRIP="$ac_cv_prog_STRIP" 4216fi 4217 4218fi 4219INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4220 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4222$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4223if test -z "$MKDIR_P"; then 4224 if ${ac_cv_path_mkdir+:} false; then : 4225 $as_echo_n "(cached) " >&6 4226else 4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4228for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4229do 4230 IFS=$as_save_IFS 4231 test -z "$as_dir" && as_dir=. 4232 for ac_prog in mkdir gmkdir; do 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4235 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4236 'mkdir (GNU coreutils) '* | \ 4237 'mkdir (coreutils) '* | \ 4238 'mkdir (fileutils) '4.1*) 4239 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4240 break 3;; 4241 esac 4242 done 4243 done 4244 done 4245IFS=$as_save_IFS 4246 4247fi 4248 4249 test -d ./--version && rmdir ./--version 4250 if test "${ac_cv_path_mkdir+set}" = set; then 4251 MKDIR_P="$ac_cv_path_mkdir -p" 4252 else 4253 # As a last resort, use the slow shell script. Don't cache a 4254 # value for MKDIR_P within a source directory, because that will 4255 # break other packages using the cache if that directory is 4256 # removed, or if the value is a relative name. 4257 MKDIR_P="$ac_install_sh -d" 4258 fi 4259fi 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4261$as_echo "$MKDIR_P" >&6; } 4262 4263for ac_prog in gawk mawk nawk awk 4264do 4265 # Extract the first word of "$ac_prog", so it can be a program name with args. 4266set dummy $ac_prog; ac_word=$2 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4268$as_echo_n "checking for $ac_word... " >&6; } 4269if ${ac_cv_prog_AWK+:} false; then : 4270 $as_echo_n "(cached) " >&6 4271else 4272 if test -n "$AWK"; then 4273 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4274else 4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4276for as_dir in $PATH 4277do 4278 IFS=$as_save_IFS 4279 test -z "$as_dir" && as_dir=. 4280 for ac_exec_ext in '' $ac_executable_extensions; do 4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4282 ac_cv_prog_AWK="$ac_prog" 4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4284 break 2 4285 fi 4286done 4287 done 4288IFS=$as_save_IFS 4289 4290fi 4291fi 4292AWK=$ac_cv_prog_AWK 4293if test -n "$AWK"; then 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4295$as_echo "$AWK" >&6; } 4296else 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4298$as_echo "no" >&6; } 4299fi 4300 4301 4302 test -n "$AWK" && break 4303done 4304 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4306$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4307set x ${MAKE-make} 4308ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4309if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4310 $as_echo_n "(cached) " >&6 4311else 4312 cat >conftest.make <<\_ACEOF 4313SHELL = /bin/sh 4314all: 4315 @echo '@@@%%%=$(MAKE)=@@@%%%' 4316_ACEOF 4317# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4318case `${MAKE-make} -f conftest.make 2>/dev/null` in 4319 *@@@%%%=?*=@@@%%%*) 4320 eval ac_cv_prog_make_${ac_make}_set=yes;; 4321 *) 4322 eval ac_cv_prog_make_${ac_make}_set=no;; 4323esac 4324rm -f conftest.make 4325fi 4326if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4328$as_echo "yes" >&6; } 4329 SET_MAKE= 4330else 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332$as_echo "no" >&6; } 4333 SET_MAKE="MAKE=${MAKE-make}" 4334fi 4335 4336rm -rf .tst 2>/dev/null 4337mkdir .tst 2>/dev/null 4338if test -d .tst; then 4339 am__leading_dot=. 4340else 4341 am__leading_dot=_ 4342fi 4343rmdir .tst 2>/dev/null 4344 4345DEPDIR="${am__leading_dot}deps" 4346 4347ac_config_commands="$ac_config_commands depfiles" 4348 4349 4350am_make=${MAKE-make} 4351cat > confinc << 'END' 4352am__doit: 4353 @echo this is the am__doit target 4354.PHONY: am__doit 4355END 4356# If we don't find an include directive, just comment out the code. 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4358$as_echo_n "checking for style of include used by $am_make... " >&6; } 4359am__include="#" 4360am__quote= 4361_am_result=none 4362# First try GNU make style include. 4363echo "include confinc" > confmf 4364# Ignore all kinds of additional output from 'make'. 4365case `$am_make -s -f confmf 2> /dev/null` in #( 4366*the\ am__doit\ target*) 4367 am__include=include 4368 am__quote= 4369 _am_result=GNU 4370 ;; 4371esac 4372# Now try BSD make style include. 4373if test "$am__include" = "#"; then 4374 echo '.include "confinc"' > confmf 4375 case `$am_make -s -f confmf 2> /dev/null` in #( 4376 *the\ am__doit\ target*) 4377 am__include=.include 4378 am__quote="\"" 4379 _am_result=BSD 4380 ;; 4381 esac 4382fi 4383 4384 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4386$as_echo "$_am_result" >&6; } 4387rm -f confinc confmf 4388 4389# Check whether --enable-dependency-tracking was given. 4390if test "${enable_dependency_tracking+set}" = set; then : 4391 enableval=$enable_dependency_tracking; 4392fi 4393 4394if test "x$enable_dependency_tracking" != xno; then 4395 am_depcomp="$ac_aux_dir/depcomp" 4396 AMDEPBACKSLASH='\' 4397 am__nodep='_no' 4398fi 4399 if test "x$enable_dependency_tracking" != xno; then 4400 AMDEP_TRUE= 4401 AMDEP_FALSE='#' 4402else 4403 AMDEP_TRUE='#' 4404 AMDEP_FALSE= 4405fi 4406 4407 4408# Check whether --enable-silent-rules was given. 4409if test "${enable_silent_rules+set}" = set; then : 4410 enableval=$enable_silent_rules; 4411fi 4412 4413case $enable_silent_rules in # ((( 4414 yes) AM_DEFAULT_VERBOSITY=0;; 4415 no) AM_DEFAULT_VERBOSITY=1;; 4416 *) AM_DEFAULT_VERBOSITY=1;; 4417esac 4418am_make=${MAKE-make} 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4420$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4421if ${am_cv_make_support_nested_variables+:} false; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 if $as_echo 'TRUE=$(BAR$(V)) 4425BAR0=false 4426BAR1=true 4427V=1 4428am__doit: 4429 @$(TRUE) 4430.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4431 am_cv_make_support_nested_variables=yes 4432else 4433 am_cv_make_support_nested_variables=no 4434fi 4435fi 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4437$as_echo "$am_cv_make_support_nested_variables" >&6; } 4438if test $am_cv_make_support_nested_variables = yes; then 4439 AM_V='$(V)' 4440 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4441else 4442 AM_V=$AM_DEFAULT_VERBOSITY 4443 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4444fi 4445AM_BACKSLASH='\' 4446 4447if test "`cd $srcdir && pwd`" != "`pwd`"; then 4448 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4449 # is not polluted with repeated "-I." 4450 am__isrc=' -I$(srcdir)' 4451 # test to see if srcdir already configured 4452 if test -f $srcdir/config.status; then 4453 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4454 fi 4455fi 4456 4457# test whether we have cygpath 4458if test -z "$CYGPATH_W"; then 4459 if (cygpath --version) >/dev/null 2>/dev/null; then 4460 CYGPATH_W='cygpath -w' 4461 else 4462 CYGPATH_W=echo 4463 fi 4464fi 4465 4466 4467# Define the identity of the package. 4468 PACKAGE='libcc1' 4469 VERSION='version-unused' 4470 4471 4472# Some tools Automake needs. 4473 4474ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4475 4476 4477AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4478 4479 4480AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4481 4482 4483AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4484 4485 4486MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4487 4488# For better backward compatibility. To be removed once Automake 1.9.x 4489# dies out for good. For more background, see: 4490# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4491# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4492mkdir_p='$(MKDIR_P)' 4493 4494# We need awk for the "check" target (and possibly the TAP driver). The 4495# system "awk" is bad on some platforms. 4496# Always define AMTAR for backward compatibility. Yes, it's still used 4497# in the wild :-( We should find a proper way to deprecate it ... 4498AMTAR='$${TAR-tar}' 4499 4500 4501# We'll loop over all known methods to create a tar archive until one works. 4502_am_tools='gnutar pax cpio none' 4503 4504am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4505 4506 4507 4508 4509 4510depcc="$CC" am_compiler_list= 4511 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4513$as_echo_n "checking dependency style of $depcc... " >&6; } 4514if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4518 # We make a subdir and do the tests there. Otherwise we can end up 4519 # making bogus files that we don't know about and never remove. For 4520 # instance it was reported that on HP-UX the gcc test will end up 4521 # making a dummy file named 'D' -- because '-MD' means "put the output 4522 # in D". 4523 rm -rf conftest.dir 4524 mkdir conftest.dir 4525 # Copy depcomp to subdir because otherwise we won't find it if we're 4526 # using a relative directory. 4527 cp "$am_depcomp" conftest.dir 4528 cd conftest.dir 4529 # We will build objects and dependencies in a subdirectory because 4530 # it helps to detect inapplicable dependency modes. For instance 4531 # both Tru64's cc and ICC support -MD to output dependencies as a 4532 # side effect of compilation, but ICC will put the dependencies in 4533 # the current directory while Tru64 will put them in the object 4534 # directory. 4535 mkdir sub 4536 4537 am_cv_CC_dependencies_compiler_type=none 4538 if test "$am_compiler_list" = ""; then 4539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4540 fi 4541 am__universal=false 4542 case " $depcc " in #( 4543 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4544 esac 4545 4546 for depmode in $am_compiler_list; do 4547 # Setup a source with many dependencies, because some compilers 4548 # like to wrap large dependency lists on column 80 (with \), and 4549 # we should not choose a depcomp mode which is confused by this. 4550 # 4551 # We need to recreate these files for each test, as the compiler may 4552 # overwrite some of them when testing with obscure command lines. 4553 # This happens at least with the AIX C compiler. 4554 : > sub/conftest.c 4555 for i in 1 2 3 4 5 6; do 4556 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4557 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4558 # Solaris 10 /bin/sh. 4559 echo '/* dummy */' > sub/conftst$i.h 4560 done 4561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4562 4563 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4564 # mode. It turns out that the SunPro C++ compiler does not properly 4565 # handle '-M -o', and we need to detect this. Also, some Intel 4566 # versions had trouble with output in subdirs. 4567 am__obj=sub/conftest.${OBJEXT-o} 4568 am__minus_obj="-o $am__obj" 4569 case $depmode in 4570 gcc) 4571 # This depmode causes a compiler race in universal mode. 4572 test "$am__universal" = false || continue 4573 ;; 4574 nosideeffect) 4575 # After this tag, mechanisms are not by side-effect, so they'll 4576 # only be used when explicitly requested. 4577 if test "x$enable_dependency_tracking" = xyes; then 4578 continue 4579 else 4580 break 4581 fi 4582 ;; 4583 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4584 # This compiler won't grok '-c -o', but also, the minuso test has 4585 # not run yet. These depmodes are late enough in the game, and 4586 # so weak that their functioning should not be impacted. 4587 am__obj=conftest.${OBJEXT-o} 4588 am__minus_obj= 4589 ;; 4590 none) break ;; 4591 esac 4592 if depmode=$depmode \ 4593 source=sub/conftest.c object=$am__obj \ 4594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4595 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4596 >/dev/null 2>conftest.err && 4597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4599 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4601 # icc doesn't choke on unknown options, it will just issue warnings 4602 # or remarks (even with -Werror). So we grep stderr for any message 4603 # that says an option was ignored or not supported. 4604 # When given -MP, icc 7.0 and 7.1 complain thusly: 4605 # icc: Command line warning: ignoring option '-M'; no argument required 4606 # The diagnosis changed in icc 8.0: 4607 # icc: Command line remark: option '-MP' not supported 4608 if (grep 'ignoring option' conftest.err || 4609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4610 am_cv_CC_dependencies_compiler_type=$depmode 4611 break 4612 fi 4613 fi 4614 done 4615 4616 cd .. 4617 rm -rf conftest.dir 4618else 4619 am_cv_CC_dependencies_compiler_type=none 4620fi 4621 4622fi 4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4624$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4625CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4626 4627 if 4628 test "x$enable_dependency_tracking" != xno \ 4629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4630 am__fastdepCC_TRUE= 4631 am__fastdepCC_FALSE='#' 4632else 4633 am__fastdepCC_TRUE='#' 4634 am__fastdepCC_FALSE= 4635fi 4636 4637 4638 4639# POSIX will say in a future version that running "rm -f" with no argument 4640# is OK; and we want to be able to make that assumption in our Makefile 4641# recipes. So use an aggressive probe to check that the usage we want is 4642# actually supported "in the wild" to an acceptable degree. 4643# See automake bug#10828. 4644# To make any issue more visible, cause the running configure to be aborted 4645# by default if the 'rm' program in use doesn't match our expectations; the 4646# user can still override this though. 4647if rm -f && rm -fr && rm -rf; then : OK; else 4648 cat >&2 <<'END' 4649Oops! 4650 4651Your 'rm' program seems unable to run without file operands specified 4652on the command line, even when the '-f' option is present. This is contrary 4653to the behaviour of most rm programs out there, and not conforming with 4654the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4655 4656Please tell bug-automake@gnu.org about your system, including the value 4657of your $PATH and any error possibly output before this message. This 4658can help us improve future automake versions. 4659 4660END 4661 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4662 echo 'Configuration will proceed anyway, since you have set the' >&2 4663 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4664 echo >&2 4665 else 4666 cat >&2 <<'END' 4667Aborting the configuration process, to ensure you take notice of the issue. 4668 4669You can download and install GNU coreutils to get an 'rm' implementation 4670that behaves properly: <http://www.gnu.org/software/coreutils/>. 4671 4672If you want to complete the configuration process using your problematic 4673'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4674to "yes", and re-run configure. 4675 4676END 4677 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4678 fi 4679fi 4680 4681 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4683$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4684 # Check whether --enable-maintainer-mode was given. 4685if test "${enable_maintainer_mode+set}" = set; then : 4686 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4687else 4688 USE_MAINTAINER_MODE=no 4689fi 4690 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4692$as_echo "$USE_MAINTAINER_MODE" >&6; } 4693 if test $USE_MAINTAINER_MODE = yes; then 4694 MAINTAINER_MODE_TRUE= 4695 MAINTAINER_MODE_FALSE='#' 4696else 4697 MAINTAINER_MODE_TRUE='#' 4698 MAINTAINER_MODE_FALSE= 4699fi 4700 4701 MAINT=$MAINTAINER_MODE_TRUE 4702 4703 4704 4705case `pwd` in 4706 *\ * | *\ *) 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4708$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4709esac 4710 4711 4712 4713macro_version='2.2.7a' 4714macro_revision='1.3134' 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728ltmain="$ac_aux_dir/ltmain.sh" 4729 4730# Backslashify metacharacters that are still active within 4731# double-quoted strings. 4732sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4733 4734# Same as above, but do not quote variable references. 4735double_quote_subst='s/\(["`\\]\)/\\\1/g' 4736 4737# Sed substitution to delay expansion of an escaped shell variable in a 4738# double_quote_subst'ed string. 4739delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4740 4741# Sed substitution to delay expansion of an escaped single quote. 4742delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4743 4744# Sed substitution to avoid accidental globbing in evaled expressions 4745no_glob_subst='s/\*/\\\*/g' 4746 4747ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4748ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4749ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4750 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4752$as_echo_n "checking how to print strings... " >&6; } 4753# Test print first, because it will be a builtin if present. 4754if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4756 ECHO='print -r --' 4757elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4758 ECHO='printf %s\n' 4759else 4760 # Use this function as a fallback that always works. 4761 func_fallback_echo () 4762 { 4763 eval 'cat <<_LTECHO_EOF 4764$1 4765_LTECHO_EOF' 4766 } 4767 ECHO='func_fallback_echo' 4768fi 4769 4770# func_echo_all arg... 4771# Invoke $ECHO with all args, space-separated. 4772func_echo_all () 4773{ 4774 $ECHO "" 4775} 4776 4777case "$ECHO" in 4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4779$as_echo "printf" >&6; } ;; 4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4781$as_echo "print -r" >&6; } ;; 4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4783$as_echo "cat" >&6; } ;; 4784esac 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4800$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4801if ${ac_cv_path_SED+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4805 for ac_i in 1 2 3 4 5 6 7; do 4806 ac_script="$ac_script$as_nl$ac_script" 4807 done 4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4809 { ac_script=; unset ac_script;} 4810 if test -z "$SED"; then 4811 ac_path_SED_found=false 4812 # Loop through the user's path and test for each of PROGNAME-LIST 4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4814for as_dir in $PATH 4815do 4816 IFS=$as_save_IFS 4817 test -z "$as_dir" && as_dir=. 4818 for ac_prog in sed gsed; do 4819 for ac_exec_ext in '' $ac_executable_extensions; do 4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4821 as_fn_executable_p "$ac_path_SED" || continue 4822# Check for GNU ac_path_SED and select it if it is found. 4823 # Check for GNU $ac_path_SED 4824case `"$ac_path_SED" --version 2>&1` in 4825*GNU*) 4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4827*) 4828 ac_count=0 4829 $as_echo_n 0123456789 >"conftest.in" 4830 while : 4831 do 4832 cat "conftest.in" "conftest.in" >"conftest.tmp" 4833 mv "conftest.tmp" "conftest.in" 4834 cp "conftest.in" "conftest.nl" 4835 $as_echo '' >> "conftest.nl" 4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4838 as_fn_arith $ac_count + 1 && ac_count=$as_val 4839 if test $ac_count -gt ${ac_path_SED_max-0}; then 4840 # Best one so far, save it but keep looking for a better one 4841 ac_cv_path_SED="$ac_path_SED" 4842 ac_path_SED_max=$ac_count 4843 fi 4844 # 10*(2^10) chars as input seems more than enough 4845 test $ac_count -gt 10 && break 4846 done 4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4848esac 4849 4850 $ac_path_SED_found && break 3 4851 done 4852 done 4853 done 4854IFS=$as_save_IFS 4855 if test -z "$ac_cv_path_SED"; then 4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4857 fi 4858else 4859 ac_cv_path_SED=$SED 4860fi 4861 4862fi 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4864$as_echo "$ac_cv_path_SED" >&6; } 4865 SED="$ac_cv_path_SED" 4866 rm -f conftest.sed 4867 4868test -z "$SED" && SED=sed 4869Xsed="$SED -e 1s/^X//" 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4882$as_echo_n "checking for fgrep... " >&6; } 4883if ${ac_cv_path_FGREP+:} false; then : 4884 $as_echo_n "(cached) " >&6 4885else 4886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4887 then ac_cv_path_FGREP="$GREP -F" 4888 else 4889 if test -z "$FGREP"; then 4890 ac_path_FGREP_found=false 4891 # Loop through the user's path and test for each of PROGNAME-LIST 4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4894do 4895 IFS=$as_save_IFS 4896 test -z "$as_dir" && as_dir=. 4897 for ac_prog in fgrep; do 4898 for ac_exec_ext in '' $ac_executable_extensions; do 4899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4900 as_fn_executable_p "$ac_path_FGREP" || continue 4901# Check for GNU ac_path_FGREP and select it if it is found. 4902 # Check for GNU $ac_path_FGREP 4903case `"$ac_path_FGREP" --version 2>&1` in 4904*GNU*) 4905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4906*) 4907 ac_count=0 4908 $as_echo_n 0123456789 >"conftest.in" 4909 while : 4910 do 4911 cat "conftest.in" "conftest.in" >"conftest.tmp" 4912 mv "conftest.tmp" "conftest.in" 4913 cp "conftest.in" "conftest.nl" 4914 $as_echo 'FGREP' >> "conftest.nl" 4915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4917 as_fn_arith $ac_count + 1 && ac_count=$as_val 4918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4919 # Best one so far, save it but keep looking for a better one 4920 ac_cv_path_FGREP="$ac_path_FGREP" 4921 ac_path_FGREP_max=$ac_count 4922 fi 4923 # 10*(2^10) chars as input seems more than enough 4924 test $ac_count -gt 10 && break 4925 done 4926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4927esac 4928 4929 $ac_path_FGREP_found && break 3 4930 done 4931 done 4932 done 4933IFS=$as_save_IFS 4934 if test -z "$ac_cv_path_FGREP"; then 4935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4936 fi 4937else 4938 ac_cv_path_FGREP=$FGREP 4939fi 4940 4941 fi 4942fi 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4944$as_echo "$ac_cv_path_FGREP" >&6; } 4945 FGREP="$ac_cv_path_FGREP" 4946 4947 4948test -z "$GREP" && GREP=grep 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968# Check whether --with-gnu-ld was given. 4969if test "${with_gnu_ld+set}" = set; then : 4970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4971else 4972 with_gnu_ld=no 4973fi 4974 4975ac_prog=ld 4976if test "$GCC" = yes; then 4977 # Check if gcc -print-prog-name=ld gives a path. 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4979$as_echo_n "checking for ld used by $CC... " >&6; } 4980 case $host in 4981 *-*-mingw*) 4982 # gcc leaves a trailing carriage return which upsets mingw 4983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4984 *) 4985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4986 esac 4987 case $ac_prog in 4988 # Accept absolute paths. 4989 [\\/]* | ?:[\\/]*) 4990 re_direlt='/[^/][^/]*/\.\./' 4991 # Canonicalize the pathname of ld 4992 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4993 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4994 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4995 done 4996 test -z "$LD" && LD="$ac_prog" 4997 ;; 4998 "") 4999 # If it fails, then pretend we aren't using GCC. 5000 ac_prog=ld 5001 ;; 5002 *) 5003 # If it is relative, then search for the first ld in PATH. 5004 with_gnu_ld=unknown 5005 ;; 5006 esac 5007elif test "$with_gnu_ld" = yes; then 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5009$as_echo_n "checking for GNU ld... " >&6; } 5010else 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5012$as_echo_n "checking for non-GNU ld... " >&6; } 5013fi 5014if ${lt_cv_path_LD+:} false; then : 5015 $as_echo_n "(cached) " >&6 5016else 5017 if test -z "$LD"; then 5018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5019 for ac_dir in $PATH; do 5020 IFS="$lt_save_ifs" 5021 test -z "$ac_dir" && ac_dir=. 5022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5023 lt_cv_path_LD="$ac_dir/$ac_prog" 5024 # Check to see if the program is GNU ld. I'd rather use --version, 5025 # but apparently some variants of GNU ld only accept -v. 5026 # Break only if it was the GNU/non-GNU ld that we prefer. 5027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5028 *GNU* | *'with BFD'*) 5029 test "$with_gnu_ld" != no && break 5030 ;; 5031 *) 5032 test "$with_gnu_ld" != yes && break 5033 ;; 5034 esac 5035 fi 5036 done 5037 IFS="$lt_save_ifs" 5038else 5039 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5040fi 5041fi 5042 5043LD="$lt_cv_path_LD" 5044if test -n "$LD"; then 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5046$as_echo "$LD" >&6; } 5047else 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5049$as_echo "no" >&6; } 5050fi 5051test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5053$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5054if ${lt_cv_prog_gnu_ld+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5058case `$LD -v 2>&1 </dev/null` in 5059*GNU* | *'with BFD'*) 5060 lt_cv_prog_gnu_ld=yes 5061 ;; 5062*) 5063 lt_cv_prog_gnu_ld=no 5064 ;; 5065esac 5066fi 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5068$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5069with_gnu_ld=$lt_cv_prog_gnu_ld 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5080$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5081if ${lt_cv_path_NM+:} false; then : 5082 $as_echo_n "(cached) " >&6 5083else 5084 if test -n "$NM"; then 5085 # Let the user override the test. 5086 lt_cv_path_NM="$NM" 5087else 5088 lt_nm_to_check="${ac_tool_prefix}nm" 5089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5090 lt_nm_to_check="$lt_nm_to_check nm" 5091 fi 5092 for lt_tmp_nm in $lt_nm_to_check; do 5093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5095 IFS="$lt_save_ifs" 5096 test -z "$ac_dir" && ac_dir=. 5097 tmp_nm="$ac_dir/$lt_tmp_nm" 5098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5099 # Check to see if the nm accepts a BSD-compat flag. 5100 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5101 # nm: unknown option "B" ignored 5102 # Tru64's nm complains that /dev/null is an invalid object file 5103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5104 */dev/null* | *'Invalid file or object type'*) 5105 lt_cv_path_NM="$tmp_nm -B" 5106 break 5107 ;; 5108 *) 5109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5110 */dev/null*) 5111 lt_cv_path_NM="$tmp_nm -p" 5112 break 5113 ;; 5114 *) 5115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5116 continue # so that we can try to find one that supports BSD flags 5117 ;; 5118 esac 5119 ;; 5120 esac 5121 fi 5122 done 5123 IFS="$lt_save_ifs" 5124 done 5125 : ${lt_cv_path_NM=no} 5126fi 5127fi 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5129$as_echo "$lt_cv_path_NM" >&6; } 5130if test "$lt_cv_path_NM" != "no"; then 5131 NM="$lt_cv_path_NM" 5132else 5133 # Didn't find any BSD compatible name lister, look for dumpbin. 5134 if test -n "$DUMPBIN"; then : 5135 # Let the user override the test. 5136 else 5137 if test -n "$ac_tool_prefix"; then 5138 for ac_prog in dumpbin "link -dump" 5139 do 5140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5141set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5143$as_echo_n "checking for $ac_word... " >&6; } 5144if ${ac_cv_prog_DUMPBIN+:} false; then : 5145 $as_echo_n "(cached) " >&6 5146else 5147 if test -n "$DUMPBIN"; then 5148 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5149else 5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5151for as_dir in $PATH 5152do 5153 IFS=$as_save_IFS 5154 test -z "$as_dir" && as_dir=. 5155 for ac_exec_ext in '' $ac_executable_extensions; do 5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5159 break 2 5160 fi 5161done 5162 done 5163IFS=$as_save_IFS 5164 5165fi 5166fi 5167DUMPBIN=$ac_cv_prog_DUMPBIN 5168if test -n "$DUMPBIN"; then 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5170$as_echo "$DUMPBIN" >&6; } 5171else 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5173$as_echo "no" >&6; } 5174fi 5175 5176 5177 test -n "$DUMPBIN" && break 5178 done 5179fi 5180if test -z "$DUMPBIN"; then 5181 ac_ct_DUMPBIN=$DUMPBIN 5182 for ac_prog in dumpbin "link -dump" 5183do 5184 # Extract the first word of "$ac_prog", so it can be a program name with args. 5185set dummy $ac_prog; ac_word=$2 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5187$as_echo_n "checking for $ac_word... " >&6; } 5188if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190else 5191 if test -n "$ac_ct_DUMPBIN"; then 5192 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5193else 5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5195for as_dir in $PATH 5196do 5197 IFS=$as_save_IFS 5198 test -z "$as_dir" && as_dir=. 5199 for ac_exec_ext in '' $ac_executable_extensions; do 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5201 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5203 break 2 5204 fi 5205done 5206 done 5207IFS=$as_save_IFS 5208 5209fi 5210fi 5211ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5212if test -n "$ac_ct_DUMPBIN"; then 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5214$as_echo "$ac_ct_DUMPBIN" >&6; } 5215else 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5217$as_echo "no" >&6; } 5218fi 5219 5220 5221 test -n "$ac_ct_DUMPBIN" && break 5222done 5223 5224 if test "x$ac_ct_DUMPBIN" = x; then 5225 DUMPBIN=":" 5226 else 5227 case $cross_compiling:$ac_tool_warned in 5228yes:) 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5231ac_tool_warned=yes ;; 5232esac 5233 DUMPBIN=$ac_ct_DUMPBIN 5234 fi 5235fi 5236 5237 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5238 *COFF*) 5239 DUMPBIN="$DUMPBIN -symbols" 5240 ;; 5241 *) 5242 DUMPBIN=: 5243 ;; 5244 esac 5245 fi 5246 5247 if test "$DUMPBIN" != ":"; then 5248 NM="$DUMPBIN" 5249 fi 5250fi 5251test -z "$NM" && NM=nm 5252 5253 5254 5255 5256 5257 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5259$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5260if ${lt_cv_nm_interface+:} false; then : 5261 $as_echo_n "(cached) " >&6 5262else 5263 lt_cv_nm_interface="BSD nm" 5264 echo "int some_variable = 0;" > conftest.$ac_ext 5265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5266 (eval "$ac_compile" 2>conftest.err) 5267 cat conftest.err >&5 5268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5270 cat conftest.err >&5 5271 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5272 cat conftest.out >&5 5273 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5274 lt_cv_nm_interface="MS dumpbin" 5275 fi 5276 rm -f conftest* 5277fi 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5279$as_echo "$lt_cv_nm_interface" >&6; } 5280 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5282$as_echo_n "checking whether ln -s works... " >&6; } 5283LN_S=$as_ln_s 5284if test "$LN_S" = "ln -s"; then 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5286$as_echo "yes" >&6; } 5287else 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5289$as_echo "no, using $LN_S" >&6; } 5290fi 5291 5292# find the maximum length of command line arguments 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5294$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5295if ${lt_cv_sys_max_cmd_len+:} false; then : 5296 $as_echo_n "(cached) " >&6 5297else 5298 i=0 5299 teststring="ABCD" 5300 5301 case $build_os in 5302 msdosdjgpp*) 5303 # On DJGPP, this test can blow up pretty badly due to problems in libc 5304 # (any single argument exceeding 2000 bytes causes a buffer overrun 5305 # during glob expansion). Even if it were fixed, the result of this 5306 # check would be larger than it should be. 5307 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5308 ;; 5309 5310 gnu*) 5311 # Under GNU Hurd, this test is not required because there is 5312 # no limit to the length of command line arguments. 5313 # Libtool will interpret -1 as no limit whatsoever 5314 lt_cv_sys_max_cmd_len=-1; 5315 ;; 5316 5317 cygwin* | mingw* | cegcc*) 5318 # On Win9x/ME, this test blows up -- it succeeds, but takes 5319 # about 5 minutes as the teststring grows exponentially. 5320 # Worse, since 9x/ME are not pre-emptively multitasking, 5321 # you end up with a "frozen" computer, even though with patience 5322 # the test eventually succeeds (with a max line length of 256k). 5323 # Instead, let's just punt: use the minimum linelength reported by 5324 # all of the supported platforms: 8192 (on NT/2K/XP). 5325 lt_cv_sys_max_cmd_len=8192; 5326 ;; 5327 5328 mint*) 5329 # On MiNT this can take a long time and run out of memory. 5330 lt_cv_sys_max_cmd_len=8192; 5331 ;; 5332 5333 amigaos*) 5334 # On AmigaOS with pdksh, this test takes hours, literally. 5335 # So we just punt and use a minimum line length of 8192. 5336 lt_cv_sys_max_cmd_len=8192; 5337 ;; 5338 5339 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5340 # This has been around since 386BSD, at least. Likely further. 5341 if test -x /sbin/sysctl; then 5342 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5343 elif test -x /usr/sbin/sysctl; then 5344 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5345 else 5346 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5347 fi 5348 # And add a safety zone 5349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5351 ;; 5352 5353 interix*) 5354 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5355 lt_cv_sys_max_cmd_len=196608 5356 ;; 5357 5358 osf*) 5359 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5360 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5361 # nice to cause kernel panics so lets avoid the loop below. 5362 # First set a reasonable default. 5363 lt_cv_sys_max_cmd_len=16384 5364 # 5365 if test -x /sbin/sysconfig; then 5366 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5367 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5368 esac 5369 fi 5370 ;; 5371 sco3.2v5*) 5372 lt_cv_sys_max_cmd_len=102400 5373 ;; 5374 sysv5* | sco5v6* | sysv4.2uw2*) 5375 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5376 if test -n "$kargmax"; then 5377 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5378 else 5379 lt_cv_sys_max_cmd_len=32768 5380 fi 5381 ;; 5382 *) 5383 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5384 if test -n "$lt_cv_sys_max_cmd_len"; then 5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5387 else 5388 # Make teststring a little bigger before we do anything with it. 5389 # a 1K string should be a reasonable start. 5390 for i in 1 2 3 4 5 6 7 8 ; do 5391 teststring=$teststring$teststring 5392 done 5393 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5394 # If test is not a shell built-in, we'll probably end up computing a 5395 # maximum length that is only half of the actual maximum length, but 5396 # we can't tell. 5397 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5398 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5399 test $i != 17 # 1/2 MB should be enough 5400 do 5401 i=`expr $i + 1` 5402 teststring=$teststring$teststring 5403 done 5404 # Only check the string length outside the loop. 5405 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5406 teststring= 5407 # Add a significant safety factor because C++ compilers can tack on 5408 # massive amounts of additional arguments before passing them to the 5409 # linker. It appears as though 1/2 is a usable value. 5410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5411 fi 5412 ;; 5413 esac 5414 5415fi 5416 5417if test -n $lt_cv_sys_max_cmd_len ; then 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5419$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5420else 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5422$as_echo "none" >&6; } 5423fi 5424max_cmd_len=$lt_cv_sys_max_cmd_len 5425 5426 5427 5428 5429 5430 5431: ${CP="cp -f"} 5432: ${MV="mv -f"} 5433: ${RM="rm -f"} 5434 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5436$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5437# Try some XSI features 5438xsi_shell=no 5439( _lt_dummy="a/b/c" 5440 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5441 = c,a/b,, \ 5442 && eval 'test $(( 1 + 1 )) -eq 2 \ 5443 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5444 && xsi_shell=yes 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5446$as_echo "$xsi_shell" >&6; } 5447 5448 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5450$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5451lt_shell_append=no 5452( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5453 >/dev/null 2>&1 \ 5454 && lt_shell_append=yes 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5456$as_echo "$lt_shell_append" >&6; } 5457 5458 5459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5460 lt_unset=unset 5461else 5462 lt_unset=false 5463fi 5464 5465 5466 5467 5468 5469# test EBCDIC or ASCII 5470case `echo X|tr X '\101'` in 5471 A) # ASCII based system 5472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5473 lt_SP2NL='tr \040 \012' 5474 lt_NL2SP='tr \015\012 \040\040' 5475 ;; 5476 *) # EBCDIC based system 5477 lt_SP2NL='tr \100 \n' 5478 lt_NL2SP='tr \r\n \100\100' 5479 ;; 5480esac 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5491$as_echo_n "checking for $LD option to reload object files... " >&6; } 5492if ${lt_cv_ld_reload_flag+:} false; then : 5493 $as_echo_n "(cached) " >&6 5494else 5495 lt_cv_ld_reload_flag='-r' 5496fi 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5498$as_echo "$lt_cv_ld_reload_flag" >&6; } 5499reload_flag=$lt_cv_ld_reload_flag 5500case $reload_flag in 5501"" | " "*) ;; 5502*) reload_flag=" $reload_flag" ;; 5503esac 5504reload_cmds='$LD$reload_flag -o $output$reload_objs' 5505case $host_os in 5506 darwin*) 5507 if test "$GCC" = yes; then 5508 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5509 else 5510 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5511 fi 5512 ;; 5513esac 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523if test -n "$ac_tool_prefix"; then 5524 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5525set dummy ${ac_tool_prefix}objdump; ac_word=$2 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5527$as_echo_n "checking for $ac_word... " >&6; } 5528if ${ac_cv_prog_OBJDUMP+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530else 5531 if test -n "$OBJDUMP"; then 5532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5533else 5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5535for as_dir in $PATH 5536do 5537 IFS=$as_save_IFS 5538 test -z "$as_dir" && as_dir=. 5539 for ac_exec_ext in '' $ac_executable_extensions; do 5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5543 break 2 5544 fi 5545done 5546 done 5547IFS=$as_save_IFS 5548 5549fi 5550fi 5551OBJDUMP=$ac_cv_prog_OBJDUMP 5552if test -n "$OBJDUMP"; then 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5554$as_echo "$OBJDUMP" >&6; } 5555else 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5557$as_echo "no" >&6; } 5558fi 5559 5560 5561fi 5562if test -z "$ac_cv_prog_OBJDUMP"; then 5563 ac_ct_OBJDUMP=$OBJDUMP 5564 # Extract the first word of "objdump", so it can be a program name with args. 5565set dummy objdump; ac_word=$2 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5567$as_echo_n "checking for $ac_word... " >&6; } 5568if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570else 5571 if test -n "$ac_ct_OBJDUMP"; then 5572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5573else 5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5575for as_dir in $PATH 5576do 5577 IFS=$as_save_IFS 5578 test -z "$as_dir" && as_dir=. 5579 for ac_exec_ext in '' $ac_executable_extensions; do 5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5581 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5583 break 2 5584 fi 5585done 5586 done 5587IFS=$as_save_IFS 5588 5589fi 5590fi 5591ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5592if test -n "$ac_ct_OBJDUMP"; then 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5594$as_echo "$ac_ct_OBJDUMP" >&6; } 5595else 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5597$as_echo "no" >&6; } 5598fi 5599 5600 if test "x$ac_ct_OBJDUMP" = x; then 5601 OBJDUMP="false" 5602 else 5603 case $cross_compiling:$ac_tool_warned in 5604yes:) 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5607ac_tool_warned=yes ;; 5608esac 5609 OBJDUMP=$ac_ct_OBJDUMP 5610 fi 5611else 5612 OBJDUMP="$ac_cv_prog_OBJDUMP" 5613fi 5614 5615test -z "$OBJDUMP" && OBJDUMP=objdump 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5626$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5627if ${lt_cv_deplibs_check_method+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 lt_cv_file_magic_cmd='$MAGIC_CMD' 5631lt_cv_file_magic_test_file= 5632lt_cv_deplibs_check_method='unknown' 5633# Need to set the preceding variable on all platforms that support 5634# interlibrary dependencies. 5635# 'none' -- dependencies not supported. 5636# `unknown' -- same as none, but documents that we really don't know. 5637# 'pass_all' -- all dependencies passed with no checks. 5638# 'test_compile' -- check by making test program. 5639# 'file_magic [[regex]]' -- check by looking for files in library path 5640# which responds to the $file_magic_cmd with a given extended regex. 5641# If you have `file' or equivalent on your system and you're not sure 5642# whether `pass_all' will *always* work, you probably want this one. 5643 5644case $host_os in 5645aix[4-9]*) 5646 lt_cv_deplibs_check_method=pass_all 5647 ;; 5648 5649beos*) 5650 lt_cv_deplibs_check_method=pass_all 5651 ;; 5652 5653bsdi[45]*) 5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5655 lt_cv_file_magic_cmd='/usr/bin/file -L' 5656 lt_cv_file_magic_test_file=/shlib/libc.so 5657 ;; 5658 5659cygwin*) 5660 # func_win32_libid is a shell function defined in ltmain.sh 5661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5662 lt_cv_file_magic_cmd='func_win32_libid' 5663 ;; 5664 5665mingw* | pw32*) 5666 # Base MSYS/MinGW do not provide the 'file' command needed by 5667 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5668 # unless we find 'file', for example because we are cross-compiling. 5669 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5670 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5672 lt_cv_file_magic_cmd='func_win32_libid' 5673 else 5674 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5675 lt_cv_file_magic_cmd='$OBJDUMP -f' 5676 fi 5677 ;; 5678 5679cegcc*) 5680 # use the weaker test based on 'objdump'. See mingw*. 5681 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5682 lt_cv_file_magic_cmd='$OBJDUMP -f' 5683 ;; 5684 5685darwin* | rhapsody*) 5686 lt_cv_deplibs_check_method=pass_all 5687 ;; 5688 5689freebsd* | dragonfly*) 5690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5691 case $host_cpu in 5692 i*86 ) 5693 # Not sure whether the presence of OpenBSD here was a mistake. 5694 # Let's accept both of them until this is cleared up. 5695 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5696 lt_cv_file_magic_cmd=/usr/bin/file 5697 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5698 ;; 5699 esac 5700 else 5701 lt_cv_deplibs_check_method=pass_all 5702 fi 5703 ;; 5704 5705gnu*) 5706 lt_cv_deplibs_check_method=pass_all 5707 ;; 5708 5709haiku*) 5710 lt_cv_deplibs_check_method=pass_all 5711 ;; 5712 5713hpux10.20* | hpux11*) 5714 lt_cv_file_magic_cmd=/usr/bin/file 5715 case $host_cpu in 5716 ia64*) 5717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5719 ;; 5720 hppa*64*) 5721 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]' 5722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5723 ;; 5724 *) 5725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5726 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5727 ;; 5728 esac 5729 ;; 5730 5731interix[3-9]*) 5732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5734 ;; 5735 5736irix5* | irix6* | nonstopux*) 5737 case $LD in 5738 *-32|*"-32 ") libmagic=32-bit;; 5739 *-n32|*"-n32 ") libmagic=N32;; 5740 *-64|*"-64 ") libmagic=64-bit;; 5741 *) libmagic=never-match;; 5742 esac 5743 lt_cv_deplibs_check_method=pass_all 5744 ;; 5745 5746# This must be Linux ELF. 5747linux* | k*bsd*-gnu | kopensolaris*-gnu) 5748 lt_cv_deplibs_check_method=pass_all 5749 ;; 5750 5751netbsd*) 5752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5754 else 5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5756 fi 5757 ;; 5758 5759newos6*) 5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5761 lt_cv_file_magic_cmd=/usr/bin/file 5762 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5763 ;; 5764 5765*nto* | *qnx*) 5766 lt_cv_deplibs_check_method=pass_all 5767 ;; 5768 5769openbsd*) 5770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5772 else 5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5774 fi 5775 ;; 5776 5777osf3* | osf4* | osf5*) 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780 5781rdos*) 5782 lt_cv_deplibs_check_method=pass_all 5783 ;; 5784 5785solaris*) 5786 lt_cv_deplibs_check_method=pass_all 5787 ;; 5788 5789sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5790 lt_cv_deplibs_check_method=pass_all 5791 ;; 5792 5793sysv4 | sysv4.3*) 5794 case $host_vendor in 5795 motorola) 5796 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]' 5797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5798 ;; 5799 ncr) 5800 lt_cv_deplibs_check_method=pass_all 5801 ;; 5802 sequent) 5803 lt_cv_file_magic_cmd='/bin/file' 5804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5805 ;; 5806 sni) 5807 lt_cv_file_magic_cmd='/bin/file' 5808 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5809 lt_cv_file_magic_test_file=/lib/libc.so 5810 ;; 5811 siemens) 5812 lt_cv_deplibs_check_method=pass_all 5813 ;; 5814 pc) 5815 lt_cv_deplibs_check_method=pass_all 5816 ;; 5817 esac 5818 ;; 5819 5820tpf*) 5821 lt_cv_deplibs_check_method=pass_all 5822 ;; 5823esac 5824 5825fi 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5827$as_echo "$lt_cv_deplibs_check_method" >&6; } 5828file_magic_cmd=$lt_cv_file_magic_cmd 5829deplibs_check_method=$lt_cv_deplibs_check_method 5830test -z "$deplibs_check_method" && deplibs_check_method=unknown 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843if test -n "$ac_tool_prefix"; then 5844 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5845set dummy ${ac_tool_prefix}ar; ac_word=$2 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5847$as_echo_n "checking for $ac_word... " >&6; } 5848if ${ac_cv_prog_AR+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850else 5851 if test -n "$AR"; then 5852 ac_cv_prog_AR="$AR" # Let the user override the test. 5853else 5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5855for as_dir in $PATH 5856do 5857 IFS=$as_save_IFS 5858 test -z "$as_dir" && as_dir=. 5859 for ac_exec_ext in '' $ac_executable_extensions; do 5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5861 ac_cv_prog_AR="${ac_tool_prefix}ar" 5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5863 break 2 5864 fi 5865done 5866 done 5867IFS=$as_save_IFS 5868 5869fi 5870fi 5871AR=$ac_cv_prog_AR 5872if test -n "$AR"; then 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5874$as_echo "$AR" >&6; } 5875else 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5877$as_echo "no" >&6; } 5878fi 5879 5880 5881fi 5882if test -z "$ac_cv_prog_AR"; then 5883 ac_ct_AR=$AR 5884 # Extract the first word of "ar", so it can be a program name with args. 5885set dummy ar; ac_word=$2 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5887$as_echo_n "checking for $ac_word... " >&6; } 5888if ${ac_cv_prog_ac_ct_AR+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 if test -n "$ac_ct_AR"; then 5892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5893else 5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5895for as_dir in $PATH 5896do 5897 IFS=$as_save_IFS 5898 test -z "$as_dir" && as_dir=. 5899 for ac_exec_ext in '' $ac_executable_extensions; do 5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5901 ac_cv_prog_ac_ct_AR="ar" 5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5903 break 2 5904 fi 5905done 5906 done 5907IFS=$as_save_IFS 5908 5909fi 5910fi 5911ac_ct_AR=$ac_cv_prog_ac_ct_AR 5912if test -n "$ac_ct_AR"; then 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5914$as_echo "$ac_ct_AR" >&6; } 5915else 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5917$as_echo "no" >&6; } 5918fi 5919 5920 if test "x$ac_ct_AR" = x; then 5921 AR="false" 5922 else 5923 case $cross_compiling:$ac_tool_warned in 5924yes:) 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5927ac_tool_warned=yes ;; 5928esac 5929 AR=$ac_ct_AR 5930 fi 5931else 5932 AR="$ac_cv_prog_AR" 5933fi 5934 5935test -z "$AR" && AR=ar 5936test -z "$AR_FLAGS" && AR_FLAGS=cru 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948if test -n "$ac_tool_prefix"; then 5949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5950set dummy ${ac_tool_prefix}strip; ac_word=$2 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5952$as_echo_n "checking for $ac_word... " >&6; } 5953if ${ac_cv_prog_STRIP+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955else 5956 if test -n "$STRIP"; then 5957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5958else 5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5960for as_dir in $PATH 5961do 5962 IFS=$as_save_IFS 5963 test -z "$as_dir" && as_dir=. 5964 for ac_exec_ext in '' $ac_executable_extensions; do 5965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5966 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5968 break 2 5969 fi 5970done 5971 done 5972IFS=$as_save_IFS 5973 5974fi 5975fi 5976STRIP=$ac_cv_prog_STRIP 5977if test -n "$STRIP"; then 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5979$as_echo "$STRIP" >&6; } 5980else 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5982$as_echo "no" >&6; } 5983fi 5984 5985 5986fi 5987if test -z "$ac_cv_prog_STRIP"; then 5988 ac_ct_STRIP=$STRIP 5989 # Extract the first word of "strip", so it can be a program name with args. 5990set dummy strip; ac_word=$2 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5992$as_echo_n "checking for $ac_word... " >&6; } 5993if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5994 $as_echo_n "(cached) " >&6 5995else 5996 if test -n "$ac_ct_STRIP"; then 5997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5998else 5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6000for as_dir in $PATH 6001do 6002 IFS=$as_save_IFS 6003 test -z "$as_dir" && as_dir=. 6004 for ac_exec_ext in '' $ac_executable_extensions; do 6005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6006 ac_cv_prog_ac_ct_STRIP="strip" 6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6008 break 2 6009 fi 6010done 6011 done 6012IFS=$as_save_IFS 6013 6014fi 6015fi 6016ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6017if test -n "$ac_ct_STRIP"; then 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6019$as_echo "$ac_ct_STRIP" >&6; } 6020else 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6022$as_echo "no" >&6; } 6023fi 6024 6025 if test "x$ac_ct_STRIP" = x; then 6026 STRIP=":" 6027 else 6028 case $cross_compiling:$ac_tool_warned in 6029yes:) 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6032ac_tool_warned=yes ;; 6033esac 6034 STRIP=$ac_ct_STRIP 6035 fi 6036else 6037 STRIP="$ac_cv_prog_STRIP" 6038fi 6039 6040test -z "$STRIP" && STRIP=: 6041 6042 6043 6044 6045 6046 6047if test -n "$ac_tool_prefix"; then 6048 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6049set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6051$as_echo_n "checking for $ac_word... " >&6; } 6052if ${ac_cv_prog_RANLIB+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 if test -n "$RANLIB"; then 6056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6057else 6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6059for as_dir in $PATH 6060do 6061 IFS=$as_save_IFS 6062 test -z "$as_dir" && as_dir=. 6063 for ac_exec_ext in '' $ac_executable_extensions; do 6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6065 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6067 break 2 6068 fi 6069done 6070 done 6071IFS=$as_save_IFS 6072 6073fi 6074fi 6075RANLIB=$ac_cv_prog_RANLIB 6076if test -n "$RANLIB"; then 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6078$as_echo "$RANLIB" >&6; } 6079else 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6081$as_echo "no" >&6; } 6082fi 6083 6084 6085fi 6086if test -z "$ac_cv_prog_RANLIB"; then 6087 ac_ct_RANLIB=$RANLIB 6088 # Extract the first word of "ranlib", so it can be a program name with args. 6089set dummy ranlib; ac_word=$2 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6091$as_echo_n "checking for $ac_word... " >&6; } 6092if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6093 $as_echo_n "(cached) " >&6 6094else 6095 if test -n "$ac_ct_RANLIB"; then 6096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6097else 6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6099for as_dir in $PATH 6100do 6101 IFS=$as_save_IFS 6102 test -z "$as_dir" && as_dir=. 6103 for ac_exec_ext in '' $ac_executable_extensions; do 6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6105 ac_cv_prog_ac_ct_RANLIB="ranlib" 6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6107 break 2 6108 fi 6109done 6110 done 6111IFS=$as_save_IFS 6112 6113fi 6114fi 6115ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6116if test -n "$ac_ct_RANLIB"; then 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6118$as_echo "$ac_ct_RANLIB" >&6; } 6119else 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6121$as_echo "no" >&6; } 6122fi 6123 6124 if test "x$ac_ct_RANLIB" = x; then 6125 RANLIB=":" 6126 else 6127 case $cross_compiling:$ac_tool_warned in 6128yes:) 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6131ac_tool_warned=yes ;; 6132esac 6133 RANLIB=$ac_ct_RANLIB 6134 fi 6135else 6136 RANLIB="$ac_cv_prog_RANLIB" 6137fi 6138 6139test -z "$RANLIB" && RANLIB=: 6140 6141 6142 6143 6144 6145 6146# Determine commands to create old-style static archives. 6147old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6148old_postinstall_cmds='chmod 644 $oldlib' 6149old_postuninstall_cmds= 6150 6151if test -n "$RANLIB"; then 6152 case $host_os in 6153 openbsd*) 6154 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6155 ;; 6156 *) 6157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6158 ;; 6159 esac 6160 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6161fi 6162 6163case $host_os in 6164 darwin*) 6165 lock_old_archive_extraction=yes ;; 6166 *) 6167 lock_old_archive_extraction=no ;; 6168esac 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208# If no C compiler was specified, use CC. 6209LTCC=${LTCC-"$CC"} 6210 6211# If no C compiler flags were specified, use CFLAGS. 6212LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6213 6214# Allow CC to be a program name with arguments. 6215compiler=$CC 6216 6217 6218# Check for command to grab the raw symbol name followed by C symbol from nm. 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6220$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6221if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 6225# These are sane defaults that work on at least a few old systems. 6226# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6227 6228# Character class describing NM global symbol codes. 6229symcode='[BCDEGRST]' 6230 6231# Regexp to match symbols that can be accessed directly from C. 6232sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6233 6234# Define system-specific variables. 6235case $host_os in 6236aix*) 6237 symcode='[BCDT]' 6238 ;; 6239cygwin* | mingw* | pw32* | cegcc*) 6240 symcode='[ABCDGISTW]' 6241 ;; 6242hpux*) 6243 if test "$host_cpu" = ia64; then 6244 symcode='[ABCDEGRST]' 6245 fi 6246 ;; 6247irix* | nonstopux*) 6248 symcode='[BCDEGRST]' 6249 ;; 6250osf*) 6251 symcode='[BCDEGQRST]' 6252 ;; 6253solaris*) 6254 symcode='[BDRT]' 6255 ;; 6256sco3.2v5*) 6257 symcode='[DT]' 6258 ;; 6259sysv4.2uw2*) 6260 symcode='[DT]' 6261 ;; 6262sysv5* | sco5v6* | unixware* | OpenUNIX*) 6263 symcode='[ABDT]' 6264 ;; 6265sysv4) 6266 symcode='[DFNSTU]' 6267 ;; 6268esac 6269 6270# If we're using GNU nm, then use its standard symbol codes. 6271case `$NM -V 2>&1` in 6272*GNU* | *'with BFD'*) 6273 symcode='[ABCDGIRSTW]' ;; 6274esac 6275 6276# Transform an extracted symbol line into a proper C declaration. 6277# Some systems (esp. on ia64) link data and code symbols differently, 6278# so use this general approach. 6279lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6280 6281# Transform an extracted symbol line into symbol name and symbol address 6282lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6283lt_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'" 6284 6285# Handle CRLF in mingw tool chain 6286opt_cr= 6287case $build_os in 6288mingw*) 6289 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6290 ;; 6291esac 6292 6293# Try without a prefix underscore, then with it. 6294for ac_symprfx in "" "_"; do 6295 6296 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6297 symxfrm="\\1 $ac_symprfx\\2 \\2" 6298 6299 # Write the raw and C identifiers. 6300 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6301 # Fake it for dumpbin and say T for any non-static function 6302 # and D for any global variable. 6303 # Also find C++ and __fastcall symbols from MSVC++, 6304 # which start with @ or ?. 6305 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6306" {last_section=section; section=\$ 3};"\ 6307" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6308" \$ 0!~/External *\|/{next};"\ 6309" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6310" {if(hide[section]) next};"\ 6311" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6312" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6313" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6314" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6315" ' prfx=^$ac_symprfx" 6316 else 6317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6318 fi 6319 6320 # Check to see that the pipe works correctly. 6321 pipe_works=no 6322 6323 rm -f conftest* 6324 cat > conftest.$ac_ext <<_LT_EOF 6325#ifdef __cplusplus 6326extern "C" { 6327#endif 6328char nm_test_var; 6329void nm_test_func(void); 6330void nm_test_func(void){} 6331#ifdef __cplusplus 6332} 6333#endif 6334int main(){nm_test_var='a';nm_test_func();return(0);} 6335_LT_EOF 6336 6337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6338 (eval $ac_compile) 2>&5 6339 ac_status=$? 6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6341 test $ac_status = 0; }; then 6342 # Now try to grab the symbols. 6343 nlist=conftest.nm 6344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6345 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6346 ac_status=$? 6347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6348 test $ac_status = 0; } && test -s "$nlist"; then 6349 # Try sorting and uniquifying the output. 6350 if sort "$nlist" | uniq > "$nlist"T; then 6351 mv -f "$nlist"T "$nlist" 6352 else 6353 rm -f "$nlist"T 6354 fi 6355 6356 # Make sure that we snagged all the symbols we need. 6357 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6358 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6359 cat <<_LT_EOF > conftest.$ac_ext 6360#ifdef __cplusplus 6361extern "C" { 6362#endif 6363 6364_LT_EOF 6365 # Now generate the symbol file. 6366 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6367 6368 cat <<_LT_EOF >> conftest.$ac_ext 6369 6370/* The mapping between symbol names and symbols. */ 6371const struct { 6372 const char *name; 6373 void *address; 6374} 6375lt__PROGRAM__LTX_preloaded_symbols[] = 6376{ 6377 { "@PROGRAM@", (void *) 0 }, 6378_LT_EOF 6379 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6380 cat <<\_LT_EOF >> conftest.$ac_ext 6381 {0, (void *) 0} 6382}; 6383 6384/* This works around a problem in FreeBSD linker */ 6385#ifdef FREEBSD_WORKAROUND 6386static const void *lt_preloaded_setup() { 6387 return lt__PROGRAM__LTX_preloaded_symbols; 6388} 6389#endif 6390 6391#ifdef __cplusplus 6392} 6393#endif 6394_LT_EOF 6395 # Now try linking the two files. 6396 mv conftest.$ac_objext conftstm.$ac_objext 6397 lt_save_LIBS="$LIBS" 6398 lt_save_CFLAGS="$CFLAGS" 6399 LIBS="conftstm.$ac_objext" 6400 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6402 (eval $ac_link) 2>&5 6403 ac_status=$? 6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6405 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6406 pipe_works=yes 6407 fi 6408 LIBS="$lt_save_LIBS" 6409 CFLAGS="$lt_save_CFLAGS" 6410 else 6411 echo "cannot find nm_test_func in $nlist" >&5 6412 fi 6413 else 6414 echo "cannot find nm_test_var in $nlist" >&5 6415 fi 6416 else 6417 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6418 fi 6419 else 6420 echo "$progname: failed program was:" >&5 6421 cat conftest.$ac_ext >&5 6422 fi 6423 rm -rf conftest* conftst* 6424 6425 # Do not use the global_symbol_pipe unless it works. 6426 if test "$pipe_works" = yes; then 6427 break 6428 else 6429 lt_cv_sys_global_symbol_pipe= 6430 fi 6431done 6432 6433fi 6434 6435if test -z "$lt_cv_sys_global_symbol_pipe"; then 6436 lt_cv_sys_global_symbol_to_cdecl= 6437fi 6438if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6440$as_echo "failed" >&6; } 6441else 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6443$as_echo "ok" >&6; } 6444fi 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467# Check whether --enable-libtool-lock was given. 6468if test "${enable_libtool_lock+set}" = set; then : 6469 enableval=$enable_libtool_lock; 6470fi 6471 6472test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6473 6474# Some flags need to be propagated to the compiler or linker for good 6475# libtool support. 6476case $host in 6477ia64-*-hpux*) 6478 # Find out which ABI we are using. 6479 echo 'int i;' > conftest.$ac_ext 6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6481 (eval $ac_compile) 2>&5 6482 ac_status=$? 6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6484 test $ac_status = 0; }; then 6485 case `/usr/bin/file conftest.$ac_objext` in 6486 *ELF-32*) 6487 HPUX_IA64_MODE="32" 6488 ;; 6489 *ELF-64*) 6490 HPUX_IA64_MODE="64" 6491 ;; 6492 esac 6493 fi 6494 rm -rf conftest* 6495 ;; 6496*-*-irix6*) 6497 # Find out which ABI we are using. 6498 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6500 (eval $ac_compile) 2>&5 6501 ac_status=$? 6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6503 test $ac_status = 0; }; then 6504 if test "$lt_cv_prog_gnu_ld" = yes; then 6505 case `/usr/bin/file conftest.$ac_objext` in 6506 *32-bit*) 6507 LD="${LD-ld} -melf32bsmip" 6508 ;; 6509 *N32*) 6510 LD="${LD-ld} -melf32bmipn32" 6511 ;; 6512 *64-bit*) 6513 LD="${LD-ld} -melf64bmip" 6514 ;; 6515 esac 6516 else 6517 case `/usr/bin/file conftest.$ac_objext` in 6518 *32-bit*) 6519 LD="${LD-ld} -32" 6520 ;; 6521 *N32*) 6522 LD="${LD-ld} -n32" 6523 ;; 6524 *64-bit*) 6525 LD="${LD-ld} -64" 6526 ;; 6527 esac 6528 fi 6529 fi 6530 rm -rf conftest* 6531 ;; 6532 6533x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6534s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6535 # Find out which ABI we are using. 6536 echo 'int i;' > conftest.$ac_ext 6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6538 (eval $ac_compile) 2>&5 6539 ac_status=$? 6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6541 test $ac_status = 0; }; then 6542 case `/usr/bin/file conftest.o` in 6543 *32-bit*) 6544 case $host in 6545 x86_64-*kfreebsd*-gnu) 6546 LD="${LD-ld} -m elf_i386_fbsd" 6547 ;; 6548 x86_64-*linux*) 6549 case `/usr/bin/file conftest.o` in 6550 *x86-64*) 6551 LD="${LD-ld} -m elf32_x86_64" 6552 ;; 6553 *) 6554 LD="${LD-ld} -m elf_i386" 6555 ;; 6556 esac 6557 ;; 6558 powerpc64le-*linux*) 6559 LD="${LD-ld} -m elf32lppclinux" 6560 ;; 6561 powerpc64-*linux*) 6562 LD="${LD-ld} -m elf32ppclinux" 6563 ;; 6564 s390x-*linux*) 6565 LD="${LD-ld} -m elf_s390" 6566 ;; 6567 sparc64-*linux*) 6568 LD="${LD-ld} -m elf32_sparc" 6569 ;; 6570 esac 6571 ;; 6572 *64-bit*) 6573 case $host in 6574 x86_64-*kfreebsd*-gnu) 6575 LD="${LD-ld} -m elf_x86_64_fbsd" 6576 ;; 6577 x86_64-*linux*) 6578 LD="${LD-ld} -m elf_x86_64" 6579 ;; 6580 powerpcle-*linux*) 6581 LD="${LD-ld} -m elf64lppc" 6582 ;; 6583 powerpc-*linux*) 6584 LD="${LD-ld} -m elf64ppc" 6585 ;; 6586 s390*-*linux*|s390*-*tpf*) 6587 LD="${LD-ld} -m elf64_s390" 6588 ;; 6589 sparc*-*linux*) 6590 LD="${LD-ld} -m elf64_sparc" 6591 ;; 6592 esac 6593 ;; 6594 esac 6595 fi 6596 rm -rf conftest* 6597 ;; 6598 6599*-*-sco3.2v5*) 6600 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6601 SAVE_CFLAGS="$CFLAGS" 6602 CFLAGS="$CFLAGS -belf" 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6604$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6605if ${lt_cv_cc_needs_belf+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 ac_ext=c 6609ac_cpp='$CPP $CPPFLAGS' 6610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6612ac_compiler_gnu=$ac_cv_c_compiler_gnu 6613 6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6615/* end confdefs.h. */ 6616 6617int 6618main () 6619{ 6620 6621 ; 6622 return 0; 6623} 6624_ACEOF 6625if ac_fn_c_try_link "$LINENO"; then : 6626 lt_cv_cc_needs_belf=yes 6627else 6628 lt_cv_cc_needs_belf=no 6629fi 6630rm -f core conftest.err conftest.$ac_objext \ 6631 conftest$ac_exeext conftest.$ac_ext 6632 ac_ext=c 6633ac_cpp='$CPP $CPPFLAGS' 6634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6636ac_compiler_gnu=$ac_cv_c_compiler_gnu 6637 6638fi 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6640$as_echo "$lt_cv_cc_needs_belf" >&6; } 6641 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6642 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6643 CFLAGS="$SAVE_CFLAGS" 6644 fi 6645 ;; 6646sparc*-*solaris*) 6647 # Find out which ABI we are using. 6648 echo 'int i;' > conftest.$ac_ext 6649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6650 (eval $ac_compile) 2>&5 6651 ac_status=$? 6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6653 test $ac_status = 0; }; then 6654 case `/usr/bin/file conftest.o` in 6655 *64-bit*) 6656 case $lt_cv_prog_gnu_ld in 6657 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6658 *) 6659 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6660 LD="${LD-ld} -64" 6661 fi 6662 ;; 6663 esac 6664 ;; 6665 esac 6666 fi 6667 rm -rf conftest* 6668 ;; 6669esac 6670 6671need_locks="$enable_libtool_lock" 6672 6673 6674 case $host_os in 6675 rhapsody* | darwin*) 6676 if test -n "$ac_tool_prefix"; then 6677 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6678set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6680$as_echo_n "checking for $ac_word... " >&6; } 6681if ${ac_cv_prog_DSYMUTIL+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 if test -n "$DSYMUTIL"; then 6685 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6686else 6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6688for as_dir in $PATH 6689do 6690 IFS=$as_save_IFS 6691 test -z "$as_dir" && as_dir=. 6692 for ac_exec_ext in '' $ac_executable_extensions; do 6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6694 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6696 break 2 6697 fi 6698done 6699 done 6700IFS=$as_save_IFS 6701 6702fi 6703fi 6704DSYMUTIL=$ac_cv_prog_DSYMUTIL 6705if test -n "$DSYMUTIL"; then 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6707$as_echo "$DSYMUTIL" >&6; } 6708else 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6710$as_echo "no" >&6; } 6711fi 6712 6713 6714fi 6715if test -z "$ac_cv_prog_DSYMUTIL"; then 6716 ac_ct_DSYMUTIL=$DSYMUTIL 6717 # Extract the first word of "dsymutil", so it can be a program name with args. 6718set dummy dsymutil; ac_word=$2 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6720$as_echo_n "checking for $ac_word... " >&6; } 6721if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 if test -n "$ac_ct_DSYMUTIL"; then 6725 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6726else 6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6728for as_dir in $PATH 6729do 6730 IFS=$as_save_IFS 6731 test -z "$as_dir" && as_dir=. 6732 for ac_exec_ext in '' $ac_executable_extensions; do 6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6734 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6736 break 2 6737 fi 6738done 6739 done 6740IFS=$as_save_IFS 6741 6742fi 6743fi 6744ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6745if test -n "$ac_ct_DSYMUTIL"; then 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6747$as_echo "$ac_ct_DSYMUTIL" >&6; } 6748else 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6750$as_echo "no" >&6; } 6751fi 6752 6753 if test "x$ac_ct_DSYMUTIL" = x; then 6754 DSYMUTIL=":" 6755 else 6756 case $cross_compiling:$ac_tool_warned in 6757yes:) 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6760ac_tool_warned=yes ;; 6761esac 6762 DSYMUTIL=$ac_ct_DSYMUTIL 6763 fi 6764else 6765 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6766fi 6767 6768 if test -n "$ac_tool_prefix"; then 6769 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6770set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6772$as_echo_n "checking for $ac_word... " >&6; } 6773if ${ac_cv_prog_NMEDIT+:} false; then : 6774 $as_echo_n "(cached) " >&6 6775else 6776 if test -n "$NMEDIT"; then 6777 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6778else 6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6780for as_dir in $PATH 6781do 6782 IFS=$as_save_IFS 6783 test -z "$as_dir" && as_dir=. 6784 for ac_exec_ext in '' $ac_executable_extensions; do 6785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6786 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6788 break 2 6789 fi 6790done 6791 done 6792IFS=$as_save_IFS 6793 6794fi 6795fi 6796NMEDIT=$ac_cv_prog_NMEDIT 6797if test -n "$NMEDIT"; then 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6799$as_echo "$NMEDIT" >&6; } 6800else 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6802$as_echo "no" >&6; } 6803fi 6804 6805 6806fi 6807if test -z "$ac_cv_prog_NMEDIT"; then 6808 ac_ct_NMEDIT=$NMEDIT 6809 # Extract the first word of "nmedit", so it can be a program name with args. 6810set dummy nmedit; ac_word=$2 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6812$as_echo_n "checking for $ac_word... " >&6; } 6813if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6814 $as_echo_n "(cached) " >&6 6815else 6816 if test -n "$ac_ct_NMEDIT"; then 6817 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6818else 6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6820for as_dir in $PATH 6821do 6822 IFS=$as_save_IFS 6823 test -z "$as_dir" && as_dir=. 6824 for ac_exec_ext in '' $ac_executable_extensions; do 6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6826 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6828 break 2 6829 fi 6830done 6831 done 6832IFS=$as_save_IFS 6833 6834fi 6835fi 6836ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6837if test -n "$ac_ct_NMEDIT"; then 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6839$as_echo "$ac_ct_NMEDIT" >&6; } 6840else 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6842$as_echo "no" >&6; } 6843fi 6844 6845 if test "x$ac_ct_NMEDIT" = x; then 6846 NMEDIT=":" 6847 else 6848 case $cross_compiling:$ac_tool_warned in 6849yes:) 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6852ac_tool_warned=yes ;; 6853esac 6854 NMEDIT=$ac_ct_NMEDIT 6855 fi 6856else 6857 NMEDIT="$ac_cv_prog_NMEDIT" 6858fi 6859 6860 if test -n "$ac_tool_prefix"; then 6861 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6862set dummy ${ac_tool_prefix}lipo; ac_word=$2 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6864$as_echo_n "checking for $ac_word... " >&6; } 6865if ${ac_cv_prog_LIPO+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 if test -n "$LIPO"; then 6869 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6870else 6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6872for as_dir in $PATH 6873do 6874 IFS=$as_save_IFS 6875 test -z "$as_dir" && as_dir=. 6876 for ac_exec_ext in '' $ac_executable_extensions; do 6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6878 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6880 break 2 6881 fi 6882done 6883 done 6884IFS=$as_save_IFS 6885 6886fi 6887fi 6888LIPO=$ac_cv_prog_LIPO 6889if test -n "$LIPO"; then 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6891$as_echo "$LIPO" >&6; } 6892else 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894$as_echo "no" >&6; } 6895fi 6896 6897 6898fi 6899if test -z "$ac_cv_prog_LIPO"; then 6900 ac_ct_LIPO=$LIPO 6901 # Extract the first word of "lipo", so it can be a program name with args. 6902set dummy lipo; ac_word=$2 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6904$as_echo_n "checking for $ac_word... " >&6; } 6905if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6906 $as_echo_n "(cached) " >&6 6907else 6908 if test -n "$ac_ct_LIPO"; then 6909 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6910else 6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6912for as_dir in $PATH 6913do 6914 IFS=$as_save_IFS 6915 test -z "$as_dir" && as_dir=. 6916 for ac_exec_ext in '' $ac_executable_extensions; do 6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6918 ac_cv_prog_ac_ct_LIPO="lipo" 6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6920 break 2 6921 fi 6922done 6923 done 6924IFS=$as_save_IFS 6925 6926fi 6927fi 6928ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6929if test -n "$ac_ct_LIPO"; then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6931$as_echo "$ac_ct_LIPO" >&6; } 6932else 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6934$as_echo "no" >&6; } 6935fi 6936 6937 if test "x$ac_ct_LIPO" = x; then 6938 LIPO=":" 6939 else 6940 case $cross_compiling:$ac_tool_warned in 6941yes:) 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6944ac_tool_warned=yes ;; 6945esac 6946 LIPO=$ac_ct_LIPO 6947 fi 6948else 6949 LIPO="$ac_cv_prog_LIPO" 6950fi 6951 6952 if test -n "$ac_tool_prefix"; then 6953 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6954set dummy ${ac_tool_prefix}otool; ac_word=$2 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6956$as_echo_n "checking for $ac_word... " >&6; } 6957if ${ac_cv_prog_OTOOL+:} false; then : 6958 $as_echo_n "(cached) " >&6 6959else 6960 if test -n "$OTOOL"; then 6961 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6962else 6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6964for as_dir in $PATH 6965do 6966 IFS=$as_save_IFS 6967 test -z "$as_dir" && as_dir=. 6968 for ac_exec_ext in '' $ac_executable_extensions; do 6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6970 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6972 break 2 6973 fi 6974done 6975 done 6976IFS=$as_save_IFS 6977 6978fi 6979fi 6980OTOOL=$ac_cv_prog_OTOOL 6981if test -n "$OTOOL"; then 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6983$as_echo "$OTOOL" >&6; } 6984else 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6986$as_echo "no" >&6; } 6987fi 6988 6989 6990fi 6991if test -z "$ac_cv_prog_OTOOL"; then 6992 ac_ct_OTOOL=$OTOOL 6993 # Extract the first word of "otool", so it can be a program name with args. 6994set dummy otool; ac_word=$2 6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6996$as_echo_n "checking for $ac_word... " >&6; } 6997if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6998 $as_echo_n "(cached) " >&6 6999else 7000 if test -n "$ac_ct_OTOOL"; then 7001 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7002else 7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7004for as_dir in $PATH 7005do 7006 IFS=$as_save_IFS 7007 test -z "$as_dir" && as_dir=. 7008 for ac_exec_ext in '' $ac_executable_extensions; do 7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7010 ac_cv_prog_ac_ct_OTOOL="otool" 7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7012 break 2 7013 fi 7014done 7015 done 7016IFS=$as_save_IFS 7017 7018fi 7019fi 7020ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7021if test -n "$ac_ct_OTOOL"; then 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7023$as_echo "$ac_ct_OTOOL" >&6; } 7024else 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7026$as_echo "no" >&6; } 7027fi 7028 7029 if test "x$ac_ct_OTOOL" = x; then 7030 OTOOL=":" 7031 else 7032 case $cross_compiling:$ac_tool_warned in 7033yes:) 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7036ac_tool_warned=yes ;; 7037esac 7038 OTOOL=$ac_ct_OTOOL 7039 fi 7040else 7041 OTOOL="$ac_cv_prog_OTOOL" 7042fi 7043 7044 if test -n "$ac_tool_prefix"; then 7045 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7046set dummy ${ac_tool_prefix}otool64; ac_word=$2 7047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7048$as_echo_n "checking for $ac_word... " >&6; } 7049if ${ac_cv_prog_OTOOL64+:} false; then : 7050 $as_echo_n "(cached) " >&6 7051else 7052 if test -n "$OTOOL64"; then 7053 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7054else 7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7056for as_dir in $PATH 7057do 7058 IFS=$as_save_IFS 7059 test -z "$as_dir" && as_dir=. 7060 for ac_exec_ext in '' $ac_executable_extensions; do 7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7062 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7064 break 2 7065 fi 7066done 7067 done 7068IFS=$as_save_IFS 7069 7070fi 7071fi 7072OTOOL64=$ac_cv_prog_OTOOL64 7073if test -n "$OTOOL64"; then 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7075$as_echo "$OTOOL64" >&6; } 7076else 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7078$as_echo "no" >&6; } 7079fi 7080 7081 7082fi 7083if test -z "$ac_cv_prog_OTOOL64"; then 7084 ac_ct_OTOOL64=$OTOOL64 7085 # Extract the first word of "otool64", so it can be a program name with args. 7086set dummy otool64; ac_word=$2 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7088$as_echo_n "checking for $ac_word... " >&6; } 7089if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7090 $as_echo_n "(cached) " >&6 7091else 7092 if test -n "$ac_ct_OTOOL64"; then 7093 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7094else 7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7096for as_dir in $PATH 7097do 7098 IFS=$as_save_IFS 7099 test -z "$as_dir" && as_dir=. 7100 for ac_exec_ext in '' $ac_executable_extensions; do 7101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7102 ac_cv_prog_ac_ct_OTOOL64="otool64" 7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7104 break 2 7105 fi 7106done 7107 done 7108IFS=$as_save_IFS 7109 7110fi 7111fi 7112ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7113if test -n "$ac_ct_OTOOL64"; then 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7115$as_echo "$ac_ct_OTOOL64" >&6; } 7116else 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7118$as_echo "no" >&6; } 7119fi 7120 7121 if test "x$ac_ct_OTOOL64" = x; then 7122 OTOOL64=":" 7123 else 7124 case $cross_compiling:$ac_tool_warned in 7125yes:) 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7128ac_tool_warned=yes ;; 7129esac 7130 OTOOL64=$ac_ct_OTOOL64 7131 fi 7132else 7133 OTOOL64="$ac_cv_prog_OTOOL64" 7134fi 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7163$as_echo_n "checking for -single_module linker flag... " >&6; } 7164if ${lt_cv_apple_cc_single_mod+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 lt_cv_apple_cc_single_mod=no 7168 if test -z "${LT_MULTI_MODULE}"; then 7169 # By default we will add the -single_module flag. You can override 7170 # by either setting the environment variable LT_MULTI_MODULE 7171 # non-empty at configure time, or by adding -multi_module to the 7172 # link flags. 7173 rm -rf libconftest.dylib* 7174 echo "int foo(void){return 1;}" > conftest.c 7175 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7176-dynamiclib -Wl,-single_module conftest.c" >&5 7177 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7178 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7179 _lt_result=$? 7180 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7181 lt_cv_apple_cc_single_mod=yes 7182 else 7183 cat conftest.err >&5 7184 fi 7185 rm -rf libconftest.dylib* 7186 rm -f conftest.* 7187 fi 7188fi 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7190$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7192$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7193if ${lt_cv_ld_exported_symbols_list+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 lt_cv_ld_exported_symbols_list=no 7197 save_LDFLAGS=$LDFLAGS 7198 echo "_main" > conftest.sym 7199 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7201/* end confdefs.h. */ 7202 7203int 7204main () 7205{ 7206 7207 ; 7208 return 0; 7209} 7210_ACEOF 7211if ac_fn_c_try_link "$LINENO"; then : 7212 lt_cv_ld_exported_symbols_list=yes 7213else 7214 lt_cv_ld_exported_symbols_list=no 7215fi 7216rm -f core conftest.err conftest.$ac_objext \ 7217 conftest$ac_exeext conftest.$ac_ext 7218 LDFLAGS="$save_LDFLAGS" 7219 7220fi 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7222$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7224$as_echo_n "checking for -force_load linker flag... " >&6; } 7225if ${lt_cv_ld_force_load+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227else 7228 lt_cv_ld_force_load=no 7229 cat > conftest.c << _LT_EOF 7230int forced_loaded() { return 2;} 7231_LT_EOF 7232 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7233 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7234 echo "$AR cru libconftest.a conftest.o" >&5 7235 $AR cru libconftest.a conftest.o 2>&5 7236 cat > conftest.c << _LT_EOF 7237int main() { return 0;} 7238_LT_EOF 7239 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7240 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7241 _lt_result=$? 7242 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7243 lt_cv_ld_force_load=yes 7244 else 7245 cat conftest.err >&5 7246 fi 7247 rm -f conftest.err libconftest.a conftest conftest.c 7248 rm -rf conftest.dSYM 7249 7250fi 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7252$as_echo "$lt_cv_ld_force_load" >&6; } 7253 case $host_os in 7254 rhapsody* | darwin1.[012]) 7255 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7256 darwin1.*) 7257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7258 darwin*) # darwin 5.x on 7259 # if running on 10.5 or later, the deployment target defaults 7260 # to the OS version, if on x86, and 10.4, the deployment 7261 # target defaults to 10.4. Don't you love it? 7262 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7263 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7265 10.[012][,.]*) 7266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7267 10.*) 7268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7269 esac 7270 ;; 7271 esac 7272 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7273 _lt_dar_single_mod='$single_module' 7274 fi 7275 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7276 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7277 else 7278 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7279 fi 7280 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7281 _lt_dsymutil='~$DSYMUTIL $lib || :' 7282 else 7283 _lt_dsymutil= 7284 fi 7285 ;; 7286 esac 7287 7288for ac_header in dlfcn.h 7289do : 7290 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7291" 7292if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7293 cat >>confdefs.h <<_ACEOF 7294#define HAVE_DLFCN_H 1 7295_ACEOF 7296 7297fi 7298 7299done 7300 7301 7302 7303 7304 7305# Set options 7306# Check whether --enable-static was given. 7307if test "${enable_static+set}" = set; then : 7308 enableval=$enable_static; p=${PACKAGE-default} 7309 case $enableval in 7310 yes) enable_static=yes ;; 7311 no) enable_static=no ;; 7312 *) 7313 enable_static=no 7314 # Look at the argument we got. We use all the common list separators. 7315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7316 for pkg in $enableval; do 7317 IFS="$lt_save_ifs" 7318 if test "X$pkg" = "X$p"; then 7319 enable_static=yes 7320 fi 7321 done 7322 IFS="$lt_save_ifs" 7323 ;; 7324 esac 7325else 7326 enable_static=no 7327fi 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 enable_dlopen=no 7339 7340 7341 enable_win32_dll=no 7342 7343 7344 # Check whether --enable-shared was given. 7345if test "${enable_shared+set}" = set; then : 7346 enableval=$enable_shared; p=${PACKAGE-default} 7347 case $enableval in 7348 yes) enable_shared=yes ;; 7349 no) enable_shared=no ;; 7350 *) 7351 enable_shared=no 7352 # Look at the argument we got. We use all the common list separators. 7353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7354 for pkg in $enableval; do 7355 IFS="$lt_save_ifs" 7356 if test "X$pkg" = "X$p"; then 7357 enable_shared=yes 7358 fi 7359 done 7360 IFS="$lt_save_ifs" 7361 ;; 7362 esac 7363else 7364 enable_shared=yes 7365fi 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377# Check whether --with-pic was given. 7378if test "${with_pic+set}" = set; then : 7379 withval=$with_pic; pic_mode="$withval" 7380else 7381 pic_mode=default 7382fi 7383 7384 7385test -z "$pic_mode" && pic_mode=default 7386 7387 7388 7389 7390 7391 7392 7393 # Check whether --enable-fast-install was given. 7394if test "${enable_fast_install+set}" = set; then : 7395 enableval=$enable_fast_install; p=${PACKAGE-default} 7396 case $enableval in 7397 yes) enable_fast_install=yes ;; 7398 no) enable_fast_install=no ;; 7399 *) 7400 enable_fast_install=no 7401 # Look at the argument we got. We use all the common list separators. 7402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7403 for pkg in $enableval; do 7404 IFS="$lt_save_ifs" 7405 if test "X$pkg" = "X$p"; then 7406 enable_fast_install=yes 7407 fi 7408 done 7409 IFS="$lt_save_ifs" 7410 ;; 7411 esac 7412else 7413 enable_fast_install=yes 7414fi 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426# This can be used to rebuild libtool when needed 7427LIBTOOL_DEPS="$ltmain" 7428 7429# Always use our own libtool. 7430LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457test -z "$LN_S" && LN_S="ln -s" 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472if test -n "${ZSH_VERSION+set}" ; then 7473 setopt NO_GLOB_SUBST 7474fi 7475 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7477$as_echo_n "checking for objdir... " >&6; } 7478if ${lt_cv_objdir+:} false; then : 7479 $as_echo_n "(cached) " >&6 7480else 7481 rm -f .libs 2>/dev/null 7482mkdir .libs 2>/dev/null 7483if test -d .libs; then 7484 lt_cv_objdir=.libs 7485else 7486 # MS-DOS does not allow filenames that begin with a dot. 7487 lt_cv_objdir=_libs 7488fi 7489rmdir .libs 2>/dev/null 7490fi 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7492$as_echo "$lt_cv_objdir" >&6; } 7493objdir=$lt_cv_objdir 7494 7495 7496 7497 7498 7499cat >>confdefs.h <<_ACEOF 7500#define LT_OBJDIR "$lt_cv_objdir/" 7501_ACEOF 7502 7503 7504 7505 7506case $host_os in 7507aix3*) 7508 # AIX sometimes has problems with the GCC collect2 program. For some 7509 # reason, if we set the COLLECT_NAMES environment variable, the problems 7510 # vanish in a puff of smoke. 7511 if test "X${COLLECT_NAMES+set}" != Xset; then 7512 COLLECT_NAMES= 7513 export COLLECT_NAMES 7514 fi 7515 ;; 7516esac 7517 7518# Global variables: 7519ofile=libtool 7520can_build_shared=yes 7521 7522# All known linkers require a `.a' archive for static linking (except MSVC, 7523# which needs '.lib'). 7524libext=a 7525 7526with_gnu_ld="$lt_cv_prog_gnu_ld" 7527 7528old_CC="$CC" 7529old_CFLAGS="$CFLAGS" 7530 7531# Set sane defaults for various variables 7532test -z "$CC" && CC=cc 7533test -z "$LTCC" && LTCC=$CC 7534test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7535test -z "$LD" && LD=ld 7536test -z "$ac_objext" && ac_objext=o 7537 7538for cc_temp in $compiler""; do 7539 case $cc_temp in 7540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7542 \-*) ;; 7543 *) break;; 7544 esac 7545done 7546cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7547 7548 7549# Only perform the check for file, if the check method requires it 7550test -z "$MAGIC_CMD" && MAGIC_CMD=file 7551case $deplibs_check_method in 7552file_magic*) 7553 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7555$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7556if ${lt_cv_path_MAGIC_CMD+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 case $MAGIC_CMD in 7560[\\/*] | ?:[\\/]*) 7561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7562 ;; 7563*) 7564 lt_save_MAGIC_CMD="$MAGIC_CMD" 7565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7567 for ac_dir in $ac_dummy; do 7568 IFS="$lt_save_ifs" 7569 test -z "$ac_dir" && ac_dir=. 7570 if test -f $ac_dir/${ac_tool_prefix}file; then 7571 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7572 if test -n "$file_magic_test_file"; then 7573 case $deplibs_check_method in 7574 "file_magic "*) 7575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7578 $EGREP "$file_magic_regex" > /dev/null; then 7579 : 7580 else 7581 cat <<_LT_EOF 1>&2 7582 7583*** Warning: the command libtool uses to detect shared libraries, 7584*** $file_magic_cmd, produces output that libtool cannot recognize. 7585*** The result is that libtool may fail to recognize shared libraries 7586*** as such. This will affect the creation of libtool libraries that 7587*** depend on shared libraries, but programs linked with such libtool 7588*** libraries will work regardless of this problem. Nevertheless, you 7589*** may want to report the problem to your system manager and/or to 7590*** bug-libtool@gnu.org 7591 7592_LT_EOF 7593 fi ;; 7594 esac 7595 fi 7596 break 7597 fi 7598 done 7599 IFS="$lt_save_ifs" 7600 MAGIC_CMD="$lt_save_MAGIC_CMD" 7601 ;; 7602esac 7603fi 7604 7605MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7606if test -n "$MAGIC_CMD"; then 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7608$as_echo "$MAGIC_CMD" >&6; } 7609else 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7611$as_echo "no" >&6; } 7612fi 7613 7614 7615 7616 7617 7618if test -z "$lt_cv_path_MAGIC_CMD"; then 7619 if test -n "$ac_tool_prefix"; then 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7621$as_echo_n "checking for file... " >&6; } 7622if ${lt_cv_path_MAGIC_CMD+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 case $MAGIC_CMD in 7626[\\/*] | ?:[\\/]*) 7627 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7628 ;; 7629*) 7630 lt_save_MAGIC_CMD="$MAGIC_CMD" 7631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7632 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7633 for ac_dir in $ac_dummy; do 7634 IFS="$lt_save_ifs" 7635 test -z "$ac_dir" && ac_dir=. 7636 if test -f $ac_dir/file; then 7637 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7638 if test -n "$file_magic_test_file"; then 7639 case $deplibs_check_method in 7640 "file_magic "*) 7641 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7643 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7644 $EGREP "$file_magic_regex" > /dev/null; then 7645 : 7646 else 7647 cat <<_LT_EOF 1>&2 7648 7649*** Warning: the command libtool uses to detect shared libraries, 7650*** $file_magic_cmd, produces output that libtool cannot recognize. 7651*** The result is that libtool may fail to recognize shared libraries 7652*** as such. This will affect the creation of libtool libraries that 7653*** depend on shared libraries, but programs linked with such libtool 7654*** libraries will work regardless of this problem. Nevertheless, you 7655*** may want to report the problem to your system manager and/or to 7656*** bug-libtool@gnu.org 7657 7658_LT_EOF 7659 fi ;; 7660 esac 7661 fi 7662 break 7663 fi 7664 done 7665 IFS="$lt_save_ifs" 7666 MAGIC_CMD="$lt_save_MAGIC_CMD" 7667 ;; 7668esac 7669fi 7670 7671MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7672if test -n "$MAGIC_CMD"; then 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7674$as_echo "$MAGIC_CMD" >&6; } 7675else 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7677$as_echo "no" >&6; } 7678fi 7679 7680 7681 else 7682 MAGIC_CMD=: 7683 fi 7684fi 7685 7686 fi 7687 ;; 7688esac 7689 7690# Use C for the default configuration in the libtool script 7691 7692lt_save_CC="$CC" 7693ac_ext=c 7694ac_cpp='$CPP $CPPFLAGS' 7695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7697ac_compiler_gnu=$ac_cv_c_compiler_gnu 7698 7699 7700# Source file extension for C test sources. 7701ac_ext=c 7702 7703# Object file extension for compiled C test sources. 7704objext=o 7705objext=$objext 7706 7707# Code to be used in simple compile tests 7708lt_simple_compile_test_code="int some_variable = 0;" 7709 7710# Code to be used in simple link tests 7711lt_simple_link_test_code='int main(){return(0);}' 7712 7713 7714 7715 7716 7717 7718 7719# If no C compiler was specified, use CC. 7720LTCC=${LTCC-"$CC"} 7721 7722# If no C compiler flags were specified, use CFLAGS. 7723LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7724 7725# Allow CC to be a program name with arguments. 7726compiler=$CC 7727 7728# Save the default compiler, since it gets overwritten when the other 7729# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7730compiler_DEFAULT=$CC 7731 7732# save warnings/boilerplate of simple test code 7733ac_outfile=conftest.$ac_objext 7734echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7735eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7736_lt_compiler_boilerplate=`cat conftest.err` 7737$RM conftest* 7738 7739ac_outfile=conftest.$ac_objext 7740echo "$lt_simple_link_test_code" >conftest.$ac_ext 7741eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7742_lt_linker_boilerplate=`cat conftest.err` 7743$RM -r conftest* 7744 7745 7746## CAVEAT EMPTOR: 7747## There is no encapsulation within the following macros, do not change 7748## the running order or otherwise move them around unless you know exactly 7749## what you are doing... 7750if test -n "$compiler"; then 7751 7752lt_prog_compiler_no_builtin_flag= 7753 7754if test "$GCC" = yes; then 7755 case $cc_basename in 7756 nvcc*) 7757 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7758 *) 7759 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7760 esac 7761 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7763$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7764if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7765 $as_echo_n "(cached) " >&6 7766else 7767 lt_cv_prog_compiler_rtti_exceptions=no 7768 ac_outfile=conftest.$ac_objext 7769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7770 lt_compiler_flag="-fno-rtti -fno-exceptions" 7771 # Insert the option either (1) after the last *FLAGS variable, or 7772 # (2) before a word containing "conftest.", or (3) at the end. 7773 # Note that $ac_compile itself does not contain backslashes and begins 7774 # with a dollar sign (not a hyphen), so the echo should work correctly. 7775 # The option is referenced via a variable to avoid confusing sed. 7776 lt_compile=`echo "$ac_compile" | $SED \ 7777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7779 -e 's:$: $lt_compiler_flag:'` 7780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7781 (eval "$lt_compile" 2>conftest.err) 7782 ac_status=$? 7783 cat conftest.err >&5 7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7785 if (exit $ac_status) && test -s "$ac_outfile"; then 7786 # The compiler can only warn and ignore the option if not recognized 7787 # So say no if there are warnings other than the usual output. 7788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7791 lt_cv_prog_compiler_rtti_exceptions=yes 7792 fi 7793 fi 7794 $RM conftest* 7795 7796fi 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7798$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7799 7800if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7801 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7802else 7803 : 7804fi 7805 7806fi 7807 7808 7809 7810 7811 7812 7813 lt_prog_compiler_wl= 7814lt_prog_compiler_pic= 7815lt_prog_compiler_static= 7816 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7818$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7819 7820 if test "$GCC" = yes; then 7821 lt_prog_compiler_wl='-Wl,' 7822 lt_prog_compiler_static='-static' 7823 7824 case $host_os in 7825 aix*) 7826 # All AIX code is PIC. 7827 if test "$host_cpu" = ia64; then 7828 # AIX 5 now supports IA64 processor 7829 lt_prog_compiler_static='-Bstatic' 7830 fi 7831 lt_prog_compiler_pic='-fPIC' 7832 ;; 7833 7834 amigaos*) 7835 case $host_cpu in 7836 powerpc) 7837 # see comment about AmigaOS4 .so support 7838 lt_prog_compiler_pic='-fPIC' 7839 ;; 7840 m68k) 7841 # FIXME: we need at least 68020 code to build shared libraries, but 7842 # adding the `-m68020' flag to GCC prevents building anything better, 7843 # like `-m68040'. 7844 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7845 ;; 7846 esac 7847 ;; 7848 7849 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7850 # PIC is the default for these OSes. 7851 ;; 7852 7853 mingw* | cygwin* | pw32* | os2* | cegcc*) 7854 # This hack is so that the source file can tell whether it is being 7855 # built for inclusion in a dll (and should export symbols for example). 7856 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7857 # (--disable-auto-import) libraries 7858 lt_prog_compiler_pic='-DDLL_EXPORT' 7859 ;; 7860 7861 darwin* | rhapsody*) 7862 # PIC is the default on this platform 7863 # Common symbols not allowed in MH_DYLIB files 7864 lt_prog_compiler_pic='-fno-common' 7865 ;; 7866 7867 haiku*) 7868 # PIC is the default for Haiku. 7869 # The "-static" flag exists, but is broken. 7870 lt_prog_compiler_static= 7871 ;; 7872 7873 hpux*) 7874 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7875 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7876 # sets the default TLS model and affects inlining. 7877 case $host_cpu in 7878 hppa*64*) 7879 # +Z the default 7880 ;; 7881 *) 7882 lt_prog_compiler_pic='-fPIC' 7883 ;; 7884 esac 7885 ;; 7886 7887 interix[3-9]*) 7888 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7889 # Instead, we relocate shared libraries at runtime. 7890 ;; 7891 7892 msdosdjgpp*) 7893 # Just because we use GCC doesn't mean we suddenly get shared libraries 7894 # on systems that don't support them. 7895 lt_prog_compiler_can_build_shared=no 7896 enable_shared=no 7897 ;; 7898 7899 *nto* | *qnx*) 7900 # QNX uses GNU C++, but need to define -shared option too, otherwise 7901 # it will coredump. 7902 lt_prog_compiler_pic='-fPIC -shared' 7903 ;; 7904 7905 sysv4*MP*) 7906 if test -d /usr/nec; then 7907 lt_prog_compiler_pic=-Kconform_pic 7908 fi 7909 ;; 7910 7911 *) 7912 lt_prog_compiler_pic='-fPIC' 7913 ;; 7914 esac 7915 7916 case $cc_basename in 7917 nvcc*) # Cuda Compiler Driver 2.2 7918 lt_prog_compiler_wl='-Xlinker ' 7919 lt_prog_compiler_pic='-Xcompiler -fPIC' 7920 ;; 7921 esac 7922 else 7923 # PORTME Check for flag to pass linker flags through the system compiler. 7924 case $host_os in 7925 aix*) 7926 lt_prog_compiler_wl='-Wl,' 7927 if test "$host_cpu" = ia64; then 7928 # AIX 5 now supports IA64 processor 7929 lt_prog_compiler_static='-Bstatic' 7930 else 7931 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7932 fi 7933 ;; 7934 7935 mingw* | cygwin* | pw32* | os2* | cegcc*) 7936 # This hack is so that the source file can tell whether it is being 7937 # built for inclusion in a dll (and should export symbols for example). 7938 lt_prog_compiler_pic='-DDLL_EXPORT' 7939 ;; 7940 7941 hpux9* | hpux10* | hpux11*) 7942 lt_prog_compiler_wl='-Wl,' 7943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7944 # not for PA HP-UX. 7945 case $host_cpu in 7946 hppa*64*|ia64*) 7947 # +Z the default 7948 ;; 7949 *) 7950 lt_prog_compiler_pic='+Z' 7951 ;; 7952 esac 7953 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7954 lt_prog_compiler_static='${wl}-a ${wl}archive' 7955 ;; 7956 7957 irix5* | irix6* | nonstopux*) 7958 lt_prog_compiler_wl='-Wl,' 7959 # PIC (with -KPIC) is the default. 7960 lt_prog_compiler_static='-non_shared' 7961 ;; 7962 7963 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7964 case $cc_basename in 7965 # old Intel for x86_64 which still supported -KPIC. 7966 ecc*) 7967 lt_prog_compiler_wl='-Wl,' 7968 lt_prog_compiler_pic='-KPIC' 7969 lt_prog_compiler_static='-static' 7970 ;; 7971 # icc used to be incompatible with GCC. 7972 # ICC 10 doesn't accept -KPIC any more. 7973 icc* | ifort*) 7974 lt_prog_compiler_wl='-Wl,' 7975 lt_prog_compiler_pic='-fPIC' 7976 lt_prog_compiler_static='-static' 7977 ;; 7978 # Lahey Fortran 8.1. 7979 lf95*) 7980 lt_prog_compiler_wl='-Wl,' 7981 lt_prog_compiler_pic='--shared' 7982 lt_prog_compiler_static='--static' 7983 ;; 7984 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7985 # Portland Group compilers (*not* the Pentium gcc compiler, 7986 # which looks to be a dead project) 7987 lt_prog_compiler_wl='-Wl,' 7988 lt_prog_compiler_pic='-fpic' 7989 lt_prog_compiler_static='-Bstatic' 7990 ;; 7991 ccc*) 7992 lt_prog_compiler_wl='-Wl,' 7993 # All Alpha code is PIC. 7994 lt_prog_compiler_static='-non_shared' 7995 ;; 7996 xl* | bgxl* | bgf* | mpixl*) 7997 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7998 lt_prog_compiler_wl='-Wl,' 7999 lt_prog_compiler_pic='-qpic' 8000 lt_prog_compiler_static='-qstaticlink' 8001 ;; 8002 *) 8003 case `$CC -V 2>&1 | sed 5q` in 8004 *Sun\ F* | *Sun*Fortran*) 8005 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8006 lt_prog_compiler_pic='-KPIC' 8007 lt_prog_compiler_static='-Bstatic' 8008 lt_prog_compiler_wl='' 8009 ;; 8010 *Sun\ C*) 8011 # Sun C 5.9 8012 lt_prog_compiler_pic='-KPIC' 8013 lt_prog_compiler_static='-Bstatic' 8014 lt_prog_compiler_wl='-Wl,' 8015 ;; 8016 esac 8017 ;; 8018 esac 8019 ;; 8020 8021 newsos6) 8022 lt_prog_compiler_pic='-KPIC' 8023 lt_prog_compiler_static='-Bstatic' 8024 ;; 8025 8026 *nto* | *qnx*) 8027 # QNX uses GNU C++, but need to define -shared option too, otherwise 8028 # it will coredump. 8029 lt_prog_compiler_pic='-fPIC -shared' 8030 ;; 8031 8032 osf3* | osf4* | osf5*) 8033 lt_prog_compiler_wl='-Wl,' 8034 # All OSF/1 code is PIC. 8035 lt_prog_compiler_static='-non_shared' 8036 ;; 8037 8038 rdos*) 8039 lt_prog_compiler_static='-non_shared' 8040 ;; 8041 8042 solaris*) 8043 lt_prog_compiler_pic='-KPIC' 8044 lt_prog_compiler_static='-Bstatic' 8045 case $cc_basename in 8046 f77* | f90* | f95*) 8047 lt_prog_compiler_wl='-Qoption ld ';; 8048 *) 8049 lt_prog_compiler_wl='-Wl,';; 8050 esac 8051 ;; 8052 8053 sunos4*) 8054 lt_prog_compiler_wl='-Qoption ld ' 8055 lt_prog_compiler_pic='-PIC' 8056 lt_prog_compiler_static='-Bstatic' 8057 ;; 8058 8059 sysv4 | sysv4.2uw2* | sysv4.3*) 8060 lt_prog_compiler_wl='-Wl,' 8061 lt_prog_compiler_pic='-KPIC' 8062 lt_prog_compiler_static='-Bstatic' 8063 ;; 8064 8065 sysv4*MP*) 8066 if test -d /usr/nec ;then 8067 lt_prog_compiler_pic='-Kconform_pic' 8068 lt_prog_compiler_static='-Bstatic' 8069 fi 8070 ;; 8071 8072 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8073 lt_prog_compiler_wl='-Wl,' 8074 lt_prog_compiler_pic='-KPIC' 8075 lt_prog_compiler_static='-Bstatic' 8076 ;; 8077 8078 unicos*) 8079 lt_prog_compiler_wl='-Wl,' 8080 lt_prog_compiler_can_build_shared=no 8081 ;; 8082 8083 uts4*) 8084 lt_prog_compiler_pic='-pic' 8085 lt_prog_compiler_static='-Bstatic' 8086 ;; 8087 8088 *) 8089 lt_prog_compiler_can_build_shared=no 8090 ;; 8091 esac 8092 fi 8093 8094case $host_os in 8095 # For platforms which do not support PIC, -DPIC is meaningless: 8096 *djgpp*) 8097 lt_prog_compiler_pic= 8098 ;; 8099 *) 8100 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8101 ;; 8102esac 8103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8104$as_echo "$lt_prog_compiler_pic" >&6; } 8105 8106 8107 8108 8109 8110 8111# 8112# Check to make sure the PIC flag actually works. 8113# 8114if test -n "$lt_prog_compiler_pic"; then 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8116$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8117if ${lt_cv_prog_compiler_pic_works+:} false; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 lt_cv_prog_compiler_pic_works=no 8121 ac_outfile=conftest.$ac_objext 8122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8123 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8124 # Insert the option either (1) after the last *FLAGS variable, or 8125 # (2) before a word containing "conftest.", or (3) at the end. 8126 # Note that $ac_compile itself does not contain backslashes and begins 8127 # with a dollar sign (not a hyphen), so the echo should work correctly. 8128 # The option is referenced via a variable to avoid confusing sed. 8129 lt_compile=`echo "$ac_compile" | $SED \ 8130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8132 -e 's:$: $lt_compiler_flag:'` 8133 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8134 (eval "$lt_compile" 2>conftest.err) 8135 ac_status=$? 8136 cat conftest.err >&5 8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8138 if (exit $ac_status) && test -s "$ac_outfile"; then 8139 # The compiler can only warn and ignore the option if not recognized 8140 # So say no if there are warnings other than the usual output. 8141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8144 lt_cv_prog_compiler_pic_works=yes 8145 fi 8146 fi 8147 $RM conftest* 8148 8149fi 8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8151$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8152 8153if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8154 case $lt_prog_compiler_pic in 8155 "" | " "*) ;; 8156 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8157 esac 8158else 8159 lt_prog_compiler_pic= 8160 lt_prog_compiler_can_build_shared=no 8161fi 8162 8163fi 8164 8165 8166 8167 8168 8169 8170# 8171# Check to make sure the static flag actually works. 8172# 8173wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8175$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8176if ${lt_cv_prog_compiler_static_works+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178else 8179 lt_cv_prog_compiler_static_works=no 8180 save_LDFLAGS="$LDFLAGS" 8181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8182 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8184 # The linker can only warn and ignore the option if not recognized 8185 # So say no if there are warnings 8186 if test -s conftest.err; then 8187 # Append any errors to the config.log. 8188 cat conftest.err 1>&5 8189 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8191 if diff conftest.exp conftest.er2 >/dev/null; then 8192 lt_cv_prog_compiler_static_works=yes 8193 fi 8194 else 8195 lt_cv_prog_compiler_static_works=yes 8196 fi 8197 fi 8198 $RM -r conftest* 8199 LDFLAGS="$save_LDFLAGS" 8200 8201fi 8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8203$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8204 8205if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8206 : 8207else 8208 lt_prog_compiler_static= 8209fi 8210 8211 8212 8213 8214 8215 8216 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8218$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8219if ${lt_cv_prog_compiler_c_o+:} false; then : 8220 $as_echo_n "(cached) " >&6 8221else 8222 lt_cv_prog_compiler_c_o=no 8223 $RM -r conftest 2>/dev/null 8224 mkdir conftest 8225 cd conftest 8226 mkdir out 8227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8228 8229 lt_compiler_flag="-o out/conftest2.$ac_objext" 8230 # Insert the option either (1) after the last *FLAGS variable, or 8231 # (2) before a word containing "conftest.", or (3) at the end. 8232 # Note that $ac_compile itself does not contain backslashes and begins 8233 # with a dollar sign (not a hyphen), so the echo should work correctly. 8234 lt_compile=`echo "$ac_compile" | $SED \ 8235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8237 -e 's:$: $lt_compiler_flag:'` 8238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8239 (eval "$lt_compile" 2>out/conftest.err) 8240 ac_status=$? 8241 cat out/conftest.err >&5 8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8243 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8244 then 8245 # The compiler can only warn and ignore the option if not recognized 8246 # So say no if there are warnings 8247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8250 lt_cv_prog_compiler_c_o=yes 8251 fi 8252 fi 8253 chmod u+w . 2>&5 8254 $RM conftest* 8255 # SGI C++ compiler will create directory out/ii_files/ for 8256 # template instantiation 8257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8258 $RM out/* && rmdir out 8259 cd .. 8260 $RM -r conftest 8261 $RM conftest* 8262 8263fi 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8265$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8266 8267 8268 8269 8270 8271 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8273$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8274if ${lt_cv_prog_compiler_c_o+:} false; then : 8275 $as_echo_n "(cached) " >&6 8276else 8277 lt_cv_prog_compiler_c_o=no 8278 $RM -r conftest 2>/dev/null 8279 mkdir conftest 8280 cd conftest 8281 mkdir out 8282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8283 8284 lt_compiler_flag="-o out/conftest2.$ac_objext" 8285 # Insert the option either (1) after the last *FLAGS variable, or 8286 # (2) before a word containing "conftest.", or (3) at the end. 8287 # Note that $ac_compile itself does not contain backslashes and begins 8288 # with a dollar sign (not a hyphen), so the echo should work correctly. 8289 lt_compile=`echo "$ac_compile" | $SED \ 8290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8292 -e 's:$: $lt_compiler_flag:'` 8293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8294 (eval "$lt_compile" 2>out/conftest.err) 8295 ac_status=$? 8296 cat out/conftest.err >&5 8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8298 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8299 then 8300 # The compiler can only warn and ignore the option if not recognized 8301 # So say no if there are warnings 8302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8303 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8304 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8305 lt_cv_prog_compiler_c_o=yes 8306 fi 8307 fi 8308 chmod u+w . 2>&5 8309 $RM conftest* 8310 # SGI C++ compiler will create directory out/ii_files/ for 8311 # template instantiation 8312 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8313 $RM out/* && rmdir out 8314 cd .. 8315 $RM -r conftest 8316 $RM conftest* 8317 8318fi 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8320$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8321 8322 8323 8324 8325hard_links="nottested" 8326if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8327 # do not overwrite the value of need_locks provided by the user 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8329$as_echo_n "checking if we can lock with hard links... " >&6; } 8330 hard_links=yes 8331 $RM conftest* 8332 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8333 touch conftest.a 8334 ln conftest.a conftest.b 2>&5 || hard_links=no 8335 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8337$as_echo "$hard_links" >&6; } 8338 if test "$hard_links" = no; then 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8340$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8341 need_locks=warn 8342 fi 8343else 8344 need_locks=no 8345fi 8346 8347 8348 8349 8350 8351 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8353$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8354 8355 runpath_var= 8356 allow_undefined_flag= 8357 always_export_symbols=no 8358 archive_cmds= 8359 archive_expsym_cmds= 8360 compiler_needs_object=no 8361 enable_shared_with_static_runtimes=no 8362 export_dynamic_flag_spec= 8363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8364 hardcode_automatic=no 8365 hardcode_direct=no 8366 hardcode_direct_absolute=no 8367 hardcode_libdir_flag_spec= 8368 hardcode_libdir_flag_spec_ld= 8369 hardcode_libdir_separator= 8370 hardcode_minus_L=no 8371 hardcode_shlibpath_var=unsupported 8372 inherit_rpath=no 8373 link_all_deplibs=unknown 8374 module_cmds= 8375 module_expsym_cmds= 8376 old_archive_from_new_cmds= 8377 old_archive_from_expsyms_cmds= 8378 thread_safe_flag_spec= 8379 whole_archive_flag_spec= 8380 # include_expsyms should be a list of space-separated symbols to be *always* 8381 # included in the symbol list 8382 include_expsyms= 8383 # exclude_expsyms can be an extended regexp of symbols to exclude 8384 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8385 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8386 # as well as any symbol that contains `d'. 8387 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8388 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8389 # platforms (ab)use it in PIC code, but their linkers get confused if 8390 # the symbol is explicitly referenced. Since portable code cannot 8391 # rely on this symbol name, it's probably fine to never include it in 8392 # preloaded symbol tables. 8393 # Exclude shared library initialization/finalization symbols. 8394 extract_expsyms_cmds= 8395 8396 case $host_os in 8397 cygwin* | mingw* | pw32* | cegcc*) 8398 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8399 # When not using gcc, we currently assume that we are using 8400 # Microsoft Visual C++. 8401 if test "$GCC" != yes; then 8402 with_gnu_ld=no 8403 fi 8404 ;; 8405 interix*) 8406 # we just hope/assume this is gcc and not c89 (= MSVC++) 8407 with_gnu_ld=yes 8408 ;; 8409 openbsd*) 8410 with_gnu_ld=no 8411 ;; 8412 esac 8413 8414 ld_shlibs=yes 8415 8416 # On some targets, GNU ld is compatible enough with the native linker 8417 # that we're better off using the native interface for both. 8418 lt_use_gnu_ld_interface=no 8419 if test "$with_gnu_ld" = yes; then 8420 case $host_os in 8421 aix*) 8422 # The AIX port of GNU ld has always aspired to compatibility 8423 # with the native linker. However, as the warning in the GNU ld 8424 # block says, versions before 2.19.5* couldn't really create working 8425 # shared libraries, regardless of the interface used. 8426 case `$LD -v 2>&1` in 8427 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8428 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8429 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8430 *) 8431 lt_use_gnu_ld_interface=yes 8432 ;; 8433 esac 8434 ;; 8435 *) 8436 lt_use_gnu_ld_interface=yes 8437 ;; 8438 esac 8439 fi 8440 8441 if test "$lt_use_gnu_ld_interface" = yes; then 8442 # If archive_cmds runs LD, not CC, wlarc should be empty 8443 wlarc='${wl}' 8444 8445 # Set some defaults for GNU ld with shared library support. These 8446 # are reset later if shared libraries are not supported. Putting them 8447 # here allows them to be overridden if necessary. 8448 runpath_var=LD_RUN_PATH 8449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8450 export_dynamic_flag_spec='${wl}--export-dynamic' 8451 # ancient GNU ld didn't support --whole-archive et. al. 8452 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8453 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8454 else 8455 whole_archive_flag_spec= 8456 fi 8457 supports_anon_versioning=no 8458 case `$LD -v 2>&1` in 8459 *GNU\ gold*) supports_anon_versioning=yes ;; 8460 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8461 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8462 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8463 *\ 2.11.*) ;; # other 2.11 versions 8464 *) supports_anon_versioning=yes ;; 8465 esac 8466 8467 # See if GNU ld supports shared libraries. 8468 case $host_os in 8469 aix[3-9]*) 8470 # On AIX/PPC, the GNU linker is very broken 8471 if test "$host_cpu" != ia64; then 8472 ld_shlibs=no 8473 cat <<_LT_EOF 1>&2 8474 8475*** Warning: the GNU linker, at least up to release 2.19, is reported 8476*** to be unable to reliably create shared libraries on AIX. 8477*** Therefore, libtool is disabling shared libraries support. If you 8478*** really care for shared libraries, you may want to install binutils 8479*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8480*** You will then need to restart the configuration process. 8481 8482_LT_EOF 8483 fi 8484 ;; 8485 8486 amigaos*) 8487 case $host_cpu in 8488 powerpc) 8489 # see comment about AmigaOS4 .so support 8490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8491 archive_expsym_cmds='' 8492 ;; 8493 m68k) 8494 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)' 8495 hardcode_libdir_flag_spec='-L$libdir' 8496 hardcode_minus_L=yes 8497 ;; 8498 esac 8499 ;; 8500 8501 beos*) 8502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8503 allow_undefined_flag=unsupported 8504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8505 # support --undefined. This deserves some investigation. FIXME 8506 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8507 else 8508 ld_shlibs=no 8509 fi 8510 ;; 8511 8512 cygwin* | mingw* | pw32* | cegcc*) 8513 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8514 # as there is no search path for DLLs. 8515 hardcode_libdir_flag_spec='-L$libdir' 8516 export_dynamic_flag_spec='${wl}--export-all-symbols' 8517 allow_undefined_flag=unsupported 8518 always_export_symbols=no 8519 enable_shared_with_static_runtimes=yes 8520 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8521 8522 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8524 # If the export-symbols file already is a .def file (1st line 8525 # is EXPORTS), use it as is; otherwise, prepend... 8526 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8527 cp $export_symbols $output_objdir/$soname.def; 8528 else 8529 echo EXPORTS > $output_objdir/$soname.def; 8530 cat $export_symbols >> $output_objdir/$soname.def; 8531 fi~ 8532 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8533 else 8534 ld_shlibs=no 8535 fi 8536 ;; 8537 8538 haiku*) 8539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8540 link_all_deplibs=yes 8541 ;; 8542 8543 interix[3-9]*) 8544 hardcode_direct=no 8545 hardcode_shlibpath_var=no 8546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8547 export_dynamic_flag_spec='${wl}-E' 8548 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8549 # Instead, shared libraries are loaded at an image base (0x10000000 by 8550 # default) and relocated if they conflict, which is a slow very memory 8551 # consuming and fragmenting process. To avoid this, we pick a random, 8552 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8553 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8555 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' 8556 ;; 8557 8558 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8559 tmp_diet=no 8560 if test "$host_os" = linux-dietlibc; then 8561 case $cc_basename in 8562 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8563 esac 8564 fi 8565 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8566 && test "$tmp_diet" = no 8567 then 8568 tmp_addflag=' $pic_flag' 8569 tmp_sharedflag='-shared' 8570 case $cc_basename,$host_cpu in 8571 pgcc*) # Portland Group C compiler 8572 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' 8573 tmp_addflag=' $pic_flag' 8574 ;; 8575 pgf77* | pgf90* | pgf95* | pgfortran*) 8576 # Portland Group f77 and f90 compilers 8577 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' 8578 tmp_addflag=' $pic_flag -Mnomain' ;; 8579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8580 tmp_addflag=' -i_dynamic' ;; 8581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8582 tmp_addflag=' -i_dynamic -nofor_main' ;; 8583 ifc* | ifort*) # Intel Fortran compiler 8584 tmp_addflag=' -nofor_main' ;; 8585 lf95*) # Lahey Fortran 8.1 8586 whole_archive_flag_spec= 8587 tmp_sharedflag='--shared' ;; 8588 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8589 tmp_sharedflag='-qmkshrobj' 8590 tmp_addflag= ;; 8591 nvcc*) # Cuda Compiler Driver 2.2 8592 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' 8593 compiler_needs_object=yes 8594 ;; 8595 esac 8596 case `$CC -V 2>&1 | sed 5q` in 8597 *Sun\ C*) # Sun C 5.9 8598 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' 8599 compiler_needs_object=yes 8600 tmp_sharedflag='-G' ;; 8601 *Sun\ F*) # Sun Fortran 8.3 8602 tmp_sharedflag='-G' ;; 8603 esac 8604 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8605 8606 if test "x$supports_anon_versioning" = xyes; then 8607 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8609 echo "local: *; };" >> $output_objdir/$libname.ver~ 8610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8611 fi 8612 8613 case $cc_basename in 8614 xlf* | bgf* | bgxlf* | mpixlf*) 8615 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8616 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8617 hardcode_libdir_flag_spec= 8618 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8619 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8620 if test "x$supports_anon_versioning" = xyes; then 8621 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8623 echo "local: *; };" >> $output_objdir/$libname.ver~ 8624 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8625 fi 8626 ;; 8627 esac 8628 else 8629 ld_shlibs=no 8630 fi 8631 ;; 8632 8633 netbsd*) 8634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8635 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8636 wlarc= 8637 else 8638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8640 fi 8641 ;; 8642 8643 solaris*) 8644 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8645 ld_shlibs=no 8646 cat <<_LT_EOF 1>&2 8647 8648*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8649*** create shared libraries on Solaris systems. Therefore, libtool 8650*** is disabling shared libraries support. We urge you to upgrade GNU 8651*** binutils to release 2.9.1 or newer. Another option is to modify 8652*** your PATH or compiler configuration so that the native linker is 8653*** used, and then restart. 8654 8655_LT_EOF 8656 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8659 else 8660 ld_shlibs=no 8661 fi 8662 ;; 8663 8664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8665 case `$LD -v 2>&1` in 8666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8667 ld_shlibs=no 8668 cat <<_LT_EOF 1>&2 8669 8670*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8671*** reliably create shared libraries on SCO systems. Therefore, libtool 8672*** is disabling shared libraries support. We urge you to upgrade GNU 8673*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8674*** your PATH or compiler configuration so that the native linker is 8675*** used, and then restart. 8676 8677_LT_EOF 8678 ;; 8679 *) 8680 # For security reasons, it is highly recommended that you always 8681 # use absolute paths for naming shared libraries, and exclude the 8682 # DT_RUNPATH tag from executables and libraries. But doing so 8683 # requires that you compile everything twice, which is a pain. 8684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8688 else 8689 ld_shlibs=no 8690 fi 8691 ;; 8692 esac 8693 ;; 8694 8695 sunos4*) 8696 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8697 wlarc= 8698 hardcode_direct=yes 8699 hardcode_shlibpath_var=no 8700 ;; 8701 8702 *) 8703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8706 else 8707 ld_shlibs=no 8708 fi 8709 ;; 8710 esac 8711 8712 if test "$ld_shlibs" = no; then 8713 runpath_var= 8714 hardcode_libdir_flag_spec= 8715 export_dynamic_flag_spec= 8716 whole_archive_flag_spec= 8717 fi 8718 else 8719 # PORTME fill in a description of your system's linker (not GNU ld) 8720 case $host_os in 8721 aix3*) 8722 allow_undefined_flag=unsupported 8723 always_export_symbols=yes 8724 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' 8725 # Note: this linker hardcodes the directories in LIBPATH if there 8726 # are no directories specified by -L. 8727 hardcode_minus_L=yes 8728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8729 # Neither direct hardcoding nor static linking is supported with a 8730 # broken collect2. 8731 hardcode_direct=unsupported 8732 fi 8733 ;; 8734 8735 aix[4-9]*) 8736 if test "$host_cpu" = ia64; then 8737 # On IA64, the linker does run time linking by default, so we don't 8738 # have to do anything special. 8739 aix_use_runtimelinking=no 8740 exp_sym_flag='-Bexport' 8741 no_entry_flag="" 8742 else 8743 # If we're using GNU nm, then we don't want the "-C" option. 8744 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8745 # Also, AIX nm treats weak defined symbols like other global 8746 # defined symbols, whereas GNU nm marks them as "W". 8747 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8748 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' 8749 else 8750 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8751 fi 8752 aix_use_runtimelinking=no 8753 8754 # Test if we are trying to use run time linking or normal 8755 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8756 # need to do runtime linking. 8757 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8758 for ld_flag in $LDFLAGS; do 8759 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8760 aix_use_runtimelinking=yes 8761 break 8762 fi 8763 done 8764 ;; 8765 esac 8766 8767 exp_sym_flag='-bexport' 8768 no_entry_flag='-bnoentry' 8769 fi 8770 8771 # When large executables or shared objects are built, AIX ld can 8772 # have problems creating the table of contents. If linking a library 8773 # or program results in "error TOC overflow" add -mminimal-toc to 8774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8776 8777 archive_cmds='' 8778 hardcode_direct=yes 8779 hardcode_direct_absolute=yes 8780 hardcode_libdir_separator=':' 8781 link_all_deplibs=yes 8782 file_list_spec='${wl}-f,' 8783 8784 if test "$GCC" = yes; then 8785 case $host_os in aix4.[012]|aix4.[012].*) 8786 # We only want to do this on AIX 4.2 and lower, the check 8787 # below for broken collect2 doesn't work under 4.3+ 8788 collect2name=`${CC} -print-prog-name=collect2` 8789 if test -f "$collect2name" && 8790 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8791 then 8792 # We have reworked collect2 8793 : 8794 else 8795 # We have old collect2 8796 hardcode_direct=unsupported 8797 # It fails to find uninstalled libraries when the uninstalled 8798 # path is not listed in the libpath. Setting hardcode_minus_L 8799 # to unsupported forces relinking 8800 hardcode_minus_L=yes 8801 hardcode_libdir_flag_spec='-L$libdir' 8802 hardcode_libdir_separator= 8803 fi 8804 ;; 8805 esac 8806 shared_flag='-shared' 8807 if test "$aix_use_runtimelinking" = yes; then 8808 shared_flag="$shared_flag "'${wl}-G' 8809 fi 8810 else 8811 # not using gcc 8812 if test "$host_cpu" = ia64; then 8813 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8814 # chokes on -Wl,-G. The following line is correct: 8815 shared_flag='-G' 8816 else 8817 if test "$aix_use_runtimelinking" = yes; then 8818 shared_flag='${wl}-G' 8819 else 8820 shared_flag='${wl}-bM:SRE' 8821 fi 8822 fi 8823 fi 8824 8825 export_dynamic_flag_spec='${wl}-bexpall' 8826 # It seems that -bexpall does not export symbols beginning with 8827 # underscore (_), so it is better to generate a list of symbols to export. 8828 always_export_symbols=yes 8829 if test "$aix_use_runtimelinking" = yes; then 8830 # Warning - without using the other runtime loading flags (-brtl), 8831 # -berok will link without error, but may produce a broken library. 8832 allow_undefined_flag='-berok' 8833 # Determine the default libpath from the value encoded in an 8834 # empty executable. 8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8836/* end confdefs.h. */ 8837 8838int 8839main () 8840{ 8841 8842 ; 8843 return 0; 8844} 8845_ACEOF 8846if ac_fn_c_try_link "$LINENO"; then : 8847 8848lt_aix_libpath_sed=' 8849 /Import File Strings/,/^$/ { 8850 /^0/ { 8851 s/^0 *\(.*\)$/\1/ 8852 p 8853 } 8854 }' 8855aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8856# Check for a 64-bit object if we didn't find anything. 8857if test -z "$aix_libpath"; then 8858 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8859fi 8860fi 8861rm -f core conftest.err conftest.$ac_objext \ 8862 conftest$ac_exeext conftest.$ac_ext 8863if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8864 8865 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8866 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" 8867 else 8868 if test "$host_cpu" = ia64; then 8869 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8870 allow_undefined_flag="-z nodefs" 8871 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" 8872 else 8873 # Determine the default libpath from the value encoded in an 8874 # empty executable. 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876/* end confdefs.h. */ 8877 8878int 8879main () 8880{ 8881 8882 ; 8883 return 0; 8884} 8885_ACEOF 8886if ac_fn_c_try_link "$LINENO"; then : 8887 8888lt_aix_libpath_sed=' 8889 /Import File Strings/,/^$/ { 8890 /^0/ { 8891 s/^0 *\(.*\)$/\1/ 8892 p 8893 } 8894 }' 8895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8896# Check for a 64-bit object if we didn't find anything. 8897if test -z "$aix_libpath"; then 8898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8899fi 8900fi 8901rm -f core conftest.err conftest.$ac_objext \ 8902 conftest$ac_exeext conftest.$ac_ext 8903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8904 8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8906 # Warning - without using the other run time loading flags, 8907 # -berok will link without error, but may produce a broken library. 8908 no_undefined_flag=' ${wl}-bernotok' 8909 allow_undefined_flag=' ${wl}-berok' 8910 if test "$with_gnu_ld" = yes; then 8911 # We only use this code for GNU lds that support --whole-archive. 8912 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8913 else 8914 # Exported symbols can be pulled into shared objects from archives 8915 whole_archive_flag_spec='$convenience' 8916 fi 8917 archive_cmds_need_lc=yes 8918 # This is similar to how AIX traditionally builds its shared libraries. 8919 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' 8920 fi 8921 fi 8922 ;; 8923 8924 amigaos*) 8925 case $host_cpu in 8926 powerpc) 8927 # see comment about AmigaOS4 .so support 8928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8929 archive_expsym_cmds='' 8930 ;; 8931 m68k) 8932 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)' 8933 hardcode_libdir_flag_spec='-L$libdir' 8934 hardcode_minus_L=yes 8935 ;; 8936 esac 8937 ;; 8938 8939 bsdi[45]*) 8940 export_dynamic_flag_spec=-rdynamic 8941 ;; 8942 8943 cygwin* | mingw* | pw32* | cegcc*) 8944 # When not using gcc, we currently assume that we are using 8945 # Microsoft Visual C++. 8946 # hardcode_libdir_flag_spec is actually meaningless, as there is 8947 # no search path for DLLs. 8948 hardcode_libdir_flag_spec=' ' 8949 allow_undefined_flag=unsupported 8950 # Tell ltmain to make .lib files, not .a files. 8951 libext=lib 8952 # Tell ltmain to make .dll files, not .so files. 8953 shrext_cmds=".dll" 8954 # FIXME: Setting linknames here is a bad hack. 8955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8956 # The linker will automatically build a .lib file if we build a DLL. 8957 old_archive_from_new_cmds='true' 8958 # FIXME: Should let the user specify the lib program. 8959 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8960 fix_srcfile_path='`cygpath -w "$srcfile"`' 8961 enable_shared_with_static_runtimes=yes 8962 ;; 8963 8964 darwin* | rhapsody*) 8965 8966 8967 archive_cmds_need_lc=no 8968 hardcode_direct=no 8969 hardcode_automatic=yes 8970 hardcode_shlibpath_var=unsupported 8971 if test "$lt_cv_ld_force_load" = "yes"; then 8972 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\"`' 8973 else 8974 whole_archive_flag_spec='' 8975 fi 8976 link_all_deplibs=yes 8977 allow_undefined_flag="$_lt_dar_allow_undefined" 8978 case $cc_basename in 8979 ifort*) _lt_dar_can_shared=yes ;; 8980 *) _lt_dar_can_shared=$GCC ;; 8981 esac 8982 if test "$_lt_dar_can_shared" = "yes"; then 8983 output_verbose_link_cmd=func_echo_all 8984 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8985 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8986 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}" 8987 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}" 8988 8989 else 8990 ld_shlibs=no 8991 fi 8992 8993 ;; 8994 8995 dgux*) 8996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8997 hardcode_libdir_flag_spec='-L$libdir' 8998 hardcode_shlibpath_var=no 8999 ;; 9000 9001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9002 # support. Future versions do this automatically, but an explicit c++rt0.o 9003 # does not break anything, and helps significantly (at the cost of a little 9004 # extra space). 9005 freebsd2.2*) 9006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9007 hardcode_libdir_flag_spec='-R$libdir' 9008 hardcode_direct=yes 9009 hardcode_shlibpath_var=no 9010 ;; 9011 9012 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9013 freebsd2.*) 9014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9015 hardcode_direct=yes 9016 hardcode_minus_L=yes 9017 hardcode_shlibpath_var=no 9018 ;; 9019 9020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9021 freebsd* | dragonfly*) 9022 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9023 hardcode_libdir_flag_spec='-R$libdir' 9024 hardcode_direct=yes 9025 hardcode_shlibpath_var=no 9026 ;; 9027 9028 hpux9*) 9029 if test "$GCC" = yes; then 9030 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' 9031 else 9032 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' 9033 fi 9034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9035 hardcode_libdir_separator=: 9036 hardcode_direct=yes 9037 9038 # hardcode_minus_L: Not really in the search PATH, 9039 # but as the default location of the library. 9040 hardcode_minus_L=yes 9041 export_dynamic_flag_spec='${wl}-E' 9042 ;; 9043 9044 hpux10*) 9045 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9046 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9047 else 9048 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9049 fi 9050 if test "$with_gnu_ld" = no; then 9051 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9052 hardcode_libdir_flag_spec_ld='+b $libdir' 9053 hardcode_libdir_separator=: 9054 hardcode_direct=yes 9055 hardcode_direct_absolute=yes 9056 export_dynamic_flag_spec='${wl}-E' 9057 # hardcode_minus_L: Not really in the search PATH, 9058 # but as the default location of the library. 9059 hardcode_minus_L=yes 9060 fi 9061 ;; 9062 9063 hpux11*) 9064 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9065 case $host_cpu in 9066 hppa*64*) 9067 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9068 ;; 9069 ia64*) 9070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9071 ;; 9072 *) 9073 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9074 ;; 9075 esac 9076 else 9077 case $host_cpu in 9078 hppa*64*) 9079 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9080 ;; 9081 ia64*) 9082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9083 ;; 9084 *) 9085 9086 # Older versions of the 11.00 compiler do not understand -b yet 9087 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9089$as_echo_n "checking if $CC understands -b... " >&6; } 9090if ${lt_cv_prog_compiler__b+:} false; then : 9091 $as_echo_n "(cached) " >&6 9092else 9093 lt_cv_prog_compiler__b=no 9094 save_LDFLAGS="$LDFLAGS" 9095 LDFLAGS="$LDFLAGS -b" 9096 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9098 # The linker can only warn and ignore the option if not recognized 9099 # So say no if there are warnings 9100 if test -s conftest.err; then 9101 # Append any errors to the config.log. 9102 cat conftest.err 1>&5 9103 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9105 if diff conftest.exp conftest.er2 >/dev/null; then 9106 lt_cv_prog_compiler__b=yes 9107 fi 9108 else 9109 lt_cv_prog_compiler__b=yes 9110 fi 9111 fi 9112 $RM -r conftest* 9113 LDFLAGS="$save_LDFLAGS" 9114 9115fi 9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9117$as_echo "$lt_cv_prog_compiler__b" >&6; } 9118 9119if test x"$lt_cv_prog_compiler__b" = xyes; then 9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9121else 9122 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9123fi 9124 9125 ;; 9126 esac 9127 fi 9128 if test "$with_gnu_ld" = no; then 9129 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9130 hardcode_libdir_separator=: 9131 9132 case $host_cpu in 9133 hppa*64*|ia64*) 9134 hardcode_direct=no 9135 hardcode_shlibpath_var=no 9136 ;; 9137 *) 9138 hardcode_direct=yes 9139 hardcode_direct_absolute=yes 9140 export_dynamic_flag_spec='${wl}-E' 9141 9142 # hardcode_minus_L: Not really in the search PATH, 9143 # but as the default location of the library. 9144 hardcode_minus_L=yes 9145 ;; 9146 esac 9147 fi 9148 ;; 9149 9150 irix5* | irix6* | nonstopux*) 9151 if test "$GCC" = yes; then 9152 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' 9153 # Try to use the -exported_symbol ld option, if it does not 9154 # work, assume that -exports_file does not work either and 9155 # implicitly export all symbols. 9156 save_LDFLAGS="$LDFLAGS" 9157 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9159/* end confdefs.h. */ 9160int foo(void) {} 9161_ACEOF 9162if ac_fn_c_try_link "$LINENO"; then : 9163 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' 9164 9165fi 9166rm -f core conftest.err conftest.$ac_objext \ 9167 conftest$ac_exeext conftest.$ac_ext 9168 LDFLAGS="$save_LDFLAGS" 9169 else 9170 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' 9171 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' 9172 fi 9173 archive_cmds_need_lc='no' 9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9175 hardcode_libdir_separator=: 9176 inherit_rpath=yes 9177 link_all_deplibs=yes 9178 ;; 9179 9180 netbsd*) 9181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9183 else 9184 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9185 fi 9186 hardcode_libdir_flag_spec='-R$libdir' 9187 hardcode_direct=yes 9188 hardcode_shlibpath_var=no 9189 ;; 9190 9191 newsos6) 9192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9193 hardcode_direct=yes 9194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9195 hardcode_libdir_separator=: 9196 hardcode_shlibpath_var=no 9197 ;; 9198 9199 *nto* | *qnx*) 9200 ;; 9201 9202 openbsd*) 9203 if test -f /usr/libexec/ld.so; then 9204 hardcode_direct=yes 9205 hardcode_shlibpath_var=no 9206 hardcode_direct_absolute=yes 9207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9209 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9210 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9211 export_dynamic_flag_spec='${wl}-E' 9212 else 9213 case $host_os in 9214 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9216 hardcode_libdir_flag_spec='-R$libdir' 9217 ;; 9218 *) 9219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9220 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9221 ;; 9222 esac 9223 fi 9224 else 9225 ld_shlibs=no 9226 fi 9227 ;; 9228 9229 os2*) 9230 hardcode_libdir_flag_spec='-L$libdir' 9231 hardcode_minus_L=yes 9232 allow_undefined_flag=unsupported 9233 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' 9234 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9235 ;; 9236 9237 osf3*) 9238 if test "$GCC" = yes; then 9239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9240 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' 9241 else 9242 allow_undefined_flag=' -expect_unresolved \*' 9243 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' 9244 fi 9245 archive_cmds_need_lc='no' 9246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9247 hardcode_libdir_separator=: 9248 ;; 9249 9250 osf4* | osf5*) # as osf3* with the addition of -msym flag 9251 if test "$GCC" = yes; then 9252 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9253 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' 9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9255 else 9256 allow_undefined_flag=' -expect_unresolved \*' 9257 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' 9258 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~ 9259 $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' 9260 9261 # Both c and cxx compiler support -rpath directly 9262 hardcode_libdir_flag_spec='-rpath $libdir' 9263 fi 9264 archive_cmds_need_lc='no' 9265 hardcode_libdir_separator=: 9266 ;; 9267 9268 solaris*) 9269 no_undefined_flag=' -z defs' 9270 if test "$GCC" = yes; then 9271 wlarc='${wl}' 9272 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9274 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9275 else 9276 case `$CC -V 2>&1` in 9277 *"Compilers 5.0"*) 9278 wlarc='' 9279 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9281 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9282 ;; 9283 *) 9284 wlarc='${wl}' 9285 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9286 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9287 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9288 ;; 9289 esac 9290 fi 9291 hardcode_libdir_flag_spec='-R$libdir' 9292 hardcode_shlibpath_var=no 9293 case $host_os in 9294 solaris2.[0-5] | solaris2.[0-5].*) ;; 9295 *) 9296 # The compiler driver will combine and reorder linker options, 9297 # but understands `-z linker_flag'. GCC discards it without `$wl', 9298 # but is careful enough not to reorder. 9299 # Supported since Solaris 2.6 (maybe 2.5.1?) 9300 if test "$GCC" = yes; then 9301 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9302 else 9303 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9304 fi 9305 ;; 9306 esac 9307 link_all_deplibs=yes 9308 ;; 9309 9310 sunos4*) 9311 if test "x$host_vendor" = xsequent; then 9312 # Use $CC to link under sequent, because it throws in some extra .o 9313 # files that make .init and .fini sections work. 9314 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9315 else 9316 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9317 fi 9318 hardcode_libdir_flag_spec='-L$libdir' 9319 hardcode_direct=yes 9320 hardcode_minus_L=yes 9321 hardcode_shlibpath_var=no 9322 ;; 9323 9324 sysv4) 9325 case $host_vendor in 9326 sni) 9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9328 hardcode_direct=yes # is this really true??? 9329 ;; 9330 siemens) 9331 ## LD is ld it makes a PLAMLIB 9332 ## CC just makes a GrossModule. 9333 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9334 reload_cmds='$CC -r -o $output$reload_objs' 9335 hardcode_direct=no 9336 ;; 9337 motorola) 9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9339 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9340 ;; 9341 esac 9342 runpath_var='LD_RUN_PATH' 9343 hardcode_shlibpath_var=no 9344 ;; 9345 9346 sysv4.3*) 9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9348 hardcode_shlibpath_var=no 9349 export_dynamic_flag_spec='-Bexport' 9350 ;; 9351 9352 sysv4*MP*) 9353 if test -d /usr/nec; then 9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9355 hardcode_shlibpath_var=no 9356 runpath_var=LD_RUN_PATH 9357 hardcode_runpath_var=yes 9358 ld_shlibs=yes 9359 fi 9360 ;; 9361 9362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9363 no_undefined_flag='${wl}-z,text' 9364 archive_cmds_need_lc=no 9365 hardcode_shlibpath_var=no 9366 runpath_var='LD_RUN_PATH' 9367 9368 if test "$GCC" = yes; then 9369 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9370 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9371 else 9372 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9373 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9374 fi 9375 ;; 9376 9377 sysv5* | sco3.2v5* | sco5v6*) 9378 # Note: We can NOT use -z defs as we might desire, because we do not 9379 # link with -lc, and that would cause any symbols used from libc to 9380 # always be unresolved, which means just about no library would 9381 # ever link correctly. If we're not using GNU ld we use -z text 9382 # though, which does catch some bad symbols but isn't as heavy-handed 9383 # as -z defs. 9384 no_undefined_flag='${wl}-z,text' 9385 allow_undefined_flag='${wl}-z,nodefs' 9386 archive_cmds_need_lc=no 9387 hardcode_shlibpath_var=no 9388 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9389 hardcode_libdir_separator=':' 9390 link_all_deplibs=yes 9391 export_dynamic_flag_spec='${wl}-Bexport' 9392 runpath_var='LD_RUN_PATH' 9393 9394 if test "$GCC" = yes; then 9395 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9396 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9397 else 9398 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9399 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9400 fi 9401 ;; 9402 9403 uts4*) 9404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9405 hardcode_libdir_flag_spec='-L$libdir' 9406 hardcode_shlibpath_var=no 9407 ;; 9408 9409 *) 9410 ld_shlibs=no 9411 ;; 9412 esac 9413 9414 if test x$host_vendor = xsni; then 9415 case $host in 9416 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9417 export_dynamic_flag_spec='${wl}-Blargedynsym' 9418 ;; 9419 esac 9420 fi 9421 fi 9422 9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9424$as_echo "$ld_shlibs" >&6; } 9425test "$ld_shlibs" = no && can_build_shared=no 9426 9427with_gnu_ld=$with_gnu_ld 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443# 9444# Do we need to explicitly link libc? 9445# 9446case "x$archive_cmds_need_lc" in 9447x|xyes) 9448 # Assume -lc should be added 9449 archive_cmds_need_lc=yes 9450 9451 if test "$enable_shared" = yes && test "$GCC" = yes; then 9452 case $archive_cmds in 9453 *'~'*) 9454 # FIXME: we may have to deal with multi-command sequences. 9455 ;; 9456 '$CC '*) 9457 # Test whether the compiler implicitly links with -lc since on some 9458 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9459 # to ld, don't add -lc before -lgcc. 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9461$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9462if ${lt_cv_archive_cmds_need_lc+:} false; then : 9463 $as_echo_n "(cached) " >&6 9464else 9465 $RM conftest* 9466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9467 9468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9469 (eval $ac_compile) 2>&5 9470 ac_status=$? 9471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9472 test $ac_status = 0; } 2>conftest.err; then 9473 soname=conftest 9474 lib=conftest 9475 libobjs=conftest.$ac_objext 9476 deplibs= 9477 wl=$lt_prog_compiler_wl 9478 pic_flag=$lt_prog_compiler_pic 9479 compiler_flags=-v 9480 linker_flags=-v 9481 verstring= 9482 output_objdir=. 9483 libname=conftest 9484 lt_save_allow_undefined_flag=$allow_undefined_flag 9485 allow_undefined_flag= 9486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9487 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9488 ac_status=$? 9489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9490 test $ac_status = 0; } 9491 then 9492 lt_cv_archive_cmds_need_lc=no 9493 else 9494 lt_cv_archive_cmds_need_lc=yes 9495 fi 9496 allow_undefined_flag=$lt_save_allow_undefined_flag 9497 else 9498 cat conftest.err 1>&5 9499 fi 9500 $RM conftest* 9501 9502fi 9503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9504$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9505 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9506 ;; 9507 esac 9508 fi 9509 ;; 9510esac 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9669$as_echo_n "checking dynamic linker characteristics... " >&6; } 9670 9671if test "$GCC" = yes; then 9672 case $host_os in 9673 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9674 *) lt_awk_arg="/^libraries:/" ;; 9675 esac 9676 case $host_os in 9677 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9678 *) lt_sed_strip_eq="s,=/,/,g" ;; 9679 esac 9680 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9681 case $lt_search_path_spec in 9682 *\;*) 9683 # if the path contains ";" then we assume it to be the separator 9684 # otherwise default to the standard path separator (i.e. ":") - it is 9685 # assumed that no part of a normal pathname contains ";" but that should 9686 # okay in the real world where ";" in dirpaths is itself problematic. 9687 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9688 ;; 9689 *) 9690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9691 ;; 9692 esac 9693 # Ok, now we have the path, separated by spaces, we can step through it 9694 # and add multilib dir if necessary. 9695 lt_tmp_lt_search_path_spec= 9696 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9697 for lt_sys_path in $lt_search_path_spec; do 9698 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9699 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9700 else 9701 test -d "$lt_sys_path" && \ 9702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9703 fi 9704 done 9705 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9706BEGIN {RS=" "; FS="/|\n";} { 9707 lt_foo=""; 9708 lt_count=0; 9709 for (lt_i = NF; lt_i > 0; lt_i--) { 9710 if ($lt_i != "" && $lt_i != ".") { 9711 if ($lt_i == "..") { 9712 lt_count++; 9713 } else { 9714 if (lt_count == 0) { 9715 lt_foo="/" $lt_i lt_foo; 9716 } else { 9717 lt_count--; 9718 } 9719 } 9720 } 9721 } 9722 if (lt_foo != "") { lt_freq[lt_foo]++; } 9723 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9724}'` 9725 # AWK program above erroneously prepends '/' to C:/dos/paths 9726 # for these hosts. 9727 case $host_os in 9728 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9729 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9730 esac 9731 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9732else 9733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9734fi 9735library_names_spec= 9736libname_spec='lib$name' 9737soname_spec= 9738shrext_cmds=".so" 9739postinstall_cmds= 9740postuninstall_cmds= 9741finish_cmds= 9742finish_eval= 9743shlibpath_var= 9744shlibpath_overrides_runpath=unknown 9745version_type=none 9746dynamic_linker="$host_os ld.so" 9747sys_lib_dlsearch_path_spec="/lib /usr/lib" 9748need_lib_prefix=unknown 9749hardcode_into_libs=no 9750 9751# when you set need_version to no, make sure it does not cause -set_version 9752# flags to be left without arguments 9753need_version=unknown 9754 9755case $host_os in 9756aix3*) 9757 version_type=linux 9758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9759 shlibpath_var=LIBPATH 9760 9761 # AIX 3 has no versioning support, so we append a major version to the name. 9762 soname_spec='${libname}${release}${shared_ext}$major' 9763 ;; 9764 9765aix[4-9]*) 9766 version_type=linux 9767 need_lib_prefix=no 9768 need_version=no 9769 hardcode_into_libs=yes 9770 if test "$host_cpu" = ia64; then 9771 # AIX 5 supports IA64 9772 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9773 shlibpath_var=LD_LIBRARY_PATH 9774 else 9775 # With GCC up to 2.95.x, collect2 would create an import file 9776 # for dependence libraries. The import file would start with 9777 # the line `#! .'. This would cause the generated library to 9778 # depend on `.', always an invalid library. This was fixed in 9779 # development snapshots of GCC prior to 3.0. 9780 case $host_os in 9781 aix4 | aix4.[01] | aix4.[01].*) 9782 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9783 echo ' yes ' 9784 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9785 : 9786 else 9787 can_build_shared=no 9788 fi 9789 ;; 9790 esac 9791 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9792 # soname into executable. Probably we can add versioning support to 9793 # collect2, so additional links can be useful in future. 9794 if test "$aix_use_runtimelinking" = yes; then 9795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9796 # instead of lib<name>.a to let people know that these are not 9797 # typical AIX shared libraries. 9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9799 else 9800 # We preserve .a as extension for shared libraries through AIX4.2 9801 # and later when we are not doing run time linking. 9802 library_names_spec='${libname}${release}.a $libname.a' 9803 soname_spec='${libname}${release}${shared_ext}$major' 9804 fi 9805 shlibpath_var=LIBPATH 9806 fi 9807 ;; 9808 9809amigaos*) 9810 case $host_cpu in 9811 powerpc) 9812 # Since July 2007 AmigaOS4 officially supports .so libraries. 9813 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9815 ;; 9816 m68k) 9817 library_names_spec='$libname.ixlibrary $libname.a' 9818 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9819 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' 9820 ;; 9821 esac 9822 ;; 9823 9824beos*) 9825 library_names_spec='${libname}${shared_ext}' 9826 dynamic_linker="$host_os ld.so" 9827 shlibpath_var=LIBRARY_PATH 9828 ;; 9829 9830bsdi[45]*) 9831 version_type=linux 9832 need_version=no 9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9834 soname_spec='${libname}${release}${shared_ext}$major' 9835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9836 shlibpath_var=LD_LIBRARY_PATH 9837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9839 # the default ld.so.conf also contains /usr/contrib/lib and 9840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9841 # libtool to hard-code these into programs 9842 ;; 9843 9844cygwin* | mingw* | pw32* | cegcc*) 9845 version_type=windows 9846 shrext_cmds=".dll" 9847 need_version=no 9848 need_lib_prefix=no 9849 9850 case $GCC,$host_os in 9851 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9852 library_names_spec='$libname.dll.a' 9853 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9854 postinstall_cmds='base_file=`basename \${file}`~ 9855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9856 dldir=$destdir/`dirname \$dlpath`~ 9857 test -d \$dldir || mkdir -p \$dldir~ 9858 $install_prog $dir/$dlname \$dldir/$dlname~ 9859 chmod a+x \$dldir/$dlname~ 9860 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9861 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9862 fi' 9863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9864 dlpath=$dir/\$dldll~ 9865 $RM \$dlpath' 9866 shlibpath_overrides_runpath=yes 9867 9868 case $host_os in 9869 cygwin*) 9870 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9871 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9872 9873 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9874 ;; 9875 mingw* | cegcc*) 9876 # MinGW DLLs use traditional 'lib' prefix 9877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9878 ;; 9879 pw32*) 9880 # pw32 DLLs use 'pw' prefix rather than 'lib' 9881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9882 ;; 9883 esac 9884 ;; 9885 9886 *) 9887 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9888 ;; 9889 esac 9890 dynamic_linker='Win32 ld.exe' 9891 # FIXME: first we should search . and the directory the executable is in 9892 shlibpath_var=PATH 9893 ;; 9894 9895darwin* | rhapsody*) 9896 dynamic_linker="$host_os dyld" 9897 version_type=darwin 9898 need_lib_prefix=no 9899 need_version=no 9900 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9901 soname_spec='${libname}${release}${major}$shared_ext' 9902 shlibpath_overrides_runpath=yes 9903 shlibpath_var=DYLD_LIBRARY_PATH 9904 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9905 9906 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9908 ;; 9909 9910dgux*) 9911 version_type=linux 9912 need_lib_prefix=no 9913 need_version=no 9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9915 soname_spec='${libname}${release}${shared_ext}$major' 9916 shlibpath_var=LD_LIBRARY_PATH 9917 ;; 9918 9919freebsd* | dragonfly*) 9920 # DragonFly does not have aout. When/if they implement a new 9921 # versioning mechanism, adjust this. 9922 if test -x /usr/bin/objformat; then 9923 objformat=`/usr/bin/objformat` 9924 else 9925 case $host_os in 9926 freebsd[23].*) objformat=aout ;; 9927 *) objformat=elf ;; 9928 esac 9929 fi 9930 version_type=freebsd-$objformat 9931 case $version_type in 9932 freebsd-elf*) 9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9934 need_version=no 9935 need_lib_prefix=no 9936 ;; 9937 freebsd-*) 9938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9939 need_version=yes 9940 ;; 9941 esac 9942 shlibpath_var=LD_LIBRARY_PATH 9943 case $host_os in 9944 freebsd2.*) 9945 shlibpath_overrides_runpath=yes 9946 ;; 9947 freebsd3.[01]* | freebsdelf3.[01]*) 9948 shlibpath_overrides_runpath=yes 9949 hardcode_into_libs=yes 9950 ;; 9951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9953 shlibpath_overrides_runpath=no 9954 hardcode_into_libs=yes 9955 ;; 9956 *) # from 4.6 on, and DragonFly 9957 shlibpath_overrides_runpath=yes 9958 hardcode_into_libs=yes 9959 ;; 9960 esac 9961 ;; 9962 9963gnu*) 9964 version_type=linux 9965 need_lib_prefix=no 9966 need_version=no 9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9968 soname_spec='${libname}${release}${shared_ext}$major' 9969 shlibpath_var=LD_LIBRARY_PATH 9970 hardcode_into_libs=yes 9971 ;; 9972 9973haiku*) 9974 version_type=linux 9975 need_lib_prefix=no 9976 need_version=no 9977 dynamic_linker="$host_os runtime_loader" 9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9979 soname_spec='${libname}${release}${shared_ext}$major' 9980 shlibpath_var=LIBRARY_PATH 9981 shlibpath_overrides_runpath=yes 9982 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 9983 hardcode_into_libs=yes 9984 ;; 9985 9986hpux9* | hpux10* | hpux11*) 9987 # Give a soname corresponding to the major version so that dld.sl refuses to 9988 # link against other versions. 9989 version_type=sunos 9990 need_lib_prefix=no 9991 need_version=no 9992 case $host_cpu in 9993 ia64*) 9994 shrext_cmds='.so' 9995 hardcode_into_libs=yes 9996 dynamic_linker="$host_os dld.so" 9997 shlibpath_var=LD_LIBRARY_PATH 9998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10000 soname_spec='${libname}${release}${shared_ext}$major' 10001 if test "X$HPUX_IA64_MODE" = X32; then 10002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10003 else 10004 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10005 fi 10006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10007 ;; 10008 hppa*64*) 10009 shrext_cmds='.sl' 10010 hardcode_into_libs=yes 10011 dynamic_linker="$host_os dld.sl" 10012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10015 soname_spec='${libname}${release}${shared_ext}$major' 10016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10018 ;; 10019 *) 10020 shrext_cmds='.sl' 10021 dynamic_linker="$host_os dld.sl" 10022 shlibpath_var=SHLIB_PATH 10023 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10025 soname_spec='${libname}${release}${shared_ext}$major' 10026 ;; 10027 esac 10028 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10029 postinstall_cmds='chmod 555 $lib' 10030 # or fails outright, so override atomically: 10031 install_override_mode=555 10032 ;; 10033 10034interix[3-9]*) 10035 version_type=linux 10036 need_lib_prefix=no 10037 need_version=no 10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10039 soname_spec='${libname}${release}${shared_ext}$major' 10040 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10041 shlibpath_var=LD_LIBRARY_PATH 10042 shlibpath_overrides_runpath=no 10043 hardcode_into_libs=yes 10044 ;; 10045 10046irix5* | irix6* | nonstopux*) 10047 case $host_os in 10048 nonstopux*) version_type=nonstopux ;; 10049 *) 10050 if test "$lt_cv_prog_gnu_ld" = yes; then 10051 version_type=linux 10052 else 10053 version_type=irix 10054 fi ;; 10055 esac 10056 need_lib_prefix=no 10057 need_version=no 10058 soname_spec='${libname}${release}${shared_ext}$major' 10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10060 case $host_os in 10061 irix5* | nonstopux*) 10062 libsuff= shlibsuff= 10063 ;; 10064 *) 10065 case $LD in # libtool.m4 will add one of these switches to LD 10066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10067 libsuff= shlibsuff= libmagic=32-bit;; 10068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10069 libsuff=32 shlibsuff=N32 libmagic=N32;; 10070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10071 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10072 *) libsuff= shlibsuff= libmagic=never-match;; 10073 esac 10074 ;; 10075 esac 10076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10077 shlibpath_overrides_runpath=no 10078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10080 hardcode_into_libs=yes 10081 ;; 10082 10083# No shared lib support for Linux oldld, aout, or coff. 10084linux*oldld* | linux*aout* | linux*coff*) 10085 dynamic_linker=no 10086 ;; 10087 10088# This must be Linux ELF. 10089linux* | k*bsd*-gnu | kopensolaris*-gnu) 10090 version_type=linux 10091 need_lib_prefix=no 10092 need_version=no 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10096 shlibpath_var=LD_LIBRARY_PATH 10097 shlibpath_overrides_runpath=no 10098 10099 # Some binutils ld are patched to set DT_RUNPATH 10100 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10101 $as_echo_n "(cached) " >&6 10102else 10103 lt_cv_shlibpath_overrides_runpath=no 10104 save_LDFLAGS=$LDFLAGS 10105 save_libdir=$libdir 10106 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10107 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10109/* end confdefs.h. */ 10110 10111int 10112main () 10113{ 10114 10115 ; 10116 return 0; 10117} 10118_ACEOF 10119if ac_fn_c_try_link "$LINENO"; then : 10120 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10121 lt_cv_shlibpath_overrides_runpath=yes 10122fi 10123fi 10124rm -f core conftest.err conftest.$ac_objext \ 10125 conftest$ac_exeext conftest.$ac_ext 10126 LDFLAGS=$save_LDFLAGS 10127 libdir=$save_libdir 10128 10129fi 10130 10131 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10132 10133 # This implies no fast_install, which is unacceptable. 10134 # Some rework will be needed to allow for fast_install 10135 # before this can be enabled. 10136 hardcode_into_libs=yes 10137 10138 # Append ld.so.conf contents to the search path 10139 if test -f /etc/ld.so.conf; then 10140 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' ' '` 10141 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10142 fi 10143 10144 # We used to test for /lib/ld.so.1 and disable shared libraries on 10145 # powerpc, because MkLinux only supported shared libraries with the 10146 # GNU dynamic linker. Since this was broken with cross compilers, 10147 # most powerpc-linux boxes support dynamic linking these days and 10148 # people can always --disable-shared, the test was removed, and we 10149 # assume the GNU/Linux dynamic linker is in use. 10150 dynamic_linker='GNU/Linux ld.so' 10151 ;; 10152 10153netbsd*) 10154 version_type=sunos 10155 need_lib_prefix=no 10156 need_version=no 10157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10160 dynamic_linker='NetBSD (a.out) ld.so' 10161 else 10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10163 soname_spec='${libname}${release}${shared_ext}$major' 10164 dynamic_linker='NetBSD ld.elf_so' 10165 fi 10166 shlibpath_var=LD_LIBRARY_PATH 10167 shlibpath_overrides_runpath=yes 10168 hardcode_into_libs=yes 10169 ;; 10170 10171newsos6) 10172 version_type=linux 10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10174 shlibpath_var=LD_LIBRARY_PATH 10175 shlibpath_overrides_runpath=yes 10176 ;; 10177 10178*nto* | *qnx*) 10179 version_type=qnx 10180 need_lib_prefix=no 10181 need_version=no 10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10183 soname_spec='${libname}${release}${shared_ext}$major' 10184 shlibpath_var=LD_LIBRARY_PATH 10185 shlibpath_overrides_runpath=no 10186 hardcode_into_libs=yes 10187 dynamic_linker='ldqnx.so' 10188 ;; 10189 10190openbsd*) 10191 version_type=sunos 10192 sys_lib_dlsearch_path_spec="/usr/lib" 10193 need_lib_prefix=no 10194 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10195 case $host_os in 10196 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10197 *) need_version=no ;; 10198 esac 10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10201 shlibpath_var=LD_LIBRARY_PATH 10202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10203 case $host_os in 10204 openbsd2.[89] | openbsd2.[89].*) 10205 shlibpath_overrides_runpath=no 10206 ;; 10207 *) 10208 shlibpath_overrides_runpath=yes 10209 ;; 10210 esac 10211 else 10212 shlibpath_overrides_runpath=yes 10213 fi 10214 ;; 10215 10216os2*) 10217 libname_spec='$name' 10218 shrext_cmds=".dll" 10219 need_lib_prefix=no 10220 library_names_spec='$libname${shared_ext} $libname.a' 10221 dynamic_linker='OS/2 ld.exe' 10222 shlibpath_var=LIBPATH 10223 ;; 10224 10225osf3* | osf4* | osf5*) 10226 version_type=osf 10227 need_lib_prefix=no 10228 need_version=no 10229 soname_spec='${libname}${release}${shared_ext}$major' 10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10231 shlibpath_var=LD_LIBRARY_PATH 10232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10233 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10234 ;; 10235 10236rdos*) 10237 dynamic_linker=no 10238 ;; 10239 10240solaris*) 10241 version_type=linux 10242 need_lib_prefix=no 10243 need_version=no 10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10245 soname_spec='${libname}${release}${shared_ext}$major' 10246 shlibpath_var=LD_LIBRARY_PATH 10247 shlibpath_overrides_runpath=yes 10248 hardcode_into_libs=yes 10249 # ldd complains unless libraries are executable 10250 postinstall_cmds='chmod +x $lib' 10251 ;; 10252 10253sunos4*) 10254 version_type=sunos 10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10257 shlibpath_var=LD_LIBRARY_PATH 10258 shlibpath_overrides_runpath=yes 10259 if test "$with_gnu_ld" = yes; then 10260 need_lib_prefix=no 10261 fi 10262 need_version=yes 10263 ;; 10264 10265sysv4 | sysv4.3*) 10266 version_type=linux 10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10268 soname_spec='${libname}${release}${shared_ext}$major' 10269 shlibpath_var=LD_LIBRARY_PATH 10270 case $host_vendor in 10271 sni) 10272 shlibpath_overrides_runpath=no 10273 need_lib_prefix=no 10274 runpath_var=LD_RUN_PATH 10275 ;; 10276 siemens) 10277 need_lib_prefix=no 10278 ;; 10279 motorola) 10280 need_lib_prefix=no 10281 need_version=no 10282 shlibpath_overrides_runpath=no 10283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10284 ;; 10285 esac 10286 ;; 10287 10288sysv4*MP*) 10289 if test -d /usr/nec ;then 10290 version_type=linux 10291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10292 soname_spec='$libname${shared_ext}.$major' 10293 shlibpath_var=LD_LIBRARY_PATH 10294 fi 10295 ;; 10296 10297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10298 version_type=freebsd-elf 10299 need_lib_prefix=no 10300 need_version=no 10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10302 soname_spec='${libname}${release}${shared_ext}$major' 10303 shlibpath_var=LD_LIBRARY_PATH 10304 shlibpath_overrides_runpath=yes 10305 hardcode_into_libs=yes 10306 if test "$with_gnu_ld" = yes; then 10307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10308 else 10309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10310 case $host_os in 10311 sco3.2v5*) 10312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10313 ;; 10314 esac 10315 fi 10316 sys_lib_dlsearch_path_spec='/usr/lib' 10317 ;; 10318 10319tpf*) 10320 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10321 version_type=linux 10322 need_lib_prefix=no 10323 need_version=no 10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10325 shlibpath_var=LD_LIBRARY_PATH 10326 shlibpath_overrides_runpath=no 10327 hardcode_into_libs=yes 10328 ;; 10329 10330uts4*) 10331 version_type=linux 10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10333 soname_spec='${libname}${release}${shared_ext}$major' 10334 shlibpath_var=LD_LIBRARY_PATH 10335 ;; 10336 10337*) 10338 dynamic_linker=no 10339 ;; 10340esac 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10342$as_echo "$dynamic_linker" >&6; } 10343test "$dynamic_linker" = no && can_build_shared=no 10344 10345variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10346if test "$GCC" = yes; then 10347 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10348fi 10349 10350if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10351 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10352fi 10353if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10354 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10355fi 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10449$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10450hardcode_action= 10451if test -n "$hardcode_libdir_flag_spec" || 10452 test -n "$runpath_var" || 10453 test "X$hardcode_automatic" = "Xyes" ; then 10454 10455 # We can hardcode non-existent directories. 10456 if test "$hardcode_direct" != no && 10457 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10458 # have to relink, otherwise we might link with an installed library 10459 # when we should be linking with a yet-to-be-installed one 10460 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10461 test "$hardcode_minus_L" != no; then 10462 # Linking always hardcodes the temporary library directory. 10463 hardcode_action=relink 10464 else 10465 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10466 hardcode_action=immediate 10467 fi 10468else 10469 # We cannot hardcode anything, or else we can only hardcode existing 10470 # directories. 10471 hardcode_action=unsupported 10472fi 10473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10474$as_echo "$hardcode_action" >&6; } 10475 10476if test "$hardcode_action" = relink || 10477 test "$inherit_rpath" = yes; then 10478 # Fast installation is not supported 10479 enable_fast_install=no 10480elif test "$shlibpath_overrides_runpath" = yes || 10481 test "$enable_shared" = no; then 10482 # Fast installation is not necessary 10483 enable_fast_install=needless 10484fi 10485 10486 10487 10488 10489 10490 10491 if test "x$enable_dlopen" != xyes; then 10492 enable_dlopen=unknown 10493 enable_dlopen_self=unknown 10494 enable_dlopen_self_static=unknown 10495else 10496 lt_cv_dlopen=no 10497 lt_cv_dlopen_libs= 10498 10499 case $host_os in 10500 beos*) 10501 lt_cv_dlopen="load_add_on" 10502 lt_cv_dlopen_libs= 10503 lt_cv_dlopen_self=yes 10504 ;; 10505 10506 mingw* | pw32* | cegcc*) 10507 lt_cv_dlopen="LoadLibrary" 10508 lt_cv_dlopen_libs= 10509 ;; 10510 10511 cygwin*) 10512 lt_cv_dlopen="dlopen" 10513 lt_cv_dlopen_libs= 10514 ;; 10515 10516 darwin*) 10517 # if libdl is installed we need to link against it 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10519$as_echo_n "checking for dlopen in -ldl... " >&6; } 10520if ${ac_cv_lib_dl_dlopen+:} false; then : 10521 $as_echo_n "(cached) " >&6 10522else 10523 ac_check_lib_save_LIBS=$LIBS 10524LIBS="-ldl $LIBS" 10525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10526/* end confdefs.h. */ 10527 10528/* Override any GCC internal prototype to avoid an error. 10529 Use char because int might match the return type of a GCC 10530 builtin and then its argument prototype would still apply. */ 10531#ifdef __cplusplus 10532extern "C" 10533#endif 10534char dlopen (); 10535int 10536main () 10537{ 10538return dlopen (); 10539 ; 10540 return 0; 10541} 10542_ACEOF 10543if ac_fn_c_try_link "$LINENO"; then : 10544 ac_cv_lib_dl_dlopen=yes 10545else 10546 ac_cv_lib_dl_dlopen=no 10547fi 10548rm -f core conftest.err conftest.$ac_objext \ 10549 conftest$ac_exeext conftest.$ac_ext 10550LIBS=$ac_check_lib_save_LIBS 10551fi 10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10553$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10554if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10556else 10557 10558 lt_cv_dlopen="dyld" 10559 lt_cv_dlopen_libs= 10560 lt_cv_dlopen_self=yes 10561 10562fi 10563 10564 ;; 10565 10566 *) 10567 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10568if test "x$ac_cv_func_shl_load" = xyes; then : 10569 lt_cv_dlopen="shl_load" 10570else 10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10572$as_echo_n "checking for shl_load in -ldld... " >&6; } 10573if ${ac_cv_lib_dld_shl_load+:} false; then : 10574 $as_echo_n "(cached) " >&6 10575else 10576 ac_check_lib_save_LIBS=$LIBS 10577LIBS="-ldld $LIBS" 10578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10579/* end confdefs.h. */ 10580 10581/* Override any GCC internal prototype to avoid an error. 10582 Use char because int might match the return type of a GCC 10583 builtin and then its argument prototype would still apply. */ 10584#ifdef __cplusplus 10585extern "C" 10586#endif 10587char shl_load (); 10588int 10589main () 10590{ 10591return shl_load (); 10592 ; 10593 return 0; 10594} 10595_ACEOF 10596if ac_fn_c_try_link "$LINENO"; then : 10597 ac_cv_lib_dld_shl_load=yes 10598else 10599 ac_cv_lib_dld_shl_load=no 10600fi 10601rm -f core conftest.err conftest.$ac_objext \ 10602 conftest$ac_exeext conftest.$ac_ext 10603LIBS=$ac_check_lib_save_LIBS 10604fi 10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10606$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10607if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10608 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10609else 10610 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10611if test "x$ac_cv_func_dlopen" = xyes; then : 10612 lt_cv_dlopen="dlopen" 10613else 10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10615$as_echo_n "checking for dlopen in -ldl... " >&6; } 10616if ${ac_cv_lib_dl_dlopen+:} false; then : 10617 $as_echo_n "(cached) " >&6 10618else 10619 ac_check_lib_save_LIBS=$LIBS 10620LIBS="-ldl $LIBS" 10621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10622/* end confdefs.h. */ 10623 10624/* Override any GCC internal prototype to avoid an error. 10625 Use char because int might match the return type of a GCC 10626 builtin and then its argument prototype would still apply. */ 10627#ifdef __cplusplus 10628extern "C" 10629#endif 10630char dlopen (); 10631int 10632main () 10633{ 10634return dlopen (); 10635 ; 10636 return 0; 10637} 10638_ACEOF 10639if ac_fn_c_try_link "$LINENO"; then : 10640 ac_cv_lib_dl_dlopen=yes 10641else 10642 ac_cv_lib_dl_dlopen=no 10643fi 10644rm -f core conftest.err conftest.$ac_objext \ 10645 conftest$ac_exeext conftest.$ac_ext 10646LIBS=$ac_check_lib_save_LIBS 10647fi 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10649$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10650if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10652else 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10654$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10655if ${ac_cv_lib_svld_dlopen+:} false; then : 10656 $as_echo_n "(cached) " >&6 10657else 10658 ac_check_lib_save_LIBS=$LIBS 10659LIBS="-lsvld $LIBS" 10660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10661/* end confdefs.h. */ 10662 10663/* Override any GCC internal prototype to avoid an error. 10664 Use char because int might match the return type of a GCC 10665 builtin and then its argument prototype would still apply. */ 10666#ifdef __cplusplus 10667extern "C" 10668#endif 10669char dlopen (); 10670int 10671main () 10672{ 10673return dlopen (); 10674 ; 10675 return 0; 10676} 10677_ACEOF 10678if ac_fn_c_try_link "$LINENO"; then : 10679 ac_cv_lib_svld_dlopen=yes 10680else 10681 ac_cv_lib_svld_dlopen=no 10682fi 10683rm -f core conftest.err conftest.$ac_objext \ 10684 conftest$ac_exeext conftest.$ac_ext 10685LIBS=$ac_check_lib_save_LIBS 10686fi 10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10688$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10689if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10691else 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10693$as_echo_n "checking for dld_link in -ldld... " >&6; } 10694if ${ac_cv_lib_dld_dld_link+:} false; then : 10695 $as_echo_n "(cached) " >&6 10696else 10697 ac_check_lib_save_LIBS=$LIBS 10698LIBS="-ldld $LIBS" 10699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10700/* end confdefs.h. */ 10701 10702/* Override any GCC internal prototype to avoid an error. 10703 Use char because int might match the return type of a GCC 10704 builtin and then its argument prototype would still apply. */ 10705#ifdef __cplusplus 10706extern "C" 10707#endif 10708char dld_link (); 10709int 10710main () 10711{ 10712return dld_link (); 10713 ; 10714 return 0; 10715} 10716_ACEOF 10717if ac_fn_c_try_link "$LINENO"; then : 10718 ac_cv_lib_dld_dld_link=yes 10719else 10720 ac_cv_lib_dld_dld_link=no 10721fi 10722rm -f core conftest.err conftest.$ac_objext \ 10723 conftest$ac_exeext conftest.$ac_ext 10724LIBS=$ac_check_lib_save_LIBS 10725fi 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10727$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10728if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10729 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10730fi 10731 10732 10733fi 10734 10735 10736fi 10737 10738 10739fi 10740 10741 10742fi 10743 10744 10745fi 10746 10747 ;; 10748 esac 10749 10750 if test "x$lt_cv_dlopen" != xno; then 10751 enable_dlopen=yes 10752 else 10753 enable_dlopen=no 10754 fi 10755 10756 case $lt_cv_dlopen in 10757 dlopen) 10758 save_CPPFLAGS="$CPPFLAGS" 10759 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10760 10761 save_LDFLAGS="$LDFLAGS" 10762 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10763 10764 save_LIBS="$LIBS" 10765 LIBS="$lt_cv_dlopen_libs $LIBS" 10766 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10768$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10769if ${lt_cv_dlopen_self+:} false; then : 10770 $as_echo_n "(cached) " >&6 10771else 10772 if test "$cross_compiling" = yes; then : 10773 lt_cv_dlopen_self=cross 10774else 10775 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10776 lt_status=$lt_dlunknown 10777 cat > conftest.$ac_ext <<_LT_EOF 10778#line 10778 "configure" 10779#include "confdefs.h" 10780 10781#if HAVE_DLFCN_H 10782#include <dlfcn.h> 10783#endif 10784 10785#include <stdio.h> 10786 10787#ifdef RTLD_GLOBAL 10788# define LT_DLGLOBAL RTLD_GLOBAL 10789#else 10790# ifdef DL_GLOBAL 10791# define LT_DLGLOBAL DL_GLOBAL 10792# else 10793# define LT_DLGLOBAL 0 10794# endif 10795#endif 10796 10797/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10798 find out it does not work in some platform. */ 10799#ifndef LT_DLLAZY_OR_NOW 10800# ifdef RTLD_LAZY 10801# define LT_DLLAZY_OR_NOW RTLD_LAZY 10802# else 10803# ifdef DL_LAZY 10804# define LT_DLLAZY_OR_NOW DL_LAZY 10805# else 10806# ifdef RTLD_NOW 10807# define LT_DLLAZY_OR_NOW RTLD_NOW 10808# else 10809# ifdef DL_NOW 10810# define LT_DLLAZY_OR_NOW DL_NOW 10811# else 10812# define LT_DLLAZY_OR_NOW 0 10813# endif 10814# endif 10815# endif 10816# endif 10817#endif 10818 10819/* When -fvisbility=hidden is used, assume the code has been annotated 10820 correspondingly for the symbols needed. */ 10821#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10822void fnord () __attribute__((visibility("default"))); 10823#endif 10824 10825void fnord () { int i=42; } 10826int main () 10827{ 10828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10829 int status = $lt_dlunknown; 10830 10831 if (self) 10832 { 10833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10834 else 10835 { 10836 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10837 else puts (dlerror ()); 10838 } 10839 /* dlclose (self); */ 10840 } 10841 else 10842 puts (dlerror ()); 10843 10844 return status; 10845} 10846_LT_EOF 10847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10848 (eval $ac_link) 2>&5 10849 ac_status=$? 10850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10851 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10852 (./conftest; exit; ) >&5 2>/dev/null 10853 lt_status=$? 10854 case x$lt_status in 10855 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10856 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10857 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10858 esac 10859 else : 10860 # compilation failed 10861 lt_cv_dlopen_self=no 10862 fi 10863fi 10864rm -fr conftest* 10865 10866 10867fi 10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10869$as_echo "$lt_cv_dlopen_self" >&6; } 10870 10871 if test "x$lt_cv_dlopen_self" = xyes; then 10872 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10874$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10875if ${lt_cv_dlopen_self_static+:} false; then : 10876 $as_echo_n "(cached) " >&6 10877else 10878 if test "$cross_compiling" = yes; then : 10879 lt_cv_dlopen_self_static=cross 10880else 10881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10882 lt_status=$lt_dlunknown 10883 cat > conftest.$ac_ext <<_LT_EOF 10884#line 10884 "configure" 10885#include "confdefs.h" 10886 10887#if HAVE_DLFCN_H 10888#include <dlfcn.h> 10889#endif 10890 10891#include <stdio.h> 10892 10893#ifdef RTLD_GLOBAL 10894# define LT_DLGLOBAL RTLD_GLOBAL 10895#else 10896# ifdef DL_GLOBAL 10897# define LT_DLGLOBAL DL_GLOBAL 10898# else 10899# define LT_DLGLOBAL 0 10900# endif 10901#endif 10902 10903/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10904 find out it does not work in some platform. */ 10905#ifndef LT_DLLAZY_OR_NOW 10906# ifdef RTLD_LAZY 10907# define LT_DLLAZY_OR_NOW RTLD_LAZY 10908# else 10909# ifdef DL_LAZY 10910# define LT_DLLAZY_OR_NOW DL_LAZY 10911# else 10912# ifdef RTLD_NOW 10913# define LT_DLLAZY_OR_NOW RTLD_NOW 10914# else 10915# ifdef DL_NOW 10916# define LT_DLLAZY_OR_NOW DL_NOW 10917# else 10918# define LT_DLLAZY_OR_NOW 0 10919# endif 10920# endif 10921# endif 10922# endif 10923#endif 10924 10925/* When -fvisbility=hidden is used, assume the code has been annotated 10926 correspondingly for the symbols needed. */ 10927#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10928void fnord () __attribute__((visibility("default"))); 10929#endif 10930 10931void fnord () { int i=42; } 10932int main () 10933{ 10934 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10935 int status = $lt_dlunknown; 10936 10937 if (self) 10938 { 10939 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10940 else 10941 { 10942 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10943 else puts (dlerror ()); 10944 } 10945 /* dlclose (self); */ 10946 } 10947 else 10948 puts (dlerror ()); 10949 10950 return status; 10951} 10952_LT_EOF 10953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10954 (eval $ac_link) 2>&5 10955 ac_status=$? 10956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10957 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10958 (./conftest; exit; ) >&5 2>/dev/null 10959 lt_status=$? 10960 case x$lt_status in 10961 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10962 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10963 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10964 esac 10965 else : 10966 # compilation failed 10967 lt_cv_dlopen_self_static=no 10968 fi 10969fi 10970rm -fr conftest* 10971 10972 10973fi 10974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10975$as_echo "$lt_cv_dlopen_self_static" >&6; } 10976 fi 10977 10978 CPPFLAGS="$save_CPPFLAGS" 10979 LDFLAGS="$save_LDFLAGS" 10980 LIBS="$save_LIBS" 10981 ;; 10982 esac 10983 10984 case $lt_cv_dlopen_self in 10985 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10986 *) enable_dlopen_self=unknown ;; 10987 esac 10988 10989 case $lt_cv_dlopen_self_static in 10990 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10991 *) enable_dlopen_self_static=unknown ;; 10992 esac 10993fi 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011striplib= 11012old_striplib= 11013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11014$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11015if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11016 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11017 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11019$as_echo "yes" >&6; } 11020else 11021# FIXME - insert some real tests, host_os isn't really good enough 11022 case $host_os in 11023 darwin*) 11024 if test -n "$STRIP" ; then 11025 striplib="$STRIP -x" 11026 old_striplib="$STRIP -S" 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11028$as_echo "yes" >&6; } 11029 else 11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11031$as_echo "no" >&6; } 11032 fi 11033 ;; 11034 *) 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11036$as_echo "no" >&6; } 11037 ;; 11038 esac 11039fi 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 # Report which library types will actually be built 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11054$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11056$as_echo "$can_build_shared" >&6; } 11057 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11059$as_echo_n "checking whether to build shared libraries... " >&6; } 11060 test "$can_build_shared" = "no" && enable_shared=no 11061 11062 # On AIX, shared libraries and static libraries use the same namespace, and 11063 # are all built from PIC. 11064 case $host_os in 11065 aix3*) 11066 test "$enable_shared" = yes && enable_static=no 11067 if test -n "$RANLIB"; then 11068 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11069 postinstall_cmds='$RANLIB $lib' 11070 fi 11071 ;; 11072 11073 aix[4-9]*) 11074 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11075 test "$enable_shared" = yes && enable_static=no 11076 fi 11077 ;; 11078 esac 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11080$as_echo "$enable_shared" >&6; } 11081 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11083$as_echo_n "checking whether to build static libraries... " >&6; } 11084 # Make sure either enable_shared or enable_static is yes. 11085 test "$enable_shared" = yes || enable_static=yes 11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11087$as_echo "$enable_static" >&6; } 11088 11089 11090 11091 11092fi 11093ac_ext=c 11094ac_cpp='$CPP $CPPFLAGS' 11095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11097ac_compiler_gnu=$ac_cv_c_compiler_gnu 11098 11099CC="$lt_save_CC" 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 ac_config_commands="$ac_config_commands libtool" 11114 11115 11116 11117 11118# Only expand once: 11119 11120 11121 11122ac_ext=cpp 11123ac_cpp='$CXXCPP $CPPFLAGS' 11124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11127if test -z "$CXX"; then 11128 if test -n "$CCC"; then 11129 CXX=$CCC 11130 else 11131 if test -n "$ac_tool_prefix"; then 11132 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11133 do 11134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11135set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11137$as_echo_n "checking for $ac_word... " >&6; } 11138if ${ac_cv_prog_CXX+:} false; then : 11139 $as_echo_n "(cached) " >&6 11140else 11141 if test -n "$CXX"; then 11142 ac_cv_prog_CXX="$CXX" # Let the user override the test. 11143else 11144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11145for as_dir in $PATH 11146do 11147 IFS=$as_save_IFS 11148 test -z "$as_dir" && as_dir=. 11149 for ac_exec_ext in '' $ac_executable_extensions; do 11150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11151 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11153 break 2 11154 fi 11155done 11156 done 11157IFS=$as_save_IFS 11158 11159fi 11160fi 11161CXX=$ac_cv_prog_CXX 11162if test -n "$CXX"; then 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 11164$as_echo "$CXX" >&6; } 11165else 11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11167$as_echo "no" >&6; } 11168fi 11169 11170 11171 test -n "$CXX" && break 11172 done 11173fi 11174if test -z "$CXX"; then 11175 ac_ct_CXX=$CXX 11176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11177do 11178 # Extract the first word of "$ac_prog", so it can be a program name with args. 11179set dummy $ac_prog; ac_word=$2 11180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11181$as_echo_n "checking for $ac_word... " >&6; } 11182if ${ac_cv_prog_ac_ct_CXX+:} false; then : 11183 $as_echo_n "(cached) " >&6 11184else 11185 if test -n "$ac_ct_CXX"; then 11186 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 11187else 11188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11189for as_dir in $PATH 11190do 11191 IFS=$as_save_IFS 11192 test -z "$as_dir" && as_dir=. 11193 for ac_exec_ext in '' $ac_executable_extensions; do 11194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11195 ac_cv_prog_ac_ct_CXX="$ac_prog" 11196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11197 break 2 11198 fi 11199done 11200 done 11201IFS=$as_save_IFS 11202 11203fi 11204fi 11205ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 11206if test -n "$ac_ct_CXX"; then 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 11208$as_echo "$ac_ct_CXX" >&6; } 11209else 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11211$as_echo "no" >&6; } 11212fi 11213 11214 11215 test -n "$ac_ct_CXX" && break 11216done 11217 11218 if test "x$ac_ct_CXX" = x; then 11219 CXX="g++" 11220 else 11221 case $cross_compiling:$ac_tool_warned in 11222yes:) 11223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11225ac_tool_warned=yes ;; 11226esac 11227 CXX=$ac_ct_CXX 11228 fi 11229fi 11230 11231 fi 11232fi 11233# Provide some information about the compiler. 11234$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 11235set X $ac_compile 11236ac_compiler=$2 11237for ac_option in --version -v -V -qversion; do 11238 { { ac_try="$ac_compiler $ac_option >&5" 11239case "(($ac_try" in 11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11241 *) ac_try_echo=$ac_try;; 11242esac 11243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11244$as_echo "$ac_try_echo"; } >&5 11245 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11246 ac_status=$? 11247 if test -s conftest.err; then 11248 sed '10a\ 11249... rest of stderr output deleted ... 11250 10q' conftest.err >conftest.er1 11251 cat conftest.er1 >&5 11252 fi 11253 rm -f conftest.er1 conftest.err 11254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11255 test $ac_status = 0; } 11256done 11257 11258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 11259$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 11260if ${ac_cv_cxx_compiler_gnu+:} false; then : 11261 $as_echo_n "(cached) " >&6 11262else 11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11264/* end confdefs.h. */ 11265 11266int 11267main () 11268{ 11269#ifndef __GNUC__ 11270 choke me 11271#endif 11272 11273 ; 11274 return 0; 11275} 11276_ACEOF 11277if ac_fn_cxx_try_compile "$LINENO"; then : 11278 ac_compiler_gnu=yes 11279else 11280 ac_compiler_gnu=no 11281fi 11282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11283ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 11284 11285fi 11286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 11287$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 11288if test $ac_compiler_gnu = yes; then 11289 GXX=yes 11290else 11291 GXX= 11292fi 11293ac_test_CXXFLAGS=${CXXFLAGS+set} 11294ac_save_CXXFLAGS=$CXXFLAGS 11295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 11296$as_echo_n "checking whether $CXX accepts -g... " >&6; } 11297if ${ac_cv_prog_cxx_g+:} false; then : 11298 $as_echo_n "(cached) " >&6 11299else 11300 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 11301 ac_cxx_werror_flag=yes 11302 ac_cv_prog_cxx_g=no 11303 CXXFLAGS="-g" 11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11305/* end confdefs.h. */ 11306 11307int 11308main () 11309{ 11310 11311 ; 11312 return 0; 11313} 11314_ACEOF 11315if ac_fn_cxx_try_compile "$LINENO"; then : 11316 ac_cv_prog_cxx_g=yes 11317else 11318 CXXFLAGS="" 11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11320/* end confdefs.h. */ 11321 11322int 11323main () 11324{ 11325 11326 ; 11327 return 0; 11328} 11329_ACEOF 11330if ac_fn_cxx_try_compile "$LINENO"; then : 11331 11332else 11333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11334 CXXFLAGS="-g" 11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11336/* end confdefs.h. */ 11337 11338int 11339main () 11340{ 11341 11342 ; 11343 return 0; 11344} 11345_ACEOF 11346if ac_fn_cxx_try_compile "$LINENO"; then : 11347 ac_cv_prog_cxx_g=yes 11348fi 11349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11350fi 11351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11352fi 11353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11354 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11355fi 11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 11357$as_echo "$ac_cv_prog_cxx_g" >&6; } 11358if test "$ac_test_CXXFLAGS" = set; then 11359 CXXFLAGS=$ac_save_CXXFLAGS 11360elif test $ac_cv_prog_cxx_g = yes; then 11361 if test "$GXX" = yes; then 11362 CXXFLAGS="-g -O2" 11363 else 11364 CXXFLAGS="-g" 11365 fi 11366else 11367 if test "$GXX" = yes; then 11368 CXXFLAGS="-O2" 11369 else 11370 CXXFLAGS= 11371 fi 11372fi 11373ac_ext=c 11374ac_cpp='$CPP $CPPFLAGS' 11375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11377ac_compiler_gnu=$ac_cv_c_compiler_gnu 11378 11379depcc="$CXX" am_compiler_list= 11380 11381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11382$as_echo_n "checking dependency style of $depcc... " >&6; } 11383if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 11384 $as_echo_n "(cached) " >&6 11385else 11386 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11387 # We make a subdir and do the tests there. Otherwise we can end up 11388 # making bogus files that we don't know about and never remove. For 11389 # instance it was reported that on HP-UX the gcc test will end up 11390 # making a dummy file named 'D' -- because '-MD' means "put the output 11391 # in D". 11392 rm -rf conftest.dir 11393 mkdir conftest.dir 11394 # Copy depcomp to subdir because otherwise we won't find it if we're 11395 # using a relative directory. 11396 cp "$am_depcomp" conftest.dir 11397 cd conftest.dir 11398 # We will build objects and dependencies in a subdirectory because 11399 # it helps to detect inapplicable dependency modes. For instance 11400 # both Tru64's cc and ICC support -MD to output dependencies as a 11401 # side effect of compilation, but ICC will put the dependencies in 11402 # the current directory while Tru64 will put them in the object 11403 # directory. 11404 mkdir sub 11405 11406 am_cv_CXX_dependencies_compiler_type=none 11407 if test "$am_compiler_list" = ""; then 11408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11409 fi 11410 am__universal=false 11411 case " $depcc " in #( 11412 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11413 esac 11414 11415 for depmode in $am_compiler_list; do 11416 # Setup a source with many dependencies, because some compilers 11417 # like to wrap large dependency lists on column 80 (with \), and 11418 # we should not choose a depcomp mode which is confused by this. 11419 # 11420 # We need to recreate these files for each test, as the compiler may 11421 # overwrite some of them when testing with obscure command lines. 11422 # This happens at least with the AIX C compiler. 11423 : > sub/conftest.c 11424 for i in 1 2 3 4 5 6; do 11425 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11426 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11427 # Solaris 10 /bin/sh. 11428 echo '/* dummy */' > sub/conftst$i.h 11429 done 11430 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11431 11432 # We check with '-c' and '-o' for the sake of the "dashmstdout" 11433 # mode. It turns out that the SunPro C++ compiler does not properly 11434 # handle '-M -o', and we need to detect this. Also, some Intel 11435 # versions had trouble with output in subdirs. 11436 am__obj=sub/conftest.${OBJEXT-o} 11437 am__minus_obj="-o $am__obj" 11438 case $depmode in 11439 gcc) 11440 # This depmode causes a compiler race in universal mode. 11441 test "$am__universal" = false || continue 11442 ;; 11443 nosideeffect) 11444 # After this tag, mechanisms are not by side-effect, so they'll 11445 # only be used when explicitly requested. 11446 if test "x$enable_dependency_tracking" = xyes; then 11447 continue 11448 else 11449 break 11450 fi 11451 ;; 11452 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11453 # This compiler won't grok '-c -o', but also, the minuso test has 11454 # not run yet. These depmodes are late enough in the game, and 11455 # so weak that their functioning should not be impacted. 11456 am__obj=conftest.${OBJEXT-o} 11457 am__minus_obj= 11458 ;; 11459 none) break ;; 11460 esac 11461 if depmode=$depmode \ 11462 source=sub/conftest.c object=$am__obj \ 11463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11464 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11465 >/dev/null 2>conftest.err && 11466 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11467 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11468 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11469 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11470 # icc doesn't choke on unknown options, it will just issue warnings 11471 # or remarks (even with -Werror). So we grep stderr for any message 11472 # that says an option was ignored or not supported. 11473 # When given -MP, icc 7.0 and 7.1 complain thusly: 11474 # icc: Command line warning: ignoring option '-M'; no argument required 11475 # The diagnosis changed in icc 8.0: 11476 # icc: Command line remark: option '-MP' not supported 11477 if (grep 'ignoring option' conftest.err || 11478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11479 am_cv_CXX_dependencies_compiler_type=$depmode 11480 break 11481 fi 11482 fi 11483 done 11484 11485 cd .. 11486 rm -rf conftest.dir 11487else 11488 am_cv_CXX_dependencies_compiler_type=none 11489fi 11490 11491fi 11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 11493$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 11494CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 11495 11496 if 11497 test "x$enable_dependency_tracking" != xno \ 11498 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 11499 am__fastdepCXX_TRUE= 11500 am__fastdepCXX_FALSE='#' 11501else 11502 am__fastdepCXX_TRUE='#' 11503 am__fastdepCXX_FALSE= 11504fi 11505 11506 11507 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11508 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11509 (test "X$CXX" != "Xg++"))) ; then 11510 ac_ext=cpp 11511ac_cpp='$CXXCPP $CPPFLAGS' 11512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11516$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11517if test -z "$CXXCPP"; then 11518 if ${ac_cv_prog_CXXCPP+:} false; then : 11519 $as_echo_n "(cached) " >&6 11520else 11521 # Double quotes because CXXCPP needs to be expanded 11522 for CXXCPP in "$CXX -E" "/lib/cpp" 11523 do 11524 ac_preproc_ok=false 11525for ac_cxx_preproc_warn_flag in '' yes 11526do 11527 # Use a header file that comes with gcc, so configuring glibc 11528 # with a fresh cross-compiler works. 11529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11530 # <limits.h> exists even on freestanding compilers. 11531 # On the NeXT, cc -E runs the code through the compiler's parser, 11532 # not just through cpp. "Syntax error" is here to catch this case. 11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11534/* end confdefs.h. */ 11535#ifdef __STDC__ 11536# include <limits.h> 11537#else 11538# include <assert.h> 11539#endif 11540 Syntax error 11541_ACEOF 11542if ac_fn_cxx_try_cpp "$LINENO"; then : 11543 11544else 11545 # Broken: fails on valid input. 11546continue 11547fi 11548rm -f conftest.err conftest.i conftest.$ac_ext 11549 11550 # OK, works on sane cases. Now check whether nonexistent headers 11551 # can be detected and how. 11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11553/* end confdefs.h. */ 11554#include <ac_nonexistent.h> 11555_ACEOF 11556if ac_fn_cxx_try_cpp "$LINENO"; then : 11557 # Broken: success on invalid input. 11558continue 11559else 11560 # Passes both tests. 11561ac_preproc_ok=: 11562break 11563fi 11564rm -f conftest.err conftest.i conftest.$ac_ext 11565 11566done 11567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11568rm -f conftest.i conftest.err conftest.$ac_ext 11569if $ac_preproc_ok; then : 11570 break 11571fi 11572 11573 done 11574 ac_cv_prog_CXXCPP=$CXXCPP 11575 11576fi 11577 CXXCPP=$ac_cv_prog_CXXCPP 11578else 11579 ac_cv_prog_CXXCPP=$CXXCPP 11580fi 11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11582$as_echo "$CXXCPP" >&6; } 11583ac_preproc_ok=false 11584for ac_cxx_preproc_warn_flag in '' yes 11585do 11586 # Use a header file that comes with gcc, so configuring glibc 11587 # with a fresh cross-compiler works. 11588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11589 # <limits.h> exists even on freestanding compilers. 11590 # On the NeXT, cc -E runs the code through the compiler's parser, 11591 # not just through cpp. "Syntax error" is here to catch this case. 11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11593/* end confdefs.h. */ 11594#ifdef __STDC__ 11595# include <limits.h> 11596#else 11597# include <assert.h> 11598#endif 11599 Syntax error 11600_ACEOF 11601if ac_fn_cxx_try_cpp "$LINENO"; then : 11602 11603else 11604 # Broken: fails on valid input. 11605continue 11606fi 11607rm -f conftest.err conftest.i conftest.$ac_ext 11608 11609 # OK, works on sane cases. Now check whether nonexistent headers 11610 # can be detected and how. 11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11612/* end confdefs.h. */ 11613#include <ac_nonexistent.h> 11614_ACEOF 11615if ac_fn_cxx_try_cpp "$LINENO"; then : 11616 # Broken: success on invalid input. 11617continue 11618else 11619 # Passes both tests. 11620ac_preproc_ok=: 11621break 11622fi 11623rm -f conftest.err conftest.i conftest.$ac_ext 11624 11625done 11626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11627rm -f conftest.i conftest.err conftest.$ac_ext 11628if $ac_preproc_ok; then : 11629 11630else 11631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11633as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 11634See \`config.log' for more details" "$LINENO" 5; } 11635fi 11636 11637ac_ext=c 11638ac_cpp='$CPP $CPPFLAGS' 11639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11641ac_compiler_gnu=$ac_cv_c_compiler_gnu 11642 11643else 11644 _lt_caught_CXX_error=yes 11645fi 11646 11647ac_ext=cpp 11648ac_cpp='$CXXCPP $CPPFLAGS' 11649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11652 11653archive_cmds_need_lc_CXX=no 11654allow_undefined_flag_CXX= 11655always_export_symbols_CXX=no 11656archive_expsym_cmds_CXX= 11657compiler_needs_object_CXX=no 11658export_dynamic_flag_spec_CXX= 11659hardcode_direct_CXX=no 11660hardcode_direct_absolute_CXX=no 11661hardcode_libdir_flag_spec_CXX= 11662hardcode_libdir_flag_spec_ld_CXX= 11663hardcode_libdir_separator_CXX= 11664hardcode_minus_L_CXX=no 11665hardcode_shlibpath_var_CXX=unsupported 11666hardcode_automatic_CXX=no 11667inherit_rpath_CXX=no 11668module_cmds_CXX= 11669module_expsym_cmds_CXX= 11670link_all_deplibs_CXX=unknown 11671old_archive_cmds_CXX=$old_archive_cmds 11672reload_flag_CXX=$reload_flag 11673reload_cmds_CXX=$reload_cmds 11674no_undefined_flag_CXX= 11675whole_archive_flag_spec_CXX= 11676enable_shared_with_static_runtimes_CXX=no 11677 11678# Source file extension for C++ test sources. 11679ac_ext=cpp 11680 11681# Object file extension for compiled C++ test sources. 11682objext=o 11683objext_CXX=$objext 11684 11685# No sense in running all these tests if we already determined that 11686# the CXX compiler isn't working. Some variables (like enable_shared) 11687# are currently assumed to apply to all compilers on this platform, 11688# and will be corrupted by setting them based on a non-working compiler. 11689if test "$_lt_caught_CXX_error" != yes; then 11690 # Code to be used in simple compile tests 11691 lt_simple_compile_test_code="int some_variable = 0;" 11692 11693 # Code to be used in simple link tests 11694 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11695 11696 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11697 11698 11699 11700 11701 11702 11703# If no C compiler was specified, use CC. 11704LTCC=${LTCC-"$CC"} 11705 11706# If no C compiler flags were specified, use CFLAGS. 11707LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11708 11709# Allow CC to be a program name with arguments. 11710compiler=$CC 11711 11712 11713 # save warnings/boilerplate of simple test code 11714 ac_outfile=conftest.$ac_objext 11715echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11716eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11717_lt_compiler_boilerplate=`cat conftest.err` 11718$RM conftest* 11719 11720 ac_outfile=conftest.$ac_objext 11721echo "$lt_simple_link_test_code" >conftest.$ac_ext 11722eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11723_lt_linker_boilerplate=`cat conftest.err` 11724$RM -r conftest* 11725 11726 11727 # Allow CC to be a program name with arguments. 11728 lt_save_CC=$CC 11729 lt_save_LD=$LD 11730 lt_save_GCC=$GCC 11731 GCC=$GXX 11732 lt_save_with_gnu_ld=$with_gnu_ld 11733 lt_save_path_LD=$lt_cv_path_LD 11734 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11735 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11736 else 11737 $as_unset lt_cv_prog_gnu_ld 11738 fi 11739 if test -n "${lt_cv_path_LDCXX+set}"; then 11740 lt_cv_path_LD=$lt_cv_path_LDCXX 11741 else 11742 $as_unset lt_cv_path_LD 11743 fi 11744 test -z "${LDCXX+set}" || LD=$LDCXX 11745 CC=${CXX-"c++"} 11746 compiler=$CC 11747 compiler_CXX=$CC 11748 for cc_temp in $compiler""; do 11749 case $cc_temp in 11750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11752 \-*) ;; 11753 *) break;; 11754 esac 11755done 11756cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11757 11758 11759 if test -n "$compiler"; then 11760 # We don't want -fno-exception when compiling C++ code, so set the 11761 # no_builtin_flag separately 11762 if test "$GXX" = yes; then 11763 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11764 else 11765 lt_prog_compiler_no_builtin_flag_CXX= 11766 fi 11767 11768 if test "$GXX" = yes; then 11769 # Set up default GNU C++ configuration 11770 11771 11772 11773# Check whether --with-gnu-ld was given. 11774if test "${with_gnu_ld+set}" = set; then : 11775 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11776else 11777 with_gnu_ld=no 11778fi 11779 11780ac_prog=ld 11781if test "$GCC" = yes; then 11782 # Check if gcc -print-prog-name=ld gives a path. 11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11784$as_echo_n "checking for ld used by $CC... " >&6; } 11785 case $host in 11786 *-*-mingw*) 11787 # gcc leaves a trailing carriage return which upsets mingw 11788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11789 *) 11790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11791 esac 11792 case $ac_prog in 11793 # Accept absolute paths. 11794 [\\/]* | ?:[\\/]*) 11795 re_direlt='/[^/][^/]*/\.\./' 11796 # Canonicalize the pathname of ld 11797 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11798 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11799 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11800 done 11801 test -z "$LD" && LD="$ac_prog" 11802 ;; 11803 "") 11804 # If it fails, then pretend we aren't using GCC. 11805 ac_prog=ld 11806 ;; 11807 *) 11808 # If it is relative, then search for the first ld in PATH. 11809 with_gnu_ld=unknown 11810 ;; 11811 esac 11812elif test "$with_gnu_ld" = yes; then 11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11814$as_echo_n "checking for GNU ld... " >&6; } 11815else 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11817$as_echo_n "checking for non-GNU ld... " >&6; } 11818fi 11819if ${lt_cv_path_LD+:} false; then : 11820 $as_echo_n "(cached) " >&6 11821else 11822 if test -z "$LD"; then 11823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11824 for ac_dir in $PATH; do 11825 IFS="$lt_save_ifs" 11826 test -z "$ac_dir" && ac_dir=. 11827 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11828 lt_cv_path_LD="$ac_dir/$ac_prog" 11829 # Check to see if the program is GNU ld. I'd rather use --version, 11830 # but apparently some variants of GNU ld only accept -v. 11831 # Break only if it was the GNU/non-GNU ld that we prefer. 11832 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11833 *GNU* | *'with BFD'*) 11834 test "$with_gnu_ld" != no && break 11835 ;; 11836 *) 11837 test "$with_gnu_ld" != yes && break 11838 ;; 11839 esac 11840 fi 11841 done 11842 IFS="$lt_save_ifs" 11843else 11844 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11845fi 11846fi 11847 11848LD="$lt_cv_path_LD" 11849if test -n "$LD"; then 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11851$as_echo "$LD" >&6; } 11852else 11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11854$as_echo "no" >&6; } 11855fi 11856test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11858$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11859if ${lt_cv_prog_gnu_ld+:} false; then : 11860 $as_echo_n "(cached) " >&6 11861else 11862 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11863case `$LD -v 2>&1 </dev/null` in 11864*GNU* | *'with BFD'*) 11865 lt_cv_prog_gnu_ld=yes 11866 ;; 11867*) 11868 lt_cv_prog_gnu_ld=no 11869 ;; 11870esac 11871fi 11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11873$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11874with_gnu_ld=$lt_cv_prog_gnu_ld 11875 11876 11877 11878 11879 11880 11881 11882 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11883 # archiving commands below assume that GNU ld is being used. 11884 if test "$with_gnu_ld" = yes; then 11885 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11886 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' 11887 11888 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11890 11891 # If archive_cmds runs LD, not CC, wlarc should be empty 11892 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11893 # investigate it a little bit more. (MM) 11894 wlarc='${wl}' 11895 11896 # ancient GNU ld didn't support --whole-archive et. al. 11897 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11898 $GREP 'no-whole-archive' > /dev/null; then 11899 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11900 else 11901 whole_archive_flag_spec_CXX= 11902 fi 11903 else 11904 with_gnu_ld=no 11905 wlarc= 11906 11907 # A generic and very simple default shared library creation 11908 # command for GNU C++ for the case where it uses the native 11909 # linker, instead of GNU ld. If possible, this setting should 11910 # overridden to take advantage of the native linker features on 11911 # the platform it is being used on. 11912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11913 fi 11914 11915 # Commands to make compiler produce verbose output that lists 11916 # what "hidden" libraries, object files and flags are used when 11917 # linking a shared library. 11918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 11919 11920 else 11921 GXX=no 11922 with_gnu_ld=no 11923 wlarc= 11924 fi 11925 11926 # PORTME: fill in a description of your system's C++ link characteristics 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11928$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11929 ld_shlibs_CXX=yes 11930 case $host_os in 11931 aix3*) 11932 # FIXME: insert proper C++ library support 11933 ld_shlibs_CXX=no 11934 ;; 11935 aix[4-9]*) 11936 if test "$host_cpu" = ia64; then 11937 # On IA64, the linker does run time linking by default, so we don't 11938 # have to do anything special. 11939 aix_use_runtimelinking=no 11940 exp_sym_flag='-Bexport' 11941 no_entry_flag="" 11942 else 11943 aix_use_runtimelinking=no 11944 11945 # Test if we are trying to use run time linking or normal 11946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11947 # need to do runtime linking. 11948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11949 for ld_flag in $LDFLAGS; do 11950 case $ld_flag in 11951 *-brtl*) 11952 aix_use_runtimelinking=yes 11953 break 11954 ;; 11955 esac 11956 done 11957 ;; 11958 esac 11959 11960 exp_sym_flag='-bexport' 11961 no_entry_flag='-bnoentry' 11962 fi 11963 11964 # When large executables or shared objects are built, AIX ld can 11965 # have problems creating the table of contents. If linking a library 11966 # or program results in "error TOC overflow" add -mminimal-toc to 11967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11969 11970 archive_cmds_CXX='' 11971 hardcode_direct_CXX=yes 11972 hardcode_direct_absolute_CXX=yes 11973 hardcode_libdir_separator_CXX=':' 11974 link_all_deplibs_CXX=yes 11975 file_list_spec_CXX='${wl}-f,' 11976 11977 if test "$GXX" = yes; then 11978 case $host_os in aix4.[012]|aix4.[012].*) 11979 # We only want to do this on AIX 4.2 and lower, the check 11980 # below for broken collect2 doesn't work under 4.3+ 11981 collect2name=`${CC} -print-prog-name=collect2` 11982 if test -f "$collect2name" && 11983 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11984 then 11985 # We have reworked collect2 11986 : 11987 else 11988 # We have old collect2 11989 hardcode_direct_CXX=unsupported 11990 # It fails to find uninstalled libraries when the uninstalled 11991 # path is not listed in the libpath. Setting hardcode_minus_L 11992 # to unsupported forces relinking 11993 hardcode_minus_L_CXX=yes 11994 hardcode_libdir_flag_spec_CXX='-L$libdir' 11995 hardcode_libdir_separator_CXX= 11996 fi 11997 esac 11998 shared_flag='-shared' 11999 if test "$aix_use_runtimelinking" = yes; then 12000 shared_flag="$shared_flag "'${wl}-G' 12001 fi 12002 else 12003 # not using gcc 12004 if test "$host_cpu" = ia64; then 12005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12006 # chokes on -Wl,-G. The following line is correct: 12007 shared_flag='-G' 12008 else 12009 if test "$aix_use_runtimelinking" = yes; then 12010 shared_flag='${wl}-G' 12011 else 12012 shared_flag='${wl}-bM:SRE' 12013 fi 12014 fi 12015 fi 12016 12017 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12018 # It seems that -bexpall does not export symbols beginning with 12019 # underscore (_), so it is better to generate a list of symbols to 12020 # export. 12021 always_export_symbols_CXX=yes 12022 if test "$aix_use_runtimelinking" = yes; then 12023 # Warning - without using the other runtime loading flags (-brtl), 12024 # -berok will link without error, but may produce a broken library. 12025 allow_undefined_flag_CXX='-berok' 12026 # Determine the default libpath from the value encoded in an empty 12027 # executable. 12028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12029/* end confdefs.h. */ 12030 12031int 12032main () 12033{ 12034 12035 ; 12036 return 0; 12037} 12038_ACEOF 12039if ac_fn_cxx_try_link "$LINENO"; then : 12040 12041lt_aix_libpath_sed=' 12042 /Import File Strings/,/^$/ { 12043 /^0/ { 12044 s/^0 *\(.*\)$/\1/ 12045 p 12046 } 12047 }' 12048aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12049# Check for a 64-bit object if we didn't find anything. 12050if test -z "$aix_libpath"; then 12051 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12052fi 12053fi 12054rm -f core conftest.err conftest.$ac_objext \ 12055 conftest$ac_exeext conftest.$ac_ext 12056if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12057 12058 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12059 12060 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" 12061 else 12062 if test "$host_cpu" = ia64; then 12063 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12064 allow_undefined_flag_CXX="-z nodefs" 12065 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" 12066 else 12067 # Determine the default libpath from the value encoded in an 12068 # empty executable. 12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12070/* end confdefs.h. */ 12071 12072int 12073main () 12074{ 12075 12076 ; 12077 return 0; 12078} 12079_ACEOF 12080if ac_fn_cxx_try_link "$LINENO"; then : 12081 12082lt_aix_libpath_sed=' 12083 /Import File Strings/,/^$/ { 12084 /^0/ { 12085 s/^0 *\(.*\)$/\1/ 12086 p 12087 } 12088 }' 12089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12090# Check for a 64-bit object if we didn't find anything. 12091if test -z "$aix_libpath"; then 12092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12093fi 12094fi 12095rm -f core conftest.err conftest.$ac_objext \ 12096 conftest$ac_exeext conftest.$ac_ext 12097if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12098 12099 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12100 # Warning - without using the other run time loading flags, 12101 # -berok will link without error, but may produce a broken library. 12102 no_undefined_flag_CXX=' ${wl}-bernotok' 12103 allow_undefined_flag_CXX=' ${wl}-berok' 12104 if test "$with_gnu_ld" = yes; then 12105 # We only use this code for GNU lds that support --whole-archive. 12106 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12107 else 12108 # Exported symbols can be pulled into shared objects from archives 12109 whole_archive_flag_spec_CXX='$convenience' 12110 fi 12111 archive_cmds_need_lc_CXX=yes 12112 # This is similar to how AIX traditionally builds its shared 12113 # libraries. 12114 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' 12115 fi 12116 fi 12117 ;; 12118 12119 beos*) 12120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12121 allow_undefined_flag_CXX=unsupported 12122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12123 # support --undefined. This deserves some investigation. FIXME 12124 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12125 else 12126 ld_shlibs_CXX=no 12127 fi 12128 ;; 12129 12130 chorus*) 12131 case $cc_basename in 12132 *) 12133 # FIXME: insert proper C++ library support 12134 ld_shlibs_CXX=no 12135 ;; 12136 esac 12137 ;; 12138 12139 cygwin* | mingw* | pw32* | cegcc*) 12140 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12141 # as there is no search path for DLLs. 12142 hardcode_libdir_flag_spec_CXX='-L$libdir' 12143 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12144 allow_undefined_flag_CXX=unsupported 12145 always_export_symbols_CXX=no 12146 enable_shared_with_static_runtimes_CXX=yes 12147 12148 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12149 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' 12150 # If the export-symbols file already is a .def file (1st line 12151 # is EXPORTS), use it as is; otherwise, prepend... 12152 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12153 cp $export_symbols $output_objdir/$soname.def; 12154 else 12155 echo EXPORTS > $output_objdir/$soname.def; 12156 cat $export_symbols >> $output_objdir/$soname.def; 12157 fi~ 12158 $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' 12159 else 12160 ld_shlibs_CXX=no 12161 fi 12162 ;; 12163 darwin* | rhapsody*) 12164 12165 12166 archive_cmds_need_lc_CXX=no 12167 hardcode_direct_CXX=no 12168 hardcode_automatic_CXX=yes 12169 hardcode_shlibpath_var_CXX=unsupported 12170 if test "$lt_cv_ld_force_load" = "yes"; then 12171 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\"`' 12172 else 12173 whole_archive_flag_spec_CXX='' 12174 fi 12175 link_all_deplibs_CXX=yes 12176 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12177 case $cc_basename in 12178 ifort*) _lt_dar_can_shared=yes ;; 12179 *) _lt_dar_can_shared=$GCC ;; 12180 esac 12181 if test "$_lt_dar_can_shared" = "yes"; then 12182 output_verbose_link_cmd=func_echo_all 12183 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}" 12184 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12185 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}" 12186 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}" 12187 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12188 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}" 12189 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}" 12190 fi 12191 12192 else 12193 ld_shlibs_CXX=no 12194 fi 12195 12196 ;; 12197 12198 dgux*) 12199 case $cc_basename in 12200 ec++*) 12201 # FIXME: insert proper C++ library support 12202 ld_shlibs_CXX=no 12203 ;; 12204 ghcx*) 12205 # Green Hills C++ Compiler 12206 # FIXME: insert proper C++ library support 12207 ld_shlibs_CXX=no 12208 ;; 12209 *) 12210 # FIXME: insert proper C++ library support 12211 ld_shlibs_CXX=no 12212 ;; 12213 esac 12214 ;; 12215 12216 freebsd2.*) 12217 # C++ shared libraries reported to be fairly broken before 12218 # switch to ELF 12219 ld_shlibs_CXX=no 12220 ;; 12221 12222 freebsd-elf*) 12223 archive_cmds_need_lc_CXX=no 12224 ;; 12225 12226 freebsd* | dragonfly*) 12227 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12228 # conventions 12229 ld_shlibs_CXX=yes 12230 ;; 12231 12232 gnu*) 12233 ;; 12234 12235 haiku*) 12236 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12237 link_all_deplibs_CXX=yes 12238 ;; 12239 12240 hpux9*) 12241 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12242 hardcode_libdir_separator_CXX=: 12243 export_dynamic_flag_spec_CXX='${wl}-E' 12244 hardcode_direct_CXX=yes 12245 hardcode_minus_L_CXX=yes # Not in the search PATH, 12246 # but as the default 12247 # location of the library. 12248 12249 case $cc_basename in 12250 CC*) 12251 # FIXME: insert proper C++ library support 12252 ld_shlibs_CXX=no 12253 ;; 12254 aCC*) 12255 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' 12256 # Commands to make compiler produce verbose output that lists 12257 # what "hidden" libraries, object files and flags are used when 12258 # linking a shared library. 12259 # 12260 # There doesn't appear to be a way to prevent this compiler from 12261 # explicitly linking system object files so we need to strip them 12262 # from the output so that they don't get included in the library 12263 # dependencies. 12264 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"' 12265 ;; 12266 *) 12267 if test "$GXX" = yes; then 12268 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' 12269 else 12270 # FIXME: insert proper C++ library support 12271 ld_shlibs_CXX=no 12272 fi 12273 ;; 12274 esac 12275 ;; 12276 12277 hpux10*|hpux11*) 12278 if test $with_gnu_ld = no; then 12279 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12280 hardcode_libdir_separator_CXX=: 12281 12282 case $host_cpu in 12283 hppa*64*|ia64*) 12284 ;; 12285 *) 12286 export_dynamic_flag_spec_CXX='${wl}-E' 12287 ;; 12288 esac 12289 fi 12290 case $host_cpu in 12291 hppa*64*|ia64*) 12292 hardcode_direct_CXX=no 12293 hardcode_shlibpath_var_CXX=no 12294 ;; 12295 *) 12296 hardcode_direct_CXX=yes 12297 hardcode_direct_absolute_CXX=yes 12298 hardcode_minus_L_CXX=yes # Not in the search PATH, 12299 # but as the default 12300 # location of the library. 12301 ;; 12302 esac 12303 12304 case $cc_basename in 12305 CC*) 12306 # FIXME: insert proper C++ library support 12307 ld_shlibs_CXX=no 12308 ;; 12309 aCC*) 12310 case $host_cpu in 12311 hppa*64*) 12312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12313 ;; 12314 ia64*) 12315 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12316 ;; 12317 *) 12318 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12319 ;; 12320 esac 12321 # Commands to make compiler produce verbose output that lists 12322 # what "hidden" libraries, object files and flags are used when 12323 # linking a shared library. 12324 # 12325 # There doesn't appear to be a way to prevent this compiler from 12326 # explicitly linking system object files so we need to strip them 12327 # from the output so that they don't get included in the library 12328 # dependencies. 12329 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"' 12330 ;; 12331 *) 12332 if test "$GXX" = yes; then 12333 if test $with_gnu_ld = no; then 12334 case $host_cpu in 12335 hppa*64*) 12336 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12337 ;; 12338 ia64*) 12339 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12340 ;; 12341 *) 12342 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' 12343 ;; 12344 esac 12345 fi 12346 else 12347 # FIXME: insert proper C++ library support 12348 ld_shlibs_CXX=no 12349 fi 12350 ;; 12351 esac 12352 ;; 12353 12354 interix[3-9]*) 12355 hardcode_direct_CXX=no 12356 hardcode_shlibpath_var_CXX=no 12357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12358 export_dynamic_flag_spec_CXX='${wl}-E' 12359 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12360 # Instead, shared libraries are loaded at an image base (0x10000000 by 12361 # default) and relocated if they conflict, which is a slow very memory 12362 # consuming and fragmenting process. To avoid this, we pick a random, 12363 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12364 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12365 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' 12366 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' 12367 ;; 12368 irix5* | irix6*) 12369 case $cc_basename in 12370 CC*) 12371 # SGI C++ 12372 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' 12373 12374 # Archives containing C++ object files must be created using 12375 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12376 # necessary to make sure instantiated templates are included 12377 # in the archive. 12378 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12379 ;; 12380 *) 12381 if test "$GXX" = yes; then 12382 if test "$with_gnu_ld" = no; then 12383 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' 12384 else 12385 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' 12386 fi 12387 fi 12388 link_all_deplibs_CXX=yes 12389 ;; 12390 esac 12391 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12392 hardcode_libdir_separator_CXX=: 12393 inherit_rpath_CXX=yes 12394 ;; 12395 12396 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12397 case $cc_basename in 12398 KCC*) 12399 # Kuck and Associates, Inc. (KAI) C++ Compiler 12400 12401 # KCC will only create a shared library if the output file 12402 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12403 # to its proper name (with version) after linking. 12404 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' 12405 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' 12406 # Commands to make compiler produce verbose output that lists 12407 # what "hidden" libraries, object files and flags are used when 12408 # linking a shared library. 12409 # 12410 # There doesn't appear to be a way to prevent this compiler from 12411 # explicitly linking system object files so we need to strip them 12412 # from the output so that they don't get included in the library 12413 # dependencies. 12414 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"' 12415 12416 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12417 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12418 12419 # Archives containing C++ object files must be created using 12420 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12421 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12422 ;; 12423 icpc* | ecpc* ) 12424 # Intel C++ 12425 with_gnu_ld=yes 12426 # version 8.0 and above of icpc choke on multiply defined symbols 12427 # if we add $predep_objects and $postdep_objects, however 7.1 and 12428 # earlier do not add the objects themselves. 12429 case `$CC -V 2>&1` in 12430 *"Version 7."*) 12431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12432 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' 12433 ;; 12434 *) # Version 8.0 or newer 12435 tmp_idyn= 12436 case $host_cpu in 12437 ia64*) tmp_idyn=' -i_dynamic';; 12438 esac 12439 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12440 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' 12441 ;; 12442 esac 12443 archive_cmds_need_lc_CXX=no 12444 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12445 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12446 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12447 ;; 12448 pgCC* | pgcpp*) 12449 # Portland Group C++ compiler 12450 case `$CC -V` in 12451 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12452 prelink_cmds_CXX='tpldir=Template.dir~ 12453 rm -rf $tpldir~ 12454 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12455 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12456 old_archive_cmds_CXX='tpldir=Template.dir~ 12457 rm -rf $tpldir~ 12458 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12459 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12460 $RANLIB $oldlib' 12461 archive_cmds_CXX='tpldir=Template.dir~ 12462 rm -rf $tpldir~ 12463 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12464 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12465 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12466 rm -rf $tpldir~ 12467 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12468 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12469 ;; 12470 *) # Version 6 and above use weak symbols 12471 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12472 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' 12473 ;; 12474 esac 12475 12476 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12478 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' 12479 ;; 12480 cxx*) 12481 # Compaq C++ 12482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12483 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' 12484 12485 runpath_var=LD_RUN_PATH 12486 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12487 hardcode_libdir_separator_CXX=: 12488 12489 # Commands to make compiler produce verbose output that lists 12490 # what "hidden" libraries, object files and flags are used when 12491 # linking a shared library. 12492 # 12493 # There doesn't appear to be a way to prevent this compiler from 12494 # explicitly linking system object files so we need to strip them 12495 # from the output so that they don't get included in the library 12496 # dependencies. 12497 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' 12498 ;; 12499 xl* | mpixl* | bgxl*) 12500 # IBM XL 8.0 on PPC, with GNU ld 12501 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12502 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12503 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12504 if test "x$supports_anon_versioning" = xyes; then 12505 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12507 echo "local: *; };" >> $output_objdir/$libname.ver~ 12508 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12509 fi 12510 ;; 12511 *) 12512 case `$CC -V 2>&1 | sed 5q` in 12513 *Sun\ C*) 12514 # Sun C++ 5.9 12515 no_undefined_flag_CXX=' -zdefs' 12516 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12517 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' 12518 hardcode_libdir_flag_spec_CXX='-R$libdir' 12519 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' 12520 compiler_needs_object_CXX=yes 12521 12522 # Not sure whether something based on 12523 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12524 # would be better. 12525 output_verbose_link_cmd='func_echo_all' 12526 12527 # Archives containing C++ object files must be created using 12528 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12529 # necessary to make sure instantiated templates are included 12530 # in the archive. 12531 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12532 ;; 12533 esac 12534 ;; 12535 esac 12536 ;; 12537 12538 lynxos*) 12539 # FIXME: insert proper C++ library support 12540 ld_shlibs_CXX=no 12541 ;; 12542 12543 m88k*) 12544 # FIXME: insert proper C++ library support 12545 ld_shlibs_CXX=no 12546 ;; 12547 12548 mvs*) 12549 case $cc_basename in 12550 cxx*) 12551 # FIXME: insert proper C++ library support 12552 ld_shlibs_CXX=no 12553 ;; 12554 *) 12555 # FIXME: insert proper C++ library support 12556 ld_shlibs_CXX=no 12557 ;; 12558 esac 12559 ;; 12560 12561 netbsd*) 12562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12563 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12564 wlarc= 12565 hardcode_libdir_flag_spec_CXX='-R$libdir' 12566 hardcode_direct_CXX=yes 12567 hardcode_shlibpath_var_CXX=no 12568 fi 12569 # Workaround some broken pre-1.5 toolchains 12570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12571 ;; 12572 12573 *nto* | *qnx*) 12574 ld_shlibs_CXX=yes 12575 ;; 12576 12577 openbsd2*) 12578 # C++ shared libraries are fairly broken 12579 ld_shlibs_CXX=no 12580 ;; 12581 12582 openbsd*) 12583 if test -f /usr/libexec/ld.so; then 12584 hardcode_direct_CXX=yes 12585 hardcode_shlibpath_var_CXX=no 12586 hardcode_direct_absolute_CXX=yes 12587 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12588 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12590 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12591 export_dynamic_flag_spec_CXX='${wl}-E' 12592 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12593 fi 12594 output_verbose_link_cmd=func_echo_all 12595 else 12596 ld_shlibs_CXX=no 12597 fi 12598 ;; 12599 12600 osf3* | osf4* | osf5*) 12601 case $cc_basename in 12602 KCC*) 12603 # Kuck and Associates, Inc. (KAI) C++ Compiler 12604 12605 # KCC will only create a shared library if the output file 12606 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12607 # to its proper name (with version) after linking. 12608 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' 12609 12610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12611 hardcode_libdir_separator_CXX=: 12612 12613 # Archives containing C++ object files must be created using 12614 # the KAI C++ compiler. 12615 case $host in 12616 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12617 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12618 esac 12619 ;; 12620 RCC*) 12621 # Rational C++ 2.4.1 12622 # FIXME: insert proper C++ library support 12623 ld_shlibs_CXX=no 12624 ;; 12625 cxx*) 12626 case $host in 12627 osf3*) 12628 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12629 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' 12630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12631 ;; 12632 *) 12633 allow_undefined_flag_CXX=' -expect_unresolved \*' 12634 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' 12635 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12636 echo "-hidden">> $lib.exp~ 12637 $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~ 12638 $RM $lib.exp' 12639 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12640 ;; 12641 esac 12642 12643 hardcode_libdir_separator_CXX=: 12644 12645 # Commands to make compiler produce verbose output that lists 12646 # what "hidden" libraries, object files and flags are used when 12647 # linking a shared library. 12648 # 12649 # There doesn't appear to be a way to prevent this compiler from 12650 # explicitly linking system object files so we need to strip them 12651 # from the output so that they don't get included in the library 12652 # dependencies. 12653 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"' 12654 ;; 12655 *) 12656 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12657 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12658 case $host in 12659 osf3*) 12660 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' 12661 ;; 12662 *) 12663 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' 12664 ;; 12665 esac 12666 12667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12668 hardcode_libdir_separator_CXX=: 12669 12670 # Commands to make compiler produce verbose output that lists 12671 # what "hidden" libraries, object files and flags are used when 12672 # linking a shared library. 12673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12674 12675 else 12676 # FIXME: insert proper C++ library support 12677 ld_shlibs_CXX=no 12678 fi 12679 ;; 12680 esac 12681 ;; 12682 12683 psos*) 12684 # FIXME: insert proper C++ library support 12685 ld_shlibs_CXX=no 12686 ;; 12687 12688 sunos4*) 12689 case $cc_basename in 12690 CC*) 12691 # Sun C++ 4.x 12692 # FIXME: insert proper C++ library support 12693 ld_shlibs_CXX=no 12694 ;; 12695 lcc*) 12696 # Lucid 12697 # FIXME: insert proper C++ library support 12698 ld_shlibs_CXX=no 12699 ;; 12700 *) 12701 # FIXME: insert proper C++ library support 12702 ld_shlibs_CXX=no 12703 ;; 12704 esac 12705 ;; 12706 12707 solaris*) 12708 case $cc_basename in 12709 CC*) 12710 # Sun C++ 4.2, 5.x and Centerline C++ 12711 archive_cmds_need_lc_CXX=yes 12712 no_undefined_flag_CXX=' -zdefs' 12713 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12714 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12715 $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' 12716 12717 hardcode_libdir_flag_spec_CXX='-R$libdir' 12718 hardcode_shlibpath_var_CXX=no 12719 case $host_os in 12720 solaris2.[0-5] | solaris2.[0-5].*) ;; 12721 *) 12722 # The compiler driver will combine and reorder linker options, 12723 # but understands `-z linker_flag'. 12724 # Supported since Solaris 2.6 (maybe 2.5.1?) 12725 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12726 ;; 12727 esac 12728 link_all_deplibs_CXX=yes 12729 12730 output_verbose_link_cmd='func_echo_all' 12731 12732 # Archives containing C++ object files must be created using 12733 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12734 # necessary to make sure instantiated templates are included 12735 # in the archive. 12736 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12737 ;; 12738 gcx*) 12739 # Green Hills C++ Compiler 12740 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12741 12742 # The C++ compiler must be used to create the archive. 12743 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12744 ;; 12745 *) 12746 # GNU C++ compiler with Solaris linker 12747 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12748 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12749 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12750 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12751 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12752 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12753 12754 # Commands to make compiler produce verbose output that lists 12755 # what "hidden" libraries, object files and flags are used when 12756 # linking a shared library. 12757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12758 else 12759 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12760 # platform. 12761 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12762 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12763 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12764 12765 # Commands to make compiler produce verbose output that lists 12766 # what "hidden" libraries, object files and flags are used when 12767 # linking a shared library. 12768 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12769 fi 12770 12771 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12772 case $host_os in 12773 solaris2.[0-5] | solaris2.[0-5].*) ;; 12774 *) 12775 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12776 ;; 12777 esac 12778 fi 12779 ;; 12780 esac 12781 ;; 12782 12783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12784 no_undefined_flag_CXX='${wl}-z,text' 12785 archive_cmds_need_lc_CXX=no 12786 hardcode_shlibpath_var_CXX=no 12787 runpath_var='LD_RUN_PATH' 12788 12789 case $cc_basename in 12790 CC*) 12791 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12792 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12793 ;; 12794 *) 12795 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12796 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12797 ;; 12798 esac 12799 ;; 12800 12801 sysv5* | sco3.2v5* | sco5v6*) 12802 # Note: We can NOT use -z defs as we might desire, because we do not 12803 # link with -lc, and that would cause any symbols used from libc to 12804 # always be unresolved, which means just about no library would 12805 # ever link correctly. If we're not using GNU ld we use -z text 12806 # though, which does catch some bad symbols but isn't as heavy-handed 12807 # as -z defs. 12808 no_undefined_flag_CXX='${wl}-z,text' 12809 allow_undefined_flag_CXX='${wl}-z,nodefs' 12810 archive_cmds_need_lc_CXX=no 12811 hardcode_shlibpath_var_CXX=no 12812 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12813 hardcode_libdir_separator_CXX=':' 12814 link_all_deplibs_CXX=yes 12815 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12816 runpath_var='LD_RUN_PATH' 12817 12818 case $cc_basename in 12819 CC*) 12820 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12821 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12822 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 12823 '"$old_archive_cmds_CXX" 12824 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 12825 '"$reload_cmds_CXX" 12826 ;; 12827 *) 12828 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12829 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12830 ;; 12831 esac 12832 ;; 12833 12834 tandem*) 12835 case $cc_basename in 12836 NCC*) 12837 # NonStop-UX NCC 3.20 12838 # FIXME: insert proper C++ library support 12839 ld_shlibs_CXX=no 12840 ;; 12841 *) 12842 # FIXME: insert proper C++ library support 12843 ld_shlibs_CXX=no 12844 ;; 12845 esac 12846 ;; 12847 12848 vxworks*) 12849 # FIXME: insert proper C++ library support 12850 ld_shlibs_CXX=no 12851 ;; 12852 12853 *) 12854 # FIXME: insert proper C++ library support 12855 ld_shlibs_CXX=no 12856 ;; 12857 esac 12858 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12860$as_echo "$ld_shlibs_CXX" >&6; } 12861 test "$ld_shlibs_CXX" = no && can_build_shared=no 12862 12863 GCC_CXX="$GXX" 12864 LD_CXX="$LD" 12865 12866 ## CAVEAT EMPTOR: 12867 ## There is no encapsulation within the following macros, do not change 12868 ## the running order or otherwise move them around unless you know exactly 12869 ## what you are doing... 12870 # Dependencies to place before and after the object being linked: 12871predep_objects_CXX= 12872postdep_objects_CXX= 12873predeps_CXX= 12874postdeps_CXX= 12875compiler_lib_search_path_CXX= 12876 12877cat > conftest.$ac_ext <<_LT_EOF 12878class Foo 12879{ 12880public: 12881 Foo (void) { a = 0; } 12882private: 12883 int a; 12884}; 12885_LT_EOF 12886 12887if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12888 (eval $ac_compile) 2>&5 12889 ac_status=$? 12890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12891 test $ac_status = 0; }; then 12892 # Parse the compiler output and extract the necessary 12893 # objects, libraries and library flags. 12894 12895 # Sentinel used to keep track of whether or not we are before 12896 # the conftest object file. 12897 pre_test_object_deps_done=no 12898 12899 for p in `eval "$output_verbose_link_cmd"`; do 12900 case $p in 12901 12902 -L* | -R* | -l*) 12903 # Some compilers place space between "-{L,R}" and the path. 12904 # Remove the space. 12905 if test $p = "-L" || 12906 test $p = "-R"; then 12907 prev=$p 12908 continue 12909 else 12910 prev= 12911 fi 12912 12913 if test "$pre_test_object_deps_done" = no; then 12914 case $p in 12915 -L* | -R*) 12916 # Internal compiler library paths should come after those 12917 # provided the user. The postdeps already come after the 12918 # user supplied libs so there is no need to process them. 12919 if test -z "$compiler_lib_search_path_CXX"; then 12920 compiler_lib_search_path_CXX="${prev}${p}" 12921 else 12922 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12923 fi 12924 ;; 12925 # The "-l" case would never come before the object being 12926 # linked, so don't bother handling this case. 12927 esac 12928 else 12929 if test -z "$postdeps_CXX"; then 12930 postdeps_CXX="${prev}${p}" 12931 else 12932 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12933 fi 12934 fi 12935 ;; 12936 12937 *.$objext) 12938 # This assumes that the test object file only shows up 12939 # once in the compiler output. 12940 if test "$p" = "conftest.$objext"; then 12941 pre_test_object_deps_done=yes 12942 continue 12943 fi 12944 12945 if test "$pre_test_object_deps_done" = no; then 12946 if test -z "$predep_objects_CXX"; then 12947 predep_objects_CXX="$p" 12948 else 12949 predep_objects_CXX="$predep_objects_CXX $p" 12950 fi 12951 else 12952 if test -z "$postdep_objects_CXX"; then 12953 postdep_objects_CXX="$p" 12954 else 12955 postdep_objects_CXX="$postdep_objects_CXX $p" 12956 fi 12957 fi 12958 ;; 12959 12960 *) ;; # Ignore the rest. 12961 12962 esac 12963 done 12964 12965 # Clean up. 12966 rm -f a.out a.exe 12967else 12968 echo "libtool.m4: error: problem compiling CXX test program" 12969fi 12970 12971$RM -f confest.$objext 12972 12973# PORTME: override above test on systems where it is broken 12974case $host_os in 12975interix[3-9]*) 12976 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12977 # hack all around it, let's just trust "g++" to DTRT. 12978 predep_objects_CXX= 12979 postdep_objects_CXX= 12980 postdeps_CXX= 12981 ;; 12982 12983linux*) 12984 case `$CC -V 2>&1 | sed 5q` in 12985 *Sun\ C*) 12986 # Sun C++ 5.9 12987 12988 # The more standards-conforming stlport4 library is 12989 # incompatible with the Cstd library. Avoid specifying 12990 # it if it's in CXXFLAGS. Ignore libCrun as 12991 # -library=stlport4 depends on it. 12992 case " $CXX $CXXFLAGS " in 12993 *" -library=stlport4 "*) 12994 solaris_use_stlport4=yes 12995 ;; 12996 esac 12997 12998 if test "$solaris_use_stlport4" != yes; then 12999 postdeps_CXX='-library=Cstd -library=Crun' 13000 fi 13001 ;; 13002 esac 13003 ;; 13004 13005solaris*) 13006 case $cc_basename in 13007 CC*) 13008 # The more standards-conforming stlport4 library is 13009 # incompatible with the Cstd library. Avoid specifying 13010 # it if it's in CXXFLAGS. Ignore libCrun as 13011 # -library=stlport4 depends on it. 13012 case " $CXX $CXXFLAGS " in 13013 *" -library=stlport4 "*) 13014 solaris_use_stlport4=yes 13015 ;; 13016 esac 13017 13018 # Adding this requires a known-good setup of shared libraries for 13019 # Sun compiler versions before 5.6, else PIC objects from an old 13020 # archive will be linked into the output, leading to subtle bugs. 13021 if test "$solaris_use_stlport4" != yes; then 13022 postdeps_CXX='-library=Cstd -library=Crun' 13023 fi 13024 ;; 13025 esac 13026 ;; 13027esac 13028 13029 13030case " $postdeps_CXX " in 13031*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13032esac 13033 compiler_lib_search_dirs_CXX= 13034if test -n "${compiler_lib_search_path_CXX}"; then 13035 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13036fi 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 lt_prog_compiler_wl_CXX= 13069lt_prog_compiler_pic_CXX= 13070lt_prog_compiler_static_CXX= 13071 13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13073$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13074 13075 # C++ specific cases for pic, static, wl, etc. 13076 if test "$GXX" = yes; then 13077 lt_prog_compiler_wl_CXX='-Wl,' 13078 lt_prog_compiler_static_CXX='-static' 13079 13080 case $host_os in 13081 aix*) 13082 # All AIX code is PIC. 13083 if test "$host_cpu" = ia64; then 13084 # AIX 5 now supports IA64 processor 13085 lt_prog_compiler_static_CXX='-Bstatic' 13086 fi 13087 lt_prog_compiler_pic_CXX='-fPIC' 13088 ;; 13089 13090 amigaos*) 13091 case $host_cpu in 13092 powerpc) 13093 # see comment about AmigaOS4 .so support 13094 lt_prog_compiler_pic_CXX='-fPIC' 13095 ;; 13096 m68k) 13097 # FIXME: we need at least 68020 code to build shared libraries, but 13098 # adding the `-m68020' flag to GCC prevents building anything better, 13099 # like `-m68040'. 13100 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13101 ;; 13102 esac 13103 ;; 13104 13105 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13106 # PIC is the default for these OSes. 13107 ;; 13108 mingw* | cygwin* | os2* | pw32* | cegcc*) 13109 # This hack is so that the source file can tell whether it is being 13110 # built for inclusion in a dll (and should export symbols for example). 13111 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13112 # (--disable-auto-import) libraries 13113 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13114 ;; 13115 darwin* | rhapsody*) 13116 # PIC is the default on this platform 13117 # Common symbols not allowed in MH_DYLIB files 13118 lt_prog_compiler_pic_CXX='-fno-common' 13119 ;; 13120 *djgpp*) 13121 # DJGPP does not support shared libraries at all 13122 lt_prog_compiler_pic_CXX= 13123 ;; 13124 haiku*) 13125 # PIC is the default for Haiku. 13126 # The "-static" flag exists, but is broken. 13127 lt_prog_compiler_static_CXX= 13128 ;; 13129 interix[3-9]*) 13130 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13131 # Instead, we relocate shared libraries at runtime. 13132 ;; 13133 sysv4*MP*) 13134 if test -d /usr/nec; then 13135 lt_prog_compiler_pic_CXX=-Kconform_pic 13136 fi 13137 ;; 13138 hpux*) 13139 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13140 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13141 # sets the default TLS model and affects inlining. 13142 case $host_cpu in 13143 hppa*64*) 13144 ;; 13145 *) 13146 lt_prog_compiler_pic_CXX='-fPIC' 13147 ;; 13148 esac 13149 ;; 13150 *qnx* | *nto*) 13151 # QNX uses GNU C++, but need to define -shared option too, otherwise 13152 # it will coredump. 13153 lt_prog_compiler_pic_CXX='-fPIC -shared' 13154 ;; 13155 *) 13156 lt_prog_compiler_pic_CXX='-fPIC' 13157 ;; 13158 esac 13159 else 13160 case $host_os in 13161 aix[4-9]*) 13162 # All AIX code is PIC. 13163 if test "$host_cpu" = ia64; then 13164 # AIX 5 now supports IA64 processor 13165 lt_prog_compiler_static_CXX='-Bstatic' 13166 else 13167 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13168 fi 13169 ;; 13170 chorus*) 13171 case $cc_basename in 13172 cxch68*) 13173 # Green Hills C++ Compiler 13174 # _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" 13175 ;; 13176 esac 13177 ;; 13178 dgux*) 13179 case $cc_basename in 13180 ec++*) 13181 lt_prog_compiler_pic_CXX='-KPIC' 13182 ;; 13183 ghcx*) 13184 # Green Hills C++ Compiler 13185 lt_prog_compiler_pic_CXX='-pic' 13186 ;; 13187 *) 13188 ;; 13189 esac 13190 ;; 13191 freebsd* | dragonfly*) 13192 # FreeBSD uses GNU C++ 13193 ;; 13194 hpux9* | hpux10* | hpux11*) 13195 case $cc_basename in 13196 CC*) 13197 lt_prog_compiler_wl_CXX='-Wl,' 13198 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13199 if test "$host_cpu" != ia64; then 13200 lt_prog_compiler_pic_CXX='+Z' 13201 fi 13202 ;; 13203 aCC*) 13204 lt_prog_compiler_wl_CXX='-Wl,' 13205 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13206 case $host_cpu in 13207 hppa*64*|ia64*) 13208 # +Z the default 13209 ;; 13210 *) 13211 lt_prog_compiler_pic_CXX='+Z' 13212 ;; 13213 esac 13214 ;; 13215 *) 13216 ;; 13217 esac 13218 ;; 13219 interix*) 13220 # This is c89, which is MS Visual C++ (no shared libs) 13221 # Anyone wants to do a port? 13222 ;; 13223 irix5* | irix6* | nonstopux*) 13224 case $cc_basename in 13225 CC*) 13226 lt_prog_compiler_wl_CXX='-Wl,' 13227 lt_prog_compiler_static_CXX='-non_shared' 13228 # CC pic flag -KPIC is the default. 13229 ;; 13230 *) 13231 ;; 13232 esac 13233 ;; 13234 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13235 case $cc_basename in 13236 KCC*) 13237 # KAI C++ Compiler 13238 lt_prog_compiler_wl_CXX='--backend -Wl,' 13239 lt_prog_compiler_pic_CXX='-fPIC' 13240 ;; 13241 ecpc* ) 13242 # old Intel C++ for x86_64 which still supported -KPIC. 13243 lt_prog_compiler_wl_CXX='-Wl,' 13244 lt_prog_compiler_pic_CXX='-KPIC' 13245 lt_prog_compiler_static_CXX='-static' 13246 ;; 13247 icpc* ) 13248 # Intel C++, used to be incompatible with GCC. 13249 # ICC 10 doesn't accept -KPIC any more. 13250 lt_prog_compiler_wl_CXX='-Wl,' 13251 lt_prog_compiler_pic_CXX='-fPIC' 13252 lt_prog_compiler_static_CXX='-static' 13253 ;; 13254 pgCC* | pgcpp*) 13255 # Portland Group C++ compiler 13256 lt_prog_compiler_wl_CXX='-Wl,' 13257 lt_prog_compiler_pic_CXX='-fpic' 13258 lt_prog_compiler_static_CXX='-Bstatic' 13259 ;; 13260 cxx*) 13261 # Compaq C++ 13262 # Make sure the PIC flag is empty. It appears that all Alpha 13263 # Linux and Compaq Tru64 Unix objects are PIC. 13264 lt_prog_compiler_pic_CXX= 13265 lt_prog_compiler_static_CXX='-non_shared' 13266 ;; 13267 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13268 # IBM XL 8.0, 9.0 on PPC and BlueGene 13269 lt_prog_compiler_wl_CXX='-Wl,' 13270 lt_prog_compiler_pic_CXX='-qpic' 13271 lt_prog_compiler_static_CXX='-qstaticlink' 13272 ;; 13273 *) 13274 case `$CC -V 2>&1 | sed 5q` in 13275 *Sun\ C*) 13276 # Sun C++ 5.9 13277 lt_prog_compiler_pic_CXX='-KPIC' 13278 lt_prog_compiler_static_CXX='-Bstatic' 13279 lt_prog_compiler_wl_CXX='-Qoption ld ' 13280 ;; 13281 esac 13282 ;; 13283 esac 13284 ;; 13285 lynxos*) 13286 ;; 13287 m88k*) 13288 ;; 13289 mvs*) 13290 case $cc_basename in 13291 cxx*) 13292 lt_prog_compiler_pic_CXX='-W c,exportall' 13293 ;; 13294 *) 13295 ;; 13296 esac 13297 ;; 13298 netbsd*) 13299 ;; 13300 *qnx* | *nto*) 13301 # QNX uses GNU C++, but need to define -shared option too, otherwise 13302 # it will coredump. 13303 lt_prog_compiler_pic_CXX='-fPIC -shared' 13304 ;; 13305 osf3* | osf4* | osf5*) 13306 case $cc_basename in 13307 KCC*) 13308 lt_prog_compiler_wl_CXX='--backend -Wl,' 13309 ;; 13310 RCC*) 13311 # Rational C++ 2.4.1 13312 lt_prog_compiler_pic_CXX='-pic' 13313 ;; 13314 cxx*) 13315 # Digital/Compaq C++ 13316 lt_prog_compiler_wl_CXX='-Wl,' 13317 # Make sure the PIC flag is empty. It appears that all Alpha 13318 # Linux and Compaq Tru64 Unix objects are PIC. 13319 lt_prog_compiler_pic_CXX= 13320 lt_prog_compiler_static_CXX='-non_shared' 13321 ;; 13322 *) 13323 ;; 13324 esac 13325 ;; 13326 psos*) 13327 ;; 13328 solaris*) 13329 case $cc_basename in 13330 CC*) 13331 # Sun C++ 4.2, 5.x and Centerline C++ 13332 lt_prog_compiler_pic_CXX='-KPIC' 13333 lt_prog_compiler_static_CXX='-Bstatic' 13334 lt_prog_compiler_wl_CXX='-Qoption ld ' 13335 ;; 13336 gcx*) 13337 # Green Hills C++ Compiler 13338 lt_prog_compiler_pic_CXX='-PIC' 13339 ;; 13340 *) 13341 ;; 13342 esac 13343 ;; 13344 sunos4*) 13345 case $cc_basename in 13346 CC*) 13347 # Sun C++ 4.x 13348 lt_prog_compiler_pic_CXX='-pic' 13349 lt_prog_compiler_static_CXX='-Bstatic' 13350 ;; 13351 lcc*) 13352 # Lucid 13353 lt_prog_compiler_pic_CXX='-pic' 13354 ;; 13355 *) 13356 ;; 13357 esac 13358 ;; 13359 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13360 case $cc_basename in 13361 CC*) 13362 lt_prog_compiler_wl_CXX='-Wl,' 13363 lt_prog_compiler_pic_CXX='-KPIC' 13364 lt_prog_compiler_static_CXX='-Bstatic' 13365 ;; 13366 esac 13367 ;; 13368 tandem*) 13369 case $cc_basename in 13370 NCC*) 13371 # NonStop-UX NCC 3.20 13372 lt_prog_compiler_pic_CXX='-KPIC' 13373 ;; 13374 *) 13375 ;; 13376 esac 13377 ;; 13378 vxworks*) 13379 ;; 13380 *) 13381 lt_prog_compiler_can_build_shared_CXX=no 13382 ;; 13383 esac 13384 fi 13385 13386case $host_os in 13387 # For platforms which do not support PIC, -DPIC is meaningless: 13388 *djgpp*) 13389 lt_prog_compiler_pic_CXX= 13390 ;; 13391 *) 13392 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13393 ;; 13394esac 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13396$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13397 13398 13399 13400# 13401# Check to make sure the PIC flag actually works. 13402# 13403if test -n "$lt_prog_compiler_pic_CXX"; then 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13405$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13406if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13407 $as_echo_n "(cached) " >&6 13408else 13409 lt_cv_prog_compiler_pic_works_CXX=no 13410 ac_outfile=conftest.$ac_objext 13411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13412 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13413 # Insert the option either (1) after the last *FLAGS variable, or 13414 # (2) before a word containing "conftest.", or (3) at the end. 13415 # Note that $ac_compile itself does not contain backslashes and begins 13416 # with a dollar sign (not a hyphen), so the echo should work correctly. 13417 # The option is referenced via a variable to avoid confusing sed. 13418 lt_compile=`echo "$ac_compile" | $SED \ 13419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13421 -e 's:$: $lt_compiler_flag:'` 13422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13423 (eval "$lt_compile" 2>conftest.err) 13424 ac_status=$? 13425 cat conftest.err >&5 13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13427 if (exit $ac_status) && test -s "$ac_outfile"; then 13428 # The compiler can only warn and ignore the option if not recognized 13429 # So say no if there are warnings other than the usual output. 13430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13433 lt_cv_prog_compiler_pic_works_CXX=yes 13434 fi 13435 fi 13436 $RM conftest* 13437 13438fi 13439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13440$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13441 13442if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13443 case $lt_prog_compiler_pic_CXX in 13444 "" | " "*) ;; 13445 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13446 esac 13447else 13448 lt_prog_compiler_pic_CXX= 13449 lt_prog_compiler_can_build_shared_CXX=no 13450fi 13451 13452fi 13453 13454 13455 13456# 13457# Check to make sure the static flag actually works. 13458# 13459wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13461$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13462if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 13463 $as_echo_n "(cached) " >&6 13464else 13465 lt_cv_prog_compiler_static_works_CXX=no 13466 save_LDFLAGS="$LDFLAGS" 13467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13468 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13470 # The linker can only warn and ignore the option if not recognized 13471 # So say no if there are warnings 13472 if test -s conftest.err; then 13473 # Append any errors to the config.log. 13474 cat conftest.err 1>&5 13475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13477 if diff conftest.exp conftest.er2 >/dev/null; then 13478 lt_cv_prog_compiler_static_works_CXX=yes 13479 fi 13480 else 13481 lt_cv_prog_compiler_static_works_CXX=yes 13482 fi 13483 fi 13484 $RM -r conftest* 13485 LDFLAGS="$save_LDFLAGS" 13486 13487fi 13488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13489$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13490 13491if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13492 : 13493else 13494 lt_prog_compiler_static_CXX= 13495fi 13496 13497 13498 13499 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13501$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13502if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13503 $as_echo_n "(cached) " >&6 13504else 13505 lt_cv_prog_compiler_c_o_CXX=no 13506 $RM -r conftest 2>/dev/null 13507 mkdir conftest 13508 cd conftest 13509 mkdir out 13510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13511 13512 lt_compiler_flag="-o out/conftest2.$ac_objext" 13513 # Insert the option either (1) after the last *FLAGS variable, or 13514 # (2) before a word containing "conftest.", or (3) at the end. 13515 # Note that $ac_compile itself does not contain backslashes and begins 13516 # with a dollar sign (not a hyphen), so the echo should work correctly. 13517 lt_compile=`echo "$ac_compile" | $SED \ 13518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13520 -e 's:$: $lt_compiler_flag:'` 13521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13522 (eval "$lt_compile" 2>out/conftest.err) 13523 ac_status=$? 13524 cat out/conftest.err >&5 13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13526 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13527 then 13528 # The compiler can only warn and ignore the option if not recognized 13529 # So say no if there are warnings 13530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13533 lt_cv_prog_compiler_c_o_CXX=yes 13534 fi 13535 fi 13536 chmod u+w . 2>&5 13537 $RM conftest* 13538 # SGI C++ compiler will create directory out/ii_files/ for 13539 # template instantiation 13540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13541 $RM out/* && rmdir out 13542 cd .. 13543 $RM -r conftest 13544 $RM conftest* 13545 13546fi 13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13548$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13549 13550 13551 13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13553$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13554if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13555 $as_echo_n "(cached) " >&6 13556else 13557 lt_cv_prog_compiler_c_o_CXX=no 13558 $RM -r conftest 2>/dev/null 13559 mkdir conftest 13560 cd conftest 13561 mkdir out 13562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13563 13564 lt_compiler_flag="-o out/conftest2.$ac_objext" 13565 # Insert the option either (1) after the last *FLAGS variable, or 13566 # (2) before a word containing "conftest.", or (3) at the end. 13567 # Note that $ac_compile itself does not contain backslashes and begins 13568 # with a dollar sign (not a hyphen), so the echo should work correctly. 13569 lt_compile=`echo "$ac_compile" | $SED \ 13570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13572 -e 's:$: $lt_compiler_flag:'` 13573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13574 (eval "$lt_compile" 2>out/conftest.err) 13575 ac_status=$? 13576 cat out/conftest.err >&5 13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13578 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13579 then 13580 # The compiler can only warn and ignore the option if not recognized 13581 # So say no if there are warnings 13582 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13583 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13584 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13585 lt_cv_prog_compiler_c_o_CXX=yes 13586 fi 13587 fi 13588 chmod u+w . 2>&5 13589 $RM conftest* 13590 # SGI C++ compiler will create directory out/ii_files/ for 13591 # template instantiation 13592 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13593 $RM out/* && rmdir out 13594 cd .. 13595 $RM -r conftest 13596 $RM conftest* 13597 13598fi 13599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13600$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13601 13602 13603 13604 13605hard_links="nottested" 13606if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13607 # do not overwrite the value of need_locks provided by the user 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13609$as_echo_n "checking if we can lock with hard links... " >&6; } 13610 hard_links=yes 13611 $RM conftest* 13612 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13613 touch conftest.a 13614 ln conftest.a conftest.b 2>&5 || hard_links=no 13615 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13617$as_echo "$hard_links" >&6; } 13618 if test "$hard_links" = no; then 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13620$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13621 need_locks=warn 13622 fi 13623else 13624 need_locks=no 13625fi 13626 13627 13628 13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13630$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13631 13632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13633 case $host_os in 13634 aix[4-9]*) 13635 # If we're using GNU nm, then we don't want the "-C" option. 13636 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13637 # Also, AIX nm treats weak defined symbols like other global defined 13638 # symbols, whereas GNU nm marks them as "W". 13639 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13640 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' 13641 else 13642 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13643 fi 13644 ;; 13645 pw32*) 13646 export_symbols_cmds_CXX="$ltdll_cmds" 13647 ;; 13648 cygwin* | mingw* | cegcc*) 13649 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' 13650 ;; 13651 *) 13652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13653 ;; 13654 esac 13655 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13656 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13658$as_echo "$ld_shlibs_CXX" >&6; } 13659test "$ld_shlibs_CXX" = no && can_build_shared=no 13660 13661with_gnu_ld_CXX=$with_gnu_ld 13662 13663 13664 13665 13666 13667 13668# 13669# Do we need to explicitly link libc? 13670# 13671case "x$archive_cmds_need_lc_CXX" in 13672x|xyes) 13673 # Assume -lc should be added 13674 archive_cmds_need_lc_CXX=yes 13675 13676 if test "$enable_shared" = yes && test "$GCC" = yes; then 13677 case $archive_cmds_CXX in 13678 *'~'*) 13679 # FIXME: we may have to deal with multi-command sequences. 13680 ;; 13681 '$CC '*) 13682 # Test whether the compiler implicitly links with -lc since on some 13683 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13684 # to ld, don't add -lc before -lgcc. 13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13686$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13687if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 13688 $as_echo_n "(cached) " >&6 13689else 13690 $RM conftest* 13691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13692 13693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13694 (eval $ac_compile) 2>&5 13695 ac_status=$? 13696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13697 test $ac_status = 0; } 2>conftest.err; then 13698 soname=conftest 13699 lib=conftest 13700 libobjs=conftest.$ac_objext 13701 deplibs= 13702 wl=$lt_prog_compiler_wl_CXX 13703 pic_flag=$lt_prog_compiler_pic_CXX 13704 compiler_flags=-v 13705 linker_flags=-v 13706 verstring= 13707 output_objdir=. 13708 libname=conftest 13709 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13710 allow_undefined_flag_CXX= 13711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13712 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13713 ac_status=$? 13714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13715 test $ac_status = 0; } 13716 then 13717 lt_cv_archive_cmds_need_lc_CXX=no 13718 else 13719 lt_cv_archive_cmds_need_lc_CXX=yes 13720 fi 13721 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13722 else 13723 cat conftest.err 1>&5 13724 fi 13725 $RM conftest* 13726 13727fi 13728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 13729$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 13730 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13731 ;; 13732 esac 13733 fi 13734 ;; 13735esac 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13801$as_echo_n "checking dynamic linker characteristics... " >&6; } 13802 13803library_names_spec= 13804libname_spec='lib$name' 13805soname_spec= 13806shrext_cmds=".so" 13807postinstall_cmds= 13808postuninstall_cmds= 13809finish_cmds= 13810finish_eval= 13811shlibpath_var= 13812shlibpath_overrides_runpath=unknown 13813version_type=none 13814dynamic_linker="$host_os ld.so" 13815sys_lib_dlsearch_path_spec="/lib /usr/lib" 13816need_lib_prefix=unknown 13817hardcode_into_libs=no 13818 13819# when you set need_version to no, make sure it does not cause -set_version 13820# flags to be left without arguments 13821need_version=unknown 13822 13823case $host_os in 13824aix3*) 13825 version_type=linux 13826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13827 shlibpath_var=LIBPATH 13828 13829 # AIX 3 has no versioning support, so we append a major version to the name. 13830 soname_spec='${libname}${release}${shared_ext}$major' 13831 ;; 13832 13833aix[4-9]*) 13834 version_type=linux 13835 need_lib_prefix=no 13836 need_version=no 13837 hardcode_into_libs=yes 13838 if test "$host_cpu" = ia64; then 13839 # AIX 5 supports IA64 13840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13841 shlibpath_var=LD_LIBRARY_PATH 13842 else 13843 # With GCC up to 2.95.x, collect2 would create an import file 13844 # for dependence libraries. The import file would start with 13845 # the line `#! .'. This would cause the generated library to 13846 # depend on `.', always an invalid library. This was fixed in 13847 # development snapshots of GCC prior to 3.0. 13848 case $host_os in 13849 aix4 | aix4.[01] | aix4.[01].*) 13850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13851 echo ' yes ' 13852 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13853 : 13854 else 13855 can_build_shared=no 13856 fi 13857 ;; 13858 esac 13859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13860 # soname into executable. Probably we can add versioning support to 13861 # collect2, so additional links can be useful in future. 13862 if test "$aix_use_runtimelinking" = yes; then 13863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13864 # instead of lib<name>.a to let people know that these are not 13865 # typical AIX shared libraries. 13866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13867 else 13868 # We preserve .a as extension for shared libraries through AIX4.2 13869 # and later when we are not doing run time linking. 13870 library_names_spec='${libname}${release}.a $libname.a' 13871 soname_spec='${libname}${release}${shared_ext}$major' 13872 fi 13873 shlibpath_var=LIBPATH 13874 fi 13875 ;; 13876 13877amigaos*) 13878 case $host_cpu in 13879 powerpc) 13880 # Since July 2007 AmigaOS4 officially supports .so libraries. 13881 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13883 ;; 13884 m68k) 13885 library_names_spec='$libname.ixlibrary $libname.a' 13886 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13887 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' 13888 ;; 13889 esac 13890 ;; 13891 13892beos*) 13893 library_names_spec='${libname}${shared_ext}' 13894 dynamic_linker="$host_os ld.so" 13895 shlibpath_var=LIBRARY_PATH 13896 ;; 13897 13898bsdi[45]*) 13899 version_type=linux 13900 need_version=no 13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13902 soname_spec='${libname}${release}${shared_ext}$major' 13903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13904 shlibpath_var=LD_LIBRARY_PATH 13905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13907 # the default ld.so.conf also contains /usr/contrib/lib and 13908 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13909 # libtool to hard-code these into programs 13910 ;; 13911 13912cygwin* | mingw* | pw32* | cegcc*) 13913 version_type=windows 13914 shrext_cmds=".dll" 13915 need_version=no 13916 need_lib_prefix=no 13917 13918 case $GCC,$host_os in 13919 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13920 library_names_spec='$libname.dll.a' 13921 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13922 postinstall_cmds='base_file=`basename \${file}`~ 13923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13924 dldir=$destdir/`dirname \$dlpath`~ 13925 test -d \$dldir || mkdir -p \$dldir~ 13926 $install_prog $dir/$dlname \$dldir/$dlname~ 13927 chmod a+x \$dldir/$dlname~ 13928 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13929 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13930 fi' 13931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13932 dlpath=$dir/\$dldll~ 13933 $RM \$dlpath' 13934 shlibpath_overrides_runpath=yes 13935 13936 case $host_os in 13937 cygwin*) 13938 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13940 13941 ;; 13942 mingw* | cegcc*) 13943 # MinGW DLLs use traditional 'lib' prefix 13944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13945 ;; 13946 pw32*) 13947 # pw32 DLLs use 'pw' prefix rather than 'lib' 13948 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13949 ;; 13950 esac 13951 ;; 13952 13953 *) 13954 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13955 ;; 13956 esac 13957 dynamic_linker='Win32 ld.exe' 13958 # FIXME: first we should search . and the directory the executable is in 13959 shlibpath_var=PATH 13960 ;; 13961 13962darwin* | rhapsody*) 13963 dynamic_linker="$host_os dyld" 13964 version_type=darwin 13965 need_lib_prefix=no 13966 need_version=no 13967 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13968 soname_spec='${libname}${release}${major}$shared_ext' 13969 shlibpath_overrides_runpath=yes 13970 shlibpath_var=DYLD_LIBRARY_PATH 13971 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13972 13973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13974 ;; 13975 13976dgux*) 13977 version_type=linux 13978 need_lib_prefix=no 13979 need_version=no 13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13981 soname_spec='${libname}${release}${shared_ext}$major' 13982 shlibpath_var=LD_LIBRARY_PATH 13983 ;; 13984 13985freebsd* | dragonfly*) 13986 # DragonFly does not have aout. When/if they implement a new 13987 # versioning mechanism, adjust this. 13988 if test -x /usr/bin/objformat; then 13989 objformat=`/usr/bin/objformat` 13990 else 13991 case $host_os in 13992 freebsd[23].*) objformat=aout ;; 13993 *) objformat=elf ;; 13994 esac 13995 fi 13996 version_type=freebsd-$objformat 13997 case $version_type in 13998 freebsd-elf*) 13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14000 need_version=no 14001 need_lib_prefix=no 14002 ;; 14003 freebsd-*) 14004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14005 need_version=yes 14006 ;; 14007 esac 14008 shlibpath_var=LD_LIBRARY_PATH 14009 case $host_os in 14010 freebsd2.*) 14011 shlibpath_overrides_runpath=yes 14012 ;; 14013 freebsd3.[01]* | freebsdelf3.[01]*) 14014 shlibpath_overrides_runpath=yes 14015 hardcode_into_libs=yes 14016 ;; 14017 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14018 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14019 shlibpath_overrides_runpath=no 14020 hardcode_into_libs=yes 14021 ;; 14022 *) # from 4.6 on, and DragonFly 14023 shlibpath_overrides_runpath=yes 14024 hardcode_into_libs=yes 14025 ;; 14026 esac 14027 ;; 14028 14029gnu*) 14030 version_type=linux 14031 need_lib_prefix=no 14032 need_version=no 14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14034 soname_spec='${libname}${release}${shared_ext}$major' 14035 shlibpath_var=LD_LIBRARY_PATH 14036 hardcode_into_libs=yes 14037 ;; 14038 14039haiku*) 14040 version_type=linux 14041 need_lib_prefix=no 14042 need_version=no 14043 dynamic_linker="$host_os runtime_loader" 14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14045 soname_spec='${libname}${release}${shared_ext}$major' 14046 shlibpath_var=LIBRARY_PATH 14047 shlibpath_overrides_runpath=yes 14048 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 14049 hardcode_into_libs=yes 14050 ;; 14051 14052hpux9* | hpux10* | hpux11*) 14053 # Give a soname corresponding to the major version so that dld.sl refuses to 14054 # link against other versions. 14055 version_type=sunos 14056 need_lib_prefix=no 14057 need_version=no 14058 case $host_cpu in 14059 ia64*) 14060 shrext_cmds='.so' 14061 hardcode_into_libs=yes 14062 dynamic_linker="$host_os dld.so" 14063 shlibpath_var=LD_LIBRARY_PATH 14064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14066 soname_spec='${libname}${release}${shared_ext}$major' 14067 if test "X$HPUX_IA64_MODE" = X32; then 14068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14069 else 14070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14071 fi 14072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14073 ;; 14074 hppa*64*) 14075 shrext_cmds='.sl' 14076 hardcode_into_libs=yes 14077 dynamic_linker="$host_os dld.sl" 14078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14081 soname_spec='${libname}${release}${shared_ext}$major' 14082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14084 ;; 14085 *) 14086 shrext_cmds='.sl' 14087 dynamic_linker="$host_os dld.sl" 14088 shlibpath_var=SHLIB_PATH 14089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14091 soname_spec='${libname}${release}${shared_ext}$major' 14092 ;; 14093 esac 14094 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14095 postinstall_cmds='chmod 555 $lib' 14096 # or fails outright, so override atomically: 14097 install_override_mode=555 14098 ;; 14099 14100interix[3-9]*) 14101 version_type=linux 14102 need_lib_prefix=no 14103 need_version=no 14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14105 soname_spec='${libname}${release}${shared_ext}$major' 14106 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14107 shlibpath_var=LD_LIBRARY_PATH 14108 shlibpath_overrides_runpath=no 14109 hardcode_into_libs=yes 14110 ;; 14111 14112irix5* | irix6* | nonstopux*) 14113 case $host_os in 14114 nonstopux*) version_type=nonstopux ;; 14115 *) 14116 if test "$lt_cv_prog_gnu_ld" = yes; then 14117 version_type=linux 14118 else 14119 version_type=irix 14120 fi ;; 14121 esac 14122 need_lib_prefix=no 14123 need_version=no 14124 soname_spec='${libname}${release}${shared_ext}$major' 14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14126 case $host_os in 14127 irix5* | nonstopux*) 14128 libsuff= shlibsuff= 14129 ;; 14130 *) 14131 case $LD in # libtool.m4 will add one of these switches to LD 14132 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14133 libsuff= shlibsuff= libmagic=32-bit;; 14134 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14135 libsuff=32 shlibsuff=N32 libmagic=N32;; 14136 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14137 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14138 *) libsuff= shlibsuff= libmagic=never-match;; 14139 esac 14140 ;; 14141 esac 14142 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14143 shlibpath_overrides_runpath=no 14144 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14145 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14146 hardcode_into_libs=yes 14147 ;; 14148 14149# No shared lib support for Linux oldld, aout, or coff. 14150linux*oldld* | linux*aout* | linux*coff*) 14151 dynamic_linker=no 14152 ;; 14153 14154# This must be Linux ELF. 14155linux* | k*bsd*-gnu | kopensolaris*-gnu) 14156 version_type=linux 14157 need_lib_prefix=no 14158 need_version=no 14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14160 soname_spec='${libname}${release}${shared_ext}$major' 14161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14162 shlibpath_var=LD_LIBRARY_PATH 14163 shlibpath_overrides_runpath=no 14164 14165 # Some binutils ld are patched to set DT_RUNPATH 14166 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14167 $as_echo_n "(cached) " >&6 14168else 14169 lt_cv_shlibpath_overrides_runpath=no 14170 save_LDFLAGS=$LDFLAGS 14171 save_libdir=$libdir 14172 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14173 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14175/* end confdefs.h. */ 14176 14177int 14178main () 14179{ 14180 14181 ; 14182 return 0; 14183} 14184_ACEOF 14185if ac_fn_cxx_try_link "$LINENO"; then : 14186 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14187 lt_cv_shlibpath_overrides_runpath=yes 14188fi 14189fi 14190rm -f core conftest.err conftest.$ac_objext \ 14191 conftest$ac_exeext conftest.$ac_ext 14192 LDFLAGS=$save_LDFLAGS 14193 libdir=$save_libdir 14194 14195fi 14196 14197 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14198 14199 # This implies no fast_install, which is unacceptable. 14200 # Some rework will be needed to allow for fast_install 14201 # before this can be enabled. 14202 hardcode_into_libs=yes 14203 14204 # Append ld.so.conf contents to the search path 14205 if test -f /etc/ld.so.conf; then 14206 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' ' '` 14207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14208 fi 14209 14210 # We used to test for /lib/ld.so.1 and disable shared libraries on 14211 # powerpc, because MkLinux only supported shared libraries with the 14212 # GNU dynamic linker. Since this was broken with cross compilers, 14213 # most powerpc-linux boxes support dynamic linking these days and 14214 # people can always --disable-shared, the test was removed, and we 14215 # assume the GNU/Linux dynamic linker is in use. 14216 dynamic_linker='GNU/Linux ld.so' 14217 ;; 14218 14219netbsd*) 14220 version_type=sunos 14221 need_lib_prefix=no 14222 need_version=no 14223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14226 dynamic_linker='NetBSD (a.out) ld.so' 14227 else 14228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14229 soname_spec='${libname}${release}${shared_ext}$major' 14230 dynamic_linker='NetBSD ld.elf_so' 14231 fi 14232 shlibpath_var=LD_LIBRARY_PATH 14233 shlibpath_overrides_runpath=yes 14234 hardcode_into_libs=yes 14235 ;; 14236 14237newsos6) 14238 version_type=linux 14239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14240 shlibpath_var=LD_LIBRARY_PATH 14241 shlibpath_overrides_runpath=yes 14242 ;; 14243 14244*nto* | *qnx*) 14245 version_type=qnx 14246 need_lib_prefix=no 14247 need_version=no 14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14249 soname_spec='${libname}${release}${shared_ext}$major' 14250 shlibpath_var=LD_LIBRARY_PATH 14251 shlibpath_overrides_runpath=no 14252 hardcode_into_libs=yes 14253 dynamic_linker='ldqnx.so' 14254 ;; 14255 14256openbsd*) 14257 version_type=sunos 14258 sys_lib_dlsearch_path_spec="/usr/lib" 14259 need_lib_prefix=no 14260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14261 case $host_os in 14262 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14263 *) need_version=no ;; 14264 esac 14265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14267 shlibpath_var=LD_LIBRARY_PATH 14268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14269 case $host_os in 14270 openbsd2.[89] | openbsd2.[89].*) 14271 shlibpath_overrides_runpath=no 14272 ;; 14273 *) 14274 shlibpath_overrides_runpath=yes 14275 ;; 14276 esac 14277 else 14278 shlibpath_overrides_runpath=yes 14279 fi 14280 ;; 14281 14282os2*) 14283 libname_spec='$name' 14284 shrext_cmds=".dll" 14285 need_lib_prefix=no 14286 library_names_spec='$libname${shared_ext} $libname.a' 14287 dynamic_linker='OS/2 ld.exe' 14288 shlibpath_var=LIBPATH 14289 ;; 14290 14291osf3* | osf4* | osf5*) 14292 version_type=osf 14293 need_lib_prefix=no 14294 need_version=no 14295 soname_spec='${libname}${release}${shared_ext}$major' 14296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14297 shlibpath_var=LD_LIBRARY_PATH 14298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14300 ;; 14301 14302rdos*) 14303 dynamic_linker=no 14304 ;; 14305 14306solaris*) 14307 version_type=linux 14308 need_lib_prefix=no 14309 need_version=no 14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14311 soname_spec='${libname}${release}${shared_ext}$major' 14312 shlibpath_var=LD_LIBRARY_PATH 14313 shlibpath_overrides_runpath=yes 14314 hardcode_into_libs=yes 14315 # ldd complains unless libraries are executable 14316 postinstall_cmds='chmod +x $lib' 14317 ;; 14318 14319sunos4*) 14320 version_type=sunos 14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14322 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14323 shlibpath_var=LD_LIBRARY_PATH 14324 shlibpath_overrides_runpath=yes 14325 if test "$with_gnu_ld" = yes; then 14326 need_lib_prefix=no 14327 fi 14328 need_version=yes 14329 ;; 14330 14331sysv4 | sysv4.3*) 14332 version_type=linux 14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14334 soname_spec='${libname}${release}${shared_ext}$major' 14335 shlibpath_var=LD_LIBRARY_PATH 14336 case $host_vendor in 14337 sni) 14338 shlibpath_overrides_runpath=no 14339 need_lib_prefix=no 14340 runpath_var=LD_RUN_PATH 14341 ;; 14342 siemens) 14343 need_lib_prefix=no 14344 ;; 14345 motorola) 14346 need_lib_prefix=no 14347 need_version=no 14348 shlibpath_overrides_runpath=no 14349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14350 ;; 14351 esac 14352 ;; 14353 14354sysv4*MP*) 14355 if test -d /usr/nec ;then 14356 version_type=linux 14357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14358 soname_spec='$libname${shared_ext}.$major' 14359 shlibpath_var=LD_LIBRARY_PATH 14360 fi 14361 ;; 14362 14363sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14364 version_type=freebsd-elf 14365 need_lib_prefix=no 14366 need_version=no 14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14368 soname_spec='${libname}${release}${shared_ext}$major' 14369 shlibpath_var=LD_LIBRARY_PATH 14370 shlibpath_overrides_runpath=yes 14371 hardcode_into_libs=yes 14372 if test "$with_gnu_ld" = yes; then 14373 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14374 else 14375 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14376 case $host_os in 14377 sco3.2v5*) 14378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14379 ;; 14380 esac 14381 fi 14382 sys_lib_dlsearch_path_spec='/usr/lib' 14383 ;; 14384 14385tpf*) 14386 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14387 version_type=linux 14388 need_lib_prefix=no 14389 need_version=no 14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14391 shlibpath_var=LD_LIBRARY_PATH 14392 shlibpath_overrides_runpath=no 14393 hardcode_into_libs=yes 14394 ;; 14395 14396uts4*) 14397 version_type=linux 14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14399 soname_spec='${libname}${release}${shared_ext}$major' 14400 shlibpath_var=LD_LIBRARY_PATH 14401 ;; 14402 14403*) 14404 dynamic_linker=no 14405 ;; 14406esac 14407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14408$as_echo "$dynamic_linker" >&6; } 14409test "$dynamic_linker" = no && can_build_shared=no 14410 14411variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14412if test "$GCC" = yes; then 14413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14414fi 14415 14416if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14417 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14418fi 14419if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14420 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14421fi 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14461$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14462hardcode_action_CXX= 14463if test -n "$hardcode_libdir_flag_spec_CXX" || 14464 test -n "$runpath_var_CXX" || 14465 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14466 14467 # We can hardcode non-existent directories. 14468 if test "$hardcode_direct_CXX" != no && 14469 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14470 # have to relink, otherwise we might link with an installed library 14471 # when we should be linking with a yet-to-be-installed one 14472 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14473 test "$hardcode_minus_L_CXX" != no; then 14474 # Linking always hardcodes the temporary library directory. 14475 hardcode_action_CXX=relink 14476 else 14477 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14478 hardcode_action_CXX=immediate 14479 fi 14480else 14481 # We cannot hardcode anything, or else we can only hardcode existing 14482 # directories. 14483 hardcode_action_CXX=unsupported 14484fi 14485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14486$as_echo "$hardcode_action_CXX" >&6; } 14487 14488if test "$hardcode_action_CXX" = relink || 14489 test "$inherit_rpath_CXX" = yes; then 14490 # Fast installation is not supported 14491 enable_fast_install=no 14492elif test "$shlibpath_overrides_runpath" = yes || 14493 test "$enable_shared" = no; then 14494 # Fast installation is not necessary 14495 enable_fast_install=needless 14496fi 14497 14498 14499 14500 14501 14502 14503 14504 fi # test -n "$compiler" 14505 14506 CC=$lt_save_CC 14507 LDCXX=$LD 14508 LD=$lt_save_LD 14509 GCC=$lt_save_GCC 14510 with_gnu_ld=$lt_save_with_gnu_ld 14511 lt_cv_path_LDCXX=$lt_cv_path_LD 14512 lt_cv_path_LD=$lt_save_path_LD 14513 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14514 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14515fi # test "$_lt_caught_CXX_error" != yes 14516 14517ac_ext=c 14518ac_cpp='$CPP $CPPFLAGS' 14519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14521ac_compiler_gnu=$ac_cv_c_compiler_gnu 14522 14523 14524 14525visibility= 14526if test "$GXX" = yes; then 14527 visibility=-fvisibility=hidden 14528fi 14529 14530 14531ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 14532if test "x$ac_cv_have_decl_basename" = xyes; then : 14533 ac_have_decl=1 14534else 14535 ac_have_decl=0 14536fi 14537 14538cat >>confdefs.h <<_ACEOF 14539#define HAVE_DECL_BASENAME $ac_have_decl 14540_ACEOF 14541 14542 14543 14544 get_gcc_base_ver="cat" 14545 14546# Check whether --with-gcc-major-version-only was given. 14547if test "${with_gcc_major_version_only+set}" = set; then : 14548 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 14549 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 14550 fi 14551 14552fi 14553 14554 14555 14556 14557if test x$with_gcc_major_version_only = xyes ; then 14558 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER` 14559 else 14560 gcc_version=`cat $srcdir/../gcc/BASE-VER` 14561fi 14562 14563CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER' 14564 14565 14566ac_ext=c 14567ac_cpp='$CPP $CPPFLAGS' 14568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14570ac_compiler_gnu=$ac_cv_c_compiler_gnu 14571 14572WARN_FLAGS= 14573save_CFLAGS="$CFLAGS" 14574for real_option in -W -Wall; do 14575 # Do the check with the no- prefix removed since gcc silently 14576 # accepts any -Wno-* option on purpose 14577 case $real_option in 14578 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 14579 *) option=$real_option ;; 14580 esac 14581 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 14582 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 14584$as_echo_n "checking whether $CC supports $option... " >&6; } 14585if eval \${$as_acx_Woption+:} false; then : 14586 $as_echo_n "(cached) " >&6 14587else 14588 CFLAGS="$option" 14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14590/* end confdefs.h. */ 14591 14592int 14593main () 14594{ 14595 14596 ; 14597 return 0; 14598} 14599_ACEOF 14600if ac_fn_c_try_compile "$LINENO"; then : 14601 eval "$as_acx_Woption=yes" 14602else 14603 eval "$as_acx_Woption=no" 14604fi 14605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14606 14607fi 14608eval ac_res=\$$as_acx_Woption 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14610$as_echo "$ac_res" >&6; } 14611 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 14612 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" 14613fi 14614 done 14615CFLAGS="$save_CFLAGS" 14616ac_ext=c 14617ac_cpp='$CPP $CPPFLAGS' 14618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14620ac_compiler_gnu=$ac_cv_c_compiler_gnu 14621 14622 14623 14624ac_ext=c 14625ac_cpp='$CPP $CPPFLAGS' 14626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14628ac_compiler_gnu=$ac_cv_c_compiler_gnu 14629 14630WERROR= 14631# Check whether --enable-werror-always was given. 14632if test "${enable_werror_always+set}" = set; then : 14633 enableval=$enable_werror_always; 14634else 14635 enable_werror_always=no 14636fi 14637 14638if test $enable_werror_always = yes; then : 14639 WERROR="$WERROR${WERROR:+ }-Werror" 14640fi 14641 14642ac_ext=c 14643ac_cpp='$CPP $CPPFLAGS' 14644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14646ac_compiler_gnu=$ac_cv_c_compiler_gnu 14647 14648 14649 14650 14651 14652libsuffix= 14653if test "$GXX" = yes; then 14654 libsuffix=`$CXX -print-multi-os-directory` 14655fi 14656 14657 14658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5 14659$as_echo_n "checking for socket libraries... " >&6; } 14660if ${libcc1_cv_lib_sockets+:} false; then : 14661 $as_echo_n "(cached) " >&6 14662else 14663 libcc1_cv_lib_sockets= 14664 libcc1_check_both=no 14665 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 14666if test "x$ac_cv_func_connect" = xyes; then : 14667 libcc1_check_socket=no 14668else 14669 libcc1_check_socket=yes 14670fi 14671 14672 if test "$libcc1_check_socket" = "yes"; then 14673 unset ac_cv_func_connect 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 14675$as_echo_n "checking for main in -lsocket... " >&6; } 14676if ${ac_cv_lib_socket_main+:} false; then : 14677 $as_echo_n "(cached) " >&6 14678else 14679 ac_check_lib_save_LIBS=$LIBS 14680LIBS="-lsocket $LIBS" 14681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14682/* end confdefs.h. */ 14683 14684 14685int 14686main () 14687{ 14688return main (); 14689 ; 14690 return 0; 14691} 14692_ACEOF 14693if ac_fn_c_try_link "$LINENO"; then : 14694 ac_cv_lib_socket_main=yes 14695else 14696 ac_cv_lib_socket_main=no 14697fi 14698rm -f core conftest.err conftest.$ac_objext \ 14699 conftest$ac_exeext conftest.$ac_ext 14700LIBS=$ac_check_lib_save_LIBS 14701fi 14702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 14703$as_echo "$ac_cv_lib_socket_main" >&6; } 14704if test "x$ac_cv_lib_socket_main" = xyes; then : 14705 libcc1_cv_lib_sockets="-lsocket" 14706else 14707 libcc1_check_both=yes 14708fi 14709 14710 fi 14711 if test "$libcc1_check_both" = "yes"; then 14712 libcc1_old_libs=$LIBS 14713 LIBS="$LIBS -lsocket -lnsl" 14714 unset ac_cv_func_accept 14715 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" 14716if test "x$ac_cv_func_accept" = xyes; then : 14717 libcc1_check_nsl=no 14718 libcc1_cv_lib_sockets="-lsocket -lnsl" 14719fi 14720 14721 unset ac_cv_func_accept 14722 LIBS=$libcc1_old_libs 14723 fi 14724 unset ac_cv_func_gethostbyname 14725 libcc1_old_libs="$LIBS" 14726 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 14727if test "x$ac_cv_func_gethostbyname" = xyes; then : 14728 14729else 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 14731$as_echo_n "checking for main in -lnsl... " >&6; } 14732if ${ac_cv_lib_nsl_main+:} false; then : 14733 $as_echo_n "(cached) " >&6 14734else 14735 ac_check_lib_save_LIBS=$LIBS 14736LIBS="-lnsl $LIBS" 14737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14738/* end confdefs.h. */ 14739 14740 14741int 14742main () 14743{ 14744return main (); 14745 ; 14746 return 0; 14747} 14748_ACEOF 14749if ac_fn_c_try_link "$LINENO"; then : 14750 ac_cv_lib_nsl_main=yes 14751else 14752 ac_cv_lib_nsl_main=no 14753fi 14754rm -f core conftest.err conftest.$ac_objext \ 14755 conftest$ac_exeext conftest.$ac_ext 14756LIBS=$ac_check_lib_save_LIBS 14757fi 14758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 14759$as_echo "$ac_cv_lib_nsl_main" >&6; } 14760if test "x$ac_cv_lib_nsl_main" = xyes; then : 14761 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl" 14762fi 14763 14764fi 14765 14766 unset ac_cv_func_gethostbyname 14767 LIBS=$libcc1_old_libs 14768 14769fi 14770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5 14771$as_echo "$libcc1_cv_lib_sockets" >&6; } 14772LIBS="$LIBS $libcc1_cv_lib_sockets" 14773 14774# If any of these functions are missing, simply don't bother building 14775# this plugin. 14776# Check for plugin support 14777 # Check whether --enable-plugin was given. 14778if test "${enable_plugin+set}" = set; then : 14779 enableval=$enable_plugin; enable_plugin=$enableval 14780else 14781 enable_plugin=yes; default_plugin=yes 14782fi 14783 14784 14785 pluginlibs= 14786 plugin_check=yes 14787 14788 case "${host}" in 14789 *-*-mingw*) 14790 # Since plugin support under MinGW is not as straightforward as on 14791 # other platforms (e.g., we have to link import library, etc), we 14792 # only enable it if explicitly requested. 14793 if test x"$default_plugin" = x"yes"; then 14794 enable_plugin=no 14795 elif test x"$enable_plugin" = x"yes"; then 14796 # Use make's target variable to derive import library name. 14797 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a' 14798 plugin_check=no 14799 fi 14800 ;; 14801 *-*-darwin*) 14802 if test x$build = x$host; then 14803 export_sym_check="nm${exeext} -g" 14804 elif test x$host = x$target; then 14805 export_sym_check="$gcc_cv_nm -g" 14806 else 14807 export_sym_check= 14808 fi 14809 ;; 14810 *) 14811 if test x$build = x$host; then 14812 export_sym_check="objdump${exeext} -T" 14813 elif test x$host = x$target; then 14814 export_sym_check="$gcc_cv_objdump -T" 14815 else 14816 export_sym_check= 14817 fi 14818 ;; 14819 esac 14820 14821 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then 14822 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5 14824$as_echo_n "checking for exported symbols... " >&6; } 14825 if test "x$export_sym_check" != x; then 14826 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c 14827 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1 14828 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 14829 : # No need to use a flag 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14831$as_echo "yes" >&6; } 14832 else 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14834$as_echo "yes" >&6; } 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5 14836$as_echo_n "checking for -rdynamic... " >&6; } 14837 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1 14838 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 14839 plugin_rdynamic=yes 14840 pluginlibs="-rdynamic" 14841 else 14842 plugin_rdynamic=no 14843 enable_plugin=no 14844 fi 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5 14846$as_echo "$plugin_rdynamic" >&6; } 14847 fi 14848 else 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5 14850$as_echo "unable to check" >&6; } 14851 fi 14852 14853 # Check -ldl 14854 saved_LIBS="$LIBS" 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 14856$as_echo_n "checking for library containing dlopen... " >&6; } 14857if ${ac_cv_search_dlopen+:} false; then : 14858 $as_echo_n "(cached) " >&6 14859else 14860 ac_func_search_save_LIBS=$LIBS 14861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14862/* end confdefs.h. */ 14863 14864/* Override any GCC internal prototype to avoid an error. 14865 Use char because int might match the return type of a GCC 14866 builtin and then its argument prototype would still apply. */ 14867#ifdef __cplusplus 14868extern "C" 14869#endif 14870char dlopen (); 14871int 14872main () 14873{ 14874return dlopen (); 14875 ; 14876 return 0; 14877} 14878_ACEOF 14879for ac_lib in '' dl; do 14880 if test -z "$ac_lib"; then 14881 ac_res="none required" 14882 else 14883 ac_res=-l$ac_lib 14884 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14885 fi 14886 if ac_fn_c_try_link "$LINENO"; then : 14887 ac_cv_search_dlopen=$ac_res 14888fi 14889rm -f core conftest.err conftest.$ac_objext \ 14890 conftest$ac_exeext 14891 if ${ac_cv_search_dlopen+:} false; then : 14892 break 14893fi 14894done 14895if ${ac_cv_search_dlopen+:} false; then : 14896 14897else 14898 ac_cv_search_dlopen=no 14899fi 14900rm conftest.$ac_ext 14901LIBS=$ac_func_search_save_LIBS 14902fi 14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14904$as_echo "$ac_cv_search_dlopen" >&6; } 14905ac_res=$ac_cv_search_dlopen 14906if test "$ac_res" != no; then : 14907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14908 14909fi 14910 14911 if test x"$ac_cv_search_dlopen" = x"-ldl"; then 14912 pluginlibs="$pluginlibs -ldl" 14913 fi 14914 LIBS="$saved_LIBS" 14915 14916 # Check that we can build shared objects with -fPIC -shared 14917 saved_LDFLAGS="$LDFLAGS" 14918 saved_CFLAGS="$CFLAGS" 14919 case "${host}" in 14920 *-*-darwin*) 14921 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` 14922 CFLAGS="$CFLAGS -fPIC" 14923 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup" 14924 ;; 14925 *) 14926 CFLAGS="$CFLAGS -fPIC" 14927 LDFLAGS="$LDFLAGS -fPIC -shared" 14928 ;; 14929 esac 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5 14931$as_echo_n "checking for -fPIC -shared... " >&6; } 14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14933/* end confdefs.h. */ 14934extern int X; 14935int 14936main () 14937{ 14938return X == 0; 14939 ; 14940 return 0; 14941} 14942_ACEOF 14943if ac_fn_c_try_link "$LINENO"; then : 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14945$as_echo "yes" >&6; }; have_pic_shared=yes 14946else 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14948$as_echo "no" >&6; }; have_pic_shared=no 14949fi 14950rm -f core conftest.err conftest.$ac_objext \ 14951 conftest$ac_exeext conftest.$ac_ext 14952 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then 14953 pluginlibs= 14954 enable_plugin=no 14955 fi 14956 LDFLAGS="$saved_LDFLAGS" 14957 CFLAGS="$saved_CFLAGS" 14958 14959 # If plugin support had been requested but not available, fail. 14960 if test x"$enable_plugin" = x"no" ; then 14961 if test x"$default_plugin" != x"yes"; then 14962 as_fn_error $? " 14963 Building GCC with plugin support requires a host that supports 14964 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5 14965 fi 14966 fi 14967 fi 14968 14969ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 14970if test "x$ac_cv_func_socketpair" = xyes; then : 14971 14972else 14973 enable_plugin=no 14974fi 14975 14976ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 14977if test "x$ac_cv_func_select" = xyes; then : 14978 14979else 14980 enable_plugin=no 14981fi 14982 14983ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 14984if test "x$ac_cv_func_fork" = xyes; then : 14985 14986else 14987 enable_plugin=no 14988fi 14989 14990 if test $enable_plugin = yes; then 14991 ENABLE_PLUGIN_TRUE= 14992 ENABLE_PLUGIN_FALSE='#' 14993else 14994 ENABLE_PLUGIN_TRUE='#' 14995 ENABLE_PLUGIN_FALSE= 14996fi 14997 14998 14999ac_config_files="$ac_config_files Makefile" 15000 15001cat >confcache <<\_ACEOF 15002# This file is a shell script that caches the results of configure 15003# tests run on this system so they can be shared between configure 15004# scripts and configure runs, see configure's option --config-cache. 15005# It is not useful on other systems. If it contains results you don't 15006# want to keep, you may remove or edit it. 15007# 15008# config.status only pays attention to the cache file if you give it 15009# the --recheck option to rerun configure. 15010# 15011# `ac_cv_env_foo' variables (set or unset) will be overridden when 15012# loading this file, other *unset* `ac_cv_foo' will be assigned the 15013# following values. 15014 15015_ACEOF 15016 15017# The following way of writing the cache mishandles newlines in values, 15018# but we know of no workaround that is simple, portable, and efficient. 15019# So, we kill variables containing newlines. 15020# Ultrix sh set writes to stderr and can't be redirected directly, 15021# and sets the high bit in the cache file unless we assign to the vars. 15022( 15023 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15024 eval ac_val=\$$ac_var 15025 case $ac_val in #( 15026 *${as_nl}*) 15027 case $ac_var in #( 15028 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15029$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15030 esac 15031 case $ac_var in #( 15032 _ | IFS | as_nl) ;; #( 15033 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15034 *) { eval $ac_var=; unset $ac_var;} ;; 15035 esac ;; 15036 esac 15037 done 15038 15039 (set) 2>&1 | 15040 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15041 *${as_nl}ac_space=\ *) 15042 # `set' does not quote correctly, so add quotes: double-quote 15043 # substitution turns \\\\ into \\, and sed turns \\ into \. 15044 sed -n \ 15045 "s/'/'\\\\''/g; 15046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15047 ;; #( 15048 *) 15049 # `set' quotes correctly as required by POSIX, so do not add quotes. 15050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15051 ;; 15052 esac | 15053 sort 15054) | 15055 sed ' 15056 /^ac_cv_env_/b end 15057 t clear 15058 :clear 15059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15060 t end 15061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15062 :end' >>confcache 15063if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15064 if test -w "$cache_file"; then 15065 if test "x$cache_file" != "x/dev/null"; then 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15067$as_echo "$as_me: updating cache $cache_file" >&6;} 15068 if test ! -f "$cache_file" || test -h "$cache_file"; then 15069 cat confcache >"$cache_file" 15070 else 15071 case $cache_file in #( 15072 */* | ?:*) 15073 mv -f confcache "$cache_file"$$ && 15074 mv -f "$cache_file"$$ "$cache_file" ;; #( 15075 *) 15076 mv -f confcache "$cache_file" ;; 15077 esac 15078 fi 15079 fi 15080 else 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15082$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15083 fi 15084fi 15085rm -f confcache 15086 15087test "x$prefix" = xNONE && prefix=$ac_default_prefix 15088# Let make expand exec_prefix. 15089test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15090 15091DEFS=-DHAVE_CONFIG_H 15092 15093ac_libobjs= 15094ac_ltlibobjs= 15095U= 15096for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15097 # 1. Remove the extension, and $U if already installed. 15098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15099 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15101 # will be set to the directory where LIBOBJS objects are built. 15102 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15103 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15104done 15105LIBOBJS=$ac_libobjs 15106 15107LTLIBOBJS=$ac_ltlibobjs 15108 15109 15110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15111$as_echo_n "checking that generated files are newer than configure... " >&6; } 15112 if test -n "$am_sleep_pid"; then 15113 # Hide warnings about reused PIDs. 15114 wait $am_sleep_pid 2>/dev/null 15115 fi 15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15117$as_echo "done" >&6; } 15118if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15119 as_fn_error $? "conditional \"AMDEP\" was never defined. 15120Usually this means the macro was only invoked conditionally." "$LINENO" 5 15121fi 15122if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15123 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15124Usually this means the macro was only invoked conditionally." "$LINENO" 5 15125fi 15126 if test -n "$EXEEXT"; then 15127 am__EXEEXT_TRUE= 15128 am__EXEEXT_FALSE='#' 15129else 15130 am__EXEEXT_TRUE='#' 15131 am__EXEEXT_FALSE= 15132fi 15133 15134if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15135 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15136Usually this means the macro was only invoked conditionally." "$LINENO" 5 15137fi 15138if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15139 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15140Usually this means the macro was only invoked conditionally." "$LINENO" 5 15141fi 15142if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then 15143 as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined. 15144Usually this means the macro was only invoked conditionally." "$LINENO" 5 15145fi 15146 15147: "${CONFIG_STATUS=./config.status}" 15148ac_write_fail=0 15149ac_clean_files_save=$ac_clean_files 15150ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15151{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15152$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15153as_write_fail=0 15154cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15155#! $SHELL 15156# Generated by $as_me. 15157# Run this file to recreate the current configuration. 15158# Compiler output produced by configure, useful for debugging 15159# configure, is in config.log if it exists. 15160 15161debug=false 15162ac_cs_recheck=false 15163ac_cs_silent=false 15164 15165SHELL=\${CONFIG_SHELL-$SHELL} 15166export SHELL 15167_ASEOF 15168cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15169## -------------------- ## 15170## M4sh Initialization. ## 15171## -------------------- ## 15172 15173# Be more Bourne compatible 15174DUALCASE=1; export DUALCASE # for MKS sh 15175if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15176 emulate sh 15177 NULLCMD=: 15178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15179 # is contrary to our usage. Disable this feature. 15180 alias -g '${1+"$@"}'='"$@"' 15181 setopt NO_GLOB_SUBST 15182else 15183 case `(set -o) 2>/dev/null` in #( 15184 *posix*) : 15185 set -o posix ;; #( 15186 *) : 15187 ;; 15188esac 15189fi 15190 15191 15192as_nl=' 15193' 15194export as_nl 15195# Printing a long string crashes Solaris 7 /usr/bin/printf. 15196as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15197as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15198as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15199# Prefer a ksh shell builtin over an external printf program on Solaris, 15200# but without wasting forks for bash or zsh. 15201if test -z "$BASH_VERSION$ZSH_VERSION" \ 15202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15203 as_echo='print -r --' 15204 as_echo_n='print -rn --' 15205elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15206 as_echo='printf %s\n' 15207 as_echo_n='printf %s' 15208else 15209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15211 as_echo_n='/usr/ucb/echo -n' 15212 else 15213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15214 as_echo_n_body='eval 15215 arg=$1; 15216 case $arg in #( 15217 *"$as_nl"*) 15218 expr "X$arg" : "X\\(.*\\)$as_nl"; 15219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15220 esac; 15221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15222 ' 15223 export as_echo_n_body 15224 as_echo_n='sh -c $as_echo_n_body as_echo' 15225 fi 15226 export as_echo_body 15227 as_echo='sh -c $as_echo_body as_echo' 15228fi 15229 15230# The user is always right. 15231if test "${PATH_SEPARATOR+set}" != set; then 15232 PATH_SEPARATOR=: 15233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15235 PATH_SEPARATOR=';' 15236 } 15237fi 15238 15239 15240# IFS 15241# We need space, tab and new line, in precisely that order. Quoting is 15242# there to prevent editors from complaining about space-tab. 15243# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15244# splitting by setting IFS to empty value.) 15245IFS=" "" $as_nl" 15246 15247# Find who we are. Look in the path if we contain no directory separator. 15248as_myself= 15249case $0 in #(( 15250 *[\\/]* ) as_myself=$0 ;; 15251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15252for as_dir in $PATH 15253do 15254 IFS=$as_save_IFS 15255 test -z "$as_dir" && as_dir=. 15256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15257 done 15258IFS=$as_save_IFS 15259 15260 ;; 15261esac 15262# We did not find ourselves, most probably we were run as `sh COMMAND' 15263# in which case we are not to be found in the path. 15264if test "x$as_myself" = x; then 15265 as_myself=$0 15266fi 15267if test ! -f "$as_myself"; then 15268 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15269 exit 1 15270fi 15271 15272# Unset variables that we do not need and which cause bugs (e.g. in 15273# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15274# suppresses any "Segmentation fault" message there. '((' could 15275# trigger a bug in pdksh 5.2.14. 15276for as_var in BASH_ENV ENV MAIL MAILPATH 15277do eval test x\${$as_var+set} = xset \ 15278 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15279done 15280PS1='$ ' 15281PS2='> ' 15282PS4='+ ' 15283 15284# NLS nuisances. 15285LC_ALL=C 15286export LC_ALL 15287LANGUAGE=C 15288export LANGUAGE 15289 15290# CDPATH. 15291(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15292 15293 15294# as_fn_error STATUS ERROR [LINENO LOG_FD] 15295# ---------------------------------------- 15296# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15297# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15298# script with STATUS, using 1 if that was 0. 15299as_fn_error () 15300{ 15301 as_status=$1; test $as_status -eq 0 && as_status=1 15302 if test "$4"; then 15303 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15304 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15305 fi 15306 $as_echo "$as_me: error: $2" >&2 15307 as_fn_exit $as_status 15308} # as_fn_error 15309 15310 15311# as_fn_set_status STATUS 15312# ----------------------- 15313# Set $? to STATUS, without forking. 15314as_fn_set_status () 15315{ 15316 return $1 15317} # as_fn_set_status 15318 15319# as_fn_exit STATUS 15320# ----------------- 15321# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15322as_fn_exit () 15323{ 15324 set +e 15325 as_fn_set_status $1 15326 exit $1 15327} # as_fn_exit 15328 15329# as_fn_unset VAR 15330# --------------- 15331# Portably unset VAR. 15332as_fn_unset () 15333{ 15334 { eval $1=; unset $1;} 15335} 15336as_unset=as_fn_unset 15337# as_fn_append VAR VALUE 15338# ---------------------- 15339# Append the text in VALUE to the end of the definition contained in VAR. Take 15340# advantage of any shell optimizations that allow amortized linear growth over 15341# repeated appends, instead of the typical quadratic growth present in naive 15342# implementations. 15343if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15344 eval 'as_fn_append () 15345 { 15346 eval $1+=\$2 15347 }' 15348else 15349 as_fn_append () 15350 { 15351 eval $1=\$$1\$2 15352 } 15353fi # as_fn_append 15354 15355# as_fn_arith ARG... 15356# ------------------ 15357# Perform arithmetic evaluation on the ARGs, and store the result in the 15358# global $as_val. Take advantage of shells that can avoid forks. The arguments 15359# must be portable across $(()) and expr. 15360if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15361 eval 'as_fn_arith () 15362 { 15363 as_val=$(( $* )) 15364 }' 15365else 15366 as_fn_arith () 15367 { 15368 as_val=`expr "$@" || test $? -eq 1` 15369 } 15370fi # as_fn_arith 15371 15372 15373if expr a : '\(a\)' >/dev/null 2>&1 && 15374 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15375 as_expr=expr 15376else 15377 as_expr=false 15378fi 15379 15380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15381 as_basename=basename 15382else 15383 as_basename=false 15384fi 15385 15386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15387 as_dirname=dirname 15388else 15389 as_dirname=false 15390fi 15391 15392as_me=`$as_basename -- "$0" || 15393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15394 X"$0" : 'X\(//\)$' \| \ 15395 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15396$as_echo X/"$0" | 15397 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15398 s//\1/ 15399 q 15400 } 15401 /^X\/\(\/\/\)$/{ 15402 s//\1/ 15403 q 15404 } 15405 /^X\/\(\/\).*/{ 15406 s//\1/ 15407 q 15408 } 15409 s/.*/./; q'` 15410 15411# Avoid depending upon Character Ranges. 15412as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15414as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15415as_cr_digits='0123456789' 15416as_cr_alnum=$as_cr_Letters$as_cr_digits 15417 15418ECHO_C= ECHO_N= ECHO_T= 15419case `echo -n x` in #((((( 15420-n*) 15421 case `echo 'xy\c'` in 15422 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15423 xy) ECHO_C='\c';; 15424 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15425 ECHO_T=' ';; 15426 esac;; 15427*) 15428 ECHO_N='-n';; 15429esac 15430 15431rm -f conf$$ conf$$.exe conf$$.file 15432if test -d conf$$.dir; then 15433 rm -f conf$$.dir/conf$$.file 15434else 15435 rm -f conf$$.dir 15436 mkdir conf$$.dir 2>/dev/null 15437fi 15438if (echo >conf$$.file) 2>/dev/null; then 15439 if ln -s conf$$.file conf$$ 2>/dev/null; then 15440 as_ln_s='ln -s' 15441 # ... but there are two gotchas: 15442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15444 # In both cases, we have to default to `cp -pR'. 15445 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15446 as_ln_s='cp -pR' 15447 elif ln conf$$.file conf$$ 2>/dev/null; then 15448 as_ln_s=ln 15449 else 15450 as_ln_s='cp -pR' 15451 fi 15452else 15453 as_ln_s='cp -pR' 15454fi 15455rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15456rmdir conf$$.dir 2>/dev/null 15457 15458 15459# as_fn_mkdir_p 15460# ------------- 15461# Create "$as_dir" as a directory, including parents if necessary. 15462as_fn_mkdir_p () 15463{ 15464 15465 case $as_dir in #( 15466 -*) as_dir=./$as_dir;; 15467 esac 15468 test -d "$as_dir" || eval $as_mkdir_p || { 15469 as_dirs= 15470 while :; do 15471 case $as_dir in #( 15472 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15473 *) as_qdir=$as_dir;; 15474 esac 15475 as_dirs="'$as_qdir' $as_dirs" 15476 as_dir=`$as_dirname -- "$as_dir" || 15477$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15478 X"$as_dir" : 'X\(//\)[^/]' \| \ 15479 X"$as_dir" : 'X\(//\)$' \| \ 15480 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15481$as_echo X"$as_dir" | 15482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15483 s//\1/ 15484 q 15485 } 15486 /^X\(\/\/\)[^/].*/{ 15487 s//\1/ 15488 q 15489 } 15490 /^X\(\/\/\)$/{ 15491 s//\1/ 15492 q 15493 } 15494 /^X\(\/\).*/{ 15495 s//\1/ 15496 q 15497 } 15498 s/.*/./; q'` 15499 test -d "$as_dir" && break 15500 done 15501 test -z "$as_dirs" || eval "mkdir $as_dirs" 15502 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15503 15504 15505} # as_fn_mkdir_p 15506if mkdir -p . 2>/dev/null; then 15507 as_mkdir_p='mkdir -p "$as_dir"' 15508else 15509 test -d ./-p && rmdir ./-p 15510 as_mkdir_p=false 15511fi 15512 15513 15514# as_fn_executable_p FILE 15515# ----------------------- 15516# Test if FILE is an executable regular file. 15517as_fn_executable_p () 15518{ 15519 test -f "$1" && test -x "$1" 15520} # as_fn_executable_p 15521as_test_x='test -x' 15522as_executable_p=as_fn_executable_p 15523 15524# Sed expression to map a string onto a valid CPP name. 15525as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15526 15527# Sed expression to map a string onto a valid variable name. 15528as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15529 15530 15531exec 6>&1 15532## ----------------------------------- ## 15533## Main body of $CONFIG_STATUS script. ## 15534## ----------------------------------- ## 15535_ASEOF 15536test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15537 15538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15539# Save the log message, to keep $0 and so on meaningful, and to 15540# report actual input values of CONFIG_FILES etc. instead of their 15541# values after options handling. 15542ac_log=" 15543This file was extended by libcc1 $as_me version-unused, which was 15544generated by GNU Autoconf 2.69. Invocation command line was 15545 15546 CONFIG_FILES = $CONFIG_FILES 15547 CONFIG_HEADERS = $CONFIG_HEADERS 15548 CONFIG_LINKS = $CONFIG_LINKS 15549 CONFIG_COMMANDS = $CONFIG_COMMANDS 15550 $ $0 $@ 15551 15552on `(hostname || uname -n) 2>/dev/null | sed 1q` 15553" 15554 15555_ACEOF 15556 15557case $ac_config_files in *" 15558"*) set x $ac_config_files; shift; ac_config_files=$*;; 15559esac 15560 15561case $ac_config_headers in *" 15562"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15563esac 15564 15565 15566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15567# Files that config.status was made for. 15568config_files="$ac_config_files" 15569config_headers="$ac_config_headers" 15570config_commands="$ac_config_commands" 15571 15572_ACEOF 15573 15574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15575ac_cs_usage="\ 15576\`$as_me' instantiates files and other configuration actions 15577from templates according to the current configuration. Unless the files 15578and actions are specified as TAGs, all are instantiated by default. 15579 15580Usage: $0 [OPTION]... [TAG]... 15581 15582 -h, --help print this help, then exit 15583 -V, --version print version number and configuration settings, then exit 15584 --config print configuration, then exit 15585 -q, --quiet, --silent 15586 do not print progress messages 15587 -d, --debug don't remove temporary files 15588 --recheck update $as_me by reconfiguring in the same conditions 15589 --file=FILE[:TEMPLATE] 15590 instantiate the configuration file FILE 15591 --header=FILE[:TEMPLATE] 15592 instantiate the configuration header FILE 15593 15594Configuration files: 15595$config_files 15596 15597Configuration headers: 15598$config_headers 15599 15600Configuration commands: 15601$config_commands 15602 15603Report bugs to the package provider." 15604 15605_ACEOF 15606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15607ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15608ac_cs_version="\\ 15609libcc1 config.status version-unused 15610configured by $0, generated by GNU Autoconf 2.69, 15611 with options \\"\$ac_cs_config\\" 15612 15613Copyright (C) 2012 Free Software Foundation, Inc. 15614This config.status script is free software; the Free Software Foundation 15615gives unlimited permission to copy, distribute and modify it." 15616 15617ac_pwd='$ac_pwd' 15618srcdir='$srcdir' 15619INSTALL='$INSTALL' 15620MKDIR_P='$MKDIR_P' 15621AWK='$AWK' 15622test -n "\$AWK" || AWK=awk 15623_ACEOF 15624 15625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15626# The default lists apply if the user does not specify any file. 15627ac_need_defaults=: 15628while test $# != 0 15629do 15630 case $1 in 15631 --*=?*) 15632 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15634 ac_shift=: 15635 ;; 15636 --*=) 15637 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15638 ac_optarg= 15639 ac_shift=: 15640 ;; 15641 *) 15642 ac_option=$1 15643 ac_optarg=$2 15644 ac_shift=shift 15645 ;; 15646 esac 15647 15648 case $ac_option in 15649 # Handling of the options. 15650 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15651 ac_cs_recheck=: ;; 15652 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15653 $as_echo "$ac_cs_version"; exit ;; 15654 --config | --confi | --conf | --con | --co | --c ) 15655 $as_echo "$ac_cs_config"; exit ;; 15656 --debug | --debu | --deb | --de | --d | -d ) 15657 debug=: ;; 15658 --file | --fil | --fi | --f ) 15659 $ac_shift 15660 case $ac_optarg in 15661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15662 '') as_fn_error $? "missing file argument" ;; 15663 esac 15664 as_fn_append CONFIG_FILES " '$ac_optarg'" 15665 ac_need_defaults=false;; 15666 --header | --heade | --head | --hea ) 15667 $ac_shift 15668 case $ac_optarg in 15669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15670 esac 15671 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15672 ac_need_defaults=false;; 15673 --he | --h) 15674 # Conflict between --help and --header 15675 as_fn_error $? "ambiguous option: \`$1' 15676Try \`$0 --help' for more information.";; 15677 --help | --hel | -h ) 15678 $as_echo "$ac_cs_usage"; exit ;; 15679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15680 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15681 ac_cs_silent=: ;; 15682 15683 # This is an error. 15684 -*) as_fn_error $? "unrecognized option: \`$1' 15685Try \`$0 --help' for more information." ;; 15686 15687 *) as_fn_append ac_config_targets " $1" 15688 ac_need_defaults=false ;; 15689 15690 esac 15691 shift 15692done 15693 15694ac_configure_extra_args= 15695 15696if $ac_cs_silent; then 15697 exec 6>/dev/null 15698 ac_configure_extra_args="$ac_configure_extra_args --silent" 15699fi 15700 15701_ACEOF 15702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15703if \$ac_cs_recheck; then 15704 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15705 shift 15706 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15707 CONFIG_SHELL='$SHELL' 15708 export CONFIG_SHELL 15709 exec "\$@" 15710fi 15711 15712_ACEOF 15713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15714exec 5>>config.log 15715{ 15716 echo 15717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15718## Running $as_me. ## 15719_ASBOX 15720 $as_echo "$ac_log" 15721} >&5 15722 15723_ACEOF 15724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15725# 15726# INIT-COMMANDS 15727# 15728AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15729 15730 15731# The HP-UX ksh and POSIX shell print the target directory to stdout 15732# if CDPATH is set. 15733(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15734 15735sed_quote_subst='$sed_quote_subst' 15736double_quote_subst='$double_quote_subst' 15737delay_variable_subst='$delay_variable_subst' 15738macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15739macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15740enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15741enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15742pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15743enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15744SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15745ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15746host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15747host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15748host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15749build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15750build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15751build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15752SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15753Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15754GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15755EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15756FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15757LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15758NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15759LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15760max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15761ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15762exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15763lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15764lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15765lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15766reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15767reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15768OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15769deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15770file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15771AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15772AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15773STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15774RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15775old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15776old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15777old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15778lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15779CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15780CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15781compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15782GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15783lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15784lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15785lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15786lt_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"`' 15787objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15788MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15789lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15790lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15791lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15792lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15793lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15794need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15795DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15796NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15797LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15798OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15799OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15800libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15801shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15802extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15803archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15804enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15805export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15806whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15807compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15808old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15809old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15810archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15811archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15812module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15813module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15814with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15815allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15816no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15817hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15818hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15819hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15820hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15821hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15822hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15823hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15824hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15825inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15826link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15827fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15828always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15829export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15830exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15831include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15832prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15833file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15834variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15835need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15836need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15837version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15838runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15839shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15840shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15841libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15842library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15843soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15844install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15845postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15846postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15847finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15848finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15849hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15850sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15851sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15852hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15853enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15854enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15855enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15856old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15857striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15858compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 15859predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 15860postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 15861predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 15862postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 15863compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 15864LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 15865reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 15866reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15867old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15868compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 15869GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 15870lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 15871lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 15872lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 15873lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 15874lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 15875archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 15876enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 15877export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15878whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15879compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 15880old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15881old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15882archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15883archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15884module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15885module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15886with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 15887allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15888no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15889hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15890hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 15891hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 15892hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 15893hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 15894hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 15895hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 15896hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 15897inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 15898link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 15899fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 15900always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 15901export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15902exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15903include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15904prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15905file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 15906hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 15907compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 15908predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15909postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15910predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 15911postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 15912compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 15913 15914LTCC='$LTCC' 15915LTCFLAGS='$LTCFLAGS' 15916compiler='$compiler_DEFAULT' 15917 15918# A function that is used when there is no print builtin or printf. 15919func_fallback_echo () 15920{ 15921 eval 'cat <<_LTECHO_EOF 15922\$1 15923_LTECHO_EOF' 15924} 15925 15926# Quote evaled strings. 15927for var in SHELL \ 15928ECHO \ 15929SED \ 15930GREP \ 15931EGREP \ 15932FGREP \ 15933LD \ 15934NM \ 15935LN_S \ 15936lt_SP2NL \ 15937lt_NL2SP \ 15938reload_flag \ 15939OBJDUMP \ 15940deplibs_check_method \ 15941file_magic_cmd \ 15942AR \ 15943AR_FLAGS \ 15944STRIP \ 15945RANLIB \ 15946CC \ 15947CFLAGS \ 15948compiler \ 15949lt_cv_sys_global_symbol_pipe \ 15950lt_cv_sys_global_symbol_to_cdecl \ 15951lt_cv_sys_global_symbol_to_c_name_address \ 15952lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15953lt_prog_compiler_no_builtin_flag \ 15954lt_prog_compiler_wl \ 15955lt_prog_compiler_pic \ 15956lt_prog_compiler_static \ 15957lt_cv_prog_compiler_c_o \ 15958need_locks \ 15959DSYMUTIL \ 15960NMEDIT \ 15961LIPO \ 15962OTOOL \ 15963OTOOL64 \ 15964shrext_cmds \ 15965export_dynamic_flag_spec \ 15966whole_archive_flag_spec \ 15967compiler_needs_object \ 15968with_gnu_ld \ 15969allow_undefined_flag \ 15970no_undefined_flag \ 15971hardcode_libdir_flag_spec \ 15972hardcode_libdir_flag_spec_ld \ 15973hardcode_libdir_separator \ 15974fix_srcfile_path \ 15975exclude_expsyms \ 15976include_expsyms \ 15977file_list_spec \ 15978variables_saved_for_relink \ 15979libname_spec \ 15980library_names_spec \ 15981soname_spec \ 15982install_override_mode \ 15983finish_eval \ 15984old_striplib \ 15985striplib \ 15986compiler_lib_search_dirs \ 15987predep_objects \ 15988postdep_objects \ 15989predeps \ 15990postdeps \ 15991compiler_lib_search_path \ 15992LD_CXX \ 15993reload_flag_CXX \ 15994compiler_CXX \ 15995lt_prog_compiler_no_builtin_flag_CXX \ 15996lt_prog_compiler_wl_CXX \ 15997lt_prog_compiler_pic_CXX \ 15998lt_prog_compiler_static_CXX \ 15999lt_cv_prog_compiler_c_o_CXX \ 16000export_dynamic_flag_spec_CXX \ 16001whole_archive_flag_spec_CXX \ 16002compiler_needs_object_CXX \ 16003with_gnu_ld_CXX \ 16004allow_undefined_flag_CXX \ 16005no_undefined_flag_CXX \ 16006hardcode_libdir_flag_spec_CXX \ 16007hardcode_libdir_flag_spec_ld_CXX \ 16008hardcode_libdir_separator_CXX \ 16009fix_srcfile_path_CXX \ 16010exclude_expsyms_CXX \ 16011include_expsyms_CXX \ 16012file_list_spec_CXX \ 16013compiler_lib_search_dirs_CXX \ 16014predep_objects_CXX \ 16015postdep_objects_CXX \ 16016predeps_CXX \ 16017postdeps_CXX \ 16018compiler_lib_search_path_CXX; do 16019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16020 *[\\\\\\\`\\"\\\$]*) 16021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16022 ;; 16023 *) 16024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16025 ;; 16026 esac 16027done 16028 16029# Double-quote double-evaled strings. 16030for var in reload_cmds \ 16031old_postinstall_cmds \ 16032old_postuninstall_cmds \ 16033old_archive_cmds \ 16034extract_expsyms_cmds \ 16035old_archive_from_new_cmds \ 16036old_archive_from_expsyms_cmds \ 16037archive_cmds \ 16038archive_expsym_cmds \ 16039module_cmds \ 16040module_expsym_cmds \ 16041export_symbols_cmds \ 16042prelink_cmds \ 16043postinstall_cmds \ 16044postuninstall_cmds \ 16045finish_cmds \ 16046sys_lib_search_path_spec \ 16047sys_lib_dlsearch_path_spec \ 16048reload_cmds_CXX \ 16049old_archive_cmds_CXX \ 16050old_archive_from_new_cmds_CXX \ 16051old_archive_from_expsyms_cmds_CXX \ 16052archive_cmds_CXX \ 16053archive_expsym_cmds_CXX \ 16054module_cmds_CXX \ 16055module_expsym_cmds_CXX \ 16056export_symbols_cmds_CXX \ 16057prelink_cmds_CXX; do 16058 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16059 *[\\\\\\\`\\"\\\$]*) 16060 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16061 ;; 16062 *) 16063 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16064 ;; 16065 esac 16066done 16067 16068ac_aux_dir='$ac_aux_dir' 16069xsi_shell='$xsi_shell' 16070lt_shell_append='$lt_shell_append' 16071 16072# See if we are running on zsh, and set the options which allow our 16073# commands through without removal of \ escapes INIT. 16074if test -n "\${ZSH_VERSION+set}" ; then 16075 setopt NO_GLOB_SUBST 16076fi 16077 16078 16079 PACKAGE='$PACKAGE' 16080 VERSION='$VERSION' 16081 TIMESTAMP='$TIMESTAMP' 16082 RM='$RM' 16083 ofile='$ofile' 16084 16085 16086 16087 16088 16089 16090_ACEOF 16091 16092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16093 16094# Handling of arguments. 16095for ac_config_target in $ac_config_targets 16096do 16097 case $ac_config_target in 16098 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;; 16099 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16100 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16101 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16102 16103 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16104 esac 16105done 16106 16107 16108# If the user did not use the arguments to specify the items to instantiate, 16109# then the envvar interface is used. Set only those that are not. 16110# We use the long form for the default assignment because of an extremely 16111# bizarre bug on SunOS 4.1.3. 16112if $ac_need_defaults; then 16113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16116fi 16117 16118# Have a temporary directory for convenience. Make it in the build tree 16119# simply because there is no reason against having it here, and in addition, 16120# creating and moving files from /tmp can sometimes cause problems. 16121# Hook for its removal unless debugging. 16122# Note that there is a small window in which the directory will not be cleaned: 16123# after its creation but before its name has been assigned to `$tmp'. 16124$debug || 16125{ 16126 tmp= ac_tmp= 16127 trap 'exit_status=$? 16128 : "${ac_tmp:=$tmp}" 16129 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16130' 0 16131 trap 'as_fn_exit 1' 1 2 13 15 16132} 16133# Create a (secure) tmp directory for tmp files. 16134 16135{ 16136 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16137 test -d "$tmp" 16138} || 16139{ 16140 tmp=./conf$$-$RANDOM 16141 (umask 077 && mkdir "$tmp") 16142} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16143ac_tmp=$tmp 16144 16145# Set up the scripts for CONFIG_FILES section. 16146# No need to generate them if there are no CONFIG_FILES. 16147# This happens for instance with `./config.status config.h'. 16148if test -n "$CONFIG_FILES"; then 16149 16150 16151ac_cr=`echo X | tr X '\015'` 16152# On cygwin, bash can eat \r inside `` if the user requested igncr. 16153# But we know of no other shell where ac_cr would be empty at this 16154# point, so we can use a bashism as a fallback. 16155if test "x$ac_cr" = x; then 16156 eval ac_cr=\$\'\\r\' 16157fi 16158ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16159if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16160 ac_cs_awk_cr='\\r' 16161else 16162 ac_cs_awk_cr=$ac_cr 16163fi 16164 16165echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16166_ACEOF 16167 16168 16169{ 16170 echo "cat >conf$$subs.awk <<_ACEOF" && 16171 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16172 echo "_ACEOF" 16173} >conf$$subs.sh || 16174 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16175ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16176ac_delim='%!_!# ' 16177for ac_last_try in false false false false false :; do 16178 . ./conf$$subs.sh || 16179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16180 16181 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16182 if test $ac_delim_n = $ac_delim_num; then 16183 break 16184 elif $ac_last_try; then 16185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16186 else 16187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16188 fi 16189done 16190rm -f conf$$subs.sh 16191 16192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16193cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16194_ACEOF 16195sed -n ' 16196h 16197s/^/S["/; s/!.*/"]=/ 16198p 16199g 16200s/^[^!]*!// 16201:repl 16202t repl 16203s/'"$ac_delim"'$// 16204t delim 16205:nl 16206h 16207s/\(.\{148\}\)..*/\1/ 16208t more1 16209s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16210p 16211n 16212b repl 16213:more1 16214s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16215p 16216g 16217s/.\{148\}// 16218t nl 16219:delim 16220h 16221s/\(.\{148\}\)..*/\1/ 16222t more2 16223s/["\\]/\\&/g; s/^/"/; s/$/"/ 16224p 16225b 16226:more2 16227s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16228p 16229g 16230s/.\{148\}// 16231t delim 16232' <conf$$subs.awk | sed ' 16233/^[^""]/{ 16234 N 16235 s/\n// 16236} 16237' >>$CONFIG_STATUS || ac_write_fail=1 16238rm -f conf$$subs.awk 16239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16240_ACAWK 16241cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16242 for (key in S) S_is_set[key] = 1 16243 FS = "" 16244 16245} 16246{ 16247 line = $ 0 16248 nfields = split(line, field, "@") 16249 substed = 0 16250 len = length(field[1]) 16251 for (i = 2; i < nfields; i++) { 16252 key = field[i] 16253 keylen = length(key) 16254 if (S_is_set[key]) { 16255 value = S[key] 16256 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16257 len += length(value) + length(field[++i]) 16258 substed = 1 16259 } else 16260 len += 1 + keylen 16261 } 16262 16263 print line 16264} 16265 16266_ACAWK 16267_ACEOF 16268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16269if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16270 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16271else 16272 cat 16273fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16274 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16275_ACEOF 16276 16277# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16278# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16279# trailing colons and then remove the whole line if VPATH becomes empty 16280# (actually we leave an empty line to preserve line numbers). 16281if test "x$srcdir" = x.; then 16282 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16283h 16284s/// 16285s/^/:/ 16286s/[ ]*$/:/ 16287s/:\$(srcdir):/:/g 16288s/:\${srcdir}:/:/g 16289s/:@srcdir@:/:/g 16290s/^:*// 16291s/:*$// 16292x 16293s/\(=[ ]*\).*/\1/ 16294G 16295s/\n// 16296s/^[^=]*=[ ]*$// 16297}' 16298fi 16299 16300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16301fi # test -n "$CONFIG_FILES" 16302 16303# Set up the scripts for CONFIG_HEADERS section. 16304# No need to generate them if there are no CONFIG_HEADERS. 16305# This happens for instance with `./config.status Makefile'. 16306if test -n "$CONFIG_HEADERS"; then 16307cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16308BEGIN { 16309_ACEOF 16310 16311# Transform confdefs.h into an awk script `defines.awk', embedded as 16312# here-document in config.status, that substitutes the proper values into 16313# config.h.in to produce config.h. 16314 16315# Create a delimiter string that does not exist in confdefs.h, to ease 16316# handling of long lines. 16317ac_delim='%!_!# ' 16318for ac_last_try in false false :; do 16319 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16320 if test -z "$ac_tt"; then 16321 break 16322 elif $ac_last_try; then 16323 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16324 else 16325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16326 fi 16327done 16328 16329# For the awk script, D is an array of macro values keyed by name, 16330# likewise P contains macro parameters if any. Preserve backslash 16331# newline sequences. 16332 16333ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16334sed -n ' 16335s/.\{148\}/&'"$ac_delim"'/g 16336t rset 16337:rset 16338s/^[ ]*#[ ]*define[ ][ ]*/ / 16339t def 16340d 16341:def 16342s/\\$// 16343t bsnl 16344s/["\\]/\\&/g 16345s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16346D["\1"]=" \3"/p 16347s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16348d 16349:bsnl 16350s/["\\]/\\&/g 16351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16352D["\1"]=" \3\\\\\\n"\\/p 16353t cont 16354s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16355t cont 16356d 16357:cont 16358n 16359s/.\{148\}/&'"$ac_delim"'/g 16360t clear 16361:clear 16362s/\\$// 16363t bsnlc 16364s/["\\]/\\&/g; s/^/"/; s/$/"/p 16365d 16366:bsnlc 16367s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16368b cont 16369' <confdefs.h | sed ' 16370s/'"$ac_delim"'/"\\\ 16371"/g' >>$CONFIG_STATUS || ac_write_fail=1 16372 16373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16374 for (key in D) D_is_set[key] = 1 16375 FS = "" 16376} 16377/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16378 line = \$ 0 16379 split(line, arg, " ") 16380 if (arg[1] == "#") { 16381 defundef = arg[2] 16382 mac1 = arg[3] 16383 } else { 16384 defundef = substr(arg[1], 2) 16385 mac1 = arg[2] 16386 } 16387 split(mac1, mac2, "(") #) 16388 macro = mac2[1] 16389 prefix = substr(line, 1, index(line, defundef) - 1) 16390 if (D_is_set[macro]) { 16391 # Preserve the white space surrounding the "#". 16392 print prefix "define", macro P[macro] D[macro] 16393 next 16394 } else { 16395 # Replace #undef with comments. This is necessary, for example, 16396 # in the case of _POSIX_SOURCE, which is predefined and required 16397 # on some systems where configure will not decide to define it. 16398 if (defundef == "undef") { 16399 print "/*", prefix defundef, macro, "*/" 16400 next 16401 } 16402 } 16403} 16404{ print } 16405_ACAWK 16406_ACEOF 16407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16408 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16409fi # test -n "$CONFIG_HEADERS" 16410 16411 16412eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16413shift 16414for ac_tag 16415do 16416 case $ac_tag in 16417 :[FHLC]) ac_mode=$ac_tag; continue;; 16418 esac 16419 case $ac_mode$ac_tag in 16420 :[FHL]*:*);; 16421 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16422 :[FH]-) ac_tag=-:-;; 16423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16424 esac 16425 ac_save_IFS=$IFS 16426 IFS=: 16427 set x $ac_tag 16428 IFS=$ac_save_IFS 16429 shift 16430 ac_file=$1 16431 shift 16432 16433 case $ac_mode in 16434 :L) ac_source=$1;; 16435 :[FH]) 16436 ac_file_inputs= 16437 for ac_f 16438 do 16439 case $ac_f in 16440 -) ac_f="$ac_tmp/stdin";; 16441 *) # Look for the file first in the build tree, then in the source tree 16442 # (if the path is not absolute). The absolute path cannot be DOS-style, 16443 # because $ac_f cannot contain `:'. 16444 test -f "$ac_f" || 16445 case $ac_f in 16446 [\\/$]*) false;; 16447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16448 esac || 16449 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16450 esac 16451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16452 as_fn_append ac_file_inputs " '$ac_f'" 16453 done 16454 16455 # Let's still pretend it is `configure' which instantiates (i.e., don't 16456 # use $as_me), people would be surprised to read: 16457 # /* config.h. Generated by config.status. */ 16458 configure_input='Generated from '` 16459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16460 `' by configure.' 16461 if test x"$ac_file" != x-; then 16462 configure_input="$ac_file. $configure_input" 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16464$as_echo "$as_me: creating $ac_file" >&6;} 16465 fi 16466 # Neutralize special characters interpreted by sed in replacement strings. 16467 case $configure_input in #( 16468 *\&* | *\|* | *\\* ) 16469 ac_sed_conf_input=`$as_echo "$configure_input" | 16470 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16471 *) ac_sed_conf_input=$configure_input;; 16472 esac 16473 16474 case $ac_tag in 16475 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16477 esac 16478 ;; 16479 esac 16480 16481 ac_dir=`$as_dirname -- "$ac_file" || 16482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16483 X"$ac_file" : 'X\(//\)[^/]' \| \ 16484 X"$ac_file" : 'X\(//\)$' \| \ 16485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16486$as_echo X"$ac_file" | 16487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16488 s//\1/ 16489 q 16490 } 16491 /^X\(\/\/\)[^/].*/{ 16492 s//\1/ 16493 q 16494 } 16495 /^X\(\/\/\)$/{ 16496 s//\1/ 16497 q 16498 } 16499 /^X\(\/\).*/{ 16500 s//\1/ 16501 q 16502 } 16503 s/.*/./; q'` 16504 as_dir="$ac_dir"; as_fn_mkdir_p 16505 ac_builddir=. 16506 16507case "$ac_dir" in 16508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16509*) 16510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16511 # A ".." for each directory in $ac_dir_suffix. 16512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16513 case $ac_top_builddir_sub in 16514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16516 esac ;; 16517esac 16518ac_abs_top_builddir=$ac_pwd 16519ac_abs_builddir=$ac_pwd$ac_dir_suffix 16520# for backward compatibility: 16521ac_top_builddir=$ac_top_build_prefix 16522 16523case $srcdir in 16524 .) # We are building in place. 16525 ac_srcdir=. 16526 ac_top_srcdir=$ac_top_builddir_sub 16527 ac_abs_top_srcdir=$ac_pwd ;; 16528 [\\/]* | ?:[\\/]* ) # Absolute name. 16529 ac_srcdir=$srcdir$ac_dir_suffix; 16530 ac_top_srcdir=$srcdir 16531 ac_abs_top_srcdir=$srcdir ;; 16532 *) # Relative name. 16533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16534 ac_top_srcdir=$ac_top_build_prefix$srcdir 16535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16536esac 16537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16538 16539 16540 case $ac_mode in 16541 :F) 16542 # 16543 # CONFIG_FILE 16544 # 16545 16546 case $INSTALL in 16547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16548 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16549 esac 16550 ac_MKDIR_P=$MKDIR_P 16551 case $MKDIR_P in 16552 [\\/$]* | ?:[\\/]* ) ;; 16553 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16554 esac 16555_ACEOF 16556 16557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16558# If the template does not know about datarootdir, expand it. 16559# FIXME: This hack should be removed a few years after 2.60. 16560ac_datarootdir_hack=; ac_datarootdir_seen= 16561ac_sed_dataroot=' 16562/datarootdir/ { 16563 p 16564 q 16565} 16566/@datadir@/p 16567/@docdir@/p 16568/@infodir@/p 16569/@localedir@/p 16570/@mandir@/p' 16571case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16572*datarootdir*) ac_datarootdir_seen=yes;; 16573*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16575$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16576_ACEOF 16577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16578 ac_datarootdir_hack=' 16579 s&@datadir@&$datadir&g 16580 s&@docdir@&$docdir&g 16581 s&@infodir@&$infodir&g 16582 s&@localedir@&$localedir&g 16583 s&@mandir@&$mandir&g 16584 s&\\\${datarootdir}&$datarootdir&g' ;; 16585esac 16586_ACEOF 16587 16588# Neutralize VPATH when `$srcdir' = `.'. 16589# Shell code in configure.ac might set extrasub. 16590# FIXME: do we really want to maintain this feature? 16591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16592ac_sed_extra="$ac_vpsub 16593$extrasub 16594_ACEOF 16595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16596:t 16597/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16598s|@configure_input@|$ac_sed_conf_input|;t t 16599s&@top_builddir@&$ac_top_builddir_sub&;t t 16600s&@top_build_prefix@&$ac_top_build_prefix&;t t 16601s&@srcdir@&$ac_srcdir&;t t 16602s&@abs_srcdir@&$ac_abs_srcdir&;t t 16603s&@top_srcdir@&$ac_top_srcdir&;t t 16604s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16605s&@builddir@&$ac_builddir&;t t 16606s&@abs_builddir@&$ac_abs_builddir&;t t 16607s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16608s&@INSTALL@&$ac_INSTALL&;t t 16609s&@MKDIR_P@&$ac_MKDIR_P&;t t 16610$ac_datarootdir_hack 16611" 16612eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16613 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16614 16615test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16616 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16617 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16618 "$ac_tmp/out"`; test -z "$ac_out"; } && 16619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16620which seems to be undefined. Please make sure it is defined" >&5 16621$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16622which seems to be undefined. Please make sure it is defined" >&2;} 16623 16624 rm -f "$ac_tmp/stdin" 16625 case $ac_file in 16626 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16627 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16628 esac \ 16629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16630 ;; 16631 :H) 16632 # 16633 # CONFIG_HEADER 16634 # 16635 if test x"$ac_file" != x-; then 16636 { 16637 $as_echo "/* $configure_input */" \ 16638 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16639 } >"$ac_tmp/config.h" \ 16640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16641 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16643$as_echo "$as_me: $ac_file is unchanged" >&6;} 16644 else 16645 rm -f "$ac_file" 16646 mv "$ac_tmp/config.h" "$ac_file" \ 16647 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16648 fi 16649 else 16650 $as_echo "/* $configure_input */" \ 16651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16652 || as_fn_error $? "could not create -" "$LINENO" 5 16653 fi 16654# Compute "$ac_file"'s index in $config_headers. 16655_am_arg="$ac_file" 16656_am_stamp_count=1 16657for _am_header in $config_headers :; do 16658 case $_am_header in 16659 $_am_arg | $_am_arg:* ) 16660 break ;; 16661 * ) 16662 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16663 esac 16664done 16665echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16666$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16667 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16668 X"$_am_arg" : 'X\(//\)$' \| \ 16669 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16670$as_echo X"$_am_arg" | 16671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16672 s//\1/ 16673 q 16674 } 16675 /^X\(\/\/\)[^/].*/{ 16676 s//\1/ 16677 q 16678 } 16679 /^X\(\/\/\)$/{ 16680 s//\1/ 16681 q 16682 } 16683 /^X\(\/\).*/{ 16684 s//\1/ 16685 q 16686 } 16687 s/.*/./; q'`/stamp-h$_am_stamp_count 16688 ;; 16689 16690 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16691$as_echo "$as_me: executing $ac_file commands" >&6;} 16692 ;; 16693 esac 16694 16695 16696 case $ac_file$ac_mode in 16697 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16698 # Older Autoconf quotes --file arguments for eval, but not when files 16699 # are listed without --file. Let's play safe and only enable the eval 16700 # if we detect the quoting. 16701 case $CONFIG_FILES in 16702 *\'*) eval set x "$CONFIG_FILES" ;; 16703 *) set x $CONFIG_FILES ;; 16704 esac 16705 shift 16706 for mf 16707 do 16708 # Strip MF so we end up with the name of the file. 16709 mf=`echo "$mf" | sed -e 's/:.*$//'` 16710 # Check whether this is an Automake generated Makefile or not. 16711 # We used to match only the files named 'Makefile.in', but 16712 # some people rename them; so instead we look at the file content. 16713 # Grep'ing the first line is not enough: some people post-process 16714 # each Makefile.in and add a new line on top of each file to say so. 16715 # Grep'ing the whole file is not good either: AIX grep has a line 16716 # limit of 2048, but all sed's we know have understand at least 4000. 16717 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16718 dirpart=`$as_dirname -- "$mf" || 16719$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16720 X"$mf" : 'X\(//\)[^/]' \| \ 16721 X"$mf" : 'X\(//\)$' \| \ 16722 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16723$as_echo X"$mf" | 16724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16725 s//\1/ 16726 q 16727 } 16728 /^X\(\/\/\)[^/].*/{ 16729 s//\1/ 16730 q 16731 } 16732 /^X\(\/\/\)$/{ 16733 s//\1/ 16734 q 16735 } 16736 /^X\(\/\).*/{ 16737 s//\1/ 16738 q 16739 } 16740 s/.*/./; q'` 16741 else 16742 continue 16743 fi 16744 # Extract the definition of DEPDIR, am__include, and am__quote 16745 # from the Makefile without running 'make'. 16746 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16747 test -z "$DEPDIR" && continue 16748 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16749 test -z "$am__include" && continue 16750 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16751 # Find all dependency output files, they are included files with 16752 # $(DEPDIR) in their names. We invoke sed twice because it is the 16753 # simplest approach to changing $(DEPDIR) to its actual value in the 16754 # expansion. 16755 for file in `sed -n " 16756 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16757 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16758 # Make sure the directory exists. 16759 test -f "$dirpart/$file" && continue 16760 fdir=`$as_dirname -- "$file" || 16761$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16762 X"$file" : 'X\(//\)[^/]' \| \ 16763 X"$file" : 'X\(//\)$' \| \ 16764 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16765$as_echo X"$file" | 16766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16767 s//\1/ 16768 q 16769 } 16770 /^X\(\/\/\)[^/].*/{ 16771 s//\1/ 16772 q 16773 } 16774 /^X\(\/\/\)$/{ 16775 s//\1/ 16776 q 16777 } 16778 /^X\(\/\).*/{ 16779 s//\1/ 16780 q 16781 } 16782 s/.*/./; q'` 16783 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16784 # echo "creating $dirpart/$file" 16785 echo '# dummy' > "$dirpart/$file" 16786 done 16787 done 16788} 16789 ;; 16790 "libtool":C) 16791 16792 # See if we are running on zsh, and set the options which allow our 16793 # commands through without removal of \ escapes. 16794 if test -n "${ZSH_VERSION+set}" ; then 16795 setopt NO_GLOB_SUBST 16796 fi 16797 16798 cfgfile="${ofile}T" 16799 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16800 $RM "$cfgfile" 16801 16802 cat <<_LT_EOF >> "$cfgfile" 16803#! $SHELL 16804 16805# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16806# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16807# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16808# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16809# 16810# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16811# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16812# Written by Gordon Matzigkeit, 1996 16813# 16814# This file is part of GNU Libtool. 16815# 16816# GNU Libtool is free software; you can redistribute it and/or 16817# modify it under the terms of the GNU General Public License as 16818# published by the Free Software Foundation; either version 2 of 16819# the License, or (at your option) any later version. 16820# 16821# As a special exception to the GNU General Public License, 16822# if you distribute this file as part of a program or library that 16823# is built using GNU Libtool, you may include this file under the 16824# same distribution terms that you use for the rest of that program. 16825# 16826# GNU Libtool is distributed in the hope that it will be useful, 16827# but WITHOUT ANY WARRANTY; without even the implied warranty of 16828# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16829# GNU General Public License for more details. 16830# 16831# You should have received a copy of the GNU General Public License 16832# along with GNU Libtool; see the file COPYING. If not, a copy 16833# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16834# obtained by writing to the Free Software Foundation, Inc., 16835# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16836 16837 16838# The names of the tagged configurations supported by this script. 16839available_tags="CXX " 16840 16841# ### BEGIN LIBTOOL CONFIG 16842 16843# Which release of libtool.m4 was used? 16844macro_version=$macro_version 16845macro_revision=$macro_revision 16846 16847# Whether or not to build static libraries. 16848build_old_libs=$enable_static 16849 16850# Whether or not to build shared libraries. 16851build_libtool_libs=$enable_shared 16852 16853# What type of objects to build. 16854pic_mode=$pic_mode 16855 16856# Whether or not to optimize for fast installation. 16857fast_install=$enable_fast_install 16858 16859# Shell to use when invoking shell scripts. 16860SHELL=$lt_SHELL 16861 16862# An echo program that protects backslashes. 16863ECHO=$lt_ECHO 16864 16865# The host system. 16866host_alias=$host_alias 16867host=$host 16868host_os=$host_os 16869 16870# The build system. 16871build_alias=$build_alias 16872build=$build 16873build_os=$build_os 16874 16875# A sed program that does not truncate output. 16876SED=$lt_SED 16877 16878# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16879Xsed="\$SED -e 1s/^X//" 16880 16881# A grep program that handles long lines. 16882GREP=$lt_GREP 16883 16884# An ERE matcher. 16885EGREP=$lt_EGREP 16886 16887# A literal string matcher. 16888FGREP=$lt_FGREP 16889 16890# A BSD- or MS-compatible name lister. 16891NM=$lt_NM 16892 16893# Whether we need soft or hard links. 16894LN_S=$lt_LN_S 16895 16896# What is the maximum length of a command? 16897max_cmd_len=$max_cmd_len 16898 16899# Object file suffix (normally "o"). 16900objext=$ac_objext 16901 16902# Executable file suffix (normally ""). 16903exeext=$exeext 16904 16905# whether the shell understands "unset". 16906lt_unset=$lt_unset 16907 16908# turn spaces into newlines. 16909SP2NL=$lt_lt_SP2NL 16910 16911# turn newlines into spaces. 16912NL2SP=$lt_lt_NL2SP 16913 16914# An object symbol dumper. 16915OBJDUMP=$lt_OBJDUMP 16916 16917# Method to check whether dependent libraries are shared objects. 16918deplibs_check_method=$lt_deplibs_check_method 16919 16920# Command to use when deplibs_check_method == "file_magic". 16921file_magic_cmd=$lt_file_magic_cmd 16922 16923# The archiver. 16924AR=$lt_AR 16925AR_FLAGS=$lt_AR_FLAGS 16926 16927# A symbol stripping program. 16928STRIP=$lt_STRIP 16929 16930# Commands used to install an old-style archive. 16931RANLIB=$lt_RANLIB 16932old_postinstall_cmds=$lt_old_postinstall_cmds 16933old_postuninstall_cmds=$lt_old_postuninstall_cmds 16934 16935# Whether to use a lock for old archive extraction. 16936lock_old_archive_extraction=$lock_old_archive_extraction 16937 16938# A C compiler. 16939LTCC=$lt_CC 16940 16941# LTCC compiler flags. 16942LTCFLAGS=$lt_CFLAGS 16943 16944# Take the output of nm and produce a listing of raw symbols and C names. 16945global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16946 16947# Transform the output of nm in a proper C declaration. 16948global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16949 16950# Transform the output of nm in a C name address pair. 16951global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16952 16953# Transform the output of nm in a C name address pair when lib prefix is needed. 16954global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16955 16956# The name of the directory that contains temporary libtool files. 16957objdir=$objdir 16958 16959# Used to examine libraries when file_magic_cmd begins with "file". 16960MAGIC_CMD=$MAGIC_CMD 16961 16962# Must we lock files when doing compilation? 16963need_locks=$lt_need_locks 16964 16965# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16966DSYMUTIL=$lt_DSYMUTIL 16967 16968# Tool to change global to local symbols on Mac OS X. 16969NMEDIT=$lt_NMEDIT 16970 16971# Tool to manipulate fat objects and archives on Mac OS X. 16972LIPO=$lt_LIPO 16973 16974# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16975OTOOL=$lt_OTOOL 16976 16977# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16978OTOOL64=$lt_OTOOL64 16979 16980# Old archive suffix (normally "a"). 16981libext=$libext 16982 16983# Shared library suffix (normally ".so"). 16984shrext_cmds=$lt_shrext_cmds 16985 16986# The commands to extract the exported symbol list from a shared archive. 16987extract_expsyms_cmds=$lt_extract_expsyms_cmds 16988 16989# Variables whose values should be saved in libtool wrapper scripts and 16990# restored at link time. 16991variables_saved_for_relink=$lt_variables_saved_for_relink 16992 16993# Do we need the "lib" prefix for modules? 16994need_lib_prefix=$need_lib_prefix 16995 16996# Do we need a version for libraries? 16997need_version=$need_version 16998 16999# Library versioning type. 17000version_type=$version_type 17001 17002# Shared library runtime path variable. 17003runpath_var=$runpath_var 17004 17005# Shared library path variable. 17006shlibpath_var=$shlibpath_var 17007 17008# Is shlibpath searched before the hard-coded library search path? 17009shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17010 17011# Format of library name prefix. 17012libname_spec=$lt_libname_spec 17013 17014# List of archive names. First name is the real one, the rest are links. 17015# The last name is the one that the linker finds with -lNAME 17016library_names_spec=$lt_library_names_spec 17017 17018# The coded name of the library, if different from the real name. 17019soname_spec=$lt_soname_spec 17020 17021# Permission mode override for installation of shared libraries. 17022install_override_mode=$lt_install_override_mode 17023 17024# Command to use after installation of a shared archive. 17025postinstall_cmds=$lt_postinstall_cmds 17026 17027# Command to use after uninstallation of a shared archive. 17028postuninstall_cmds=$lt_postuninstall_cmds 17029 17030# Commands used to finish a libtool library installation in a directory. 17031finish_cmds=$lt_finish_cmds 17032 17033# As "finish_cmds", except a single script fragment to be evaled but 17034# not shown. 17035finish_eval=$lt_finish_eval 17036 17037# Whether we should hardcode library paths into libraries. 17038hardcode_into_libs=$hardcode_into_libs 17039 17040# Compile-time system search path for libraries. 17041sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17042 17043# Run-time system search path for libraries. 17044sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17045 17046# Whether dlopen is supported. 17047dlopen_support=$enable_dlopen 17048 17049# Whether dlopen of programs is supported. 17050dlopen_self=$enable_dlopen_self 17051 17052# Whether dlopen of statically linked programs is supported. 17053dlopen_self_static=$enable_dlopen_self_static 17054 17055# Commands to strip libraries. 17056old_striplib=$lt_old_striplib 17057striplib=$lt_striplib 17058 17059 17060# The linker used to build libraries. 17061LD=$lt_LD 17062 17063# How to create reloadable object files. 17064reload_flag=$lt_reload_flag 17065reload_cmds=$lt_reload_cmds 17066 17067# Commands used to build an old-style archive. 17068old_archive_cmds=$lt_old_archive_cmds 17069 17070# A language specific compiler. 17071CC=$lt_compiler 17072 17073# Is the compiler the GNU compiler? 17074with_gcc=$GCC 17075 17076# Compiler flag to turn off builtin functions. 17077no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17078 17079# How to pass a linker flag through the compiler. 17080wl=$lt_lt_prog_compiler_wl 17081 17082# Additional compiler flags for building library objects. 17083pic_flag=$lt_lt_prog_compiler_pic 17084 17085# Compiler flag to prevent dynamic linking. 17086link_static_flag=$lt_lt_prog_compiler_static 17087 17088# Does compiler simultaneously support -c and -o options? 17089compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17090 17091# Whether or not to add -lc for building shared libraries. 17092build_libtool_need_lc=$archive_cmds_need_lc 17093 17094# Whether or not to disallow shared libs when runtime libs are static. 17095allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17096 17097# Compiler flag to allow reflexive dlopens. 17098export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17099 17100# Compiler flag to generate shared objects directly from archives. 17101whole_archive_flag_spec=$lt_whole_archive_flag_spec 17102 17103# Whether the compiler copes with passing no objects directly. 17104compiler_needs_object=$lt_compiler_needs_object 17105 17106# Create an old-style archive from a shared archive. 17107old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17108 17109# Create a temporary old-style archive to link instead of a shared archive. 17110old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17111 17112# Commands used to build a shared archive. 17113archive_cmds=$lt_archive_cmds 17114archive_expsym_cmds=$lt_archive_expsym_cmds 17115 17116# Commands used to build a loadable module if different from building 17117# a shared archive. 17118module_cmds=$lt_module_cmds 17119module_expsym_cmds=$lt_module_expsym_cmds 17120 17121# Whether we are building with GNU ld or not. 17122with_gnu_ld=$lt_with_gnu_ld 17123 17124# Flag that allows shared libraries with undefined symbols to be built. 17125allow_undefined_flag=$lt_allow_undefined_flag 17126 17127# Flag that enforces no undefined symbols. 17128no_undefined_flag=$lt_no_undefined_flag 17129 17130# Flag to hardcode \$libdir into a binary during linking. 17131# This must work even if \$libdir does not exist 17132hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17133 17134# If ld is used when linking, flag to hardcode \$libdir into a binary 17135# during linking. This must work even if \$libdir does not exist. 17136hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17137 17138# Whether we need a single "-rpath" flag with a separated argument. 17139hardcode_libdir_separator=$lt_hardcode_libdir_separator 17140 17141# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17142# DIR into the resulting binary. 17143hardcode_direct=$hardcode_direct 17144 17145# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17146# DIR into the resulting binary and the resulting library dependency is 17147# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17148# library is relocated. 17149hardcode_direct_absolute=$hardcode_direct_absolute 17150 17151# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17152# into the resulting binary. 17153hardcode_minus_L=$hardcode_minus_L 17154 17155# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17156# into the resulting binary. 17157hardcode_shlibpath_var=$hardcode_shlibpath_var 17158 17159# Set to "yes" if building a shared library automatically hardcodes DIR 17160# into the library and all subsequent libraries and executables linked 17161# against it. 17162hardcode_automatic=$hardcode_automatic 17163 17164# Set to yes if linker adds runtime paths of dependent libraries 17165# to runtime path list. 17166inherit_rpath=$inherit_rpath 17167 17168# Whether libtool must link a program against all its dependency libraries. 17169link_all_deplibs=$link_all_deplibs 17170 17171# Fix the shell variable \$srcfile for the compiler. 17172fix_srcfile_path=$lt_fix_srcfile_path 17173 17174# Set to "yes" if exported symbols are required. 17175always_export_symbols=$always_export_symbols 17176 17177# The commands to list exported symbols. 17178export_symbols_cmds=$lt_export_symbols_cmds 17179 17180# Symbols that should not be listed in the preloaded symbols. 17181exclude_expsyms=$lt_exclude_expsyms 17182 17183# Symbols that must always be exported. 17184include_expsyms=$lt_include_expsyms 17185 17186# Commands necessary for linking programs (against libraries) with templates. 17187prelink_cmds=$lt_prelink_cmds 17188 17189# Specify filename containing input files. 17190file_list_spec=$lt_file_list_spec 17191 17192# How to hardcode a shared library path into an executable. 17193hardcode_action=$hardcode_action 17194 17195# The directories searched by this compiler when creating a shared library. 17196compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17197 17198# Dependencies to place before and after the objects being linked to 17199# create a shared library. 17200predep_objects=$lt_predep_objects 17201postdep_objects=$lt_postdep_objects 17202predeps=$lt_predeps 17203postdeps=$lt_postdeps 17204 17205# The library search path used internally by the compiler when linking 17206# a shared library. 17207compiler_lib_search_path=$lt_compiler_lib_search_path 17208 17209# ### END LIBTOOL CONFIG 17210 17211_LT_EOF 17212 17213 case $host_os in 17214 aix3*) 17215 cat <<\_LT_EOF >> "$cfgfile" 17216# AIX sometimes has problems with the GCC collect2 program. For some 17217# reason, if we set the COLLECT_NAMES environment variable, the problems 17218# vanish in a puff of smoke. 17219if test "X${COLLECT_NAMES+set}" != Xset; then 17220 COLLECT_NAMES= 17221 export COLLECT_NAMES 17222fi 17223_LT_EOF 17224 ;; 17225 esac 17226 17227 17228ltmain="$ac_aux_dir/ltmain.sh" 17229 17230 17231 # We use sed instead of cat because bash on DJGPP gets confused if 17232 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17233 # text mode, it properly converts lines to CR/LF. This bash problem 17234 # is reportedly fixed, but why not run on old versions too? 17235 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17236 || (rm -f "$cfgfile"; exit 1) 17237 17238 case $xsi_shell in 17239 yes) 17240 cat << \_LT_EOF >> "$cfgfile" 17241 17242# func_dirname file append nondir_replacement 17243# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17244# otherwise set result to NONDIR_REPLACEMENT. 17245func_dirname () 17246{ 17247 case ${1} in 17248 */*) func_dirname_result="${1%/*}${2}" ;; 17249 * ) func_dirname_result="${3}" ;; 17250 esac 17251} 17252 17253# func_basename file 17254func_basename () 17255{ 17256 func_basename_result="${1##*/}" 17257} 17258 17259# func_dirname_and_basename file append nondir_replacement 17260# perform func_basename and func_dirname in a single function 17261# call: 17262# dirname: Compute the dirname of FILE. If nonempty, 17263# add APPEND to the result, otherwise set result 17264# to NONDIR_REPLACEMENT. 17265# value returned in "$func_dirname_result" 17266# basename: Compute filename of FILE. 17267# value retuned in "$func_basename_result" 17268# Implementation must be kept synchronized with func_dirname 17269# and func_basename. For efficiency, we do not delegate to 17270# those functions but instead duplicate the functionality here. 17271func_dirname_and_basename () 17272{ 17273 case ${1} in 17274 */*) func_dirname_result="${1%/*}${2}" ;; 17275 * ) func_dirname_result="${3}" ;; 17276 esac 17277 func_basename_result="${1##*/}" 17278} 17279 17280# func_stripname prefix suffix name 17281# strip PREFIX and SUFFIX off of NAME. 17282# PREFIX and SUFFIX must not contain globbing or regex special 17283# characters, hashes, percent signs, but SUFFIX may contain a leading 17284# dot (in which case that matches only a dot). 17285func_stripname () 17286{ 17287 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17288 # positional parameters, so assign one to ordinary parameter first. 17289 func_stripname_result=${3} 17290 func_stripname_result=${func_stripname_result#"${1}"} 17291 func_stripname_result=${func_stripname_result%"${2}"} 17292} 17293 17294# func_opt_split 17295func_opt_split () 17296{ 17297 func_opt_split_opt=${1%%=*} 17298 func_opt_split_arg=${1#*=} 17299} 17300 17301# func_lo2o object 17302func_lo2o () 17303{ 17304 case ${1} in 17305 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17306 *) func_lo2o_result=${1} ;; 17307 esac 17308} 17309 17310# func_xform libobj-or-source 17311func_xform () 17312{ 17313 func_xform_result=${1%.*}.lo 17314} 17315 17316# func_arith arithmetic-term... 17317func_arith () 17318{ 17319 func_arith_result=$(( $* )) 17320} 17321 17322# func_len string 17323# STRING may not start with a hyphen. 17324func_len () 17325{ 17326 func_len_result=${#1} 17327} 17328 17329_LT_EOF 17330 ;; 17331 *) # Bourne compatible functions. 17332 cat << \_LT_EOF >> "$cfgfile" 17333 17334# func_dirname file append nondir_replacement 17335# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17336# otherwise set result to NONDIR_REPLACEMENT. 17337func_dirname () 17338{ 17339 # Extract subdirectory from the argument. 17340 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17341 if test "X$func_dirname_result" = "X${1}"; then 17342 func_dirname_result="${3}" 17343 else 17344 func_dirname_result="$func_dirname_result${2}" 17345 fi 17346} 17347 17348# func_basename file 17349func_basename () 17350{ 17351 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17352} 17353 17354 17355# func_stripname prefix suffix name 17356# strip PREFIX and SUFFIX off of NAME. 17357# PREFIX and SUFFIX must not contain globbing or regex special 17358# characters, hashes, percent signs, but SUFFIX may contain a leading 17359# dot (in which case that matches only a dot). 17360# func_strip_suffix prefix name 17361func_stripname () 17362{ 17363 case ${2} in 17364 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17365 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17366 esac 17367} 17368 17369# sed scripts: 17370my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17371my_sed_long_arg='1s/^-[^=]*=//' 17372 17373# func_opt_split 17374func_opt_split () 17375{ 17376 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17377 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17378} 17379 17380# func_lo2o object 17381func_lo2o () 17382{ 17383 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17384} 17385 17386# func_xform libobj-or-source 17387func_xform () 17388{ 17389 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17390} 17391 17392# func_arith arithmetic-term... 17393func_arith () 17394{ 17395 func_arith_result=`expr "$@"` 17396} 17397 17398# func_len string 17399# STRING may not start with a hyphen. 17400func_len () 17401{ 17402 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17403} 17404 17405_LT_EOF 17406esac 17407 17408case $lt_shell_append in 17409 yes) 17410 cat << \_LT_EOF >> "$cfgfile" 17411 17412# func_append var value 17413# Append VALUE to the end of shell variable VAR. 17414func_append () 17415{ 17416 eval "$1+=\$2" 17417} 17418_LT_EOF 17419 ;; 17420 *) 17421 cat << \_LT_EOF >> "$cfgfile" 17422 17423# func_append var value 17424# Append VALUE to the end of shell variable VAR. 17425func_append () 17426{ 17427 eval "$1=\$$1\$2" 17428} 17429 17430_LT_EOF 17431 ;; 17432 esac 17433 17434 17435 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17436 || (rm -f "$cfgfile"; exit 1) 17437 17438 mv -f "$cfgfile" "$ofile" || 17439 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17440 chmod +x "$ofile" 17441 17442 17443 cat <<_LT_EOF >> "$ofile" 17444 17445# ### BEGIN LIBTOOL TAG CONFIG: CXX 17446 17447# The linker used to build libraries. 17448LD=$lt_LD_CXX 17449 17450# How to create reloadable object files. 17451reload_flag=$lt_reload_flag_CXX 17452reload_cmds=$lt_reload_cmds_CXX 17453 17454# Commands used to build an old-style archive. 17455old_archive_cmds=$lt_old_archive_cmds_CXX 17456 17457# A language specific compiler. 17458CC=$lt_compiler_CXX 17459 17460# Is the compiler the GNU compiler? 17461with_gcc=$GCC_CXX 17462 17463# Compiler flag to turn off builtin functions. 17464no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17465 17466# How to pass a linker flag through the compiler. 17467wl=$lt_lt_prog_compiler_wl_CXX 17468 17469# Additional compiler flags for building library objects. 17470pic_flag=$lt_lt_prog_compiler_pic_CXX 17471 17472# Compiler flag to prevent dynamic linking. 17473link_static_flag=$lt_lt_prog_compiler_static_CXX 17474 17475# Does compiler simultaneously support -c and -o options? 17476compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17477 17478# Whether or not to add -lc for building shared libraries. 17479build_libtool_need_lc=$archive_cmds_need_lc_CXX 17480 17481# Whether or not to disallow shared libs when runtime libs are static. 17482allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17483 17484# Compiler flag to allow reflexive dlopens. 17485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17486 17487# Compiler flag to generate shared objects directly from archives. 17488whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17489 17490# Whether the compiler copes with passing no objects directly. 17491compiler_needs_object=$lt_compiler_needs_object_CXX 17492 17493# Create an old-style archive from a shared archive. 17494old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17495 17496# Create a temporary old-style archive to link instead of a shared archive. 17497old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17498 17499# Commands used to build a shared archive. 17500archive_cmds=$lt_archive_cmds_CXX 17501archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17502 17503# Commands used to build a loadable module if different from building 17504# a shared archive. 17505module_cmds=$lt_module_cmds_CXX 17506module_expsym_cmds=$lt_module_expsym_cmds_CXX 17507 17508# Whether we are building with GNU ld or not. 17509with_gnu_ld=$lt_with_gnu_ld_CXX 17510 17511# Flag that allows shared libraries with undefined symbols to be built. 17512allow_undefined_flag=$lt_allow_undefined_flag_CXX 17513 17514# Flag that enforces no undefined symbols. 17515no_undefined_flag=$lt_no_undefined_flag_CXX 17516 17517# Flag to hardcode \$libdir into a binary during linking. 17518# This must work even if \$libdir does not exist 17519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17520 17521# If ld is used when linking, flag to hardcode \$libdir into a binary 17522# during linking. This must work even if \$libdir does not exist. 17523hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 17524 17525# Whether we need a single "-rpath" flag with a separated argument. 17526hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17527 17528# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17529# DIR into the resulting binary. 17530hardcode_direct=$hardcode_direct_CXX 17531 17532# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17533# DIR into the resulting binary and the resulting library dependency is 17534# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17535# library is relocated. 17536hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17537 17538# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17539# into the resulting binary. 17540hardcode_minus_L=$hardcode_minus_L_CXX 17541 17542# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17543# into the resulting binary. 17544hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17545 17546# Set to "yes" if building a shared library automatically hardcodes DIR 17547# into the library and all subsequent libraries and executables linked 17548# against it. 17549hardcode_automatic=$hardcode_automatic_CXX 17550 17551# Set to yes if linker adds runtime paths of dependent libraries 17552# to runtime path list. 17553inherit_rpath=$inherit_rpath_CXX 17554 17555# Whether libtool must link a program against all its dependency libraries. 17556link_all_deplibs=$link_all_deplibs_CXX 17557 17558# Fix the shell variable \$srcfile for the compiler. 17559fix_srcfile_path=$lt_fix_srcfile_path_CXX 17560 17561# Set to "yes" if exported symbols are required. 17562always_export_symbols=$always_export_symbols_CXX 17563 17564# The commands to list exported symbols. 17565export_symbols_cmds=$lt_export_symbols_cmds_CXX 17566 17567# Symbols that should not be listed in the preloaded symbols. 17568exclude_expsyms=$lt_exclude_expsyms_CXX 17569 17570# Symbols that must always be exported. 17571include_expsyms=$lt_include_expsyms_CXX 17572 17573# Commands necessary for linking programs (against libraries) with templates. 17574prelink_cmds=$lt_prelink_cmds_CXX 17575 17576# Specify filename containing input files. 17577file_list_spec=$lt_file_list_spec_CXX 17578 17579# How to hardcode a shared library path into an executable. 17580hardcode_action=$hardcode_action_CXX 17581 17582# The directories searched by this compiler when creating a shared library. 17583compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17584 17585# Dependencies to place before and after the objects being linked to 17586# create a shared library. 17587predep_objects=$lt_predep_objects_CXX 17588postdep_objects=$lt_postdep_objects_CXX 17589predeps=$lt_predeps_CXX 17590postdeps=$lt_postdeps_CXX 17591 17592# The library search path used internally by the compiler when linking 17593# a shared library. 17594compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 17595 17596# ### END LIBTOOL TAG CONFIG: CXX 17597_LT_EOF 17598 17599 ;; 17600 17601 esac 17602done # for ac_tag 17603 17604 17605as_fn_exit 0 17606_ACEOF 17607ac_clean_files=$ac_clean_files_save 17608 17609test $ac_write_fail = 0 || 17610 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17611 17612 17613# configure is writing to config.log, and then calls config.status. 17614# config.status does its own redirection, appending to config.log. 17615# Unfortunately, on DOS this fails, as config.log is still kept open 17616# by configure, so config.status won't be able to write to it; its 17617# output is simply discarded. So we exec the FD to /dev/null, 17618# effectively closing config.log, so it can be properly (re)opened and 17619# appended to by config.status. When coming back to configure, we 17620# need to make the FD available again. 17621if test "$no_create" != yes; then 17622 ac_cs_success=: 17623 ac_config_status_args= 17624 test "$silent" = yes && 17625 ac_config_status_args="$ac_config_status_args --quiet" 17626 exec 5>/dev/null 17627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17628 exec 5>>config.log 17629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17630 # would make configure fail if this is the last instruction. 17631 $ac_cs_success || as_fn_exit 1 17632fi 17633if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17635$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17636fi 17637 17638