1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for package-unused version-unused. 4# 5# Report bugs to <libsanitizer>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about 278$0: your system, including any error possibly output before 279$0: this message. Then install a modern shell, or manually 280$0: run the script under such a shell if you do have one." 281 fi 282 exit 1 283fi 284fi 285fi 286SHELL=${CONFIG_SHELL-/bin/sh} 287export SHELL 288# Unset more variables known to interfere with behavior of common tools. 289CLICOLOR_FORCE= GREP_OPTIONS= 290unset CLICOLOR_FORCE GREP_OPTIONS 291 292## --------------------- ## 293## M4sh Shell Functions. ## 294## --------------------- ## 295# as_fn_unset VAR 296# --------------- 297# Portably unset VAR. 298as_fn_unset () 299{ 300 { eval $1=; unset $1;} 301} 302as_unset=as_fn_unset 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344$as_echo X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 384 eval 'as_fn_append () 385 { 386 eval $1+=\$2 387 }' 388else 389 as_fn_append () 390 { 391 eval $1=\$$1\$2 392 } 393fi # as_fn_append 394 395# as_fn_arith ARG... 396# ------------------ 397# Perform arithmetic evaluation on the ARGs, and store the result in the 398# global $as_val. Take advantage of shells that can avoid forks. The arguments 399# must be portable across $(()) and expr. 400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 401 eval 'as_fn_arith () 402 { 403 as_val=$(( $* )) 404 }' 405else 406 as_fn_arith () 407 { 408 as_val=`expr "$@" || test $? -eq 1` 409 } 410fi # as_fn_arith 411 412 413# as_fn_error STATUS ERROR [LINENO LOG_FD] 414# ---------------------------------------- 415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 417# script with STATUS, using 1 if that was 0. 418as_fn_error () 419{ 420 as_status=$1; test $as_status -eq 0 && as_status=1 421 if test "$4"; then 422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 424 fi 425 $as_echo "$as_me: error: $2" >&2 426 as_fn_exit $as_status 427} # as_fn_error 428 429if expr a : '\(a\)' >/dev/null 2>&1 && 430 test "X`expr 00001 : '.*\(...\)'`" = X001; then 431 as_expr=expr 432else 433 as_expr=false 434fi 435 436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 437 as_basename=basename 438else 439 as_basename=false 440fi 441 442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 443 as_dirname=dirname 444else 445 as_dirname=false 446fi 447 448as_me=`$as_basename -- "$0" || 449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 450 X"$0" : 'X\(//\)$' \| \ 451 X"$0" : 'X\(/\)' \| . 2>/dev/null || 452$as_echo X/"$0" | 453 sed '/^.*\/\([^/][^/]*\)\/*$/{ 454 s//\1/ 455 q 456 } 457 /^X\/\(\/\/\)$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\).*/{ 462 s//\1/ 463 q 464 } 465 s/.*/./; q'` 466 467# Avoid depending upon Character Ranges. 468as_cr_letters='abcdefghijklmnopqrstuvwxyz' 469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 470as_cr_Letters=$as_cr_letters$as_cr_LETTERS 471as_cr_digits='0123456789' 472as_cr_alnum=$as_cr_Letters$as_cr_digits 473 474 475 as_lineno_1=$LINENO as_lineno_1a=$LINENO 476 as_lineno_2=$LINENO as_lineno_2a=$LINENO 477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 480 sed -n ' 481 p 482 /[$]LINENO/= 483 ' <$as_myself | 484 sed ' 485 s/[$]LINENO.*/&-/ 486 t lineno 487 b 488 :lineno 489 N 490 :loop 491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 492 t loop 493 s/-\n.*// 494 ' >$as_me.lineno && 495 chmod +x "$as_me.lineno" || 496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 497 498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 499 # already done that, so ensure we don't try to do so again and fall 500 # in an infinite loop. This has already happened in practice. 501 _as_can_reexec=no; export _as_can_reexec 502 # Don't try to exec as it changes $[0], causing all sort of problems 503 # (the dirname of $[0] is not the place where we might find the 504 # original and so on. Autoconf is especially sensitive to this). 505 . "./$as_me.lineno" 506 # Exit status is that of the last command. 507 exit 508} 509 510ECHO_C= ECHO_N= ECHO_T= 511case `echo -n x` in #((((( 512-n*) 513 case `echo 'xy\c'` in 514 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 515 xy) ECHO_C='\c';; 516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 517 ECHO_T=' ';; 518 esac;; 519*) 520 ECHO_N='-n';; 521esac 522 523rm -f conf$$ conf$$.exe conf$$.file 524if test -d conf$$.dir; then 525 rm -f conf$$.dir/conf$$.file 526else 527 rm -f conf$$.dir 528 mkdir conf$$.dir 2>/dev/null 529fi 530if (echo >conf$$.file) 2>/dev/null; then 531 if ln -s conf$$.file conf$$ 2>/dev/null; then 532 as_ln_s='ln -s' 533 # ... but there are two gotchas: 534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 536 # In both cases, we have to default to `cp -pR'. 537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 538 as_ln_s='cp -pR' 539 elif ln conf$$.file conf$$ 2>/dev/null; then 540 as_ln_s=ln 541 else 542 as_ln_s='cp -pR' 543 fi 544else 545 as_ln_s='cp -pR' 546fi 547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 548rmdir conf$$.dir 2>/dev/null 549 550if mkdir -p . 2>/dev/null; then 551 as_mkdir_p='mkdir -p "$as_dir"' 552else 553 test -d ./-p && rmdir ./-p 554 as_mkdir_p=false 555fi 556 557as_test_x='test -x' 558as_executable_p=as_fn_executable_p 559 560# Sed expression to map a string onto a valid CPP name. 561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 562 563# Sed expression to map a string onto a valid variable name. 564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 565 566SHELL=${CONFIG_SHELL-/bin/sh} 567 568 569test -n "$DJDIR" || exec 7<&0 </dev/null 570exec 6>&1 571 572# Name of the host. 573# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 574# so uname gets run too. 575ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 576 577# 578# Initializations. 579# 580ac_default_prefix=/usr/local 581ac_clean_files= 582ac_config_libobj_dir=. 583LIBOBJS= 584cross_compiling=no 585subdirs= 586MFLAGS= 587MAKEFLAGS= 588 589# Identity of this package. 590PACKAGE_NAME='package-unused' 591PACKAGE_TARNAME='package-unused' 592PACKAGE_VERSION='version-unused' 593PACKAGE_STRING='package-unused version-unused' 594PACKAGE_BUGREPORT='libsanitizer' 595PACKAGE_URL='' 596 597ac_unique_file="include/sanitizer/common_interface_defs.h" 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638EXTRA_CXXFLAGS 639EXTRA_CFLAGS 640EXTRA_ASFLAGS 641get_gcc_base_ver 642WARN_FLAGS 643SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS 644TSAN_TARGET_DEPENDENT_OBJECTS 645LIBBACKTRACE_SUPPORTED_FALSE 646LIBBACKTRACE_SUPPORTED_TRUE 647RPC_DEFS 648BACKTRACE_SUPPORTS_THREADS 649BACKTRACE_USES_MALLOC 650ALLOC_FILE 651VIEW_FILE 652BACKTRACE_SUPPORTED 653FORMAT_FILE 654SANITIZER_SUPPORTED_FALSE 655SANITIZER_SUPPORTED_TRUE 656USING_MAC_INTERPOSE_FALSE 657USING_MAC_INTERPOSE_TRUE 658link_liblsan 659link_libubsan 660link_libtsan 661link_libhwasan 662link_libasan 663HWASAN_SUPPORTED_FALSE 664HWASAN_SUPPORTED_TRUE 665LSAN_SUPPORTED_FALSE 666LSAN_SUPPORTED_TRUE 667TSAN_SUPPORTED_FALSE 668TSAN_SUPPORTED_TRUE 669enable_static 670enable_shared 671CXXCPP 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677AR 678OBJDUMP 679LN_S 680NM 681ac_ct_DUMPBIN 682DUMPBIN 683LD 684FGREP 685SED 686LIBTOOL 687RANLIB 688am__fastdepCCAS_FALSE 689am__fastdepCCAS_TRUE 690CCASDEPMODE 691CCASFLAGS 692CCAS 693am__fastdepCXX_FALSE 694am__fastdepCXX_TRUE 695CXXDEPMODE 696ac_ct_CXX 697CXXFLAGS 698CXX 699toolexeclibdir 700toolexecdir 701MAINT 702MAINTAINER_MODE_FALSE 703MAINTAINER_MODE_TRUE 704AM_BACKSLASH 705AM_DEFAULT_VERBOSITY 706AM_DEFAULT_V 707AM_V 708am__fastdepCC_FALSE 709am__fastdepCC_TRUE 710CCDEPMODE 711am__nodep 712AMDEPBACKSLASH 713AMDEP_FALSE 714AMDEP_TRUE 715am__quote 716am__include 717DEPDIR 718am__untar 719am__tar 720AMTAR 721am__leading_dot 722SET_MAKE 723AWK 724mkdir_p 725MKDIR_P 726INSTALL_STRIP_PROGRAM 727STRIP 728install_sh 729MAKEINFO 730AUTOHEADER 731AUTOMAKE 732AUTOCONF 733ACLOCAL 734VERSION 735PACKAGE 736CYGPATH_W 737am__isrc 738INSTALL_DATA 739INSTALL_SCRIPT 740INSTALL_PROGRAM 741LIBSTDCXX_RAW_CXX_LDFLAGS 742LIBSTDCXX_RAW_CXX_CXXFLAGS 743target_noncanonical 744target_os 745target_vendor 746target_cpu 747target 748host_os 749host_vendor 750host_cpu 751host 752build_os 753build_vendor 754build_cpu 755build 756EGREP 757GREP 758CPP 759OBJEXT 760EXEEXT 761ac_ct_CC 762CPPFLAGS 763LDFLAGS 764CFLAGS 765CC 766multi_basedir 767target_alias 768host_alias 769build_alias 770LIBS 771ECHO_T 772ECHO_N 773ECHO_C 774DEFS 775mandir 776localedir 777libdir 778psdir 779pdfdir 780dvidir 781htmldir 782infodir 783docdir 784oldincludedir 785includedir 786localstatedir 787sharedstatedir 788sysconfdir 789datadir 790datarootdir 791libexecdir 792sbindir 793bindir 794program_transform_name 795prefix 796exec_prefix 797PACKAGE_URL 798PACKAGE_BUGREPORT 799PACKAGE_STRING 800PACKAGE_VERSION 801PACKAGE_TARNAME 802PACKAGE_NAME 803PATH_SEPARATOR 804SHELL' 805ac_subst_files='' 806ac_user_opts=' 807enable_option_checking 808enable_multilib 809enable_version_specific_runtime_libs 810enable_dependency_tracking 811enable_silent_rules 812enable_maintainer_mode 813with_toolexeclibdir 814enable_shared 815enable_static 816with_pic 817enable_fast_install 818with_gnu_ld 819enable_libtool_lock 820enable_werror 821with_gcc_major_version_only 822enable_cet 823' 824 ac_precious_vars='build_alias 825host_alias 826target_alias 827CC 828CFLAGS 829LDFLAGS 830LIBS 831CPPFLAGS 832CPP 833CXX 834CXXFLAGS 835CCC 836CCAS 837CCASFLAGS 838CXXCPP' 839 840 841# Initialize some variables set by options. 842ac_init_help= 843ac_init_version=false 844ac_unrecognized_opts= 845ac_unrecognized_sep= 846# The variables have the same names as the options, with 847# dashes changed to underlines. 848cache_file=/dev/null 849exec_prefix=NONE 850no_create= 851no_recursion= 852prefix=NONE 853program_prefix=NONE 854program_suffix=NONE 855program_transform_name=s,x,x, 856silent= 857site= 858srcdir= 859verbose= 860x_includes=NONE 861x_libraries=NONE 862 863# Installation directory options. 864# These are left unexpanded so users can "make install exec_prefix=/foo" 865# and all the variables that are supposed to be based on exec_prefix 866# by default will actually change. 867# Use braces instead of parens because sh, perl, etc. also accept them. 868# (The list follows the same order as the GNU Coding Standards.) 869bindir='${exec_prefix}/bin' 870sbindir='${exec_prefix}/sbin' 871libexecdir='${exec_prefix}/libexec' 872datarootdir='${prefix}/share' 873datadir='${datarootdir}' 874sysconfdir='${prefix}/etc' 875sharedstatedir='${prefix}/com' 876localstatedir='${prefix}/var' 877includedir='${prefix}/include' 878oldincludedir='/usr/include' 879docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 880infodir='${datarootdir}/info' 881htmldir='${docdir}' 882dvidir='${docdir}' 883pdfdir='${docdir}' 884psdir='${docdir}' 885libdir='${exec_prefix}/lib' 886localedir='${datarootdir}/locale' 887mandir='${datarootdir}/man' 888 889ac_prev= 890ac_dashdash= 891for ac_option 892do 893 # If the previous option needs an argument, assign it. 894 if test -n "$ac_prev"; then 895 eval $ac_prev=\$ac_option 896 ac_prev= 897 continue 898 fi 899 900 case $ac_option in 901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 902 *=) ac_optarg= ;; 903 *) ac_optarg=yes ;; 904 esac 905 906 # Accept the important Cygnus configure options, so we can diagnose typos. 907 908 case $ac_dashdash$ac_option in 909 --) 910 ac_dashdash=yes ;; 911 912 -bindir | --bindir | --bindi | --bind | --bin | --bi) 913 ac_prev=bindir ;; 914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 915 bindir=$ac_optarg ;; 916 917 -build | --build | --buil | --bui | --bu) 918 ac_prev=build_alias ;; 919 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 920 build_alias=$ac_optarg ;; 921 922 -cache-file | --cache-file | --cache-fil | --cache-fi \ 923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 924 ac_prev=cache_file ;; 925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 927 cache_file=$ac_optarg ;; 928 929 --config-cache | -C) 930 cache_file=config.cache ;; 931 932 -datadir | --datadir | --datadi | --datad) 933 ac_prev=datadir ;; 934 -datadir=* | --datadir=* | --datadi=* | --datad=*) 935 datadir=$ac_optarg ;; 936 937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 938 | --dataroo | --dataro | --datar) 939 ac_prev=datarootdir ;; 940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 942 datarootdir=$ac_optarg ;; 943 944 -disable-* | --disable-*) 945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 946 # Reject names that are not valid shell variable names. 947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 948 as_fn_error $? "invalid feature name: $ac_useropt" 949 ac_useropt_orig=$ac_useropt 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 951 case $ac_user_opts in 952 *" 953"enable_$ac_useropt" 954"*) ;; 955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 956 ac_unrecognized_sep=', ';; 957 esac 958 eval enable_$ac_useropt=no ;; 959 960 -docdir | --docdir | --docdi | --doc | --do) 961 ac_prev=docdir ;; 962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 963 docdir=$ac_optarg ;; 964 965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 966 ac_prev=dvidir ;; 967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 968 dvidir=$ac_optarg ;; 969 970 -enable-* | --enable-*) 971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 972 # Reject names that are not valid shell variable names. 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 974 as_fn_error $? "invalid feature name: $ac_useropt" 975 ac_useropt_orig=$ac_useropt 976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 977 case $ac_user_opts in 978 *" 979"enable_$ac_useropt" 980"*) ;; 981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 982 ac_unrecognized_sep=', ';; 983 esac 984 eval enable_$ac_useropt=\$ac_optarg ;; 985 986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 988 | --exec | --exe | --ex) 989 ac_prev=exec_prefix ;; 990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 992 | --exec=* | --exe=* | --ex=*) 993 exec_prefix=$ac_optarg ;; 994 995 -gas | --gas | --ga | --g) 996 # Obsolete; use --with-gas. 997 with_gas=yes ;; 998 999 -help | --help | --hel | --he | -h) 1000 ac_init_help=long ;; 1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1002 ac_init_help=recursive ;; 1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1004 ac_init_help=short ;; 1005 1006 -host | --host | --hos | --ho) 1007 ac_prev=host_alias ;; 1008 -host=* | --host=* | --hos=* | --ho=*) 1009 host_alias=$ac_optarg ;; 1010 1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1012 ac_prev=htmldir ;; 1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1014 | --ht=*) 1015 htmldir=$ac_optarg ;; 1016 1017 -includedir | --includedir | --includedi | --included | --include \ 1018 | --includ | --inclu | --incl | --inc) 1019 ac_prev=includedir ;; 1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1021 | --includ=* | --inclu=* | --incl=* | --inc=*) 1022 includedir=$ac_optarg ;; 1023 1024 -infodir | --infodir | --infodi | --infod | --info | --inf) 1025 ac_prev=infodir ;; 1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1027 infodir=$ac_optarg ;; 1028 1029 -libdir | --libdir | --libdi | --libd) 1030 ac_prev=libdir ;; 1031 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1032 libdir=$ac_optarg ;; 1033 1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1035 | --libexe | --libex | --libe) 1036 ac_prev=libexecdir ;; 1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1038 | --libexe=* | --libex=* | --libe=*) 1039 libexecdir=$ac_optarg ;; 1040 1041 -localedir | --localedir | --localedi | --localed | --locale) 1042 ac_prev=localedir ;; 1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1044 localedir=$ac_optarg ;; 1045 1046 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1047 | --localstate | --localstat | --localsta | --localst | --locals) 1048 ac_prev=localstatedir ;; 1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1051 localstatedir=$ac_optarg ;; 1052 1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1054 ac_prev=mandir ;; 1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1056 mandir=$ac_optarg ;; 1057 1058 -nfp | --nfp | --nf) 1059 # Obsolete; use --without-fp. 1060 with_fp=no ;; 1061 1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1063 | --no-cr | --no-c | -n) 1064 no_create=yes ;; 1065 1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1068 no_recursion=yes ;; 1069 1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1072 | --oldin | --oldi | --old | --ol | --o) 1073 ac_prev=oldincludedir ;; 1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1077 oldincludedir=$ac_optarg ;; 1078 1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1080 ac_prev=prefix ;; 1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1082 prefix=$ac_optarg ;; 1083 1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1085 | --program-pre | --program-pr | --program-p) 1086 ac_prev=program_prefix ;; 1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1089 program_prefix=$ac_optarg ;; 1090 1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1092 | --program-suf | --program-su | --program-s) 1093 ac_prev=program_suffix ;; 1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1096 program_suffix=$ac_optarg ;; 1097 1098 -program-transform-name | --program-transform-name \ 1099 | --program-transform-nam | --program-transform-na \ 1100 | --program-transform-n | --program-transform- \ 1101 | --program-transform | --program-transfor \ 1102 | --program-transfo | --program-transf \ 1103 | --program-trans | --program-tran \ 1104 | --progr-tra | --program-tr | --program-t) 1105 ac_prev=program_transform_name ;; 1106 -program-transform-name=* | --program-transform-name=* \ 1107 | --program-transform-nam=* | --program-transform-na=* \ 1108 | --program-transform-n=* | --program-transform-=* \ 1109 | --program-transform=* | --program-transfor=* \ 1110 | --program-transfo=* | --program-transf=* \ 1111 | --program-trans=* | --program-tran=* \ 1112 | --progr-tra=* | --program-tr=* | --program-t=*) 1113 program_transform_name=$ac_optarg ;; 1114 1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1116 ac_prev=pdfdir ;; 1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1118 pdfdir=$ac_optarg ;; 1119 1120 -psdir | --psdir | --psdi | --psd | --ps) 1121 ac_prev=psdir ;; 1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1123 psdir=$ac_optarg ;; 1124 1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1126 | -silent | --silent | --silen | --sile | --sil) 1127 silent=yes ;; 1128 1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1130 ac_prev=sbindir ;; 1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1132 | --sbi=* | --sb=*) 1133 sbindir=$ac_optarg ;; 1134 1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1137 | --sharedst | --shareds | --shared | --share | --shar \ 1138 | --sha | --sh) 1139 ac_prev=sharedstatedir ;; 1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1143 | --sha=* | --sh=*) 1144 sharedstatedir=$ac_optarg ;; 1145 1146 -site | --site | --sit) 1147 ac_prev=site ;; 1148 -site=* | --site=* | --sit=*) 1149 site=$ac_optarg ;; 1150 1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1152 ac_prev=srcdir ;; 1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1154 srcdir=$ac_optarg ;; 1155 1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1157 | --syscon | --sysco | --sysc | --sys | --sy) 1158 ac_prev=sysconfdir ;; 1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1161 sysconfdir=$ac_optarg ;; 1162 1163 -target | --target | --targe | --targ | --tar | --ta | --t) 1164 ac_prev=target_alias ;; 1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1166 target_alias=$ac_optarg ;; 1167 1168 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1169 verbose=yes ;; 1170 1171 -version | --version | --versio | --versi | --vers | -V) 1172 ac_init_version=: ;; 1173 1174 -with-* | --with-*) 1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1176 # Reject names that are not valid shell variable names. 1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 as_fn_error $? "invalid package name: $ac_useropt" 1179 ac_useropt_orig=$ac_useropt 1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 case $ac_user_opts in 1182 *" 1183"with_$ac_useropt" 1184"*) ;; 1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1186 ac_unrecognized_sep=', ';; 1187 esac 1188 eval with_$ac_useropt=\$ac_optarg ;; 1189 1190 -without-* | --without-*) 1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 as_fn_error $? "invalid package name: $ac_useropt" 1195 ac_useropt_orig=$ac_useropt 1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 case $ac_user_opts in 1198 *" 1199"with_$ac_useropt" 1200"*) ;; 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1202 ac_unrecognized_sep=', ';; 1203 esac 1204 eval with_$ac_useropt=no ;; 1205 1206 --x) 1207 # Obsolete; use --with-x. 1208 with_x=yes ;; 1209 1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1211 | --x-incl | --x-inc | --x-in | --x-i) 1212 ac_prev=x_includes ;; 1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1215 x_includes=$ac_optarg ;; 1216 1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1219 ac_prev=x_libraries ;; 1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1222 x_libraries=$ac_optarg ;; 1223 1224 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1225Try \`$0 --help' for more information" 1226 ;; 1227 1228 *=*) 1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1230 # Reject names that are not valid shell variable names. 1231 case $ac_envvar in #( 1232 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1234 esac 1235 eval $ac_envvar=\$ac_optarg 1236 export $ac_envvar ;; 1237 1238 *) 1239 # FIXME: should be removed in autoconf 3.0. 1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1244 ;; 1245 1246 esac 1247done 1248 1249if test -n "$ac_prev"; then 1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1251 as_fn_error $? "missing argument to $ac_option" 1252fi 1253 1254if test -n "$ac_unrecognized_opts"; then 1255 case $enable_option_checking in 1256 no) ;; 1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1259 esac 1260fi 1261 1262# Check all directory arguments for consistency. 1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1264 datadir sysconfdir sharedstatedir localstatedir includedir \ 1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1266 libdir localedir mandir 1267do 1268 eval ac_val=\$$ac_var 1269 # Remove trailing slashes. 1270 case $ac_val in 1271 */ ) 1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1273 eval $ac_var=\$ac_val;; 1274 esac 1275 # Be sure to have absolute directory names. 1276 case $ac_val in 1277 [\\/$]* | ?:[\\/]* ) continue;; 1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1279 esac 1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1281done 1282 1283# There might be people who depend on the old broken behavior: `$host' 1284# used to hold the argument of --host etc. 1285# FIXME: To remove some day. 1286build=$build_alias 1287host=$host_alias 1288target=$target_alias 1289 1290# FIXME: To remove some day. 1291if test "x$host_alias" != x; then 1292 if test "x$build_alias" = x; then 1293 cross_compiling=maybe 1294 elif test "x$build_alias" != "x$host_alias"; then 1295 cross_compiling=yes 1296 fi 1297fi 1298 1299ac_tool_prefix= 1300test -n "$host_alias" && ac_tool_prefix=$host_alias- 1301 1302test "$silent" = yes && exec 6>/dev/null 1303 1304 1305ac_pwd=`pwd` && test -n "$ac_pwd" && 1306ac_ls_di=`ls -di .` && 1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1308 as_fn_error $? "working directory cannot be determined" 1309test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1310 as_fn_error $? "pwd does not report name of working directory" 1311 1312 1313# Find the source files, if location was not specified. 1314if test -z "$srcdir"; then 1315 ac_srcdir_defaulted=yes 1316 # Try the directory containing this script, then the parent directory. 1317 ac_confdir=`$as_dirname -- "$as_myself" || 1318$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1319 X"$as_myself" : 'X\(//\)[^/]' \| \ 1320 X"$as_myself" : 'X\(//\)$' \| \ 1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1322$as_echo X"$as_myself" | 1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\/\)[^/].*/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\/\)$/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\).*/{ 1336 s//\1/ 1337 q 1338 } 1339 s/.*/./; q'` 1340 srcdir=$ac_confdir 1341 if test ! -r "$srcdir/$ac_unique_file"; then 1342 srcdir=.. 1343 fi 1344else 1345 ac_srcdir_defaulted=no 1346fi 1347if test ! -r "$srcdir/$ac_unique_file"; then 1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1350fi 1351ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1352ac_abs_confdir=`( 1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1354 pwd)` 1355# When building in place, set srcdir=. 1356if test "$ac_abs_confdir" = "$ac_pwd"; then 1357 srcdir=. 1358fi 1359# Remove unnecessary trailing slashes from srcdir. 1360# Double slashes in file names in object file debugging info 1361# mess up M-x gdb in Emacs. 1362case $srcdir in 1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1364esac 1365for ac_var in $ac_precious_vars; do 1366 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_env_${ac_var}_value=\$${ac_var} 1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1370done 1371 1372# 1373# Report the --help message. 1374# 1375if test "$ac_init_help" = "long"; then 1376 # Omit some internal or obsolete options to make the list less imposing. 1377 # This message is too long to be a string in the A/UX 3.1 sh. 1378 cat <<_ACEOF 1379\`configure' configures package-unused version-unused to adapt to many kinds of systems. 1380 1381Usage: $0 [OPTION]... [VAR=VALUE]... 1382 1383To assign environment variables (e.g., CC, CFLAGS...), specify them as 1384VAR=VALUE. See below for descriptions of some of the useful variables. 1385 1386Defaults for the options are specified in brackets. 1387 1388Configuration: 1389 -h, --help display this help and exit 1390 --help=short display options specific to this package 1391 --help=recursive display the short help of all the included packages 1392 -V, --version display version information and exit 1393 -q, --quiet, --silent do not print \`checking ...' messages 1394 --cache-file=FILE cache test results in FILE [disabled] 1395 -C, --config-cache alias for \`--cache-file=config.cache' 1396 -n, --no-create do not create output files 1397 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1398 1399Installation directories: 1400 --prefix=PREFIX install architecture-independent files in PREFIX 1401 [$ac_default_prefix] 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1403 [PREFIX] 1404 1405By default, \`make install' will install all the files in 1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1407an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1408for instance \`--prefix=\$HOME'. 1409 1410For better control, use the options below. 1411 1412Fine tuning of the installation directories: 1413 --bindir=DIR user executables [EPREFIX/bin] 1414 --sbindir=DIR system admin executables [EPREFIX/sbin] 1415 --libexecdir=DIR program executables [EPREFIX/libexec] 1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1419 --libdir=DIR object code libraries [EPREFIX/lib] 1420 --includedir=DIR C header files [PREFIX/include] 1421 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1424 --infodir=DIR info documentation [DATAROOTDIR/info] 1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1426 --mandir=DIR man documentation [DATAROOTDIR/man] 1427 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused] 1428 --htmldir=DIR html documentation [DOCDIR] 1429 --dvidir=DIR dvi documentation [DOCDIR] 1430 --pdfdir=DIR pdf documentation [DOCDIR] 1431 --psdir=DIR ps documentation [DOCDIR] 1432_ACEOF 1433 1434 cat <<\_ACEOF 1435 1436Program names: 1437 --program-prefix=PREFIX prepend PREFIX to installed program names 1438 --program-suffix=SUFFIX append SUFFIX to installed program names 1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1440 1441System types: 1442 --build=BUILD configure for building on BUILD [guessed] 1443 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1444 --target=TARGET configure for building compilers for TARGET [HOST] 1445_ACEOF 1446fi 1447 1448if test -n "$ac_init_help"; then 1449 case $ac_init_help in 1450 short | recursive ) echo "Configuration of package-unused version-unused:";; 1451 esac 1452 cat <<\_ACEOF 1453 1454Optional Features: 1455 --disable-option-checking ignore unrecognized --enable/--with options 1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1458 --enable-multilib build many library versions (default) 1459 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory 1460 --enable-dependency-tracking 1461 do not reject slow dependency extractors 1462 --disable-dependency-tracking 1463 speeds up one-time build 1464 --enable-silent-rules less verbose build output (undo: "make V=1") 1465 --disable-silent-rules verbose build output (undo: "make V=0") 1466 --enable-maintainer-mode 1467 enable make rules and dependencies not useful (and 1468 sometimes confusing) to the casual installer 1469 --enable-shared[=PKGS] build shared libraries [default=yes] 1470 --enable-static[=PKGS] build static libraries [default=yes] 1471 --enable-fast-install[=PKGS] 1472 optimize for fast installation [default=yes] 1473 --disable-libtool-lock avoid locking (might break parallel builds) 1474 --disable-werror disable building with -Werror 1475 --enable-cet enable Intel CET in target libraries [default=auto] 1476 1477Optional Packages: 1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1480 --with-toolexeclibdir=DIR 1481 install libraries built with a cross compiler within 1482 DIR 1483 --with-pic try to use only PIC/non-PIC objects [default=use 1484 both] 1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1486 --with-gcc-major-version-only 1487 use only GCC major number in filesystem paths 1488 1489Some influential environment variables: 1490 CC C compiler command 1491 CFLAGS C compiler flags 1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1493 nonstandard directory <lib dir> 1494 LIBS libraries to pass to the linker, e.g. -l<library> 1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1496 you have headers in a nonstandard directory <include dir> 1497 CPP C preprocessor 1498 CXX C++ compiler command 1499 CXXFLAGS C++ compiler flags 1500 CCAS assembler compiler command (defaults to CC) 1501 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1502 CXXCPP C++ preprocessor 1503 1504Use these variables to override the choices made by `configure' or to help 1505it to find libraries and programs with nonstandard names/locations. 1506 1507Report bugs to <libsanitizer>. 1508_ACEOF 1509ac_status=$? 1510fi 1511 1512if test "$ac_init_help" = "recursive"; then 1513 # If there are subdirs, report their specific --help. 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1515 test -d "$ac_dir" || 1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1517 continue 1518 ac_builddir=. 1519 1520case "$ac_dir" in 1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522*) 1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1524 # A ".." for each directory in $ac_dir_suffix. 1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1526 case $ac_top_builddir_sub in 1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1529 esac ;; 1530esac 1531ac_abs_top_builddir=$ac_pwd 1532ac_abs_builddir=$ac_pwd$ac_dir_suffix 1533# for backward compatibility: 1534ac_top_builddir=$ac_top_build_prefix 1535 1536case $srcdir in 1537 .) # We are building in place. 1538 ac_srcdir=. 1539 ac_top_srcdir=$ac_top_builddir_sub 1540 ac_abs_top_srcdir=$ac_pwd ;; 1541 [\\/]* | ?:[\\/]* ) # Absolute name. 1542 ac_srcdir=$srcdir$ac_dir_suffix; 1543 ac_top_srcdir=$srcdir 1544 ac_abs_top_srcdir=$srcdir ;; 1545 *) # Relative name. 1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1547 ac_top_srcdir=$ac_top_build_prefix$srcdir 1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1549esac 1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1551 1552 cd "$ac_dir" || { ac_status=$?; continue; } 1553 # Check for guested configure. 1554 if test -f "$ac_srcdir/configure.gnu"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1557 elif test -f "$ac_srcdir/configure"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure" --help=recursive 1560 else 1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1562 fi || ac_status=$? 1563 cd "$ac_pwd" || { ac_status=$?; break; } 1564 done 1565fi 1566 1567test -n "$ac_init_help" && exit $ac_status 1568if $ac_init_version; then 1569 cat <<\_ACEOF 1570package-unused configure version-unused 1571generated by GNU Autoconf 2.69 1572 1573Copyright (C) 2012 Free Software Foundation, Inc. 1574This configure script is free software; the Free Software Foundation 1575gives unlimited permission to copy, distribute and modify it. 1576_ACEOF 1577 exit 1578fi 1579 1580## ------------------------ ## 1581## Autoconf initialization. ## 1582## ------------------------ ## 1583 1584# ac_fn_c_try_compile LINENO 1585# -------------------------- 1586# Try to compile conftest.$ac_ext, and return whether this succeeded. 1587ac_fn_c_try_compile () 1588{ 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 rm -f conftest.$ac_objext 1591 if { { ac_try="$ac_compile" 1592case "(($ac_try" in 1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1594 *) ac_try_echo=$ac_try;; 1595esac 1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1597$as_echo "$ac_try_echo"; } >&5 1598 (eval "$ac_compile") 2>conftest.err 1599 ac_status=$? 1600 if test -s conftest.err; then 1601 grep -v '^ *+' conftest.err >conftest.er1 1602 cat conftest.er1 >&5 1603 mv -f conftest.er1 conftest.err 1604 fi 1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1606 test $ac_status = 0; } && { 1607 test -z "$ac_c_werror_flag" || 1608 test ! -s conftest.err 1609 } && test -s conftest.$ac_objext; then : 1610 ac_retval=0 1611else 1612 $as_echo "$as_me: failed program was:" >&5 1613sed 's/^/| /' conftest.$ac_ext >&5 1614 1615 ac_retval=1 1616fi 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 as_fn_set_status $ac_retval 1619 1620} # ac_fn_c_try_compile 1621 1622# ac_fn_c_try_cpp LINENO 1623# ---------------------- 1624# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1625ac_fn_c_try_cpp () 1626{ 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 if { { ac_try="$ac_cpp conftest.$ac_ext" 1629case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634$as_echo "$ac_try_echo"; } >&5 1635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1636 ac_status=$? 1637 if test -s conftest.err; then 1638 grep -v '^ *+' conftest.err >conftest.er1 1639 cat conftest.er1 >&5 1640 mv -f conftest.er1 conftest.err 1641 fi 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; } > conftest.i && { 1644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1645 test ! -s conftest.err 1646 }; then : 1647 ac_retval=0 1648else 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=1 1653fi 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 as_fn_set_status $ac_retval 1656 1657} # ac_fn_c_try_cpp 1658 1659# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1660# ------------------------------------------------------- 1661# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1662# the include files in INCLUDES and setting the cache variable VAR 1663# accordingly. 1664ac_fn_c_check_header_mongrel () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 if eval \${$3+:} false; then : 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669$as_echo_n "checking for $2... " >&6; } 1670if eval \${$3+:} false; then : 1671 $as_echo_n "(cached) " >&6 1672fi 1673eval ac_res=\$$3 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1675$as_echo "$ac_res" >&6; } 1676else 1677 # Is the header compilable? 1678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1679$as_echo_n "checking $2 usability... " >&6; } 1680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1681/* end confdefs.h. */ 1682$4 1683#include <$2> 1684_ACEOF 1685if ac_fn_c_try_compile "$LINENO"; then : 1686 ac_header_compiler=yes 1687else 1688 ac_header_compiler=no 1689fi 1690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1692$as_echo "$ac_header_compiler" >&6; } 1693 1694# Is the header present? 1695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1696$as_echo_n "checking $2 presence... " >&6; } 1697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698/* end confdefs.h. */ 1699#include <$2> 1700_ACEOF 1701if ac_fn_c_try_cpp "$LINENO"; then : 1702 ac_header_preproc=yes 1703else 1704 ac_header_preproc=no 1705fi 1706rm -f conftest.err conftest.i conftest.$ac_ext 1707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1708$as_echo "$ac_header_preproc" >&6; } 1709 1710# So? What about this header? 1711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1712 yes:no: ) 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1714$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1717 ;; 1718 no:yes:* ) 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1720$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1722$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1724$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1726$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1728$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1729( $as_echo "## --------------------------- ## 1730## Report this to libsanitizer ## 1731## --------------------------- ##" 1732 ) | sed "s/^/$as_me: WARNING: /" >&2 1733 ;; 1734esac 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1736$as_echo_n "checking for $2... " >&6; } 1737if eval \${$3+:} false; then : 1738 $as_echo_n "(cached) " >&6 1739else 1740 eval "$3=\$ac_header_compiler" 1741fi 1742eval ac_res=\$$3 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1744$as_echo "$ac_res" >&6; } 1745fi 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 1748} # ac_fn_c_check_header_mongrel 1749 1750# ac_fn_c_try_run LINENO 1751# ---------------------- 1752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1753# that executables *can* be run. 1754ac_fn_c_try_run () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 if { { ac_try="$ac_link" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_link") 2>&5 1765 ac_status=$? 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1768 { { case "(($ac_try" in 1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1770 *) ac_try_echo=$ac_try;; 1771esac 1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1773$as_echo "$ac_try_echo"; } >&5 1774 (eval "$ac_try") 2>&5 1775 ac_status=$? 1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1777 test $ac_status = 0; }; }; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: program exited with status $ac_status" >&5 1781 $as_echo "$as_me: failed program was:" >&5 1782sed 's/^/| /' conftest.$ac_ext >&5 1783 1784 ac_retval=$ac_status 1785fi 1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 as_fn_set_status $ac_retval 1789 1790} # ac_fn_c_try_run 1791 1792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1793# ------------------------------------------------------- 1794# Tests whether HEADER exists and can be compiled using the include files in 1795# INCLUDES, setting the cache variable VAR accordingly. 1796ac_fn_c_check_header_compile () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1800$as_echo_n "checking for $2... " >&6; } 1801if eval \${$3+:} false; then : 1802 $as_echo_n "(cached) " >&6 1803else 1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805/* end confdefs.h. */ 1806$4 1807#include <$2> 1808_ACEOF 1809if ac_fn_c_try_compile "$LINENO"; then : 1810 eval "$3=yes" 1811else 1812 eval "$3=no" 1813fi 1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1815fi 1816eval ac_res=\$$3 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1818$as_echo "$ac_res" >&6; } 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 1821} # ac_fn_c_check_header_compile 1822 1823# ac_fn_cxx_try_compile LINENO 1824# ---------------------------- 1825# Try to compile conftest.$ac_ext, and return whether this succeeded. 1826ac_fn_cxx_try_compile () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 rm -f conftest.$ac_objext 1830 if { { ac_try="$ac_compile" 1831case "(($ac_try" in 1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1833 *) ac_try_echo=$ac_try;; 1834esac 1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1836$as_echo "$ac_try_echo"; } >&5 1837 (eval "$ac_compile") 2>conftest.err 1838 ac_status=$? 1839 if test -s conftest.err; then 1840 grep -v '^ *+' conftest.err >conftest.er1 1841 cat conftest.er1 >&5 1842 mv -f conftest.er1 conftest.err 1843 fi 1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1845 test $ac_status = 0; } && { 1846 test -z "$ac_cxx_werror_flag" || 1847 test ! -s conftest.err 1848 } && test -s conftest.$ac_objext; then : 1849 ac_retval=0 1850else 1851 $as_echo "$as_me: failed program was:" >&5 1852sed 's/^/| /' conftest.$ac_ext >&5 1853 1854 ac_retval=1 1855fi 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859} # ac_fn_cxx_try_compile 1860 1861# ac_fn_c_try_link LINENO 1862# ----------------------- 1863# Try to link conftest.$ac_ext, and return whether this succeeded. 1864ac_fn_c_try_link () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 rm -f conftest.$ac_objext conftest$ac_exeext 1868 if { { ac_try="$ac_link" 1869case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872esac 1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874$as_echo "$ac_try_echo"; } >&5 1875 (eval "$ac_link") 2>conftest.err 1876 ac_status=$? 1877 if test -s conftest.err; then 1878 grep -v '^ *+' conftest.err >conftest.er1 1879 cat conftest.er1 >&5 1880 mv -f conftest.er1 conftest.err 1881 fi 1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1883 test $ac_status = 0; } && { 1884 test -z "$ac_c_werror_flag" || 1885 test ! -s conftest.err 1886 } && test -s conftest$ac_exeext && { 1887 test "$cross_compiling" = yes || 1888 test -x conftest$ac_exeext 1889 }; then : 1890 ac_retval=0 1891else 1892 $as_echo "$as_me: failed program was:" >&5 1893sed 's/^/| /' conftest.$ac_ext >&5 1894 1895 ac_retval=1 1896fi 1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1899 # interfere with the next link command; also delete a directory that is 1900 # left behind by Apple's compiler. We do this before executing the actions. 1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905} # ac_fn_c_try_link 1906 1907# ac_fn_c_check_func LINENO FUNC VAR 1908# ---------------------------------- 1909# Tests whether FUNC exists, setting the cache variable VAR accordingly 1910ac_fn_c_check_func () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1914$as_echo_n "checking for $2... " >&6; } 1915if eval \${$3+:} false; then : 1916 $as_echo_n "(cached) " >&6 1917else 1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919/* end confdefs.h. */ 1920/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1922#define $2 innocuous_$2 1923 1924/* System header to define __stub macros and hopefully few prototypes, 1925 which can conflict with char $2 (); below. 1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1927 <limits.h> exists even on freestanding compilers. */ 1928 1929#ifdef __STDC__ 1930# include <limits.h> 1931#else 1932# include <assert.h> 1933#endif 1934 1935#undef $2 1936 1937/* Override any GCC internal prototype to avoid an error. 1938 Use char because int might match the return type of a GCC 1939 builtin and then its argument prototype would still apply. */ 1940#ifdef __cplusplus 1941extern "C" 1942#endif 1943char $2 (); 1944/* The GNU C library defines this for functions which it implements 1945 to always fail with ENOSYS. Some functions are actually named 1946 something starting with __ and the normal name is an alias. */ 1947#if defined __stub_$2 || defined __stub___$2 1948choke me 1949#endif 1950 1951int 1952main () 1953{ 1954return $2 (); 1955 ; 1956 return 0; 1957} 1958_ACEOF 1959if ac_fn_c_try_link "$LINENO"; then : 1960 eval "$3=yes" 1961else 1962 eval "$3=no" 1963fi 1964rm -f core conftest.err conftest.$ac_objext \ 1965 conftest$ac_exeext conftest.$ac_ext 1966fi 1967eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969$as_echo "$ac_res" >&6; } 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 1972} # ac_fn_c_check_func 1973 1974# ac_fn_cxx_try_cpp LINENO 1975# ------------------------ 1976# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1977ac_fn_cxx_try_cpp () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 if { { ac_try="$ac_cpp conftest.$ac_ext" 1981case "(($ac_try" in 1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1983 *) ac_try_echo=$ac_try;; 1984esac 1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1986$as_echo "$ac_try_echo"; } >&5 1987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1988 ac_status=$? 1989 if test -s conftest.err; then 1990 grep -v '^ *+' conftest.err >conftest.er1 1991 cat conftest.er1 >&5 1992 mv -f conftest.er1 conftest.err 1993 fi 1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1995 test $ac_status = 0; } > conftest.i && { 1996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1997 test ! -s conftest.err 1998 }; then : 1999 ac_retval=0 2000else 2001 $as_echo "$as_me: failed program was:" >&5 2002sed 's/^/| /' conftest.$ac_ext >&5 2003 2004 ac_retval=1 2005fi 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2007 as_fn_set_status $ac_retval 2008 2009} # ac_fn_cxx_try_cpp 2010 2011# ac_fn_cxx_try_link LINENO 2012# ------------------------- 2013# Try to link conftest.$ac_ext, and return whether this succeeded. 2014ac_fn_cxx_try_link () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 rm -f conftest.$ac_objext conftest$ac_exeext 2018 if { { ac_try="$ac_link" 2019case "(($ac_try" in 2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2021 *) ac_try_echo=$ac_try;; 2022esac 2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2024$as_echo "$ac_try_echo"; } >&5 2025 (eval "$ac_link") 2>conftest.err 2026 ac_status=$? 2027 if test -s conftest.err; then 2028 grep -v '^ *+' conftest.err >conftest.er1 2029 cat conftest.er1 >&5 2030 mv -f conftest.er1 conftest.err 2031 fi 2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2033 test $ac_status = 0; } && { 2034 test -z "$ac_cxx_werror_flag" || 2035 test ! -s conftest.err 2036 } && test -s conftest$ac_exeext && { 2037 test "$cross_compiling" = yes || 2038 test -x conftest$ac_exeext 2039 }; then : 2040 ac_retval=0 2041else 2042 $as_echo "$as_me: failed program was:" >&5 2043sed 's/^/| /' conftest.$ac_ext >&5 2044 2045 ac_retval=1 2046fi 2047 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2048 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2049 # interfere with the next link command; also delete a directory that is 2050 # left behind by Apple's compiler. We do this before executing the actions. 2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2053 as_fn_set_status $ac_retval 2054 2055} # ac_fn_cxx_try_link 2056 2057# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2058# -------------------------------------------- 2059# Tries to find the compile-time value of EXPR in a program that includes 2060# INCLUDES, setting VAR accordingly. Returns whether the value could be 2061# computed 2062ac_fn_c_compute_int () 2063{ 2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2065 if test "$cross_compiling" = yes; then 2066 # Depending upon the size, compute the lo and hi bounds. 2067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2068/* end confdefs.h. */ 2069$4 2070int 2071main () 2072{ 2073static int test_array [1 - 2 * !(($2) >= 0)]; 2074test_array [0] = 0; 2075return test_array [0]; 2076 2077 ; 2078 return 0; 2079} 2080_ACEOF 2081if ac_fn_c_try_compile "$LINENO"; then : 2082 ac_lo=0 ac_mid=0 2083 while :; do 2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2085/* end confdefs.h. */ 2086$4 2087int 2088main () 2089{ 2090static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2091test_array [0] = 0; 2092return test_array [0]; 2093 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098if ac_fn_c_try_compile "$LINENO"; then : 2099 ac_hi=$ac_mid; break 2100else 2101 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2102 if test $ac_lo -le $ac_mid; then 2103 ac_lo= ac_hi= 2104 break 2105 fi 2106 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2107fi 2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2109 done 2110else 2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2112/* end confdefs.h. */ 2113$4 2114int 2115main () 2116{ 2117static int test_array [1 - 2 * !(($2) < 0)]; 2118test_array [0] = 0; 2119return test_array [0]; 2120 2121 ; 2122 return 0; 2123} 2124_ACEOF 2125if ac_fn_c_try_compile "$LINENO"; then : 2126 ac_hi=-1 ac_mid=-1 2127 while :; do 2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2129/* end confdefs.h. */ 2130$4 2131int 2132main () 2133{ 2134static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2135test_array [0] = 0; 2136return test_array [0]; 2137 2138 ; 2139 return 0; 2140} 2141_ACEOF 2142if ac_fn_c_try_compile "$LINENO"; then : 2143 ac_lo=$ac_mid; break 2144else 2145 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2146 if test $ac_mid -le $ac_hi; then 2147 ac_lo= ac_hi= 2148 break 2149 fi 2150 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2151fi 2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2153 done 2154else 2155 ac_lo= ac_hi= 2156fi 2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2158fi 2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2160# Binary search between lo and hi bounds. 2161while test "x$ac_lo" != "x$ac_hi"; do 2162 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2164/* end confdefs.h. */ 2165$4 2166int 2167main () 2168{ 2169static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2170test_array [0] = 0; 2171return test_array [0]; 2172 2173 ; 2174 return 0; 2175} 2176_ACEOF 2177if ac_fn_c_try_compile "$LINENO"; then : 2178 ac_hi=$ac_mid 2179else 2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2183done 2184case $ac_lo in #(( 2185?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2186'') ac_retval=1 ;; 2187esac 2188 else 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190/* end confdefs.h. */ 2191$4 2192static long int longval () { return $2; } 2193static unsigned long int ulongval () { return $2; } 2194#include <stdio.h> 2195#include <stdlib.h> 2196int 2197main () 2198{ 2199 2200 FILE *f = fopen ("conftest.val", "w"); 2201 if (! f) 2202 return 1; 2203 if (($2) < 0) 2204 { 2205 long int i = longval (); 2206 if (i != ($2)) 2207 return 1; 2208 fprintf (f, "%ld", i); 2209 } 2210 else 2211 { 2212 unsigned long int i = ulongval (); 2213 if (i != ($2)) 2214 return 1; 2215 fprintf (f, "%lu", i); 2216 } 2217 /* Do not output a trailing newline, as this causes \r\n confusion 2218 on some platforms. */ 2219 return ferror (f) || fclose (f) != 0; 2220 2221 ; 2222 return 0; 2223} 2224_ACEOF 2225if ac_fn_c_try_run "$LINENO"; then : 2226 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2227else 2228 ac_retval=1 2229fi 2230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2231 conftest.$ac_objext conftest.beam conftest.$ac_ext 2232rm -f conftest.val 2233 2234 fi 2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2236 as_fn_set_status $ac_retval 2237 2238} # ac_fn_c_compute_int 2239 2240# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2241# ------------------------------------------- 2242# Tests whether TYPE exists after having included INCLUDES, setting cache 2243# variable VAR accordingly. 2244ac_fn_c_check_type () 2245{ 2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2248$as_echo_n "checking for $2... " >&6; } 2249if eval \${$3+:} false; then : 2250 $as_echo_n "(cached) " >&6 2251else 2252 eval "$3=no" 2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2254/* end confdefs.h. */ 2255$4 2256int 2257main () 2258{ 2259if (sizeof ($2)) 2260 return 0; 2261 ; 2262 return 0; 2263} 2264_ACEOF 2265if ac_fn_c_try_compile "$LINENO"; then : 2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2267/* end confdefs.h. */ 2268$4 2269int 2270main () 2271{ 2272if (sizeof (($2))) 2273 return 0; 2274 ; 2275 return 0; 2276} 2277_ACEOF 2278if ac_fn_c_try_compile "$LINENO"; then : 2279 2280else 2281 eval "$3=yes" 2282fi 2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2284fi 2285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2286fi 2287eval ac_res=\$$3 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2289$as_echo "$ac_res" >&6; } 2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2291 2292} # ac_fn_c_check_type 2293 2294# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2295# --------------------------------------------- 2296# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2297# accordingly. 2298ac_fn_c_check_decl () 2299{ 2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2301 as_decl_name=`echo $2|sed 's/ *(.*//'` 2302 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2304$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2305if eval \${$3+:} false; then : 2306 $as_echo_n "(cached) " >&6 2307else 2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2309/* end confdefs.h. */ 2310$4 2311int 2312main () 2313{ 2314#ifndef $as_decl_name 2315#ifdef __cplusplus 2316 (void) $as_decl_use; 2317#else 2318 (void) $as_decl_name; 2319#endif 2320#endif 2321 2322 ; 2323 return 0; 2324} 2325_ACEOF 2326if ac_fn_c_try_compile "$LINENO"; then : 2327 eval "$3=yes" 2328else 2329 eval "$3=no" 2330fi 2331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2332fi 2333eval ac_res=\$$3 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2335$as_echo "$ac_res" >&6; } 2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2337 2338} # ac_fn_c_check_decl 2339cat >config.log <<_ACEOF 2340This file contains any messages produced by compilers while 2341running configure, to aid debugging if configure makes a mistake. 2342 2343It was created by package-unused $as_me version-unused, which was 2344generated by GNU Autoconf 2.69. Invocation command line was 2345 2346 $ $0 $@ 2347 2348_ACEOF 2349exec 5>>config.log 2350{ 2351cat <<_ASUNAME 2352## --------- ## 2353## Platform. ## 2354## --------- ## 2355 2356hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2357uname -m = `(uname -m) 2>/dev/null || echo unknown` 2358uname -r = `(uname -r) 2>/dev/null || echo unknown` 2359uname -s = `(uname -s) 2>/dev/null || echo unknown` 2360uname -v = `(uname -v) 2>/dev/null || echo unknown` 2361 2362/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2363/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2364 2365/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2366/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2367/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2368/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2369/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2370/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2371/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2372 2373_ASUNAME 2374 2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2376for as_dir in $PATH 2377do 2378 IFS=$as_save_IFS 2379 test -z "$as_dir" && as_dir=. 2380 $as_echo "PATH: $as_dir" 2381 done 2382IFS=$as_save_IFS 2383 2384} >&5 2385 2386cat >&5 <<_ACEOF 2387 2388 2389## ----------- ## 2390## Core tests. ## 2391## ----------- ## 2392 2393_ACEOF 2394 2395 2396# Keep a trace of the command line. 2397# Strip out --no-create and --no-recursion so they do not pile up. 2398# Strip out --silent because we don't want to record it for future runs. 2399# Also quote any args containing shell meta-characters. 2400# Make two passes to allow for proper duplicate-argument suppression. 2401ac_configure_args= 2402ac_configure_args0= 2403ac_configure_args1= 2404ac_must_keep_next=false 2405for ac_pass in 1 2 2406do 2407 for ac_arg 2408 do 2409 case $ac_arg in 2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2412 | -silent | --silent | --silen | --sile | --sil) 2413 continue ;; 2414 *\'*) 2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2416 esac 2417 case $ac_pass in 2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2419 2) 2420 as_fn_append ac_configure_args1 " '$ac_arg'" 2421 if test $ac_must_keep_next = true; then 2422 ac_must_keep_next=false # Got value, back to normal. 2423 else 2424 case $ac_arg in 2425 *=* | --config-cache | -C | -disable-* | --disable-* \ 2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2428 | -with-* | --with-* | -without-* | --without-* | --x) 2429 case "$ac_configure_args0 " in 2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2431 esac 2432 ;; 2433 -* ) ac_must_keep_next=true ;; 2434 esac 2435 fi 2436 as_fn_append ac_configure_args " '$ac_arg'" 2437 ;; 2438 esac 2439 done 2440done 2441{ ac_configure_args0=; unset ac_configure_args0;} 2442{ ac_configure_args1=; unset ac_configure_args1;} 2443 2444# When interrupted or exit'd, cleanup temporary files, and complete 2445# config.log. We remove comments because anyway the quotes in there 2446# would cause problems or look ugly. 2447# WARNING: Use '\'' to represent an apostrophe within the trap. 2448# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2449trap 'exit_status=$? 2450 # Save into config.log some information that might help in debugging. 2451 { 2452 echo 2453 2454 $as_echo "## ---------------- ## 2455## Cache variables. ## 2456## ---------------- ##" 2457 echo 2458 # The following way of writing the cache mishandles newlines in values, 2459( 2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2461 eval ac_val=\$$ac_var 2462 case $ac_val in #( 2463 *${as_nl}*) 2464 case $ac_var in #( 2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2466$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2467 esac 2468 case $ac_var in #( 2469 _ | IFS | as_nl) ;; #( 2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2471 *) { eval $ac_var=; unset $ac_var;} ;; 2472 esac ;; 2473 esac 2474 done 2475 (set) 2>&1 | 2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2477 *${as_nl}ac_space=\ *) 2478 sed -n \ 2479 "s/'\''/'\''\\\\'\'''\''/g; 2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2481 ;; #( 2482 *) 2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2484 ;; 2485 esac | 2486 sort 2487) 2488 echo 2489 2490 $as_echo "## ----------------- ## 2491## Output variables. ## 2492## ----------------- ##" 2493 echo 2494 for ac_var in $ac_subst_vars 2495 do 2496 eval ac_val=\$$ac_var 2497 case $ac_val in 2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2499 esac 2500 $as_echo "$ac_var='\''$ac_val'\''" 2501 done | sort 2502 echo 2503 2504 if test -n "$ac_subst_files"; then 2505 $as_echo "## ------------------- ## 2506## File substitutions. ## 2507## ------------------- ##" 2508 echo 2509 for ac_var in $ac_subst_files 2510 do 2511 eval ac_val=\$$ac_var 2512 case $ac_val in 2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2514 esac 2515 $as_echo "$ac_var='\''$ac_val'\''" 2516 done | sort 2517 echo 2518 fi 2519 2520 if test -s confdefs.h; then 2521 $as_echo "## ----------- ## 2522## confdefs.h. ## 2523## ----------- ##" 2524 echo 2525 cat confdefs.h 2526 echo 2527 fi 2528 test "$ac_signal" != 0 && 2529 $as_echo "$as_me: caught signal $ac_signal" 2530 $as_echo "$as_me: exit $exit_status" 2531 } >&5 2532 rm -f core *.core core.conftest.* && 2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2534 exit $exit_status 2535' 0 2536for ac_signal in 1 2 13 15; do 2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2538done 2539ac_signal=0 2540 2541# confdefs.h avoids OS command line length limits that DEFS can exceed. 2542rm -f -r conftest* confdefs.h 2543 2544$as_echo "/* confdefs.h */" > confdefs.h 2545 2546# Predefined preprocessor variables. 2547 2548cat >>confdefs.h <<_ACEOF 2549#define PACKAGE_NAME "$PACKAGE_NAME" 2550_ACEOF 2551 2552cat >>confdefs.h <<_ACEOF 2553#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2554_ACEOF 2555 2556cat >>confdefs.h <<_ACEOF 2557#define PACKAGE_VERSION "$PACKAGE_VERSION" 2558_ACEOF 2559 2560cat >>confdefs.h <<_ACEOF 2561#define PACKAGE_STRING "$PACKAGE_STRING" 2562_ACEOF 2563 2564cat >>confdefs.h <<_ACEOF 2565#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2566_ACEOF 2567 2568cat >>confdefs.h <<_ACEOF 2569#define PACKAGE_URL "$PACKAGE_URL" 2570_ACEOF 2571 2572 2573# Let the site file select an alternate cache file if it wants to. 2574# Prefer an explicitly selected file to automatically selected ones. 2575ac_site_file1=NONE 2576ac_site_file2=NONE 2577if test -n "$CONFIG_SITE"; then 2578 # We do not want a PATH search for config.site. 2579 case $CONFIG_SITE in #(( 2580 -*) ac_site_file1=./$CONFIG_SITE;; 2581 */*) ac_site_file1=$CONFIG_SITE;; 2582 *) ac_site_file1=./$CONFIG_SITE;; 2583 esac 2584elif test "x$prefix" != xNONE; then 2585 ac_site_file1=$prefix/share/config.site 2586 ac_site_file2=$prefix/etc/config.site 2587else 2588 ac_site_file1=$ac_default_prefix/share/config.site 2589 ac_site_file2=$ac_default_prefix/etc/config.site 2590fi 2591for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2592do 2593 test "x$ac_site_file" = xNONE && continue 2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2596$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2597 sed 's/^/| /' "$ac_site_file" >&5 2598 . "$ac_site_file" \ 2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2601as_fn_error $? "failed to load site script $ac_site_file 2602See \`config.log' for more details" "$LINENO" 5; } 2603 fi 2604done 2605 2606if test -r "$cache_file"; then 2607 # Some versions of bash will fail to source /dev/null (special files 2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2611$as_echo "$as_me: loading cache $cache_file" >&6;} 2612 case $cache_file in 2613 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2614 *) . "./$cache_file";; 2615 esac 2616 fi 2617else 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2619$as_echo "$as_me: creating cache $cache_file" >&6;} 2620 >$cache_file 2621fi 2622 2623# Check that the precious variables saved in the cache have kept the same 2624# value. 2625ac_cache_corrupted=false 2626for ac_var in $ac_precious_vars; do 2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2628 eval ac_new_set=\$ac_env_${ac_var}_set 2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2630 eval ac_new_val=\$ac_env_${ac_var}_value 2631 case $ac_old_set,$ac_new_set in 2632 set,) 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2634$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2635 ac_cache_corrupted=: ;; 2636 ,set) 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2638$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2639 ac_cache_corrupted=: ;; 2640 ,);; 2641 *) 2642 if test "x$ac_old_val" != "x$ac_new_val"; then 2643 # differences in whitespace do not lead to failure. 2644 ac_old_val_w=`echo x $ac_old_val` 2645 ac_new_val_w=`echo x $ac_new_val` 2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2648$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2649 ac_cache_corrupted=: 2650 else 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2652$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2653 eval $ac_var=\$ac_old_val 2654 fi 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2656$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2658$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2659 fi;; 2660 esac 2661 # Pass precious variables to config.status. 2662 if test "$ac_new_set" = set; then 2663 case $ac_new_val in 2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2665 *) ac_arg=$ac_var=$ac_new_val ;; 2666 esac 2667 case " $ac_configure_args " in 2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2670 esac 2671 fi 2672done 2673if $ac_cache_corrupted; then 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2677$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2679fi 2680## -------------------- ## 2681## Main body of script. ## 2682## -------------------- ## 2683 2684ac_ext=c 2685ac_cpp='$CPP $CPPFLAGS' 2686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2688ac_compiler_gnu=$ac_cv_c_compiler_gnu 2689 2690 2691 2692 2693 2694 2695 2696# Default to --enable-multilib 2697# Check whether --enable-multilib was given. 2698if test "${enable_multilib+set}" = set; then : 2699 enableval=$enable_multilib; case "$enableval" in 2700 yes) multilib=yes ;; 2701 no) multilib=no ;; 2702 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 2703 esac 2704else 2705 multilib=yes 2706fi 2707 2708 2709# We may get other options which we leave undocumented: 2710# --with-target-subdir, --with-multisrctop, --with-multisubdir 2711# See config-ml.in if you want the gory details. 2712 2713if test "$srcdir" = "."; then 2714 if test "$with_target_subdir" != "."; then 2715 multi_basedir="$srcdir/$with_multisrctop../.." 2716 else 2717 multi_basedir="$srcdir/$with_multisrctop.." 2718 fi 2719else 2720 multi_basedir="$srcdir/.." 2721fi 2722 2723 2724# Even if the default multilib is not a cross compilation, 2725# it may be that some of the other multilibs are. 2726if test $cross_compiling = no && test $multilib = yes \ 2727 && test "x${with_multisubdir}" != x ; then 2728 cross_compiling=maybe 2729fi 2730 2731ac_config_commands="$ac_config_commands default-1" 2732 2733 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2735$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2736# Check whether --enable-version-specific-runtime-libs was given. 2737if test "${enable_version_specific_runtime_libs+set}" = set; then : 2738 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 2739 yes) version_specific_libs=yes ;; 2740 no) version_specific_libs=no ;; 2741 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 2742 esac 2743else 2744 version_specific_libs=no 2745fi 2746 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 2748$as_echo "$version_specific_libs" >&6; } 2749 2750ac_aux_dir= 2751for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2752 if test -f "$ac_dir/install-sh"; then 2753 ac_aux_dir=$ac_dir 2754 ac_install_sh="$ac_aux_dir/install-sh -c" 2755 break 2756 elif test -f "$ac_dir/install.sh"; then 2757 ac_aux_dir=$ac_dir 2758 ac_install_sh="$ac_aux_dir/install.sh -c" 2759 break 2760 elif test -f "$ac_dir/shtool"; then 2761 ac_aux_dir=$ac_dir 2762 ac_install_sh="$ac_aux_dir/shtool install -c" 2763 break 2764 fi 2765done 2766if test -z "$ac_aux_dir"; then 2767 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2768fi 2769 2770# These three variables are undocumented and unsupported, 2771# and are intended to be withdrawn in a future Autoconf release. 2772# They can cause serious problems if a builder's source tree is in a directory 2773# whose full name contains unusual characters. 2774ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2775ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2776ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2777 2778 2779# Expand $ac_aux_dir to an absolute path. 2780am_aux_dir=`cd "$ac_aux_dir" && pwd` 2781 2782ac_ext=c 2783ac_cpp='$CPP $CPPFLAGS' 2784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2786ac_compiler_gnu=$ac_cv_c_compiler_gnu 2787if test -n "$ac_tool_prefix"; then 2788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2789set dummy ${ac_tool_prefix}gcc; ac_word=$2 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2791$as_echo_n "checking for $ac_word... " >&6; } 2792if ${ac_cv_prog_CC+:} false; then : 2793 $as_echo_n "(cached) " >&6 2794else 2795 if test -n "$CC"; then 2796 ac_cv_prog_CC="$CC" # Let the user override the test. 2797else 2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799for as_dir in $PATH 2800do 2801 IFS=$as_save_IFS 2802 test -z "$as_dir" && as_dir=. 2803 for ac_exec_ext in '' $ac_executable_extensions; do 2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2805 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809done 2810 done 2811IFS=$as_save_IFS 2812 2813fi 2814fi 2815CC=$ac_cv_prog_CC 2816if test -n "$CC"; then 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2818$as_echo "$CC" >&6; } 2819else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822fi 2823 2824 2825fi 2826if test -z "$ac_cv_prog_CC"; then 2827 ac_ct_CC=$CC 2828 # Extract the first word of "gcc", so it can be a program name with args. 2829set dummy gcc; ac_word=$2 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2831$as_echo_n "checking for $ac_word... " >&6; } 2832if ${ac_cv_prog_ac_ct_CC+:} false; then : 2833 $as_echo_n "(cached) " >&6 2834else 2835 if test -n "$ac_ct_CC"; then 2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2837else 2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2839for as_dir in $PATH 2840do 2841 IFS=$as_save_IFS 2842 test -z "$as_dir" && as_dir=. 2843 for ac_exec_ext in '' $ac_executable_extensions; do 2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2845 ac_cv_prog_ac_ct_CC="gcc" 2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2847 break 2 2848 fi 2849done 2850 done 2851IFS=$as_save_IFS 2852 2853fi 2854fi 2855ac_ct_CC=$ac_cv_prog_ac_ct_CC 2856if test -n "$ac_ct_CC"; then 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2858$as_echo "$ac_ct_CC" >&6; } 2859else 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2861$as_echo "no" >&6; } 2862fi 2863 2864 if test "x$ac_ct_CC" = x; then 2865 CC="" 2866 else 2867 case $cross_compiling:$ac_tool_warned in 2868yes:) 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2871ac_tool_warned=yes ;; 2872esac 2873 CC=$ac_ct_CC 2874 fi 2875else 2876 CC="$ac_cv_prog_CC" 2877fi 2878 2879if test -z "$CC"; then 2880 if test -n "$ac_tool_prefix"; then 2881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2882set dummy ${ac_tool_prefix}cc; ac_word=$2 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884$as_echo_n "checking for $ac_word... " >&6; } 2885if ${ac_cv_prog_CC+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887else 2888 if test -n "$CC"; then 2889 ac_cv_prog_CC="$CC" # Let the user override the test. 2890else 2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2892for as_dir in $PATH 2893do 2894 IFS=$as_save_IFS 2895 test -z "$as_dir" && as_dir=. 2896 for ac_exec_ext in '' $ac_executable_extensions; do 2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2898 ac_cv_prog_CC="${ac_tool_prefix}cc" 2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2900 break 2 2901 fi 2902done 2903 done 2904IFS=$as_save_IFS 2905 2906fi 2907fi 2908CC=$ac_cv_prog_CC 2909if test -n "$CC"; then 2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2911$as_echo "$CC" >&6; } 2912else 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2914$as_echo "no" >&6; } 2915fi 2916 2917 2918 fi 2919fi 2920if test -z "$CC"; then 2921 # Extract the first word of "cc", so it can be a program name with args. 2922set dummy cc; ac_word=$2 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2924$as_echo_n "checking for $ac_word... " >&6; } 2925if ${ac_cv_prog_CC+:} false; then : 2926 $as_echo_n "(cached) " >&6 2927else 2928 if test -n "$CC"; then 2929 ac_cv_prog_CC="$CC" # Let the user override the test. 2930else 2931 ac_prog_rejected=no 2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2933for as_dir in $PATH 2934do 2935 IFS=$as_save_IFS 2936 test -z "$as_dir" && as_dir=. 2937 for ac_exec_ext in '' $ac_executable_extensions; do 2938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2940 ac_prog_rejected=yes 2941 continue 2942 fi 2943 ac_cv_prog_CC="cc" 2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2945 break 2 2946 fi 2947done 2948 done 2949IFS=$as_save_IFS 2950 2951if test $ac_prog_rejected = yes; then 2952 # We found a bogon in the path, so make sure we never use it. 2953 set dummy $ac_cv_prog_CC 2954 shift 2955 if test $# != 0; then 2956 # We chose a different compiler from the bogus one. 2957 # However, it has the same basename, so the bogon will be chosen 2958 # first if we set CC to just the basename; use the full file name. 2959 shift 2960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2961 fi 2962fi 2963fi 2964fi 2965CC=$ac_cv_prog_CC 2966if test -n "$CC"; then 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2968$as_echo "$CC" >&6; } 2969else 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971$as_echo "no" >&6; } 2972fi 2973 2974 2975fi 2976if test -z "$CC"; then 2977 if test -n "$ac_tool_prefix"; then 2978 for ac_prog in cl.exe 2979 do 2980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2981set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2983$as_echo_n "checking for $ac_word... " >&6; } 2984if ${ac_cv_prog_CC+:} false; then : 2985 $as_echo_n "(cached) " >&6 2986else 2987 if test -n "$CC"; then 2988 ac_cv_prog_CC="$CC" # Let the user override the test. 2989else 2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2991for as_dir in $PATH 2992do 2993 IFS=$as_save_IFS 2994 test -z "$as_dir" && as_dir=. 2995 for ac_exec_ext in '' $ac_executable_extensions; do 2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2999 break 2 3000 fi 3001done 3002 done 3003IFS=$as_save_IFS 3004 3005fi 3006fi 3007CC=$ac_cv_prog_CC 3008if test -n "$CC"; then 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3010$as_echo "$CC" >&6; } 3011else 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3013$as_echo "no" >&6; } 3014fi 3015 3016 3017 test -n "$CC" && break 3018 done 3019fi 3020if test -z "$CC"; then 3021 ac_ct_CC=$CC 3022 for ac_prog in cl.exe 3023do 3024 # Extract the first word of "$ac_prog", so it can be a program name with args. 3025set dummy $ac_prog; ac_word=$2 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3027$as_echo_n "checking for $ac_word... " >&6; } 3028if ${ac_cv_prog_ac_ct_CC+:} false; then : 3029 $as_echo_n "(cached) " >&6 3030else 3031 if test -n "$ac_ct_CC"; then 3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3033else 3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3035for as_dir in $PATH 3036do 3037 IFS=$as_save_IFS 3038 test -z "$as_dir" && as_dir=. 3039 for ac_exec_ext in '' $ac_executable_extensions; do 3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3041 ac_cv_prog_ac_ct_CC="$ac_prog" 3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3043 break 2 3044 fi 3045done 3046 done 3047IFS=$as_save_IFS 3048 3049fi 3050fi 3051ac_ct_CC=$ac_cv_prog_ac_ct_CC 3052if test -n "$ac_ct_CC"; then 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3054$as_echo "$ac_ct_CC" >&6; } 3055else 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3057$as_echo "no" >&6; } 3058fi 3059 3060 3061 test -n "$ac_ct_CC" && break 3062done 3063 3064 if test "x$ac_ct_CC" = x; then 3065 CC="" 3066 else 3067 case $cross_compiling:$ac_tool_warned in 3068yes:) 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3071ac_tool_warned=yes ;; 3072esac 3073 CC=$ac_ct_CC 3074 fi 3075fi 3076 3077fi 3078 3079 3080test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3082as_fn_error $? "no acceptable C compiler found in \$PATH 3083See \`config.log' for more details" "$LINENO" 5; } 3084 3085# Provide some information about the compiler. 3086$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3087set X $ac_compile 3088ac_compiler=$2 3089for ac_option in --version -v -V -qversion; do 3090 { { ac_try="$ac_compiler $ac_option >&5" 3091case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094esac 3095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3096$as_echo "$ac_try_echo"; } >&5 3097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3098 ac_status=$? 3099 if test -s conftest.err; then 3100 sed '10a\ 3101... rest of stderr output deleted ... 3102 10q' conftest.err >conftest.er1 3103 cat conftest.er1 >&5 3104 fi 3105 rm -f conftest.er1 conftest.err 3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3107 test $ac_status = 0; } 3108done 3109 3110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3111/* end confdefs.h. */ 3112 3113int 3114main () 3115{ 3116 3117 ; 3118 return 0; 3119} 3120_ACEOF 3121ac_clean_files_save=$ac_clean_files 3122ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3123# Try to create an executable without -o first, disregard a.out. 3124# It will help us diagnose broken compilers, and finding out an intuition 3125# of exeext. 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3127$as_echo_n "checking whether the C compiler works... " >&6; } 3128ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3129 3130# The possible output files: 3131ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3132 3133ac_rmfiles= 3134for ac_file in $ac_files 3135do 3136 case $ac_file in 3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3138 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3139 esac 3140done 3141rm -f $ac_rmfiles 3142 3143if { { ac_try="$ac_link_default" 3144case "(($ac_try" in 3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3146 *) ac_try_echo=$ac_try;; 3147esac 3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3149$as_echo "$ac_try_echo"; } >&5 3150 (eval "$ac_link_default") 2>&5 3151 ac_status=$? 3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3153 test $ac_status = 0; }; then : 3154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3155# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3156# in a Makefile. We should not override ac_cv_exeext if it was cached, 3157# so that the user can short-circuit this test for compilers unknown to 3158# Autoconf. 3159for ac_file in $ac_files '' 3160do 3161 test -f "$ac_file" || continue 3162 case $ac_file in 3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3164 ;; 3165 [ab].out ) 3166 # We found the default executable, but exeext='' is most 3167 # certainly right. 3168 break;; 3169 *.* ) 3170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3171 then :; else 3172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3173 fi 3174 # We set ac_cv_exeext here because the later test for it is not 3175 # safe: cross compilers may not add the suffix if given an `-o' 3176 # argument, so we may need to know it at that point already. 3177 # Even if this section looks crufty: it has the advantage of 3178 # actually working. 3179 break;; 3180 * ) 3181 break;; 3182 esac 3183done 3184test "$ac_cv_exeext" = no && ac_cv_exeext= 3185 3186else 3187 ac_file='' 3188fi 3189if test -z "$ac_file"; then : 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192$as_echo "$as_me: failed program was:" >&5 3193sed 's/^/| /' conftest.$ac_ext >&5 3194 3195{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3197as_fn_error 77 "C compiler cannot create executables 3198See \`config.log' for more details" "$LINENO" 5; } 3199else 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3201$as_echo "yes" >&6; } 3202fi 3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3204$as_echo_n "checking for C compiler default output file name... " >&6; } 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3206$as_echo "$ac_file" >&6; } 3207ac_exeext=$ac_cv_exeext 3208 3209rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3210ac_clean_files=$ac_clean_files_save 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3212$as_echo_n "checking for suffix of executables... " >&6; } 3213if { { ac_try="$ac_link" 3214case "(($ac_try" in 3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3216 *) ac_try_echo=$ac_try;; 3217esac 3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3219$as_echo "$ac_try_echo"; } >&5 3220 (eval "$ac_link") 2>&5 3221 ac_status=$? 3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3223 test $ac_status = 0; }; then : 3224 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3225# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3226# work properly (i.e., refer to `conftest.exe'), while it won't with 3227# `rm'. 3228for ac_file in conftest.exe conftest conftest.*; do 3229 test -f "$ac_file" || continue 3230 case $ac_file in 3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3233 break;; 3234 * ) break;; 3235 esac 3236done 3237else 3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3240as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3241See \`config.log' for more details" "$LINENO" 5; } 3242fi 3243rm -f conftest conftest$ac_cv_exeext 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3245$as_echo "$ac_cv_exeext" >&6; } 3246 3247rm -f conftest.$ac_ext 3248EXEEXT=$ac_cv_exeext 3249ac_exeext=$EXEEXT 3250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3251/* end confdefs.h. */ 3252#include <stdio.h> 3253int 3254main () 3255{ 3256FILE *f = fopen ("conftest.out", "w"); 3257 return ferror (f) || fclose (f) != 0; 3258 3259 ; 3260 return 0; 3261} 3262_ACEOF 3263ac_clean_files="$ac_clean_files conftest.out" 3264# Check that the compiler produces executables we can run. If not, either 3265# the compiler is broken, or we cross compile. 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3267$as_echo_n "checking whether we are cross compiling... " >&6; } 3268if test "$cross_compiling" != yes; then 3269 { { ac_try="$ac_link" 3270case "(($ac_try" in 3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3272 *) ac_try_echo=$ac_try;; 3273esac 3274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3275$as_echo "$ac_try_echo"; } >&5 3276 (eval "$ac_link") 2>&5 3277 ac_status=$? 3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3279 test $ac_status = 0; } 3280 if { ac_try='./conftest$ac_cv_exeext' 3281 { { case "(($ac_try" in 3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3283 *) ac_try_echo=$ac_try;; 3284esac 3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3286$as_echo "$ac_try_echo"; } >&5 3287 (eval "$ac_try") 2>&5 3288 ac_status=$? 3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3290 test $ac_status = 0; }; }; then 3291 cross_compiling=no 3292 else 3293 if test "$cross_compiling" = maybe; then 3294 cross_compiling=yes 3295 else 3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3298as_fn_error $? "cannot run C compiled programs. 3299If you meant to cross compile, use \`--host'. 3300See \`config.log' for more details" "$LINENO" 5; } 3301 fi 3302 fi 3303fi 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3305$as_echo "$cross_compiling" >&6; } 3306 3307rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3308ac_clean_files=$ac_clean_files_save 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3310$as_echo_n "checking for suffix of object files... " >&6; } 3311if ${ac_cv_objext+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315/* end confdefs.h. */ 3316 3317int 3318main () 3319{ 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325rm -f conftest.o conftest.obj 3326if { { ac_try="$ac_compile" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3332$as_echo "$ac_try_echo"; } >&5 3333 (eval "$ac_compile") 2>&5 3334 ac_status=$? 3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3336 test $ac_status = 0; }; then : 3337 for ac_file in conftest.o conftest.obj conftest.*; do 3338 test -f "$ac_file" || continue; 3339 case $ac_file in 3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3342 break;; 3343 esac 3344done 3345else 3346 $as_echo "$as_me: failed program was:" >&5 3347sed 's/^/| /' conftest.$ac_ext >&5 3348 3349{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3351as_fn_error $? "cannot compute suffix of object files: cannot compile 3352See \`config.log' for more details" "$LINENO" 5; } 3353fi 3354rm -f conftest.$ac_cv_objext conftest.$ac_ext 3355fi 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3357$as_echo "$ac_cv_objext" >&6; } 3358OBJEXT=$ac_cv_objext 3359ac_objext=$OBJEXT 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3361$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3362if ${ac_cv_c_compiler_gnu+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366/* end confdefs.h. */ 3367 3368int 3369main () 3370{ 3371#ifndef __GNUC__ 3372 choke me 3373#endif 3374 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379if ac_fn_c_try_compile "$LINENO"; then : 3380 ac_compiler_gnu=yes 3381else 3382 ac_compiler_gnu=no 3383fi 3384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3385ac_cv_c_compiler_gnu=$ac_compiler_gnu 3386 3387fi 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3389$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3390if test $ac_compiler_gnu = yes; then 3391 GCC=yes 3392else 3393 GCC= 3394fi 3395ac_test_CFLAGS=${CFLAGS+set} 3396ac_save_CFLAGS=$CFLAGS 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3398$as_echo_n "checking whether $CC accepts -g... " >&6; } 3399if ${ac_cv_prog_cc_g+:} false; then : 3400 $as_echo_n "(cached) " >&6 3401else 3402 ac_save_c_werror_flag=$ac_c_werror_flag 3403 ac_c_werror_flag=yes 3404 ac_cv_prog_cc_g=no 3405 CFLAGS="-g" 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407/* end confdefs.h. */ 3408 3409int 3410main () 3411{ 3412 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417if ac_fn_c_try_compile "$LINENO"; then : 3418 ac_cv_prog_cc_g=yes 3419else 3420 CFLAGS="" 3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3422/* end confdefs.h. */ 3423 3424int 3425main () 3426{ 3427 3428 ; 3429 return 0; 3430} 3431_ACEOF 3432if ac_fn_c_try_compile "$LINENO"; then : 3433 3434else 3435 ac_c_werror_flag=$ac_save_c_werror_flag 3436 CFLAGS="-g" 3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3438/* end confdefs.h. */ 3439 3440int 3441main () 3442{ 3443 3444 ; 3445 return 0; 3446} 3447_ACEOF 3448if ac_fn_c_try_compile "$LINENO"; then : 3449 ac_cv_prog_cc_g=yes 3450fi 3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3452fi 3453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3454fi 3455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3456 ac_c_werror_flag=$ac_save_c_werror_flag 3457fi 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3459$as_echo "$ac_cv_prog_cc_g" >&6; } 3460if test "$ac_test_CFLAGS" = set; then 3461 CFLAGS=$ac_save_CFLAGS 3462elif test $ac_cv_prog_cc_g = yes; then 3463 if test "$GCC" = yes; then 3464 CFLAGS="-g -O2" 3465 else 3466 CFLAGS="-g" 3467 fi 3468else 3469 if test "$GCC" = yes; then 3470 CFLAGS="-O2" 3471 else 3472 CFLAGS= 3473 fi 3474fi 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3476$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3477if ${ac_cv_prog_cc_c89+:} false; then : 3478 $as_echo_n "(cached) " >&6 3479else 3480 ac_cv_prog_cc_c89=no 3481ac_save_CC=$CC 3482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483/* end confdefs.h. */ 3484#include <stdarg.h> 3485#include <stdio.h> 3486struct stat; 3487/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3488struct buf { int x; }; 3489FILE * (*rcsopen) (struct buf *, struct stat *, int); 3490static char *e (p, i) 3491 char **p; 3492 int i; 3493{ 3494 return p[i]; 3495} 3496static char *f (char * (*g) (char **, int), char **p, ...) 3497{ 3498 char *s; 3499 va_list v; 3500 va_start (v,p); 3501 s = g (p, va_arg (v,int)); 3502 va_end (v); 3503 return s; 3504} 3505 3506/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3507 function prototypes and stuff, but not '\xHH' hex character constants. 3508 These don't provoke an error unfortunately, instead are silently treated 3509 as 'x'. The following induces an error, until -std is added to get 3510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3511 array size at least. It's necessary to write '\x00'==0 to get something 3512 that's true only with -std. */ 3513int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3514 3515/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3516 inside strings and character constants. */ 3517#define FOO(x) 'x' 3518int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3519 3520int test (int i, double x); 3521struct s1 {int (*f) (int a);}; 3522struct s2 {int (*f) (double a);}; 3523int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3524int argc; 3525char **argv; 3526int 3527main () 3528{ 3529return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3530 ; 3531 return 0; 3532} 3533_ACEOF 3534for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3536do 3537 CC="$ac_save_CC $ac_arg" 3538 if ac_fn_c_try_compile "$LINENO"; then : 3539 ac_cv_prog_cc_c89=$ac_arg 3540fi 3541rm -f core conftest.err conftest.$ac_objext 3542 test "x$ac_cv_prog_cc_c89" != "xno" && break 3543done 3544rm -f conftest.$ac_ext 3545CC=$ac_save_CC 3546 3547fi 3548# AC_CACHE_VAL 3549case "x$ac_cv_prog_cc_c89" in 3550 x) 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3552$as_echo "none needed" >&6; } ;; 3553 xno) 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3555$as_echo "unsupported" >&6; } ;; 3556 *) 3557 CC="$CC $ac_cv_prog_cc_c89" 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3559$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3560esac 3561if test "x$ac_cv_prog_cc_c89" != xno; then : 3562 3563fi 3564 3565ac_ext=c 3566ac_cpp='$CPP $CPPFLAGS' 3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3569ac_compiler_gnu=$ac_cv_c_compiler_gnu 3570 3571ac_ext=c 3572ac_cpp='$CPP $CPPFLAGS' 3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3575ac_compiler_gnu=$ac_cv_c_compiler_gnu 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3577$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3578if ${am_cv_prog_cc_c_o+:} false; then : 3579 $as_echo_n "(cached) " >&6 3580else 3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582/* end confdefs.h. */ 3583 3584int 3585main () 3586{ 3587 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592 # Make sure it works both with $CC and with simple cc. 3593 # Following AC_PROG_CC_C_O, we do the test twice because some 3594 # compilers refuse to overwrite an existing .o file with -o, 3595 # though they will create one. 3596 am_cv_prog_cc_c_o=yes 3597 for am_i in 1 2; do 3598 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3599 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3600 ac_status=$? 3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3602 (exit $ac_status); } \ 3603 && test -f conftest2.$ac_objext; then 3604 : OK 3605 else 3606 am_cv_prog_cc_c_o=no 3607 break 3608 fi 3609 done 3610 rm -f core conftest* 3611 unset am_i 3612fi 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3614$as_echo "$am_cv_prog_cc_c_o" >&6; } 3615if test "$am_cv_prog_cc_c_o" != yes; then 3616 # Losing compiler, so override with the script. 3617 # FIXME: It is wrong to rewrite CC. 3618 # But if we don't then we get into trouble of one sort or another. 3619 # A longer-term fix would be to have automake use am__CC in this case, 3620 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3621 CC="$am_aux_dir/compile $CC" 3622fi 3623ac_ext=c 3624ac_cpp='$CPP $CPPFLAGS' 3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3627ac_compiler_gnu=$ac_cv_c_compiler_gnu 3628 3629 3630 3631ac_ext=c 3632ac_cpp='$CPP $CPPFLAGS' 3633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3635ac_compiler_gnu=$ac_cv_c_compiler_gnu 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3637$as_echo_n "checking how to run the C preprocessor... " >&6; } 3638# On Suns, sometimes $CPP names a directory. 3639if test -n "$CPP" && test -d "$CPP"; then 3640 CPP= 3641fi 3642if test -z "$CPP"; then 3643 if ${ac_cv_prog_CPP+:} false; then : 3644 $as_echo_n "(cached) " >&6 3645else 3646 # Double quotes because CPP needs to be expanded 3647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3648 do 3649 ac_preproc_ok=false 3650for ac_c_preproc_warn_flag in '' yes 3651do 3652 # Use a header file that comes with gcc, so configuring glibc 3653 # with a fresh cross-compiler works. 3654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3655 # <limits.h> exists even on freestanding compilers. 3656 # On the NeXT, cc -E runs the code through the compiler's parser, 3657 # not just through cpp. "Syntax error" is here to catch this case. 3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3659/* end confdefs.h. */ 3660#ifdef __STDC__ 3661# include <limits.h> 3662#else 3663# include <assert.h> 3664#endif 3665 Syntax error 3666_ACEOF 3667if ac_fn_c_try_cpp "$LINENO"; then : 3668 3669else 3670 # Broken: fails on valid input. 3671continue 3672fi 3673rm -f conftest.err conftest.i conftest.$ac_ext 3674 3675 # OK, works on sane cases. Now check whether nonexistent headers 3676 # can be detected and how. 3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678/* end confdefs.h. */ 3679#include <ac_nonexistent.h> 3680_ACEOF 3681if ac_fn_c_try_cpp "$LINENO"; then : 3682 # Broken: success on invalid input. 3683continue 3684else 3685 # Passes both tests. 3686ac_preproc_ok=: 3687break 3688fi 3689rm -f conftest.err conftest.i conftest.$ac_ext 3690 3691done 3692# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3693rm -f conftest.i conftest.err conftest.$ac_ext 3694if $ac_preproc_ok; then : 3695 break 3696fi 3697 3698 done 3699 ac_cv_prog_CPP=$CPP 3700 3701fi 3702 CPP=$ac_cv_prog_CPP 3703else 3704 ac_cv_prog_CPP=$CPP 3705fi 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3707$as_echo "$CPP" >&6; } 3708ac_preproc_ok=false 3709for ac_c_preproc_warn_flag in '' yes 3710do 3711 # Use a header file that comes with gcc, so configuring glibc 3712 # with a fresh cross-compiler works. 3713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3714 # <limits.h> exists even on freestanding compilers. 3715 # On the NeXT, cc -E runs the code through the compiler's parser, 3716 # not just through cpp. "Syntax error" is here to catch this case. 3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3718/* end confdefs.h. */ 3719#ifdef __STDC__ 3720# include <limits.h> 3721#else 3722# include <assert.h> 3723#endif 3724 Syntax error 3725_ACEOF 3726if ac_fn_c_try_cpp "$LINENO"; then : 3727 3728else 3729 # Broken: fails on valid input. 3730continue 3731fi 3732rm -f conftest.err conftest.i conftest.$ac_ext 3733 3734 # OK, works on sane cases. Now check whether nonexistent headers 3735 # can be detected and how. 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737/* end confdefs.h. */ 3738#include <ac_nonexistent.h> 3739_ACEOF 3740if ac_fn_c_try_cpp "$LINENO"; then : 3741 # Broken: success on invalid input. 3742continue 3743else 3744 # Passes both tests. 3745ac_preproc_ok=: 3746break 3747fi 3748rm -f conftest.err conftest.i conftest.$ac_ext 3749 3750done 3751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3752rm -f conftest.i conftest.err conftest.$ac_ext 3753if $ac_preproc_ok; then : 3754 3755else 3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3758as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3759See \`config.log' for more details" "$LINENO" 5; } 3760fi 3761 3762ac_ext=c 3763ac_cpp='$CPP $CPPFLAGS' 3764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3766ac_compiler_gnu=$ac_cv_c_compiler_gnu 3767 3768 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3770$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3771if ${ac_cv_path_GREP+:} false; then : 3772 $as_echo_n "(cached) " >&6 3773else 3774 if test -z "$GREP"; then 3775 ac_path_GREP_found=false 3776 # Loop through the user's path and test for each of PROGNAME-LIST 3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3778for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3779do 3780 IFS=$as_save_IFS 3781 test -z "$as_dir" && as_dir=. 3782 for ac_prog in grep ggrep; do 3783 for ac_exec_ext in '' $ac_executable_extensions; do 3784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3785 as_fn_executable_p "$ac_path_GREP" || continue 3786# Check for GNU ac_path_GREP and select it if it is found. 3787 # Check for GNU $ac_path_GREP 3788case `"$ac_path_GREP" --version 2>&1` in 3789*GNU*) 3790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3791*) 3792 ac_count=0 3793 $as_echo_n 0123456789 >"conftest.in" 3794 while : 3795 do 3796 cat "conftest.in" "conftest.in" >"conftest.tmp" 3797 mv "conftest.tmp" "conftest.in" 3798 cp "conftest.in" "conftest.nl" 3799 $as_echo 'GREP' >> "conftest.nl" 3800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3802 as_fn_arith $ac_count + 1 && ac_count=$as_val 3803 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3804 # Best one so far, save it but keep looking for a better one 3805 ac_cv_path_GREP="$ac_path_GREP" 3806 ac_path_GREP_max=$ac_count 3807 fi 3808 # 10*(2^10) chars as input seems more than enough 3809 test $ac_count -gt 10 && break 3810 done 3811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3812esac 3813 3814 $ac_path_GREP_found && break 3 3815 done 3816 done 3817 done 3818IFS=$as_save_IFS 3819 if test -z "$ac_cv_path_GREP"; then 3820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3821 fi 3822else 3823 ac_cv_path_GREP=$GREP 3824fi 3825 3826fi 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3828$as_echo "$ac_cv_path_GREP" >&6; } 3829 GREP="$ac_cv_path_GREP" 3830 3831 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3833$as_echo_n "checking for egrep... " >&6; } 3834if ${ac_cv_path_EGREP+:} false; then : 3835 $as_echo_n "(cached) " >&6 3836else 3837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3838 then ac_cv_path_EGREP="$GREP -E" 3839 else 3840 if test -z "$EGREP"; then 3841 ac_path_EGREP_found=false 3842 # Loop through the user's path and test for each of PROGNAME-LIST 3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3844for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3845do 3846 IFS=$as_save_IFS 3847 test -z "$as_dir" && as_dir=. 3848 for ac_prog in egrep; do 3849 for ac_exec_ext in '' $ac_executable_extensions; do 3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3851 as_fn_executable_p "$ac_path_EGREP" || continue 3852# Check for GNU ac_path_EGREP and select it if it is found. 3853 # Check for GNU $ac_path_EGREP 3854case `"$ac_path_EGREP" --version 2>&1` in 3855*GNU*) 3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3857*) 3858 ac_count=0 3859 $as_echo_n 0123456789 >"conftest.in" 3860 while : 3861 do 3862 cat "conftest.in" "conftest.in" >"conftest.tmp" 3863 mv "conftest.tmp" "conftest.in" 3864 cp "conftest.in" "conftest.nl" 3865 $as_echo 'EGREP' >> "conftest.nl" 3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3868 as_fn_arith $ac_count + 1 && ac_count=$as_val 3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3870 # Best one so far, save it but keep looking for a better one 3871 ac_cv_path_EGREP="$ac_path_EGREP" 3872 ac_path_EGREP_max=$ac_count 3873 fi 3874 # 10*(2^10) chars as input seems more than enough 3875 test $ac_count -gt 10 && break 3876 done 3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3878esac 3879 3880 $ac_path_EGREP_found && break 3 3881 done 3882 done 3883 done 3884IFS=$as_save_IFS 3885 if test -z "$ac_cv_path_EGREP"; then 3886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3887 fi 3888else 3889 ac_cv_path_EGREP=$EGREP 3890fi 3891 3892 fi 3893fi 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3895$as_echo "$ac_cv_path_EGREP" >&6; } 3896 EGREP="$ac_cv_path_EGREP" 3897 3898 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3900$as_echo_n "checking for ANSI C header files... " >&6; } 3901if ${ac_cv_header_stdc+:} false; then : 3902 $as_echo_n "(cached) " >&6 3903else 3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3905/* end confdefs.h. */ 3906#include <stdlib.h> 3907#include <stdarg.h> 3908#include <string.h> 3909#include <float.h> 3910 3911int 3912main () 3913{ 3914 3915 ; 3916 return 0; 3917} 3918_ACEOF 3919if ac_fn_c_try_compile "$LINENO"; then : 3920 ac_cv_header_stdc=yes 3921else 3922 ac_cv_header_stdc=no 3923fi 3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3925 3926if test $ac_cv_header_stdc = yes; then 3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3929/* end confdefs.h. */ 3930#include <string.h> 3931 3932_ACEOF 3933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3934 $EGREP "memchr" >/dev/null 2>&1; then : 3935 3936else 3937 ac_cv_header_stdc=no 3938fi 3939rm -f conftest* 3940 3941fi 3942 3943if test $ac_cv_header_stdc = yes; then 3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3946/* end confdefs.h. */ 3947#include <stdlib.h> 3948 3949_ACEOF 3950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3951 $EGREP "free" >/dev/null 2>&1; then : 3952 3953else 3954 ac_cv_header_stdc=no 3955fi 3956rm -f conftest* 3957 3958fi 3959 3960if test $ac_cv_header_stdc = yes; then 3961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3962 if test "$cross_compiling" = yes; then : 3963 : 3964else 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967#include <ctype.h> 3968#include <stdlib.h> 3969#if ((' ' & 0x0FF) == 0x020) 3970# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3971# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3972#else 3973# define ISLOWER(c) \ 3974 (('a' <= (c) && (c) <= 'i') \ 3975 || ('j' <= (c) && (c) <= 'r') \ 3976 || ('s' <= (c) && (c) <= 'z')) 3977# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3978#endif 3979 3980#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3981int 3982main () 3983{ 3984 int i; 3985 for (i = 0; i < 256; i++) 3986 if (XOR (islower (i), ISLOWER (i)) 3987 || toupper (i) != TOUPPER (i)) 3988 return 2; 3989 return 0; 3990} 3991_ACEOF 3992if ac_fn_c_try_run "$LINENO"; then : 3993 3994else 3995 ac_cv_header_stdc=no 3996fi 3997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3998 conftest.$ac_objext conftest.beam conftest.$ac_ext 3999fi 4000 4001fi 4002fi 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4004$as_echo "$ac_cv_header_stdc" >&6; } 4005if test $ac_cv_header_stdc = yes; then 4006 4007$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4008 4009fi 4010 4011# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4012for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4013 inttypes.h stdint.h unistd.h 4014do : 4015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4016ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4017" 4018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4019 cat >>confdefs.h <<_ACEOF 4020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4021_ACEOF 4022 4023fi 4024 4025done 4026 4027 4028 4029 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4030if test "x$ac_cv_header_minix_config_h" = xyes; then : 4031 MINIX=yes 4032else 4033 MINIX= 4034fi 4035 4036 4037 if test "$MINIX" = yes; then 4038 4039$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4040 4041 4042$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4043 4044 4045$as_echo "#define _MINIX 1" >>confdefs.h 4046 4047 fi 4048 4049 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4051$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4052if ${ac_cv_safe_to_define___extensions__+:} false; then : 4053 $as_echo_n "(cached) " >&6 4054else 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057 4058# define __EXTENSIONS__ 1 4059 $ac_includes_default 4060int 4061main () 4062{ 4063 4064 ; 4065 return 0; 4066} 4067_ACEOF 4068if ac_fn_c_try_compile "$LINENO"; then : 4069 ac_cv_safe_to_define___extensions__=yes 4070else 4071 ac_cv_safe_to_define___extensions__=no 4072fi 4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4074fi 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4076$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4077 test $ac_cv_safe_to_define___extensions__ = yes && 4078 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4079 4080 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4081 4082 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4083 4084 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4085 4086 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4087 4088 4089 4090# Do not delete or change the following two lines. For why, see 4091# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 4092# Make sure we can run config.sub. 4093$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4094 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4095 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4097$as_echo_n "checking build system type... " >&6; } 4098if ${ac_cv_build+:} false; then : 4099 $as_echo_n "(cached) " >&6 4100else 4101 ac_build_alias=$build_alias 4102test "x$ac_build_alias" = x && 4103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4104test "x$ac_build_alias" = x && 4105 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4106ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4107 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4108 4109fi 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4111$as_echo "$ac_cv_build" >&6; } 4112case $ac_cv_build in 4113*-*-*) ;; 4114*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4115esac 4116build=$ac_cv_build 4117ac_save_IFS=$IFS; IFS='-' 4118set x $ac_cv_build 4119shift 4120build_cpu=$1 4121build_vendor=$2 4122shift; shift 4123# Remember, the first character of IFS is used to create $*, 4124# except with old shells: 4125build_os=$* 4126IFS=$ac_save_IFS 4127case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4128 4129 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4131$as_echo_n "checking host system type... " >&6; } 4132if ${ac_cv_host+:} false; then : 4133 $as_echo_n "(cached) " >&6 4134else 4135 if test "x$host_alias" = x; then 4136 ac_cv_host=$ac_cv_build 4137else 4138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4139 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4140fi 4141 4142fi 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4144$as_echo "$ac_cv_host" >&6; } 4145case $ac_cv_host in 4146*-*-*) ;; 4147*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4148esac 4149host=$ac_cv_host 4150ac_save_IFS=$IFS; IFS='-' 4151set x $ac_cv_host 4152shift 4153host_cpu=$1 4154host_vendor=$2 4155shift; shift 4156# Remember, the first character of IFS is used to create $*, 4157# except with old shells: 4158host_os=$* 4159IFS=$ac_save_IFS 4160case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4161 4162 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 4164$as_echo_n "checking target system type... " >&6; } 4165if ${ac_cv_target+:} false; then : 4166 $as_echo_n "(cached) " >&6 4167else 4168 if test "x$target_alias" = x; then 4169 ac_cv_target=$ac_cv_host 4170else 4171 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 4172 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 4173fi 4174 4175fi 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 4177$as_echo "$ac_cv_target" >&6; } 4178case $ac_cv_target in 4179*-*-*) ;; 4180*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 4181esac 4182target=$ac_cv_target 4183ac_save_IFS=$IFS; IFS='-' 4184set x $ac_cv_target 4185shift 4186target_cpu=$1 4187target_vendor=$2 4188shift; shift 4189# Remember, the first character of IFS is used to create $*, 4190# except with old shells: 4191target_os=$* 4192IFS=$ac_save_IFS 4193case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4194 4195 4196# The aliases save the names the user supplied, while $host etc. 4197# will get canonicalized. 4198test -n "$target_alias" && 4199 test "$program_prefix$program_suffix$program_transform_name" = \ 4200 NONENONEs,x,x, && 4201 program_prefix=${target_alias}- 4202 4203target_alias=${target_alias-$host_alias} 4204 4205 case ${build_alias} in 4206 "") build_noncanonical=${build} ;; 4207 *) build_noncanonical=${build_alias} ;; 4208esac 4209 4210 case ${host_alias} in 4211 "") host_noncanonical=${build_noncanonical} ;; 4212 *) host_noncanonical=${host_alias} ;; 4213esac 4214 4215 case ${target_alias} in 4216 "") target_noncanonical=${host_noncanonical} ;; 4217 *) target_noncanonical=${target_alias} ;; 4218esac 4219 4220 4221 4222 4223 4224 LIBSTDCXX_RAW_CXX_CXXFLAGS="\ 4225 -I\$(top_builddir)/../libstdc++-v3/include \ 4226 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \ 4227 -I\$(top_srcdir)/../libstdc++-v3/libsupc++" 4228 LIBSTDCXX_RAW_CXX_LDFLAGS="\ 4229 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la" 4230 4231 4232 4233 4234am__api_version='1.15' 4235 4236# Find a good install program. We prefer a C program (faster), 4237# so one script is as good as another. But avoid the broken or 4238# incompatible versions: 4239# SysV /etc/install, /usr/sbin/install 4240# SunOS /usr/etc/install 4241# IRIX /sbin/install 4242# AIX /bin/install 4243# AmigaOS /C/install, which installs bootblocks on floppy discs 4244# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4245# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4246# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4247# OS/2's system install, which has a completely different semantic 4248# ./install, which can be erroneously created by make from ./install.sh. 4249# Reject install programs that cannot install multiple files. 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4251$as_echo_n "checking for a BSD-compatible install... " >&6; } 4252if test -z "$INSTALL"; then 4253if ${ac_cv_path_install+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4257for as_dir in $PATH 4258do 4259 IFS=$as_save_IFS 4260 test -z "$as_dir" && as_dir=. 4261 # Account for people who put trailing slashes in PATH elements. 4262case $as_dir/ in #(( 4263 ./ | .// | /[cC]/* | \ 4264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4265 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4266 /usr/ucb/* ) ;; 4267 *) 4268 # OSF1 and SCO ODT 3.0 have their own names for install. 4269 # Don't use installbsd from OSF since it installs stuff as root 4270 # by default. 4271 for ac_prog in ginstall scoinst install; do 4272 for ac_exec_ext in '' $ac_executable_extensions; do 4273 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4274 if test $ac_prog = install && 4275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4276 # AIX install. It has an incompatible calling convention. 4277 : 4278 elif test $ac_prog = install && 4279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4280 # program-specific install script used by HP pwplus--don't use. 4281 : 4282 else 4283 rm -rf conftest.one conftest.two conftest.dir 4284 echo one > conftest.one 4285 echo two > conftest.two 4286 mkdir conftest.dir 4287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4288 test -s conftest.one && test -s conftest.two && 4289 test -s conftest.dir/conftest.one && 4290 test -s conftest.dir/conftest.two 4291 then 4292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4293 break 3 4294 fi 4295 fi 4296 fi 4297 done 4298 done 4299 ;; 4300esac 4301 4302 done 4303IFS=$as_save_IFS 4304 4305rm -rf conftest.one conftest.two conftest.dir 4306 4307fi 4308 if test "${ac_cv_path_install+set}" = set; then 4309 INSTALL=$ac_cv_path_install 4310 else 4311 # As a last resort, use the slow shell script. Don't cache a 4312 # value for INSTALL within a source directory, because that will 4313 # break other packages using the cache if that directory is 4314 # removed, or if the value is a relative name. 4315 INSTALL=$ac_install_sh 4316 fi 4317fi 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4319$as_echo "$INSTALL" >&6; } 4320 4321# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4322# It thinks the first close brace ends the variable substitution. 4323test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4324 4325test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4326 4327test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4328 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4330$as_echo_n "checking whether build environment is sane... " >&6; } 4331# Reject unsafe characters in $srcdir or the absolute working directory 4332# name. Accept space and tab only in the latter. 4333am_lf=' 4334' 4335case `pwd` in 4336 *[\\\"\#\$\&\'\`$am_lf]*) 4337 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4338esac 4339case $srcdir in 4340 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4341 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4342esac 4343 4344# Do 'set' in a subshell so we don't clobber the current shell's 4345# arguments. Must try -L first in case configure is actually a 4346# symlink; some systems play weird games with the mod time of symlinks 4347# (eg FreeBSD returns the mod time of the symlink's containing 4348# directory). 4349if ( 4350 am_has_slept=no 4351 for am_try in 1 2; do 4352 echo "timestamp, slept: $am_has_slept" > conftest.file 4353 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4354 if test "$*" = "X"; then 4355 # -L didn't work. 4356 set X `ls -t "$srcdir/configure" conftest.file` 4357 fi 4358 if test "$*" != "X $srcdir/configure conftest.file" \ 4359 && test "$*" != "X conftest.file $srcdir/configure"; then 4360 4361 # If neither matched, then we have a broken ls. This can happen 4362 # if, for instance, CONFIG_SHELL is bash and it inherits a 4363 # broken ls alias from the environment. This has actually 4364 # happened. Such a system could not be considered "sane". 4365 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4366 alias in your environment" "$LINENO" 5 4367 fi 4368 if test "$2" = conftest.file || test $am_try -eq 2; then 4369 break 4370 fi 4371 # Just in case. 4372 sleep 1 4373 am_has_slept=yes 4374 done 4375 test "$2" = conftest.file 4376 ) 4377then 4378 # Ok. 4379 : 4380else 4381 as_fn_error $? "newly created file is older than distributed files! 4382Check your system clock" "$LINENO" 5 4383fi 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4385$as_echo "yes" >&6; } 4386# If we didn't sleep, we still need to ensure time stamps of config.status and 4387# generated files are strictly newer. 4388am_sleep_pid= 4389if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4390 ( sleep 1 ) & 4391 am_sleep_pid=$! 4392fi 4393 4394rm -f conftest.file 4395 4396test "$program_prefix" != NONE && 4397 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4398# Use a double $ so make ignores it. 4399test "$program_suffix" != NONE && 4400 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4401# Double any \ or $. 4402# By default was `s,x,x', remove it if useless. 4403ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4404program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4405 4406if test x"${MISSING+set}" != xset; then 4407 case $am_aux_dir in 4408 *\ * | *\ *) 4409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4410 *) 4411 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4412 esac 4413fi 4414# Use eval to expand $SHELL 4415if eval "$MISSING --is-lightweight"; then 4416 am_missing_run="$MISSING " 4417else 4418 am_missing_run= 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4420$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4421fi 4422 4423if test x"${install_sh+set}" != xset; then 4424 case $am_aux_dir in 4425 *\ * | *\ *) 4426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4427 *) 4428 install_sh="\${SHELL} $am_aux_dir/install-sh" 4429 esac 4430fi 4431 4432# Installed binaries are usually stripped using 'strip' when the user 4433# run "make install-strip". However 'strip' might not be the right 4434# tool to use in cross-compilation environments, therefore Automake 4435# will honor the 'STRIP' environment variable to overrule this program. 4436if test "$cross_compiling" != no; then 4437 if test -n "$ac_tool_prefix"; then 4438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4439set dummy ${ac_tool_prefix}strip; ac_word=$2 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4441$as_echo_n "checking for $ac_word... " >&6; } 4442if ${ac_cv_prog_STRIP+:} false; then : 4443 $as_echo_n "(cached) " >&6 4444else 4445 if test -n "$STRIP"; then 4446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4447else 4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4449for as_dir in $PATH 4450do 4451 IFS=$as_save_IFS 4452 test -z "$as_dir" && as_dir=. 4453 for ac_exec_ext in '' $ac_executable_extensions; do 4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4455 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4457 break 2 4458 fi 4459done 4460 done 4461IFS=$as_save_IFS 4462 4463fi 4464fi 4465STRIP=$ac_cv_prog_STRIP 4466if test -n "$STRIP"; then 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4468$as_echo "$STRIP" >&6; } 4469else 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4471$as_echo "no" >&6; } 4472fi 4473 4474 4475fi 4476if test -z "$ac_cv_prog_STRIP"; then 4477 ac_ct_STRIP=$STRIP 4478 # Extract the first word of "strip", so it can be a program name with args. 4479set dummy strip; ac_word=$2 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4481$as_echo_n "checking for $ac_word... " >&6; } 4482if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4483 $as_echo_n "(cached) " >&6 4484else 4485 if test -n "$ac_ct_STRIP"; then 4486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4487else 4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4489for as_dir in $PATH 4490do 4491 IFS=$as_save_IFS 4492 test -z "$as_dir" && as_dir=. 4493 for ac_exec_ext in '' $ac_executable_extensions; do 4494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4495 ac_cv_prog_ac_ct_STRIP="strip" 4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4497 break 2 4498 fi 4499done 4500 done 4501IFS=$as_save_IFS 4502 4503fi 4504fi 4505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4506if test -n "$ac_ct_STRIP"; then 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4508$as_echo "$ac_ct_STRIP" >&6; } 4509else 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4511$as_echo "no" >&6; } 4512fi 4513 4514 if test "x$ac_ct_STRIP" = x; then 4515 STRIP=":" 4516 else 4517 case $cross_compiling:$ac_tool_warned in 4518yes:) 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4521ac_tool_warned=yes ;; 4522esac 4523 STRIP=$ac_ct_STRIP 4524 fi 4525else 4526 STRIP="$ac_cv_prog_STRIP" 4527fi 4528 4529fi 4530INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4531 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4533$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4534if test -z "$MKDIR_P"; then 4535 if ${ac_cv_path_mkdir+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4539for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4540do 4541 IFS=$as_save_IFS 4542 test -z "$as_dir" && as_dir=. 4543 for ac_prog in mkdir gmkdir; do 4544 for ac_exec_ext in '' $ac_executable_extensions; do 4545 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4547 'mkdir (GNU coreutils) '* | \ 4548 'mkdir (coreutils) '* | \ 4549 'mkdir (fileutils) '4.1*) 4550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4551 break 3;; 4552 esac 4553 done 4554 done 4555 done 4556IFS=$as_save_IFS 4557 4558fi 4559 4560 test -d ./--version && rmdir ./--version 4561 if test "${ac_cv_path_mkdir+set}" = set; then 4562 MKDIR_P="$ac_cv_path_mkdir -p" 4563 else 4564 # As a last resort, use the slow shell script. Don't cache a 4565 # value for MKDIR_P within a source directory, because that will 4566 # break other packages using the cache if that directory is 4567 # removed, or if the value is a relative name. 4568 MKDIR_P="$ac_install_sh -d" 4569 fi 4570fi 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4572$as_echo "$MKDIR_P" >&6; } 4573 4574for ac_prog in gawk mawk nawk awk 4575do 4576 # Extract the first word of "$ac_prog", so it can be a program name with args. 4577set dummy $ac_prog; ac_word=$2 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4579$as_echo_n "checking for $ac_word... " >&6; } 4580if ${ac_cv_prog_AWK+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582else 4583 if test -n "$AWK"; then 4584 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4585else 4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH 4588do 4589 IFS=$as_save_IFS 4590 test -z "$as_dir" && as_dir=. 4591 for ac_exec_ext in '' $ac_executable_extensions; do 4592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4593 ac_cv_prog_AWK="$ac_prog" 4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4595 break 2 4596 fi 4597done 4598 done 4599IFS=$as_save_IFS 4600 4601fi 4602fi 4603AWK=$ac_cv_prog_AWK 4604if test -n "$AWK"; then 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4606$as_echo "$AWK" >&6; } 4607else 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609$as_echo "no" >&6; } 4610fi 4611 4612 4613 test -n "$AWK" && break 4614done 4615 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4617$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4618set x ${MAKE-make} 4619ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4620if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 cat >conftest.make <<\_ACEOF 4624SHELL = /bin/sh 4625all: 4626 @echo '@@@%%%=$(MAKE)=@@@%%%' 4627_ACEOF 4628# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4629case `${MAKE-make} -f conftest.make 2>/dev/null` in 4630 *@@@%%%=?*=@@@%%%*) 4631 eval ac_cv_prog_make_${ac_make}_set=yes;; 4632 *) 4633 eval ac_cv_prog_make_${ac_make}_set=no;; 4634esac 4635rm -f conftest.make 4636fi 4637if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4639$as_echo "yes" >&6; } 4640 SET_MAKE= 4641else 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4643$as_echo "no" >&6; } 4644 SET_MAKE="MAKE=${MAKE-make}" 4645fi 4646 4647rm -rf .tst 2>/dev/null 4648mkdir .tst 2>/dev/null 4649if test -d .tst; then 4650 am__leading_dot=. 4651else 4652 am__leading_dot=_ 4653fi 4654rmdir .tst 2>/dev/null 4655 4656DEPDIR="${am__leading_dot}deps" 4657 4658ac_config_commands="$ac_config_commands depfiles" 4659 4660 4661am_make=${MAKE-make} 4662cat > confinc << 'END' 4663am__doit: 4664 @echo this is the am__doit target 4665.PHONY: am__doit 4666END 4667# If we don't find an include directive, just comment out the code. 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4669$as_echo_n "checking for style of include used by $am_make... " >&6; } 4670am__include="#" 4671am__quote= 4672_am_result=none 4673# First try GNU make style include. 4674echo "include confinc" > confmf 4675# Ignore all kinds of additional output from 'make'. 4676case `$am_make -s -f confmf 2> /dev/null` in #( 4677*the\ am__doit\ target*) 4678 am__include=include 4679 am__quote= 4680 _am_result=GNU 4681 ;; 4682esac 4683# Now try BSD make style include. 4684if test "$am__include" = "#"; then 4685 echo '.include "confinc"' > confmf 4686 case `$am_make -s -f confmf 2> /dev/null` in #( 4687 *the\ am__doit\ target*) 4688 am__include=.include 4689 am__quote="\"" 4690 _am_result=BSD 4691 ;; 4692 esac 4693fi 4694 4695 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4697$as_echo "$_am_result" >&6; } 4698rm -f confinc confmf 4699 4700# Check whether --enable-dependency-tracking was given. 4701if test "${enable_dependency_tracking+set}" = set; then : 4702 enableval=$enable_dependency_tracking; 4703fi 4704 4705if test "x$enable_dependency_tracking" != xno; then 4706 am_depcomp="$ac_aux_dir/depcomp" 4707 AMDEPBACKSLASH='\' 4708 am__nodep='_no' 4709fi 4710 if test "x$enable_dependency_tracking" != xno; then 4711 AMDEP_TRUE= 4712 AMDEP_FALSE='#' 4713else 4714 AMDEP_TRUE='#' 4715 AMDEP_FALSE= 4716fi 4717 4718 4719# Check whether --enable-silent-rules was given. 4720if test "${enable_silent_rules+set}" = set; then : 4721 enableval=$enable_silent_rules; 4722fi 4723 4724case $enable_silent_rules in # ((( 4725 yes) AM_DEFAULT_VERBOSITY=0;; 4726 no) AM_DEFAULT_VERBOSITY=1;; 4727 *) AM_DEFAULT_VERBOSITY=1;; 4728esac 4729am_make=${MAKE-make} 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4731$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4732if ${am_cv_make_support_nested_variables+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 if $as_echo 'TRUE=$(BAR$(V)) 4736BAR0=false 4737BAR1=true 4738V=1 4739am__doit: 4740 @$(TRUE) 4741.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4742 am_cv_make_support_nested_variables=yes 4743else 4744 am_cv_make_support_nested_variables=no 4745fi 4746fi 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4748$as_echo "$am_cv_make_support_nested_variables" >&6; } 4749if test $am_cv_make_support_nested_variables = yes; then 4750 AM_V='$(V)' 4751 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4752else 4753 AM_V=$AM_DEFAULT_VERBOSITY 4754 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4755fi 4756AM_BACKSLASH='\' 4757 4758if test "`cd $srcdir && pwd`" != "`pwd`"; then 4759 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4760 # is not polluted with repeated "-I." 4761 am__isrc=' -I$(srcdir)' 4762 # test to see if srcdir already configured 4763 if test -f $srcdir/config.status; then 4764 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4765 fi 4766fi 4767 4768# test whether we have cygpath 4769if test -z "$CYGPATH_W"; then 4770 if (cygpath --version) >/dev/null 2>/dev/null; then 4771 CYGPATH_W='cygpath -w' 4772 else 4773 CYGPATH_W=echo 4774 fi 4775fi 4776 4777 4778# Define the identity of the package. 4779 PACKAGE='package-unused' 4780 VERSION='version-unused' 4781 4782 4783cat >>confdefs.h <<_ACEOF 4784#define PACKAGE "$PACKAGE" 4785_ACEOF 4786 4787 4788cat >>confdefs.h <<_ACEOF 4789#define VERSION "$VERSION" 4790_ACEOF 4791 4792# Some tools Automake needs. 4793 4794ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4795 4796 4797AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4798 4799 4800AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4801 4802 4803AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4804 4805 4806MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4807 4808# For better backward compatibility. To be removed once Automake 1.9.x 4809# dies out for good. For more background, see: 4810# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4811# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4812mkdir_p='$(MKDIR_P)' 4813 4814# We need awk for the "check" target (and possibly the TAP driver). The 4815# system "awk" is bad on some platforms. 4816# Always define AMTAR for backward compatibility. Yes, it's still used 4817# in the wild :-( We should find a proper way to deprecate it ... 4818AMTAR='$${TAR-tar}' 4819 4820 4821# We'll loop over all known methods to create a tar archive until one works. 4822_am_tools='gnutar pax cpio none' 4823 4824am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4825 4826 4827 4828 4829 4830depcc="$CC" am_compiler_list= 4831 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4833$as_echo_n "checking dependency style of $depcc... " >&6; } 4834if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4835 $as_echo_n "(cached) " >&6 4836else 4837 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4838 # We make a subdir and do the tests there. Otherwise we can end up 4839 # making bogus files that we don't know about and never remove. For 4840 # instance it was reported that on HP-UX the gcc test will end up 4841 # making a dummy file named 'D' -- because '-MD' means "put the output 4842 # in D". 4843 rm -rf conftest.dir 4844 mkdir conftest.dir 4845 # Copy depcomp to subdir because otherwise we won't find it if we're 4846 # using a relative directory. 4847 cp "$am_depcomp" conftest.dir 4848 cd conftest.dir 4849 # We will build objects and dependencies in a subdirectory because 4850 # it helps to detect inapplicable dependency modes. For instance 4851 # both Tru64's cc and ICC support -MD to output dependencies as a 4852 # side effect of compilation, but ICC will put the dependencies in 4853 # the current directory while Tru64 will put them in the object 4854 # directory. 4855 mkdir sub 4856 4857 am_cv_CC_dependencies_compiler_type=none 4858 if test "$am_compiler_list" = ""; then 4859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4860 fi 4861 am__universal=false 4862 case " $depcc " in #( 4863 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4864 esac 4865 4866 for depmode in $am_compiler_list; do 4867 # Setup a source with many dependencies, because some compilers 4868 # like to wrap large dependency lists on column 80 (with \), and 4869 # we should not choose a depcomp mode which is confused by this. 4870 # 4871 # We need to recreate these files for each test, as the compiler may 4872 # overwrite some of them when testing with obscure command lines. 4873 # This happens at least with the AIX C compiler. 4874 : > sub/conftest.c 4875 for i in 1 2 3 4 5 6; do 4876 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4877 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4878 # Solaris 10 /bin/sh. 4879 echo '/* dummy */' > sub/conftst$i.h 4880 done 4881 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4882 4883 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4884 # mode. It turns out that the SunPro C++ compiler does not properly 4885 # handle '-M -o', and we need to detect this. Also, some Intel 4886 # versions had trouble with output in subdirs. 4887 am__obj=sub/conftest.${OBJEXT-o} 4888 am__minus_obj="-o $am__obj" 4889 case $depmode in 4890 gcc) 4891 # This depmode causes a compiler race in universal mode. 4892 test "$am__universal" = false || continue 4893 ;; 4894 nosideeffect) 4895 # After this tag, mechanisms are not by side-effect, so they'll 4896 # only be used when explicitly requested. 4897 if test "x$enable_dependency_tracking" = xyes; then 4898 continue 4899 else 4900 break 4901 fi 4902 ;; 4903 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4904 # This compiler won't grok '-c -o', but also, the minuso test has 4905 # not run yet. These depmodes are late enough in the game, and 4906 # so weak that their functioning should not be impacted. 4907 am__obj=conftest.${OBJEXT-o} 4908 am__minus_obj= 4909 ;; 4910 none) break ;; 4911 esac 4912 if depmode=$depmode \ 4913 source=sub/conftest.c object=$am__obj \ 4914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4915 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4916 >/dev/null 2>conftest.err && 4917 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4918 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4919 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4920 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4921 # icc doesn't choke on unknown options, it will just issue warnings 4922 # or remarks (even with -Werror). So we grep stderr for any message 4923 # that says an option was ignored or not supported. 4924 # When given -MP, icc 7.0 and 7.1 complain thusly: 4925 # icc: Command line warning: ignoring option '-M'; no argument required 4926 # The diagnosis changed in icc 8.0: 4927 # icc: Command line remark: option '-MP' not supported 4928 if (grep 'ignoring option' conftest.err || 4929 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4930 am_cv_CC_dependencies_compiler_type=$depmode 4931 break 4932 fi 4933 fi 4934 done 4935 4936 cd .. 4937 rm -rf conftest.dir 4938else 4939 am_cv_CC_dependencies_compiler_type=none 4940fi 4941 4942fi 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4944$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4945CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4946 4947 if 4948 test "x$enable_dependency_tracking" != xno \ 4949 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4950 am__fastdepCC_TRUE= 4951 am__fastdepCC_FALSE='#' 4952else 4953 am__fastdepCC_TRUE='#' 4954 am__fastdepCC_FALSE= 4955fi 4956 4957 4958 4959# POSIX will say in a future version that running "rm -f" with no argument 4960# is OK; and we want to be able to make that assumption in our Makefile 4961# recipes. So use an aggressive probe to check that the usage we want is 4962# actually supported "in the wild" to an acceptable degree. 4963# See automake bug#10828. 4964# To make any issue more visible, cause the running configure to be aborted 4965# by default if the 'rm' program in use doesn't match our expectations; the 4966# user can still override this though. 4967if rm -f && rm -fr && rm -rf; then : OK; else 4968 cat >&2 <<'END' 4969Oops! 4970 4971Your 'rm' program seems unable to run without file operands specified 4972on the command line, even when the '-f' option is present. This is contrary 4973to the behaviour of most rm programs out there, and not conforming with 4974the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4975 4976Please tell bug-automake@gnu.org about your system, including the value 4977of your $PATH and any error possibly output before this message. This 4978can help us improve future automake versions. 4979 4980END 4981 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4982 echo 'Configuration will proceed anyway, since you have set the' >&2 4983 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4984 echo >&2 4985 else 4986 cat >&2 <<'END' 4987Aborting the configuration process, to ensure you take notice of the issue. 4988 4989You can download and install GNU coreutils to get an 'rm' implementation 4990that behaves properly: <http://www.gnu.org/software/coreutils/>. 4991 4992If you want to complete the configuration process using your problematic 4993'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4994to "yes", and re-run configure. 4995 4996END 4997 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4998 fi 4999fi 5000 5001 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 5003$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 5004 # Check whether --enable-maintainer-mode was given. 5005if test "${enable_maintainer_mode+set}" = set; then : 5006 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5007else 5008 USE_MAINTAINER_MODE=no 5009fi 5010 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 5012$as_echo "$USE_MAINTAINER_MODE" >&6; } 5013 if test $USE_MAINTAINER_MODE = yes; then 5014 MAINTAINER_MODE_TRUE= 5015 MAINTAINER_MODE_FALSE='#' 5016else 5017 MAINTAINER_MODE_TRUE='#' 5018 MAINTAINER_MODE_FALSE= 5019fi 5020 5021 MAINT=$MAINTAINER_MODE_TRUE 5022 5023 5024 5025 5026# Check whether --with-toolexeclibdir was given. 5027if test "${with_toolexeclibdir+set}" = set; then : 5028 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in 5029 /) 5030 ;; 5031 */) 5032 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` 5033 ;; 5034esac 5035else 5036 with_toolexeclibdir=no 5037fi 5038 5039 5040 5041# Calculate toolexeclibdir 5042# Also toolexecdir, though it's only used in toolexeclibdir 5043case ${version_specific_libs} in 5044 yes) 5045 # Need the gcc compiler version to know where to install libraries 5046 # and header files if --enable-version-specific-runtime-libs option 5047 # is selected. 5048 toolexecdir='$(libdir)/gcc/$(target_alias)' 5049 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 5050 ;; 5051 no) 5052 if test -n "$with_cross_host" && 5053 test x"$with_cross_host" != x"no"; then 5054 # Install a library built with a cross compiler in tooldir, not libdir. 5055 toolexecdir='$(exec_prefix)/$(target_alias)' 5056 case ${with_toolexeclibdir} in 5057 no) 5058 toolexeclibdir='$(toolexecdir)/lib' 5059 ;; 5060 *) 5061 toolexeclibdir=${with_toolexeclibdir} 5062 ;; 5063 esac 5064 else 5065 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 5066 toolexeclibdir='$(libdir)' 5067 fi 5068 multi_os_directory=`$CC -print-multi-os-directory` 5069 case $multi_os_directory in 5070 .) ;; # Avoid trailing /. 5071 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 5072 esac 5073 ;; 5074esac 5075 5076 5077 5078# Checks for programs. 5079ac_ext=c 5080ac_cpp='$CPP $CPPFLAGS' 5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5083ac_compiler_gnu=$ac_cv_c_compiler_gnu 5084if test -n "$ac_tool_prefix"; then 5085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5086set dummy ${ac_tool_prefix}gcc; ac_word=$2 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5088$as_echo_n "checking for $ac_word... " >&6; } 5089if ${ac_cv_prog_CC+:} false; then : 5090 $as_echo_n "(cached) " >&6 5091else 5092 if test -n "$CC"; then 5093 ac_cv_prog_CC="$CC" # Let the user override the test. 5094else 5095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5096for as_dir in $PATH 5097do 5098 IFS=$as_save_IFS 5099 test -z "$as_dir" && as_dir=. 5100 for ac_exec_ext in '' $ac_executable_extensions; do 5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5102 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5104 break 2 5105 fi 5106done 5107 done 5108IFS=$as_save_IFS 5109 5110fi 5111fi 5112CC=$ac_cv_prog_CC 5113if test -n "$CC"; then 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5115$as_echo "$CC" >&6; } 5116else 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5118$as_echo "no" >&6; } 5119fi 5120 5121 5122fi 5123if test -z "$ac_cv_prog_CC"; then 5124 ac_ct_CC=$CC 5125 # Extract the first word of "gcc", so it can be a program name with args. 5126set dummy gcc; ac_word=$2 5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5128$as_echo_n "checking for $ac_word... " >&6; } 5129if ${ac_cv_prog_ac_ct_CC+:} false; then : 5130 $as_echo_n "(cached) " >&6 5131else 5132 if test -n "$ac_ct_CC"; then 5133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5134else 5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5136for as_dir in $PATH 5137do 5138 IFS=$as_save_IFS 5139 test -z "$as_dir" && as_dir=. 5140 for ac_exec_ext in '' $ac_executable_extensions; do 5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5142 ac_cv_prog_ac_ct_CC="gcc" 5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5144 break 2 5145 fi 5146done 5147 done 5148IFS=$as_save_IFS 5149 5150fi 5151fi 5152ac_ct_CC=$ac_cv_prog_ac_ct_CC 5153if test -n "$ac_ct_CC"; then 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5155$as_echo "$ac_ct_CC" >&6; } 5156else 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5158$as_echo "no" >&6; } 5159fi 5160 5161 if test "x$ac_ct_CC" = x; then 5162 CC="" 5163 else 5164 case $cross_compiling:$ac_tool_warned in 5165yes:) 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5168ac_tool_warned=yes ;; 5169esac 5170 CC=$ac_ct_CC 5171 fi 5172else 5173 CC="$ac_cv_prog_CC" 5174fi 5175 5176if test -z "$CC"; then 5177 if test -n "$ac_tool_prefix"; then 5178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5179set dummy ${ac_tool_prefix}cc; ac_word=$2 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5181$as_echo_n "checking for $ac_word... " >&6; } 5182if ${ac_cv_prog_CC+:} false; then : 5183 $as_echo_n "(cached) " >&6 5184else 5185 if test -n "$CC"; then 5186 ac_cv_prog_CC="$CC" # Let the user override the test. 5187else 5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5189for as_dir in $PATH 5190do 5191 IFS=$as_save_IFS 5192 test -z "$as_dir" && as_dir=. 5193 for ac_exec_ext in '' $ac_executable_extensions; do 5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5195 ac_cv_prog_CC="${ac_tool_prefix}cc" 5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5197 break 2 5198 fi 5199done 5200 done 5201IFS=$as_save_IFS 5202 5203fi 5204fi 5205CC=$ac_cv_prog_CC 5206if test -n "$CC"; then 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5208$as_echo "$CC" >&6; } 5209else 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5211$as_echo "no" >&6; } 5212fi 5213 5214 5215 fi 5216fi 5217if test -z "$CC"; then 5218 # Extract the first word of "cc", so it can be a program name with args. 5219set dummy cc; ac_word=$2 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5221$as_echo_n "checking for $ac_word... " >&6; } 5222if ${ac_cv_prog_CC+:} false; then : 5223 $as_echo_n "(cached) " >&6 5224else 5225 if test -n "$CC"; then 5226 ac_cv_prog_CC="$CC" # Let the user override the test. 5227else 5228 ac_prog_rejected=no 5229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5230for as_dir in $PATH 5231do 5232 IFS=$as_save_IFS 5233 test -z "$as_dir" && as_dir=. 5234 for ac_exec_ext in '' $ac_executable_extensions; do 5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5237 ac_prog_rejected=yes 5238 continue 5239 fi 5240 ac_cv_prog_CC="cc" 5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5242 break 2 5243 fi 5244done 5245 done 5246IFS=$as_save_IFS 5247 5248if test $ac_prog_rejected = yes; then 5249 # We found a bogon in the path, so make sure we never use it. 5250 set dummy $ac_cv_prog_CC 5251 shift 5252 if test $# != 0; then 5253 # We chose a different compiler from the bogus one. 5254 # However, it has the same basename, so the bogon will be chosen 5255 # first if we set CC to just the basename; use the full file name. 5256 shift 5257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5258 fi 5259fi 5260fi 5261fi 5262CC=$ac_cv_prog_CC 5263if test -n "$CC"; then 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5265$as_echo "$CC" >&6; } 5266else 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5268$as_echo "no" >&6; } 5269fi 5270 5271 5272fi 5273if test -z "$CC"; then 5274 if test -n "$ac_tool_prefix"; then 5275 for ac_prog in cl.exe 5276 do 5277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5278set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5280$as_echo_n "checking for $ac_word... " >&6; } 5281if ${ac_cv_prog_CC+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283else 5284 if test -n "$CC"; then 5285 ac_cv_prog_CC="$CC" # Let the user override the test. 5286else 5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5288for as_dir in $PATH 5289do 5290 IFS=$as_save_IFS 5291 test -z "$as_dir" && as_dir=. 5292 for ac_exec_ext in '' $ac_executable_extensions; do 5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5296 break 2 5297 fi 5298done 5299 done 5300IFS=$as_save_IFS 5301 5302fi 5303fi 5304CC=$ac_cv_prog_CC 5305if test -n "$CC"; then 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5307$as_echo "$CC" >&6; } 5308else 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5310$as_echo "no" >&6; } 5311fi 5312 5313 5314 test -n "$CC" && break 5315 done 5316fi 5317if test -z "$CC"; then 5318 ac_ct_CC=$CC 5319 for ac_prog in cl.exe 5320do 5321 # Extract the first word of "$ac_prog", so it can be a program name with args. 5322set dummy $ac_prog; ac_word=$2 5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5324$as_echo_n "checking for $ac_word... " >&6; } 5325if ${ac_cv_prog_ac_ct_CC+:} false; then : 5326 $as_echo_n "(cached) " >&6 5327else 5328 if test -n "$ac_ct_CC"; then 5329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5330else 5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5332for as_dir in $PATH 5333do 5334 IFS=$as_save_IFS 5335 test -z "$as_dir" && as_dir=. 5336 for ac_exec_ext in '' $ac_executable_extensions; do 5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5338 ac_cv_prog_ac_ct_CC="$ac_prog" 5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5340 break 2 5341 fi 5342done 5343 done 5344IFS=$as_save_IFS 5345 5346fi 5347fi 5348ac_ct_CC=$ac_cv_prog_ac_ct_CC 5349if test -n "$ac_ct_CC"; then 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5351$as_echo "$ac_ct_CC" >&6; } 5352else 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5354$as_echo "no" >&6; } 5355fi 5356 5357 5358 test -n "$ac_ct_CC" && break 5359done 5360 5361 if test "x$ac_ct_CC" = x; then 5362 CC="" 5363 else 5364 case $cross_compiling:$ac_tool_warned in 5365yes:) 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5368ac_tool_warned=yes ;; 5369esac 5370 CC=$ac_ct_CC 5371 fi 5372fi 5373 5374fi 5375 5376 5377test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5379as_fn_error $? "no acceptable C compiler found in \$PATH 5380See \`config.log' for more details" "$LINENO" 5; } 5381 5382# Provide some information about the compiler. 5383$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5384set X $ac_compile 5385ac_compiler=$2 5386for ac_option in --version -v -V -qversion; do 5387 { { ac_try="$ac_compiler $ac_option >&5" 5388case "(($ac_try" in 5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5390 *) ac_try_echo=$ac_try;; 5391esac 5392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5393$as_echo "$ac_try_echo"; } >&5 5394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5395 ac_status=$? 5396 if test -s conftest.err; then 5397 sed '10a\ 5398... rest of stderr output deleted ... 5399 10q' conftest.err >conftest.er1 5400 cat conftest.er1 >&5 5401 fi 5402 rm -f conftest.er1 conftest.err 5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5404 test $ac_status = 0; } 5405done 5406 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5408$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5409if ${ac_cv_c_compiler_gnu+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5413/* end confdefs.h. */ 5414 5415int 5416main () 5417{ 5418#ifndef __GNUC__ 5419 choke me 5420#endif 5421 5422 ; 5423 return 0; 5424} 5425_ACEOF 5426if ac_fn_c_try_compile "$LINENO"; then : 5427 ac_compiler_gnu=yes 5428else 5429 ac_compiler_gnu=no 5430fi 5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5432ac_cv_c_compiler_gnu=$ac_compiler_gnu 5433 5434fi 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5436$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5437if test $ac_compiler_gnu = yes; then 5438 GCC=yes 5439else 5440 GCC= 5441fi 5442ac_test_CFLAGS=${CFLAGS+set} 5443ac_save_CFLAGS=$CFLAGS 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5445$as_echo_n "checking whether $CC accepts -g... " >&6; } 5446if ${ac_cv_prog_cc_g+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448else 5449 ac_save_c_werror_flag=$ac_c_werror_flag 5450 ac_c_werror_flag=yes 5451 ac_cv_prog_cc_g=no 5452 CFLAGS="-g" 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455 5456int 5457main () 5458{ 5459 5460 ; 5461 return 0; 5462} 5463_ACEOF 5464if ac_fn_c_try_compile "$LINENO"; then : 5465 ac_cv_prog_cc_g=yes 5466else 5467 CFLAGS="" 5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5469/* end confdefs.h. */ 5470 5471int 5472main () 5473{ 5474 5475 ; 5476 return 0; 5477} 5478_ACEOF 5479if ac_fn_c_try_compile "$LINENO"; then : 5480 5481else 5482 ac_c_werror_flag=$ac_save_c_werror_flag 5483 CFLAGS="-g" 5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486 5487int 5488main () 5489{ 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495if ac_fn_c_try_compile "$LINENO"; then : 5496 ac_cv_prog_cc_g=yes 5497fi 5498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5499fi 5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5501fi 5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5503 ac_c_werror_flag=$ac_save_c_werror_flag 5504fi 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5506$as_echo "$ac_cv_prog_cc_g" >&6; } 5507if test "$ac_test_CFLAGS" = set; then 5508 CFLAGS=$ac_save_CFLAGS 5509elif test $ac_cv_prog_cc_g = yes; then 5510 if test "$GCC" = yes; then 5511 CFLAGS="-g -O2" 5512 else 5513 CFLAGS="-g" 5514 fi 5515else 5516 if test "$GCC" = yes; then 5517 CFLAGS="-O2" 5518 else 5519 CFLAGS= 5520 fi 5521fi 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5523$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5524if ${ac_cv_prog_cc_c89+:} false; then : 5525 $as_echo_n "(cached) " >&6 5526else 5527 ac_cv_prog_cc_c89=no 5528ac_save_CC=$CC 5529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530/* end confdefs.h. */ 5531#include <stdarg.h> 5532#include <stdio.h> 5533struct stat; 5534/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5535struct buf { int x; }; 5536FILE * (*rcsopen) (struct buf *, struct stat *, int); 5537static char *e (p, i) 5538 char **p; 5539 int i; 5540{ 5541 return p[i]; 5542} 5543static char *f (char * (*g) (char **, int), char **p, ...) 5544{ 5545 char *s; 5546 va_list v; 5547 va_start (v,p); 5548 s = g (p, va_arg (v,int)); 5549 va_end (v); 5550 return s; 5551} 5552 5553/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5554 function prototypes and stuff, but not '\xHH' hex character constants. 5555 These don't provoke an error unfortunately, instead are silently treated 5556 as 'x'. The following induces an error, until -std is added to get 5557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5558 array size at least. It's necessary to write '\x00'==0 to get something 5559 that's true only with -std. */ 5560int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5561 5562/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5563 inside strings and character constants. */ 5564#define FOO(x) 'x' 5565int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5566 5567int test (int i, double x); 5568struct s1 {int (*f) (int a);}; 5569struct s2 {int (*f) (double a);}; 5570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5571int argc; 5572char **argv; 5573int 5574main () 5575{ 5576return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5577 ; 5578 return 0; 5579} 5580_ACEOF 5581for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5583do 5584 CC="$ac_save_CC $ac_arg" 5585 if ac_fn_c_try_compile "$LINENO"; then : 5586 ac_cv_prog_cc_c89=$ac_arg 5587fi 5588rm -f core conftest.err conftest.$ac_objext 5589 test "x$ac_cv_prog_cc_c89" != "xno" && break 5590done 5591rm -f conftest.$ac_ext 5592CC=$ac_save_CC 5593 5594fi 5595# AC_CACHE_VAL 5596case "x$ac_cv_prog_cc_c89" in 5597 x) 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5599$as_echo "none needed" >&6; } ;; 5600 xno) 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5602$as_echo "unsupported" >&6; } ;; 5603 *) 5604 CC="$CC $ac_cv_prog_cc_c89" 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5606$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5607esac 5608if test "x$ac_cv_prog_cc_c89" != xno; then : 5609 5610fi 5611 5612ac_ext=c 5613ac_cpp='$CPP $CPPFLAGS' 5614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5616ac_compiler_gnu=$ac_cv_c_compiler_gnu 5617 5618ac_ext=c 5619ac_cpp='$CPP $CPPFLAGS' 5620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5622ac_compiler_gnu=$ac_cv_c_compiler_gnu 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5624$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5625if ${am_cv_prog_cc_c_o+:} false; then : 5626 $as_echo_n "(cached) " >&6 5627else 5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5629/* end confdefs.h. */ 5630 5631int 5632main () 5633{ 5634 5635 ; 5636 return 0; 5637} 5638_ACEOF 5639 # Make sure it works both with $CC and with simple cc. 5640 # Following AC_PROG_CC_C_O, we do the test twice because some 5641 # compilers refuse to overwrite an existing .o file with -o, 5642 # though they will create one. 5643 am_cv_prog_cc_c_o=yes 5644 for am_i in 1 2; do 5645 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5646 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5647 ac_status=$? 5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5649 (exit $ac_status); } \ 5650 && test -f conftest2.$ac_objext; then 5651 : OK 5652 else 5653 am_cv_prog_cc_c_o=no 5654 break 5655 fi 5656 done 5657 rm -f core conftest* 5658 unset am_i 5659fi 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5661$as_echo "$am_cv_prog_cc_c_o" >&6; } 5662if test "$am_cv_prog_cc_c_o" != yes; then 5663 # Losing compiler, so override with the script. 5664 # FIXME: It is wrong to rewrite CC. 5665 # But if we don't then we get into trouble of one sort or another. 5666 # A longer-term fix would be to have automake use am__CC in this case, 5667 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5668 CC="$am_aux_dir/compile $CC" 5669fi 5670ac_ext=c 5671ac_cpp='$CPP $CPPFLAGS' 5672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5674ac_compiler_gnu=$ac_cv_c_compiler_gnu 5675 5676 5677ac_ext=cpp 5678ac_cpp='$CXXCPP $CPPFLAGS' 5679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5682if test -z "$CXX"; then 5683 if test -n "$CCC"; then 5684 CXX=$CCC 5685 else 5686 if test -n "$ac_tool_prefix"; then 5687 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5688 do 5689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5690set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5692$as_echo_n "checking for $ac_word... " >&6; } 5693if ${ac_cv_prog_CXX+:} false; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 if test -n "$CXX"; then 5697 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5698else 5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5700for as_dir in $PATH 5701do 5702 IFS=$as_save_IFS 5703 test -z "$as_dir" && as_dir=. 5704 for ac_exec_ext in '' $ac_executable_extensions; do 5705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5706 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5708 break 2 5709 fi 5710done 5711 done 5712IFS=$as_save_IFS 5713 5714fi 5715fi 5716CXX=$ac_cv_prog_CXX 5717if test -n "$CXX"; then 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5719$as_echo "$CXX" >&6; } 5720else 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5722$as_echo "no" >&6; } 5723fi 5724 5725 5726 test -n "$CXX" && break 5727 done 5728fi 5729if test -z "$CXX"; then 5730 ac_ct_CXX=$CXX 5731 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5732do 5733 # Extract the first word of "$ac_prog", so it can be a program name with args. 5734set dummy $ac_prog; ac_word=$2 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5736$as_echo_n "checking for $ac_word... " >&6; } 5737if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5738 $as_echo_n "(cached) " >&6 5739else 5740 if test -n "$ac_ct_CXX"; then 5741 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5742else 5743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5744for as_dir in $PATH 5745do 5746 IFS=$as_save_IFS 5747 test -z "$as_dir" && as_dir=. 5748 for ac_exec_ext in '' $ac_executable_extensions; do 5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5750 ac_cv_prog_ac_ct_CXX="$ac_prog" 5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5752 break 2 5753 fi 5754done 5755 done 5756IFS=$as_save_IFS 5757 5758fi 5759fi 5760ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5761if test -n "$ac_ct_CXX"; then 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5763$as_echo "$ac_ct_CXX" >&6; } 5764else 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5766$as_echo "no" >&6; } 5767fi 5768 5769 5770 test -n "$ac_ct_CXX" && break 5771done 5772 5773 if test "x$ac_ct_CXX" = x; then 5774 CXX="g++" 5775 else 5776 case $cross_compiling:$ac_tool_warned in 5777yes:) 5778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5780ac_tool_warned=yes ;; 5781esac 5782 CXX=$ac_ct_CXX 5783 fi 5784fi 5785 5786 fi 5787fi 5788# Provide some information about the compiler. 5789$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5790set X $ac_compile 5791ac_compiler=$2 5792for ac_option in --version -v -V -qversion; do 5793 { { ac_try="$ac_compiler $ac_option >&5" 5794case "(($ac_try" in 5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5796 *) ac_try_echo=$ac_try;; 5797esac 5798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5799$as_echo "$ac_try_echo"; } >&5 5800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5801 ac_status=$? 5802 if test -s conftest.err; then 5803 sed '10a\ 5804... rest of stderr output deleted ... 5805 10q' conftest.err >conftest.er1 5806 cat conftest.er1 >&5 5807 fi 5808 rm -f conftest.er1 conftest.err 5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5810 test $ac_status = 0; } 5811done 5812 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5814$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5815if ${ac_cv_cxx_compiler_gnu+:} false; then : 5816 $as_echo_n "(cached) " >&6 5817else 5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5819/* end confdefs.h. */ 5820 5821int 5822main () 5823{ 5824#ifndef __GNUC__ 5825 choke me 5826#endif 5827 5828 ; 5829 return 0; 5830} 5831_ACEOF 5832if ac_fn_cxx_try_compile "$LINENO"; then : 5833 ac_compiler_gnu=yes 5834else 5835 ac_compiler_gnu=no 5836fi 5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5838ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5839 5840fi 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5842$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5843if test $ac_compiler_gnu = yes; then 5844 GXX=yes 5845else 5846 GXX= 5847fi 5848ac_test_CXXFLAGS=${CXXFLAGS+set} 5849ac_save_CXXFLAGS=$CXXFLAGS 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5851$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5852if ${ac_cv_prog_cxx_g+:} false; then : 5853 $as_echo_n "(cached) " >&6 5854else 5855 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5856 ac_cxx_werror_flag=yes 5857 ac_cv_prog_cxx_g=no 5858 CXXFLAGS="-g" 5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5860/* end confdefs.h. */ 5861 5862int 5863main () 5864{ 5865 5866 ; 5867 return 0; 5868} 5869_ACEOF 5870if ac_fn_cxx_try_compile "$LINENO"; then : 5871 ac_cv_prog_cxx_g=yes 5872else 5873 CXXFLAGS="" 5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875/* end confdefs.h. */ 5876 5877int 5878main () 5879{ 5880 5881 ; 5882 return 0; 5883} 5884_ACEOF 5885if ac_fn_cxx_try_compile "$LINENO"; then : 5886 5887else 5888 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5889 CXXFLAGS="-g" 5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5891/* end confdefs.h. */ 5892 5893int 5894main () 5895{ 5896 5897 ; 5898 return 0; 5899} 5900_ACEOF 5901if ac_fn_cxx_try_compile "$LINENO"; then : 5902 ac_cv_prog_cxx_g=yes 5903fi 5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5905fi 5906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5907fi 5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5909 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5910fi 5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5912$as_echo "$ac_cv_prog_cxx_g" >&6; } 5913if test "$ac_test_CXXFLAGS" = set; then 5914 CXXFLAGS=$ac_save_CXXFLAGS 5915elif test $ac_cv_prog_cxx_g = yes; then 5916 if test "$GXX" = yes; then 5917 CXXFLAGS="-g -O2" 5918 else 5919 CXXFLAGS="-g" 5920 fi 5921else 5922 if test "$GXX" = yes; then 5923 CXXFLAGS="-O2" 5924 else 5925 CXXFLAGS= 5926 fi 5927fi 5928ac_ext=c 5929ac_cpp='$CPP $CPPFLAGS' 5930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5932ac_compiler_gnu=$ac_cv_c_compiler_gnu 5933 5934depcc="$CXX" am_compiler_list= 5935 5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5937$as_echo_n "checking dependency style of $depcc... " >&6; } 5938if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5939 $as_echo_n "(cached) " >&6 5940else 5941 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5942 # We make a subdir and do the tests there. Otherwise we can end up 5943 # making bogus files that we don't know about and never remove. For 5944 # instance it was reported that on HP-UX the gcc test will end up 5945 # making a dummy file named 'D' -- because '-MD' means "put the output 5946 # in D". 5947 rm -rf conftest.dir 5948 mkdir conftest.dir 5949 # Copy depcomp to subdir because otherwise we won't find it if we're 5950 # using a relative directory. 5951 cp "$am_depcomp" conftest.dir 5952 cd conftest.dir 5953 # We will build objects and dependencies in a subdirectory because 5954 # it helps to detect inapplicable dependency modes. For instance 5955 # both Tru64's cc and ICC support -MD to output dependencies as a 5956 # side effect of compilation, but ICC will put the dependencies in 5957 # the current directory while Tru64 will put them in the object 5958 # directory. 5959 mkdir sub 5960 5961 am_cv_CXX_dependencies_compiler_type=none 5962 if test "$am_compiler_list" = ""; then 5963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5964 fi 5965 am__universal=false 5966 case " $depcc " in #( 5967 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5968 esac 5969 5970 for depmode in $am_compiler_list; do 5971 # Setup a source with many dependencies, because some compilers 5972 # like to wrap large dependency lists on column 80 (with \), and 5973 # we should not choose a depcomp mode which is confused by this. 5974 # 5975 # We need to recreate these files for each test, as the compiler may 5976 # overwrite some of them when testing with obscure command lines. 5977 # This happens at least with the AIX C compiler. 5978 : > sub/conftest.c 5979 for i in 1 2 3 4 5 6; do 5980 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5981 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5982 # Solaris 10 /bin/sh. 5983 echo '/* dummy */' > sub/conftst$i.h 5984 done 5985 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5986 5987 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5988 # mode. It turns out that the SunPro C++ compiler does not properly 5989 # handle '-M -o', and we need to detect this. Also, some Intel 5990 # versions had trouble with output in subdirs. 5991 am__obj=sub/conftest.${OBJEXT-o} 5992 am__minus_obj="-o $am__obj" 5993 case $depmode in 5994 gcc) 5995 # This depmode causes a compiler race in universal mode. 5996 test "$am__universal" = false || continue 5997 ;; 5998 nosideeffect) 5999 # After this tag, mechanisms are not by side-effect, so they'll 6000 # only be used when explicitly requested. 6001 if test "x$enable_dependency_tracking" = xyes; then 6002 continue 6003 else 6004 break 6005 fi 6006 ;; 6007 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6008 # This compiler won't grok '-c -o', but also, the minuso test has 6009 # not run yet. These depmodes are late enough in the game, and 6010 # so weak that their functioning should not be impacted. 6011 am__obj=conftest.${OBJEXT-o} 6012 am__minus_obj= 6013 ;; 6014 none) break ;; 6015 esac 6016 if depmode=$depmode \ 6017 source=sub/conftest.c object=$am__obj \ 6018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6019 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6020 >/dev/null 2>conftest.err && 6021 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6023 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6025 # icc doesn't choke on unknown options, it will just issue warnings 6026 # or remarks (even with -Werror). So we grep stderr for any message 6027 # that says an option was ignored or not supported. 6028 # When given -MP, icc 7.0 and 7.1 complain thusly: 6029 # icc: Command line warning: ignoring option '-M'; no argument required 6030 # The diagnosis changed in icc 8.0: 6031 # icc: Command line remark: option '-MP' not supported 6032 if (grep 'ignoring option' conftest.err || 6033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6034 am_cv_CXX_dependencies_compiler_type=$depmode 6035 break 6036 fi 6037 fi 6038 done 6039 6040 cd .. 6041 rm -rf conftest.dir 6042else 6043 am_cv_CXX_dependencies_compiler_type=none 6044fi 6045 6046fi 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6048$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6049CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6050 6051 if 6052 test "x$enable_dependency_tracking" != xno \ 6053 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6054 am__fastdepCXX_TRUE= 6055 am__fastdepCXX_FALSE='#' 6056else 6057 am__fastdepCXX_TRUE='#' 6058 am__fastdepCXX_FALSE= 6059fi 6060 6061 6062# By default we simply use the C compiler to build assembly code. 6063 6064test "${CCAS+set}" = set || CCAS=$CC 6065test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 6066 6067 6068 6069depcc="$CCAS" am_compiler_list= 6070 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6072$as_echo_n "checking dependency style of $depcc... " >&6; } 6073if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 6074 $as_echo_n "(cached) " >&6 6075else 6076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6077 # We make a subdir and do the tests there. Otherwise we can end up 6078 # making bogus files that we don't know about and never remove. For 6079 # instance it was reported that on HP-UX the gcc test will end up 6080 # making a dummy file named 'D' -- because '-MD' means "put the output 6081 # in D". 6082 rm -rf conftest.dir 6083 mkdir conftest.dir 6084 # Copy depcomp to subdir because otherwise we won't find it if we're 6085 # using a relative directory. 6086 cp "$am_depcomp" conftest.dir 6087 cd conftest.dir 6088 # We will build objects and dependencies in a subdirectory because 6089 # it helps to detect inapplicable dependency modes. For instance 6090 # both Tru64's cc and ICC support -MD to output dependencies as a 6091 # side effect of compilation, but ICC will put the dependencies in 6092 # the current directory while Tru64 will put them in the object 6093 # directory. 6094 mkdir sub 6095 6096 am_cv_CCAS_dependencies_compiler_type=none 6097 if test "$am_compiler_list" = ""; then 6098 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6099 fi 6100 am__universal=false 6101 6102 6103 for depmode in $am_compiler_list; do 6104 # Setup a source with many dependencies, because some compilers 6105 # like to wrap large dependency lists on column 80 (with \), and 6106 # we should not choose a depcomp mode which is confused by this. 6107 # 6108 # We need to recreate these files for each test, as the compiler may 6109 # overwrite some of them when testing with obscure command lines. 6110 # This happens at least with the AIX C compiler. 6111 : > sub/conftest.c 6112 for i in 1 2 3 4 5 6; do 6113 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6114 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6115 # Solaris 10 /bin/sh. 6116 echo '/* dummy */' > sub/conftst$i.h 6117 done 6118 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6119 6120 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6121 # mode. It turns out that the SunPro C++ compiler does not properly 6122 # handle '-M -o', and we need to detect this. Also, some Intel 6123 # versions had trouble with output in subdirs. 6124 am__obj=sub/conftest.${OBJEXT-o} 6125 am__minus_obj="-o $am__obj" 6126 case $depmode in 6127 gcc) 6128 # This depmode causes a compiler race in universal mode. 6129 test "$am__universal" = false || continue 6130 ;; 6131 nosideeffect) 6132 # After this tag, mechanisms are not by side-effect, so they'll 6133 # only be used when explicitly requested. 6134 if test "x$enable_dependency_tracking" = xyes; then 6135 continue 6136 else 6137 break 6138 fi 6139 ;; 6140 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6141 # This compiler won't grok '-c -o', but also, the minuso test has 6142 # not run yet. These depmodes are late enough in the game, and 6143 # so weak that their functioning should not be impacted. 6144 am__obj=conftest.${OBJEXT-o} 6145 am__minus_obj= 6146 ;; 6147 none) break ;; 6148 esac 6149 if depmode=$depmode \ 6150 source=sub/conftest.c object=$am__obj \ 6151 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6152 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6153 >/dev/null 2>conftest.err && 6154 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6156 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6158 # icc doesn't choke on unknown options, it will just issue warnings 6159 # or remarks (even with -Werror). So we grep stderr for any message 6160 # that says an option was ignored or not supported. 6161 # When given -MP, icc 7.0 and 7.1 complain thusly: 6162 # icc: Command line warning: ignoring option '-M'; no argument required 6163 # The diagnosis changed in icc 8.0: 6164 # icc: Command line remark: option '-MP' not supported 6165 if (grep 'ignoring option' conftest.err || 6166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6167 am_cv_CCAS_dependencies_compiler_type=$depmode 6168 break 6169 fi 6170 fi 6171 done 6172 6173 cd .. 6174 rm -rf conftest.dir 6175else 6176 am_cv_CCAS_dependencies_compiler_type=none 6177fi 6178 6179fi 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 6181$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 6182CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 6183 6184 if 6185 test "x$enable_dependency_tracking" != xno \ 6186 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 6187 am__fastdepCCAS_TRUE= 6188 am__fastdepCCAS_FALSE='#' 6189else 6190 am__fastdepCCAS_TRUE='#' 6191 am__fastdepCCAS_FALSE= 6192fi 6193 6194 6195if test -n "$ac_tool_prefix"; then 6196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6197set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6199$as_echo_n "checking for $ac_word... " >&6; } 6200if ${ac_cv_prog_RANLIB+:} false; then : 6201 $as_echo_n "(cached) " >&6 6202else 6203 if test -n "$RANLIB"; then 6204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6205else 6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6207for as_dir in $PATH 6208do 6209 IFS=$as_save_IFS 6210 test -z "$as_dir" && as_dir=. 6211 for ac_exec_ext in '' $ac_executable_extensions; do 6212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6215 break 2 6216 fi 6217done 6218 done 6219IFS=$as_save_IFS 6220 6221fi 6222fi 6223RANLIB=$ac_cv_prog_RANLIB 6224if test -n "$RANLIB"; then 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6226$as_echo "$RANLIB" >&6; } 6227else 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6229$as_echo "no" >&6; } 6230fi 6231 6232 6233fi 6234if test -z "$ac_cv_prog_RANLIB"; then 6235 ac_ct_RANLIB=$RANLIB 6236 # Extract the first word of "ranlib", so it can be a program name with args. 6237set dummy ranlib; ac_word=$2 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6239$as_echo_n "checking for $ac_word... " >&6; } 6240if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6241 $as_echo_n "(cached) " >&6 6242else 6243 if test -n "$ac_ct_RANLIB"; then 6244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6245else 6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6247for as_dir in $PATH 6248do 6249 IFS=$as_save_IFS 6250 test -z "$as_dir" && as_dir=. 6251 for ac_exec_ext in '' $ac_executable_extensions; do 6252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6253 ac_cv_prog_ac_ct_RANLIB="ranlib" 6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6255 break 2 6256 fi 6257done 6258 done 6259IFS=$as_save_IFS 6260 6261fi 6262fi 6263ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6264if test -n "$ac_ct_RANLIB"; then 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6266$as_echo "$ac_ct_RANLIB" >&6; } 6267else 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6269$as_echo "no" >&6; } 6270fi 6271 6272 if test "x$ac_ct_RANLIB" = x; then 6273 RANLIB=":" 6274 else 6275 case $cross_compiling:$ac_tool_warned in 6276yes:) 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6279ac_tool_warned=yes ;; 6280esac 6281 RANLIB=$ac_ct_RANLIB 6282 fi 6283else 6284 RANLIB="$ac_cv_prog_RANLIB" 6285fi 6286 6287 6288enable_dlopen=yes 6289 6290 6291 6292case `pwd` in 6293 *\ * | *\ *) 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6295$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6296esac 6297 6298 6299 6300macro_version='2.2.7a' 6301macro_revision='1.3134' 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315ltmain="$ac_aux_dir/ltmain.sh" 6316 6317# Backslashify metacharacters that are still active within 6318# double-quoted strings. 6319sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6320 6321# Same as above, but do not quote variable references. 6322double_quote_subst='s/\(["`\\]\)/\\\1/g' 6323 6324# Sed substitution to delay expansion of an escaped shell variable in a 6325# double_quote_subst'ed string. 6326delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6327 6328# Sed substitution to delay expansion of an escaped single quote. 6329delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6330 6331# Sed substitution to avoid accidental globbing in evaled expressions 6332no_glob_subst='s/\*/\\\*/g' 6333 6334ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6335ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6336ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6337 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6339$as_echo_n "checking how to print strings... " >&6; } 6340# Test print first, because it will be a builtin if present. 6341if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 6342 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6343 ECHO='print -r --' 6344elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6345 ECHO='printf %s\n' 6346else 6347 # Use this function as a fallback that always works. 6348 func_fallback_echo () 6349 { 6350 eval 'cat <<_LTECHO_EOF 6351$1 6352_LTECHO_EOF' 6353 } 6354 ECHO='func_fallback_echo' 6355fi 6356 6357# func_echo_all arg... 6358# Invoke $ECHO with all args, space-separated. 6359func_echo_all () 6360{ 6361 $ECHO "" 6362} 6363 6364case "$ECHO" in 6365 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6366$as_echo "printf" >&6; } ;; 6367 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6368$as_echo "print -r" >&6; } ;; 6369 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6370$as_echo "cat" >&6; } ;; 6371esac 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6387$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6388if ${ac_cv_path_SED+:} false; then : 6389 $as_echo_n "(cached) " >&6 6390else 6391 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6392 for ac_i in 1 2 3 4 5 6 7; do 6393 ac_script="$ac_script$as_nl$ac_script" 6394 done 6395 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6396 { ac_script=; unset ac_script;} 6397 if test -z "$SED"; then 6398 ac_path_SED_found=false 6399 # Loop through the user's path and test for each of PROGNAME-LIST 6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6401for as_dir in $PATH 6402do 6403 IFS=$as_save_IFS 6404 test -z "$as_dir" && as_dir=. 6405 for ac_prog in sed gsed; do 6406 for ac_exec_ext in '' $ac_executable_extensions; do 6407 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6408 as_fn_executable_p "$ac_path_SED" || continue 6409# Check for GNU ac_path_SED and select it if it is found. 6410 # Check for GNU $ac_path_SED 6411case `"$ac_path_SED" --version 2>&1` in 6412*GNU*) 6413 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6414*) 6415 ac_count=0 6416 $as_echo_n 0123456789 >"conftest.in" 6417 while : 6418 do 6419 cat "conftest.in" "conftest.in" >"conftest.tmp" 6420 mv "conftest.tmp" "conftest.in" 6421 cp "conftest.in" "conftest.nl" 6422 $as_echo '' >> "conftest.nl" 6423 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6425 as_fn_arith $ac_count + 1 && ac_count=$as_val 6426 if test $ac_count -gt ${ac_path_SED_max-0}; then 6427 # Best one so far, save it but keep looking for a better one 6428 ac_cv_path_SED="$ac_path_SED" 6429 ac_path_SED_max=$ac_count 6430 fi 6431 # 10*(2^10) chars as input seems more than enough 6432 test $ac_count -gt 10 && break 6433 done 6434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6435esac 6436 6437 $ac_path_SED_found && break 3 6438 done 6439 done 6440 done 6441IFS=$as_save_IFS 6442 if test -z "$ac_cv_path_SED"; then 6443 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6444 fi 6445else 6446 ac_cv_path_SED=$SED 6447fi 6448 6449fi 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6451$as_echo "$ac_cv_path_SED" >&6; } 6452 SED="$ac_cv_path_SED" 6453 rm -f conftest.sed 6454 6455test -z "$SED" && SED=sed 6456Xsed="$SED -e 1s/^X//" 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6469$as_echo_n "checking for fgrep... " >&6; } 6470if ${ac_cv_path_FGREP+:} false; then : 6471 $as_echo_n "(cached) " >&6 6472else 6473 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6474 then ac_cv_path_FGREP="$GREP -F" 6475 else 6476 if test -z "$FGREP"; then 6477 ac_path_FGREP_found=false 6478 # Loop through the user's path and test for each of PROGNAME-LIST 6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_prog in fgrep; do 6485 for ac_exec_ext in '' $ac_executable_extensions; do 6486 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6487 as_fn_executable_p "$ac_path_FGREP" || continue 6488# Check for GNU ac_path_FGREP and select it if it is found. 6489 # Check for GNU $ac_path_FGREP 6490case `"$ac_path_FGREP" --version 2>&1` in 6491*GNU*) 6492 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6493*) 6494 ac_count=0 6495 $as_echo_n 0123456789 >"conftest.in" 6496 while : 6497 do 6498 cat "conftest.in" "conftest.in" >"conftest.tmp" 6499 mv "conftest.tmp" "conftest.in" 6500 cp "conftest.in" "conftest.nl" 6501 $as_echo 'FGREP' >> "conftest.nl" 6502 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6504 as_fn_arith $ac_count + 1 && ac_count=$as_val 6505 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6506 # Best one so far, save it but keep looking for a better one 6507 ac_cv_path_FGREP="$ac_path_FGREP" 6508 ac_path_FGREP_max=$ac_count 6509 fi 6510 # 10*(2^10) chars as input seems more than enough 6511 test $ac_count -gt 10 && break 6512 done 6513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6514esac 6515 6516 $ac_path_FGREP_found && break 3 6517 done 6518 done 6519 done 6520IFS=$as_save_IFS 6521 if test -z "$ac_cv_path_FGREP"; then 6522 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6523 fi 6524else 6525 ac_cv_path_FGREP=$FGREP 6526fi 6527 6528 fi 6529fi 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6531$as_echo "$ac_cv_path_FGREP" >&6; } 6532 FGREP="$ac_cv_path_FGREP" 6533 6534 6535test -z "$GREP" && GREP=grep 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555# Check whether --with-gnu-ld was given. 6556if test "${with_gnu_ld+set}" = set; then : 6557 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6558else 6559 with_gnu_ld=no 6560fi 6561 6562ac_prog=ld 6563if test "$GCC" = yes; then 6564 # Check if gcc -print-prog-name=ld gives a path. 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6566$as_echo_n "checking for ld used by $CC... " >&6; } 6567 case $host in 6568 *-*-mingw*) 6569 # gcc leaves a trailing carriage return which upsets mingw 6570 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6571 *) 6572 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6573 esac 6574 case $ac_prog in 6575 # Accept absolute paths. 6576 [\\/]* | ?:[\\/]*) 6577 re_direlt='/[^/][^/]*/\.\./' 6578 # Canonicalize the pathname of ld 6579 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6580 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6581 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6582 done 6583 test -z "$LD" && LD="$ac_prog" 6584 ;; 6585 "") 6586 # If it fails, then pretend we aren't using GCC. 6587 ac_prog=ld 6588 ;; 6589 *) 6590 # If it is relative, then search for the first ld in PATH. 6591 with_gnu_ld=unknown 6592 ;; 6593 esac 6594elif test "$with_gnu_ld" = yes; then 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6596$as_echo_n "checking for GNU ld... " >&6; } 6597else 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6599$as_echo_n "checking for non-GNU ld... " >&6; } 6600fi 6601if ${lt_cv_path_LD+:} false; then : 6602 $as_echo_n "(cached) " >&6 6603else 6604 if test -z "$LD"; then 6605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6606 for ac_dir in $PATH; do 6607 IFS="$lt_save_ifs" 6608 test -z "$ac_dir" && ac_dir=. 6609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6610 lt_cv_path_LD="$ac_dir/$ac_prog" 6611 # Check to see if the program is GNU ld. I'd rather use --version, 6612 # but apparently some variants of GNU ld only accept -v. 6613 # Break only if it was the GNU/non-GNU ld that we prefer. 6614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6615 *GNU* | *'with BFD'*) 6616 test "$with_gnu_ld" != no && break 6617 ;; 6618 *) 6619 test "$with_gnu_ld" != yes && break 6620 ;; 6621 esac 6622 fi 6623 done 6624 IFS="$lt_save_ifs" 6625else 6626 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6627fi 6628fi 6629 6630LD="$lt_cv_path_LD" 6631if test -n "$LD"; then 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6633$as_echo "$LD" >&6; } 6634else 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6636$as_echo "no" >&6; } 6637fi 6638test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6640$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6641if ${lt_cv_prog_gnu_ld+:} false; then : 6642 $as_echo_n "(cached) " >&6 6643else 6644 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6645case `$LD -v 2>&1 </dev/null` in 6646*GNU* | *'with BFD'*) 6647 lt_cv_prog_gnu_ld=yes 6648 ;; 6649*) 6650 lt_cv_prog_gnu_ld=no 6651 ;; 6652esac 6653fi 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6655$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6656with_gnu_ld=$lt_cv_prog_gnu_ld 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6667$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6668if ${lt_cv_path_NM+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 if test -n "$NM"; then 6672 # Let the user override the test. 6673 lt_cv_path_NM="$NM" 6674else 6675 lt_nm_to_check="${ac_tool_prefix}nm" 6676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6677 lt_nm_to_check="$lt_nm_to_check nm" 6678 fi 6679 for lt_tmp_nm in $lt_nm_to_check; do 6680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6681 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6682 IFS="$lt_save_ifs" 6683 test -z "$ac_dir" && ac_dir=. 6684 tmp_nm="$ac_dir/$lt_tmp_nm" 6685 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6686 # Check to see if the nm accepts a BSD-compat flag. 6687 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6688 # nm: unknown option "B" ignored 6689 # Tru64's nm complains that /dev/null is an invalid object file 6690 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6691 */dev/null* | *'Invalid file or object type'*) 6692 lt_cv_path_NM="$tmp_nm -B" 6693 break 6694 ;; 6695 *) 6696 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6697 */dev/null*) 6698 lt_cv_path_NM="$tmp_nm -p" 6699 break 6700 ;; 6701 *) 6702 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6703 continue # so that we can try to find one that supports BSD flags 6704 ;; 6705 esac 6706 ;; 6707 esac 6708 fi 6709 done 6710 IFS="$lt_save_ifs" 6711 done 6712 : ${lt_cv_path_NM=no} 6713fi 6714fi 6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6716$as_echo "$lt_cv_path_NM" >&6; } 6717if test "$lt_cv_path_NM" != "no"; then 6718 NM="$lt_cv_path_NM" 6719else 6720 # Didn't find any BSD compatible name lister, look for dumpbin. 6721 if test -n "$DUMPBIN"; then : 6722 # Let the user override the test. 6723 else 6724 if test -n "$ac_tool_prefix"; then 6725 for ac_prog in dumpbin "link -dump" 6726 do 6727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6728set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6730$as_echo_n "checking for $ac_word... " >&6; } 6731if ${ac_cv_prog_DUMPBIN+:} false; then : 6732 $as_echo_n "(cached) " >&6 6733else 6734 if test -n "$DUMPBIN"; then 6735 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6736else 6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6738for as_dir in $PATH 6739do 6740 IFS=$as_save_IFS 6741 test -z "$as_dir" && as_dir=. 6742 for ac_exec_ext in '' $ac_executable_extensions; do 6743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6744 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6746 break 2 6747 fi 6748done 6749 done 6750IFS=$as_save_IFS 6751 6752fi 6753fi 6754DUMPBIN=$ac_cv_prog_DUMPBIN 6755if test -n "$DUMPBIN"; then 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6757$as_echo "$DUMPBIN" >&6; } 6758else 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6760$as_echo "no" >&6; } 6761fi 6762 6763 6764 test -n "$DUMPBIN" && break 6765 done 6766fi 6767if test -z "$DUMPBIN"; then 6768 ac_ct_DUMPBIN=$DUMPBIN 6769 for ac_prog in dumpbin "link -dump" 6770do 6771 # Extract the first word of "$ac_prog", so it can be a program name with args. 6772set dummy $ac_prog; ac_word=$2 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6774$as_echo_n "checking for $ac_word... " >&6; } 6775if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6776 $as_echo_n "(cached) " >&6 6777else 6778 if test -n "$ac_ct_DUMPBIN"; then 6779 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6780else 6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6782for as_dir in $PATH 6783do 6784 IFS=$as_save_IFS 6785 test -z "$as_dir" && as_dir=. 6786 for ac_exec_ext in '' $ac_executable_extensions; do 6787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6788 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6790 break 2 6791 fi 6792done 6793 done 6794IFS=$as_save_IFS 6795 6796fi 6797fi 6798ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6799if test -n "$ac_ct_DUMPBIN"; then 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6801$as_echo "$ac_ct_DUMPBIN" >&6; } 6802else 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6804$as_echo "no" >&6; } 6805fi 6806 6807 6808 test -n "$ac_ct_DUMPBIN" && break 6809done 6810 6811 if test "x$ac_ct_DUMPBIN" = x; then 6812 DUMPBIN=":" 6813 else 6814 case $cross_compiling:$ac_tool_warned in 6815yes:) 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6818ac_tool_warned=yes ;; 6819esac 6820 DUMPBIN=$ac_ct_DUMPBIN 6821 fi 6822fi 6823 6824 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6825 *COFF*) 6826 DUMPBIN="$DUMPBIN -symbols" 6827 ;; 6828 *) 6829 DUMPBIN=: 6830 ;; 6831 esac 6832 fi 6833 6834 if test "$DUMPBIN" != ":"; then 6835 NM="$DUMPBIN" 6836 fi 6837fi 6838test -z "$NM" && NM=nm 6839 6840 6841 6842 6843 6844 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6846$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6847if ${lt_cv_nm_interface+:} false; then : 6848 $as_echo_n "(cached) " >&6 6849else 6850 lt_cv_nm_interface="BSD nm" 6851 echo "int some_variable = 0;" > conftest.$ac_ext 6852 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6853 (eval "$ac_compile" 2>conftest.err) 6854 cat conftest.err >&5 6855 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6856 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6857 cat conftest.err >&5 6858 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6859 cat conftest.out >&5 6860 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6861 lt_cv_nm_interface="MS dumpbin" 6862 fi 6863 rm -f conftest* 6864fi 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6866$as_echo "$lt_cv_nm_interface" >&6; } 6867 6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6869$as_echo_n "checking whether ln -s works... " >&6; } 6870LN_S=$as_ln_s 6871if test "$LN_S" = "ln -s"; then 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6873$as_echo "yes" >&6; } 6874else 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6876$as_echo "no, using $LN_S" >&6; } 6877fi 6878 6879# find the maximum length of command line arguments 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6881$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6882if ${lt_cv_sys_max_cmd_len+:} false; then : 6883 $as_echo_n "(cached) " >&6 6884else 6885 i=0 6886 teststring="ABCD" 6887 6888 case $build_os in 6889 msdosdjgpp*) 6890 # On DJGPP, this test can blow up pretty badly due to problems in libc 6891 # (any single argument exceeding 2000 bytes causes a buffer overrun 6892 # during glob expansion). Even if it were fixed, the result of this 6893 # check would be larger than it should be. 6894 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6895 ;; 6896 6897 gnu*) 6898 # Under GNU Hurd, this test is not required because there is 6899 # no limit to the length of command line arguments. 6900 # Libtool will interpret -1 as no limit whatsoever 6901 lt_cv_sys_max_cmd_len=-1; 6902 ;; 6903 6904 cygwin* | mingw* | cegcc*) 6905 # On Win9x/ME, this test blows up -- it succeeds, but takes 6906 # about 5 minutes as the teststring grows exponentially. 6907 # Worse, since 9x/ME are not pre-emptively multitasking, 6908 # you end up with a "frozen" computer, even though with patience 6909 # the test eventually succeeds (with a max line length of 256k). 6910 # Instead, let's just punt: use the minimum linelength reported by 6911 # all of the supported platforms: 8192 (on NT/2K/XP). 6912 lt_cv_sys_max_cmd_len=8192; 6913 ;; 6914 6915 mint*) 6916 # On MiNT this can take a long time and run out of memory. 6917 lt_cv_sys_max_cmd_len=8192; 6918 ;; 6919 6920 amigaos*) 6921 # On AmigaOS with pdksh, this test takes hours, literally. 6922 # So we just punt and use a minimum line length of 8192. 6923 lt_cv_sys_max_cmd_len=8192; 6924 ;; 6925 6926 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6927 # This has been around since 386BSD, at least. Likely further. 6928 if test -x /sbin/sysctl; then 6929 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6930 elif test -x /usr/sbin/sysctl; then 6931 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6932 else 6933 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6934 fi 6935 # And add a safety zone 6936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6938 ;; 6939 6940 interix*) 6941 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6942 lt_cv_sys_max_cmd_len=196608 6943 ;; 6944 6945 osf*) 6946 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6947 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6948 # nice to cause kernel panics so lets avoid the loop below. 6949 # First set a reasonable default. 6950 lt_cv_sys_max_cmd_len=16384 6951 # 6952 if test -x /sbin/sysconfig; then 6953 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6954 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6955 esac 6956 fi 6957 ;; 6958 sco3.2v5*) 6959 lt_cv_sys_max_cmd_len=102400 6960 ;; 6961 sysv5* | sco5v6* | sysv4.2uw2*) 6962 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6963 if test -n "$kargmax"; then 6964 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6965 else 6966 lt_cv_sys_max_cmd_len=32768 6967 fi 6968 ;; 6969 *) 6970 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6971 if test -n "$lt_cv_sys_max_cmd_len"; then 6972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6974 else 6975 # Make teststring a little bigger before we do anything with it. 6976 # a 1K string should be a reasonable start. 6977 for i in 1 2 3 4 5 6 7 8 ; do 6978 teststring=$teststring$teststring 6979 done 6980 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6981 # If test is not a shell built-in, we'll probably end up computing a 6982 # maximum length that is only half of the actual maximum length, but 6983 # we can't tell. 6984 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6985 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6986 test $i != 17 # 1/2 MB should be enough 6987 do 6988 i=`expr $i + 1` 6989 teststring=$teststring$teststring 6990 done 6991 # Only check the string length outside the loop. 6992 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6993 teststring= 6994 # Add a significant safety factor because C++ compilers can tack on 6995 # massive amounts of additional arguments before passing them to the 6996 # linker. It appears as though 1/2 is a usable value. 6997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6998 fi 6999 ;; 7000 esac 7001 7002fi 7003 7004if test -n $lt_cv_sys_max_cmd_len ; then 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7006$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7007else 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7009$as_echo "none" >&6; } 7010fi 7011max_cmd_len=$lt_cv_sys_max_cmd_len 7012 7013 7014 7015 7016 7017 7018: ${CP="cp -f"} 7019: ${MV="mv -f"} 7020: ${RM="rm -f"} 7021 7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7023$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7024# Try some XSI features 7025xsi_shell=no 7026( _lt_dummy="a/b/c" 7027 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7028 = c,a/b,, \ 7029 && eval 'test $(( 1 + 1 )) -eq 2 \ 7030 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7031 && xsi_shell=yes 7032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7033$as_echo "$xsi_shell" >&6; } 7034 7035 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7037$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7038lt_shell_append=no 7039( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7040 >/dev/null 2>&1 \ 7041 && lt_shell_append=yes 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7043$as_echo "$lt_shell_append" >&6; } 7044 7045 7046if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7047 lt_unset=unset 7048else 7049 lt_unset=false 7050fi 7051 7052 7053 7054 7055 7056# test EBCDIC or ASCII 7057case `echo X|tr X '\101'` in 7058 A) # ASCII based system 7059 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7060 lt_SP2NL='tr \040 \012' 7061 lt_NL2SP='tr \015\012 \040\040' 7062 ;; 7063 *) # EBCDIC based system 7064 lt_SP2NL='tr \100 \n' 7065 lt_NL2SP='tr \r\n \100\100' 7066 ;; 7067esac 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7078$as_echo_n "checking for $LD option to reload object files... " >&6; } 7079if ${lt_cv_ld_reload_flag+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 lt_cv_ld_reload_flag='-r' 7083fi 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7085$as_echo "$lt_cv_ld_reload_flag" >&6; } 7086reload_flag=$lt_cv_ld_reload_flag 7087case $reload_flag in 7088"" | " "*) ;; 7089*) reload_flag=" $reload_flag" ;; 7090esac 7091reload_cmds='$LD$reload_flag -o $output$reload_objs' 7092case $host_os in 7093 darwin*) 7094 if test "$GCC" = yes; then 7095 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7096 else 7097 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7098 fi 7099 ;; 7100esac 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110if test -n "$ac_tool_prefix"; then 7111 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7112set dummy ${ac_tool_prefix}objdump; ac_word=$2 7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7114$as_echo_n "checking for $ac_word... " >&6; } 7115if ${ac_cv_prog_OBJDUMP+:} false; then : 7116 $as_echo_n "(cached) " >&6 7117else 7118 if test -n "$OBJDUMP"; then 7119 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7120else 7121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7122for as_dir in $PATH 7123do 7124 IFS=$as_save_IFS 7125 test -z "$as_dir" && as_dir=. 7126 for ac_exec_ext in '' $ac_executable_extensions; do 7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7128 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7130 break 2 7131 fi 7132done 7133 done 7134IFS=$as_save_IFS 7135 7136fi 7137fi 7138OBJDUMP=$ac_cv_prog_OBJDUMP 7139if test -n "$OBJDUMP"; then 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7141$as_echo "$OBJDUMP" >&6; } 7142else 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7144$as_echo "no" >&6; } 7145fi 7146 7147 7148fi 7149if test -z "$ac_cv_prog_OBJDUMP"; then 7150 ac_ct_OBJDUMP=$OBJDUMP 7151 # Extract the first word of "objdump", so it can be a program name with args. 7152set dummy objdump; ac_word=$2 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7154$as_echo_n "checking for $ac_word... " >&6; } 7155if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 if test -n "$ac_ct_OBJDUMP"; then 7159 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7160else 7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7162for as_dir in $PATH 7163do 7164 IFS=$as_save_IFS 7165 test -z "$as_dir" && as_dir=. 7166 for ac_exec_ext in '' $ac_executable_extensions; do 7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7168 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7170 break 2 7171 fi 7172done 7173 done 7174IFS=$as_save_IFS 7175 7176fi 7177fi 7178ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7179if test -n "$ac_ct_OBJDUMP"; then 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7181$as_echo "$ac_ct_OBJDUMP" >&6; } 7182else 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7184$as_echo "no" >&6; } 7185fi 7186 7187 if test "x$ac_ct_OBJDUMP" = x; then 7188 OBJDUMP="false" 7189 else 7190 case $cross_compiling:$ac_tool_warned in 7191yes:) 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7194ac_tool_warned=yes ;; 7195esac 7196 OBJDUMP=$ac_ct_OBJDUMP 7197 fi 7198else 7199 OBJDUMP="$ac_cv_prog_OBJDUMP" 7200fi 7201 7202test -z "$OBJDUMP" && OBJDUMP=objdump 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7213$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7214if ${lt_cv_deplibs_check_method+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 lt_cv_file_magic_cmd='$MAGIC_CMD' 7218lt_cv_file_magic_test_file= 7219lt_cv_deplibs_check_method='unknown' 7220# Need to set the preceding variable on all platforms that support 7221# interlibrary dependencies. 7222# 'none' -- dependencies not supported. 7223# `unknown' -- same as none, but documents that we really don't know. 7224# 'pass_all' -- all dependencies passed with no checks. 7225# 'test_compile' -- check by making test program. 7226# 'file_magic [[regex]]' -- check by looking for files in library path 7227# which responds to the $file_magic_cmd with a given extended regex. 7228# If you have `file' or equivalent on your system and you're not sure 7229# whether `pass_all' will *always* work, you probably want this one. 7230 7231case $host_os in 7232aix[4-9]*) 7233 lt_cv_deplibs_check_method=pass_all 7234 ;; 7235 7236beos*) 7237 lt_cv_deplibs_check_method=pass_all 7238 ;; 7239 7240bsdi[45]*) 7241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7242 lt_cv_file_magic_cmd='/usr/bin/file -L' 7243 lt_cv_file_magic_test_file=/shlib/libc.so 7244 ;; 7245 7246cygwin*) 7247 # func_win32_libid is a shell function defined in ltmain.sh 7248 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7249 lt_cv_file_magic_cmd='func_win32_libid' 7250 ;; 7251 7252mingw* | pw32*) 7253 # Base MSYS/MinGW do not provide the 'file' command needed by 7254 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7255 # unless we find 'file', for example because we are cross-compiling. 7256 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7257 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7259 lt_cv_file_magic_cmd='func_win32_libid' 7260 else 7261 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7262 lt_cv_file_magic_cmd='$OBJDUMP -f' 7263 fi 7264 ;; 7265 7266cegcc*) 7267 # use the weaker test based on 'objdump'. See mingw*. 7268 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7269 lt_cv_file_magic_cmd='$OBJDUMP -f' 7270 ;; 7271 7272darwin* | rhapsody*) 7273 lt_cv_deplibs_check_method=pass_all 7274 ;; 7275 7276freebsd* | dragonfly*) 7277 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7278 case $host_cpu in 7279 i*86 ) 7280 # Not sure whether the presence of OpenBSD here was a mistake. 7281 # Let's accept both of them until this is cleared up. 7282 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7283 lt_cv_file_magic_cmd=/usr/bin/file 7284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7285 ;; 7286 esac 7287 else 7288 lt_cv_deplibs_check_method=pass_all 7289 fi 7290 ;; 7291 7292gnu*) 7293 lt_cv_deplibs_check_method=pass_all 7294 ;; 7295 7296haiku*) 7297 lt_cv_deplibs_check_method=pass_all 7298 ;; 7299 7300hpux10.20* | hpux11*) 7301 lt_cv_file_magic_cmd=/usr/bin/file 7302 case $host_cpu in 7303 ia64*) 7304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7305 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7306 ;; 7307 hppa*64*) 7308 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]' 7309 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7310 ;; 7311 *) 7312 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7313 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7314 ;; 7315 esac 7316 ;; 7317 7318interix[3-9]*) 7319 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7321 ;; 7322 7323irix5* | irix6* | nonstopux*) 7324 case $LD in 7325 *-32|*"-32 ") libmagic=32-bit;; 7326 *-n32|*"-n32 ") libmagic=N32;; 7327 *-64|*"-64 ") libmagic=64-bit;; 7328 *) libmagic=never-match;; 7329 esac 7330 lt_cv_deplibs_check_method=pass_all 7331 ;; 7332 7333# This must be Linux ELF. 7334linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 7335 lt_cv_deplibs_check_method=pass_all 7336 ;; 7337 7338netbsd*) 7339 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7341 else 7342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7343 fi 7344 ;; 7345 7346newos6*) 7347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7348 lt_cv_file_magic_cmd=/usr/bin/file 7349 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7350 ;; 7351 7352*nto* | *qnx*) 7353 lt_cv_deplibs_check_method=pass_all 7354 ;; 7355 7356openbsd*) 7357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7359 else 7360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7361 fi 7362 ;; 7363 7364osf3* | osf4* | osf5*) 7365 lt_cv_deplibs_check_method=pass_all 7366 ;; 7367 7368rdos*) 7369 lt_cv_deplibs_check_method=pass_all 7370 ;; 7371 7372solaris*) 7373 lt_cv_deplibs_check_method=pass_all 7374 ;; 7375 7376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7377 lt_cv_deplibs_check_method=pass_all 7378 ;; 7379 7380sysv4 | sysv4.3*) 7381 case $host_vendor in 7382 motorola) 7383 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]' 7384 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7385 ;; 7386 ncr) 7387 lt_cv_deplibs_check_method=pass_all 7388 ;; 7389 sequent) 7390 lt_cv_file_magic_cmd='/bin/file' 7391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7392 ;; 7393 sni) 7394 lt_cv_file_magic_cmd='/bin/file' 7395 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7396 lt_cv_file_magic_test_file=/lib/libc.so 7397 ;; 7398 siemens) 7399 lt_cv_deplibs_check_method=pass_all 7400 ;; 7401 pc) 7402 lt_cv_deplibs_check_method=pass_all 7403 ;; 7404 esac 7405 ;; 7406 7407tpf*) 7408 lt_cv_deplibs_check_method=pass_all 7409 ;; 7410esac 7411 7412fi 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7414$as_echo "$lt_cv_deplibs_check_method" >&6; } 7415file_magic_cmd=$lt_cv_file_magic_cmd 7416deplibs_check_method=$lt_cv_deplibs_check_method 7417test -z "$deplibs_check_method" && deplibs_check_method=unknown 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430if test -n "$ac_tool_prefix"; then 7431 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7432set dummy ${ac_tool_prefix}ar; ac_word=$2 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7434$as_echo_n "checking for $ac_word... " >&6; } 7435if ${ac_cv_prog_AR+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 if test -n "$AR"; then 7439 ac_cv_prog_AR="$AR" # Let the user override the test. 7440else 7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7442for as_dir in $PATH 7443do 7444 IFS=$as_save_IFS 7445 test -z "$as_dir" && as_dir=. 7446 for ac_exec_ext in '' $ac_executable_extensions; do 7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7448 ac_cv_prog_AR="${ac_tool_prefix}ar" 7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7450 break 2 7451 fi 7452done 7453 done 7454IFS=$as_save_IFS 7455 7456fi 7457fi 7458AR=$ac_cv_prog_AR 7459if test -n "$AR"; then 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7461$as_echo "$AR" >&6; } 7462else 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7464$as_echo "no" >&6; } 7465fi 7466 7467 7468fi 7469if test -z "$ac_cv_prog_AR"; then 7470 ac_ct_AR=$AR 7471 # Extract the first word of "ar", so it can be a program name with args. 7472set dummy ar; ac_word=$2 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474$as_echo_n "checking for $ac_word... " >&6; } 7475if ${ac_cv_prog_ac_ct_AR+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477else 7478 if test -n "$ac_ct_AR"; then 7479 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7480else 7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7482for as_dir in $PATH 7483do 7484 IFS=$as_save_IFS 7485 test -z "$as_dir" && as_dir=. 7486 for ac_exec_ext in '' $ac_executable_extensions; do 7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7488 ac_cv_prog_ac_ct_AR="ar" 7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7490 break 2 7491 fi 7492done 7493 done 7494IFS=$as_save_IFS 7495 7496fi 7497fi 7498ac_ct_AR=$ac_cv_prog_ac_ct_AR 7499if test -n "$ac_ct_AR"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7501$as_echo "$ac_ct_AR" >&6; } 7502else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504$as_echo "no" >&6; } 7505fi 7506 7507 if test "x$ac_ct_AR" = x; then 7508 AR="false" 7509 else 7510 case $cross_compiling:$ac_tool_warned in 7511yes:) 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7514ac_tool_warned=yes ;; 7515esac 7516 AR=$ac_ct_AR 7517 fi 7518else 7519 AR="$ac_cv_prog_AR" 7520fi 7521 7522test -z "$AR" && AR=ar 7523test -z "$AR_FLAGS" && AR_FLAGS=cru 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535if test -n "$ac_tool_prefix"; then 7536 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7537set dummy ${ac_tool_prefix}strip; ac_word=$2 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7539$as_echo_n "checking for $ac_word... " >&6; } 7540if ${ac_cv_prog_STRIP+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 if test -n "$STRIP"; then 7544 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7545else 7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7547for as_dir in $PATH 7548do 7549 IFS=$as_save_IFS 7550 test -z "$as_dir" && as_dir=. 7551 for ac_exec_ext in '' $ac_executable_extensions; do 7552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7553 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7555 break 2 7556 fi 7557done 7558 done 7559IFS=$as_save_IFS 7560 7561fi 7562fi 7563STRIP=$ac_cv_prog_STRIP 7564if test -n "$STRIP"; then 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7566$as_echo "$STRIP" >&6; } 7567else 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7569$as_echo "no" >&6; } 7570fi 7571 7572 7573fi 7574if test -z "$ac_cv_prog_STRIP"; then 7575 ac_ct_STRIP=$STRIP 7576 # Extract the first word of "strip", so it can be a program name with args. 7577set dummy strip; ac_word=$2 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7579$as_echo_n "checking for $ac_word... " >&6; } 7580if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582else 7583 if test -n "$ac_ct_STRIP"; then 7584 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7585else 7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7587for as_dir in $PATH 7588do 7589 IFS=$as_save_IFS 7590 test -z "$as_dir" && as_dir=. 7591 for ac_exec_ext in '' $ac_executable_extensions; do 7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7593 ac_cv_prog_ac_ct_STRIP="strip" 7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7595 break 2 7596 fi 7597done 7598 done 7599IFS=$as_save_IFS 7600 7601fi 7602fi 7603ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7604if test -n "$ac_ct_STRIP"; then 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7606$as_echo "$ac_ct_STRIP" >&6; } 7607else 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7609$as_echo "no" >&6; } 7610fi 7611 7612 if test "x$ac_ct_STRIP" = x; then 7613 STRIP=":" 7614 else 7615 case $cross_compiling:$ac_tool_warned in 7616yes:) 7617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7619ac_tool_warned=yes ;; 7620esac 7621 STRIP=$ac_ct_STRIP 7622 fi 7623else 7624 STRIP="$ac_cv_prog_STRIP" 7625fi 7626 7627test -z "$STRIP" && STRIP=: 7628 7629 7630 7631 7632 7633 7634if test -n "$ac_tool_prefix"; then 7635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7636set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7638$as_echo_n "checking for $ac_word... " >&6; } 7639if ${ac_cv_prog_RANLIB+:} false; then : 7640 $as_echo_n "(cached) " >&6 7641else 7642 if test -n "$RANLIB"; then 7643 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7644else 7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7646for as_dir in $PATH 7647do 7648 IFS=$as_save_IFS 7649 test -z "$as_dir" && as_dir=. 7650 for ac_exec_ext in '' $ac_executable_extensions; do 7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7652 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7654 break 2 7655 fi 7656done 7657 done 7658IFS=$as_save_IFS 7659 7660fi 7661fi 7662RANLIB=$ac_cv_prog_RANLIB 7663if test -n "$RANLIB"; then 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7665$as_echo "$RANLIB" >&6; } 7666else 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7668$as_echo "no" >&6; } 7669fi 7670 7671 7672fi 7673if test -z "$ac_cv_prog_RANLIB"; then 7674 ac_ct_RANLIB=$RANLIB 7675 # Extract the first word of "ranlib", so it can be a program name with args. 7676set dummy ranlib; ac_word=$2 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7678$as_echo_n "checking for $ac_word... " >&6; } 7679if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7680 $as_echo_n "(cached) " >&6 7681else 7682 if test -n "$ac_ct_RANLIB"; then 7683 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7684else 7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7686for as_dir in $PATH 7687do 7688 IFS=$as_save_IFS 7689 test -z "$as_dir" && as_dir=. 7690 for ac_exec_ext in '' $ac_executable_extensions; do 7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7692 ac_cv_prog_ac_ct_RANLIB="ranlib" 7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7694 break 2 7695 fi 7696done 7697 done 7698IFS=$as_save_IFS 7699 7700fi 7701fi 7702ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7703if test -n "$ac_ct_RANLIB"; then 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7705$as_echo "$ac_ct_RANLIB" >&6; } 7706else 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708$as_echo "no" >&6; } 7709fi 7710 7711 if test "x$ac_ct_RANLIB" = x; then 7712 RANLIB=":" 7713 else 7714 case $cross_compiling:$ac_tool_warned in 7715yes:) 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7718ac_tool_warned=yes ;; 7719esac 7720 RANLIB=$ac_ct_RANLIB 7721 fi 7722else 7723 RANLIB="$ac_cv_prog_RANLIB" 7724fi 7725 7726test -z "$RANLIB" && RANLIB=: 7727 7728 7729 7730 7731 7732 7733# Determine commands to create old-style static archives. 7734old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7735old_postinstall_cmds='chmod 644 $oldlib' 7736old_postuninstall_cmds= 7737 7738if test -n "$RANLIB"; then 7739 case $host_os in 7740 openbsd*) 7741 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7742 ;; 7743 *) 7744 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7745 ;; 7746 esac 7747 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7748fi 7749 7750case $host_os in 7751 darwin*) 7752 lock_old_archive_extraction=yes ;; 7753 *) 7754 lock_old_archive_extraction=no ;; 7755esac 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795# If no C compiler was specified, use CC. 7796LTCC=${LTCC-"$CC"} 7797 7798# If no C compiler flags were specified, use CFLAGS. 7799LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7800 7801# Allow CC to be a program name with arguments. 7802compiler=$CC 7803 7804 7805# Check for command to grab the raw symbol name followed by C symbol from nm. 7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7807$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7808if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7809 $as_echo_n "(cached) " >&6 7810else 7811 7812# These are sane defaults that work on at least a few old systems. 7813# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7814 7815# Character class describing NM global symbol codes. 7816symcode='[BCDEGRST]' 7817 7818# Regexp to match symbols that can be accessed directly from C. 7819sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7820 7821# Define system-specific variables. 7822case $host_os in 7823aix*) 7824 symcode='[BCDT]' 7825 ;; 7826cygwin* | mingw* | pw32* | cegcc*) 7827 symcode='[ABCDGISTW]' 7828 ;; 7829hpux*) 7830 if test "$host_cpu" = ia64; then 7831 symcode='[ABCDEGRST]' 7832 fi 7833 ;; 7834irix* | nonstopux*) 7835 symcode='[BCDEGRST]' 7836 ;; 7837osf*) 7838 symcode='[BCDEGQRST]' 7839 ;; 7840solaris*) 7841 symcode='[BDRT]' 7842 ;; 7843sco3.2v5*) 7844 symcode='[DT]' 7845 ;; 7846sysv4.2uw2*) 7847 symcode='[DT]' 7848 ;; 7849sysv5* | sco5v6* | unixware* | OpenUNIX*) 7850 symcode='[ABDT]' 7851 ;; 7852sysv4) 7853 symcode='[DFNSTU]' 7854 ;; 7855esac 7856 7857# If we're using GNU nm, then use its standard symbol codes. 7858case `$NM -V 2>&1` in 7859*GNU* | *'with BFD'*) 7860 symcode='[ABCDGIRSTW]' ;; 7861esac 7862 7863# Transform an extracted symbol line into a proper C declaration. 7864# Some systems (esp. on ia64) link data and code symbols differently, 7865# so use this general approach. 7866lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7867 7868# Transform an extracted symbol line into symbol name and symbol address 7869lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7870lt_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'" 7871 7872# Handle CRLF in mingw tool chain 7873opt_cr= 7874case $build_os in 7875mingw*) 7876 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7877 ;; 7878esac 7879 7880# Try without a prefix underscore, then with it. 7881for ac_symprfx in "" "_"; do 7882 7883 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7884 symxfrm="\\1 $ac_symprfx\\2 \\2" 7885 7886 # Write the raw and C identifiers. 7887 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7888 # Fake it for dumpbin and say T for any non-static function 7889 # and D for any global variable. 7890 # Also find C++ and __fastcall symbols from MSVC++, 7891 # which start with @ or ?. 7892 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7893" {last_section=section; section=\$ 3};"\ 7894" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7895" \$ 0!~/External *\|/{next};"\ 7896" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7897" {if(hide[section]) next};"\ 7898" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7899" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7900" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7901" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7902" ' prfx=^$ac_symprfx" 7903 else 7904 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7905 fi 7906 7907 # Check to see that the pipe works correctly. 7908 pipe_works=no 7909 7910 rm -f conftest* 7911 cat > conftest.$ac_ext <<_LT_EOF 7912#ifdef __cplusplus 7913extern "C" { 7914#endif 7915char nm_test_var; 7916void nm_test_func(void); 7917void nm_test_func(void){} 7918#ifdef __cplusplus 7919} 7920#endif 7921int main(){nm_test_var='a';nm_test_func();return(0);} 7922_LT_EOF 7923 7924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7925 (eval $ac_compile) 2>&5 7926 ac_status=$? 7927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7928 test $ac_status = 0; }; then 7929 # Now try to grab the symbols. 7930 nlist=conftest.nm 7931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7932 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7933 ac_status=$? 7934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7935 test $ac_status = 0; } && test -s "$nlist"; then 7936 # Try sorting and uniquifying the output. 7937 if sort "$nlist" | uniq > "$nlist"T; then 7938 mv -f "$nlist"T "$nlist" 7939 else 7940 rm -f "$nlist"T 7941 fi 7942 7943 # Make sure that we snagged all the symbols we need. 7944 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7945 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7946 cat <<_LT_EOF > conftest.$ac_ext 7947#ifdef __cplusplus 7948extern "C" { 7949#endif 7950 7951_LT_EOF 7952 # Now generate the symbol file. 7953 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7954 7955 cat <<_LT_EOF >> conftest.$ac_ext 7956 7957/* The mapping between symbol names and symbols. */ 7958const struct { 7959 const char *name; 7960 void *address; 7961} 7962lt__PROGRAM__LTX_preloaded_symbols[] = 7963{ 7964 { "@PROGRAM@", (void *) 0 }, 7965_LT_EOF 7966 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7967 cat <<\_LT_EOF >> conftest.$ac_ext 7968 {0, (void *) 0} 7969}; 7970 7971/* This works around a problem in FreeBSD linker */ 7972#ifdef FREEBSD_WORKAROUND 7973static const void *lt_preloaded_setup() { 7974 return lt__PROGRAM__LTX_preloaded_symbols; 7975} 7976#endif 7977 7978#ifdef __cplusplus 7979} 7980#endif 7981_LT_EOF 7982 # Now try linking the two files. 7983 mv conftest.$ac_objext conftstm.$ac_objext 7984 lt_save_LIBS="$LIBS" 7985 lt_save_CFLAGS="$CFLAGS" 7986 LIBS="conftstm.$ac_objext" 7987 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7989 (eval $ac_link) 2>&5 7990 ac_status=$? 7991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7992 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7993 pipe_works=yes 7994 fi 7995 LIBS="$lt_save_LIBS" 7996 CFLAGS="$lt_save_CFLAGS" 7997 else 7998 echo "cannot find nm_test_func in $nlist" >&5 7999 fi 8000 else 8001 echo "cannot find nm_test_var in $nlist" >&5 8002 fi 8003 else 8004 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8005 fi 8006 else 8007 echo "$progname: failed program was:" >&5 8008 cat conftest.$ac_ext >&5 8009 fi 8010 rm -rf conftest* conftst* 8011 8012 # Do not use the global_symbol_pipe unless it works. 8013 if test "$pipe_works" = yes; then 8014 break 8015 else 8016 lt_cv_sys_global_symbol_pipe= 8017 fi 8018done 8019 8020fi 8021 8022if test -z "$lt_cv_sys_global_symbol_pipe"; then 8023 lt_cv_sys_global_symbol_to_cdecl= 8024fi 8025if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8027$as_echo "failed" >&6; } 8028else 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8030$as_echo "ok" >&6; } 8031fi 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054# Check whether --enable-libtool-lock was given. 8055if test "${enable_libtool_lock+set}" = set; then : 8056 enableval=$enable_libtool_lock; 8057fi 8058 8059test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8060 8061# Some flags need to be propagated to the compiler or linker for good 8062# libtool support. 8063case $host in 8064ia64-*-hpux*) 8065 # Find out which ABI we are using. 8066 echo 'int i;' > conftest.$ac_ext 8067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8068 (eval $ac_compile) 2>&5 8069 ac_status=$? 8070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8071 test $ac_status = 0; }; then 8072 case `/usr/bin/file conftest.$ac_objext` in 8073 *ELF-32*) 8074 HPUX_IA64_MODE="32" 8075 ;; 8076 *ELF-64*) 8077 HPUX_IA64_MODE="64" 8078 ;; 8079 esac 8080 fi 8081 rm -rf conftest* 8082 ;; 8083*-*-irix6*) 8084 # Find out which ABI we are using. 8085 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8087 (eval $ac_compile) 2>&5 8088 ac_status=$? 8089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8090 test $ac_status = 0; }; then 8091 if test "$lt_cv_prog_gnu_ld" = yes; then 8092 case `/usr/bin/file conftest.$ac_objext` in 8093 *32-bit*) 8094 LD="${LD-ld} -melf32bsmip" 8095 ;; 8096 *N32*) 8097 LD="${LD-ld} -melf32bmipn32" 8098 ;; 8099 *64-bit*) 8100 LD="${LD-ld} -melf64bmip" 8101 ;; 8102 esac 8103 else 8104 case `/usr/bin/file conftest.$ac_objext` in 8105 *32-bit*) 8106 LD="${LD-ld} -32" 8107 ;; 8108 *N32*) 8109 LD="${LD-ld} -n32" 8110 ;; 8111 *64-bit*) 8112 LD="${LD-ld} -64" 8113 ;; 8114 esac 8115 fi 8116 fi 8117 rm -rf conftest* 8118 ;; 8119 8120x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8121s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8122 # Find out which ABI we are using. 8123 echo 'int i;' > conftest.$ac_ext 8124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8125 (eval $ac_compile) 2>&5 8126 ac_status=$? 8127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8128 test $ac_status = 0; }; then 8129 case `/usr/bin/file conftest.o` in 8130 *32-bit*) 8131 case $host in 8132 x86_64-*kfreebsd*-gnu) 8133 LD="${LD-ld} -m elf_i386_fbsd" 8134 ;; 8135 x86_64-*linux*) 8136 case `/usr/bin/file conftest.o` in 8137 *x86-64*) 8138 LD="${LD-ld} -m elf32_x86_64" 8139 ;; 8140 *) 8141 LD="${LD-ld} -m elf_i386" 8142 ;; 8143 esac 8144 ;; 8145 powerpc64le-*linux*) 8146 LD="${LD-ld} -m elf32lppclinux" 8147 ;; 8148 powerpc64-*linux*) 8149 LD="${LD-ld} -m elf32ppclinux" 8150 ;; 8151 s390x-*linux*) 8152 LD="${LD-ld} -m elf_s390" 8153 ;; 8154 sparc64-*linux*) 8155 LD="${LD-ld} -m elf32_sparc" 8156 ;; 8157 esac 8158 ;; 8159 *64-bit*) 8160 case $host in 8161 x86_64-*kfreebsd*-gnu) 8162 LD="${LD-ld} -m elf_x86_64_fbsd" 8163 ;; 8164 x86_64-*linux*) 8165 LD="${LD-ld} -m elf_x86_64" 8166 ;; 8167 powerpcle-*linux*) 8168 LD="${LD-ld} -m elf64lppc" 8169 ;; 8170 powerpc-*linux*) 8171 LD="${LD-ld} -m elf64ppc" 8172 ;; 8173 s390*-*linux*|s390*-*tpf*) 8174 LD="${LD-ld} -m elf64_s390" 8175 ;; 8176 sparc*-*linux*) 8177 LD="${LD-ld} -m elf64_sparc" 8178 ;; 8179 esac 8180 ;; 8181 esac 8182 fi 8183 rm -rf conftest* 8184 ;; 8185 8186*-*-sco3.2v5*) 8187 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8188 SAVE_CFLAGS="$CFLAGS" 8189 CFLAGS="$CFLAGS -belf" 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8191$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8192if ${lt_cv_cc_needs_belf+:} false; then : 8193 $as_echo_n "(cached) " >&6 8194else 8195 ac_ext=c 8196ac_cpp='$CPP $CPPFLAGS' 8197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8199ac_compiler_gnu=$ac_cv_c_compiler_gnu 8200 8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203 8204int 8205main () 8206{ 8207 8208 ; 8209 return 0; 8210} 8211_ACEOF 8212if ac_fn_c_try_link "$LINENO"; then : 8213 lt_cv_cc_needs_belf=yes 8214else 8215 lt_cv_cc_needs_belf=no 8216fi 8217rm -f core conftest.err conftest.$ac_objext \ 8218 conftest$ac_exeext conftest.$ac_ext 8219 ac_ext=c 8220ac_cpp='$CPP $CPPFLAGS' 8221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8223ac_compiler_gnu=$ac_cv_c_compiler_gnu 8224 8225fi 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8227$as_echo "$lt_cv_cc_needs_belf" >&6; } 8228 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8229 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8230 CFLAGS="$SAVE_CFLAGS" 8231 fi 8232 ;; 8233sparc*-*solaris*) 8234 # Find out which ABI we are using. 8235 echo 'int i;' > conftest.$ac_ext 8236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8237 (eval $ac_compile) 2>&5 8238 ac_status=$? 8239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8240 test $ac_status = 0; }; then 8241 case `/usr/bin/file conftest.o` in 8242 *64-bit*) 8243 case $lt_cv_prog_gnu_ld in 8244 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8245 *) 8246 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8247 LD="${LD-ld} -64" 8248 fi 8249 ;; 8250 esac 8251 ;; 8252 esac 8253 fi 8254 rm -rf conftest* 8255 ;; 8256esac 8257 8258need_locks="$enable_libtool_lock" 8259 8260 8261 case $host_os in 8262 rhapsody* | darwin*) 8263 if test -n "$ac_tool_prefix"; then 8264 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8265set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8267$as_echo_n "checking for $ac_word... " >&6; } 8268if ${ac_cv_prog_DSYMUTIL+:} false; then : 8269 $as_echo_n "(cached) " >&6 8270else 8271 if test -n "$DSYMUTIL"; then 8272 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8273else 8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8275for as_dir in $PATH 8276do 8277 IFS=$as_save_IFS 8278 test -z "$as_dir" && as_dir=. 8279 for ac_exec_ext in '' $ac_executable_extensions; do 8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8281 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8283 break 2 8284 fi 8285done 8286 done 8287IFS=$as_save_IFS 8288 8289fi 8290fi 8291DSYMUTIL=$ac_cv_prog_DSYMUTIL 8292if test -n "$DSYMUTIL"; then 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8294$as_echo "$DSYMUTIL" >&6; } 8295else 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8297$as_echo "no" >&6; } 8298fi 8299 8300 8301fi 8302if test -z "$ac_cv_prog_DSYMUTIL"; then 8303 ac_ct_DSYMUTIL=$DSYMUTIL 8304 # Extract the first word of "dsymutil", so it can be a program name with args. 8305set dummy dsymutil; ac_word=$2 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8307$as_echo_n "checking for $ac_word... " >&6; } 8308if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8309 $as_echo_n "(cached) " >&6 8310else 8311 if test -n "$ac_ct_DSYMUTIL"; then 8312 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8313else 8314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8315for as_dir in $PATH 8316do 8317 IFS=$as_save_IFS 8318 test -z "$as_dir" && as_dir=. 8319 for ac_exec_ext in '' $ac_executable_extensions; do 8320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8321 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8323 break 2 8324 fi 8325done 8326 done 8327IFS=$as_save_IFS 8328 8329fi 8330fi 8331ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8332if test -n "$ac_ct_DSYMUTIL"; then 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8334$as_echo "$ac_ct_DSYMUTIL" >&6; } 8335else 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8337$as_echo "no" >&6; } 8338fi 8339 8340 if test "x$ac_ct_DSYMUTIL" = x; then 8341 DSYMUTIL=":" 8342 else 8343 case $cross_compiling:$ac_tool_warned in 8344yes:) 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8347ac_tool_warned=yes ;; 8348esac 8349 DSYMUTIL=$ac_ct_DSYMUTIL 8350 fi 8351else 8352 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8353fi 8354 8355 if test -n "$ac_tool_prefix"; then 8356 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8357set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8359$as_echo_n "checking for $ac_word... " >&6; } 8360if ${ac_cv_prog_NMEDIT+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 if test -n "$NMEDIT"; then 8364 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8365else 8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8367for as_dir in $PATH 8368do 8369 IFS=$as_save_IFS 8370 test -z "$as_dir" && as_dir=. 8371 for ac_exec_ext in '' $ac_executable_extensions; do 8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8373 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8375 break 2 8376 fi 8377done 8378 done 8379IFS=$as_save_IFS 8380 8381fi 8382fi 8383NMEDIT=$ac_cv_prog_NMEDIT 8384if test -n "$NMEDIT"; then 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8386$as_echo "$NMEDIT" >&6; } 8387else 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8389$as_echo "no" >&6; } 8390fi 8391 8392 8393fi 8394if test -z "$ac_cv_prog_NMEDIT"; then 8395 ac_ct_NMEDIT=$NMEDIT 8396 # Extract the first word of "nmedit", so it can be a program name with args. 8397set dummy nmedit; ac_word=$2 8398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8399$as_echo_n "checking for $ac_word... " >&6; } 8400if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8401 $as_echo_n "(cached) " >&6 8402else 8403 if test -n "$ac_ct_NMEDIT"; then 8404 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8405else 8406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8407for as_dir in $PATH 8408do 8409 IFS=$as_save_IFS 8410 test -z "$as_dir" && as_dir=. 8411 for ac_exec_ext in '' $ac_executable_extensions; do 8412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8413 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8415 break 2 8416 fi 8417done 8418 done 8419IFS=$as_save_IFS 8420 8421fi 8422fi 8423ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8424if test -n "$ac_ct_NMEDIT"; then 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8426$as_echo "$ac_ct_NMEDIT" >&6; } 8427else 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8429$as_echo "no" >&6; } 8430fi 8431 8432 if test "x$ac_ct_NMEDIT" = x; then 8433 NMEDIT=":" 8434 else 8435 case $cross_compiling:$ac_tool_warned in 8436yes:) 8437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8439ac_tool_warned=yes ;; 8440esac 8441 NMEDIT=$ac_ct_NMEDIT 8442 fi 8443else 8444 NMEDIT="$ac_cv_prog_NMEDIT" 8445fi 8446 8447 if test -n "$ac_tool_prefix"; then 8448 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8449set dummy ${ac_tool_prefix}lipo; ac_word=$2 8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8451$as_echo_n "checking for $ac_word... " >&6; } 8452if ${ac_cv_prog_LIPO+:} false; then : 8453 $as_echo_n "(cached) " >&6 8454else 8455 if test -n "$LIPO"; then 8456 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8457else 8458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8459for as_dir in $PATH 8460do 8461 IFS=$as_save_IFS 8462 test -z "$as_dir" && as_dir=. 8463 for ac_exec_ext in '' $ac_executable_extensions; do 8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8465 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8467 break 2 8468 fi 8469done 8470 done 8471IFS=$as_save_IFS 8472 8473fi 8474fi 8475LIPO=$ac_cv_prog_LIPO 8476if test -n "$LIPO"; then 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8478$as_echo "$LIPO" >&6; } 8479else 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8481$as_echo "no" >&6; } 8482fi 8483 8484 8485fi 8486if test -z "$ac_cv_prog_LIPO"; then 8487 ac_ct_LIPO=$LIPO 8488 # Extract the first word of "lipo", so it can be a program name with args. 8489set dummy lipo; ac_word=$2 8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8491$as_echo_n "checking for $ac_word... " >&6; } 8492if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8493 $as_echo_n "(cached) " >&6 8494else 8495 if test -n "$ac_ct_LIPO"; then 8496 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8497else 8498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8499for as_dir in $PATH 8500do 8501 IFS=$as_save_IFS 8502 test -z "$as_dir" && as_dir=. 8503 for ac_exec_ext in '' $ac_executable_extensions; do 8504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8505 ac_cv_prog_ac_ct_LIPO="lipo" 8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8507 break 2 8508 fi 8509done 8510 done 8511IFS=$as_save_IFS 8512 8513fi 8514fi 8515ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8516if test -n "$ac_ct_LIPO"; then 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8518$as_echo "$ac_ct_LIPO" >&6; } 8519else 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8521$as_echo "no" >&6; } 8522fi 8523 8524 if test "x$ac_ct_LIPO" = x; then 8525 LIPO=":" 8526 else 8527 case $cross_compiling:$ac_tool_warned in 8528yes:) 8529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8531ac_tool_warned=yes ;; 8532esac 8533 LIPO=$ac_ct_LIPO 8534 fi 8535else 8536 LIPO="$ac_cv_prog_LIPO" 8537fi 8538 8539 if test -n "$ac_tool_prefix"; then 8540 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8541set dummy ${ac_tool_prefix}otool; ac_word=$2 8542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8543$as_echo_n "checking for $ac_word... " >&6; } 8544if ${ac_cv_prog_OTOOL+:} false; then : 8545 $as_echo_n "(cached) " >&6 8546else 8547 if test -n "$OTOOL"; then 8548 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8549else 8550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8551for as_dir in $PATH 8552do 8553 IFS=$as_save_IFS 8554 test -z "$as_dir" && as_dir=. 8555 for ac_exec_ext in '' $ac_executable_extensions; do 8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8557 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8559 break 2 8560 fi 8561done 8562 done 8563IFS=$as_save_IFS 8564 8565fi 8566fi 8567OTOOL=$ac_cv_prog_OTOOL 8568if test -n "$OTOOL"; then 8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8570$as_echo "$OTOOL" >&6; } 8571else 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8573$as_echo "no" >&6; } 8574fi 8575 8576 8577fi 8578if test -z "$ac_cv_prog_OTOOL"; then 8579 ac_ct_OTOOL=$OTOOL 8580 # Extract the first word of "otool", so it can be a program name with args. 8581set dummy otool; ac_word=$2 8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8583$as_echo_n "checking for $ac_word... " >&6; } 8584if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8585 $as_echo_n "(cached) " >&6 8586else 8587 if test -n "$ac_ct_OTOOL"; then 8588 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8589else 8590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8591for as_dir in $PATH 8592do 8593 IFS=$as_save_IFS 8594 test -z "$as_dir" && as_dir=. 8595 for ac_exec_ext in '' $ac_executable_extensions; do 8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8597 ac_cv_prog_ac_ct_OTOOL="otool" 8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8599 break 2 8600 fi 8601done 8602 done 8603IFS=$as_save_IFS 8604 8605fi 8606fi 8607ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8608if test -n "$ac_ct_OTOOL"; then 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8610$as_echo "$ac_ct_OTOOL" >&6; } 8611else 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8613$as_echo "no" >&6; } 8614fi 8615 8616 if test "x$ac_ct_OTOOL" = x; then 8617 OTOOL=":" 8618 else 8619 case $cross_compiling:$ac_tool_warned in 8620yes:) 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8623ac_tool_warned=yes ;; 8624esac 8625 OTOOL=$ac_ct_OTOOL 8626 fi 8627else 8628 OTOOL="$ac_cv_prog_OTOOL" 8629fi 8630 8631 if test -n "$ac_tool_prefix"; then 8632 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8633set dummy ${ac_tool_prefix}otool64; ac_word=$2 8634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8635$as_echo_n "checking for $ac_word... " >&6; } 8636if ${ac_cv_prog_OTOOL64+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638else 8639 if test -n "$OTOOL64"; then 8640 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8641else 8642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8643for as_dir in $PATH 8644do 8645 IFS=$as_save_IFS 8646 test -z "$as_dir" && as_dir=. 8647 for ac_exec_ext in '' $ac_executable_extensions; do 8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8649 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8651 break 2 8652 fi 8653done 8654 done 8655IFS=$as_save_IFS 8656 8657fi 8658fi 8659OTOOL64=$ac_cv_prog_OTOOL64 8660if test -n "$OTOOL64"; then 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8662$as_echo "$OTOOL64" >&6; } 8663else 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8665$as_echo "no" >&6; } 8666fi 8667 8668 8669fi 8670if test -z "$ac_cv_prog_OTOOL64"; then 8671 ac_ct_OTOOL64=$OTOOL64 8672 # Extract the first word of "otool64", so it can be a program name with args. 8673set dummy otool64; ac_word=$2 8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8675$as_echo_n "checking for $ac_word... " >&6; } 8676if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8677 $as_echo_n "(cached) " >&6 8678else 8679 if test -n "$ac_ct_OTOOL64"; then 8680 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8681else 8682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8683for as_dir in $PATH 8684do 8685 IFS=$as_save_IFS 8686 test -z "$as_dir" && as_dir=. 8687 for ac_exec_ext in '' $ac_executable_extensions; do 8688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8689 ac_cv_prog_ac_ct_OTOOL64="otool64" 8690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8691 break 2 8692 fi 8693done 8694 done 8695IFS=$as_save_IFS 8696 8697fi 8698fi 8699ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8700if test -n "$ac_ct_OTOOL64"; then 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8702$as_echo "$ac_ct_OTOOL64" >&6; } 8703else 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8705$as_echo "no" >&6; } 8706fi 8707 8708 if test "x$ac_ct_OTOOL64" = x; then 8709 OTOOL64=":" 8710 else 8711 case $cross_compiling:$ac_tool_warned in 8712yes:) 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8715ac_tool_warned=yes ;; 8716esac 8717 OTOOL64=$ac_ct_OTOOL64 8718 fi 8719else 8720 OTOOL64="$ac_cv_prog_OTOOL64" 8721fi 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8750$as_echo_n "checking for -single_module linker flag... " >&6; } 8751if ${lt_cv_apple_cc_single_mod+:} false; then : 8752 $as_echo_n "(cached) " >&6 8753else 8754 lt_cv_apple_cc_single_mod=no 8755 if test -z "${LT_MULTI_MODULE}"; then 8756 # By default we will add the -single_module flag. You can override 8757 # by either setting the environment variable LT_MULTI_MODULE 8758 # non-empty at configure time, or by adding -multi_module to the 8759 # link flags. 8760 rm -rf libconftest.dylib* 8761 echo "int foo(void){return 1;}" > conftest.c 8762 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8763-dynamiclib -Wl,-single_module conftest.c" >&5 8764 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8765 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8766 _lt_result=$? 8767 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8768 lt_cv_apple_cc_single_mod=yes 8769 else 8770 cat conftest.err >&5 8771 fi 8772 rm -rf libconftest.dylib* 8773 rm -f conftest.* 8774 fi 8775fi 8776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8777$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8779$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8780if ${lt_cv_ld_exported_symbols_list+:} false; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 lt_cv_ld_exported_symbols_list=no 8784 save_LDFLAGS=$LDFLAGS 8785 echo "_main" > conftest.sym 8786 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8788/* end confdefs.h. */ 8789 8790int 8791main () 8792{ 8793 8794 ; 8795 return 0; 8796} 8797_ACEOF 8798if ac_fn_c_try_link "$LINENO"; then : 8799 lt_cv_ld_exported_symbols_list=yes 8800else 8801 lt_cv_ld_exported_symbols_list=no 8802fi 8803rm -f core conftest.err conftest.$ac_objext \ 8804 conftest$ac_exeext conftest.$ac_ext 8805 LDFLAGS="$save_LDFLAGS" 8806 8807fi 8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8809$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8811$as_echo_n "checking for -force_load linker flag... " >&6; } 8812if ${lt_cv_ld_force_load+:} false; then : 8813 $as_echo_n "(cached) " >&6 8814else 8815 lt_cv_ld_force_load=no 8816 cat > conftest.c << _LT_EOF 8817int forced_loaded() { return 2;} 8818_LT_EOF 8819 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8820 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8821 echo "$AR cru libconftest.a conftest.o" >&5 8822 $AR cru libconftest.a conftest.o 2>&5 8823 cat > conftest.c << _LT_EOF 8824int main() { return 0;} 8825_LT_EOF 8826 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8827 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8828 _lt_result=$? 8829 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8830 lt_cv_ld_force_load=yes 8831 else 8832 cat conftest.err >&5 8833 fi 8834 rm -f conftest.err libconftest.a conftest conftest.c 8835 rm -rf conftest.dSYM 8836 8837fi 8838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8839$as_echo "$lt_cv_ld_force_load" >&6; } 8840 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 8841 # build without first building modern cctools / linker. 8842 case $host_cpu-$host_os in 8843 *-rhapsody* | *-darwin1.[012]) 8844 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8845 *-darwin1.*) 8846 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8847 *-darwin*) 8848 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 8849 # deployment target is forced to an earlier version. 8850 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 8851 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 8852 ;; 8853 10.[012][,.]*) 8854 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8855 ;; 8856 *) 8857 ;; 8858 esac 8859 ;; 8860 esac 8861 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8862 _lt_dar_single_mod='$single_module' 8863 fi 8864 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8865 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8866 else 8867 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8868 fi 8869 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8870 _lt_dsymutil='~$DSYMUTIL $lib || :' 8871 else 8872 _lt_dsymutil= 8873 fi 8874 ;; 8875 esac 8876 8877for ac_header in dlfcn.h 8878do : 8879 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8880" 8881if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8882 cat >>confdefs.h <<_ACEOF 8883#define HAVE_DLFCN_H 1 8884_ACEOF 8885 8886fi 8887 8888done 8889 8890 8891 8892 8893 8894 8895# Set options 8896 8897 8898 8899 8900 enable_win32_dll=no 8901 8902 8903 # Check whether --enable-shared was given. 8904if test "${enable_shared+set}" = set; then : 8905 enableval=$enable_shared; p=${PACKAGE-default} 8906 case $enableval in 8907 yes) enable_shared=yes ;; 8908 no) enable_shared=no ;; 8909 *) 8910 enable_shared=no 8911 # Look at the argument we got. We use all the common list separators. 8912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8913 for pkg in $enableval; do 8914 IFS="$lt_save_ifs" 8915 if test "X$pkg" = "X$p"; then 8916 enable_shared=yes 8917 fi 8918 done 8919 IFS="$lt_save_ifs" 8920 ;; 8921 esac 8922else 8923 enable_shared=yes 8924fi 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 # Check whether --enable-static was given. 8935if test "${enable_static+set}" = set; then : 8936 enableval=$enable_static; p=${PACKAGE-default} 8937 case $enableval in 8938 yes) enable_static=yes ;; 8939 no) enable_static=no ;; 8940 *) 8941 enable_static=no 8942 # Look at the argument we got. We use all the common list separators. 8943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8944 for pkg in $enableval; do 8945 IFS="$lt_save_ifs" 8946 if test "X$pkg" = "X$p"; then 8947 enable_static=yes 8948 fi 8949 done 8950 IFS="$lt_save_ifs" 8951 ;; 8952 esac 8953else 8954 enable_static=yes 8955fi 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966# Check whether --with-pic was given. 8967if test "${with_pic+set}" = set; then : 8968 withval=$with_pic; pic_mode="$withval" 8969else 8970 pic_mode=default 8971fi 8972 8973 8974test -z "$pic_mode" && pic_mode=default 8975 8976 8977 8978 8979 8980 8981 8982 # Check whether --enable-fast-install was given. 8983if test "${enable_fast_install+set}" = set; then : 8984 enableval=$enable_fast_install; p=${PACKAGE-default} 8985 case $enableval in 8986 yes) enable_fast_install=yes ;; 8987 no) enable_fast_install=no ;; 8988 *) 8989 enable_fast_install=no 8990 # Look at the argument we got. We use all the common list separators. 8991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8992 for pkg in $enableval; do 8993 IFS="$lt_save_ifs" 8994 if test "X$pkg" = "X$p"; then 8995 enable_fast_install=yes 8996 fi 8997 done 8998 IFS="$lt_save_ifs" 8999 ;; 9000 esac 9001else 9002 enable_fast_install=yes 9003fi 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015# This can be used to rebuild libtool when needed 9016LIBTOOL_DEPS="$ltmain" 9017 9018# Always use our own libtool. 9019LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046test -z "$LN_S" && LN_S="ln -s" 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061if test -n "${ZSH_VERSION+set}" ; then 9062 setopt NO_GLOB_SUBST 9063fi 9064 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9066$as_echo_n "checking for objdir... " >&6; } 9067if ${lt_cv_objdir+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 rm -f .libs 2>/dev/null 9071mkdir .libs 2>/dev/null 9072if test -d .libs; then 9073 lt_cv_objdir=.libs 9074else 9075 # MS-DOS does not allow filenames that begin with a dot. 9076 lt_cv_objdir=_libs 9077fi 9078rmdir .libs 2>/dev/null 9079fi 9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9081$as_echo "$lt_cv_objdir" >&6; } 9082objdir=$lt_cv_objdir 9083 9084 9085 9086 9087 9088cat >>confdefs.h <<_ACEOF 9089#define LT_OBJDIR "$lt_cv_objdir/" 9090_ACEOF 9091 9092 9093 9094 9095case $host_os in 9096aix3*) 9097 # AIX sometimes has problems with the GCC collect2 program. For some 9098 # reason, if we set the COLLECT_NAMES environment variable, the problems 9099 # vanish in a puff of smoke. 9100 if test "X${COLLECT_NAMES+set}" != Xset; then 9101 COLLECT_NAMES= 9102 export COLLECT_NAMES 9103 fi 9104 ;; 9105esac 9106 9107# Global variables: 9108ofile=libtool 9109can_build_shared=yes 9110 9111# All known linkers require a `.a' archive for static linking (except MSVC, 9112# which needs '.lib'). 9113libext=a 9114 9115with_gnu_ld="$lt_cv_prog_gnu_ld" 9116 9117old_CC="$CC" 9118old_CFLAGS="$CFLAGS" 9119 9120# Set sane defaults for various variables 9121test -z "$CC" && CC=cc 9122test -z "$LTCC" && LTCC=$CC 9123test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9124test -z "$LD" && LD=ld 9125test -z "$ac_objext" && ac_objext=o 9126 9127for cc_temp in $compiler""; do 9128 case $cc_temp in 9129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9131 \-*) ;; 9132 *) break;; 9133 esac 9134done 9135cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9136 9137 9138# Only perform the check for file, if the check method requires it 9139test -z "$MAGIC_CMD" && MAGIC_CMD=file 9140case $deplibs_check_method in 9141file_magic*) 9142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9144$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9145if ${lt_cv_path_MAGIC_CMD+:} false; then : 9146 $as_echo_n "(cached) " >&6 9147else 9148 case $MAGIC_CMD in 9149[\\/*] | ?:[\\/]*) 9150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9151 ;; 9152*) 9153 lt_save_MAGIC_CMD="$MAGIC_CMD" 9154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9156 for ac_dir in $ac_dummy; do 9157 IFS="$lt_save_ifs" 9158 test -z "$ac_dir" && ac_dir=. 9159 if test -f $ac_dir/${ac_tool_prefix}file; then 9160 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9161 if test -n "$file_magic_test_file"; then 9162 case $deplibs_check_method in 9163 "file_magic "*) 9164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9167 $EGREP "$file_magic_regex" > /dev/null; then 9168 : 9169 else 9170 cat <<_LT_EOF 1>&2 9171 9172*** Warning: the command libtool uses to detect shared libraries, 9173*** $file_magic_cmd, produces output that libtool cannot recognize. 9174*** The result is that libtool may fail to recognize shared libraries 9175*** as such. This will affect the creation of libtool libraries that 9176*** depend on shared libraries, but programs linked with such libtool 9177*** libraries will work regardless of this problem. Nevertheless, you 9178*** may want to report the problem to your system manager and/or to 9179*** bug-libtool@gnu.org 9180 9181_LT_EOF 9182 fi ;; 9183 esac 9184 fi 9185 break 9186 fi 9187 done 9188 IFS="$lt_save_ifs" 9189 MAGIC_CMD="$lt_save_MAGIC_CMD" 9190 ;; 9191esac 9192fi 9193 9194MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9195if test -n "$MAGIC_CMD"; then 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9197$as_echo "$MAGIC_CMD" >&6; } 9198else 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9200$as_echo "no" >&6; } 9201fi 9202 9203 9204 9205 9206 9207if test -z "$lt_cv_path_MAGIC_CMD"; then 9208 if test -n "$ac_tool_prefix"; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9210$as_echo_n "checking for file... " >&6; } 9211if ${lt_cv_path_MAGIC_CMD+:} false; then : 9212 $as_echo_n "(cached) " >&6 9213else 9214 case $MAGIC_CMD in 9215[\\/*] | ?:[\\/]*) 9216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9217 ;; 9218*) 9219 lt_save_MAGIC_CMD="$MAGIC_CMD" 9220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9222 for ac_dir in $ac_dummy; do 9223 IFS="$lt_save_ifs" 9224 test -z "$ac_dir" && ac_dir=. 9225 if test -f $ac_dir/file; then 9226 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9227 if test -n "$file_magic_test_file"; then 9228 case $deplibs_check_method in 9229 "file_magic "*) 9230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9233 $EGREP "$file_magic_regex" > /dev/null; then 9234 : 9235 else 9236 cat <<_LT_EOF 1>&2 9237 9238*** Warning: the command libtool uses to detect shared libraries, 9239*** $file_magic_cmd, produces output that libtool cannot recognize. 9240*** The result is that libtool may fail to recognize shared libraries 9241*** as such. This will affect the creation of libtool libraries that 9242*** depend on shared libraries, but programs linked with such libtool 9243*** libraries will work regardless of this problem. Nevertheless, you 9244*** may want to report the problem to your system manager and/or to 9245*** bug-libtool@gnu.org 9246 9247_LT_EOF 9248 fi ;; 9249 esac 9250 fi 9251 break 9252 fi 9253 done 9254 IFS="$lt_save_ifs" 9255 MAGIC_CMD="$lt_save_MAGIC_CMD" 9256 ;; 9257esac 9258fi 9259 9260MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9261if test -n "$MAGIC_CMD"; then 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9263$as_echo "$MAGIC_CMD" >&6; } 9264else 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9266$as_echo "no" >&6; } 9267fi 9268 9269 9270 else 9271 MAGIC_CMD=: 9272 fi 9273fi 9274 9275 fi 9276 ;; 9277esac 9278 9279# Use C for the default configuration in the libtool script 9280 9281lt_save_CC="$CC" 9282ac_ext=c 9283ac_cpp='$CPP $CPPFLAGS' 9284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9286ac_compiler_gnu=$ac_cv_c_compiler_gnu 9287 9288 9289# Source file extension for C test sources. 9290ac_ext=c 9291 9292# Object file extension for compiled C test sources. 9293objext=o 9294objext=$objext 9295 9296# Code to be used in simple compile tests 9297lt_simple_compile_test_code="int some_variable = 0;" 9298 9299# Code to be used in simple link tests 9300lt_simple_link_test_code='int main(){return(0);}' 9301 9302 9303 9304 9305 9306 9307 9308# If no C compiler was specified, use CC. 9309LTCC=${LTCC-"$CC"} 9310 9311# If no C compiler flags were specified, use CFLAGS. 9312LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9313 9314# Allow CC to be a program name with arguments. 9315compiler=$CC 9316 9317# Save the default compiler, since it gets overwritten when the other 9318# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9319compiler_DEFAULT=$CC 9320 9321# save warnings/boilerplate of simple test code 9322ac_outfile=conftest.$ac_objext 9323echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9324eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9325_lt_compiler_boilerplate=`cat conftest.err` 9326$RM conftest* 9327 9328ac_outfile=conftest.$ac_objext 9329echo "$lt_simple_link_test_code" >conftest.$ac_ext 9330eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9331_lt_linker_boilerplate=`cat conftest.err` 9332$RM -r conftest* 9333 9334 9335## CAVEAT EMPTOR: 9336## There is no encapsulation within the following macros, do not change 9337## the running order or otherwise move them around unless you know exactly 9338## what you are doing... 9339if test -n "$compiler"; then 9340 9341lt_prog_compiler_no_builtin_flag= 9342 9343if test "$GCC" = yes; then 9344 case $cc_basename in 9345 nvcc*) 9346 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9347 *) 9348 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9349 esac 9350 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9352$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9353if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9354 $as_echo_n "(cached) " >&6 9355else 9356 lt_cv_prog_compiler_rtti_exceptions=no 9357 ac_outfile=conftest.$ac_objext 9358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9359 lt_compiler_flag="-fno-rtti -fno-exceptions" 9360 # Insert the option either (1) after the last *FLAGS variable, or 9361 # (2) before a word containing "conftest.", or (3) at the end. 9362 # Note that $ac_compile itself does not contain backslashes and begins 9363 # with a dollar sign (not a hyphen), so the echo should work correctly. 9364 # The option is referenced via a variable to avoid confusing sed. 9365 lt_compile=`echo "$ac_compile" | $SED \ 9366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9368 -e 's:$: $lt_compiler_flag:'` 9369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9370 (eval "$lt_compile" 2>conftest.err) 9371 ac_status=$? 9372 cat conftest.err >&5 9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9374 if (exit $ac_status) && test -s "$ac_outfile"; then 9375 # The compiler can only warn and ignore the option if not recognized 9376 # So say no if there are warnings other than the usual output. 9377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9380 lt_cv_prog_compiler_rtti_exceptions=yes 9381 fi 9382 fi 9383 $RM conftest* 9384 9385fi 9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9387$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9388 9389if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9390 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9391else 9392 : 9393fi 9394 9395fi 9396 9397 9398 9399 9400 9401 9402 lt_prog_compiler_wl= 9403lt_prog_compiler_pic= 9404lt_prog_compiler_static= 9405 9406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9407$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9408 9409 if test "$GCC" = yes; then 9410 lt_prog_compiler_wl='-Wl,' 9411 lt_prog_compiler_static='-static' 9412 9413 case $host_os in 9414 aix*) 9415 # All AIX code is PIC. 9416 if test "$host_cpu" = ia64; then 9417 # AIX 5 now supports IA64 processor 9418 lt_prog_compiler_static='-Bstatic' 9419 fi 9420 lt_prog_compiler_pic='-fPIC' 9421 ;; 9422 9423 amigaos*) 9424 case $host_cpu in 9425 powerpc) 9426 # see comment about AmigaOS4 .so support 9427 lt_prog_compiler_pic='-fPIC' 9428 ;; 9429 m68k) 9430 # FIXME: we need at least 68020 code to build shared libraries, but 9431 # adding the `-m68020' flag to GCC prevents building anything better, 9432 # like `-m68040'. 9433 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9434 ;; 9435 esac 9436 ;; 9437 9438 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9439 # PIC is the default for these OSes. 9440 ;; 9441 9442 mingw* | cygwin* | pw32* | os2* | cegcc*) 9443 # This hack is so that the source file can tell whether it is being 9444 # built for inclusion in a dll (and should export symbols for example). 9445 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9446 # (--disable-auto-import) libraries 9447 lt_prog_compiler_pic='-DDLL_EXPORT' 9448 ;; 9449 9450 darwin* | rhapsody*) 9451 # PIC is the default on this platform 9452 # Common symbols not allowed in MH_DYLIB files 9453 lt_prog_compiler_pic='-fno-common' 9454 ;; 9455 9456 haiku*) 9457 # PIC is the default for Haiku. 9458 # The "-static" flag exists, but is broken. 9459 lt_prog_compiler_static= 9460 ;; 9461 9462 hpux*) 9463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9465 # sets the default TLS model and affects inlining. 9466 case $host_cpu in 9467 hppa*64*) 9468 # +Z the default 9469 ;; 9470 *) 9471 lt_prog_compiler_pic='-fPIC' 9472 ;; 9473 esac 9474 ;; 9475 9476 interix[3-9]*) 9477 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9478 # Instead, we relocate shared libraries at runtime. 9479 ;; 9480 9481 msdosdjgpp*) 9482 # Just because we use GCC doesn't mean we suddenly get shared libraries 9483 # on systems that don't support them. 9484 lt_prog_compiler_can_build_shared=no 9485 enable_shared=no 9486 ;; 9487 9488 *nto* | *qnx*) 9489 # QNX uses GNU C++, but need to define -shared option too, otherwise 9490 # it will coredump. 9491 lt_prog_compiler_pic='-fPIC -shared' 9492 ;; 9493 9494 sysv4*MP*) 9495 if test -d /usr/nec; then 9496 lt_prog_compiler_pic=-Kconform_pic 9497 fi 9498 ;; 9499 9500 *) 9501 lt_prog_compiler_pic='-fPIC' 9502 ;; 9503 esac 9504 9505 case $cc_basename in 9506 nvcc*) # Cuda Compiler Driver 2.2 9507 lt_prog_compiler_wl='-Xlinker ' 9508 lt_prog_compiler_pic='-Xcompiler -fPIC' 9509 ;; 9510 esac 9511 else 9512 # PORTME Check for flag to pass linker flags through the system compiler. 9513 case $host_os in 9514 aix*) 9515 lt_prog_compiler_wl='-Wl,' 9516 if test "$host_cpu" = ia64; then 9517 # AIX 5 now supports IA64 processor 9518 lt_prog_compiler_static='-Bstatic' 9519 else 9520 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9521 fi 9522 ;; 9523 9524 mingw* | cygwin* | pw32* | os2* | cegcc*) 9525 # This hack is so that the source file can tell whether it is being 9526 # built for inclusion in a dll (and should export symbols for example). 9527 lt_prog_compiler_pic='-DDLL_EXPORT' 9528 ;; 9529 9530 hpux9* | hpux10* | hpux11*) 9531 lt_prog_compiler_wl='-Wl,' 9532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9533 # not for PA HP-UX. 9534 case $host_cpu in 9535 hppa*64*|ia64*) 9536 # +Z the default 9537 ;; 9538 *) 9539 lt_prog_compiler_pic='+Z' 9540 ;; 9541 esac 9542 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9543 lt_prog_compiler_static='${wl}-a ${wl}archive' 9544 ;; 9545 9546 irix5* | irix6* | nonstopux*) 9547 lt_prog_compiler_wl='-Wl,' 9548 # PIC (with -KPIC) is the default. 9549 lt_prog_compiler_static='-non_shared' 9550 ;; 9551 9552 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9553 case $cc_basename in 9554 # old Intel for x86_64 which still supported -KPIC. 9555 ecc*) 9556 lt_prog_compiler_wl='-Wl,' 9557 lt_prog_compiler_pic='-KPIC' 9558 lt_prog_compiler_static='-static' 9559 ;; 9560 # icc used to be incompatible with GCC. 9561 # ICC 10 doesn't accept -KPIC any more. 9562 icc* | ifort*) 9563 lt_prog_compiler_wl='-Wl,' 9564 lt_prog_compiler_pic='-fPIC' 9565 lt_prog_compiler_static='-static' 9566 ;; 9567 # Lahey Fortran 8.1. 9568 lf95*) 9569 lt_prog_compiler_wl='-Wl,' 9570 lt_prog_compiler_pic='--shared' 9571 lt_prog_compiler_static='--static' 9572 ;; 9573 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9574 # Portland Group compilers (*not* the Pentium gcc compiler, 9575 # which looks to be a dead project) 9576 lt_prog_compiler_wl='-Wl,' 9577 lt_prog_compiler_pic='-fpic' 9578 lt_prog_compiler_static='-Bstatic' 9579 ;; 9580 ccc*) 9581 lt_prog_compiler_wl='-Wl,' 9582 # All Alpha code is PIC. 9583 lt_prog_compiler_static='-non_shared' 9584 ;; 9585 xl* | bgxl* | bgf* | mpixl*) 9586 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9587 lt_prog_compiler_wl='-Wl,' 9588 lt_prog_compiler_pic='-qpic' 9589 lt_prog_compiler_static='-qstaticlink' 9590 ;; 9591 *) 9592 case `$CC -V 2>&1 | sed 5q` in 9593 *Sun\ F* | *Sun*Fortran*) 9594 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9595 lt_prog_compiler_pic='-KPIC' 9596 lt_prog_compiler_static='-Bstatic' 9597 lt_prog_compiler_wl='' 9598 ;; 9599 *Sun\ C*) 9600 # Sun C 5.9 9601 lt_prog_compiler_pic='-KPIC' 9602 lt_prog_compiler_static='-Bstatic' 9603 lt_prog_compiler_wl='-Wl,' 9604 ;; 9605 esac 9606 ;; 9607 esac 9608 ;; 9609 9610 newsos6) 9611 lt_prog_compiler_pic='-KPIC' 9612 lt_prog_compiler_static='-Bstatic' 9613 ;; 9614 9615 *nto* | *qnx*) 9616 # QNX uses GNU C++, but need to define -shared option too, otherwise 9617 # it will coredump. 9618 lt_prog_compiler_pic='-fPIC -shared' 9619 ;; 9620 9621 osf3* | osf4* | osf5*) 9622 lt_prog_compiler_wl='-Wl,' 9623 # All OSF/1 code is PIC. 9624 lt_prog_compiler_static='-non_shared' 9625 ;; 9626 9627 rdos*) 9628 lt_prog_compiler_static='-non_shared' 9629 ;; 9630 9631 solaris*) 9632 lt_prog_compiler_pic='-KPIC' 9633 lt_prog_compiler_static='-Bstatic' 9634 case $cc_basename in 9635 f77* | f90* | f95*) 9636 lt_prog_compiler_wl='-Qoption ld ';; 9637 *) 9638 lt_prog_compiler_wl='-Wl,';; 9639 esac 9640 ;; 9641 9642 sunos4*) 9643 lt_prog_compiler_wl='-Qoption ld ' 9644 lt_prog_compiler_pic='-PIC' 9645 lt_prog_compiler_static='-Bstatic' 9646 ;; 9647 9648 sysv4 | sysv4.2uw2* | sysv4.3*) 9649 lt_prog_compiler_wl='-Wl,' 9650 lt_prog_compiler_pic='-KPIC' 9651 lt_prog_compiler_static='-Bstatic' 9652 ;; 9653 9654 sysv4*MP*) 9655 if test -d /usr/nec ;then 9656 lt_prog_compiler_pic='-Kconform_pic' 9657 lt_prog_compiler_static='-Bstatic' 9658 fi 9659 ;; 9660 9661 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9662 lt_prog_compiler_wl='-Wl,' 9663 lt_prog_compiler_pic='-KPIC' 9664 lt_prog_compiler_static='-Bstatic' 9665 ;; 9666 9667 unicos*) 9668 lt_prog_compiler_wl='-Wl,' 9669 lt_prog_compiler_can_build_shared=no 9670 ;; 9671 9672 uts4*) 9673 lt_prog_compiler_pic='-pic' 9674 lt_prog_compiler_static='-Bstatic' 9675 ;; 9676 9677 *) 9678 lt_prog_compiler_can_build_shared=no 9679 ;; 9680 esac 9681 fi 9682 9683case $host_os in 9684 # For platforms which do not support PIC, -DPIC is meaningless: 9685 *djgpp*) 9686 lt_prog_compiler_pic= 9687 ;; 9688 *) 9689 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9690 ;; 9691esac 9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9693$as_echo "$lt_prog_compiler_pic" >&6; } 9694 9695 9696 9697 9698 9699 9700# 9701# Check to make sure the PIC flag actually works. 9702# 9703if test -n "$lt_prog_compiler_pic"; then 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9705$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9706if ${lt_cv_prog_compiler_pic_works+:} false; then : 9707 $as_echo_n "(cached) " >&6 9708else 9709 lt_cv_prog_compiler_pic_works=no 9710 ac_outfile=conftest.$ac_objext 9711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9712 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9713 # Insert the option either (1) after the last *FLAGS variable, or 9714 # (2) before a word containing "conftest.", or (3) at the end. 9715 # Note that $ac_compile itself does not contain backslashes and begins 9716 # with a dollar sign (not a hyphen), so the echo should work correctly. 9717 # The option is referenced via a variable to avoid confusing sed. 9718 lt_compile=`echo "$ac_compile" | $SED \ 9719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9721 -e 's:$: $lt_compiler_flag:'` 9722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9723 (eval "$lt_compile" 2>conftest.err) 9724 ac_status=$? 9725 cat conftest.err >&5 9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9727 if (exit $ac_status) && test -s "$ac_outfile"; then 9728 # The compiler can only warn and ignore the option if not recognized 9729 # So say no if there are warnings other than the usual output. 9730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9733 lt_cv_prog_compiler_pic_works=yes 9734 fi 9735 fi 9736 $RM conftest* 9737 9738fi 9739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9740$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9741 9742if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9743 case $lt_prog_compiler_pic in 9744 "" | " "*) ;; 9745 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9746 esac 9747else 9748 lt_prog_compiler_pic= 9749 lt_prog_compiler_can_build_shared=no 9750fi 9751 9752fi 9753 9754 9755 9756 9757 9758 9759# 9760# Check to make sure the static flag actually works. 9761# 9762wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9764$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9765if ${lt_cv_prog_compiler_static_works+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 lt_cv_prog_compiler_static_works=no 9769 save_LDFLAGS="$LDFLAGS" 9770 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9771 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9772 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9773 # The linker can only warn and ignore the option if not recognized 9774 # So say no if there are warnings 9775 if test -s conftest.err; then 9776 # Append any errors to the config.log. 9777 cat conftest.err 1>&5 9778 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9780 if diff conftest.exp conftest.er2 >/dev/null; then 9781 lt_cv_prog_compiler_static_works=yes 9782 fi 9783 else 9784 lt_cv_prog_compiler_static_works=yes 9785 fi 9786 fi 9787 $RM -r conftest* 9788 LDFLAGS="$save_LDFLAGS" 9789 9790fi 9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9792$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9793 9794if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9795 : 9796else 9797 lt_prog_compiler_static= 9798fi 9799 9800 9801 9802 9803 9804 9805 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9807$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9808if ${lt_cv_prog_compiler_c_o+:} false; then : 9809 $as_echo_n "(cached) " >&6 9810else 9811 lt_cv_prog_compiler_c_o=no 9812 $RM -r conftest 2>/dev/null 9813 mkdir conftest 9814 cd conftest 9815 mkdir out 9816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9817 9818 lt_compiler_flag="-o out/conftest2.$ac_objext" 9819 # Insert the option either (1) after the last *FLAGS variable, or 9820 # (2) before a word containing "conftest.", or (3) at the end. 9821 # Note that $ac_compile itself does not contain backslashes and begins 9822 # with a dollar sign (not a hyphen), so the echo should work correctly. 9823 lt_compile=`echo "$ac_compile" | $SED \ 9824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9826 -e 's:$: $lt_compiler_flag:'` 9827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9828 (eval "$lt_compile" 2>out/conftest.err) 9829 ac_status=$? 9830 cat out/conftest.err >&5 9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9832 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9833 then 9834 # The compiler can only warn and ignore the option if not recognized 9835 # So say no if there are warnings 9836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9839 lt_cv_prog_compiler_c_o=yes 9840 fi 9841 fi 9842 chmod u+w . 2>&5 9843 $RM conftest* 9844 # SGI C++ compiler will create directory out/ii_files/ for 9845 # template instantiation 9846 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9847 $RM out/* && rmdir out 9848 cd .. 9849 $RM -r conftest 9850 $RM conftest* 9851 9852fi 9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9854$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9855 9856 9857 9858 9859 9860 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9862$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9863if ${lt_cv_prog_compiler_c_o+:} false; then : 9864 $as_echo_n "(cached) " >&6 9865else 9866 lt_cv_prog_compiler_c_o=no 9867 $RM -r conftest 2>/dev/null 9868 mkdir conftest 9869 cd conftest 9870 mkdir out 9871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9872 9873 lt_compiler_flag="-o out/conftest2.$ac_objext" 9874 # Insert the option either (1) after the last *FLAGS variable, or 9875 # (2) before a word containing "conftest.", or (3) at the end. 9876 # Note that $ac_compile itself does not contain backslashes and begins 9877 # with a dollar sign (not a hyphen), so the echo should work correctly. 9878 lt_compile=`echo "$ac_compile" | $SED \ 9879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9881 -e 's:$: $lt_compiler_flag:'` 9882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9883 (eval "$lt_compile" 2>out/conftest.err) 9884 ac_status=$? 9885 cat out/conftest.err >&5 9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9887 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9888 then 9889 # The compiler can only warn and ignore the option if not recognized 9890 # So say no if there are warnings 9891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9894 lt_cv_prog_compiler_c_o=yes 9895 fi 9896 fi 9897 chmod u+w . 2>&5 9898 $RM conftest* 9899 # SGI C++ compiler will create directory out/ii_files/ for 9900 # template instantiation 9901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9902 $RM out/* && rmdir out 9903 cd .. 9904 $RM -r conftest 9905 $RM conftest* 9906 9907fi 9908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9909$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9910 9911 9912 9913 9914hard_links="nottested" 9915if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9916 # do not overwrite the value of need_locks provided by the user 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9918$as_echo_n "checking if we can lock with hard links... " >&6; } 9919 hard_links=yes 9920 $RM conftest* 9921 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9922 touch conftest.a 9923 ln conftest.a conftest.b 2>&5 || hard_links=no 9924 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9926$as_echo "$hard_links" >&6; } 9927 if test "$hard_links" = no; then 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9929$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9930 need_locks=warn 9931 fi 9932else 9933 need_locks=no 9934fi 9935 9936 9937 9938 9939 9940 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9942$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9943 9944 runpath_var= 9945 allow_undefined_flag= 9946 always_export_symbols=no 9947 archive_cmds= 9948 archive_expsym_cmds= 9949 compiler_needs_object=no 9950 enable_shared_with_static_runtimes=no 9951 export_dynamic_flag_spec= 9952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9953 hardcode_automatic=no 9954 hardcode_direct=no 9955 hardcode_direct_absolute=no 9956 hardcode_libdir_flag_spec= 9957 hardcode_libdir_flag_spec_ld= 9958 hardcode_libdir_separator= 9959 hardcode_minus_L=no 9960 hardcode_shlibpath_var=unsupported 9961 inherit_rpath=no 9962 link_all_deplibs=unknown 9963 module_cmds= 9964 module_expsym_cmds= 9965 old_archive_from_new_cmds= 9966 old_archive_from_expsyms_cmds= 9967 thread_safe_flag_spec= 9968 whole_archive_flag_spec= 9969 # include_expsyms should be a list of space-separated symbols to be *always* 9970 # included in the symbol list 9971 include_expsyms= 9972 # exclude_expsyms can be an extended regexp of symbols to exclude 9973 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9974 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9975 # as well as any symbol that contains `d'. 9976 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9977 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9978 # platforms (ab)use it in PIC code, but their linkers get confused if 9979 # the symbol is explicitly referenced. Since portable code cannot 9980 # rely on this symbol name, it's probably fine to never include it in 9981 # preloaded symbol tables. 9982 # Exclude shared library initialization/finalization symbols. 9983 extract_expsyms_cmds= 9984 9985 case $host_os in 9986 cygwin* | mingw* | pw32* | cegcc*) 9987 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9988 # When not using gcc, we currently assume that we are using 9989 # Microsoft Visual C++. 9990 if test "$GCC" != yes; then 9991 with_gnu_ld=no 9992 fi 9993 ;; 9994 interix*) 9995 # we just hope/assume this is gcc and not c89 (= MSVC++) 9996 with_gnu_ld=yes 9997 ;; 9998 openbsd*) 9999 with_gnu_ld=no 10000 ;; 10001 esac 10002 10003 ld_shlibs=yes 10004 10005 # On some targets, GNU ld is compatible enough with the native linker 10006 # that we're better off using the native interface for both. 10007 lt_use_gnu_ld_interface=no 10008 if test "$with_gnu_ld" = yes; then 10009 case $host_os in 10010 aix*) 10011 # The AIX port of GNU ld has always aspired to compatibility 10012 # with the native linker. However, as the warning in the GNU ld 10013 # block says, versions before 2.19.5* couldn't really create working 10014 # shared libraries, regardless of the interface used. 10015 case `$LD -v 2>&1` in 10016 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10017 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10018 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10019 *) 10020 lt_use_gnu_ld_interface=yes 10021 ;; 10022 esac 10023 ;; 10024 *) 10025 lt_use_gnu_ld_interface=yes 10026 ;; 10027 esac 10028 fi 10029 10030 if test "$lt_use_gnu_ld_interface" = yes; then 10031 # If archive_cmds runs LD, not CC, wlarc should be empty 10032 wlarc='${wl}' 10033 10034 # Set some defaults for GNU ld with shared library support. These 10035 # are reset later if shared libraries are not supported. Putting them 10036 # here allows them to be overridden if necessary. 10037 runpath_var=LD_RUN_PATH 10038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10039 export_dynamic_flag_spec='${wl}--export-dynamic' 10040 # ancient GNU ld didn't support --whole-archive et. al. 10041 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10042 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10043 else 10044 whole_archive_flag_spec= 10045 fi 10046 supports_anon_versioning=no 10047 case `$LD -v 2>&1` in 10048 *GNU\ gold*) supports_anon_versioning=yes ;; 10049 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10050 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10051 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10052 *\ 2.11.*) ;; # other 2.11 versions 10053 *) supports_anon_versioning=yes ;; 10054 esac 10055 10056 # See if GNU ld supports shared libraries. 10057 case $host_os in 10058 aix[3-9]*) 10059 # On AIX/PPC, the GNU linker is very broken 10060 if test "$host_cpu" != ia64; then 10061 ld_shlibs=no 10062 cat <<_LT_EOF 1>&2 10063 10064*** Warning: the GNU linker, at least up to release 2.19, is reported 10065*** to be unable to reliably create shared libraries on AIX. 10066*** Therefore, libtool is disabling shared libraries support. If you 10067*** really care for shared libraries, you may want to install binutils 10068*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10069*** You will then need to restart the configuration process. 10070 10071_LT_EOF 10072 fi 10073 ;; 10074 10075 amigaos*) 10076 case $host_cpu in 10077 powerpc) 10078 # see comment about AmigaOS4 .so support 10079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10080 archive_expsym_cmds='' 10081 ;; 10082 m68k) 10083 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)' 10084 hardcode_libdir_flag_spec='-L$libdir' 10085 hardcode_minus_L=yes 10086 ;; 10087 esac 10088 ;; 10089 10090 beos*) 10091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10092 allow_undefined_flag=unsupported 10093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10094 # support --undefined. This deserves some investigation. FIXME 10095 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10096 else 10097 ld_shlibs=no 10098 fi 10099 ;; 10100 10101 cygwin* | mingw* | pw32* | cegcc*) 10102 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10103 # as there is no search path for DLLs. 10104 hardcode_libdir_flag_spec='-L$libdir' 10105 export_dynamic_flag_spec='${wl}--export-all-symbols' 10106 allow_undefined_flag=unsupported 10107 always_export_symbols=no 10108 enable_shared_with_static_runtimes=yes 10109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10110 10111 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10113 # If the export-symbols file already is a .def file (1st line 10114 # is EXPORTS), use it as is; otherwise, prepend... 10115 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10116 cp $export_symbols $output_objdir/$soname.def; 10117 else 10118 echo EXPORTS > $output_objdir/$soname.def; 10119 cat $export_symbols >> $output_objdir/$soname.def; 10120 fi~ 10121 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10122 else 10123 ld_shlibs=no 10124 fi 10125 ;; 10126 10127 haiku*) 10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10129 link_all_deplibs=yes 10130 ;; 10131 10132 interix[3-9]*) 10133 hardcode_direct=no 10134 hardcode_shlibpath_var=no 10135 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10136 export_dynamic_flag_spec='${wl}-E' 10137 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10138 # Instead, shared libraries are loaded at an image base (0x10000000 by 10139 # default) and relocated if they conflict, which is a slow very memory 10140 # consuming and fragmenting process. To avoid this, we pick a random, 10141 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10142 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10144 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' 10145 ;; 10146 10147 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 10148 tmp_diet=no 10149 if test "$host_os" = linux-dietlibc; then 10150 case $cc_basename in 10151 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10152 esac 10153 fi 10154 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10155 && test "$tmp_diet" = no 10156 then 10157 tmp_addflag=' $pic_flag' 10158 tmp_sharedflag='-shared' 10159 case $cc_basename,$host_cpu in 10160 pgcc*) # Portland Group C compiler 10161 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' 10162 tmp_addflag=' $pic_flag' 10163 ;; 10164 pgf77* | pgf90* | pgf95* | pgfortran*) 10165 # Portland Group f77 and f90 compilers 10166 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' 10167 tmp_addflag=' $pic_flag -Mnomain' ;; 10168 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10169 tmp_addflag=' -i_dynamic' ;; 10170 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10171 tmp_addflag=' -i_dynamic -nofor_main' ;; 10172 ifc* | ifort*) # Intel Fortran compiler 10173 tmp_addflag=' -nofor_main' ;; 10174 lf95*) # Lahey Fortran 8.1 10175 whole_archive_flag_spec= 10176 tmp_sharedflag='--shared' ;; 10177 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10178 tmp_sharedflag='-qmkshrobj' 10179 tmp_addflag= ;; 10180 nvcc*) # Cuda Compiler Driver 2.2 10181 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' 10182 compiler_needs_object=yes 10183 ;; 10184 esac 10185 case `$CC -V 2>&1 | sed 5q` in 10186 *Sun\ C*) # Sun C 5.9 10187 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' 10188 compiler_needs_object=yes 10189 tmp_sharedflag='-G' ;; 10190 *Sun\ F*) # Sun Fortran 8.3 10191 tmp_sharedflag='-G' ;; 10192 esac 10193 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10194 10195 if test "x$supports_anon_versioning" = xyes; then 10196 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10198 echo "local: *; };" >> $output_objdir/$libname.ver~ 10199 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10200 fi 10201 10202 case $cc_basename in 10203 xlf* | bgf* | bgxlf* | mpixlf*) 10204 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10205 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10206 hardcode_libdir_flag_spec= 10207 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10208 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 10209 if test "x$supports_anon_versioning" = xyes; then 10210 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10212 echo "local: *; };" >> $output_objdir/$libname.ver~ 10213 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10214 fi 10215 ;; 10216 esac 10217 else 10218 ld_shlibs=no 10219 fi 10220 ;; 10221 10222 netbsd*) 10223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10224 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10225 wlarc= 10226 else 10227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10229 fi 10230 ;; 10231 10232 solaris*) 10233 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10234 ld_shlibs=no 10235 cat <<_LT_EOF 1>&2 10236 10237*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10238*** create shared libraries on Solaris systems. Therefore, libtool 10239*** is disabling shared libraries support. We urge you to upgrade GNU 10240*** binutils to release 2.9.1 or newer. Another option is to modify 10241*** your PATH or compiler configuration so that the native linker is 10242*** used, and then restart. 10243 10244_LT_EOF 10245 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10248 else 10249 ld_shlibs=no 10250 fi 10251 ;; 10252 10253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10254 case `$LD -v 2>&1` in 10255 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10256 ld_shlibs=no 10257 cat <<_LT_EOF 1>&2 10258 10259*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10260*** reliably create shared libraries on SCO systems. Therefore, libtool 10261*** is disabling shared libraries support. We urge you to upgrade GNU 10262*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10263*** your PATH or compiler configuration so that the native linker is 10264*** used, and then restart. 10265 10266_LT_EOF 10267 ;; 10268 *) 10269 # For security reasons, it is highly recommended that you always 10270 # use absolute paths for naming shared libraries, and exclude the 10271 # DT_RUNPATH tag from executables and libraries. But doing so 10272 # requires that you compile everything twice, which is a pain. 10273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10277 else 10278 ld_shlibs=no 10279 fi 10280 ;; 10281 esac 10282 ;; 10283 10284 sunos4*) 10285 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10286 wlarc= 10287 hardcode_direct=yes 10288 hardcode_shlibpath_var=no 10289 ;; 10290 10291 *) 10292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10295 else 10296 ld_shlibs=no 10297 fi 10298 ;; 10299 esac 10300 10301 if test "$ld_shlibs" = no; then 10302 runpath_var= 10303 hardcode_libdir_flag_spec= 10304 export_dynamic_flag_spec= 10305 whole_archive_flag_spec= 10306 fi 10307 else 10308 # PORTME fill in a description of your system's linker (not GNU ld) 10309 case $host_os in 10310 aix3*) 10311 allow_undefined_flag=unsupported 10312 always_export_symbols=yes 10313 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' 10314 # Note: this linker hardcodes the directories in LIBPATH if there 10315 # are no directories specified by -L. 10316 hardcode_minus_L=yes 10317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10318 # Neither direct hardcoding nor static linking is supported with a 10319 # broken collect2. 10320 hardcode_direct=unsupported 10321 fi 10322 ;; 10323 10324 aix[4-9]*) 10325 if test "$host_cpu" = ia64; then 10326 # On IA64, the linker does run time linking by default, so we don't 10327 # have to do anything special. 10328 aix_use_runtimelinking=no 10329 exp_sym_flag='-Bexport' 10330 no_entry_flag="" 10331 else 10332 # If we're using GNU nm, then we don't want the "-C" option. 10333 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10334 # Also, AIX nm treats weak defined symbols like other global 10335 # defined symbols, whereas GNU nm marks them as "W". 10336 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10337 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' 10338 else 10339 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' 10340 fi 10341 aix_use_runtimelinking=no 10342 10343 # Test if we are trying to use run time linking or normal 10344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10345 # need to do runtime linking. 10346 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10347 for ld_flag in $LDFLAGS; do 10348 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10349 aix_use_runtimelinking=yes 10350 break 10351 fi 10352 done 10353 ;; 10354 esac 10355 10356 exp_sym_flag='-bexport' 10357 no_entry_flag='-bnoentry' 10358 fi 10359 10360 # When large executables or shared objects are built, AIX ld can 10361 # have problems creating the table of contents. If linking a library 10362 # or program results in "error TOC overflow" add -mminimal-toc to 10363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10365 10366 archive_cmds='' 10367 hardcode_direct=yes 10368 hardcode_direct_absolute=yes 10369 hardcode_libdir_separator=':' 10370 link_all_deplibs=yes 10371 file_list_spec='${wl}-f,' 10372 10373 if test "$GCC" = yes; then 10374 case $host_os in aix4.[012]|aix4.[012].*) 10375 # We only want to do this on AIX 4.2 and lower, the check 10376 # below for broken collect2 doesn't work under 4.3+ 10377 collect2name=`${CC} -print-prog-name=collect2` 10378 if test -f "$collect2name" && 10379 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10380 then 10381 # We have reworked collect2 10382 : 10383 else 10384 # We have old collect2 10385 hardcode_direct=unsupported 10386 # It fails to find uninstalled libraries when the uninstalled 10387 # path is not listed in the libpath. Setting hardcode_minus_L 10388 # to unsupported forces relinking 10389 hardcode_minus_L=yes 10390 hardcode_libdir_flag_spec='-L$libdir' 10391 hardcode_libdir_separator= 10392 fi 10393 ;; 10394 esac 10395 shared_flag='-shared' 10396 if test "$aix_use_runtimelinking" = yes; then 10397 shared_flag="$shared_flag "'${wl}-G' 10398 fi 10399 else 10400 # not using gcc 10401 if test "$host_cpu" = ia64; then 10402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10403 # chokes on -Wl,-G. The following line is correct: 10404 shared_flag='-G' 10405 else 10406 if test "$aix_use_runtimelinking" = yes; then 10407 shared_flag='${wl}-G' 10408 else 10409 shared_flag='${wl}-bM:SRE' 10410 fi 10411 fi 10412 fi 10413 10414 export_dynamic_flag_spec='${wl}-bexpall' 10415 # It seems that -bexpall does not export symbols beginning with 10416 # underscore (_), so it is better to generate a list of symbols to export. 10417 always_export_symbols=yes 10418 if test "$aix_use_runtimelinking" = yes; then 10419 # Warning - without using the other runtime loading flags (-brtl), 10420 # -berok will link without error, but may produce a broken library. 10421 allow_undefined_flag='-berok' 10422 # Determine the default libpath from the value encoded in an 10423 # empty executable. 10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10425/* end confdefs.h. */ 10426 10427int 10428main () 10429{ 10430 10431 ; 10432 return 0; 10433} 10434_ACEOF 10435if ac_fn_c_try_link "$LINENO"; then : 10436 10437lt_aix_libpath_sed=' 10438 /Import File Strings/,/^$/ { 10439 /^0/ { 10440 s/^0 *\(.*\)$/\1/ 10441 p 10442 } 10443 }' 10444aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10445# Check for a 64-bit object if we didn't find anything. 10446if test -z "$aix_libpath"; then 10447 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10448fi 10449fi 10450rm -f core conftest.err conftest.$ac_objext \ 10451 conftest$ac_exeext conftest.$ac_ext 10452if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10453 10454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10455 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" 10456 else 10457 if test "$host_cpu" = ia64; then 10458 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10459 allow_undefined_flag="-z nodefs" 10460 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" 10461 else 10462 # Determine the default libpath from the value encoded in an 10463 # empty executable. 10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10465/* end confdefs.h. */ 10466 10467int 10468main () 10469{ 10470 10471 ; 10472 return 0; 10473} 10474_ACEOF 10475if ac_fn_c_try_link "$LINENO"; then : 10476 10477lt_aix_libpath_sed=' 10478 /Import File Strings/,/^$/ { 10479 /^0/ { 10480 s/^0 *\(.*\)$/\1/ 10481 p 10482 } 10483 }' 10484aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10485# Check for a 64-bit object if we didn't find anything. 10486if test -z "$aix_libpath"; then 10487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10488fi 10489fi 10490rm -f core conftest.err conftest.$ac_objext \ 10491 conftest$ac_exeext conftest.$ac_ext 10492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10493 10494 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10495 # Warning - without using the other run time loading flags, 10496 # -berok will link without error, but may produce a broken library. 10497 no_undefined_flag=' ${wl}-bernotok' 10498 allow_undefined_flag=' ${wl}-berok' 10499 if test "$with_gnu_ld" = yes; then 10500 # We only use this code for GNU lds that support --whole-archive. 10501 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10502 else 10503 # Exported symbols can be pulled into shared objects from archives 10504 whole_archive_flag_spec='$convenience' 10505 fi 10506 archive_cmds_need_lc=yes 10507 # This is similar to how AIX traditionally builds its shared libraries. 10508 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' 10509 fi 10510 fi 10511 ;; 10512 10513 amigaos*) 10514 case $host_cpu in 10515 powerpc) 10516 # see comment about AmigaOS4 .so support 10517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10518 archive_expsym_cmds='' 10519 ;; 10520 m68k) 10521 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)' 10522 hardcode_libdir_flag_spec='-L$libdir' 10523 hardcode_minus_L=yes 10524 ;; 10525 esac 10526 ;; 10527 10528 bsdi[45]*) 10529 export_dynamic_flag_spec=-rdynamic 10530 ;; 10531 10532 cygwin* | mingw* | pw32* | cegcc*) 10533 # When not using gcc, we currently assume that we are using 10534 # Microsoft Visual C++. 10535 # hardcode_libdir_flag_spec is actually meaningless, as there is 10536 # no search path for DLLs. 10537 hardcode_libdir_flag_spec=' ' 10538 allow_undefined_flag=unsupported 10539 # Tell ltmain to make .lib files, not .a files. 10540 libext=lib 10541 # Tell ltmain to make .dll files, not .so files. 10542 shrext_cmds=".dll" 10543 # FIXME: Setting linknames here is a bad hack. 10544 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10545 # The linker will automatically build a .lib file if we build a DLL. 10546 old_archive_from_new_cmds='true' 10547 # FIXME: Should let the user specify the lib program. 10548 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10549 fix_srcfile_path='`cygpath -w "$srcfile"`' 10550 enable_shared_with_static_runtimes=yes 10551 ;; 10552 10553 darwin* | rhapsody*) 10554 10555 10556 archive_cmds_need_lc=no 10557 hardcode_direct=no 10558 hardcode_automatic=yes 10559 hardcode_shlibpath_var=unsupported 10560 if test "$lt_cv_ld_force_load" = "yes"; then 10561 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\"`' 10562 else 10563 whole_archive_flag_spec='' 10564 fi 10565 link_all_deplibs=yes 10566 allow_undefined_flag="$_lt_dar_allow_undefined" 10567 case $cc_basename in 10568 ifort*) _lt_dar_can_shared=yes ;; 10569 *) _lt_dar_can_shared=$GCC ;; 10570 esac 10571 if test "$_lt_dar_can_shared" = "yes"; then 10572 output_verbose_link_cmd=func_echo_all 10573 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10574 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10575 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}" 10576 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}" 10577 10578 else 10579 ld_shlibs=no 10580 fi 10581 10582 ;; 10583 10584 dgux*) 10585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10586 hardcode_libdir_flag_spec='-L$libdir' 10587 hardcode_shlibpath_var=no 10588 ;; 10589 10590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10591 # support. Future versions do this automatically, but an explicit c++rt0.o 10592 # does not break anything, and helps significantly (at the cost of a little 10593 # extra space). 10594 freebsd2.2*) 10595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10596 hardcode_libdir_flag_spec='-R$libdir' 10597 hardcode_direct=yes 10598 hardcode_shlibpath_var=no 10599 ;; 10600 10601 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10602 freebsd2.*) 10603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10604 hardcode_direct=yes 10605 hardcode_minus_L=yes 10606 hardcode_shlibpath_var=no 10607 ;; 10608 10609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10610 freebsd* | dragonfly*) 10611 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10612 hardcode_libdir_flag_spec='-R$libdir' 10613 hardcode_direct=yes 10614 hardcode_shlibpath_var=no 10615 ;; 10616 10617 hpux9*) 10618 if test "$GCC" = yes; then 10619 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' 10620 else 10621 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' 10622 fi 10623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10624 hardcode_libdir_separator=: 10625 hardcode_direct=yes 10626 10627 # hardcode_minus_L: Not really in the search PATH, 10628 # but as the default location of the library. 10629 hardcode_minus_L=yes 10630 export_dynamic_flag_spec='${wl}-E' 10631 ;; 10632 10633 hpux10*) 10634 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10636 else 10637 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10638 fi 10639 if test "$with_gnu_ld" = no; then 10640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10641 hardcode_libdir_flag_spec_ld='+b $libdir' 10642 hardcode_libdir_separator=: 10643 hardcode_direct=yes 10644 hardcode_direct_absolute=yes 10645 export_dynamic_flag_spec='${wl}-E' 10646 # hardcode_minus_L: Not really in the search PATH, 10647 # but as the default location of the library. 10648 hardcode_minus_L=yes 10649 fi 10650 ;; 10651 10652 hpux11*) 10653 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10654 case $host_cpu in 10655 hppa*64*) 10656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10657 ;; 10658 ia64*) 10659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10660 ;; 10661 *) 10662 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10663 ;; 10664 esac 10665 else 10666 case $host_cpu in 10667 hppa*64*) 10668 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10669 ;; 10670 ia64*) 10671 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10672 ;; 10673 *) 10674 10675 # Older versions of the 11.00 compiler do not understand -b yet 10676 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10678$as_echo_n "checking if $CC understands -b... " >&6; } 10679if ${lt_cv_prog_compiler__b+:} false; then : 10680 $as_echo_n "(cached) " >&6 10681else 10682 lt_cv_prog_compiler__b=no 10683 save_LDFLAGS="$LDFLAGS" 10684 LDFLAGS="$LDFLAGS -b" 10685 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10687 # The linker can only warn and ignore the option if not recognized 10688 # So say no if there are warnings 10689 if test -s conftest.err; then 10690 # Append any errors to the config.log. 10691 cat conftest.err 1>&5 10692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10694 if diff conftest.exp conftest.er2 >/dev/null; then 10695 lt_cv_prog_compiler__b=yes 10696 fi 10697 else 10698 lt_cv_prog_compiler__b=yes 10699 fi 10700 fi 10701 $RM -r conftest* 10702 LDFLAGS="$save_LDFLAGS" 10703 10704fi 10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10706$as_echo "$lt_cv_prog_compiler__b" >&6; } 10707 10708if test x"$lt_cv_prog_compiler__b" = xyes; then 10709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10710else 10711 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10712fi 10713 10714 ;; 10715 esac 10716 fi 10717 if test "$with_gnu_ld" = no; then 10718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10719 hardcode_libdir_separator=: 10720 10721 case $host_cpu in 10722 hppa*64*|ia64*) 10723 hardcode_direct=no 10724 hardcode_shlibpath_var=no 10725 ;; 10726 *) 10727 hardcode_direct=yes 10728 hardcode_direct_absolute=yes 10729 export_dynamic_flag_spec='${wl}-E' 10730 10731 # hardcode_minus_L: Not really in the search PATH, 10732 # but as the default location of the library. 10733 hardcode_minus_L=yes 10734 ;; 10735 esac 10736 fi 10737 ;; 10738 10739 irix5* | irix6* | nonstopux*) 10740 if test "$GCC" = yes; then 10741 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' 10742 # Try to use the -exported_symbol ld option, if it does not 10743 # work, assume that -exports_file does not work either and 10744 # implicitly export all symbols. 10745 save_LDFLAGS="$LDFLAGS" 10746 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748/* end confdefs.h. */ 10749int foo(void) {} 10750_ACEOF 10751if ac_fn_c_try_link "$LINENO"; then : 10752 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' 10753 10754fi 10755rm -f core conftest.err conftest.$ac_objext \ 10756 conftest$ac_exeext conftest.$ac_ext 10757 LDFLAGS="$save_LDFLAGS" 10758 else 10759 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' 10760 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' 10761 fi 10762 archive_cmds_need_lc='no' 10763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10764 hardcode_libdir_separator=: 10765 inherit_rpath=yes 10766 link_all_deplibs=yes 10767 ;; 10768 10769 netbsd*) 10770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10772 else 10773 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10774 fi 10775 hardcode_libdir_flag_spec='-R$libdir' 10776 hardcode_direct=yes 10777 hardcode_shlibpath_var=no 10778 ;; 10779 10780 newsos6) 10781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10782 hardcode_direct=yes 10783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10784 hardcode_libdir_separator=: 10785 hardcode_shlibpath_var=no 10786 ;; 10787 10788 *nto* | *qnx*) 10789 ;; 10790 10791 openbsd*) 10792 if test -f /usr/libexec/ld.so; then 10793 hardcode_direct=yes 10794 hardcode_shlibpath_var=no 10795 hardcode_direct_absolute=yes 10796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10798 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10800 export_dynamic_flag_spec='${wl}-E' 10801 else 10802 case $host_os in 10803 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10805 hardcode_libdir_flag_spec='-R$libdir' 10806 ;; 10807 *) 10808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10810 ;; 10811 esac 10812 fi 10813 else 10814 ld_shlibs=no 10815 fi 10816 ;; 10817 10818 os2*) 10819 hardcode_libdir_flag_spec='-L$libdir' 10820 hardcode_minus_L=yes 10821 allow_undefined_flag=unsupported 10822 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' 10823 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10824 ;; 10825 10826 osf3*) 10827 if test "$GCC" = yes; then 10828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10829 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' 10830 else 10831 allow_undefined_flag=' -expect_unresolved \*' 10832 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' 10833 fi 10834 archive_cmds_need_lc='no' 10835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10836 hardcode_libdir_separator=: 10837 ;; 10838 10839 osf4* | osf5*) # as osf3* with the addition of -msym flag 10840 if test "$GCC" = yes; then 10841 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10842 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' 10843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10844 else 10845 allow_undefined_flag=' -expect_unresolved \*' 10846 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' 10847 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~ 10848 $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' 10849 10850 # Both c and cxx compiler support -rpath directly 10851 hardcode_libdir_flag_spec='-rpath $libdir' 10852 fi 10853 archive_cmds_need_lc='no' 10854 hardcode_libdir_separator=: 10855 ;; 10856 10857 solaris*) 10858 no_undefined_flag=' -z defs' 10859 if test "$GCC" = yes; then 10860 wlarc='${wl}' 10861 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10863 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10864 else 10865 case `$CC -V 2>&1` in 10866 *"Compilers 5.0"*) 10867 wlarc='' 10868 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10870 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10871 ;; 10872 *) 10873 wlarc='${wl}' 10874 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10875 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10876 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10877 ;; 10878 esac 10879 fi 10880 hardcode_libdir_flag_spec='-R$libdir' 10881 hardcode_shlibpath_var=no 10882 case $host_os in 10883 solaris2.[0-5] | solaris2.[0-5].*) ;; 10884 *) 10885 # The compiler driver will combine and reorder linker options, 10886 # but understands `-z linker_flag'. GCC discards it without `$wl', 10887 # but is careful enough not to reorder. 10888 # Supported since Solaris 2.6 (maybe 2.5.1?) 10889 if test "$GCC" = yes; then 10890 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10891 else 10892 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10893 fi 10894 ;; 10895 esac 10896 link_all_deplibs=yes 10897 ;; 10898 10899 sunos4*) 10900 if test "x$host_vendor" = xsequent; then 10901 # Use $CC to link under sequent, because it throws in some extra .o 10902 # files that make .init and .fini sections work. 10903 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10904 else 10905 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10906 fi 10907 hardcode_libdir_flag_spec='-L$libdir' 10908 hardcode_direct=yes 10909 hardcode_minus_L=yes 10910 hardcode_shlibpath_var=no 10911 ;; 10912 10913 sysv4) 10914 case $host_vendor in 10915 sni) 10916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10917 hardcode_direct=yes # is this really true??? 10918 ;; 10919 siemens) 10920 ## LD is ld it makes a PLAMLIB 10921 ## CC just makes a GrossModule. 10922 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10923 reload_cmds='$CC -r -o $output$reload_objs' 10924 hardcode_direct=no 10925 ;; 10926 motorola) 10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10928 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10929 ;; 10930 esac 10931 runpath_var='LD_RUN_PATH' 10932 hardcode_shlibpath_var=no 10933 ;; 10934 10935 sysv4.3*) 10936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10937 hardcode_shlibpath_var=no 10938 export_dynamic_flag_spec='-Bexport' 10939 ;; 10940 10941 sysv4*MP*) 10942 if test -d /usr/nec; then 10943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10944 hardcode_shlibpath_var=no 10945 runpath_var=LD_RUN_PATH 10946 hardcode_runpath_var=yes 10947 ld_shlibs=yes 10948 fi 10949 ;; 10950 10951 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10952 no_undefined_flag='${wl}-z,text' 10953 archive_cmds_need_lc=no 10954 hardcode_shlibpath_var=no 10955 runpath_var='LD_RUN_PATH' 10956 10957 if test "$GCC" = yes; then 10958 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10959 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10960 else 10961 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10962 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10963 fi 10964 ;; 10965 10966 sysv5* | sco3.2v5* | sco5v6*) 10967 # Note: We can NOT use -z defs as we might desire, because we do not 10968 # link with -lc, and that would cause any symbols used from libc to 10969 # always be unresolved, which means just about no library would 10970 # ever link correctly. If we're not using GNU ld we use -z text 10971 # though, which does catch some bad symbols but isn't as heavy-handed 10972 # as -z defs. 10973 no_undefined_flag='${wl}-z,text' 10974 allow_undefined_flag='${wl}-z,nodefs' 10975 archive_cmds_need_lc=no 10976 hardcode_shlibpath_var=no 10977 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10978 hardcode_libdir_separator=':' 10979 link_all_deplibs=yes 10980 export_dynamic_flag_spec='${wl}-Bexport' 10981 runpath_var='LD_RUN_PATH' 10982 10983 if test "$GCC" = yes; then 10984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10986 else 10987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10989 fi 10990 ;; 10991 10992 uts4*) 10993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10994 hardcode_libdir_flag_spec='-L$libdir' 10995 hardcode_shlibpath_var=no 10996 ;; 10997 10998 *) 10999 ld_shlibs=no 11000 ;; 11001 esac 11002 11003 if test x$host_vendor = xsni; then 11004 case $host in 11005 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11006 export_dynamic_flag_spec='${wl}-Blargedynsym' 11007 ;; 11008 esac 11009 fi 11010 fi 11011 11012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11013$as_echo "$ld_shlibs" >&6; } 11014test "$ld_shlibs" = no && can_build_shared=no 11015 11016with_gnu_ld=$with_gnu_ld 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032# 11033# Do we need to explicitly link libc? 11034# 11035case "x$archive_cmds_need_lc" in 11036x|xyes) 11037 # Assume -lc should be added 11038 archive_cmds_need_lc=yes 11039 11040 if test "$enable_shared" = yes && test "$GCC" = yes; then 11041 case $archive_cmds in 11042 *'~'*) 11043 # FIXME: we may have to deal with multi-command sequences. 11044 ;; 11045 '$CC '*) 11046 # Test whether the compiler implicitly links with -lc since on some 11047 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11048 # to ld, don't add -lc before -lgcc. 11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11050$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11051if ${lt_cv_archive_cmds_need_lc+:} false; then : 11052 $as_echo_n "(cached) " >&6 11053else 11054 $RM conftest* 11055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11056 11057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11058 (eval $ac_compile) 2>&5 11059 ac_status=$? 11060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11061 test $ac_status = 0; } 2>conftest.err; then 11062 soname=conftest 11063 lib=conftest 11064 libobjs=conftest.$ac_objext 11065 deplibs= 11066 wl=$lt_prog_compiler_wl 11067 pic_flag=$lt_prog_compiler_pic 11068 compiler_flags=-v 11069 linker_flags=-v 11070 verstring= 11071 output_objdir=. 11072 libname=conftest 11073 lt_save_allow_undefined_flag=$allow_undefined_flag 11074 allow_undefined_flag= 11075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11076 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11077 ac_status=$? 11078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11079 test $ac_status = 0; } 11080 then 11081 lt_cv_archive_cmds_need_lc=no 11082 else 11083 lt_cv_archive_cmds_need_lc=yes 11084 fi 11085 allow_undefined_flag=$lt_save_allow_undefined_flag 11086 else 11087 cat conftest.err 1>&5 11088 fi 11089 $RM conftest* 11090 11091fi 11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11093$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11094 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11095 ;; 11096 esac 11097 fi 11098 ;; 11099esac 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11258$as_echo_n "checking dynamic linker characteristics... " >&6; } 11259 11260if test "$GCC" = yes; then 11261 case $host_os in 11262 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11263 *) lt_awk_arg="/^libraries:/" ;; 11264 esac 11265 case $host_os in 11266 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11267 *) lt_sed_strip_eq="s,=/,/,g" ;; 11268 esac 11269 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11270 case $lt_search_path_spec in 11271 *\;*) 11272 # if the path contains ";" then we assume it to be the separator 11273 # otherwise default to the standard path separator (i.e. ":") - it is 11274 # assumed that no part of a normal pathname contains ";" but that should 11275 # okay in the real world where ";" in dirpaths is itself problematic. 11276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11277 ;; 11278 *) 11279 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11280 ;; 11281 esac 11282 # Ok, now we have the path, separated by spaces, we can step through it 11283 # and add multilib dir if necessary. 11284 lt_tmp_lt_search_path_spec= 11285 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11286 for lt_sys_path in $lt_search_path_spec; do 11287 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11289 else 11290 test -d "$lt_sys_path" && \ 11291 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11292 fi 11293 done 11294 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11295BEGIN {RS=" "; FS="/|\n";} { 11296 lt_foo=""; 11297 lt_count=0; 11298 for (lt_i = NF; lt_i > 0; lt_i--) { 11299 if ($lt_i != "" && $lt_i != ".") { 11300 if ($lt_i == "..") { 11301 lt_count++; 11302 } else { 11303 if (lt_count == 0) { 11304 lt_foo="/" $lt_i lt_foo; 11305 } else { 11306 lt_count--; 11307 } 11308 } 11309 } 11310 } 11311 if (lt_foo != "") { lt_freq[lt_foo]++; } 11312 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11313}'` 11314 # AWK program above erroneously prepends '/' to C:/dos/paths 11315 # for these hosts. 11316 case $host_os in 11317 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11318 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11319 esac 11320 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11321else 11322 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11323fi 11324library_names_spec= 11325libname_spec='lib$name' 11326soname_spec= 11327shrext_cmds=".so" 11328postinstall_cmds= 11329postuninstall_cmds= 11330finish_cmds= 11331finish_eval= 11332shlibpath_var= 11333shlibpath_overrides_runpath=unknown 11334version_type=none 11335dynamic_linker="$host_os ld.so" 11336sys_lib_dlsearch_path_spec="/lib /usr/lib" 11337need_lib_prefix=unknown 11338hardcode_into_libs=no 11339 11340# when you set need_version to no, make sure it does not cause -set_version 11341# flags to be left without arguments 11342need_version=unknown 11343 11344case $host_os in 11345aix3*) 11346 version_type=linux 11347 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11348 shlibpath_var=LIBPATH 11349 11350 # AIX 3 has no versioning support, so we append a major version to the name. 11351 soname_spec='${libname}${release}${shared_ext}$major' 11352 ;; 11353 11354aix[4-9]*) 11355 version_type=linux 11356 need_lib_prefix=no 11357 need_version=no 11358 hardcode_into_libs=yes 11359 if test "$host_cpu" = ia64; then 11360 # AIX 5 supports IA64 11361 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11362 shlibpath_var=LD_LIBRARY_PATH 11363 else 11364 # With GCC up to 2.95.x, collect2 would create an import file 11365 # for dependence libraries. The import file would start with 11366 # the line `#! .'. This would cause the generated library to 11367 # depend on `.', always an invalid library. This was fixed in 11368 # development snapshots of GCC prior to 3.0. 11369 case $host_os in 11370 aix4 | aix4.[01] | aix4.[01].*) 11371 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11372 echo ' yes ' 11373 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11374 : 11375 else 11376 can_build_shared=no 11377 fi 11378 ;; 11379 esac 11380 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11381 # soname into executable. Probably we can add versioning support to 11382 # collect2, so additional links can be useful in future. 11383 if test "$aix_use_runtimelinking" = yes; then 11384 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11385 # instead of lib<name>.a to let people know that these are not 11386 # typical AIX shared libraries. 11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11388 else 11389 # We preserve .a as extension for shared libraries through AIX4.2 11390 # and later when we are not doing run time linking. 11391 library_names_spec='${libname}${release}.a $libname.a' 11392 soname_spec='${libname}${release}${shared_ext}$major' 11393 fi 11394 shlibpath_var=LIBPATH 11395 fi 11396 ;; 11397 11398amigaos*) 11399 case $host_cpu in 11400 powerpc) 11401 # Since July 2007 AmigaOS4 officially supports .so libraries. 11402 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11404 ;; 11405 m68k) 11406 library_names_spec='$libname.ixlibrary $libname.a' 11407 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11408 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' 11409 ;; 11410 esac 11411 ;; 11412 11413beos*) 11414 library_names_spec='${libname}${shared_ext}' 11415 dynamic_linker="$host_os ld.so" 11416 shlibpath_var=LIBRARY_PATH 11417 ;; 11418 11419bsdi[45]*) 11420 version_type=linux 11421 need_version=no 11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11423 soname_spec='${libname}${release}${shared_ext}$major' 11424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11425 shlibpath_var=LD_LIBRARY_PATH 11426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11428 # the default ld.so.conf also contains /usr/contrib/lib and 11429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11430 # libtool to hard-code these into programs 11431 ;; 11432 11433cygwin* | mingw* | pw32* | cegcc*) 11434 version_type=windows 11435 shrext_cmds=".dll" 11436 need_version=no 11437 need_lib_prefix=no 11438 11439 case $GCC,$host_os in 11440 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11441 library_names_spec='$libname.dll.a' 11442 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11443 postinstall_cmds='base_file=`basename \${file}`~ 11444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11445 dldir=$destdir/`dirname \$dlpath`~ 11446 test -d \$dldir || mkdir -p \$dldir~ 11447 $install_prog $dir/$dlname \$dldir/$dlname~ 11448 chmod a+x \$dldir/$dlname~ 11449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11451 fi' 11452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11453 dlpath=$dir/\$dldll~ 11454 $RM \$dlpath' 11455 shlibpath_overrides_runpath=yes 11456 11457 case $host_os in 11458 cygwin*) 11459 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11460 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11461 11462 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11463 ;; 11464 mingw* | cegcc*) 11465 # MinGW DLLs use traditional 'lib' prefix 11466 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11467 ;; 11468 pw32*) 11469 # pw32 DLLs use 'pw' prefix rather than 'lib' 11470 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11471 ;; 11472 esac 11473 ;; 11474 11475 *) 11476 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11477 ;; 11478 esac 11479 dynamic_linker='Win32 ld.exe' 11480 # FIXME: first we should search . and the directory the executable is in 11481 shlibpath_var=PATH 11482 ;; 11483 11484darwin* | rhapsody*) 11485 dynamic_linker="$host_os dyld" 11486 version_type=darwin 11487 need_lib_prefix=no 11488 need_version=no 11489 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11490 soname_spec='${libname}${release}${major}$shared_ext' 11491 shlibpath_overrides_runpath=yes 11492 shlibpath_var=DYLD_LIBRARY_PATH 11493 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11494 11495 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11496 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11497 ;; 11498 11499dgux*) 11500 version_type=linux 11501 need_lib_prefix=no 11502 need_version=no 11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11504 soname_spec='${libname}${release}${shared_ext}$major' 11505 shlibpath_var=LD_LIBRARY_PATH 11506 ;; 11507 11508freebsd* | dragonfly*) 11509 # DragonFly does not have aout. When/if they implement a new 11510 # versioning mechanism, adjust this. 11511 if test -x /usr/bin/objformat; then 11512 objformat=`/usr/bin/objformat` 11513 else 11514 case $host_os in 11515 freebsd[23].*) objformat=aout ;; 11516 *) objformat=elf ;; 11517 esac 11518 fi 11519 version_type=freebsd-$objformat 11520 case $version_type in 11521 freebsd-elf*) 11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11523 need_version=no 11524 need_lib_prefix=no 11525 ;; 11526 freebsd-*) 11527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11528 need_version=yes 11529 ;; 11530 esac 11531 shlibpath_var=LD_LIBRARY_PATH 11532 case $host_os in 11533 freebsd2.*) 11534 shlibpath_overrides_runpath=yes 11535 ;; 11536 freebsd3.[01]* | freebsdelf3.[01]*) 11537 shlibpath_overrides_runpath=yes 11538 hardcode_into_libs=yes 11539 ;; 11540 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11541 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11542 shlibpath_overrides_runpath=no 11543 hardcode_into_libs=yes 11544 ;; 11545 *) # from 4.6 on, and DragonFly 11546 shlibpath_overrides_runpath=yes 11547 hardcode_into_libs=yes 11548 ;; 11549 esac 11550 ;; 11551 11552haiku*) 11553 version_type=linux 11554 need_lib_prefix=no 11555 need_version=no 11556 dynamic_linker="$host_os runtime_loader" 11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11558 soname_spec='${libname}${release}${shared_ext}$major' 11559 shlibpath_var=LIBRARY_PATH 11560 shlibpath_overrides_runpath=yes 11561 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 11562 hardcode_into_libs=yes 11563 ;; 11564 11565hpux9* | hpux10* | hpux11*) 11566 # Give a soname corresponding to the major version so that dld.sl refuses to 11567 # link against other versions. 11568 version_type=sunos 11569 need_lib_prefix=no 11570 need_version=no 11571 case $host_cpu in 11572 ia64*) 11573 shrext_cmds='.so' 11574 hardcode_into_libs=yes 11575 dynamic_linker="$host_os dld.so" 11576 shlibpath_var=LD_LIBRARY_PATH 11577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11579 soname_spec='${libname}${release}${shared_ext}$major' 11580 if test "X$HPUX_IA64_MODE" = X32; then 11581 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11582 else 11583 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11584 fi 11585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11586 ;; 11587 hppa*64*) 11588 shrext_cmds='.sl' 11589 hardcode_into_libs=yes 11590 dynamic_linker="$host_os dld.sl" 11591 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11594 soname_spec='${libname}${release}${shared_ext}$major' 11595 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11597 ;; 11598 *) 11599 shrext_cmds='.sl' 11600 dynamic_linker="$host_os dld.sl" 11601 shlibpath_var=SHLIB_PATH 11602 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11604 soname_spec='${libname}${release}${shared_ext}$major' 11605 ;; 11606 esac 11607 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11608 postinstall_cmds='chmod 555 $lib' 11609 # or fails outright, so override atomically: 11610 install_override_mode=555 11611 ;; 11612 11613interix[3-9]*) 11614 version_type=linux 11615 need_lib_prefix=no 11616 need_version=no 11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11618 soname_spec='${libname}${release}${shared_ext}$major' 11619 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11620 shlibpath_var=LD_LIBRARY_PATH 11621 shlibpath_overrides_runpath=no 11622 hardcode_into_libs=yes 11623 ;; 11624 11625irix5* | irix6* | nonstopux*) 11626 case $host_os in 11627 nonstopux*) version_type=nonstopux ;; 11628 *) 11629 if test "$lt_cv_prog_gnu_ld" = yes; then 11630 version_type=linux 11631 else 11632 version_type=irix 11633 fi ;; 11634 esac 11635 need_lib_prefix=no 11636 need_version=no 11637 soname_spec='${libname}${release}${shared_ext}$major' 11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11639 case $host_os in 11640 irix5* | nonstopux*) 11641 libsuff= shlibsuff= 11642 ;; 11643 *) 11644 case $LD in # libtool.m4 will add one of these switches to LD 11645 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11646 libsuff= shlibsuff= libmagic=32-bit;; 11647 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11648 libsuff=32 shlibsuff=N32 libmagic=N32;; 11649 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11650 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11651 *) libsuff= shlibsuff= libmagic=never-match;; 11652 esac 11653 ;; 11654 esac 11655 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11656 shlibpath_overrides_runpath=no 11657 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11658 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11659 hardcode_into_libs=yes 11660 ;; 11661 11662# No shared lib support for Linux oldld, aout, or coff. 11663linux*oldld* | linux*aout* | linux*coff*) 11664 dynamic_linker=no 11665 ;; 11666 11667# This must be Linux ELF. 11668 11669# uclinux* changes (here and below) have been submitted to the libtool 11670# project, but have not yet been accepted: they are GCC-local changes 11671# for the time being. (See 11672# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 11673linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 11674 version_type=linux 11675 need_lib_prefix=no 11676 need_version=no 11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11678 soname_spec='${libname}${release}${shared_ext}$major' 11679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11680 shlibpath_var=LD_LIBRARY_PATH 11681 shlibpath_overrides_runpath=no 11682 11683 # Some binutils ld are patched to set DT_RUNPATH 11684 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11685 $as_echo_n "(cached) " >&6 11686else 11687 lt_cv_shlibpath_overrides_runpath=no 11688 save_LDFLAGS=$LDFLAGS 11689 save_libdir=$libdir 11690 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11691 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11693/* end confdefs.h. */ 11694 11695int 11696main () 11697{ 11698 11699 ; 11700 return 0; 11701} 11702_ACEOF 11703if ac_fn_c_try_link "$LINENO"; then : 11704 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11705 lt_cv_shlibpath_overrides_runpath=yes 11706fi 11707fi 11708rm -f core conftest.err conftest.$ac_objext \ 11709 conftest$ac_exeext conftest.$ac_ext 11710 LDFLAGS=$save_LDFLAGS 11711 libdir=$save_libdir 11712 11713fi 11714 11715 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11716 11717 # This implies no fast_install, which is unacceptable. 11718 # Some rework will be needed to allow for fast_install 11719 # before this can be enabled. 11720 hardcode_into_libs=yes 11721 11722 # Append ld.so.conf contents to the search path 11723 if test -f /etc/ld.so.conf; then 11724 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' ' '` 11725 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11726 fi 11727 11728 # We used to test for /lib/ld.so.1 and disable shared libraries on 11729 # powerpc, because MkLinux only supported shared libraries with the 11730 # GNU dynamic linker. Since this was broken with cross compilers, 11731 # most powerpc-linux boxes support dynamic linking these days and 11732 # people can always --disable-shared, the test was removed, and we 11733 # assume the GNU/Linux dynamic linker is in use. 11734 dynamic_linker='GNU/Linux ld.so' 11735 ;; 11736 11737netbsd*) 11738 version_type=sunos 11739 need_lib_prefix=no 11740 need_version=no 11741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11744 dynamic_linker='NetBSD (a.out) ld.so' 11745 else 11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11747 soname_spec='${libname}${release}${shared_ext}$major' 11748 dynamic_linker='NetBSD ld.elf_so' 11749 fi 11750 shlibpath_var=LD_LIBRARY_PATH 11751 shlibpath_overrides_runpath=yes 11752 hardcode_into_libs=yes 11753 ;; 11754 11755newsos6) 11756 version_type=linux 11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11758 shlibpath_var=LD_LIBRARY_PATH 11759 shlibpath_overrides_runpath=yes 11760 ;; 11761 11762*nto* | *qnx*) 11763 version_type=qnx 11764 need_lib_prefix=no 11765 need_version=no 11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11767 soname_spec='${libname}${release}${shared_ext}$major' 11768 shlibpath_var=LD_LIBRARY_PATH 11769 shlibpath_overrides_runpath=no 11770 hardcode_into_libs=yes 11771 dynamic_linker='ldqnx.so' 11772 ;; 11773 11774openbsd*) 11775 version_type=sunos 11776 sys_lib_dlsearch_path_spec="/usr/lib" 11777 need_lib_prefix=no 11778 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11779 case $host_os in 11780 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11781 *) need_version=no ;; 11782 esac 11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11785 shlibpath_var=LD_LIBRARY_PATH 11786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11787 case $host_os in 11788 openbsd2.[89] | openbsd2.[89].*) 11789 shlibpath_overrides_runpath=no 11790 ;; 11791 *) 11792 shlibpath_overrides_runpath=yes 11793 ;; 11794 esac 11795 else 11796 shlibpath_overrides_runpath=yes 11797 fi 11798 ;; 11799 11800os2*) 11801 libname_spec='$name' 11802 shrext_cmds=".dll" 11803 need_lib_prefix=no 11804 library_names_spec='$libname${shared_ext} $libname.a' 11805 dynamic_linker='OS/2 ld.exe' 11806 shlibpath_var=LIBPATH 11807 ;; 11808 11809osf3* | osf4* | osf5*) 11810 version_type=osf 11811 need_lib_prefix=no 11812 need_version=no 11813 soname_spec='${libname}${release}${shared_ext}$major' 11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11815 shlibpath_var=LD_LIBRARY_PATH 11816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11817 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11818 ;; 11819 11820rdos*) 11821 dynamic_linker=no 11822 ;; 11823 11824solaris*) 11825 version_type=linux 11826 need_lib_prefix=no 11827 need_version=no 11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11829 soname_spec='${libname}${release}${shared_ext}$major' 11830 shlibpath_var=LD_LIBRARY_PATH 11831 shlibpath_overrides_runpath=yes 11832 hardcode_into_libs=yes 11833 # ldd complains unless libraries are executable 11834 postinstall_cmds='chmod +x $lib' 11835 ;; 11836 11837sunos4*) 11838 version_type=sunos 11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11841 shlibpath_var=LD_LIBRARY_PATH 11842 shlibpath_overrides_runpath=yes 11843 if test "$with_gnu_ld" = yes; then 11844 need_lib_prefix=no 11845 fi 11846 need_version=yes 11847 ;; 11848 11849sysv4 | sysv4.3*) 11850 version_type=linux 11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11852 soname_spec='${libname}${release}${shared_ext}$major' 11853 shlibpath_var=LD_LIBRARY_PATH 11854 case $host_vendor in 11855 sni) 11856 shlibpath_overrides_runpath=no 11857 need_lib_prefix=no 11858 runpath_var=LD_RUN_PATH 11859 ;; 11860 siemens) 11861 need_lib_prefix=no 11862 ;; 11863 motorola) 11864 need_lib_prefix=no 11865 need_version=no 11866 shlibpath_overrides_runpath=no 11867 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11868 ;; 11869 esac 11870 ;; 11871 11872sysv4*MP*) 11873 if test -d /usr/nec ;then 11874 version_type=linux 11875 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11876 soname_spec='$libname${shared_ext}.$major' 11877 shlibpath_var=LD_LIBRARY_PATH 11878 fi 11879 ;; 11880 11881sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11882 version_type=freebsd-elf 11883 need_lib_prefix=no 11884 need_version=no 11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11886 soname_spec='${libname}${release}${shared_ext}$major' 11887 shlibpath_var=LD_LIBRARY_PATH 11888 shlibpath_overrides_runpath=yes 11889 hardcode_into_libs=yes 11890 if test "$with_gnu_ld" = yes; then 11891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11892 else 11893 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11894 case $host_os in 11895 sco3.2v5*) 11896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11897 ;; 11898 esac 11899 fi 11900 sys_lib_dlsearch_path_spec='/usr/lib' 11901 ;; 11902 11903tpf*) 11904 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11905 version_type=linux 11906 need_lib_prefix=no 11907 need_version=no 11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11909 shlibpath_var=LD_LIBRARY_PATH 11910 shlibpath_overrides_runpath=no 11911 hardcode_into_libs=yes 11912 ;; 11913 11914uts4*) 11915 version_type=linux 11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11917 soname_spec='${libname}${release}${shared_ext}$major' 11918 shlibpath_var=LD_LIBRARY_PATH 11919 ;; 11920 11921*) 11922 dynamic_linker=no 11923 ;; 11924esac 11925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11926$as_echo "$dynamic_linker" >&6; } 11927test "$dynamic_linker" = no && can_build_shared=no 11928 11929variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11930if test "$GCC" = yes; then 11931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11932fi 11933 11934if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11935 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11936fi 11937if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11938 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11939fi 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12033$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12034hardcode_action= 12035if test -n "$hardcode_libdir_flag_spec" || 12036 test -n "$runpath_var" || 12037 test "X$hardcode_automatic" = "Xyes" ; then 12038 12039 # We can hardcode non-existent directories. 12040 if test "$hardcode_direct" != no && 12041 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12042 # have to relink, otherwise we might link with an installed library 12043 # when we should be linking with a yet-to-be-installed one 12044 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12045 test "$hardcode_minus_L" != no; then 12046 # Linking always hardcodes the temporary library directory. 12047 hardcode_action=relink 12048 else 12049 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12050 hardcode_action=immediate 12051 fi 12052else 12053 # We cannot hardcode anything, or else we can only hardcode existing 12054 # directories. 12055 hardcode_action=unsupported 12056fi 12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12058$as_echo "$hardcode_action" >&6; } 12059 12060if test "$hardcode_action" = relink || 12061 test "$inherit_rpath" = yes; then 12062 # Fast installation is not supported 12063 enable_fast_install=no 12064elif test "$shlibpath_overrides_runpath" = yes || 12065 test "$enable_shared" = no; then 12066 # Fast installation is not necessary 12067 enable_fast_install=needless 12068fi 12069 12070 12071 12072 12073 12074 12075 if test "x$enable_dlopen" != xyes; then 12076 enable_dlopen=unknown 12077 enable_dlopen_self=unknown 12078 enable_dlopen_self_static=unknown 12079else 12080 lt_cv_dlopen=no 12081 lt_cv_dlopen_libs= 12082 12083 case $host_os in 12084 beos*) 12085 lt_cv_dlopen="load_add_on" 12086 lt_cv_dlopen_libs= 12087 lt_cv_dlopen_self=yes 12088 ;; 12089 12090 mingw* | pw32* | cegcc*) 12091 lt_cv_dlopen="LoadLibrary" 12092 lt_cv_dlopen_libs= 12093 ;; 12094 12095 cygwin*) 12096 lt_cv_dlopen="dlopen" 12097 lt_cv_dlopen_libs= 12098 ;; 12099 12100 darwin*) 12101 # if libdl is installed we need to link against it 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12103$as_echo_n "checking for dlopen in -ldl... " >&6; } 12104if ${ac_cv_lib_dl_dlopen+:} false; then : 12105 $as_echo_n "(cached) " >&6 12106else 12107 ac_check_lib_save_LIBS=$LIBS 12108LIBS="-ldl $LIBS" 12109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12110/* end confdefs.h. */ 12111 12112/* Override any GCC internal prototype to avoid an error. 12113 Use char because int might match the return type of a GCC 12114 builtin and then its argument prototype would still apply. */ 12115#ifdef __cplusplus 12116extern "C" 12117#endif 12118char dlopen (); 12119int 12120main () 12121{ 12122return dlopen (); 12123 ; 12124 return 0; 12125} 12126_ACEOF 12127if ac_fn_c_try_link "$LINENO"; then : 12128 ac_cv_lib_dl_dlopen=yes 12129else 12130 ac_cv_lib_dl_dlopen=no 12131fi 12132rm -f core conftest.err conftest.$ac_objext \ 12133 conftest$ac_exeext conftest.$ac_ext 12134LIBS=$ac_check_lib_save_LIBS 12135fi 12136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12137$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12138if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12140else 12141 12142 lt_cv_dlopen="dyld" 12143 lt_cv_dlopen_libs= 12144 lt_cv_dlopen_self=yes 12145 12146fi 12147 12148 ;; 12149 12150 *) 12151 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12152if test "x$ac_cv_func_shl_load" = xyes; then : 12153 lt_cv_dlopen="shl_load" 12154else 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12156$as_echo_n "checking for shl_load in -ldld... " >&6; } 12157if ${ac_cv_lib_dld_shl_load+:} false; then : 12158 $as_echo_n "(cached) " >&6 12159else 12160 ac_check_lib_save_LIBS=$LIBS 12161LIBS="-ldld $LIBS" 12162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12163/* end confdefs.h. */ 12164 12165/* Override any GCC internal prototype to avoid an error. 12166 Use char because int might match the return type of a GCC 12167 builtin and then its argument prototype would still apply. */ 12168#ifdef __cplusplus 12169extern "C" 12170#endif 12171char shl_load (); 12172int 12173main () 12174{ 12175return shl_load (); 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180if ac_fn_c_try_link "$LINENO"; then : 12181 ac_cv_lib_dld_shl_load=yes 12182else 12183 ac_cv_lib_dld_shl_load=no 12184fi 12185rm -f core conftest.err conftest.$ac_objext \ 12186 conftest$ac_exeext conftest.$ac_ext 12187LIBS=$ac_check_lib_save_LIBS 12188fi 12189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12190$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12191if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12192 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12193else 12194 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12195if test "x$ac_cv_func_dlopen" = xyes; then : 12196 lt_cv_dlopen="dlopen" 12197else 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12199$as_echo_n "checking for dlopen in -ldl... " >&6; } 12200if ${ac_cv_lib_dl_dlopen+:} false; then : 12201 $as_echo_n "(cached) " >&6 12202else 12203 ac_check_lib_save_LIBS=$LIBS 12204LIBS="-ldl $LIBS" 12205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12206/* end confdefs.h. */ 12207 12208/* Override any GCC internal prototype to avoid an error. 12209 Use char because int might match the return type of a GCC 12210 builtin and then its argument prototype would still apply. */ 12211#ifdef __cplusplus 12212extern "C" 12213#endif 12214char dlopen (); 12215int 12216main () 12217{ 12218return dlopen (); 12219 ; 12220 return 0; 12221} 12222_ACEOF 12223if ac_fn_c_try_link "$LINENO"; then : 12224 ac_cv_lib_dl_dlopen=yes 12225else 12226 ac_cv_lib_dl_dlopen=no 12227fi 12228rm -f core conftest.err conftest.$ac_objext \ 12229 conftest$ac_exeext conftest.$ac_ext 12230LIBS=$ac_check_lib_save_LIBS 12231fi 12232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12233$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12234if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12236else 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12238$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12239if ${ac_cv_lib_svld_dlopen+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241else 12242 ac_check_lib_save_LIBS=$LIBS 12243LIBS="-lsvld $LIBS" 12244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245/* end confdefs.h. */ 12246 12247/* Override any GCC internal prototype to avoid an error. 12248 Use char because int might match the return type of a GCC 12249 builtin and then its argument prototype would still apply. */ 12250#ifdef __cplusplus 12251extern "C" 12252#endif 12253char dlopen (); 12254int 12255main () 12256{ 12257return dlopen (); 12258 ; 12259 return 0; 12260} 12261_ACEOF 12262if ac_fn_c_try_link "$LINENO"; then : 12263 ac_cv_lib_svld_dlopen=yes 12264else 12265 ac_cv_lib_svld_dlopen=no 12266fi 12267rm -f core conftest.err conftest.$ac_objext \ 12268 conftest$ac_exeext conftest.$ac_ext 12269LIBS=$ac_check_lib_save_LIBS 12270fi 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12272$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12273if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12275else 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12277$as_echo_n "checking for dld_link in -ldld... " >&6; } 12278if ${ac_cv_lib_dld_dld_link+:} false; then : 12279 $as_echo_n "(cached) " >&6 12280else 12281 ac_check_lib_save_LIBS=$LIBS 12282LIBS="-ldld $LIBS" 12283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12284/* end confdefs.h. */ 12285 12286/* Override any GCC internal prototype to avoid an error. 12287 Use char because int might match the return type of a GCC 12288 builtin and then its argument prototype would still apply. */ 12289#ifdef __cplusplus 12290extern "C" 12291#endif 12292char dld_link (); 12293int 12294main () 12295{ 12296return dld_link (); 12297 ; 12298 return 0; 12299} 12300_ACEOF 12301if ac_fn_c_try_link "$LINENO"; then : 12302 ac_cv_lib_dld_dld_link=yes 12303else 12304 ac_cv_lib_dld_dld_link=no 12305fi 12306rm -f core conftest.err conftest.$ac_objext \ 12307 conftest$ac_exeext conftest.$ac_ext 12308LIBS=$ac_check_lib_save_LIBS 12309fi 12310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12311$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12312if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12313 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12314fi 12315 12316 12317fi 12318 12319 12320fi 12321 12322 12323fi 12324 12325 12326fi 12327 12328 12329fi 12330 12331 ;; 12332 esac 12333 12334 if test "x$lt_cv_dlopen" != xno; then 12335 enable_dlopen=yes 12336 else 12337 enable_dlopen=no 12338 fi 12339 12340 case $lt_cv_dlopen in 12341 dlopen) 12342 save_CPPFLAGS="$CPPFLAGS" 12343 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12344 12345 save_LDFLAGS="$LDFLAGS" 12346 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12347 12348 save_LIBS="$LIBS" 12349 LIBS="$lt_cv_dlopen_libs $LIBS" 12350 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12352$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12353if ${lt_cv_dlopen_self+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355else 12356 if test "$cross_compiling" = yes; then : 12357 lt_cv_dlopen_self=cross 12358else 12359 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12360 lt_status=$lt_dlunknown 12361 cat > conftest.$ac_ext <<_LT_EOF 12362#line 12362 "configure" 12363#include "confdefs.h" 12364 12365#if HAVE_DLFCN_H 12366#include <dlfcn.h> 12367#endif 12368 12369#include <stdio.h> 12370 12371#ifdef RTLD_GLOBAL 12372# define LT_DLGLOBAL RTLD_GLOBAL 12373#else 12374# ifdef DL_GLOBAL 12375# define LT_DLGLOBAL DL_GLOBAL 12376# else 12377# define LT_DLGLOBAL 0 12378# endif 12379#endif 12380 12381/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12382 find out it does not work in some platform. */ 12383#ifndef LT_DLLAZY_OR_NOW 12384# ifdef RTLD_LAZY 12385# define LT_DLLAZY_OR_NOW RTLD_LAZY 12386# else 12387# ifdef DL_LAZY 12388# define LT_DLLAZY_OR_NOW DL_LAZY 12389# else 12390# ifdef RTLD_NOW 12391# define LT_DLLAZY_OR_NOW RTLD_NOW 12392# else 12393# ifdef DL_NOW 12394# define LT_DLLAZY_OR_NOW DL_NOW 12395# else 12396# define LT_DLLAZY_OR_NOW 0 12397# endif 12398# endif 12399# endif 12400# endif 12401#endif 12402 12403/* When -fvisbility=hidden is used, assume the code has been annotated 12404 correspondingly for the symbols needed. */ 12405#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12406void fnord () __attribute__((visibility("default"))); 12407#endif 12408 12409void fnord () { int i=42; } 12410int main () 12411{ 12412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12413 int status = $lt_dlunknown; 12414 12415 if (self) 12416 { 12417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12418 else 12419 { 12420 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12421 else puts (dlerror ()); 12422 } 12423 /* dlclose (self); */ 12424 } 12425 else 12426 puts (dlerror ()); 12427 12428 return status; 12429} 12430_LT_EOF 12431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12432 (eval $ac_link) 2>&5 12433 ac_status=$? 12434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12435 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12436 (./conftest; exit; ) >&5 2>/dev/null 12437 lt_status=$? 12438 case x$lt_status in 12439 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12440 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12441 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12442 esac 12443 else : 12444 # compilation failed 12445 lt_cv_dlopen_self=no 12446 fi 12447fi 12448rm -fr conftest* 12449 12450 12451fi 12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12453$as_echo "$lt_cv_dlopen_self" >&6; } 12454 12455 if test "x$lt_cv_dlopen_self" = xyes; then 12456 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12458$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12459if ${lt_cv_dlopen_self_static+:} false; then : 12460 $as_echo_n "(cached) " >&6 12461else 12462 if test "$cross_compiling" = yes; then : 12463 lt_cv_dlopen_self_static=cross 12464else 12465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12466 lt_status=$lt_dlunknown 12467 cat > conftest.$ac_ext <<_LT_EOF 12468#line 12468 "configure" 12469#include "confdefs.h" 12470 12471#if HAVE_DLFCN_H 12472#include <dlfcn.h> 12473#endif 12474 12475#include <stdio.h> 12476 12477#ifdef RTLD_GLOBAL 12478# define LT_DLGLOBAL RTLD_GLOBAL 12479#else 12480# ifdef DL_GLOBAL 12481# define LT_DLGLOBAL DL_GLOBAL 12482# else 12483# define LT_DLGLOBAL 0 12484# endif 12485#endif 12486 12487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12488 find out it does not work in some platform. */ 12489#ifndef LT_DLLAZY_OR_NOW 12490# ifdef RTLD_LAZY 12491# define LT_DLLAZY_OR_NOW RTLD_LAZY 12492# else 12493# ifdef DL_LAZY 12494# define LT_DLLAZY_OR_NOW DL_LAZY 12495# else 12496# ifdef RTLD_NOW 12497# define LT_DLLAZY_OR_NOW RTLD_NOW 12498# else 12499# ifdef DL_NOW 12500# define LT_DLLAZY_OR_NOW DL_NOW 12501# else 12502# define LT_DLLAZY_OR_NOW 0 12503# endif 12504# endif 12505# endif 12506# endif 12507#endif 12508 12509/* When -fvisbility=hidden is used, assume the code has been annotated 12510 correspondingly for the symbols needed. */ 12511#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12512void fnord () __attribute__((visibility("default"))); 12513#endif 12514 12515void fnord () { int i=42; } 12516int main () 12517{ 12518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12519 int status = $lt_dlunknown; 12520 12521 if (self) 12522 { 12523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12524 else 12525 { 12526 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12527 else puts (dlerror ()); 12528 } 12529 /* dlclose (self); */ 12530 } 12531 else 12532 puts (dlerror ()); 12533 12534 return status; 12535} 12536_LT_EOF 12537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12538 (eval $ac_link) 2>&5 12539 ac_status=$? 12540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12541 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12542 (./conftest; exit; ) >&5 2>/dev/null 12543 lt_status=$? 12544 case x$lt_status in 12545 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12546 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12547 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12548 esac 12549 else : 12550 # compilation failed 12551 lt_cv_dlopen_self_static=no 12552 fi 12553fi 12554rm -fr conftest* 12555 12556 12557fi 12558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12559$as_echo "$lt_cv_dlopen_self_static" >&6; } 12560 fi 12561 12562 CPPFLAGS="$save_CPPFLAGS" 12563 LDFLAGS="$save_LDFLAGS" 12564 LIBS="$save_LIBS" 12565 ;; 12566 esac 12567 12568 case $lt_cv_dlopen_self in 12569 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12570 *) enable_dlopen_self=unknown ;; 12571 esac 12572 12573 case $lt_cv_dlopen_self_static in 12574 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12575 *) enable_dlopen_self_static=unknown ;; 12576 esac 12577fi 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595striplib= 12596old_striplib= 12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12598$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12599if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12600 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12601 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12603$as_echo "yes" >&6; } 12604else 12605# FIXME - insert some real tests, host_os isn't really good enough 12606 case $host_os in 12607 darwin*) 12608 if test -n "$STRIP" ; then 12609 striplib="$STRIP -x" 12610 old_striplib="$STRIP -S" 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12612$as_echo "yes" >&6; } 12613 else 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12615$as_echo "no" >&6; } 12616 fi 12617 ;; 12618 *) 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12620$as_echo "no" >&6; } 12621 ;; 12622 esac 12623fi 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 # Report which library types will actually be built 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12638$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12640$as_echo "$can_build_shared" >&6; } 12641 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12643$as_echo_n "checking whether to build shared libraries... " >&6; } 12644 test "$can_build_shared" = "no" && enable_shared=no 12645 12646 # On AIX, shared libraries and static libraries use the same namespace, and 12647 # are all built from PIC. 12648 case $host_os in 12649 aix3*) 12650 test "$enable_shared" = yes && enable_static=no 12651 if test -n "$RANLIB"; then 12652 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12653 postinstall_cmds='$RANLIB $lib' 12654 fi 12655 ;; 12656 12657 aix[4-9]*) 12658 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12659 test "$enable_shared" = yes && enable_static=no 12660 fi 12661 ;; 12662 esac 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12664$as_echo "$enable_shared" >&6; } 12665 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12667$as_echo_n "checking whether to build static libraries... " >&6; } 12668 # Make sure either enable_shared or enable_static is yes. 12669 test "$enable_shared" = yes || enable_static=yes 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12671$as_echo "$enable_static" >&6; } 12672 12673 12674 12675 12676fi 12677ac_ext=c 12678ac_cpp='$CPP $CPPFLAGS' 12679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12681ac_compiler_gnu=$ac_cv_c_compiler_gnu 12682 12683CC="$lt_save_CC" 12684 12685 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12686 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12687 (test "X$CXX" != "Xg++"))) ; then 12688 ac_ext=cpp 12689ac_cpp='$CXXCPP $CPPFLAGS' 12690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12694$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12695if test -z "$CXXCPP"; then 12696 if ${ac_cv_prog_CXXCPP+:} false; then : 12697 $as_echo_n "(cached) " >&6 12698else 12699 # Double quotes because CXXCPP needs to be expanded 12700 for CXXCPP in "$CXX -E" "/lib/cpp" 12701 do 12702 ac_preproc_ok=false 12703for ac_cxx_preproc_warn_flag in '' yes 12704do 12705 # Use a header file that comes with gcc, so configuring glibc 12706 # with a fresh cross-compiler works. 12707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12708 # <limits.h> exists even on freestanding compilers. 12709 # On the NeXT, cc -E runs the code through the compiler's parser, 12710 # not just through cpp. "Syntax error" is here to catch this case. 12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12712/* end confdefs.h. */ 12713#ifdef __STDC__ 12714# include <limits.h> 12715#else 12716# include <assert.h> 12717#endif 12718 Syntax error 12719_ACEOF 12720if ac_fn_cxx_try_cpp "$LINENO"; then : 12721 12722else 12723 # Broken: fails on valid input. 12724continue 12725fi 12726rm -f conftest.err conftest.i conftest.$ac_ext 12727 12728 # OK, works on sane cases. Now check whether nonexistent headers 12729 # can be detected and how. 12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12731/* end confdefs.h. */ 12732#include <ac_nonexistent.h> 12733_ACEOF 12734if ac_fn_cxx_try_cpp "$LINENO"; then : 12735 # Broken: success on invalid input. 12736continue 12737else 12738 # Passes both tests. 12739ac_preproc_ok=: 12740break 12741fi 12742rm -f conftest.err conftest.i conftest.$ac_ext 12743 12744done 12745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12746rm -f conftest.i conftest.err conftest.$ac_ext 12747if $ac_preproc_ok; then : 12748 break 12749fi 12750 12751 done 12752 ac_cv_prog_CXXCPP=$CXXCPP 12753 12754fi 12755 CXXCPP=$ac_cv_prog_CXXCPP 12756else 12757 ac_cv_prog_CXXCPP=$CXXCPP 12758fi 12759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12760$as_echo "$CXXCPP" >&6; } 12761ac_preproc_ok=false 12762for ac_cxx_preproc_warn_flag in '' yes 12763do 12764 # Use a header file that comes with gcc, so configuring glibc 12765 # with a fresh cross-compiler works. 12766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12767 # <limits.h> exists even on freestanding compilers. 12768 # On the NeXT, cc -E runs the code through the compiler's parser, 12769 # not just through cpp. "Syntax error" is here to catch this case. 12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12771/* end confdefs.h. */ 12772#ifdef __STDC__ 12773# include <limits.h> 12774#else 12775# include <assert.h> 12776#endif 12777 Syntax error 12778_ACEOF 12779if ac_fn_cxx_try_cpp "$LINENO"; then : 12780 12781else 12782 # Broken: fails on valid input. 12783continue 12784fi 12785rm -f conftest.err conftest.i conftest.$ac_ext 12786 12787 # OK, works on sane cases. Now check whether nonexistent headers 12788 # can be detected and how. 12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12790/* end confdefs.h. */ 12791#include <ac_nonexistent.h> 12792_ACEOF 12793if ac_fn_cxx_try_cpp "$LINENO"; then : 12794 # Broken: success on invalid input. 12795continue 12796else 12797 # Passes both tests. 12798ac_preproc_ok=: 12799break 12800fi 12801rm -f conftest.err conftest.i conftest.$ac_ext 12802 12803done 12804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12805rm -f conftest.i conftest.err conftest.$ac_ext 12806if $ac_preproc_ok; then : 12807 12808else 12809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12811as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12812See \`config.log' for more details" "$LINENO" 5; } 12813fi 12814 12815ac_ext=c 12816ac_cpp='$CPP $CPPFLAGS' 12817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12819ac_compiler_gnu=$ac_cv_c_compiler_gnu 12820 12821else 12822 _lt_caught_CXX_error=yes 12823fi 12824 12825ac_ext=cpp 12826ac_cpp='$CXXCPP $CPPFLAGS' 12827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12830 12831archive_cmds_need_lc_CXX=no 12832allow_undefined_flag_CXX= 12833always_export_symbols_CXX=no 12834archive_expsym_cmds_CXX= 12835compiler_needs_object_CXX=no 12836export_dynamic_flag_spec_CXX= 12837hardcode_direct_CXX=no 12838hardcode_direct_absolute_CXX=no 12839hardcode_libdir_flag_spec_CXX= 12840hardcode_libdir_flag_spec_ld_CXX= 12841hardcode_libdir_separator_CXX= 12842hardcode_minus_L_CXX=no 12843hardcode_shlibpath_var_CXX=unsupported 12844hardcode_automatic_CXX=no 12845inherit_rpath_CXX=no 12846module_cmds_CXX= 12847module_expsym_cmds_CXX= 12848link_all_deplibs_CXX=unknown 12849old_archive_cmds_CXX=$old_archive_cmds 12850reload_flag_CXX=$reload_flag 12851reload_cmds_CXX=$reload_cmds 12852no_undefined_flag_CXX= 12853whole_archive_flag_spec_CXX= 12854enable_shared_with_static_runtimes_CXX=no 12855 12856# Source file extension for C++ test sources. 12857ac_ext=cpp 12858 12859# Object file extension for compiled C++ test sources. 12860objext=o 12861objext_CXX=$objext 12862 12863# No sense in running all these tests if we already determined that 12864# the CXX compiler isn't working. Some variables (like enable_shared) 12865# are currently assumed to apply to all compilers on this platform, 12866# and will be corrupted by setting them based on a non-working compiler. 12867if test "$_lt_caught_CXX_error" != yes; then 12868 # Code to be used in simple compile tests 12869 lt_simple_compile_test_code="int some_variable = 0;" 12870 12871 # Code to be used in simple link tests 12872 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12873 12874 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12875 12876 12877 12878 12879 12880 12881# If no C compiler was specified, use CC. 12882LTCC=${LTCC-"$CC"} 12883 12884# If no C compiler flags were specified, use CFLAGS. 12885LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12886 12887# Allow CC to be a program name with arguments. 12888compiler=$CC 12889 12890 12891 # save warnings/boilerplate of simple test code 12892 ac_outfile=conftest.$ac_objext 12893echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12894eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12895_lt_compiler_boilerplate=`cat conftest.err` 12896$RM conftest* 12897 12898 ac_outfile=conftest.$ac_objext 12899echo "$lt_simple_link_test_code" >conftest.$ac_ext 12900eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12901_lt_linker_boilerplate=`cat conftest.err` 12902$RM -r conftest* 12903 12904 12905 # Allow CC to be a program name with arguments. 12906 lt_save_CC=$CC 12907 lt_save_LD=$LD 12908 lt_save_GCC=$GCC 12909 GCC=$GXX 12910 lt_save_with_gnu_ld=$with_gnu_ld 12911 lt_save_path_LD=$lt_cv_path_LD 12912 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12913 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12914 else 12915 $as_unset lt_cv_prog_gnu_ld 12916 fi 12917 if test -n "${lt_cv_path_LDCXX+set}"; then 12918 lt_cv_path_LD=$lt_cv_path_LDCXX 12919 else 12920 $as_unset lt_cv_path_LD 12921 fi 12922 test -z "${LDCXX+set}" || LD=$LDCXX 12923 CC=${CXX-"c++"} 12924 compiler=$CC 12925 compiler_CXX=$CC 12926 for cc_temp in $compiler""; do 12927 case $cc_temp in 12928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12930 \-*) ;; 12931 *) break;; 12932 esac 12933done 12934cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12935 12936 12937 if test -n "$compiler"; then 12938 # We don't want -fno-exception when compiling C++ code, so set the 12939 # no_builtin_flag separately 12940 if test "$GXX" = yes; then 12941 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12942 else 12943 lt_prog_compiler_no_builtin_flag_CXX= 12944 fi 12945 12946 if test "$GXX" = yes; then 12947 # Set up default GNU C++ configuration 12948 12949 12950 12951# Check whether --with-gnu-ld was given. 12952if test "${with_gnu_ld+set}" = set; then : 12953 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12954else 12955 with_gnu_ld=no 12956fi 12957 12958ac_prog=ld 12959if test "$GCC" = yes; then 12960 # Check if gcc -print-prog-name=ld gives a path. 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12962$as_echo_n "checking for ld used by $CC... " >&6; } 12963 case $host in 12964 *-*-mingw*) 12965 # gcc leaves a trailing carriage return which upsets mingw 12966 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12967 *) 12968 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12969 esac 12970 case $ac_prog in 12971 # Accept absolute paths. 12972 [\\/]* | ?:[\\/]*) 12973 re_direlt='/[^/][^/]*/\.\./' 12974 # Canonicalize the pathname of ld 12975 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12976 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12977 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12978 done 12979 test -z "$LD" && LD="$ac_prog" 12980 ;; 12981 "") 12982 # If it fails, then pretend we aren't using GCC. 12983 ac_prog=ld 12984 ;; 12985 *) 12986 # If it is relative, then search for the first ld in PATH. 12987 with_gnu_ld=unknown 12988 ;; 12989 esac 12990elif test "$with_gnu_ld" = yes; then 12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12992$as_echo_n "checking for GNU ld... " >&6; } 12993else 12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12995$as_echo_n "checking for non-GNU ld... " >&6; } 12996fi 12997if ${lt_cv_path_LD+:} false; then : 12998 $as_echo_n "(cached) " >&6 12999else 13000 if test -z "$LD"; then 13001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13002 for ac_dir in $PATH; do 13003 IFS="$lt_save_ifs" 13004 test -z "$ac_dir" && ac_dir=. 13005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13006 lt_cv_path_LD="$ac_dir/$ac_prog" 13007 # Check to see if the program is GNU ld. I'd rather use --version, 13008 # but apparently some variants of GNU ld only accept -v. 13009 # Break only if it was the GNU/non-GNU ld that we prefer. 13010 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13011 *GNU* | *'with BFD'*) 13012 test "$with_gnu_ld" != no && break 13013 ;; 13014 *) 13015 test "$with_gnu_ld" != yes && break 13016 ;; 13017 esac 13018 fi 13019 done 13020 IFS="$lt_save_ifs" 13021else 13022 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13023fi 13024fi 13025 13026LD="$lt_cv_path_LD" 13027if test -n "$LD"; then 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13029$as_echo "$LD" >&6; } 13030else 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13032$as_echo "no" >&6; } 13033fi 13034test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13036$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13037if ${lt_cv_prog_gnu_ld+:} false; then : 13038 $as_echo_n "(cached) " >&6 13039else 13040 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13041case `$LD -v 2>&1 </dev/null` in 13042*GNU* | *'with BFD'*) 13043 lt_cv_prog_gnu_ld=yes 13044 ;; 13045*) 13046 lt_cv_prog_gnu_ld=no 13047 ;; 13048esac 13049fi 13050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13051$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13052with_gnu_ld=$lt_cv_prog_gnu_ld 13053 13054 13055 13056 13057 13058 13059 13060 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13061 # archiving commands below assume that GNU ld is being used. 13062 if test "$with_gnu_ld" = yes; then 13063 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13064 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' 13065 13066 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13067 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13068 13069 # If archive_cmds runs LD, not CC, wlarc should be empty 13070 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13071 # investigate it a little bit more. (MM) 13072 wlarc='${wl}' 13073 13074 # ancient GNU ld didn't support --whole-archive et. al. 13075 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13076 $GREP 'no-whole-archive' > /dev/null; then 13077 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13078 else 13079 whole_archive_flag_spec_CXX= 13080 fi 13081 else 13082 with_gnu_ld=no 13083 wlarc= 13084 13085 # A generic and very simple default shared library creation 13086 # command for GNU C++ for the case where it uses the native 13087 # linker, instead of GNU ld. If possible, this setting should 13088 # overridden to take advantage of the native linker features on 13089 # the platform it is being used on. 13090 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13091 fi 13092 13093 # Commands to make compiler produce verbose output that lists 13094 # what "hidden" libraries, object files and flags are used when 13095 # linking a shared library. 13096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13097 13098 else 13099 GXX=no 13100 with_gnu_ld=no 13101 wlarc= 13102 fi 13103 13104 # PORTME: fill in a description of your system's C++ link characteristics 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13106$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13107 ld_shlibs_CXX=yes 13108 case $host_os in 13109 aix3*) 13110 # FIXME: insert proper C++ library support 13111 ld_shlibs_CXX=no 13112 ;; 13113 aix[4-9]*) 13114 if test "$host_cpu" = ia64; then 13115 # On IA64, the linker does run time linking by default, so we don't 13116 # have to do anything special. 13117 aix_use_runtimelinking=no 13118 exp_sym_flag='-Bexport' 13119 no_entry_flag="" 13120 else 13121 aix_use_runtimelinking=no 13122 13123 # Test if we are trying to use run time linking or normal 13124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13125 # need to do runtime linking. 13126 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13127 for ld_flag in $LDFLAGS; do 13128 case $ld_flag in 13129 *-brtl*) 13130 aix_use_runtimelinking=yes 13131 break 13132 ;; 13133 esac 13134 done 13135 ;; 13136 esac 13137 13138 exp_sym_flag='-bexport' 13139 no_entry_flag='-bnoentry' 13140 fi 13141 13142 # When large executables or shared objects are built, AIX ld can 13143 # have problems creating the table of contents. If linking a library 13144 # or program results in "error TOC overflow" add -mminimal-toc to 13145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13147 13148 archive_cmds_CXX='' 13149 hardcode_direct_CXX=yes 13150 hardcode_direct_absolute_CXX=yes 13151 hardcode_libdir_separator_CXX=':' 13152 link_all_deplibs_CXX=yes 13153 file_list_spec_CXX='${wl}-f,' 13154 13155 if test "$GXX" = yes; then 13156 case $host_os in aix4.[012]|aix4.[012].*) 13157 # We only want to do this on AIX 4.2 and lower, the check 13158 # below for broken collect2 doesn't work under 4.3+ 13159 collect2name=`${CC} -print-prog-name=collect2` 13160 if test -f "$collect2name" && 13161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13162 then 13163 # We have reworked collect2 13164 : 13165 else 13166 # We have old collect2 13167 hardcode_direct_CXX=unsupported 13168 # It fails to find uninstalled libraries when the uninstalled 13169 # path is not listed in the libpath. Setting hardcode_minus_L 13170 # to unsupported forces relinking 13171 hardcode_minus_L_CXX=yes 13172 hardcode_libdir_flag_spec_CXX='-L$libdir' 13173 hardcode_libdir_separator_CXX= 13174 fi 13175 esac 13176 shared_flag='-shared' 13177 if test "$aix_use_runtimelinking" = yes; then 13178 shared_flag="$shared_flag "'${wl}-G' 13179 fi 13180 else 13181 # not using gcc 13182 if test "$host_cpu" = ia64; then 13183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13184 # chokes on -Wl,-G. The following line is correct: 13185 shared_flag='-G' 13186 else 13187 if test "$aix_use_runtimelinking" = yes; then 13188 shared_flag='${wl}-G' 13189 else 13190 shared_flag='${wl}-bM:SRE' 13191 fi 13192 fi 13193 fi 13194 13195 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13196 # It seems that -bexpall does not export symbols beginning with 13197 # underscore (_), so it is better to generate a list of symbols to 13198 # export. 13199 always_export_symbols_CXX=yes 13200 if test "$aix_use_runtimelinking" = yes; then 13201 # Warning - without using the other runtime loading flags (-brtl), 13202 # -berok will link without error, but may produce a broken library. 13203 allow_undefined_flag_CXX='-berok' 13204 # Determine the default libpath from the value encoded in an empty 13205 # executable. 13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13207/* end confdefs.h. */ 13208 13209int 13210main () 13211{ 13212 13213 ; 13214 return 0; 13215} 13216_ACEOF 13217if ac_fn_cxx_try_link "$LINENO"; then : 13218 13219lt_aix_libpath_sed=' 13220 /Import File Strings/,/^$/ { 13221 /^0/ { 13222 s/^0 *\(.*\)$/\1/ 13223 p 13224 } 13225 }' 13226aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13227# Check for a 64-bit object if we didn't find anything. 13228if test -z "$aix_libpath"; then 13229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13230fi 13231fi 13232rm -f core conftest.err conftest.$ac_objext \ 13233 conftest$ac_exeext conftest.$ac_ext 13234if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13235 13236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13237 13238 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" 13239 else 13240 if test "$host_cpu" = ia64; then 13241 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13242 allow_undefined_flag_CXX="-z nodefs" 13243 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" 13244 else 13245 # Determine the default libpath from the value encoded in an 13246 # empty executable. 13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13248/* end confdefs.h. */ 13249 13250int 13251main () 13252{ 13253 13254 ; 13255 return 0; 13256} 13257_ACEOF 13258if ac_fn_cxx_try_link "$LINENO"; then : 13259 13260lt_aix_libpath_sed=' 13261 /Import File Strings/,/^$/ { 13262 /^0/ { 13263 s/^0 *\(.*\)$/\1/ 13264 p 13265 } 13266 }' 13267aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13268# Check for a 64-bit object if we didn't find anything. 13269if test -z "$aix_libpath"; then 13270 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13271fi 13272fi 13273rm -f core conftest.err conftest.$ac_objext \ 13274 conftest$ac_exeext conftest.$ac_ext 13275if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13276 13277 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13278 # Warning - without using the other run time loading flags, 13279 # -berok will link without error, but may produce a broken library. 13280 no_undefined_flag_CXX=' ${wl}-bernotok' 13281 allow_undefined_flag_CXX=' ${wl}-berok' 13282 if test "$with_gnu_ld" = yes; then 13283 # We only use this code for GNU lds that support --whole-archive. 13284 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13285 else 13286 # Exported symbols can be pulled into shared objects from archives 13287 whole_archive_flag_spec_CXX='$convenience' 13288 fi 13289 archive_cmds_need_lc_CXX=yes 13290 # This is similar to how AIX traditionally builds its shared 13291 # libraries. 13292 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' 13293 fi 13294 fi 13295 ;; 13296 13297 beos*) 13298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13299 allow_undefined_flag_CXX=unsupported 13300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13301 # support --undefined. This deserves some investigation. FIXME 13302 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13303 else 13304 ld_shlibs_CXX=no 13305 fi 13306 ;; 13307 13308 chorus*) 13309 case $cc_basename in 13310 *) 13311 # FIXME: insert proper C++ library support 13312 ld_shlibs_CXX=no 13313 ;; 13314 esac 13315 ;; 13316 13317 cygwin* | mingw* | pw32* | cegcc*) 13318 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13319 # as there is no search path for DLLs. 13320 hardcode_libdir_flag_spec_CXX='-L$libdir' 13321 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13322 allow_undefined_flag_CXX=unsupported 13323 always_export_symbols_CXX=no 13324 enable_shared_with_static_runtimes_CXX=yes 13325 13326 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13327 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' 13328 # If the export-symbols file already is a .def file (1st line 13329 # is EXPORTS), use it as is; otherwise, prepend... 13330 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13331 cp $export_symbols $output_objdir/$soname.def; 13332 else 13333 echo EXPORTS > $output_objdir/$soname.def; 13334 cat $export_symbols >> $output_objdir/$soname.def; 13335 fi~ 13336 $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' 13337 else 13338 ld_shlibs_CXX=no 13339 fi 13340 ;; 13341 darwin* | rhapsody*) 13342 13343 13344 archive_cmds_need_lc_CXX=no 13345 hardcode_direct_CXX=no 13346 hardcode_automatic_CXX=yes 13347 hardcode_shlibpath_var_CXX=unsupported 13348 if test "$lt_cv_ld_force_load" = "yes"; then 13349 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\"`' 13350 else 13351 whole_archive_flag_spec_CXX='' 13352 fi 13353 link_all_deplibs_CXX=yes 13354 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13355 case $cc_basename in 13356 ifort*) _lt_dar_can_shared=yes ;; 13357 *) _lt_dar_can_shared=$GCC ;; 13358 esac 13359 if test "$_lt_dar_can_shared" = "yes"; then 13360 output_verbose_link_cmd=func_echo_all 13361 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}" 13362 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13363 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}" 13364 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}" 13365 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13366 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}" 13367 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}" 13368 fi 13369 13370 else 13371 ld_shlibs_CXX=no 13372 fi 13373 13374 ;; 13375 13376 dgux*) 13377 case $cc_basename in 13378 ec++*) 13379 # FIXME: insert proper C++ library support 13380 ld_shlibs_CXX=no 13381 ;; 13382 ghcx*) 13383 # Green Hills C++ Compiler 13384 # FIXME: insert proper C++ library support 13385 ld_shlibs_CXX=no 13386 ;; 13387 *) 13388 # FIXME: insert proper C++ library support 13389 ld_shlibs_CXX=no 13390 ;; 13391 esac 13392 ;; 13393 13394 freebsd2.*) 13395 # C++ shared libraries reported to be fairly broken before 13396 # switch to ELF 13397 ld_shlibs_CXX=no 13398 ;; 13399 13400 freebsd-elf*) 13401 archive_cmds_need_lc_CXX=no 13402 ;; 13403 13404 freebsd* | dragonfly*) 13405 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13406 # conventions 13407 ld_shlibs_CXX=yes 13408 ;; 13409 13410 gnu*) 13411 ;; 13412 13413 haiku*) 13414 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13415 link_all_deplibs_CXX=yes 13416 ;; 13417 13418 hpux9*) 13419 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13420 hardcode_libdir_separator_CXX=: 13421 export_dynamic_flag_spec_CXX='${wl}-E' 13422 hardcode_direct_CXX=yes 13423 hardcode_minus_L_CXX=yes # Not in the search PATH, 13424 # but as the default 13425 # location of the library. 13426 13427 case $cc_basename in 13428 CC*) 13429 # FIXME: insert proper C++ library support 13430 ld_shlibs_CXX=no 13431 ;; 13432 aCC*) 13433 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' 13434 # Commands to make compiler produce verbose output that lists 13435 # what "hidden" libraries, object files and flags are used when 13436 # linking a shared library. 13437 # 13438 # There doesn't appear to be a way to prevent this compiler from 13439 # explicitly linking system object files so we need to strip them 13440 # from the output so that they don't get included in the library 13441 # dependencies. 13442 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"' 13443 ;; 13444 *) 13445 if test "$GXX" = yes; then 13446 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' 13447 else 13448 # FIXME: insert proper C++ library support 13449 ld_shlibs_CXX=no 13450 fi 13451 ;; 13452 esac 13453 ;; 13454 13455 hpux10*|hpux11*) 13456 if test $with_gnu_ld = no; then 13457 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13458 hardcode_libdir_separator_CXX=: 13459 13460 case $host_cpu in 13461 hppa*64*|ia64*) 13462 ;; 13463 *) 13464 export_dynamic_flag_spec_CXX='${wl}-E' 13465 ;; 13466 esac 13467 fi 13468 case $host_cpu in 13469 hppa*64*|ia64*) 13470 hardcode_direct_CXX=no 13471 hardcode_shlibpath_var_CXX=no 13472 ;; 13473 *) 13474 hardcode_direct_CXX=yes 13475 hardcode_direct_absolute_CXX=yes 13476 hardcode_minus_L_CXX=yes # Not in the search PATH, 13477 # but as the default 13478 # location of the library. 13479 ;; 13480 esac 13481 13482 case $cc_basename in 13483 CC*) 13484 # FIXME: insert proper C++ library support 13485 ld_shlibs_CXX=no 13486 ;; 13487 aCC*) 13488 case $host_cpu in 13489 hppa*64*) 13490 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13491 ;; 13492 ia64*) 13493 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13494 ;; 13495 *) 13496 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13497 ;; 13498 esac 13499 # Commands to make compiler produce verbose output that lists 13500 # what "hidden" libraries, object files and flags are used when 13501 # linking a shared library. 13502 # 13503 # There doesn't appear to be a way to prevent this compiler from 13504 # explicitly linking system object files so we need to strip them 13505 # from the output so that they don't get included in the library 13506 # dependencies. 13507 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"' 13508 ;; 13509 *) 13510 if test "$GXX" = yes; then 13511 if test $with_gnu_ld = no; then 13512 case $host_cpu in 13513 hppa*64*) 13514 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13515 ;; 13516 ia64*) 13517 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13518 ;; 13519 *) 13520 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' 13521 ;; 13522 esac 13523 fi 13524 else 13525 # FIXME: insert proper C++ library support 13526 ld_shlibs_CXX=no 13527 fi 13528 ;; 13529 esac 13530 ;; 13531 13532 interix[3-9]*) 13533 hardcode_direct_CXX=no 13534 hardcode_shlibpath_var_CXX=no 13535 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13536 export_dynamic_flag_spec_CXX='${wl}-E' 13537 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13538 # Instead, shared libraries are loaded at an image base (0x10000000 by 13539 # default) and relocated if they conflict, which is a slow very memory 13540 # consuming and fragmenting process. To avoid this, we pick a random, 13541 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13542 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13543 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' 13544 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' 13545 ;; 13546 irix5* | irix6*) 13547 case $cc_basename in 13548 CC*) 13549 # SGI C++ 13550 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' 13551 13552 # Archives containing C++ object files must be created using 13553 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13554 # necessary to make sure instantiated templates are included 13555 # in the archive. 13556 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13557 ;; 13558 *) 13559 if test "$GXX" = yes; then 13560 if test "$with_gnu_ld" = no; then 13561 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' 13562 else 13563 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' 13564 fi 13565 fi 13566 link_all_deplibs_CXX=yes 13567 ;; 13568 esac 13569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13570 hardcode_libdir_separator_CXX=: 13571 inherit_rpath_CXX=yes 13572 ;; 13573 13574 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13575 case $cc_basename in 13576 KCC*) 13577 # Kuck and Associates, Inc. (KAI) C++ Compiler 13578 13579 # KCC will only create a shared library if the output file 13580 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13581 # to its proper name (with version) after linking. 13582 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' 13583 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' 13584 # Commands to make compiler produce verbose output that lists 13585 # what "hidden" libraries, object files and flags are used when 13586 # linking a shared library. 13587 # 13588 # There doesn't appear to be a way to prevent this compiler from 13589 # explicitly linking system object files so we need to strip them 13590 # from the output so that they don't get included in the library 13591 # dependencies. 13592 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"' 13593 13594 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13595 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13596 13597 # Archives containing C++ object files must be created using 13598 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13599 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13600 ;; 13601 icpc* | ecpc* ) 13602 # Intel C++ 13603 with_gnu_ld=yes 13604 # version 8.0 and above of icpc choke on multiply defined symbols 13605 # if we add $predep_objects and $postdep_objects, however 7.1 and 13606 # earlier do not add the objects themselves. 13607 case `$CC -V 2>&1` in 13608 *"Version 7."*) 13609 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13610 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' 13611 ;; 13612 *) # Version 8.0 or newer 13613 tmp_idyn= 13614 case $host_cpu in 13615 ia64*) tmp_idyn=' -i_dynamic';; 13616 esac 13617 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13618 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' 13619 ;; 13620 esac 13621 archive_cmds_need_lc_CXX=no 13622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13623 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13624 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13625 ;; 13626 pgCC* | pgcpp*) 13627 # Portland Group C++ compiler 13628 case `$CC -V` in 13629 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13630 prelink_cmds_CXX='tpldir=Template.dir~ 13631 rm -rf $tpldir~ 13632 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13633 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13634 old_archive_cmds_CXX='tpldir=Template.dir~ 13635 rm -rf $tpldir~ 13636 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13637 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13638 $RANLIB $oldlib' 13639 archive_cmds_CXX='tpldir=Template.dir~ 13640 rm -rf $tpldir~ 13641 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13642 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13643 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13644 rm -rf $tpldir~ 13645 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13646 $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' 13647 ;; 13648 *) # Version 6 and above use weak symbols 13649 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13650 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' 13651 ;; 13652 esac 13653 13654 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13655 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13656 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' 13657 ;; 13658 cxx*) 13659 # Compaq C++ 13660 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13661 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' 13662 13663 runpath_var=LD_RUN_PATH 13664 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13665 hardcode_libdir_separator_CXX=: 13666 13667 # Commands to make compiler produce verbose output that lists 13668 # what "hidden" libraries, object files and flags are used when 13669 # linking a shared library. 13670 # 13671 # There doesn't appear to be a way to prevent this compiler from 13672 # explicitly linking system object files so we need to strip them 13673 # from the output so that they don't get included in the library 13674 # dependencies. 13675 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' 13676 ;; 13677 xl* | mpixl* | bgxl*) 13678 # IBM XL 8.0 on PPC, with GNU ld 13679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13681 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13682 if test "x$supports_anon_versioning" = xyes; then 13683 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13685 echo "local: *; };" >> $output_objdir/$libname.ver~ 13686 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13687 fi 13688 ;; 13689 *) 13690 case `$CC -V 2>&1 | sed 5q` in 13691 *Sun\ C*) 13692 # Sun C++ 5.9 13693 no_undefined_flag_CXX=' -zdefs' 13694 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13695 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' 13696 hardcode_libdir_flag_spec_CXX='-R$libdir' 13697 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' 13698 compiler_needs_object_CXX=yes 13699 13700 # Not sure whether something based on 13701 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13702 # would be better. 13703 output_verbose_link_cmd='func_echo_all' 13704 13705 # Archives containing C++ object files must be created using 13706 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13707 # necessary to make sure instantiated templates are included 13708 # in the archive. 13709 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13710 ;; 13711 esac 13712 ;; 13713 esac 13714 ;; 13715 13716 lynxos*) 13717 # FIXME: insert proper C++ library support 13718 ld_shlibs_CXX=no 13719 ;; 13720 13721 m88k*) 13722 # FIXME: insert proper C++ library support 13723 ld_shlibs_CXX=no 13724 ;; 13725 13726 mvs*) 13727 case $cc_basename in 13728 cxx*) 13729 # FIXME: insert proper C++ library support 13730 ld_shlibs_CXX=no 13731 ;; 13732 *) 13733 # FIXME: insert proper C++ library support 13734 ld_shlibs_CXX=no 13735 ;; 13736 esac 13737 ;; 13738 13739 netbsd*) 13740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13741 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13742 wlarc= 13743 hardcode_libdir_flag_spec_CXX='-R$libdir' 13744 hardcode_direct_CXX=yes 13745 hardcode_shlibpath_var_CXX=no 13746 fi 13747 # Workaround some broken pre-1.5 toolchains 13748 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13749 ;; 13750 13751 *nto* | *qnx*) 13752 ld_shlibs_CXX=yes 13753 ;; 13754 13755 openbsd2*) 13756 # C++ shared libraries are fairly broken 13757 ld_shlibs_CXX=no 13758 ;; 13759 13760 openbsd*) 13761 if test -f /usr/libexec/ld.so; then 13762 hardcode_direct_CXX=yes 13763 hardcode_shlibpath_var_CXX=no 13764 hardcode_direct_absolute_CXX=yes 13765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13766 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13768 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13769 export_dynamic_flag_spec_CXX='${wl}-E' 13770 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13771 fi 13772 output_verbose_link_cmd=func_echo_all 13773 else 13774 ld_shlibs_CXX=no 13775 fi 13776 ;; 13777 13778 osf3* | osf4* | osf5*) 13779 case $cc_basename in 13780 KCC*) 13781 # Kuck and Associates, Inc. (KAI) C++ Compiler 13782 13783 # KCC will only create a shared library if the output file 13784 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13785 # to its proper name (with version) after linking. 13786 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' 13787 13788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13789 hardcode_libdir_separator_CXX=: 13790 13791 # Archives containing C++ object files must be created using 13792 # the KAI C++ compiler. 13793 case $host in 13794 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13795 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13796 esac 13797 ;; 13798 RCC*) 13799 # Rational C++ 2.4.1 13800 # FIXME: insert proper C++ library support 13801 ld_shlibs_CXX=no 13802 ;; 13803 cxx*) 13804 case $host in 13805 osf3*) 13806 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13807 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' 13808 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13809 ;; 13810 *) 13811 allow_undefined_flag_CXX=' -expect_unresolved \*' 13812 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' 13813 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13814 echo "-hidden">> $lib.exp~ 13815 $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~ 13816 $RM $lib.exp' 13817 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13818 ;; 13819 esac 13820 13821 hardcode_libdir_separator_CXX=: 13822 13823 # Commands to make compiler produce verbose output that lists 13824 # what "hidden" libraries, object files and flags are used when 13825 # linking a shared library. 13826 # 13827 # There doesn't appear to be a way to prevent this compiler from 13828 # explicitly linking system object files so we need to strip them 13829 # from the output so that they don't get included in the library 13830 # dependencies. 13831 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"' 13832 ;; 13833 *) 13834 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13835 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13836 case $host in 13837 osf3*) 13838 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' 13839 ;; 13840 *) 13841 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' 13842 ;; 13843 esac 13844 13845 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13846 hardcode_libdir_separator_CXX=: 13847 13848 # Commands to make compiler produce verbose output that lists 13849 # what "hidden" libraries, object files and flags are used when 13850 # linking a shared library. 13851 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13852 13853 else 13854 # FIXME: insert proper C++ library support 13855 ld_shlibs_CXX=no 13856 fi 13857 ;; 13858 esac 13859 ;; 13860 13861 psos*) 13862 # FIXME: insert proper C++ library support 13863 ld_shlibs_CXX=no 13864 ;; 13865 13866 sunos4*) 13867 case $cc_basename in 13868 CC*) 13869 # Sun C++ 4.x 13870 # FIXME: insert proper C++ library support 13871 ld_shlibs_CXX=no 13872 ;; 13873 lcc*) 13874 # Lucid 13875 # FIXME: insert proper C++ library support 13876 ld_shlibs_CXX=no 13877 ;; 13878 *) 13879 # FIXME: insert proper C++ library support 13880 ld_shlibs_CXX=no 13881 ;; 13882 esac 13883 ;; 13884 13885 solaris*) 13886 case $cc_basename in 13887 CC*) 13888 # Sun C++ 4.2, 5.x and Centerline C++ 13889 archive_cmds_need_lc_CXX=yes 13890 no_undefined_flag_CXX=' -zdefs' 13891 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13892 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13893 $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' 13894 13895 hardcode_libdir_flag_spec_CXX='-R$libdir' 13896 hardcode_shlibpath_var_CXX=no 13897 case $host_os in 13898 solaris2.[0-5] | solaris2.[0-5].*) ;; 13899 *) 13900 # The compiler driver will combine and reorder linker options, 13901 # but understands `-z linker_flag'. 13902 # Supported since Solaris 2.6 (maybe 2.5.1?) 13903 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13904 ;; 13905 esac 13906 link_all_deplibs_CXX=yes 13907 13908 output_verbose_link_cmd='func_echo_all' 13909 13910 # Archives containing C++ object files must be created using 13911 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13912 # necessary to make sure instantiated templates are included 13913 # in the archive. 13914 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13915 ;; 13916 gcx*) 13917 # Green Hills C++ Compiler 13918 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13919 13920 # The C++ compiler must be used to create the archive. 13921 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13922 ;; 13923 *) 13924 # GNU C++ compiler with Solaris linker 13925 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13926 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13927 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13928 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13929 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13930 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13931 13932 # Commands to make compiler produce verbose output that lists 13933 # what "hidden" libraries, object files and flags are used when 13934 # linking a shared library. 13935 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13936 else 13937 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13938 # platform. 13939 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13940 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13941 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13942 13943 # Commands to make compiler produce verbose output that lists 13944 # what "hidden" libraries, object files and flags are used when 13945 # linking a shared library. 13946 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13947 fi 13948 13949 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13950 case $host_os in 13951 solaris2.[0-5] | solaris2.[0-5].*) ;; 13952 *) 13953 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13954 ;; 13955 esac 13956 fi 13957 ;; 13958 esac 13959 ;; 13960 13961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13962 no_undefined_flag_CXX='${wl}-z,text' 13963 archive_cmds_need_lc_CXX=no 13964 hardcode_shlibpath_var_CXX=no 13965 runpath_var='LD_RUN_PATH' 13966 13967 case $cc_basename in 13968 CC*) 13969 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13970 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13971 ;; 13972 *) 13973 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13974 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13975 ;; 13976 esac 13977 ;; 13978 13979 sysv5* | sco3.2v5* | sco5v6*) 13980 # Note: We can NOT use -z defs as we might desire, because we do not 13981 # link with -lc, and that would cause any symbols used from libc to 13982 # always be unresolved, which means just about no library would 13983 # ever link correctly. If we're not using GNU ld we use -z text 13984 # though, which does catch some bad symbols but isn't as heavy-handed 13985 # as -z defs. 13986 no_undefined_flag_CXX='${wl}-z,text' 13987 allow_undefined_flag_CXX='${wl}-z,nodefs' 13988 archive_cmds_need_lc_CXX=no 13989 hardcode_shlibpath_var_CXX=no 13990 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13991 hardcode_libdir_separator_CXX=':' 13992 link_all_deplibs_CXX=yes 13993 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13994 runpath_var='LD_RUN_PATH' 13995 13996 case $cc_basename in 13997 CC*) 13998 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13999 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14000 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14001 '"$old_archive_cmds_CXX" 14002 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14003 '"$reload_cmds_CXX" 14004 ;; 14005 *) 14006 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14007 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14008 ;; 14009 esac 14010 ;; 14011 14012 tandem*) 14013 case $cc_basename in 14014 NCC*) 14015 # NonStop-UX NCC 3.20 14016 # FIXME: insert proper C++ library support 14017 ld_shlibs_CXX=no 14018 ;; 14019 *) 14020 # FIXME: insert proper C++ library support 14021 ld_shlibs_CXX=no 14022 ;; 14023 esac 14024 ;; 14025 14026 vxworks*) 14027 # FIXME: insert proper C++ library support 14028 ld_shlibs_CXX=no 14029 ;; 14030 14031 *) 14032 # FIXME: insert proper C++ library support 14033 ld_shlibs_CXX=no 14034 ;; 14035 esac 14036 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14038$as_echo "$ld_shlibs_CXX" >&6; } 14039 test "$ld_shlibs_CXX" = no && can_build_shared=no 14040 14041 GCC_CXX="$GXX" 14042 LD_CXX="$LD" 14043 14044 ## CAVEAT EMPTOR: 14045 ## There is no encapsulation within the following macros, do not change 14046 ## the running order or otherwise move them around unless you know exactly 14047 ## what you are doing... 14048 # Dependencies to place before and after the object being linked: 14049predep_objects_CXX= 14050postdep_objects_CXX= 14051predeps_CXX= 14052postdeps_CXX= 14053compiler_lib_search_path_CXX= 14054 14055cat > conftest.$ac_ext <<_LT_EOF 14056class Foo 14057{ 14058public: 14059 Foo (void) { a = 0; } 14060private: 14061 int a; 14062}; 14063_LT_EOF 14064 14065if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14066 (eval $ac_compile) 2>&5 14067 ac_status=$? 14068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14069 test $ac_status = 0; }; then 14070 # Parse the compiler output and extract the necessary 14071 # objects, libraries and library flags. 14072 14073 # Sentinel used to keep track of whether or not we are before 14074 # the conftest object file. 14075 pre_test_object_deps_done=no 14076 14077 for p in `eval "$output_verbose_link_cmd"`; do 14078 case $p in 14079 14080 -L* | -R* | -l*) 14081 # Some compilers place space between "-{L,R}" and the path. 14082 # Remove the space. 14083 if test $p = "-L" || 14084 test $p = "-R"; then 14085 prev=$p 14086 continue 14087 else 14088 prev= 14089 fi 14090 14091 if test "$pre_test_object_deps_done" = no; then 14092 case $p in 14093 -L* | -R*) 14094 # Internal compiler library paths should come after those 14095 # provided the user. The postdeps already come after the 14096 # user supplied libs so there is no need to process them. 14097 if test -z "$compiler_lib_search_path_CXX"; then 14098 compiler_lib_search_path_CXX="${prev}${p}" 14099 else 14100 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14101 fi 14102 ;; 14103 # The "-l" case would never come before the object being 14104 # linked, so don't bother handling this case. 14105 esac 14106 else 14107 if test -z "$postdeps_CXX"; then 14108 postdeps_CXX="${prev}${p}" 14109 else 14110 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14111 fi 14112 fi 14113 ;; 14114 14115 *.$objext) 14116 # This assumes that the test object file only shows up 14117 # once in the compiler output. 14118 if test "$p" = "conftest.$objext"; then 14119 pre_test_object_deps_done=yes 14120 continue 14121 fi 14122 14123 if test "$pre_test_object_deps_done" = no; then 14124 if test -z "$predep_objects_CXX"; then 14125 predep_objects_CXX="$p" 14126 else 14127 predep_objects_CXX="$predep_objects_CXX $p" 14128 fi 14129 else 14130 if test -z "$postdep_objects_CXX"; then 14131 postdep_objects_CXX="$p" 14132 else 14133 postdep_objects_CXX="$postdep_objects_CXX $p" 14134 fi 14135 fi 14136 ;; 14137 14138 *) ;; # Ignore the rest. 14139 14140 esac 14141 done 14142 14143 # Clean up. 14144 rm -f a.out a.exe 14145else 14146 echo "libtool.m4: error: problem compiling CXX test program" 14147fi 14148 14149$RM -f confest.$objext 14150 14151# PORTME: override above test on systems where it is broken 14152case $host_os in 14153interix[3-9]*) 14154 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14155 # hack all around it, let's just trust "g++" to DTRT. 14156 predep_objects_CXX= 14157 postdep_objects_CXX= 14158 postdeps_CXX= 14159 ;; 14160 14161linux*) 14162 case `$CC -V 2>&1 | sed 5q` in 14163 *Sun\ C*) 14164 # Sun C++ 5.9 14165 14166 # The more standards-conforming stlport4 library is 14167 # incompatible with the Cstd library. Avoid specifying 14168 # it if it's in CXXFLAGS. Ignore libCrun as 14169 # -library=stlport4 depends on it. 14170 case " $CXX $CXXFLAGS " in 14171 *" -library=stlport4 "*) 14172 solaris_use_stlport4=yes 14173 ;; 14174 esac 14175 14176 if test "$solaris_use_stlport4" != yes; then 14177 postdeps_CXX='-library=Cstd -library=Crun' 14178 fi 14179 ;; 14180 esac 14181 ;; 14182 14183solaris*) 14184 case $cc_basename in 14185 CC*) 14186 # The more standards-conforming stlport4 library is 14187 # incompatible with the Cstd library. Avoid specifying 14188 # it if it's in CXXFLAGS. Ignore libCrun as 14189 # -library=stlport4 depends on it. 14190 case " $CXX $CXXFLAGS " in 14191 *" -library=stlport4 "*) 14192 solaris_use_stlport4=yes 14193 ;; 14194 esac 14195 14196 # Adding this requires a known-good setup of shared libraries for 14197 # Sun compiler versions before 5.6, else PIC objects from an old 14198 # archive will be linked into the output, leading to subtle bugs. 14199 if test "$solaris_use_stlport4" != yes; then 14200 postdeps_CXX='-library=Cstd -library=Crun' 14201 fi 14202 ;; 14203 esac 14204 ;; 14205esac 14206 14207 14208case " $postdeps_CXX " in 14209*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14210esac 14211 compiler_lib_search_dirs_CXX= 14212if test -n "${compiler_lib_search_path_CXX}"; then 14213 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14214fi 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 lt_prog_compiler_wl_CXX= 14247lt_prog_compiler_pic_CXX= 14248lt_prog_compiler_static_CXX= 14249 14250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14251$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14252 14253 # C++ specific cases for pic, static, wl, etc. 14254 if test "$GXX" = yes; then 14255 lt_prog_compiler_wl_CXX='-Wl,' 14256 lt_prog_compiler_static_CXX='-static' 14257 14258 case $host_os in 14259 aix*) 14260 # All AIX code is PIC. 14261 if test "$host_cpu" = ia64; then 14262 # AIX 5 now supports IA64 processor 14263 lt_prog_compiler_static_CXX='-Bstatic' 14264 fi 14265 lt_prog_compiler_pic_CXX='-fPIC' 14266 ;; 14267 14268 amigaos*) 14269 case $host_cpu in 14270 powerpc) 14271 # see comment about AmigaOS4 .so support 14272 lt_prog_compiler_pic_CXX='-fPIC' 14273 ;; 14274 m68k) 14275 # FIXME: we need at least 68020 code to build shared libraries, but 14276 # adding the `-m68020' flag to GCC prevents building anything better, 14277 # like `-m68040'. 14278 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14279 ;; 14280 esac 14281 ;; 14282 14283 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14284 # PIC is the default for these OSes. 14285 ;; 14286 mingw* | cygwin* | os2* | pw32* | cegcc*) 14287 # This hack is so that the source file can tell whether it is being 14288 # built for inclusion in a dll (and should export symbols for example). 14289 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14290 # (--disable-auto-import) libraries 14291 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14292 ;; 14293 darwin* | rhapsody*) 14294 # PIC is the default on this platform 14295 # Common symbols not allowed in MH_DYLIB files 14296 lt_prog_compiler_pic_CXX='-fno-common' 14297 ;; 14298 *djgpp*) 14299 # DJGPP does not support shared libraries at all 14300 lt_prog_compiler_pic_CXX= 14301 ;; 14302 haiku*) 14303 # PIC is the default for Haiku. 14304 # The "-static" flag exists, but is broken. 14305 lt_prog_compiler_static_CXX= 14306 ;; 14307 interix[3-9]*) 14308 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14309 # Instead, we relocate shared libraries at runtime. 14310 ;; 14311 sysv4*MP*) 14312 if test -d /usr/nec; then 14313 lt_prog_compiler_pic_CXX=-Kconform_pic 14314 fi 14315 ;; 14316 hpux*) 14317 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14318 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14319 # sets the default TLS model and affects inlining. 14320 case $host_cpu in 14321 hppa*64*) 14322 ;; 14323 *) 14324 lt_prog_compiler_pic_CXX='-fPIC' 14325 ;; 14326 esac 14327 ;; 14328 *qnx* | *nto*) 14329 # QNX uses GNU C++, but need to define -shared option too, otherwise 14330 # it will coredump. 14331 lt_prog_compiler_pic_CXX='-fPIC -shared' 14332 ;; 14333 *) 14334 lt_prog_compiler_pic_CXX='-fPIC' 14335 ;; 14336 esac 14337 else 14338 case $host_os in 14339 aix[4-9]*) 14340 # All AIX code is PIC. 14341 if test "$host_cpu" = ia64; then 14342 # AIX 5 now supports IA64 processor 14343 lt_prog_compiler_static_CXX='-Bstatic' 14344 else 14345 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14346 fi 14347 ;; 14348 chorus*) 14349 case $cc_basename in 14350 cxch68*) 14351 # Green Hills C++ Compiler 14352 # _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" 14353 ;; 14354 esac 14355 ;; 14356 dgux*) 14357 case $cc_basename in 14358 ec++*) 14359 lt_prog_compiler_pic_CXX='-KPIC' 14360 ;; 14361 ghcx*) 14362 # Green Hills C++ Compiler 14363 lt_prog_compiler_pic_CXX='-pic' 14364 ;; 14365 *) 14366 ;; 14367 esac 14368 ;; 14369 freebsd* | dragonfly*) 14370 # FreeBSD uses GNU C++ 14371 ;; 14372 hpux9* | hpux10* | hpux11*) 14373 case $cc_basename in 14374 CC*) 14375 lt_prog_compiler_wl_CXX='-Wl,' 14376 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14377 if test "$host_cpu" != ia64; then 14378 lt_prog_compiler_pic_CXX='+Z' 14379 fi 14380 ;; 14381 aCC*) 14382 lt_prog_compiler_wl_CXX='-Wl,' 14383 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14384 case $host_cpu in 14385 hppa*64*|ia64*) 14386 # +Z the default 14387 ;; 14388 *) 14389 lt_prog_compiler_pic_CXX='+Z' 14390 ;; 14391 esac 14392 ;; 14393 *) 14394 ;; 14395 esac 14396 ;; 14397 interix*) 14398 # This is c89, which is MS Visual C++ (no shared libs) 14399 # Anyone wants to do a port? 14400 ;; 14401 irix5* | irix6* | nonstopux*) 14402 case $cc_basename in 14403 CC*) 14404 lt_prog_compiler_wl_CXX='-Wl,' 14405 lt_prog_compiler_static_CXX='-non_shared' 14406 # CC pic flag -KPIC is the default. 14407 ;; 14408 *) 14409 ;; 14410 esac 14411 ;; 14412 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14413 case $cc_basename in 14414 KCC*) 14415 # KAI C++ Compiler 14416 lt_prog_compiler_wl_CXX='--backend -Wl,' 14417 lt_prog_compiler_pic_CXX='-fPIC' 14418 ;; 14419 ecpc* ) 14420 # old Intel C++ for x86_64 which still supported -KPIC. 14421 lt_prog_compiler_wl_CXX='-Wl,' 14422 lt_prog_compiler_pic_CXX='-KPIC' 14423 lt_prog_compiler_static_CXX='-static' 14424 ;; 14425 icpc* ) 14426 # Intel C++, used to be incompatible with GCC. 14427 # ICC 10 doesn't accept -KPIC any more. 14428 lt_prog_compiler_wl_CXX='-Wl,' 14429 lt_prog_compiler_pic_CXX='-fPIC' 14430 lt_prog_compiler_static_CXX='-static' 14431 ;; 14432 pgCC* | pgcpp*) 14433 # Portland Group C++ compiler 14434 lt_prog_compiler_wl_CXX='-Wl,' 14435 lt_prog_compiler_pic_CXX='-fpic' 14436 lt_prog_compiler_static_CXX='-Bstatic' 14437 ;; 14438 cxx*) 14439 # Compaq C++ 14440 # Make sure the PIC flag is empty. It appears that all Alpha 14441 # Linux and Compaq Tru64 Unix objects are PIC. 14442 lt_prog_compiler_pic_CXX= 14443 lt_prog_compiler_static_CXX='-non_shared' 14444 ;; 14445 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14446 # IBM XL 8.0, 9.0 on PPC and BlueGene 14447 lt_prog_compiler_wl_CXX='-Wl,' 14448 lt_prog_compiler_pic_CXX='-qpic' 14449 lt_prog_compiler_static_CXX='-qstaticlink' 14450 ;; 14451 *) 14452 case `$CC -V 2>&1 | sed 5q` in 14453 *Sun\ C*) 14454 # Sun C++ 5.9 14455 lt_prog_compiler_pic_CXX='-KPIC' 14456 lt_prog_compiler_static_CXX='-Bstatic' 14457 lt_prog_compiler_wl_CXX='-Qoption ld ' 14458 ;; 14459 esac 14460 ;; 14461 esac 14462 ;; 14463 lynxos*) 14464 ;; 14465 m88k*) 14466 ;; 14467 mvs*) 14468 case $cc_basename in 14469 cxx*) 14470 lt_prog_compiler_pic_CXX='-W c,exportall' 14471 ;; 14472 *) 14473 ;; 14474 esac 14475 ;; 14476 netbsd*) 14477 ;; 14478 *qnx* | *nto*) 14479 # QNX uses GNU C++, but need to define -shared option too, otherwise 14480 # it will coredump. 14481 lt_prog_compiler_pic_CXX='-fPIC -shared' 14482 ;; 14483 osf3* | osf4* | osf5*) 14484 case $cc_basename in 14485 KCC*) 14486 lt_prog_compiler_wl_CXX='--backend -Wl,' 14487 ;; 14488 RCC*) 14489 # Rational C++ 2.4.1 14490 lt_prog_compiler_pic_CXX='-pic' 14491 ;; 14492 cxx*) 14493 # Digital/Compaq C++ 14494 lt_prog_compiler_wl_CXX='-Wl,' 14495 # Make sure the PIC flag is empty. It appears that all Alpha 14496 # Linux and Compaq Tru64 Unix objects are PIC. 14497 lt_prog_compiler_pic_CXX= 14498 lt_prog_compiler_static_CXX='-non_shared' 14499 ;; 14500 *) 14501 ;; 14502 esac 14503 ;; 14504 psos*) 14505 ;; 14506 solaris*) 14507 case $cc_basename in 14508 CC*) 14509 # Sun C++ 4.2, 5.x and Centerline C++ 14510 lt_prog_compiler_pic_CXX='-KPIC' 14511 lt_prog_compiler_static_CXX='-Bstatic' 14512 lt_prog_compiler_wl_CXX='-Qoption ld ' 14513 ;; 14514 gcx*) 14515 # Green Hills C++ Compiler 14516 lt_prog_compiler_pic_CXX='-PIC' 14517 ;; 14518 *) 14519 ;; 14520 esac 14521 ;; 14522 sunos4*) 14523 case $cc_basename in 14524 CC*) 14525 # Sun C++ 4.x 14526 lt_prog_compiler_pic_CXX='-pic' 14527 lt_prog_compiler_static_CXX='-Bstatic' 14528 ;; 14529 lcc*) 14530 # Lucid 14531 lt_prog_compiler_pic_CXX='-pic' 14532 ;; 14533 *) 14534 ;; 14535 esac 14536 ;; 14537 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14538 case $cc_basename in 14539 CC*) 14540 lt_prog_compiler_wl_CXX='-Wl,' 14541 lt_prog_compiler_pic_CXX='-KPIC' 14542 lt_prog_compiler_static_CXX='-Bstatic' 14543 ;; 14544 esac 14545 ;; 14546 tandem*) 14547 case $cc_basename in 14548 NCC*) 14549 # NonStop-UX NCC 3.20 14550 lt_prog_compiler_pic_CXX='-KPIC' 14551 ;; 14552 *) 14553 ;; 14554 esac 14555 ;; 14556 vxworks*) 14557 ;; 14558 *) 14559 lt_prog_compiler_can_build_shared_CXX=no 14560 ;; 14561 esac 14562 fi 14563 14564case $host_os in 14565 # For platforms which do not support PIC, -DPIC is meaningless: 14566 *djgpp*) 14567 lt_prog_compiler_pic_CXX= 14568 ;; 14569 *) 14570 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14571 ;; 14572esac 14573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 14574$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 14575 14576 14577 14578# 14579# Check to make sure the PIC flag actually works. 14580# 14581if test -n "$lt_prog_compiler_pic_CXX"; then 14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14583$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14584if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14585 $as_echo_n "(cached) " >&6 14586else 14587 lt_cv_prog_compiler_pic_works_CXX=no 14588 ac_outfile=conftest.$ac_objext 14589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14590 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14591 # Insert the option either (1) after the last *FLAGS variable, or 14592 # (2) before a word containing "conftest.", or (3) at the end. 14593 # Note that $ac_compile itself does not contain backslashes and begins 14594 # with a dollar sign (not a hyphen), so the echo should work correctly. 14595 # The option is referenced via a variable to avoid confusing sed. 14596 lt_compile=`echo "$ac_compile" | $SED \ 14597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14599 -e 's:$: $lt_compiler_flag:'` 14600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14601 (eval "$lt_compile" 2>conftest.err) 14602 ac_status=$? 14603 cat conftest.err >&5 14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14605 if (exit $ac_status) && test -s "$ac_outfile"; then 14606 # The compiler can only warn and ignore the option if not recognized 14607 # So say no if there are warnings other than the usual output. 14608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14611 lt_cv_prog_compiler_pic_works_CXX=yes 14612 fi 14613 fi 14614 $RM conftest* 14615 14616fi 14617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14618$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14619 14620if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14621 case $lt_prog_compiler_pic_CXX in 14622 "" | " "*) ;; 14623 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14624 esac 14625else 14626 lt_prog_compiler_pic_CXX= 14627 lt_prog_compiler_can_build_shared_CXX=no 14628fi 14629 14630fi 14631 14632 14633 14634# 14635# Check to make sure the static flag actually works. 14636# 14637wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14639$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14640if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14641 $as_echo_n "(cached) " >&6 14642else 14643 lt_cv_prog_compiler_static_works_CXX=no 14644 save_LDFLAGS="$LDFLAGS" 14645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14646 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14648 # The linker can only warn and ignore the option if not recognized 14649 # So say no if there are warnings 14650 if test -s conftest.err; then 14651 # Append any errors to the config.log. 14652 cat conftest.err 1>&5 14653 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14655 if diff conftest.exp conftest.er2 >/dev/null; then 14656 lt_cv_prog_compiler_static_works_CXX=yes 14657 fi 14658 else 14659 lt_cv_prog_compiler_static_works_CXX=yes 14660 fi 14661 fi 14662 $RM -r conftest* 14663 LDFLAGS="$save_LDFLAGS" 14664 14665fi 14666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14667$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14668 14669if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14670 : 14671else 14672 lt_prog_compiler_static_CXX= 14673fi 14674 14675 14676 14677 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14679$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14680if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14681 $as_echo_n "(cached) " >&6 14682else 14683 lt_cv_prog_compiler_c_o_CXX=no 14684 $RM -r conftest 2>/dev/null 14685 mkdir conftest 14686 cd conftest 14687 mkdir out 14688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14689 14690 lt_compiler_flag="-o out/conftest2.$ac_objext" 14691 # Insert the option either (1) after the last *FLAGS variable, or 14692 # (2) before a word containing "conftest.", or (3) at the end. 14693 # Note that $ac_compile itself does not contain backslashes and begins 14694 # with a dollar sign (not a hyphen), so the echo should work correctly. 14695 lt_compile=`echo "$ac_compile" | $SED \ 14696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14698 -e 's:$: $lt_compiler_flag:'` 14699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14700 (eval "$lt_compile" 2>out/conftest.err) 14701 ac_status=$? 14702 cat out/conftest.err >&5 14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14704 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14705 then 14706 # The compiler can only warn and ignore the option if not recognized 14707 # So say no if there are warnings 14708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14711 lt_cv_prog_compiler_c_o_CXX=yes 14712 fi 14713 fi 14714 chmod u+w . 2>&5 14715 $RM conftest* 14716 # SGI C++ compiler will create directory out/ii_files/ for 14717 # template instantiation 14718 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14719 $RM out/* && rmdir out 14720 cd .. 14721 $RM -r conftest 14722 $RM conftest* 14723 14724fi 14725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14726$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14727 14728 14729 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14731$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14732if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14733 $as_echo_n "(cached) " >&6 14734else 14735 lt_cv_prog_compiler_c_o_CXX=no 14736 $RM -r conftest 2>/dev/null 14737 mkdir conftest 14738 cd conftest 14739 mkdir out 14740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14741 14742 lt_compiler_flag="-o out/conftest2.$ac_objext" 14743 # Insert the option either (1) after the last *FLAGS variable, or 14744 # (2) before a word containing "conftest.", or (3) at the end. 14745 # Note that $ac_compile itself does not contain backslashes and begins 14746 # with a dollar sign (not a hyphen), so the echo should work correctly. 14747 lt_compile=`echo "$ac_compile" | $SED \ 14748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14750 -e 's:$: $lt_compiler_flag:'` 14751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14752 (eval "$lt_compile" 2>out/conftest.err) 14753 ac_status=$? 14754 cat out/conftest.err >&5 14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14756 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14757 then 14758 # The compiler can only warn and ignore the option if not recognized 14759 # So say no if there are warnings 14760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14763 lt_cv_prog_compiler_c_o_CXX=yes 14764 fi 14765 fi 14766 chmod u+w . 2>&5 14767 $RM conftest* 14768 # SGI C++ compiler will create directory out/ii_files/ for 14769 # template instantiation 14770 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14771 $RM out/* && rmdir out 14772 cd .. 14773 $RM -r conftest 14774 $RM conftest* 14775 14776fi 14777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14778$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14779 14780 14781 14782 14783hard_links="nottested" 14784if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14785 # do not overwrite the value of need_locks provided by the user 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14787$as_echo_n "checking if we can lock with hard links... " >&6; } 14788 hard_links=yes 14789 $RM conftest* 14790 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14791 touch conftest.a 14792 ln conftest.a conftest.b 2>&5 || hard_links=no 14793 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14795$as_echo "$hard_links" >&6; } 14796 if test "$hard_links" = no; then 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14798$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14799 need_locks=warn 14800 fi 14801else 14802 need_locks=no 14803fi 14804 14805 14806 14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14808$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14809 14810 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14811 case $host_os in 14812 aix[4-9]*) 14813 # If we're using GNU nm, then we don't want the "-C" option. 14814 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14815 # Also, AIX nm treats weak defined symbols like other global defined 14816 # symbols, whereas GNU nm marks them as "W". 14817 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14818 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' 14819 else 14820 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' 14821 fi 14822 ;; 14823 pw32*) 14824 export_symbols_cmds_CXX="$ltdll_cmds" 14825 ;; 14826 cygwin* | mingw* | cegcc*) 14827 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' 14828 ;; 14829 *) 14830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14831 ;; 14832 esac 14833 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14834 14835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14836$as_echo "$ld_shlibs_CXX" >&6; } 14837test "$ld_shlibs_CXX" = no && can_build_shared=no 14838 14839with_gnu_ld_CXX=$with_gnu_ld 14840 14841 14842 14843 14844 14845 14846# 14847# Do we need to explicitly link libc? 14848# 14849case "x$archive_cmds_need_lc_CXX" in 14850x|xyes) 14851 # Assume -lc should be added 14852 archive_cmds_need_lc_CXX=yes 14853 14854 if test "$enable_shared" = yes && test "$GCC" = yes; then 14855 case $archive_cmds_CXX in 14856 *'~'*) 14857 # FIXME: we may have to deal with multi-command sequences. 14858 ;; 14859 '$CC '*) 14860 # Test whether the compiler implicitly links with -lc since on some 14861 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14862 # to ld, don't add -lc before -lgcc. 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14864$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14865if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14866 $as_echo_n "(cached) " >&6 14867else 14868 $RM conftest* 14869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14870 14871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14872 (eval $ac_compile) 2>&5 14873 ac_status=$? 14874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14875 test $ac_status = 0; } 2>conftest.err; then 14876 soname=conftest 14877 lib=conftest 14878 libobjs=conftest.$ac_objext 14879 deplibs= 14880 wl=$lt_prog_compiler_wl_CXX 14881 pic_flag=$lt_prog_compiler_pic_CXX 14882 compiler_flags=-v 14883 linker_flags=-v 14884 verstring= 14885 output_objdir=. 14886 libname=conftest 14887 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14888 allow_undefined_flag_CXX= 14889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14890 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14891 ac_status=$? 14892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14893 test $ac_status = 0; } 14894 then 14895 lt_cv_archive_cmds_need_lc_CXX=no 14896 else 14897 lt_cv_archive_cmds_need_lc_CXX=yes 14898 fi 14899 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14900 else 14901 cat conftest.err 1>&5 14902 fi 14903 $RM conftest* 14904 14905fi 14906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14907$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14908 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14909 ;; 14910 esac 14911 fi 14912 ;; 14913esac 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14979$as_echo_n "checking dynamic linker characteristics... " >&6; } 14980 14981library_names_spec= 14982libname_spec='lib$name' 14983soname_spec= 14984shrext_cmds=".so" 14985postinstall_cmds= 14986postuninstall_cmds= 14987finish_cmds= 14988finish_eval= 14989shlibpath_var= 14990shlibpath_overrides_runpath=unknown 14991version_type=none 14992dynamic_linker="$host_os ld.so" 14993sys_lib_dlsearch_path_spec="/lib /usr/lib" 14994need_lib_prefix=unknown 14995hardcode_into_libs=no 14996 14997# when you set need_version to no, make sure it does not cause -set_version 14998# flags to be left without arguments 14999need_version=unknown 15000 15001case $host_os in 15002aix3*) 15003 version_type=linux 15004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15005 shlibpath_var=LIBPATH 15006 15007 # AIX 3 has no versioning support, so we append a major version to the name. 15008 soname_spec='${libname}${release}${shared_ext}$major' 15009 ;; 15010 15011aix[4-9]*) 15012 version_type=linux 15013 need_lib_prefix=no 15014 need_version=no 15015 hardcode_into_libs=yes 15016 if test "$host_cpu" = ia64; then 15017 # AIX 5 supports IA64 15018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15019 shlibpath_var=LD_LIBRARY_PATH 15020 else 15021 # With GCC up to 2.95.x, collect2 would create an import file 15022 # for dependence libraries. The import file would start with 15023 # the line `#! .'. This would cause the generated library to 15024 # depend on `.', always an invalid library. This was fixed in 15025 # development snapshots of GCC prior to 3.0. 15026 case $host_os in 15027 aix4 | aix4.[01] | aix4.[01].*) 15028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15029 echo ' yes ' 15030 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15031 : 15032 else 15033 can_build_shared=no 15034 fi 15035 ;; 15036 esac 15037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15038 # soname into executable. Probably we can add versioning support to 15039 # collect2, so additional links can be useful in future. 15040 if test "$aix_use_runtimelinking" = yes; then 15041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15042 # instead of lib<name>.a to let people know that these are not 15043 # typical AIX shared libraries. 15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15045 else 15046 # We preserve .a as extension for shared libraries through AIX4.2 15047 # and later when we are not doing run time linking. 15048 library_names_spec='${libname}${release}.a $libname.a' 15049 soname_spec='${libname}${release}${shared_ext}$major' 15050 fi 15051 shlibpath_var=LIBPATH 15052 fi 15053 ;; 15054 15055amigaos*) 15056 case $host_cpu in 15057 powerpc) 15058 # Since July 2007 AmigaOS4 officially supports .so libraries. 15059 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15061 ;; 15062 m68k) 15063 library_names_spec='$libname.ixlibrary $libname.a' 15064 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15065 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' 15066 ;; 15067 esac 15068 ;; 15069 15070beos*) 15071 library_names_spec='${libname}${shared_ext}' 15072 dynamic_linker="$host_os ld.so" 15073 shlibpath_var=LIBRARY_PATH 15074 ;; 15075 15076bsdi[45]*) 15077 version_type=linux 15078 need_version=no 15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15080 soname_spec='${libname}${release}${shared_ext}$major' 15081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15082 shlibpath_var=LD_LIBRARY_PATH 15083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15085 # the default ld.so.conf also contains /usr/contrib/lib and 15086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15087 # libtool to hard-code these into programs 15088 ;; 15089 15090cygwin* | mingw* | pw32* | cegcc*) 15091 version_type=windows 15092 shrext_cmds=".dll" 15093 need_version=no 15094 need_lib_prefix=no 15095 15096 case $GCC,$host_os in 15097 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 15098 library_names_spec='$libname.dll.a' 15099 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15100 postinstall_cmds='base_file=`basename \${file}`~ 15101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15102 dldir=$destdir/`dirname \$dlpath`~ 15103 test -d \$dldir || mkdir -p \$dldir~ 15104 $install_prog $dir/$dlname \$dldir/$dlname~ 15105 chmod a+x \$dldir/$dlname~ 15106 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15107 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15108 fi' 15109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15110 dlpath=$dir/\$dldll~ 15111 $RM \$dlpath' 15112 shlibpath_overrides_runpath=yes 15113 15114 case $host_os in 15115 cygwin*) 15116 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15117 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15118 15119 ;; 15120 mingw* | cegcc*) 15121 # MinGW DLLs use traditional 'lib' prefix 15122 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15123 ;; 15124 pw32*) 15125 # pw32 DLLs use 'pw' prefix rather than 'lib' 15126 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15127 ;; 15128 esac 15129 ;; 15130 15131 *) 15132 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15133 ;; 15134 esac 15135 dynamic_linker='Win32 ld.exe' 15136 # FIXME: first we should search . and the directory the executable is in 15137 shlibpath_var=PATH 15138 ;; 15139 15140darwin* | rhapsody*) 15141 dynamic_linker="$host_os dyld" 15142 version_type=darwin 15143 need_lib_prefix=no 15144 need_version=no 15145 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15146 soname_spec='${libname}${release}${major}$shared_ext' 15147 shlibpath_overrides_runpath=yes 15148 shlibpath_var=DYLD_LIBRARY_PATH 15149 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15150 15151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15152 ;; 15153 15154dgux*) 15155 version_type=linux 15156 need_lib_prefix=no 15157 need_version=no 15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15159 soname_spec='${libname}${release}${shared_ext}$major' 15160 shlibpath_var=LD_LIBRARY_PATH 15161 ;; 15162 15163freebsd* | dragonfly*) 15164 # DragonFly does not have aout. When/if they implement a new 15165 # versioning mechanism, adjust this. 15166 if test -x /usr/bin/objformat; then 15167 objformat=`/usr/bin/objformat` 15168 else 15169 case $host_os in 15170 freebsd[23].*) objformat=aout ;; 15171 *) objformat=elf ;; 15172 esac 15173 fi 15174 version_type=freebsd-$objformat 15175 case $version_type in 15176 freebsd-elf*) 15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15178 need_version=no 15179 need_lib_prefix=no 15180 ;; 15181 freebsd-*) 15182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15183 need_version=yes 15184 ;; 15185 esac 15186 shlibpath_var=LD_LIBRARY_PATH 15187 case $host_os in 15188 freebsd2.*) 15189 shlibpath_overrides_runpath=yes 15190 ;; 15191 freebsd3.[01]* | freebsdelf3.[01]*) 15192 shlibpath_overrides_runpath=yes 15193 hardcode_into_libs=yes 15194 ;; 15195 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15196 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15197 shlibpath_overrides_runpath=no 15198 hardcode_into_libs=yes 15199 ;; 15200 *) # from 4.6 on, and DragonFly 15201 shlibpath_overrides_runpath=yes 15202 hardcode_into_libs=yes 15203 ;; 15204 esac 15205 ;; 15206 15207haiku*) 15208 version_type=linux 15209 need_lib_prefix=no 15210 need_version=no 15211 dynamic_linker="$host_os runtime_loader" 15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15213 soname_spec='${libname}${release}${shared_ext}$major' 15214 shlibpath_var=LIBRARY_PATH 15215 shlibpath_overrides_runpath=yes 15216 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 15217 hardcode_into_libs=yes 15218 ;; 15219 15220hpux9* | hpux10* | hpux11*) 15221 # Give a soname corresponding to the major version so that dld.sl refuses to 15222 # link against other versions. 15223 version_type=sunos 15224 need_lib_prefix=no 15225 need_version=no 15226 case $host_cpu in 15227 ia64*) 15228 shrext_cmds='.so' 15229 hardcode_into_libs=yes 15230 dynamic_linker="$host_os dld.so" 15231 shlibpath_var=LD_LIBRARY_PATH 15232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15234 soname_spec='${libname}${release}${shared_ext}$major' 15235 if test "X$HPUX_IA64_MODE" = X32; then 15236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15237 else 15238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15239 fi 15240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15241 ;; 15242 hppa*64*) 15243 shrext_cmds='.sl' 15244 hardcode_into_libs=yes 15245 dynamic_linker="$host_os dld.sl" 15246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15249 soname_spec='${libname}${release}${shared_ext}$major' 15250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15252 ;; 15253 *) 15254 shrext_cmds='.sl' 15255 dynamic_linker="$host_os dld.sl" 15256 shlibpath_var=SHLIB_PATH 15257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15259 soname_spec='${libname}${release}${shared_ext}$major' 15260 ;; 15261 esac 15262 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15263 postinstall_cmds='chmod 555 $lib' 15264 # or fails outright, so override atomically: 15265 install_override_mode=555 15266 ;; 15267 15268interix[3-9]*) 15269 version_type=linux 15270 need_lib_prefix=no 15271 need_version=no 15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15273 soname_spec='${libname}${release}${shared_ext}$major' 15274 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15275 shlibpath_var=LD_LIBRARY_PATH 15276 shlibpath_overrides_runpath=no 15277 hardcode_into_libs=yes 15278 ;; 15279 15280irix5* | irix6* | nonstopux*) 15281 case $host_os in 15282 nonstopux*) version_type=nonstopux ;; 15283 *) 15284 if test "$lt_cv_prog_gnu_ld" = yes; then 15285 version_type=linux 15286 else 15287 version_type=irix 15288 fi ;; 15289 esac 15290 need_lib_prefix=no 15291 need_version=no 15292 soname_spec='${libname}${release}${shared_ext}$major' 15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15294 case $host_os in 15295 irix5* | nonstopux*) 15296 libsuff= shlibsuff= 15297 ;; 15298 *) 15299 case $LD in # libtool.m4 will add one of these switches to LD 15300 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15301 libsuff= shlibsuff= libmagic=32-bit;; 15302 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15303 libsuff=32 shlibsuff=N32 libmagic=N32;; 15304 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15305 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15306 *) libsuff= shlibsuff= libmagic=never-match;; 15307 esac 15308 ;; 15309 esac 15310 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15311 shlibpath_overrides_runpath=no 15312 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15313 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15314 hardcode_into_libs=yes 15315 ;; 15316 15317# No shared lib support for Linux oldld, aout, or coff. 15318linux*oldld* | linux*aout* | linux*coff*) 15319 dynamic_linker=no 15320 ;; 15321 15322# This must be Linux ELF. 15323 15324# uclinux* changes (here and below) have been submitted to the libtool 15325# project, but have not yet been accepted: they are GCC-local changes 15326# for the time being. (See 15327# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 15328linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 15329 version_type=linux 15330 need_lib_prefix=no 15331 need_version=no 15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15333 soname_spec='${libname}${release}${shared_ext}$major' 15334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15335 shlibpath_var=LD_LIBRARY_PATH 15336 shlibpath_overrides_runpath=no 15337 15338 # Some binutils ld are patched to set DT_RUNPATH 15339 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15340 $as_echo_n "(cached) " >&6 15341else 15342 lt_cv_shlibpath_overrides_runpath=no 15343 save_LDFLAGS=$LDFLAGS 15344 save_libdir=$libdir 15345 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15346 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15348/* end confdefs.h. */ 15349 15350int 15351main () 15352{ 15353 15354 ; 15355 return 0; 15356} 15357_ACEOF 15358if ac_fn_cxx_try_link "$LINENO"; then : 15359 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15360 lt_cv_shlibpath_overrides_runpath=yes 15361fi 15362fi 15363rm -f core conftest.err conftest.$ac_objext \ 15364 conftest$ac_exeext conftest.$ac_ext 15365 LDFLAGS=$save_LDFLAGS 15366 libdir=$save_libdir 15367 15368fi 15369 15370 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15371 15372 # This implies no fast_install, which is unacceptable. 15373 # Some rework will be needed to allow for fast_install 15374 # before this can be enabled. 15375 hardcode_into_libs=yes 15376 15377 # Append ld.so.conf contents to the search path 15378 if test -f /etc/ld.so.conf; then 15379 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' ' '` 15380 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15381 fi 15382 15383 # We used to test for /lib/ld.so.1 and disable shared libraries on 15384 # powerpc, because MkLinux only supported shared libraries with the 15385 # GNU dynamic linker. Since this was broken with cross compilers, 15386 # most powerpc-linux boxes support dynamic linking these days and 15387 # people can always --disable-shared, the test was removed, and we 15388 # assume the GNU/Linux dynamic linker is in use. 15389 dynamic_linker='GNU/Linux ld.so' 15390 ;; 15391 15392netbsd*) 15393 version_type=sunos 15394 need_lib_prefix=no 15395 need_version=no 15396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15399 dynamic_linker='NetBSD (a.out) ld.so' 15400 else 15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15402 soname_spec='${libname}${release}${shared_ext}$major' 15403 dynamic_linker='NetBSD ld.elf_so' 15404 fi 15405 shlibpath_var=LD_LIBRARY_PATH 15406 shlibpath_overrides_runpath=yes 15407 hardcode_into_libs=yes 15408 ;; 15409 15410newsos6) 15411 version_type=linux 15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15413 shlibpath_var=LD_LIBRARY_PATH 15414 shlibpath_overrides_runpath=yes 15415 ;; 15416 15417*nto* | *qnx*) 15418 version_type=qnx 15419 need_lib_prefix=no 15420 need_version=no 15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15422 soname_spec='${libname}${release}${shared_ext}$major' 15423 shlibpath_var=LD_LIBRARY_PATH 15424 shlibpath_overrides_runpath=no 15425 hardcode_into_libs=yes 15426 dynamic_linker='ldqnx.so' 15427 ;; 15428 15429openbsd*) 15430 version_type=sunos 15431 sys_lib_dlsearch_path_spec="/usr/lib" 15432 need_lib_prefix=no 15433 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15434 case $host_os in 15435 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15436 *) need_version=no ;; 15437 esac 15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15440 shlibpath_var=LD_LIBRARY_PATH 15441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15442 case $host_os in 15443 openbsd2.[89] | openbsd2.[89].*) 15444 shlibpath_overrides_runpath=no 15445 ;; 15446 *) 15447 shlibpath_overrides_runpath=yes 15448 ;; 15449 esac 15450 else 15451 shlibpath_overrides_runpath=yes 15452 fi 15453 ;; 15454 15455os2*) 15456 libname_spec='$name' 15457 shrext_cmds=".dll" 15458 need_lib_prefix=no 15459 library_names_spec='$libname${shared_ext} $libname.a' 15460 dynamic_linker='OS/2 ld.exe' 15461 shlibpath_var=LIBPATH 15462 ;; 15463 15464osf3* | osf4* | osf5*) 15465 version_type=osf 15466 need_lib_prefix=no 15467 need_version=no 15468 soname_spec='${libname}${release}${shared_ext}$major' 15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15470 shlibpath_var=LD_LIBRARY_PATH 15471 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15472 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15473 ;; 15474 15475rdos*) 15476 dynamic_linker=no 15477 ;; 15478 15479solaris*) 15480 version_type=linux 15481 need_lib_prefix=no 15482 need_version=no 15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15484 soname_spec='${libname}${release}${shared_ext}$major' 15485 shlibpath_var=LD_LIBRARY_PATH 15486 shlibpath_overrides_runpath=yes 15487 hardcode_into_libs=yes 15488 # ldd complains unless libraries are executable 15489 postinstall_cmds='chmod +x $lib' 15490 ;; 15491 15492sunos4*) 15493 version_type=sunos 15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15495 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15496 shlibpath_var=LD_LIBRARY_PATH 15497 shlibpath_overrides_runpath=yes 15498 if test "$with_gnu_ld" = yes; then 15499 need_lib_prefix=no 15500 fi 15501 need_version=yes 15502 ;; 15503 15504sysv4 | sysv4.3*) 15505 version_type=linux 15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15507 soname_spec='${libname}${release}${shared_ext}$major' 15508 shlibpath_var=LD_LIBRARY_PATH 15509 case $host_vendor in 15510 sni) 15511 shlibpath_overrides_runpath=no 15512 need_lib_prefix=no 15513 runpath_var=LD_RUN_PATH 15514 ;; 15515 siemens) 15516 need_lib_prefix=no 15517 ;; 15518 motorola) 15519 need_lib_prefix=no 15520 need_version=no 15521 shlibpath_overrides_runpath=no 15522 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15523 ;; 15524 esac 15525 ;; 15526 15527sysv4*MP*) 15528 if test -d /usr/nec ;then 15529 version_type=linux 15530 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15531 soname_spec='$libname${shared_ext}.$major' 15532 shlibpath_var=LD_LIBRARY_PATH 15533 fi 15534 ;; 15535 15536sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15537 version_type=freebsd-elf 15538 need_lib_prefix=no 15539 need_version=no 15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15541 soname_spec='${libname}${release}${shared_ext}$major' 15542 shlibpath_var=LD_LIBRARY_PATH 15543 shlibpath_overrides_runpath=yes 15544 hardcode_into_libs=yes 15545 if test "$with_gnu_ld" = yes; then 15546 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15547 else 15548 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15549 case $host_os in 15550 sco3.2v5*) 15551 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15552 ;; 15553 esac 15554 fi 15555 sys_lib_dlsearch_path_spec='/usr/lib' 15556 ;; 15557 15558tpf*) 15559 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15560 version_type=linux 15561 need_lib_prefix=no 15562 need_version=no 15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15564 shlibpath_var=LD_LIBRARY_PATH 15565 shlibpath_overrides_runpath=no 15566 hardcode_into_libs=yes 15567 ;; 15568 15569uts4*) 15570 version_type=linux 15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15572 soname_spec='${libname}${release}${shared_ext}$major' 15573 shlibpath_var=LD_LIBRARY_PATH 15574 ;; 15575 15576*) 15577 dynamic_linker=no 15578 ;; 15579esac 15580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15581$as_echo "$dynamic_linker" >&6; } 15582test "$dynamic_linker" = no && can_build_shared=no 15583 15584variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15585if test "$GCC" = yes; then 15586 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15587fi 15588 15589if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15590 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15591fi 15592if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15593 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15594fi 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15634$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15635hardcode_action_CXX= 15636if test -n "$hardcode_libdir_flag_spec_CXX" || 15637 test -n "$runpath_var_CXX" || 15638 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15639 15640 # We can hardcode non-existent directories. 15641 if test "$hardcode_direct_CXX" != no && 15642 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15643 # have to relink, otherwise we might link with an installed library 15644 # when we should be linking with a yet-to-be-installed one 15645 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15646 test "$hardcode_minus_L_CXX" != no; then 15647 # Linking always hardcodes the temporary library directory. 15648 hardcode_action_CXX=relink 15649 else 15650 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15651 hardcode_action_CXX=immediate 15652 fi 15653else 15654 # We cannot hardcode anything, or else we can only hardcode existing 15655 # directories. 15656 hardcode_action_CXX=unsupported 15657fi 15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15659$as_echo "$hardcode_action_CXX" >&6; } 15660 15661if test "$hardcode_action_CXX" = relink || 15662 test "$inherit_rpath_CXX" = yes; then 15663 # Fast installation is not supported 15664 enable_fast_install=no 15665elif test "$shlibpath_overrides_runpath" = yes || 15666 test "$enable_shared" = no; then 15667 # Fast installation is not necessary 15668 enable_fast_install=needless 15669fi 15670 15671 15672 15673 15674 15675 15676 15677 fi # test -n "$compiler" 15678 15679 CC=$lt_save_CC 15680 LDCXX=$LD 15681 LD=$lt_save_LD 15682 GCC=$lt_save_GCC 15683 with_gnu_ld=$lt_save_with_gnu_ld 15684 lt_cv_path_LDCXX=$lt_cv_path_LD 15685 lt_cv_path_LD=$lt_save_path_LD 15686 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15687 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15688fi # test "$_lt_caught_CXX_error" != yes 15689 15690ac_ext=c 15691ac_cpp='$CPP $CPPFLAGS' 15692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15694ac_compiler_gnu=$ac_cv_c_compiler_gnu 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 ac_config_commands="$ac_config_commands libtool" 15709 15710 15711 15712 15713# Only expand once: 15714 15715 15716 15717for ac_prog in gawk mawk nawk awk 15718do 15719 # Extract the first word of "$ac_prog", so it can be a program name with args. 15720set dummy $ac_prog; ac_word=$2 15721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15722$as_echo_n "checking for $ac_word... " >&6; } 15723if ${ac_cv_prog_AWK+:} false; then : 15724 $as_echo_n "(cached) " >&6 15725else 15726 if test -n "$AWK"; then 15727 ac_cv_prog_AWK="$AWK" # Let the user override the test. 15728else 15729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15730for as_dir in $PATH 15731do 15732 IFS=$as_save_IFS 15733 test -z "$as_dir" && as_dir=. 15734 for ac_exec_ext in '' $ac_executable_extensions; do 15735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15736 ac_cv_prog_AWK="$ac_prog" 15737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15738 break 2 15739 fi 15740done 15741 done 15742IFS=$as_save_IFS 15743 15744fi 15745fi 15746AWK=$ac_cv_prog_AWK 15747if test -n "$AWK"; then 15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 15749$as_echo "$AWK" >&6; } 15750else 15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15752$as_echo "no" >&6; } 15753fi 15754 15755 15756 test -n "$AWK" && break 15757done 15758 15759case "$AWK" in 15760"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;; 15761esac 15762 15763 15764 15765 15766# The cast to long int works around a bug in the HP C Compiler 15767# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15768# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15769# This bug is HP SR number 8606223364. 15770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 15771$as_echo_n "checking size of void *... " >&6; } 15772if ${ac_cv_sizeof_void_p+:} false; then : 15773 $as_echo_n "(cached) " >&6 15774else 15775 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 15776 15777else 15778 if test "$ac_cv_type_void_p" = yes; then 15779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15781as_fn_error 77 "cannot compute sizeof (void *) 15782See \`config.log' for more details" "$LINENO" 5; } 15783 else 15784 ac_cv_sizeof_void_p=0 15785 fi 15786fi 15787 15788fi 15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 15790$as_echo "$ac_cv_sizeof_void_p" >&6; } 15791 15792 15793 15794cat >>confdefs.h <<_ACEOF 15795#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 15796_ACEOF 15797 15798 15799 15800if test "${multilib}" = "yes"; then 15801 multilib_arg="--enable-multilib" 15802else 15803 multilib_arg= 15804fi 15805 15806# Get target configury. 15807unset TSAN_SUPPORTED 15808unset LSAN_SUPPORTED 15809unset HWASAN_SUPPORTED 15810. ${srcdir}/configure.tgt 15811 if test "x$TSAN_SUPPORTED" = "xyes"; then 15812 TSAN_SUPPORTED_TRUE= 15813 TSAN_SUPPORTED_FALSE='#' 15814else 15815 TSAN_SUPPORTED_TRUE='#' 15816 TSAN_SUPPORTED_FALSE= 15817fi 15818 15819 if test "x$LSAN_SUPPORTED" = "xyes"; then 15820 LSAN_SUPPORTED_TRUE= 15821 LSAN_SUPPORTED_FALSE='#' 15822else 15823 LSAN_SUPPORTED_TRUE='#' 15824 LSAN_SUPPORTED_FALSE= 15825fi 15826 15827 if test "x$HWASAN_SUPPORTED" = "xyes"; then 15828 HWASAN_SUPPORTED_TRUE= 15829 HWASAN_SUPPORTED_FALSE='#' 15830else 15831 HWASAN_SUPPORTED_TRUE='#' 15832 HWASAN_SUPPORTED_FALSE= 15833fi 15834 15835 15836# Check for functions needed. 15837for ac_func in clock_getres clock_gettime clock_settime lstat readlink 15838do : 15839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15840ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15841if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15842 cat >>confdefs.h <<_ACEOF 15843#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15844_ACEOF 15845 15846fi 15847done 15848 15849 15850# Common libraries that we need to link against for all sanitizer libs. 15851link_sanitizer_common='-lpthread -lm' 15852 15853# At least for glibc, shm_open is in librt. But don't pull that 15854# in if it still doesn't give us the function we want. This 15855# test is copied from libgomp. 15856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5 15857$as_echo_n "checking for shm_open in -lrt... " >&6; } 15858if ${ac_cv_lib_rt_shm_open+:} false; then : 15859 $as_echo_n "(cached) " >&6 15860else 15861 ac_check_lib_save_LIBS=$LIBS 15862LIBS="-lrt $LIBS" 15863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15864/* end confdefs.h. */ 15865 15866/* Override any GCC internal prototype to avoid an error. 15867 Use char because int might match the return type of a GCC 15868 builtin and then its argument prototype would still apply. */ 15869#ifdef __cplusplus 15870extern "C" 15871#endif 15872char shm_open (); 15873int 15874main () 15875{ 15876return shm_open (); 15877 ; 15878 return 0; 15879} 15880_ACEOF 15881if ac_fn_c_try_link "$LINENO"; then : 15882 ac_cv_lib_rt_shm_open=yes 15883else 15884 ac_cv_lib_rt_shm_open=no 15885fi 15886rm -f core conftest.err conftest.$ac_objext \ 15887 conftest$ac_exeext conftest.$ac_ext 15888LIBS=$ac_check_lib_save_LIBS 15889fi 15890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5 15891$as_echo "$ac_cv_lib_rt_shm_open" >&6; } 15892if test "x$ac_cv_lib_rt_shm_open" = xyes; then : 15893 link_sanitizer_common="-lrt $link_sanitizer_common" 15894fi 15895 15896 15897# Do a configure time check for -ldl 15898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 15899$as_echo_n "checking for dlsym in -ldl... " >&6; } 15900if ${ac_cv_lib_dl_dlsym+:} false; then : 15901 $as_echo_n "(cached) " >&6 15902else 15903 ac_check_lib_save_LIBS=$LIBS 15904LIBS="-ldl $LIBS" 15905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15906/* end confdefs.h. */ 15907 15908/* Override any GCC internal prototype to avoid an error. 15909 Use char because int might match the return type of a GCC 15910 builtin and then its argument prototype would still apply. */ 15911#ifdef __cplusplus 15912extern "C" 15913#endif 15914char dlsym (); 15915int 15916main () 15917{ 15918return dlsym (); 15919 ; 15920 return 0; 15921} 15922_ACEOF 15923if ac_fn_c_try_link "$LINENO"; then : 15924 ac_cv_lib_dl_dlsym=yes 15925else 15926 ac_cv_lib_dl_dlsym=no 15927fi 15928rm -f core conftest.err conftest.$ac_objext \ 15929 conftest$ac_exeext conftest.$ac_ext 15930LIBS=$ac_check_lib_save_LIBS 15931fi 15932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 15933$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 15934if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 15935 link_sanitizer_common="-ldl $link_sanitizer_common" 15936fi 15937 15938 15939# Set up the set of additional libraries that we need to link against for libasan. 15940link_libasan=$link_sanitizer_common 15941 15942 15943# Set up the set of additional libraries that we need to link against for libhwasan. 15944link_libhwasan=$link_sanitizer_common 15945 15946 15947# Set up the set of additional libraries that we need to link against for libtsan. 15948link_libtsan=$link_sanitizer_common 15949 15950 15951# Set up the set of additional libraries that we need to link against for libubsan. 15952link_libubsan=$link_sanitizer_common 15953 15954 15955# Set up the set of additional libraries that we need to link against for liblsan. 15956link_liblsan=$link_sanitizer_common 15957 15958 15959 15960# At least for glibc, clock_gettime is in librt. But don't pull that 15961# in if it still doesn't give us the function we want. This 15962# test is copied from libgomp. 15963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 15964$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 15965if ${ac_cv_lib_rt_clock_gettime+:} false; then : 15966 $as_echo_n "(cached) " >&6 15967else 15968 ac_check_lib_save_LIBS=$LIBS 15969LIBS="-lrt $LIBS" 15970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15971/* end confdefs.h. */ 15972 15973/* Override any GCC internal prototype to avoid an error. 15974 Use char because int might match the return type of a GCC 15975 builtin and then its argument prototype would still apply. */ 15976#ifdef __cplusplus 15977extern "C" 15978#endif 15979char clock_gettime (); 15980int 15981main () 15982{ 15983return clock_gettime (); 15984 ; 15985 return 0; 15986} 15987_ACEOF 15988if ac_fn_c_try_link "$LINENO"; then : 15989 ac_cv_lib_rt_clock_gettime=yes 15990else 15991 ac_cv_lib_rt_clock_gettime=no 15992fi 15993rm -f core conftest.err conftest.$ac_objext \ 15994 conftest$ac_exeext conftest.$ac_ext 15995LIBS=$ac_check_lib_save_LIBS 15996fi 15997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 15998$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 15999if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 16000 link_libasan="-lrt $link_libasan" 16001link_libtsan="-lrt $link_libtsan" 16002# Other sanitizers do not override clock_* API 16003 16004fi 16005 16006 16007case "$host" in 16008 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;; 16009 *) MAC_INTERPOSE=false ;; 16010esac 16011 if $MAC_INTERPOSE; then 16012 USING_MAC_INTERPOSE_TRUE= 16013 USING_MAC_INTERPOSE_FALSE='#' 16014else 16015 USING_MAC_INTERPOSE_TRUE='#' 16016 USING_MAC_INTERPOSE_FALSE= 16017fi 16018 16019 16020backtrace_supported=yes 16021 16022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5 16023$as_echo_n "checking for necessary platform features... " >&6; } 16024case "$target" in 16025 *-*-linux*) 16026 # Some old Linux distributions miss required syscalls. 16027 sanitizer_supported=no 16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16029/* end confdefs.h. */ 16030#include <sys/syscall.h> 16031#include <unistd.h> 16032int 16033main () 16034{ 16035 16036 syscall (__NR_gettid); 16037 syscall (__NR_futex); 16038 syscall (__NR_exit_group); 16039 16040 ; 16041 return 0; 16042} 16043_ACEOF 16044if ac_fn_c_try_compile "$LINENO"; then : 16045 sanitizer_supported=yes 16046fi 16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16048 ;; 16049 *) 16050 sanitizer_supported=yes 16051 ;; 16052esac 16053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5 16054$as_echo "$sanitizer_supported" >&6; } 16055 if test "$sanitizer_supported" = yes; then 16056 SANITIZER_SUPPORTED_TRUE= 16057 SANITIZER_SUPPORTED_FALSE='#' 16058else 16059 SANITIZER_SUPPORTED_TRUE='#' 16060 SANITIZER_SUPPORTED_FALSE= 16061fi 16062 16063 16064# Test for __sync support. 16065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5 16066$as_echo_n "checking __sync extensions... " >&6; } 16067if ${libsanitizer_cv_sys_sync+:} false; then : 16068 $as_echo_n "(cached) " >&6 16069else 16070 if test -n "${with_target_subdir}"; then 16071 libsanitizer_cv_sys_sync=yes 16072 else 16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16074/* end confdefs.h. */ 16075int i; 16076int 16077main () 16078{ 16079__sync_bool_compare_and_swap (&i, i, i); 16080 __sync_lock_test_and_set (&i, 1); 16081 __sync_lock_release (&i); 16082 ; 16083 return 0; 16084} 16085_ACEOF 16086if ac_fn_c_try_link "$LINENO"; then : 16087 libsanitizer_cv_sys_sync=yes 16088else 16089 libsanitizer_cv_sys_sync=no 16090fi 16091rm -f core conftest.err conftest.$ac_objext \ 16092 conftest$ac_exeext conftest.$ac_ext 16093 fi 16094fi 16095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5 16096$as_echo "$libsanitizer_cv_sys_sync" >&6; } 16097if test "$libsanitizer_cv_sys_sync" = "yes"; then 16098 16099$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h 16100 16101fi 16102 16103# Test for __atomic support. 16104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5 16105$as_echo_n "checking __atomic extensions... " >&6; } 16106if ${libsanitizer_cv_sys_atomic+:} false; then : 16107 $as_echo_n "(cached) " >&6 16108else 16109 if test -n "${with_target_subdir}"; then 16110 libsanitizer_cv_sys_atomic=yes 16111 else 16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16113/* end confdefs.h. */ 16114int i; 16115int 16116main () 16117{ 16118__atomic_load_n (&i, __ATOMIC_ACQUIRE); 16119 __atomic_store_n (&i, 1, __ATOMIC_RELEASE); 16120 ; 16121 return 0; 16122} 16123_ACEOF 16124if ac_fn_c_try_link "$LINENO"; then : 16125 libsanitizer_cv_sys_atomic=yes 16126else 16127 libsanitizer_cv_sys_atomic=no 16128fi 16129rm -f core conftest.err conftest.$ac_objext \ 16130 conftest$ac_exeext conftest.$ac_ext 16131 fi 16132fi 16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5 16134$as_echo "$libsanitizer_cv_sys_atomic" >&6; } 16135if test "$libsanitizer_cv_sys_atomic" = "yes"; then 16136 16137$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h 16138 16139fi 16140 16141# The library needs to be able to read the executable itself. Compile 16142# a file to determine the executable format. The awk script 16143# filetype.awk prints out the file type. 16144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5 16145$as_echo_n "checking output filetype... " >&6; } 16146if ${libsanitizer_cv_sys_filetype+:} false; then : 16147 $as_echo_n "(cached) " >&6 16148else 16149 filetype= 16150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16151/* end confdefs.h. */ 16152int i; 16153int 16154main () 16155{ 16156int j; 16157 ; 16158 return 0; 16159} 16160_ACEOF 16161if ac_fn_c_try_compile "$LINENO"; then : 16162 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext` 16163else 16164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16166as_fn_error $? "compiler failed 16167See \`config.log' for more details" "$LINENO" 5; } 16168fi 16169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16170libsanitizer_cv_sys_filetype=$filetype 16171fi 16172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5 16173$as_echo "$libsanitizer_cv_sys_filetype" >&6; } 16174 16175# Match the file type to decide what files to compile. 16176FORMAT_FILE= 16177case "$libsanitizer_cv_sys_filetype" in 16178elf*) FORMAT_FILE="elf.lo" ;; 16179*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 16180$as_echo "$as_me: WARNING: could not determine output file type" >&2;} 16181 FORMAT_FILE="unknown.lo" 16182 backtrace_supported=no 16183 ;; 16184esac 16185 16186 16187# ELF defines. 16188elfsize= 16189case "$libsanitizer_cv_sys_filetype" in 16190elf32) elfsize=32 ;; 16191elf64) elfsize=64 ;; 16192esac 16193 16194cat >>confdefs.h <<_ACEOF 16195#define BACKTRACE_ELF_SIZE $elfsize 16196_ACEOF 16197 16198 16199BACKTRACE_SUPPORTED=0 16200if test "$backtrace_supported" = "yes"; then 16201 BACKTRACE_SUPPORTED=1 16202fi 16203 16204 16205 16206 16207inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 16208 16209acx_cv_header_stdint=stddef.h 16210acx_cv_header_stdint_kind="(already complete)" 16211for i in stdint.h $inttype_headers; do 16212 unset ac_cv_type_uintptr_t 16213 unset ac_cv_type_uintmax_t 16214 unset ac_cv_type_int_least32_t 16215 unset ac_cv_type_int_fast32_t 16216 unset ac_cv_type_uint64_t 16217 $as_echo_n "looking for a compliant stdint.h in $i, " >&6 16218 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> 16219#include <$i> 16220" 16221if test "x$ac_cv_type_uintmax_t" = xyes; then : 16222 acx_cv_header_stdint=$i 16223else 16224 continue 16225fi 16226 16227 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 16228#include <$i> 16229" 16230if test "x$ac_cv_type_uintptr_t" = xyes; then : 16231 16232else 16233 acx_cv_header_stdint_kind="(mostly complete)" 16234fi 16235 16236 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> 16237#include <$i> 16238" 16239if test "x$ac_cv_type_int_least32_t" = xyes; then : 16240 16241else 16242 acx_cv_header_stdint_kind="(mostly complete)" 16243fi 16244 16245 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> 16246#include <$i> 16247" 16248if test "x$ac_cv_type_int_fast32_t" = xyes; then : 16249 16250else 16251 acx_cv_header_stdint_kind="(mostly complete)" 16252fi 16253 16254 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 16255#include <$i> 16256" 16257if test "x$ac_cv_type_uint64_t" = xyes; then : 16258 16259else 16260 acx_cv_header_stdint_kind="(lacks uint64_t)" 16261fi 16262 16263 break 16264done 16265if test "$acx_cv_header_stdint" = stddef.h; then 16266 acx_cv_header_stdint_kind="(lacks uintmax_t)" 16267 for i in stdint.h $inttype_headers; do 16268 unset ac_cv_type_uintptr_t 16269 unset ac_cv_type_uint32_t 16270 unset ac_cv_type_uint64_t 16271 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 16272 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> 16273#include <$i> 16274" 16275if test "x$ac_cv_type_uint32_t" = xyes; then : 16276 acx_cv_header_stdint=$i 16277else 16278 continue 16279fi 16280 16281 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 16282#include <$i> 16283" 16284if test "x$ac_cv_type_uint64_t" = xyes; then : 16285 16286fi 16287 16288 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 16289#include <$i> 16290" 16291if test "x$ac_cv_type_uintptr_t" = xyes; then : 16292 16293fi 16294 16295 break 16296 done 16297fi 16298if test "$acx_cv_header_stdint" = stddef.h; then 16299 acx_cv_header_stdint_kind="(u_intXX_t style)" 16300 for i in sys/types.h $inttype_headers; do 16301 unset ac_cv_type_u_int32_t 16302 unset ac_cv_type_u_int64_t 16303 $as_echo_n "looking for u_intXX_t types in $i, " >&6 16304 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> 16305#include <$i> 16306" 16307if test "x$ac_cv_type_u_int32_t" = xyes; then : 16308 acx_cv_header_stdint=$i 16309else 16310 continue 16311fi 16312 16313 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> 16314#include <$i> 16315" 16316if test "x$ac_cv_type_u_int64_t" = xyes; then : 16317 16318fi 16319 16320 break 16321 done 16322fi 16323if test "$acx_cv_header_stdint" = stddef.h; then 16324 acx_cv_header_stdint_kind="(using manual detection)" 16325fi 16326 16327test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 16328test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 16329test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 16330test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 16331test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 16332 16333# ----------------- Summarize what we found so far 16334 16335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 16336$as_echo_n "checking what to include in gstdint.h... " >&6; } 16337 16338case `$as_basename -- gstdint.h || 16339$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ 16340 Xgstdint.h : 'X\(//\)$' \| \ 16341 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || 16342$as_echo X/gstdint.h | 16343 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16344 s//\1/ 16345 q 16346 } 16347 /^X\/\(\/\/\)$/{ 16348 s//\1/ 16349 q 16350 } 16351 /^X\/\(\/\).*/{ 16352 s//\1/ 16353 q 16354 } 16355 s/.*/./; q'` in 16356 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 16357$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 16358 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 16359$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 16360 *) ;; 16361esac 16362 16363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 16364$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } 16365 16366# ----------------- done included file, check C basic types -------- 16367 16368# Lacking an uintptr_t? Test size of void * 16369case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 16370 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler 16371# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16372# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16373# This bug is HP SR number 8606223364. 16374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 16375$as_echo_n "checking size of void *... " >&6; } 16376if ${ac_cv_sizeof_void_p+:} false; then : 16377 $as_echo_n "(cached) " >&6 16378else 16379 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 16380 16381else 16382 if test "$ac_cv_type_void_p" = yes; then 16383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16385as_fn_error 77 "cannot compute sizeof (void *) 16386See \`config.log' for more details" "$LINENO" 5; } 16387 else 16388 ac_cv_sizeof_void_p=0 16389 fi 16390fi 16391 16392fi 16393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 16394$as_echo "$ac_cv_sizeof_void_p" >&6; } 16395 16396 16397 16398cat >>confdefs.h <<_ACEOF 16399#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 16400_ACEOF 16401 16402 ;; 16403esac 16404 16405# Lacking an uint64_t? Test size of long 16406case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 16407 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler 16408# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16409# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16410# This bug is HP SR number 8606223364. 16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16412$as_echo_n "checking size of long... " >&6; } 16413if ${ac_cv_sizeof_long+:} false; then : 16414 $as_echo_n "(cached) " >&6 16415else 16416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 16417 16418else 16419 if test "$ac_cv_type_long" = yes; then 16420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16422as_fn_error 77 "cannot compute sizeof (long) 16423See \`config.log' for more details" "$LINENO" 5; } 16424 else 16425 ac_cv_sizeof_long=0 16426 fi 16427fi 16428 16429fi 16430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16431$as_echo "$ac_cv_sizeof_long" >&6; } 16432 16433 16434 16435cat >>confdefs.h <<_ACEOF 16436#define SIZEOF_LONG $ac_cv_sizeof_long 16437_ACEOF 16438 16439 ;; 16440esac 16441 16442if test $acx_cv_header_stdint = stddef.h; then 16443 # Lacking a good header? Test size of everything and deduce all types. 16444 # The cast to long int works around a bug in the HP C Compiler 16445# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16446# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16447# This bug is HP SR number 8606223364. 16448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 16449$as_echo_n "checking size of int... " >&6; } 16450if ${ac_cv_sizeof_int+:} false; then : 16451 $as_echo_n "(cached) " >&6 16452else 16453 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 16454 16455else 16456 if test "$ac_cv_type_int" = yes; then 16457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16459as_fn_error 77 "cannot compute sizeof (int) 16460See \`config.log' for more details" "$LINENO" 5; } 16461 else 16462 ac_cv_sizeof_int=0 16463 fi 16464fi 16465 16466fi 16467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 16468$as_echo "$ac_cv_sizeof_int" >&6; } 16469 16470 16471 16472cat >>confdefs.h <<_ACEOF 16473#define SIZEOF_INT $ac_cv_sizeof_int 16474_ACEOF 16475 16476 16477 # The cast to long int works around a bug in the HP C Compiler 16478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16480# This bug is HP SR number 8606223364. 16481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 16482$as_echo_n "checking size of short... " >&6; } 16483if ${ac_cv_sizeof_short+:} false; then : 16484 $as_echo_n "(cached) " >&6 16485else 16486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 16487 16488else 16489 if test "$ac_cv_type_short" = yes; then 16490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16492as_fn_error 77 "cannot compute sizeof (short) 16493See \`config.log' for more details" "$LINENO" 5; } 16494 else 16495 ac_cv_sizeof_short=0 16496 fi 16497fi 16498 16499fi 16500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 16501$as_echo "$ac_cv_sizeof_short" >&6; } 16502 16503 16504 16505cat >>confdefs.h <<_ACEOF 16506#define SIZEOF_SHORT $ac_cv_sizeof_short 16507_ACEOF 16508 16509 16510 # The cast to long int works around a bug in the HP C Compiler 16511# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16512# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16513# This bug is HP SR number 8606223364. 16514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 16515$as_echo_n "checking size of char... " >&6; } 16516if ${ac_cv_sizeof_char+:} false; then : 16517 $as_echo_n "(cached) " >&6 16518else 16519 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 16520 16521else 16522 if test "$ac_cv_type_char" = yes; then 16523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16525as_fn_error 77 "cannot compute sizeof (char) 16526See \`config.log' for more details" "$LINENO" 5; } 16527 else 16528 ac_cv_sizeof_char=0 16529 fi 16530fi 16531 16532fi 16533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 16534$as_echo "$ac_cv_sizeof_char" >&6; } 16535 16536 16537 16538cat >>confdefs.h <<_ACEOF 16539#define SIZEOF_CHAR $ac_cv_sizeof_char 16540_ACEOF 16541 16542 16543 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 16545$as_echo_n "checking for type equivalent to int8_t... " >&6; } 16546 case "$ac_cv_sizeof_char" in 16547 1) acx_cv_type_int8_t=char ;; 16548 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 16549 esac 16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 16551$as_echo "$acx_cv_type_int8_t" >&6; } 16552 16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 16554$as_echo_n "checking for type equivalent to int16_t... " >&6; } 16555 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 16556 2:*) acx_cv_type_int16_t=int ;; 16557 *:2) acx_cv_type_int16_t=short ;; 16558 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 16559 esac 16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 16561$as_echo "$acx_cv_type_int16_t" >&6; } 16562 16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 16564$as_echo_n "checking for type equivalent to int32_t... " >&6; } 16565 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 16566 4:*) acx_cv_type_int32_t=int ;; 16567 *:4) acx_cv_type_int32_t=long ;; 16568 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 16569 esac 16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 16571$as_echo "$acx_cv_type_int32_t" >&6; } 16572fi 16573 16574# These tests are here to make the output prettier 16575 16576if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 16577 case "$ac_cv_sizeof_long" in 16578 8) acx_cv_type_int64_t=long ;; 16579 esac 16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 16581$as_echo_n "checking for type equivalent to int64_t... " >&6; } 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 16583$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } 16584fi 16585 16586# Now we can use the above types 16587 16588if test "$ac_cv_type_uintptr_t" != yes; then 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 16590$as_echo_n "checking for type equivalent to intptr_t... " >&6; } 16591 case $ac_cv_sizeof_void_p in 16592 2) acx_cv_type_intptr_t=int16_t ;; 16593 4) acx_cv_type_intptr_t=int32_t ;; 16594 8) acx_cv_type_intptr_t=int64_t ;; 16595 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 16596 esac 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 16598$as_echo "$acx_cv_type_intptr_t" >&6; } 16599fi 16600 16601# ----------------- done all checks, emit header ------------- 16602ac_config_commands="$ac_config_commands gstdint.h" 16603 16604 16605 16606 16607for ac_header in sys/mman.h alloca.h 16608do : 16609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16610ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16612 cat >>confdefs.h <<_ACEOF 16613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16614_ACEOF 16615 16616fi 16617 16618done 16619 16620if test "$ac_cv_header_sys_mman_h" = "no"; then 16621 have_mmap=no 16622else 16623 if test -n "${with_target_subdir}"; then 16624 # When built as a GCC target library, we can't do a link test. We 16625 # simply assume that if we have mman.h, we have mmap. 16626 have_mmap=yes 16627 else 16628 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 16629if test "x$ac_cv_func_mmap" = xyes; then : 16630 have_mmap=yes 16631else 16632 have_mmap=no 16633fi 16634 16635 fi 16636fi 16637if test "$have_mmap" = "no"; then 16638 VIEW_FILE=read.lo 16639 ALLOC_FILE=alloc.lo 16640else 16641 VIEW_FILE=mmapio.lo 16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16643/* end confdefs.h. */ 16644 16645#include <sys/mman.h> 16646#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) 16647 #error no MAP_ANONYMOUS 16648#endif 16649 16650_ACEOF 16651if ac_fn_c_try_cpp "$LINENO"; then : 16652 ALLOC_FILE=mmap.lo 16653else 16654 ALLOC_FILE=alloc.lo 16655fi 16656rm -f conftest.err conftest.i conftest.$ac_ext 16657fi 16658 16659 16660 16661BACKTRACE_USES_MALLOC=0 16662if test "$ALLOC_FILE" = "alloc.lo"; then 16663 BACKTRACE_USES_MALLOC=1 16664fi 16665 16666 16667# Don't care about thread support 16668BACKTRACE_SUPPORTS_THREADS=0 16669 16670 16671# Check for dl_iterate_phdr. 16672for ac_header in link.h 16673do : 16674 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default" 16675if test "x$ac_cv_header_link_h" = xyes; then : 16676 cat >>confdefs.h <<_ACEOF 16677#define HAVE_LINK_H 1 16678_ACEOF 16679 16680fi 16681 16682done 16683 16684if test "$ac_cv_header_link_h" = "no"; then 16685 have_dl_iterate_phdr=no 16686else 16687 # When built as a GCC target library, we can't do a link test. 16688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16689/* end confdefs.h. */ 16690#include <link.h> 16691 16692_ACEOF 16693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16694 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then : 16695 have_dl_iterate_phdr=yes 16696else 16697 have_dl_iterate_phdr=no 16698fi 16699rm -f conftest* 16700 16701fi 16702if test "$have_dl_iterate_phdr" = "yes"; then 16703 16704$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h 16705 16706fi 16707 16708# Check for the fcntl function. 16709if test -n "${with_target_subdir}"; then 16710 case "${host}" in 16711 *-*-mingw*) have_fcntl=no ;; 16712 *) have_fcntl=yes ;; 16713 esac 16714else 16715 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 16716if test "x$ac_cv_func_fcntl" = xyes; then : 16717 have_fcntl=yes 16718else 16719 have_fcntl=no 16720fi 16721 16722fi 16723if test "$have_fcntl" = "yes"; then 16724 16725$as_echo "#define HAVE_FCNTL 1" >>confdefs.h 16726 16727fi 16728 16729ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 16730if test "x$ac_cv_have_decl_strnlen" = xyes; then : 16731 ac_have_decl=1 16732else 16733 ac_have_decl=0 16734fi 16735 16736cat >>confdefs.h <<_ACEOF 16737#define HAVE_DECL_STRNLEN $ac_have_decl 16738_ACEOF 16739 16740 16741# Check for getexecname function. 16742if test -n "${with_target_subdir}"; then 16743 case "${host}" in 16744 *-*-solaris2*) have_getexecname=yes ;; 16745 *) have_getexecname=no ;; 16746 esac 16747else 16748 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname" 16749if test "x$ac_cv_func_getexecname" = xyes; then : 16750 have_getexecname=yes 16751else 16752 have_getexecname=no 16753fi 16754 16755fi 16756if test "$have_getexecname" = "yes"; then 16757 16758$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h 16759 16760fi 16761 16762# Check for rpc/xdr.h 16763for ac_header in rpc/xdr.h 16764do : 16765 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default" 16766if test "x$ac_cv_header_rpc_xdr_h" = xyes; then : 16767 cat >>confdefs.h <<_ACEOF 16768#define HAVE_RPC_XDR_H 1 16769_ACEOF 16770 16771fi 16772 16773done 16774 16775if test x"$ac_cv_header_rpc_xdr_h" = xyes; then 16776 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1" 16777else 16778 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0" 16779fi 16780 16781# Check for tirpc/rpc/xdr.h 16782for ac_header in tirpc/rpc/xdr.h 16783do : 16784 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default" 16785if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then : 16786 cat >>confdefs.h <<_ACEOF 16787#define HAVE_TIRPC_RPC_XDR_H 1 16788_ACEOF 16789 16790fi 16791 16792done 16793 16794if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then 16795 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1" 16796else 16797 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0" 16798fi 16799 16800RPC_DEFS=$rpc_defs 16801 16802 16803 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then 16804 LIBBACKTRACE_SUPPORTED_TRUE= 16805 LIBBACKTRACE_SUPPORTED_FALSE='#' 16806else 16807 LIBBACKTRACE_SUPPORTED_TRUE='#' 16808 LIBBACKTRACE_SUPPORTED_FALSE= 16809fi 16810 16811 16812 16813ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h" 16814 16815ac_config_headers="$ac_config_headers config.h" 16816 16817 16818ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile" 16819 16820 16821if test "x$TSAN_SUPPORTED" = "xyes"; then 16822 ac_config_files="$ac_config_files tsan/Makefile" 16823 16824fi 16825 16826if test "x$HWASAN_SUPPORTED" = "xyes"; then 16827 ac_config_files="$ac_config_files hwasan/Makefile" 16828 16829fi 16830 16831 16832 16833 16834# Check whether --enable-werror was given. 16835if test "${enable_werror+set}" = set; then : 16836 enableval=$enable_werror; 16837fi 16838 16839 16840ac_ext=c 16841ac_cpp='$CPP $CPPFLAGS' 16842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16844ac_compiler_gnu=$ac_cv_c_compiler_gnu 16845 16846WARN_FLAGS= 16847save_CFLAGS="$CFLAGS" 16848for real_option in -Wextra -Wall -Wwrite-strings \ 16849 -Wmissing-format-attribute -Wcast-qual; do 16850 # Do the check with the no- prefix removed since gcc silently 16851 # accepts any -Wno-* option on purpose 16852 case $real_option in 16853 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 16854 *) option=$real_option ;; 16855 esac 16856 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 16857 16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 16859$as_echo_n "checking whether $CC supports $option... " >&6; } 16860if eval \${$as_acx_Woption+:} false; then : 16861 $as_echo_n "(cached) " >&6 16862else 16863 CFLAGS="$option" 16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16865/* end confdefs.h. */ 16866 16867int 16868main () 16869{ 16870 16871 ; 16872 return 0; 16873} 16874_ACEOF 16875if ac_fn_c_try_compile "$LINENO"; then : 16876 eval "$as_acx_Woption=yes" 16877else 16878 eval "$as_acx_Woption=no" 16879fi 16880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16881 16882fi 16883eval ac_res=\$$as_acx_Woption 16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16885$as_echo "$ac_res" >&6; } 16886 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 16887 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" 16888fi 16889 done 16890CFLAGS="$save_CFLAGS" 16891ac_ext=c 16892ac_cpp='$CPP $CPPFLAGS' 16893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16895ac_compiler_gnu=$ac_cv_c_compiler_gnu 16896 16897 16898if test "x$enable_werror" != "xno"; then : 16899 WARN_FLAGS="$WARN_FLAGS -Werror" 16900fi 16901 16902 16903# Determine what GCC version number to use in filesystem paths. 16904 16905 get_gcc_base_ver="cat" 16906 16907# Check whether --with-gcc-major-version-only was given. 16908if test "${with_gcc_major_version_only+set}" = set; then : 16909 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 16910 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 16911 fi 16912 16913fi 16914 16915 16916 16917 16918# Add CET specific flags if Intel CET is enabled. 16919 # Check whether --enable-cet was given. 16920if test "${enable_cet+set}" = set; then : 16921 enableval=$enable_cet; 16922 case "$enableval" in 16923 yes|no|auto) ;; 16924 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 16925 esac 16926 16927else 16928 enable_cet=auto 16929fi 16930 16931 16932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 16933$as_echo_n "checking for CET support... " >&6; } 16934 16935# NB: Avoid nested save_CFLAGS and save_LDFLAGS. 16936case "$host" in 16937 i[34567]86-*-linux* | x86_64-*-linux*) 16938 case "$enable_cet" in 16939 auto) 16940 # Check if target supports multi-byte NOPs 16941 # and if compiler and assembler support CET insn. 16942 cet_save_CFLAGS="$CFLAGS" 16943 CFLAGS="$CFLAGS -fcf-protection" 16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16945/* end confdefs.h. */ 16946 16947int 16948main () 16949{ 16950 16951#if !defined(__SSE2__) 16952#error target does not support multi-byte NOPs 16953#else 16954asm ("setssbsy"); 16955#endif 16956 16957 ; 16958 return 0; 16959} 16960_ACEOF 16961if ac_fn_c_try_compile "$LINENO"; then : 16962 enable_cet=yes 16963else 16964 enable_cet=no 16965fi 16966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16967 CFLAGS="$cet_save_CFLAGS" 16968 ;; 16969 yes) 16970 # Check if assembler supports CET. 16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16972/* end confdefs.h. */ 16973 16974int 16975main () 16976{ 16977asm ("setssbsy"); 16978 ; 16979 return 0; 16980} 16981_ACEOF 16982if ac_fn_c_try_compile "$LINENO"; then : 16983 16984else 16985 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 16986fi 16987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16988 ;; 16989 esac 16990 ;; 16991 *) 16992 enable_cet=no 16993 ;; 16994esac 16995if test x$enable_cet = xyes; then 16996 CET_FLAGS="-fcf-protection -mshstk" 16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16998$as_echo "yes" >&6; } 16999else 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17001$as_echo "no" >&6; } 17002fi 17003 17004EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS" 17005EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS" 17006EXTRA_ASFLAGS=$CET_FLAGS 17007 17008 17009 17010 17011cat >confcache <<\_ACEOF 17012# This file is a shell script that caches the results of configure 17013# tests run on this system so they can be shared between configure 17014# scripts and configure runs, see configure's option --config-cache. 17015# It is not useful on other systems. If it contains results you don't 17016# want to keep, you may remove or edit it. 17017# 17018# config.status only pays attention to the cache file if you give it 17019# the --recheck option to rerun configure. 17020# 17021# `ac_cv_env_foo' variables (set or unset) will be overridden when 17022# loading this file, other *unset* `ac_cv_foo' will be assigned the 17023# following values. 17024 17025_ACEOF 17026 17027# The following way of writing the cache mishandles newlines in values, 17028# but we know of no workaround that is simple, portable, and efficient. 17029# So, we kill variables containing newlines. 17030# Ultrix sh set writes to stderr and can't be redirected directly, 17031# and sets the high bit in the cache file unless we assign to the vars. 17032( 17033 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17034 eval ac_val=\$$ac_var 17035 case $ac_val in #( 17036 *${as_nl}*) 17037 case $ac_var in #( 17038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17040 esac 17041 case $ac_var in #( 17042 _ | IFS | as_nl) ;; #( 17043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17044 *) { eval $ac_var=; unset $ac_var;} ;; 17045 esac ;; 17046 esac 17047 done 17048 17049 (set) 2>&1 | 17050 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17051 *${as_nl}ac_space=\ *) 17052 # `set' does not quote correctly, so add quotes: double-quote 17053 # substitution turns \\\\ into \\, and sed turns \\ into \. 17054 sed -n \ 17055 "s/'/'\\\\''/g; 17056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17057 ;; #( 17058 *) 17059 # `set' quotes correctly as required by POSIX, so do not add quotes. 17060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17061 ;; 17062 esac | 17063 sort 17064) | 17065 sed ' 17066 /^ac_cv_env_/b end 17067 t clear 17068 :clear 17069 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17070 t end 17071 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17072 :end' >>confcache 17073if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17074 if test -w "$cache_file"; then 17075 if test "x$cache_file" != "x/dev/null"; then 17076 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17077$as_echo "$as_me: updating cache $cache_file" >&6;} 17078 if test ! -f "$cache_file" || test -h "$cache_file"; then 17079 cat confcache >"$cache_file" 17080 else 17081 case $cache_file in #( 17082 */* | ?:*) 17083 mv -f confcache "$cache_file"$$ && 17084 mv -f "$cache_file"$$ "$cache_file" ;; #( 17085 *) 17086 mv -f confcache "$cache_file" ;; 17087 esac 17088 fi 17089 fi 17090 else 17091 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17092$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17093 fi 17094fi 17095rm -f confcache 17096 17097test "x$prefix" = xNONE && prefix=$ac_default_prefix 17098# Let make expand exec_prefix. 17099test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17100 17101DEFS=-DHAVE_CONFIG_H 17102 17103ac_libobjs= 17104ac_ltlibobjs= 17105U= 17106for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17107 # 1. Remove the extension, and $U if already installed. 17108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17109 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17111 # will be set to the directory where LIBOBJS objects are built. 17112 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17113 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17114done 17115LIBOBJS=$ac_libobjs 17116 17117LTLIBOBJS=$ac_ltlibobjs 17118 17119 17120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17121$as_echo_n "checking that generated files are newer than configure... " >&6; } 17122 if test -n "$am_sleep_pid"; then 17123 # Hide warnings about reused PIDs. 17124 wait $am_sleep_pid 2>/dev/null 17125 fi 17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17127$as_echo "done" >&6; } 17128if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17129 as_fn_error $? "conditional \"AMDEP\" was never defined. 17130Usually this means the macro was only invoked conditionally." "$LINENO" 5 17131fi 17132if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17133 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17134Usually this means the macro was only invoked conditionally." "$LINENO" 5 17135fi 17136 if test -n "$EXEEXT"; then 17137 am__EXEEXT_TRUE= 17138 am__EXEEXT_FALSE='#' 17139else 17140 am__EXEEXT_TRUE='#' 17141 am__EXEEXT_FALSE= 17142fi 17143 17144if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17145 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17146Usually this means the macro was only invoked conditionally." "$LINENO" 5 17147fi 17148if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17149 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17150Usually this means the macro was only invoked conditionally." "$LINENO" 5 17151fi 17152if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 17153 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 17154Usually this means the macro was only invoked conditionally." "$LINENO" 5 17155fi 17156if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then 17157 as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined. 17158Usually this means the macro was only invoked conditionally." "$LINENO" 5 17159fi 17160if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then 17161 as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined. 17162Usually this means the macro was only invoked conditionally." "$LINENO" 5 17163fi 17164if test -z "${HWASAN_SUPPORTED_TRUE}" && test -z "${HWASAN_SUPPORTED_FALSE}"; then 17165 as_fn_error $? "conditional \"HWASAN_SUPPORTED\" was never defined. 17166Usually this means the macro was only invoked conditionally." "$LINENO" 5 17167fi 17168if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then 17169 as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined. 17170Usually this means the macro was only invoked conditionally." "$LINENO" 5 17171fi 17172if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then 17173 as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined. 17174Usually this means the macro was only invoked conditionally." "$LINENO" 5 17175fi 17176if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then 17177 as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined. 17178Usually this means the macro was only invoked conditionally." "$LINENO" 5 17179fi 17180 17181: "${CONFIG_STATUS=./config.status}" 17182ac_write_fail=0 17183ac_clean_files_save=$ac_clean_files 17184ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17185{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17186$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17187as_write_fail=0 17188cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17189#! $SHELL 17190# Generated by $as_me. 17191# Run this file to recreate the current configuration. 17192# Compiler output produced by configure, useful for debugging 17193# configure, is in config.log if it exists. 17194 17195debug=false 17196ac_cs_recheck=false 17197ac_cs_silent=false 17198 17199SHELL=\${CONFIG_SHELL-$SHELL} 17200export SHELL 17201_ASEOF 17202cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17203## -------------------- ## 17204## M4sh Initialization. ## 17205## -------------------- ## 17206 17207# Be more Bourne compatible 17208DUALCASE=1; export DUALCASE # for MKS sh 17209if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17210 emulate sh 17211 NULLCMD=: 17212 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17213 # is contrary to our usage. Disable this feature. 17214 alias -g '${1+"$@"}'='"$@"' 17215 setopt NO_GLOB_SUBST 17216else 17217 case `(set -o) 2>/dev/null` in #( 17218 *posix*) : 17219 set -o posix ;; #( 17220 *) : 17221 ;; 17222esac 17223fi 17224 17225 17226as_nl=' 17227' 17228export as_nl 17229# Printing a long string crashes Solaris 7 /usr/bin/printf. 17230as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17231as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17232as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17233# Prefer a ksh shell builtin over an external printf program on Solaris, 17234# but without wasting forks for bash or zsh. 17235if test -z "$BASH_VERSION$ZSH_VERSION" \ 17236 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17237 as_echo='print -r --' 17238 as_echo_n='print -rn --' 17239elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17240 as_echo='printf %s\n' 17241 as_echo_n='printf %s' 17242else 17243 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17244 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17245 as_echo_n='/usr/ucb/echo -n' 17246 else 17247 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17248 as_echo_n_body='eval 17249 arg=$1; 17250 case $arg in #( 17251 *"$as_nl"*) 17252 expr "X$arg" : "X\\(.*\\)$as_nl"; 17253 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17254 esac; 17255 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17256 ' 17257 export as_echo_n_body 17258 as_echo_n='sh -c $as_echo_n_body as_echo' 17259 fi 17260 export as_echo_body 17261 as_echo='sh -c $as_echo_body as_echo' 17262fi 17263 17264# The user is always right. 17265if test "${PATH_SEPARATOR+set}" != set; then 17266 PATH_SEPARATOR=: 17267 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17268 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17269 PATH_SEPARATOR=';' 17270 } 17271fi 17272 17273 17274# IFS 17275# We need space, tab and new line, in precisely that order. Quoting is 17276# there to prevent editors from complaining about space-tab. 17277# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17278# splitting by setting IFS to empty value.) 17279IFS=" "" $as_nl" 17280 17281# Find who we are. Look in the path if we contain no directory separator. 17282as_myself= 17283case $0 in #(( 17284 *[\\/]* ) as_myself=$0 ;; 17285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17286for as_dir in $PATH 17287do 17288 IFS=$as_save_IFS 17289 test -z "$as_dir" && as_dir=. 17290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17291 done 17292IFS=$as_save_IFS 17293 17294 ;; 17295esac 17296# We did not find ourselves, most probably we were run as `sh COMMAND' 17297# in which case we are not to be found in the path. 17298if test "x$as_myself" = x; then 17299 as_myself=$0 17300fi 17301if test ! -f "$as_myself"; then 17302 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17303 exit 1 17304fi 17305 17306# Unset variables that we do not need and which cause bugs (e.g. in 17307# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17308# suppresses any "Segmentation fault" message there. '((' could 17309# trigger a bug in pdksh 5.2.14. 17310for as_var in BASH_ENV ENV MAIL MAILPATH 17311do eval test x\${$as_var+set} = xset \ 17312 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17313done 17314PS1='$ ' 17315PS2='> ' 17316PS4='+ ' 17317 17318# NLS nuisances. 17319LC_ALL=C 17320export LC_ALL 17321LANGUAGE=C 17322export LANGUAGE 17323 17324# CDPATH. 17325(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17326 17327 17328# as_fn_error STATUS ERROR [LINENO LOG_FD] 17329# ---------------------------------------- 17330# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17331# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17332# script with STATUS, using 1 if that was 0. 17333as_fn_error () 17334{ 17335 as_status=$1; test $as_status -eq 0 && as_status=1 17336 if test "$4"; then 17337 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17338 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17339 fi 17340 $as_echo "$as_me: error: $2" >&2 17341 as_fn_exit $as_status 17342} # as_fn_error 17343 17344 17345# as_fn_set_status STATUS 17346# ----------------------- 17347# Set $? to STATUS, without forking. 17348as_fn_set_status () 17349{ 17350 return $1 17351} # as_fn_set_status 17352 17353# as_fn_exit STATUS 17354# ----------------- 17355# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17356as_fn_exit () 17357{ 17358 set +e 17359 as_fn_set_status $1 17360 exit $1 17361} # as_fn_exit 17362 17363# as_fn_unset VAR 17364# --------------- 17365# Portably unset VAR. 17366as_fn_unset () 17367{ 17368 { eval $1=; unset $1;} 17369} 17370as_unset=as_fn_unset 17371# as_fn_append VAR VALUE 17372# ---------------------- 17373# Append the text in VALUE to the end of the definition contained in VAR. Take 17374# advantage of any shell optimizations that allow amortized linear growth over 17375# repeated appends, instead of the typical quadratic growth present in naive 17376# implementations. 17377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17378 eval 'as_fn_append () 17379 { 17380 eval $1+=\$2 17381 }' 17382else 17383 as_fn_append () 17384 { 17385 eval $1=\$$1\$2 17386 } 17387fi # as_fn_append 17388 17389# as_fn_arith ARG... 17390# ------------------ 17391# Perform arithmetic evaluation on the ARGs, and store the result in the 17392# global $as_val. Take advantage of shells that can avoid forks. The arguments 17393# must be portable across $(()) and expr. 17394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17395 eval 'as_fn_arith () 17396 { 17397 as_val=$(( $* )) 17398 }' 17399else 17400 as_fn_arith () 17401 { 17402 as_val=`expr "$@" || test $? -eq 1` 17403 } 17404fi # as_fn_arith 17405 17406 17407if expr a : '\(a\)' >/dev/null 2>&1 && 17408 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17409 as_expr=expr 17410else 17411 as_expr=false 17412fi 17413 17414if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17415 as_basename=basename 17416else 17417 as_basename=false 17418fi 17419 17420if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17421 as_dirname=dirname 17422else 17423 as_dirname=false 17424fi 17425 17426as_me=`$as_basename -- "$0" || 17427$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17428 X"$0" : 'X\(//\)$' \| \ 17429 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17430$as_echo X/"$0" | 17431 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17432 s//\1/ 17433 q 17434 } 17435 /^X\/\(\/\/\)$/{ 17436 s//\1/ 17437 q 17438 } 17439 /^X\/\(\/\).*/{ 17440 s//\1/ 17441 q 17442 } 17443 s/.*/./; q'` 17444 17445# Avoid depending upon Character Ranges. 17446as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17447as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17448as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17449as_cr_digits='0123456789' 17450as_cr_alnum=$as_cr_Letters$as_cr_digits 17451 17452ECHO_C= ECHO_N= ECHO_T= 17453case `echo -n x` in #((((( 17454-n*) 17455 case `echo 'xy\c'` in 17456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17457 xy) ECHO_C='\c';; 17458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17459 ECHO_T=' ';; 17460 esac;; 17461*) 17462 ECHO_N='-n';; 17463esac 17464 17465rm -f conf$$ conf$$.exe conf$$.file 17466if test -d conf$$.dir; then 17467 rm -f conf$$.dir/conf$$.file 17468else 17469 rm -f conf$$.dir 17470 mkdir conf$$.dir 2>/dev/null 17471fi 17472if (echo >conf$$.file) 2>/dev/null; then 17473 if ln -s conf$$.file conf$$ 2>/dev/null; then 17474 as_ln_s='ln -s' 17475 # ... but there are two gotchas: 17476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17478 # In both cases, we have to default to `cp -pR'. 17479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17480 as_ln_s='cp -pR' 17481 elif ln conf$$.file conf$$ 2>/dev/null; then 17482 as_ln_s=ln 17483 else 17484 as_ln_s='cp -pR' 17485 fi 17486else 17487 as_ln_s='cp -pR' 17488fi 17489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17490rmdir conf$$.dir 2>/dev/null 17491 17492 17493# as_fn_mkdir_p 17494# ------------- 17495# Create "$as_dir" as a directory, including parents if necessary. 17496as_fn_mkdir_p () 17497{ 17498 17499 case $as_dir in #( 17500 -*) as_dir=./$as_dir;; 17501 esac 17502 test -d "$as_dir" || eval $as_mkdir_p || { 17503 as_dirs= 17504 while :; do 17505 case $as_dir in #( 17506 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17507 *) as_qdir=$as_dir;; 17508 esac 17509 as_dirs="'$as_qdir' $as_dirs" 17510 as_dir=`$as_dirname -- "$as_dir" || 17511$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17512 X"$as_dir" : 'X\(//\)[^/]' \| \ 17513 X"$as_dir" : 'X\(//\)$' \| \ 17514 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17515$as_echo X"$as_dir" | 17516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17517 s//\1/ 17518 q 17519 } 17520 /^X\(\/\/\)[^/].*/{ 17521 s//\1/ 17522 q 17523 } 17524 /^X\(\/\/\)$/{ 17525 s//\1/ 17526 q 17527 } 17528 /^X\(\/\).*/{ 17529 s//\1/ 17530 q 17531 } 17532 s/.*/./; q'` 17533 test -d "$as_dir" && break 17534 done 17535 test -z "$as_dirs" || eval "mkdir $as_dirs" 17536 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17537 17538 17539} # as_fn_mkdir_p 17540if mkdir -p . 2>/dev/null; then 17541 as_mkdir_p='mkdir -p "$as_dir"' 17542else 17543 test -d ./-p && rmdir ./-p 17544 as_mkdir_p=false 17545fi 17546 17547 17548# as_fn_executable_p FILE 17549# ----------------------- 17550# Test if FILE is an executable regular file. 17551as_fn_executable_p () 17552{ 17553 test -f "$1" && test -x "$1" 17554} # as_fn_executable_p 17555as_test_x='test -x' 17556as_executable_p=as_fn_executable_p 17557 17558# Sed expression to map a string onto a valid CPP name. 17559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17560 17561# Sed expression to map a string onto a valid variable name. 17562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17563 17564 17565exec 6>&1 17566## ----------------------------------- ## 17567## Main body of $CONFIG_STATUS script. ## 17568## ----------------------------------- ## 17569_ASEOF 17570test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17571 17572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17573# Save the log message, to keep $0 and so on meaningful, and to 17574# report actual input values of CONFIG_FILES etc. instead of their 17575# values after options handling. 17576ac_log=" 17577This file was extended by package-unused $as_me version-unused, which was 17578generated by GNU Autoconf 2.69. Invocation command line was 17579 17580 CONFIG_FILES = $CONFIG_FILES 17581 CONFIG_HEADERS = $CONFIG_HEADERS 17582 CONFIG_LINKS = $CONFIG_LINKS 17583 CONFIG_COMMANDS = $CONFIG_COMMANDS 17584 $ $0 $@ 17585 17586on `(hostname || uname -n) 2>/dev/null | sed 1q` 17587" 17588 17589_ACEOF 17590 17591case $ac_config_files in *" 17592"*) set x $ac_config_files; shift; ac_config_files=$*;; 17593esac 17594 17595case $ac_config_headers in *" 17596"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17597esac 17598 17599 17600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17601# Files that config.status was made for. 17602config_files="$ac_config_files" 17603config_headers="$ac_config_headers" 17604config_commands="$ac_config_commands" 17605 17606_ACEOF 17607 17608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17609ac_cs_usage="\ 17610\`$as_me' instantiates files and other configuration actions 17611from templates according to the current configuration. Unless the files 17612and actions are specified as TAGs, all are instantiated by default. 17613 17614Usage: $0 [OPTION]... [TAG]... 17615 17616 -h, --help print this help, then exit 17617 -V, --version print version number and configuration settings, then exit 17618 --config print configuration, then exit 17619 -q, --quiet, --silent 17620 do not print progress messages 17621 -d, --debug don't remove temporary files 17622 --recheck update $as_me by reconfiguring in the same conditions 17623 --file=FILE[:TEMPLATE] 17624 instantiate the configuration file FILE 17625 --header=FILE[:TEMPLATE] 17626 instantiate the configuration header FILE 17627 17628Configuration files: 17629$config_files 17630 17631Configuration headers: 17632$config_headers 17633 17634Configuration commands: 17635$config_commands 17636 17637Report bugs to <libsanitizer>." 17638 17639_ACEOF 17640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17641ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17642ac_cs_version="\\ 17643package-unused config.status version-unused 17644configured by $0, generated by GNU Autoconf 2.69, 17645 with options \\"\$ac_cs_config\\" 17646 17647Copyright (C) 2012 Free Software Foundation, Inc. 17648This config.status script is free software; the Free Software Foundation 17649gives unlimited permission to copy, distribute and modify it." 17650 17651ac_pwd='$ac_pwd' 17652srcdir='$srcdir' 17653INSTALL='$INSTALL' 17654MKDIR_P='$MKDIR_P' 17655AWK='$AWK' 17656test -n "\$AWK" || AWK=awk 17657_ACEOF 17658 17659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17660# The default lists apply if the user does not specify any file. 17661ac_need_defaults=: 17662while test $# != 0 17663do 17664 case $1 in 17665 --*=?*) 17666 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17667 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17668 ac_shift=: 17669 ;; 17670 --*=) 17671 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17672 ac_optarg= 17673 ac_shift=: 17674 ;; 17675 *) 17676 ac_option=$1 17677 ac_optarg=$2 17678 ac_shift=shift 17679 ;; 17680 esac 17681 17682 case $ac_option in 17683 # Handling of the options. 17684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17685 ac_cs_recheck=: ;; 17686 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17687 $as_echo "$ac_cs_version"; exit ;; 17688 --config | --confi | --conf | --con | --co | --c ) 17689 $as_echo "$ac_cs_config"; exit ;; 17690 --debug | --debu | --deb | --de | --d | -d ) 17691 debug=: ;; 17692 --file | --fil | --fi | --f ) 17693 $ac_shift 17694 case $ac_optarg in 17695 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17696 '') as_fn_error $? "missing file argument" ;; 17697 esac 17698 as_fn_append CONFIG_FILES " '$ac_optarg'" 17699 ac_need_defaults=false;; 17700 --header | --heade | --head | --hea ) 17701 $ac_shift 17702 case $ac_optarg in 17703 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17704 esac 17705 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17706 ac_need_defaults=false;; 17707 --he | --h) 17708 # Conflict between --help and --header 17709 as_fn_error $? "ambiguous option: \`$1' 17710Try \`$0 --help' for more information.";; 17711 --help | --hel | -h ) 17712 $as_echo "$ac_cs_usage"; exit ;; 17713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17714 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17715 ac_cs_silent=: ;; 17716 17717 # This is an error. 17718 -*) as_fn_error $? "unrecognized option: \`$1' 17719Try \`$0 --help' for more information." ;; 17720 17721 *) as_fn_append ac_config_targets " $1" 17722 ac_need_defaults=false ;; 17723 17724 esac 17725 shift 17726done 17727 17728ac_configure_extra_args= 17729 17730if $ac_cs_silent; then 17731 exec 6>/dev/null 17732 ac_configure_extra_args="$ac_configure_extra_args --silent" 17733fi 17734 17735_ACEOF 17736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17737if \$ac_cs_recheck; then 17738 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17739 shift 17740 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17741 CONFIG_SHELL='$SHELL' 17742 export CONFIG_SHELL 17743 exec "\$@" 17744fi 17745 17746_ACEOF 17747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17748exec 5>>config.log 17749{ 17750 echo 17751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17752## Running $as_me. ## 17753_ASBOX 17754 $as_echo "$ac_log" 17755} >&5 17756 17757_ACEOF 17758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17759# 17760# INIT-COMMANDS 17761# 17762 17763srcdir="$srcdir" 17764host="$host" 17765target="$target" 17766with_multisubdir="$with_multisubdir" 17767with_multisrctop="$with_multisrctop" 17768with_target_subdir="$with_target_subdir" 17769ac_configure_args="${multilib_arg} ${ac_configure_args}" 17770multi_basedir="$multi_basedir" 17771CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 17772CC="$CC" 17773CXX="$CXX" 17774GFORTRAN="$GFORTRAN" 17775GDC="$GDC" 17776AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17777 17778 17779# The HP-UX ksh and POSIX shell print the target directory to stdout 17780# if CDPATH is set. 17781(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17782 17783sed_quote_subst='$sed_quote_subst' 17784double_quote_subst='$double_quote_subst' 17785delay_variable_subst='$delay_variable_subst' 17786macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17787macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17788enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17789enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17790pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17791enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17792SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17793ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17794host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17795host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17796host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17797build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17798build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17799build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17800SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17801Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17802GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17803EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17804FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17805LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17806NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17807LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17808max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17809ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17810exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17811lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17812lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17813lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17814reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17815reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17816OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17817deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17818file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17819AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17820AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17821STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17822RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17823old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17824old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17825old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17826lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17827CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17828CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17829compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17830GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17831lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17832lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17833lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17834lt_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"`' 17835objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17836MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17837lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17838lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17839lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17840lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17841lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17842need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17843DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17844NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17845LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17846OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17847OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17848libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17849shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17850extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17851archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17852enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17853export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17854whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17855compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17856old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17857old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17858archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17859archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17860module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17861module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17862with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17863allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17864no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17865hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17866hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 17867hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17868hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17869hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17870hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17871hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17872hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17873inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17874link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17875fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 17876always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17877export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17878exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17879include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17880prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17881file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17882variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17883need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17884need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17885version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17886runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17887shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17888shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17889libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17890library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17891soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17892install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17893postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17894postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17895finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17896finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17897hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17898sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17899sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17900hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17901enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17902enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17903enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17904old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17905striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17906compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17907predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17908postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17909predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17910postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17911compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17912LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17913reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17914reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17915old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17916compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17917GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17918lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17919lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17920lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17921lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17922lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17923archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17924enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17925export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17926whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17927compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17928old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17929old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17930archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17931archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17932module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17933module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17934with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17935allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17936no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17937hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17938hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 17939hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17940hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17941hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17942hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17943hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17944hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17945inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17946link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17947fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 17948always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17949export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17950exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17951include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17952prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17953file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17954hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17955compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17956predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17957postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17958predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17959postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17960compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17961 17962LTCC='$LTCC' 17963LTCFLAGS='$LTCFLAGS' 17964compiler='$compiler_DEFAULT' 17965 17966# A function that is used when there is no print builtin or printf. 17967func_fallback_echo () 17968{ 17969 eval 'cat <<_LTECHO_EOF 17970\$1 17971_LTECHO_EOF' 17972} 17973 17974# Quote evaled strings. 17975for var in SHELL \ 17976ECHO \ 17977SED \ 17978GREP \ 17979EGREP \ 17980FGREP \ 17981LD \ 17982NM \ 17983LN_S \ 17984lt_SP2NL \ 17985lt_NL2SP \ 17986reload_flag \ 17987OBJDUMP \ 17988deplibs_check_method \ 17989file_magic_cmd \ 17990AR \ 17991AR_FLAGS \ 17992STRIP \ 17993RANLIB \ 17994CC \ 17995CFLAGS \ 17996compiler \ 17997lt_cv_sys_global_symbol_pipe \ 17998lt_cv_sys_global_symbol_to_cdecl \ 17999lt_cv_sys_global_symbol_to_c_name_address \ 18000lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18001lt_prog_compiler_no_builtin_flag \ 18002lt_prog_compiler_wl \ 18003lt_prog_compiler_pic \ 18004lt_prog_compiler_static \ 18005lt_cv_prog_compiler_c_o \ 18006need_locks \ 18007DSYMUTIL \ 18008NMEDIT \ 18009LIPO \ 18010OTOOL \ 18011OTOOL64 \ 18012shrext_cmds \ 18013export_dynamic_flag_spec \ 18014whole_archive_flag_spec \ 18015compiler_needs_object \ 18016with_gnu_ld \ 18017allow_undefined_flag \ 18018no_undefined_flag \ 18019hardcode_libdir_flag_spec \ 18020hardcode_libdir_flag_spec_ld \ 18021hardcode_libdir_separator \ 18022fix_srcfile_path \ 18023exclude_expsyms \ 18024include_expsyms \ 18025file_list_spec \ 18026variables_saved_for_relink \ 18027libname_spec \ 18028library_names_spec \ 18029soname_spec \ 18030install_override_mode \ 18031finish_eval \ 18032old_striplib \ 18033striplib \ 18034compiler_lib_search_dirs \ 18035predep_objects \ 18036postdep_objects \ 18037predeps \ 18038postdeps \ 18039compiler_lib_search_path \ 18040LD_CXX \ 18041reload_flag_CXX \ 18042compiler_CXX \ 18043lt_prog_compiler_no_builtin_flag_CXX \ 18044lt_prog_compiler_wl_CXX \ 18045lt_prog_compiler_pic_CXX \ 18046lt_prog_compiler_static_CXX \ 18047lt_cv_prog_compiler_c_o_CXX \ 18048export_dynamic_flag_spec_CXX \ 18049whole_archive_flag_spec_CXX \ 18050compiler_needs_object_CXX \ 18051with_gnu_ld_CXX \ 18052allow_undefined_flag_CXX \ 18053no_undefined_flag_CXX \ 18054hardcode_libdir_flag_spec_CXX \ 18055hardcode_libdir_flag_spec_ld_CXX \ 18056hardcode_libdir_separator_CXX \ 18057fix_srcfile_path_CXX \ 18058exclude_expsyms_CXX \ 18059include_expsyms_CXX \ 18060file_list_spec_CXX \ 18061compiler_lib_search_dirs_CXX \ 18062predep_objects_CXX \ 18063postdep_objects_CXX \ 18064predeps_CXX \ 18065postdeps_CXX \ 18066compiler_lib_search_path_CXX; do 18067 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18068 *[\\\\\\\`\\"\\\$]*) 18069 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18070 ;; 18071 *) 18072 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18073 ;; 18074 esac 18075done 18076 18077# Double-quote double-evaled strings. 18078for var in reload_cmds \ 18079old_postinstall_cmds \ 18080old_postuninstall_cmds \ 18081old_archive_cmds \ 18082extract_expsyms_cmds \ 18083old_archive_from_new_cmds \ 18084old_archive_from_expsyms_cmds \ 18085archive_cmds \ 18086archive_expsym_cmds \ 18087module_cmds \ 18088module_expsym_cmds \ 18089export_symbols_cmds \ 18090prelink_cmds \ 18091postinstall_cmds \ 18092postuninstall_cmds \ 18093finish_cmds \ 18094sys_lib_search_path_spec \ 18095sys_lib_dlsearch_path_spec \ 18096reload_cmds_CXX \ 18097old_archive_cmds_CXX \ 18098old_archive_from_new_cmds_CXX \ 18099old_archive_from_expsyms_cmds_CXX \ 18100archive_cmds_CXX \ 18101archive_expsym_cmds_CXX \ 18102module_cmds_CXX \ 18103module_expsym_cmds_CXX \ 18104export_symbols_cmds_CXX \ 18105prelink_cmds_CXX; do 18106 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18107 *[\\\\\\\`\\"\\\$]*) 18108 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18109 ;; 18110 *) 18111 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18112 ;; 18113 esac 18114done 18115 18116ac_aux_dir='$ac_aux_dir' 18117xsi_shell='$xsi_shell' 18118lt_shell_append='$lt_shell_append' 18119 18120# See if we are running on zsh, and set the options which allow our 18121# commands through without removal of \ escapes INIT. 18122if test -n "\${ZSH_VERSION+set}" ; then 18123 setopt NO_GLOB_SUBST 18124fi 18125 18126 18127 PACKAGE='$PACKAGE' 18128 VERSION='$VERSION' 18129 TIMESTAMP='$TIMESTAMP' 18130 RM='$RM' 18131 ofile='$ofile' 18132 18133 18134 18135 18136 18137 18138GCC="$GCC" 18139CC="$CC" 18140acx_cv_header_stdint="$acx_cv_header_stdint" 18141acx_cv_type_int8_t="$acx_cv_type_int8_t" 18142acx_cv_type_int16_t="$acx_cv_type_int16_t" 18143acx_cv_type_int32_t="$acx_cv_type_int32_t" 18144acx_cv_type_int64_t="$acx_cv_type_int64_t" 18145acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 18146ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 18147ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 18148ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 18149ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 18150ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 18151ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 18152ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 18153ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 18154 18155 18156_ACEOF 18157 18158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18159 18160# Handling of arguments. 18161for ac_config_target in $ac_config_targets 18162do 18163 case $ac_config_target in 18164 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18165 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18166 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18167 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; 18168 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18169 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;; 18170 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;; 18171 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18172 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;; 18173 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;; 18174 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;; 18175 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;; 18176 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;; 18177 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;; 18178 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;; 18179 "hwasan/Makefile") CONFIG_FILES="$CONFIG_FILES hwasan/Makefile" ;; 18180 18181 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18182 esac 18183done 18184 18185 18186# If the user did not use the arguments to specify the items to instantiate, 18187# then the envvar interface is used. Set only those that are not. 18188# We use the long form for the default assignment because of an extremely 18189# bizarre bug on SunOS 4.1.3. 18190if $ac_need_defaults; then 18191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18194fi 18195 18196# Have a temporary directory for convenience. Make it in the build tree 18197# simply because there is no reason against having it here, and in addition, 18198# creating and moving files from /tmp can sometimes cause problems. 18199# Hook for its removal unless debugging. 18200# Note that there is a small window in which the directory will not be cleaned: 18201# after its creation but before its name has been assigned to `$tmp'. 18202$debug || 18203{ 18204 tmp= ac_tmp= 18205 trap 'exit_status=$? 18206 : "${ac_tmp:=$tmp}" 18207 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18208' 0 18209 trap 'as_fn_exit 1' 1 2 13 15 18210} 18211# Create a (secure) tmp directory for tmp files. 18212 18213{ 18214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18215 test -d "$tmp" 18216} || 18217{ 18218 tmp=./conf$$-$RANDOM 18219 (umask 077 && mkdir "$tmp") 18220} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18221ac_tmp=$tmp 18222 18223# Set up the scripts for CONFIG_FILES section. 18224# No need to generate them if there are no CONFIG_FILES. 18225# This happens for instance with `./config.status config.h'. 18226if test -n "$CONFIG_FILES"; then 18227 18228 18229ac_cr=`echo X | tr X '\015'` 18230# On cygwin, bash can eat \r inside `` if the user requested igncr. 18231# But we know of no other shell where ac_cr would be empty at this 18232# point, so we can use a bashism as a fallback. 18233if test "x$ac_cr" = x; then 18234 eval ac_cr=\$\'\\r\' 18235fi 18236ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18237if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18238 ac_cs_awk_cr='\\r' 18239else 18240 ac_cs_awk_cr=$ac_cr 18241fi 18242 18243echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18244_ACEOF 18245 18246 18247{ 18248 echo "cat >conf$$subs.awk <<_ACEOF" && 18249 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18250 echo "_ACEOF" 18251} >conf$$subs.sh || 18252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18253ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18254ac_delim='%!_!# ' 18255for ac_last_try in false false false false false :; do 18256 . ./conf$$subs.sh || 18257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18258 18259 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18260 if test $ac_delim_n = $ac_delim_num; then 18261 break 18262 elif $ac_last_try; then 18263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18264 else 18265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18266 fi 18267done 18268rm -f conf$$subs.sh 18269 18270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18271cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18272_ACEOF 18273sed -n ' 18274h 18275s/^/S["/; s/!.*/"]=/ 18276p 18277g 18278s/^[^!]*!// 18279:repl 18280t repl 18281s/'"$ac_delim"'$// 18282t delim 18283:nl 18284h 18285s/\(.\{148\}\)..*/\1/ 18286t more1 18287s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18288p 18289n 18290b repl 18291:more1 18292s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18293p 18294g 18295s/.\{148\}// 18296t nl 18297:delim 18298h 18299s/\(.\{148\}\)..*/\1/ 18300t more2 18301s/["\\]/\\&/g; s/^/"/; s/$/"/ 18302p 18303b 18304:more2 18305s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18306p 18307g 18308s/.\{148\}// 18309t delim 18310' <conf$$subs.awk | sed ' 18311/^[^""]/{ 18312 N 18313 s/\n// 18314} 18315' >>$CONFIG_STATUS || ac_write_fail=1 18316rm -f conf$$subs.awk 18317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18318_ACAWK 18319cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18320 for (key in S) S_is_set[key] = 1 18321 FS = "" 18322 18323} 18324{ 18325 line = $ 0 18326 nfields = split(line, field, "@") 18327 substed = 0 18328 len = length(field[1]) 18329 for (i = 2; i < nfields; i++) { 18330 key = field[i] 18331 keylen = length(key) 18332 if (S_is_set[key]) { 18333 value = S[key] 18334 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18335 len += length(value) + length(field[++i]) 18336 substed = 1 18337 } else 18338 len += 1 + keylen 18339 } 18340 18341 print line 18342} 18343 18344_ACAWK 18345_ACEOF 18346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18347if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18348 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18349else 18350 cat 18351fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18352 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18353_ACEOF 18354 18355# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18356# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18357# trailing colons and then remove the whole line if VPATH becomes empty 18358# (actually we leave an empty line to preserve line numbers). 18359if test "x$srcdir" = x.; then 18360 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18361h 18362s/// 18363s/^/:/ 18364s/[ ]*$/:/ 18365s/:\$(srcdir):/:/g 18366s/:\${srcdir}:/:/g 18367s/:@srcdir@:/:/g 18368s/^:*// 18369s/:*$// 18370x 18371s/\(=[ ]*\).*/\1/ 18372G 18373s/\n// 18374s/^[^=]*=[ ]*$// 18375}' 18376fi 18377 18378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18379fi # test -n "$CONFIG_FILES" 18380 18381# Set up the scripts for CONFIG_HEADERS section. 18382# No need to generate them if there are no CONFIG_HEADERS. 18383# This happens for instance with `./config.status Makefile'. 18384if test -n "$CONFIG_HEADERS"; then 18385cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18386BEGIN { 18387_ACEOF 18388 18389# Transform confdefs.h into an awk script `defines.awk', embedded as 18390# here-document in config.status, that substitutes the proper values into 18391# config.h.in to produce config.h. 18392 18393# Create a delimiter string that does not exist in confdefs.h, to ease 18394# handling of long lines. 18395ac_delim='%!_!# ' 18396for ac_last_try in false false :; do 18397 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18398 if test -z "$ac_tt"; then 18399 break 18400 elif $ac_last_try; then 18401 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18402 else 18403 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18404 fi 18405done 18406 18407# For the awk script, D is an array of macro values keyed by name, 18408# likewise P contains macro parameters if any. Preserve backslash 18409# newline sequences. 18410 18411ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18412sed -n ' 18413s/.\{148\}/&'"$ac_delim"'/g 18414t rset 18415:rset 18416s/^[ ]*#[ ]*define[ ][ ]*/ / 18417t def 18418d 18419:def 18420s/\\$// 18421t bsnl 18422s/["\\]/\\&/g 18423s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18424D["\1"]=" \3"/p 18425s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18426d 18427:bsnl 18428s/["\\]/\\&/g 18429s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18430D["\1"]=" \3\\\\\\n"\\/p 18431t cont 18432s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18433t cont 18434d 18435:cont 18436n 18437s/.\{148\}/&'"$ac_delim"'/g 18438t clear 18439:clear 18440s/\\$// 18441t bsnlc 18442s/["\\]/\\&/g; s/^/"/; s/$/"/p 18443d 18444:bsnlc 18445s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18446b cont 18447' <confdefs.h | sed ' 18448s/'"$ac_delim"'/"\\\ 18449"/g' >>$CONFIG_STATUS || ac_write_fail=1 18450 18451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18452 for (key in D) D_is_set[key] = 1 18453 FS = "" 18454} 18455/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18456 line = \$ 0 18457 split(line, arg, " ") 18458 if (arg[1] == "#") { 18459 defundef = arg[2] 18460 mac1 = arg[3] 18461 } else { 18462 defundef = substr(arg[1], 2) 18463 mac1 = arg[2] 18464 } 18465 split(mac1, mac2, "(") #) 18466 macro = mac2[1] 18467 prefix = substr(line, 1, index(line, defundef) - 1) 18468 if (D_is_set[macro]) { 18469 # Preserve the white space surrounding the "#". 18470 print prefix "define", macro P[macro] D[macro] 18471 next 18472 } else { 18473 # Replace #undef with comments. This is necessary, for example, 18474 # in the case of _POSIX_SOURCE, which is predefined and required 18475 # on some systems where configure will not decide to define it. 18476 if (defundef == "undef") { 18477 print "/*", prefix defundef, macro, "*/" 18478 next 18479 } 18480 } 18481} 18482{ print } 18483_ACAWK 18484_ACEOF 18485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18486 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18487fi # test -n "$CONFIG_HEADERS" 18488 18489 18490eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18491shift 18492for ac_tag 18493do 18494 case $ac_tag in 18495 :[FHLC]) ac_mode=$ac_tag; continue;; 18496 esac 18497 case $ac_mode$ac_tag in 18498 :[FHL]*:*);; 18499 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18500 :[FH]-) ac_tag=-:-;; 18501 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18502 esac 18503 ac_save_IFS=$IFS 18504 IFS=: 18505 set x $ac_tag 18506 IFS=$ac_save_IFS 18507 shift 18508 ac_file=$1 18509 shift 18510 18511 case $ac_mode in 18512 :L) ac_source=$1;; 18513 :[FH]) 18514 ac_file_inputs= 18515 for ac_f 18516 do 18517 case $ac_f in 18518 -) ac_f="$ac_tmp/stdin";; 18519 *) # Look for the file first in the build tree, then in the source tree 18520 # (if the path is not absolute). The absolute path cannot be DOS-style, 18521 # because $ac_f cannot contain `:'. 18522 test -f "$ac_f" || 18523 case $ac_f in 18524 [\\/$]*) false;; 18525 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18526 esac || 18527 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18528 esac 18529 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18530 as_fn_append ac_file_inputs " '$ac_f'" 18531 done 18532 18533 # Let's still pretend it is `configure' which instantiates (i.e., don't 18534 # use $as_me), people would be surprised to read: 18535 # /* config.h. Generated by config.status. */ 18536 configure_input='Generated from '` 18537 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18538 `' by configure.' 18539 if test x"$ac_file" != x-; then 18540 configure_input="$ac_file. $configure_input" 18541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18542$as_echo "$as_me: creating $ac_file" >&6;} 18543 fi 18544 # Neutralize special characters interpreted by sed in replacement strings. 18545 case $configure_input in #( 18546 *\&* | *\|* | *\\* ) 18547 ac_sed_conf_input=`$as_echo "$configure_input" | 18548 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18549 *) ac_sed_conf_input=$configure_input;; 18550 esac 18551 18552 case $ac_tag in 18553 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18555 esac 18556 ;; 18557 esac 18558 18559 ac_dir=`$as_dirname -- "$ac_file" || 18560$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18561 X"$ac_file" : 'X\(//\)[^/]' \| \ 18562 X"$ac_file" : 'X\(//\)$' \| \ 18563 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18564$as_echo X"$ac_file" | 18565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18566 s//\1/ 18567 q 18568 } 18569 /^X\(\/\/\)[^/].*/{ 18570 s//\1/ 18571 q 18572 } 18573 /^X\(\/\/\)$/{ 18574 s//\1/ 18575 q 18576 } 18577 /^X\(\/\).*/{ 18578 s//\1/ 18579 q 18580 } 18581 s/.*/./; q'` 18582 as_dir="$ac_dir"; as_fn_mkdir_p 18583 ac_builddir=. 18584 18585case "$ac_dir" in 18586.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18587*) 18588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18589 # A ".." for each directory in $ac_dir_suffix. 18590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18591 case $ac_top_builddir_sub in 18592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18594 esac ;; 18595esac 18596ac_abs_top_builddir=$ac_pwd 18597ac_abs_builddir=$ac_pwd$ac_dir_suffix 18598# for backward compatibility: 18599ac_top_builddir=$ac_top_build_prefix 18600 18601case $srcdir in 18602 .) # We are building in place. 18603 ac_srcdir=. 18604 ac_top_srcdir=$ac_top_builddir_sub 18605 ac_abs_top_srcdir=$ac_pwd ;; 18606 [\\/]* | ?:[\\/]* ) # Absolute name. 18607 ac_srcdir=$srcdir$ac_dir_suffix; 18608 ac_top_srcdir=$srcdir 18609 ac_abs_top_srcdir=$srcdir ;; 18610 *) # Relative name. 18611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18612 ac_top_srcdir=$ac_top_build_prefix$srcdir 18613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18614esac 18615ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18616 18617 18618 case $ac_mode in 18619 :F) 18620 # 18621 # CONFIG_FILE 18622 # 18623 18624 case $INSTALL in 18625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18626 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18627 esac 18628 ac_MKDIR_P=$MKDIR_P 18629 case $MKDIR_P in 18630 [\\/$]* | ?:[\\/]* ) ;; 18631 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18632 esac 18633_ACEOF 18634 18635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18636# If the template does not know about datarootdir, expand it. 18637# FIXME: This hack should be removed a few years after 2.60. 18638ac_datarootdir_hack=; ac_datarootdir_seen= 18639ac_sed_dataroot=' 18640/datarootdir/ { 18641 p 18642 q 18643} 18644/@datadir@/p 18645/@docdir@/p 18646/@infodir@/p 18647/@localedir@/p 18648/@mandir@/p' 18649case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18650*datarootdir*) ac_datarootdir_seen=yes;; 18651*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18653$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18654_ACEOF 18655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18656 ac_datarootdir_hack=' 18657 s&@datadir@&$datadir&g 18658 s&@docdir@&$docdir&g 18659 s&@infodir@&$infodir&g 18660 s&@localedir@&$localedir&g 18661 s&@mandir@&$mandir&g 18662 s&\\\${datarootdir}&$datarootdir&g' ;; 18663esac 18664_ACEOF 18665 18666# Neutralize VPATH when `$srcdir' = `.'. 18667# Shell code in configure.ac might set extrasub. 18668# FIXME: do we really want to maintain this feature? 18669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18670ac_sed_extra="$ac_vpsub 18671$extrasub 18672_ACEOF 18673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18674:t 18675/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18676s|@configure_input@|$ac_sed_conf_input|;t t 18677s&@top_builddir@&$ac_top_builddir_sub&;t t 18678s&@top_build_prefix@&$ac_top_build_prefix&;t t 18679s&@srcdir@&$ac_srcdir&;t t 18680s&@abs_srcdir@&$ac_abs_srcdir&;t t 18681s&@top_srcdir@&$ac_top_srcdir&;t t 18682s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18683s&@builddir@&$ac_builddir&;t t 18684s&@abs_builddir@&$ac_abs_builddir&;t t 18685s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18686s&@INSTALL@&$ac_INSTALL&;t t 18687s&@MKDIR_P@&$ac_MKDIR_P&;t t 18688$ac_datarootdir_hack 18689" 18690eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18691 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18692 18693test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18694 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18695 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18696 "$ac_tmp/out"`; test -z "$ac_out"; } && 18697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18698which seems to be undefined. Please make sure it is defined" >&5 18699$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18700which seems to be undefined. Please make sure it is defined" >&2;} 18701 18702 rm -f "$ac_tmp/stdin" 18703 case $ac_file in 18704 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18705 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18706 esac \ 18707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18708 ;; 18709 :H) 18710 # 18711 # CONFIG_HEADER 18712 # 18713 if test x"$ac_file" != x-; then 18714 { 18715 $as_echo "/* $configure_input */" \ 18716 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18717 } >"$ac_tmp/config.h" \ 18718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18719 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18721$as_echo "$as_me: $ac_file is unchanged" >&6;} 18722 else 18723 rm -f "$ac_file" 18724 mv "$ac_tmp/config.h" "$ac_file" \ 18725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18726 fi 18727 else 18728 $as_echo "/* $configure_input */" \ 18729 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18730 || as_fn_error $? "could not create -" "$LINENO" 5 18731 fi 18732# Compute "$ac_file"'s index in $config_headers. 18733_am_arg="$ac_file" 18734_am_stamp_count=1 18735for _am_header in $config_headers :; do 18736 case $_am_header in 18737 $_am_arg | $_am_arg:* ) 18738 break ;; 18739 * ) 18740 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18741 esac 18742done 18743echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18744$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18745 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18746 X"$_am_arg" : 'X\(//\)$' \| \ 18747 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18748$as_echo X"$_am_arg" | 18749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18750 s//\1/ 18751 q 18752 } 18753 /^X\(\/\/\)[^/].*/{ 18754 s//\1/ 18755 q 18756 } 18757 /^X\(\/\/\)$/{ 18758 s//\1/ 18759 q 18760 } 18761 /^X\(\/\).*/{ 18762 s//\1/ 18763 q 18764 } 18765 s/.*/./; q'`/stamp-h$_am_stamp_count 18766 ;; 18767 18768 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18769$as_echo "$as_me: executing $ac_file commands" >&6;} 18770 ;; 18771 esac 18772 18773 18774 case $ac_file$ac_mode in 18775 "default-1":C) 18776# Only add multilib support code if we just rebuilt the top-level 18777# Makefile. 18778case " $CONFIG_FILES " in 18779 *" Makefile "*) 18780 ac_file=Makefile . ${multi_basedir}/config-ml.in 18781 ;; 18782esac ;; 18783 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18784 # Older Autoconf quotes --file arguments for eval, but not when files 18785 # are listed without --file. Let's play safe and only enable the eval 18786 # if we detect the quoting. 18787 case $CONFIG_FILES in 18788 *\'*) eval set x "$CONFIG_FILES" ;; 18789 *) set x $CONFIG_FILES ;; 18790 esac 18791 shift 18792 for mf 18793 do 18794 # Strip MF so we end up with the name of the file. 18795 mf=`echo "$mf" | sed -e 's/:.*$//'` 18796 # Check whether this is an Automake generated Makefile or not. 18797 # We used to match only the files named 'Makefile.in', but 18798 # some people rename them; so instead we look at the file content. 18799 # Grep'ing the first line is not enough: some people post-process 18800 # each Makefile.in and add a new line on top of each file to say so. 18801 # Grep'ing the whole file is not good either: AIX grep has a line 18802 # limit of 2048, but all sed's we know have understand at least 4000. 18803 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18804 dirpart=`$as_dirname -- "$mf" || 18805$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18806 X"$mf" : 'X\(//\)[^/]' \| \ 18807 X"$mf" : 'X\(//\)$' \| \ 18808 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18809$as_echo X"$mf" | 18810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18811 s//\1/ 18812 q 18813 } 18814 /^X\(\/\/\)[^/].*/{ 18815 s//\1/ 18816 q 18817 } 18818 /^X\(\/\/\)$/{ 18819 s//\1/ 18820 q 18821 } 18822 /^X\(\/\).*/{ 18823 s//\1/ 18824 q 18825 } 18826 s/.*/./; q'` 18827 else 18828 continue 18829 fi 18830 # Extract the definition of DEPDIR, am__include, and am__quote 18831 # from the Makefile without running 'make'. 18832 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18833 test -z "$DEPDIR" && continue 18834 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18835 test -z "$am__include" && continue 18836 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18837 # Find all dependency output files, they are included files with 18838 # $(DEPDIR) in their names. We invoke sed twice because it is the 18839 # simplest approach to changing $(DEPDIR) to its actual value in the 18840 # expansion. 18841 for file in `sed -n " 18842 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18843 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18844 # Make sure the directory exists. 18845 test -f "$dirpart/$file" && continue 18846 fdir=`$as_dirname -- "$file" || 18847$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18848 X"$file" : 'X\(//\)[^/]' \| \ 18849 X"$file" : 'X\(//\)$' \| \ 18850 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18851$as_echo X"$file" | 18852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18853 s//\1/ 18854 q 18855 } 18856 /^X\(\/\/\)[^/].*/{ 18857 s//\1/ 18858 q 18859 } 18860 /^X\(\/\/\)$/{ 18861 s//\1/ 18862 q 18863 } 18864 /^X\(\/\).*/{ 18865 s//\1/ 18866 q 18867 } 18868 s/.*/./; q'` 18869 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18870 # echo "creating $dirpart/$file" 18871 echo '# dummy' > "$dirpart/$file" 18872 done 18873 done 18874} 18875 ;; 18876 "libtool":C) 18877 18878 # See if we are running on zsh, and set the options which allow our 18879 # commands through without removal of \ escapes. 18880 if test -n "${ZSH_VERSION+set}" ; then 18881 setopt NO_GLOB_SUBST 18882 fi 18883 18884 cfgfile="${ofile}T" 18885 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18886 $RM "$cfgfile" 18887 18888 cat <<_LT_EOF >> "$cfgfile" 18889#! $SHELL 18890 18891# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18892# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18893# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18894# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18895# 18896# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18897# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 18898# Written by Gordon Matzigkeit, 1996 18899# 18900# This file is part of GNU Libtool. 18901# 18902# GNU Libtool is free software; you can redistribute it and/or 18903# modify it under the terms of the GNU General Public License as 18904# published by the Free Software Foundation; either version 2 of 18905# the License, or (at your option) any later version. 18906# 18907# As a special exception to the GNU General Public License, 18908# if you distribute this file as part of a program or library that 18909# is built using GNU Libtool, you may include this file under the 18910# same distribution terms that you use for the rest of that program. 18911# 18912# GNU Libtool is distributed in the hope that it will be useful, 18913# but WITHOUT ANY WARRANTY; without even the implied warranty of 18914# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18915# GNU General Public License for more details. 18916# 18917# You should have received a copy of the GNU General Public License 18918# along with GNU Libtool; see the file COPYING. If not, a copy 18919# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18920# obtained by writing to the Free Software Foundation, Inc., 18921# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18922 18923 18924# The names of the tagged configurations supported by this script. 18925available_tags="CXX " 18926 18927# ### BEGIN LIBTOOL CONFIG 18928 18929# Which release of libtool.m4 was used? 18930macro_version=$macro_version 18931macro_revision=$macro_revision 18932 18933# Whether or not to build shared libraries. 18934build_libtool_libs=$enable_shared 18935 18936# Whether or not to build static libraries. 18937build_old_libs=$enable_static 18938 18939# What type of objects to build. 18940pic_mode=$pic_mode 18941 18942# Whether or not to optimize for fast installation. 18943fast_install=$enable_fast_install 18944 18945# Shell to use when invoking shell scripts. 18946SHELL=$lt_SHELL 18947 18948# An echo program that protects backslashes. 18949ECHO=$lt_ECHO 18950 18951# The host system. 18952host_alias=$host_alias 18953host=$host 18954host_os=$host_os 18955 18956# The build system. 18957build_alias=$build_alias 18958build=$build 18959build_os=$build_os 18960 18961# A sed program that does not truncate output. 18962SED=$lt_SED 18963 18964# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18965Xsed="\$SED -e 1s/^X//" 18966 18967# A grep program that handles long lines. 18968GREP=$lt_GREP 18969 18970# An ERE matcher. 18971EGREP=$lt_EGREP 18972 18973# A literal string matcher. 18974FGREP=$lt_FGREP 18975 18976# A BSD- or MS-compatible name lister. 18977NM=$lt_NM 18978 18979# Whether we need soft or hard links. 18980LN_S=$lt_LN_S 18981 18982# What is the maximum length of a command? 18983max_cmd_len=$max_cmd_len 18984 18985# Object file suffix (normally "o"). 18986objext=$ac_objext 18987 18988# Executable file suffix (normally ""). 18989exeext=$exeext 18990 18991# whether the shell understands "unset". 18992lt_unset=$lt_unset 18993 18994# turn spaces into newlines. 18995SP2NL=$lt_lt_SP2NL 18996 18997# turn newlines into spaces. 18998NL2SP=$lt_lt_NL2SP 18999 19000# An object symbol dumper. 19001OBJDUMP=$lt_OBJDUMP 19002 19003# Method to check whether dependent libraries are shared objects. 19004deplibs_check_method=$lt_deplibs_check_method 19005 19006# Command to use when deplibs_check_method == "file_magic". 19007file_magic_cmd=$lt_file_magic_cmd 19008 19009# The archiver. 19010AR=$lt_AR 19011AR_FLAGS=$lt_AR_FLAGS 19012 19013# A symbol stripping program. 19014STRIP=$lt_STRIP 19015 19016# Commands used to install an old-style archive. 19017RANLIB=$lt_RANLIB 19018old_postinstall_cmds=$lt_old_postinstall_cmds 19019old_postuninstall_cmds=$lt_old_postuninstall_cmds 19020 19021# Whether to use a lock for old archive extraction. 19022lock_old_archive_extraction=$lock_old_archive_extraction 19023 19024# A C compiler. 19025LTCC=$lt_CC 19026 19027# LTCC compiler flags. 19028LTCFLAGS=$lt_CFLAGS 19029 19030# Take the output of nm and produce a listing of raw symbols and C names. 19031global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19032 19033# Transform the output of nm in a proper C declaration. 19034global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19035 19036# Transform the output of nm in a C name address pair. 19037global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19038 19039# Transform the output of nm in a C name address pair when lib prefix is needed. 19040global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19041 19042# The name of the directory that contains temporary libtool files. 19043objdir=$objdir 19044 19045# Used to examine libraries when file_magic_cmd begins with "file". 19046MAGIC_CMD=$MAGIC_CMD 19047 19048# Must we lock files when doing compilation? 19049need_locks=$lt_need_locks 19050 19051# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19052DSYMUTIL=$lt_DSYMUTIL 19053 19054# Tool to change global to local symbols on Mac OS X. 19055NMEDIT=$lt_NMEDIT 19056 19057# Tool to manipulate fat objects and archives on Mac OS X. 19058LIPO=$lt_LIPO 19059 19060# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19061OTOOL=$lt_OTOOL 19062 19063# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19064OTOOL64=$lt_OTOOL64 19065 19066# Old archive suffix (normally "a"). 19067libext=$libext 19068 19069# Shared library suffix (normally ".so"). 19070shrext_cmds=$lt_shrext_cmds 19071 19072# The commands to extract the exported symbol list from a shared archive. 19073extract_expsyms_cmds=$lt_extract_expsyms_cmds 19074 19075# Variables whose values should be saved in libtool wrapper scripts and 19076# restored at link time. 19077variables_saved_for_relink=$lt_variables_saved_for_relink 19078 19079# Do we need the "lib" prefix for modules? 19080need_lib_prefix=$need_lib_prefix 19081 19082# Do we need a version for libraries? 19083need_version=$need_version 19084 19085# Library versioning type. 19086version_type=$version_type 19087 19088# Shared library runtime path variable. 19089runpath_var=$runpath_var 19090 19091# Shared library path variable. 19092shlibpath_var=$shlibpath_var 19093 19094# Is shlibpath searched before the hard-coded library search path? 19095shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19096 19097# Format of library name prefix. 19098libname_spec=$lt_libname_spec 19099 19100# List of archive names. First name is the real one, the rest are links. 19101# The last name is the one that the linker finds with -lNAME 19102library_names_spec=$lt_library_names_spec 19103 19104# The coded name of the library, if different from the real name. 19105soname_spec=$lt_soname_spec 19106 19107# Permission mode override for installation of shared libraries. 19108install_override_mode=$lt_install_override_mode 19109 19110# Command to use after installation of a shared archive. 19111postinstall_cmds=$lt_postinstall_cmds 19112 19113# Command to use after uninstallation of a shared archive. 19114postuninstall_cmds=$lt_postuninstall_cmds 19115 19116# Commands used to finish a libtool library installation in a directory. 19117finish_cmds=$lt_finish_cmds 19118 19119# As "finish_cmds", except a single script fragment to be evaled but 19120# not shown. 19121finish_eval=$lt_finish_eval 19122 19123# Whether we should hardcode library paths into libraries. 19124hardcode_into_libs=$hardcode_into_libs 19125 19126# Compile-time system search path for libraries. 19127sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19128 19129# Run-time system search path for libraries. 19130sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19131 19132# Whether dlopen is supported. 19133dlopen_support=$enable_dlopen 19134 19135# Whether dlopen of programs is supported. 19136dlopen_self=$enable_dlopen_self 19137 19138# Whether dlopen of statically linked programs is supported. 19139dlopen_self_static=$enable_dlopen_self_static 19140 19141# Commands to strip libraries. 19142old_striplib=$lt_old_striplib 19143striplib=$lt_striplib 19144 19145 19146# The linker used to build libraries. 19147LD=$lt_LD 19148 19149# How to create reloadable object files. 19150reload_flag=$lt_reload_flag 19151reload_cmds=$lt_reload_cmds 19152 19153# Commands used to build an old-style archive. 19154old_archive_cmds=$lt_old_archive_cmds 19155 19156# A language specific compiler. 19157CC=$lt_compiler 19158 19159# Is the compiler the GNU compiler? 19160with_gcc=$GCC 19161 19162# Compiler flag to turn off builtin functions. 19163no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19164 19165# How to pass a linker flag through the compiler. 19166wl=$lt_lt_prog_compiler_wl 19167 19168# Additional compiler flags for building library objects. 19169pic_flag=$lt_lt_prog_compiler_pic 19170 19171# Compiler flag to prevent dynamic linking. 19172link_static_flag=$lt_lt_prog_compiler_static 19173 19174# Does compiler simultaneously support -c and -o options? 19175compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19176 19177# Whether or not to add -lc for building shared libraries. 19178build_libtool_need_lc=$archive_cmds_need_lc 19179 19180# Whether or not to disallow shared libs when runtime libs are static. 19181allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19182 19183# Compiler flag to allow reflexive dlopens. 19184export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19185 19186# Compiler flag to generate shared objects directly from archives. 19187whole_archive_flag_spec=$lt_whole_archive_flag_spec 19188 19189# Whether the compiler copes with passing no objects directly. 19190compiler_needs_object=$lt_compiler_needs_object 19191 19192# Create an old-style archive from a shared archive. 19193old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19194 19195# Create a temporary old-style archive to link instead of a shared archive. 19196old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19197 19198# Commands used to build a shared archive. 19199archive_cmds=$lt_archive_cmds 19200archive_expsym_cmds=$lt_archive_expsym_cmds 19201 19202# Commands used to build a loadable module if different from building 19203# a shared archive. 19204module_cmds=$lt_module_cmds 19205module_expsym_cmds=$lt_module_expsym_cmds 19206 19207# Whether we are building with GNU ld or not. 19208with_gnu_ld=$lt_with_gnu_ld 19209 19210# Flag that allows shared libraries with undefined symbols to be built. 19211allow_undefined_flag=$lt_allow_undefined_flag 19212 19213# Flag that enforces no undefined symbols. 19214no_undefined_flag=$lt_no_undefined_flag 19215 19216# Flag to hardcode \$libdir into a binary during linking. 19217# This must work even if \$libdir does not exist 19218hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19219 19220# If ld is used when linking, flag to hardcode \$libdir into a binary 19221# during linking. This must work even if \$libdir does not exist. 19222hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19223 19224# Whether we need a single "-rpath" flag with a separated argument. 19225hardcode_libdir_separator=$lt_hardcode_libdir_separator 19226 19227# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19228# DIR into the resulting binary. 19229hardcode_direct=$hardcode_direct 19230 19231# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19232# DIR into the resulting binary and the resulting library dependency is 19233# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19234# library is relocated. 19235hardcode_direct_absolute=$hardcode_direct_absolute 19236 19237# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19238# into the resulting binary. 19239hardcode_minus_L=$hardcode_minus_L 19240 19241# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19242# into the resulting binary. 19243hardcode_shlibpath_var=$hardcode_shlibpath_var 19244 19245# Set to "yes" if building a shared library automatically hardcodes DIR 19246# into the library and all subsequent libraries and executables linked 19247# against it. 19248hardcode_automatic=$hardcode_automatic 19249 19250# Set to yes if linker adds runtime paths of dependent libraries 19251# to runtime path list. 19252inherit_rpath=$inherit_rpath 19253 19254# Whether libtool must link a program against all its dependency libraries. 19255link_all_deplibs=$link_all_deplibs 19256 19257# Fix the shell variable \$srcfile for the compiler. 19258fix_srcfile_path=$lt_fix_srcfile_path 19259 19260# Set to "yes" if exported symbols are required. 19261always_export_symbols=$always_export_symbols 19262 19263# The commands to list exported symbols. 19264export_symbols_cmds=$lt_export_symbols_cmds 19265 19266# Symbols that should not be listed in the preloaded symbols. 19267exclude_expsyms=$lt_exclude_expsyms 19268 19269# Symbols that must always be exported. 19270include_expsyms=$lt_include_expsyms 19271 19272# Commands necessary for linking programs (against libraries) with templates. 19273prelink_cmds=$lt_prelink_cmds 19274 19275# Specify filename containing input files. 19276file_list_spec=$lt_file_list_spec 19277 19278# How to hardcode a shared library path into an executable. 19279hardcode_action=$hardcode_action 19280 19281# The directories searched by this compiler when creating a shared library. 19282compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19283 19284# Dependencies to place before and after the objects being linked to 19285# create a shared library. 19286predep_objects=$lt_predep_objects 19287postdep_objects=$lt_postdep_objects 19288predeps=$lt_predeps 19289postdeps=$lt_postdeps 19290 19291# The library search path used internally by the compiler when linking 19292# a shared library. 19293compiler_lib_search_path=$lt_compiler_lib_search_path 19294 19295# ### END LIBTOOL CONFIG 19296 19297_LT_EOF 19298 19299 case $host_os in 19300 aix3*) 19301 cat <<\_LT_EOF >> "$cfgfile" 19302# AIX sometimes has problems with the GCC collect2 program. For some 19303# reason, if we set the COLLECT_NAMES environment variable, the problems 19304# vanish in a puff of smoke. 19305if test "X${COLLECT_NAMES+set}" != Xset; then 19306 COLLECT_NAMES= 19307 export COLLECT_NAMES 19308fi 19309_LT_EOF 19310 ;; 19311 esac 19312 19313 19314ltmain="$ac_aux_dir/ltmain.sh" 19315 19316 19317 # We use sed instead of cat because bash on DJGPP gets confused if 19318 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19319 # text mode, it properly converts lines to CR/LF. This bash problem 19320 # is reportedly fixed, but why not run on old versions too? 19321 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19322 || (rm -f "$cfgfile"; exit 1) 19323 19324 case $xsi_shell in 19325 yes) 19326 cat << \_LT_EOF >> "$cfgfile" 19327 19328# func_dirname file append nondir_replacement 19329# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19330# otherwise set result to NONDIR_REPLACEMENT. 19331func_dirname () 19332{ 19333 case ${1} in 19334 */*) func_dirname_result="${1%/*}${2}" ;; 19335 * ) func_dirname_result="${3}" ;; 19336 esac 19337} 19338 19339# func_basename file 19340func_basename () 19341{ 19342 func_basename_result="${1##*/}" 19343} 19344 19345# func_dirname_and_basename file append nondir_replacement 19346# perform func_basename and func_dirname in a single function 19347# call: 19348# dirname: Compute the dirname of FILE. If nonempty, 19349# add APPEND to the result, otherwise set result 19350# to NONDIR_REPLACEMENT. 19351# value returned in "$func_dirname_result" 19352# basename: Compute filename of FILE. 19353# value retuned in "$func_basename_result" 19354# Implementation must be kept synchronized with func_dirname 19355# and func_basename. For efficiency, we do not delegate to 19356# those functions but instead duplicate the functionality here. 19357func_dirname_and_basename () 19358{ 19359 case ${1} in 19360 */*) func_dirname_result="${1%/*}${2}" ;; 19361 * ) func_dirname_result="${3}" ;; 19362 esac 19363 func_basename_result="${1##*/}" 19364} 19365 19366# func_stripname prefix suffix name 19367# strip PREFIX and SUFFIX off of NAME. 19368# PREFIX and SUFFIX must not contain globbing or regex special 19369# characters, hashes, percent signs, but SUFFIX may contain a leading 19370# dot (in which case that matches only a dot). 19371func_stripname () 19372{ 19373 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19374 # positional parameters, so assign one to ordinary parameter first. 19375 func_stripname_result=${3} 19376 func_stripname_result=${func_stripname_result#"${1}"} 19377 func_stripname_result=${func_stripname_result%"${2}"} 19378} 19379 19380# func_opt_split 19381func_opt_split () 19382{ 19383 func_opt_split_opt=${1%%=*} 19384 func_opt_split_arg=${1#*=} 19385} 19386 19387# func_lo2o object 19388func_lo2o () 19389{ 19390 case ${1} in 19391 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19392 *) func_lo2o_result=${1} ;; 19393 esac 19394} 19395 19396# func_xform libobj-or-source 19397func_xform () 19398{ 19399 func_xform_result=${1%.*}.lo 19400} 19401 19402# func_arith arithmetic-term... 19403func_arith () 19404{ 19405 func_arith_result=$(( $* )) 19406} 19407 19408# func_len string 19409# STRING may not start with a hyphen. 19410func_len () 19411{ 19412 func_len_result=${#1} 19413} 19414 19415_LT_EOF 19416 ;; 19417 *) # Bourne compatible functions. 19418 cat << \_LT_EOF >> "$cfgfile" 19419 19420# func_dirname file append nondir_replacement 19421# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19422# otherwise set result to NONDIR_REPLACEMENT. 19423func_dirname () 19424{ 19425 # Extract subdirectory from the argument. 19426 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19427 if test "X$func_dirname_result" = "X${1}"; then 19428 func_dirname_result="${3}" 19429 else 19430 func_dirname_result="$func_dirname_result${2}" 19431 fi 19432} 19433 19434# func_basename file 19435func_basename () 19436{ 19437 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19438} 19439 19440 19441# func_stripname prefix suffix name 19442# strip PREFIX and SUFFIX off of NAME. 19443# PREFIX and SUFFIX must not contain globbing or regex special 19444# characters, hashes, percent signs, but SUFFIX may contain a leading 19445# dot (in which case that matches only a dot). 19446# func_strip_suffix prefix name 19447func_stripname () 19448{ 19449 case ${2} in 19450 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19451 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19452 esac 19453} 19454 19455# sed scripts: 19456my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19457my_sed_long_arg='1s/^-[^=]*=//' 19458 19459# func_opt_split 19460func_opt_split () 19461{ 19462 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19463 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19464} 19465 19466# func_lo2o object 19467func_lo2o () 19468{ 19469 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19470} 19471 19472# func_xform libobj-or-source 19473func_xform () 19474{ 19475 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19476} 19477 19478# func_arith arithmetic-term... 19479func_arith () 19480{ 19481 func_arith_result=`expr "$@"` 19482} 19483 19484# func_len string 19485# STRING may not start with a hyphen. 19486func_len () 19487{ 19488 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19489} 19490 19491_LT_EOF 19492esac 19493 19494case $lt_shell_append in 19495 yes) 19496 cat << \_LT_EOF >> "$cfgfile" 19497 19498# func_append var value 19499# Append VALUE to the end of shell variable VAR. 19500func_append () 19501{ 19502 eval "$1+=\$2" 19503} 19504_LT_EOF 19505 ;; 19506 *) 19507 cat << \_LT_EOF >> "$cfgfile" 19508 19509# func_append var value 19510# Append VALUE to the end of shell variable VAR. 19511func_append () 19512{ 19513 eval "$1=\$$1\$2" 19514} 19515 19516_LT_EOF 19517 ;; 19518 esac 19519 19520 19521 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19522 || (rm -f "$cfgfile"; exit 1) 19523 19524 mv -f "$cfgfile" "$ofile" || 19525 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19526 chmod +x "$ofile" 19527 19528 19529 cat <<_LT_EOF >> "$ofile" 19530 19531# ### BEGIN LIBTOOL TAG CONFIG: CXX 19532 19533# The linker used to build libraries. 19534LD=$lt_LD_CXX 19535 19536# How to create reloadable object files. 19537reload_flag=$lt_reload_flag_CXX 19538reload_cmds=$lt_reload_cmds_CXX 19539 19540# Commands used to build an old-style archive. 19541old_archive_cmds=$lt_old_archive_cmds_CXX 19542 19543# A language specific compiler. 19544CC=$lt_compiler_CXX 19545 19546# Is the compiler the GNU compiler? 19547with_gcc=$GCC_CXX 19548 19549# Compiler flag to turn off builtin functions. 19550no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19551 19552# How to pass a linker flag through the compiler. 19553wl=$lt_lt_prog_compiler_wl_CXX 19554 19555# Additional compiler flags for building library objects. 19556pic_flag=$lt_lt_prog_compiler_pic_CXX 19557 19558# Compiler flag to prevent dynamic linking. 19559link_static_flag=$lt_lt_prog_compiler_static_CXX 19560 19561# Does compiler simultaneously support -c and -o options? 19562compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19563 19564# Whether or not to add -lc for building shared libraries. 19565build_libtool_need_lc=$archive_cmds_need_lc_CXX 19566 19567# Whether or not to disallow shared libs when runtime libs are static. 19568allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19569 19570# Compiler flag to allow reflexive dlopens. 19571export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19572 19573# Compiler flag to generate shared objects directly from archives. 19574whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19575 19576# Whether the compiler copes with passing no objects directly. 19577compiler_needs_object=$lt_compiler_needs_object_CXX 19578 19579# Create an old-style archive from a shared archive. 19580old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19581 19582# Create a temporary old-style archive to link instead of a shared archive. 19583old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19584 19585# Commands used to build a shared archive. 19586archive_cmds=$lt_archive_cmds_CXX 19587archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19588 19589# Commands used to build a loadable module if different from building 19590# a shared archive. 19591module_cmds=$lt_module_cmds_CXX 19592module_expsym_cmds=$lt_module_expsym_cmds_CXX 19593 19594# Whether we are building with GNU ld or not. 19595with_gnu_ld=$lt_with_gnu_ld_CXX 19596 19597# Flag that allows shared libraries with undefined symbols to be built. 19598allow_undefined_flag=$lt_allow_undefined_flag_CXX 19599 19600# Flag that enforces no undefined symbols. 19601no_undefined_flag=$lt_no_undefined_flag_CXX 19602 19603# Flag to hardcode \$libdir into a binary during linking. 19604# This must work even if \$libdir does not exist 19605hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19606 19607# If ld is used when linking, flag to hardcode \$libdir into a binary 19608# during linking. This must work even if \$libdir does not exist. 19609hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 19610 19611# Whether we need a single "-rpath" flag with a separated argument. 19612hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19613 19614# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19615# DIR into the resulting binary. 19616hardcode_direct=$hardcode_direct_CXX 19617 19618# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19619# DIR into the resulting binary and the resulting library dependency is 19620# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19621# library is relocated. 19622hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19623 19624# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19625# into the resulting binary. 19626hardcode_minus_L=$hardcode_minus_L_CXX 19627 19628# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19629# into the resulting binary. 19630hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19631 19632# Set to "yes" if building a shared library automatically hardcodes DIR 19633# into the library and all subsequent libraries and executables linked 19634# against it. 19635hardcode_automatic=$hardcode_automatic_CXX 19636 19637# Set to yes if linker adds runtime paths of dependent libraries 19638# to runtime path list. 19639inherit_rpath=$inherit_rpath_CXX 19640 19641# Whether libtool must link a program against all its dependency libraries. 19642link_all_deplibs=$link_all_deplibs_CXX 19643 19644# Fix the shell variable \$srcfile for the compiler. 19645fix_srcfile_path=$lt_fix_srcfile_path_CXX 19646 19647# Set to "yes" if exported symbols are required. 19648always_export_symbols=$always_export_symbols_CXX 19649 19650# The commands to list exported symbols. 19651export_symbols_cmds=$lt_export_symbols_cmds_CXX 19652 19653# Symbols that should not be listed in the preloaded symbols. 19654exclude_expsyms=$lt_exclude_expsyms_CXX 19655 19656# Symbols that must always be exported. 19657include_expsyms=$lt_include_expsyms_CXX 19658 19659# Commands necessary for linking programs (against libraries) with templates. 19660prelink_cmds=$lt_prelink_cmds_CXX 19661 19662# Specify filename containing input files. 19663file_list_spec=$lt_file_list_spec_CXX 19664 19665# How to hardcode a shared library path into an executable. 19666hardcode_action=$hardcode_action_CXX 19667 19668# The directories searched by this compiler when creating a shared library. 19669compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19670 19671# Dependencies to place before and after the objects being linked to 19672# create a shared library. 19673predep_objects=$lt_predep_objects_CXX 19674postdep_objects=$lt_postdep_objects_CXX 19675predeps=$lt_predeps_CXX 19676postdeps=$lt_postdeps_CXX 19677 19678# The library search path used internally by the compiler when linking 19679# a shared library. 19680compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19681 19682# ### END LIBTOOL TAG CONFIG: CXX 19683_LT_EOF 19684 19685 ;; 19686 "gstdint.h":C) 19687if test "$GCC" = yes; then 19688 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 19689else 19690 echo "/* generated for $CC */" > tmp-stdint.h 19691fi 19692 19693sed 's/^ *//' >> tmp-stdint.h <<EOF 19694 19695 #ifndef GCC_GENERATED_STDINT_H 19696 #define GCC_GENERATED_STDINT_H 1 19697 19698 #include <sys/types.h> 19699EOF 19700 19701if test "$acx_cv_header_stdint" != stdint.h; then 19702 echo "#include <stddef.h>" >> tmp-stdint.h 19703fi 19704if test "$acx_cv_header_stdint" != stddef.h; then 19705 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 19706fi 19707 19708sed 's/^ *//' >> tmp-stdint.h <<EOF 19709 /* glibc uses these symbols as guards to prevent redefinitions. */ 19710 #ifdef __int8_t_defined 19711 #define _INT8_T 19712 #define _INT16_T 19713 #define _INT32_T 19714 #endif 19715 #ifdef __uint32_t_defined 19716 #define _UINT32_T 19717 #endif 19718 19719EOF 19720 19721# ----------------- done header, emit basic int types ------------- 19722if test "$acx_cv_header_stdint" = stddef.h; then 19723 sed 's/^ *//' >> tmp-stdint.h <<EOF 19724 19725 #ifndef _UINT8_T 19726 #define _UINT8_T 19727 #ifndef __uint8_t_defined 19728 #define __uint8_t_defined 19729 #ifndef uint8_t 19730 typedef unsigned $acx_cv_type_int8_t uint8_t; 19731 #endif 19732 #endif 19733 #endif 19734 19735 #ifndef _UINT16_T 19736 #define _UINT16_T 19737 #ifndef __uint16_t_defined 19738 #define __uint16_t_defined 19739 #ifndef uint16_t 19740 typedef unsigned $acx_cv_type_int16_t uint16_t; 19741 #endif 19742 #endif 19743 #endif 19744 19745 #ifndef _UINT32_T 19746 #define _UINT32_T 19747 #ifndef __uint32_t_defined 19748 #define __uint32_t_defined 19749 #ifndef uint32_t 19750 typedef unsigned $acx_cv_type_int32_t uint32_t; 19751 #endif 19752 #endif 19753 #endif 19754 19755 #ifndef _INT8_T 19756 #define _INT8_T 19757 #ifndef __int8_t_defined 19758 #define __int8_t_defined 19759 #ifndef int8_t 19760 typedef $acx_cv_type_int8_t int8_t; 19761 #endif 19762 #endif 19763 #endif 19764 19765 #ifndef _INT16_T 19766 #define _INT16_T 19767 #ifndef __int16_t_defined 19768 #define __int16_t_defined 19769 #ifndef int16_t 19770 typedef $acx_cv_type_int16_t int16_t; 19771 #endif 19772 #endif 19773 #endif 19774 19775 #ifndef _INT32_T 19776 #define _INT32_T 19777 #ifndef __int32_t_defined 19778 #define __int32_t_defined 19779 #ifndef int32_t 19780 typedef $acx_cv_type_int32_t int32_t; 19781 #endif 19782 #endif 19783 #endif 19784EOF 19785elif test "$ac_cv_type_u_int32_t" = yes; then 19786 sed 's/^ *//' >> tmp-stdint.h <<EOF 19787 19788 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 19789 #ifndef _INT8_T 19790 #define _INT8_T 19791 #endif 19792 #ifndef _INT16_T 19793 #define _INT16_T 19794 #endif 19795 #ifndef _INT32_T 19796 #define _INT32_T 19797 #endif 19798 19799 #ifndef _UINT8_T 19800 #define _UINT8_T 19801 #ifndef __uint8_t_defined 19802 #define __uint8_t_defined 19803 #ifndef uint8_t 19804 typedef u_int8_t uint8_t; 19805 #endif 19806 #endif 19807 #endif 19808 19809 #ifndef _UINT16_T 19810 #define _UINT16_T 19811 #ifndef __uint16_t_defined 19812 #define __uint16_t_defined 19813 #ifndef uint16_t 19814 typedef u_int16_t uint16_t; 19815 #endif 19816 #endif 19817 #endif 19818 19819 #ifndef _UINT32_T 19820 #define _UINT32_T 19821 #ifndef __uint32_t_defined 19822 #define __uint32_t_defined 19823 #ifndef uint32_t 19824 typedef u_int32_t uint32_t; 19825 #endif 19826 #endif 19827 #endif 19828EOF 19829else 19830 sed 's/^ *//' >> tmp-stdint.h <<EOF 19831 19832 /* Some systems have guard macros to prevent redefinitions, define them. */ 19833 #ifndef _INT8_T 19834 #define _INT8_T 19835 #endif 19836 #ifndef _INT16_T 19837 #define _INT16_T 19838 #endif 19839 #ifndef _INT32_T 19840 #define _INT32_T 19841 #endif 19842 #ifndef _UINT8_T 19843 #define _UINT8_T 19844 #endif 19845 #ifndef _UINT16_T 19846 #define _UINT16_T 19847 #endif 19848 #ifndef _UINT32_T 19849 #define _UINT32_T 19850 #endif 19851EOF 19852fi 19853 19854# ------------- done basic int types, emit int64_t types ------------ 19855if test "$ac_cv_type_uint64_t" = yes; then 19856 sed 's/^ *//' >> tmp-stdint.h <<EOF 19857 19858 /* system headers have good uint64_t and int64_t */ 19859 #ifndef _INT64_T 19860 #define _INT64_T 19861 #endif 19862 #ifndef _UINT64_T 19863 #define _UINT64_T 19864 #endif 19865EOF 19866elif test "$ac_cv_type_u_int64_t" = yes; then 19867 sed 's/^ *//' >> tmp-stdint.h <<EOF 19868 19869 /* system headers have an u_int64_t (and int64_t) */ 19870 #ifndef _INT64_T 19871 #define _INT64_T 19872 #endif 19873 #ifndef _UINT64_T 19874 #define _UINT64_T 19875 #ifndef __uint64_t_defined 19876 #define __uint64_t_defined 19877 #ifndef uint64_t 19878 typedef u_int64_t uint64_t; 19879 #endif 19880 #endif 19881 #endif 19882EOF 19883elif test -n "$acx_cv_type_int64_t"; then 19884 sed 's/^ *//' >> tmp-stdint.h <<EOF 19885 19886 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 19887 #ifndef _INT64_T 19888 #define _INT64_T 19889 #ifndef int64_t 19890 typedef $acx_cv_type_int64_t int64_t; 19891 #endif 19892 #endif 19893 #ifndef _UINT64_T 19894 #define _UINT64_T 19895 #ifndef __uint64_t_defined 19896 #define __uint64_t_defined 19897 #ifndef uint64_t 19898 typedef unsigned $acx_cv_type_int64_t uint64_t; 19899 #endif 19900 #endif 19901 #endif 19902EOF 19903else 19904 sed 's/^ *//' >> tmp-stdint.h <<EOF 19905 19906 /* some common heuristics for int64_t, using compiler-specific tests */ 19907 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 19908 #ifndef _INT64_T 19909 #define _INT64_T 19910 #ifndef __int64_t_defined 19911 #ifndef int64_t 19912 typedef long long int64_t; 19913 #endif 19914 #endif 19915 #endif 19916 #ifndef _UINT64_T 19917 #define _UINT64_T 19918 #ifndef uint64_t 19919 typedef unsigned long long uint64_t; 19920 #endif 19921 #endif 19922 19923 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 19924 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 19925 does not implement __extension__. But that compiler doesn't define 19926 __GNUC_MINOR__. */ 19927 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 19928 # define __extension__ 19929 # endif 19930 19931 # ifndef _INT64_T 19932 # define _INT64_T 19933 # ifndef int64_t 19934 __extension__ typedef long long int64_t; 19935 # endif 19936 # endif 19937 # ifndef _UINT64_T 19938 # define _UINT64_T 19939 # ifndef uint64_t 19940 __extension__ typedef unsigned long long uint64_t; 19941 # endif 19942 # endif 19943 19944 #elif !defined __STRICT_ANSI__ 19945 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 19946 19947 # ifndef _INT64_T 19948 # define _INT64_T 19949 # ifndef int64_t 19950 typedef __int64 int64_t; 19951 # endif 19952 # endif 19953 # ifndef _UINT64_T 19954 # define _UINT64_T 19955 # ifndef uint64_t 19956 typedef unsigned __int64 uint64_t; 19957 # endif 19958 # endif 19959 # endif /* compiler */ 19960 19961 #endif /* ANSI version */ 19962EOF 19963fi 19964 19965# ------------- done int64_t types, emit intptr types ------------ 19966if test "$ac_cv_type_uintptr_t" != yes; then 19967 sed 's/^ *//' >> tmp-stdint.h <<EOF 19968 19969 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 19970 #ifndef __uintptr_t_defined 19971 #ifndef uintptr_t 19972 typedef u$acx_cv_type_intptr_t uintptr_t; 19973 #endif 19974 #endif 19975 #ifndef __intptr_t_defined 19976 #ifndef intptr_t 19977 typedef $acx_cv_type_intptr_t intptr_t; 19978 #endif 19979 #endif 19980EOF 19981fi 19982 19983# ------------- done intptr types, emit int_least types ------------ 19984if test "$ac_cv_type_int_least32_t" != yes; then 19985 sed 's/^ *//' >> tmp-stdint.h <<EOF 19986 19987 /* Define int_least types */ 19988 typedef int8_t int_least8_t; 19989 typedef int16_t int_least16_t; 19990 typedef int32_t int_least32_t; 19991 #ifdef _INT64_T 19992 typedef int64_t int_least64_t; 19993 #endif 19994 19995 typedef uint8_t uint_least8_t; 19996 typedef uint16_t uint_least16_t; 19997 typedef uint32_t uint_least32_t; 19998 #ifdef _UINT64_T 19999 typedef uint64_t uint_least64_t; 20000 #endif 20001EOF 20002fi 20003 20004# ------------- done intptr types, emit int_fast types ------------ 20005if test "$ac_cv_type_int_fast32_t" != yes; then 20006 sed 's/^ *//' >> tmp-stdint.h <<EOF 20007 20008 /* Define int_fast types. short is often slow */ 20009 typedef int8_t int_fast8_t; 20010 typedef int int_fast16_t; 20011 typedef int32_t int_fast32_t; 20012 #ifdef _INT64_T 20013 typedef int64_t int_fast64_t; 20014 #endif 20015 20016 typedef uint8_t uint_fast8_t; 20017 typedef unsigned int uint_fast16_t; 20018 typedef uint32_t uint_fast32_t; 20019 #ifdef _UINT64_T 20020 typedef uint64_t uint_fast64_t; 20021 #endif 20022EOF 20023fi 20024 20025if test "$ac_cv_type_uintmax_t" != yes; then 20026 sed 's/^ *//' >> tmp-stdint.h <<EOF 20027 20028 /* Define intmax based on what we found */ 20029 #ifndef intmax_t 20030 #ifdef _INT64_T 20031 typedef int64_t intmax_t; 20032 #else 20033 typedef long intmax_t; 20034 #endif 20035 #endif 20036 #ifndef uintmax_t 20037 #ifdef _UINT64_T 20038 typedef uint64_t uintmax_t; 20039 #else 20040 typedef unsigned long uintmax_t; 20041 #endif 20042 #endif 20043EOF 20044fi 20045 20046sed 's/^ *//' >> tmp-stdint.h <<EOF 20047 20048 #endif /* GCC_GENERATED_STDINT_H */ 20049EOF 20050 20051if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then 20052 rm -f tmp-stdint.h 20053else 20054 mv -f tmp-stdint.h gstdint.h 20055fi 20056 20057 ;; 20058 "interception/Makefile":F) cat > vpsed$$ << \_EOF 20059s!`test -f '$<' || echo '$(srcdir)/'`!! 20060_EOF 20061 sed -f vpsed$$ $ac_file > tmp$$ 20062 mv tmp$$ $ac_file 20063 rm vpsed$$ 20064 echo 'MULTISUBDIR =' >> $ac_file 20065 ml_norecursion=yes 20066 . ${multi_basedir}/config-ml.in 20067 { ml_norecursion=; unset ml_norecursion;} 20068 ;; 20069 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF 20070s!`test -f '$<' || echo '$(srcdir)/'`!! 20071_EOF 20072 sed -f vpsed$$ $ac_file > tmp$$ 20073 mv tmp$$ $ac_file 20074 rm vpsed$$ 20075 echo 'MULTISUBDIR =' >> $ac_file 20076 ml_norecursion=yes 20077 . ${multi_basedir}/config-ml.in 20078 { ml_norecursion=; unset ml_norecursion;} 20079 ;; 20080 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF 20081s!`test -f '$<' || echo '$(srcdir)/'`!! 20082_EOF 20083 sed -f vpsed$$ $ac_file > tmp$$ 20084 mv tmp$$ $ac_file 20085 rm vpsed$$ 20086 echo 'MULTISUBDIR =' >> $ac_file 20087 ml_norecursion=yes 20088 . ${multi_basedir}/config-ml.in 20089 { ml_norecursion=; unset ml_norecursion;} 20090 ;; 20091 "lsan/Makefile":F) cat > vpsed$$ << \_EOF 20092s!`test -f '$<' || echo '$(srcdir)/'`!! 20093_EOF 20094 sed -f vpsed$$ $ac_file > tmp$$ 20095 mv tmp$$ $ac_file 20096 rm vpsed$$ 20097 echo 'MULTISUBDIR =' >> $ac_file 20098 ml_norecursion=yes 20099 . ${multi_basedir}/config-ml.in 20100 { ml_norecursion=; unset ml_norecursion;} 20101 ;; 20102 "asan/Makefile":F) cat > vpsed$$ << \_EOF 20103s!`test -f '$<' || echo '$(srcdir)/'`!! 20104_EOF 20105 sed -f vpsed$$ $ac_file > tmp$$ 20106 mv tmp$$ $ac_file 20107 rm vpsed$$ 20108 echo 'MULTISUBDIR =' >> $ac_file 20109 ml_norecursion=yes 20110 . ${multi_basedir}/config-ml.in 20111 { ml_norecursion=; unset ml_norecursion;} 20112 ;; 20113 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF 20114s!`test -f '$<' || echo '$(srcdir)/'`!! 20115_EOF 20116 sed -f vpsed$$ $ac_file > tmp$$ 20117 mv tmp$$ $ac_file 20118 rm vpsed$$ 20119 echo 'MULTISUBDIR =' >> $ac_file 20120 ml_norecursion=yes 20121 . ${multi_basedir}/config-ml.in 20122 { ml_norecursion=; unset ml_norecursion;} 20123 ;; 20124 "tsan/Makefile":F) cat > vpsed$$ << \_EOF 20125s!`test -f '$<' || echo '$(srcdir)/'`!! 20126_EOF 20127 sed -f vpsed$$ $ac_file > tmp$$ 20128 mv tmp$$ $ac_file 20129 rm vpsed$$ 20130 echo 'MULTISUBDIR =' >> $ac_file 20131 ml_norecursion=yes 20132 . ${multi_basedir}/config-ml.in 20133 { ml_norecursion=; unset ml_norecursion;} 20134 ;; 20135 "hwasan/Makefile":F) cat > vpsed$$ << \_EOF 20136s!`test -f '$<' || echo '$(srcdir)/'`!! 20137_EOF 20138 sed -f vpsed$$ $ac_file > tmp$$ 20139 mv tmp$$ $ac_file 20140 rm vpsed$$ 20141 echo 'MULTISUBDIR =' >> $ac_file 20142 ml_norecursion=yes 20143 . ${multi_basedir}/config-ml.in 20144 { ml_norecursion=; unset ml_norecursion;} 20145 ;; 20146 20147 esac 20148done # for ac_tag 20149 20150 20151as_fn_exit 0 20152_ACEOF 20153ac_clean_files=$ac_clean_files_save 20154 20155test $ac_write_fail = 0 || 20156 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20157 20158 20159# configure is writing to config.log, and then calls config.status. 20160# config.status does its own redirection, appending to config.log. 20161# Unfortunately, on DOS this fails, as config.log is still kept open 20162# by configure, so config.status won't be able to write to it; its 20163# output is simply discarded. So we exec the FD to /dev/null, 20164# effectively closing config.log, so it can be properly (re)opened and 20165# appended to by config.status. When coming back to configure, we 20166# need to make the FD available again. 20167if test "$no_create" != yes; then 20168 ac_cs_success=: 20169 ac_config_status_args= 20170 test "$silent" = yes && 20171 ac_config_status_args="$ac_config_status_args --quiet" 20172 exec 5>/dev/null 20173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20174 exec 5>>config.log 20175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20176 # would make configure fail if this is the last instruction. 20177 $ac_cs_success || as_fn_exit 1 20178fi 20179if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20181$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20182fi 20183 20184